@algolia/client-search 5.0.0-alpha.106 → 5.0.0-alpha.107
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/builds/browser.d.ts +1 -1
- package/dist/builds/node.d.ts +1 -1
- package/dist/client-search.cjs +121 -121
- package/dist/client-search.esm.browser.js +121 -121
- package/dist/client-search.esm.node.js +121 -121
- 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 +1 -1
- package/dist/model/anchoring.d.ts +1 -1
- package/dist/model/apiKey.d.ts +8 -8
- package/dist/model/aroundPrecision.d.ts +1 -1
- package/dist/model/aroundPrecisionFromValueInner.d.ts +9 -0
- package/dist/model/aroundPrecisionFromValueInner.d.ts.map +1 -1
- package/dist/model/aroundRadius.d.ts +1 -1
- package/dist/model/aroundRadiusAll.d.ts +3 -0
- package/dist/model/aroundRadiusAll.d.ts.map +1 -1
- package/dist/model/automaticFacetFilter.d.ts +4 -4
- package/dist/model/automaticFacetFilters.d.ts +1 -1
- package/dist/model/baseIndexSettings.d.ts +20 -16
- package/dist/model/baseIndexSettings.d.ts.map +1 -1
- package/dist/model/baseSearchParamsWithoutQuery.d.ts +24 -28
- package/dist/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
- package/dist/model/baseSearchResponse.d.ts +6 -6
- package/dist/model/batchDictionaryEntriesParams.d.ts +3 -3
- package/dist/model/batchResponse.d.ts +2 -2
- package/dist/model/builtInOperation.d.ts +2 -2
- package/dist/model/builtInOperationType.d.ts +1 -1
- package/dist/model/clientMethodProps.d.ts +63 -63
- package/dist/model/condition.d.ts +7 -3
- package/dist/model/condition.d.ts.map +1 -1
- package/dist/model/consequence.d.ts +5 -5
- package/dist/model/consequenceHide.d.ts +2 -2
- package/dist/model/consequenceQuery.d.ts +1 -1
- package/dist/model/consequenceQueryObject.d.ts +2 -2
- package/dist/model/createdAtResponse.d.ts +1 -1
- package/dist/model/cursor.d.ts +1 -1
- package/dist/model/deleteByParams.d.ts +4 -4
- package/dist/model/deletedAtResponse.d.ts +1 -1
- package/dist/model/dictionaryEntry.d.ts +5 -5
- 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/edit.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 +2 -2
- package/dist/model/facetOrdering.d.ts +2 -2
- package/dist/model/facets.d.ts +2 -2
- package/dist/model/getObjectsRequest.d.ts +3 -3
- package/dist/model/getObjectsResponse.d.ts +1 -1
- package/dist/model/hasPendingMappingsResponse.d.ts +1 -1
- package/dist/model/highlightResultOption.d.ts +3 -3
- package/dist/model/hit.d.ts +4 -4
- package/dist/model/ignorePlurals.d.ts +1 -1
- package/dist/model/index.d.ts +1 -0
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/indexSettings.d.ts +1 -1
- package/dist/model/indexSettingsAsSearchParams.d.ts +30 -34
- package/dist/model/indexSettingsAsSearchParams.d.ts.map +1 -1
- package/dist/model/log.d.ts +11 -11
- package/dist/model/logQuery.d.ts +1 -1
- package/dist/model/matchLevel.d.ts +1 -1
- package/dist/model/mode.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 +2 -2
- package/dist/model/promoteObjectIDs.d.ts +2 -2
- package/dist/model/queryType.d.ts +1 -1
- package/dist/model/rankingInfo.d.ts +10 -7
- package/dist/model/rankingInfo.d.ts.map +1 -1
- package/dist/model/reRankingApplyFilter.d.ts +1 -1
- package/dist/model/removeStopWords.d.ts +1 -1
- package/dist/model/removeWordsIfNoResults.d.ts +1 -1
- package/dist/model/renderingContent.d.ts +1 -1
- package/dist/model/rule.d.ts +5 -5
- package/dist/model/saveObjectResponse.d.ts +3 -3
- package/dist/model/saveSynonymResponse.d.ts +1 -1
- package/dist/model/searchDictionaryEntriesParams.d.ts +4 -4
- package/dist/model/searchDictionaryEntriesResponse.d.ts +20 -0
- package/dist/model/searchDictionaryEntriesResponse.d.ts.map +1 -0
- package/dist/model/searchForFacetValuesRequest.d.ts +1 -1
- package/dist/model/searchForFacetValuesResponse.d.ts +3 -0
- package/dist/model/searchForFacetValuesResponse.d.ts.map +1 -1
- package/dist/model/searchForFacetsOptions.d.ts +2 -2
- package/dist/model/searchForHitsOptions.d.ts +1 -1
- package/dist/model/searchHits.d.ts +4 -1
- package/dist/model/searchHits.d.ts.map +1 -1
- package/dist/model/searchParamsQuery.d.ts +1 -1
- package/dist/model/searchRulesParams.d.ts +4 -8
- package/dist/model/searchRulesParams.d.ts.map +1 -1
- package/dist/model/searchRulesResponse.d.ts +2 -2
- package/dist/model/searchStrategy.d.ts +1 -1
- package/dist/model/searchSynonymsParams.d.ts +2 -2
- package/dist/model/searchSynonymsResponse.d.ts +2 -2
- package/dist/model/searchUserIdsParams.d.ts +1 -1
- package/dist/model/searchUserIdsResponse.d.ts +2 -2
- package/dist/model/securedAPIKeyRestrictions.d.ts +5 -5
- package/dist/model/semanticSearch.d.ts +2 -2
- package/dist/model/snippetResultOption.d.ts +2 -2
- package/dist/model/sortRemainingBy.d.ts +1 -1
- package/dist/model/tagFilters.d.ts +1 -1
- package/dist/model/taskStatus.d.ts +1 -1
- package/dist/model/timeRange.d.ts +2 -2
- package/dist/model/typoTolerance.d.ts +1 -1
- package/dist/model/typoToleranceEnum.d.ts +3 -0
- package/dist/model/typoToleranceEnum.d.ts.map +1 -1
- package/dist/model/updatedAtResponse.d.ts +1 -1
- package/dist/model/updatedAtWithObjectIdResponse.d.ts +2 -2
- package/dist/model/updatedRuleResponse.d.ts +2 -2
- package/dist/model/userHit.d.ts +1 -1
- package/dist/model/userId.d.ts +1 -1
- package/dist/model/value.d.ts +1 -1
- package/dist/src/searchClient.d.ts +124 -123
- 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 +1 -1
- package/model/anchoring.ts +1 -1
- package/model/apiKey.ts +8 -8
- package/model/aroundPrecision.ts +1 -1
- package/model/aroundPrecisionFromValueInner.ts +9 -0
- package/model/aroundRadius.ts +1 -1
- package/model/aroundRadiusAll.ts +3 -0
- package/model/automaticFacetFilter.ts +4 -4
- package/model/automaticFacetFilters.ts +1 -1
- package/model/baseIndexSettings.ts +21 -16
- package/model/baseSearchParamsWithoutQuery.ts +24 -29
- package/model/baseSearchResponse.ts +6 -6
- package/model/batchDictionaryEntriesParams.ts +3 -3
- package/model/batchResponse.ts +2 -2
- package/model/builtInOperation.ts +2 -2
- package/model/builtInOperationType.ts +1 -1
- package/model/clientMethodProps.ts +63 -63
- package/model/condition.ts +8 -3
- package/model/consequence.ts +5 -5
- package/model/consequenceHide.ts +2 -2
- package/model/consequenceQuery.ts +1 -1
- package/model/consequenceQueryObject.ts +2 -2
- package/model/createdAtResponse.ts +1 -1
- package/model/cursor.ts +1 -1
- package/model/deleteByParams.ts +4 -4
- package/model/deletedAtResponse.ts +1 -1
- package/model/dictionaryEntry.ts +5 -5
- 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/edit.ts +1 -1
- package/model/exactOnSingleWordQuery.ts +1 -1
- package/model/facetFilters.ts +1 -1
- package/model/facetHits.ts +2 -2
- package/model/facetOrdering.ts +2 -2
- package/model/facets.ts +2 -2
- package/model/getObjectsRequest.ts +3 -3
- package/model/getObjectsResponse.ts +1 -1
- package/model/hasPendingMappingsResponse.ts +1 -1
- package/model/highlightResultOption.ts +3 -3
- package/model/hit.ts +4 -4
- package/model/ignorePlurals.ts +1 -1
- package/model/index.ts +1 -0
- package/model/indexSettings.ts +1 -1
- package/model/indexSettingsAsSearchParams.ts +30 -35
- package/model/log.ts +11 -11
- package/model/logQuery.ts +1 -1
- package/model/matchLevel.ts +1 -1
- package/model/mode.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 +2 -2
- package/model/promoteObjectIDs.ts +2 -2
- package/model/queryType.ts +1 -1
- package/model/rankingInfo.ts +10 -7
- package/model/reRankingApplyFilter.ts +1 -1
- package/model/removeStopWords.ts +1 -1
- package/model/removeWordsIfNoResults.ts +1 -1
- package/model/renderingContent.ts +1 -1
- package/model/rule.ts +5 -5
- package/model/saveObjectResponse.ts +3 -3
- package/model/saveSynonymResponse.ts +1 -1
- package/model/searchDictionaryEntriesParams.ts +4 -4
- package/model/searchDictionaryEntriesResponse.ts +25 -0
- package/model/searchForFacetValuesRequest.ts +1 -1
- package/model/searchForFacetValuesResponse.ts +3 -0
- package/model/searchForFacetsOptions.ts +2 -2
- package/model/searchForHitsOptions.ts +1 -1
- package/model/searchHits.ts +4 -1
- package/model/searchParamsQuery.ts +1 -1
- package/model/searchRulesParams.ts +4 -9
- package/model/searchRulesResponse.ts +2 -2
- package/model/searchStrategy.ts +1 -1
- package/model/searchSynonymsParams.ts +2 -2
- package/model/searchSynonymsResponse.ts +2 -2
- package/model/searchUserIdsParams.ts +1 -1
- package/model/searchUserIdsResponse.ts +2 -2
- package/model/securedAPIKeyRestrictions.ts +5 -5
- package/model/semanticSearch.ts +2 -2
- package/model/snippetResultOption.ts +2 -2
- package/model/sortRemainingBy.ts +1 -1
- package/model/tagFilters.ts +1 -1
- package/model/taskStatus.ts +1 -1
- package/model/timeRange.ts +2 -2
- package/model/typoTolerance.ts +1 -1
- package/model/typoToleranceEnum.ts +3 -0
- package/model/updatedAtResponse.ts +1 -1
- package/model/updatedAtWithObjectIdResponse.ts +2 -2
- package/model/updatedRuleResponse.ts +2 -2
- package/model/userHit.ts +1 -1
- package/model/userId.ts +1 -1
- package/model/value.ts +1 -1
- package/package.json +7 -7
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import type { BuiltInOperationType } from './builtInOperationType';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Update to perform on the attribute.
|
|
7
7
|
*/
|
|
8
8
|
export type BuiltInOperation = {
|
|
9
9
|
_operation: BuiltInOperationType;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* Value that corresponds to the operation, for example an `Increment` or `Decrement` step, `Add` or `Remove` value.
|
|
12
|
+
* Value that corresponds to the operation, for example an `Increment` or `Decrement` step, or an `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
|
+
* How to change the attribute.
|
|
5
5
|
*/
|
|
6
6
|
export type BuiltInOperationType =
|
|
7
7
|
| 'Add'
|
|
@@ -36,15 +36,15 @@ import type { UpdatedAtResponse } from './updatedAtResponse';
|
|
|
36
36
|
*/
|
|
37
37
|
export type AddOrUpdateObjectProps = {
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Name of the index on which to perform the operation.
|
|
40
40
|
*/
|
|
41
41
|
indexName: string;
|
|
42
42
|
/**
|
|
43
|
-
* Unique record
|
|
43
|
+
* Unique record identifier.
|
|
44
44
|
*/
|
|
45
45
|
objectID: string;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* The record, a schemaless object with attributes that are useful in the context of search and discovery.
|
|
48
48
|
*/
|
|
49
49
|
body: Record<string, any>;
|
|
50
50
|
};
|
|
@@ -54,7 +54,7 @@ export type AddOrUpdateObjectProps = {
|
|
|
54
54
|
*/
|
|
55
55
|
export type AssignUserIdProps = {
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* User ID to assign.
|
|
58
58
|
*/
|
|
59
59
|
xAlgoliaUserID: string;
|
|
60
60
|
assignUserIdParams: AssignUserIdParams;
|
|
@@ -65,7 +65,7 @@ export type AssignUserIdProps = {
|
|
|
65
65
|
*/
|
|
66
66
|
export type BatchProps = {
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* Name of the index on which to perform the operation.
|
|
69
69
|
*/
|
|
70
70
|
indexName: string;
|
|
71
71
|
batchWriteParams: BatchWriteParams;
|
|
@@ -76,7 +76,7 @@ export type BatchProps = {
|
|
|
76
76
|
*/
|
|
77
77
|
export type BatchAssignUserIdsProps = {
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* User ID to assign.
|
|
80
80
|
*/
|
|
81
81
|
xAlgoliaUserID: string;
|
|
82
82
|
batchAssignUserIdsParams: BatchAssignUserIdsParams;
|
|
@@ -87,7 +87,7 @@ export type BatchAssignUserIdsProps = {
|
|
|
87
87
|
*/
|
|
88
88
|
export type BatchDictionaryEntriesProps = {
|
|
89
89
|
/**
|
|
90
|
-
* Dictionary to search
|
|
90
|
+
* Dictionary type in which to search.
|
|
91
91
|
*/
|
|
92
92
|
dictionaryName: DictionaryType;
|
|
93
93
|
batchDictionaryEntriesParams: BatchDictionaryEntriesParams;
|
|
@@ -98,7 +98,7 @@ export type BatchDictionaryEntriesProps = {
|
|
|
98
98
|
*/
|
|
99
99
|
export type BrowseProps = {
|
|
100
100
|
/**
|
|
101
|
-
*
|
|
101
|
+
* Name of the index on which to perform the operation.
|
|
102
102
|
*/
|
|
103
103
|
indexName: string;
|
|
104
104
|
browseParams?: BrowseParams;
|
|
@@ -109,7 +109,7 @@ export type BrowseProps = {
|
|
|
109
109
|
*/
|
|
110
110
|
export type ClearObjectsProps = {
|
|
111
111
|
/**
|
|
112
|
-
*
|
|
112
|
+
* Name of the index on which to perform the operation.
|
|
113
113
|
*/
|
|
114
114
|
indexName: string;
|
|
115
115
|
};
|
|
@@ -119,11 +119,11 @@ export type ClearObjectsProps = {
|
|
|
119
119
|
*/
|
|
120
120
|
export type ClearRulesProps = {
|
|
121
121
|
/**
|
|
122
|
-
*
|
|
122
|
+
* Name of the index on which to perform the operation.
|
|
123
123
|
*/
|
|
124
124
|
indexName: string;
|
|
125
125
|
/**
|
|
126
|
-
*
|
|
126
|
+
* Whether changes are applied to replica indices.
|
|
127
127
|
*/
|
|
128
128
|
forwardToReplicas?: boolean;
|
|
129
129
|
};
|
|
@@ -133,11 +133,11 @@ export type ClearRulesProps = {
|
|
|
133
133
|
*/
|
|
134
134
|
export type ClearSynonymsProps = {
|
|
135
135
|
/**
|
|
136
|
-
*
|
|
136
|
+
* Name of the index on which to perform the operation.
|
|
137
137
|
*/
|
|
138
138
|
indexName: string;
|
|
139
139
|
/**
|
|
140
|
-
*
|
|
140
|
+
* Whether changes are applied to replica indices.
|
|
141
141
|
*/
|
|
142
142
|
forwardToReplicas?: boolean;
|
|
143
143
|
};
|
|
@@ -221,7 +221,7 @@ export type DeleteApiKeyProps = {
|
|
|
221
221
|
*/
|
|
222
222
|
export type DeleteByProps = {
|
|
223
223
|
/**
|
|
224
|
-
*
|
|
224
|
+
* Name of the index on which to perform the operation.
|
|
225
225
|
*/
|
|
226
226
|
indexName: string;
|
|
227
227
|
deleteByParams: DeleteByParams;
|
|
@@ -232,7 +232,7 @@ export type DeleteByProps = {
|
|
|
232
232
|
*/
|
|
233
233
|
export type DeleteIndexProps = {
|
|
234
234
|
/**
|
|
235
|
-
*
|
|
235
|
+
* Name of the index on which to perform the operation.
|
|
236
236
|
*/
|
|
237
237
|
indexName: string;
|
|
238
238
|
};
|
|
@@ -242,11 +242,11 @@ export type DeleteIndexProps = {
|
|
|
242
242
|
*/
|
|
243
243
|
export type DeleteObjectProps = {
|
|
244
244
|
/**
|
|
245
|
-
*
|
|
245
|
+
* Name of the index on which to perform the operation.
|
|
246
246
|
*/
|
|
247
247
|
indexName: string;
|
|
248
248
|
/**
|
|
249
|
-
* Unique record
|
|
249
|
+
* Unique record identifier.
|
|
250
250
|
*/
|
|
251
251
|
objectID: string;
|
|
252
252
|
};
|
|
@@ -256,7 +256,7 @@ export type DeleteObjectProps = {
|
|
|
256
256
|
*/
|
|
257
257
|
export type DeleteRuleProps = {
|
|
258
258
|
/**
|
|
259
|
-
*
|
|
259
|
+
* Name of the index on which to perform the operation.
|
|
260
260
|
*/
|
|
261
261
|
indexName: string;
|
|
262
262
|
/**
|
|
@@ -264,7 +264,7 @@ export type DeleteRuleProps = {
|
|
|
264
264
|
*/
|
|
265
265
|
objectID: string;
|
|
266
266
|
/**
|
|
267
|
-
*
|
|
267
|
+
* Whether changes are applied to replica indices.
|
|
268
268
|
*/
|
|
269
269
|
forwardToReplicas?: boolean;
|
|
270
270
|
};
|
|
@@ -284,7 +284,7 @@ export type DeleteSourceProps = {
|
|
|
284
284
|
*/
|
|
285
285
|
export type DeleteSynonymProps = {
|
|
286
286
|
/**
|
|
287
|
-
*
|
|
287
|
+
* Name of the index on which to perform the operation.
|
|
288
288
|
*/
|
|
289
289
|
indexName: string;
|
|
290
290
|
/**
|
|
@@ -292,7 +292,7 @@ export type DeleteSynonymProps = {
|
|
|
292
292
|
*/
|
|
293
293
|
objectID: string;
|
|
294
294
|
/**
|
|
295
|
-
*
|
|
295
|
+
* Whether changes are applied to replica indices.
|
|
296
296
|
*/
|
|
297
297
|
forwardToReplicas?: boolean;
|
|
298
298
|
};
|
|
@@ -312,7 +312,7 @@ export type GetApiKeyProps = {
|
|
|
312
312
|
*/
|
|
313
313
|
export type GetLogsProps = {
|
|
314
314
|
/**
|
|
315
|
-
* First log entry to retrieve.
|
|
315
|
+
* First log entry to retrieve. The most recent entries are listed first.
|
|
316
316
|
*/
|
|
317
317
|
offset?: number;
|
|
318
318
|
/**
|
|
@@ -320,11 +320,11 @@ export type GetLogsProps = {
|
|
|
320
320
|
*/
|
|
321
321
|
length?: number;
|
|
322
322
|
/**
|
|
323
|
-
* Index for which log entries
|
|
323
|
+
* Index for which to retrieve log entries. By default, log entries are retrieved for all indices.
|
|
324
324
|
*/
|
|
325
325
|
indexName?: string;
|
|
326
326
|
/**
|
|
327
|
-
* Type of log entries to retrieve.
|
|
327
|
+
* Type of log entries to retrieve. By default, all log entries are retrieved.
|
|
328
328
|
*/
|
|
329
329
|
type?: LogType;
|
|
330
330
|
};
|
|
@@ -334,15 +334,15 @@ export type GetLogsProps = {
|
|
|
334
334
|
*/
|
|
335
335
|
export type GetObjectProps = {
|
|
336
336
|
/**
|
|
337
|
-
*
|
|
337
|
+
* Name of the index on which to perform the operation.
|
|
338
338
|
*/
|
|
339
339
|
indexName: string;
|
|
340
340
|
/**
|
|
341
|
-
* Unique record
|
|
341
|
+
* Unique record identifier.
|
|
342
342
|
*/
|
|
343
343
|
objectID: string;
|
|
344
344
|
/**
|
|
345
|
-
* 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.
|
|
345
|
+
* 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. Attributes included in `unretrievableAttributes` won\'t be retrieved unless the request is authenticated with the admin API key.
|
|
346
346
|
*/
|
|
347
347
|
attributesToRetrieve?: string[];
|
|
348
348
|
};
|
|
@@ -352,7 +352,7 @@ export type GetObjectProps = {
|
|
|
352
352
|
*/
|
|
353
353
|
export type GetRuleProps = {
|
|
354
354
|
/**
|
|
355
|
-
*
|
|
355
|
+
* Name of the index on which to perform the operation.
|
|
356
356
|
*/
|
|
357
357
|
indexName: string;
|
|
358
358
|
/**
|
|
@@ -366,7 +366,7 @@ export type GetRuleProps = {
|
|
|
366
366
|
*/
|
|
367
367
|
export type GetSettingsProps = {
|
|
368
368
|
/**
|
|
369
|
-
*
|
|
369
|
+
* Name of the index on which to perform the operation.
|
|
370
370
|
*/
|
|
371
371
|
indexName: string;
|
|
372
372
|
};
|
|
@@ -376,7 +376,7 @@ export type GetSettingsProps = {
|
|
|
376
376
|
*/
|
|
377
377
|
export type GetSynonymProps = {
|
|
378
378
|
/**
|
|
379
|
-
*
|
|
379
|
+
* Name of the index on which to perform the operation.
|
|
380
380
|
*/
|
|
381
381
|
indexName: string;
|
|
382
382
|
/**
|
|
@@ -390,7 +390,7 @@ export type GetSynonymProps = {
|
|
|
390
390
|
*/
|
|
391
391
|
export type GetTaskProps = {
|
|
392
392
|
/**
|
|
393
|
-
*
|
|
393
|
+
* Name of the index on which to perform the operation.
|
|
394
394
|
*/
|
|
395
395
|
indexName: string;
|
|
396
396
|
/**
|
|
@@ -404,7 +404,7 @@ export type GetTaskProps = {
|
|
|
404
404
|
*/
|
|
405
405
|
export type GetUserIdProps = {
|
|
406
406
|
/**
|
|
407
|
-
*
|
|
407
|
+
* User ID to assign.
|
|
408
408
|
*/
|
|
409
409
|
userID: string;
|
|
410
410
|
};
|
|
@@ -414,7 +414,7 @@ export type GetUserIdProps = {
|
|
|
414
414
|
*/
|
|
415
415
|
export type HasPendingMappingsProps = {
|
|
416
416
|
/**
|
|
417
|
-
*
|
|
417
|
+
* Whether to include the cluster\'s pending mapping state in the response.
|
|
418
418
|
*/
|
|
419
419
|
getClusters?: boolean;
|
|
420
420
|
};
|
|
@@ -424,11 +424,11 @@ export type HasPendingMappingsProps = {
|
|
|
424
424
|
*/
|
|
425
425
|
export type ListIndicesProps = {
|
|
426
426
|
/**
|
|
427
|
-
*
|
|
427
|
+
* Requested page of the API response. If `null`, the API response is not paginated.
|
|
428
428
|
*/
|
|
429
429
|
page?: number;
|
|
430
430
|
/**
|
|
431
|
-
*
|
|
431
|
+
* Number of hits per page.
|
|
432
432
|
*/
|
|
433
433
|
hitsPerPage?: number;
|
|
434
434
|
};
|
|
@@ -438,11 +438,11 @@ export type ListIndicesProps = {
|
|
|
438
438
|
*/
|
|
439
439
|
export type ListUserIdsProps = {
|
|
440
440
|
/**
|
|
441
|
-
*
|
|
441
|
+
* Requested page of the API response. If `null`, the API response is not paginated.
|
|
442
442
|
*/
|
|
443
443
|
page?: number;
|
|
444
444
|
/**
|
|
445
|
-
*
|
|
445
|
+
* Number of hits per page.
|
|
446
446
|
*/
|
|
447
447
|
hitsPerPage?: number;
|
|
448
448
|
};
|
|
@@ -452,7 +452,7 @@ export type ListUserIdsProps = {
|
|
|
452
452
|
*/
|
|
453
453
|
export type OperationIndexProps = {
|
|
454
454
|
/**
|
|
455
|
-
*
|
|
455
|
+
* Name of the index on which to perform the operation.
|
|
456
456
|
*/
|
|
457
457
|
indexName: string;
|
|
458
458
|
operationIndexParams: OperationIndexParams;
|
|
@@ -463,19 +463,19 @@ export type OperationIndexProps = {
|
|
|
463
463
|
*/
|
|
464
464
|
export type PartialUpdateObjectProps = {
|
|
465
465
|
/**
|
|
466
|
-
*
|
|
466
|
+
* Name of the index on which to perform the operation.
|
|
467
467
|
*/
|
|
468
468
|
indexName: string;
|
|
469
469
|
/**
|
|
470
|
-
* Unique record
|
|
470
|
+
* Unique record identifier.
|
|
471
471
|
*/
|
|
472
472
|
objectID: string;
|
|
473
473
|
/**
|
|
474
|
-
*
|
|
474
|
+
* Attributes with their values.
|
|
475
475
|
*/
|
|
476
476
|
attributesToUpdate: Record<string, AttributeToUpdate>;
|
|
477
477
|
/**
|
|
478
|
-
*
|
|
478
|
+
* Whether to create a new record if it doesn\'t exist.
|
|
479
479
|
*/
|
|
480
480
|
createIfNotExists?: boolean;
|
|
481
481
|
};
|
|
@@ -485,7 +485,7 @@ export type PartialUpdateObjectProps = {
|
|
|
485
485
|
*/
|
|
486
486
|
export type RemoveUserIdProps = {
|
|
487
487
|
/**
|
|
488
|
-
*
|
|
488
|
+
* User ID to assign.
|
|
489
489
|
*/
|
|
490
490
|
userID: string;
|
|
491
491
|
};
|
|
@@ -515,11 +515,11 @@ export type RestoreApiKeyProps = {
|
|
|
515
515
|
*/
|
|
516
516
|
export type SaveObjectProps = {
|
|
517
517
|
/**
|
|
518
|
-
*
|
|
518
|
+
* Name of the index on which to perform the operation.
|
|
519
519
|
*/
|
|
520
520
|
indexName: string;
|
|
521
521
|
/**
|
|
522
|
-
* The
|
|
522
|
+
* The record, a schemaless object with attributes that are useful in the context of search and discovery.
|
|
523
523
|
*/
|
|
524
524
|
body: Record<string, any>;
|
|
525
525
|
};
|
|
@@ -529,7 +529,7 @@ export type SaveObjectProps = {
|
|
|
529
529
|
*/
|
|
530
530
|
export type SaveRuleProps = {
|
|
531
531
|
/**
|
|
532
|
-
*
|
|
532
|
+
* Name of the index on which to perform the operation.
|
|
533
533
|
*/
|
|
534
534
|
indexName: string;
|
|
535
535
|
/**
|
|
@@ -538,7 +538,7 @@ export type SaveRuleProps = {
|
|
|
538
538
|
objectID: string;
|
|
539
539
|
rule: Rule;
|
|
540
540
|
/**
|
|
541
|
-
*
|
|
541
|
+
* Whether changes are applied to replica indices.
|
|
542
542
|
*/
|
|
543
543
|
forwardToReplicas?: boolean;
|
|
544
544
|
};
|
|
@@ -548,16 +548,16 @@ export type SaveRuleProps = {
|
|
|
548
548
|
*/
|
|
549
549
|
export type SaveRulesProps = {
|
|
550
550
|
/**
|
|
551
|
-
*
|
|
551
|
+
* Name of the index on which to perform the operation.
|
|
552
552
|
*/
|
|
553
553
|
indexName: string;
|
|
554
554
|
rules: Rule[];
|
|
555
555
|
/**
|
|
556
|
-
*
|
|
556
|
+
* Whether changes are applied to replica indices.
|
|
557
557
|
*/
|
|
558
558
|
forwardToReplicas?: boolean;
|
|
559
559
|
/**
|
|
560
|
-
*
|
|
560
|
+
* Whether existing rules should be deleted before adding this batch.
|
|
561
561
|
*/
|
|
562
562
|
clearExistingRules?: boolean;
|
|
563
563
|
};
|
|
@@ -567,7 +567,7 @@ export type SaveRulesProps = {
|
|
|
567
567
|
*/
|
|
568
568
|
export type SaveSynonymProps = {
|
|
569
569
|
/**
|
|
570
|
-
*
|
|
570
|
+
* Name of the index on which to perform the operation.
|
|
571
571
|
*/
|
|
572
572
|
indexName: string;
|
|
573
573
|
/**
|
|
@@ -576,7 +576,7 @@ export type SaveSynonymProps = {
|
|
|
576
576
|
objectID: string;
|
|
577
577
|
synonymHit: SynonymHit;
|
|
578
578
|
/**
|
|
579
|
-
*
|
|
579
|
+
* Whether changes are applied to replica indices.
|
|
580
580
|
*/
|
|
581
581
|
forwardToReplicas?: boolean;
|
|
582
582
|
};
|
|
@@ -586,16 +586,16 @@ export type SaveSynonymProps = {
|
|
|
586
586
|
*/
|
|
587
587
|
export type SaveSynonymsProps = {
|
|
588
588
|
/**
|
|
589
|
-
*
|
|
589
|
+
* Name of the index on which to perform the operation.
|
|
590
590
|
*/
|
|
591
591
|
indexName: string;
|
|
592
592
|
synonymHit: SynonymHit[];
|
|
593
593
|
/**
|
|
594
|
-
*
|
|
594
|
+
* Whether changes are applied to replica indices.
|
|
595
595
|
*/
|
|
596
596
|
forwardToReplicas?: boolean;
|
|
597
597
|
/**
|
|
598
|
-
*
|
|
598
|
+
* Whether to replace all synonyms in the index with the ones sent with this request.
|
|
599
599
|
*/
|
|
600
600
|
replaceExistingSynonyms?: boolean;
|
|
601
601
|
};
|
|
@@ -637,7 +637,7 @@ export type LegacySearchMethodProps = LegacySearchQuery[];
|
|
|
637
637
|
*/
|
|
638
638
|
export type SearchDictionaryEntriesProps = {
|
|
639
639
|
/**
|
|
640
|
-
* Dictionary to search
|
|
640
|
+
* Dictionary type in which to search.
|
|
641
641
|
*/
|
|
642
642
|
dictionaryName: DictionaryType;
|
|
643
643
|
searchDictionaryEntriesParams: SearchDictionaryEntriesParams;
|
|
@@ -648,11 +648,11 @@ export type SearchDictionaryEntriesProps = {
|
|
|
648
648
|
*/
|
|
649
649
|
export type SearchForFacetValuesProps = {
|
|
650
650
|
/**
|
|
651
|
-
*
|
|
651
|
+
* Name of the index on which to perform the operation.
|
|
652
652
|
*/
|
|
653
653
|
indexName: string;
|
|
654
654
|
/**
|
|
655
|
-
* Facet
|
|
655
|
+
* Facet attribute in which to search for values. This attribute must be included in the `attributesForFaceting` index setting with the `searchable()` modifier.
|
|
656
656
|
*/
|
|
657
657
|
facetName: string;
|
|
658
658
|
searchForFacetValuesRequest?: SearchForFacetValuesRequest;
|
|
@@ -663,7 +663,7 @@ export type SearchForFacetValuesProps = {
|
|
|
663
663
|
*/
|
|
664
664
|
export type SearchRulesProps = {
|
|
665
665
|
/**
|
|
666
|
-
*
|
|
666
|
+
* Name of the index on which to perform the operation.
|
|
667
667
|
*/
|
|
668
668
|
indexName: string;
|
|
669
669
|
searchRulesParams?: SearchRulesParams;
|
|
@@ -674,7 +674,7 @@ export type SearchRulesProps = {
|
|
|
674
674
|
*/
|
|
675
675
|
export type SearchSingleIndexProps = {
|
|
676
676
|
/**
|
|
677
|
-
*
|
|
677
|
+
* Name of the index on which to perform the operation.
|
|
678
678
|
*/
|
|
679
679
|
indexName: string;
|
|
680
680
|
searchParams?: SearchParams;
|
|
@@ -685,7 +685,7 @@ export type SearchSingleIndexProps = {
|
|
|
685
685
|
*/
|
|
686
686
|
export type SearchSynonymsProps = {
|
|
687
687
|
/**
|
|
688
|
-
*
|
|
688
|
+
* Name of the index on which to perform the operation.
|
|
689
689
|
*/
|
|
690
690
|
indexName: string;
|
|
691
691
|
/**
|
|
@@ -699,12 +699,12 @@ export type SearchSynonymsProps = {
|
|
|
699
699
|
*/
|
|
700
700
|
export type SetSettingsProps = {
|
|
701
701
|
/**
|
|
702
|
-
*
|
|
702
|
+
* Name of the index on which to perform the operation.
|
|
703
703
|
*/
|
|
704
704
|
indexName: string;
|
|
705
705
|
indexSettings: IndexSettings;
|
|
706
706
|
/**
|
|
707
|
-
*
|
|
707
|
+
* Whether changes are applied to replica indices.
|
|
708
708
|
*/
|
|
709
709
|
forwardToReplicas?: boolean;
|
|
710
710
|
};
|
package/model/condition.ts
CHANGED
|
@@ -4,19 +4,24 @@ import type { Anchoring } from './anchoring';
|
|
|
4
4
|
|
|
5
5
|
export type Condition = {
|
|
6
6
|
/**
|
|
7
|
-
* Query pattern
|
|
7
|
+
* Query pattern that triggers the rule. You can use either a literal string, or a special pattern `{facet:ATTRIBUTE}`, where `ATTRIBUTE` is a facet name. The rule is triggered if the query matches the literal string or a value of the specified facet. For example, with `pattern: {facet:genre}`, the rule is triggered when users search for a genre, such as \"comedy\".
|
|
8
8
|
*/
|
|
9
9
|
pattern?: string;
|
|
10
10
|
|
|
11
11
|
anchoring?: Anchoring;
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
* Whether the pattern
|
|
14
|
+
* Whether the pattern should match plurals, synonyms, and typos.
|
|
15
15
|
*/
|
|
16
16
|
alternatives?: boolean;
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* An additional restriction that only triggers the rule, when the search has the same value as `ruleContexts` parameter. For example, if `context: mobile`, the rule is only triggered when the search request has a matching `ruleContexts: mobile`. A rule context must only contain alphanumeric characters.
|
|
20
20
|
*/
|
|
21
21
|
context?: string;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Filters that trigger the rule. You can add add filters using the syntax `facet:value` so that the rule is triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern` parameter.
|
|
25
|
+
*/
|
|
26
|
+
filters?: string;
|
|
22
27
|
};
|
package/model/consequence.ts
CHANGED
|
@@ -5,28 +5,28 @@ import type { ConsequenceParams } from './consequenceParams';
|
|
|
5
5
|
import type { Promote } from './promote';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* [Consequences](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#consequences)
|
|
8
|
+
* Effect of the rule. For more information, see [Consequences](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#consequences).
|
|
9
9
|
*/
|
|
10
10
|
export type Consequence = {
|
|
11
11
|
params?: ConsequenceParams;
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
* Records to promote.
|
|
14
|
+
* Records you want to pin to a specific position in the search results. You can promote up to 300 records, either individually, or as groups of up to 100 records each.
|
|
15
15
|
*/
|
|
16
16
|
promote?: Promote[];
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Whether promoted records must match an active filter for the consequence to be applied. This ensures that user actions (filtering the search) are given a higher precendence. For example, if you promote a record with the `color: red` attribute, and the user filters the search for `color: blue`, the \"red\" record won\'t be shown.
|
|
20
20
|
*/
|
|
21
21
|
filterPromotes?: boolean;
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
* Records
|
|
24
|
+
* Records you want to hide from the search results.
|
|
25
25
|
*/
|
|
26
26
|
hide?: ConsequenceHide[];
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* A JSON object with custom data that will be appended to the `userData` array in the response. This object isn\'t interpreted by the API and is limited to 1 kB of minified JSON.
|
|
30
30
|
*/
|
|
31
31
|
userData?: any | null;
|
|
32
32
|
};
|
package/model/consequenceHide.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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
|
+
* Object ID of the record to hide.
|
|
5
5
|
*/
|
|
6
6
|
export type ConsequenceHide = {
|
|
7
7
|
/**
|
|
8
|
-
* Unique
|
|
8
|
+
* Unique record identifier.
|
|
9
9
|
*/
|
|
10
10
|
objectID: string;
|
|
11
11
|
};
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
import type { ConsequenceQueryObject } from './consequenceQueryObject';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Replace or edit the search query. If `consequenceQuery` is a string, the entire search query is replaced with that string. If `consequenceQuery` is an object, it describes incremental edits made to the query.
|
|
7
7
|
*/
|
|
8
8
|
export type ConsequenceQuery = ConsequenceQueryObject | string;
|
|
@@ -4,12 +4,12 @@ import type { Edit } from './edit';
|
|
|
4
4
|
|
|
5
5
|
export type ConsequenceQueryObject = {
|
|
6
6
|
/**
|
|
7
|
-
* Words to remove.
|
|
7
|
+
* Words to remove from the search query.
|
|
8
8
|
*/
|
|
9
9
|
remove?: string[];
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Changes to make to the search query.
|
|
13
13
|
*/
|
|
14
14
|
edits?: Edit[];
|
|
15
15
|
};
|
package/model/cursor.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
export type Cursor = {
|
|
4
4
|
/**
|
|
5
|
-
* Cursor
|
|
5
|
+
* Cursor to get the next page of the response. The parameter must match the value returned in the response of a previous request. The last page of the response does not return a `cursor` attribute.
|
|
6
6
|
*/
|
|
7
7
|
cursor?: string;
|
|
8
8
|
};
|
package/model/deleteByParams.ts
CHANGED
|
@@ -9,7 +9,7 @@ export type DeleteByParams = {
|
|
|
9
9
|
facetFilters?: FacetFilters;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* [
|
|
12
|
+
* Filter the search so that only records with matching values are included in the results. These filters are supported: - **Numeric filters.** `<facet> <op> <number>`, where `<op>` is one of `<`, `<=`, `=`, `!=`, `>`, `>=`. - **Ranges.** `<facet>:<lower> TO <upper>` where `<lower>` and `<upper>` are the lower and upper limits of the range (inclusive). - **Facet filters.** `<facet>:<value>` where `<facet>` is a facet attribute (case-sensitive) and `<value>` a facet value. - **Tag filters.** `_tags:<value>` or just `<value>` (case-sensitive). - **Boolean filters.** `<facet>: true | false`. You can combine filters with `AND`, `OR`, and `NOT` operators with the following restrictions: - You can only combine filters of the same type with `OR`. **Not supported:** `facet:value OR num > 3`. - You can\'t use `NOT` with combinations of filters. **Not supported:** `NOT(facet:value OR facet:value)` - You can\'t combine conjunctions (`AND`) with `OR`. **Not supported:** `facet:value OR (facet:value AND facet:value)` Use quotes around your filters, if the facet attribute name or facet value has spaces, keywords (`OR`, `AND`, `NOT`), or quotes. If a facet attribute is an array, the filter matches if it matches at least one element of the array. For more information, see [Filters](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/).
|
|
13
13
|
*/
|
|
14
14
|
filters?: string;
|
|
15
15
|
|
|
@@ -18,19 +18,19 @@ export type DeleteByParams = {
|
|
|
18
18
|
tagFilters?: TagFilters;
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Coordinates for the center of a circle, expressed as a comma-separated string of latitude and longitude. Only records included within circle around this central location are included in the results. The radius of the circle is determined by the `aroundRadius` and `minimumAroundRadius` settings. This parameter is ignored if you also specify `insidePolygon` or `insideBoundingBox`.
|
|
22
22
|
*/
|
|
23
23
|
aroundLatLng?: string;
|
|
24
24
|
|
|
25
25
|
aroundRadius?: AroundRadius;
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Coordinates for a rectangular area in which to search. Each bounding box is defined by the two opposite points of its diagonal, and expressed as latitude and longitude pair: `[p1 lat, p1 long, p2 lat, p2 long]`. Provide multiple bounding boxes as nested arrays. For more information, see [rectangular area](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas).
|
|
29
29
|
*/
|
|
30
30
|
insideBoundingBox?: number[][];
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Coordinates of a polygon in which to search. Polygons are defined by 3 to 10,000 points. Each point is represented by its latitude and longitude. Provide multiple polygons as nested arrays. For more information, see [filtering inside polygons](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas). This parameter is ignored, if you also specify `insideBoundingBox`.
|
|
34
34
|
*/
|
|
35
35
|
insidePolygon?: number[][];
|
|
36
36
|
};
|