@algolia/ingestion 1.41.0 → 1.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.
@@ -1,6 +1,6 @@
1
1
  // src/ingestionClient.ts
2
2
  import { createAuth, createIterablePromise, createTransporter, getAlgoliaAgent } from "@algolia/client-common";
3
- var apiClientVersion = "1.41.0";
3
+ var apiClientVersion = "1.42.0";
4
4
  var REGIONS = ["eu", "us"];
5
5
  function getDefaultHosts(region) {
6
6
  const url = "data.{region}.algolia.com".replace("{region}", region);
@@ -256,6 +256,11 @@ function createIngestionClient({
256
256
  },
257
257
  /**
258
258
  * Creates a new task.
259
+ *
260
+ * Required API Key ACLs:
261
+ * - addObject
262
+ * - deleteIndex
263
+ * - editSettings
259
264
  * @param taskCreate - Request body for creating a task.
260
265
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
261
266
  */
@@ -287,6 +292,11 @@ function createIngestionClient({
287
292
  /**
288
293
  * Creates a new task using the v1 endpoint, please use `createTask` instead.
289
294
  *
295
+ * Required API Key ACLs:
296
+ * - addObject
297
+ * - deleteIndex
298
+ * - editSettings
299
+ *
290
300
  * @deprecated
291
301
  * @param taskCreate - Request body for creating a task.
292
302
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -321,6 +331,11 @@ function createIngestionClient({
321
331
  },
322
332
  /**
323
333
  * Creates a new transformation.
334
+ *
335
+ * Required API Key ACLs:
336
+ * - addObject
337
+ * - deleteIndex
338
+ * - editSettings
324
339
  * @param transformationCreate - Request body for creating a transformation.
325
340
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
326
341
  */
@@ -521,6 +536,11 @@ function createIngestionClient({
521
536
  },
522
537
  /**
523
538
  * Deletes a task by its ID.
539
+ *
540
+ * Required API Key ACLs:
541
+ * - addObject
542
+ * - deleteIndex
543
+ * - editSettings
524
544
  * @param deleteTask - The deleteTask object.
525
545
  * @param deleteTask.taskID - Unique identifier of a task.
526
546
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -543,6 +563,11 @@ function createIngestionClient({
543
563
  /**
544
564
  * Deletes a task by its ID using the v1 endpoint, please use `deleteTask` instead.
545
565
  *
566
+ * Required API Key ACLs:
567
+ * - addObject
568
+ * - deleteIndex
569
+ * - editSettings
570
+ *
546
571
  * @deprecated
547
572
  * @param deleteTaskV1 - The deleteTaskV1 object.
548
573
  * @param deleteTaskV1.taskID - Unique identifier of a task.
@@ -565,6 +590,11 @@ function createIngestionClient({
565
590
  },
566
591
  /**
567
592
  * Deletes a transformation by its ID.
593
+ *
594
+ * Required API Key ACLs:
595
+ * - addObject
596
+ * - deleteIndex
597
+ * - editSettings
568
598
  * @param deleteTransformation - The deleteTransformation object.
569
599
  * @param deleteTransformation.transformationID - Unique identifier of a transformation.
570
600
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -1460,6 +1490,11 @@ function createIngestionClient({
1460
1490
  },
1461
1491
  /**
1462
1492
  * Fully updates a task by its ID, use partialUpdateTask if you only want to update a subset of fields.
1493
+ *
1494
+ * Required API Key ACLs:
1495
+ * - addObject
1496
+ * - deleteIndex
1497
+ * - editSettings
1463
1498
  * @param replaceTask - The replaceTask object.
1464
1499
  * @param replaceTask.taskID - Unique identifier of a task.
1465
1500
  * @param replaceTask.taskReplace - The taskReplace object.
@@ -1959,6 +1994,11 @@ function createIngestionClient({
1959
1994
  },
1960
1995
  /**
1961
1996
  * Partially updates a task by its ID.
1997
+ *
1998
+ * Required API Key ACLs:
1999
+ * - addObject
2000
+ * - deleteIndex
2001
+ * - editSettings
1962
2002
  * @param updateTask - The updateTask object.
1963
2003
  * @param updateTask.taskID - Unique identifier of a task.
1964
2004
  * @param updateTask.taskUpdate - The taskUpdate object.
@@ -1986,6 +2026,11 @@ function createIngestionClient({
1986
2026
  /**
1987
2027
  * Updates a task by its ID using the v1 endpoint, please use `updateTask` instead.
1988
2028
  *
2029
+ * Required API Key ACLs:
2030
+ * - addObject
2031
+ * - deleteIndex
2032
+ * - editSettings
2033
+ *
1989
2034
  * @deprecated
1990
2035
  * @param updateTaskV1 - The updateTaskV1 object.
1991
2036
  * @param updateTaskV1.taskID - Unique identifier of a task.
@@ -2013,6 +2058,11 @@ function createIngestionClient({
2013
2058
  },
2014
2059
  /**
2015
2060
  * Updates a transformation by its ID.
2061
+ *
2062
+ * Required API Key ACLs:
2063
+ * - addObject
2064
+ * - deleteIndex
2065
+ * - editSettings
2016
2066
  * @param updateTransformation - The updateTransformation object.
2017
2067
  * @param updateTransformation.transformationID - Unique identifier of a transformation.
2018
2068
  * @param updateTransformation.transformationCreate - The transformationCreate object.