@algolia/ingestion 1.48.0 → 1.48.2
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 +54 -54
- package/dist/builds/browser.js +12 -12
- 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 +12 -12
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +12 -12
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +12 -12
- package/dist/builds/node.js.map +1 -1
- package/dist/builds/worker.js +12 -12
- package/dist/builds/worker.js.map +1 -1
- package/dist/fetch.d.ts +54 -54
- package/dist/node.d.cts +54 -54
- package/dist/node.d.ts +54 -54
- package/dist/src/ingestionClient.cjs +12 -12
- package/dist/src/ingestionClient.cjs.map +1 -1
- package/dist/src/ingestionClient.js +12 -12
- package/dist/src/ingestionClient.js.map +1 -1
- package/dist/worker.d.ts +54 -54
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -40,11 +40,11 @@ All of our clients comes with type definition, and are available for both browse
|
|
|
40
40
|
### With a package manager
|
|
41
41
|
|
|
42
42
|
```bash
|
|
43
|
-
yarn add @algolia/ingestion@1.48.
|
|
43
|
+
yarn add @algolia/ingestion@1.48.2
|
|
44
44
|
# or
|
|
45
|
-
npm install @algolia/ingestion@1.48.
|
|
45
|
+
npm install @algolia/ingestion@1.48.2
|
|
46
46
|
# or
|
|
47
|
-
pnpm add @algolia/ingestion@1.48.
|
|
47
|
+
pnpm add @algolia/ingestion@1.48.2
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
### Without a package manager
|
|
@@ -52,7 +52,7 @@ pnpm add @algolia/ingestion@1.48.0
|
|
|
52
52
|
Add the following JavaScript snippet to the <head> of your website:
|
|
53
53
|
|
|
54
54
|
```html
|
|
55
|
-
<script src="https://cdn.jsdelivr.net/npm/@algolia/ingestion@1.48.
|
|
55
|
+
<script src="https://cdn.jsdelivr.net/npm/@algolia/ingestion@1.48.2/dist/builds/browser.umd.js"></script>
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
### Usage
|
package/dist/browser.d.ts
CHANGED
|
@@ -127,11 +127,11 @@ type Authentication = {
|
|
|
127
127
|
owner?: string | null | undefined;
|
|
128
128
|
input: AuthInputPartial;
|
|
129
129
|
/**
|
|
130
|
-
* Date
|
|
130
|
+
* Date and time when the resource was created, in RFC 3339 format.
|
|
131
131
|
*/
|
|
132
132
|
createdAt: string;
|
|
133
133
|
/**
|
|
134
|
-
* Date
|
|
134
|
+
* Date and time when the resource was last updated, in RFC 3339 format.
|
|
135
135
|
*/
|
|
136
136
|
updatedAt: string;
|
|
137
137
|
};
|
|
@@ -258,7 +258,7 @@ type AuthenticationCreateResponse = {
|
|
|
258
258
|
*/
|
|
259
259
|
name: string;
|
|
260
260
|
/**
|
|
261
|
-
* Date
|
|
261
|
+
* Date and time when the resource was created, in RFC 3339 format.
|
|
262
262
|
*/
|
|
263
263
|
createdAt: string;
|
|
264
264
|
};
|
|
@@ -283,14 +283,14 @@ type AuthenticationUpdateResponse = {
|
|
|
283
283
|
*/
|
|
284
284
|
name: string;
|
|
285
285
|
/**
|
|
286
|
-
* Date
|
|
286
|
+
* Date and time when the resource was last updated, in RFC 3339 format.
|
|
287
287
|
*/
|
|
288
288
|
updatedAt: string;
|
|
289
289
|
};
|
|
290
290
|
|
|
291
291
|
type DeleteResponse = {
|
|
292
292
|
/**
|
|
293
|
-
* Date
|
|
293
|
+
* Date and time when the resource was deleted, in RFC 3339 format.
|
|
294
294
|
*/
|
|
295
295
|
deletedAt: string;
|
|
296
296
|
};
|
|
@@ -336,11 +336,11 @@ type Destination = {
|
|
|
336
336
|
owner?: string | null | undefined;
|
|
337
337
|
input: DestinationInput;
|
|
338
338
|
/**
|
|
339
|
-
* Date
|
|
339
|
+
* Date and time when the resource was created, in RFC 3339 format.
|
|
340
340
|
*/
|
|
341
341
|
createdAt: string;
|
|
342
342
|
/**
|
|
343
|
-
* Date
|
|
343
|
+
* Date and time when the resource was last updated, in RFC 3339 format.
|
|
344
344
|
*/
|
|
345
345
|
updatedAt: string;
|
|
346
346
|
/**
|
|
@@ -380,7 +380,7 @@ type DestinationCreateResponse = {
|
|
|
380
380
|
*/
|
|
381
381
|
name: string;
|
|
382
382
|
/**
|
|
383
|
-
* Date
|
|
383
|
+
* Date and time when the resource was created, in RFC 3339 format.
|
|
384
384
|
*/
|
|
385
385
|
createdAt: string;
|
|
386
386
|
};
|
|
@@ -405,7 +405,7 @@ type DestinationUpdateResponse = {
|
|
|
405
405
|
*/
|
|
406
406
|
name: string;
|
|
407
407
|
/**
|
|
408
|
-
* Date
|
|
408
|
+
* Date and time when the resource was last updated, in RFC 3339 format.
|
|
409
409
|
*/
|
|
410
410
|
updatedAt: string;
|
|
411
411
|
};
|
|
@@ -436,7 +436,7 @@ type Event = {
|
|
|
436
436
|
[key: string]: any;
|
|
437
437
|
} | null | undefined;
|
|
438
438
|
/**
|
|
439
|
-
* Date
|
|
439
|
+
* Date and time when the resource was published, in RFC 3339 format.
|
|
440
440
|
*/
|
|
441
441
|
publishedAt: string;
|
|
442
442
|
};
|
|
@@ -478,11 +478,11 @@ type ListDestinationsResponse = {
|
|
|
478
478
|
*/
|
|
479
479
|
type Window = {
|
|
480
480
|
/**
|
|
481
|
-
* Date
|
|
481
|
+
* Date and time representing the oldest data in the time window, in RFC 3339 format.
|
|
482
482
|
*/
|
|
483
483
|
startDate: string;
|
|
484
484
|
/**
|
|
485
|
-
* Date
|
|
485
|
+
* Date and time representing the newest data in the time window, in RFC 3339 format.
|
|
486
486
|
*/
|
|
487
487
|
endDate: string;
|
|
488
488
|
};
|
|
@@ -727,11 +727,11 @@ type Source = {
|
|
|
727
727
|
*/
|
|
728
728
|
authenticationID?: string | undefined;
|
|
729
729
|
/**
|
|
730
|
-
* Date
|
|
730
|
+
* Date and time when the resource was created, in RFC 3339 format.
|
|
731
731
|
*/
|
|
732
732
|
createdAt: string;
|
|
733
733
|
/**
|
|
734
|
-
* Date
|
|
734
|
+
* Date and time when the resource was last updated, in RFC 3339 format.
|
|
735
735
|
*/
|
|
736
736
|
updatedAt: string;
|
|
737
737
|
};
|
|
@@ -921,17 +921,17 @@ type Task = {
|
|
|
921
921
|
action?: ActionType | undefined;
|
|
922
922
|
subscriptionAction?: ActionType | undefined;
|
|
923
923
|
/**
|
|
924
|
-
* Date
|
|
924
|
+
* Date and time when the last cursor was created, in RFC 3339 format.
|
|
925
925
|
*/
|
|
926
926
|
cursor?: string | undefined;
|
|
927
927
|
notifications?: Notifications | undefined;
|
|
928
928
|
policies?: Policies | undefined;
|
|
929
929
|
/**
|
|
930
|
-
* Date
|
|
930
|
+
* Date and time when the resource was created, in RFC 3339 format.
|
|
931
931
|
*/
|
|
932
932
|
createdAt: string;
|
|
933
933
|
/**
|
|
934
|
-
* Date
|
|
934
|
+
* Date and time when the resource was last updated, in RFC 3339 format.
|
|
935
935
|
*/
|
|
936
936
|
updatedAt: string;
|
|
937
937
|
};
|
|
@@ -1014,7 +1014,7 @@ type SubscriptionTrigger = {
|
|
|
1014
1014
|
type Trigger = OnDemandTrigger | ScheduleTrigger | SubscriptionTrigger | StreamingTrigger;
|
|
1015
1015
|
|
|
1016
1016
|
/**
|
|
1017
|
-
* The V1 task object
|
|
1017
|
+
* The V1 task object. Use methods and types that don\'t contain the V1 suffix.
|
|
1018
1018
|
*/
|
|
1019
1019
|
type TaskV1 = {
|
|
1020
1020
|
/**
|
|
@@ -1041,17 +1041,17 @@ type TaskV1 = {
|
|
|
1041
1041
|
failureThreshold?: number | undefined;
|
|
1042
1042
|
action?: ActionType | undefined;
|
|
1043
1043
|
/**
|
|
1044
|
-
* Date
|
|
1044
|
+
* Date and time when the last cursor was created, in RFC 3339 format.
|
|
1045
1045
|
*/
|
|
1046
1046
|
cursor?: string | undefined;
|
|
1047
1047
|
notifications?: Notifications | undefined;
|
|
1048
1048
|
policies?: Policies | undefined;
|
|
1049
1049
|
/**
|
|
1050
|
-
* Date
|
|
1050
|
+
* Date and time when the resource was created, in RFC 3339 format.
|
|
1051
1051
|
*/
|
|
1052
1052
|
createdAt: string;
|
|
1053
1053
|
/**
|
|
1054
|
-
* Date
|
|
1054
|
+
* Date and time when the resource was last updated, in RFC 3339 format.
|
|
1055
1055
|
*/
|
|
1056
1056
|
updatedAt: string;
|
|
1057
1057
|
};
|
|
@@ -1119,11 +1119,11 @@ type Transformation = {
|
|
|
1119
1119
|
*/
|
|
1120
1120
|
owner?: string | null | undefined;
|
|
1121
1121
|
/**
|
|
1122
|
-
* Date
|
|
1122
|
+
* Date and time when the resource was created, in RFC 3339 format.
|
|
1123
1123
|
*/
|
|
1124
1124
|
createdAt: string;
|
|
1125
1125
|
/**
|
|
1126
|
-
* Date
|
|
1126
|
+
* Date and time when the resource was last updated, in RFC 3339 format.
|
|
1127
1127
|
*/
|
|
1128
1128
|
updatedAt: string;
|
|
1129
1129
|
};
|
|
@@ -1185,15 +1185,15 @@ type Run = {
|
|
|
1185
1185
|
reasonCode?: RunReasonCode | undefined;
|
|
1186
1186
|
type: RunType;
|
|
1187
1187
|
/**
|
|
1188
|
-
* Date
|
|
1188
|
+
* Date and time when the resource was created, in RFC 3339 format.
|
|
1189
1189
|
*/
|
|
1190
1190
|
createdAt: string;
|
|
1191
1191
|
/**
|
|
1192
|
-
* Date
|
|
1192
|
+
* Date and time when the task started, in RFC 3339 format.
|
|
1193
1193
|
*/
|
|
1194
1194
|
startedAt?: string | undefined;
|
|
1195
1195
|
/**
|
|
1196
|
-
* Date
|
|
1196
|
+
* Date and time when the task finished, in RFC 3339 format.
|
|
1197
1197
|
*/
|
|
1198
1198
|
finishedAt?: string | undefined;
|
|
1199
1199
|
};
|
|
@@ -1213,7 +1213,7 @@ type RunResponse = {
|
|
|
1213
1213
|
*/
|
|
1214
1214
|
runID: string;
|
|
1215
1215
|
/**
|
|
1216
|
-
* Date
|
|
1216
|
+
* Date and time when the resource was created, in RFC 3339 format.
|
|
1217
1217
|
*/
|
|
1218
1218
|
createdAt: string;
|
|
1219
1219
|
};
|
|
@@ -1226,7 +1226,7 @@ type RunSourceResponse = {
|
|
|
1226
1226
|
[key: string]: string;
|
|
1227
1227
|
};
|
|
1228
1228
|
/**
|
|
1229
|
-
* Date
|
|
1229
|
+
* Date and time when the resource was created, in RFC 3339 format.
|
|
1230
1230
|
*/
|
|
1231
1231
|
createdAt: string;
|
|
1232
1232
|
};
|
|
@@ -1254,7 +1254,7 @@ type SourceCreateResponse = {
|
|
|
1254
1254
|
*/
|
|
1255
1255
|
name: string;
|
|
1256
1256
|
/**
|
|
1257
|
-
* Date
|
|
1257
|
+
* Date and time when the resource was created, in RFC 3339 format.
|
|
1258
1258
|
*/
|
|
1259
1259
|
createdAt: string;
|
|
1260
1260
|
};
|
|
@@ -1273,7 +1273,7 @@ type SourceUpdateResponse = {
|
|
|
1273
1273
|
*/
|
|
1274
1274
|
name: string;
|
|
1275
1275
|
/**
|
|
1276
|
-
* Date
|
|
1276
|
+
* Date and time when the resource was last updated, in RFC 3339 format.
|
|
1277
1277
|
*/
|
|
1278
1278
|
updatedAt: string;
|
|
1279
1279
|
};
|
|
@@ -1306,7 +1306,7 @@ type TaskCreate = {
|
|
|
1306
1306
|
failureThreshold?: number | undefined;
|
|
1307
1307
|
input?: TaskInput | undefined;
|
|
1308
1308
|
/**
|
|
1309
|
-
* Date
|
|
1309
|
+
* Date and time when the last cursor was created, in RFC 3339 format.
|
|
1310
1310
|
*/
|
|
1311
1311
|
cursor?: string | undefined;
|
|
1312
1312
|
notifications?: Notifications | undefined;
|
|
@@ -1322,7 +1322,7 @@ type TaskCreateResponse = {
|
|
|
1322
1322
|
*/
|
|
1323
1323
|
taskID: string;
|
|
1324
1324
|
/**
|
|
1325
|
-
* Date
|
|
1325
|
+
* Date and time when the resource was created, in RFC 3339 format.
|
|
1326
1326
|
*/
|
|
1327
1327
|
createdAt: string;
|
|
1328
1328
|
};
|
|
@@ -1348,7 +1348,7 @@ type ScheduleTriggerInput = {
|
|
|
1348
1348
|
type TaskCreateTrigger = OnDemandTriggerInput | ScheduleTriggerInput | SubscriptionTrigger | StreamingTrigger;
|
|
1349
1349
|
|
|
1350
1350
|
/**
|
|
1351
|
-
* API request body for creating a task using the V1 shape
|
|
1351
|
+
* API request body for creating a task using the V1 shape. Use methods and types that don\'t contain the V1 suffix.
|
|
1352
1352
|
*/
|
|
1353
1353
|
type TaskCreateV1 = {
|
|
1354
1354
|
/**
|
|
@@ -1371,7 +1371,7 @@ type TaskCreateV1 = {
|
|
|
1371
1371
|
failureThreshold?: number | undefined;
|
|
1372
1372
|
input?: TaskInput | undefined;
|
|
1373
1373
|
/**
|
|
1374
|
-
* Date
|
|
1374
|
+
* Date and time when the last cursor was created, in RFC 3339 format.
|
|
1375
1375
|
*/
|
|
1376
1376
|
cursor?: string | undefined;
|
|
1377
1377
|
};
|
|
@@ -1389,7 +1389,7 @@ type TaskUpdateResponse = {
|
|
|
1389
1389
|
*/
|
|
1390
1390
|
taskID: string;
|
|
1391
1391
|
/**
|
|
1392
|
-
* Date
|
|
1392
|
+
* Date and time when the resource was last updated, in RFC 3339 format.
|
|
1393
1393
|
*/
|
|
1394
1394
|
updatedAt: string;
|
|
1395
1395
|
};
|
|
@@ -1427,7 +1427,7 @@ type TransformationCreateResponse = {
|
|
|
1427
1427
|
*/
|
|
1428
1428
|
transformationID: string;
|
|
1429
1429
|
/**
|
|
1430
|
-
* Date
|
|
1430
|
+
* Date and time when the resource was created, in RFC 3339 format.
|
|
1431
1431
|
*/
|
|
1432
1432
|
createdAt: string;
|
|
1433
1433
|
};
|
|
@@ -1481,7 +1481,7 @@ type TransformationUpdateResponse = {
|
|
|
1481
1481
|
*/
|
|
1482
1482
|
transformationID: string;
|
|
1483
1483
|
/**
|
|
1484
|
-
* Date
|
|
1484
|
+
* Date and time when the resource was last updated, in RFC 3339 format.
|
|
1485
1485
|
*/
|
|
1486
1486
|
updatedAt: string;
|
|
1487
1487
|
};
|
|
@@ -1508,7 +1508,7 @@ type WatchResponse = {
|
|
|
1508
1508
|
*/
|
|
1509
1509
|
message?: string | undefined;
|
|
1510
1510
|
/**
|
|
1511
|
-
* Date
|
|
1511
|
+
* Date and time when the resource was created, in RFC 3339 format.
|
|
1512
1512
|
*/
|
|
1513
1513
|
createdAt?: string | undefined;
|
|
1514
1514
|
};
|
|
@@ -1704,7 +1704,7 @@ type TaskReplace = {
|
|
|
1704
1704
|
failureThreshold?: number | undefined;
|
|
1705
1705
|
input?: TaskInput | undefined;
|
|
1706
1706
|
/**
|
|
1707
|
-
* Date
|
|
1707
|
+
* Date and time when the last cursor was created, in RFC 3339 format.
|
|
1708
1708
|
*/
|
|
1709
1709
|
cursor?: string | undefined;
|
|
1710
1710
|
notifications?: Notifications | undefined;
|
|
@@ -1753,7 +1753,7 @@ type TriggerUpdateInput = {
|
|
|
1753
1753
|
};
|
|
1754
1754
|
|
|
1755
1755
|
/**
|
|
1756
|
-
* API request body for updating a task using the V1 shape
|
|
1756
|
+
* API request body for updating a task using the V1 shape. Use methods and types that don\'t contain the V1 suffix.
|
|
1757
1757
|
*/
|
|
1758
1758
|
type TaskUpdateV1 = {
|
|
1759
1759
|
/**
|
|
@@ -2152,11 +2152,11 @@ type ListRunsProps = {
|
|
|
2152
2152
|
*/
|
|
2153
2153
|
order?: OrderKeys | undefined;
|
|
2154
2154
|
/**
|
|
2155
|
-
* Date
|
|
2155
|
+
* Date and time for the earliest run to retrieve, in RFC 3339 format. By default, the current day minus seven days is used.
|
|
2156
2156
|
*/
|
|
2157
2157
|
startDate?: string | undefined;
|
|
2158
2158
|
/**
|
|
2159
|
-
* Date
|
|
2159
|
+
* Date and time for the latest run to retrieve, in RFC 3339 format. By default, the current day is used.
|
|
2160
2160
|
*/
|
|
2161
2161
|
endDate?: string | undefined;
|
|
2162
2162
|
};
|
|
@@ -2501,7 +2501,7 @@ type ChunkedPushOptions = {
|
|
|
2501
2501
|
objects: Array<Record<string, unknown>>;
|
|
2502
2502
|
};
|
|
2503
2503
|
|
|
2504
|
-
declare const apiClientVersion = "1.48.
|
|
2504
|
+
declare const apiClientVersion = "1.48.2";
|
|
2505
2505
|
declare const REGIONS: readonly ["eu", "us"];
|
|
2506
2506
|
type Region = (typeof REGIONS)[number];
|
|
2507
2507
|
type RegionOptions = {
|
|
@@ -2621,7 +2621,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2621
2621
|
*/
|
|
2622
2622
|
createTask(taskCreate: TaskCreate, requestOptions?: RequestOptions): Promise<TaskCreateResponse>;
|
|
2623
2623
|
/**
|
|
2624
|
-
* Creates a new task using the v1 endpoint
|
|
2624
|
+
* Creates a new task using the v1 endpoint. Use `createTask` instead.
|
|
2625
2625
|
*
|
|
2626
2626
|
* Required API Key ACLs:
|
|
2627
2627
|
* - addObject
|
|
@@ -2727,7 +2727,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2727
2727
|
*/
|
|
2728
2728
|
deleteTask({ taskID }: DeleteTaskProps, requestOptions?: RequestOptions): Promise<DeleteResponse>;
|
|
2729
2729
|
/**
|
|
2730
|
-
* Deletes a task by its ID using the v1 endpoint
|
|
2730
|
+
* Deletes a task by its ID using the v1 endpoint. Use `deleteTask` instead.
|
|
2731
2731
|
*
|
|
2732
2732
|
* Required API Key ACLs:
|
|
2733
2733
|
* - addObject
|
|
@@ -2765,7 +2765,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2765
2765
|
*/
|
|
2766
2766
|
disableTask({ taskID }: DisableTaskProps, requestOptions?: RequestOptions): Promise<TaskUpdateResponse>;
|
|
2767
2767
|
/**
|
|
2768
|
-
* Disables a task using the v1 endpoint
|
|
2768
|
+
* Disables a task using the v1 endpoint. Use `disableTask` instead.
|
|
2769
2769
|
*
|
|
2770
2770
|
* Required API Key ACLs:
|
|
2771
2771
|
* - addObject
|
|
@@ -2791,7 +2791,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2791
2791
|
*/
|
|
2792
2792
|
enableTask({ taskID }: EnableTaskProps, requestOptions?: RequestOptions): Promise<TaskUpdateResponse>;
|
|
2793
2793
|
/**
|
|
2794
|
-
* Enables a task using the v1 endpoint
|
|
2794
|
+
* Enables a task using the v1 endpoint. Use `enableTask` instead.
|
|
2795
2795
|
*
|
|
2796
2796
|
* Required API Key ACLs:
|
|
2797
2797
|
* - addObject
|
|
@@ -2878,7 +2878,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2878
2878
|
*/
|
|
2879
2879
|
getTask({ taskID }: GetTaskProps, requestOptions?: RequestOptions): Promise<Task>;
|
|
2880
2880
|
/**
|
|
2881
|
-
* Retrieves a task by its ID using the v1 endpoint
|
|
2881
|
+
* Retrieves a task by its ID using the v1 endpoint. Use `getTask` instead.
|
|
2882
2882
|
*
|
|
2883
2883
|
* Required API Key ACLs:
|
|
2884
2884
|
* - addObject
|
|
@@ -2973,8 +2973,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2973
2973
|
* @param listRuns.taskID - Task ID for filtering the list of task runs.
|
|
2974
2974
|
* @param listRuns.sort - Property by which to sort the list of task runs.
|
|
2975
2975
|
* @param listRuns.order - Sort order of the response, ascending or descending.
|
|
2976
|
-
* @param listRuns.startDate - Date
|
|
2977
|
-
* @param listRuns.endDate - Date
|
|
2976
|
+
* @param listRuns.startDate - Date and time for the earliest run to retrieve, in RFC 3339 format. By default, the current day minus seven days is used.
|
|
2977
|
+
* @param listRuns.endDate - Date and time for the latest run to retrieve, in RFC 3339 format. By default, the current day is used.
|
|
2978
2978
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2979
2979
|
*/
|
|
2980
2980
|
listRuns({ itemsPerPage, page, status, type, taskID, sort, order, startDate, endDate }?: ListRunsProps, requestOptions?: RequestOptions | undefined): Promise<RunListResponse>;
|
|
@@ -3018,7 +3018,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
3018
3018
|
*/
|
|
3019
3019
|
listTasks({ itemsPerPage, page, action, enabled, sourceID, sourceType, destinationID, triggerType, withEmailNotifications, sort, order, }?: ListTasksProps, requestOptions?: RequestOptions | undefined): Promise<ListTasksResponse>;
|
|
3020
3020
|
/**
|
|
3021
|
-
* Retrieves a list of tasks using the v1 endpoint
|
|
3021
|
+
* Retrieves a list of tasks using the v1 endpoint. Use `getTasks` instead.
|
|
3022
3022
|
*
|
|
3023
3023
|
* Required API Key ACLs:
|
|
3024
3024
|
* - addObject
|
|
@@ -3124,7 +3124,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
3124
3124
|
*/
|
|
3125
3125
|
runTask({ taskID, runTaskPayload }: RunTaskProps, requestOptions?: RequestOptions): Promise<RunResponse>;
|
|
3126
3126
|
/**
|
|
3127
|
-
* Runs a task using the v1 endpoint
|
|
3127
|
+
* Runs a task using the v1 endpoint. Use `runTask` instead. You can check the status of task runs with the observability endpoints.
|
|
3128
3128
|
*
|
|
3129
3129
|
* Required API Key ACLs:
|
|
3130
3130
|
* - addObject
|
|
@@ -3183,7 +3183,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
3183
3183
|
*/
|
|
3184
3184
|
searchTasks(taskSearch: TaskSearch, requestOptions?: RequestOptions): Promise<Array<Task>>;
|
|
3185
3185
|
/**
|
|
3186
|
-
* Searches for tasks using the v1 endpoint
|
|
3186
|
+
* Searches for tasks using the v1 endpoint. Use `searchTasks` instead.
|
|
3187
3187
|
*
|
|
3188
3188
|
* Required API Key ACLs:
|
|
3189
3189
|
* - addObject
|
|
@@ -3295,7 +3295,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
3295
3295
|
*/
|
|
3296
3296
|
updateTask({ taskID, taskUpdate }: UpdateTaskProps, requestOptions?: RequestOptions): Promise<TaskUpdateResponse>;
|
|
3297
3297
|
/**
|
|
3298
|
-
* Updates a task by its ID using the v1 endpoint
|
|
3298
|
+
* Updates a task by its ID using the v1 endpoint. Use `updateTask` instead.
|
|
3299
3299
|
*
|
|
3300
3300
|
* Required API Key ACLs:
|
|
3301
3301
|
* - addObject
|
package/dist/builds/browser.js
CHANGED
|
@@ -9,7 +9,7 @@ import { createXhrRequester } from "@algolia/requester-browser-xhr";
|
|
|
9
9
|
|
|
10
10
|
// src/ingestionClient.ts
|
|
11
11
|
import { createAuth, createIterablePromise, createTransporter, getAlgoliaAgent } from "@algolia/client-common";
|
|
12
|
-
var apiClientVersion = "1.48.
|
|
12
|
+
var apiClientVersion = "1.48.2";
|
|
13
13
|
var REGIONS = ["eu", "us"];
|
|
14
14
|
function getDefaultHosts(region) {
|
|
15
15
|
const url = "data.{region}.algolia.com".replace("{region}", region);
|
|
@@ -299,7 +299,7 @@ function createIngestionClient({
|
|
|
299
299
|
return transporter.request(request, requestOptions);
|
|
300
300
|
},
|
|
301
301
|
/**
|
|
302
|
-
* Creates a new task using the v1 endpoint
|
|
302
|
+
* Creates a new task using the v1 endpoint. Use `createTask` instead.
|
|
303
303
|
*
|
|
304
304
|
* Required API Key ACLs:
|
|
305
305
|
* - addObject
|
|
@@ -570,7 +570,7 @@ function createIngestionClient({
|
|
|
570
570
|
return transporter.request(request, requestOptions);
|
|
571
571
|
},
|
|
572
572
|
/**
|
|
573
|
-
* Deletes a task by its ID using the v1 endpoint
|
|
573
|
+
* Deletes a task by its ID using the v1 endpoint. Use `deleteTask` instead.
|
|
574
574
|
*
|
|
575
575
|
* Required API Key ACLs:
|
|
576
576
|
* - addObject
|
|
@@ -653,7 +653,7 @@ function createIngestionClient({
|
|
|
653
653
|
return transporter.request(request, requestOptions);
|
|
654
654
|
},
|
|
655
655
|
/**
|
|
656
|
-
* Disables a task using the v1 endpoint
|
|
656
|
+
* Disables a task using the v1 endpoint. Use `disableTask` instead.
|
|
657
657
|
*
|
|
658
658
|
* Required API Key ACLs:
|
|
659
659
|
* - addObject
|
|
@@ -707,7 +707,7 @@ function createIngestionClient({
|
|
|
707
707
|
return transporter.request(request, requestOptions);
|
|
708
708
|
},
|
|
709
709
|
/**
|
|
710
|
-
* Enables a task using the v1 endpoint
|
|
710
|
+
* Enables a task using the v1 endpoint. Use `enableTask` instead.
|
|
711
711
|
*
|
|
712
712
|
* Required API Key ACLs:
|
|
713
713
|
* - addObject
|
|
@@ -901,7 +901,7 @@ function createIngestionClient({
|
|
|
901
901
|
return transporter.request(request, requestOptions);
|
|
902
902
|
},
|
|
903
903
|
/**
|
|
904
|
-
* Retrieves a task by its ID using the v1 endpoint
|
|
904
|
+
* Retrieves a task by its ID using the v1 endpoint. Use `getTask` instead.
|
|
905
905
|
*
|
|
906
906
|
* Required API Key ACLs:
|
|
907
907
|
* - addObject
|
|
@@ -1126,8 +1126,8 @@ function createIngestionClient({
|
|
|
1126
1126
|
* @param listRuns.taskID - Task ID for filtering the list of task runs.
|
|
1127
1127
|
* @param listRuns.sort - Property by which to sort the list of task runs.
|
|
1128
1128
|
* @param listRuns.order - Sort order of the response, ascending or descending.
|
|
1129
|
-
* @param listRuns.startDate - Date
|
|
1130
|
-
* @param listRuns.endDate - Date
|
|
1129
|
+
* @param listRuns.startDate - Date and time for the earliest run to retrieve, in RFC 3339 format. By default, the current day minus seven days is used.
|
|
1130
|
+
* @param listRuns.endDate - Date and time for the latest run to retrieve, in RFC 3339 format. By default, the current day is used.
|
|
1131
1131
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1132
1132
|
*/
|
|
1133
1133
|
listRuns({ itemsPerPage, page, status, type, taskID, sort, order, startDate, endDate } = {}, requestOptions = void 0) {
|
|
@@ -1294,7 +1294,7 @@ function createIngestionClient({
|
|
|
1294
1294
|
return transporter.request(request, requestOptions);
|
|
1295
1295
|
},
|
|
1296
1296
|
/**
|
|
1297
|
-
* Retrieves a list of tasks using the v1 endpoint
|
|
1297
|
+
* Retrieves a list of tasks using the v1 endpoint. Use `getTasks` instead.
|
|
1298
1298
|
*
|
|
1299
1299
|
* Required API Key ACLs:
|
|
1300
1300
|
* - addObject
|
|
@@ -1591,7 +1591,7 @@ function createIngestionClient({
|
|
|
1591
1591
|
return transporter.request(request, requestOptions);
|
|
1592
1592
|
},
|
|
1593
1593
|
/**
|
|
1594
|
-
* Runs a task using the v1 endpoint
|
|
1594
|
+
* Runs a task using the v1 endpoint. Use `runTask` instead. You can check the status of task runs with the observability endpoints.
|
|
1595
1595
|
*
|
|
1596
1596
|
* Required API Key ACLs:
|
|
1597
1597
|
* - addObject
|
|
@@ -1739,7 +1739,7 @@ function createIngestionClient({
|
|
|
1739
1739
|
return transporter.request(request, requestOptions);
|
|
1740
1740
|
},
|
|
1741
1741
|
/**
|
|
1742
|
-
* Searches for tasks using the v1 endpoint
|
|
1742
|
+
* Searches for tasks using the v1 endpoint. Use `searchTasks` instead.
|
|
1743
1743
|
*
|
|
1744
1744
|
* Required API Key ACLs:
|
|
1745
1745
|
* - addObject
|
|
@@ -2033,7 +2033,7 @@ function createIngestionClient({
|
|
|
2033
2033
|
return transporter.request(request, requestOptions);
|
|
2034
2034
|
},
|
|
2035
2035
|
/**
|
|
2036
|
-
* Updates a task by its ID using the v1 endpoint
|
|
2036
|
+
* Updates a task by its ID using the v1 endpoint. Use `updateTask` instead.
|
|
2037
2037
|
*
|
|
2038
2038
|
* Required API Key ACLs:
|
|
2039
2039
|
* - addObject
|