Skip to content

Commit 2c55b66

Browse files
algolia-botkai687
andcommitted
chore: generated code for commit 200f07e9. [skip ci]
algolia/api-clients-automation@200f07e Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Kai Welke <[email protected]>
1 parent b0ed7bf commit 2c55b66

File tree

7 files changed

+34
-2
lines changed

7 files changed

+34
-2
lines changed

packages/algoliasearch/lite/model/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ export * from './searchStrategy';
9797
export * from './searchTypeDefault';
9898
export * from './searchTypeFacet';
9999
export * from './semanticSearch';
100+
export * from './settingsResponse';
100101
export * from './snippetResult';
101102
export * from './snippetResultOption';
102103
export * from './sortRemainingBy';
@@ -112,4 +113,5 @@ export * from './trendingItemsQuery';
112113
export * from './typoTolerance';
113114
export * from './typoToleranceEnum';
114115
export * from './value';
116+
export * from './withPrimary';
115117
export * from './clientMethodProps';
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// 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.
2+
3+
import type { IndexSettings } from './indexSettings';
4+
import type { WithPrimary } from './withPrimary';
5+
6+
export type SettingsResponse = IndexSettings & WithPrimary;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// 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.
2+
3+
export type WithPrimary = {
4+
/**
5+
* Replica indices only: the name of the primary index for this replica.
6+
*/
7+
primary?: string;
8+
};

packages/client-search/model/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ export * from './searchUserIdsParams';
148148
export * from './searchUserIdsResponse';
149149
export * from './securedApiKeyRestrictions';
150150
export * from './semanticSearch';
151+
export * from './settingsResponse';
151152
export * from './snippetResult';
152153
export * from './snippetResultOption';
153154
export * from './sortRemainingBy';
@@ -169,4 +170,5 @@ export * from './userHighlightResult';
169170
export * from './userHit';
170171
export * from './userId';
171172
export * from './value';
173+
export * from './withPrimary';
172174
export * from './clientMethodProps';
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// 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.
2+
3+
import type { IndexSettings } from './indexSettings';
4+
import type { WithPrimary } from './withPrimary';
5+
6+
export type SettingsResponse = IndexSettings & WithPrimary;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// 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.
2+
3+
export type WithPrimary = {
4+
/**
5+
* Replica indices only: the name of the primary index for this replica.
6+
*/
7+
primary?: string;
8+
};

packages/client-search/src/searchClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ import type { GetObjectsResponse } from '../model/getObjectsResponse';
9898
import type { GetTaskResponse } from '../model/getTaskResponse';
9999
import type { GetTopUserIdsResponse } from '../model/getTopUserIdsResponse';
100100
import type { HasPendingMappingsResponse } from '../model/hasPendingMappingsResponse';
101-
import type { IndexSettings } from '../model/indexSettings';
102101
import type { Languages } from '../model/languages';
103102
import type { ListApiKeysResponse } from '../model/listApiKeysResponse';
104103
import type { ListClustersResponse } from '../model/listClustersResponse';
@@ -120,6 +119,7 @@ import type { SearchRulesResponse } from '../model/searchRulesResponse';
120119
import type { SearchSynonymsResponse } from '../model/searchSynonymsResponse';
121120
import type { SearchUserIdsParams } from '../model/searchUserIdsParams';
122121
import type { SearchUserIdsResponse } from '../model/searchUserIdsResponse';
122+
import type { SettingsResponse } from '../model/settingsResponse';
123123
import type { Source } from '../model/source';
124124
import type { SynonymHit } from '../model/synonymHit';
125125
import type { UpdateApiKeyResponse } from '../model/updateApiKeyResponse';
@@ -1968,7 +1968,7 @@ export function createSearchClient({
19681968
getSettings(
19691969
{ indexName }: GetSettingsProps,
19701970
requestOptions?: RequestOptions
1971-
): Promise<IndexSettings> {
1971+
): Promise<SettingsResponse> {
19721972
if (!indexName) {
19731973
throw new Error(
19741974
'Parameter `indexName` is required when calling `getSettings`.'

0 commit comments

Comments
 (0)