@membranehq/sdk 0.4.0 → 0.5.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 +8370 -1268
- package/dist/bundle.js +2216 -2085
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +57 -1
- package/dist/dts/accessors/integrations-accessors.d.ts +57 -1
- package/dist/dts/api-client.d.ts +1 -0
- package/dist/dts/client.d.ts +1 -0
- package/dist/dts/data-schema/types.d.ts +4 -3
- package/dist/dts/entity-repository.d.ts +87 -20
- package/dist/dts/formulas/dataSchemaRef.d.ts +2 -2
- package/dist/dts/http-requests.d.ts +20 -6
- package/dist/dts/iframe.d.ts +12 -4
- package/dist/dts/index.d.ts +2 -1
- package/dist/dts/sse/index.d.ts +1 -0
- package/dist/dts/sse/workspace-elements.d.ts +9 -0
- package/dist/dts/workspace-elements/api/actions-api.d.ts +702 -40
- package/dist/dts/workspace-elements/api/connections-api.d.ts +702 -41
- package/dist/dts/workspace-elements/api/customers-api.d.ts +56 -13
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +834 -77
- package/dist/dts/workspace-elements/api/external-events-api.d.ts +440 -6
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +586 -6
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/flows-api.d.ts +2417 -50
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +253 -24
- package/dist/dts/workspace-elements/api/scenarios-api.d.ts +397 -34
- package/dist/dts/workspace-elements/api/screens-api.d.ts +2 -2
- package/dist/dts/workspace-elements/base/action-instances/types.d.ts +61 -14
- package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +30 -7
- package/dist/dts/workspace-elements/base/actions/types.d.ts +60 -17
- package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +42 -7
- package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +35 -7
- package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +78 -9
- package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +70 -7
- package/dist/dts/workspace-elements/base/connections/types.d.ts +76 -20
- package/dist/dts/workspace-elements/base/connectors/types.d.ts +14 -2
- package/dist/dts/workspace-elements/base/customers/index.d.ts +26 -6
- package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +75 -74
- package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +61 -11
- package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +26 -4
- package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +1030 -19
- package/dist/dts/workspace-elements/base/data-sources/types.d.ts +89 -22
- package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +31 -8
- package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +35 -8
- package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +199 -23
- package/dist/dts/workspace-elements/base/external-events/types.d.ts +145 -5
- package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +74 -16
- package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +91 -14
- package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +39 -39
- package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +155 -24
- package/dist/dts/workspace-elements/base/flow-runs/flow-node-runs.d.ts +20 -20
- package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +114 -19
- package/dist/dts/workspace-elements/base/flows/types.d.ts +220 -26
- package/dist/dts/workspace-elements/base/integrations/types.d.ts +497 -24
- package/dist/dts/workspace-elements/base/scenarios/types.d.ts +723 -23
- package/dist/dts/workspace-elements/base/screens/types.d.ts +40 -6
- package/dist/index.d.ts +12141 -2138
- package/dist/index.js +1555 -522
- package/dist/index.js.map +1 -1
- package/dist/index.module.d.mts +12141 -2138
- package/dist/index.module.mjs +1414 -490
- package/dist/index.module.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,27 +1,85 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import { DataSchema } from '../../../data-schema';
|
|
2
|
-
import {
|
|
3
|
-
import { BaseMembraneInterface, WorkspaceElementState } from '../../types';
|
|
3
|
+
import { WorkspaceElementState } from '../../types';
|
|
4
4
|
import { FieldMappingDirection } from '../field-mappings/types';
|
|
5
|
-
export
|
|
5
|
+
export declare const BaseFieldMappingInstance: z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
key: z.ZodString;
|
|
9
|
+
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
10
|
+
} & {
|
|
11
|
+
userId: z.ZodString;
|
|
12
|
+
revision: z.ZodString;
|
|
13
|
+
connectionId: z.ZodString;
|
|
14
|
+
integrationId: z.ZodString;
|
|
15
|
+
fieldMappingRevision: z.ZodOptional<z.ZodString>;
|
|
16
|
+
fieldMappingId: z.ZodOptional<z.ZodString>;
|
|
17
|
+
instanceKey: z.ZodOptional<z.ZodString>;
|
|
18
|
+
dataSourceInstanceId: z.ZodOptional<z.ZodString>;
|
|
19
|
+
dataSourceSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
20
|
+
direction: z.ZodOptional<z.ZodNativeEnum<typeof FieldMappingDirection>>;
|
|
21
|
+
appSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
22
|
+
importValue: z.ZodOptional<z.ZodAny>;
|
|
23
|
+
exportValue: z.ZodOptional<z.ZodAny>;
|
|
24
|
+
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
unifiedExportValue: z.ZodOptional<z.ZodAny>;
|
|
26
|
+
unifiedImportValue: z.ZodOptional<z.ZodAny>;
|
|
27
|
+
frozenImportFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
28
|
+
frozenExportFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
29
|
+
state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
|
|
30
|
+
error: any;
|
|
31
|
+
externalSchema: z.ZodOptional<z.ZodAny>;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
key: string;
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
6
36
|
userId: string;
|
|
37
|
+
connectionId: string;
|
|
38
|
+
integrationId: string;
|
|
7
39
|
revision: string;
|
|
40
|
+
error?: any;
|
|
41
|
+
state?: WorkspaceElementState | undefined;
|
|
42
|
+
errors?: any[] | undefined;
|
|
43
|
+
instanceKey?: string | undefined;
|
|
44
|
+
appSchema?: DataSchema | undefined;
|
|
45
|
+
direction?: FieldMappingDirection | undefined;
|
|
46
|
+
importValue?: any;
|
|
47
|
+
exportValue?: any;
|
|
48
|
+
frozenImportFields?: string[] | undefined;
|
|
49
|
+
frozenExportFields?: string[] | undefined;
|
|
50
|
+
isCustomized?: boolean | undefined;
|
|
51
|
+
dataSourceInstanceId?: string | undefined;
|
|
52
|
+
fieldMappingRevision?: string | undefined;
|
|
53
|
+
fieldMappingId?: string | undefined;
|
|
54
|
+
dataSourceSchema?: DataSchema | undefined;
|
|
55
|
+
unifiedExportValue?: any;
|
|
56
|
+
unifiedImportValue?: any;
|
|
57
|
+
externalSchema?: any;
|
|
58
|
+
}, {
|
|
59
|
+
key: string;
|
|
60
|
+
id: string;
|
|
61
|
+
name: string;
|
|
62
|
+
userId: string;
|
|
8
63
|
connectionId: string;
|
|
9
64
|
integrationId: string;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
65
|
+
revision: string;
|
|
66
|
+
error?: any;
|
|
67
|
+
state?: WorkspaceElementState | undefined;
|
|
68
|
+
errors?: any[] | undefined;
|
|
69
|
+
instanceKey?: string | undefined;
|
|
70
|
+
appSchema?: DataSchema | undefined;
|
|
71
|
+
direction?: FieldMappingDirection | undefined;
|
|
17
72
|
importValue?: any;
|
|
18
73
|
exportValue?: any;
|
|
19
|
-
|
|
74
|
+
frozenImportFields?: string[] | undefined;
|
|
75
|
+
frozenExportFields?: string[] | undefined;
|
|
76
|
+
isCustomized?: boolean | undefined;
|
|
77
|
+
dataSourceInstanceId?: string | undefined;
|
|
78
|
+
fieldMappingRevision?: string | undefined;
|
|
79
|
+
fieldMappingId?: string | undefined;
|
|
80
|
+
dataSourceSchema?: DataSchema | undefined;
|
|
20
81
|
unifiedExportValue?: any;
|
|
21
82
|
unifiedImportValue?: any;
|
|
22
|
-
frozenImportFields?: string[];
|
|
23
|
-
frozenExportFields?: string[];
|
|
24
|
-
state?: WorkspaceElementState;
|
|
25
|
-
error?: ErrorData;
|
|
26
83
|
externalSchema?: any;
|
|
27
|
-
}
|
|
84
|
+
}>;
|
|
85
|
+
export type BaseFieldMappingInstance = z.infer<typeof BaseFieldMappingInstance>;
|
|
@@ -1,20 +1,52 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import { DataSchema } from '../../../data-schema';
|
|
2
|
-
import { BaseMembraneInterface } from '../../types';
|
|
3
3
|
export declare enum FieldMappingDirection {
|
|
4
4
|
IMPORT = "import",
|
|
5
5
|
EXPORT = "export",
|
|
6
6
|
BOTH = "both"
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export declare const BaseFieldMapping: z.ZodObject<{
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
name: z.ZodString;
|
|
11
|
+
} & {
|
|
12
|
+
key: z.ZodString;
|
|
13
|
+
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
14
|
+
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
15
|
+
} & {
|
|
16
|
+
revision: z.ZodString;
|
|
17
|
+
publishedRevision: z.ZodOptional<z.ZodString>;
|
|
18
|
+
universalFieldMappingId: z.ZodOptional<z.ZodString>;
|
|
19
|
+
universalFieldMappingRevision: z.ZodOptional<z.ZodString>;
|
|
20
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
21
|
+
dataSourceId: z.ZodString;
|
|
22
|
+
dataSourceKey: z.ZodString;
|
|
23
|
+
appSchema: z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>;
|
|
24
|
+
direction: z.ZodNativeEnum<typeof FieldMappingDirection>;
|
|
25
|
+
defaultImportValue: z.ZodOptional<z.ZodAny>;
|
|
26
|
+
defaultExportValue: z.ZodOptional<z.ZodAny>;
|
|
27
|
+
importValue: z.ZodOptional<z.ZodAny>;
|
|
28
|
+
exportValue: z.ZodOptional<z.ZodAny>;
|
|
29
|
+
frozenImportFields: z.ZodOptional<z.ZodAny>;
|
|
30
|
+
frozenExportFields: z.ZodOptional<z.ZodAny>;
|
|
31
|
+
frozenUnifiedExportFields: z.ZodOptional<z.ZodAny>;
|
|
32
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
33
|
+
customized: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
key: string;
|
|
36
|
+
id: string;
|
|
37
|
+
name: string;
|
|
9
38
|
revision: string;
|
|
10
|
-
publishedRevision?: string;
|
|
11
|
-
universalFieldMappingId?: string;
|
|
12
|
-
universalFieldMappingRevision?: string;
|
|
13
|
-
integrationId?: string;
|
|
14
39
|
dataSourceId: string;
|
|
15
40
|
dataSourceKey: string;
|
|
16
41
|
appSchema: DataSchema;
|
|
17
42
|
direction: FieldMappingDirection;
|
|
43
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
44
|
+
errors?: any[] | undefined;
|
|
45
|
+
integrationId?: string | undefined;
|
|
46
|
+
archivedAt?: string | undefined;
|
|
47
|
+
publishedRevision?: string | undefined;
|
|
48
|
+
universalFieldMappingId?: string | undefined;
|
|
49
|
+
universalFieldMappingRevision?: string | undefined;
|
|
18
50
|
defaultImportValue?: any;
|
|
19
51
|
defaultExportValue?: any;
|
|
20
52
|
importValue?: any;
|
|
@@ -22,17 +54,62 @@ export interface BaseFieldMapping extends BaseMembraneInterface {
|
|
|
22
54
|
frozenImportFields?: any;
|
|
23
55
|
frozenExportFields?: any;
|
|
24
56
|
frozenUnifiedExportFields?: any;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
57
|
+
customized?: boolean | undefined;
|
|
58
|
+
}, {
|
|
59
|
+
key: string;
|
|
60
|
+
id: string;
|
|
61
|
+
name: string;
|
|
62
|
+
revision: string;
|
|
63
|
+
dataSourceId: string;
|
|
64
|
+
dataSourceKey: string;
|
|
65
|
+
appSchema: DataSchema;
|
|
66
|
+
direction: FieldMappingDirection;
|
|
67
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
68
|
+
errors?: any[] | undefined;
|
|
69
|
+
integrationId?: string | undefined;
|
|
70
|
+
archivedAt?: string | undefined;
|
|
71
|
+
publishedRevision?: string | undefined;
|
|
72
|
+
universalFieldMappingId?: string | undefined;
|
|
73
|
+
universalFieldMappingRevision?: string | undefined;
|
|
74
|
+
defaultImportValue?: any;
|
|
75
|
+
defaultExportValue?: any;
|
|
76
|
+
importValue?: any;
|
|
77
|
+
exportValue?: any;
|
|
78
|
+
frozenImportFields?: any;
|
|
79
|
+
frozenExportFields?: any;
|
|
80
|
+
frozenUnifiedExportFields?: any;
|
|
81
|
+
customized?: boolean | undefined;
|
|
82
|
+
}>;
|
|
83
|
+
export type BaseFieldMapping = z.infer<typeof BaseFieldMapping>;
|
|
84
|
+
export declare const FieldMappingUnitConfig: z.ZodObject<{
|
|
85
|
+
key: z.ZodOptional<z.ZodString>;
|
|
86
|
+
input: z.ZodOptional<z.ZodAny>;
|
|
87
|
+
includeRawFields: z.ZodOptional<z.ZodAny>;
|
|
88
|
+
importValue: z.ZodOptional<z.ZodAny>;
|
|
89
|
+
exportValue: z.ZodOptional<z.ZodAny>;
|
|
90
|
+
default: z.ZodOptional<z.ZodAny>;
|
|
91
|
+
defaultUnifiedValue: z.ZodOptional<z.ZodAny>;
|
|
92
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
93
|
+
appSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
key?: string | undefined;
|
|
96
|
+
default?: any;
|
|
30
97
|
input?: any;
|
|
31
|
-
|
|
98
|
+
appSchema?: DataSchema | undefined;
|
|
32
99
|
importValue?: any;
|
|
33
100
|
exportValue?: any;
|
|
101
|
+
includeRawFields?: any;
|
|
102
|
+
defaultUnifiedValue?: any;
|
|
103
|
+
defaultValue?: any;
|
|
104
|
+
}, {
|
|
105
|
+
key?: string | undefined;
|
|
34
106
|
default?: any;
|
|
107
|
+
input?: any;
|
|
108
|
+
appSchema?: DataSchema | undefined;
|
|
109
|
+
importValue?: any;
|
|
110
|
+
exportValue?: any;
|
|
111
|
+
includeRawFields?: any;
|
|
35
112
|
defaultUnifiedValue?: any;
|
|
36
113
|
defaultValue?: any;
|
|
37
|
-
|
|
38
|
-
|
|
114
|
+
}>;
|
|
115
|
+
export type FieldMappingUnitConfig = z.infer<typeof FieldMappingUnitConfig>;
|
|
@@ -33,7 +33,7 @@ export declare const createFlowInstanceSchema: z.ZodObject<{
|
|
|
33
33
|
concurrency?: number | undefined;
|
|
34
34
|
type?: string | undefined;
|
|
35
35
|
name?: string | undefined;
|
|
36
|
-
|
|
36
|
+
isCustomized?: boolean | undefined;
|
|
37
37
|
config?: any;
|
|
38
38
|
onError?: "stop" | "continue" | undefined;
|
|
39
39
|
ui?: any;
|
|
@@ -42,12 +42,12 @@ export declare const createFlowInstanceSchema: z.ZodObject<{
|
|
|
42
42
|
filter?: any;
|
|
43
43
|
name?: string | undefined;
|
|
44
44
|
}[] | undefined;
|
|
45
|
-
|
|
45
|
+
userConfig?: any;
|
|
46
46
|
}, {
|
|
47
47
|
concurrency?: number | undefined;
|
|
48
48
|
type?: string | undefined;
|
|
49
49
|
name?: string | undefined;
|
|
50
|
-
|
|
50
|
+
isCustomized?: boolean | undefined;
|
|
51
51
|
config?: any;
|
|
52
52
|
onError?: "stop" | "continue" | undefined;
|
|
53
53
|
ui?: any;
|
|
@@ -56,7 +56,7 @@ export declare const createFlowInstanceSchema: z.ZodObject<{
|
|
|
56
56
|
filter?: any;
|
|
57
57
|
name?: string | undefined;
|
|
58
58
|
}[] | undefined;
|
|
59
|
-
|
|
59
|
+
userConfig?: any;
|
|
60
60
|
}>>>;
|
|
61
61
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
62
62
|
customized: z.ZodOptional<z.ZodObject<{
|
|
@@ -71,17 +71,20 @@ export declare const createFlowInstanceSchema: z.ZodObject<{
|
|
|
71
71
|
}>>;
|
|
72
72
|
}, "strip", z.ZodTypeAny, {
|
|
73
73
|
name?: string | undefined;
|
|
74
|
-
parameters?: any;
|
|
75
74
|
userId?: string | undefined;
|
|
76
|
-
|
|
75
|
+
instanceKey?: string | undefined;
|
|
77
76
|
connectionId?: string | undefined;
|
|
78
77
|
integrationId?: string | undefined;
|
|
79
|
-
|
|
78
|
+
parameters?: any;
|
|
79
|
+
customized?: {
|
|
80
|
+
name?: boolean | undefined;
|
|
81
|
+
nodes?: boolean | undefined;
|
|
82
|
+
} | undefined;
|
|
80
83
|
nodes?: Record<string, {
|
|
81
84
|
concurrency?: number | undefined;
|
|
82
85
|
type?: string | undefined;
|
|
83
86
|
name?: string | undefined;
|
|
84
|
-
|
|
87
|
+
isCustomized?: boolean | undefined;
|
|
85
88
|
config?: any;
|
|
86
89
|
onError?: "stop" | "continue" | undefined;
|
|
87
90
|
ui?: any;
|
|
@@ -90,26 +93,26 @@ export declare const createFlowInstanceSchema: z.ZodObject<{
|
|
|
90
93
|
filter?: any;
|
|
91
94
|
name?: string | undefined;
|
|
92
95
|
}[] | undefined;
|
|
93
|
-
|
|
96
|
+
userConfig?: any;
|
|
94
97
|
}> | undefined;
|
|
98
|
+
flowId?: string | undefined;
|
|
95
99
|
enabled?: boolean | undefined;
|
|
96
|
-
customized?: {
|
|
97
|
-
name?: boolean | undefined;
|
|
98
|
-
nodes?: boolean | undefined;
|
|
99
|
-
} | undefined;
|
|
100
100
|
}, {
|
|
101
101
|
name?: string | undefined;
|
|
102
|
-
parameters?: any;
|
|
103
102
|
userId?: string | undefined;
|
|
104
|
-
|
|
103
|
+
instanceKey?: string | undefined;
|
|
105
104
|
connectionId?: string | undefined;
|
|
106
105
|
integrationId?: string | undefined;
|
|
107
|
-
|
|
106
|
+
parameters?: any;
|
|
107
|
+
customized?: {
|
|
108
|
+
name?: boolean | undefined;
|
|
109
|
+
nodes?: boolean | undefined;
|
|
110
|
+
} | undefined;
|
|
108
111
|
nodes?: Record<string, {
|
|
109
112
|
concurrency?: number | undefined;
|
|
110
113
|
type?: string | undefined;
|
|
111
114
|
name?: string | undefined;
|
|
112
|
-
|
|
115
|
+
isCustomized?: boolean | undefined;
|
|
113
116
|
config?: any;
|
|
114
117
|
onError?: "stop" | "continue" | undefined;
|
|
115
118
|
ui?: any;
|
|
@@ -118,13 +121,10 @@ export declare const createFlowInstanceSchema: z.ZodObject<{
|
|
|
118
121
|
filter?: any;
|
|
119
122
|
name?: string | undefined;
|
|
120
123
|
}[] | undefined;
|
|
121
|
-
|
|
124
|
+
userConfig?: any;
|
|
122
125
|
}> | undefined;
|
|
126
|
+
flowId?: string | undefined;
|
|
123
127
|
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,7 +155,7 @@ export declare const updateFlowInstanceSchema: z.ZodObject<{
|
|
|
155
155
|
concurrency?: number | undefined;
|
|
156
156
|
type?: string | undefined;
|
|
157
157
|
name?: string | undefined;
|
|
158
|
-
|
|
158
|
+
isCustomized?: boolean | undefined;
|
|
159
159
|
config?: any;
|
|
160
160
|
onError?: "stop" | "continue" | undefined;
|
|
161
161
|
links?: {
|
|
@@ -163,12 +163,12 @@ export declare const updateFlowInstanceSchema: z.ZodObject<{
|
|
|
163
163
|
filter?: any;
|
|
164
164
|
name?: string | undefined;
|
|
165
165
|
}[] | undefined;
|
|
166
|
-
|
|
166
|
+
userConfig?: any;
|
|
167
167
|
}, {
|
|
168
168
|
concurrency?: number | undefined;
|
|
169
169
|
type?: string | undefined;
|
|
170
170
|
name?: string | undefined;
|
|
171
|
-
|
|
171
|
+
isCustomized?: boolean | undefined;
|
|
172
172
|
config?: any;
|
|
173
173
|
onError?: "stop" | "continue" | undefined;
|
|
174
174
|
links?: {
|
|
@@ -176,7 +176,7 @@ export declare const updateFlowInstanceSchema: z.ZodObject<{
|
|
|
176
176
|
filter?: any;
|
|
177
177
|
name?: string | undefined;
|
|
178
178
|
}[] | undefined;
|
|
179
|
-
|
|
179
|
+
userConfig?: any;
|
|
180
180
|
}>>>;
|
|
181
181
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
182
182
|
customized: z.ZodOptional<z.ZodObject<{
|
|
@@ -192,11 +192,16 @@ export declare const updateFlowInstanceSchema: z.ZodObject<{
|
|
|
192
192
|
}, "strip", z.ZodTypeAny, {
|
|
193
193
|
name?: string | undefined;
|
|
194
194
|
parameters?: any;
|
|
195
|
+
archivedAt?: string | undefined;
|
|
196
|
+
customized?: {
|
|
197
|
+
name?: boolean | undefined;
|
|
198
|
+
nodes?: boolean | undefined;
|
|
199
|
+
} | undefined;
|
|
195
200
|
nodes?: Record<string, {
|
|
196
201
|
concurrency?: number | undefined;
|
|
197
202
|
type?: string | undefined;
|
|
198
203
|
name?: string | undefined;
|
|
199
|
-
|
|
204
|
+
isCustomized?: boolean | undefined;
|
|
200
205
|
config?: any;
|
|
201
206
|
onError?: "stop" | "continue" | undefined;
|
|
202
207
|
links?: {
|
|
@@ -204,22 +209,22 @@ export declare const updateFlowInstanceSchema: z.ZodObject<{
|
|
|
204
209
|
filter?: any;
|
|
205
210
|
name?: string | undefined;
|
|
206
211
|
}[] | undefined;
|
|
207
|
-
|
|
212
|
+
userConfig?: any;
|
|
208
213
|
}> | undefined;
|
|
209
214
|
enabled?: boolean | undefined;
|
|
215
|
+
}, {
|
|
216
|
+
name?: string | undefined;
|
|
217
|
+
parameters?: any;
|
|
218
|
+
archivedAt?: string | undefined;
|
|
210
219
|
customized?: {
|
|
211
220
|
name?: boolean | undefined;
|
|
212
221
|
nodes?: boolean | undefined;
|
|
213
222
|
} | undefined;
|
|
214
|
-
archivedAt?: string | undefined;
|
|
215
|
-
}, {
|
|
216
|
-
name?: string | undefined;
|
|
217
|
-
parameters?: any;
|
|
218
223
|
nodes?: Record<string, {
|
|
219
224
|
concurrency?: number | undefined;
|
|
220
225
|
type?: string | undefined;
|
|
221
226
|
name?: string | undefined;
|
|
222
|
-
|
|
227
|
+
isCustomized?: boolean | undefined;
|
|
223
228
|
config?: any;
|
|
224
229
|
onError?: "stop" | "continue" | undefined;
|
|
225
230
|
links?: {
|
|
@@ -227,14 +232,9 @@ export declare const updateFlowInstanceSchema: z.ZodObject<{
|
|
|
227
232
|
filter?: any;
|
|
228
233
|
name?: string | undefined;
|
|
229
234
|
}[] | undefined;
|
|
230
|
-
|
|
235
|
+
userConfig?: any;
|
|
231
236
|
}> | undefined;
|
|
232
237
|
enabled?: boolean | undefined;
|
|
233
|
-
customized?: {
|
|
234
|
-
name?: boolean | undefined;
|
|
235
|
-
nodes?: boolean | undefined;
|
|
236
|
-
} | undefined;
|
|
237
|
-
archivedAt?: string | undefined;
|
|
238
238
|
}>;
|
|
239
239
|
export type CreateFlowInstanceRequest = z.infer<typeof createFlowInstanceSchema>;
|
|
240
240
|
export type UpdateFlowInstanceRequest = z.infer<typeof updateFlowInstanceSchema>;
|
|
@@ -1,37 +1,168 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import { DataSchema } from '../../../data-schema';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import { WorkspaceElementState } from '../../types';
|
|
4
|
+
export declare const BaseFlowInstance: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
key: z.ZodString;
|
|
8
|
+
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
9
|
+
} & {
|
|
10
|
+
userId: z.ZodString;
|
|
11
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
12
|
+
flowId: z.ZodOptional<z.ZodString>;
|
|
13
|
+
universalFlowId: z.ZodOptional<z.ZodString>;
|
|
14
|
+
integrationId: z.ZodString;
|
|
15
|
+
instanceKey: z.ZodOptional<z.ZodString>;
|
|
16
|
+
parameters: z.ZodOptional<z.ZodAny>;
|
|
17
|
+
parametersSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
18
|
+
nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
19
|
+
enabled: z.ZodBoolean;
|
|
20
|
+
createdAt: z.ZodString;
|
|
21
|
+
updatedAt: z.ZodString;
|
|
22
|
+
state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
|
|
23
|
+
outdated: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
customized: z.ZodOptional<z.ZodObject<{
|
|
25
|
+
name: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
+
nodes: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
name?: boolean | undefined;
|
|
29
|
+
nodes?: boolean | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
name?: boolean | undefined;
|
|
32
|
+
nodes?: boolean | undefined;
|
|
33
|
+
}>>;
|
|
34
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
key: string;
|
|
37
|
+
id: string;
|
|
38
|
+
name: string;
|
|
7
39
|
userId: string;
|
|
8
|
-
connectionId?: string;
|
|
9
|
-
flowId?: string;
|
|
10
|
-
universalFlowId?: string;
|
|
11
40
|
integrationId: string;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
parametersSchema?: DataSchema;
|
|
15
|
-
nodes?: Record<string, FlowInstanceNode>;
|
|
41
|
+
createdAt: string;
|
|
42
|
+
updatedAt: string;
|
|
16
43
|
enabled: boolean;
|
|
44
|
+
state?: WorkspaceElementState | undefined;
|
|
45
|
+
errors?: any[] | undefined;
|
|
46
|
+
instanceKey?: string | undefined;
|
|
47
|
+
connectionId?: string | undefined;
|
|
48
|
+
parameters?: any;
|
|
49
|
+
parametersSchema?: DataSchema | undefined;
|
|
50
|
+
customized?: {
|
|
51
|
+
name?: boolean | undefined;
|
|
52
|
+
nodes?: boolean | undefined;
|
|
53
|
+
} | undefined;
|
|
54
|
+
dependencies?: any[] | undefined;
|
|
55
|
+
universalFlowId?: string | undefined;
|
|
56
|
+
nodes?: Record<string, any> | undefined;
|
|
57
|
+
flowId?: string | undefined;
|
|
58
|
+
outdated?: boolean | undefined;
|
|
59
|
+
}, {
|
|
60
|
+
key: string;
|
|
61
|
+
id: string;
|
|
62
|
+
name: string;
|
|
63
|
+
userId: string;
|
|
64
|
+
integrationId: string;
|
|
17
65
|
createdAt: string;
|
|
18
66
|
updatedAt: string;
|
|
19
|
-
|
|
20
|
-
|
|
67
|
+
enabled: boolean;
|
|
68
|
+
state?: WorkspaceElementState | undefined;
|
|
69
|
+
errors?: any[] | undefined;
|
|
70
|
+
instanceKey?: string | undefined;
|
|
71
|
+
connectionId?: string | undefined;
|
|
72
|
+
parameters?: any;
|
|
73
|
+
parametersSchema?: DataSchema | undefined;
|
|
21
74
|
customized?: {
|
|
22
|
-
name?: boolean;
|
|
23
|
-
nodes?: boolean;
|
|
24
|
-
};
|
|
25
|
-
dependencies?:
|
|
26
|
-
|
|
75
|
+
name?: boolean | undefined;
|
|
76
|
+
nodes?: boolean | undefined;
|
|
77
|
+
} | undefined;
|
|
78
|
+
dependencies?: any[] | undefined;
|
|
79
|
+
universalFlowId?: string | undefined;
|
|
80
|
+
nodes?: Record<string, any> | undefined;
|
|
81
|
+
flowId?: string | undefined;
|
|
82
|
+
outdated?: boolean | undefined;
|
|
83
|
+
}>;
|
|
84
|
+
export type BaseFlowInstance = z.infer<typeof BaseFlowInstance>;
|
|
27
85
|
export declare enum FlowInstanceNodeState {
|
|
28
86
|
SETUP_FAILED = "SETUP_FAILED",
|
|
29
87
|
READY = "READY"
|
|
30
88
|
}
|
|
31
|
-
export
|
|
32
|
-
|
|
33
|
-
|
|
89
|
+
export declare const FlowInstanceNode: z.ZodObject<{
|
|
90
|
+
type: z.ZodOptional<z.ZodString>;
|
|
91
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
92
|
+
name: z.ZodOptional<z.ZodString>;
|
|
93
|
+
description: z.ZodOptional<z.ZodString>;
|
|
94
|
+
config: z.ZodOptional<z.ZodAny>;
|
|
95
|
+
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
96
|
+
onError: z.ZodOptional<z.ZodEnum<["stop", "continue"]>>;
|
|
97
|
+
ui: z.ZodOptional<z.ZodAny>;
|
|
98
|
+
inputSchema: z.ZodOptional<z.ZodAny>;
|
|
99
|
+
outputSchema: z.ZodOptional<z.ZodAny>;
|
|
100
|
+
outputExample: z.ZodOptional<z.ZodAny>;
|
|
101
|
+
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
102
|
+
key: z.ZodOptional<z.ZodString>;
|
|
103
|
+
filter: z.ZodOptional<z.ZodAny>;
|
|
104
|
+
name: z.ZodOptional<z.ZodString>;
|
|
105
|
+
}, "strip", z.ZodTypeAny, {
|
|
106
|
+
key?: string | undefined;
|
|
107
|
+
filter?: any;
|
|
108
|
+
name?: string | undefined;
|
|
109
|
+
}, {
|
|
110
|
+
key?: string | undefined;
|
|
111
|
+
filter?: any;
|
|
112
|
+
name?: string | undefined;
|
|
113
|
+
}>, "many">>;
|
|
114
|
+
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
115
|
+
} & {
|
|
116
|
+
state: z.ZodOptional<z.ZodNativeEnum<typeof FlowInstanceNodeState>>;
|
|
117
|
+
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
118
|
+
userConfig: z.ZodOptional<z.ZodAny>;
|
|
119
|
+
testInput: z.ZodOptional<z.ZodAny>;
|
|
120
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
121
|
+
}, "strip", z.ZodTypeAny, {
|
|
122
|
+
concurrency?: number | undefined;
|
|
123
|
+
type?: string | undefined;
|
|
124
|
+
name?: string | undefined;
|
|
125
|
+
state?: FlowInstanceNodeState | undefined;
|
|
126
|
+
errors?: any[] | undefined;
|
|
127
|
+
description?: string | undefined;
|
|
128
|
+
isCustomized?: boolean | undefined;
|
|
129
|
+
inputSchema?: any;
|
|
130
|
+
config?: any;
|
|
131
|
+
outputSchema?: any;
|
|
132
|
+
dependencies?: any[] | undefined;
|
|
133
|
+
version?: number | undefined;
|
|
134
|
+
onError?: "stop" | "continue" | undefined;
|
|
135
|
+
ui?: any;
|
|
136
|
+
outputExample?: any;
|
|
137
|
+
links?: {
|
|
138
|
+
key?: string | undefined;
|
|
139
|
+
filter?: any;
|
|
140
|
+
name?: string | undefined;
|
|
141
|
+
}[] | undefined;
|
|
34
142
|
userConfig?: any;
|
|
35
143
|
testInput?: any;
|
|
36
|
-
|
|
37
|
-
|
|
144
|
+
}, {
|
|
145
|
+
concurrency?: number | undefined;
|
|
146
|
+
type?: string | undefined;
|
|
147
|
+
name?: string | undefined;
|
|
148
|
+
state?: FlowInstanceNodeState | undefined;
|
|
149
|
+
errors?: any[] | undefined;
|
|
150
|
+
description?: string | undefined;
|
|
151
|
+
isCustomized?: boolean | undefined;
|
|
152
|
+
inputSchema?: any;
|
|
153
|
+
config?: any;
|
|
154
|
+
outputSchema?: any;
|
|
155
|
+
dependencies?: any[] | undefined;
|
|
156
|
+
version?: number | undefined;
|
|
157
|
+
onError?: "stop" | "continue" | undefined;
|
|
158
|
+
ui?: any;
|
|
159
|
+
outputExample?: any;
|
|
160
|
+
links?: {
|
|
161
|
+
key?: string | undefined;
|
|
162
|
+
filter?: any;
|
|
163
|
+
name?: string | undefined;
|
|
164
|
+
}[] | undefined;
|
|
165
|
+
userConfig?: any;
|
|
166
|
+
testInput?: any;
|
|
167
|
+
}>;
|
|
168
|
+
export type FlowInstanceNode = z.infer<typeof FlowInstanceNode>;
|