@membranehq/sdk 0.7.1 → 0.7.4
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 +5200 -4617
- package/dist/bundle.js +10 -1
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +4 -3
- package/dist/dts/accessors/integrations-accessors.d.ts +4 -3
- package/dist/dts/accessors/scenarios-accessors.d.ts +4 -3
- package/dist/dts/config/config.test.d.ts +1 -0
- package/dist/dts/config/index.d.ts +42 -0
- package/dist/dts/entity-repository.d.ts +2 -2
- package/dist/dts/index.browser.d.ts +31 -0
- package/dist/dts/index.d.ts +2 -0
- package/dist/dts/index.node.d.ts +2 -0
- package/dist/dts/integration-elements/index.d.ts +0 -2
- package/dist/dts/{workspace-elements/base/scenarios/types.d.ts → scenario-templates/index.d.ts} +64 -169
- package/dist/dts/workspace-elements/api/action-instances-api.d.ts +39 -34
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +37 -37
- package/dist/dts/workspace-elements/api/actions-api.d.ts +64 -46
- package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +13 -0
- package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +3 -0
- package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +17 -2
- package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +13 -0
- package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +3 -0
- package/dist/dts/workspace-elements/api/connections-api.d.ts +57 -34
- package/dist/dts/workspace-elements/api/customers-api.d.ts +3 -0
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +29 -16
- package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +3 -0
- package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +51 -43
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +474 -441
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +27 -22
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +27 -22
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +21 -16
- package/dist/dts/workspace-elements/api/external-events-api.d.ts +7 -0
- package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +144 -124
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +250 -118
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +122 -98
- package/dist/dts/workspace-elements/api/flows-api.d.ts +965 -826
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +12 -14
- package/dist/dts/workspace-elements/api/scenarios-api.d.ts +434 -431
- package/dist/dts/workspace-elements/base/action-instances/types.d.ts +5 -5
- package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +2 -2
- package/dist/dts/workspace-elements/base/actions/index.d.ts +18 -15
- package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +3 -0
- package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +3 -0
- package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +3 -0
- package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +3 -0
- package/dist/dts/workspace-elements/base/connections/types.d.ts +5 -8
- package/dist/dts/workspace-elements/base/customers/index.d.ts +3 -0
- package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +5 -2
- package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +3 -0
- package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +9 -6
- package/dist/dts/workspace-elements/base/data-sources/index.d.ts +153 -2
- package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +2 -2
- package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +2 -2
- package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +2 -2
- package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +8 -5
- package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +191 -1
- package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +26 -26
- package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +15 -12
- package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +4 -4
- package/dist/dts/workspace-elements/base/flows/index.d.ts +300 -1
- package/dist/dts/workspace-elements/base/flows/nodes/base.d.ts +79 -1
- package/dist/dts/workspace-elements/base/flows/nodes/index.d.ts +1 -1
- package/dist/dts/workspace-elements/base/integrations/types.d.ts +18 -0
- package/dist/dts/workspace-elements/base/scenarios/index.d.ts +163 -1
- package/dist/dts/workspace-elements/types.d.ts +118 -0
- package/dist/dts/workspace-elements-catalog/index.d.ts +1 -0
- package/dist/{index.d.ts → index.browser.d.mts} +17282 -16311
- package/dist/{index.module.d.mts → index.browser.d.ts} +17282 -16311
- package/dist/{index.js → index.browser.js} +228 -255
- package/dist/index.browser.js.map +1 -0
- package/dist/{index.module.mjs → index.browser.mjs} +218 -250
- package/dist/index.browser.mjs.map +1 -0
- package/dist/index.node.d.mts +28306 -0
- package/dist/index.node.d.ts +28306 -0
- package/dist/index.node.js +13329 -0
- package/dist/index.node.js.map +1 -0
- package/dist/index.node.mjs +12853 -0
- package/dist/index.node.mjs.map +1 -0
- package/package.json +38 -15
- package/dist/dts/workspace-elements/base/data-sources/constants.d.ts +0 -4
- package/dist/dts/workspace-elements/base/data-sources/types.d.ts +0 -102
- package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +0 -129
- package/dist/dts/workspace-elements/base/flows/types.d.ts +0 -241
- package/dist/index.js.map +0 -1
- package/dist/index.module.mjs.map +0 -1
|
@@ -22,9 +22,9 @@ export declare const BaseExternalEventPull: z.ZodObject<{
|
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
status: ExternalEventPullStatus;
|
|
24
24
|
id: string;
|
|
25
|
+
integrationId: string;
|
|
25
26
|
userId: string;
|
|
26
27
|
connectionId: string;
|
|
27
|
-
integrationId: string;
|
|
28
28
|
startDatetime: string;
|
|
29
29
|
endDatetime: string;
|
|
30
30
|
externalEventSubscriptionId: string;
|
|
@@ -35,9 +35,9 @@ export declare const BaseExternalEventPull: z.ZodObject<{
|
|
|
35
35
|
}, {
|
|
36
36
|
status: ExternalEventPullStatus;
|
|
37
37
|
id: string;
|
|
38
|
+
integrationId: string;
|
|
38
39
|
userId: string;
|
|
39
40
|
connectionId: string;
|
|
40
|
-
integrationId: string;
|
|
41
41
|
startDatetime: string;
|
|
42
42
|
endDatetime: string;
|
|
43
43
|
externalEventSubscriptionId: string;
|
|
@@ -146,9 +146,9 @@ export declare const BaseExternalEventSubscription: z.ZodObject<{
|
|
|
146
146
|
globalWebhookEventSelector: z.ZodOptional<z.ZodString>;
|
|
147
147
|
}, "strip", z.ZodTypeAny, {
|
|
148
148
|
id: string;
|
|
149
|
+
integrationId: string;
|
|
149
150
|
userId: string;
|
|
150
151
|
connectionId: string;
|
|
151
|
-
integrationId: string;
|
|
152
152
|
status?: ExternalEventSubscriptionStatus | undefined;
|
|
153
153
|
error?: ErrorDataSchema | undefined;
|
|
154
154
|
name?: string | undefined;
|
|
@@ -180,9 +180,9 @@ export declare const BaseExternalEventSubscription: z.ZodObject<{
|
|
|
180
180
|
globalWebhookEventSelector?: string | undefined;
|
|
181
181
|
}, {
|
|
182
182
|
id: string;
|
|
183
|
+
integrationId: string;
|
|
183
184
|
userId: string;
|
|
184
185
|
connectionId: string;
|
|
185
|
-
integrationId: string;
|
|
186
186
|
status?: ExternalEventSubscriptionStatus | undefined;
|
|
187
187
|
error?: ErrorDataSchema | undefined;
|
|
188
188
|
name?: string | undefined;
|
|
@@ -2,12 +2,13 @@ import { z } from 'zod';
|
|
|
2
2
|
import { DataSchema } from '../../../data-schema';
|
|
3
3
|
import { ErrorDataSchema } from '../../../errors';
|
|
4
4
|
import { WorkspaceElementState } from '../../types';
|
|
5
|
-
import { FieldMappingDirection } from '../field-mappings
|
|
5
|
+
import { FieldMappingDirection } from '../field-mappings';
|
|
6
6
|
export declare const BaseFieldMappingInstance: z.ZodObject<{
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
key: z.ZodOptional<z.ZodString>;
|
|
9
9
|
uuid: z.ZodOptional<z.ZodString>;
|
|
10
10
|
description: z.ZodOptional<z.ZodString>;
|
|
11
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
11
12
|
name: z.ZodString;
|
|
12
13
|
errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
|
|
13
14
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
@@ -40,19 +41,21 @@ export declare const BaseFieldMappingInstance: z.ZodObject<{
|
|
|
40
41
|
id: string;
|
|
41
42
|
name: string;
|
|
42
43
|
revision: string;
|
|
44
|
+
integrationId: string;
|
|
43
45
|
userId: string;
|
|
44
46
|
connectionId: string;
|
|
45
|
-
integrationId: string;
|
|
46
47
|
key?: string | undefined;
|
|
47
48
|
error?: ErrorDataSchema | undefined;
|
|
48
49
|
uuid?: string | undefined;
|
|
49
50
|
description?: string | undefined;
|
|
51
|
+
meta?: Record<string, any> | undefined;
|
|
50
52
|
state?: WorkspaceElementState | undefined;
|
|
51
53
|
errors?: ErrorDataSchema[] | undefined;
|
|
52
54
|
createdAt?: string | undefined;
|
|
53
55
|
updatedAt?: string | undefined;
|
|
54
56
|
archivedAt?: string | undefined;
|
|
55
57
|
isDeactivated?: boolean | undefined;
|
|
58
|
+
isCustomized?: boolean | undefined;
|
|
56
59
|
instanceKey?: string | undefined;
|
|
57
60
|
appSchema?: DataSchema | undefined;
|
|
58
61
|
direction?: FieldMappingDirection | undefined;
|
|
@@ -60,7 +63,6 @@ export declare const BaseFieldMappingInstance: z.ZodObject<{
|
|
|
60
63
|
exportValue?: any;
|
|
61
64
|
frozenImportFields?: string[] | undefined;
|
|
62
65
|
frozenExportFields?: string[] | undefined;
|
|
63
|
-
isCustomized?: boolean | undefined;
|
|
64
66
|
dataSourceInstanceId?: string | undefined;
|
|
65
67
|
fieldMappingRevision?: string | undefined;
|
|
66
68
|
fieldMappingId?: string | undefined;
|
|
@@ -72,19 +74,21 @@ export declare const BaseFieldMappingInstance: z.ZodObject<{
|
|
|
72
74
|
id: string;
|
|
73
75
|
name: string;
|
|
74
76
|
revision: string;
|
|
77
|
+
integrationId: string;
|
|
75
78
|
userId: string;
|
|
76
79
|
connectionId: string;
|
|
77
|
-
integrationId: string;
|
|
78
80
|
key?: string | undefined;
|
|
79
81
|
error?: ErrorDataSchema | undefined;
|
|
80
82
|
uuid?: string | undefined;
|
|
81
83
|
description?: string | undefined;
|
|
84
|
+
meta?: Record<string, any> | undefined;
|
|
82
85
|
state?: WorkspaceElementState | undefined;
|
|
83
86
|
errors?: ErrorDataSchema[] | undefined;
|
|
84
87
|
createdAt?: string | undefined;
|
|
85
88
|
updatedAt?: string | undefined;
|
|
86
89
|
archivedAt?: string | undefined;
|
|
87
90
|
isDeactivated?: boolean | undefined;
|
|
91
|
+
isCustomized?: boolean | undefined;
|
|
88
92
|
instanceKey?: string | undefined;
|
|
89
93
|
appSchema?: DataSchema | undefined;
|
|
90
94
|
direction?: FieldMappingDirection | undefined;
|
|
@@ -92,7 +96,6 @@ export declare const BaseFieldMappingInstance: z.ZodObject<{
|
|
|
92
96
|
exportValue?: any;
|
|
93
97
|
frozenImportFields?: string[] | undefined;
|
|
94
98
|
frozenExportFields?: string[] | undefined;
|
|
95
|
-
isCustomized?: boolean | undefined;
|
|
96
99
|
dataSourceInstanceId?: string | undefined;
|
|
97
100
|
fieldMappingRevision?: string | undefined;
|
|
98
101
|
fieldMappingId?: string | undefined;
|
|
@@ -1,2 +1,192 @@
|
|
|
1
|
-
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { DataSchema } from '../../../data-schema';
|
|
2
3
|
export * from './merge/merge-with-formulas';
|
|
4
|
+
export declare enum FieldMappingDirection {
|
|
5
|
+
IMPORT = "import",
|
|
6
|
+
EXPORT = "export",
|
|
7
|
+
BOTH = "both"
|
|
8
|
+
}
|
|
9
|
+
export declare const FieldMappingEditableProperties: z.ZodObject<Omit<{
|
|
10
|
+
key: z.ZodOptional<z.ZodString>;
|
|
11
|
+
name: z.ZodOptional<z.ZodString>;
|
|
12
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
13
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
15
|
+
} & {
|
|
16
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
17
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, "parentId"> & {
|
|
19
|
+
universalFieldMappingId: z.ZodOptional<z.ZodString>;
|
|
20
|
+
dataSourceKey: z.ZodOptional<z.ZodString>;
|
|
21
|
+
dataSourceId: z.ZodOptional<z.ZodString>;
|
|
22
|
+
appSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
23
|
+
direction: z.ZodOptional<z.ZodNativeEnum<typeof FieldMappingDirection>>;
|
|
24
|
+
defaultImportValue: z.ZodOptional<z.ZodAny>;
|
|
25
|
+
defaultExportValue: z.ZodOptional<z.ZodAny>;
|
|
26
|
+
importValue: z.ZodOptional<z.ZodAny>;
|
|
27
|
+
exportValue: z.ZodOptional<z.ZodAny>;
|
|
28
|
+
frozenImportFields: z.ZodOptional<z.ZodAny>;
|
|
29
|
+
frozenExportFields: z.ZodOptional<z.ZodAny>;
|
|
30
|
+
frozenUnifiedExportFields: z.ZodOptional<z.ZodAny>;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
key?: string | undefined;
|
|
33
|
+
name?: string | undefined;
|
|
34
|
+
uuid?: string | undefined;
|
|
35
|
+
description?: string | undefined;
|
|
36
|
+
meta?: Record<string, any> | undefined;
|
|
37
|
+
integrationId?: string | undefined;
|
|
38
|
+
universalFieldMappingId?: string | undefined;
|
|
39
|
+
dataSourceKey?: string | undefined;
|
|
40
|
+
dataSourceId?: string | undefined;
|
|
41
|
+
appSchema?: DataSchema | undefined;
|
|
42
|
+
direction?: FieldMappingDirection | undefined;
|
|
43
|
+
defaultImportValue?: any;
|
|
44
|
+
defaultExportValue?: any;
|
|
45
|
+
importValue?: any;
|
|
46
|
+
exportValue?: any;
|
|
47
|
+
frozenImportFields?: any;
|
|
48
|
+
frozenExportFields?: any;
|
|
49
|
+
frozenUnifiedExportFields?: any;
|
|
50
|
+
}, {
|
|
51
|
+
key?: string | undefined;
|
|
52
|
+
name?: string | undefined;
|
|
53
|
+
uuid?: string | undefined;
|
|
54
|
+
description?: string | undefined;
|
|
55
|
+
meta?: Record<string, any> | undefined;
|
|
56
|
+
integrationId?: string | undefined;
|
|
57
|
+
universalFieldMappingId?: string | undefined;
|
|
58
|
+
dataSourceKey?: string | undefined;
|
|
59
|
+
dataSourceId?: string | undefined;
|
|
60
|
+
appSchema?: DataSchema | undefined;
|
|
61
|
+
direction?: FieldMappingDirection | undefined;
|
|
62
|
+
defaultImportValue?: any;
|
|
63
|
+
defaultExportValue?: any;
|
|
64
|
+
importValue?: any;
|
|
65
|
+
exportValue?: any;
|
|
66
|
+
frozenImportFields?: any;
|
|
67
|
+
frozenExportFields?: any;
|
|
68
|
+
frozenUnifiedExportFields?: any;
|
|
69
|
+
}>;
|
|
70
|
+
export type FieldMappingEditableProperties = z.infer<typeof FieldMappingEditableProperties>;
|
|
71
|
+
export declare const BaseFieldMapping: z.ZodObject<{
|
|
72
|
+
id: z.ZodString;
|
|
73
|
+
key: z.ZodOptional<z.ZodString>;
|
|
74
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
75
|
+
description: z.ZodOptional<z.ZodString>;
|
|
76
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
77
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
78
|
+
universalFieldMappingId: z.ZodOptional<z.ZodString>;
|
|
79
|
+
dataSourceKey: z.ZodOptional<z.ZodString>;
|
|
80
|
+
dataSourceId: z.ZodOptional<z.ZodString>;
|
|
81
|
+
appSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
82
|
+
direction: z.ZodOptional<z.ZodNativeEnum<typeof FieldMappingDirection>>;
|
|
83
|
+
defaultImportValue: z.ZodOptional<z.ZodAny>;
|
|
84
|
+
defaultExportValue: z.ZodOptional<z.ZodAny>;
|
|
85
|
+
importValue: z.ZodOptional<z.ZodAny>;
|
|
86
|
+
exportValue: z.ZodOptional<z.ZodAny>;
|
|
87
|
+
frozenImportFields: z.ZodOptional<z.ZodAny>;
|
|
88
|
+
frozenExportFields: z.ZodOptional<z.ZodAny>;
|
|
89
|
+
frozenUnifiedExportFields: z.ZodOptional<z.ZodAny>;
|
|
90
|
+
} & {
|
|
91
|
+
name: z.ZodString;
|
|
92
|
+
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
93
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, z.ZodTypeDef, import("../../..").ErrorDataSchema>, "many">>;
|
|
94
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
95
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
96
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
97
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
98
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
99
|
+
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
100
|
+
universalFieldMappingRevision: z.ZodOptional<z.ZodString>;
|
|
101
|
+
}, "strip", z.ZodTypeAny, {
|
|
102
|
+
id: string;
|
|
103
|
+
name: string;
|
|
104
|
+
key?: string | undefined;
|
|
105
|
+
uuid?: string | undefined;
|
|
106
|
+
description?: string | undefined;
|
|
107
|
+
meta?: Record<string, any> | undefined;
|
|
108
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
109
|
+
errors?: import("../../..").ErrorDataSchema[] | undefined;
|
|
110
|
+
revision?: string | undefined;
|
|
111
|
+
createdAt?: string | undefined;
|
|
112
|
+
updatedAt?: string | undefined;
|
|
113
|
+
archivedAt?: string | undefined;
|
|
114
|
+
isDeactivated?: boolean | undefined;
|
|
115
|
+
integrationId?: string | undefined;
|
|
116
|
+
isCustomized?: boolean | undefined;
|
|
117
|
+
universalFieldMappingId?: string | undefined;
|
|
118
|
+
dataSourceKey?: string | undefined;
|
|
119
|
+
dataSourceId?: string | undefined;
|
|
120
|
+
appSchema?: DataSchema | undefined;
|
|
121
|
+
direction?: FieldMappingDirection | undefined;
|
|
122
|
+
defaultImportValue?: any;
|
|
123
|
+
defaultExportValue?: any;
|
|
124
|
+
importValue?: any;
|
|
125
|
+
exportValue?: any;
|
|
126
|
+
frozenImportFields?: any;
|
|
127
|
+
frozenExportFields?: any;
|
|
128
|
+
frozenUnifiedExportFields?: any;
|
|
129
|
+
universalFieldMappingRevision?: string | undefined;
|
|
130
|
+
}, {
|
|
131
|
+
id: string;
|
|
132
|
+
name: string;
|
|
133
|
+
key?: string | undefined;
|
|
134
|
+
uuid?: string | undefined;
|
|
135
|
+
description?: string | undefined;
|
|
136
|
+
meta?: Record<string, any> | undefined;
|
|
137
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
138
|
+
errors?: import("../../..").ErrorDataSchema[] | undefined;
|
|
139
|
+
revision?: string | undefined;
|
|
140
|
+
createdAt?: string | undefined;
|
|
141
|
+
updatedAt?: string | undefined;
|
|
142
|
+
archivedAt?: string | undefined;
|
|
143
|
+
isDeactivated?: boolean | undefined;
|
|
144
|
+
integrationId?: string | undefined;
|
|
145
|
+
isCustomized?: boolean | undefined;
|
|
146
|
+
universalFieldMappingId?: string | undefined;
|
|
147
|
+
dataSourceKey?: string | undefined;
|
|
148
|
+
dataSourceId?: string | undefined;
|
|
149
|
+
appSchema?: DataSchema | undefined;
|
|
150
|
+
direction?: FieldMappingDirection | undefined;
|
|
151
|
+
defaultImportValue?: any;
|
|
152
|
+
defaultExportValue?: any;
|
|
153
|
+
importValue?: any;
|
|
154
|
+
exportValue?: any;
|
|
155
|
+
frozenImportFields?: any;
|
|
156
|
+
frozenExportFields?: any;
|
|
157
|
+
frozenUnifiedExportFields?: any;
|
|
158
|
+
universalFieldMappingRevision?: string | undefined;
|
|
159
|
+
}>;
|
|
160
|
+
export type BaseFieldMapping = z.infer<typeof BaseFieldMapping>;
|
|
161
|
+
export declare const FieldMappingUnitConfig: z.ZodObject<{
|
|
162
|
+
key: z.ZodOptional<z.ZodString>;
|
|
163
|
+
input: z.ZodOptional<z.ZodAny>;
|
|
164
|
+
includeRawFields: z.ZodOptional<z.ZodAny>;
|
|
165
|
+
importValue: z.ZodOptional<z.ZodAny>;
|
|
166
|
+
exportValue: z.ZodOptional<z.ZodAny>;
|
|
167
|
+
default: z.ZodOptional<z.ZodAny>;
|
|
168
|
+
defaultUnifiedValue: z.ZodOptional<z.ZodAny>;
|
|
169
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
170
|
+
appSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
171
|
+
}, "strip", z.ZodTypeAny, {
|
|
172
|
+
key?: string | undefined;
|
|
173
|
+
default?: any;
|
|
174
|
+
appSchema?: DataSchema | undefined;
|
|
175
|
+
importValue?: any;
|
|
176
|
+
exportValue?: any;
|
|
177
|
+
input?: any;
|
|
178
|
+
includeRawFields?: any;
|
|
179
|
+
defaultUnifiedValue?: any;
|
|
180
|
+
defaultValue?: any;
|
|
181
|
+
}, {
|
|
182
|
+
key?: string | undefined;
|
|
183
|
+
default?: any;
|
|
184
|
+
appSchema?: DataSchema | undefined;
|
|
185
|
+
importValue?: any;
|
|
186
|
+
exportValue?: any;
|
|
187
|
+
input?: any;
|
|
188
|
+
includeRawFields?: any;
|
|
189
|
+
defaultUnifiedValue?: any;
|
|
190
|
+
defaultValue?: any;
|
|
191
|
+
}>;
|
|
192
|
+
export type FieldMappingUnitConfig = z.infer<typeof FieldMappingUnitConfig>;
|
|
@@ -33,8 +33,8 @@ export declare const createFlowInstanceSchema: z.ZodObject<{
|
|
|
33
33
|
concurrency?: number | undefined;
|
|
34
34
|
type?: string | undefined;
|
|
35
35
|
name?: string | undefined;
|
|
36
|
-
config?: any;
|
|
37
36
|
isCustomized?: boolean | undefined;
|
|
37
|
+
config?: any;
|
|
38
38
|
onError?: "stop" | "continue" | undefined;
|
|
39
39
|
ui?: any;
|
|
40
40
|
links?: {
|
|
@@ -47,8 +47,8 @@ export declare const createFlowInstanceSchema: z.ZodObject<{
|
|
|
47
47
|
concurrency?: number | undefined;
|
|
48
48
|
type?: string | undefined;
|
|
49
49
|
name?: string | undefined;
|
|
50
|
-
config?: any;
|
|
51
50
|
isCustomized?: boolean | undefined;
|
|
51
|
+
config?: any;
|
|
52
52
|
onError?: "stop" | "continue" | undefined;
|
|
53
53
|
ui?: any;
|
|
54
54
|
links?: {
|
|
@@ -71,21 +71,17 @@ export declare const createFlowInstanceSchema: z.ZodObject<{
|
|
|
71
71
|
}>>;
|
|
72
72
|
}, "strip", z.ZodTypeAny, {
|
|
73
73
|
name?: string | undefined;
|
|
74
|
+
integrationId?: string | undefined;
|
|
74
75
|
userId?: string | undefined;
|
|
75
76
|
instanceKey?: string | undefined;
|
|
76
77
|
connectionId?: string | undefined;
|
|
77
|
-
integrationId?: string | undefined;
|
|
78
78
|
parameters?: any;
|
|
79
|
-
customized?: {
|
|
80
|
-
name?: boolean | undefined;
|
|
81
|
-
nodes?: boolean | undefined;
|
|
82
|
-
} | undefined;
|
|
83
79
|
nodes?: Record<string, {
|
|
84
80
|
concurrency?: number | undefined;
|
|
85
81
|
type?: string | undefined;
|
|
86
82
|
name?: string | undefined;
|
|
87
|
-
config?: any;
|
|
88
83
|
isCustomized?: boolean | undefined;
|
|
84
|
+
config?: any;
|
|
89
85
|
onError?: "stop" | "continue" | undefined;
|
|
90
86
|
ui?: any;
|
|
91
87
|
links?: {
|
|
@@ -97,23 +93,23 @@ export declare const createFlowInstanceSchema: z.ZodObject<{
|
|
|
97
93
|
}> | undefined;
|
|
98
94
|
flowId?: string | undefined;
|
|
99
95
|
enabled?: boolean | undefined;
|
|
96
|
+
customized?: {
|
|
97
|
+
name?: boolean | undefined;
|
|
98
|
+
nodes?: boolean | undefined;
|
|
99
|
+
} | undefined;
|
|
100
100
|
}, {
|
|
101
101
|
name?: string | undefined;
|
|
102
|
+
integrationId?: string | undefined;
|
|
102
103
|
userId?: string | undefined;
|
|
103
104
|
instanceKey?: string | undefined;
|
|
104
105
|
connectionId?: string | undefined;
|
|
105
|
-
integrationId?: string | undefined;
|
|
106
106
|
parameters?: any;
|
|
107
|
-
customized?: {
|
|
108
|
-
name?: boolean | undefined;
|
|
109
|
-
nodes?: boolean | undefined;
|
|
110
|
-
} | undefined;
|
|
111
107
|
nodes?: Record<string, {
|
|
112
108
|
concurrency?: number | undefined;
|
|
113
109
|
type?: string | undefined;
|
|
114
110
|
name?: string | undefined;
|
|
115
|
-
config?: any;
|
|
116
111
|
isCustomized?: boolean | undefined;
|
|
112
|
+
config?: any;
|
|
117
113
|
onError?: "stop" | "continue" | undefined;
|
|
118
114
|
ui?: any;
|
|
119
115
|
links?: {
|
|
@@ -125,6 +121,10 @@ export declare const createFlowInstanceSchema: z.ZodObject<{
|
|
|
125
121
|
}> | undefined;
|
|
126
122
|
flowId?: string | undefined;
|
|
127
123
|
enabled?: boolean | undefined;
|
|
124
|
+
customized?: {
|
|
125
|
+
name?: boolean | undefined;
|
|
126
|
+
nodes?: boolean | undefined;
|
|
127
|
+
} | undefined;
|
|
128
128
|
}>;
|
|
129
129
|
export declare const updateFlowInstanceSchema: z.ZodObject<{
|
|
130
130
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -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
|
-
config?: any;
|
|
159
158
|
isCustomized?: boolean | undefined;
|
|
159
|
+
config?: any;
|
|
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
|
-
config?: any;
|
|
172
171
|
isCustomized?: boolean | undefined;
|
|
172
|
+
config?: any;
|
|
173
173
|
onError?: "stop" | "continue" | undefined;
|
|
174
174
|
links?: {
|
|
175
175
|
key?: string | undefined;
|
|
@@ -193,16 +193,12 @@ export declare const updateFlowInstanceSchema: z.ZodObject<{
|
|
|
193
193
|
name?: string | undefined;
|
|
194
194
|
archivedAt?: string | undefined;
|
|
195
195
|
parameters?: any;
|
|
196
|
-
customized?: {
|
|
197
|
-
name?: boolean | undefined;
|
|
198
|
-
nodes?: boolean | undefined;
|
|
199
|
-
} | undefined;
|
|
200
196
|
nodes?: Record<string, {
|
|
201
197
|
concurrency?: number | undefined;
|
|
202
198
|
type?: string | undefined;
|
|
203
199
|
name?: string | undefined;
|
|
204
|
-
config?: any;
|
|
205
200
|
isCustomized?: boolean | undefined;
|
|
201
|
+
config?: any;
|
|
206
202
|
onError?: "stop" | "continue" | undefined;
|
|
207
203
|
links?: {
|
|
208
204
|
key?: string | undefined;
|
|
@@ -212,20 +208,20 @@ export declare const updateFlowInstanceSchema: z.ZodObject<{
|
|
|
212
208
|
userConfig?: any;
|
|
213
209
|
}> | undefined;
|
|
214
210
|
enabled?: boolean | undefined;
|
|
215
|
-
}, {
|
|
216
|
-
name?: string | undefined;
|
|
217
|
-
archivedAt?: string | undefined;
|
|
218
|
-
parameters?: any;
|
|
219
211
|
customized?: {
|
|
220
212
|
name?: boolean | undefined;
|
|
221
213
|
nodes?: boolean | undefined;
|
|
222
214
|
} | undefined;
|
|
215
|
+
}, {
|
|
216
|
+
name?: string | undefined;
|
|
217
|
+
archivedAt?: string | undefined;
|
|
218
|
+
parameters?: any;
|
|
223
219
|
nodes?: Record<string, {
|
|
224
220
|
concurrency?: number | undefined;
|
|
225
221
|
type?: string | undefined;
|
|
226
222
|
name?: string | undefined;
|
|
227
|
-
config?: any;
|
|
228
223
|
isCustomized?: boolean | undefined;
|
|
224
|
+
config?: any;
|
|
229
225
|
onError?: "stop" | "continue" | undefined;
|
|
230
226
|
links?: {
|
|
231
227
|
key?: string | undefined;
|
|
@@ -235,6 +231,10 @@ export declare const updateFlowInstanceSchema: z.ZodObject<{
|
|
|
235
231
|
userConfig?: any;
|
|
236
232
|
}> | undefined;
|
|
237
233
|
enabled?: boolean | undefined;
|
|
234
|
+
customized?: {
|
|
235
|
+
name?: boolean | undefined;
|
|
236
|
+
nodes?: boolean | undefined;
|
|
237
|
+
} | undefined;
|
|
238
238
|
}>;
|
|
239
239
|
export type CreateFlowInstanceRequest = z.infer<typeof createFlowInstanceSchema>;
|
|
240
240
|
export type UpdateFlowInstanceRequest = z.infer<typeof updateFlowInstanceSchema>;
|
|
@@ -7,6 +7,7 @@ export declare const BaseFlowInstance: z.ZodObject<{
|
|
|
7
7
|
key: z.ZodOptional<z.ZodString>;
|
|
8
8
|
uuid: z.ZodOptional<z.ZodString>;
|
|
9
9
|
description: z.ZodOptional<z.ZodString>;
|
|
10
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
10
11
|
name: z.ZodString;
|
|
11
12
|
errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
|
|
12
13
|
revision: z.ZodOptional<z.ZodString>;
|
|
@@ -42,12 +43,13 @@ export declare const BaseFlowInstance: z.ZodObject<{
|
|
|
42
43
|
name: string;
|
|
43
44
|
createdAt: string;
|
|
44
45
|
updatedAt: string;
|
|
45
|
-
userId: string;
|
|
46
46
|
integrationId: string;
|
|
47
|
+
userId: string;
|
|
47
48
|
enabled: boolean;
|
|
48
49
|
key?: string | undefined;
|
|
49
50
|
uuid?: string | undefined;
|
|
50
51
|
description?: string | undefined;
|
|
52
|
+
meta?: Record<string, any> | undefined;
|
|
51
53
|
state?: WorkspaceElementState | undefined;
|
|
52
54
|
errors?: ErrorDataSchema[] | undefined;
|
|
53
55
|
revision?: string | undefined;
|
|
@@ -56,26 +58,27 @@ export declare const BaseFlowInstance: z.ZodObject<{
|
|
|
56
58
|
instanceKey?: string | undefined;
|
|
57
59
|
connectionId?: string | undefined;
|
|
58
60
|
parameters?: any;
|
|
59
|
-
customized?: {
|
|
60
|
-
name?: boolean | undefined;
|
|
61
|
-
nodes?: boolean | undefined;
|
|
62
|
-
} | undefined;
|
|
63
61
|
parametersSchema?: DataSchema | undefined;
|
|
64
62
|
dependencies?: any[] | undefined;
|
|
65
63
|
universalFlowId?: string | undefined;
|
|
66
64
|
nodes?: Record<string, any> | undefined;
|
|
67
65
|
flowId?: string | undefined;
|
|
66
|
+
customized?: {
|
|
67
|
+
name?: boolean | undefined;
|
|
68
|
+
nodes?: boolean | undefined;
|
|
69
|
+
} | undefined;
|
|
68
70
|
}, {
|
|
69
71
|
id: string;
|
|
70
72
|
name: string;
|
|
71
73
|
createdAt: string;
|
|
72
74
|
updatedAt: string;
|
|
73
|
-
userId: string;
|
|
74
75
|
integrationId: string;
|
|
76
|
+
userId: string;
|
|
75
77
|
enabled: boolean;
|
|
76
78
|
key?: string | undefined;
|
|
77
79
|
uuid?: string | undefined;
|
|
78
80
|
description?: string | undefined;
|
|
81
|
+
meta?: Record<string, any> | undefined;
|
|
79
82
|
state?: WorkspaceElementState | undefined;
|
|
80
83
|
errors?: ErrorDataSchema[] | undefined;
|
|
81
84
|
revision?: string | undefined;
|
|
@@ -84,15 +87,15 @@ export declare const BaseFlowInstance: z.ZodObject<{
|
|
|
84
87
|
instanceKey?: string | undefined;
|
|
85
88
|
connectionId?: string | undefined;
|
|
86
89
|
parameters?: any;
|
|
87
|
-
customized?: {
|
|
88
|
-
name?: boolean | undefined;
|
|
89
|
-
nodes?: boolean | undefined;
|
|
90
|
-
} | undefined;
|
|
91
90
|
parametersSchema?: DataSchema | undefined;
|
|
92
91
|
dependencies?: any[] | undefined;
|
|
93
92
|
universalFlowId?: string | undefined;
|
|
94
93
|
nodes?: Record<string, any> | undefined;
|
|
95
94
|
flowId?: string | undefined;
|
|
95
|
+
customized?: {
|
|
96
|
+
name?: boolean | undefined;
|
|
97
|
+
nodes?: boolean | undefined;
|
|
98
|
+
} | undefined;
|
|
96
99
|
}>;
|
|
97
100
|
export type BaseFlowInstance = z.infer<typeof BaseFlowInstance>;
|
|
98
101
|
export declare enum FlowInstanceNodeState {
|
|
@@ -138,9 +141,9 @@ export declare const FlowInstanceNode: z.ZodObject<{
|
|
|
138
141
|
description?: string | undefined;
|
|
139
142
|
state?: FlowInstanceNodeState | undefined;
|
|
140
143
|
errors?: ErrorDataSchema[] | undefined;
|
|
144
|
+
isCustomized?: boolean | undefined;
|
|
141
145
|
inputSchema?: any;
|
|
142
146
|
config?: any;
|
|
143
|
-
isCustomized?: boolean | undefined;
|
|
144
147
|
outputSchema?: any;
|
|
145
148
|
dependencies?: any[] | undefined;
|
|
146
149
|
version?: number | undefined;
|
|
@@ -161,9 +164,9 @@ export declare const FlowInstanceNode: z.ZodObject<{
|
|
|
161
164
|
description?: string | undefined;
|
|
162
165
|
state?: FlowInstanceNodeState | undefined;
|
|
163
166
|
errors?: ErrorDataSchema[] | undefined;
|
|
167
|
+
isCustomized?: boolean | undefined;
|
|
164
168
|
inputSchema?: any;
|
|
165
169
|
config?: any;
|
|
166
|
-
isCustomized?: boolean | undefined;
|
|
167
170
|
outputSchema?: any;
|
|
168
171
|
dependencies?: any[] | undefined;
|
|
169
172
|
version?: number | undefined;
|
|
@@ -97,10 +97,10 @@ export declare const BaseFlowRun: z.ZodObject<{
|
|
|
97
97
|
startNodeKey: string;
|
|
98
98
|
name?: string | undefined;
|
|
99
99
|
errors?: ErrorDataSchema[] | undefined;
|
|
100
|
-
connectionId?: string | undefined;
|
|
101
100
|
integrationId?: string | undefined;
|
|
102
|
-
|
|
101
|
+
connectionId?: string | undefined;
|
|
103
102
|
endTime?: string | undefined;
|
|
103
|
+
input?: any;
|
|
104
104
|
universalFlowId?: string | undefined;
|
|
105
105
|
nodes?: Record<string, {
|
|
106
106
|
state: FlowRunNodeState;
|
|
@@ -121,10 +121,10 @@ export declare const BaseFlowRun: z.ZodObject<{
|
|
|
121
121
|
startNodeKey: string;
|
|
122
122
|
name?: string | undefined;
|
|
123
123
|
errors?: ErrorDataSchema[] | undefined;
|
|
124
|
-
connectionId?: string | undefined;
|
|
125
124
|
integrationId?: string | undefined;
|
|
126
|
-
|
|
125
|
+
connectionId?: string | undefined;
|
|
127
126
|
endTime?: string | undefined;
|
|
127
|
+
input?: any;
|
|
128
128
|
universalFlowId?: string | undefined;
|
|
129
129
|
nodes?: Record<string, {
|
|
130
130
|
state: FlowRunNodeState;
|