@algolia/client-search 5.0.0-alpha.73 → 5.0.0-alpha.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client-search.cjs.js +188 -186
- package/dist/client-search.esm.browser.js +188 -184
- package/dist/client-search.esm.node.js +188 -184
- package/dist/client-search.umd.js +2 -2
- package/dist/model/acl.d.ts +1 -1
- package/dist/model/action.d.ts +1 -1
- package/dist/model/addApiKeyResponse.d.ts +2 -2
- package/dist/model/anchoring.d.ts +1 -1
- package/dist/model/apiKey.d.ts +9 -9
- package/dist/model/aroundRadius.d.ts +1 -1
- package/dist/model/assignUserIdParams.d.ts +1 -1
- package/dist/model/baseGetApiKeyResponse.d.ts +2 -2
- package/dist/model/baseIndexSettings.d.ts +14 -14
- package/dist/model/baseSearchParamsWithoutQuery.d.ts +25 -25
- package/dist/model/baseSearchResponse.d.ts +20 -20
- package/dist/model/baseSearchResponseRedirect.d.ts +1 -1
- package/dist/model/batchAssignUserIdsParams.d.ts +2 -2
- package/dist/model/batchDictionaryEntriesParams.d.ts +3 -3
- package/dist/model/batchParams.d.ts +1 -1
- package/dist/model/batchRequest.d.ts +1 -1
- package/dist/model/batchResponse.d.ts +2 -2
- package/dist/model/batchWriteParams.d.ts +1 -1
- package/dist/model/builtInOperation.d.ts +1 -1
- package/dist/model/builtInOperationType.d.ts +1 -1
- package/dist/model/clientMethodProps.d.ts +88 -84
- package/dist/model/clientMethodProps.d.ts.map +1 -1
- package/dist/model/consequence.d.ts +4 -4
- package/dist/model/consequenceHide.d.ts +2 -2
- package/dist/model/createdAtResponse.d.ts +2 -2
- package/dist/model/cursor.d.ts +1 -1
- package/dist/model/deleteApiKeyResponse.d.ts +1 -1
- package/dist/model/deleteByParams.d.ts +4 -4
- package/dist/model/deleteSourceResponse.d.ts +1 -1
- package/dist/model/deletedAtResponse.d.ts +3 -3
- package/dist/model/dictionaryEntry.d.ts +6 -6
- package/dist/model/dictionaryEntryState.d.ts +1 -1
- package/dist/model/dictionaryLanguage.d.ts +2 -2
- package/dist/model/dictionarySettingsParams.d.ts +1 -1
- package/dist/model/distinct.d.ts +1 -1
- package/dist/model/exactOnSingleWordQuery.d.ts +1 -1
- package/dist/model/facetFilters.d.ts +1 -1
- package/dist/model/facetHits.d.ts +3 -3
- package/dist/model/facetOrdering.d.ts +2 -2
- package/dist/model/facets.d.ts +1 -1
- package/dist/model/facetsStats.d.ts +4 -4
- package/dist/model/fetchedIndex.d.ts +1 -1
- package/dist/model/getObjectsParams.d.ts +1 -1
- package/dist/model/getObjectsRequest.d.ts +4 -4
- package/dist/model/getObjectsResponse.d.ts +1 -1
- package/dist/model/getTopUserIdsResponse.d.ts +2 -2
- package/dist/model/hasPendingMappingsResponse.d.ts +2 -2
- package/dist/model/highlightResultOption.d.ts +1 -1
- package/dist/model/hit.d.ts +1 -1
- package/dist/model/ignorePlurals.d.ts +1 -1
- package/dist/model/indexSettings.d.ts +1 -1
- package/dist/model/indexSettingsAsSearchParams.d.ts +30 -30
- package/dist/model/indexSettingsAsSearchParamsSemanticSearch.d.ts +2 -2
- package/dist/model/languages.d.ts +1 -1
- package/dist/model/listApiKeysResponse.d.ts +1 -1
- package/dist/model/listClustersResponse.d.ts +2 -2
- package/dist/model/listIndicesResponse.d.ts +1 -1
- package/dist/model/listUserIdsResponse.d.ts +2 -2
- package/dist/model/log.d.ts +7 -7
- package/dist/model/logQuery.d.ts +1 -1
- package/dist/model/mode.d.ts +1 -1
- package/dist/model/multipleBatchRequest.d.ts +1 -1
- package/dist/model/multipleBatchResponse.d.ts +2 -2
- package/dist/model/numericFilters.d.ts +1 -1
- package/dist/model/operationIndexParams.d.ts +2 -2
- package/dist/model/operationType.d.ts +1 -1
- package/dist/model/optionalFilters.d.ts +1 -1
- package/dist/model/params.d.ts +1 -1
- package/dist/model/promoteObjectID.d.ts +3 -3
- package/dist/model/promoteObjectIDs.d.ts +3 -3
- package/dist/model/queryType.d.ts +1 -1
- package/dist/model/reRankingApplyFilter.d.ts +1 -1
- package/dist/model/redirectRuleIndexMetadata.d.ts +1 -1
- package/dist/model/redirectRuleIndexMetadataData.d.ts +1 -1
- package/dist/model/removeStopWords.d.ts +1 -1
- package/dist/model/removeUserIdResponse.d.ts +1 -1
- package/dist/model/removeWordsIfNoResults.d.ts +1 -1
- package/dist/model/renderingContent.d.ts +1 -1
- package/dist/model/replaceSourceResponse.d.ts +1 -1
- package/dist/model/rule.d.ts +5 -5
- package/dist/model/saveObjectResponse.d.ts +5 -2
- package/dist/model/saveObjectResponse.d.ts.map +1 -1
- package/dist/model/saveSynonymResponse.d.ts +3 -3
- package/dist/model/searchDictionaryEntriesParams.d.ts +5 -5
- package/dist/model/searchForFacetValuesRequest.d.ts +2 -2
- package/dist/model/searchForFacetsOptions.d.ts +3 -3
- package/dist/model/searchForHitsOptions.d.ts +1 -1
- package/dist/model/searchParamsQuery.d.ts +1 -1
- package/dist/model/searchParamsString.d.ts +1 -1
- package/dist/model/searchRulesParams.d.ts +7 -7
- package/dist/model/searchStrategy.d.ts +3 -0
- package/dist/model/searchStrategy.d.ts.map +1 -1
- package/dist/model/searchSynonymsParams.d.ts +1 -1
- package/dist/model/searchSynonymsResponse.d.ts +2 -2
- package/dist/model/searchTypeDefault.d.ts +1 -1
- package/dist/model/searchTypeFacet.d.ts +1 -1
- package/dist/model/searchUserIdsParams.d.ts +4 -4
- package/dist/model/searchUserIdsResponse.d.ts +5 -5
- package/dist/model/snippetResultOption.d.ts +1 -1
- package/dist/model/sortRemainingBy.d.ts +1 -1
- package/dist/model/source.d.ts +3 -3
- package/dist/model/standardEntries.d.ts +4 -4
- package/dist/model/synonymHit.d.ts +6 -6
- package/dist/model/synonymType.d.ts +1 -1
- package/dist/model/tagFilters.d.ts +1 -1
- package/dist/model/taskStatus.d.ts +3 -0
- package/dist/model/taskStatus.d.ts.map +1 -1
- package/dist/model/typoTolerance.d.ts +1 -1
- package/dist/model/updateApiKeyResponse.d.ts +2 -2
- package/dist/model/updatedAtResponse.d.ts +3 -3
- package/dist/model/updatedAtWithObjectIdResponse.d.ts +4 -4
- package/dist/model/updatedRuleResponse.d.ts +3 -3
- package/dist/model/userHit.d.ts +1 -1
- package/dist/model/userId.d.ts +2 -2
- package/dist/src/searchClient.d.ts +185 -184
- package/dist/src/searchClient.d.ts.map +1 -1
- package/model/acl.ts +1 -1
- package/model/action.ts +1 -1
- package/model/addApiKeyResponse.ts +2 -2
- package/model/anchoring.ts +1 -1
- package/model/apiKey.ts +9 -9
- package/model/aroundRadius.ts +1 -1
- package/model/assignUserIdParams.ts +1 -1
- package/model/baseGetApiKeyResponse.ts +2 -2
- package/model/baseIndexSettings.ts +14 -14
- package/model/baseSearchParamsWithoutQuery.ts +25 -25
- package/model/baseSearchResponse.ts +20 -20
- package/model/baseSearchResponseRedirect.ts +1 -1
- package/model/batchAssignUserIdsParams.ts +2 -2
- package/model/batchDictionaryEntriesParams.ts +3 -3
- package/model/batchParams.ts +1 -1
- package/model/batchRequest.ts +1 -1
- package/model/batchResponse.ts +2 -2
- package/model/batchWriteParams.ts +1 -1
- package/model/builtInOperation.ts +1 -1
- package/model/builtInOperationType.ts +1 -1
- package/model/clientMethodProps.ts +88 -84
- package/model/consequence.ts +4 -4
- package/model/consequenceHide.ts +2 -2
- package/model/createdAtResponse.ts +2 -2
- package/model/cursor.ts +1 -1
- package/model/deleteApiKeyResponse.ts +1 -1
- package/model/deleteByParams.ts +4 -4
- package/model/deleteSourceResponse.ts +1 -1
- package/model/deletedAtResponse.ts +3 -3
- package/model/dictionaryEntry.ts +6 -6
- package/model/dictionaryEntryState.ts +1 -1
- package/model/dictionaryLanguage.ts +2 -2
- package/model/dictionarySettingsParams.ts +1 -1
- package/model/distinct.ts +1 -1
- package/model/exactOnSingleWordQuery.ts +1 -1
- package/model/facetFilters.ts +1 -1
- package/model/facetHits.ts +3 -3
- package/model/facetOrdering.ts +2 -2
- package/model/facets.ts +1 -1
- package/model/facetsStats.ts +4 -4
- package/model/fetchedIndex.ts +1 -1
- package/model/getObjectsParams.ts +1 -1
- package/model/getObjectsRequest.ts +4 -4
- package/model/getObjectsResponse.ts +1 -1
- package/model/getTopUserIdsResponse.ts +2 -2
- package/model/hasPendingMappingsResponse.ts +2 -2
- package/model/highlightResultOption.ts +1 -1
- package/model/hit.ts +1 -1
- package/model/ignorePlurals.ts +1 -1
- package/model/indexSettings.ts +1 -1
- package/model/indexSettingsAsSearchParams.ts +30 -30
- package/model/indexSettingsAsSearchParamsSemanticSearch.ts +2 -2
- package/model/languages.ts +1 -1
- package/model/listApiKeysResponse.ts +1 -1
- package/model/listClustersResponse.ts +2 -2
- package/model/listIndicesResponse.ts +1 -1
- package/model/listUserIdsResponse.ts +2 -2
- package/model/log.ts +7 -7
- package/model/logQuery.ts +1 -1
- package/model/mode.ts +1 -1
- package/model/multipleBatchRequest.ts +1 -1
- package/model/multipleBatchResponse.ts +2 -2
- package/model/numericFilters.ts +1 -1
- package/model/operationIndexParams.ts +2 -2
- package/model/operationType.ts +1 -1
- package/model/optionalFilters.ts +1 -1
- package/model/params.ts +1 -1
- package/model/promoteObjectID.ts +3 -3
- package/model/promoteObjectIDs.ts +3 -3
- package/model/queryType.ts +1 -1
- package/model/reRankingApplyFilter.ts +1 -1
- package/model/redirectRuleIndexMetadata.ts +1 -1
- package/model/redirectRuleIndexMetadataData.ts +1 -1
- package/model/removeStopWords.ts +1 -1
- package/model/removeUserIdResponse.ts +1 -1
- package/model/removeWordsIfNoResults.ts +1 -1
- package/model/renderingContent.ts +1 -1
- package/model/replaceSourceResponse.ts +1 -1
- package/model/rule.ts +5 -5
- package/model/saveObjectResponse.ts +5 -2
- package/model/saveSynonymResponse.ts +3 -3
- package/model/searchDictionaryEntriesParams.ts +5 -5
- package/model/searchForFacetValuesRequest.ts +2 -2
- package/model/searchForFacetsOptions.ts +3 -3
- package/model/searchForHitsOptions.ts +1 -1
- package/model/searchParamsQuery.ts +1 -1
- package/model/searchParamsString.ts +1 -1
- package/model/searchRulesParams.ts +7 -7
- package/model/searchStrategy.ts +3 -0
- package/model/searchSynonymsParams.ts +1 -1
- package/model/searchSynonymsResponse.ts +2 -2
- package/model/searchTypeDefault.ts +1 -1
- package/model/searchTypeFacet.ts +1 -1
- package/model/searchUserIdsParams.ts +4 -4
- package/model/searchUserIdsResponse.ts +5 -5
- package/model/snippetResultOption.ts +1 -1
- package/model/sortRemainingBy.ts +1 -1
- package/model/source.ts +3 -3
- package/model/standardEntries.ts +4 -4
- package/model/synonymHit.ts +6 -6
- package/model/synonymType.ts +1 -1
- package/model/tagFilters.ts +1 -1
- package/model/taskStatus.ts +3 -0
- package/model/typoTolerance.ts +1 -1
- package/model/updateApiKeyResponse.ts +2 -2
- package/model/updatedAtResponse.ts +3 -3
- package/model/updatedAtWithObjectIdResponse.ts +4 -4
- package/model/updatedRuleResponse.ts +3 -3
- package/model/userHit.ts +1 -1
- package/model/userId.ts +2 -2
- package/package.json +8 -7
package/model/batchRequest.ts
CHANGED
package/model/batchResponse.ts
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
export type BatchResponse = {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* 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 and this `taskID`.
|
|
6
6
|
*/
|
|
7
7
|
taskID: number;
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Unique object (record) identifiers.
|
|
11
11
|
*/
|
|
12
12
|
objectIDs: string[];
|
|
13
13
|
};
|
|
@@ -9,7 +9,7 @@ export type BuiltInOperation = {
|
|
|
9
9
|
_operation: BuiltInOperationType;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Value that corresponds to the operation, for example an `Increment` or `Decrement` step, `Add` or `Remove` value.
|
|
13
13
|
*/
|
|
14
14
|
value: string;
|
|
15
15
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Operation to apply to the attribute.
|
|
5
5
|
*/
|
|
6
6
|
export type BuiltInOperationType =
|
|
7
7
|
| 'Add'
|
|
@@ -32,15 +32,15 @@ import type { SynonymType } from './synonymType';
|
|
|
32
32
|
*/
|
|
33
33
|
export type AddOrUpdateObjectProps = {
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Index on which to perform the request.
|
|
36
36
|
*/
|
|
37
37
|
indexName: string;
|
|
38
38
|
/**
|
|
39
|
-
* Unique
|
|
39
|
+
* Unique record (object) identifier.
|
|
40
40
|
*/
|
|
41
41
|
objectID: string;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Algolia record.
|
|
44
44
|
*/
|
|
45
45
|
body: Record<string, any>;
|
|
46
46
|
};
|
|
@@ -61,7 +61,7 @@ export type AssignUserIdProps = {
|
|
|
61
61
|
*/
|
|
62
62
|
export type BatchProps = {
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
64
|
+
* Index on which to perform the request.
|
|
65
65
|
*/
|
|
66
66
|
indexName: string;
|
|
67
67
|
batchWriteParams: BatchWriteParams;
|
|
@@ -83,7 +83,7 @@ export type BatchAssignUserIdsProps = {
|
|
|
83
83
|
*/
|
|
84
84
|
export type BatchDictionaryEntriesProps = {
|
|
85
85
|
/**
|
|
86
|
-
*
|
|
86
|
+
* Dictionary to search in.
|
|
87
87
|
*/
|
|
88
88
|
dictionaryName: DictionaryType;
|
|
89
89
|
batchDictionaryEntriesParams: BatchDictionaryEntriesParams;
|
|
@@ -94,7 +94,7 @@ export type BatchDictionaryEntriesProps = {
|
|
|
94
94
|
*/
|
|
95
95
|
export type BrowseProps = {
|
|
96
96
|
/**
|
|
97
|
-
*
|
|
97
|
+
* Index on which to perform the request.
|
|
98
98
|
*/
|
|
99
99
|
indexName: string;
|
|
100
100
|
browseParams?: BrowseParams;
|
|
@@ -105,11 +105,11 @@ export type BrowseProps = {
|
|
|
105
105
|
*/
|
|
106
106
|
export type ClearAllSynonymsProps = {
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
108
|
+
* Index on which to perform the request.
|
|
109
109
|
*/
|
|
110
110
|
indexName: string;
|
|
111
111
|
/**
|
|
112
|
-
*
|
|
112
|
+
* Indicates whether changed index settings are forwarded to the replica indices.
|
|
113
113
|
*/
|
|
114
114
|
forwardToReplicas?: boolean;
|
|
115
115
|
};
|
|
@@ -119,7 +119,7 @@ export type ClearAllSynonymsProps = {
|
|
|
119
119
|
*/
|
|
120
120
|
export type ClearObjectsProps = {
|
|
121
121
|
/**
|
|
122
|
-
*
|
|
122
|
+
* Index on which to perform the request.
|
|
123
123
|
*/
|
|
124
124
|
indexName: string;
|
|
125
125
|
};
|
|
@@ -129,11 +129,11 @@ export type ClearObjectsProps = {
|
|
|
129
129
|
*/
|
|
130
130
|
export type ClearRulesProps = {
|
|
131
131
|
/**
|
|
132
|
-
*
|
|
132
|
+
* Index on which to perform the request.
|
|
133
133
|
*/
|
|
134
134
|
indexName: string;
|
|
135
135
|
/**
|
|
136
|
-
*
|
|
136
|
+
* Indicates whether changed index settings are forwarded to the replica indices.
|
|
137
137
|
*/
|
|
138
138
|
forwardToReplicas?: boolean;
|
|
139
139
|
};
|
|
@@ -143,11 +143,11 @@ export type ClearRulesProps = {
|
|
|
143
143
|
*/
|
|
144
144
|
export type DelProps = {
|
|
145
145
|
/**
|
|
146
|
-
*
|
|
146
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
147
147
|
*/
|
|
148
148
|
path: string;
|
|
149
149
|
/**
|
|
150
|
-
* Query parameters to
|
|
150
|
+
* Query parameters to apply to the current query.
|
|
151
151
|
*/
|
|
152
152
|
parameters?: Record<string, any>;
|
|
153
153
|
};
|
|
@@ -157,7 +157,7 @@ export type DelProps = {
|
|
|
157
157
|
*/
|
|
158
158
|
export type DeleteApiKeyProps = {
|
|
159
159
|
/**
|
|
160
|
-
* API
|
|
160
|
+
* API key.
|
|
161
161
|
*/
|
|
162
162
|
key: string;
|
|
163
163
|
};
|
|
@@ -167,7 +167,7 @@ export type DeleteApiKeyProps = {
|
|
|
167
167
|
*/
|
|
168
168
|
export type DeleteByProps = {
|
|
169
169
|
/**
|
|
170
|
-
*
|
|
170
|
+
* Index on which to perform the request.
|
|
171
171
|
*/
|
|
172
172
|
indexName: string;
|
|
173
173
|
deleteByParams: DeleteByParams;
|
|
@@ -178,7 +178,7 @@ export type DeleteByProps = {
|
|
|
178
178
|
*/
|
|
179
179
|
export type DeleteIndexProps = {
|
|
180
180
|
/**
|
|
181
|
-
*
|
|
181
|
+
* Index on which to perform the request.
|
|
182
182
|
*/
|
|
183
183
|
indexName: string;
|
|
184
184
|
};
|
|
@@ -188,11 +188,11 @@ export type DeleteIndexProps = {
|
|
|
188
188
|
*/
|
|
189
189
|
export type DeleteObjectProps = {
|
|
190
190
|
/**
|
|
191
|
-
*
|
|
191
|
+
* Index on which to perform the request.
|
|
192
192
|
*/
|
|
193
193
|
indexName: string;
|
|
194
194
|
/**
|
|
195
|
-
* Unique
|
|
195
|
+
* Unique record (object) identifier.
|
|
196
196
|
*/
|
|
197
197
|
objectID: string;
|
|
198
198
|
};
|
|
@@ -202,15 +202,15 @@ export type DeleteObjectProps = {
|
|
|
202
202
|
*/
|
|
203
203
|
export type DeleteRuleProps = {
|
|
204
204
|
/**
|
|
205
|
-
*
|
|
205
|
+
* Index on which to perform the request.
|
|
206
206
|
*/
|
|
207
207
|
indexName: string;
|
|
208
208
|
/**
|
|
209
|
-
* Unique identifier of
|
|
209
|
+
* Unique identifier of a rule object.
|
|
210
210
|
*/
|
|
211
211
|
objectID: string;
|
|
212
212
|
/**
|
|
213
|
-
*
|
|
213
|
+
* Indicates whether changed index settings are forwarded to the replica indices.
|
|
214
214
|
*/
|
|
215
215
|
forwardToReplicas?: boolean;
|
|
216
216
|
};
|
|
@@ -220,7 +220,7 @@ export type DeleteRuleProps = {
|
|
|
220
220
|
*/
|
|
221
221
|
export type DeleteSourceProps = {
|
|
222
222
|
/**
|
|
223
|
-
*
|
|
223
|
+
* IP address range of the source.
|
|
224
224
|
*/
|
|
225
225
|
source: string;
|
|
226
226
|
};
|
|
@@ -230,15 +230,15 @@ export type DeleteSourceProps = {
|
|
|
230
230
|
*/
|
|
231
231
|
export type DeleteSynonymProps = {
|
|
232
232
|
/**
|
|
233
|
-
*
|
|
233
|
+
* Index on which to perform the request.
|
|
234
234
|
*/
|
|
235
235
|
indexName: string;
|
|
236
236
|
/**
|
|
237
|
-
* Unique identifier of
|
|
237
|
+
* Unique identifier of a synonym object.
|
|
238
238
|
*/
|
|
239
239
|
objectID: string;
|
|
240
240
|
/**
|
|
241
|
-
*
|
|
241
|
+
* Indicates whether changed index settings are forwarded to the replica indices.
|
|
242
242
|
*/
|
|
243
243
|
forwardToReplicas?: boolean;
|
|
244
244
|
};
|
|
@@ -248,11 +248,11 @@ export type DeleteSynonymProps = {
|
|
|
248
248
|
*/
|
|
249
249
|
export type GetProps = {
|
|
250
250
|
/**
|
|
251
|
-
*
|
|
251
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
252
252
|
*/
|
|
253
253
|
path: string;
|
|
254
254
|
/**
|
|
255
|
-
* Query parameters to
|
|
255
|
+
* Query parameters to apply to the current query.
|
|
256
256
|
*/
|
|
257
257
|
parameters?: Record<string, any>;
|
|
258
258
|
};
|
|
@@ -262,7 +262,7 @@ export type GetProps = {
|
|
|
262
262
|
*/
|
|
263
263
|
export type GetApiKeyProps = {
|
|
264
264
|
/**
|
|
265
|
-
* API
|
|
265
|
+
* API key.
|
|
266
266
|
*/
|
|
267
267
|
key: string;
|
|
268
268
|
};
|
|
@@ -272,15 +272,15 @@ export type GetApiKeyProps = {
|
|
|
272
272
|
*/
|
|
273
273
|
export type GetLogsProps = {
|
|
274
274
|
/**
|
|
275
|
-
* First entry to retrieve
|
|
275
|
+
* First log entry to retrieve. Sorted by decreasing date with 0 being the most recent.
|
|
276
276
|
*/
|
|
277
277
|
offset?: number;
|
|
278
278
|
/**
|
|
279
|
-
* Maximum number of entries to retrieve.
|
|
279
|
+
* Maximum number of entries to retrieve.
|
|
280
280
|
*/
|
|
281
281
|
length?: number;
|
|
282
282
|
/**
|
|
283
|
-
* Index for which log entries should be retrieved. When omitted, log entries are retrieved
|
|
283
|
+
* Index for which log entries should be retrieved. When omitted, log entries are retrieved for all indices.
|
|
284
284
|
*/
|
|
285
285
|
indexName?: string;
|
|
286
286
|
/**
|
|
@@ -294,15 +294,15 @@ export type GetLogsProps = {
|
|
|
294
294
|
*/
|
|
295
295
|
export type GetObjectProps = {
|
|
296
296
|
/**
|
|
297
|
-
*
|
|
297
|
+
* Index on which to perform the request.
|
|
298
298
|
*/
|
|
299
299
|
indexName: string;
|
|
300
300
|
/**
|
|
301
|
-
* Unique
|
|
301
|
+
* Unique record (object) identifier.
|
|
302
302
|
*/
|
|
303
303
|
objectID: string;
|
|
304
304
|
/**
|
|
305
|
-
*
|
|
305
|
+
* Attributes to include with the records in the response. This is useful to reduce the size of the API response. By default, all retrievable attributes are returned. `objectID` is always retrieved, even when not specified. [`unretrievableAttributes`](https://www.algolia.com/doc/api-reference/api-parameters/unretrievableAttributes/) won\'t be retrieved unless the request is authenticated with the admin API key.
|
|
306
306
|
*/
|
|
307
307
|
attributesToRetrieve?: string[];
|
|
308
308
|
};
|
|
@@ -312,11 +312,11 @@ export type GetObjectProps = {
|
|
|
312
312
|
*/
|
|
313
313
|
export type GetRuleProps = {
|
|
314
314
|
/**
|
|
315
|
-
*
|
|
315
|
+
* Index on which to perform the request.
|
|
316
316
|
*/
|
|
317
317
|
indexName: string;
|
|
318
318
|
/**
|
|
319
|
-
* Unique identifier of
|
|
319
|
+
* Unique identifier of a rule object.
|
|
320
320
|
*/
|
|
321
321
|
objectID: string;
|
|
322
322
|
};
|
|
@@ -326,7 +326,7 @@ export type GetRuleProps = {
|
|
|
326
326
|
*/
|
|
327
327
|
export type GetSettingsProps = {
|
|
328
328
|
/**
|
|
329
|
-
*
|
|
329
|
+
* Index on which to perform the request.
|
|
330
330
|
*/
|
|
331
331
|
indexName: string;
|
|
332
332
|
};
|
|
@@ -336,11 +336,11 @@ export type GetSettingsProps = {
|
|
|
336
336
|
*/
|
|
337
337
|
export type GetSynonymProps = {
|
|
338
338
|
/**
|
|
339
|
-
*
|
|
339
|
+
* Index on which to perform the request.
|
|
340
340
|
*/
|
|
341
341
|
indexName: string;
|
|
342
342
|
/**
|
|
343
|
-
* Unique identifier of
|
|
343
|
+
* Unique identifier of a synonym object.
|
|
344
344
|
*/
|
|
345
345
|
objectID: string;
|
|
346
346
|
};
|
|
@@ -350,11 +350,11 @@ export type GetSynonymProps = {
|
|
|
350
350
|
*/
|
|
351
351
|
export type GetTaskProps = {
|
|
352
352
|
/**
|
|
353
|
-
*
|
|
353
|
+
* Index on which to perform the request.
|
|
354
354
|
*/
|
|
355
355
|
indexName: string;
|
|
356
356
|
/**
|
|
357
|
-
* Unique
|
|
357
|
+
* Unique task identifier.
|
|
358
358
|
*/
|
|
359
359
|
taskID: number;
|
|
360
360
|
};
|
|
@@ -374,7 +374,7 @@ export type GetUserIdProps = {
|
|
|
374
374
|
*/
|
|
375
375
|
export type HasPendingMappingsProps = {
|
|
376
376
|
/**
|
|
377
|
-
*
|
|
377
|
+
* Indicates whether to include the cluster\'s pending mapping state in the response.
|
|
378
378
|
*/
|
|
379
379
|
getClusters?: boolean;
|
|
380
380
|
};
|
|
@@ -384,9 +384,13 @@ export type HasPendingMappingsProps = {
|
|
|
384
384
|
*/
|
|
385
385
|
export type ListIndicesProps = {
|
|
386
386
|
/**
|
|
387
|
-
*
|
|
387
|
+
* Returns the requested page number. The page size is determined by the `hitsPerPage` parameter. You can see the number of available pages in the `nbPages` response attribute. When `page` is null, the API response is not paginated.
|
|
388
388
|
*/
|
|
389
389
|
page?: number;
|
|
390
|
+
/**
|
|
391
|
+
* Maximum number of hits per page.
|
|
392
|
+
*/
|
|
393
|
+
hitsPerPage?: number;
|
|
390
394
|
};
|
|
391
395
|
|
|
392
396
|
/**
|
|
@@ -394,11 +398,11 @@ export type ListIndicesProps = {
|
|
|
394
398
|
*/
|
|
395
399
|
export type ListUserIdsProps = {
|
|
396
400
|
/**
|
|
397
|
-
*
|
|
401
|
+
* Returns the requested page number. The page size is determined by the `hitsPerPage` parameter. You can see the number of available pages in the `nbPages` response attribute. When `page` is null, the API response is not paginated.
|
|
398
402
|
*/
|
|
399
403
|
page?: number;
|
|
400
404
|
/**
|
|
401
|
-
* Maximum number of
|
|
405
|
+
* Maximum number of hits per page.
|
|
402
406
|
*/
|
|
403
407
|
hitsPerPage?: number;
|
|
404
408
|
};
|
|
@@ -408,7 +412,7 @@ export type ListUserIdsProps = {
|
|
|
408
412
|
*/
|
|
409
413
|
export type OperationIndexProps = {
|
|
410
414
|
/**
|
|
411
|
-
*
|
|
415
|
+
* Index on which to perform the request.
|
|
412
416
|
*/
|
|
413
417
|
indexName: string;
|
|
414
418
|
operationIndexParams: OperationIndexParams;
|
|
@@ -419,19 +423,19 @@ export type OperationIndexProps = {
|
|
|
419
423
|
*/
|
|
420
424
|
export type PartialUpdateObjectProps = {
|
|
421
425
|
/**
|
|
422
|
-
*
|
|
426
|
+
* Index on which to perform the request.
|
|
423
427
|
*/
|
|
424
428
|
indexName: string;
|
|
425
429
|
/**
|
|
426
|
-
* Unique
|
|
430
|
+
* Unique record (object) identifier.
|
|
427
431
|
*/
|
|
428
432
|
objectID: string;
|
|
429
433
|
/**
|
|
430
|
-
*
|
|
434
|
+
* Object with attributes to update.
|
|
431
435
|
*/
|
|
432
436
|
attributesToUpdate: Record<string, AttributeToUpdate>;
|
|
433
437
|
/**
|
|
434
|
-
*
|
|
438
|
+
* Indicates whether to create a new record if it doesn\'t exist yet.
|
|
435
439
|
*/
|
|
436
440
|
createIfNotExists?: boolean;
|
|
437
441
|
};
|
|
@@ -441,15 +445,15 @@ export type PartialUpdateObjectProps = {
|
|
|
441
445
|
*/
|
|
442
446
|
export type PostProps = {
|
|
443
447
|
/**
|
|
444
|
-
*
|
|
448
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
445
449
|
*/
|
|
446
450
|
path: string;
|
|
447
451
|
/**
|
|
448
|
-
* Query parameters to
|
|
452
|
+
* Query parameters to apply to the current query.
|
|
449
453
|
*/
|
|
450
454
|
parameters?: Record<string, any>;
|
|
451
455
|
/**
|
|
452
|
-
*
|
|
456
|
+
* Parameters to send with the custom request.
|
|
453
457
|
*/
|
|
454
458
|
body?: Record<string, any>;
|
|
455
459
|
};
|
|
@@ -459,15 +463,15 @@ export type PostProps = {
|
|
|
459
463
|
*/
|
|
460
464
|
export type PutProps = {
|
|
461
465
|
/**
|
|
462
|
-
*
|
|
466
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
463
467
|
*/
|
|
464
468
|
path: string;
|
|
465
469
|
/**
|
|
466
|
-
* Query parameters to
|
|
470
|
+
* Query parameters to apply to the current query.
|
|
467
471
|
*/
|
|
468
472
|
parameters?: Record<string, any>;
|
|
469
473
|
/**
|
|
470
|
-
*
|
|
474
|
+
* Parameters to send with the custom request.
|
|
471
475
|
*/
|
|
472
476
|
body?: Record<string, any>;
|
|
473
477
|
};
|
|
@@ -487,7 +491,7 @@ export type RemoveUserIdProps = {
|
|
|
487
491
|
*/
|
|
488
492
|
export type ReplaceSourcesProps = {
|
|
489
493
|
/**
|
|
490
|
-
*
|
|
494
|
+
* Allowed sources.
|
|
491
495
|
*/
|
|
492
496
|
source: Source[];
|
|
493
497
|
};
|
|
@@ -497,7 +501,7 @@ export type ReplaceSourcesProps = {
|
|
|
497
501
|
*/
|
|
498
502
|
export type RestoreApiKeyProps = {
|
|
499
503
|
/**
|
|
500
|
-
* API
|
|
504
|
+
* API key.
|
|
501
505
|
*/
|
|
502
506
|
key: string;
|
|
503
507
|
};
|
|
@@ -507,7 +511,7 @@ export type RestoreApiKeyProps = {
|
|
|
507
511
|
*/
|
|
508
512
|
export type SaveObjectProps = {
|
|
509
513
|
/**
|
|
510
|
-
*
|
|
514
|
+
* Index on which to perform the request.
|
|
511
515
|
*/
|
|
512
516
|
indexName: string;
|
|
513
517
|
/**
|
|
@@ -521,16 +525,16 @@ export type SaveObjectProps = {
|
|
|
521
525
|
*/
|
|
522
526
|
export type SaveRuleProps = {
|
|
523
527
|
/**
|
|
524
|
-
*
|
|
528
|
+
* Index on which to perform the request.
|
|
525
529
|
*/
|
|
526
530
|
indexName: string;
|
|
527
531
|
/**
|
|
528
|
-
* Unique identifier of
|
|
532
|
+
* Unique identifier of a rule object.
|
|
529
533
|
*/
|
|
530
534
|
objectID: string;
|
|
531
535
|
rule: Rule;
|
|
532
536
|
/**
|
|
533
|
-
*
|
|
537
|
+
* Indicates whether changed index settings are forwarded to the replica indices.
|
|
534
538
|
*/
|
|
535
539
|
forwardToReplicas?: boolean;
|
|
536
540
|
};
|
|
@@ -540,16 +544,16 @@ export type SaveRuleProps = {
|
|
|
540
544
|
*/
|
|
541
545
|
export type SaveRulesProps = {
|
|
542
546
|
/**
|
|
543
|
-
*
|
|
547
|
+
* Index on which to perform the request.
|
|
544
548
|
*/
|
|
545
549
|
indexName: string;
|
|
546
550
|
rules: Rule[];
|
|
547
551
|
/**
|
|
548
|
-
*
|
|
552
|
+
* Indicates whether changed index settings are forwarded to the replica indices.
|
|
549
553
|
*/
|
|
550
554
|
forwardToReplicas?: boolean;
|
|
551
555
|
/**
|
|
552
|
-
*
|
|
556
|
+
* Indicates whether existing rules should be deleted before adding this batch.
|
|
553
557
|
*/
|
|
554
558
|
clearExistingRules?: boolean;
|
|
555
559
|
};
|
|
@@ -559,16 +563,16 @@ export type SaveRulesProps = {
|
|
|
559
563
|
*/
|
|
560
564
|
export type SaveSynonymProps = {
|
|
561
565
|
/**
|
|
562
|
-
*
|
|
566
|
+
* Index on which to perform the request.
|
|
563
567
|
*/
|
|
564
568
|
indexName: string;
|
|
565
569
|
/**
|
|
566
|
-
* Unique identifier of
|
|
570
|
+
* Unique identifier of a synonym object.
|
|
567
571
|
*/
|
|
568
572
|
objectID: string;
|
|
569
573
|
synonymHit: SynonymHit;
|
|
570
574
|
/**
|
|
571
|
-
*
|
|
575
|
+
* Indicates whether changed index settings are forwarded to the replica indices.
|
|
572
576
|
*/
|
|
573
577
|
forwardToReplicas?: boolean;
|
|
574
578
|
};
|
|
@@ -578,16 +582,16 @@ export type SaveSynonymProps = {
|
|
|
578
582
|
*/
|
|
579
583
|
export type SaveSynonymsProps = {
|
|
580
584
|
/**
|
|
581
|
-
*
|
|
585
|
+
* Index on which to perform the request.
|
|
582
586
|
*/
|
|
583
587
|
indexName: string;
|
|
584
588
|
synonymHit: SynonymHit[];
|
|
585
589
|
/**
|
|
586
|
-
*
|
|
590
|
+
* Indicates whether changed index settings are forwarded to the replica indices.
|
|
587
591
|
*/
|
|
588
592
|
forwardToReplicas?: boolean;
|
|
589
593
|
/**
|
|
590
|
-
*
|
|
594
|
+
* Indicates whether to replace all synonyms in the index with the ones sent with this request.
|
|
591
595
|
*/
|
|
592
596
|
replaceExistingSynonyms?: boolean;
|
|
593
597
|
};
|
|
@@ -629,7 +633,7 @@ export type LegacySearchMethodProps = LegacySearchQuery[];
|
|
|
629
633
|
*/
|
|
630
634
|
export type SearchDictionaryEntriesProps = {
|
|
631
635
|
/**
|
|
632
|
-
*
|
|
636
|
+
* Dictionary to search in.
|
|
633
637
|
*/
|
|
634
638
|
dictionaryName: DictionaryType;
|
|
635
639
|
searchDictionaryEntriesParams: SearchDictionaryEntriesParams;
|
|
@@ -640,11 +644,11 @@ export type SearchDictionaryEntriesProps = {
|
|
|
640
644
|
*/
|
|
641
645
|
export type SearchForFacetValuesProps = {
|
|
642
646
|
/**
|
|
643
|
-
*
|
|
647
|
+
* Index on which to perform the request.
|
|
644
648
|
*/
|
|
645
649
|
indexName: string;
|
|
646
650
|
/**
|
|
647
|
-
*
|
|
651
|
+
* Facet name.
|
|
648
652
|
*/
|
|
649
653
|
facetName: string;
|
|
650
654
|
searchForFacetValuesRequest?: SearchForFacetValuesRequest;
|
|
@@ -655,7 +659,7 @@ export type SearchForFacetValuesProps = {
|
|
|
655
659
|
*/
|
|
656
660
|
export type SearchRulesProps = {
|
|
657
661
|
/**
|
|
658
|
-
*
|
|
662
|
+
* Index on which to perform the request.
|
|
659
663
|
*/
|
|
660
664
|
indexName: string;
|
|
661
665
|
searchRulesParams?: SearchRulesParams;
|
|
@@ -666,7 +670,7 @@ export type SearchRulesProps = {
|
|
|
666
670
|
*/
|
|
667
671
|
export type SearchSingleIndexProps = {
|
|
668
672
|
/**
|
|
669
|
-
*
|
|
673
|
+
* Index on which to perform the request.
|
|
670
674
|
*/
|
|
671
675
|
indexName: string;
|
|
672
676
|
searchParams?: SearchParams;
|
|
@@ -677,23 +681,23 @@ export type SearchSingleIndexProps = {
|
|
|
677
681
|
*/
|
|
678
682
|
export type SearchSynonymsProps = {
|
|
679
683
|
/**
|
|
680
|
-
*
|
|
684
|
+
* Index on which to perform the request.
|
|
681
685
|
*/
|
|
682
686
|
indexName: string;
|
|
683
687
|
/**
|
|
684
|
-
*
|
|
688
|
+
* Search for specific [types of synonyms](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/adding-synonyms/#the-different-types-of-synonyms).
|
|
685
689
|
*/
|
|
686
690
|
type?: SynonymType;
|
|
687
691
|
/**
|
|
688
|
-
*
|
|
692
|
+
* Returns the requested page number (the first page is 0). Page size is set by `hitsPerPage`. When null, there\'s no pagination.
|
|
689
693
|
*/
|
|
690
694
|
page?: number;
|
|
691
695
|
/**
|
|
692
|
-
* Maximum number of
|
|
696
|
+
* Maximum number of hits per page.
|
|
693
697
|
*/
|
|
694
698
|
hitsPerPage?: number;
|
|
695
699
|
/**
|
|
696
|
-
*
|
|
700
|
+
* Body of the `searchSynonyms` operation.
|
|
697
701
|
*/
|
|
698
702
|
searchSynonymsParams?: SearchSynonymsParams;
|
|
699
703
|
};
|
|
@@ -703,12 +707,12 @@ export type SearchSynonymsProps = {
|
|
|
703
707
|
*/
|
|
704
708
|
export type SetSettingsProps = {
|
|
705
709
|
/**
|
|
706
|
-
*
|
|
710
|
+
* Index on which to perform the request.
|
|
707
711
|
*/
|
|
708
712
|
indexName: string;
|
|
709
713
|
indexSettings: IndexSettings;
|
|
710
714
|
/**
|
|
711
|
-
*
|
|
715
|
+
* Indicates whether changed index settings are forwarded to the replica indices.
|
|
712
716
|
*/
|
|
713
717
|
forwardToReplicas?: boolean;
|
|
714
718
|
};
|
|
@@ -718,7 +722,7 @@ export type SetSettingsProps = {
|
|
|
718
722
|
*/
|
|
719
723
|
export type UpdateApiKeyProps = {
|
|
720
724
|
/**
|
|
721
|
-
* API
|
|
725
|
+
* API key.
|
|
722
726
|
*/
|
|
723
727
|
key: string;
|
|
724
728
|
apiKey: ApiKey;
|
package/model/consequence.ts
CHANGED
|
@@ -5,23 +5,23 @@ import type { ConsequenceParams } from './consequenceParams';
|
|
|
5
5
|
import type { Promote } from './promote';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* [Consequences](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#consequences) of a rule.
|
|
9
9
|
*/
|
|
10
10
|
export type Consequence = {
|
|
11
11
|
params?: ConsequenceParams;
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Records to promote.
|
|
15
15
|
*/
|
|
16
16
|
promote?: Promote[];
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
* Only use in combination with the promote consequence. When true
|
|
19
|
+
* Only use in combination with the `promote` consequence. When `true`, promoted results will be restricted to match the filters of the current search. When `false`, the promoted results will show up regardless of the filters.
|
|
20
20
|
*/
|
|
21
21
|
filterPromotes?: boolean;
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Records to hide. By default, you can hide up to 50 records per rule.
|
|
25
25
|
*/
|
|
26
26
|
hide?: ConsequenceHide[];
|
|
27
27
|
|