@algolia/ingestion 1.20.4 → 1.22.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 +4 -4
- package/dist/browser.d.ts +24 -1
- package/dist/builds/browser.js +1 -1
- package/dist/builds/browser.js.map +1 -1
- package/dist/builds/browser.min.js +1 -1
- package/dist/builds/browser.min.js.map +1 -1
- package/dist/builds/browser.umd.js +1 -1
- package/dist/builds/fetch.js +1 -1
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +1 -1
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +1 -1
- package/dist/builds/node.js.map +1 -1
- package/dist/builds/worker.js +1 -1
- package/dist/builds/worker.js.map +1 -1
- package/dist/fetch.d.ts +24 -1
- package/dist/node.d.cts +24 -1
- package/dist/node.d.ts +24 -1
- package/dist/src/ingestionClient.cjs +1 -1
- package/dist/src/ingestionClient.cjs.map +1 -1
- package/dist/src/ingestionClient.js +5 -5
- package/dist/src/ingestionClient.js.map +1 -1
- package/dist/worker.d.ts +24 -1
- package/package.json +8 -8
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.
|
|
44
|
+
yarn add @algolia/ingestion@1.22.0
|
|
45
45
|
# or
|
|
46
|
-
npm install @algolia/ingestion@1.
|
|
46
|
+
npm install @algolia/ingestion@1.22.0
|
|
47
47
|
# or
|
|
48
|
-
pnpm add @algolia/ingestion@1.
|
|
48
|
+
pnpm add @algolia/ingestion@1.22.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.
|
|
56
|
+
<script src="https://cdn.jsdelivr.net/npm/@algolia/ingestion@1.22.0/dist/builds/browser.umd.js"></script>
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
### Usage
|
package/dist/browser.d.ts
CHANGED
|
@@ -117,6 +117,10 @@ type Authentication = {
|
|
|
117
117
|
*/
|
|
118
118
|
name: string;
|
|
119
119
|
platform?: Platform | null;
|
|
120
|
+
/**
|
|
121
|
+
* Owner of the resource.
|
|
122
|
+
*/
|
|
123
|
+
owner?: string | null;
|
|
120
124
|
input: AuthInputPartial;
|
|
121
125
|
/**
|
|
122
126
|
* Date of creation in RFC 3339 format.
|
|
@@ -320,6 +324,10 @@ type Destination = {
|
|
|
320
324
|
* Descriptive name for the resource.
|
|
321
325
|
*/
|
|
322
326
|
name: string;
|
|
327
|
+
/**
|
|
328
|
+
* Owner of the resource.
|
|
329
|
+
*/
|
|
330
|
+
owner?: string | null;
|
|
323
331
|
input: DestinationInput;
|
|
324
332
|
/**
|
|
325
333
|
* Date of creation in RFC 3339 format.
|
|
@@ -671,6 +679,10 @@ type Source = {
|
|
|
671
679
|
sourceID: string;
|
|
672
680
|
type: SourceType;
|
|
673
681
|
name: string;
|
|
682
|
+
/**
|
|
683
|
+
* Owner of the resource.
|
|
684
|
+
*/
|
|
685
|
+
owner?: string | null;
|
|
674
686
|
input?: SourceInput;
|
|
675
687
|
/**
|
|
676
688
|
* Universally unique identifier (UUID) of an authentication resource.
|
|
@@ -855,6 +867,10 @@ type Task = {
|
|
|
855
867
|
* The next scheduled run of the task in RFC 3339 format.
|
|
856
868
|
*/
|
|
857
869
|
nextRun?: string;
|
|
870
|
+
/**
|
|
871
|
+
* Owner of the resource.
|
|
872
|
+
*/
|
|
873
|
+
owner?: string | null;
|
|
858
874
|
input?: TaskInput;
|
|
859
875
|
/**
|
|
860
876
|
* Whether the task is enabled.
|
|
@@ -865,6 +881,7 @@ type Task = {
|
|
|
865
881
|
*/
|
|
866
882
|
failureThreshold?: number;
|
|
867
883
|
action?: ActionType;
|
|
884
|
+
subscriptionAction?: ActionType;
|
|
868
885
|
/**
|
|
869
886
|
* Date of the last cursor in RFC 3339 format.
|
|
870
887
|
*/
|
|
@@ -1030,6 +1047,10 @@ type Transformation = {
|
|
|
1030
1047
|
* A descriptive name for your transformation of what it does.
|
|
1031
1048
|
*/
|
|
1032
1049
|
description?: string;
|
|
1050
|
+
/**
|
|
1051
|
+
* Owner of the resource.
|
|
1052
|
+
*/
|
|
1053
|
+
owner?: string | null;
|
|
1033
1054
|
/**
|
|
1034
1055
|
* Date of creation in RFC 3339 format.
|
|
1035
1056
|
*/
|
|
@@ -1203,6 +1224,7 @@ type TaskCreate = {
|
|
|
1203
1224
|
*/
|
|
1204
1225
|
destinationID: string;
|
|
1205
1226
|
action: ActionType;
|
|
1227
|
+
subscriptionAction?: ActionType;
|
|
1206
1228
|
/**
|
|
1207
1229
|
* Cron expression for the task\'s schedule.
|
|
1208
1230
|
*/
|
|
@@ -1574,6 +1596,7 @@ type TaskUpdate = {
|
|
|
1574
1596
|
* Whether the task is enabled.
|
|
1575
1597
|
*/
|
|
1576
1598
|
enabled?: boolean;
|
|
1599
|
+
subscriptionAction?: ActionType;
|
|
1577
1600
|
/**
|
|
1578
1601
|
* Maximum accepted percentage of failures for a task run to finish successfully.
|
|
1579
1602
|
*/
|
|
@@ -2278,7 +2301,7 @@ type ValidateSourceBeforeUpdateProps = {
|
|
|
2278
2301
|
sourceUpdate: SourceUpdate;
|
|
2279
2302
|
};
|
|
2280
2303
|
|
|
2281
|
-
declare const apiClientVersion = "1.
|
|
2304
|
+
declare const apiClientVersion = "1.22.0";
|
|
2282
2305
|
declare const REGIONS: readonly ["eu", "us"];
|
|
2283
2306
|
type Region = (typeof REGIONS)[number];
|
|
2284
2307
|
type RegionOptions = {
|
package/dist/builds/browser.js
CHANGED
|
@@ -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.
|
|
12
|
+
var apiClientVersion = "1.22.0";
|
|
13
13
|
var REGIONS = ["eu", "us"];
|
|
14
14
|
function getDefaultHosts(region) {
|
|
15
15
|
const url = "data.{region}.algolia.com".replace("{region}", region);
|