@membranehq/sdk 0.7.5 → 0.8.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 +317 -108
- package/dist/bundle.js +351 -270
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/action-instances-accessors.d.ts +1 -2
- package/dist/dts/accessors/actions-accessors.d.ts +0 -1
- package/dist/dts/accessors/data-sources-accessors.d.ts +0 -1
- package/dist/dts/accessors/field-mappings-accessors.d.ts +0 -1
- package/dist/dts/accessors/flows-accessors.d.ts +0 -1
- package/dist/dts/accessors/scenarios-accessors.d.ts +6 -4
- package/dist/dts/alerts/types.d.ts +3 -1
- package/dist/dts/client.d.ts +3 -3
- package/dist/dts/webhooks/types.d.ts +5 -2
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +5 -0
- package/dist/dts/workspace-elements/api/actions-api.d.ts +309 -1
- package/dist/dts/workspace-elements/api/index.d.ts +1 -2
- package/dist/dts/workspace-elements/api/{scenarios-api.d.ts → packages-api.d.ts} +11 -7
- package/dist/dts/workspace-elements/base/action-instances/types.d.ts +14 -9
- package/dist/dts/workspace-elements/base/actions/index.d.ts +46 -0
- package/dist/dts/workspace-elements/base/index.d.ts +1 -2
- package/dist/dts/workspace-elements/base/{scenarios → packages}/index.d.ts +8 -8
- package/dist/dts/workspace-elements/types.d.ts +7 -1
- package/dist/dts/workspace-elements-catalog/index.d.ts +2 -0
- package/dist/index.browser.d.mts +894 -648
- package/dist/index.browser.d.ts +894 -648
- package/dist/index.browser.js +146 -131
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +136 -125
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +894 -648
- package/dist/index.node.d.ts +894 -648
- package/dist/index.node.js +146 -131
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +136 -125
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/dts/workspace-elements/api/action-instances-api.d.ts +0 -94
|
@@ -2,6 +2,16 @@ import { z } from 'zod';
|
|
|
2
2
|
import { ActionType } from './action-types';
|
|
3
3
|
import { DataSchema } from '../../../data-schema';
|
|
4
4
|
export * from './action-types';
|
|
5
|
+
export declare enum ActionDependencyType {
|
|
6
|
+
FieldMapping = "FieldMapping",
|
|
7
|
+
DataSource = "DataSource"
|
|
8
|
+
}
|
|
9
|
+
export declare const ActionDependency: z.ZodObject<{
|
|
10
|
+
type: z.ZodEnum<typeof ActionDependencyType>;
|
|
11
|
+
key: z.ZodString;
|
|
12
|
+
element: z.ZodOptional<z.ZodAny>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export type ActionDependency = z.infer<typeof ActionDependency>;
|
|
5
15
|
export declare const ActionEditableProperties: z.ZodObject<{
|
|
6
16
|
key: z.ZodOptional<z.ZodString>;
|
|
7
17
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -9,7 +19,9 @@ export declare const ActionEditableProperties: z.ZodObject<{
|
|
|
9
19
|
description: z.ZodOptional<z.ZodString>;
|
|
10
20
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
11
21
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
22
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
12
23
|
parentId: z.ZodOptional<z.ZodString>;
|
|
24
|
+
instanceKey: z.ZodOptional<z.ZodString>;
|
|
13
25
|
inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
14
26
|
type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
|
|
15
27
|
config: z.ZodOptional<z.ZodAny>;
|
|
@@ -24,7 +36,9 @@ export declare const BaseAction: z.ZodObject<{
|
|
|
24
36
|
description: z.ZodOptional<z.ZodString>;
|
|
25
37
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
26
38
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
39
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
27
40
|
parentId: z.ZodOptional<z.ZodString>;
|
|
41
|
+
instanceKey: z.ZodOptional<z.ZodString>;
|
|
28
42
|
inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
29
43
|
type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
|
|
30
44
|
config: z.ZodOptional<z.ZodAny>;
|
|
@@ -39,5 +53,37 @@ export declare const BaseAction: z.ZodObject<{
|
|
|
39
53
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
40
54
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
41
55
|
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
+
universalParentId: z.ZodOptional<z.ZodString>;
|
|
57
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
58
|
+
outputSchema: z.ZodOptional<z.ZodAny>;
|
|
42
59
|
}, z.core.$strip>;
|
|
43
60
|
export type BaseAction = z.infer<typeof BaseAction>;
|
|
61
|
+
export declare const BaseActionInstance: z.ZodObject<{
|
|
62
|
+
id: z.ZodString;
|
|
63
|
+
key: z.ZodOptional<z.ZodString>;
|
|
64
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
65
|
+
description: z.ZodOptional<z.ZodString>;
|
|
66
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
67
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
68
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
69
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
70
|
+
instanceKey: z.ZodOptional<z.ZodString>;
|
|
71
|
+
inputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
72
|
+
type: z.ZodOptional<z.ZodEnum<typeof ActionType>>;
|
|
73
|
+
config: z.ZodOptional<z.ZodAny>;
|
|
74
|
+
outputMapping: z.ZodOptional<z.ZodAny>;
|
|
75
|
+
customOutputSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
76
|
+
name: z.ZodString;
|
|
77
|
+
state: z.ZodOptional<z.ZodEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
78
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../..").ErrorDataSchema, unknown>>>>;
|
|
79
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
80
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
81
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
82
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
83
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
84
|
+
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
+
universalParentId: z.ZodOptional<z.ZodString>;
|
|
86
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
87
|
+
outputSchema: z.ZodOptional<z.ZodAny>;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
export type BaseActionInstance = BaseAction;
|
|
@@ -8,11 +8,10 @@ export * from './external-events';
|
|
|
8
8
|
export * from './flow-runs';
|
|
9
9
|
export * from './flows';
|
|
10
10
|
export * from './integrations';
|
|
11
|
-
export * from './
|
|
11
|
+
export * from './packages';
|
|
12
12
|
export * from './screens';
|
|
13
13
|
export * from './customers';
|
|
14
14
|
export * from './flow-instances';
|
|
15
|
-
export * from './action-instances';
|
|
16
15
|
export * from './field-mappings';
|
|
17
16
|
export * from './field-mapping-instances';
|
|
18
17
|
export * from './data-link-tables';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { IntegrationElementType } from '../../../integration-elements';
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const PackageElement: z.ZodObject<{
|
|
4
4
|
id: z.ZodString;
|
|
5
5
|
type: z.ZodEnum<typeof IntegrationElementType>;
|
|
6
6
|
element: z.ZodOptional<z.ZodAny>;
|
|
7
7
|
}, z.core.$strip>;
|
|
8
|
-
export type
|
|
9
|
-
export declare const
|
|
8
|
+
export type PackageElement = z.infer<typeof PackageElement>;
|
|
9
|
+
export declare const PackageEditableProperties: z.ZodObject<{
|
|
10
10
|
key: z.ZodOptional<z.ZodString>;
|
|
11
11
|
name: z.ZodOptional<z.ZodString>;
|
|
12
12
|
uuid: z.ZodOptional<z.ZodString>;
|
|
@@ -21,14 +21,14 @@ export declare const ScenarioEditableProperties: z.ZodObject<{
|
|
|
21
21
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
22
22
|
parentId: z.ZodOptional<z.ZodString>;
|
|
23
23
|
}, z.core.$strip>;
|
|
24
|
-
export type
|
|
25
|
-
export declare const
|
|
24
|
+
export type PackageEditableProperties = z.infer<typeof PackageEditableProperties>;
|
|
25
|
+
export declare const PackageCalculatedProperties: z.ZodObject<{
|
|
26
26
|
key: z.ZodString;
|
|
27
27
|
name: z.ZodString;
|
|
28
28
|
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
29
29
|
}, z.core.$strip>;
|
|
30
|
-
export type
|
|
31
|
-
export declare const
|
|
30
|
+
export type PackageCalculatedProperties = z.infer<typeof PackageCalculatedProperties>;
|
|
31
|
+
export declare const BasePackage: z.ZodObject<{
|
|
32
32
|
id: z.ZodString;
|
|
33
33
|
state: z.ZodOptional<z.ZodEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
34
34
|
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../..").ErrorDataSchema, unknown>>>>;
|
|
@@ -52,4 +52,4 @@ export declare const BaseScenario: z.ZodObject<{
|
|
|
52
52
|
name: z.ZodString;
|
|
53
53
|
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
54
54
|
}, z.core.$strip>;
|
|
55
|
-
export type
|
|
55
|
+
export type BasePackage = z.infer<typeof BasePackage>;
|
|
@@ -17,7 +17,7 @@ export declare enum WorkspaceElementType {
|
|
|
17
17
|
FlowInstance = "flow-instance",
|
|
18
18
|
FlowRun = "flow-run",
|
|
19
19
|
Action = "action",
|
|
20
|
-
|
|
20
|
+
Package = "package",
|
|
21
21
|
ActionInstance = "action-instance",
|
|
22
22
|
Connection = "connection",
|
|
23
23
|
FieldMapping = "field-mapping",
|
|
@@ -120,6 +120,12 @@ export declare const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties: z.
|
|
|
120
120
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
121
121
|
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
122
122
|
}, z.core.$strip>;
|
|
123
|
+
export declare const IntegrationLevelMembraneInterfaceSelectorQuery: z.ZodObject<{
|
|
124
|
+
integrationKey: z.ZodOptional<z.ZodString>;
|
|
125
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
126
|
+
instanceKey: z.ZodOptional<z.ZodString>;
|
|
127
|
+
}, z.core.$strip>;
|
|
128
|
+
export type IntegrationLevelMembraneInterfaceSelectorQuery = z.infer<typeof IntegrationLevelMembraneInterfaceSelectorQuery>;
|
|
123
129
|
export declare const BaseIntegrationLevelMembraneInterface: z.ZodObject<{
|
|
124
130
|
id: z.ZodString;
|
|
125
131
|
key: z.ZodOptional<z.ZodString>;
|
|
@@ -12,6 +12,8 @@ export interface WorkspaceElementSpec {
|
|
|
12
12
|
editablePropertiesSchema?: z.ZodObject<any>;
|
|
13
13
|
apiResponseSchema?: z.ZodObject<any>;
|
|
14
14
|
findQuerySchema?: z.ZodObject<any>;
|
|
15
|
+
isMembraneInterface?: boolean;
|
|
16
|
+
isIntegrationLevel?: boolean;
|
|
15
17
|
parentFieldKey?: string;
|
|
16
18
|
}
|
|
17
19
|
export interface WorkspaceElements {
|