@algolia/client-search 5.40.1 → 5.42.0
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/README.md +4 -4
- package/dist/browser.d.ts +10 -1
- package/dist/builds/browser.js +10 -1
- package/dist/builds/browser.js.map +1 -1
- package/dist/builds/browser.min.js +1 -1
- package/dist/builds/browser.min.js.map +1 -1
- package/dist/builds/browser.umd.js +1 -1
- package/dist/builds/fetch.js +10 -1
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +10 -1
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +10 -1
- package/dist/builds/node.js.map +1 -1
- package/dist/builds/worker.js +10 -1
- package/dist/builds/worker.js.map +1 -1
- package/dist/fetch.d.ts +10 -1
- package/dist/node.d.cts +10 -1
- package/dist/node.d.ts +10 -1
- package/dist/src/searchClient.cjs +10 -1
- package/dist/src/searchClient.cjs.map +1 -1
- package/dist/src/searchClient.js +10 -1
- package/dist/src/searchClient.js.map +1 -1
- package/dist/worker.d.ts +10 -1
- package/package.json +8 -8
package/dist/fetch.d.ts
CHANGED
|
@@ -3052,7 +3052,7 @@ type AccountCopyIndexOptions = {
|
|
|
3052
3052
|
batchSize?: number | undefined;
|
|
3053
3053
|
};
|
|
3054
3054
|
|
|
3055
|
-
declare const apiClientVersion = "5.
|
|
3055
|
+
declare const apiClientVersion = "5.42.0";
|
|
3056
3056
|
declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
|
|
3057
3057
|
transporter: _algolia_client_common.Transporter;
|
|
3058
3058
|
/**
|
|
@@ -3290,6 +3290,9 @@ declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption,
|
|
|
3290
3290
|
assignUserId({ xAlgoliaUserID, assignUserIdParams }: AssignUserIdProps, requestOptions?: RequestOptions): Promise<CreatedAtResponse>;
|
|
3291
3291
|
/**
|
|
3292
3292
|
* Adds, updates, or deletes records in one index with a single API request. Batching index updates reduces latency and increases data integrity. - Actions are applied in the order they\'re specified. - Actions are equivalent to the individual API requests of the same name. This operation is subject to [indexing rate limits](https://support.algolia.com/hc/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
|
|
3293
|
+
*
|
|
3294
|
+
* Required API Key ACLs:
|
|
3295
|
+
* - addObject
|
|
3293
3296
|
* @param batch - The batch object.
|
|
3294
3297
|
* @param batch.indexName - Name of the index on which to perform the operation.
|
|
3295
3298
|
* @param batch.batchWriteParams - The batchWriteParams object.
|
|
@@ -3475,6 +3478,9 @@ declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption,
|
|
|
3475
3478
|
deleteSynonym({ indexName, objectID, forwardToReplicas }: DeleteSynonymProps, requestOptions?: RequestOptions): Promise<DeletedAtResponse>;
|
|
3476
3479
|
/**
|
|
3477
3480
|
* Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application\'s keys. When authenticating with other API keys, you can only retrieve information for that key, with the description replaced by `<redacted>`.
|
|
3481
|
+
*
|
|
3482
|
+
* Required API Key ACLs:
|
|
3483
|
+
* - search
|
|
3478
3484
|
* @param getApiKey - The getApiKey object.
|
|
3479
3485
|
* @param getApiKey.key - API key.
|
|
3480
3486
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -3672,6 +3678,9 @@ declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption,
|
|
|
3672
3678
|
listUserIds({ page, hitsPerPage }?: ListUserIdsProps, requestOptions?: RequestOptions | undefined): Promise<ListUserIdsResponse>;
|
|
3673
3679
|
/**
|
|
3674
3680
|
* Adds, updates, or deletes records in multiple indices with a single API request. - Actions are applied in the order they are specified. - Actions are equivalent to the individual API requests of the same name. This operation is subject to [indexing rate limits](https://support.algolia.com/hc/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
|
|
3681
|
+
*
|
|
3682
|
+
* Required API Key ACLs:
|
|
3683
|
+
* - addObject
|
|
3675
3684
|
* @param batchParams - The batchParams object.
|
|
3676
3685
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
3677
3686
|
*/
|
package/dist/node.d.cts
CHANGED
|
@@ -3052,7 +3052,7 @@ type AccountCopyIndexOptions = {
|
|
|
3052
3052
|
batchSize?: number | undefined;
|
|
3053
3053
|
};
|
|
3054
3054
|
|
|
3055
|
-
declare const apiClientVersion = "5.
|
|
3055
|
+
declare const apiClientVersion = "5.42.0";
|
|
3056
3056
|
declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
|
|
3057
3057
|
transporter: _algolia_client_common.Transporter;
|
|
3058
3058
|
/**
|
|
@@ -3290,6 +3290,9 @@ declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption,
|
|
|
3290
3290
|
assignUserId({ xAlgoliaUserID, assignUserIdParams }: AssignUserIdProps, requestOptions?: RequestOptions): Promise<CreatedAtResponse>;
|
|
3291
3291
|
/**
|
|
3292
3292
|
* Adds, updates, or deletes records in one index with a single API request. Batching index updates reduces latency and increases data integrity. - Actions are applied in the order they\'re specified. - Actions are equivalent to the individual API requests of the same name. This operation is subject to [indexing rate limits](https://support.algolia.com/hc/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
|
|
3293
|
+
*
|
|
3294
|
+
* Required API Key ACLs:
|
|
3295
|
+
* - addObject
|
|
3293
3296
|
* @param batch - The batch object.
|
|
3294
3297
|
* @param batch.indexName - Name of the index on which to perform the operation.
|
|
3295
3298
|
* @param batch.batchWriteParams - The batchWriteParams object.
|
|
@@ -3475,6 +3478,9 @@ declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption,
|
|
|
3475
3478
|
deleteSynonym({ indexName, objectID, forwardToReplicas }: DeleteSynonymProps, requestOptions?: RequestOptions): Promise<DeletedAtResponse>;
|
|
3476
3479
|
/**
|
|
3477
3480
|
* Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application\'s keys. When authenticating with other API keys, you can only retrieve information for that key, with the description replaced by `<redacted>`.
|
|
3481
|
+
*
|
|
3482
|
+
* Required API Key ACLs:
|
|
3483
|
+
* - search
|
|
3478
3484
|
* @param getApiKey - The getApiKey object.
|
|
3479
3485
|
* @param getApiKey.key - API key.
|
|
3480
3486
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -3672,6 +3678,9 @@ declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption,
|
|
|
3672
3678
|
listUserIds({ page, hitsPerPage }?: ListUserIdsProps, requestOptions?: RequestOptions | undefined): Promise<ListUserIdsResponse>;
|
|
3673
3679
|
/**
|
|
3674
3680
|
* Adds, updates, or deletes records in multiple indices with a single API request. - Actions are applied in the order they are specified. - Actions are equivalent to the individual API requests of the same name. This operation is subject to [indexing rate limits](https://support.algolia.com/hc/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
|
|
3681
|
+
*
|
|
3682
|
+
* Required API Key ACLs:
|
|
3683
|
+
* - addObject
|
|
3675
3684
|
* @param batchParams - The batchParams object.
|
|
3676
3685
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
3677
3686
|
*/
|
package/dist/node.d.ts
CHANGED
|
@@ -3052,7 +3052,7 @@ type AccountCopyIndexOptions = {
|
|
|
3052
3052
|
batchSize?: number | undefined;
|
|
3053
3053
|
};
|
|
3054
3054
|
|
|
3055
|
-
declare const apiClientVersion = "5.
|
|
3055
|
+
declare const apiClientVersion = "5.42.0";
|
|
3056
3056
|
declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
|
|
3057
3057
|
transporter: _algolia_client_common.Transporter;
|
|
3058
3058
|
/**
|
|
@@ -3290,6 +3290,9 @@ declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption,
|
|
|
3290
3290
|
assignUserId({ xAlgoliaUserID, assignUserIdParams }: AssignUserIdProps, requestOptions?: RequestOptions): Promise<CreatedAtResponse>;
|
|
3291
3291
|
/**
|
|
3292
3292
|
* Adds, updates, or deletes records in one index with a single API request. Batching index updates reduces latency and increases data integrity. - Actions are applied in the order they\'re specified. - Actions are equivalent to the individual API requests of the same name. This operation is subject to [indexing rate limits](https://support.algolia.com/hc/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
|
|
3293
|
+
*
|
|
3294
|
+
* Required API Key ACLs:
|
|
3295
|
+
* - addObject
|
|
3293
3296
|
* @param batch - The batch object.
|
|
3294
3297
|
* @param batch.indexName - Name of the index on which to perform the operation.
|
|
3295
3298
|
* @param batch.batchWriteParams - The batchWriteParams object.
|
|
@@ -3475,6 +3478,9 @@ declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption,
|
|
|
3475
3478
|
deleteSynonym({ indexName, objectID, forwardToReplicas }: DeleteSynonymProps, requestOptions?: RequestOptions): Promise<DeletedAtResponse>;
|
|
3476
3479
|
/**
|
|
3477
3480
|
* Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application\'s keys. When authenticating with other API keys, you can only retrieve information for that key, with the description replaced by `<redacted>`.
|
|
3481
|
+
*
|
|
3482
|
+
* Required API Key ACLs:
|
|
3483
|
+
* - search
|
|
3478
3484
|
* @param getApiKey - The getApiKey object.
|
|
3479
3485
|
* @param getApiKey.key - API key.
|
|
3480
3486
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -3672,6 +3678,9 @@ declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption,
|
|
|
3672
3678
|
listUserIds({ page, hitsPerPage }?: ListUserIdsProps, requestOptions?: RequestOptions | undefined): Promise<ListUserIdsResponse>;
|
|
3673
3679
|
/**
|
|
3674
3680
|
* Adds, updates, or deletes records in multiple indices with a single API request. - Actions are applied in the order they are specified. - Actions are equivalent to the individual API requests of the same name. This operation is subject to [indexing rate limits](https://support.algolia.com/hc/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
|
|
3681
|
+
*
|
|
3682
|
+
* Required API Key ACLs:
|
|
3683
|
+
* - addObject
|
|
3675
3684
|
* @param batchParams - The batchParams object.
|
|
3676
3685
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
3677
3686
|
*/
|
|
@@ -25,7 +25,7 @@ __export(searchClient_exports, {
|
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(searchClient_exports);
|
|
27
27
|
var import_client_common = require("@algolia/client-common");
|
|
28
|
-
var apiClientVersion = "5.
|
|
28
|
+
var apiClientVersion = "5.42.0";
|
|
29
29
|
function getDefaultHosts(appId) {
|
|
30
30
|
return [
|
|
31
31
|
{
|
|
@@ -672,6 +672,9 @@ function createSearchClient({
|
|
|
672
672
|
},
|
|
673
673
|
/**
|
|
674
674
|
* Adds, updates, or deletes records in one index with a single API request. Batching index updates reduces latency and increases data integrity. - Actions are applied in the order they\'re specified. - Actions are equivalent to the individual API requests of the same name. This operation is subject to [indexing rate limits](https://support.algolia.com/hc/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
|
|
675
|
+
*
|
|
676
|
+
* Required API Key ACLs:
|
|
677
|
+
* - addObject
|
|
675
678
|
* @param batch - The batch object.
|
|
676
679
|
* @param batch.indexName - Name of the index on which to perform the operation.
|
|
677
680
|
* @param batch.batchWriteParams - The batchWriteParams object.
|
|
@@ -1170,6 +1173,9 @@ function createSearchClient({
|
|
|
1170
1173
|
},
|
|
1171
1174
|
/**
|
|
1172
1175
|
* Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application\'s keys. When authenticating with other API keys, you can only retrieve information for that key, with the description replaced by `<redacted>`.
|
|
1176
|
+
*
|
|
1177
|
+
* Required API Key ACLs:
|
|
1178
|
+
* - search
|
|
1173
1179
|
* @param getApiKey - The getApiKey object.
|
|
1174
1180
|
* @param getApiKey.key - API key.
|
|
1175
1181
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -1652,6 +1658,9 @@ function createSearchClient({
|
|
|
1652
1658
|
},
|
|
1653
1659
|
/**
|
|
1654
1660
|
* Adds, updates, or deletes records in multiple indices with a single API request. - Actions are applied in the order they are specified. - Actions are equivalent to the individual API requests of the same name. This operation is subject to [indexing rate limits](https://support.algolia.com/hc/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
|
|
1661
|
+
*
|
|
1662
|
+
* Required API Key ACLs:
|
|
1663
|
+
* - addObject
|
|
1655
1664
|
* @param batchParams - The batchParams object.
|
|
1656
1665
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1657
1666
|
*/
|