@algolia/client-search 5.0.0-alpha.2 → 5.0.0-alpha.20
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 +2 -2
- package/dist/builds/browser.d.ts.map +1 -1
- package/dist/builds/node.d.ts +2 -2
- package/dist/builds/node.d.ts.map +1 -1
- package/dist/client-search.cjs.js +163 -38
- package/dist/client-search.esm.browser.js +192 -67
- package/dist/client-search.esm.node.js +164 -39
- package/dist/client-search.umd.js +2 -2
- package/dist/model/acl.d.ts +3 -0
- package/dist/model/acl.d.ts.map +1 -1
- package/dist/model/action.d.ts.map +1 -1
- package/dist/model/addApiKeyResponse.d.ts +1 -1
- package/dist/model/addApiKeyResponse.d.ts.map +1 -1
- package/dist/model/advancedSyntaxFeatures.d.ts.map +1 -1
- package/dist/model/alternativesAsExact.d.ts.map +1 -1
- package/dist/model/anchoring.d.ts.map +1 -1
- package/dist/model/apiKey.d.ts.map +1 -1
- package/dist/model/aroundRadius.d.ts.map +1 -1
- package/dist/model/aroundRadiusAll.d.ts.map +1 -1
- package/dist/model/assignUserIdParams.d.ts.map +1 -1
- package/dist/model/attributeToUpdate.d.ts +3 -0
- package/dist/model/attributeToUpdate.d.ts.map +1 -0
- package/dist/model/automaticFacetFilter.d.ts.map +1 -1
- package/dist/model/automaticFacetFilters.d.ts.map +1 -1
- package/dist/model/baseGetApiKeyResponse.d.ts +11 -0
- package/dist/model/baseGetApiKeyResponse.d.ts.map +1 -0
- package/dist/model/baseIndexSettings.d.ts +4 -0
- package/dist/model/baseIndexSettings.d.ts.map +1 -1
- package/dist/model/baseSearchParams.d.ts.map +1 -1
- package/dist/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
- package/dist/model/baseSearchResponse.d.ts +1 -1
- package/dist/model/baseSearchResponse.d.ts.map +1 -1
- package/dist/model/batchAssignUserIdsParams.d.ts.map +1 -1
- package/dist/model/batchDictionaryEntriesParams.d.ts.map +1 -1
- package/dist/model/batchDictionaryEntriesRequest.d.ts.map +1 -1
- package/dist/model/batchParams.d.ts +2 -2
- package/dist/model/batchParams.d.ts.map +1 -1
- package/dist/model/batchRequest.d.ts +9 -0
- package/dist/model/batchRequest.d.ts.map +1 -0
- package/dist/model/batchResponse.d.ts.map +1 -1
- package/dist/model/batchWriteParams.d.ts +2 -2
- package/dist/model/batchWriteParams.d.ts.map +1 -1
- package/dist/model/browseParams.d.ts +4 -0
- package/dist/model/browseParams.d.ts.map +1 -0
- package/dist/model/browseParamsObject.d.ts +4 -0
- package/dist/model/browseParamsObject.d.ts.map +1 -0
- package/dist/model/browseResponse.d.ts +2 -2
- package/dist/model/browseResponse.d.ts.map +1 -1
- package/dist/model/builtInOperation.d.ts.map +1 -1
- package/dist/model/builtInOperationType.d.ts.map +1 -1
- package/dist/model/clientMethodProps.d.ts +26 -14
- package/dist/model/clientMethodProps.d.ts.map +1 -1
- package/dist/model/condition.d.ts.map +1 -1
- package/dist/model/consequence.d.ts.map +1 -1
- package/dist/model/consequenceHide.d.ts.map +1 -1
- package/dist/model/consequenceParams.d.ts.map +1 -1
- package/dist/model/consequenceQuery.d.ts.map +1 -1
- package/dist/model/consequenceQueryObject.d.ts.map +1 -1
- package/dist/model/createdAtResponse.d.ts.map +1 -1
- package/dist/model/{baseBrowseResponse.d.ts → cursor.d.ts} +3 -3
- package/dist/model/cursor.d.ts.map +1 -0
- package/dist/model/deleteApiKeyResponse.d.ts.map +1 -1
- package/dist/model/deleteByParams.d.ts +27 -0
- package/dist/model/deleteByParams.d.ts.map +1 -0
- package/dist/model/deleteSourceResponse.d.ts.map +1 -1
- package/dist/model/deletedAtResponse.d.ts.map +1 -1
- package/dist/model/dictionaryAction.d.ts.map +1 -1
- package/dist/model/dictionaryEntry.d.ts.map +1 -1
- package/dist/model/dictionaryEntryState.d.ts.map +1 -1
- package/dist/model/dictionaryLanguage.d.ts.map +1 -1
- package/dist/model/dictionarySettingsParams.d.ts.map +1 -1
- package/dist/model/dictionaryType.d.ts.map +1 -1
- package/dist/model/distinct.d.ts +5 -0
- package/dist/model/distinct.d.ts.map +1 -0
- package/dist/model/edit.d.ts.map +1 -1
- package/dist/model/editType.d.ts.map +1 -1
- package/dist/model/errorBase.d.ts.map +1 -1
- package/dist/model/exactOnSingleWordQuery.d.ts.map +1 -1
- package/dist/model/facetFilters.d.ts.map +1 -1
- package/dist/model/facetHits.d.ts.map +1 -1
- package/dist/model/facetOrdering.d.ts.map +1 -1
- package/dist/model/facets.d.ts.map +1 -1
- package/dist/model/facetsStats.d.ts.map +1 -1
- package/dist/model/fetchedIndex.d.ts.map +1 -1
- package/dist/model/getApiKeyResponse.d.ts +4 -0
- package/dist/model/getApiKeyResponse.d.ts.map +1 -0
- package/dist/model/getDictionarySettingsResponse.d.ts.map +1 -1
- package/dist/model/getLogsResponse.d.ts.map +1 -1
- package/dist/model/getObjectsParams.d.ts +2 -2
- package/dist/model/getObjectsParams.d.ts.map +1 -1
- package/dist/model/{multipleGetObjectsParams.d.ts → getObjectsRequest.d.ts} +2 -2
- package/dist/model/getObjectsRequest.d.ts.map +1 -0
- package/dist/model/getObjectsResponse.d.ts +2 -2
- package/dist/model/getObjectsResponse.d.ts.map +1 -1
- package/dist/model/getTaskResponse.d.ts.map +1 -1
- package/dist/model/getTopUserIdsResponse.d.ts.map +1 -1
- package/dist/model/hasPendingMappingsResponse.d.ts.map +1 -1
- package/dist/model/highlightResult.d.ts.map +1 -1
- package/dist/model/highlightResultOption.d.ts.map +1 -1
- package/dist/model/hit.d.ts +1 -1
- package/dist/model/hit.d.ts.map +1 -1
- package/dist/model/ignorePlurals.d.ts.map +1 -1
- package/dist/model/index.d.ts +11 -9
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/indexSettings.d.ts.map +1 -1
- package/dist/model/indexSettingsAsSearchParams.d.ts +4 -6
- package/dist/model/indexSettingsAsSearchParams.d.ts.map +1 -1
- package/dist/model/languages.d.ts.map +1 -1
- package/dist/model/listApiKeysResponse.d.ts +2 -2
- package/dist/model/listApiKeysResponse.d.ts.map +1 -1
- package/dist/model/listClustersResponse.d.ts.map +1 -1
- package/dist/model/listIndicesResponse.d.ts +1 -1
- package/dist/model/listIndicesResponse.d.ts.map +1 -1
- package/dist/model/listUserIdsResponse.d.ts.map +1 -1
- package/dist/model/log.d.ts.map +1 -1
- package/dist/model/logQuery.d.ts.map +1 -1
- package/dist/model/logType.d.ts.map +1 -1
- package/dist/model/matchLevel.d.ts.map +1 -1
- package/dist/model/matchedGeoLocation.d.ts.map +1 -1
- package/dist/model/mixedSearchFilters.d.ts.map +1 -1
- package/dist/model/{multipleBatchOperation.d.ts → multipleBatchRequest.d.ts} +5 -5
- package/dist/model/multipleBatchRequest.d.ts.map +1 -0
- package/dist/model/multipleBatchResponse.d.ts +2 -2
- package/dist/model/multipleBatchResponse.d.ts.map +1 -1
- package/dist/model/numericFilters.d.ts.map +1 -1
- package/dist/model/operationIndexParams.d.ts.map +1 -1
- package/dist/model/operationType.d.ts.map +1 -1
- package/dist/model/optionalFilters.d.ts.map +1 -1
- package/dist/model/params.d.ts.map +1 -1
- package/dist/model/personalization.d.ts.map +1 -1
- package/dist/model/promote.d.ts.map +1 -1
- package/dist/model/promoteObjectID.d.ts.map +1 -1
- package/dist/model/promoteObjectIDs.d.ts.map +1 -1
- package/dist/model/queryType.d.ts.map +1 -1
- package/dist/model/rankingInfo.d.ts.map +1 -1
- package/dist/model/reRankingApplyFilter.d.ts.map +1 -1
- package/dist/model/removeStopWords.d.ts.map +1 -1
- package/dist/model/removeUserIdResponse.d.ts.map +1 -1
- package/dist/model/removeWordsIfNoResults.d.ts.map +1 -1
- package/dist/model/renderingContent.d.ts.map +1 -1
- package/dist/model/replaceSourceResponse.d.ts.map +1 -1
- package/dist/model/rule.d.ts.map +1 -1
- package/dist/model/saveObjectResponse.d.ts +2 -2
- package/dist/model/saveObjectResponse.d.ts.map +1 -1
- package/dist/model/saveSynonymResponse.d.ts.map +1 -1
- package/dist/model/scopeType.d.ts.map +1 -1
- package/dist/model/searchDictionaryEntriesParams.d.ts.map +1 -1
- package/dist/model/searchForFacetValuesRequest.d.ts.map +1 -1
- package/dist/model/searchForFacetValuesResponse.d.ts.map +1 -1
- package/dist/model/searchForFacets.d.ts.map +1 -1
- package/dist/model/searchForFacetsOptions.d.ts.map +1 -1
- package/dist/model/searchForHits.d.ts.map +1 -1
- package/dist/model/searchForHitsOptions.d.ts.map +1 -1
- package/dist/model/searchHits.d.ts +1 -1
- package/dist/model/searchHits.d.ts.map +1 -1
- package/dist/model/searchMethodParams.d.ts.map +1 -1
- package/dist/model/searchParams.d.ts.map +1 -1
- package/dist/model/searchParamsObject.d.ts.map +1 -1
- package/dist/model/searchParamsQuery.d.ts.map +1 -1
- package/dist/model/searchParamsString.d.ts.map +1 -1
- package/dist/model/searchQuery.d.ts.map +1 -1
- package/dist/model/searchResponse.d.ts +1 -1
- package/dist/model/searchResponse.d.ts.map +1 -1
- package/dist/model/searchResponses.d.ts +1 -1
- package/dist/model/searchResponses.d.ts.map +1 -1
- package/dist/model/searchRulesParams.d.ts.map +1 -1
- package/dist/model/searchRulesResponse.d.ts.map +1 -1
- package/dist/model/searchStrategy.d.ts.map +1 -1
- package/dist/model/searchSynonymsParams.d.ts.map +1 -1
- package/dist/model/searchSynonymsResponse.d.ts.map +1 -1
- package/dist/model/searchTypeDefault.d.ts.map +1 -1
- package/dist/model/searchTypeFacet.d.ts.map +1 -1
- package/dist/model/searchUserIdsParams.d.ts.map +1 -1
- package/dist/model/searchUserIdsResponse.d.ts.map +1 -1
- package/dist/model/snippetResult.d.ts.map +1 -1
- package/dist/model/snippetResultOption.d.ts.map +1 -1
- package/dist/model/sortRemainingBy.d.ts.map +1 -1
- package/dist/model/source.d.ts.map +1 -1
- package/dist/model/standardEntries.d.ts.map +1 -1
- package/dist/model/synonymHit.d.ts +0 -2
- package/dist/model/synonymHit.d.ts.map +1 -1
- package/dist/model/synonymType.d.ts.map +1 -1
- package/dist/model/tagFilters.d.ts.map +1 -1
- package/dist/model/taskStatus.d.ts.map +1 -1
- package/dist/model/timeRange.d.ts.map +1 -1
- package/dist/model/typoTolerance.d.ts.map +1 -1
- package/dist/model/typoToleranceEnum.d.ts.map +1 -1
- package/dist/model/updateApiKeyResponse.d.ts +1 -1
- package/dist/model/updateApiKeyResponse.d.ts.map +1 -1
- package/dist/model/updatedAtResponse.d.ts.map +1 -1
- package/dist/model/updatedAtWithObjectIdResponse.d.ts.map +1 -1
- package/dist/model/updatedRuleResponse.d.ts.map +1 -1
- package/dist/model/userHighlightResult.d.ts.map +1 -1
- package/dist/model/userHit.d.ts.map +1 -1
- package/dist/model/userId.d.ts.map +1 -1
- package/dist/model/value.d.ts.map +1 -1
- package/dist/src/searchClient.d.ts +71 -24
- package/dist/src/searchClient.d.ts.map +1 -1
- package/model/acl.ts +3 -0
- package/model/addApiKeyResponse.ts +2 -1
- package/model/apiKey.ts +7 -0
- package/model/{attributeOrBuiltInOperation.ts → attributeToUpdate.ts} +1 -1
- package/model/automaticFacetFilter.ts +2 -0
- package/model/baseGetApiKeyResponse.ts +13 -0
- package/model/baseIndexSettings.ts +18 -0
- package/model/baseSearchParamsWithoutQuery.ts +32 -0
- package/model/baseSearchResponse.ts +25 -1
- package/model/batchAssignUserIdsParams.ts +1 -0
- package/model/batchDictionaryEntriesParams.ts +1 -0
- package/model/batchDictionaryEntriesRequest.ts +1 -0
- package/model/batchParams.ts +2 -2
- package/model/{batchOperation.ts → batchRequest.ts} +4 -3
- package/model/batchResponse.ts +1 -0
- package/model/batchWriteParams.ts +2 -2
- package/model/browseParams.ts +6 -0
- package/model/browseParamsObject.ts +6 -0
- package/model/browseResponse.ts +3 -3
- package/model/builtInOperation.ts +1 -0
- package/model/clientMethodProps.ts +31 -19
- package/model/condition.ts +3 -0
- package/model/consequence.ts +4 -0
- package/model/consequenceQueryObject.ts +1 -0
- package/model/{baseBrowseResponse.ts → cursor.ts} +2 -2
- package/model/deleteByParams.ts +36 -0
- package/model/deletedAtResponse.ts +1 -0
- package/model/dictionaryEntry.ts +5 -0
- package/model/{createdAtObject.ts → distinct.ts} +4 -6
- package/model/edit.ts +2 -0
- package/model/facetHits.ts +2 -0
- package/model/facetOrdering.ts +1 -0
- package/model/facetsStats.ts +3 -0
- package/model/fetchedIndex.ts +10 -0
- package/model/{key.ts → getApiKeyResponse.ts} +2 -2
- package/model/getObjectsParams.ts +2 -2
- package/model/{multipleGetObjectsParams.ts → getObjectsRequest.ts} +3 -1
- package/model/getObjectsResponse.ts +2 -2
- package/model/hasPendingMappingsResponse.ts +1 -0
- package/model/highlightResultOption.ts +3 -0
- package/model/hit.ts +5 -1
- package/model/index.ts +11 -9
- package/model/indexSettingsAsSearchParams.ts +45 -6
- package/model/languages.ts +2 -0
- package/model/listApiKeysResponse.ts +2 -2
- package/model/listIndicesResponse.ts +2 -1
- package/model/log.ts +14 -0
- package/model/logQuery.ts +2 -0
- package/model/matchedGeoLocation.ts +2 -0
- package/model/{multipleBatchOperation.ts → multipleBatchRequest.ts} +6 -4
- package/model/multipleBatchResponse.ts +3 -2
- package/model/operationIndexParams.ts +2 -0
- package/model/params.ts +3 -0
- package/model/personalization.ts +2 -0
- package/model/promoteObjectID.ts +1 -0
- package/model/promoteObjectIDs.ts +1 -0
- package/model/rankingInfo.ts +12 -0
- package/model/rule.ts +5 -0
- package/model/saveObjectResponse.ts +4 -2
- package/model/saveSynonymResponse.ts +2 -0
- package/model/searchDictionaryEntriesParams.ts +3 -0
- package/model/searchForFacetValuesRequest.ts +2 -0
- package/model/searchForFacetsOptions.ts +4 -0
- package/model/searchForHitsOptions.ts +1 -0
- package/model/searchHits.ts +1 -1
- package/model/searchMethodParams.ts +1 -0
- package/model/searchResponse.ts +2 -1
- package/model/searchResponses.ts +1 -1
- package/model/searchRulesParams.ts +6 -0
- package/model/searchRulesResponse.ts +3 -0
- package/model/searchSynonymsResponse.ts +1 -0
- package/model/searchUserIdsParams.ts +3 -0
- package/model/searchUserIdsResponse.ts +4 -0
- package/model/snippetResultOption.ts +1 -0
- package/model/source.ts +1 -0
- package/model/standardEntries.ts +2 -0
- package/model/synonymHit.ts +7 -2
- package/model/timeRange.ts +1 -0
- package/model/updateApiKeyResponse.ts +2 -1
- package/model/updatedAtResponse.ts +1 -0
- package/model/updatedAtWithObjectIdResponse.ts +2 -0
- package/model/updatedRuleResponse.ts +2 -0
- package/model/userHighlightResult.ts +1 -0
- package/model/userHit.ts +5 -0
- package/model/userId.ts +3 -0
- package/model/value.ts +1 -0
- package/package.json +31 -13
- package/dist/model/attributeOrBuiltInOperation.d.ts +0 -3
- package/dist/model/attributeOrBuiltInOperation.d.ts.map +0 -1
- package/dist/model/baseBrowseResponse.d.ts.map +0 -1
- package/dist/model/batchOperation.d.ts +0 -9
- package/dist/model/batchOperation.d.ts.map +0 -1
- package/dist/model/browseRequest.d.ts +0 -11
- package/dist/model/browseRequest.d.ts.map +0 -1
- package/dist/model/createdAtObject.d.ts +0 -7
- package/dist/model/createdAtObject.d.ts.map +0 -1
- package/dist/model/key.d.ts +0 -4
- package/dist/model/key.d.ts.map +0 -1
- package/dist/model/multipleBatchOperation.d.ts.map +0 -1
- package/dist/model/multipleGetObjectsParams.d.ts.map +0 -1
- package/dist/model/synonymHitHighlightResult.d.ts +0 -12
- package/dist/model/synonymHitHighlightResult.d.ts.map +0 -1
- package/model/browseRequest.ts +0 -12
- package/model/synonymHitHighlightResult.ts +0 -14
package/model/apiKey.ts
CHANGED
|
@@ -10,30 +10,37 @@ export type ApiKey = {
|
|
|
10
10
|
* Set of permissions associated with the key.
|
|
11
11
|
*/
|
|
12
12
|
acl: Acl[];
|
|
13
|
+
|
|
13
14
|
/**
|
|
14
15
|
* A comment used to identify a key more easily in the dashboard. It is not interpreted by the API.
|
|
15
16
|
*/
|
|
16
17
|
description?: string;
|
|
18
|
+
|
|
17
19
|
/**
|
|
18
20
|
* Restrict this new API key to a list of indices or index patterns. If the list is empty, all indices are allowed.
|
|
19
21
|
*/
|
|
20
22
|
indexes?: string[];
|
|
23
|
+
|
|
21
24
|
/**
|
|
22
25
|
* Maximum number of hits this API key can retrieve in one query. If zero, no limit is enforced.
|
|
23
26
|
*/
|
|
24
27
|
maxHitsPerQuery?: number;
|
|
28
|
+
|
|
25
29
|
/**
|
|
26
30
|
* Maximum number of API calls per hour allowed from a given IP address or a user token.
|
|
27
31
|
*/
|
|
28
32
|
maxQueriesPerIPPerHour?: number;
|
|
33
|
+
|
|
29
34
|
/**
|
|
30
35
|
* URL-encoded query string. Force some query parameters to be applied for each query made with this API key.
|
|
31
36
|
*/
|
|
32
37
|
queryParameters?: string;
|
|
38
|
+
|
|
33
39
|
/**
|
|
34
40
|
* Restrict this new API key to specific referers. If empty or blank, defaults to all referers.
|
|
35
41
|
*/
|
|
36
42
|
referers?: string[];
|
|
43
|
+
|
|
37
44
|
/**
|
|
38
45
|
* Validity limit for this key in seconds. The key will automatically be removed after this period of time.
|
|
39
46
|
*/
|
|
@@ -8,10 +8,12 @@ export type AutomaticFacetFilter = {
|
|
|
8
8
|
* Attribute to filter on. This must match a facet placeholder in the Rule\'s pattern.
|
|
9
9
|
*/
|
|
10
10
|
facet: string;
|
|
11
|
+
|
|
11
12
|
/**
|
|
12
13
|
* Score for the filter. Typically used for optional or disjunctive filters.
|
|
13
14
|
*/
|
|
14
15
|
score?: number;
|
|
16
|
+
|
|
15
17
|
/**
|
|
16
18
|
* Whether the filter is disjunctive (true) or conjunctive (false).
|
|
17
19
|
*/
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
export type BaseGetApiKeyResponse = {
|
|
4
|
+
/**
|
|
5
|
+
* The API key.
|
|
6
|
+
*/
|
|
7
|
+
value?: string;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Time of the event expressed in milliseconds since the Unix epoch.
|
|
11
|
+
*/
|
|
12
|
+
createdAt: number;
|
|
13
|
+
};
|
|
@@ -5,54 +5,72 @@ export type BaseIndexSettings = {
|
|
|
5
5
|
* Creates replicas, exact copies of an index.
|
|
6
6
|
*/
|
|
7
7
|
replicas?: string[];
|
|
8
|
+
|
|
8
9
|
/**
|
|
9
10
|
* Set the maximum number of hits accessible via pagination.
|
|
10
11
|
*/
|
|
11
12
|
paginationLimitedTo?: number;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* List of attributes that can\'t be retrieved at query time.
|
|
16
|
+
*/
|
|
17
|
+
unretrievableAttributes?: string[];
|
|
18
|
+
|
|
12
19
|
/**
|
|
13
20
|
* A list of words for which you want to turn off typo tolerance.
|
|
14
21
|
*/
|
|
15
22
|
disableTypoToleranceOnWords?: string[];
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
* Specify on which attributes in your index Algolia should apply Japanese transliteration to make words indexed in Katakana or Kanji searchable in Hiragana.
|
|
18
26
|
*/
|
|
19
27
|
attributesToTransliterate?: string[];
|
|
28
|
+
|
|
20
29
|
/**
|
|
21
30
|
* List of attributes on which to do a decomposition of camel case words.
|
|
22
31
|
*/
|
|
23
32
|
camelCaseAttributes?: string[];
|
|
33
|
+
|
|
24
34
|
/**
|
|
25
35
|
* Specify on which attributes in your index Algolia should apply word segmentation, also known as decompounding.
|
|
26
36
|
*/
|
|
27
37
|
decompoundedAttributes?: Record<string, any>;
|
|
38
|
+
|
|
28
39
|
/**
|
|
29
40
|
* Sets the languages at the index level for language-specific processing such as tokenization and normalization.
|
|
30
41
|
*/
|
|
31
42
|
indexLanguages?: string[];
|
|
43
|
+
|
|
32
44
|
/**
|
|
33
45
|
* List of attributes on which you want to disable prefix matching.
|
|
34
46
|
*/
|
|
35
47
|
disablePrefixOnAttributes?: string[];
|
|
48
|
+
|
|
36
49
|
/**
|
|
37
50
|
* Enables compression of large integer arrays.
|
|
38
51
|
*/
|
|
39
52
|
allowCompressionOfIntegerArray?: boolean;
|
|
53
|
+
|
|
40
54
|
/**
|
|
41
55
|
* List of numeric attributes that can be used as numerical filters.
|
|
42
56
|
*/
|
|
43
57
|
numericAttributesForFiltering?: string[];
|
|
58
|
+
|
|
44
59
|
/**
|
|
45
60
|
* Control which separators are indexed.
|
|
46
61
|
*/
|
|
47
62
|
separatorsToIndex?: string;
|
|
63
|
+
|
|
48
64
|
/**
|
|
49
65
|
* The complete list of attributes used for searching.
|
|
50
66
|
*/
|
|
51
67
|
searchableAttributes?: string[];
|
|
68
|
+
|
|
52
69
|
/**
|
|
53
70
|
* Lets you store custom data in your indices.
|
|
54
71
|
*/
|
|
55
72
|
userData?: Record<string, any>;
|
|
73
|
+
|
|
56
74
|
/**
|
|
57
75
|
* Overrides Algolia\'s default normalization.
|
|
58
76
|
*/
|
|
@@ -12,114 +12,146 @@ export type BaseSearchParamsWithoutQuery = {
|
|
|
12
12
|
* Overrides the query parameter and performs a more generic search that can be used to find \"similar\" results.
|
|
13
13
|
*/
|
|
14
14
|
similarQuery?: string;
|
|
15
|
+
|
|
15
16
|
/**
|
|
16
17
|
* Filter the query with numeric, facet and/or tag filters.
|
|
17
18
|
*/
|
|
18
19
|
filters?: string;
|
|
20
|
+
|
|
19
21
|
facetFilters?: FacetFilters;
|
|
22
|
+
|
|
20
23
|
optionalFilters?: OptionalFilters;
|
|
24
|
+
|
|
21
25
|
numericFilters?: NumericFilters;
|
|
26
|
+
|
|
22
27
|
tagFilters?: TagFilters;
|
|
28
|
+
|
|
23
29
|
/**
|
|
24
30
|
* Determines how to calculate the total score for filtering.
|
|
25
31
|
*/
|
|
26
32
|
sumOrFiltersScores?: boolean;
|
|
33
|
+
|
|
27
34
|
/**
|
|
28
35
|
* Retrieve facets and their facet values.
|
|
29
36
|
*/
|
|
30
37
|
facets?: string[];
|
|
38
|
+
|
|
31
39
|
/**
|
|
32
40
|
* Maximum number of facet values to return for each facet during a regular search.
|
|
33
41
|
*/
|
|
34
42
|
maxValuesPerFacet?: number;
|
|
43
|
+
|
|
35
44
|
/**
|
|
36
45
|
* Force faceting to be applied after de-duplication (via the Distinct setting).
|
|
37
46
|
*/
|
|
38
47
|
facetingAfterDistinct?: boolean;
|
|
48
|
+
|
|
39
49
|
/**
|
|
40
50
|
* Controls how facet values are fetched.
|
|
41
51
|
*/
|
|
42
52
|
sortFacetValuesBy?: string;
|
|
53
|
+
|
|
43
54
|
/**
|
|
44
55
|
* Specify the page to retrieve.
|
|
45
56
|
*/
|
|
46
57
|
page?: number;
|
|
58
|
+
|
|
47
59
|
/**
|
|
48
60
|
* Specify the offset of the first hit to return.
|
|
49
61
|
*/
|
|
50
62
|
offset?: number;
|
|
63
|
+
|
|
51
64
|
/**
|
|
52
65
|
* Set the number of hits to retrieve (used only with offset).
|
|
53
66
|
*/
|
|
54
67
|
length?: number;
|
|
68
|
+
|
|
55
69
|
/**
|
|
56
70
|
* Search for entries around a central geolocation, enabling a geo search within a circular area.
|
|
57
71
|
*/
|
|
58
72
|
aroundLatLng?: string;
|
|
73
|
+
|
|
59
74
|
/**
|
|
60
75
|
* Search for entries around a given location automatically computed from the requester\'s IP address.
|
|
61
76
|
*/
|
|
62
77
|
aroundLatLngViaIP?: boolean;
|
|
78
|
+
|
|
63
79
|
aroundRadius?: AroundRadius;
|
|
80
|
+
|
|
64
81
|
/**
|
|
65
82
|
* Precision of geo search (in meters), to add grouping by geo location to the ranking formula.
|
|
66
83
|
*/
|
|
67
84
|
aroundPrecision?: number;
|
|
85
|
+
|
|
68
86
|
/**
|
|
69
87
|
* Minimum radius (in meters) used for a geo search when aroundRadius is not set.
|
|
70
88
|
*/
|
|
71
89
|
minimumAroundRadius?: number;
|
|
90
|
+
|
|
72
91
|
/**
|
|
73
92
|
* Search inside a rectangular area (in geo coordinates).
|
|
74
93
|
*/
|
|
75
94
|
insideBoundingBox?: number[];
|
|
95
|
+
|
|
76
96
|
/**
|
|
77
97
|
* Search inside a polygon (in geo coordinates).
|
|
78
98
|
*/
|
|
79
99
|
insidePolygon?: number[];
|
|
100
|
+
|
|
80
101
|
/**
|
|
81
102
|
* This parameter changes the default values of certain parameters and settings that work best for a natural language query, such as ignorePlurals, removeStopWords, removeWordsIfNoResults, analyticsTags and ruleContexts. These parameters and settings work well together when the query is formatted in natural language instead of keywords, for example when your user performs a voice search.
|
|
82
103
|
*/
|
|
83
104
|
naturalLanguages?: string[];
|
|
105
|
+
|
|
84
106
|
/**
|
|
85
107
|
* Enables contextual rules.
|
|
86
108
|
*/
|
|
87
109
|
ruleContexts?: string[];
|
|
110
|
+
|
|
88
111
|
/**
|
|
89
112
|
* Define the impact of the Personalization feature.
|
|
90
113
|
*/
|
|
91
114
|
personalizationImpact?: number;
|
|
115
|
+
|
|
92
116
|
/**
|
|
93
117
|
* Associates a certain user token with the current search.
|
|
94
118
|
*/
|
|
95
119
|
userToken?: string;
|
|
120
|
+
|
|
96
121
|
/**
|
|
97
122
|
* Retrieve detailed ranking information.
|
|
98
123
|
*/
|
|
99
124
|
getRankingInfo?: boolean;
|
|
125
|
+
|
|
100
126
|
/**
|
|
101
127
|
* Enable the Click Analytics feature.
|
|
102
128
|
*/
|
|
103
129
|
clickAnalytics?: boolean;
|
|
130
|
+
|
|
104
131
|
/**
|
|
105
132
|
* Whether the current query will be taken into account in the Analytics.
|
|
106
133
|
*/
|
|
107
134
|
analytics?: boolean;
|
|
135
|
+
|
|
108
136
|
/**
|
|
109
137
|
* List of tags to apply to the query for analytics purposes.
|
|
110
138
|
*/
|
|
111
139
|
analyticsTags?: string[];
|
|
140
|
+
|
|
112
141
|
/**
|
|
113
142
|
* Whether to include or exclude a query from the processing-time percentile computation.
|
|
114
143
|
*/
|
|
115
144
|
percentileComputation?: boolean;
|
|
145
|
+
|
|
116
146
|
/**
|
|
117
147
|
* Whether this search should participate in running AB tests.
|
|
118
148
|
*/
|
|
119
149
|
enableABTest?: boolean;
|
|
150
|
+
|
|
120
151
|
/**
|
|
121
152
|
* Whether this search should use AI Re-Ranking.
|
|
122
153
|
*/
|
|
123
154
|
enableReRanking?: boolean;
|
|
155
|
+
|
|
124
156
|
reRankingApplyFilter?: ReRankingApplyFilter | null;
|
|
125
157
|
};
|
|
@@ -8,97 +8,121 @@ export type BaseSearchResponse = {
|
|
|
8
8
|
* If a search encounters an index that is being A/B tested, abTestID reports the ongoing A/B test ID.
|
|
9
9
|
*/
|
|
10
10
|
abTestID?: number;
|
|
11
|
+
|
|
11
12
|
/**
|
|
12
13
|
* If a search encounters an index that is being A/B tested, abTestVariantID reports the variant ID of the index used (starting at 1).
|
|
13
14
|
*/
|
|
14
15
|
abTestVariantID?: number;
|
|
16
|
+
|
|
15
17
|
/**
|
|
16
18
|
* The computed geo location.
|
|
17
19
|
*/
|
|
18
20
|
aroundLatLng?: string;
|
|
21
|
+
|
|
19
22
|
/**
|
|
20
23
|
* The automatically computed radius. For legacy reasons, this parameter is a string and not an integer.
|
|
21
24
|
*/
|
|
22
25
|
automaticRadius?: string;
|
|
26
|
+
|
|
23
27
|
/**
|
|
24
28
|
* Whether the facet count is exhaustive or approximate.
|
|
25
29
|
*/
|
|
26
30
|
exhaustiveFacetsCount?: boolean;
|
|
31
|
+
|
|
27
32
|
/**
|
|
28
33
|
* Indicate if the nbHits count was exhaustive or approximate.
|
|
29
34
|
*/
|
|
30
35
|
exhaustiveNbHits: boolean;
|
|
36
|
+
|
|
31
37
|
/**
|
|
32
38
|
* Indicate if the typo-tolerance search was exhaustive or approximate (only included when typo-tolerance is enabled).
|
|
33
39
|
*/
|
|
34
|
-
exhaustiveTypo
|
|
40
|
+
exhaustiveTypo?: boolean;
|
|
41
|
+
|
|
35
42
|
/**
|
|
36
43
|
* A mapping of each facet name to the corresponding facet counts.
|
|
37
44
|
*/
|
|
38
45
|
facets?: Record<string, Record<string, number>>;
|
|
46
|
+
|
|
39
47
|
/**
|
|
40
48
|
* Statistics for numerical facets.
|
|
41
49
|
*/
|
|
42
50
|
facets_stats?: Record<string, FacetsStats>;
|
|
51
|
+
|
|
43
52
|
/**
|
|
44
53
|
* Set the number of hits per page.
|
|
45
54
|
*/
|
|
46
55
|
hitsPerPage: number;
|
|
56
|
+
|
|
47
57
|
/**
|
|
48
58
|
* Index name used for the query.
|
|
49
59
|
*/
|
|
50
60
|
index?: string;
|
|
61
|
+
|
|
51
62
|
/**
|
|
52
63
|
* Index name used for the query. In the case of an A/B test, the targeted index isn\'t always the index used by the query.
|
|
53
64
|
*/
|
|
54
65
|
indexUsed?: string;
|
|
66
|
+
|
|
55
67
|
/**
|
|
56
68
|
* Used to return warnings about the query.
|
|
57
69
|
*/
|
|
58
70
|
message?: string;
|
|
71
|
+
|
|
59
72
|
/**
|
|
60
73
|
* Number of hits that the search query matched.
|
|
61
74
|
*/
|
|
62
75
|
nbHits: number;
|
|
76
|
+
|
|
63
77
|
/**
|
|
64
78
|
* Number of pages available for the current query.
|
|
65
79
|
*/
|
|
66
80
|
nbPages: number;
|
|
81
|
+
|
|
67
82
|
/**
|
|
68
83
|
* The number of hits selected and sorted by the relevant sort algorithm.
|
|
69
84
|
*/
|
|
70
85
|
nbSortedHits?: number;
|
|
86
|
+
|
|
71
87
|
/**
|
|
72
88
|
* Specify the page to retrieve.
|
|
73
89
|
*/
|
|
74
90
|
page: number;
|
|
91
|
+
|
|
75
92
|
/**
|
|
76
93
|
* A url-encoded string of all search parameters.
|
|
77
94
|
*/
|
|
78
95
|
params: string;
|
|
96
|
+
|
|
79
97
|
/**
|
|
80
98
|
* The query string that will be searched, after normalization.
|
|
81
99
|
*/
|
|
82
100
|
parsedQuery?: string;
|
|
101
|
+
|
|
83
102
|
/**
|
|
84
103
|
* Time the server took to process the request, in milliseconds.
|
|
85
104
|
*/
|
|
86
105
|
processingTimeMS: number;
|
|
106
|
+
|
|
87
107
|
/**
|
|
88
108
|
* The text to search in the index.
|
|
89
109
|
*/
|
|
90
110
|
query: string;
|
|
111
|
+
|
|
91
112
|
/**
|
|
92
113
|
* A markup text indicating which parts of the original query have been removed in order to retrieve a non-empty result set.
|
|
93
114
|
*/
|
|
94
115
|
queryAfterRemoval?: string;
|
|
116
|
+
|
|
95
117
|
/**
|
|
96
118
|
* Actual host name of the server that processed the request.
|
|
97
119
|
*/
|
|
98
120
|
serverUsed?: string;
|
|
121
|
+
|
|
99
122
|
/**
|
|
100
123
|
* Lets you store custom data in your indices.
|
|
101
124
|
*/
|
|
102
125
|
userData?: Record<string, any>;
|
|
126
|
+
|
|
103
127
|
renderingContent?: RenderingContent;
|
|
104
128
|
};
|
|
@@ -10,6 +10,7 @@ export type BatchDictionaryEntriesParams = {
|
|
|
10
10
|
* When `true`, start the batch by removing all the custom entries from the dictionary.
|
|
11
11
|
*/
|
|
12
12
|
clearExistingDictionaryEntries?: boolean;
|
|
13
|
+
|
|
13
14
|
/**
|
|
14
15
|
* List of operations to batch. Each operation is described by an `action` and a `body`.
|
|
15
16
|
*/
|
package/model/batchParams.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
2
|
|
|
3
|
-
import type {
|
|
3
|
+
import type { MultipleBatchRequest } from './multipleBatchRequest';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The `multipleBatch` parameters.
|
|
7
7
|
*/
|
|
8
8
|
export type BatchParams = {
|
|
9
|
-
requests
|
|
9
|
+
requests: MultipleBatchRequest[];
|
|
10
10
|
};
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
import type { Action } from './action';
|
|
4
4
|
|
|
5
|
-
export type
|
|
6
|
-
action
|
|
5
|
+
export type BatchRequest = {
|
|
6
|
+
action: Action;
|
|
7
|
+
|
|
7
8
|
/**
|
|
8
9
|
* Arguments to the operation (depends on the type of the operation).
|
|
9
10
|
*/
|
|
10
|
-
body
|
|
11
|
+
body: Record<string, any>;
|
|
11
12
|
};
|
package/model/batchResponse.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
2
|
|
|
3
|
-
import type {
|
|
3
|
+
import type { BatchRequest } from './batchRequest';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The `batch` parameters.
|
|
7
7
|
*/
|
|
8
8
|
export type BatchWriteParams = {
|
|
9
|
-
requests
|
|
9
|
+
requests: BatchRequest[];
|
|
10
10
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
import type { BrowseParamsObject } from './browseParamsObject';
|
|
4
|
+
import type { SearchParamsString } from './searchParamsString';
|
|
5
|
+
|
|
6
|
+
export type BrowseParams = BrowseParamsObject | SearchParamsString;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
import type { Cursor } from './cursor';
|
|
4
|
+
import type { SearchParamsObject } from './searchParamsObject';
|
|
5
|
+
|
|
6
|
+
export type BrowseParamsObject = Cursor & SearchParamsObject;
|
package/model/browseResponse.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
2
|
|
|
3
|
-
import type { BaseBrowseResponse } from './baseBrowseResponse';
|
|
4
3
|
import type { BaseSearchResponse } from './baseSearchResponse';
|
|
4
|
+
import type { Cursor } from './cursor';
|
|
5
5
|
import type { SearchHits } from './searchHits';
|
|
6
6
|
|
|
7
|
-
export type BrowseResponse<T
|
|
8
|
-
|
|
7
|
+
export type BrowseResponse<T = Record<string, any>> = BaseSearchResponse &
|
|
8
|
+
Cursor &
|
|
9
9
|
SearchHits<T>;
|
|
@@ -7,6 +7,7 @@ import type { BuiltInOperationType } from './builtInOperationType';
|
|
|
7
7
|
*/
|
|
8
8
|
export type BuiltInOperation = {
|
|
9
9
|
_operation: BuiltInOperationType;
|
|
10
|
+
|
|
10
11
|
/**
|
|
11
12
|
* The right-hand side argument to the operation, for example, increment or decrement step, value to add or remove.
|
|
12
13
|
*/
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
2
|
|
|
3
|
-
import type {
|
|
3
|
+
import type { CreateIterablePromise } from '@algolia/client-common';
|
|
4
4
|
|
|
5
5
|
import type { ApiKey } from './apiKey';
|
|
6
6
|
import type { AssignUserIdParams } from './assignUserIdParams';
|
|
7
|
-
import type {
|
|
7
|
+
import type { AttributeToUpdate } from './attributeToUpdate';
|
|
8
8
|
import type { BatchAssignUserIdsParams } from './batchAssignUserIdsParams';
|
|
9
9
|
import type { BatchDictionaryEntriesParams } from './batchDictionaryEntriesParams';
|
|
10
10
|
import type { BatchWriteParams } from './batchWriteParams';
|
|
11
|
-
import type {
|
|
11
|
+
import type { BrowseParams } from './browseParams';
|
|
12
|
+
import type { DeleteByParams } from './deleteByParams';
|
|
12
13
|
import type { DictionaryType } from './dictionaryType';
|
|
13
|
-
import type { GetTaskResponse } from './getTaskResponse';
|
|
14
14
|
import type { IndexSettings } from './indexSettings';
|
|
15
|
-
import type { Key } from './key';
|
|
16
15
|
import type { LogType } from './logType';
|
|
17
16
|
import type { OperationIndexParams } from './operationIndexParams';
|
|
18
17
|
import type { Rule } from './rule';
|
|
@@ -98,7 +97,7 @@ export type BrowseProps = {
|
|
|
98
97
|
* The index in which to perform the request.
|
|
99
98
|
*/
|
|
100
99
|
indexName: string;
|
|
101
|
-
|
|
100
|
+
browseParams?: BrowseParams;
|
|
102
101
|
};
|
|
103
102
|
|
|
104
103
|
/**
|
|
@@ -171,7 +170,7 @@ export type DeleteByProps = {
|
|
|
171
170
|
* The index in which to perform the request.
|
|
172
171
|
*/
|
|
173
172
|
indexName: string;
|
|
174
|
-
|
|
173
|
+
deleteByParams: DeleteByParams;
|
|
175
174
|
};
|
|
176
175
|
|
|
177
176
|
/**
|
|
@@ -428,11 +427,9 @@ export type PartialUpdateObjectProps = {
|
|
|
428
427
|
*/
|
|
429
428
|
objectID: string;
|
|
430
429
|
/**
|
|
431
|
-
*
|
|
430
|
+
* Map of attribute(s) to update.
|
|
432
431
|
*/
|
|
433
|
-
|
|
434
|
-
Record<string, AttributeOrBuiltInOperation>
|
|
435
|
-
>;
|
|
432
|
+
attributesToUpdate: Record<string, AttributeToUpdate>;
|
|
436
433
|
/**
|
|
437
434
|
* Creates the record if it does not exist yet.
|
|
438
435
|
*/
|
|
@@ -546,7 +543,7 @@ export type SaveRulesProps = {
|
|
|
546
543
|
* The index in which to perform the request.
|
|
547
544
|
*/
|
|
548
545
|
indexName: string;
|
|
549
|
-
|
|
546
|
+
rules: Rule[];
|
|
550
547
|
/**
|
|
551
548
|
* When true, changes are also propagated to replicas of the given indexName.
|
|
552
549
|
*/
|
|
@@ -661,7 +658,7 @@ export type SearchRulesProps = {
|
|
|
661
658
|
* The index in which to perform the request.
|
|
662
659
|
*/
|
|
663
660
|
indexName: string;
|
|
664
|
-
searchRulesParams
|
|
661
|
+
searchRulesParams?: SearchRulesParams;
|
|
665
662
|
};
|
|
666
663
|
|
|
667
664
|
/**
|
|
@@ -727,12 +724,27 @@ export type UpdateApiKeyProps = {
|
|
|
727
724
|
apiKey: ApiKey;
|
|
728
725
|
};
|
|
729
726
|
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
727
|
+
/**
|
|
728
|
+
* The `browseObjects`, `browseRules`, `browseSynonyms` options.
|
|
729
|
+
*/
|
|
730
|
+
export type BrowseOptions<T> = Partial<
|
|
731
|
+
Pick<CreateIterablePromise<T>, 'validate'>
|
|
732
|
+
> &
|
|
733
|
+
Required<Pick<CreateIterablePromise<T>, 'aggregator'>>;
|
|
734
|
+
|
|
735
|
+
type WaitForOptions = Partial<{
|
|
736
|
+
/**
|
|
737
|
+
* The maximum number of retries. 50 by default.
|
|
738
|
+
*/
|
|
739
|
+
maxRetries: number;
|
|
740
|
+
|
|
741
|
+
/**
|
|
742
|
+
* The function to decide how long to wait between retries.
|
|
743
|
+
*/
|
|
744
|
+
timeout: (retryCount: number) => number;
|
|
745
|
+
}>;
|
|
734
746
|
|
|
735
|
-
export type WaitForTaskOptions = WaitForOptions
|
|
747
|
+
export type WaitForTaskOptions = WaitForOptions & {
|
|
736
748
|
/**
|
|
737
749
|
* The `indexName` where the operation was performed.
|
|
738
750
|
*/
|
|
@@ -743,7 +755,7 @@ export type WaitForTaskOptions = WaitForOptions<GetTaskResponse> & {
|
|
|
743
755
|
taskID: number;
|
|
744
756
|
};
|
|
745
757
|
|
|
746
|
-
export type WaitForApiKeyOptions = WaitForOptions
|
|
758
|
+
export type WaitForApiKeyOptions = WaitForOptions & {
|
|
747
759
|
/**
|
|
748
760
|
* The API Key.
|
|
749
761
|
*/
|
package/model/condition.ts
CHANGED
|
@@ -7,11 +7,14 @@ export type Condition = {
|
|
|
7
7
|
* Query pattern syntax.
|
|
8
8
|
*/
|
|
9
9
|
pattern?: string;
|
|
10
|
+
|
|
10
11
|
anchoring?: Anchoring;
|
|
12
|
+
|
|
11
13
|
/**
|
|
12
14
|
* Whether the pattern matches on plurals, synonyms, and typos.
|
|
13
15
|
*/
|
|
14
16
|
alternatives?: boolean;
|
|
17
|
+
|
|
15
18
|
/**
|
|
16
19
|
* Rule context format: [A-Za-z0-9_-]+).
|
|
17
20
|
*/
|