@algolia/ingestion 1.37.0 → 1.39.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.
@@ -4,7 +4,7 @@ import { createMemoryCache, createNullCache, createNullLogger } from "@algolia/c
4
4
 
5
5
  // src/ingestionClient.ts
6
6
  import { createAuth, createIterablePromise, createTransporter, getAlgoliaAgent } from "@algolia/client-common";
7
- var apiClientVersion = "1.37.0";
7
+ var apiClientVersion = "1.39.0";
8
8
  var REGIONS = ["eu", "us"];
9
9
  function getDefaultHosts(region) {
10
10
  const url = "data.{region}.algolia.com".replace("{region}", region);
@@ -1330,9 +1330,10 @@ function createIngestionClient({
1330
1330
  * @param listTransformations.page - Page number of the paginated API response.
1331
1331
  * @param listTransformations.sort - Property by which to sort the list of transformations.
1332
1332
  * @param listTransformations.order - Sort order of the response, ascending or descending.
1333
+ * @param listTransformations.type - Whether to filter the list of transformations by the type of transformation.
1333
1334
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1334
1335
  */
1335
- listTransformations({ itemsPerPage, page, sort, order } = {}, requestOptions = void 0) {
1336
+ listTransformations({ itemsPerPage, page, sort, order, type } = {}, requestOptions = void 0) {
1336
1337
  const requestPath = "/1/transformations";
1337
1338
  const headers = {};
1338
1339
  const queryParameters = {};
@@ -1348,6 +1349,9 @@ function createIngestionClient({
1348
1349
  if (order !== void 0) {
1349
1350
  queryParameters["order"] = order.toString();
1350
1351
  }
1352
+ if (type !== void 0) {
1353
+ queryParameters["type"] = type.toString();
1354
+ }
1351
1355
  const request = {
1352
1356
  method: "GET",
1353
1357
  path: requestPath,
@@ -1410,7 +1414,7 @@ function createIngestionClient({
1410
1414
  return transporter.request(request, requestOptions);
1411
1415
  },
1412
1416
  /**
1413
- * Pushes records through the Pipeline, directly to an index. You can make the call synchronous by providing the `watch` parameter, for asynchronous calls, you can use the observability endpoints and/or debugger dashboard to see the status of your task. If you want to leverage the [pre-indexing data transformation](https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/how-to/transform-your-data/), this is the recommended way of ingesting your records. This method is similar to `push`, but requires a `taskID` instead of a `indexName`, which is useful when many `destinations` target the same `indexName`.
1417
+ * Pushes records through the pipeline, directly to an index. You can make the call synchronous by providing the `watch` parameter, for asynchronous calls, you can use the observability endpoints or the debugger dashboard to see the status of your task. If you want to transform your data before indexing, this is the recommended way of ingesting your records. This method is similar to `push`, but requires a `taskID` instead of a `indexName`, which is useful when many `destinations` target the same `indexName`.
1414
1418
  *
1415
1419
  * Required API Key ACLs:
1416
1420
  * - addObject