@ingestro/pipelines-vanilla-js 1.0.1 → 1.2.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/index.css +1 -1
- package/lib/index.js +586 -510
- package/package.json +1 -1
- package/types/index.d.ts +19 -2
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -272,6 +272,7 @@ export type ICreatePipeline = {
|
|
|
272
272
|
onTdmCreate?: IOnTDMCreate;
|
|
273
273
|
onExecutionView?: ICreatePipelineOnExecutionView;
|
|
274
274
|
onClose?: IOnClose;
|
|
275
|
+
onComplete?: ICreatePipelineOnComplete;
|
|
275
276
|
};
|
|
276
277
|
|
|
277
278
|
export type ICreatePipelineProps = ICreatePipeline;
|
|
@@ -307,6 +308,8 @@ export type ICreatePipelineOnPipelineCreate = (
|
|
|
307
308
|
args: ICreatePipelineOnPipelineCreateProps
|
|
308
309
|
) => void;
|
|
309
310
|
|
|
311
|
+
export type ICreatePipelineOnComplete = ICreatePipelineOnPipelineCreate;
|
|
312
|
+
|
|
310
313
|
export type IOnClose = () => void;
|
|
311
314
|
|
|
312
315
|
export type IConnectorType = 'input' | 'output';
|
|
@@ -334,6 +337,7 @@ export type ISettingsBase = {
|
|
|
334
337
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
335
338
|
i18nOverrides?: any; // I18nOverrides;
|
|
336
339
|
modal?: boolean;
|
|
340
|
+
baseUrl?: string;
|
|
337
341
|
};
|
|
338
342
|
|
|
339
343
|
export type ICreatePipelineSettings = ISettingsBase & {
|
|
@@ -341,16 +345,21 @@ export type ICreatePipelineSettings = ISettingsBase & {
|
|
|
341
345
|
allowInputConnectorCreation?: boolean;
|
|
342
346
|
allowOutputConnectorCreation?: boolean;
|
|
343
347
|
runPipelineOnCreation?: boolean;
|
|
348
|
+
sampleSize?: number;
|
|
344
349
|
};
|
|
345
350
|
|
|
346
351
|
export type IExecutionDetailsProps = {
|
|
347
352
|
accessToken: string;
|
|
348
353
|
executionId: string;
|
|
349
|
-
settings?:
|
|
354
|
+
settings?: IExecutionDetailsSettings;
|
|
350
355
|
onExecutionRun?: IOnExecutionRun;
|
|
351
356
|
onClose?: IOnClose;
|
|
352
357
|
};
|
|
353
358
|
|
|
359
|
+
export type IExecutionDetailsSettings = ISettingsBase & {
|
|
360
|
+
sampleSize?: number;
|
|
361
|
+
};
|
|
362
|
+
|
|
354
363
|
export type IOnExecutionRun = ({
|
|
355
364
|
data,
|
|
356
365
|
}: {
|
|
@@ -415,12 +424,20 @@ export type IPipelineDetailsProps = {
|
|
|
415
424
|
onConnectorCreate?: IOnConnectorCreate;
|
|
416
425
|
onTdmCreate?: IOnTDMCreate;
|
|
417
426
|
onPipelineUpdate?: IOnPipelineUpdate;
|
|
418
|
-
onExecutionRun?:
|
|
427
|
+
onExecutionRun?: IPipelineDetailsOnExecutionRun;
|
|
419
428
|
onExecutionView?: IOnExecutionView;
|
|
420
429
|
// NOTE: scoped out
|
|
421
430
|
// onPipelineDuplicate?: IOnPipelineDuplicate;
|
|
422
431
|
};
|
|
423
432
|
|
|
433
|
+
export type IPipelineDetailsOnExecutionRun = ({
|
|
434
|
+
data,
|
|
435
|
+
}: {
|
|
436
|
+
data?: IExecutionDataResponse;
|
|
437
|
+
pipeline?: IPipelineDetailsConfiguration;
|
|
438
|
+
isManualTrigger?: boolean;
|
|
439
|
+
}) => void;
|
|
440
|
+
|
|
424
441
|
export type IOnPipelineDelete = (
|
|
425
442
|
pipeline: IPipelineDetailsConfiguration
|
|
426
443
|
) => void;
|