@membranehq/sdk 0.5.1 → 0.6.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/dist/bundle.d.ts +1949 -3947
- package/dist/bundle.js +9 -4
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/action-instances-accessors.d.ts +5 -2
- package/dist/dts/accessors/actions-accessors.d.ts +2 -2
- package/dist/dts/accessors/connections-accessors.d.ts +8 -22
- package/dist/dts/accessors/integrations-accessors.d.ts +8 -22
- package/dist/dts/errors/index.d.ts +10 -1
- package/dist/dts/workspace-elements/api/action-instances-api.d.ts +122 -68
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +74 -189
- package/dist/dts/workspace-elements/api/actions-api.d.ts +253 -531
- package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +21 -21
- package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +7 -7
- package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +22 -22
- package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +18 -18
- package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +7 -7
- package/dist/dts/workspace-elements/api/connections-api.d.ts +354 -273
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +55 -149
- package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +7 -7
- package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +60 -154
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +62 -254
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +45 -139
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +45 -139
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +40 -134
- package/dist/dts/workspace-elements/api/external-events-api.d.ts +20 -128
- package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +158 -374
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +56 -248
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +140 -356
- package/dist/dts/workspace-elements/api/flows-api.d.ts +265 -753
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +135 -101
- package/dist/dts/workspace-elements/api/scenarios-api.d.ts +21 -105
- package/dist/dts/workspace-elements/base/action-instances/types.d.ts +13 -13
- package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +4 -3
- package/dist/dts/workspace-elements/base/actions/index.d.ts +111 -1
- package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +11 -10
- package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +7 -7
- package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +7 -7
- package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +7 -7
- package/dist/dts/workspace-elements/base/connections/types.d.ts +14 -19
- package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +7 -7
- package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +7 -7
- package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +10 -9
- package/dist/dts/workspace-elements/base/data-sources/types.d.ts +8 -8
- package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +4 -3
- package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +4 -3
- package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +4 -3
- package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +11 -10
- package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +9 -9
- package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +12 -12
- package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +17 -16
- package/dist/dts/workspace-elements/base/flow-runs/flow-node-runs.d.ts +16 -16
- package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +6 -5
- package/dist/dts/workspace-elements/base/flows/types.d.ts +21 -21
- package/dist/dts/workspace-elements/base/integrations/types.d.ts +48 -455
- package/dist/dts/workspace-elements/base/scenarios/types.d.ts +7 -7
- package/dist/dts/workspace-elements/types.d.ts +53 -9
- package/dist/dts/workspace-elements-catalog/index.d.ts +3 -0
- package/dist/dts/workspaces/types.d.ts +3 -1
- package/dist/index.d.ts +2791 -5337
- package/dist/index.js +70 -66
- package/dist/index.js.map +1 -1
- package/dist/index.module.d.mts +2791 -5337
- package/dist/index.module.mjs +67 -66
- package/dist/index.module.mjs.map +1 -1
- package/package.json +1 -3
- package/dist/dts/workspace-elements/base/actions/types.d.ts +0 -85
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { ErrorDataSchema } from '../../../errors';
|
|
2
3
|
export declare const BaseDataSourceInstance: z.ZodObject<{
|
|
3
4
|
id: z.ZodString;
|
|
4
|
-
name: z.ZodString;
|
|
5
5
|
key: z.ZodOptional<z.ZodString>;
|
|
6
6
|
uuid: z.ZodOptional<z.ZodString>;
|
|
7
7
|
description: z.ZodOptional<z.ZodString>;
|
|
8
|
+
name: z.ZodString;
|
|
8
9
|
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
9
|
-
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
10
10
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
11
11
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
12
12
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
13
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
13
14
|
} & {
|
|
14
15
|
userId: z.ZodString;
|
|
15
16
|
revision: z.ZodString;
|
|
@@ -715,7 +716,7 @@ export declare const BaseDataSourceInstance: z.ZodObject<{
|
|
|
715
716
|
customFields?: boolean | undefined;
|
|
716
717
|
}>>;
|
|
717
718
|
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
718
|
-
errors: z.ZodOptional<z.ZodArray<
|
|
719
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
|
|
719
720
|
pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
|
|
720
721
|
fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
|
|
721
722
|
path: z.ZodOptional<z.ZodString>;
|
|
@@ -732,12 +733,13 @@ export declare const BaseDataSourceInstance: z.ZodObject<{
|
|
|
732
733
|
uuid?: string | undefined;
|
|
733
734
|
description?: string | undefined;
|
|
734
735
|
state?: import("../../types").WorkspaceElementState | undefined;
|
|
735
|
-
errors?:
|
|
736
|
-
isDeactivated?: boolean | undefined;
|
|
736
|
+
errors?: ErrorDataSchema[] | undefined;
|
|
737
737
|
createdAt?: string | undefined;
|
|
738
738
|
updatedAt?: string | undefined;
|
|
739
739
|
archivedAt?: string | undefined;
|
|
740
|
+
isDeactivated?: boolean | undefined;
|
|
740
741
|
instanceKey?: string | undefined;
|
|
742
|
+
dataSourceId?: string | undefined;
|
|
741
743
|
udm?: string | undefined;
|
|
742
744
|
collectionSpec?: {
|
|
743
745
|
type: "collection";
|
|
@@ -874,7 +876,6 @@ export declare const BaseDataSourceInstance: z.ZodObject<{
|
|
|
874
876
|
} | undefined;
|
|
875
877
|
customFields?: boolean | undefined;
|
|
876
878
|
} | undefined;
|
|
877
|
-
dataSourceId?: string | undefined;
|
|
878
879
|
isCustomized?: boolean | undefined;
|
|
879
880
|
dataSourceRevision?: string | undefined;
|
|
880
881
|
universalDataSourceId?: string | undefined;
|
|
@@ -897,12 +898,13 @@ export declare const BaseDataSourceInstance: z.ZodObject<{
|
|
|
897
898
|
uuid?: string | undefined;
|
|
898
899
|
description?: string | undefined;
|
|
899
900
|
state?: import("../../types").WorkspaceElementState | undefined;
|
|
900
|
-
errors?:
|
|
901
|
-
isDeactivated?: boolean | undefined;
|
|
901
|
+
errors?: ErrorDataSchema[] | undefined;
|
|
902
902
|
createdAt?: string | undefined;
|
|
903
903
|
updatedAt?: string | undefined;
|
|
904
904
|
archivedAt?: string | undefined;
|
|
905
|
+
isDeactivated?: boolean | undefined;
|
|
905
906
|
instanceKey?: string | undefined;
|
|
907
|
+
dataSourceId?: string | undefined;
|
|
906
908
|
udm?: string | undefined;
|
|
907
909
|
collectionSpec?: {
|
|
908
910
|
type: "collection";
|
|
@@ -1039,7 +1041,6 @@ export declare const BaseDataSourceInstance: z.ZodObject<{
|
|
|
1039
1041
|
} | undefined;
|
|
1040
1042
|
customFields?: boolean | undefined;
|
|
1041
1043
|
} | undefined;
|
|
1042
|
-
dataSourceId?: string | undefined;
|
|
1043
1044
|
isCustomized?: boolean | undefined;
|
|
1044
1045
|
dataSourceRevision?: string | undefined;
|
|
1045
1046
|
universalDataSourceId?: string | undefined;
|
|
@@ -27,12 +27,12 @@ export declare const DataSourceUnitConfig: z.ZodObject<{
|
|
|
27
27
|
export type DataSourceUnitConfig = z.infer<typeof DataSourceUnitConfig>;
|
|
28
28
|
export declare const BaseDataSource: z.ZodObject<{
|
|
29
29
|
id: z.ZodString;
|
|
30
|
-
name: z.ZodString;
|
|
31
30
|
key: z.ZodOptional<z.ZodString>;
|
|
32
31
|
uuid: z.ZodOptional<z.ZodString>;
|
|
33
32
|
description: z.ZodOptional<z.ZodString>;
|
|
33
|
+
name: z.ZodString;
|
|
34
34
|
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
35
|
-
errors: z.ZodOptional<z.ZodArray<
|
|
35
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, z.ZodTypeDef, import("../../..").ErrorDataSchema>, "many">>;
|
|
36
36
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
37
37
|
} & {
|
|
38
38
|
revision: z.ZodString;
|
|
@@ -58,15 +58,15 @@ export declare const BaseDataSource: z.ZodObject<{
|
|
|
58
58
|
uuid?: string | undefined;
|
|
59
59
|
description?: string | undefined;
|
|
60
60
|
state?: import("../../types").WorkspaceElementState | undefined;
|
|
61
|
-
errors?:
|
|
62
|
-
isDeactivated?: boolean | undefined;
|
|
61
|
+
errors?: import("../../..").ErrorDataSchema[] | undefined;
|
|
63
62
|
createdAt?: string | undefined;
|
|
64
63
|
updatedAt?: string | undefined;
|
|
65
64
|
archivedAt?: string | undefined;
|
|
65
|
+
isDeactivated?: boolean | undefined;
|
|
66
66
|
integrationId?: string | undefined;
|
|
67
|
-
udm?: string | undefined;
|
|
68
67
|
publishedRevision?: string | undefined;
|
|
69
68
|
customized?: boolean | undefined;
|
|
69
|
+
udm?: string | undefined;
|
|
70
70
|
universalDataSourceId?: string | undefined;
|
|
71
71
|
collectionKey?: string | undefined;
|
|
72
72
|
collectionParameters?: any;
|
|
@@ -82,15 +82,15 @@ export declare const BaseDataSource: z.ZodObject<{
|
|
|
82
82
|
uuid?: string | undefined;
|
|
83
83
|
description?: string | undefined;
|
|
84
84
|
state?: import("../../types").WorkspaceElementState | undefined;
|
|
85
|
-
errors?:
|
|
86
|
-
isDeactivated?: boolean | undefined;
|
|
85
|
+
errors?: import("../../..").ErrorDataSchema[] | undefined;
|
|
87
86
|
createdAt?: string | undefined;
|
|
88
87
|
updatedAt?: string | undefined;
|
|
89
88
|
archivedAt?: string | undefined;
|
|
89
|
+
isDeactivated?: boolean | undefined;
|
|
90
90
|
integrationId?: string | undefined;
|
|
91
|
-
udm?: string | undefined;
|
|
92
91
|
publishedRevision?: string | undefined;
|
|
93
92
|
customized?: boolean | undefined;
|
|
93
|
+
udm?: string | undefined;
|
|
94
94
|
universalDataSourceId?: string | undefined;
|
|
95
95
|
collectionKey?: string | undefined;
|
|
96
96
|
collectionParameters?: any;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { ErrorDataSchema } from '../../../errors';
|
|
2
3
|
export declare enum ExternalEventLogStatus {
|
|
3
4
|
CREATED = "created",
|
|
4
5
|
ERROR = "error",
|
|
@@ -14,7 +15,7 @@ export declare const BaseExternalEventLogRecord: z.ZodObject<{
|
|
|
14
15
|
payload: z.ZodOptional<z.ZodAny>;
|
|
15
16
|
launchedFlowRunIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
16
17
|
status: z.ZodNativeEnum<typeof ExternalEventLogStatus>;
|
|
17
|
-
error:
|
|
18
|
+
error: z.ZodOptional<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>>;
|
|
18
19
|
}, "strip", z.ZodTypeAny, {
|
|
19
20
|
status: ExternalEventLogStatus;
|
|
20
21
|
id: string;
|
|
@@ -22,7 +23,7 @@ export declare const BaseExternalEventLogRecord: z.ZodObject<{
|
|
|
22
23
|
connectionId: string;
|
|
23
24
|
integrationId: string;
|
|
24
25
|
externalEventSubscriptionId: string;
|
|
25
|
-
error?:
|
|
26
|
+
error?: ErrorDataSchema | undefined;
|
|
26
27
|
name?: string | undefined;
|
|
27
28
|
payload?: any;
|
|
28
29
|
launchedFlowRunIds?: string[] | undefined;
|
|
@@ -33,7 +34,7 @@ export declare const BaseExternalEventLogRecord: z.ZodObject<{
|
|
|
33
34
|
connectionId: string;
|
|
34
35
|
integrationId: string;
|
|
35
36
|
externalEventSubscriptionId: string;
|
|
36
|
-
error?:
|
|
37
|
+
error?: ErrorDataSchema | undefined;
|
|
37
38
|
name?: string | undefined;
|
|
38
39
|
payload?: any;
|
|
39
40
|
launchedFlowRunIds?: string[] | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { ErrorDataSchema } from '../../../errors';
|
|
2
3
|
export declare enum ExternalEventPullStatus {
|
|
3
4
|
RUNNING = "running",
|
|
4
5
|
SUCCESS = "success",
|
|
@@ -17,7 +18,7 @@ export declare const BaseExternalEventPull: z.ZodObject<{
|
|
|
17
18
|
isFullScan: z.ZodOptional<z.ZodBoolean>;
|
|
18
19
|
status: z.ZodNativeEnum<typeof ExternalEventPullStatus>;
|
|
19
20
|
collectedEventIds: z.ZodArray<z.ZodString, "many">;
|
|
20
|
-
error:
|
|
21
|
+
error: z.ZodOptional<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>>;
|
|
21
22
|
}, "strip", z.ZodTypeAny, {
|
|
22
23
|
status: ExternalEventPullStatus;
|
|
23
24
|
id: string;
|
|
@@ -28,7 +29,7 @@ export declare const BaseExternalEventPull: z.ZodObject<{
|
|
|
28
29
|
endDatetime: string;
|
|
29
30
|
externalEventSubscriptionId: string;
|
|
30
31
|
collectedEventIds: string[];
|
|
31
|
-
error?:
|
|
32
|
+
error?: ErrorDataSchema | undefined;
|
|
32
33
|
name?: string | undefined;
|
|
33
34
|
isFullScan?: boolean | undefined;
|
|
34
35
|
}, {
|
|
@@ -41,7 +42,7 @@ export declare const BaseExternalEventPull: z.ZodObject<{
|
|
|
41
42
|
endDatetime: string;
|
|
42
43
|
externalEventSubscriptionId: string;
|
|
43
44
|
collectedEventIds: string[];
|
|
44
|
-
error?:
|
|
45
|
+
error?: ErrorDataSchema | undefined;
|
|
45
46
|
name?: string | undefined;
|
|
46
47
|
isFullScan?: boolean | undefined;
|
|
47
48
|
}>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { ErrorDataSchema } from '../../../errors';
|
|
2
3
|
export declare enum ExternalEventSubscriptionStatus {
|
|
3
4
|
Subscribed = "subscribed",
|
|
4
5
|
Unsubscribed = "unsubscribed",
|
|
@@ -130,7 +131,7 @@ export declare const BaseExternalEventSubscription: z.ZodObject<{
|
|
|
130
131
|
} | undefined;
|
|
131
132
|
}>>;
|
|
132
133
|
status: z.ZodOptional<z.ZodNativeEnum<typeof ExternalEventSubscriptionStatus>>;
|
|
133
|
-
error:
|
|
134
|
+
error: z.ZodOptional<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>>;
|
|
134
135
|
isRealTime: z.ZodOptional<z.ZodBoolean>;
|
|
135
136
|
requiresPull: z.ZodOptional<z.ZodBoolean>;
|
|
136
137
|
requiresFullSync: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -149,7 +150,7 @@ export declare const BaseExternalEventSubscription: z.ZodObject<{
|
|
|
149
150
|
connectionId: string;
|
|
150
151
|
integrationId: string;
|
|
151
152
|
status?: ExternalEventSubscriptionStatus | undefined;
|
|
152
|
-
error?:
|
|
153
|
+
error?: ErrorDataSchema | undefined;
|
|
153
154
|
name?: string | undefined;
|
|
154
155
|
createdAt?: string | undefined;
|
|
155
156
|
archivedAt?: string | undefined;
|
|
@@ -183,7 +184,7 @@ export declare const BaseExternalEventSubscription: z.ZodObject<{
|
|
|
183
184
|
connectionId: string;
|
|
184
185
|
integrationId: string;
|
|
185
186
|
status?: ExternalEventSubscriptionStatus | undefined;
|
|
186
|
-
error?:
|
|
187
|
+
error?: ErrorDataSchema | undefined;
|
|
187
188
|
name?: string | undefined;
|
|
188
189
|
createdAt?: string | undefined;
|
|
189
190
|
archivedAt?: string | undefined;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { DataSchema } from '../../../data-schema';
|
|
3
|
+
import { ErrorDataSchema } from '../../../errors';
|
|
3
4
|
import { WorkspaceElementState } from '../../types';
|
|
4
5
|
import { FieldMappingDirection } from '../field-mappings/types';
|
|
5
6
|
export declare const BaseFieldMappingInstance: z.ZodObject<{
|
|
6
7
|
id: z.ZodString;
|
|
7
|
-
name: z.ZodString;
|
|
8
8
|
key: z.ZodOptional<z.ZodString>;
|
|
9
9
|
uuid: z.ZodOptional<z.ZodString>;
|
|
10
10
|
description: z.ZodOptional<z.ZodString>;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
|
|
13
13
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
14
14
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
15
15
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
16
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
16
17
|
} & {
|
|
17
18
|
userId: z.ZodString;
|
|
18
19
|
revision: z.ZodString;
|
|
@@ -33,7 +34,7 @@ export declare const BaseFieldMappingInstance: z.ZodObject<{
|
|
|
33
34
|
frozenImportFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
34
35
|
frozenExportFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
35
36
|
state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
|
|
36
|
-
error:
|
|
37
|
+
error: z.ZodOptional<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>>;
|
|
37
38
|
externalSchema: z.ZodOptional<z.ZodAny>;
|
|
38
39
|
}, "strip", z.ZodTypeAny, {
|
|
39
40
|
id: string;
|
|
@@ -43,15 +44,15 @@ export declare const BaseFieldMappingInstance: z.ZodObject<{
|
|
|
43
44
|
connectionId: string;
|
|
44
45
|
integrationId: string;
|
|
45
46
|
key?: string | undefined;
|
|
46
|
-
error?:
|
|
47
|
+
error?: ErrorDataSchema | undefined;
|
|
47
48
|
uuid?: string | undefined;
|
|
48
49
|
description?: string | undefined;
|
|
49
50
|
state?: WorkspaceElementState | undefined;
|
|
50
|
-
errors?:
|
|
51
|
-
isDeactivated?: boolean | undefined;
|
|
51
|
+
errors?: ErrorDataSchema[] | undefined;
|
|
52
52
|
createdAt?: string | undefined;
|
|
53
53
|
updatedAt?: string | undefined;
|
|
54
54
|
archivedAt?: string | undefined;
|
|
55
|
+
isDeactivated?: boolean | undefined;
|
|
55
56
|
instanceKey?: string | undefined;
|
|
56
57
|
appSchema?: DataSchema | undefined;
|
|
57
58
|
direction?: FieldMappingDirection | undefined;
|
|
@@ -75,15 +76,15 @@ export declare const BaseFieldMappingInstance: z.ZodObject<{
|
|
|
75
76
|
connectionId: string;
|
|
76
77
|
integrationId: string;
|
|
77
78
|
key?: string | undefined;
|
|
78
|
-
error?:
|
|
79
|
+
error?: ErrorDataSchema | undefined;
|
|
79
80
|
uuid?: string | undefined;
|
|
80
81
|
description?: string | undefined;
|
|
81
82
|
state?: WorkspaceElementState | undefined;
|
|
82
|
-
errors?:
|
|
83
|
-
isDeactivated?: boolean | undefined;
|
|
83
|
+
errors?: ErrorDataSchema[] | undefined;
|
|
84
84
|
createdAt?: string | undefined;
|
|
85
85
|
updatedAt?: string | undefined;
|
|
86
86
|
archivedAt?: string | undefined;
|
|
87
|
+
isDeactivated?: boolean | undefined;
|
|
87
88
|
instanceKey?: string | undefined;
|
|
88
89
|
appSchema?: DataSchema | undefined;
|
|
89
90
|
direction?: FieldMappingDirection | undefined;
|
|
@@ -7,15 +7,15 @@ export declare enum FieldMappingDirection {
|
|
|
7
7
|
}
|
|
8
8
|
export declare const BaseFieldMapping: z.ZodObject<{
|
|
9
9
|
id: z.ZodString;
|
|
10
|
-
name: z.ZodString;
|
|
11
10
|
key: z.ZodOptional<z.ZodString>;
|
|
12
11
|
uuid: z.ZodOptional<z.ZodString>;
|
|
13
12
|
description: z.ZodOptional<z.ZodString>;
|
|
13
|
+
name: z.ZodString;
|
|
14
14
|
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
15
|
-
errors: z.ZodOptional<z.ZodArray<
|
|
16
|
-
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, z.ZodTypeDef, import("../../..").ErrorDataSchema>, "many">>;
|
|
17
16
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
18
17
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
18
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
19
19
|
} & {
|
|
20
20
|
revision: z.ZodString;
|
|
21
21
|
publishedRevision: z.ZodOptional<z.ZodString>;
|
|
@@ -47,11 +47,11 @@ export declare const BaseFieldMapping: z.ZodObject<{
|
|
|
47
47
|
uuid?: string | undefined;
|
|
48
48
|
description?: string | undefined;
|
|
49
49
|
state?: import("../../types").WorkspaceElementState | undefined;
|
|
50
|
-
errors?:
|
|
51
|
-
isDeactivated?: boolean | undefined;
|
|
50
|
+
errors?: import("../../..").ErrorDataSchema[] | undefined;
|
|
52
51
|
createdAt?: string | undefined;
|
|
53
52
|
updatedAt?: string | undefined;
|
|
54
53
|
archivedAt?: string | undefined;
|
|
54
|
+
isDeactivated?: boolean | undefined;
|
|
55
55
|
integrationId?: string | undefined;
|
|
56
56
|
publishedRevision?: string | undefined;
|
|
57
57
|
universalFieldMappingId?: string | undefined;
|
|
@@ -76,11 +76,11 @@ export declare const BaseFieldMapping: z.ZodObject<{
|
|
|
76
76
|
uuid?: string | undefined;
|
|
77
77
|
description?: string | undefined;
|
|
78
78
|
state?: import("../../types").WorkspaceElementState | undefined;
|
|
79
|
-
errors?:
|
|
80
|
-
isDeactivated?: boolean | undefined;
|
|
79
|
+
errors?: import("../../..").ErrorDataSchema[] | undefined;
|
|
81
80
|
createdAt?: string | undefined;
|
|
82
81
|
updatedAt?: string | undefined;
|
|
83
82
|
archivedAt?: string | undefined;
|
|
83
|
+
isDeactivated?: boolean | undefined;
|
|
84
84
|
integrationId?: string | undefined;
|
|
85
85
|
publishedRevision?: string | undefined;
|
|
86
86
|
universalFieldMappingId?: string | undefined;
|
|
@@ -108,20 +108,20 @@ export declare const FieldMappingUnitConfig: z.ZodObject<{
|
|
|
108
108
|
}, "strip", z.ZodTypeAny, {
|
|
109
109
|
key?: string | undefined;
|
|
110
110
|
default?: any;
|
|
111
|
-
input?: any;
|
|
112
111
|
appSchema?: DataSchema | undefined;
|
|
113
112
|
importValue?: any;
|
|
114
113
|
exportValue?: any;
|
|
114
|
+
input?: any;
|
|
115
115
|
includeRawFields?: any;
|
|
116
116
|
defaultUnifiedValue?: any;
|
|
117
117
|
defaultValue?: any;
|
|
118
118
|
}, {
|
|
119
119
|
key?: string | undefined;
|
|
120
120
|
default?: any;
|
|
121
|
-
input?: any;
|
|
122
121
|
appSchema?: DataSchema | undefined;
|
|
123
122
|
importValue?: any;
|
|
124
123
|
exportValue?: any;
|
|
124
|
+
input?: any;
|
|
125
125
|
includeRawFields?: any;
|
|
126
126
|
defaultUnifiedValue?: any;
|
|
127
127
|
defaultValue?: any;
|
|
@@ -33,10 +33,10 @@ export declare const createFlowInstanceSchema: z.ZodObject<{
|
|
|
33
33
|
concurrency?: number | undefined;
|
|
34
34
|
type?: string | undefined;
|
|
35
35
|
name?: string | undefined;
|
|
36
|
-
ui?: any;
|
|
37
|
-
isCustomized?: boolean | undefined;
|
|
38
36
|
config?: any;
|
|
37
|
+
isCustomized?: boolean | undefined;
|
|
39
38
|
onError?: "stop" | "continue" | undefined;
|
|
39
|
+
ui?: any;
|
|
40
40
|
links?: {
|
|
41
41
|
key?: string | undefined;
|
|
42
42
|
filter?: any;
|
|
@@ -47,10 +47,10 @@ export declare const createFlowInstanceSchema: z.ZodObject<{
|
|
|
47
47
|
concurrency?: number | undefined;
|
|
48
48
|
type?: string | undefined;
|
|
49
49
|
name?: string | undefined;
|
|
50
|
-
ui?: any;
|
|
51
|
-
isCustomized?: boolean | undefined;
|
|
52
50
|
config?: any;
|
|
51
|
+
isCustomized?: boolean | undefined;
|
|
53
52
|
onError?: "stop" | "continue" | undefined;
|
|
53
|
+
ui?: any;
|
|
54
54
|
links?: {
|
|
55
55
|
key?: string | undefined;
|
|
56
56
|
filter?: any;
|
|
@@ -84,10 +84,10 @@ export declare const createFlowInstanceSchema: z.ZodObject<{
|
|
|
84
84
|
concurrency?: number | undefined;
|
|
85
85
|
type?: string | undefined;
|
|
86
86
|
name?: string | undefined;
|
|
87
|
-
ui?: any;
|
|
88
|
-
isCustomized?: boolean | undefined;
|
|
89
87
|
config?: any;
|
|
88
|
+
isCustomized?: boolean | undefined;
|
|
90
89
|
onError?: "stop" | "continue" | undefined;
|
|
90
|
+
ui?: any;
|
|
91
91
|
links?: {
|
|
92
92
|
key?: string | undefined;
|
|
93
93
|
filter?: any;
|
|
@@ -112,10 +112,10 @@ export declare const createFlowInstanceSchema: z.ZodObject<{
|
|
|
112
112
|
concurrency?: number | undefined;
|
|
113
113
|
type?: string | undefined;
|
|
114
114
|
name?: string | undefined;
|
|
115
|
-
ui?: any;
|
|
116
|
-
isCustomized?: boolean | undefined;
|
|
117
115
|
config?: any;
|
|
116
|
+
isCustomized?: boolean | undefined;
|
|
118
117
|
onError?: "stop" | "continue" | undefined;
|
|
118
|
+
ui?: any;
|
|
119
119
|
links?: {
|
|
120
120
|
key?: string | undefined;
|
|
121
121
|
filter?: any;
|
|
@@ -155,8 +155,8 @@ export declare const updateFlowInstanceSchema: z.ZodObject<{
|
|
|
155
155
|
concurrency?: number | undefined;
|
|
156
156
|
type?: string | undefined;
|
|
157
157
|
name?: string | undefined;
|
|
158
|
-
isCustomized?: boolean | undefined;
|
|
159
158
|
config?: any;
|
|
159
|
+
isCustomized?: boolean | undefined;
|
|
160
160
|
onError?: "stop" | "continue" | undefined;
|
|
161
161
|
links?: {
|
|
162
162
|
key?: string | undefined;
|
|
@@ -168,8 +168,8 @@ export declare const updateFlowInstanceSchema: z.ZodObject<{
|
|
|
168
168
|
concurrency?: number | undefined;
|
|
169
169
|
type?: string | undefined;
|
|
170
170
|
name?: string | undefined;
|
|
171
|
-
isCustomized?: boolean | undefined;
|
|
172
171
|
config?: any;
|
|
172
|
+
isCustomized?: boolean | undefined;
|
|
173
173
|
onError?: "stop" | "continue" | undefined;
|
|
174
174
|
links?: {
|
|
175
175
|
key?: string | undefined;
|
|
@@ -201,8 +201,8 @@ export declare const updateFlowInstanceSchema: z.ZodObject<{
|
|
|
201
201
|
concurrency?: number | undefined;
|
|
202
202
|
type?: string | undefined;
|
|
203
203
|
name?: string | undefined;
|
|
204
|
-
isCustomized?: boolean | undefined;
|
|
205
204
|
config?: any;
|
|
205
|
+
isCustomized?: boolean | undefined;
|
|
206
206
|
onError?: "stop" | "continue" | undefined;
|
|
207
207
|
links?: {
|
|
208
208
|
key?: string | undefined;
|
|
@@ -224,8 +224,8 @@ export declare const updateFlowInstanceSchema: z.ZodObject<{
|
|
|
224
224
|
concurrency?: number | undefined;
|
|
225
225
|
type?: string | undefined;
|
|
226
226
|
name?: string | undefined;
|
|
227
|
-
isCustomized?: boolean | undefined;
|
|
228
227
|
config?: any;
|
|
228
|
+
isCustomized?: boolean | undefined;
|
|
229
229
|
onError?: "stop" | "continue" | undefined;
|
|
230
230
|
links?: {
|
|
231
231
|
key?: string | undefined;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { DataSchema } from '../../../data-schema';
|
|
3
|
+
import { ErrorDataSchema } from '../../../errors';
|
|
3
4
|
import { WorkspaceElementState } from '../../types';
|
|
4
5
|
export declare const BaseFlowInstance: z.ZodObject<{
|
|
5
6
|
id: z.ZodString;
|
|
6
|
-
name: z.ZodString;
|
|
7
7
|
key: z.ZodOptional<z.ZodString>;
|
|
8
8
|
uuid: z.ZodOptional<z.ZodString>;
|
|
9
9
|
description: z.ZodOptional<z.ZodString>;
|
|
10
|
-
|
|
10
|
+
name: z.ZodString;
|
|
11
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
|
|
11
12
|
revision: z.ZodOptional<z.ZodString>;
|
|
12
|
-
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
13
13
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
14
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
14
15
|
} & {
|
|
15
16
|
userId: z.ZodString;
|
|
16
17
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
@@ -49,18 +50,18 @@ export declare const BaseFlowInstance: z.ZodObject<{
|
|
|
49
50
|
uuid?: string | undefined;
|
|
50
51
|
description?: string | undefined;
|
|
51
52
|
state?: WorkspaceElementState | undefined;
|
|
52
|
-
errors?:
|
|
53
|
+
errors?: ErrorDataSchema[] | undefined;
|
|
53
54
|
revision?: string | undefined;
|
|
54
|
-
isDeactivated?: boolean | undefined;
|
|
55
55
|
archivedAt?: string | undefined;
|
|
56
|
+
isDeactivated?: boolean | undefined;
|
|
56
57
|
instanceKey?: string | undefined;
|
|
57
58
|
connectionId?: string | undefined;
|
|
58
59
|
parameters?: any;
|
|
59
|
-
parametersSchema?: DataSchema | undefined;
|
|
60
60
|
customized?: {
|
|
61
61
|
name?: boolean | undefined;
|
|
62
62
|
nodes?: boolean | undefined;
|
|
63
63
|
} | undefined;
|
|
64
|
+
parametersSchema?: DataSchema | undefined;
|
|
64
65
|
dependencies?: any[] | undefined;
|
|
65
66
|
universalFlowId?: string | undefined;
|
|
66
67
|
nodes?: Record<string, any> | undefined;
|
|
@@ -78,18 +79,18 @@ export declare const BaseFlowInstance: z.ZodObject<{
|
|
|
78
79
|
uuid?: string | undefined;
|
|
79
80
|
description?: string | undefined;
|
|
80
81
|
state?: WorkspaceElementState | undefined;
|
|
81
|
-
errors?:
|
|
82
|
+
errors?: ErrorDataSchema[] | undefined;
|
|
82
83
|
revision?: string | undefined;
|
|
83
|
-
isDeactivated?: boolean | undefined;
|
|
84
84
|
archivedAt?: string | undefined;
|
|
85
|
+
isDeactivated?: boolean | undefined;
|
|
85
86
|
instanceKey?: string | undefined;
|
|
86
87
|
connectionId?: string | undefined;
|
|
87
88
|
parameters?: any;
|
|
88
|
-
parametersSchema?: DataSchema | undefined;
|
|
89
89
|
customized?: {
|
|
90
90
|
name?: boolean | undefined;
|
|
91
91
|
nodes?: boolean | undefined;
|
|
92
92
|
} | undefined;
|
|
93
|
+
parametersSchema?: DataSchema | undefined;
|
|
93
94
|
dependencies?: any[] | undefined;
|
|
94
95
|
universalFlowId?: string | undefined;
|
|
95
96
|
nodes?: Record<string, any> | undefined;
|
|
@@ -129,7 +130,7 @@ export declare const FlowInstanceNode: z.ZodObject<{
|
|
|
129
130
|
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
130
131
|
} & {
|
|
131
132
|
state: z.ZodOptional<z.ZodNativeEnum<typeof FlowInstanceNodeState>>;
|
|
132
|
-
errors: z.ZodOptional<z.ZodArray<
|
|
133
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
|
|
133
134
|
userConfig: z.ZodOptional<z.ZodAny>;
|
|
134
135
|
testInput: z.ZodOptional<z.ZodAny>;
|
|
135
136
|
dependencies: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
@@ -139,15 +140,15 @@ export declare const FlowInstanceNode: z.ZodObject<{
|
|
|
139
140
|
name?: string | undefined;
|
|
140
141
|
description?: string | undefined;
|
|
141
142
|
state?: FlowInstanceNodeState | undefined;
|
|
142
|
-
errors?:
|
|
143
|
-
ui?: any;
|
|
144
|
-
isCustomized?: boolean | undefined;
|
|
143
|
+
errors?: ErrorDataSchema[] | undefined;
|
|
145
144
|
inputSchema?: any;
|
|
146
145
|
config?: any;
|
|
146
|
+
isCustomized?: boolean | undefined;
|
|
147
147
|
outputSchema?: any;
|
|
148
148
|
dependencies?: any[] | undefined;
|
|
149
149
|
version?: number | undefined;
|
|
150
150
|
onError?: "stop" | "continue" | undefined;
|
|
151
|
+
ui?: any;
|
|
151
152
|
outputExample?: any;
|
|
152
153
|
links?: {
|
|
153
154
|
key?: string | undefined;
|
|
@@ -162,15 +163,15 @@ export declare const FlowInstanceNode: z.ZodObject<{
|
|
|
162
163
|
name?: string | undefined;
|
|
163
164
|
description?: string | undefined;
|
|
164
165
|
state?: FlowInstanceNodeState | undefined;
|
|
165
|
-
errors?:
|
|
166
|
-
ui?: any;
|
|
167
|
-
isCustomized?: boolean | undefined;
|
|
166
|
+
errors?: ErrorDataSchema[] | undefined;
|
|
168
167
|
inputSchema?: any;
|
|
169
168
|
config?: any;
|
|
169
|
+
isCustomized?: boolean | undefined;
|
|
170
170
|
outputSchema?: any;
|
|
171
171
|
dependencies?: any[] | undefined;
|
|
172
172
|
version?: number | undefined;
|
|
173
173
|
onError?: "stop" | "continue" | undefined;
|
|
174
|
+
ui?: any;
|
|
174
175
|
outputExample?: any;
|
|
175
176
|
links?: {
|
|
176
177
|
key?: string | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { ErrorData } from '../../../errors';
|
|
2
|
+
import { ErrorData, ErrorDataSchema } from '../../../errors';
|
|
3
3
|
export declare enum FlowNodeRunStatus {
|
|
4
4
|
COMPLETED = "completed",
|
|
5
5
|
FAILED = "failed",
|
|
@@ -133,11 +133,11 @@ export declare const FlowNodeRunResultSchema: z.ZodObject<{
|
|
|
133
133
|
runId: string;
|
|
134
134
|
}[];
|
|
135
135
|
}>, "many">;
|
|
136
|
-
errors: z.ZodArray<
|
|
136
|
+
errors: z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">;
|
|
137
137
|
}, "strip", z.ZodTypeAny, {
|
|
138
|
-
logs: any[];
|
|
139
138
|
status: FlowNodeRunStatus;
|
|
140
|
-
|
|
139
|
+
logs: any[];
|
|
140
|
+
errors: ErrorDataSchema[];
|
|
141
141
|
outputs: {
|
|
142
142
|
data: string;
|
|
143
143
|
id: string;
|
|
@@ -147,9 +147,9 @@ export declare const FlowNodeRunResultSchema: z.ZodObject<{
|
|
|
147
147
|
}[];
|
|
148
148
|
}[];
|
|
149
149
|
}, {
|
|
150
|
-
logs: any[];
|
|
151
150
|
status: FlowNodeRunStatus;
|
|
152
|
-
|
|
151
|
+
logs: any[];
|
|
152
|
+
errors: ErrorDataSchema[];
|
|
153
153
|
outputs: {
|
|
154
154
|
data: string;
|
|
155
155
|
id: string;
|
|
@@ -208,12 +208,12 @@ export declare const FlowNodeRunRecordSchema: z.ZodObject<{
|
|
|
208
208
|
runId: string;
|
|
209
209
|
}[];
|
|
210
210
|
}>, "many">;
|
|
211
|
-
errors: z.ZodArray<
|
|
211
|
+
errors: z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">;
|
|
212
212
|
}, "strip", z.ZodTypeAny, {
|
|
213
|
-
logs: any[];
|
|
214
213
|
status: FlowNodeRunStatus;
|
|
214
|
+
logs: any[];
|
|
215
215
|
id: string;
|
|
216
|
-
errors:
|
|
216
|
+
errors: ErrorDataSchema[];
|
|
217
217
|
outputs: {
|
|
218
218
|
data: string;
|
|
219
219
|
id: string;
|
|
@@ -229,10 +229,10 @@ export declare const FlowNodeRunRecordSchema: z.ZodObject<{
|
|
|
229
229
|
}[];
|
|
230
230
|
input?: any;
|
|
231
231
|
}, {
|
|
232
|
-
logs: any[];
|
|
233
232
|
status: FlowNodeRunStatus;
|
|
233
|
+
logs: any[];
|
|
234
234
|
id: string;
|
|
235
|
-
errors:
|
|
235
|
+
errors: ErrorDataSchema[];
|
|
236
236
|
outputs: {
|
|
237
237
|
data: string;
|
|
238
238
|
id: string;
|
|
@@ -332,12 +332,12 @@ export declare const FlowNodeRunRecordWithoutOutputsDataSchema: z.ZodObject<{
|
|
|
332
332
|
runId: string;
|
|
333
333
|
}[];
|
|
334
334
|
}>, "many">;
|
|
335
|
-
errors: z.ZodArray<
|
|
335
|
+
errors: z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">;
|
|
336
336
|
}, "strip", z.ZodTypeAny, {
|
|
337
|
-
logs: any[];
|
|
338
337
|
status: FlowNodeRunStatus;
|
|
338
|
+
logs: any[];
|
|
339
339
|
id: string;
|
|
340
|
-
errors:
|
|
340
|
+
errors: ErrorDataSchema[];
|
|
341
341
|
outputs: {
|
|
342
342
|
id: string;
|
|
343
343
|
downstreamRuns: {
|
|
@@ -352,10 +352,10 @@ export declare const FlowNodeRunRecordWithoutOutputsDataSchema: z.ZodObject<{
|
|
|
352
352
|
}[];
|
|
353
353
|
input?: any;
|
|
354
354
|
}, {
|
|
355
|
-
logs: any[];
|
|
356
355
|
status: FlowNodeRunStatus;
|
|
356
|
+
logs: any[];
|
|
357
357
|
id: string;
|
|
358
|
-
errors:
|
|
358
|
+
errors: ErrorDataSchema[];
|
|
359
359
|
outputs: {
|
|
360
360
|
id: string;
|
|
361
361
|
downstreamRuns: {
|