@algolia/client-search 5.24.0 → 5.26.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.
@@ -1,5 +1,5 @@
1
1
  // builds/node.ts
2
- import { createHmac } from "node:crypto";
2
+ import { createHmac } from "crypto";
3
3
  import { createHttpRequester } from "@algolia/requester-node-http";
4
4
  import {
5
5
  IndexAlreadyExistsError,
@@ -20,7 +20,7 @@ import {
20
20
  getAlgoliaAgent,
21
21
  shuffle
22
22
  } from "@algolia/client-common";
23
- var apiClientVersion = "5.24.0";
23
+ var apiClientVersion = "5.26.0";
24
24
  function getDefaultHosts(appId) {
25
25
  return [
26
26
  {
@@ -381,7 +381,7 @@ function createSearchClient({
381
381
  * @param saveObjects - The `saveObjects` object.
382
382
  * @param saveObjects.indexName - The `indexName` to save `objects` in.
383
383
  * @param saveObjects.objects - The array of `objects` to store in the given Algolia `indexName`.
384
- * @param chunkedBatch.batchSize - The size of the chunk of `objects`. The number of `batch` calls will be equal to `length(objects) / batchSize`. Defaults to 1000.
384
+ * @param saveObjects.batchSize - The size of the chunk of `objects`. The number of `batch` calls will be equal to `length(objects) / batchSize`. Defaults to 1000.
385
385
  * @param saveObjects.waitForTasks - Whether or not we should wait until every `batch` tasks has been processed, this operation may slow the total execution time of this method but is more reliable.
386
386
  * @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `batch` method and merged with the transporter requestOptions.
387
387
  */
@@ -398,7 +398,7 @@ function createSearchClient({
398
398
  * @param deleteObjects - The `deleteObjects` object.
399
399
  * @param deleteObjects.indexName - The `indexName` to delete `objectIDs` from.
400
400
  * @param deleteObjects.objectIDs - The objectIDs to delete.
401
- * @param chunkedBatch.batchSize - The size of the chunk of `objects`. The number of `batch` calls will be equal to `length(objects) / batchSize`. Defaults to 1000.
401
+ * @param deleteObjects.batchSize - The size of the chunk of `objects`. The number of `batch` calls will be equal to `length(objects) / batchSize`. Defaults to 1000.
402
402
  * @param deleteObjects.waitForTasks - Whether or not we should wait until every `batch` tasks has been processed, this operation may slow the total execution time of this method but is more reliable.
403
403
  * @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `batch` method and merged with the transporter requestOptions.
404
404
  */
@@ -422,7 +422,7 @@ function createSearchClient({
422
422
  * @param partialUpdateObjects.indexName - The `indexName` to update `objects` in.
423
423
  * @param partialUpdateObjects.objects - The array of `objects` to update in the given Algolia `indexName`.
424
424
  * @param partialUpdateObjects.createIfNotExists - To be provided if non-existing objects are passed, otherwise, the call will fail..
425
- * @param chunkedBatch.batchSize - The size of the chunk of `objects`. The number of `batch` calls will be equal to `length(objects) / batchSize`. Defaults to 1000.
425
+ * @param partialUpdateObjects.batchSize - The size of the chunk of `objects`. The number of `batch` calls will be equal to `length(objects) / batchSize`. Defaults to 1000.
426
426
  * @param partialUpdateObjects.waitForTasks - Whether or not we should wait until every `batch` tasks has been processed, this operation may slow the total execution time of this method but is more reliable.
427
427
  * @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `getTask` method and merged with the transporter requestOptions.
428
428
  */
@@ -1048,7 +1048,7 @@ function createSearchClient({
1048
1048
  return transporter.request(request, requestOptions);
1049
1049
  },
1050
1050
  /**
1051
- * Deletes a record by its object ID. To delete more than one record, use the [`batch` operation](#tag/Records/operation/batch). To delete records matching a query, use the [`deleteByQuery` operation](#tag/Records/operation/deleteBy).
1051
+ * Deletes a record by its object ID. To delete more than one record, use the [`batch` operation](#tag/Records/operation/batch). To delete records matching a query, use the [`deleteBy` operation](#tag/Records/operation/deleteBy).
1052
1052
  *
1053
1053
  * Required API Key ACLs:
1054
1054
  * - deleteObject
@@ -1375,7 +1375,7 @@ function createSearchClient({
1375
1375
  * Retrieves an object with non-null index settings.
1376
1376
  *
1377
1377
  * Required API Key ACLs:
1378
- * - search
1378
+ * - settings
1379
1379
  * @param getSettings - The getSettings object.
1380
1380
  * @param getSettings.indexName - Name of the index on which to perform the operation.
1381
1381
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.