@algolia/ingestion 1.20.4 → 1.21.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.20.4
44
+ yarn add @algolia/ingestion@1.21.0
45
45
  # or
46
- npm install @algolia/ingestion@1.20.4
46
+ npm install @algolia/ingestion@1.21.0
47
47
  # or
48
- pnpm add @algolia/ingestion@1.20.4
48
+ pnpm add @algolia/ingestion@1.21.0
49
49
  ```
50
50
 
51
51
  ### Without a package manager
@@ -53,7 +53,7 @@ pnpm add @algolia/ingestion@1.20.4
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.20.4/dist/builds/browser.umd.js"></script>
56
+ <script src="https://cdn.jsdelivr.net/npm/@algolia/ingestion@1.21.0/dist/builds/browser.umd.js"></script>
57
57
  ```
58
58
 
59
59
  ### Usage
package/dist/browser.d.ts CHANGED
@@ -865,6 +865,7 @@ type Task = {
865
865
  */
866
866
  failureThreshold?: number;
867
867
  action?: ActionType;
868
+ subscriptionAction?: ActionType;
868
869
  /**
869
870
  * Date of the last cursor in RFC 3339 format.
870
871
  */
@@ -1203,6 +1204,7 @@ type TaskCreate = {
1203
1204
  */
1204
1205
  destinationID: string;
1205
1206
  action: ActionType;
1207
+ subscriptionAction?: ActionType;
1206
1208
  /**
1207
1209
  * Cron expression for the task\'s schedule.
1208
1210
  */
@@ -1574,6 +1576,7 @@ type TaskUpdate = {
1574
1576
  * Whether the task is enabled.
1575
1577
  */
1576
1578
  enabled?: boolean;
1579
+ subscriptionAction?: ActionType;
1577
1580
  /**
1578
1581
  * Maximum accepted percentage of failures for a task run to finish successfully.
1579
1582
  */
@@ -2278,7 +2281,7 @@ type ValidateSourceBeforeUpdateProps = {
2278
2281
  sourceUpdate: SourceUpdate;
2279
2282
  };
2280
2283
 
2281
- declare const apiClientVersion = "1.20.4";
2284
+ declare const apiClientVersion = "1.21.0";
2282
2285
  declare const REGIONS: readonly ["eu", "us"];
2283
2286
  type Region = (typeof REGIONS)[number];
2284
2287
  type RegionOptions = {
@@ -9,7 +9,7 @@ import {
9
9
 
10
10
  // src/ingestionClient.ts
11
11
  import { createAuth, createTransporter, getAlgoliaAgent } from "@algolia/client-common";
12
- var apiClientVersion = "1.20.4";
12
+ var apiClientVersion = "1.21.0";
13
13
  var REGIONS = ["eu", "us"];
14
14
  function getDefaultHosts(region) {
15
15
  const url = "data.{region}.algolia.com".replace("{region}", region);