@algolia/ingestion 1.38.0 → 1.40.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 CHANGED
@@ -41,11 +41,11 @@ All of our clients comes with type definition, and are available for both browse
41
41
  ### With a package manager
42
42
 
43
43
  ```bash
44
- yarn add @algolia/ingestion@1.38.0
44
+ yarn add @algolia/ingestion@1.40.0
45
45
  # or
46
- npm install @algolia/ingestion@1.38.0
46
+ npm install @algolia/ingestion@1.40.0
47
47
  # or
48
- pnpm add @algolia/ingestion@1.38.0
48
+ pnpm add @algolia/ingestion@1.40.0
49
49
  ```
50
50
 
51
51
  ### Without a package manager
@@ -53,7 +53,7 @@ pnpm add @algolia/ingestion@1.38.0
53
53
  Add the following JavaScript snippet to the <head> of your website:
54
54
 
55
55
  ```html
56
- <script src="https://cdn.jsdelivr.net/npm/@algolia/ingestion@1.38.0/dist/builds/browser.umd.js"></script>
56
+ <script src="https://cdn.jsdelivr.net/npm/@algolia/ingestion@1.40.0/dist/builds/browser.umd.js"></script>
57
57
  ```
58
58
 
59
59
  ### Usage
package/dist/browser.d.ts CHANGED
@@ -708,7 +708,7 @@ type ListSourcesResponse = {
708
708
  /**
709
709
  * Action to perform on the Algolia index.
710
710
  */
711
- type ActionType = 'replace' | 'save' | 'partial' | 'append';
711
+ type ActionType = 'replace' | 'save' | 'partial' | 'partialNoCreate' | 'append';
712
712
 
713
713
  type EmailNotifications = {
714
714
  /**
@@ -2457,7 +2457,7 @@ type ChunkedPushOptions = {
2457
2457
  objects: Array<Record<string, unknown>>;
2458
2458
  };
2459
2459
 
2460
- declare const apiClientVersion = "1.38.0";
2460
+ declare const apiClientVersion = "1.40.0";
2461
2461
  declare const REGIONS: readonly ["eu", "us"];
2462
2462
  type Region = (typeof REGIONS)[number];
2463
2463
  type RegionOptions = {
@@ -2982,7 +2982,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
2982
2982
  */
2983
2983
  listTransformations({ itemsPerPage, page, sort, order, type }?: ListTransformationsProps, requestOptions?: RequestOptions | undefined): Promise<ListTransformationsResponse>;
2984
2984
  /**
2985
- * 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 `pushTask`, but requires an `indexName` instead of a `taskID`. If zero or many tasks are found, an error will be returned.
2985
+ * 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 `pushTask`, but requires an `indexName` instead of a `taskID`. If zero or many tasks are found, an error will be returned.
2986
2986
  *
2987
2987
  * Required API Key ACLs:
2988
2988
  * - addObject
@@ -9,7 +9,7 @@ import {
9
9
 
10
10
  // src/ingestionClient.ts
11
11
  import { createAuth, createIterablePromise, createTransporter, getAlgoliaAgent } from "@algolia/client-common";
12
- var apiClientVersion = "1.38.0";
12
+ var apiClientVersion = "1.40.0";
13
13
  var REGIONS = ["eu", "us"];
14
14
  function getDefaultHosts(region) {
15
15
  const url = "data.{region}.algolia.com".replace("{region}", region);
@@ -1366,7 +1366,7 @@ function createIngestionClient({
1366
1366
  return transporter.request(request, requestOptions);
1367
1367
  },
1368
1368
  /**
1369
- * 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 `pushTask`, but requires an `indexName` instead of a `taskID`. If zero or many tasks are found, an error will be returned.
1369
+ * 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 `pushTask`, but requires an `indexName` instead of a `taskID`. If zero or many tasks are found, an error will be returned.
1370
1370
  *
1371
1371
  * Required API Key ACLs:
1372
1372
  * - addObject