@membranehq/sdk 0.5.0 → 0.5.2
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 +10513 -4612
- package/dist/bundle.js +149 -1
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +22 -15
- package/dist/dts/accessors/integrations-accessors.d.ts +22 -15
- package/dist/dts/data-schema/index.d.ts +0 -1
- package/dist/dts/entity-repository.d.ts +7 -6
- package/dist/dts/http-requests.d.ts +2 -2
- package/dist/dts/workspace-elements/api/action-instances-api.d.ts +269 -8
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +435 -10
- package/dist/dts/workspace-elements/api/actions-api.d.ts +225 -114
- package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +203 -8
- package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +49 -3
- package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +376 -0
- package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +293 -8
- package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +88 -3
- package/dist/dts/workspace-elements/api/connections-api.d.ts +505 -135
- package/dist/dts/workspace-elements/api/customers-api.d.ts +38 -5
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +447 -12
- package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +43 -2
- package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +1496 -12
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +189 -103
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +602 -19
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +608 -19
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +465 -10
- package/dist/dts/workspace-elements/api/external-events-api.d.ts +75 -41
- package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +2570 -14
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +199 -93
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +1436 -47
- package/dist/dts/workspace-elements/api/flows-api.d.ts +590 -295
- package/dist/dts/workspace-elements/api/index.d.ts +1 -1
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +176 -58
- package/dist/dts/workspace-elements/api/scenarios-api.d.ts +77 -36
- package/dist/dts/workspace-elements/api/screens-api.d.ts +33 -13
- package/dist/dts/workspace-elements/base/action-instances/types.d.ts +31 -15
- package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +12 -10
- package/dist/dts/workspace-elements/base/actions/types.d.ts +28 -11
- package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +23 -6
- package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +22 -8
- package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +25 -11
- package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +23 -9
- package/dist/dts/workspace-elements/base/connections/types.d.ts +21 -21
- package/dist/dts/workspace-elements/base/customers/index.d.ts +8 -2
- package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +18 -18
- package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +23 -6
- package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +21 -4
- package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +59 -41
- package/dist/dts/workspace-elements/base/data-sources/types.d.ts +16 -8
- package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +2 -5
- package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +23 -5
- package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +20 -6
- package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +2 -2
- package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +24 -9
- package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +14 -1
- package/dist/dts/workspace-elements/base/flows/types.d.ts +20 -6
- package/dist/dts/workspace-elements/base/integrations/types.d.ts +187 -104
- package/dist/dts/workspace-elements/base/scenarios/types.d.ts +21 -4
- package/dist/dts/workspace-elements/base/screens/types.d.ts +9 -1
- package/dist/dts/workspace-elements/types.d.ts +25 -3
- package/dist/dts/workspaces/types.d.ts +5 -4
- package/dist/index.d.ts +20345 -9526
- package/dist/index.js +268 -115
- package/dist/index.js.map +1 -1
- package/dist/index.module.d.mts +20345 -9526
- package/dist/index.module.mjs +234 -107
- package/dist/index.module.mjs.map +1 -1
- package/package.json +3 -2
- package/dist/dts/data-schema/schemas.d.ts +0 -4
- package/dist/dts/workspace-elements/api/app-events-api.d.ts +0 -17
|
@@ -4,8 +4,13 @@ import { WorkspaceElementState } from '../../types';
|
|
|
4
4
|
export declare const BaseFlowInstance: z.ZodObject<{
|
|
5
5
|
id: z.ZodString;
|
|
6
6
|
name: z.ZodString;
|
|
7
|
-
key: z.ZodString
|
|
7
|
+
key: z.ZodOptional<z.ZodString>;
|
|
8
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
9
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8
10
|
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
11
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
12
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
9
14
|
} & {
|
|
10
15
|
userId: z.ZodString;
|
|
11
16
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
@@ -33,16 +38,21 @@ export declare const BaseFlowInstance: z.ZodObject<{
|
|
|
33
38
|
}>>;
|
|
34
39
|
dependencies: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
35
40
|
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
key: string;
|
|
37
41
|
id: string;
|
|
38
42
|
name: string;
|
|
39
|
-
userId: string;
|
|
40
|
-
integrationId: string;
|
|
41
43
|
createdAt: string;
|
|
42
44
|
updatedAt: string;
|
|
45
|
+
userId: string;
|
|
46
|
+
integrationId: string;
|
|
43
47
|
enabled: boolean;
|
|
48
|
+
key?: string | undefined;
|
|
49
|
+
uuid?: string | undefined;
|
|
50
|
+
description?: string | undefined;
|
|
44
51
|
state?: WorkspaceElementState | undefined;
|
|
45
52
|
errors?: any[] | undefined;
|
|
53
|
+
revision?: string | undefined;
|
|
54
|
+
isDeactivated?: boolean | undefined;
|
|
55
|
+
archivedAt?: string | undefined;
|
|
46
56
|
instanceKey?: string | undefined;
|
|
47
57
|
connectionId?: string | undefined;
|
|
48
58
|
parameters?: any;
|
|
@@ -57,16 +67,21 @@ export declare const BaseFlowInstance: z.ZodObject<{
|
|
|
57
67
|
flowId?: string | undefined;
|
|
58
68
|
outdated?: boolean | undefined;
|
|
59
69
|
}, {
|
|
60
|
-
key: string;
|
|
61
70
|
id: string;
|
|
62
71
|
name: string;
|
|
63
|
-
userId: string;
|
|
64
|
-
integrationId: string;
|
|
65
72
|
createdAt: string;
|
|
66
73
|
updatedAt: string;
|
|
74
|
+
userId: string;
|
|
75
|
+
integrationId: string;
|
|
67
76
|
enabled: boolean;
|
|
77
|
+
key?: string | undefined;
|
|
78
|
+
uuid?: string | undefined;
|
|
79
|
+
description?: string | undefined;
|
|
68
80
|
state?: WorkspaceElementState | undefined;
|
|
69
81
|
errors?: any[] | undefined;
|
|
82
|
+
revision?: string | undefined;
|
|
83
|
+
isDeactivated?: boolean | undefined;
|
|
84
|
+
archivedAt?: string | undefined;
|
|
70
85
|
instanceKey?: string | undefined;
|
|
71
86
|
connectionId?: string | undefined;
|
|
72
87
|
parameters?: any;
|
|
@@ -122,9 +137,9 @@ export declare const FlowInstanceNode: z.ZodObject<{
|
|
|
122
137
|
concurrency?: number | undefined;
|
|
123
138
|
type?: string | undefined;
|
|
124
139
|
name?: string | undefined;
|
|
140
|
+
description?: string | undefined;
|
|
125
141
|
state?: FlowInstanceNodeState | undefined;
|
|
126
142
|
errors?: any[] | undefined;
|
|
127
|
-
description?: string | undefined;
|
|
128
143
|
isCustomized?: boolean | undefined;
|
|
129
144
|
inputSchema?: any;
|
|
130
145
|
config?: any;
|
|
@@ -145,9 +160,9 @@ export declare const FlowInstanceNode: z.ZodObject<{
|
|
|
145
160
|
concurrency?: number | undefined;
|
|
146
161
|
type?: string | undefined;
|
|
147
162
|
name?: string | undefined;
|
|
163
|
+
description?: string | undefined;
|
|
148
164
|
state?: FlowInstanceNodeState | undefined;
|
|
149
165
|
errors?: any[] | undefined;
|
|
150
|
-
description?: string | undefined;
|
|
151
166
|
isCustomized?: boolean | undefined;
|
|
152
167
|
inputSchema?: any;
|
|
153
168
|
config?: any;
|
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { FlowRunState, FlowRunLaunchedByTrigger } from '../../api/flow-runs-api';
|
|
3
2
|
export declare enum FlowRunNodeState {
|
|
4
3
|
RUNNING = "running",
|
|
5
4
|
COMPLETED = "completed",
|
|
6
5
|
STOPPED = "stopped",
|
|
7
6
|
FAILED = "failed"
|
|
8
7
|
}
|
|
8
|
+
export declare enum FlowRunState {
|
|
9
|
+
QUEUED = "queued",
|
|
10
|
+
RUNNING = "running",
|
|
11
|
+
COMPLETED = "completed",
|
|
12
|
+
STOPPED = "stopped",
|
|
13
|
+
FAILED = "failed"
|
|
14
|
+
}
|
|
15
|
+
export declare enum FlowRunLaunchedByTrigger {
|
|
16
|
+
ApiTrigger = "api-trigger",
|
|
17
|
+
ScheduleTrigger = "schedule-trigger",
|
|
18
|
+
AppEventTrigger = "app-event-trigger",
|
|
19
|
+
DataSourceTrigger = "data-source-trigger",
|
|
20
|
+
ExternalEvent = "external-event"
|
|
21
|
+
}
|
|
9
22
|
export declare const FlowRunLaunchedBy: z.ZodObject<{
|
|
10
23
|
type: z.ZodNativeEnum<typeof FlowRunLaunchedByTrigger>;
|
|
11
24
|
ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -81,10 +81,14 @@ export type FlowNode = z.infer<typeof FlowNode>;
|
|
|
81
81
|
export declare const BaseFlow: z.ZodObject<{
|
|
82
82
|
id: z.ZodString;
|
|
83
83
|
name: z.ZodString;
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
key: z.ZodOptional<z.ZodString>;
|
|
85
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
86
|
+
description: z.ZodOptional<z.ZodString>;
|
|
86
87
|
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
87
88
|
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
89
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
90
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
91
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
88
92
|
} & {
|
|
89
93
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
90
94
|
universalFlowId: z.ZodOptional<z.ZodString>;
|
|
@@ -158,15 +162,20 @@ export declare const BaseFlow: z.ZodObject<{
|
|
|
158
162
|
revision: z.ZodString;
|
|
159
163
|
customized: z.ZodOptional<z.ZodBoolean>;
|
|
160
164
|
}, "strip", z.ZodTypeAny, {
|
|
161
|
-
key: string;
|
|
162
165
|
id: string;
|
|
163
166
|
name: string;
|
|
164
167
|
revision: string;
|
|
168
|
+
key?: string | undefined;
|
|
169
|
+
uuid?: string | undefined;
|
|
170
|
+
description?: string | undefined;
|
|
165
171
|
state?: import("../../types").WorkspaceElementState | undefined;
|
|
166
172
|
errors?: any[] | undefined;
|
|
173
|
+
isDeactivated?: boolean | undefined;
|
|
174
|
+
createdAt?: string | undefined;
|
|
175
|
+
updatedAt?: string | undefined;
|
|
176
|
+
archivedAt?: string | undefined;
|
|
167
177
|
integrationId?: string | undefined;
|
|
168
178
|
parametersSchema?: DataSchema | undefined;
|
|
169
|
-
archivedAt?: string | undefined;
|
|
170
179
|
customized?: boolean | undefined;
|
|
171
180
|
universalFlowId?: string | undefined;
|
|
172
181
|
universalFlowRevision?: string | undefined;
|
|
@@ -191,15 +200,20 @@ export declare const BaseFlow: z.ZodObject<{
|
|
|
191
200
|
}> | undefined;
|
|
192
201
|
autoCreateInstances?: boolean | undefined;
|
|
193
202
|
}, {
|
|
194
|
-
key: string;
|
|
195
203
|
id: string;
|
|
196
204
|
name: string;
|
|
197
205
|
revision: string;
|
|
206
|
+
key?: string | undefined;
|
|
207
|
+
uuid?: string | undefined;
|
|
208
|
+
description?: string | undefined;
|
|
198
209
|
state?: import("../../types").WorkspaceElementState | undefined;
|
|
199
210
|
errors?: any[] | undefined;
|
|
211
|
+
isDeactivated?: boolean | undefined;
|
|
212
|
+
createdAt?: string | undefined;
|
|
213
|
+
updatedAt?: string | undefined;
|
|
214
|
+
archivedAt?: string | undefined;
|
|
200
215
|
integrationId?: string | undefined;
|
|
201
216
|
parametersSchema?: DataSchema | undefined;
|
|
202
|
-
archivedAt?: string | undefined;
|
|
203
217
|
customized?: boolean | undefined;
|
|
204
218
|
universalFlowId?: string | undefined;
|
|
205
219
|
universalFlowRevision?: string | undefined;
|