algoliasearch 5.0.0-alpha.106 → 5.0.0-alpha.108
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/algoliasearch/builds/browser.d.ts +2 -2
- package/dist/algoliasearch/builds/node.d.ts +2 -2
- package/dist/algoliasearch.cjs +191 -191
- package/dist/algoliasearch.esm.browser.js +191 -191
- package/dist/algoliasearch.esm.node.js +191 -191
- package/dist/algoliasearch.umd.js +2 -2
- package/dist/client-abtesting/model/aBTestResponse.d.ts +1 -1
- package/dist/client-abtesting/model/clientMethodProps.d.ts +2 -2
- package/dist/client-abtesting/src/abtestingClient.d.ts +3 -3
- package/dist/client-analytics/model/clientMethodProps.d.ts +65 -65
- package/dist/client-analytics/model/searchNoResultEvent.d.ts +1 -1
- package/dist/client-analytics/model/topSearch.d.ts +1 -1
- package/dist/client-analytics/model/topSearchWithAnalytics.d.ts +1 -1
- package/dist/client-analytics/src/analyticsClient.d.ts +66 -66
- package/dist/client-personalization/src/personalizationClient.d.ts +1 -1
- package/dist/client-search/model/acl.d.ts +1 -1
- package/dist/client-search/model/action.d.ts +1 -1
- package/dist/client-search/model/addApiKeyResponse.d.ts +1 -1
- package/dist/client-search/model/anchoring.d.ts +1 -1
- package/dist/client-search/model/apiKey.d.ts +8 -8
- package/dist/client-search/model/aroundPrecision.d.ts +1 -1
- package/dist/client-search/model/aroundPrecisionFromValueInner.d.ts +9 -0
- package/dist/client-search/model/aroundPrecisionFromValueInner.d.ts.map +1 -1
- package/dist/client-search/model/aroundRadius.d.ts +1 -1
- package/dist/client-search/model/aroundRadiusAll.d.ts +3 -0
- package/dist/client-search/model/aroundRadiusAll.d.ts.map +1 -1
- package/dist/client-search/model/automaticFacetFilter.d.ts +4 -4
- package/dist/client-search/model/automaticFacetFilters.d.ts +1 -1
- package/dist/client-search/model/baseIndexSettings.d.ts +22 -17
- package/dist/client-search/model/baseIndexSettings.d.ts.map +1 -1
- package/dist/client-search/model/baseSearchParamsWithoutQuery.d.ts +24 -28
- package/dist/client-search/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
- package/dist/client-search/model/baseSearchResponse.d.ts +6 -6
- package/dist/client-search/model/batchDictionaryEntriesParams.d.ts +3 -3
- package/dist/client-search/model/batchResponse.d.ts +2 -2
- package/dist/client-search/model/builtInOperation.d.ts +2 -2
- package/dist/client-search/model/builtInOperationType.d.ts +1 -1
- package/dist/client-search/model/clientMethodProps.d.ts +63 -63
- package/dist/client-search/model/condition.d.ts +7 -3
- package/dist/client-search/model/condition.d.ts.map +1 -1
- package/dist/client-search/model/consequence.d.ts +5 -5
- package/dist/client-search/model/consequenceHide.d.ts +2 -2
- package/dist/client-search/model/consequenceQuery.d.ts +1 -1
- package/dist/client-search/model/consequenceQueryObject.d.ts +2 -2
- package/dist/client-search/model/createdAtResponse.d.ts +1 -1
- package/dist/client-search/model/cursor.d.ts +1 -1
- package/dist/client-search/model/deleteByParams.d.ts +4 -4
- package/dist/client-search/model/deletedAtResponse.d.ts +1 -1
- package/dist/client-search/model/dictionaryEntry.d.ts +6 -8
- package/dist/client-search/model/dictionaryEntry.d.ts.map +1 -1
- package/dist/client-search/model/dictionaryEntryState.d.ts +1 -1
- package/dist/client-search/model/dictionaryLanguage.d.ts +2 -2
- package/dist/client-search/model/dictionarySettingsParams.d.ts +1 -1
- package/dist/client-search/model/distinct.d.ts +1 -1
- package/dist/client-search/model/edit.d.ts +1 -1
- package/dist/client-search/model/exactOnSingleWordQuery.d.ts +1 -1
- package/dist/client-search/model/facetFilters.d.ts +1 -1
- package/dist/client-search/model/facetHits.d.ts +2 -2
- package/dist/client-search/model/facetOrdering.d.ts +2 -2
- package/dist/client-search/model/facets.d.ts +2 -2
- package/dist/client-search/model/getObjectsRequest.d.ts +3 -3
- package/dist/client-search/model/getObjectsResponse.d.ts +1 -1
- package/dist/client-search/model/hasPendingMappingsResponse.d.ts +1 -1
- package/dist/client-search/model/highlightResultOption.d.ts +3 -3
- package/dist/client-search/model/hit.d.ts +4 -4
- package/dist/client-search/model/ignorePlurals.d.ts +3 -2
- package/dist/client-search/model/ignorePlurals.d.ts.map +1 -1
- package/dist/client-search/model/index.d.ts +2 -0
- package/dist/client-search/model/index.d.ts.map +1 -1
- package/dist/client-search/model/indexSettings.d.ts +1 -1
- package/dist/client-search/model/indexSettingsAsSearchParams.d.ts +32 -35
- package/dist/client-search/model/indexSettingsAsSearchParams.d.ts.map +1 -1
- package/dist/client-search/model/log.d.ts +11 -11
- package/dist/client-search/model/logQuery.d.ts +1 -1
- package/dist/client-search/model/matchLevel.d.ts +1 -1
- package/dist/client-search/model/mode.d.ts +1 -1
- package/dist/client-search/model/multipleBatchResponse.d.ts +2 -2
- package/dist/client-search/model/numericFilters.d.ts +1 -1
- package/dist/client-search/model/operationIndexParams.d.ts +2 -2
- package/dist/client-search/model/operationType.d.ts +1 -1
- package/dist/client-search/model/optionalFilters.d.ts +1 -1
- package/dist/client-search/model/params.d.ts +1 -1
- package/dist/client-search/model/promoteObjectID.d.ts +2 -2
- package/dist/client-search/model/promoteObjectIDs.d.ts +2 -2
- package/dist/client-search/model/queryType.d.ts +1 -1
- package/dist/client-search/model/rankingInfo.d.ts +10 -7
- package/dist/client-search/model/rankingInfo.d.ts.map +1 -1
- package/dist/client-search/model/reRankingApplyFilter.d.ts +1 -1
- package/dist/client-search/model/removeStopWords.d.ts +3 -2
- package/dist/client-search/model/removeStopWords.d.ts.map +1 -1
- package/dist/client-search/model/removeWordsIfNoResults.d.ts +1 -1
- package/dist/client-search/model/renderingContent.d.ts +1 -1
- package/dist/client-search/model/rule.d.ts +5 -5
- package/dist/client-search/model/saveObjectResponse.d.ts +3 -3
- package/dist/client-search/model/saveSynonymResponse.d.ts +1 -1
- package/dist/client-search/model/searchDictionaryEntriesParams.d.ts +5 -7
- package/dist/client-search/model/searchDictionaryEntriesParams.d.ts.map +1 -1
- package/dist/client-search/model/searchDictionaryEntriesResponse.d.ts +20 -0
- package/dist/client-search/model/searchDictionaryEntriesResponse.d.ts.map +1 -0
- package/dist/client-search/model/searchForFacetValuesRequest.d.ts +1 -1
- package/dist/client-search/model/searchForFacetValuesResponse.d.ts +3 -0
- package/dist/client-search/model/searchForFacetValuesResponse.d.ts.map +1 -1
- package/dist/client-search/model/searchForFacetsOptions.d.ts +2 -2
- package/dist/client-search/model/searchForHitsOptions.d.ts +1 -1
- package/dist/client-search/model/searchHits.d.ts +4 -1
- package/dist/client-search/model/searchHits.d.ts.map +1 -1
- package/dist/client-search/model/searchParamsQuery.d.ts +1 -1
- package/dist/client-search/model/searchRulesParams.d.ts +4 -8
- package/dist/client-search/model/searchRulesParams.d.ts.map +1 -1
- package/dist/client-search/model/searchRulesResponse.d.ts +2 -2
- package/dist/client-search/model/searchStrategy.d.ts +1 -1
- package/dist/client-search/model/searchSynonymsParams.d.ts +2 -2
- package/dist/client-search/model/searchSynonymsResponse.d.ts +2 -2
- package/dist/client-search/model/searchUserIdsParams.d.ts +1 -1
- package/dist/client-search/model/searchUserIdsResponse.d.ts +2 -2
- package/dist/client-search/model/securedAPIKeyRestrictions.d.ts +5 -5
- package/dist/client-search/model/semanticSearch.d.ts +2 -2
- package/dist/client-search/model/snippetResultOption.d.ts +2 -2
- package/dist/client-search/model/sortRemainingBy.d.ts +1 -1
- package/dist/client-search/model/supportedLanguage.d.ts +5 -0
- package/dist/client-search/model/supportedLanguage.d.ts.map +1 -0
- package/dist/client-search/model/tagFilters.d.ts +1 -1
- package/dist/client-search/model/taskStatus.d.ts +1 -1
- package/dist/client-search/model/timeRange.d.ts +2 -2
- package/dist/client-search/model/typoTolerance.d.ts +1 -1
- package/dist/client-search/model/typoToleranceEnum.d.ts +3 -0
- package/dist/client-search/model/typoToleranceEnum.d.ts.map +1 -1
- package/dist/client-search/model/updatedAtResponse.d.ts +1 -1
- package/dist/client-search/model/updatedAtWithObjectIdResponse.d.ts +2 -2
- package/dist/client-search/model/updatedRuleResponse.d.ts +2 -2
- package/dist/client-search/model/userHit.d.ts +1 -1
- package/dist/client-search/model/userId.d.ts +1 -1
- package/dist/client-search/model/value.d.ts +1 -1
- package/dist/client-search/src/searchClient.d.ts +124 -123
- package/dist/client-search/src/searchClient.d.ts.map +1 -1
- package/dist/lite/lite.cjs +3 -3
- package/dist/lite/lite.esm.browser.js +3 -3
- package/dist/lite/lite.esm.node.js +3 -3
- package/dist/lite/lite.umd.js +2 -2
- package/dist/lite/model/acl.d.ts +1 -1
- package/dist/lite/model/action.d.ts +1 -1
- package/dist/lite/model/addApiKeyResponse.d.ts +1 -1
- package/dist/lite/model/anchoring.d.ts +1 -1
- package/dist/lite/model/apiKey.d.ts +8 -8
- package/dist/lite/model/aroundPrecision.d.ts +1 -1
- package/dist/lite/model/aroundPrecisionFromValueInner.d.ts +9 -0
- package/dist/lite/model/aroundPrecisionFromValueInner.d.ts.map +1 -1
- package/dist/lite/model/aroundRadius.d.ts +1 -1
- package/dist/lite/model/aroundRadiusAll.d.ts +3 -0
- package/dist/lite/model/aroundRadiusAll.d.ts.map +1 -1
- package/dist/lite/model/automaticFacetFilter.d.ts +4 -4
- package/dist/lite/model/automaticFacetFilters.d.ts +1 -1
- package/dist/lite/model/baseIndexSettings.d.ts +22 -17
- package/dist/lite/model/baseIndexSettings.d.ts.map +1 -1
- package/dist/lite/model/baseSearchParamsWithoutQuery.d.ts +24 -28
- package/dist/lite/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
- package/dist/lite/model/baseSearchResponse.d.ts +6 -6
- package/dist/lite/model/builtInOperation.d.ts +2 -2
- package/dist/lite/model/builtInOperationType.d.ts +1 -1
- package/dist/lite/model/condition.d.ts +7 -3
- package/dist/lite/model/condition.d.ts.map +1 -1
- package/dist/lite/model/consequence.d.ts +5 -5
- package/dist/lite/model/consequenceHide.d.ts +2 -2
- package/dist/lite/model/consequenceQuery.d.ts +1 -1
- package/dist/lite/model/consequenceQueryObject.d.ts +2 -2
- package/dist/lite/model/cursor.d.ts +1 -1
- package/dist/lite/model/deleteByParams.d.ts +4 -4
- package/dist/lite/model/dictionaryEntry.d.ts +6 -8
- package/dist/lite/model/dictionaryEntry.d.ts.map +1 -1
- package/dist/lite/model/dictionaryEntryState.d.ts +1 -1
- package/dist/lite/model/dictionaryLanguage.d.ts +2 -2
- package/dist/lite/model/distinct.d.ts +1 -1
- package/dist/lite/model/edit.d.ts +1 -1
- package/dist/lite/model/exactOnSingleWordQuery.d.ts +1 -1
- package/dist/lite/model/facetFilters.d.ts +1 -1
- package/dist/lite/model/facetHits.d.ts +2 -2
- package/dist/lite/model/facetOrdering.d.ts +2 -2
- package/dist/lite/model/facets.d.ts +2 -2
- package/dist/lite/model/highlightResultOption.d.ts +3 -3
- package/dist/lite/model/hit.d.ts +4 -4
- package/dist/lite/model/ignorePlurals.d.ts +3 -2
- package/dist/lite/model/ignorePlurals.d.ts.map +1 -1
- package/dist/lite/model/index.d.ts +2 -0
- package/dist/lite/model/index.d.ts.map +1 -1
- package/dist/lite/model/indexSettings.d.ts +1 -1
- package/dist/lite/model/indexSettingsAsSearchParams.d.ts +32 -35
- package/dist/lite/model/indexSettingsAsSearchParams.d.ts.map +1 -1
- package/dist/lite/model/matchLevel.d.ts +1 -1
- package/dist/lite/model/mode.d.ts +1 -1
- package/dist/lite/model/numericFilters.d.ts +1 -1
- package/dist/lite/model/operationType.d.ts +1 -1
- package/dist/lite/model/optionalFilters.d.ts +1 -1
- package/dist/lite/model/params.d.ts +1 -1
- package/dist/lite/model/promoteObjectID.d.ts +2 -2
- package/dist/lite/model/promoteObjectIDs.d.ts +2 -2
- package/dist/lite/model/queryType.d.ts +1 -1
- package/dist/lite/model/rankingInfo.d.ts +10 -7
- package/dist/lite/model/rankingInfo.d.ts.map +1 -1
- package/dist/lite/model/reRankingApplyFilter.d.ts +1 -1
- package/dist/lite/model/removeStopWords.d.ts +3 -2
- package/dist/lite/model/removeStopWords.d.ts.map +1 -1
- package/dist/lite/model/removeWordsIfNoResults.d.ts +1 -1
- package/dist/lite/model/renderingContent.d.ts +1 -1
- package/dist/lite/model/rule.d.ts +5 -5
- package/dist/lite/model/searchDictionaryEntriesResponse.d.ts +20 -0
- package/dist/lite/model/searchDictionaryEntriesResponse.d.ts.map +1 -0
- package/dist/lite/model/searchForFacetValuesResponse.d.ts +3 -0
- package/dist/lite/model/searchForFacetValuesResponse.d.ts.map +1 -1
- package/dist/lite/model/searchForFacetsOptions.d.ts +2 -2
- package/dist/lite/model/searchForHitsOptions.d.ts +1 -1
- package/dist/lite/model/searchHits.d.ts +4 -1
- package/dist/lite/model/searchHits.d.ts.map +1 -1
- package/dist/lite/model/searchParamsQuery.d.ts +1 -1
- package/dist/lite/model/searchStrategy.d.ts +1 -1
- package/dist/lite/model/searchSynonymsResponse.d.ts +2 -2
- package/dist/lite/model/securedAPIKeyRestrictions.d.ts +5 -5
- package/dist/lite/model/semanticSearch.d.ts +2 -2
- package/dist/lite/model/snippetResultOption.d.ts +2 -2
- package/dist/lite/model/sortRemainingBy.d.ts +1 -1
- package/dist/lite/model/supportedLanguage.d.ts +5 -0
- package/dist/lite/model/supportedLanguage.d.ts.map +1 -0
- package/dist/lite/model/tagFilters.d.ts +1 -1
- package/dist/lite/model/taskStatus.d.ts +1 -1
- package/dist/lite/model/timeRange.d.ts +2 -2
- package/dist/lite/model/typoTolerance.d.ts +1 -1
- package/dist/lite/model/typoToleranceEnum.d.ts +3 -0
- package/dist/lite/model/typoToleranceEnum.d.ts.map +1 -1
- package/dist/lite/model/updatedRuleResponse.d.ts +2 -2
- package/dist/lite/model/userId.d.ts +1 -1
- package/dist/lite/model/value.d.ts +1 -1
- package/dist/lite/src/liteClient.d.ts +3 -3
- package/dist/lite/src/liteClient.d.ts.map +1 -1
- package/lite/model/acl.ts +1 -1
- package/lite/model/action.ts +1 -1
- package/lite/model/addApiKeyResponse.ts +1 -1
- package/lite/model/anchoring.ts +1 -1
- package/lite/model/apiKey.ts +8 -8
- package/lite/model/aroundPrecision.ts +1 -1
- package/lite/model/aroundPrecisionFromValueInner.ts +9 -0
- package/lite/model/aroundRadius.ts +1 -1
- package/lite/model/aroundRadiusAll.ts +3 -0
- package/lite/model/automaticFacetFilter.ts +4 -4
- package/lite/model/automaticFacetFilters.ts +1 -1
- package/lite/model/baseIndexSettings.ts +24 -17
- package/lite/model/baseSearchParamsWithoutQuery.ts +24 -29
- package/lite/model/baseSearchResponse.ts +6 -6
- package/lite/model/builtInOperation.ts +2 -2
- package/lite/model/builtInOperationType.ts +1 -1
- package/lite/model/condition.ts +8 -3
- package/lite/model/consequence.ts +5 -5
- package/lite/model/consequenceHide.ts +2 -2
- package/lite/model/consequenceQuery.ts +1 -1
- package/lite/model/consequenceQueryObject.ts +2 -2
- package/lite/model/cursor.ts +1 -1
- package/lite/model/deleteByParams.ts +4 -4
- package/lite/model/dictionaryEntry.ts +6 -8
- package/lite/model/dictionaryEntryState.ts +1 -1
- package/lite/model/dictionaryLanguage.ts +2 -2
- package/lite/model/distinct.ts +1 -1
- package/lite/model/edit.ts +1 -1
- package/lite/model/exactOnSingleWordQuery.ts +1 -1
- package/lite/model/facetFilters.ts +1 -1
- package/lite/model/facetHits.ts +2 -2
- package/lite/model/facetOrdering.ts +2 -2
- package/lite/model/facets.ts +2 -2
- package/lite/model/highlightResultOption.ts +3 -3
- package/lite/model/hit.ts +4 -4
- package/lite/model/ignorePlurals.ts +4 -2
- package/lite/model/index.ts +2 -0
- package/lite/model/indexSettings.ts +1 -1
- package/lite/model/indexSettingsAsSearchParams.ts +32 -36
- package/lite/model/matchLevel.ts +1 -1
- package/lite/model/mode.ts +1 -1
- package/lite/model/numericFilters.ts +1 -1
- package/lite/model/operationType.ts +1 -1
- package/lite/model/optionalFilters.ts +1 -1
- package/lite/model/params.ts +1 -1
- package/lite/model/promoteObjectID.ts +2 -2
- package/lite/model/promoteObjectIDs.ts +2 -2
- package/lite/model/queryType.ts +1 -1
- package/lite/model/rankingInfo.ts +10 -7
- package/lite/model/reRankingApplyFilter.ts +1 -1
- package/lite/model/removeStopWords.ts +4 -2
- package/lite/model/removeWordsIfNoResults.ts +1 -1
- package/lite/model/renderingContent.ts +1 -1
- package/lite/model/rule.ts +5 -5
- package/lite/model/searchDictionaryEntriesResponse.ts +25 -0
- package/lite/model/searchForFacetValuesResponse.ts +3 -0
- package/lite/model/searchForFacetsOptions.ts +2 -2
- package/lite/model/searchForHitsOptions.ts +1 -1
- package/lite/model/searchHits.ts +4 -1
- package/lite/model/searchParamsQuery.ts +1 -1
- package/lite/model/searchStrategy.ts +1 -1
- package/lite/model/searchSynonymsResponse.ts +2 -2
- package/lite/model/securedAPIKeyRestrictions.ts +5 -5
- package/lite/model/semanticSearch.ts +2 -2
- package/lite/model/snippetResultOption.ts +2 -2
- package/lite/model/sortRemainingBy.ts +1 -1
- package/lite/model/supportedLanguage.ts +74 -0
- package/lite/model/tagFilters.ts +1 -1
- package/lite/model/taskStatus.ts +1 -1
- package/lite/model/timeRange.ts +2 -2
- package/lite/model/typoTolerance.ts +1 -1
- package/lite/model/typoToleranceEnum.ts +3 -0
- package/lite/model/updatedRuleResponse.ts +2 -2
- package/lite/model/userId.ts +1 -1
- package/lite/model/value.ts +1 -1
- package/lite/src/liteClient.ts +3 -3
- package/package.json +11 -11
|
@@ -32,15 +32,15 @@ import type { UpdatedAtResponse } from './updatedAtResponse';
|
|
|
32
32
|
*/
|
|
33
33
|
export type AddOrUpdateObjectProps = {
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Name of the index on which to perform the operation.
|
|
36
36
|
*/
|
|
37
37
|
indexName: string;
|
|
38
38
|
/**
|
|
39
|
-
* Unique record
|
|
39
|
+
* Unique record identifier.
|
|
40
40
|
*/
|
|
41
41
|
objectID: string;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* The record, a schemaless object with attributes that are useful in the context of search and discovery.
|
|
44
44
|
*/
|
|
45
45
|
body: Record<string, any>;
|
|
46
46
|
};
|
|
@@ -49,7 +49,7 @@ export type AddOrUpdateObjectProps = {
|
|
|
49
49
|
*/
|
|
50
50
|
export type AssignUserIdProps = {
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* User ID to assign.
|
|
53
53
|
*/
|
|
54
54
|
xAlgoliaUserID: string;
|
|
55
55
|
assignUserIdParams: AssignUserIdParams;
|
|
@@ -59,7 +59,7 @@ export type AssignUserIdProps = {
|
|
|
59
59
|
*/
|
|
60
60
|
export type BatchProps = {
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* Name of the index on which to perform the operation.
|
|
63
63
|
*/
|
|
64
64
|
indexName: string;
|
|
65
65
|
batchWriteParams: BatchWriteParams;
|
|
@@ -69,7 +69,7 @@ export type BatchProps = {
|
|
|
69
69
|
*/
|
|
70
70
|
export type BatchAssignUserIdsProps = {
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* User ID to assign.
|
|
73
73
|
*/
|
|
74
74
|
xAlgoliaUserID: string;
|
|
75
75
|
batchAssignUserIdsParams: BatchAssignUserIdsParams;
|
|
@@ -79,7 +79,7 @@ export type BatchAssignUserIdsProps = {
|
|
|
79
79
|
*/
|
|
80
80
|
export type BatchDictionaryEntriesProps = {
|
|
81
81
|
/**
|
|
82
|
-
* Dictionary to search
|
|
82
|
+
* Dictionary type in which to search.
|
|
83
83
|
*/
|
|
84
84
|
dictionaryName: DictionaryType;
|
|
85
85
|
batchDictionaryEntriesParams: BatchDictionaryEntriesParams;
|
|
@@ -89,7 +89,7 @@ export type BatchDictionaryEntriesProps = {
|
|
|
89
89
|
*/
|
|
90
90
|
export type BrowseProps = {
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
92
|
+
* Name of the index on which to perform the operation.
|
|
93
93
|
*/
|
|
94
94
|
indexName: string;
|
|
95
95
|
browseParams?: BrowseParams;
|
|
@@ -99,7 +99,7 @@ export type BrowseProps = {
|
|
|
99
99
|
*/
|
|
100
100
|
export type ClearObjectsProps = {
|
|
101
101
|
/**
|
|
102
|
-
*
|
|
102
|
+
* Name of the index on which to perform the operation.
|
|
103
103
|
*/
|
|
104
104
|
indexName: string;
|
|
105
105
|
};
|
|
@@ -108,11 +108,11 @@ export type ClearObjectsProps = {
|
|
|
108
108
|
*/
|
|
109
109
|
export type ClearRulesProps = {
|
|
110
110
|
/**
|
|
111
|
-
*
|
|
111
|
+
* Name of the index on which to perform the operation.
|
|
112
112
|
*/
|
|
113
113
|
indexName: string;
|
|
114
114
|
/**
|
|
115
|
-
*
|
|
115
|
+
* Whether changes are applied to replica indices.
|
|
116
116
|
*/
|
|
117
117
|
forwardToReplicas?: boolean;
|
|
118
118
|
};
|
|
@@ -121,11 +121,11 @@ export type ClearRulesProps = {
|
|
|
121
121
|
*/
|
|
122
122
|
export type ClearSynonymsProps = {
|
|
123
123
|
/**
|
|
124
|
-
*
|
|
124
|
+
* Name of the index on which to perform the operation.
|
|
125
125
|
*/
|
|
126
126
|
indexName: string;
|
|
127
127
|
/**
|
|
128
|
-
*
|
|
128
|
+
* Whether changes are applied to replica indices.
|
|
129
129
|
*/
|
|
130
130
|
forwardToReplicas?: boolean;
|
|
131
131
|
};
|
|
@@ -203,7 +203,7 @@ export type DeleteApiKeyProps = {
|
|
|
203
203
|
*/
|
|
204
204
|
export type DeleteByProps = {
|
|
205
205
|
/**
|
|
206
|
-
*
|
|
206
|
+
* Name of the index on which to perform the operation.
|
|
207
207
|
*/
|
|
208
208
|
indexName: string;
|
|
209
209
|
deleteByParams: DeleteByParams;
|
|
@@ -213,7 +213,7 @@ export type DeleteByProps = {
|
|
|
213
213
|
*/
|
|
214
214
|
export type DeleteIndexProps = {
|
|
215
215
|
/**
|
|
216
|
-
*
|
|
216
|
+
* Name of the index on which to perform the operation.
|
|
217
217
|
*/
|
|
218
218
|
indexName: string;
|
|
219
219
|
};
|
|
@@ -222,11 +222,11 @@ export type DeleteIndexProps = {
|
|
|
222
222
|
*/
|
|
223
223
|
export type DeleteObjectProps = {
|
|
224
224
|
/**
|
|
225
|
-
*
|
|
225
|
+
* Name of the index on which to perform the operation.
|
|
226
226
|
*/
|
|
227
227
|
indexName: string;
|
|
228
228
|
/**
|
|
229
|
-
* Unique record
|
|
229
|
+
* Unique record identifier.
|
|
230
230
|
*/
|
|
231
231
|
objectID: string;
|
|
232
232
|
};
|
|
@@ -235,7 +235,7 @@ export type DeleteObjectProps = {
|
|
|
235
235
|
*/
|
|
236
236
|
export type DeleteRuleProps = {
|
|
237
237
|
/**
|
|
238
|
-
*
|
|
238
|
+
* Name of the index on which to perform the operation.
|
|
239
239
|
*/
|
|
240
240
|
indexName: string;
|
|
241
241
|
/**
|
|
@@ -243,7 +243,7 @@ export type DeleteRuleProps = {
|
|
|
243
243
|
*/
|
|
244
244
|
objectID: string;
|
|
245
245
|
/**
|
|
246
|
-
*
|
|
246
|
+
* Whether changes are applied to replica indices.
|
|
247
247
|
*/
|
|
248
248
|
forwardToReplicas?: boolean;
|
|
249
249
|
};
|
|
@@ -261,7 +261,7 @@ export type DeleteSourceProps = {
|
|
|
261
261
|
*/
|
|
262
262
|
export type DeleteSynonymProps = {
|
|
263
263
|
/**
|
|
264
|
-
*
|
|
264
|
+
* Name of the index on which to perform the operation.
|
|
265
265
|
*/
|
|
266
266
|
indexName: string;
|
|
267
267
|
/**
|
|
@@ -269,7 +269,7 @@ export type DeleteSynonymProps = {
|
|
|
269
269
|
*/
|
|
270
270
|
objectID: string;
|
|
271
271
|
/**
|
|
272
|
-
*
|
|
272
|
+
* Whether changes are applied to replica indices.
|
|
273
273
|
*/
|
|
274
274
|
forwardToReplicas?: boolean;
|
|
275
275
|
};
|
|
@@ -287,7 +287,7 @@ export type GetApiKeyProps = {
|
|
|
287
287
|
*/
|
|
288
288
|
export type GetLogsProps = {
|
|
289
289
|
/**
|
|
290
|
-
* First log entry to retrieve.
|
|
290
|
+
* First log entry to retrieve. The most recent entries are listed first.
|
|
291
291
|
*/
|
|
292
292
|
offset?: number;
|
|
293
293
|
/**
|
|
@@ -295,11 +295,11 @@ export type GetLogsProps = {
|
|
|
295
295
|
*/
|
|
296
296
|
length?: number;
|
|
297
297
|
/**
|
|
298
|
-
* Index for which log entries
|
|
298
|
+
* Index for which to retrieve log entries. By default, log entries are retrieved for all indices.
|
|
299
299
|
*/
|
|
300
300
|
indexName?: string;
|
|
301
301
|
/**
|
|
302
|
-
* Type of log entries to retrieve.
|
|
302
|
+
* Type of log entries to retrieve. By default, all log entries are retrieved.
|
|
303
303
|
*/
|
|
304
304
|
type?: LogType;
|
|
305
305
|
};
|
|
@@ -308,15 +308,15 @@ export type GetLogsProps = {
|
|
|
308
308
|
*/
|
|
309
309
|
export type GetObjectProps = {
|
|
310
310
|
/**
|
|
311
|
-
*
|
|
311
|
+
* Name of the index on which to perform the operation.
|
|
312
312
|
*/
|
|
313
313
|
indexName: string;
|
|
314
314
|
/**
|
|
315
|
-
* Unique record
|
|
315
|
+
* Unique record identifier.
|
|
316
316
|
*/
|
|
317
317
|
objectID: string;
|
|
318
318
|
/**
|
|
319
|
-
* 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.
|
|
319
|
+
* 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.
|
|
320
320
|
*/
|
|
321
321
|
attributesToRetrieve?: string[];
|
|
322
322
|
};
|
|
@@ -325,7 +325,7 @@ export type GetObjectProps = {
|
|
|
325
325
|
*/
|
|
326
326
|
export type GetRuleProps = {
|
|
327
327
|
/**
|
|
328
|
-
*
|
|
328
|
+
* Name of the index on which to perform the operation.
|
|
329
329
|
*/
|
|
330
330
|
indexName: string;
|
|
331
331
|
/**
|
|
@@ -338,7 +338,7 @@ export type GetRuleProps = {
|
|
|
338
338
|
*/
|
|
339
339
|
export type GetSettingsProps = {
|
|
340
340
|
/**
|
|
341
|
-
*
|
|
341
|
+
* Name of the index on which to perform the operation.
|
|
342
342
|
*/
|
|
343
343
|
indexName: string;
|
|
344
344
|
};
|
|
@@ -347,7 +347,7 @@ export type GetSettingsProps = {
|
|
|
347
347
|
*/
|
|
348
348
|
export type GetSynonymProps = {
|
|
349
349
|
/**
|
|
350
|
-
*
|
|
350
|
+
* Name of the index on which to perform the operation.
|
|
351
351
|
*/
|
|
352
352
|
indexName: string;
|
|
353
353
|
/**
|
|
@@ -360,7 +360,7 @@ export type GetSynonymProps = {
|
|
|
360
360
|
*/
|
|
361
361
|
export type GetTaskProps = {
|
|
362
362
|
/**
|
|
363
|
-
*
|
|
363
|
+
* Name of the index on which to perform the operation.
|
|
364
364
|
*/
|
|
365
365
|
indexName: string;
|
|
366
366
|
/**
|
|
@@ -373,7 +373,7 @@ export type GetTaskProps = {
|
|
|
373
373
|
*/
|
|
374
374
|
export type GetUserIdProps = {
|
|
375
375
|
/**
|
|
376
|
-
*
|
|
376
|
+
* User ID to assign.
|
|
377
377
|
*/
|
|
378
378
|
userID: string;
|
|
379
379
|
};
|
|
@@ -382,7 +382,7 @@ export type GetUserIdProps = {
|
|
|
382
382
|
*/
|
|
383
383
|
export type HasPendingMappingsProps = {
|
|
384
384
|
/**
|
|
385
|
-
*
|
|
385
|
+
* Whether to include the cluster\'s pending mapping state in the response.
|
|
386
386
|
*/
|
|
387
387
|
getClusters?: boolean;
|
|
388
388
|
};
|
|
@@ -391,11 +391,11 @@ export type HasPendingMappingsProps = {
|
|
|
391
391
|
*/
|
|
392
392
|
export type ListIndicesProps = {
|
|
393
393
|
/**
|
|
394
|
-
*
|
|
394
|
+
* Requested page of the API response. If `null`, the API response is not paginated.
|
|
395
395
|
*/
|
|
396
396
|
page?: number;
|
|
397
397
|
/**
|
|
398
|
-
*
|
|
398
|
+
* Number of hits per page.
|
|
399
399
|
*/
|
|
400
400
|
hitsPerPage?: number;
|
|
401
401
|
};
|
|
@@ -404,11 +404,11 @@ export type ListIndicesProps = {
|
|
|
404
404
|
*/
|
|
405
405
|
export type ListUserIdsProps = {
|
|
406
406
|
/**
|
|
407
|
-
*
|
|
407
|
+
* Requested page of the API response. If `null`, the API response is not paginated.
|
|
408
408
|
*/
|
|
409
409
|
page?: number;
|
|
410
410
|
/**
|
|
411
|
-
*
|
|
411
|
+
* Number of hits per page.
|
|
412
412
|
*/
|
|
413
413
|
hitsPerPage?: number;
|
|
414
414
|
};
|
|
@@ -417,7 +417,7 @@ export type ListUserIdsProps = {
|
|
|
417
417
|
*/
|
|
418
418
|
export type OperationIndexProps = {
|
|
419
419
|
/**
|
|
420
|
-
*
|
|
420
|
+
* Name of the index on which to perform the operation.
|
|
421
421
|
*/
|
|
422
422
|
indexName: string;
|
|
423
423
|
operationIndexParams: OperationIndexParams;
|
|
@@ -427,19 +427,19 @@ export type OperationIndexProps = {
|
|
|
427
427
|
*/
|
|
428
428
|
export type PartialUpdateObjectProps = {
|
|
429
429
|
/**
|
|
430
|
-
*
|
|
430
|
+
* Name of the index on which to perform the operation.
|
|
431
431
|
*/
|
|
432
432
|
indexName: string;
|
|
433
433
|
/**
|
|
434
|
-
* Unique record
|
|
434
|
+
* Unique record identifier.
|
|
435
435
|
*/
|
|
436
436
|
objectID: string;
|
|
437
437
|
/**
|
|
438
|
-
*
|
|
438
|
+
* Attributes with their values.
|
|
439
439
|
*/
|
|
440
440
|
attributesToUpdate: Record<string, AttributeToUpdate>;
|
|
441
441
|
/**
|
|
442
|
-
*
|
|
442
|
+
* Whether to create a new record if it doesn\'t exist.
|
|
443
443
|
*/
|
|
444
444
|
createIfNotExists?: boolean;
|
|
445
445
|
};
|
|
@@ -448,7 +448,7 @@ export type PartialUpdateObjectProps = {
|
|
|
448
448
|
*/
|
|
449
449
|
export type RemoveUserIdProps = {
|
|
450
450
|
/**
|
|
451
|
-
*
|
|
451
|
+
* User ID to assign.
|
|
452
452
|
*/
|
|
453
453
|
userID: string;
|
|
454
454
|
};
|
|
@@ -475,11 +475,11 @@ export type RestoreApiKeyProps = {
|
|
|
475
475
|
*/
|
|
476
476
|
export type SaveObjectProps = {
|
|
477
477
|
/**
|
|
478
|
-
*
|
|
478
|
+
* Name of the index on which to perform the operation.
|
|
479
479
|
*/
|
|
480
480
|
indexName: string;
|
|
481
481
|
/**
|
|
482
|
-
* The
|
|
482
|
+
* The record, a schemaless object with attributes that are useful in the context of search and discovery.
|
|
483
483
|
*/
|
|
484
484
|
body: Record<string, any>;
|
|
485
485
|
};
|
|
@@ -488,7 +488,7 @@ export type SaveObjectProps = {
|
|
|
488
488
|
*/
|
|
489
489
|
export type SaveRuleProps = {
|
|
490
490
|
/**
|
|
491
|
-
*
|
|
491
|
+
* Name of the index on which to perform the operation.
|
|
492
492
|
*/
|
|
493
493
|
indexName: string;
|
|
494
494
|
/**
|
|
@@ -497,7 +497,7 @@ export type SaveRuleProps = {
|
|
|
497
497
|
objectID: string;
|
|
498
498
|
rule: Rule;
|
|
499
499
|
/**
|
|
500
|
-
*
|
|
500
|
+
* Whether changes are applied to replica indices.
|
|
501
501
|
*/
|
|
502
502
|
forwardToReplicas?: boolean;
|
|
503
503
|
};
|
|
@@ -506,16 +506,16 @@ export type SaveRuleProps = {
|
|
|
506
506
|
*/
|
|
507
507
|
export type SaveRulesProps = {
|
|
508
508
|
/**
|
|
509
|
-
*
|
|
509
|
+
* Name of the index on which to perform the operation.
|
|
510
510
|
*/
|
|
511
511
|
indexName: string;
|
|
512
512
|
rules: Rule[];
|
|
513
513
|
/**
|
|
514
|
-
*
|
|
514
|
+
* Whether changes are applied to replica indices.
|
|
515
515
|
*/
|
|
516
516
|
forwardToReplicas?: boolean;
|
|
517
517
|
/**
|
|
518
|
-
*
|
|
518
|
+
* Whether existing rules should be deleted before adding this batch.
|
|
519
519
|
*/
|
|
520
520
|
clearExistingRules?: boolean;
|
|
521
521
|
};
|
|
@@ -524,7 +524,7 @@ export type SaveRulesProps = {
|
|
|
524
524
|
*/
|
|
525
525
|
export type SaveSynonymProps = {
|
|
526
526
|
/**
|
|
527
|
-
*
|
|
527
|
+
* Name of the index on which to perform the operation.
|
|
528
528
|
*/
|
|
529
529
|
indexName: string;
|
|
530
530
|
/**
|
|
@@ -533,7 +533,7 @@ export type SaveSynonymProps = {
|
|
|
533
533
|
objectID: string;
|
|
534
534
|
synonymHit: SynonymHit;
|
|
535
535
|
/**
|
|
536
|
-
*
|
|
536
|
+
* Whether changes are applied to replica indices.
|
|
537
537
|
*/
|
|
538
538
|
forwardToReplicas?: boolean;
|
|
539
539
|
};
|
|
@@ -542,16 +542,16 @@ export type SaveSynonymProps = {
|
|
|
542
542
|
*/
|
|
543
543
|
export type SaveSynonymsProps = {
|
|
544
544
|
/**
|
|
545
|
-
*
|
|
545
|
+
* Name of the index on which to perform the operation.
|
|
546
546
|
*/
|
|
547
547
|
indexName: string;
|
|
548
548
|
synonymHit: SynonymHit[];
|
|
549
549
|
/**
|
|
550
|
-
*
|
|
550
|
+
* Whether changes are applied to replica indices.
|
|
551
551
|
*/
|
|
552
552
|
forwardToReplicas?: boolean;
|
|
553
553
|
/**
|
|
554
|
-
*
|
|
554
|
+
* Whether to replace all synonyms in the index with the ones sent with this request.
|
|
555
555
|
*/
|
|
556
556
|
replaceExistingSynonyms?: boolean;
|
|
557
557
|
};
|
|
@@ -587,7 +587,7 @@ export type LegacySearchMethodProps = LegacySearchQuery[];
|
|
|
587
587
|
*/
|
|
588
588
|
export type SearchDictionaryEntriesProps = {
|
|
589
589
|
/**
|
|
590
|
-
* Dictionary to search
|
|
590
|
+
* Dictionary type in which to search.
|
|
591
591
|
*/
|
|
592
592
|
dictionaryName: DictionaryType;
|
|
593
593
|
searchDictionaryEntriesParams: SearchDictionaryEntriesParams;
|
|
@@ -597,11 +597,11 @@ export type SearchDictionaryEntriesProps = {
|
|
|
597
597
|
*/
|
|
598
598
|
export type SearchForFacetValuesProps = {
|
|
599
599
|
/**
|
|
600
|
-
*
|
|
600
|
+
* Name of the index on which to perform the operation.
|
|
601
601
|
*/
|
|
602
602
|
indexName: string;
|
|
603
603
|
/**
|
|
604
|
-
* Facet
|
|
604
|
+
* Facet attribute in which to search for values. This attribute must be included in the `attributesForFaceting` index setting with the `searchable()` modifier.
|
|
605
605
|
*/
|
|
606
606
|
facetName: string;
|
|
607
607
|
searchForFacetValuesRequest?: SearchForFacetValuesRequest;
|
|
@@ -611,7 +611,7 @@ export type SearchForFacetValuesProps = {
|
|
|
611
611
|
*/
|
|
612
612
|
export type SearchRulesProps = {
|
|
613
613
|
/**
|
|
614
|
-
*
|
|
614
|
+
* Name of the index on which to perform the operation.
|
|
615
615
|
*/
|
|
616
616
|
indexName: string;
|
|
617
617
|
searchRulesParams?: SearchRulesParams;
|
|
@@ -621,7 +621,7 @@ export type SearchRulesProps = {
|
|
|
621
621
|
*/
|
|
622
622
|
export type SearchSingleIndexProps = {
|
|
623
623
|
/**
|
|
624
|
-
*
|
|
624
|
+
* Name of the index on which to perform the operation.
|
|
625
625
|
*/
|
|
626
626
|
indexName: string;
|
|
627
627
|
searchParams?: SearchParams;
|
|
@@ -631,7 +631,7 @@ export type SearchSingleIndexProps = {
|
|
|
631
631
|
*/
|
|
632
632
|
export type SearchSynonymsProps = {
|
|
633
633
|
/**
|
|
634
|
-
*
|
|
634
|
+
* Name of the index on which to perform the operation.
|
|
635
635
|
*/
|
|
636
636
|
indexName: string;
|
|
637
637
|
/**
|
|
@@ -644,12 +644,12 @@ export type SearchSynonymsProps = {
|
|
|
644
644
|
*/
|
|
645
645
|
export type SetSettingsProps = {
|
|
646
646
|
/**
|
|
647
|
-
*
|
|
647
|
+
* Name of the index on which to perform the operation.
|
|
648
648
|
*/
|
|
649
649
|
indexName: string;
|
|
650
650
|
indexSettings: IndexSettings;
|
|
651
651
|
/**
|
|
652
|
-
*
|
|
652
|
+
* Whether changes are applied to replica indices.
|
|
653
653
|
*/
|
|
654
654
|
forwardToReplicas?: boolean;
|
|
655
655
|
};
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import type { Anchoring } from './anchoring';
|
|
2
2
|
export type Condition = {
|
|
3
3
|
/**
|
|
4
|
-
* Query pattern
|
|
4
|
+
* 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\".
|
|
5
5
|
*/
|
|
6
6
|
pattern?: string;
|
|
7
7
|
anchoring?: Anchoring;
|
|
8
8
|
/**
|
|
9
|
-
* Whether the pattern
|
|
9
|
+
* Whether the pattern should match plurals, synonyms, and typos.
|
|
10
10
|
*/
|
|
11
11
|
alternatives?: boolean;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* 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.
|
|
14
14
|
*/
|
|
15
15
|
context?: string;
|
|
16
|
+
/**
|
|
17
|
+
* 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.
|
|
18
|
+
*/
|
|
19
|
+
filters?: string;
|
|
16
20
|
};
|
|
17
21
|
//# sourceMappingURL=condition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"condition.d.ts","sourceRoot":"","sources":["../../../../client-search/model/condition.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
1
|
+
{"version":3,"file":"condition.d.ts","sourceRoot":"","sources":["../../../../client-search/model/condition.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -2,24 +2,24 @@ import type { ConsequenceHide } from './consequenceHide';
|
|
|
2
2
|
import type { ConsequenceParams } from './consequenceParams';
|
|
3
3
|
import type { Promote } from './promote';
|
|
4
4
|
/**
|
|
5
|
-
* [Consequences](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#consequences)
|
|
5
|
+
* Effect of the rule. For more information, see [Consequences](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#consequences).
|
|
6
6
|
*/
|
|
7
7
|
export type Consequence = {
|
|
8
8
|
params?: ConsequenceParams;
|
|
9
9
|
/**
|
|
10
|
-
* Records to promote.
|
|
10
|
+
* 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.
|
|
11
11
|
*/
|
|
12
12
|
promote?: Promote[];
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* 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.
|
|
15
15
|
*/
|
|
16
16
|
filterPromotes?: boolean;
|
|
17
17
|
/**
|
|
18
|
-
* Records
|
|
18
|
+
* Records you want to hide from the search results.
|
|
19
19
|
*/
|
|
20
20
|
hide?: ConsequenceHide[];
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* 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.
|
|
23
23
|
*/
|
|
24
24
|
userData?: any | null;
|
|
25
25
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ConsequenceQueryObject } from './consequenceQueryObject';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* 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.
|
|
4
4
|
*/
|
|
5
5
|
export type ConsequenceQuery = ConsequenceQueryObject | string;
|
|
6
6
|
//# sourceMappingURL=consequenceQuery.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Edit } from './edit';
|
|
2
2
|
export type ConsequenceQueryObject = {
|
|
3
3
|
/**
|
|
4
|
-
* Words to remove.
|
|
4
|
+
* Words to remove from the search query.
|
|
5
5
|
*/
|
|
6
6
|
remove?: string[];
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Changes to make to the search query.
|
|
9
9
|
*/
|
|
10
10
|
edits?: Edit[];
|
|
11
11
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type Cursor = {
|
|
2
2
|
/**
|
|
3
|
-
* Cursor
|
|
3
|
+
* 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.
|
|
4
4
|
*/
|
|
5
5
|
cursor?: string;
|
|
6
6
|
};
|
|
@@ -5,22 +5,22 @@ import type { TagFilters } from './tagFilters';
|
|
|
5
5
|
export type DeleteByParams = {
|
|
6
6
|
facetFilters?: FacetFilters;
|
|
7
7
|
/**
|
|
8
|
-
* [
|
|
8
|
+
* 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/).
|
|
9
9
|
*/
|
|
10
10
|
filters?: string;
|
|
11
11
|
numericFilters?: NumericFilters;
|
|
12
12
|
tagFilters?: TagFilters;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* 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`.
|
|
15
15
|
*/
|
|
16
16
|
aroundLatLng?: string;
|
|
17
17
|
aroundRadius?: AroundRadius;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* 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).
|
|
20
20
|
*/
|
|
21
21
|
insideBoundingBox?: number[][];
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* 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`.
|
|
24
24
|
*/
|
|
25
25
|
insidePolygon?: number[][];
|
|
26
26
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export type DeletedAtResponse = {
|
|
5
5
|
/**
|
|
6
|
-
* Unique identifier of a task.
|
|
6
|
+
* 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](#tag/Indices/operation/getTask) and this `taskID`.
|
|
7
7
|
*/
|
|
8
8
|
taskID: number;
|
|
9
9
|
/**
|