Skip to content

Commit

Permalink
fix(specs): saveRule response type [skip-bc] (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#4170

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Clément Vannicatte <[email protected]>
  • Loading branch information
algolia-bot and shortcuts committed Nov 26, 2024
1 parent 2f644d2 commit cfac4cb
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 21 deletions.
1 change: 0 additions & 1 deletion packages/client-search/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
18 changes: 0 additions & 18 deletions packages/client-search/model/updatedRuleResponse.ts

This file was deleted.

3 changes: 1 addition & 2 deletions packages/client-search/src/searchClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -2330,7 +2329,7 @@ export function createSearchClient({
saveRule(
{ indexName, objectID, rule, forwardToReplicas }: SaveRuleProps,
requestOptions?: RequestOptions,
): Promise<UpdatedRuleResponse> {
): Promise<UpdatedAtResponse> {
if (!indexName) {
throw new Error('Parameter `indexName` is required when calling `saveRule`.');
}
Expand Down

0 comments on commit cfac4cb

Please sign in to comment.