@algolia/client-search 5.0.0-alpha.1 → 5.0.0-alpha.10
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 +159 -37
- package/dist/client-search.esm.browser.js +192 -68
- package/dist/client-search.esm.node.js +160 -38
- 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.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 +3 -3
- 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 +25 -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/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 +10 -8
- 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 -2
- 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 +2 -2
- 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.map +1 -1
- package/dist/model/synonymHitHighlightResult.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 +72 -22
- 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 +13 -0
- package/model/baseSearchParamsWithoutQuery.ts +32 -0
- package/model/baseSearchResponse.ts +27 -3
- 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 +30 -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/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 +10 -8
- package/model/indexSettingsAsSearchParams.ts +46 -2
- 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 +2 -2
- 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 +8 -0
- package/model/synonymHitHighlightResult.ts +1 -0
- 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 +8 -6
- 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/model/browseRequest.ts +0 -12
|
@@ -15,43 +15,43 @@ function createAuth(appId, apiKey, authMode = 'WithinHeaders') {
|
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
const DEFAULT_MAX_RETRIES = 50;
|
|
19
|
-
const DEFAULT_TIMEOUT = retryCount => Math.min(retryCount * 200, 5000);
|
|
20
18
|
/**
|
|
21
|
-
*
|
|
19
|
+
* Helper: Returns the promise of a given `func` to iterate on, based on a given `validate` condition.
|
|
22
20
|
*
|
|
23
|
-
* @param
|
|
24
|
-
* @param
|
|
25
|
-
* @param
|
|
26
|
-
* @param
|
|
27
|
-
* @param
|
|
21
|
+
* @param createIterator - The createIterator options.
|
|
22
|
+
* @param createIterator.func - The function to run, which returns a promise.
|
|
23
|
+
* @param createIterator.validate - The validator function. It receives the resolved return of `func`.
|
|
24
|
+
* @param createIterator.aggregator - The function that runs right after the `func` method has been executed, allows you to do anything with the response before `validate`.
|
|
25
|
+
* @param createIterator.error - The `validate` condition to throw an error, and its message.
|
|
26
|
+
* @param createIterator.timeout - The function to decide how long to wait between iterations.
|
|
28
27
|
*/
|
|
29
|
-
|
|
30
|
-
function createRetryablePromise({
|
|
28
|
+
function createIterablePromise({
|
|
31
29
|
func,
|
|
32
30
|
validate,
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
aggregator,
|
|
32
|
+
error,
|
|
33
|
+
timeout = () => 0
|
|
35
34
|
}) {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
const retry = () => {
|
|
35
|
+
const retry = previousResponse => {
|
|
39
36
|
return new Promise((resolve, reject) => {
|
|
40
|
-
func().then(response => {
|
|
41
|
-
|
|
37
|
+
func(previousResponse).then(response => {
|
|
38
|
+
if (aggregator) {
|
|
39
|
+
aggregator(response);
|
|
40
|
+
}
|
|
42
41
|
|
|
43
|
-
if (
|
|
44
|
-
resolve(response);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
setTimeout(() => {
|
|
50
|
-
retry().then(resolve).catch(reject);
|
|
51
|
-
}, timeout(retryCount));
|
|
42
|
+
if (validate(response)) {
|
|
43
|
+
return resolve(response);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
if (error && error.validate(response)) {
|
|
47
|
+
return reject(new Error(error.message(response)));
|
|
52
48
|
}
|
|
53
|
-
|
|
54
|
-
|
|
49
|
+
|
|
50
|
+
return setTimeout(() => {
|
|
51
|
+
retry(response).then(resolve).catch(reject);
|
|
52
|
+
}, timeout());
|
|
53
|
+
}).catch(err => {
|
|
54
|
+
reject(err);
|
|
55
55
|
});
|
|
56
56
|
});
|
|
57
57
|
};
|
|
@@ -472,13 +472,15 @@ function createTransporter({
|
|
|
472
472
|
const dataQueryParameters = request.method === 'GET' ? { ...request.data,
|
|
473
473
|
...requestOptions.data
|
|
474
474
|
} : {};
|
|
475
|
-
const queryParameters = {
|
|
476
|
-
'x-algolia-agent': algoliaAgent.value,
|
|
477
|
-
...baseQueryParameters,
|
|
475
|
+
const queryParameters = { ...baseQueryParameters,
|
|
478
476
|
...request.queryParameters,
|
|
479
477
|
...dataQueryParameters
|
|
480
478
|
};
|
|
481
479
|
|
|
480
|
+
if (algoliaAgent.value) {
|
|
481
|
+
queryParameters['x-algolia-agent'] = algoliaAgent.value;
|
|
482
|
+
}
|
|
483
|
+
|
|
482
484
|
if (requestOptions && requestOptions.queryParameters) {
|
|
483
485
|
for (const key of Object.keys(requestOptions.queryParameters)) {
|
|
484
486
|
// We want to keep `undefined` and `null` values,
|
|
@@ -767,7 +769,7 @@ function createXhrRequester() {
|
|
|
767
769
|
}
|
|
768
770
|
|
|
769
771
|
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
770
|
-
const apiClientVersion = '5.0.0-alpha.
|
|
772
|
+
const apiClientVersion = '5.0.0-alpha.10';
|
|
771
773
|
function getDefaultHosts(appId) {
|
|
772
774
|
return [
|
|
773
775
|
{
|
|
@@ -821,6 +823,19 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
821
823
|
});
|
|
822
824
|
return {
|
|
823
825
|
transporter,
|
|
826
|
+
/**
|
|
827
|
+
* The `appId` currently in use.
|
|
828
|
+
*/
|
|
829
|
+
appId: appIdOption,
|
|
830
|
+
/**
|
|
831
|
+
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
|
|
832
|
+
*/
|
|
833
|
+
clearCache() {
|
|
834
|
+
return Promise.all([
|
|
835
|
+
transporter.requestsCache.clear(),
|
|
836
|
+
transporter.responsesCache.clear(),
|
|
837
|
+
]).then(() => undefined);
|
|
838
|
+
},
|
|
824
839
|
/**
|
|
825
840
|
* Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
|
|
826
841
|
*/
|
|
@@ -837,38 +852,57 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
837
852
|
transporter.algoliaAgent.add({ segment, version });
|
|
838
853
|
},
|
|
839
854
|
/**
|
|
840
|
-
* Helper: Wait for a task to
|
|
855
|
+
* Helper: Wait for a task to be published (completed) for a given `indexName` and `taskID`.
|
|
841
856
|
*
|
|
842
|
-
* @summary
|
|
857
|
+
* @summary Helper method that waits for a task to be published (completed).
|
|
843
858
|
* @param waitForTaskOptions - The waitForTaskOptions object.
|
|
844
859
|
* @param waitForTaskOptions.indexName - The `indexName` where the operation was performed.
|
|
845
860
|
* @param waitForTaskOptions.taskID - The `taskID` returned in the method response.
|
|
861
|
+
* @param waitForTaskOptions.maxRetries - The maximum number of retries. 50 by default.
|
|
862
|
+
* @param waitForTaskOptions.timeout - The function to decide how long to wait between retries.
|
|
846
863
|
* @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `getTask` method and merged with the transporter requestOptions.
|
|
847
864
|
*/
|
|
848
|
-
waitForTask({ indexName, taskID,
|
|
849
|
-
|
|
850
|
-
|
|
865
|
+
waitForTask({ indexName, taskID, maxRetries = 50, timeout = (retryCount) => Math.min(retryCount * 200, 5000), }, requestOptions) {
|
|
866
|
+
let retryCount = 0;
|
|
867
|
+
return createIterablePromise({
|
|
851
868
|
func: () => this.getTask({ indexName, taskID }, requestOptions),
|
|
852
869
|
validate: (response) => response.status === 'published',
|
|
870
|
+
aggregator: () => (retryCount += 1),
|
|
871
|
+
error: {
|
|
872
|
+
validate: () => retryCount >= maxRetries,
|
|
873
|
+
message: () => `The maximum number of retries exceeded. (${retryCount}/${maxRetries})`,
|
|
874
|
+
},
|
|
875
|
+
timeout: () => timeout(retryCount),
|
|
853
876
|
});
|
|
854
877
|
},
|
|
855
878
|
/**
|
|
856
879
|
* Helper: Wait for an API key to be added, updated or deleted based on a given `operation`.
|
|
857
880
|
*
|
|
858
|
-
* @summary
|
|
881
|
+
* @summary Helper method that waits for an API key task to be processed.
|
|
859
882
|
* @param waitForApiKeyOptions - The waitForApiKeyOptions object.
|
|
860
883
|
* @param waitForApiKeyOptions.operation - The `operation` that was done on a `key`.
|
|
861
884
|
* @param waitForApiKeyOptions.key - The `key` that has been added, deleted or updated.
|
|
862
885
|
* @param waitForApiKeyOptions.apiKey - Necessary to know if an `update` operation has been processed, compare fields of the response with it.
|
|
886
|
+
* @param waitForApiKeyOptions.maxRetries - The maximum number of retries. 50 by default.
|
|
887
|
+
* @param waitForApiKeyOptions.timeout - The function to decide how long to wait between retries.
|
|
863
888
|
* @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `getApikey` method and merged with the transporter requestOptions.
|
|
864
889
|
*/
|
|
865
|
-
waitForApiKey({ operation, key, apiKey,
|
|
890
|
+
waitForApiKey({ operation, key, apiKey, maxRetries = 50, timeout = (retryCount) => Math.min(retryCount * 200, 5000), }, requestOptions) {
|
|
891
|
+
let retryCount = 0;
|
|
892
|
+
const baseIteratorOptions = {
|
|
893
|
+
aggregator: () => (retryCount += 1),
|
|
894
|
+
error: {
|
|
895
|
+
validate: () => retryCount >= maxRetries,
|
|
896
|
+
message: () => `The maximum number of retries exceeded. (${retryCount}/${maxRetries})`,
|
|
897
|
+
},
|
|
898
|
+
timeout: () => timeout(retryCount),
|
|
899
|
+
};
|
|
866
900
|
if (operation === 'update') {
|
|
867
901
|
if (!apiKey) {
|
|
868
902
|
throw new Error('`apiKey` is required when waiting for an `update` operation.');
|
|
869
903
|
}
|
|
870
|
-
return
|
|
871
|
-
...
|
|
904
|
+
return createIterablePromise({
|
|
905
|
+
...baseIteratorOptions,
|
|
872
906
|
func: () => this.getApiKey({ key }, requestOptions),
|
|
873
907
|
validate: (response) => {
|
|
874
908
|
for (const field of Object.keys(apiKey)) {
|
|
@@ -886,12 +920,99 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
886
920
|
},
|
|
887
921
|
});
|
|
888
922
|
}
|
|
889
|
-
return
|
|
890
|
-
...
|
|
923
|
+
return createIterablePromise({
|
|
924
|
+
...baseIteratorOptions,
|
|
891
925
|
func: () => this.getApiKey({ key }, requestOptions).catch((error) => error),
|
|
892
926
|
validate: (error) => operation === 'add' ? error.status !== 404 : error.status === 404,
|
|
893
927
|
});
|
|
894
928
|
},
|
|
929
|
+
/**
|
|
930
|
+
* Helper: Iterate on the `browse` method of the client to allow aggregating objects of an index.
|
|
931
|
+
*
|
|
932
|
+
* @summary Helper method that iterates on the `browse` method.
|
|
933
|
+
* @param browseObjects - The browseObjects object.
|
|
934
|
+
* @param browseObjects.indexName - The index in which to perform the request.
|
|
935
|
+
* @param browseObjects.browseParams - The `browse` parameters.
|
|
936
|
+
* @param browseObjects.validate - The validator function. It receive the resolved return of the API call. By default, stops when there is no `cursor` in the response.
|
|
937
|
+
* @param browseObjects.aggregator - The function that runs right after the API call has been resolved, allows you to do anything with the response before `validate`.
|
|
938
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `browse` method and merged with the transporter requestOptions.
|
|
939
|
+
*/
|
|
940
|
+
browseObjects({ indexName, browseParams, ...browseObjectsOptions }, requestOptions) {
|
|
941
|
+
return createIterablePromise({
|
|
942
|
+
func: (previousResponse) => {
|
|
943
|
+
return this.browse({
|
|
944
|
+
indexName,
|
|
945
|
+
browseParams: {
|
|
946
|
+
cursor: previousResponse ? previousResponse.cursor : undefined,
|
|
947
|
+
...browseParams,
|
|
948
|
+
},
|
|
949
|
+
}, requestOptions);
|
|
950
|
+
},
|
|
951
|
+
validate: (response) => response.cursor === undefined,
|
|
952
|
+
...browseObjectsOptions,
|
|
953
|
+
});
|
|
954
|
+
},
|
|
955
|
+
/**
|
|
956
|
+
* Helper: Iterate on the `searchRules` method of the client to allow aggregating rules of an index.
|
|
957
|
+
*
|
|
958
|
+
* @summary Helper method that iterates on the `searchRules` method.
|
|
959
|
+
* @param browseObjects - The browseObjects object.
|
|
960
|
+
* @param browseObjects.indexName - The index in which to perform the request.
|
|
961
|
+
* @param browseObjects.searchRulesParams - The `searchRules` method parameters.
|
|
962
|
+
* @param browseObjects.validate - The validator function. It receive the resolved return of the API call. By default, stops when there is less hits returned than the number of maximum hits (1000).
|
|
963
|
+
* @param browseObjects.aggregator - The function that runs right after the API call has been resolved, allows you to do anything with the response before `validate`.
|
|
964
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `searchRules` method and merged with the transporter requestOptions.
|
|
965
|
+
*/
|
|
966
|
+
browseRules({ indexName, searchRulesParams, ...browseRulesOptions }, requestOptions) {
|
|
967
|
+
const params = {
|
|
968
|
+
hitsPerPage: 1000,
|
|
969
|
+
...searchRulesParams,
|
|
970
|
+
};
|
|
971
|
+
return createIterablePromise({
|
|
972
|
+
func: (previousResponse) => {
|
|
973
|
+
return this.searchRules({
|
|
974
|
+
indexName,
|
|
975
|
+
searchRulesParams: {
|
|
976
|
+
...params,
|
|
977
|
+
page: previousResponse
|
|
978
|
+
? previousResponse.page + 1
|
|
979
|
+
: params.page || 0,
|
|
980
|
+
},
|
|
981
|
+
}, requestOptions);
|
|
982
|
+
},
|
|
983
|
+
validate: (response) => response.nbHits < params.hitsPerPage,
|
|
984
|
+
...browseRulesOptions,
|
|
985
|
+
});
|
|
986
|
+
},
|
|
987
|
+
/**
|
|
988
|
+
* Helper: Iterate on the `searchSynonyms` method of the client to allow aggregating rules of an index.
|
|
989
|
+
*
|
|
990
|
+
* @summary Helper method that iterates on the `searchSynonyms` method.
|
|
991
|
+
* @param browseObjects - The browseObjects object.
|
|
992
|
+
* @param browseObjects.indexName - The index in which to perform the request.
|
|
993
|
+
* @param browseObjects.validate - The validator function. It receive the resolved return of the API call. By default, stops when there is less hits returned than the number of maximum hits (1000).
|
|
994
|
+
* @param browseObjects.aggregator - The function that runs right after the API call has been resolved, allows you to do anything with the response before `validate`.
|
|
995
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `searchSynonyms` method and merged with the transporter requestOptions.
|
|
996
|
+
*/
|
|
997
|
+
browseSynonyms({ indexName, validate, aggregator, ...browseSynonymsOptions }, requestOptions) {
|
|
998
|
+
const params = {
|
|
999
|
+
hitsPerPage: 1000,
|
|
1000
|
+
...browseSynonymsOptions,
|
|
1001
|
+
};
|
|
1002
|
+
return createIterablePromise({
|
|
1003
|
+
func: (previousResponse) => {
|
|
1004
|
+
return this.searchSynonyms({
|
|
1005
|
+
...params,
|
|
1006
|
+
indexName,
|
|
1007
|
+
page: previousResponse
|
|
1008
|
+
? previousResponse.page + 1
|
|
1009
|
+
: browseSynonymsOptions.page || 0,
|
|
1010
|
+
}, requestOptions);
|
|
1011
|
+
},
|
|
1012
|
+
validate: (response) => response.nbHits < params.hitsPerPage,
|
|
1013
|
+
...browseSynonymsOptions,
|
|
1014
|
+
});
|
|
1015
|
+
},
|
|
895
1016
|
/**
|
|
896
1017
|
* Add a new API Key with specific permissions/restrictions.
|
|
897
1018
|
*
|
|
@@ -1025,6 +1146,9 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1025
1146
|
if (!batchWriteParams) {
|
|
1026
1147
|
throw new Error('Parameter `batchWriteParams` is required when calling `batch`.');
|
|
1027
1148
|
}
|
|
1149
|
+
if (!batchWriteParams.requests) {
|
|
1150
|
+
throw new Error('Parameter `batchWriteParams.requests` is required when calling `batch`.');
|
|
1151
|
+
}
|
|
1028
1152
|
const requestPath = '/1/indexes/{indexName}/batch'.replace('{indexName}', encodeURIComponent(indexName));
|
|
1029
1153
|
const headers = {};
|
|
1030
1154
|
const queryParameters = {};
|
|
@@ -1111,10 +1235,10 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1111
1235
|
* @summary Retrieve all index content.
|
|
1112
1236
|
* @param browse - The browse object.
|
|
1113
1237
|
* @param browse.indexName - The index in which to perform the request.
|
|
1114
|
-
* @param browse.
|
|
1238
|
+
* @param browse.browseParams - The browseParams object.
|
|
1115
1239
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1116
1240
|
*/
|
|
1117
|
-
browse({ indexName,
|
|
1241
|
+
browse({ indexName, browseParams }, requestOptions) {
|
|
1118
1242
|
if (!indexName) {
|
|
1119
1243
|
throw new Error('Parameter `indexName` is required when calling `browse`.');
|
|
1120
1244
|
}
|
|
@@ -1126,7 +1250,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1126
1250
|
path: requestPath,
|
|
1127
1251
|
queryParameters,
|
|
1128
1252
|
headers,
|
|
1129
|
-
data:
|
|
1253
|
+
data: browseParams ? browseParams : {},
|
|
1130
1254
|
};
|
|
1131
1255
|
return transporter.request(request, requestOptions);
|
|
1132
1256
|
},
|
|
@@ -1517,7 +1641,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1517
1641
|
* @param getLogs.type - Type of log entries to retrieve. When omitted, all log entries are retrieved.
|
|
1518
1642
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1519
1643
|
*/
|
|
1520
|
-
getLogs({ offset, length, indexName, type }, requestOptions) {
|
|
1644
|
+
getLogs({ offset, length, indexName, type } = {}, requestOptions = undefined) {
|
|
1521
1645
|
const requestPath = '/1/logs';
|
|
1522
1646
|
const headers = {};
|
|
1523
1647
|
const queryParameters = {};
|
|
@@ -1585,6 +1709,9 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1585
1709
|
if (!getObjectsParams) {
|
|
1586
1710
|
throw new Error('Parameter `getObjectsParams` is required when calling `getObjects`.');
|
|
1587
1711
|
}
|
|
1712
|
+
if (!getObjectsParams.requests) {
|
|
1713
|
+
throw new Error('Parameter `getObjectsParams.requests` is required when calling `getObjects`.');
|
|
1714
|
+
}
|
|
1588
1715
|
const requestPath = '/1/indexes/*/objects';
|
|
1589
1716
|
const headers = {};
|
|
1590
1717
|
const queryParameters = {};
|
|
@@ -1776,7 +1903,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1776
1903
|
* @param hasPendingMappings.getClusters - If the clusters pending mapping state should be on the response.
|
|
1777
1904
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1778
1905
|
*/
|
|
1779
|
-
hasPendingMappings({ getClusters }, requestOptions) {
|
|
1906
|
+
hasPendingMappings({ getClusters } = {}, requestOptions = undefined) {
|
|
1780
1907
|
const requestPath = '/1/clusters/mapping/pending';
|
|
1781
1908
|
const headers = {};
|
|
1782
1909
|
const queryParameters = {};
|
|
@@ -1835,7 +1962,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1835
1962
|
* @param listIndices.page - Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination).
|
|
1836
1963
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1837
1964
|
*/
|
|
1838
|
-
listIndices({ page }, requestOptions) {
|
|
1965
|
+
listIndices({ page } = {}, requestOptions = undefined) {
|
|
1839
1966
|
const requestPath = '/1/indexes';
|
|
1840
1967
|
const headers = {};
|
|
1841
1968
|
const queryParameters = {};
|
|
@@ -1859,7 +1986,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1859
1986
|
* @param listUserIds.hitsPerPage - Maximum number of objects to retrieve.
|
|
1860
1987
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1861
1988
|
*/
|
|
1862
|
-
listUserIds({ page, hitsPerPage }, requestOptions) {
|
|
1989
|
+
listUserIds({ page, hitsPerPage } = {}, requestOptions = undefined) {
|
|
1863
1990
|
const requestPath = '/1/clusters/mapping';
|
|
1864
1991
|
const headers = {};
|
|
1865
1992
|
const queryParameters = {};
|
|
@@ -1888,6 +2015,9 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1888
2015
|
if (!batchParams) {
|
|
1889
2016
|
throw new Error('Parameter `batchParams` is required when calling `multipleBatch`.');
|
|
1890
2017
|
}
|
|
2018
|
+
if (!batchParams.requests) {
|
|
2019
|
+
throw new Error('Parameter `batchParams.requests` is required when calling `multipleBatch`.');
|
|
2020
|
+
}
|
|
1891
2021
|
const requestPath = '/1/indexes/*/batch';
|
|
1892
2022
|
const headers = {};
|
|
1893
2023
|
const queryParameters = {};
|
|
@@ -1941,19 +2071,19 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1941
2071
|
* @param partialUpdateObject - The partialUpdateObject object.
|
|
1942
2072
|
* @param partialUpdateObject.indexName - The index in which to perform the request.
|
|
1943
2073
|
* @param partialUpdateObject.objectID - Unique identifier of an object.
|
|
1944
|
-
* @param partialUpdateObject.
|
|
2074
|
+
* @param partialUpdateObject.attributesToUpdate - Map of attribute(s) to update.
|
|
1945
2075
|
* @param partialUpdateObject.createIfNotExists - Creates the record if it does not exist yet.
|
|
1946
2076
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1947
2077
|
*/
|
|
1948
|
-
partialUpdateObject({ indexName, objectID,
|
|
2078
|
+
partialUpdateObject({ indexName, objectID, attributesToUpdate, createIfNotExists, }, requestOptions) {
|
|
1949
2079
|
if (!indexName) {
|
|
1950
2080
|
throw new Error('Parameter `indexName` is required when calling `partialUpdateObject`.');
|
|
1951
2081
|
}
|
|
1952
2082
|
if (!objectID) {
|
|
1953
2083
|
throw new Error('Parameter `objectID` is required when calling `partialUpdateObject`.');
|
|
1954
2084
|
}
|
|
1955
|
-
if (!
|
|
1956
|
-
throw new Error('Parameter `
|
|
2085
|
+
if (!attributesToUpdate) {
|
|
2086
|
+
throw new Error('Parameter `attributesToUpdate` is required when calling `partialUpdateObject`.');
|
|
1957
2087
|
}
|
|
1958
2088
|
const requestPath = '/1/indexes/{indexName}/{objectID}/partial'
|
|
1959
2089
|
.replace('{indexName}', encodeURIComponent(indexName))
|
|
@@ -1968,7 +2098,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
1968
2098
|
path: requestPath,
|
|
1969
2099
|
queryParameters,
|
|
1970
2100
|
headers,
|
|
1971
|
-
data:
|
|
2101
|
+
data: attributesToUpdate,
|
|
1972
2102
|
};
|
|
1973
2103
|
return transporter.request(request, requestOptions);
|
|
1974
2104
|
},
|
|
@@ -2169,17 +2299,17 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
2169
2299
|
* @summary Save a batch of rules.
|
|
2170
2300
|
* @param saveRules - The saveRules object.
|
|
2171
2301
|
* @param saveRules.indexName - The index in which to perform the request.
|
|
2172
|
-
* @param saveRules.
|
|
2302
|
+
* @param saveRules.rules - The rules object.
|
|
2173
2303
|
* @param saveRules.forwardToReplicas - When true, changes are also propagated to replicas of the given indexName.
|
|
2174
2304
|
* @param saveRules.clearExistingRules - When true, existing Rules are cleared before adding this batch. When false, existing Rules are kept.
|
|
2175
2305
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2176
2306
|
*/
|
|
2177
|
-
saveRules({ indexName,
|
|
2307
|
+
saveRules({ indexName, rules, forwardToReplicas, clearExistingRules, }, requestOptions) {
|
|
2178
2308
|
if (!indexName) {
|
|
2179
2309
|
throw new Error('Parameter `indexName` is required when calling `saveRules`.');
|
|
2180
2310
|
}
|
|
2181
|
-
if (!
|
|
2182
|
-
throw new Error('Parameter `
|
|
2311
|
+
if (!rules) {
|
|
2312
|
+
throw new Error('Parameter `rules` is required when calling `saveRules`.');
|
|
2183
2313
|
}
|
|
2184
2314
|
const requestPath = '/1/indexes/{indexName}/rules/batch'.replace('{indexName}', encodeURIComponent(indexName));
|
|
2185
2315
|
const headers = {};
|
|
@@ -2195,7 +2325,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
2195
2325
|
path: requestPath,
|
|
2196
2326
|
queryParameters,
|
|
2197
2327
|
headers,
|
|
2198
|
-
data:
|
|
2328
|
+
data: rules,
|
|
2199
2329
|
};
|
|
2200
2330
|
return transporter.request(request, requestOptions);
|
|
2201
2331
|
},
|
|
@@ -2406,9 +2536,6 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
2406
2536
|
if (!indexName) {
|
|
2407
2537
|
throw new Error('Parameter `indexName` is required when calling `searchRules`.');
|
|
2408
2538
|
}
|
|
2409
|
-
if (!searchRulesParams) {
|
|
2410
|
-
throw new Error('Parameter `searchRulesParams` is required when calling `searchRules`.');
|
|
2411
|
-
}
|
|
2412
2539
|
const requestPath = '/1/indexes/{indexName}/rules/search'.replace('{indexName}', encodeURIComponent(indexName));
|
|
2413
2540
|
const headers = {};
|
|
2414
2541
|
const queryParameters = {};
|
|
@@ -2417,7 +2544,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
2417
2544
|
path: requestPath,
|
|
2418
2545
|
queryParameters,
|
|
2419
2546
|
headers,
|
|
2420
|
-
data: searchRulesParams,
|
|
2547
|
+
data: searchRulesParams ? searchRulesParams : {},
|
|
2421
2548
|
useReadTransporter: true,
|
|
2422
2549
|
cacheable: true,
|
|
2423
2550
|
};
|
|
@@ -2436,9 +2563,6 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
2436
2563
|
if (!indexName) {
|
|
2437
2564
|
throw new Error('Parameter `indexName` is required when calling `searchSingleIndex`.');
|
|
2438
2565
|
}
|
|
2439
|
-
if (!searchParams) {
|
|
2440
|
-
throw new Error('Parameter `searchParams` is required when calling `searchSingleIndex`.');
|
|
2441
|
-
}
|
|
2442
2566
|
const requestPath = '/1/indexes/{indexName}/query'.replace('{indexName}', encodeURIComponent(indexName));
|
|
2443
2567
|
const headers = {};
|
|
2444
2568
|
const queryParameters = {};
|
|
@@ -2447,7 +2571,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
|
|
|
2447
2571
|
path: requestPath,
|
|
2448
2572
|
queryParameters,
|
|
2449
2573
|
headers,
|
|
2450
|
-
data: searchParams,
|
|
2574
|
+
data: searchParams ? searchParams : {},
|
|
2451
2575
|
useReadTransporter: true,
|
|
2452
2576
|
cacheable: true,
|
|
2453
2577
|
};
|