@membranehq/sdk 0.4.0 → 0.5.1
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 +16299 -1303
- package/dist/bundle.js +3980 -3701
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +78 -1
- package/dist/dts/accessors/integrations-accessors.d.ts +78 -1
- package/dist/dts/api-client.d.ts +1 -0
- package/dist/dts/client.d.ts +1 -0
- package/dist/dts/data-schema/index.d.ts +0 -1
- package/dist/dts/data-schema/types.d.ts +4 -3
- package/dist/dts/entity-repository.d.ts +88 -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/action-instances-api.d.ts +269 -8
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +529 -10
- package/dist/dts/workspace-elements/api/actions-api.d.ts +1010 -45
- 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 +993 -42
- package/dist/dts/workspace-elements/api/customers-api.d.ts +92 -16
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +541 -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 +1590 -12
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +1113 -78
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +696 -19
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +702 -19
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +559 -10
- package/dist/dts/workspace-elements/api/external-events-api.d.ts +582 -6
- package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +2786 -14
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +885 -7
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +1652 -47
- package/dist/dts/workspace-elements/api/flows-api.d.ts +3202 -52
- package/dist/dts/workspace-elements/api/index.d.ts +1 -1
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +339 -26
- package/dist/dts/workspace-elements/api/scenarios-api.d.ts +523 -35
- package/dist/dts/workspace-elements/api/screens-api.d.ts +35 -15
- package/dist/dts/workspace-elements/base/action-instances/types.d.ts +78 -15
- package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +37 -12
- package/dist/dts/workspace-elements/base/actions/types.d.ts +78 -18
- package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +59 -7
- package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +49 -7
- package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +92 -9
- package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +84 -7
- package/dist/dts/workspace-elements/base/connections/types.d.ts +82 -20
- package/dist/dts/workspace-elements/base/connectors/types.d.ts +14 -2
- package/dist/dts/workspace-elements/base/customers/index.d.ts +32 -6
- package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +93 -92
- package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +78 -11
- package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +43 -4
- package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +1048 -19
- package/dist/dts/workspace-elements/base/data-sources/types.d.ts +97 -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 +197 -24
- 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 +92 -16
- package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +105 -14
- package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +43 -43
- package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +170 -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 +127 -19
- package/dist/dts/workspace-elements/base/flows/types.d.ts +234 -26
- package/dist/dts/workspace-elements/base/integrations/types.d.ts +988 -25
- package/dist/dts/workspace-elements/base/scenarios/types.d.ts +740 -23
- package/dist/dts/workspace-elements/base/screens/types.d.ts +48 -6
- package/dist/dts/workspace-elements/types.d.ts +25 -3
- package/dist/dts/workspaces/types.d.ts +4 -3
- package/dist/index.d.ts +26481 -3080
- package/dist/index.js +1717 -535
- package/dist/index.js.map +1 -1
- package/dist/index.module.d.mts +26481 -3080
- package/dist/index.module.mjs +1550 -502
- 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
|
@@ -1,30 +1,93 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
import { ActionType } from '../actions/action-types';
|
|
3
3
|
export declare enum ActionDependencyType {
|
|
4
4
|
FieldMapping = "FieldMapping",
|
|
5
5
|
DataSource = "DataSource"
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export declare const ActionDependency: z.ZodObject<{
|
|
8
|
+
type: z.ZodNativeEnum<typeof ActionDependencyType>;
|
|
9
|
+
key: z.ZodString;
|
|
10
|
+
element: z.ZodOptional<z.ZodAny>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
key: string;
|
|
8
13
|
type: ActionDependencyType;
|
|
14
|
+
element?: any;
|
|
15
|
+
}, {
|
|
9
16
|
key: string;
|
|
17
|
+
type: ActionDependencyType;
|
|
10
18
|
element?: any;
|
|
11
|
-
}
|
|
12
|
-
export
|
|
19
|
+
}>;
|
|
20
|
+
export type ActionDependency = z.infer<typeof ActionDependency>;
|
|
21
|
+
export declare const BaseActionInstance: z.ZodObject<{
|
|
22
|
+
id: z.ZodString;
|
|
23
|
+
name: z.ZodString;
|
|
24
|
+
} & {
|
|
25
|
+
key: z.ZodOptional<z.ZodString>;
|
|
26
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
27
|
+
description: z.ZodOptional<z.ZodString>;
|
|
28
|
+
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
29
|
+
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
30
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
31
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
33
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
34
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
35
|
+
} & {
|
|
36
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
37
|
+
parentRevision: z.ZodOptional<z.ZodString>;
|
|
38
|
+
universalParentId: z.ZodOptional<z.ZodString>;
|
|
39
|
+
userId: z.ZodString;
|
|
40
|
+
instanceKey: z.ZodOptional<z.ZodString>;
|
|
41
|
+
type: z.ZodNativeEnum<typeof ActionType>;
|
|
42
|
+
inputSchema: z.ZodOptional<z.ZodAny>;
|
|
43
|
+
config: z.ZodOptional<z.ZodAny>;
|
|
44
|
+
outputSchema: z.ZodOptional<z.ZodAny>;
|
|
45
|
+
isOutdated: z.ZodOptional<z.ZodBoolean>;
|
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
|
47
|
+
type: ActionType;
|
|
13
48
|
id: string;
|
|
14
49
|
name: string;
|
|
15
|
-
revision: string;
|
|
16
|
-
parentId?: string;
|
|
17
|
-
parentRevision?: string;
|
|
18
|
-
universalParentId?: string;
|
|
19
50
|
userId: string;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
51
|
+
key?: string | undefined;
|
|
52
|
+
uuid?: string | undefined;
|
|
53
|
+
description?: string | undefined;
|
|
54
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
55
|
+
errors?: any[] | undefined;
|
|
56
|
+
revision?: string | undefined;
|
|
57
|
+
isDeactivated?: boolean | undefined;
|
|
58
|
+
createdAt?: string | undefined;
|
|
59
|
+
updatedAt?: string | undefined;
|
|
60
|
+
archivedAt?: string | undefined;
|
|
61
|
+
instanceKey?: string | undefined;
|
|
62
|
+
parentId?: string | undefined;
|
|
63
|
+
parentRevision?: string | undefined;
|
|
64
|
+
inputSchema?: any;
|
|
65
|
+
config?: any;
|
|
66
|
+
outputSchema?: any;
|
|
67
|
+
universalParentId?: string | undefined;
|
|
68
|
+
isOutdated?: boolean | undefined;
|
|
69
|
+
}, {
|
|
24
70
|
type: ActionType;
|
|
71
|
+
id: string;
|
|
72
|
+
name: string;
|
|
73
|
+
userId: string;
|
|
74
|
+
key?: string | undefined;
|
|
75
|
+
uuid?: string | undefined;
|
|
76
|
+
description?: string | undefined;
|
|
77
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
78
|
+
errors?: any[] | undefined;
|
|
79
|
+
revision?: string | undefined;
|
|
80
|
+
isDeactivated?: boolean | undefined;
|
|
81
|
+
createdAt?: string | undefined;
|
|
82
|
+
updatedAt?: string | undefined;
|
|
83
|
+
archivedAt?: string | undefined;
|
|
84
|
+
instanceKey?: string | undefined;
|
|
85
|
+
parentId?: string | undefined;
|
|
86
|
+
parentRevision?: string | undefined;
|
|
25
87
|
inputSchema?: any;
|
|
26
88
|
config?: any;
|
|
27
89
|
outputSchema?: any;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
90
|
+
universalParentId?: string | undefined;
|
|
91
|
+
isOutdated?: boolean | undefined;
|
|
92
|
+
}>;
|
|
93
|
+
export type BaseActionInstance = z.infer<typeof BaseActionInstance>;
|
|
@@ -1,19 +1,44 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare enum
|
|
3
|
-
RUNNING = "running",
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare enum ActionRunLogStatus {
|
|
4
3
|
SUCCESS = "success",
|
|
5
|
-
ERROR = "error"
|
|
6
|
-
QUEUED = "queued"
|
|
4
|
+
ERROR = "error"
|
|
7
5
|
}
|
|
8
|
-
export
|
|
6
|
+
export declare const BaseActionRunLogRecord: z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
} & {
|
|
10
|
+
actionId: z.ZodString;
|
|
11
|
+
integrationId: z.ZodString;
|
|
12
|
+
connectionId: z.ZodString;
|
|
13
|
+
input: z.ZodOptional<z.ZodAny>;
|
|
14
|
+
output: z.ZodOptional<z.ZodAny>;
|
|
15
|
+
status: z.ZodNativeEnum<typeof ActionRunLogStatus>;
|
|
16
|
+
createdAt: z.ZodString;
|
|
17
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
18
|
+
error: any;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
status: ActionRunLogStatus;
|
|
9
21
|
id: string;
|
|
10
|
-
|
|
22
|
+
name: string;
|
|
23
|
+
createdAt: string;
|
|
24
|
+
connectionId: string;
|
|
11
25
|
integrationId: string;
|
|
26
|
+
actionId: string;
|
|
27
|
+
error?: any;
|
|
28
|
+
input?: any;
|
|
29
|
+
output?: any;
|
|
30
|
+
completedAt?: string | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
status: ActionRunLogStatus;
|
|
33
|
+
id: string;
|
|
34
|
+
name: string;
|
|
35
|
+
createdAt: string;
|
|
12
36
|
connectionId: string;
|
|
37
|
+
integrationId: string;
|
|
38
|
+
actionId: string;
|
|
39
|
+
error?: any;
|
|
13
40
|
input?: any;
|
|
14
41
|
output?: any;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
error?: ErrorData;
|
|
19
|
-
}
|
|
42
|
+
completedAt?: string | undefined;
|
|
43
|
+
}>;
|
|
44
|
+
export type BaseActionRunLogRecord = z.infer<typeof BaseActionRunLogRecord>;
|
|
@@ -1,25 +1,85 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import { ActionType } from './action-types';
|
|
2
|
-
import { WorkspaceElementDependency } from '../..';
|
|
3
3
|
import { DataSchema } from '../../../data-schema';
|
|
4
|
-
export
|
|
4
|
+
export declare const BaseAction: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
} & {
|
|
8
|
+
key: z.ZodOptional<z.ZodString>;
|
|
9
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
10
|
+
description: z.ZodOptional<z.ZodString>;
|
|
11
|
+
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
12
|
+
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
13
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
14
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
16
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
17
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
18
|
+
} & {
|
|
19
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
20
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
21
|
+
parentRevision: z.ZodOptional<z.ZodString>;
|
|
22
|
+
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
type: z.ZodNativeEnum<typeof ActionType>;
|
|
24
|
+
inputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
25
|
+
config: z.ZodOptional<z.ZodAny>;
|
|
26
|
+
outputMapping: z.ZodOptional<z.ZodAny>;
|
|
27
|
+
customOutputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
28
|
+
defaultOutputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
29
|
+
transformedOutputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
30
|
+
outputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
31
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
type: ActionType;
|
|
5
34
|
id: string;
|
|
6
|
-
key: string;
|
|
7
35
|
name: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
36
|
+
key?: string | undefined;
|
|
37
|
+
uuid?: string | undefined;
|
|
38
|
+
description?: string | undefined;
|
|
39
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
40
|
+
errors?: any[] | undefined;
|
|
41
|
+
revision?: string | undefined;
|
|
42
|
+
isDeactivated?: boolean | undefined;
|
|
43
|
+
createdAt?: string | undefined;
|
|
44
|
+
updatedAt?: string | undefined;
|
|
45
|
+
archivedAt?: string | undefined;
|
|
46
|
+
integrationId?: string | undefined;
|
|
47
|
+
parentId?: string | undefined;
|
|
48
|
+
parentRevision?: string | undefined;
|
|
49
|
+
isCustomized?: boolean | undefined;
|
|
50
|
+
inputSchema?: DataSchema | undefined;
|
|
51
|
+
config?: any;
|
|
52
|
+
outputMapping?: any;
|
|
53
|
+
customOutputSchema?: DataSchema | undefined;
|
|
54
|
+
defaultOutputSchema?: DataSchema | undefined;
|
|
55
|
+
transformedOutputSchema?: DataSchema | undefined;
|
|
56
|
+
outputSchema?: DataSchema | undefined;
|
|
57
|
+
dependencies?: any[] | undefined;
|
|
58
|
+
}, {
|
|
16
59
|
type: ActionType;
|
|
17
|
-
|
|
60
|
+
id: string;
|
|
61
|
+
name: string;
|
|
62
|
+
key?: string | undefined;
|
|
63
|
+
uuid?: string | undefined;
|
|
64
|
+
description?: string | undefined;
|
|
65
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
66
|
+
errors?: any[] | undefined;
|
|
67
|
+
revision?: string | undefined;
|
|
68
|
+
isDeactivated?: boolean | undefined;
|
|
69
|
+
createdAt?: string | undefined;
|
|
70
|
+
updatedAt?: string | undefined;
|
|
71
|
+
archivedAt?: string | undefined;
|
|
72
|
+
integrationId?: string | undefined;
|
|
73
|
+
parentId?: string | undefined;
|
|
74
|
+
parentRevision?: string | undefined;
|
|
75
|
+
isCustomized?: boolean | undefined;
|
|
76
|
+
inputSchema?: DataSchema | undefined;
|
|
18
77
|
config?: any;
|
|
19
78
|
outputMapping?: any;
|
|
20
|
-
customOutputSchema?: DataSchema;
|
|
21
|
-
defaultOutputSchema?: DataSchema;
|
|
22
|
-
transformedOutputSchema?: DataSchema;
|
|
23
|
-
outputSchema?: DataSchema;
|
|
24
|
-
dependencies?:
|
|
25
|
-
}
|
|
79
|
+
customOutputSchema?: DataSchema | undefined;
|
|
80
|
+
defaultOutputSchema?: DataSchema | undefined;
|
|
81
|
+
transformedOutputSchema?: DataSchema | undefined;
|
|
82
|
+
outputSchema?: DataSchema | undefined;
|
|
83
|
+
dependencies?: any[] | undefined;
|
|
84
|
+
}>;
|
|
85
|
+
export type BaseAction = z.infer<typeof BaseAction>;
|
|
@@ -1,12 +1,64 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const BaseAppDataSchemaInstance: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
key: z.ZodOptional<z.ZodString>;
|
|
6
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
7
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8
|
+
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
9
|
+
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
10
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
11
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
13
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
14
|
+
} & {
|
|
15
|
+
appId: z.ZodString;
|
|
16
|
+
userId: z.ZodString;
|
|
17
|
+
appDataSchemaId: z.ZodString;
|
|
18
|
+
appDataSchemaRevision: z.ZodString;
|
|
19
|
+
instanceKey: z.ZodOptional<z.ZodString>;
|
|
20
|
+
schema: z.ZodOptional<z.ZodAny>;
|
|
21
|
+
error: any;
|
|
22
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
userId: string;
|
|
4
27
|
appId: string;
|
|
28
|
+
appDataSchemaId: string;
|
|
29
|
+
appDataSchemaRevision: string;
|
|
30
|
+
key?: string | undefined;
|
|
31
|
+
error?: any;
|
|
32
|
+
uuid?: string | undefined;
|
|
33
|
+
description?: string | undefined;
|
|
34
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
35
|
+
errors?: any[] | undefined;
|
|
36
|
+
revision?: string | undefined;
|
|
37
|
+
isDeactivated?: boolean | undefined;
|
|
38
|
+
createdAt?: string | undefined;
|
|
39
|
+
updatedAt?: string | undefined;
|
|
40
|
+
archivedAt?: string | undefined;
|
|
41
|
+
instanceKey?: string | undefined;
|
|
42
|
+
schema?: any;
|
|
43
|
+
}, {
|
|
44
|
+
id: string;
|
|
45
|
+
name: string;
|
|
5
46
|
userId: string;
|
|
47
|
+
appId: string;
|
|
6
48
|
appDataSchemaId: string;
|
|
7
49
|
appDataSchemaRevision: string;
|
|
8
|
-
|
|
50
|
+
key?: string | undefined;
|
|
51
|
+
error?: any;
|
|
52
|
+
uuid?: string | undefined;
|
|
53
|
+
description?: string | undefined;
|
|
54
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
55
|
+
errors?: any[] | undefined;
|
|
56
|
+
revision?: string | undefined;
|
|
57
|
+
isDeactivated?: boolean | undefined;
|
|
58
|
+
createdAt?: string | undefined;
|
|
59
|
+
updatedAt?: string | undefined;
|
|
60
|
+
archivedAt?: string | undefined;
|
|
61
|
+
instanceKey?: string | undefined;
|
|
9
62
|
schema?: any;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
63
|
+
}>;
|
|
64
|
+
export type BaseAppDataSchemaInstance = z.infer<typeof BaseAppDataSchemaInstance>;
|
|
@@ -1,7 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const BaseAppDataSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
key: z.ZodOptional<z.ZodString>;
|
|
6
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
7
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8
|
+
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
9
|
+
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
10
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
12
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
13
|
+
} & {
|
|
14
|
+
schema: z.ZodAny;
|
|
15
|
+
code: z.ZodOptional<z.ZodString>;
|
|
16
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
17
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
key?: string | undefined;
|
|
22
|
+
code?: string | undefined;
|
|
23
|
+
uuid?: string | undefined;
|
|
24
|
+
description?: string | undefined;
|
|
25
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
26
|
+
errors?: any[] | undefined;
|
|
27
|
+
revision?: string | undefined;
|
|
28
|
+
isDeactivated?: boolean | undefined;
|
|
29
|
+
createdAt?: string | undefined;
|
|
30
|
+
updatedAt?: string | undefined;
|
|
31
|
+
archivedAt?: string | undefined;
|
|
32
|
+
schema?: any;
|
|
33
|
+
}, {
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
key?: string | undefined;
|
|
37
|
+
code?: string | undefined;
|
|
38
|
+
uuid?: string | undefined;
|
|
39
|
+
description?: string | undefined;
|
|
40
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
41
|
+
errors?: any[] | undefined;
|
|
42
|
+
revision?: string | undefined;
|
|
43
|
+
isDeactivated?: boolean | undefined;
|
|
44
|
+
createdAt?: string | undefined;
|
|
45
|
+
updatedAt?: string | undefined;
|
|
46
|
+
archivedAt?: string | undefined;
|
|
47
|
+
schema?: any;
|
|
48
|
+
}>;
|
|
49
|
+
export type BaseAppDataSchema = z.infer<typeof BaseAppDataSchema>;
|
|
@@ -1,15 +1,98 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import { DataSchema } from '../../../data-schema';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
export declare const BaseAppEventSubscription: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
key: z.ZodOptional<z.ZodString>;
|
|
7
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
8
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9
|
+
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
10
|
+
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
11
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
13
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
14
|
+
} & {
|
|
15
|
+
revision: z.ZodString;
|
|
16
|
+
appEventTypeId: z.ZodString;
|
|
17
|
+
userId: z.ZodString;
|
|
18
|
+
instanceKey: z.ZodOptional<z.ZodString>;
|
|
19
|
+
isSubscribed: z.ZodBoolean;
|
|
20
|
+
schema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
21
|
+
webhookUri: z.ZodString;
|
|
22
|
+
subscriptionRequest: z.ZodObject<{
|
|
23
|
+
method: z.ZodOptional<z.ZodPipeline<z.ZodString, z.ZodNativeEnum<typeof import("../../../http-requests").HttpRequestMethod>>>;
|
|
24
|
+
uri: z.ZodAny;
|
|
25
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
26
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
27
|
+
body: z.ZodOptional<z.ZodAny>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
headers?: Record<string, any> | undefined;
|
|
30
|
+
method?: import("../../../http-requests").HttpRequestMethod | undefined;
|
|
31
|
+
body?: any;
|
|
32
|
+
uri?: any;
|
|
33
|
+
query?: Record<string, any> | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
headers?: Record<string, any> | undefined;
|
|
36
|
+
method?: string | undefined;
|
|
37
|
+
body?: any;
|
|
38
|
+
uri?: any;
|
|
39
|
+
query?: Record<string, any> | undefined;
|
|
40
|
+
}>;
|
|
41
|
+
subscriptionResponse: z.ZodOptional<z.ZodAny>;
|
|
42
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
id: string;
|
|
45
|
+
name: string;
|
|
5
46
|
revision: string;
|
|
6
|
-
appEventTypeId: string;
|
|
7
47
|
userId: string;
|
|
8
|
-
|
|
48
|
+
webhookUri: string;
|
|
49
|
+
appEventTypeId: string;
|
|
9
50
|
isSubscribed: boolean;
|
|
10
|
-
|
|
51
|
+
subscriptionRequest: {
|
|
52
|
+
headers?: Record<string, any> | undefined;
|
|
53
|
+
method?: import("../../../http-requests").HttpRequestMethod | undefined;
|
|
54
|
+
body?: any;
|
|
55
|
+
uri?: any;
|
|
56
|
+
query?: Record<string, any> | undefined;
|
|
57
|
+
};
|
|
58
|
+
key?: string | undefined;
|
|
59
|
+
uuid?: string | undefined;
|
|
60
|
+
description?: string | undefined;
|
|
61
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
62
|
+
errors?: any[] | undefined;
|
|
63
|
+
isDeactivated?: boolean | undefined;
|
|
64
|
+
createdAt?: string | undefined;
|
|
65
|
+
updatedAt?: string | undefined;
|
|
66
|
+
archivedAt?: string | undefined;
|
|
67
|
+
instanceKey?: string | undefined;
|
|
68
|
+
schema?: DataSchema | undefined;
|
|
69
|
+
subscriptionResponse?: any;
|
|
70
|
+
}, {
|
|
71
|
+
id: string;
|
|
72
|
+
name: string;
|
|
73
|
+
revision: string;
|
|
74
|
+
userId: string;
|
|
11
75
|
webhookUri: string;
|
|
12
|
-
|
|
76
|
+
appEventTypeId: string;
|
|
77
|
+
isSubscribed: boolean;
|
|
78
|
+
subscriptionRequest: {
|
|
79
|
+
headers?: Record<string, any> | undefined;
|
|
80
|
+
method?: string | undefined;
|
|
81
|
+
body?: any;
|
|
82
|
+
uri?: any;
|
|
83
|
+
query?: Record<string, any> | undefined;
|
|
84
|
+
};
|
|
85
|
+
key?: string | undefined;
|
|
86
|
+
uuid?: string | undefined;
|
|
87
|
+
description?: string | undefined;
|
|
88
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
89
|
+
errors?: any[] | undefined;
|
|
90
|
+
isDeactivated?: boolean | undefined;
|
|
91
|
+
createdAt?: string | undefined;
|
|
92
|
+
updatedAt?: string | undefined;
|
|
93
|
+
archivedAt?: string | undefined;
|
|
94
|
+
instanceKey?: string | undefined;
|
|
95
|
+
schema?: DataSchema | undefined;
|
|
13
96
|
subscriptionResponse?: any;
|
|
14
|
-
|
|
15
|
-
|
|
97
|
+
}>;
|
|
98
|
+
export type BaseAppEventSubscription = z.infer<typeof BaseAppEventSubscription>;
|
|
@@ -1,12 +1,89 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import { DataSchema } from '../../../data-schema';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
export declare const BaseAppEventType: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
key: z.ZodOptional<z.ZodString>;
|
|
7
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
8
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9
|
+
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
10
|
+
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
11
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
13
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
14
|
+
} & {
|
|
15
|
+
revision: z.ZodString;
|
|
16
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
17
|
+
subscribeRequest: z.ZodOptional<z.ZodObject<{
|
|
18
|
+
method: z.ZodOptional<z.ZodPipeline<z.ZodString, z.ZodNativeEnum<typeof import("../../../http-requests").HttpRequestMethod>>>;
|
|
19
|
+
uri: z.ZodAny;
|
|
20
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
21
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
22
|
+
body: z.ZodOptional<z.ZodAny>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
headers?: Record<string, any> | undefined;
|
|
25
|
+
method?: import("../../../http-requests").HttpRequestMethod | undefined;
|
|
26
|
+
body?: any;
|
|
27
|
+
uri?: any;
|
|
28
|
+
query?: Record<string, any> | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
headers?: Record<string, any> | undefined;
|
|
31
|
+
method?: string | undefined;
|
|
32
|
+
body?: any;
|
|
33
|
+
uri?: any;
|
|
34
|
+
query?: Record<string, any> | undefined;
|
|
35
|
+
}>>;
|
|
36
|
+
example: z.ZodOptional<z.ZodAny>;
|
|
37
|
+
schema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
38
|
+
globalWebhookUri: z.ZodString;
|
|
39
|
+
userIdFormula: z.ZodOptional<z.ZodAny>;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
id: string;
|
|
42
|
+
name: string;
|
|
5
43
|
revision: string;
|
|
6
|
-
|
|
7
|
-
|
|
44
|
+
globalWebhookUri: string;
|
|
45
|
+
key?: string | undefined;
|
|
46
|
+
uuid?: string | undefined;
|
|
47
|
+
description?: string | undefined;
|
|
48
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
49
|
+
errors?: any[] | undefined;
|
|
50
|
+
isDeactivated?: boolean | undefined;
|
|
51
|
+
createdAt?: string | undefined;
|
|
52
|
+
updatedAt?: string | undefined;
|
|
53
|
+
archivedAt?: string | undefined;
|
|
54
|
+
schema?: DataSchema | undefined;
|
|
55
|
+
subscribeRequest?: {
|
|
56
|
+
headers?: Record<string, any> | undefined;
|
|
57
|
+
method?: import("../../../http-requests").HttpRequestMethod | undefined;
|
|
58
|
+
body?: any;
|
|
59
|
+
uri?: any;
|
|
60
|
+
query?: Record<string, any> | undefined;
|
|
61
|
+
} | undefined;
|
|
8
62
|
example?: any;
|
|
9
|
-
|
|
63
|
+
userIdFormula?: any;
|
|
64
|
+
}, {
|
|
65
|
+
id: string;
|
|
66
|
+
name: string;
|
|
67
|
+
revision: string;
|
|
10
68
|
globalWebhookUri: string;
|
|
69
|
+
key?: string | undefined;
|
|
70
|
+
uuid?: string | undefined;
|
|
71
|
+
description?: string | undefined;
|
|
72
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
73
|
+
errors?: any[] | undefined;
|
|
74
|
+
isDeactivated?: boolean | undefined;
|
|
75
|
+
createdAt?: string | undefined;
|
|
76
|
+
updatedAt?: string | undefined;
|
|
77
|
+
archivedAt?: string | undefined;
|
|
78
|
+
schema?: DataSchema | undefined;
|
|
79
|
+
subscribeRequest?: {
|
|
80
|
+
headers?: Record<string, any> | undefined;
|
|
81
|
+
method?: string | undefined;
|
|
82
|
+
body?: any;
|
|
83
|
+
uri?: any;
|
|
84
|
+
query?: Record<string, any> | undefined;
|
|
85
|
+
} | undefined;
|
|
86
|
+
example?: any;
|
|
11
87
|
userIdFormula?: any;
|
|
12
|
-
}
|
|
88
|
+
}>;
|
|
89
|
+
export type BaseAppEventType = z.infer<typeof BaseAppEventType>;
|