@membranehq/sdk 0.7.3 → 0.7.5
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 +2283 -14038
- package/dist/bundle.js +3949 -4253
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +28 -28
- package/dist/dts/accessors/integrations-accessors.d.ts +28 -28
- package/dist/dts/config/index.d.ts +1 -11
- package/dist/dts/date-time/business-day.d.ts +2 -0
- package/dist/dts/date-time/business-day.test.d.ts +1 -0
- package/dist/dts/date-time/index.d.ts +1 -0
- package/dist/dts/entity-repository.d.ts +13 -64
- package/dist/dts/http-requests.d.ts +2 -14
- package/dist/dts/iframe.d.ts +4 -12
- package/dist/dts/scenario-templates/index.d.ts +60 -484
- package/dist/dts/workspace-elements/api/action-instances-api.d.ts +17 -248
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +23 -339
- package/dist/dts/workspace-elements/api/actions-api.d.ts +52 -639
- package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +8 -169
- package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +19 -51
- package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +15 -325
- package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +13 -248
- package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +28 -90
- package/dist/dts/workspace-elements/api/connections-api.d.ts +56 -892
- package/dist/dts/workspace-elements/api/customers-api.d.ts +8 -68
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +21 -369
- package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +17 -45
- package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +86 -1359
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +164 -880
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +29 -502
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +29 -506
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +21 -381
- package/dist/dts/workspace-elements/api/external-events-api.d.ts +20 -425
- package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +125 -2363
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +109 -666
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +66 -1229
- package/dist/dts/workspace-elements/api/flows-api.d.ts +273 -1874
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +45 -287
- package/dist/dts/workspace-elements/api/scenarios-api.d.ts +27 -450
- package/dist/dts/workspace-elements/api/screens-api.d.ts +11 -31
- package/dist/dts/workspace-elements/base/action-instances/types.d.ts +6 -60
- package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +3 -28
- package/dist/dts/workspace-elements/base/actions/index.d.ts +10 -82
- package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +4 -47
- package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +3 -36
- package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +6 -75
- package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +6 -69
- package/dist/dts/workspace-elements/base/connections/types.d.ts +11 -56
- package/dist/dts/workspace-elements/base/connectors/types.d.ts +1 -11
- package/dist/dts/workspace-elements/base/customers/index.d.ts +1 -25
- package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +141 -1471
- package/dist/dts/workspace-elements/base/data-collections/types.d.ts +1 -29
- package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +6 -61
- package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +3 -32
- package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +60 -973
- package/dist/dts/workspace-elements/base/data-sources/index.d.ts +57 -2
- package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +4 -26
- package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +4 -30
- package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +9 -161
- package/dist/dts/workspace-elements/base/external-events/types.d.ts +7 -121
- package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +10 -77
- package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +71 -1
- package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +16 -194
- package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +15 -132
- package/dist/dts/workspace-elements/base/flow-runs/flow-node-runs.d.ts +29 -284
- package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +13 -93
- package/dist/dts/workspace-elements/base/flows/index.d.ts +80 -1
- package/dist/dts/workspace-elements/base/flows/nodes/base.d.ts +30 -1
- package/dist/dts/workspace-elements/base/flows/nodes/index.d.ts +1 -1
- package/dist/dts/workspace-elements/base/integrations/types.d.ts +23 -539
- package/dist/dts/workspace-elements/base/scenarios/index.d.ts +11 -119
- package/dist/dts/workspace-elements/base/screens/types.d.ts +6 -31
- package/dist/dts/workspace-elements/types.d.ts +15 -153
- package/dist/index.browser.d.mts +7609 -26109
- package/dist/index.browser.d.ts +7609 -26109
- package/dist/index.browser.js +420 -419
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +412 -415
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +7537 -26047
- package/dist/index.node.d.ts +7537 -26047
- package/dist/index.node.js +420 -419
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +412 -415
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -2
- 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 -109
- package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +0 -136
- package/dist/dts/workspace-elements/base/flows/types.d.ts +0 -248
|
@@ -7,39 +7,14 @@ export declare enum ActionRunLogStatus {
|
|
|
7
7
|
export declare const BaseActionRunLogRecord: z.ZodObject<{
|
|
8
8
|
id: z.ZodString;
|
|
9
9
|
name: z.ZodString;
|
|
10
|
-
} & {
|
|
11
10
|
actionId: z.ZodString;
|
|
12
11
|
integrationId: z.ZodString;
|
|
13
12
|
connectionId: z.ZodString;
|
|
14
13
|
input: z.ZodOptional<z.ZodAny>;
|
|
15
14
|
output: z.ZodOptional<z.ZodAny>;
|
|
16
|
-
status: z.
|
|
15
|
+
status: z.ZodEnum<typeof ActionRunLogStatus>;
|
|
17
16
|
createdAt: z.ZodString;
|
|
18
17
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
19
|
-
error: z.ZodOptional<z.ZodType<ErrorDataSchema, z.
|
|
20
|
-
},
|
|
21
|
-
status: ActionRunLogStatus;
|
|
22
|
-
id: string;
|
|
23
|
-
name: string;
|
|
24
|
-
createdAt: string;
|
|
25
|
-
integrationId: string;
|
|
26
|
-
connectionId: string;
|
|
27
|
-
actionId: string;
|
|
28
|
-
error?: ErrorDataSchema | undefined;
|
|
29
|
-
input?: any;
|
|
30
|
-
output?: any;
|
|
31
|
-
completedAt?: string | undefined;
|
|
32
|
-
}, {
|
|
33
|
-
status: ActionRunLogStatus;
|
|
34
|
-
id: string;
|
|
35
|
-
name: string;
|
|
36
|
-
createdAt: string;
|
|
37
|
-
integrationId: string;
|
|
38
|
-
connectionId: string;
|
|
39
|
-
actionId: string;
|
|
40
|
-
error?: ErrorDataSchema | undefined;
|
|
41
|
-
input?: any;
|
|
42
|
-
output?: any;
|
|
43
|
-
completedAt?: string | undefined;
|
|
44
|
-
}>;
|
|
18
|
+
error: z.ZodOptional<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
45
20
|
export type BaseActionRunLogRecord = z.infer<typeof BaseActionRunLogRecord>;
|
|
@@ -8,41 +8,14 @@ export declare const ActionEditableProperties: z.ZodObject<{
|
|
|
8
8
|
uuid: z.ZodOptional<z.ZodString>;
|
|
9
9
|
description: z.ZodOptional<z.ZodString>;
|
|
10
10
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
11
|
-
} & {
|
|
12
11
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
13
12
|
parentId: z.ZodOptional<z.ZodString>;
|
|
14
|
-
inputSchema: z.ZodOptional<z.ZodType<DataSchema, z.
|
|
15
|
-
type: z.ZodOptional<z.
|
|
13
|
+
inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
14
|
+
type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
|
|
16
15
|
config: z.ZodOptional<z.ZodAny>;
|
|
17
16
|
outputMapping: z.ZodOptional<z.ZodAny>;
|
|
18
|
-
customOutputSchema: z.ZodOptional<z.ZodType<DataSchema, z.
|
|
19
|
-
},
|
|
20
|
-
key?: string | undefined;
|
|
21
|
-
type?: ActionType | undefined;
|
|
22
|
-
name?: string | undefined;
|
|
23
|
-
uuid?: string | undefined;
|
|
24
|
-
description?: string | undefined;
|
|
25
|
-
meta?: Record<string, any> | undefined;
|
|
26
|
-
integrationId?: string | undefined;
|
|
27
|
-
parentId?: string | undefined;
|
|
28
|
-
inputSchema?: DataSchema | undefined;
|
|
29
|
-
config?: any;
|
|
30
|
-
outputMapping?: any;
|
|
31
|
-
customOutputSchema?: DataSchema | undefined;
|
|
32
|
-
}, {
|
|
33
|
-
key?: string | undefined;
|
|
34
|
-
type?: ActionType | undefined;
|
|
35
|
-
name?: string | undefined;
|
|
36
|
-
uuid?: string | undefined;
|
|
37
|
-
description?: string | undefined;
|
|
38
|
-
meta?: Record<string, any> | undefined;
|
|
39
|
-
integrationId?: string | undefined;
|
|
40
|
-
parentId?: string | undefined;
|
|
41
|
-
inputSchema?: DataSchema | undefined;
|
|
42
|
-
config?: any;
|
|
43
|
-
outputMapping?: any;
|
|
44
|
-
customOutputSchema?: DataSchema | undefined;
|
|
45
|
-
}>;
|
|
17
|
+
customOutputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
46
19
|
export type ActionEditableProperties = z.infer<typeof ActionEditableProperties>;
|
|
47
20
|
export declare const BaseAction: z.ZodObject<{
|
|
48
21
|
id: z.ZodString;
|
|
@@ -52,64 +25,19 @@ export declare const BaseAction: z.ZodObject<{
|
|
|
52
25
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
53
26
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
54
27
|
parentId: z.ZodOptional<z.ZodString>;
|
|
55
|
-
inputSchema: z.ZodOptional<z.ZodType<DataSchema, z.
|
|
56
|
-
type: z.ZodOptional<z.
|
|
28
|
+
inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
29
|
+
type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
|
|
57
30
|
config: z.ZodOptional<z.ZodAny>;
|
|
58
31
|
outputMapping: z.ZodOptional<z.ZodAny>;
|
|
59
|
-
customOutputSchema: z.ZodOptional<z.ZodType<DataSchema, z.
|
|
60
|
-
} & {
|
|
32
|
+
customOutputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
61
33
|
name: z.ZodString;
|
|
62
|
-
state: z.ZodOptional<z.
|
|
63
|
-
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, z.
|
|
34
|
+
state: z.ZodOptional<z.ZodEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
35
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../..").ErrorDataSchema, unknown>>>>;
|
|
64
36
|
revision: z.ZodOptional<z.ZodString>;
|
|
65
37
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
66
38
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
67
39
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
68
40
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
69
41
|
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
70
|
-
},
|
|
71
|
-
id: string;
|
|
72
|
-
name: string;
|
|
73
|
-
key?: string | undefined;
|
|
74
|
-
type?: ActionType | undefined;
|
|
75
|
-
uuid?: string | undefined;
|
|
76
|
-
description?: string | undefined;
|
|
77
|
-
meta?: Record<string, any> | undefined;
|
|
78
|
-
state?: import("../../types").WorkspaceElementState | undefined;
|
|
79
|
-
errors?: import("../../..").ErrorDataSchema[] | undefined;
|
|
80
|
-
revision?: string | undefined;
|
|
81
|
-
createdAt?: string | undefined;
|
|
82
|
-
updatedAt?: string | undefined;
|
|
83
|
-
archivedAt?: string | undefined;
|
|
84
|
-
isDeactivated?: boolean | undefined;
|
|
85
|
-
integrationId?: string | undefined;
|
|
86
|
-
parentId?: string | undefined;
|
|
87
|
-
isCustomized?: boolean | undefined;
|
|
88
|
-
inputSchema?: DataSchema | undefined;
|
|
89
|
-
config?: any;
|
|
90
|
-
outputMapping?: any;
|
|
91
|
-
customOutputSchema?: DataSchema | undefined;
|
|
92
|
-
}, {
|
|
93
|
-
id: string;
|
|
94
|
-
name: string;
|
|
95
|
-
key?: string | undefined;
|
|
96
|
-
type?: ActionType | undefined;
|
|
97
|
-
uuid?: string | undefined;
|
|
98
|
-
description?: string | undefined;
|
|
99
|
-
meta?: Record<string, any> | undefined;
|
|
100
|
-
state?: import("../../types").WorkspaceElementState | undefined;
|
|
101
|
-
errors?: import("../../..").ErrorDataSchema[] | undefined;
|
|
102
|
-
revision?: string | undefined;
|
|
103
|
-
createdAt?: string | undefined;
|
|
104
|
-
updatedAt?: string | undefined;
|
|
105
|
-
archivedAt?: string | undefined;
|
|
106
|
-
isDeactivated?: boolean | undefined;
|
|
107
|
-
integrationId?: string | undefined;
|
|
108
|
-
parentId?: string | undefined;
|
|
109
|
-
isCustomized?: boolean | undefined;
|
|
110
|
-
inputSchema?: DataSchema | undefined;
|
|
111
|
-
config?: any;
|
|
112
|
-
outputMapping?: any;
|
|
113
|
-
customOutputSchema?: DataSchema | undefined;
|
|
114
|
-
}>;
|
|
42
|
+
}, z.core.$strip>;
|
|
115
43
|
export type BaseAction = z.infer<typeof BaseAction>;
|
|
@@ -7,62 +7,19 @@ export declare const BaseAppDataSchemaInstance: z.ZodObject<{
|
|
|
7
7
|
description: z.ZodOptional<z.ZodString>;
|
|
8
8
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
9
9
|
name: z.ZodString;
|
|
10
|
-
state: z.ZodOptional<z.
|
|
11
|
-
errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.
|
|
10
|
+
state: z.ZodOptional<z.ZodEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
11
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
|
|
12
12
|
revision: z.ZodOptional<z.ZodString>;
|
|
13
13
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
14
14
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
15
15
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
-
} & {
|
|
17
16
|
appId: z.ZodString;
|
|
18
17
|
userId: z.ZodString;
|
|
19
18
|
appDataSchemaId: z.ZodString;
|
|
20
19
|
appDataSchemaRevision: z.ZodString;
|
|
21
20
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
22
21
|
schema: z.ZodOptional<z.ZodAny>;
|
|
23
|
-
error: z.ZodOptional<z.ZodType<ErrorDataSchema, z.
|
|
22
|
+
error: z.ZodOptional<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>;
|
|
24
23
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
25
|
-
},
|
|
26
|
-
id: string;
|
|
27
|
-
name: string;
|
|
28
|
-
userId: string;
|
|
29
|
-
appId: string;
|
|
30
|
-
appDataSchemaId: string;
|
|
31
|
-
appDataSchemaRevision: string;
|
|
32
|
-
key?: string | undefined;
|
|
33
|
-
error?: ErrorDataSchema | undefined;
|
|
34
|
-
uuid?: string | undefined;
|
|
35
|
-
description?: string | undefined;
|
|
36
|
-
meta?: Record<string, any> | undefined;
|
|
37
|
-
state?: import("../../types").WorkspaceElementState | undefined;
|
|
38
|
-
errors?: ErrorDataSchema[] | undefined;
|
|
39
|
-
revision?: string | undefined;
|
|
40
|
-
createdAt?: string | undefined;
|
|
41
|
-
updatedAt?: string | undefined;
|
|
42
|
-
archivedAt?: string | undefined;
|
|
43
|
-
isDeactivated?: boolean | undefined;
|
|
44
|
-
instanceKey?: string | undefined;
|
|
45
|
-
schema?: any;
|
|
46
|
-
}, {
|
|
47
|
-
id: string;
|
|
48
|
-
name: string;
|
|
49
|
-
userId: string;
|
|
50
|
-
appId: string;
|
|
51
|
-
appDataSchemaId: string;
|
|
52
|
-
appDataSchemaRevision: string;
|
|
53
|
-
key?: string | undefined;
|
|
54
|
-
error?: ErrorDataSchema | undefined;
|
|
55
|
-
uuid?: string | undefined;
|
|
56
|
-
description?: string | undefined;
|
|
57
|
-
meta?: Record<string, any> | undefined;
|
|
58
|
-
state?: import("../../types").WorkspaceElementState | undefined;
|
|
59
|
-
errors?: ErrorDataSchema[] | undefined;
|
|
60
|
-
revision?: string | undefined;
|
|
61
|
-
createdAt?: string | undefined;
|
|
62
|
-
updatedAt?: string | undefined;
|
|
63
|
-
archivedAt?: string | undefined;
|
|
64
|
-
isDeactivated?: boolean | undefined;
|
|
65
|
-
instanceKey?: string | undefined;
|
|
66
|
-
schema?: any;
|
|
67
|
-
}>;
|
|
24
|
+
}, z.core.$strip>;
|
|
68
25
|
export type BaseAppDataSchemaInstance = z.infer<typeof BaseAppDataSchemaInstance>;
|
|
@@ -6,47 +6,14 @@ export declare const BaseAppDataSchema: z.ZodObject<{
|
|
|
6
6
|
description: z.ZodOptional<z.ZodString>;
|
|
7
7
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
8
8
|
name: z.ZodString;
|
|
9
|
-
state: z.ZodOptional<z.
|
|
10
|
-
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, z.
|
|
9
|
+
state: z.ZodOptional<z.ZodEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
10
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../..").ErrorDataSchema, unknown>>>>;
|
|
11
11
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
12
12
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
13
13
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
-
} & {
|
|
15
14
|
schema: z.ZodAny;
|
|
16
15
|
code: z.ZodOptional<z.ZodString>;
|
|
17
16
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
18
17
|
revision: z.ZodOptional<z.ZodString>;
|
|
19
|
-
},
|
|
20
|
-
id: string;
|
|
21
|
-
name: string;
|
|
22
|
-
key?: string | undefined;
|
|
23
|
-
code?: string | undefined;
|
|
24
|
-
uuid?: string | undefined;
|
|
25
|
-
description?: string | undefined;
|
|
26
|
-
meta?: Record<string, any> | undefined;
|
|
27
|
-
state?: import("../../types").WorkspaceElementState | undefined;
|
|
28
|
-
errors?: import("../../..").ErrorDataSchema[] | undefined;
|
|
29
|
-
revision?: string | undefined;
|
|
30
|
-
createdAt?: string | undefined;
|
|
31
|
-
updatedAt?: string | undefined;
|
|
32
|
-
archivedAt?: string | undefined;
|
|
33
|
-
isDeactivated?: boolean | undefined;
|
|
34
|
-
schema?: any;
|
|
35
|
-
}, {
|
|
36
|
-
id: string;
|
|
37
|
-
name: string;
|
|
38
|
-
key?: string | undefined;
|
|
39
|
-
code?: string | undefined;
|
|
40
|
-
uuid?: string | undefined;
|
|
41
|
-
description?: string | undefined;
|
|
42
|
-
meta?: Record<string, any> | undefined;
|
|
43
|
-
state?: import("../../types").WorkspaceElementState | undefined;
|
|
44
|
-
errors?: import("../../..").ErrorDataSchema[] | undefined;
|
|
45
|
-
revision?: string | undefined;
|
|
46
|
-
createdAt?: string | undefined;
|
|
47
|
-
updatedAt?: string | undefined;
|
|
48
|
-
archivedAt?: string | undefined;
|
|
49
|
-
isDeactivated?: boolean | undefined;
|
|
50
|
-
schema?: any;
|
|
51
|
-
}>;
|
|
18
|
+
}, z.core.$strip>;
|
|
52
19
|
export type BaseAppDataSchema = z.infer<typeof BaseAppDataSchema>;
|
|
@@ -7,95 +7,26 @@ export declare const BaseAppEventSubscription: z.ZodObject<{
|
|
|
7
7
|
description: z.ZodOptional<z.ZodString>;
|
|
8
8
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
9
9
|
name: z.ZodString;
|
|
10
|
-
state: z.ZodOptional<z.
|
|
11
|
-
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, z.
|
|
10
|
+
state: z.ZodOptional<z.ZodEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
11
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../..").ErrorDataSchema, unknown>>>>;
|
|
12
12
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
13
13
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
14
14
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
-
} & {
|
|
16
15
|
revision: z.ZodString;
|
|
17
16
|
appEventTypeId: z.ZodString;
|
|
18
17
|
userId: z.ZodString;
|
|
19
18
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
20
19
|
isSubscribed: z.ZodBoolean;
|
|
21
|
-
schema: z.ZodOptional<z.ZodType<DataSchema, z.
|
|
20
|
+
schema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
22
21
|
webhookUri: z.ZodString;
|
|
23
22
|
subscriptionRequest: z.ZodObject<{
|
|
24
|
-
method: z.ZodOptional<z.
|
|
23
|
+
method: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEnum<typeof import("../../../http-requests").HttpRequestMethod>>>;
|
|
25
24
|
uri: z.ZodAny;
|
|
26
25
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
27
26
|
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
28
27
|
body: z.ZodOptional<z.ZodAny>;
|
|
29
|
-
},
|
|
30
|
-
headers?: Record<string, any> | undefined;
|
|
31
|
-
method?: import("../../../http-requests").HttpRequestMethod | undefined;
|
|
32
|
-
body?: any;
|
|
33
|
-
uri?: any;
|
|
34
|
-
query?: Record<string, any> | undefined;
|
|
35
|
-
}, {
|
|
36
|
-
headers?: Record<string, any> | undefined;
|
|
37
|
-
method?: string | undefined;
|
|
38
|
-
body?: any;
|
|
39
|
-
uri?: any;
|
|
40
|
-
query?: Record<string, any> | undefined;
|
|
41
|
-
}>;
|
|
28
|
+
}, z.core.$strip>;
|
|
42
29
|
subscriptionResponse: z.ZodOptional<z.ZodAny>;
|
|
43
30
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
44
|
-
},
|
|
45
|
-
id: string;
|
|
46
|
-
name: string;
|
|
47
|
-
revision: string;
|
|
48
|
-
userId: string;
|
|
49
|
-
webhookUri: string;
|
|
50
|
-
appEventTypeId: string;
|
|
51
|
-
isSubscribed: boolean;
|
|
52
|
-
subscriptionRequest: {
|
|
53
|
-
headers?: Record<string, any> | undefined;
|
|
54
|
-
method?: import("../../../http-requests").HttpRequestMethod | undefined;
|
|
55
|
-
body?: any;
|
|
56
|
-
uri?: any;
|
|
57
|
-
query?: Record<string, any> | undefined;
|
|
58
|
-
};
|
|
59
|
-
key?: string | undefined;
|
|
60
|
-
uuid?: string | undefined;
|
|
61
|
-
description?: string | undefined;
|
|
62
|
-
meta?: Record<string, any> | undefined;
|
|
63
|
-
state?: import("../../types").WorkspaceElementState | undefined;
|
|
64
|
-
errors?: import("../../..").ErrorDataSchema[] | undefined;
|
|
65
|
-
createdAt?: string | undefined;
|
|
66
|
-
updatedAt?: string | undefined;
|
|
67
|
-
archivedAt?: string | undefined;
|
|
68
|
-
isDeactivated?: boolean | undefined;
|
|
69
|
-
instanceKey?: string | undefined;
|
|
70
|
-
schema?: DataSchema | undefined;
|
|
71
|
-
subscriptionResponse?: any;
|
|
72
|
-
}, {
|
|
73
|
-
id: string;
|
|
74
|
-
name: string;
|
|
75
|
-
revision: string;
|
|
76
|
-
userId: string;
|
|
77
|
-
webhookUri: string;
|
|
78
|
-
appEventTypeId: string;
|
|
79
|
-
isSubscribed: boolean;
|
|
80
|
-
subscriptionRequest: {
|
|
81
|
-
headers?: Record<string, any> | undefined;
|
|
82
|
-
method?: string | undefined;
|
|
83
|
-
body?: any;
|
|
84
|
-
uri?: any;
|
|
85
|
-
query?: Record<string, any> | undefined;
|
|
86
|
-
};
|
|
87
|
-
key?: string | undefined;
|
|
88
|
-
uuid?: string | undefined;
|
|
89
|
-
description?: string | undefined;
|
|
90
|
-
meta?: Record<string, any> | undefined;
|
|
91
|
-
state?: import("../../types").WorkspaceElementState | undefined;
|
|
92
|
-
errors?: import("../../..").ErrorDataSchema[] | undefined;
|
|
93
|
-
createdAt?: string | undefined;
|
|
94
|
-
updatedAt?: string | undefined;
|
|
95
|
-
archivedAt?: string | undefined;
|
|
96
|
-
isDeactivated?: boolean | undefined;
|
|
97
|
-
instanceKey?: string | undefined;
|
|
98
|
-
schema?: DataSchema | undefined;
|
|
99
|
-
subscriptionResponse?: any;
|
|
100
|
-
}>;
|
|
31
|
+
}, z.core.$strip>;
|
|
101
32
|
export type BaseAppEventSubscription = z.infer<typeof BaseAppEventSubscription>;
|
|
@@ -7,86 +7,23 @@ export declare const BaseAppEventType: z.ZodObject<{
|
|
|
7
7
|
description: z.ZodOptional<z.ZodString>;
|
|
8
8
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
9
9
|
name: z.ZodString;
|
|
10
|
-
state: z.ZodOptional<z.
|
|
11
|
-
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, z.
|
|
10
|
+
state: z.ZodOptional<z.ZodEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
11
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../..").ErrorDataSchema, unknown>>>>;
|
|
12
12
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
13
13
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
14
14
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
-
} & {
|
|
16
15
|
revision: z.ZodString;
|
|
17
16
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
18
17
|
subscribeRequest: z.ZodOptional<z.ZodObject<{
|
|
19
|
-
method: z.ZodOptional<z.
|
|
18
|
+
method: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEnum<typeof import("../../../http-requests").HttpRequestMethod>>>;
|
|
20
19
|
uri: z.ZodAny;
|
|
21
20
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
22
21
|
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
23
22
|
body: z.ZodOptional<z.ZodAny>;
|
|
24
|
-
},
|
|
25
|
-
headers?: Record<string, any> | undefined;
|
|
26
|
-
method?: import("../../../http-requests").HttpRequestMethod | undefined;
|
|
27
|
-
body?: any;
|
|
28
|
-
uri?: any;
|
|
29
|
-
query?: Record<string, any> | undefined;
|
|
30
|
-
}, {
|
|
31
|
-
headers?: Record<string, any> | undefined;
|
|
32
|
-
method?: string | undefined;
|
|
33
|
-
body?: any;
|
|
34
|
-
uri?: any;
|
|
35
|
-
query?: Record<string, any> | undefined;
|
|
36
|
-
}>>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
37
24
|
example: z.ZodOptional<z.ZodAny>;
|
|
38
|
-
schema: z.ZodOptional<z.ZodType<DataSchema, z.
|
|
25
|
+
schema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
39
26
|
globalWebhookUri: z.ZodString;
|
|
40
27
|
userIdFormula: z.ZodOptional<z.ZodAny>;
|
|
41
|
-
},
|
|
42
|
-
id: string;
|
|
43
|
-
name: string;
|
|
44
|
-
revision: string;
|
|
45
|
-
globalWebhookUri: string;
|
|
46
|
-
key?: string | undefined;
|
|
47
|
-
uuid?: string | undefined;
|
|
48
|
-
description?: string | undefined;
|
|
49
|
-
meta?: Record<string, any> | undefined;
|
|
50
|
-
state?: import("../../types").WorkspaceElementState | undefined;
|
|
51
|
-
errors?: import("../../..").ErrorDataSchema[] | undefined;
|
|
52
|
-
createdAt?: string | undefined;
|
|
53
|
-
updatedAt?: string | undefined;
|
|
54
|
-
archivedAt?: string | undefined;
|
|
55
|
-
isDeactivated?: boolean | undefined;
|
|
56
|
-
schema?: DataSchema | undefined;
|
|
57
|
-
subscribeRequest?: {
|
|
58
|
-
headers?: Record<string, any> | undefined;
|
|
59
|
-
method?: import("../../../http-requests").HttpRequestMethod | undefined;
|
|
60
|
-
body?: any;
|
|
61
|
-
uri?: any;
|
|
62
|
-
query?: Record<string, any> | undefined;
|
|
63
|
-
} | undefined;
|
|
64
|
-
example?: any;
|
|
65
|
-
userIdFormula?: any;
|
|
66
|
-
}, {
|
|
67
|
-
id: string;
|
|
68
|
-
name: string;
|
|
69
|
-
revision: string;
|
|
70
|
-
globalWebhookUri: string;
|
|
71
|
-
key?: string | undefined;
|
|
72
|
-
uuid?: string | undefined;
|
|
73
|
-
description?: string | undefined;
|
|
74
|
-
meta?: Record<string, any> | undefined;
|
|
75
|
-
state?: import("../../types").WorkspaceElementState | undefined;
|
|
76
|
-
errors?: import("../../..").ErrorDataSchema[] | undefined;
|
|
77
|
-
createdAt?: string | undefined;
|
|
78
|
-
updatedAt?: string | undefined;
|
|
79
|
-
archivedAt?: string | undefined;
|
|
80
|
-
isDeactivated?: boolean | undefined;
|
|
81
|
-
schema?: DataSchema | undefined;
|
|
82
|
-
subscribeRequest?: {
|
|
83
|
-
headers?: Record<string, any> | undefined;
|
|
84
|
-
method?: string | undefined;
|
|
85
|
-
body?: any;
|
|
86
|
-
uri?: any;
|
|
87
|
-
query?: Record<string, any> | undefined;
|
|
88
|
-
} | undefined;
|
|
89
|
-
example?: any;
|
|
90
|
-
userIdFormula?: any;
|
|
91
|
-
}>;
|
|
28
|
+
}, z.core.$strip>;
|
|
92
29
|
export type BaseAppEventType = z.infer<typeof BaseAppEventType>;
|
|
@@ -4,37 +4,28 @@ import { WorkspaceElementState } from '../../types';
|
|
|
4
4
|
import { ConnectorUiSpec, ConnectorSpec } from '../connectors/types';
|
|
5
5
|
export declare const ConnectionRequest: z.ZodObject<{
|
|
6
6
|
path: z.ZodAny;
|
|
7
|
-
method: z.ZodOptional<z.ZodEnum<
|
|
7
|
+
method: z.ZodOptional<z.ZodEnum<{
|
|
8
|
+
GET: "GET";
|
|
9
|
+
POST: "POST";
|
|
10
|
+
DELETE: "DELETE";
|
|
11
|
+
PUT: "PUT";
|
|
12
|
+
PATCH: "PATCH";
|
|
13
|
+
}>>;
|
|
8
14
|
pathParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9
15
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10
16
|
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
11
17
|
data: z.ZodOptional<z.ZodAny>;
|
|
12
|
-
},
|
|
13
|
-
headers?: Record<string, string> | undefined;
|
|
14
|
-
method?: "GET" | "POST" | "DELETE" | "PUT" | "PATCH" | undefined;
|
|
15
|
-
data?: any;
|
|
16
|
-
path?: any;
|
|
17
|
-
query?: Record<string, string> | undefined;
|
|
18
|
-
pathParameters?: Record<string, string> | undefined;
|
|
19
|
-
}, {
|
|
20
|
-
headers?: Record<string, string> | undefined;
|
|
21
|
-
method?: "GET" | "POST" | "DELETE" | "PUT" | "PATCH" | undefined;
|
|
22
|
-
data?: any;
|
|
23
|
-
path?: any;
|
|
24
|
-
query?: Record<string, string> | undefined;
|
|
25
|
-
pathParameters?: Record<string, string> | undefined;
|
|
26
|
-
}>;
|
|
18
|
+
}, z.core.$strip>;
|
|
27
19
|
export type ConnectionRequest = z.infer<typeof ConnectionRequest>;
|
|
28
20
|
export declare const BaseConnection: z.ZodObject<{
|
|
29
21
|
id: z.ZodString;
|
|
30
|
-
} & {
|
|
31
22
|
name: z.ZodString;
|
|
32
23
|
userId: z.ZodString;
|
|
33
24
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
34
25
|
disconnected: z.ZodOptional<z.ZodBoolean>;
|
|
35
26
|
isDefunct: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
-
state: z.ZodOptional<z.
|
|
37
|
-
error: z.ZodOptional<z.ZodType<ErrorDataSchema, z.
|
|
27
|
+
state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
|
|
28
|
+
error: z.ZodOptional<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>;
|
|
38
29
|
integrationId: z.ZodString;
|
|
39
30
|
authOptionKey: z.ZodOptional<z.ZodString>;
|
|
40
31
|
createdAt: z.ZodString;
|
|
@@ -44,43 +35,7 @@ export declare const BaseConnection: z.ZodObject<{
|
|
|
44
35
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
45
36
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
46
37
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
47
|
-
},
|
|
48
|
-
id: string;
|
|
49
|
-
name: string;
|
|
50
|
-
createdAt: string;
|
|
51
|
-
updatedAt: string;
|
|
52
|
-
integrationId: string;
|
|
53
|
-
userId: string;
|
|
54
|
-
error?: ErrorDataSchema | undefined;
|
|
55
|
-
meta?: Record<string, any> | undefined;
|
|
56
|
-
state?: WorkspaceElementState | undefined;
|
|
57
|
-
archivedAt?: string | undefined;
|
|
58
|
-
isDeactivated?: boolean | undefined;
|
|
59
|
-
authOptionKey?: string | undefined;
|
|
60
|
-
isTest?: boolean | undefined;
|
|
61
|
-
disconnected?: boolean | undefined;
|
|
62
|
-
isDefunct?: boolean | undefined;
|
|
63
|
-
lastActiveAt?: string | undefined;
|
|
64
|
-
nextCredentialsRefreshAt?: string | undefined;
|
|
65
|
-
}, {
|
|
66
|
-
id: string;
|
|
67
|
-
name: string;
|
|
68
|
-
createdAt: string;
|
|
69
|
-
updatedAt: string;
|
|
70
|
-
integrationId: string;
|
|
71
|
-
userId: string;
|
|
72
|
-
error?: ErrorDataSchema | undefined;
|
|
73
|
-
meta?: Record<string, any> | undefined;
|
|
74
|
-
state?: WorkspaceElementState | undefined;
|
|
75
|
-
archivedAt?: string | undefined;
|
|
76
|
-
isDeactivated?: boolean | undefined;
|
|
77
|
-
authOptionKey?: string | undefined;
|
|
78
|
-
isTest?: boolean | undefined;
|
|
79
|
-
disconnected?: boolean | undefined;
|
|
80
|
-
isDefunct?: boolean | undefined;
|
|
81
|
-
lastActiveAt?: string | undefined;
|
|
82
|
-
nextCredentialsRefreshAt?: string | undefined;
|
|
83
|
-
}>;
|
|
38
|
+
}, z.core.$strip>;
|
|
84
39
|
export type BaseConnection = z.infer<typeof BaseConnection>;
|
|
85
40
|
export interface ConnectionSpec extends ConnectorSpec {
|
|
86
41
|
}
|
|
@@ -62,15 +62,5 @@ export declare const MinimalConnector: z.ZodObject<{
|
|
|
62
62
|
key: z.ZodString;
|
|
63
63
|
name: z.ZodString;
|
|
64
64
|
logoUri: z.ZodString;
|
|
65
|
-
},
|
|
66
|
-
key: string;
|
|
67
|
-
id: string;
|
|
68
|
-
name: string;
|
|
69
|
-
logoUri: string;
|
|
70
|
-
}, {
|
|
71
|
-
key: string;
|
|
72
|
-
id: string;
|
|
73
|
-
name: string;
|
|
74
|
-
logoUri: string;
|
|
75
|
-
}>;
|
|
65
|
+
}, z.core.$strip>;
|
|
76
66
|
export type MinimalConnector = z.infer<typeof MinimalConnector>;
|
|
@@ -11,29 +11,5 @@ export declare const BaseCustomer: z.ZodObject<{
|
|
|
11
11
|
isBillable: z.ZodOptional<z.ZodBoolean>;
|
|
12
12
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
13
13
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
14
|
-
},
|
|
15
|
-
id: string;
|
|
16
|
-
name: string;
|
|
17
|
-
internalId: string;
|
|
18
|
-
meta?: Record<string, any> | undefined;
|
|
19
|
-
createdAt?: string | undefined;
|
|
20
|
-
archivedAt?: string | undefined;
|
|
21
|
-
credentials?: any;
|
|
22
|
-
fields?: Record<string, any> | undefined;
|
|
23
|
-
isTest?: boolean | undefined;
|
|
24
|
-
lastActiveAt?: string | undefined;
|
|
25
|
-
isBillable?: boolean | undefined;
|
|
26
|
-
}, {
|
|
27
|
-
id: string;
|
|
28
|
-
name: string;
|
|
29
|
-
internalId: string;
|
|
30
|
-
meta?: Record<string, any> | undefined;
|
|
31
|
-
createdAt?: string | undefined;
|
|
32
|
-
archivedAt?: string | undefined;
|
|
33
|
-
credentials?: any;
|
|
34
|
-
fields?: Record<string, any> | undefined;
|
|
35
|
-
isTest?: boolean | undefined;
|
|
36
|
-
lastActiveAt?: string | undefined;
|
|
37
|
-
isBillable?: boolean | undefined;
|
|
38
|
-
}>;
|
|
14
|
+
}, z.core.$strip>;
|
|
39
15
|
export type BaseCustomer = z.infer<typeof BaseCustomer>;
|