@ingestro/pipelines-vanilla-js 1.1.0 → 1.4.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 +554 -586
- package/package.json +1 -1
- package/types/index.d.ts +37 -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
|
+
onSuccessContinue?: ICreatePipelineOnSuccessContinue;
|
|
275
276
|
};
|
|
276
277
|
|
|
277
278
|
export type ICreatePipelineProps = ICreatePipeline;
|
|
@@ -307,6 +308,12 @@ export type ICreatePipelineOnPipelineCreate = (
|
|
|
307
308
|
args: ICreatePipelineOnPipelineCreateProps
|
|
308
309
|
) => void;
|
|
309
310
|
|
|
311
|
+
export type ICreatePipelineOnSuccessContinue = ({
|
|
312
|
+
data,
|
|
313
|
+
}: {
|
|
314
|
+
data: IPipelineDetails;
|
|
315
|
+
}) => void;
|
|
316
|
+
|
|
310
317
|
export type IOnClose = () => void;
|
|
311
318
|
|
|
312
319
|
export type IConnectorType = 'input' | 'output';
|
|
@@ -334,6 +341,7 @@ export type ISettingsBase = {
|
|
|
334
341
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
335
342
|
i18nOverrides?: any; // I18nOverrides;
|
|
336
343
|
modal?: boolean;
|
|
344
|
+
baseUrl?: string;
|
|
337
345
|
};
|
|
338
346
|
|
|
339
347
|
export type ICreatePipelineSettings = ISettingsBase & {
|
|
@@ -379,6 +387,7 @@ export type ICreatePipelineHooksLogs = {
|
|
|
379
387
|
hasOnConnectorCreate: boolean;
|
|
380
388
|
hasOnTdmCreate: boolean;
|
|
381
389
|
hasOnExecutionView: boolean;
|
|
390
|
+
hasOnSuccessContinue: boolean;
|
|
382
391
|
};
|
|
383
392
|
|
|
384
393
|
export type IExecutionDetailsHooksLogs = {
|
|
@@ -420,12 +429,20 @@ export type IPipelineDetailsProps = {
|
|
|
420
429
|
onConnectorCreate?: IOnConnectorCreate;
|
|
421
430
|
onTdmCreate?: IOnTDMCreate;
|
|
422
431
|
onPipelineUpdate?: IOnPipelineUpdate;
|
|
423
|
-
onExecutionRun?:
|
|
432
|
+
onExecutionRun?: IPipelineDetailsOnExecutionRun;
|
|
424
433
|
onExecutionView?: IOnExecutionView;
|
|
425
434
|
// NOTE: scoped out
|
|
426
435
|
// onPipelineDuplicate?: IOnPipelineDuplicate;
|
|
427
436
|
};
|
|
428
437
|
|
|
438
|
+
export type IPipelineDetailsOnExecutionRun = ({
|
|
439
|
+
data,
|
|
440
|
+
}: {
|
|
441
|
+
data?: IExecutionDataResponse;
|
|
442
|
+
pipeline?: IPipelineDetailsConfiguration;
|
|
443
|
+
isManualTrigger?: boolean;
|
|
444
|
+
}) => void;
|
|
445
|
+
|
|
429
446
|
export type IOnPipelineDelete = (
|
|
430
447
|
pipeline: IPipelineDetailsConfiguration
|
|
431
448
|
) => void;
|
|
@@ -535,6 +552,8 @@ export enum ExecutionErrorType {
|
|
|
535
552
|
FETCH_OPTION_FAILURE = 'FETCH_OPTION_FAILURE',
|
|
536
553
|
ADVANCED_CLEANING_FAILURE = 'ADVANCED_CLEANING_FAILURE',
|
|
537
554
|
ADVANCED_VALIDATION_FAILURE = 'ADVANCED_VALIDATION_FAILURE',
|
|
555
|
+
SHEET_NOT_FOUND_BY_NAME = 'SHEET_NOT_FOUND_BY_NAME',
|
|
556
|
+
SHEET_NOT_FOUND_BY_INDEX = 'SHEET_NOT_FOUND_BY_INDEX',
|
|
538
557
|
}
|
|
539
558
|
|
|
540
559
|
export enum IFrequency {
|
|
@@ -669,6 +688,7 @@ export type ICreateConnectorProps = {
|
|
|
669
688
|
configuration?: ICreateConnectorConfiguration;
|
|
670
689
|
settings?: ICreateConnectorSettings;
|
|
671
690
|
onConnectorCreate?: ICreateConnectorOnConnectorCreate;
|
|
691
|
+
onSuccessContinue?: ICreateConnectorOnSuccessContinue;
|
|
672
692
|
onClose?: IOnClose;
|
|
673
693
|
};
|
|
674
694
|
|
|
@@ -688,8 +708,12 @@ export type ICreateConnectorOnConnectorCreate = ({
|
|
|
688
708
|
data: IConnectorDetailResponse;
|
|
689
709
|
}) => void;
|
|
690
710
|
|
|
711
|
+
export type ICreateConnectorOnSuccessContinue =
|
|
712
|
+
ICreateConnectorOnConnectorCreate;
|
|
713
|
+
|
|
691
714
|
export type ICreateConnectorHooksLogs = {
|
|
692
715
|
hasOnConnectorCreate: boolean;
|
|
716
|
+
hasOnSuccessContinue: boolean;
|
|
693
717
|
hasOnClose: boolean;
|
|
694
718
|
};
|
|
695
719
|
|
|
@@ -713,6 +737,7 @@ export type ICreateTargetDataModelProps = {
|
|
|
713
737
|
configuration?: ICreateTargetDataModelConfiguration;
|
|
714
738
|
settings?: ISettingsBase;
|
|
715
739
|
onTargetDataModelCreate?: ICreateTargetDataModelOnTargetDataModelCreate;
|
|
740
|
+
onSuccessContinue?: ICreateTargetDataModelOnSuccessContinue;
|
|
716
741
|
onClose?: IOnClose;
|
|
717
742
|
};
|
|
718
743
|
|
|
@@ -726,9 +751,13 @@ export type ICreateTargetDataModelOnTargetDataModelCreate = ({
|
|
|
726
751
|
data: ITdmItemResponse;
|
|
727
752
|
}) => void;
|
|
728
753
|
|
|
754
|
+
export type ICreateTargetDataModelOnSuccessContinue =
|
|
755
|
+
ICreateTargetDataModelOnTargetDataModelCreate;
|
|
756
|
+
|
|
729
757
|
export type ICreateTargetDataModelHooksLogs = {
|
|
730
758
|
hasOnTargetDataModelCreate: boolean;
|
|
731
759
|
hasOnClose: boolean;
|
|
760
|
+
hasOnSuccessContinue: boolean;
|
|
732
761
|
};
|
|
733
762
|
|
|
734
763
|
export enum FileType {
|
|
@@ -778,7 +807,13 @@ export type IOnTargetDataModelDelete = ({
|
|
|
778
807
|
export type ITargetDataModelDetailsProps = {
|
|
779
808
|
accessToken: string;
|
|
780
809
|
targetDataModelId: string;
|
|
781
|
-
settings?: ISettingsBase
|
|
810
|
+
settings?: ISettingsBase & {
|
|
811
|
+
aiFeatures?: {
|
|
812
|
+
createTdmFromFile?: boolean;
|
|
813
|
+
createTdmFromPrompt?: boolean;
|
|
814
|
+
addOptionsFromFile?: boolean;
|
|
815
|
+
};
|
|
816
|
+
};
|
|
782
817
|
onTargetDataModelUpdate?: IOnTargetDataModelUpdate;
|
|
783
818
|
onTargetDataModelDelete?: IOnTargetDataModelDelete;
|
|
784
819
|
onClose?: IOnClose;
|