@membranehq/sdk 0.5.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.d.ts +1949 -3947
- package/dist/bundle.js +9 -4
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/action-instances-accessors.d.ts +5 -2
- package/dist/dts/accessors/actions-accessors.d.ts +2 -2
- package/dist/dts/accessors/connections-accessors.d.ts +8 -22
- package/dist/dts/accessors/integrations-accessors.d.ts +8 -22
- package/dist/dts/errors/index.d.ts +10 -1
- package/dist/dts/workspace-elements/api/action-instances-api.d.ts +122 -68
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +74 -189
- package/dist/dts/workspace-elements/api/actions-api.d.ts +253 -531
- package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +21 -21
- package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +7 -7
- package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +22 -22
- package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +18 -18
- package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +7 -7
- package/dist/dts/workspace-elements/api/connections-api.d.ts +354 -273
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +55 -149
- package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +7 -7
- package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +60 -154
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +62 -254
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +45 -139
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +45 -139
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +40 -134
- package/dist/dts/workspace-elements/api/external-events-api.d.ts +20 -128
- package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +158 -374
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +56 -248
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +140 -356
- package/dist/dts/workspace-elements/api/flows-api.d.ts +265 -753
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +135 -101
- package/dist/dts/workspace-elements/api/scenarios-api.d.ts +21 -105
- package/dist/dts/workspace-elements/base/action-instances/types.d.ts +13 -13
- package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +4 -3
- package/dist/dts/workspace-elements/base/actions/index.d.ts +111 -1
- package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +11 -10
- package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +7 -7
- package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +7 -7
- package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +7 -7
- package/dist/dts/workspace-elements/base/connections/types.d.ts +14 -19
- package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +7 -7
- package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +7 -7
- package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +10 -9
- package/dist/dts/workspace-elements/base/data-sources/types.d.ts +8 -8
- package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +4 -3
- package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +4 -3
- package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +4 -3
- package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +11 -10
- package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +9 -9
- package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +12 -12
- package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +17 -16
- package/dist/dts/workspace-elements/base/flow-runs/flow-node-runs.d.ts +16 -16
- package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +6 -5
- package/dist/dts/workspace-elements/base/flows/types.d.ts +21 -21
- package/dist/dts/workspace-elements/base/integrations/types.d.ts +48 -455
- package/dist/dts/workspace-elements/base/scenarios/types.d.ts +7 -7
- package/dist/dts/workspace-elements/types.d.ts +53 -9
- package/dist/dts/workspace-elements-catalog/index.d.ts +3 -0
- package/dist/dts/workspaces/types.d.ts +3 -1
- package/dist/index.d.ts +2791 -5337
- package/dist/index.js +70 -66
- package/dist/index.js.map +1 -1
- package/dist/index.module.d.mts +2791 -5337
- package/dist/index.module.mjs +67 -66
- package/dist/index.module.mjs.map +1 -1
- package/package.json +1 -3
- package/dist/dts/workspace-elements/base/actions/types.d.ts +0 -85
|
@@ -20,72 +20,72 @@ export declare const ActionDependency: z.ZodObject<{
|
|
|
20
20
|
export type ActionDependency = z.infer<typeof ActionDependency>;
|
|
21
21
|
export declare const BaseActionInstance: z.ZodObject<{
|
|
22
22
|
id: z.ZodString;
|
|
23
|
-
name: z.ZodString;
|
|
24
|
-
} & {
|
|
25
23
|
key: z.ZodOptional<z.ZodString>;
|
|
26
24
|
uuid: z.ZodOptional<z.ZodString>;
|
|
27
25
|
description: z.ZodOptional<z.ZodString>;
|
|
26
|
+
} & {
|
|
27
|
+
name: z.ZodString;
|
|
28
28
|
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
29
|
-
errors: z.ZodOptional<z.ZodArray<
|
|
29
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, z.ZodTypeDef, import("../../..").ErrorDataSchema>, "many">>;
|
|
30
30
|
revision: z.ZodOptional<z.ZodString>;
|
|
31
|
-
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
32
31
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
33
32
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
34
33
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
34
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
35
35
|
} & {
|
|
36
36
|
parentId: z.ZodOptional<z.ZodString>;
|
|
37
37
|
parentRevision: z.ZodOptional<z.ZodString>;
|
|
38
38
|
universalParentId: z.ZodOptional<z.ZodString>;
|
|
39
39
|
userId: z.ZodString;
|
|
40
40
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
41
|
-
type: z.ZodNativeEnum<typeof ActionType
|
|
41
|
+
type: z.ZodOptional<z.ZodNativeEnum<typeof ActionType>>;
|
|
42
42
|
inputSchema: z.ZodOptional<z.ZodAny>;
|
|
43
43
|
config: z.ZodOptional<z.ZodAny>;
|
|
44
44
|
outputSchema: z.ZodOptional<z.ZodAny>;
|
|
45
45
|
isOutdated: z.ZodOptional<z.ZodBoolean>;
|
|
46
46
|
}, "strip", z.ZodTypeAny, {
|
|
47
|
-
type: ActionType;
|
|
48
47
|
id: string;
|
|
49
48
|
name: string;
|
|
50
49
|
userId: string;
|
|
51
50
|
key?: string | undefined;
|
|
51
|
+
type?: ActionType | undefined;
|
|
52
52
|
uuid?: string | undefined;
|
|
53
53
|
description?: string | undefined;
|
|
54
54
|
state?: import("../../types").WorkspaceElementState | undefined;
|
|
55
|
-
errors?:
|
|
55
|
+
errors?: import("../../..").ErrorDataSchema[] | undefined;
|
|
56
56
|
revision?: string | undefined;
|
|
57
|
-
isDeactivated?: boolean | undefined;
|
|
58
57
|
createdAt?: string | undefined;
|
|
59
58
|
updatedAt?: string | undefined;
|
|
60
59
|
archivedAt?: string | undefined;
|
|
60
|
+
isDeactivated?: boolean | undefined;
|
|
61
61
|
instanceKey?: string | undefined;
|
|
62
62
|
parentId?: string | undefined;
|
|
63
|
-
parentRevision?: string | undefined;
|
|
64
63
|
inputSchema?: any;
|
|
65
64
|
config?: any;
|
|
65
|
+
parentRevision?: string | undefined;
|
|
66
66
|
outputSchema?: any;
|
|
67
67
|
universalParentId?: string | undefined;
|
|
68
68
|
isOutdated?: boolean | undefined;
|
|
69
69
|
}, {
|
|
70
|
-
type: ActionType;
|
|
71
70
|
id: string;
|
|
72
71
|
name: string;
|
|
73
72
|
userId: string;
|
|
74
73
|
key?: string | undefined;
|
|
74
|
+
type?: ActionType | undefined;
|
|
75
75
|
uuid?: string | undefined;
|
|
76
76
|
description?: string | undefined;
|
|
77
77
|
state?: import("../../types").WorkspaceElementState | undefined;
|
|
78
|
-
errors?:
|
|
78
|
+
errors?: import("../../..").ErrorDataSchema[] | undefined;
|
|
79
79
|
revision?: string | undefined;
|
|
80
|
-
isDeactivated?: boolean | undefined;
|
|
81
80
|
createdAt?: string | undefined;
|
|
82
81
|
updatedAt?: string | undefined;
|
|
83
82
|
archivedAt?: string | undefined;
|
|
83
|
+
isDeactivated?: boolean | undefined;
|
|
84
84
|
instanceKey?: string | undefined;
|
|
85
85
|
parentId?: string | undefined;
|
|
86
|
-
parentRevision?: string | undefined;
|
|
87
86
|
inputSchema?: any;
|
|
88
87
|
config?: any;
|
|
88
|
+
parentRevision?: string | undefined;
|
|
89
89
|
outputSchema?: any;
|
|
90
90
|
universalParentId?: string | undefined;
|
|
91
91
|
isOutdated?: boolean | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { ErrorDataSchema } from '../../../errors';
|
|
2
3
|
export declare enum ActionRunLogStatus {
|
|
3
4
|
SUCCESS = "success",
|
|
4
5
|
ERROR = "error"
|
|
@@ -15,7 +16,7 @@ export declare const BaseActionRunLogRecord: z.ZodObject<{
|
|
|
15
16
|
status: z.ZodNativeEnum<typeof ActionRunLogStatus>;
|
|
16
17
|
createdAt: z.ZodString;
|
|
17
18
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
18
|
-
error:
|
|
19
|
+
error: z.ZodOptional<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>>;
|
|
19
20
|
}, "strip", z.ZodTypeAny, {
|
|
20
21
|
status: ActionRunLogStatus;
|
|
21
22
|
id: string;
|
|
@@ -24,7 +25,7 @@ export declare const BaseActionRunLogRecord: z.ZodObject<{
|
|
|
24
25
|
connectionId: string;
|
|
25
26
|
integrationId: string;
|
|
26
27
|
actionId: string;
|
|
27
|
-
error?:
|
|
28
|
+
error?: ErrorDataSchema | undefined;
|
|
28
29
|
input?: any;
|
|
29
30
|
output?: any;
|
|
30
31
|
completedAt?: string | undefined;
|
|
@@ -36,7 +37,7 @@ export declare const BaseActionRunLogRecord: z.ZodObject<{
|
|
|
36
37
|
connectionId: string;
|
|
37
38
|
integrationId: string;
|
|
38
39
|
actionId: string;
|
|
39
|
-
error?:
|
|
40
|
+
error?: ErrorDataSchema | undefined;
|
|
40
41
|
input?: any;
|
|
41
42
|
output?: any;
|
|
42
43
|
completedAt?: string | undefined;
|
|
@@ -1,2 +1,112 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ActionType } from './action-types';
|
|
3
|
+
import { DataSchema } from '../../../data-schema';
|
|
1
4
|
export * from './action-types';
|
|
2
|
-
export
|
|
5
|
+
export declare const ActionEditableProperties: z.ZodObject<{
|
|
6
|
+
key: z.ZodOptional<z.ZodString>;
|
|
7
|
+
name: z.ZodOptional<z.ZodString>;
|
|
8
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
9
|
+
description: z.ZodOptional<z.ZodString>;
|
|
10
|
+
} & {
|
|
11
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
12
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
13
|
+
inputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
14
|
+
type: z.ZodOptional<z.ZodNativeEnum<typeof ActionType>>;
|
|
15
|
+
config: z.ZodOptional<z.ZodAny>;
|
|
16
|
+
outputMapping: z.ZodOptional<z.ZodAny>;
|
|
17
|
+
customOutputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
key?: string | undefined;
|
|
20
|
+
type?: ActionType | undefined;
|
|
21
|
+
name?: string | undefined;
|
|
22
|
+
uuid?: string | undefined;
|
|
23
|
+
description?: string | undefined;
|
|
24
|
+
integrationId?: string | undefined;
|
|
25
|
+
parentId?: string | undefined;
|
|
26
|
+
inputSchema?: DataSchema | undefined;
|
|
27
|
+
config?: any;
|
|
28
|
+
outputMapping?: any;
|
|
29
|
+
customOutputSchema?: DataSchema | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
key?: string | undefined;
|
|
32
|
+
type?: ActionType | undefined;
|
|
33
|
+
name?: string | undefined;
|
|
34
|
+
uuid?: string | undefined;
|
|
35
|
+
description?: string | undefined;
|
|
36
|
+
integrationId?: string | undefined;
|
|
37
|
+
parentId?: string | undefined;
|
|
38
|
+
inputSchema?: DataSchema | undefined;
|
|
39
|
+
config?: any;
|
|
40
|
+
outputMapping?: any;
|
|
41
|
+
customOutputSchema?: DataSchema | undefined;
|
|
42
|
+
}>;
|
|
43
|
+
export type ActionEditableProperties = z.infer<typeof ActionEditableProperties>;
|
|
44
|
+
export declare const BaseAction: z.ZodObject<{
|
|
45
|
+
id: z.ZodString;
|
|
46
|
+
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
47
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, z.ZodTypeDef, import("../../..").ErrorDataSchema>, "many">>;
|
|
48
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
49
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
50
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
51
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
52
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
53
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
54
|
+
description: z.ZodOptional<z.ZodString>;
|
|
55
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
56
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
57
|
+
inputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
58
|
+
type: z.ZodOptional<z.ZodNativeEnum<typeof ActionType>>;
|
|
59
|
+
config: z.ZodOptional<z.ZodAny>;
|
|
60
|
+
outputMapping: z.ZodOptional<z.ZodAny>;
|
|
61
|
+
customOutputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
62
|
+
} & {
|
|
63
|
+
key: z.ZodString;
|
|
64
|
+
name: z.ZodString;
|
|
65
|
+
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
66
|
+
parentRevision: z.ZodOptional<z.ZodString>;
|
|
67
|
+
}, "strip", z.ZodTypeAny, {
|
|
68
|
+
key: string;
|
|
69
|
+
id: string;
|
|
70
|
+
name: string;
|
|
71
|
+
type?: ActionType | undefined;
|
|
72
|
+
uuid?: string | undefined;
|
|
73
|
+
description?: string | undefined;
|
|
74
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
75
|
+
errors?: import("../../..").ErrorDataSchema[] | undefined;
|
|
76
|
+
revision?: string | undefined;
|
|
77
|
+
createdAt?: string | undefined;
|
|
78
|
+
updatedAt?: string | undefined;
|
|
79
|
+
archivedAt?: string | undefined;
|
|
80
|
+
isDeactivated?: boolean | undefined;
|
|
81
|
+
integrationId?: string | undefined;
|
|
82
|
+
parentId?: string | undefined;
|
|
83
|
+
inputSchema?: DataSchema | undefined;
|
|
84
|
+
config?: any;
|
|
85
|
+
outputMapping?: any;
|
|
86
|
+
customOutputSchema?: DataSchema | undefined;
|
|
87
|
+
isCustomized?: boolean | undefined;
|
|
88
|
+
parentRevision?: string | undefined;
|
|
89
|
+
}, {
|
|
90
|
+
key: string;
|
|
91
|
+
id: string;
|
|
92
|
+
name: string;
|
|
93
|
+
type?: ActionType | undefined;
|
|
94
|
+
uuid?: string | undefined;
|
|
95
|
+
description?: string | undefined;
|
|
96
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
97
|
+
errors?: import("../../..").ErrorDataSchema[] | undefined;
|
|
98
|
+
revision?: string | undefined;
|
|
99
|
+
createdAt?: string | undefined;
|
|
100
|
+
updatedAt?: string | undefined;
|
|
101
|
+
archivedAt?: string | undefined;
|
|
102
|
+
isDeactivated?: boolean | undefined;
|
|
103
|
+
integrationId?: string | undefined;
|
|
104
|
+
parentId?: string | undefined;
|
|
105
|
+
inputSchema?: DataSchema | undefined;
|
|
106
|
+
config?: any;
|
|
107
|
+
outputMapping?: any;
|
|
108
|
+
customOutputSchema?: DataSchema | undefined;
|
|
109
|
+
isCustomized?: boolean | undefined;
|
|
110
|
+
parentRevision?: string | undefined;
|
|
111
|
+
}>;
|
|
112
|
+
export type BaseAction = z.infer<typeof BaseAction>;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { ErrorDataSchema } from '../../../errors';
|
|
2
3
|
export declare const BaseAppDataSchemaInstance: z.ZodObject<{
|
|
3
4
|
id: z.ZodString;
|
|
4
|
-
name: z.ZodString;
|
|
5
5
|
key: z.ZodOptional<z.ZodString>;
|
|
6
6
|
uuid: z.ZodOptional<z.ZodString>;
|
|
7
7
|
description: z.ZodOptional<z.ZodString>;
|
|
8
|
+
name: z.ZodString;
|
|
8
9
|
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
9
|
-
errors: z.ZodOptional<z.ZodArray<
|
|
10
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
|
|
10
11
|
revision: z.ZodOptional<z.ZodString>;
|
|
11
|
-
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
12
12
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
13
13
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
14
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
14
15
|
} & {
|
|
15
16
|
appId: z.ZodString;
|
|
16
17
|
userId: z.ZodString;
|
|
@@ -18,7 +19,7 @@ export declare const BaseAppDataSchemaInstance: z.ZodObject<{
|
|
|
18
19
|
appDataSchemaRevision: z.ZodString;
|
|
19
20
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
20
21
|
schema: z.ZodOptional<z.ZodAny>;
|
|
21
|
-
error:
|
|
22
|
+
error: z.ZodOptional<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>>;
|
|
22
23
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
23
24
|
}, "strip", z.ZodTypeAny, {
|
|
24
25
|
id: string;
|
|
@@ -28,16 +29,16 @@ export declare const BaseAppDataSchemaInstance: z.ZodObject<{
|
|
|
28
29
|
appDataSchemaId: string;
|
|
29
30
|
appDataSchemaRevision: string;
|
|
30
31
|
key?: string | undefined;
|
|
31
|
-
error?:
|
|
32
|
+
error?: ErrorDataSchema | undefined;
|
|
32
33
|
uuid?: string | undefined;
|
|
33
34
|
description?: string | undefined;
|
|
34
35
|
state?: import("../../types").WorkspaceElementState | undefined;
|
|
35
|
-
errors?:
|
|
36
|
+
errors?: ErrorDataSchema[] | undefined;
|
|
36
37
|
revision?: string | undefined;
|
|
37
|
-
isDeactivated?: boolean | undefined;
|
|
38
38
|
createdAt?: string | undefined;
|
|
39
39
|
updatedAt?: string | undefined;
|
|
40
40
|
archivedAt?: string | undefined;
|
|
41
|
+
isDeactivated?: boolean | undefined;
|
|
41
42
|
instanceKey?: string | undefined;
|
|
42
43
|
schema?: any;
|
|
43
44
|
}, {
|
|
@@ -48,16 +49,16 @@ export declare const BaseAppDataSchemaInstance: z.ZodObject<{
|
|
|
48
49
|
appDataSchemaId: string;
|
|
49
50
|
appDataSchemaRevision: string;
|
|
50
51
|
key?: string | undefined;
|
|
51
|
-
error?:
|
|
52
|
+
error?: ErrorDataSchema | undefined;
|
|
52
53
|
uuid?: string | undefined;
|
|
53
54
|
description?: string | undefined;
|
|
54
55
|
state?: import("../../types").WorkspaceElementState | undefined;
|
|
55
|
-
errors?:
|
|
56
|
+
errors?: ErrorDataSchema[] | undefined;
|
|
56
57
|
revision?: string | undefined;
|
|
57
|
-
isDeactivated?: boolean | undefined;
|
|
58
58
|
createdAt?: string | undefined;
|
|
59
59
|
updatedAt?: string | undefined;
|
|
60
60
|
archivedAt?: string | undefined;
|
|
61
|
+
isDeactivated?: boolean | undefined;
|
|
61
62
|
instanceKey?: string | undefined;
|
|
62
63
|
schema?: any;
|
|
63
64
|
}>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const BaseAppDataSchema: z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
|
-
name: z.ZodString;
|
|
5
4
|
key: z.ZodOptional<z.ZodString>;
|
|
6
5
|
uuid: z.ZodOptional<z.ZodString>;
|
|
7
6
|
description: z.ZodOptional<z.ZodString>;
|
|
7
|
+
name: z.ZodString;
|
|
8
8
|
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
9
|
-
errors: z.ZodOptional<z.ZodArray<
|
|
10
|
-
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, z.ZodTypeDef, import("../../..").ErrorDataSchema>, "many">>;
|
|
11
10
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
12
11
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
12
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
13
13
|
} & {
|
|
14
14
|
schema: z.ZodAny;
|
|
15
15
|
code: z.ZodOptional<z.ZodString>;
|
|
@@ -23,12 +23,12 @@ export declare const BaseAppDataSchema: z.ZodObject<{
|
|
|
23
23
|
uuid?: string | undefined;
|
|
24
24
|
description?: string | undefined;
|
|
25
25
|
state?: import("../../types").WorkspaceElementState | undefined;
|
|
26
|
-
errors?:
|
|
26
|
+
errors?: import("../../..").ErrorDataSchema[] | undefined;
|
|
27
27
|
revision?: string | undefined;
|
|
28
|
-
isDeactivated?: boolean | undefined;
|
|
29
28
|
createdAt?: string | undefined;
|
|
30
29
|
updatedAt?: string | undefined;
|
|
31
30
|
archivedAt?: string | undefined;
|
|
31
|
+
isDeactivated?: boolean | undefined;
|
|
32
32
|
schema?: any;
|
|
33
33
|
}, {
|
|
34
34
|
id: string;
|
|
@@ -38,12 +38,12 @@ export declare const BaseAppDataSchema: z.ZodObject<{
|
|
|
38
38
|
uuid?: string | undefined;
|
|
39
39
|
description?: string | undefined;
|
|
40
40
|
state?: import("../../types").WorkspaceElementState | undefined;
|
|
41
|
-
errors?:
|
|
41
|
+
errors?: import("../../..").ErrorDataSchema[] | undefined;
|
|
42
42
|
revision?: string | undefined;
|
|
43
|
-
isDeactivated?: boolean | undefined;
|
|
44
43
|
createdAt?: string | undefined;
|
|
45
44
|
updatedAt?: string | undefined;
|
|
46
45
|
archivedAt?: string | undefined;
|
|
46
|
+
isDeactivated?: boolean | undefined;
|
|
47
47
|
schema?: any;
|
|
48
48
|
}>;
|
|
49
49
|
export type BaseAppDataSchema = z.infer<typeof BaseAppDataSchema>;
|
|
@@ -2,15 +2,15 @@ import { z } from 'zod';
|
|
|
2
2
|
import { DataSchema } from '../../../data-schema';
|
|
3
3
|
export declare const BaseAppEventSubscription: z.ZodObject<{
|
|
4
4
|
id: z.ZodString;
|
|
5
|
-
name: z.ZodString;
|
|
6
5
|
key: z.ZodOptional<z.ZodString>;
|
|
7
6
|
uuid: z.ZodOptional<z.ZodString>;
|
|
8
7
|
description: z.ZodOptional<z.ZodString>;
|
|
8
|
+
name: z.ZodString;
|
|
9
9
|
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
10
|
-
errors: z.ZodOptional<z.ZodArray<
|
|
11
|
-
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, z.ZodTypeDef, import("../../..").ErrorDataSchema>, "many">>;
|
|
12
11
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
13
12
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
13
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
14
14
|
} & {
|
|
15
15
|
revision: z.ZodString;
|
|
16
16
|
appEventTypeId: z.ZodString;
|
|
@@ -59,11 +59,11 @@ export declare const BaseAppEventSubscription: z.ZodObject<{
|
|
|
59
59
|
uuid?: string | undefined;
|
|
60
60
|
description?: string | undefined;
|
|
61
61
|
state?: import("../../types").WorkspaceElementState | undefined;
|
|
62
|
-
errors?:
|
|
63
|
-
isDeactivated?: boolean | undefined;
|
|
62
|
+
errors?: import("../../..").ErrorDataSchema[] | undefined;
|
|
64
63
|
createdAt?: string | undefined;
|
|
65
64
|
updatedAt?: string | undefined;
|
|
66
65
|
archivedAt?: string | undefined;
|
|
66
|
+
isDeactivated?: boolean | undefined;
|
|
67
67
|
instanceKey?: string | undefined;
|
|
68
68
|
schema?: DataSchema | undefined;
|
|
69
69
|
subscriptionResponse?: any;
|
|
@@ -86,11 +86,11 @@ export declare const BaseAppEventSubscription: z.ZodObject<{
|
|
|
86
86
|
uuid?: string | undefined;
|
|
87
87
|
description?: string | undefined;
|
|
88
88
|
state?: import("../../types").WorkspaceElementState | undefined;
|
|
89
|
-
errors?:
|
|
90
|
-
isDeactivated?: boolean | undefined;
|
|
89
|
+
errors?: import("../../..").ErrorDataSchema[] | undefined;
|
|
91
90
|
createdAt?: string | undefined;
|
|
92
91
|
updatedAt?: string | undefined;
|
|
93
92
|
archivedAt?: string | undefined;
|
|
93
|
+
isDeactivated?: boolean | undefined;
|
|
94
94
|
instanceKey?: string | undefined;
|
|
95
95
|
schema?: DataSchema | undefined;
|
|
96
96
|
subscriptionResponse?: any;
|
|
@@ -2,15 +2,15 @@ import { z } from 'zod';
|
|
|
2
2
|
import { DataSchema } from '../../../data-schema';
|
|
3
3
|
export declare const BaseAppEventType: z.ZodObject<{
|
|
4
4
|
id: z.ZodString;
|
|
5
|
-
name: z.ZodString;
|
|
6
5
|
key: z.ZodOptional<z.ZodString>;
|
|
7
6
|
uuid: z.ZodOptional<z.ZodString>;
|
|
8
7
|
description: z.ZodOptional<z.ZodString>;
|
|
8
|
+
name: z.ZodString;
|
|
9
9
|
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
10
|
-
errors: z.ZodOptional<z.ZodArray<
|
|
11
|
-
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, z.ZodTypeDef, import("../../..").ErrorDataSchema>, "many">>;
|
|
12
11
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
13
12
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
13
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
14
14
|
} & {
|
|
15
15
|
revision: z.ZodString;
|
|
16
16
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -46,11 +46,11 @@ export declare const BaseAppEventType: z.ZodObject<{
|
|
|
46
46
|
uuid?: string | undefined;
|
|
47
47
|
description?: string | undefined;
|
|
48
48
|
state?: import("../../types").WorkspaceElementState | undefined;
|
|
49
|
-
errors?:
|
|
50
|
-
isDeactivated?: boolean | undefined;
|
|
49
|
+
errors?: import("../../..").ErrorDataSchema[] | undefined;
|
|
51
50
|
createdAt?: string | undefined;
|
|
52
51
|
updatedAt?: string | undefined;
|
|
53
52
|
archivedAt?: string | undefined;
|
|
53
|
+
isDeactivated?: boolean | undefined;
|
|
54
54
|
schema?: DataSchema | undefined;
|
|
55
55
|
subscribeRequest?: {
|
|
56
56
|
headers?: Record<string, any> | undefined;
|
|
@@ -70,11 +70,11 @@ export declare const BaseAppEventType: z.ZodObject<{
|
|
|
70
70
|
uuid?: string | undefined;
|
|
71
71
|
description?: string | undefined;
|
|
72
72
|
state?: import("../../types").WorkspaceElementState | undefined;
|
|
73
|
-
errors?:
|
|
74
|
-
isDeactivated?: boolean | undefined;
|
|
73
|
+
errors?: import("../../..").ErrorDataSchema[] | undefined;
|
|
75
74
|
createdAt?: string | undefined;
|
|
76
75
|
updatedAt?: string | undefined;
|
|
77
76
|
archivedAt?: string | undefined;
|
|
77
|
+
isDeactivated?: boolean | undefined;
|
|
78
78
|
schema?: DataSchema | undefined;
|
|
79
79
|
subscribeRequest?: {
|
|
80
80
|
headers?: Record<string, any> | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { ErrorDataSchema } from '../../../errors';
|
|
2
3
|
import { WorkspaceElementState } from '../../types';
|
|
3
4
|
import { ConnectorUiSpec, ConnectorSpec } from '../connectors/types';
|
|
4
5
|
export declare const ConnectionRequest: z.ZodObject<{
|
|
@@ -32,11 +33,9 @@ export declare const BaseConnection: z.ZodObject<{
|
|
|
32
33
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
33
34
|
disconnected: z.ZodOptional<z.ZodBoolean>;
|
|
34
35
|
isDefunct: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
-
error:
|
|
36
|
+
error: z.ZodOptional<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>>;
|
|
36
37
|
integrationId: z.ZodString;
|
|
37
|
-
|
|
38
|
-
parameters: z.ZodOptional<z.ZodUnknown>;
|
|
39
|
-
connectorParameters: z.ZodOptional<z.ZodUnknown>;
|
|
38
|
+
authOptionKey: z.ZodOptional<z.ZodString>;
|
|
40
39
|
createdAt: z.ZodString;
|
|
41
40
|
updatedAt: z.ZodString;
|
|
42
41
|
lastActiveAt: z.ZodOptional<z.ZodString>;
|
|
@@ -44,7 +43,7 @@ export declare const BaseConnection: z.ZodObject<{
|
|
|
44
43
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
45
44
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
46
45
|
state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
|
|
47
|
-
errors: z.ZodOptional<z.ZodArray<
|
|
46
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
|
|
48
47
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
49
48
|
}, "strip", z.ZodTypeAny, {
|
|
50
49
|
id: string;
|
|
@@ -53,20 +52,18 @@ export declare const BaseConnection: z.ZodObject<{
|
|
|
53
52
|
updatedAt: string;
|
|
54
53
|
userId: string;
|
|
55
54
|
integrationId: string;
|
|
56
|
-
error?:
|
|
55
|
+
error?: ErrorDataSchema | undefined;
|
|
57
56
|
state?: WorkspaceElementState | undefined;
|
|
58
|
-
errors?:
|
|
59
|
-
isDeactivated?: boolean | undefined;
|
|
57
|
+
errors?: ErrorDataSchema[] | undefined;
|
|
60
58
|
archivedAt?: string | undefined;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
connectorParameters?: unknown;
|
|
59
|
+
isDeactivated?: boolean | undefined;
|
|
60
|
+
authOptionKey?: string | undefined;
|
|
64
61
|
isTest?: boolean | undefined;
|
|
62
|
+
meta?: Record<string, any> | undefined;
|
|
65
63
|
disconnected?: boolean | undefined;
|
|
66
64
|
isDefunct?: boolean | undefined;
|
|
67
65
|
lastActiveAt?: string | undefined;
|
|
68
66
|
nextCredentialsRefreshAt?: string | undefined;
|
|
69
|
-
meta?: Record<string, any> | undefined;
|
|
70
67
|
}, {
|
|
71
68
|
id: string;
|
|
72
69
|
name: string;
|
|
@@ -74,20 +71,18 @@ export declare const BaseConnection: z.ZodObject<{
|
|
|
74
71
|
updatedAt: string;
|
|
75
72
|
userId: string;
|
|
76
73
|
integrationId: string;
|
|
77
|
-
error?:
|
|
74
|
+
error?: ErrorDataSchema | undefined;
|
|
78
75
|
state?: WorkspaceElementState | undefined;
|
|
79
|
-
errors?:
|
|
80
|
-
isDeactivated?: boolean | undefined;
|
|
76
|
+
errors?: ErrorDataSchema[] | undefined;
|
|
81
77
|
archivedAt?: string | undefined;
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
connectorParameters?: unknown;
|
|
78
|
+
isDeactivated?: boolean | undefined;
|
|
79
|
+
authOptionKey?: string | undefined;
|
|
85
80
|
isTest?: boolean | undefined;
|
|
81
|
+
meta?: Record<string, any> | undefined;
|
|
86
82
|
disconnected?: boolean | undefined;
|
|
87
83
|
isDefunct?: boolean | undefined;
|
|
88
84
|
lastActiveAt?: string | undefined;
|
|
89
85
|
nextCredentialsRefreshAt?: string | undefined;
|
|
90
|
-
meta?: Record<string, any> | undefined;
|
|
91
86
|
}>;
|
|
92
87
|
export type BaseConnection = z.infer<typeof BaseConnection>;
|
|
93
88
|
export interface ConnectionSpec extends ConnectorSpec {
|
|
@@ -2,16 +2,16 @@ import { z } from 'zod';
|
|
|
2
2
|
import { DataLinkDirection } from '../data-link-tables';
|
|
3
3
|
export declare const BaseDataLinkTableInstance: z.ZodObject<{
|
|
4
4
|
id: z.ZodString;
|
|
5
|
-
name: z.ZodString;
|
|
6
5
|
key: z.ZodOptional<z.ZodString>;
|
|
7
6
|
uuid: z.ZodOptional<z.ZodString>;
|
|
8
7
|
description: z.ZodOptional<z.ZodString>;
|
|
8
|
+
name: z.ZodString;
|
|
9
9
|
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
10
|
-
errors: z.ZodOptional<z.ZodArray<
|
|
10
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, z.ZodTypeDef, import("../../..").ErrorDataSchema>, "many">>;
|
|
11
11
|
revision: z.ZodOptional<z.ZodString>;
|
|
12
|
-
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
13
12
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
14
13
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
14
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
15
15
|
} & {
|
|
16
16
|
dataLinkTableId: z.ZodOptional<z.ZodString>;
|
|
17
17
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
@@ -28,12 +28,12 @@ export declare const BaseDataLinkTableInstance: z.ZodObject<{
|
|
|
28
28
|
uuid?: string | undefined;
|
|
29
29
|
description?: string | undefined;
|
|
30
30
|
state?: import("../../types").WorkspaceElementState | undefined;
|
|
31
|
-
errors?:
|
|
31
|
+
errors?: import("../../..").ErrorDataSchema[] | undefined;
|
|
32
32
|
revision?: string | undefined;
|
|
33
|
-
isDeactivated?: boolean | undefined;
|
|
34
33
|
createdAt?: string | undefined;
|
|
35
34
|
updatedAt?: string | undefined;
|
|
36
35
|
archivedAt?: string | undefined;
|
|
36
|
+
isDeactivated?: boolean | undefined;
|
|
37
37
|
instanceKey?: string | undefined;
|
|
38
38
|
connectionId?: string | undefined;
|
|
39
39
|
dataLinkTableId?: string | undefined;
|
|
@@ -46,12 +46,12 @@ export declare const BaseDataLinkTableInstance: z.ZodObject<{
|
|
|
46
46
|
uuid?: string | undefined;
|
|
47
47
|
description?: string | undefined;
|
|
48
48
|
state?: import("../../types").WorkspaceElementState | undefined;
|
|
49
|
-
errors?:
|
|
49
|
+
errors?: import("../../..").ErrorDataSchema[] | undefined;
|
|
50
50
|
revision?: string | undefined;
|
|
51
|
-
isDeactivated?: boolean | undefined;
|
|
52
51
|
createdAt?: string | undefined;
|
|
53
52
|
updatedAt?: string | undefined;
|
|
54
53
|
archivedAt?: string | undefined;
|
|
54
|
+
isDeactivated?: boolean | undefined;
|
|
55
55
|
instanceKey?: string | undefined;
|
|
56
56
|
connectionId?: string | undefined;
|
|
57
57
|
dataLinkTableId?: string | undefined;
|
|
@@ -6,16 +6,16 @@ export declare enum DataLinkDirection {
|
|
|
6
6
|
}
|
|
7
7
|
export declare const BaseDataLinkTable: z.ZodObject<{
|
|
8
8
|
id: z.ZodString;
|
|
9
|
-
name: z.ZodString;
|
|
10
9
|
key: z.ZodOptional<z.ZodString>;
|
|
11
10
|
uuid: z.ZodOptional<z.ZodString>;
|
|
12
11
|
description: z.ZodOptional<z.ZodString>;
|
|
12
|
+
name: z.ZodString;
|
|
13
13
|
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
14
|
-
errors: z.ZodOptional<z.ZodArray<
|
|
14
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, z.ZodTypeDef, import("../../..").ErrorDataSchema>, "many">>;
|
|
15
15
|
revision: z.ZodOptional<z.ZodString>;
|
|
16
|
-
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
17
16
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
18
17
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
18
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
19
19
|
} & {
|
|
20
20
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
21
21
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -25,12 +25,12 @@ export declare const BaseDataLinkTable: z.ZodObject<{
|
|
|
25
25
|
uuid?: string | undefined;
|
|
26
26
|
description?: string | undefined;
|
|
27
27
|
state?: import("../../types").WorkspaceElementState | undefined;
|
|
28
|
-
errors?:
|
|
28
|
+
errors?: import("../../..").ErrorDataSchema[] | undefined;
|
|
29
29
|
revision?: string | undefined;
|
|
30
|
-
isDeactivated?: boolean | undefined;
|
|
31
30
|
createdAt?: string | undefined;
|
|
32
31
|
updatedAt?: string | undefined;
|
|
33
32
|
archivedAt?: string | undefined;
|
|
33
|
+
isDeactivated?: boolean | undefined;
|
|
34
34
|
}, {
|
|
35
35
|
id: string;
|
|
36
36
|
name: string;
|
|
@@ -38,11 +38,11 @@ export declare const BaseDataLinkTable: z.ZodObject<{
|
|
|
38
38
|
uuid?: string | undefined;
|
|
39
39
|
description?: string | undefined;
|
|
40
40
|
state?: import("../../types").WorkspaceElementState | undefined;
|
|
41
|
-
errors?:
|
|
41
|
+
errors?: import("../../..").ErrorDataSchema[] | undefined;
|
|
42
42
|
revision?: string | undefined;
|
|
43
|
-
isDeactivated?: boolean | undefined;
|
|
44
43
|
createdAt?: string | undefined;
|
|
45
44
|
updatedAt?: string | undefined;
|
|
46
45
|
archivedAt?: string | undefined;
|
|
46
|
+
isDeactivated?: boolean | undefined;
|
|
47
47
|
}>;
|
|
48
48
|
export type BaseDataLinkTable = z.infer<typeof BaseDataLinkTable>;
|