algoliasearch 5.0.0-alpha.4 → 5.0.0-alpha.7

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.
Files changed (79) hide show
  1. package/dist/algoliasearch/builds/browser.d.ts +6 -6
  2. package/dist/algoliasearch/builds/node.d.ts +6 -6
  3. package/dist/algoliasearch/lite/model/baseSearchResponse.d.ts +1 -1
  4. package/dist/algoliasearch/lite/model/baseSearchResponse.d.ts.map +1 -1
  5. package/dist/algoliasearch/lite/model/browseParams.d.ts +4 -0
  6. package/dist/algoliasearch/lite/model/browseParams.d.ts.map +1 -0
  7. package/dist/algoliasearch/lite/model/browseParamsObject.d.ts +4 -0
  8. package/dist/algoliasearch/lite/model/browseParamsObject.d.ts.map +1 -0
  9. package/dist/algoliasearch/lite/model/browseResponse.d.ts +2 -2
  10. package/dist/algoliasearch/lite/model/browseResponse.d.ts.map +1 -1
  11. package/dist/algoliasearch/lite/model/{baseBrowseResponse.d.ts → cursor.d.ts} +3 -3
  12. package/dist/algoliasearch/lite/model/cursor.d.ts.map +1 -0
  13. package/dist/algoliasearch/lite/model/index.d.ts +3 -1
  14. package/dist/algoliasearch/lite/model/index.d.ts.map +1 -1
  15. package/dist/algoliasearch/lite/model/indexSettingsAsSearchParams.d.ts +4 -0
  16. package/dist/algoliasearch/lite/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  17. package/dist/algoliasearch/lite/src/liteClient.d.ts +1 -1
  18. package/dist/algoliasearch.cjs.js +24 -24
  19. package/dist/algoliasearch.esm.browser.js +24 -24
  20. package/dist/algoliasearch.esm.node.js +24 -24
  21. package/dist/algoliasearch.umd.js +2 -2
  22. package/dist/builds/browser.d.ts +6 -6
  23. package/dist/builds/node.d.ts +6 -6
  24. package/dist/client-abtesting/src/abtestingClient.d.ts +1 -1
  25. package/dist/client-analytics/src/analyticsClient.d.ts +1 -1
  26. package/dist/client-personalization/src/personalizationClient.d.ts +1 -1
  27. package/dist/client-search/model/baseSearchResponse.d.ts +1 -1
  28. package/dist/client-search/model/baseSearchResponse.d.ts.map +1 -1
  29. package/dist/client-search/model/browseParams.d.ts +4 -0
  30. package/dist/client-search/model/browseParams.d.ts.map +1 -0
  31. package/dist/client-search/model/browseParamsObject.d.ts +4 -0
  32. package/dist/client-search/model/browseParamsObject.d.ts.map +1 -0
  33. package/dist/client-search/model/browseResponse.d.ts +2 -2
  34. package/dist/client-search/model/browseResponse.d.ts.map +1 -1
  35. package/dist/client-search/model/clientMethodProps.d.ts +9 -11
  36. package/dist/client-search/model/clientMethodProps.d.ts.map +1 -1
  37. package/dist/client-search/model/{baseBrowseResponse.d.ts → cursor.d.ts} +3 -3
  38. package/dist/client-search/model/cursor.d.ts.map +1 -0
  39. package/dist/client-search/model/index.d.ts +3 -2
  40. package/dist/client-search/model/index.d.ts.map +1 -1
  41. package/dist/client-search/model/indexSettingsAsSearchParams.d.ts +4 -0
  42. package/dist/client-search/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  43. package/dist/client-search/src/searchClient.d.ts +12 -12
  44. package/dist/client-search/src/searchClient.d.ts.map +1 -1
  45. package/dist/lite/builds/browser.d.ts +6 -6
  46. package/dist/lite/builds/node.d.ts +6 -6
  47. package/dist/lite/lite/model/baseSearchResponse.d.ts +1 -1
  48. package/dist/lite/lite/model/baseSearchResponse.d.ts.map +1 -1
  49. package/dist/lite/lite/model/browseParams.d.ts +4 -0
  50. package/dist/lite/lite/model/browseParams.d.ts.map +1 -0
  51. package/dist/lite/lite/model/browseParamsObject.d.ts +4 -0
  52. package/dist/lite/lite/model/browseParamsObject.d.ts.map +1 -0
  53. package/dist/lite/lite/model/browseResponse.d.ts +2 -2
  54. package/dist/lite/lite/model/browseResponse.d.ts.map +1 -1
  55. package/dist/lite/lite/model/{baseBrowseResponse.d.ts → cursor.d.ts} +3 -3
  56. package/dist/lite/lite/model/cursor.d.ts.map +1 -0
  57. package/dist/lite/lite/model/index.d.ts +3 -1
  58. package/dist/lite/lite/model/index.d.ts.map +1 -1
  59. package/dist/lite/lite/model/indexSettingsAsSearchParams.d.ts +4 -0
  60. package/dist/lite/lite/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  61. package/dist/lite/lite/src/liteClient.d.ts +1 -1
  62. package/dist/lite/lite.cjs.js +1 -1
  63. package/dist/lite/lite.esm.browser.js +1 -1
  64. package/dist/lite/lite.esm.node.js +1 -1
  65. package/dist/lite/lite.umd.js +2 -2
  66. package/lite/model/baseSearchResponse.ts +1 -1
  67. package/lite/model/browseParams.ts +6 -0
  68. package/lite/model/browseParamsObject.ts +6 -0
  69. package/lite/model/browseResponse.ts +3 -3
  70. package/lite/model/{baseBrowseResponse.ts → cursor.ts} +2 -2
  71. package/lite/model/index.ts +3 -1
  72. package/lite/model/indexSettingsAsSearchParams.ts +5 -0
  73. package/lite/src/liteClient.ts +1 -1
  74. package/package.json +8 -8
  75. package/dist/algoliasearch/lite/model/baseBrowseResponse.d.ts.map +0 -1
  76. package/dist/client-search/model/baseBrowseResponse.d.ts.map +0 -1
  77. package/dist/client-search/model/browseRequest.d.ts +0 -11
  78. package/dist/client-search/model/browseRequest.d.ts.map +0 -1
  79. package/dist/lite/lite/model/baseBrowseResponse.d.ts.map +0 -1
