@algolia/client-search 5.0.0-alpha.73 → 5.0.0-alpha.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client-search.cjs.js +188 -186
- package/dist/client-search.esm.browser.js +188 -184
- package/dist/client-search.esm.node.js +188 -184
- package/dist/client-search.umd.js +2 -2
- package/dist/model/acl.d.ts +1 -1
- package/dist/model/action.d.ts +1 -1
- package/dist/model/addApiKeyResponse.d.ts +2 -2
- package/dist/model/anchoring.d.ts +1 -1
- package/dist/model/apiKey.d.ts +9 -9
- package/dist/model/aroundRadius.d.ts +1 -1
- package/dist/model/assignUserIdParams.d.ts +1 -1
- package/dist/model/baseGetApiKeyResponse.d.ts +2 -2
- package/dist/model/baseIndexSettings.d.ts +14 -14
- package/dist/model/baseSearchParamsWithoutQuery.d.ts +25 -25
- package/dist/model/baseSearchResponse.d.ts +20 -20
- package/dist/model/baseSearchResponseRedirect.d.ts +1 -1
- package/dist/model/batchAssignUserIdsParams.d.ts +2 -2
- package/dist/model/batchDictionaryEntriesParams.d.ts +3 -3
- package/dist/model/batchParams.d.ts +1 -1
- package/dist/model/batchRequest.d.ts +1 -1
- package/dist/model/batchResponse.d.ts +2 -2
- package/dist/model/batchWriteParams.d.ts +1 -1
- package/dist/model/builtInOperation.d.ts +1 -1
- package/dist/model/builtInOperationType.d.ts +1 -1
- package/dist/model/clientMethodProps.d.ts +88 -84
- package/dist/model/clientMethodProps.d.ts.map +1 -1
- package/dist/model/consequence.d.ts +4 -4
- package/dist/model/consequenceHide.d.ts +2 -2
- package/dist/model/createdAtResponse.d.ts +2 -2
- package/dist/model/cursor.d.ts +1 -1
- package/dist/model/deleteApiKeyResponse.d.ts +1 -1
- package/dist/model/deleteByParams.d.ts +4 -4
- package/dist/model/deleteSourceResponse.d.ts +1 -1
- package/dist/model/deletedAtResponse.d.ts +3 -3
- package/dist/model/dictionaryEntry.d.ts +6 -6
- package/dist/model/dictionaryEntryState.d.ts +1 -1
- package/dist/model/dictionaryLanguage.d.ts +2 -2
- package/dist/model/dictionarySettingsParams.d.ts +1 -1
- package/dist/model/distinct.d.ts +1 -1
- package/dist/model/exactOnSingleWordQuery.d.ts +1 -1
- package/dist/model/facetFilters.d.ts +1 -1
- package/dist/model/facetHits.d.ts +3 -3
- package/dist/model/facetOrdering.d.ts +2 -2
- package/dist/model/facets.d.ts +1 -1
- package/dist/model/facetsStats.d.ts +4 -4
- package/dist/model/fetchedIndex.d.ts +1 -1
- package/dist/model/getObjectsParams.d.ts +1 -1
- package/dist/model/getObjectsRequest.d.ts +4 -4
- package/dist/model/getObjectsResponse.d.ts +1 -1
- package/dist/model/getTopUserIdsResponse.d.ts +2 -2
- package/dist/model/hasPendingMappingsResponse.d.ts +2 -2
- package/dist/model/highlightResultOption.d.ts +1 -1
- package/dist/model/hit.d.ts +1 -1
- package/dist/model/ignorePlurals.d.ts +1 -1
- package/dist/model/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 -30
- package/dist/model/indexSettingsAsSearchParamsSemanticSearch.d.ts +2 -2
- package/dist/model/languages.d.ts +1 -1
- package/dist/model/listApiKeysResponse.d.ts +1 -1
- package/dist/model/listClustersResponse.d.ts +2 -2
- package/dist/model/listIndicesResponse.d.ts +1 -1
- package/dist/model/listUserIdsResponse.d.ts +2 -2
- package/dist/model/log.d.ts +7 -7
- package/dist/model/logQuery.d.ts +1 -1
- package/dist/model/mode.d.ts +1 -1
- package/dist/model/multipleBatchRequest.d.ts +1 -1
- package/dist/model/multipleBatchResponse.d.ts +2 -2
- package/dist/model/numericFilters.d.ts +1 -1
- package/dist/model/operationIndexParams.d.ts +2 -2
- package/dist/model/operationType.d.ts +1 -1
- package/dist/model/optionalFilters.d.ts +1 -1
- package/dist/model/params.d.ts +1 -1
- package/dist/model/promoteObjectID.d.ts +3 -3
- package/dist/model/promoteObjectIDs.d.ts +3 -3
- package/dist/model/queryType.d.ts +1 -1
- package/dist/model/reRankingApplyFilter.d.ts +1 -1
- package/dist/model/redirectRuleIndexMetadata.d.ts +1 -1
- package/dist/model/redirectRuleIndexMetadataData.d.ts +1 -1
- package/dist/model/removeStopWords.d.ts +1 -1
- package/dist/model/removeUserIdResponse.d.ts +1 -1
- package/dist/model/removeWordsIfNoResults.d.ts +1 -1
- package/dist/model/renderingContent.d.ts +1 -1
- package/dist/model/replaceSourceResponse.d.ts +1 -1
- package/dist/model/rule.d.ts +5 -5
- package/dist/model/saveObjectResponse.d.ts +5 -2
- package/dist/model/saveObjectResponse.d.ts.map +1 -1
- package/dist/model/saveSynonymResponse.d.ts +3 -3
- package/dist/model/searchDictionaryEntriesParams.d.ts +5 -5
- package/dist/model/searchForFacetValuesRequest.d.ts +2 -2
- package/dist/model/searchForFacetsOptions.d.ts +3 -3
- package/dist/model/searchForHitsOptions.d.ts +1 -1
- package/dist/model/searchParamsQuery.d.ts +1 -1
- package/dist/model/searchParamsString.d.ts +1 -1
- package/dist/model/searchResponses.d.ts +2 -2
- package/dist/model/searchResponses.d.ts.map +1 -1
- package/dist/model/searchResult.d.ts +4 -0
- package/dist/model/searchResult.d.ts.map +1 -0
- package/dist/model/searchRulesParams.d.ts +7 -7
- package/dist/model/searchStrategy.d.ts +3 -0
- package/dist/model/searchStrategy.d.ts.map +1 -1
- package/dist/model/searchSynonymsParams.d.ts +1 -1
- package/dist/model/searchSynonymsResponse.d.ts +2 -2
- package/dist/model/searchTypeDefault.d.ts +1 -1
- package/dist/model/searchTypeFacet.d.ts +1 -1
- package/dist/model/searchUserIdsParams.d.ts +4 -4
- package/dist/model/searchUserIdsResponse.d.ts +5 -5
- package/dist/model/snippetResultOption.d.ts +1 -1
- package/dist/model/sortRemainingBy.d.ts +1 -1
- package/dist/model/source.d.ts +3 -3
- package/dist/model/standardEntries.d.ts +4 -4
- package/dist/model/synonymHit.d.ts +6 -6
- package/dist/model/synonymType.d.ts +1 -1
- package/dist/model/tagFilters.d.ts +1 -1
- package/dist/model/taskStatus.d.ts +3 -0
- package/dist/model/taskStatus.d.ts.map +1 -1
- package/dist/model/typoTolerance.d.ts +1 -1
- package/dist/model/updateApiKeyResponse.d.ts +2 -2
- package/dist/model/updatedAtResponse.d.ts +3 -3
- package/dist/model/updatedAtWithObjectIdResponse.d.ts +4 -4
- package/dist/model/updatedRuleResponse.d.ts +3 -3
- package/dist/model/userHit.d.ts +1 -1
- package/dist/model/userId.d.ts +2 -2
- package/dist/src/searchClient.d.ts +185 -184
- package/dist/src/searchClient.d.ts.map +1 -1
- package/model/acl.ts +1 -1
- package/model/action.ts +1 -1
- package/model/addApiKeyResponse.ts +2 -2
- package/model/anchoring.ts +1 -1
- package/model/apiKey.ts +9 -9
- package/model/aroundRadius.ts +1 -1
- package/model/assignUserIdParams.ts +1 -1
- package/model/baseGetApiKeyResponse.ts +2 -2
- package/model/baseIndexSettings.ts +14 -14
- package/model/baseSearchParamsWithoutQuery.ts +25 -25
- package/model/baseSearchResponse.ts +20 -20
- package/model/baseSearchResponseRedirect.ts +1 -1
- package/model/batchAssignUserIdsParams.ts +2 -2
- package/model/batchDictionaryEntriesParams.ts +3 -3
- package/model/batchParams.ts +1 -1
- package/model/batchRequest.ts +1 -1
- package/model/batchResponse.ts +2 -2
- package/model/batchWriteParams.ts +1 -1
- package/model/builtInOperation.ts +1 -1
- package/model/builtInOperationType.ts +1 -1
- package/model/clientMethodProps.ts +88 -84
- package/model/consequence.ts +4 -4
- package/model/consequenceHide.ts +2 -2
- package/model/createdAtResponse.ts +2 -2
- package/model/cursor.ts +1 -1
- package/model/deleteApiKeyResponse.ts +1 -1
- package/model/deleteByParams.ts +4 -4
- package/model/deleteSourceResponse.ts +1 -1
- package/model/deletedAtResponse.ts +3 -3
- package/model/dictionaryEntry.ts +6 -6
- package/model/dictionaryEntryState.ts +1 -1
- package/model/dictionaryLanguage.ts +2 -2
- package/model/dictionarySettingsParams.ts +1 -1
- package/model/distinct.ts +1 -1
- package/model/exactOnSingleWordQuery.ts +1 -1
- package/model/facetFilters.ts +1 -1
- package/model/facetHits.ts +3 -3
- package/model/facetOrdering.ts +2 -2
- package/model/facets.ts +1 -1
- package/model/facetsStats.ts +4 -4
- package/model/fetchedIndex.ts +1 -1
- package/model/getObjectsParams.ts +1 -1
- package/model/getObjectsRequest.ts +4 -4
- package/model/getObjectsResponse.ts +1 -1
- package/model/getTopUserIdsResponse.ts +2 -2
- package/model/hasPendingMappingsResponse.ts +2 -2
- package/model/highlightResultOption.ts +1 -1
- package/model/hit.ts +1 -1
- package/model/ignorePlurals.ts +1 -1
- package/model/index.ts +1 -0
- package/model/indexSettings.ts +1 -1
- package/model/indexSettingsAsSearchParams.ts +30 -30
- package/model/indexSettingsAsSearchParamsSemanticSearch.ts +2 -2
- package/model/languages.ts +1 -1
- package/model/listApiKeysResponse.ts +1 -1
- package/model/listClustersResponse.ts +2 -2
- package/model/listIndicesResponse.ts +1 -1
- package/model/listUserIdsResponse.ts +2 -2
- package/model/log.ts +7 -7
- package/model/logQuery.ts +1 -1
- package/model/mode.ts +1 -1
- package/model/multipleBatchRequest.ts +1 -1
- package/model/multipleBatchResponse.ts +2 -2
- package/model/numericFilters.ts +1 -1
- package/model/operationIndexParams.ts +2 -2
- package/model/operationType.ts +1 -1
- package/model/optionalFilters.ts +1 -1
- package/model/params.ts +1 -1
- package/model/promoteObjectID.ts +3 -3
- package/model/promoteObjectIDs.ts +3 -3
- package/model/queryType.ts +1 -1
- package/model/reRankingApplyFilter.ts +1 -1
- package/model/redirectRuleIndexMetadata.ts +1 -1
- package/model/redirectRuleIndexMetadataData.ts +1 -1
- package/model/removeStopWords.ts +1 -1
- package/model/removeUserIdResponse.ts +1 -1
- package/model/removeWordsIfNoResults.ts +1 -1
- package/model/renderingContent.ts +1 -1
- package/model/replaceSourceResponse.ts +1 -1
- package/model/rule.ts +5 -5
- package/model/saveObjectResponse.ts +5 -2
- package/model/saveSynonymResponse.ts +3 -3
- package/model/searchDictionaryEntriesParams.ts +5 -5
- package/model/searchForFacetValuesRequest.ts +2 -2
- package/model/searchForFacetsOptions.ts +3 -3
- package/model/searchForHitsOptions.ts +1 -1
- package/model/searchParamsQuery.ts +1 -1
- package/model/searchParamsString.ts +1 -1
- package/model/searchResponses.ts +2 -2
- package/model/searchResult.ts +8 -0
- package/model/searchRulesParams.ts +7 -7
- package/model/searchStrategy.ts +3 -0
- package/model/searchSynonymsParams.ts +1 -1
- package/model/searchSynonymsResponse.ts +2 -2
- package/model/searchTypeDefault.ts +1 -1
- package/model/searchTypeFacet.ts +1 -1
- package/model/searchUserIdsParams.ts +4 -4
- package/model/searchUserIdsResponse.ts +5 -5
- package/model/snippetResultOption.ts +1 -1
- package/model/sortRemainingBy.ts +1 -1
- package/model/source.ts +3 -3
- package/model/standardEntries.ts +4 -4
- package/model/synonymHit.ts +6 -6
- package/model/synonymType.ts +1 -1
- package/model/tagFilters.ts +1 -1
- package/model/taskStatus.ts +3 -0
- package/model/typoTolerance.ts +1 -1
- package/model/updateApiKeyResponse.ts +2 -2
- package/model/updatedAtResponse.ts +3 -3
- package/model/updatedAtWithObjectIdResponse.ts +4 -4
- package/model/updatedRuleResponse.ts +3 -3
- package/model/userHit.ts +1 -1
- package/model/userId.ts +2 -2
- package/package.json +8 -7
|
@@ -3,35 +3,35 @@ import type { FacetsStats } from './facetsStats';
|
|
|
3
3
|
import type { RenderingContent } from './renderingContent';
|
|
4
4
|
export type BaseSearchResponse = {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* A/B test ID. This is only included in the response for indices that are part of an A/B test.
|
|
7
7
|
*/
|
|
8
8
|
abTestID?: number;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Variant ID. This is only included in the response for indices that are part of an A/B test.
|
|
11
11
|
*/
|
|
12
12
|
abTestVariantID?: number;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Computed geographical location.
|
|
15
15
|
*/
|
|
16
16
|
aroundLatLng?: string;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Automatically-computed radius.
|
|
19
19
|
*/
|
|
20
20
|
automaticRadius?: string;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Indicates whether the facet count is exhaustive (exact) or approximate.
|
|
23
23
|
*/
|
|
24
24
|
exhaustiveFacetsCount?: boolean;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Indicates whether the number of hits `nbHits` is exhaustive (exact) or approximate.
|
|
27
27
|
*/
|
|
28
28
|
exhaustiveNbHits: boolean;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Indicates whether the search for typos was exhaustive (exact) or approximate.
|
|
31
31
|
*/
|
|
32
32
|
exhaustiveTypo?: boolean;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Mapping of each facet name to the corresponding facet counts.
|
|
35
35
|
*/
|
|
36
36
|
facets?: Record<string, Record<string, number>>;
|
|
37
37
|
/**
|
|
@@ -39,7 +39,7 @@ export type BaseSearchResponse = {
|
|
|
39
39
|
*/
|
|
40
40
|
facets_stats?: Record<string, FacetsStats>;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* Number of hits per page.
|
|
43
43
|
*/
|
|
44
44
|
hitsPerPage: number;
|
|
45
45
|
/**
|
|
@@ -47,36 +47,36 @@ export type BaseSearchResponse = {
|
|
|
47
47
|
*/
|
|
48
48
|
index?: string;
|
|
49
49
|
/**
|
|
50
|
-
* Index name used for the query.
|
|
50
|
+
* Index name used for the query. During A/B testing, the targeted index isn\'t always the index used by the query.
|
|
51
51
|
*/
|
|
52
52
|
indexUsed?: string;
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* Warnings about the query.
|
|
55
55
|
*/
|
|
56
56
|
message?: string;
|
|
57
57
|
/**
|
|
58
|
-
* Number of hits
|
|
58
|
+
* Number of hits the search query matched.
|
|
59
59
|
*/
|
|
60
60
|
nbHits: number;
|
|
61
61
|
/**
|
|
62
|
-
* Number of pages
|
|
62
|
+
* Number of pages of results for the current query.
|
|
63
63
|
*/
|
|
64
64
|
nbPages: number;
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
66
|
+
* Number of hits selected and sorted by the relevant sort algorithm.
|
|
67
67
|
*/
|
|
68
68
|
nbSortedHits?: number;
|
|
69
69
|
/**
|
|
70
|
-
*
|
|
70
|
+
* Page to retrieve (the first page is `0`, not `1`).
|
|
71
71
|
*/
|
|
72
72
|
page: number;
|
|
73
73
|
/**
|
|
74
|
-
*
|
|
74
|
+
* URL-encoded string of all search parameters.
|
|
75
75
|
*/
|
|
76
76
|
params: string;
|
|
77
77
|
redirect?: BaseSearchResponseRedirect;
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* Post-[normalization](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/#what-does-normalization-mean) query string that will be searched.
|
|
80
80
|
*/
|
|
81
81
|
parsedQuery?: string;
|
|
82
82
|
/**
|
|
@@ -84,15 +84,15 @@ export type BaseSearchResponse = {
|
|
|
84
84
|
*/
|
|
85
85
|
processingTimeMS: number;
|
|
86
86
|
/**
|
|
87
|
-
*
|
|
87
|
+
* Text to search for in an index.
|
|
88
88
|
*/
|
|
89
89
|
query: string;
|
|
90
90
|
/**
|
|
91
|
-
*
|
|
91
|
+
* Markup text indicating which parts of the original query have been removed to retrieve a non-empty result set.
|
|
92
92
|
*/
|
|
93
93
|
queryAfterRemoval?: string;
|
|
94
94
|
/**
|
|
95
|
-
*
|
|
95
|
+
* Host name of the server that processed the request.
|
|
96
96
|
*/
|
|
97
97
|
serverUsed?: string;
|
|
98
98
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RedirectRuleIndexMetadata } from './redirectRuleIndexMetadata';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* [Redirect results to a URL](https://www.algolia.com/doc/guides/managing-results/rules/merchandising-and-promoting/how-to/redirects/).
|
|
4
4
|
*/
|
|
5
5
|
export type BaseSearchResponseRedirect = {
|
|
6
6
|
index?: RedirectRuleIndexMetadata[];
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { BatchDictionaryEntriesRequest } from './batchDictionaryEntriesRequest';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* `batchDictionaryEntries` parameters.
|
|
4
4
|
*/
|
|
5
5
|
export type BatchDictionaryEntriesParams = {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Incidates whether to replace all custom entries in the dictionary with the ones sent with this request.
|
|
8
8
|
*/
|
|
9
9
|
clearExistingDictionaryEntries?: boolean;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Operations to batch.
|
|
12
12
|
*/
|
|
13
13
|
requests: BatchDictionaryEntriesRequest[];
|
|
14
14
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export type BatchResponse = {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run immediately. You can check the task\'s progress with the `task` operation and this `taskID`.
|
|
4
4
|
*/
|
|
5
5
|
taskID: number;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Unique object (record) identifiers.
|
|
8
8
|
*/
|
|
9
9
|
objectIDs: string[];
|
|
10
10
|
};
|
|
@@ -5,7 +5,7 @@ import type { BuiltInOperationType } from './builtInOperationType';
|
|
|
5
5
|
export type BuiltInOperation = {
|
|
6
6
|
_operation: BuiltInOperationType;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Value that corresponds to the operation, for example an `Increment` or `Decrement` step, `Add` or `Remove` value.
|
|
9
9
|
*/
|
|
10
10
|
value: string;
|
|
11
11
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Operation to apply to the attribute.
|
|
3
3
|
*/
|
|
4
4
|
export type BuiltInOperationType = 'Add' | 'AddUnique' | 'Decrement' | 'Increment' | 'IncrementFrom' | 'IncrementSet' | 'Remove';
|
|
5
5
|
//# sourceMappingURL=builtInOperationType.d.ts.map
|