@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/log.ts
CHANGED
|
@@ -7,58 +7,72 @@ export type Log = {
|
|
|
7
7
|
* Timestamp in ISO-8601 format.
|
|
8
8
|
*/
|
|
9
9
|
timestamp: string;
|
|
10
|
+
|
|
10
11
|
/**
|
|
11
12
|
* HTTP method of the performed request.
|
|
12
13
|
*/
|
|
13
14
|
method: string;
|
|
15
|
+
|
|
14
16
|
/**
|
|
15
17
|
* HTTP response code.
|
|
16
18
|
*/
|
|
17
19
|
answer_code: string;
|
|
20
|
+
|
|
18
21
|
/**
|
|
19
22
|
* Request body. Truncated after 1000 characters.
|
|
20
23
|
*/
|
|
21
24
|
query_body: string;
|
|
25
|
+
|
|
22
26
|
/**
|
|
23
27
|
* Answer body. Truncated after 1000 characters.
|
|
24
28
|
*/
|
|
25
29
|
answer: string;
|
|
30
|
+
|
|
26
31
|
/**
|
|
27
32
|
* Request URL.
|
|
28
33
|
*/
|
|
29
34
|
url: string;
|
|
35
|
+
|
|
30
36
|
/**
|
|
31
37
|
* IP of the client which performed the request.
|
|
32
38
|
*/
|
|
33
39
|
ip: string;
|
|
40
|
+
|
|
34
41
|
/**
|
|
35
42
|
* Request Headers (API Key is obfuscated).
|
|
36
43
|
*/
|
|
37
44
|
query_headers: string;
|
|
45
|
+
|
|
38
46
|
/**
|
|
39
47
|
* SHA1 signature of the log entry.
|
|
40
48
|
*/
|
|
41
49
|
sha1: string;
|
|
50
|
+
|
|
42
51
|
/**
|
|
43
52
|
* Number of API calls.
|
|
44
53
|
*/
|
|
45
54
|
nb_api_calls: string;
|
|
55
|
+
|
|
46
56
|
/**
|
|
47
57
|
* Processing time for the query. It doesn\'t include network time.
|
|
48
58
|
*/
|
|
49
59
|
processing_time_ms: string;
|
|
60
|
+
|
|
50
61
|
/**
|
|
51
62
|
* Index targeted by the query.
|
|
52
63
|
*/
|
|
53
64
|
index?: string;
|
|
65
|
+
|
|
54
66
|
/**
|
|
55
67
|
* Query parameters sent with the request.
|
|
56
68
|
*/
|
|
57
69
|
query_params?: string;
|
|
70
|
+
|
|
58
71
|
/**
|
|
59
72
|
* Number of hits returned for the query.
|
|
60
73
|
*/
|
|
61
74
|
query_nb_hits?: string;
|
|
75
|
+
|
|
62
76
|
/**
|
|
63
77
|
* Array of all performed queries for the given request.
|
|
64
78
|
*/
|
package/model/logQuery.ts
CHANGED
|
@@ -5,10 +5,12 @@ export type MatchedGeoLocation = {
|
|
|
5
5
|
* Latitude of the matched location.
|
|
6
6
|
*/
|
|
7
7
|
lat?: number;
|
|
8
|
+
|
|
8
9
|
/**
|
|
9
10
|
* Longitude of the matched location.
|
|
10
11
|
*/
|
|
11
12
|
lng?: number;
|
|
13
|
+
|
|
12
14
|
/**
|
|
13
15
|
* Distance between the matched location and the search location (in meters).
|
|
14
16
|
*/
|
|
@@ -2,14 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
import type { Action } from './action';
|
|
4
4
|
|
|
5
|
-
export type
|
|
6
|
-
action
|
|
5
|
+
export type MultipleBatchRequest = {
|
|
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>;
|
|
12
|
+
|
|
11
13
|
/**
|
|
12
14
|
* Index to target for this operation.
|
|
13
15
|
*/
|
|
14
|
-
indexName
|
|
16
|
+
indexName: string;
|
|
15
17
|
};
|
|
@@ -5,10 +5,12 @@ import type { ScopeType } from './scopeType';
|
|
|
5
5
|
|
|
6
6
|
export type OperationIndexParams = {
|
|
7
7
|
operation: OperationType;
|
|
8
|
+
|
|
8
9
|
/**
|
|
9
10
|
* The Algolia index name.
|
|
10
11
|
*/
|
|
11
12
|
destination: string;
|
|
13
|
+
|
|
12
14
|
/**
|
|
13
15
|
* Scope of the data to copy. When absent, a full copy is performed. When present, only the selected scopes are copied.
|
|
14
16
|
*/
|
package/model/params.ts
CHANGED
|
@@ -9,7 +9,10 @@ import type { RenderingContent } from './renderingContent';
|
|
|
9
9
|
*/
|
|
10
10
|
export type Params = {
|
|
11
11
|
query?: ConsequenceQuery;
|
|
12
|
+
|
|
12
13
|
automaticFacetFilters?: AutomaticFacetFilters;
|
|
14
|
+
|
|
13
15
|
automaticOptionalFacetFilters?: AutomaticFacetFilters;
|
|
16
|
+
|
|
14
17
|
renderingContent?: RenderingContent;
|
|
15
18
|
};
|
package/model/personalization.ts
CHANGED
package/model/promoteObjectID.ts
CHANGED
|
@@ -8,6 +8,7 @@ export type PromoteObjectID = {
|
|
|
8
8
|
* Unique identifier of the object to promote.
|
|
9
9
|
*/
|
|
10
10
|
objectID: string;
|
|
11
|
+
|
|
11
12
|
/**
|
|
12
13
|
* The position to promote the objects to (zero-based). If you pass objectIDs, the objects are placed at this position as a group. For example, if you pass four objectIDs to position 0, the objects take the first four positions.
|
|
13
14
|
*/
|
|
@@ -8,6 +8,7 @@ export type PromoteObjectIDs = {
|
|
|
8
8
|
* Array of unique identifiers of the objects to promote.
|
|
9
9
|
*/
|
|
10
10
|
objectIDs: string[];
|
|
11
|
+
|
|
11
12
|
/**
|
|
12
13
|
* The position to promote the objects to (zero-based). If you pass objectIDs, the objects are placed at this position as a group. For example, if you pass four objectIDs to position 0, the objects take the first four positions.
|
|
13
14
|
*/
|
package/model/rankingInfo.ts
CHANGED
|
@@ -8,44 +8,56 @@ export type RankingInfo = {
|
|
|
8
8
|
* This field is reserved for advanced usage.
|
|
9
9
|
*/
|
|
10
10
|
filters: number;
|
|
11
|
+
|
|
11
12
|
/**
|
|
12
13
|
* Position of the most important matched attribute in the attributes to index list.
|
|
13
14
|
*/
|
|
14
15
|
firstMatchedWord: number;
|
|
16
|
+
|
|
15
17
|
/**
|
|
16
18
|
* Distance between the geo location in the search query and the best matching geo location in the record, divided by the geo precision (in meters).
|
|
17
19
|
*/
|
|
18
20
|
geoDistance: number;
|
|
21
|
+
|
|
19
22
|
/**
|
|
20
23
|
* Precision used when computing the geo distance, in meters.
|
|
21
24
|
*/
|
|
22
25
|
geoPrecision?: number;
|
|
26
|
+
|
|
23
27
|
matchedGeoLocation?: MatchedGeoLocation;
|
|
28
|
+
|
|
24
29
|
personalization?: Personalization;
|
|
30
|
+
|
|
25
31
|
/**
|
|
26
32
|
* Number of exactly matched words.
|
|
27
33
|
*/
|
|
28
34
|
nbExactWords: number;
|
|
35
|
+
|
|
29
36
|
/**
|
|
30
37
|
* Number of typos encountered when matching the record.
|
|
31
38
|
*/
|
|
32
39
|
nbTypos: number;
|
|
40
|
+
|
|
33
41
|
/**
|
|
34
42
|
* Present and set to true if a Rule promoted the hit.
|
|
35
43
|
*/
|
|
36
44
|
promoted: boolean;
|
|
45
|
+
|
|
37
46
|
/**
|
|
38
47
|
* When the query contains more than one word, the sum of the distances between matched words (in meters).
|
|
39
48
|
*/
|
|
40
49
|
proximityDistance?: number;
|
|
50
|
+
|
|
41
51
|
/**
|
|
42
52
|
* Custom ranking for the object, expressed as a single integer value.
|
|
43
53
|
*/
|
|
44
54
|
userScore: number;
|
|
55
|
+
|
|
45
56
|
/**
|
|
46
57
|
* Number of matched words, including prefixes and typos.
|
|
47
58
|
*/
|
|
48
59
|
words: number;
|
|
60
|
+
|
|
49
61
|
/**
|
|
50
62
|
* Wether the record are promoted by the re-ranking strategy.
|
|
51
63
|
*/
|
package/model/rule.ts
CHANGED
|
@@ -12,19 +12,24 @@ export type Rule = {
|
|
|
12
12
|
* Unique identifier of the object.
|
|
13
13
|
*/
|
|
14
14
|
objectID: string;
|
|
15
|
+
|
|
15
16
|
/**
|
|
16
17
|
* A list of conditions that should apply to activate a Rule. You can use up to 25 conditions per Rule.
|
|
17
18
|
*/
|
|
18
19
|
conditions?: Condition[];
|
|
20
|
+
|
|
19
21
|
consequence?: Consequence;
|
|
22
|
+
|
|
20
23
|
/**
|
|
21
24
|
* This field is intended for Rule management purposes, in particular to ease searching for Rules and presenting them to human readers. It\'s not interpreted by the API.
|
|
22
25
|
*/
|
|
23
26
|
description?: string;
|
|
27
|
+
|
|
24
28
|
/**
|
|
25
29
|
* Whether the Rule is enabled. Disabled Rules remain in the index, but aren\'t applied at query time.
|
|
26
30
|
*/
|
|
27
31
|
enabled?: boolean;
|
|
32
|
+
|
|
28
33
|
/**
|
|
29
34
|
* By default, Rules are permanently valid. When validity periods are specified, the Rule applies only during those periods; it\'s ignored the rest of the time. The list must not be empty.
|
|
30
35
|
*/
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
2
|
|
|
3
3
|
export type SaveObjectResponse = {
|
|
4
|
-
createdAt
|
|
4
|
+
createdAt: string;
|
|
5
|
+
|
|
5
6
|
/**
|
|
6
7
|
* TaskID of the task to wait for.
|
|
7
8
|
*/
|
|
8
|
-
taskID
|
|
9
|
+
taskID: number;
|
|
10
|
+
|
|
9
11
|
/**
|
|
10
12
|
* Unique identifier of the object.
|
|
11
13
|
*/
|
|
@@ -8,14 +8,17 @@ export type SearchDictionaryEntriesParams = {
|
|
|
8
8
|
* The text to search in the index.
|
|
9
9
|
*/
|
|
10
10
|
query: string;
|
|
11
|
+
|
|
11
12
|
/**
|
|
12
13
|
* Specify the page to retrieve.
|
|
13
14
|
*/
|
|
14
15
|
page?: number;
|
|
16
|
+
|
|
15
17
|
/**
|
|
16
18
|
* Set the number of hits per page.
|
|
17
19
|
*/
|
|
18
20
|
hitsPerPage?: number;
|
|
21
|
+
|
|
19
22
|
/**
|
|
20
23
|
* Language ISO code supported by the dictionary (e.g., \"en\" for English).
|
|
21
24
|
*/
|
|
@@ -5,10 +5,12 @@ export type SearchForFacetValuesRequest = {
|
|
|
5
5
|
* Search parameters as URL-encoded query string.
|
|
6
6
|
*/
|
|
7
7
|
params?: string;
|
|
8
|
+
|
|
8
9
|
/**
|
|
9
10
|
* Text to search inside the facet\'s values.
|
|
10
11
|
*/
|
|
11
12
|
facetQuery?: string;
|
|
13
|
+
|
|
12
14
|
/**
|
|
13
15
|
* Maximum number of facet hits to return during a search for facet values. For performance reasons, the maximum allowed number of returned values is 100.
|
|
14
16
|
*/
|
|
@@ -7,17 +7,21 @@ export type SearchForFacetsOptions = {
|
|
|
7
7
|
* The `facet` name.
|
|
8
8
|
*/
|
|
9
9
|
facet: string;
|
|
10
|
+
|
|
10
11
|
/**
|
|
11
12
|
* The Algolia index name.
|
|
12
13
|
*/
|
|
13
14
|
indexName: string;
|
|
15
|
+
|
|
14
16
|
/**
|
|
15
17
|
* Text to search inside the facet\'s values.
|
|
16
18
|
*/
|
|
17
19
|
facetQuery?: string;
|
|
20
|
+
|
|
18
21
|
/**
|
|
19
22
|
* Maximum number of facet hits to return during a search for facet values. For performance reasons, the maximum allowed number of returned values is 100.
|
|
20
23
|
*/
|
|
21
24
|
maxFacetHits?: number;
|
|
25
|
+
|
|
22
26
|
type: SearchTypeFacet;
|
|
23
27
|
};
|
package/model/searchHits.ts
CHANGED
package/model/searchResponse.ts
CHANGED
|
@@ -3,4 +3,5 @@
|
|
|
3
3
|
import type { BaseSearchResponse } from './baseSearchResponse';
|
|
4
4
|
import type { SearchHits } from './searchHits';
|
|
5
5
|
|
|
6
|
-
export type SearchResponse<T
|
|
6
|
+
export type SearchResponse<T = Record<string, any>> = BaseSearchResponse &
|
|
7
|
+
SearchHits<T>;
|
package/model/searchResponses.ts
CHANGED
|
@@ -10,23 +10,29 @@ export type SearchRulesParams = {
|
|
|
10
10
|
* Full text query.
|
|
11
11
|
*/
|
|
12
12
|
query?: string;
|
|
13
|
+
|
|
13
14
|
anchoring?: Anchoring;
|
|
15
|
+
|
|
14
16
|
/**
|
|
15
17
|
* Restricts matches to contextual rules with a specific context (exact match).
|
|
16
18
|
*/
|
|
17
19
|
context?: string;
|
|
20
|
+
|
|
18
21
|
/**
|
|
19
22
|
* Requested page (zero-based).
|
|
20
23
|
*/
|
|
21
24
|
page?: number;
|
|
25
|
+
|
|
22
26
|
/**
|
|
23
27
|
* Maximum number of hits in a page. Minimum is 1, maximum is 1000.
|
|
24
28
|
*/
|
|
25
29
|
hitsPerPage?: number;
|
|
30
|
+
|
|
26
31
|
/**
|
|
27
32
|
* When specified, restricts matches to rules with a specific enabled status. When absent (default), all rules are retrieved, regardless of their enabled status.
|
|
28
33
|
*/
|
|
29
34
|
enabled?: boolean;
|
|
35
|
+
|
|
30
36
|
/**
|
|
31
37
|
* A mapping of requestOptions to send along with the request.
|
|
32
38
|
*/
|
|
@@ -8,14 +8,17 @@ export type SearchUserIdsParams = {
|
|
|
8
8
|
* Query to search. The search is a prefix search with typoTolerance. Use empty query to retrieve all users.
|
|
9
9
|
*/
|
|
10
10
|
query: string;
|
|
11
|
+
|
|
11
12
|
/**
|
|
12
13
|
* Name of the cluster.
|
|
13
14
|
*/
|
|
14
15
|
clusterName?: string;
|
|
16
|
+
|
|
15
17
|
/**
|
|
16
18
|
* Specify the page to retrieve.
|
|
17
19
|
*/
|
|
18
20
|
page?: number;
|
|
21
|
+
|
|
19
22
|
/**
|
|
20
23
|
* Set the number of hits per page.
|
|
21
24
|
*/
|
|
@@ -10,18 +10,22 @@ export type SearchUserIdsResponse = {
|
|
|
10
10
|
* List of user object matching the query.
|
|
11
11
|
*/
|
|
12
12
|
hits: UserHit[];
|
|
13
|
+
|
|
13
14
|
/**
|
|
14
15
|
* Number of hits that the search query matched.
|
|
15
16
|
*/
|
|
16
17
|
nbHits: number;
|
|
18
|
+
|
|
17
19
|
/**
|
|
18
20
|
* Specify the page to retrieve.
|
|
19
21
|
*/
|
|
20
22
|
page: number;
|
|
23
|
+
|
|
21
24
|
/**
|
|
22
25
|
* Maximum number of hits in a page. Minimum is 1, maximum is 1000.
|
|
23
26
|
*/
|
|
24
27
|
hitsPerPage: number;
|
|
28
|
+
|
|
25
29
|
/**
|
|
26
30
|
* Date of last update (ISO-8601 format).
|
|
27
31
|
*/
|
package/model/source.ts
CHANGED
package/model/standardEntries.ts
CHANGED
package/model/synonymHit.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
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 { SynonymHitHighlightResult } from './synonymHitHighlightResult';
|
|
4
3
|
import type { SynonymType } from './synonymType';
|
|
5
4
|
|
|
6
5
|
/**
|
|
@@ -11,30 +10,36 @@ export type SynonymHit = {
|
|
|
11
10
|
* Unique identifier of the synonym object to be created or updated.
|
|
12
11
|
*/
|
|
13
12
|
objectID: string;
|
|
13
|
+
|
|
14
14
|
type: SynonymType;
|
|
15
|
+
|
|
15
16
|
/**
|
|
16
17
|
* Words or phrases to be considered equivalent.
|
|
17
18
|
*/
|
|
18
19
|
synonyms?: string[];
|
|
20
|
+
|
|
19
21
|
/**
|
|
20
22
|
* Word or phrase to appear in query strings (for onewaysynonym).
|
|
21
23
|
*/
|
|
22
24
|
input?: string;
|
|
25
|
+
|
|
23
26
|
/**
|
|
24
27
|
* Word or phrase to appear in query strings (for altcorrection1 and altcorrection2).
|
|
25
28
|
*/
|
|
26
29
|
word?: string;
|
|
30
|
+
|
|
27
31
|
/**
|
|
28
32
|
* Words to be matched in records.
|
|
29
33
|
*/
|
|
30
34
|
corrections?: string[];
|
|
35
|
+
|
|
31
36
|
/**
|
|
32
37
|
* Token to be put inside records.
|
|
33
38
|
*/
|
|
34
39
|
placeholder?: string;
|
|
40
|
+
|
|
35
41
|
/**
|
|
36
42
|
* List of query words that will match the token.
|
|
37
43
|
*/
|
|
38
44
|
replacements?: string[];
|
|
39
|
-
_highlightResult?: SynonymHitHighlightResult;
|
|
40
45
|
};
|
package/model/timeRange.ts
CHANGED