@@ -4,7 +4,7 @@ import type { ClientOptions } from '@algolia/client-common';
4
4
  import type { Region as PersonalizationRegion, PersonalizationClient } from '@algolia/client-personalization/src/personalizationClient';
5
5
  import type { InitClientOptions, InitClientRegion } from './models';
6
6
  export * from './models';
7
- export declare const apiClientVersion = "5.0.0-alpha.4";
7
+ export declare const apiClientVersion = "5.0.0-alpha.7";
8
8
  /**
9
9
  * The client type.
10
10
  */
@@ -19,8 +19,8 @@ export declare function algoliasearch(appId: string, apiKey: string, options?: C
19
19
  clearCache(): Promise<void>;
20
20
  addAlgoliaAgent(segment: string, version?: string | undefined): void;
21
21
  waitForTask({ indexName, taskID, maxRetries, timeout, }: import("@algolia/client-search/model/clientMethodProps").WaitForTaskOptions, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/getTaskResponse").GetTaskResponse>;
22
- waitForApiKey({ operation, key, apiKey, maxRetries, timeout, }: import("@algolia/client-search/model/clientMethodProps").WaitForApiKeyOptions, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/getApiKeyResponse").GetApiKeyResponse | import("@algolia/client-common").ApiError>;
23
- browseObjects<T>({ indexName, browseRequest, ...browseObjectsOptions }: Partial<Pick<import("@algolia/client-common").CreateIterablePromise<import("@algolia/client-search/model/browseResponse").BrowseResponse<T>>, "validate">> & Required<Pick<import("@algolia/client-common").CreateIterablePromise<import("@algolia/client-search/model/browseResponse").BrowseResponse<T>>, "aggregator">> & import("@algolia/client-search/model/clientMethodProps").BrowseProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/browseResponse").BrowseResponse<T>>;
22
+ waitForApiKey({ operation, key, apiKey, maxRetries, timeout, }: import("@algolia/client-search/model/clientMethodProps").WaitForApiKeyOptions, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-common").ApiError | import("@algolia/client-search/model/getApiKeyResponse").GetApiKeyResponse>;
23
+ browseObjects<T>({ indexName, browseParams, ...browseObjectsOptions }: Partial<Pick<import("@algolia/client-common").CreateIterablePromise<import("@algolia/client-search/model/browseResponse").BrowseResponse<T>>, "validate">> & Required<Pick<import("@algolia/client-common").CreateIterablePromise<import("@algolia/client-search/model/browseResponse").BrowseResponse<T>>, "aggregator">> & import("@algolia/client-search/model/clientMethodProps").BrowseProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/browseResponse").BrowseResponse<T>>;
24
24
  browseRules({ indexName, searchRulesParams, ...browseRulesOptions }: Partial<Pick<import("@algolia/client-common").CreateIterablePromise<import("@algolia/client-search/model/searchRulesResponse").SearchRulesResponse>, "validate">> & Required<Pick<import("@algolia/client-common").CreateIterablePromise<import("@algolia/client-search/model/searchRulesResponse").SearchRulesResponse>, "aggregator">> & import("@algolia/client-search/model/clientMethodProps").SearchRulesProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/searchRulesResponse").SearchRulesResponse>;
25
25
  browseSynonyms({ indexName, validate, aggregator, ...browseSynonymsOptions }: Partial<Pick<import("@algolia/client-common").CreateIterablePromise<import("@algolia/client-search/model/searchSynonymsResponse").SearchSynonymsResponse>, "validate">> & Required<Pick<import("@algolia/client-common").CreateIterablePromise<import("@algolia/client-search/model/searchSynonymsResponse").SearchSynonymsResponse>, "aggregator">> & import("@algolia/client-search/model/clientMethodProps").SearchSynonymsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/searchSynonymsResponse").SearchSynonymsResponse>;
26
26
  addApiKey(apiKey: import("@algolia/client-search/model/apiKey").ApiKey, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/addApiKeyResponse").AddApiKeyResponse>;
@@ -30,7 +30,7 @@ export declare function algoliasearch(appId: string, apiKey: string, options?: C
30
30
  batch({ indexName, batchWriteParams }: import("@algolia/client-search/model/clientMethodProps").BatchProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/batchResponse").BatchResponse>;
31
31
  batchAssignUserIds({ xAlgoliaUserID, batchAssignUserIdsParams }: import("@algolia/client-search/model/clientMethodProps").BatchAssignUserIdsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/createdAtResponse").CreatedAtResponse>;
32
32
  batchDictionaryEntries({ dictionaryName, batchDictionaryEntriesParams, }: import("@algolia/client-search/model/clientMethodProps").BatchDictionaryEntriesProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/updatedAtResponse").UpdatedAtResponse>;
33
- browse<T_1>({ indexName, browseRequest }: import("@algolia/client-search/model/clientMethodProps").BrowseProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/browseResponse").BrowseResponse<T_1>>;
33
+ browse<T_1>({ indexName, browseParams }: import("@algolia/client-search/model/clientMethodProps").BrowseProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/browseResponse").BrowseResponse<T_1>>;
34
34
  clearAllSynonyms({ indexName, forwardToReplicas }: import("@algolia/client-search/model/clientMethodProps").ClearAllSynonymsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/updatedAtResponse").UpdatedAtResponse>;
35
35
  clearObjects({ indexName }: import("@algolia/client-search/model/clientMethodProps").ClearObjectsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/updatedAtResponse").UpdatedAtResponse>;
36
36
  clearRules({ indexName, forwardToReplicas }: import("@algolia/client-search/model/clientMethodProps").ClearRulesProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/updatedAtResponse").UpdatedAtResponse>;
@@ -63,7 +63,7 @@ export declare function algoliasearch(appId: string, apiKey: string, options?: C
63
63
  listUserIds({ page, hitsPerPage }: import("@algolia/client-search/model/clientMethodProps").ListUserIdsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/listUserIdsResponse").ListUserIdsResponse>;
64
64
  multipleBatch(batchParams: import("@algolia/client-search/model/batchParams").BatchParams, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/multipleBatchResponse").MultipleBatchResponse>;
65
65
  operationIndex({ indexName, operationIndexParams }: import("@algolia/client-search/model/clientMethodProps").OperationIndexProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/updatedAtResponse").UpdatedAtResponse>;
66
- partialUpdateObject({ indexName, objectID, attributeToUpdate, createIfNotExists, }: import("@algolia/client-search/model/clientMethodProps").PartialUpdateObjectProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/updatedAtWithObjectIdResponse").UpdatedAtWithObjectIdResponse>;
66
+ partialUpdateObject({ indexName, objectID, attributesToUpdate, createIfNotExists, }: import("@algolia/client-search/model/clientMethodProps").PartialUpdateObjectProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/updatedAtWithObjectIdResponse").UpdatedAtWithObjectIdResponse>;
67
67
  post({ path, parameters, body }: import("@algolia/client-search/model/clientMethodProps").PostProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<Record<string, any>>;
68
68
  put({ path, parameters, body }: import("@algolia/client-search/model/clientMethodProps").PutProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<Record<string, any>>;
69
69
  removeUserId({ userID }: import("@algolia/client-search/model/clientMethodProps").RemoveUserIdProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/removeUserIdResponse").RemoveUserIdResponse>;
@@ -71,7 +71,7 @@ export declare function algoliasearch(appId: string, apiKey: string, options?: C
71
71
  restoreApiKey({ key }: import("@algolia/client-search/model/clientMethodProps").RestoreApiKeyProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/addApiKeyResponse").AddApiKeyResponse>;
72
72
  saveObject({ indexName, body }: import("@algolia/client-search/model/clientMethodProps").SaveObjectProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/saveObjectResponse").SaveObjectResponse>;
73
73
  saveRule({ indexName, objectID, rule, forwardToReplicas }: import("@algolia/client-search/model/clientMethodProps").SaveRuleProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/updatedRuleResponse").UpdatedRuleResponse>;
74
- saveRules({ indexName, rule, forwardToReplicas, clearExistingRules, }: import("@algolia/client-search/model/clientMethodProps").SaveRulesProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/updatedAtResponse").UpdatedAtResponse>;
74
+ saveRules({ indexName, rules, forwardToReplicas, clearExistingRules, }: import("@algolia/client-search/model/clientMethodProps").SaveRulesProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/updatedAtResponse").UpdatedAtResponse>;
75
75
  saveSynonym({ indexName, objectID, synonymHit, forwardToReplicas }: import("@algolia/client-search/model/clientMethodProps").SaveSynonymProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/saveSynonymResponse").SaveSynonymResponse>;
76
76
  saveSynonyms({ indexName, synonymHit, forwardToReplicas, replaceExistingSynonyms, }: import("@algolia/client-search/model/clientMethodProps").SaveSynonymsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/updatedAtResponse").UpdatedAtResponse>;
77
77
  search<T_3>(searchMethodParams: import("@algolia/client-search/model/clientMethodProps").LegacySearchMethodProps | import("@algolia/client-search/model/searchMethodParams").SearchMethodParams, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/searchResponses").SearchResponses<T_3>>;
@@ -4,7 +4,7 @@ import type { ClientOptions } from '@algolia/client-common';
4
4
  import type { Region as PersonalizationRegion, PersonalizationClient } from '@algolia/client-personalization/src/personalizationClient';
5
5
  import type { InitClientOptions, InitClientRegion } from './models';
6
6
  export * from './models';
7
- export declare const apiClientVersion = "5.0.0-alpha.4";
7
+ export declare const apiClientVersion = "5.0.0-alpha.7";
8
8
  /**
9
9
  * The client type.
10
10
  */
@@ -19,8 +19,8 @@ export declare function algoliasearch(appId: string, apiKey: string, options?: C
19
19
  clearCache(): Promise<void>;
20
20
  addAlgoliaAgent(segment: string, version?: string | undefined): void;
21
21
  waitForTask({ indexName, taskID, maxRetries, timeout, }: import("@algolia/client-search/model/clientMethodProps").WaitForTaskOptions, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/getTaskResponse").GetTaskResponse>;
22
- waitForApiKey({ operation, key, apiKey, maxRetries, timeout, }: import("@algolia/client-search/model/clientMethodProps").WaitForApiKeyOptions, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/getApiKeyResponse").GetApiKeyResponse | import("@algolia/client-common").ApiError>;
23
- browseObjects<T>({ indexName, browseRequest, ...browseObjectsOptions }: Partial<Pick<import("@algolia/client-common").CreateIterablePromise<import("@algolia/client-search/model/browseResponse").BrowseResponse<T>>, "validate">> & Required<Pick<import("@algolia/client-common").CreateIterablePromise<import("@algolia/client-search/model/browseResponse").BrowseResponse<T>>, "aggregator">> & import("@algolia/client-search/model/clientMethodProps").BrowseProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/browseResponse").BrowseResponse<T>>;
22
+ waitForApiKey({ operation, key, apiKey, maxRetries, timeout, }: import("@algolia/client-search/model/clientMethodProps").WaitForApiKeyOptions, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-common").ApiError | import("@algolia/client-search/model/getApiKeyResponse").GetApiKeyResponse>;
23
+ browseObjects<T>({ indexName, browseParams, ...browseObjectsOptions }: Partial<Pick<import("@algolia/client-common").CreateIterablePromise<import("@algolia/client-search/model/browseResponse").BrowseResponse<T>>, "validate">> & Required<Pick<import("@algolia/client-common").CreateIterablePromise<import("@algolia/client-search/model/browseResponse").BrowseResponse<T>>, "aggregator">> & import("@algolia/client-search/model/clientMethodProps").BrowseProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/browseResponse").BrowseResponse<T>>;
24
24
  browseRules({ indexName, searchRulesParams, ...browseRulesOptions }: Partial<Pick<import("@algolia/client-common").CreateIterablePromise<import("@algolia/client-search/model/searchRulesResponse").SearchRulesResponse>, "validate">> & Required<Pick<import("@algolia/client-common").CreateIterablePromise<import("@algolia/client-search/model/searchRulesResponse").SearchRulesResponse>, "aggregator">> & import("@algolia/client-search/model/clientMethodProps").SearchRulesProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/searchRulesResponse").SearchRulesResponse>;
25
25
  browseSynonyms({ indexName, validate, aggregator, ...browseSynonymsOptions }: Partial<Pick<import("@algolia/client-common").CreateIterablePromise<import("@algolia/client-search/model/searchSynonymsResponse").SearchSynonymsResponse>, "validate">> & Required<Pick<import("@algolia/client-common").CreateIterablePromise<import("@algolia/client-search/model/searchSynonymsResponse").SearchSynonymsResponse>, "aggregator">> & import("@algolia/client-search/model/clientMethodProps").SearchSynonymsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/searchSynonymsResponse").SearchSynonymsResponse>;
26
26
  addApiKey(apiKey: import("@algolia/client-search/model/apiKey").ApiKey, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/addApiKeyResponse").AddApiKeyResponse>;
@@ -30,7 +30,7 @@ export declare function algoliasearch(appId: string, apiKey: string, options?: C
30
30
  batch({ indexName, batchWriteParams }: import("@algolia/client-search/model/clientMethodProps").BatchProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/batchResponse").BatchResponse>;
31
31
  batchAssignUserIds({ xAlgoliaUserID, batchAssignUserIdsParams }: import("@algolia/client-search/model/clientMethodProps").BatchAssignUserIdsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/createdAtResponse").CreatedAtResponse>;
32
32
  batchDictionaryEntries({ dictionaryName, batchDictionaryEntriesParams, }: import("@algolia/client-search/model/clientMethodProps").BatchDictionaryEntriesProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/updatedAtResponse").UpdatedAtResponse>;
33
- browse<T_1>({ indexName, browseRequest }: import("@algolia/client-search/model/clientMethodProps").BrowseProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/browseResponse").BrowseResponse<T_1>>;
33
+ browse<T_1>({ indexName, browseParams }: import("@algolia/client-search/model/clientMethodProps").BrowseProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/browseResponse").BrowseResponse<T_1>>;
34
34
  clearAllSynonyms({ indexName, forwardToReplicas }: import("@algolia/client-search/model/clientMethodProps").ClearAllSynonymsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/updatedAtResponse").UpdatedAtResponse>;
35
35
  clearObjects({ indexName }: import("@algolia/client-search/model/clientMethodProps").ClearObjectsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/updatedAtResponse").UpdatedAtResponse>;
36
36
  clearRules({ indexName, forwardToReplicas }: import("@algolia/client-search/model/clientMethodProps").ClearRulesProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/updatedAtResponse").UpdatedAtResponse>;
@@ -63,7 +63,7 @@ export declare function algoliasearch(appId: string, apiKey: string, options?: C
63
63
  listUserIds({ page, hitsPerPage }: import("@algolia/client-search/model/clientMethodProps").ListUserIdsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/listUserIdsResponse").ListUserIdsResponse>;
64
64
  multipleBatch(batchParams: import("@algolia/client-search/model/batchParams").BatchParams, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/multipleBatchResponse").MultipleBatchResponse>;
65
65
  operationIndex({ indexName, operationIndexParams }: import("@algolia/client-search/model/clientMethodProps").OperationIndexProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/updatedAtResponse").UpdatedAtResponse>;
66
- partialUpdateObject({ indexName, objectID, attributeToUpdate, createIfNotExists, }: import("@algolia/client-search/model/clientMethodProps").PartialUpdateObjectProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/updatedAtWithObjectIdResponse").UpdatedAtWithObjectIdResponse>;
66
+ partialUpdateObject({ indexName, objectID, attributesToUpdate, createIfNotExists, }: import("@algolia/client-search/model/clientMethodProps").PartialUpdateObjectProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/updatedAtWithObjectIdResponse").UpdatedAtWithObjectIdResponse>;
67
67
  post({ path, parameters, body }: import("@algolia/client-search/model/clientMethodProps").PostProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<Record<string, any>>;
68
68
  put({ path, parameters, body }: import("@algolia/client-search/model/clientMethodProps").PutProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<Record<string, any>>;
69
69
  removeUserId({ userID }: import("@algolia/client-search/model/clientMethodProps").RemoveUserIdProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/removeUserIdResponse").RemoveUserIdResponse>;
@@ -71,7 +71,7 @@ export declare function algoliasearch(appId: string, apiKey: string, options?: C
71
71
  restoreApiKey({ key }: import("@algolia/client-search/model/clientMethodProps").RestoreApiKeyProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/addApiKeyResponse").AddApiKeyResponse>;
72
72
  saveObject({ indexName, body }: import("@algolia/client-search/model/clientMethodProps").SaveObjectProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/saveObjectResponse").SaveObjectResponse>;
73
73
  saveRule({ indexName, objectID, rule, forwardToReplicas }: import("@algolia/client-search/model/clientMethodProps").SaveRuleProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/updatedRuleResponse").UpdatedRuleResponse>;
74
- saveRules({ indexName, rule, forwardToReplicas, clearExistingRules, }: import("@algolia/client-search/model/clientMethodProps").SaveRulesProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/updatedAtResponse").UpdatedAtResponse>;
74
+ saveRules({ indexName, rules, forwardToReplicas, clearExistingRules, }: import("@algolia/client-search/model/clientMethodProps").SaveRulesProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/updatedAtResponse").UpdatedAtResponse>;
75
75
  saveSynonym({ indexName, objectID, synonymHit, forwardToReplicas }: import("@algolia/client-search/model/clientMethodProps").SaveSynonymProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/saveSynonymResponse").SaveSynonymResponse>;
76
76
  saveSynonyms({ indexName, synonymHit, forwardToReplicas, replaceExistingSynonyms, }: import("@algolia/client-search/model/clientMethodProps").SaveSynonymsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/updatedAtResponse").UpdatedAtResponse>;
77
77
  search<T_3>(searchMethodParams: import("@algolia/client-search/model/clientMethodProps").LegacySearchMethodProps | import("@algolia/client-search/model/searchMethodParams").SearchMethodParams, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("@algolia/client-search/model/searchResponses").SearchResponses<T_3>>;
@@ -28,7 +28,7 @@ export declare type BaseSearchResponse = {
28
28
  /**
29
29
  * Indicate if the typo-tolerance search was exhaustive or approximate (only included when typo-tolerance is enabled).
30
30
  */
31
- exhaustiveTypo: boolean;
31
+ exhaustiveTypo?: boolean;
32
32
  /**
33
33
  * A mapping of each facet name to the corresponding facet counts.
34
34
  */
@@ -1 +1 @@
1
- {"version":3,"file":"baseSearchResponse.d.ts","sourceRoot":"","sources":["../../../../../../packages/algoliasearch/lite/model/baseSearchResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,oBAAY,kBAAkB,GAAG;IAC/B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB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,CAAC;CACrC,CAAC"}
1
+ {"version":3,"file":"baseSearchResponse.d.ts","sourceRoot":"","sources":["../../../../../../packages/algoliasearch/lite/model/baseSearchResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,oBAAY,kBAAkB,GAAG;IAC/B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,gBAAgB,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAEhD;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAE3C;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAE/B,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { BrowseParamsObject } from './browseParamsObject';
2
+ import type { SearchParamsString } from './searchParamsString';
3
+ export declare type BrowseParams = BrowseParamsObject | SearchParamsString;
4
+ //# sourceMappingURL=browseParams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browseParams.d.ts","sourceRoot":"","sources":["../../../../../../packages/algoliasearch/lite/model/browseParams.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,oBAAY,YAAY,GAAG,kBAAkB,GAAG,kBAAkB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Cursor } from './cursor';
2
+ import type { SearchParamsObject } from './searchParamsObject';
3
+ export declare type BrowseParamsObject = Cursor & SearchParamsObject;
4
+ //# sourceMappingURL=browseParamsObject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browseParamsObject.d.ts","sourceRoot":"","sources":["../../../../../../packages/algoliasearch/lite/model/browseParamsObject.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,oBAAY,kBAAkB,GAAG,MAAM,GAAG,kBAAkB,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { BaseBrowseResponse } from './baseBrowseResponse';
2
1
  import type { BaseSearchResponse } from './baseSearchResponse';
2
+ import type { Cursor } from './cursor';
3
3
  import type { SearchHits } from './searchHits';
4
- export declare type BrowseResponse<T = Record<string, any>> = BaseBrowseResponse & BaseSearchResponse & SearchHits<T>;
4
+ export declare type BrowseResponse<T = Record<string, any>> = BaseSearchResponse & Cursor & SearchHits<T>;
5
5
  //# sourceMappingURL=browseResponse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"browseResponse.d.ts","sourceRoot":"","sources":["../../../../../../packages/algoliasearch/lite/model/browseResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,oBAAY,cAAc,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,kBAAkB,GACtE,kBAAkB,GAClB,UAAU,CAAC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"browseResponse.d.ts","sourceRoot":"","sources":["../../../../../../packages/algoliasearch/lite/model/browseResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,oBAAY,cAAc,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,kBAAkB,GACtE,MAAM,GACN,UAAU,CAAC,CAAC,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
- export declare type BaseBrowseResponse = {
1
+ export declare type Cursor = {
2
2
  /**
3
3
  * Cursor indicating the location to resume browsing from. Must match the value returned by the previous call.
4
4
  */
5
- cursor: string;
5
+ cursor?: string;
6
6
  };
7
- //# sourceMappingURL=baseBrowseResponse.d.ts.map
7
+ //# sourceMappingURL=cursor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cursor.d.ts","sourceRoot":"","sources":["../../../../../../packages/algoliasearch/lite/model/cursor.ts"],"names":[],"mappings":"AAEA,oBAAY,MAAM,GAAG;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -10,12 +10,13 @@ export * from './aroundRadiusAll';
10
10
  export * from './attributeToUpdate';
11
11
  export * from './automaticFacetFilter';
12
12
  export * from './automaticFacetFilters';
13
- export * from './baseBrowseResponse';
14
13
  export * from './baseGetApiKeyResponse';
15
14
  export * from './baseIndexSettings';
16
15
  export * from './baseSearchParams';
17
16
  export * from './baseSearchParamsWithoutQuery';
18
17
  export * from './baseSearchResponse';
18
+ export * from './browseParams';
19
+ export * from './browseParamsObject';
19
20
  export * from './browseResponse';
20
21
  export * from './builtInOperation';
21
22
  export * from './builtInOperationType';
@@ -25,6 +26,7 @@ export * from './consequenceHide';
25
26
  export * from './consequenceParams';
26
27
  export * from './consequenceQuery';
27
28
  export * from './consequenceQueryObject';
29
+ export * from './cursor';
28
30
  export * from './dictionaryAction';
29
31
  export * from './dictionaryEntry';
30
32
  export * from './dictionaryEntryState';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/algoliasearch/lite/model/index.ts"],"names":[],"mappings":"AAEA,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,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AqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/algoliasearch/lite/model/index.ts"],"names":[],"mappings":"AAEA,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc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iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC"}
@@ -128,6 +128,10 @@ export declare type IndexSettingsAsSearchParams = {
128
128
  */
129
129
  advancedSyntaxFeatures?: AdvancedSyntaxFeatures[];
130
130
  distinct?: Distinct;
131
+ /**
132
+ * Name of the de-duplication attribute to be used with the distinct feature.
133
+ */
134
+ attributeForDistinct?: string;
131
135
  /**
132
136
  * Whether to take into account an index\'s synonyms for a particular search.
133
137
  */
@@ -1 +1 @@
1
- {"version":3,"file":"indexSettingsAsSearchParams.d.ts","sourceRoot":"","sources":["../../../../../../packages/algoliasearch/lite/model/indexSettingsAsSearchParams.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,sBAAsB,E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AC,EAAE,eAAe,CAAC;IAElC;;OAEG;IACH,0BAA0B,CAAC,EAAE,MAAM,CAAC;IAEpC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAE1B;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;IAEhD;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IAEzB;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,EAAE,CAAC;IAEpC,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;IAEhD;;OAEG;IACH,mBAAmB,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAE5C;;OAEG;IACH,sBAAsB,CAAC,EAAE,sBAAsB,EAAE,CAAC;IAElD,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;IAErC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAE1B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,uCAAuC,CAAC,EAAE,OAAO,CAAC;IAElD,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC,CAAC"}
1
+ {"version":3,"file":"indexSettingsAsSearchParams.d.ts","sourceRoot":"","sources":["../../../../../../packages/algoliasearch/lite/model/indexSettingsAsSearchParams.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,E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;OAEG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;IAErC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAE1B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,uCAAuC,CAAC,EAAE,OAAO,CAAC;IAElD,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC,CAAC"}
@@ -2,7 +2,7 @@ import type { CreateClientOptions, RequestOptions } from '@algolia/client-common
2
2
  import type { PostProps, LegacySearchMethodProps } from '../model/clientMethodProps';
3
3
  import type { SearchMethodParams } from '../model/searchMethodParams';
4
4
  import type { SearchResponses } from '../model/searchResponses';
5
- export declare const apiClientVersion = "5.0.0-alpha.4";
5
+ export declare const apiClientVersion = "5.0.0-alpha.7";
6
6
  export declare function createLiteClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
7
7
  transporter: import("@algolia/client-common").Transporter;
8
8
  /**
@@ -6,7 +6,7 @@ var clientCommon = require('@algolia/client-common');
6
6
  var requesterNodeHttp = require('@algolia/requester-node-http');
7
7
 
8
8
  // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
9
- const apiClientVersion$4 = '5.0.0-alpha.4';
9
+ const apiClientVersion$4 = '5.0.0-alpha.7';
10
10
  const REGIONS$2 = ['de', 'us'];
11
11
  function getDefaultHosts$3(region) {
12
12
  const url = !region
@@ -297,7 +297,7 @@ function createAbtestingClient({ appId: appIdOption, apiKey: apiKeyOption, authM
297
297
  }
298
298
 
299
299
  // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
300
- const apiClientVersion$3 = '5.0.0-alpha.4';
300
+ const apiClientVersion$3 = '5.0.0-alpha.7';
301
301
  const REGIONS$1 = ['de', 'us'];
302
302
  function getDefaultHosts$2(region) {
303
303
  const url = !region
@@ -1194,7 +1194,7 @@ function createAnalyticsClient({ appId: appIdOption, apiKey: apiKeyOption, authM
1194
1194
  }
1195
1195
 
1196
1196
  // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1197
- const apiClientVersion$2 = '5.0.0-alpha.4';
1197
+ const apiClientVersion$2 = '5.0.0-alpha.7';
1198
1198
  const REGIONS = ['eu', 'us'];
1199
1199
  function getDefaultHosts$1(region) {
1200
1200
  const url = 'personalization.{region}.algolia.com'.replace('{region}', region);
@@ -1451,7 +1451,7 @@ function createPersonalizationClient({ appId: appIdOption, apiKey: apiKeyOption,
1451
1451
  }
1452
1452
 
1453
1453
  // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1454
- const apiClientVersion$1 = '5.0.0-alpha.4';
1454
+ const apiClientVersion$1 = '5.0.0-alpha.7';
1455
1455
  function getDefaultHosts(appId) {
1456
1456
  return [
1457
1457
  {
@@ -1614,19 +1614,19 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
1614
1614
  * @summary Helper method that iterates on the `browse` method.
1615
1615
  * @param browseObjects - The browseObjects object.
1616
1616
  * @param browseObjects.indexName - The index in which to perform the request.
1617
- * @param browseObjects.browseRequest - The `browse` method parameters.
1618
- * @param browseObjects.validate - The validator function. It receive the resolved return of the API call.
1617
+ * @param browseObjects.browseParams - The `browse` parameters.
1618
+ * @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.
1619
1619
  * @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`.
1620
1620
  * @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `browse` method and merged with the transporter requestOptions.
1621
1621
  */
1622
- browseObjects({ indexName, browseRequest, ...browseObjectsOptions }, requestOptions) {
1622
+ browseObjects({ indexName, browseParams, ...browseObjectsOptions }, requestOptions) {
1623
1623
  return clientCommon.createIterablePromise({
1624
1624
  func: (previousResponse) => {
1625
1625
  return this.browse({
1626
1626
  indexName,
1627
- browseRequest: {
1627
+ browseParams: {
1628
1628
  cursor: previousResponse ? previousResponse.cursor : undefined,
1629
- ...browseRequest,
1629
+ ...browseParams,
1630
1630
  },
1631
1631
  }, requestOptions);
1632
1632
  },
@@ -1641,7 +1641,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
1641
1641
  * @param browseObjects - The browseObjects object.
1642
1642
  * @param browseObjects.indexName - The index in which to perform the request.
1643
1643
  * @param browseObjects.searchRulesParams - The `searchRules` method parameters.
1644
- * @param browseObjects.validate - The validator function. It receive the resolved return of the API call.
1644
+ * @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).
1645
1645
  * @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`.
1646
1646
  * @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `searchRules` method and merged with the transporter requestOptions.
1647
1647
  */
@@ -1672,7 +1672,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
1672
1672
  * @summary Helper method that iterates on the `searchSynonyms` method.
1673
1673
  * @param browseObjects - The browseObjects object.
1674
1674
  * @param browseObjects.indexName - The index in which to perform the request.
1675
- * @param browseObjects.validate - The validator function. It receive the resolved return of the API call.
1675
+ * @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).
1676
1676
  * @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`.
1677
1677
  * @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `searchSynonyms` method and merged with the transporter requestOptions.
1678
1678
  */
@@ -1914,10 +1914,10 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
1914
1914
  * @summary Retrieve all index content.
1915
1915
  * @param browse - The browse object.
1916
1916
  * @param browse.indexName - The index in which to perform the request.
1917
- * @param browse.browseRequest - The browseRequest object.
1917
+ * @param browse.browseParams - The browseParams object.
1918
1918
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1919
1919
  */
1920
- browse({ indexName, browseRequest }, requestOptions) {
1920
+ browse({ indexName, browseParams }, requestOptions) {
1921
1921
  if (!indexName) {
1922
1922
  throw new Error('Parameter `indexName` is required when calling `browse`.');
1923
1923
  }
@@ -1929,7 +1929,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
1929
1929
  path: requestPath,
1930
1930
  queryParameters,
1931
1931
  headers,
1932
- data: browseRequest ? browseRequest : {},
1932
+ data: browseParams ? browseParams : {},
1933
1933
  };
1934
1934
  return transporter.request(request, requestOptions);
1935
1935
  },
@@ -2750,19 +2750,19 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
2750
2750
  * @param partialUpdateObject - The partialUpdateObject object.
2751
2751
  * @param partialUpdateObject.indexName - The index in which to perform the request.
2752
2752
  * @param partialUpdateObject.objectID - Unique identifier of an object.
2753
- * @param partialUpdateObject.attributeToUpdate - List of attributes to update.
2753
+ * @param partialUpdateObject.attributesToUpdate - Map of attribute(s) to update.
2754
2754
  * @param partialUpdateObject.createIfNotExists - Creates the record if it does not exist yet.
2755
2755
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
2756
2756
  */
2757
- partialUpdateObject({ indexName, objectID, attributeToUpdate, createIfNotExists, }, requestOptions) {
2757
+ partialUpdateObject({ indexName, objectID, attributesToUpdate, createIfNotExists, }, requestOptions) {
2758
2758
  if (!indexName) {
2759
2759
  throw new Error('Parameter `indexName` is required when calling `partialUpdateObject`.');
2760
2760
  }
2761
2761
  if (!objectID) {
2762
2762
  throw new Error('Parameter `objectID` is required when calling `partialUpdateObject`.');
2763
2763
  }
2764
- if (!attributeToUpdate) {
2765
- throw new Error('Parameter `attributeToUpdate` is required when calling `partialUpdateObject`.');
2764
+ if (!attributesToUpdate) {
2765
+ throw new Error('Parameter `attributesToUpdate` is required when calling `partialUpdateObject`.');
2766
2766
  }
2767
2767
  const requestPath = '/1/indexes/{indexName}/{objectID}/partial'
2768
2768
  .replace('{indexName}', encodeURIComponent(indexName))
@@ -2777,7 +2777,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
2777
2777
  path: requestPath,
2778
2778
  queryParameters,
2779
2779
  headers,
2780
- data: attributeToUpdate,
2780
+ data: attributesToUpdate,
2781
2781
  };
2782
2782
  return transporter.request(request, requestOptions);
2783
2783
  },
@@ -2978,17 +2978,17 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
2978
2978
  * @summary Save a batch of rules.
2979
2979
  * @param saveRules - The saveRules object.
2980
2980
  * @param saveRules.indexName - The index in which to perform the request.
2981
- * @param saveRules.rule - The rule object.
2981
+ * @param saveRules.rules - The rules object.
2982
2982
  * @param saveRules.forwardToReplicas - When true, changes are also propagated to replicas of the given indexName.
2983
2983
  * @param saveRules.clearExistingRules - When true, existing Rules are cleared before adding this batch. When false, existing Rules are kept.
2984
2984
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
2985
2985
  */
2986
- saveRules({ indexName, rule, forwardToReplicas, clearExistingRules, }, requestOptions) {
2986
+ saveRules({ indexName, rules, forwardToReplicas, clearExistingRules, }, requestOptions) {
2987
2987
  if (!indexName) {
2988
2988
  throw new Error('Parameter `indexName` is required when calling `saveRules`.');
2989
2989
  }
2990
- if (!rule) {
2991
- throw new Error('Parameter `rule` is required when calling `saveRules`.');
2990
+ if (!rules) {
2991
+ throw new Error('Parameter `rules` is required when calling `saveRules`.');
2992
2992
  }
2993
2993
  const requestPath = '/1/indexes/{indexName}/rules/batch'.replace('{indexName}', encodeURIComponent(indexName));
2994
2994
  const headers = {};
@@ -3004,7 +3004,7 @@ function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode
3004
3004
  path: requestPath,
3005
3005
  queryParameters,
3006
3006
  headers,
3007
- data: rule,
3007
+ data: rules,
3008
3008
  };
3009
3009
  return transporter.request(request, requestOptions);
3010
3010
  },