From cfac4cb133db3a040e600aac6ac4d6dad5436f72 Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Tue, 26 Nov 2024 17:15:43 +0000 Subject: [PATCH] fix(specs): `saveRule` response type [skip-bc] (generated) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/algolia/api-clients-automation/pull/4170 Co-authored-by: algolia-bot Co-authored-by: Clément Vannicatte --- packages/client-search/model/index.ts | 1 - .../client-search/model/updatedRuleResponse.ts | 18 ------------------ packages/client-search/src/searchClient.ts | 3 +-- 3 files changed, 1 insertion(+), 21 deletions(-) delete mode 100644 packages/client-search/model/updatedRuleResponse.ts diff --git a/packages/client-search/model/index.ts b/packages/client-search/model/index.ts index 250bff413..678803dc8 100644 --- a/packages/client-search/model/index.ts +++ b/packages/client-search/model/index.ts @@ -175,7 +175,6 @@ export * from './typoToleranceEnum'; export * from './updateApiKeyResponse'; export * from './updatedAtResponse'; export * from './updatedAtWithObjectIdResponse'; -export * from './updatedRuleResponse'; export * from './userHighlightResult'; export * from './userHit'; export * from './userId'; diff --git a/packages/client-search/model/updatedRuleResponse.ts b/packages/client-search/model/updatedRuleResponse.ts deleted file mode 100644 index 7521b1008..000000000 --- a/packages/client-search/model/updatedRuleResponse.ts +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. - -export type UpdatedRuleResponse = { - /** - * Unique identifier of a rule object. - */ - objectID: string; - - /** - * Date and time when the object was updated, in RFC 3339 format. - */ - updatedAt: string; - - /** - * Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run immediately. You can check the task\'s progress with the [`task` operation](#tag/Indices/operation/getTask) and this `taskID`. - */ - taskID: number; -}; diff --git a/packages/client-search/src/searchClient.ts b/packages/client-search/src/searchClient.ts index 4a07f2820..42661bd10 100644 --- a/packages/client-search/src/searchClient.ts +++ b/packages/client-search/src/searchClient.ts @@ -76,7 +76,6 @@ import type { SynonymHit } from '../model/synonymHit'; import type { UpdateApiKeyResponse } from '../model/updateApiKeyResponse'; import type { UpdatedAtResponse } from '../model/updatedAtResponse'; import type { UpdatedAtWithObjectIdResponse } from '../model/updatedAtWithObjectIdResponse'; -import type { UpdatedRuleResponse } from '../model/updatedRuleResponse'; import type { UserId } from '../model/userId'; import type { @@ -2330,7 +2329,7 @@ export function createSearchClient({ saveRule( { indexName, objectID, rule, forwardToReplicas }: SaveRuleProps, requestOptions?: RequestOptions, - ): Promise { + ): Promise { if (!indexName) { throw new Error('Parameter `indexName` is required when calling `saveRule`.'); }