@algolia/ingestion 1.0.0-beta.11 → 1.0.0-beta.12
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/dist/builds/browser.d.ts +17 -7
- package/dist/builds/browser.d.ts.map +1 -1
- package/dist/builds/node.d.ts +17 -7
- package/dist/builds/node.d.ts.map +1 -1
- package/dist/ingestion.cjs +491 -179
- package/dist/ingestion.esm.browser.js +491 -179
- package/dist/ingestion.esm.node.js +491 -179
- package/dist/ingestion.umd.js +2 -2
- package/dist/model/action.d.ts +5 -0
- package/dist/model/action.d.ts.map +1 -0
- package/dist/model/batchRequest.d.ts +9 -0
- package/dist/model/batchRequest.d.ts.map +1 -0
- package/dist/model/batchWriteParams.d.ts +8 -0
- package/dist/model/batchWriteParams.d.ts.map +1 -0
- package/dist/model/clientMethodProps.d.ts +177 -66
- package/dist/model/clientMethodProps.d.ts.map +1 -1
- package/dist/model/index.d.ts +7 -0
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/listTasksResponseV1.d.ts +10 -0
- package/dist/model/listTasksResponseV1.d.ts.map +1 -0
- package/dist/model/task.d.ts +12 -2
- package/dist/model/task.d.ts.map +1 -1
- package/dist/model/taskCreate.d.ts +4 -2
- package/dist/model/taskCreate.d.ts.map +1 -1
- package/dist/model/taskCreateV1.d.ts +32 -0
- package/dist/model/taskCreateV1.d.ts.map +1 -0
- package/dist/model/taskUpdate.d.ts +4 -2
- package/dist/model/taskUpdate.d.ts.map +1 -1
- package/dist/model/taskUpdateV1.d.ts +22 -0
- package/dist/model/taskUpdateV1.d.ts.map +1 -0
- package/dist/model/taskV1.d.ts +44 -0
- package/dist/model/taskV1.d.ts.map +1 -0
- package/dist/src/ingestionClient.d.ts +218 -92
- package/dist/src/ingestionClient.d.ts.map +1 -1
- package/model/action.ts +13 -0
- package/model/batchRequest.ts +12 -0
- package/model/batchWriteParams.ts +10 -0
- package/model/clientMethodProps.ts +189 -70
- package/model/index.ts +7 -0
- package/model/listTasksResponseV1.ts +13 -0
- package/model/task.ts +14 -2
- package/model/taskCreate.ts +5 -3
- package/model/taskCreateV1.ts +41 -0
- package/model/taskUpdate.ts +4 -2
- package/model/taskUpdateV1.ts +28 -0
- package/model/taskV1.ts +56 -0
- package/package.json +5 -5
|
@@ -4,6 +4,7 @@ import type { ActionType } from './actionType';
|
|
|
4
4
|
import type { AuthenticationSortKeys } from './authenticationSortKeys';
|
|
5
5
|
import type { AuthenticationType } from './authenticationType';
|
|
6
6
|
import type { AuthenticationUpdate } from './authenticationUpdate';
|
|
7
|
+
import type { BatchWriteParams } from './batchWriteParams';
|
|
7
8
|
import type { DestinationSortKeys } from './destinationSortKeys';
|
|
8
9
|
import type { DestinationType } from './destinationType';
|
|
9
10
|
import type { DestinationUpdate } from './destinationUpdate';
|
|
@@ -20,6 +21,7 @@ import type { SourceType } from './sourceType';
|
|
|
20
21
|
import type { SourceUpdate } from './sourceUpdate';
|
|
21
22
|
import type { TaskSortKeys } from './taskSortKeys';
|
|
22
23
|
import type { TaskUpdate } from './taskUpdate';
|
|
24
|
+
import type { TaskUpdateV1 } from './taskUpdateV1';
|
|
23
25
|
import type { TransformationCreate } from './transformationCreate';
|
|
24
26
|
import type { TriggerType } from './triggerType';
|
|
25
27
|
|
|
@@ -127,6 +129,16 @@ export type DeleteTaskProps = {
|
|
|
127
129
|
taskID: string;
|
|
128
130
|
};
|
|
129
131
|
|
|
132
|
+
/**
|
|
133
|
+
* Properties for the `deleteTaskV1` method.
|
|
134
|
+
*/
|
|
135
|
+
export type DeleteTaskV1Props = {
|
|
136
|
+
/**
|
|
137
|
+
* Unique identifier of a task.
|
|
138
|
+
*/
|
|
139
|
+
taskID: string;
|
|
140
|
+
};
|
|
141
|
+
|
|
130
142
|
/**
|
|
131
143
|
* Properties for the `deleteTransformation` method.
|
|
132
144
|
*/
|
|
@@ -147,6 +159,16 @@ export type DisableTaskProps = {
|
|
|
147
159
|
taskID: string;
|
|
148
160
|
};
|
|
149
161
|
|
|
162
|
+
/**
|
|
163
|
+
* Properties for the `disableTaskV1` method.
|
|
164
|
+
*/
|
|
165
|
+
export type DisableTaskV1Props = {
|
|
166
|
+
/**
|
|
167
|
+
* Unique identifier of a task.
|
|
168
|
+
*/
|
|
169
|
+
taskID: string;
|
|
170
|
+
};
|
|
171
|
+
|
|
150
172
|
/**
|
|
151
173
|
* Properties for the `enableTask` method.
|
|
152
174
|
*/
|
|
@@ -157,6 +179,16 @@ export type EnableTaskProps = {
|
|
|
157
179
|
taskID: string;
|
|
158
180
|
};
|
|
159
181
|
|
|
182
|
+
/**
|
|
183
|
+
* Properties for the `enableTaskV1` method.
|
|
184
|
+
*/
|
|
185
|
+
export type EnableTaskV1Props = {
|
|
186
|
+
/**
|
|
187
|
+
* Unique identifier of a task.
|
|
188
|
+
*/
|
|
189
|
+
taskID: string;
|
|
190
|
+
};
|
|
191
|
+
|
|
160
192
|
/**
|
|
161
193
|
* Properties for the `getAuthentication` method.
|
|
162
194
|
*/
|
|
@@ -168,9 +200,83 @@ export type GetAuthenticationProps = {
|
|
|
168
200
|
};
|
|
169
201
|
|
|
170
202
|
/**
|
|
171
|
-
* Properties for the `
|
|
203
|
+
* Properties for the `getDestination` method.
|
|
172
204
|
*/
|
|
173
|
-
export type
|
|
205
|
+
export type GetDestinationProps = {
|
|
206
|
+
/**
|
|
207
|
+
* Unique identifier of a destination.
|
|
208
|
+
*/
|
|
209
|
+
destinationID: string;
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Properties for the `getEvent` method.
|
|
214
|
+
*/
|
|
215
|
+
export type GetEventProps = {
|
|
216
|
+
/**
|
|
217
|
+
* Unique identifier of a task run.
|
|
218
|
+
*/
|
|
219
|
+
runID: string;
|
|
220
|
+
/**
|
|
221
|
+
* Unique identifier of an event.
|
|
222
|
+
*/
|
|
223
|
+
eventID: string;
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Properties for the `getRun` method.
|
|
228
|
+
*/
|
|
229
|
+
export type GetRunProps = {
|
|
230
|
+
/**
|
|
231
|
+
* Unique identifier of a task run.
|
|
232
|
+
*/
|
|
233
|
+
runID: string;
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Properties for the `getSource` method.
|
|
238
|
+
*/
|
|
239
|
+
export type GetSourceProps = {
|
|
240
|
+
/**
|
|
241
|
+
* Unique identifier of a source.
|
|
242
|
+
*/
|
|
243
|
+
sourceID: string;
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Properties for the `getTask` method.
|
|
248
|
+
*/
|
|
249
|
+
export type GetTaskProps = {
|
|
250
|
+
/**
|
|
251
|
+
* Unique identifier of a task.
|
|
252
|
+
*/
|
|
253
|
+
taskID: string;
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Properties for the `getTaskV1` method.
|
|
258
|
+
*/
|
|
259
|
+
export type GetTaskV1Props = {
|
|
260
|
+
/**
|
|
261
|
+
* Unique identifier of a task.
|
|
262
|
+
*/
|
|
263
|
+
taskID: string;
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Properties for the `getTransformation` method.
|
|
268
|
+
*/
|
|
269
|
+
export type GetTransformationProps = {
|
|
270
|
+
/**
|
|
271
|
+
* Unique identifier of a transformation.
|
|
272
|
+
*/
|
|
273
|
+
transformationID: string;
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Properties for the `listAuthentications` method.
|
|
278
|
+
*/
|
|
279
|
+
export type ListAuthenticationsProps = {
|
|
174
280
|
/**
|
|
175
281
|
* Number of items per page.
|
|
176
282
|
*/
|
|
@@ -198,19 +304,9 @@ export type GetAuthenticationsProps = {
|
|
|
198
304
|
};
|
|
199
305
|
|
|
200
306
|
/**
|
|
201
|
-
* Properties for the `
|
|
202
|
-
*/
|
|
203
|
-
export type GetDestinationProps = {
|
|
204
|
-
/**
|
|
205
|
-
* Unique identifier of a destination.
|
|
206
|
-
*/
|
|
207
|
-
destinationID: string;
|
|
208
|
-
};
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* Properties for the `getDestinations` method.
|
|
307
|
+
* Properties for the `listDestinations` method.
|
|
212
308
|
*/
|
|
213
|
-
export type
|
|
309
|
+
export type ListDestinationsProps = {
|
|
214
310
|
/**
|
|
215
311
|
* Number of items per page.
|
|
216
312
|
*/
|
|
@@ -238,23 +334,9 @@ export type GetDestinationsProps = {
|
|
|
238
334
|
};
|
|
239
335
|
|
|
240
336
|
/**
|
|
241
|
-
* Properties for the `
|
|
337
|
+
* Properties for the `listEvents` method.
|
|
242
338
|
*/
|
|
243
|
-
export type
|
|
244
|
-
/**
|
|
245
|
-
* Unique identifier of a task run.
|
|
246
|
-
*/
|
|
247
|
-
runID: string;
|
|
248
|
-
/**
|
|
249
|
-
* Unique identifier of an event.
|
|
250
|
-
*/
|
|
251
|
-
eventID: string;
|
|
252
|
-
};
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* Properties for the `getEvents` method.
|
|
256
|
-
*/
|
|
257
|
-
export type GetEventsProps = {
|
|
339
|
+
export type ListEventsProps = {
|
|
258
340
|
/**
|
|
259
341
|
* Unique identifier of a task run.
|
|
260
342
|
*/
|
|
@@ -294,19 +376,9 @@ export type GetEventsProps = {
|
|
|
294
376
|
};
|
|
295
377
|
|
|
296
378
|
/**
|
|
297
|
-
* Properties for the `
|
|
379
|
+
* Properties for the `listRuns` method.
|
|
298
380
|
*/
|
|
299
|
-
export type
|
|
300
|
-
/**
|
|
301
|
-
* Unique identifier of a task run.
|
|
302
|
-
*/
|
|
303
|
-
runID: string;
|
|
304
|
-
};
|
|
305
|
-
|
|
306
|
-
/**
|
|
307
|
-
* Properties for the `getRuns` method.
|
|
308
|
-
*/
|
|
309
|
-
export type GetRunsProps = {
|
|
381
|
+
export type ListRunsProps = {
|
|
310
382
|
/**
|
|
311
383
|
* Number of items per page.
|
|
312
384
|
*/
|
|
@@ -342,19 +414,9 @@ export type GetRunsProps = {
|
|
|
342
414
|
};
|
|
343
415
|
|
|
344
416
|
/**
|
|
345
|
-
* Properties for the `
|
|
417
|
+
* Properties for the `listSources` method.
|
|
346
418
|
*/
|
|
347
|
-
export type
|
|
348
|
-
/**
|
|
349
|
-
* Unique identifier of a source.
|
|
350
|
-
*/
|
|
351
|
-
sourceID: string;
|
|
352
|
-
};
|
|
353
|
-
|
|
354
|
-
/**
|
|
355
|
-
* Properties for the `getSources` method.
|
|
356
|
-
*/
|
|
357
|
-
export type GetSourcesProps = {
|
|
419
|
+
export type ListSourcesProps = {
|
|
358
420
|
/**
|
|
359
421
|
* Number of items per page.
|
|
360
422
|
*/
|
|
@@ -382,19 +444,51 @@ export type GetSourcesProps = {
|
|
|
382
444
|
};
|
|
383
445
|
|
|
384
446
|
/**
|
|
385
|
-
* Properties for the `
|
|
447
|
+
* Properties for the `listTasks` method.
|
|
386
448
|
*/
|
|
387
|
-
export type
|
|
449
|
+
export type ListTasksProps = {
|
|
388
450
|
/**
|
|
389
|
-
*
|
|
451
|
+
* Number of items per page.
|
|
390
452
|
*/
|
|
391
|
-
|
|
453
|
+
itemsPerPage?: number;
|
|
454
|
+
/**
|
|
455
|
+
* Page number of the paginated API response.
|
|
456
|
+
*/
|
|
457
|
+
page?: number;
|
|
458
|
+
/**
|
|
459
|
+
* Actions for filtering the list of tasks.
|
|
460
|
+
*/
|
|
461
|
+
action?: ActionType[];
|
|
462
|
+
/**
|
|
463
|
+
* Whether to filter the list of tasks by the `enabled` status.
|
|
464
|
+
*/
|
|
465
|
+
enabled?: boolean;
|
|
466
|
+
/**
|
|
467
|
+
* Source IDs for filtering the list of tasks.
|
|
468
|
+
*/
|
|
469
|
+
sourceID?: string[];
|
|
470
|
+
/**
|
|
471
|
+
* Destination IDs for filtering the list of tasks.
|
|
472
|
+
*/
|
|
473
|
+
destinationID?: string[];
|
|
474
|
+
/**
|
|
475
|
+
* Type of task trigger for filtering the list of tasks.
|
|
476
|
+
*/
|
|
477
|
+
triggerType?: TriggerType[];
|
|
478
|
+
/**
|
|
479
|
+
* Property by which to sort the list of tasks.
|
|
480
|
+
*/
|
|
481
|
+
sort?: TaskSortKeys;
|
|
482
|
+
/**
|
|
483
|
+
* Sort order of the response, ascending or descending.
|
|
484
|
+
*/
|
|
485
|
+
order?: OrderKeys;
|
|
392
486
|
};
|
|
393
487
|
|
|
394
488
|
/**
|
|
395
|
-
* Properties for the `
|
|
489
|
+
* Properties for the `listTasksV1` method.
|
|
396
490
|
*/
|
|
397
|
-
export type
|
|
491
|
+
export type ListTasksV1Props = {
|
|
398
492
|
/**
|
|
399
493
|
* Number of items per page.
|
|
400
494
|
*/
|
|
@@ -434,27 +528,31 @@ export type GetTasksProps = {
|
|
|
434
528
|
};
|
|
435
529
|
|
|
436
530
|
/**
|
|
437
|
-
* Properties for the `
|
|
531
|
+
* Properties for the `listTransformations` method.
|
|
438
532
|
*/
|
|
439
|
-
export type
|
|
533
|
+
export type ListTransformationsProps = {
|
|
440
534
|
/**
|
|
441
|
-
*
|
|
535
|
+
* Property by which to sort the list.
|
|
442
536
|
*/
|
|
443
|
-
|
|
537
|
+
sort?: SortKeys;
|
|
538
|
+
/**
|
|
539
|
+
* Sort order of the response, ascending or descending.
|
|
540
|
+
*/
|
|
541
|
+
order?: OrderKeys;
|
|
444
542
|
};
|
|
445
543
|
|
|
446
544
|
/**
|
|
447
|
-
* Properties for the `
|
|
545
|
+
* Properties for the `pushTask` method.
|
|
448
546
|
*/
|
|
449
|
-
export type
|
|
547
|
+
export type PushTaskProps = {
|
|
450
548
|
/**
|
|
451
|
-
*
|
|
549
|
+
* Unique identifier of a task.
|
|
452
550
|
*/
|
|
453
|
-
|
|
551
|
+
taskID: string;
|
|
454
552
|
/**
|
|
455
|
-
*
|
|
553
|
+
* Request body of a Search API `batch` request that will be pushed in the Connectors pipeline.
|
|
456
554
|
*/
|
|
457
|
-
|
|
555
|
+
batchWriteParams: BatchWriteParams;
|
|
458
556
|
};
|
|
459
557
|
|
|
460
558
|
/**
|
|
@@ -467,6 +565,16 @@ export type RunTaskProps = {
|
|
|
467
565
|
taskID: string;
|
|
468
566
|
};
|
|
469
567
|
|
|
568
|
+
/**
|
|
569
|
+
* Properties for the `runTaskV1` method.
|
|
570
|
+
*/
|
|
571
|
+
export type RunTaskV1Props = {
|
|
572
|
+
/**
|
|
573
|
+
* Unique identifier of a task.
|
|
574
|
+
*/
|
|
575
|
+
taskID: string;
|
|
576
|
+
};
|
|
577
|
+
|
|
470
578
|
/**
|
|
471
579
|
* Properties for the `triggerDockerSourceDiscover` method.
|
|
472
580
|
*/
|
|
@@ -521,6 +629,17 @@ export type UpdateTaskProps = {
|
|
|
521
629
|
taskUpdate: TaskUpdate;
|
|
522
630
|
};
|
|
523
631
|
|
|
632
|
+
/**
|
|
633
|
+
* Properties for the `updateTaskV1` method.
|
|
634
|
+
*/
|
|
635
|
+
export type UpdateTaskV1Props = {
|
|
636
|
+
/**
|
|
637
|
+
* Unique identifier of a task.
|
|
638
|
+
*/
|
|
639
|
+
taskID: string;
|
|
640
|
+
taskUpdate: TaskUpdateV1;
|
|
641
|
+
};
|
|
642
|
+
|
|
524
643
|
/**
|
|
525
644
|
* Properties for the `updateTransformation` method.
|
|
526
645
|
*/
|
package/model/index.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
|
+
export * from './action';
|
|
3
4
|
export * from './actionType';
|
|
4
5
|
export * from './authAPIKey';
|
|
5
6
|
export * from './authAPIKeyPartial';
|
|
@@ -23,6 +24,8 @@ export * from './authenticationSortKeys';
|
|
|
23
24
|
export * from './authenticationType';
|
|
24
25
|
export * from './authenticationUpdate';
|
|
25
26
|
export * from './authenticationUpdateResponse';
|
|
27
|
+
export * from './batchRequest';
|
|
28
|
+
export * from './batchWriteParams';
|
|
26
29
|
export * from './bigCommerceChannel';
|
|
27
30
|
export * from './bigCommerceMetafield';
|
|
28
31
|
export * from './bigQueryDataType';
|
|
@@ -52,6 +55,7 @@ export * from './listDestinationsResponse';
|
|
|
52
55
|
export * from './listEventsResponse';
|
|
53
56
|
export * from './listSourcesResponse';
|
|
54
57
|
export * from './listTasksResponse';
|
|
58
|
+
export * from './listTasksResponseV1';
|
|
55
59
|
export * from './listTransformationsResponse';
|
|
56
60
|
export * from './mappingFieldDirective';
|
|
57
61
|
export * from './mappingFormatSchema';
|
|
@@ -116,11 +120,14 @@ export * from './task';
|
|
|
116
120
|
export * from './taskCreate';
|
|
117
121
|
export * from './taskCreateResponse';
|
|
118
122
|
export * from './taskCreateTrigger';
|
|
123
|
+
export * from './taskCreateV1';
|
|
119
124
|
export * from './taskInput';
|
|
120
125
|
export * from './taskSearch';
|
|
121
126
|
export * from './taskSortKeys';
|
|
122
127
|
export * from './taskUpdate';
|
|
123
128
|
export * from './taskUpdateResponse';
|
|
129
|
+
export * from './taskUpdateV1';
|
|
130
|
+
export * from './taskV1';
|
|
124
131
|
export * from './transformation';
|
|
125
132
|
export * from './transformationCreate';
|
|
126
133
|
export * from './transformationCreateResponse';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
import type { Pagination } from './pagination';
|
|
4
|
+
import type { TaskV1 } from './taskV1';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Configured tasks and pagination information.
|
|
8
|
+
*/
|
|
9
|
+
export type ListTasksResponseV1 = {
|
|
10
|
+
tasks: TaskV1[];
|
|
11
|
+
|
|
12
|
+
pagination: Pagination;
|
|
13
|
+
};
|
package/model/task.ts
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import type { ActionType } from './actionType';
|
|
4
4
|
import type { TaskInput } from './taskInput';
|
|
5
|
-
import type { Trigger } from './trigger';
|
|
6
5
|
|
|
7
6
|
export type Task = {
|
|
8
7
|
/**
|
|
@@ -20,7 +19,20 @@ export type Task = {
|
|
|
20
19
|
*/
|
|
21
20
|
destinationID: string;
|
|
22
21
|
|
|
23
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Cron expression for the task\'s schedule.
|
|
24
|
+
*/
|
|
25
|
+
cron?: string;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* The last time the scheduled task ran in RFC 3339 format.
|
|
29
|
+
*/
|
|
30
|
+
lastRun?: string;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The next scheduled run of the task in RFC 3339 format.
|
|
34
|
+
*/
|
|
35
|
+
nextRun?: string;
|
|
24
36
|
|
|
25
37
|
input?: TaskInput;
|
|
26
38
|
|
package/model/taskCreate.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
import type { ActionType } from './actionType';
|
|
4
|
-
import type { TaskCreateTrigger } from './taskCreateTrigger';
|
|
5
4
|
import type { TaskInput } from './taskInput';
|
|
6
5
|
|
|
7
6
|
/**
|
|
@@ -18,10 +17,13 @@ export type TaskCreate = {
|
|
|
18
17
|
*/
|
|
19
18
|
destinationID: string;
|
|
20
19
|
|
|
21
|
-
trigger: TaskCreateTrigger;
|
|
22
|
-
|
|
23
20
|
action: ActionType;
|
|
24
21
|
|
|
22
|
+
/**
|
|
23
|
+
* Cron expression for the task\'s schedule.
|
|
24
|
+
*/
|
|
25
|
+
cron?: string;
|
|
26
|
+
|
|
25
27
|
/**
|
|
26
28
|
* Whether the task is enabled.
|
|
27
29
|
*/
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
import type { ActionType } from './actionType';
|
|
4
|
+
import type { TaskCreateTrigger } from './taskCreateTrigger';
|
|
5
|
+
import type { TaskInput } from './taskInput';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* API request body for creating a task using the V1 shape, please use methods and types that don\'t contain the V1 suffix.
|
|
9
|
+
*/
|
|
10
|
+
export type TaskCreateV1 = {
|
|
11
|
+
/**
|
|
12
|
+
* Universally uniqud identifier (UUID) of a source.
|
|
13
|
+
*/
|
|
14
|
+
sourceID: string;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Universally unique identifier (UUID) of a destination resource.
|
|
18
|
+
*/
|
|
19
|
+
destinationID: string;
|
|
20
|
+
|
|
21
|
+
trigger: TaskCreateTrigger;
|
|
22
|
+
|
|
23
|
+
action: ActionType;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Whether the task is enabled.
|
|
27
|
+
*/
|
|
28
|
+
enabled?: boolean;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Maximum accepted percentage of failures for a task run to finish successfully.
|
|
32
|
+
*/
|
|
33
|
+
failureThreshold?: number;
|
|
34
|
+
|
|
35
|
+
input?: TaskInput;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Date of the last cursor in RFC 3339 format.
|
|
39
|
+
*/
|
|
40
|
+
cursor?: string;
|
|
41
|
+
};
|
package/model/taskUpdate.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
import type { TaskInput } from './taskInput';
|
|
4
|
-
import type { TriggerUpdateInput } from './triggerUpdateInput';
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* API request body for updating a task.
|
|
@@ -12,7 +11,10 @@ export type TaskUpdate = {
|
|
|
12
11
|
*/
|
|
13
12
|
destinationID?: string;
|
|
14
13
|
|
|
15
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Cron expression for the task\'s schedule.
|
|
16
|
+
*/
|
|
17
|
+
cron?: string;
|
|
16
18
|
|
|
17
19
|
input?: TaskInput;
|
|
18
20
|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
import type { TaskInput } from './taskInput';
|
|
4
|
+
import type { TriggerUpdateInput } from './triggerUpdateInput';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* API request body for updating a task using the V1 shape, please use methods and types that don\'t contain the V1 suffix.
|
|
8
|
+
*/
|
|
9
|
+
export type TaskUpdateV1 = {
|
|
10
|
+
/**
|
|
11
|
+
* Universally unique identifier (UUID) of a destination resource.
|
|
12
|
+
*/
|
|
13
|
+
destinationID?: string;
|
|
14
|
+
|
|
15
|
+
trigger?: TriggerUpdateInput;
|
|
16
|
+
|
|
17
|
+
input?: TaskInput;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Whether the task is enabled.
|
|
21
|
+
*/
|
|
22
|
+
enabled?: boolean;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Maximum accepted percentage of failures for a task run to finish successfully.
|
|
26
|
+
*/
|
|
27
|
+
failureThreshold?: number;
|
|
28
|
+
};
|
package/model/taskV1.ts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
import type { ActionType } from './actionType';
|
|
4
|
+
import type { TaskInput } from './taskInput';
|
|
5
|
+
import type { Trigger } from './trigger';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The V1 task object, please use methods and types that don\'t contain the V1 suffix.
|
|
9
|
+
*/
|
|
10
|
+
export type TaskV1 = {
|
|
11
|
+
/**
|
|
12
|
+
* Universally unique identifier (UUID) of a task.
|
|
13
|
+
*/
|
|
14
|
+
taskID: string;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Universally uniqud identifier (UUID) of a source.
|
|
18
|
+
*/
|
|
19
|
+
sourceID: string;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Universally unique identifier (UUID) of a destination resource.
|
|
23
|
+
*/
|
|
24
|
+
destinationID: string;
|
|
25
|
+
|
|
26
|
+
trigger: Trigger;
|
|
27
|
+
|
|
28
|
+
input?: TaskInput;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Whether the task is enabled.
|
|
32
|
+
*/
|
|
33
|
+
enabled: boolean;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Maximum accepted percentage of failures for a task run to finish successfully.
|
|
37
|
+
*/
|
|
38
|
+
failureThreshold?: number;
|
|
39
|
+
|
|
40
|
+
action: ActionType;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Date of the last cursor in RFC 3339 format.
|
|
44
|
+
*/
|
|
45
|
+
cursor?: string;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Date of creation in RFC 3339 format.
|
|
49
|
+
*/
|
|
50
|
+
createdAt: string;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Date of last update in RFC 3339 format.
|
|
54
|
+
*/
|
|
55
|
+
updatedAt?: string;
|
|
56
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@algolia/ingestion",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.12",
|
|
4
4
|
"description": "JavaScript client for ingestion",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
"clean": "rm -rf ./dist || true"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@algolia/client-common": "5.0.0-beta.
|
|
46
|
-
"@algolia/requester-browser-xhr": "5.0.0-beta.
|
|
47
|
-
"@algolia/requester-node-http": "5.0.0-beta.
|
|
45
|
+
"@algolia/client-common": "5.0.0-beta.13",
|
|
46
|
+
"@algolia/requester-browser-xhr": "5.0.0-beta.13",
|
|
47
|
+
"@algolia/requester-node-http": "5.0.0-beta.13"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@types/node": "20.14.
|
|
50
|
+
"@types/node": "20.14.11",
|
|
51
51
|
"rollup": "4.18.1",
|
|
52
52
|
"typescript": "5.5.3"
|
|
53
53
|
},
|