@membranehq/sdk 0.4.0 → 0.5.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 +8370 -1268
- package/dist/bundle.js +2216 -2085
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +57 -1
- package/dist/dts/accessors/integrations-accessors.d.ts +57 -1
- package/dist/dts/api-client.d.ts +1 -0
- package/dist/dts/client.d.ts +1 -0
- package/dist/dts/data-schema/types.d.ts +4 -3
- package/dist/dts/entity-repository.d.ts +87 -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/actions-api.d.ts +702 -40
- package/dist/dts/workspace-elements/api/connections-api.d.ts +702 -41
- package/dist/dts/workspace-elements/api/customers-api.d.ts +56 -13
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +834 -77
- package/dist/dts/workspace-elements/api/external-events-api.d.ts +440 -6
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +586 -6
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/flows-api.d.ts +2417 -50
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +253 -24
- package/dist/dts/workspace-elements/api/scenarios-api.d.ts +397 -34
- package/dist/dts/workspace-elements/api/screens-api.d.ts +2 -2
- package/dist/dts/workspace-elements/base/action-instances/types.d.ts +61 -14
- package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +30 -7
- package/dist/dts/workspace-elements/base/actions/types.d.ts +60 -17
- package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +42 -7
- package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +35 -7
- package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +78 -9
- package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +70 -7
- package/dist/dts/workspace-elements/base/connections/types.d.ts +76 -20
- package/dist/dts/workspace-elements/base/connectors/types.d.ts +14 -2
- package/dist/dts/workspace-elements/base/customers/index.d.ts +26 -6
- package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +75 -74
- package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +61 -11
- package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +26 -4
- package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +1030 -19
- package/dist/dts/workspace-elements/base/data-sources/types.d.ts +89 -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 +199 -23
- 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 +74 -16
- package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +91 -14
- package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +39 -39
- package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +155 -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 +114 -19
- package/dist/dts/workspace-elements/base/flows/types.d.ts +220 -26
- package/dist/dts/workspace-elements/base/integrations/types.d.ts +497 -24
- package/dist/dts/workspace-elements/base/scenarios/types.d.ts +723 -23
- package/dist/dts/workspace-elements/base/screens/types.d.ts +40 -6
- package/dist/index.d.ts +12141 -2138
- package/dist/index.js +1555 -522
- package/dist/index.js.map +1 -1
- package/dist/index.module.d.mts +12141 -2138
- package/dist/index.module.mjs +1414 -490
- package/dist/index.module.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,31 +1,260 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PaginationResponse } from '../../entity-repository';
|
|
3
|
+
export declare const CreateIntegrationRequest: z.ZodObject<{
|
|
4
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5
|
+
key: z.ZodString;
|
|
6
|
+
baseUri: z.ZodString;
|
|
7
|
+
logoUri: z.ZodString;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
9
|
key: string;
|
|
9
10
|
baseUri: string;
|
|
10
11
|
logoUri: string;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
export
|
|
19
|
-
|
|
12
|
+
name?: string | undefined;
|
|
13
|
+
}, {
|
|
14
|
+
key: string;
|
|
15
|
+
baseUri: string;
|
|
16
|
+
logoUri: string;
|
|
17
|
+
name?: string | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
export type CreateIntegrationRequest = z.infer<typeof CreateIntegrationRequest>;
|
|
20
|
+
export declare const UpdateIntegrationRequest: z.ZodObject<{
|
|
21
|
+
name: z.ZodOptional<z.ZodString>;
|
|
22
|
+
key: z.ZodOptional<z.ZodString>;
|
|
23
|
+
baseUri: z.ZodOptional<z.ZodString>;
|
|
24
|
+
logoUri: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
key?: string | undefined;
|
|
27
|
+
name?: string | undefined;
|
|
28
|
+
baseUri?: string | undefined;
|
|
29
|
+
logoUri?: string | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
key?: string | undefined;
|
|
32
|
+
name?: string | undefined;
|
|
33
|
+
baseUri?: string | undefined;
|
|
34
|
+
logoUri?: string | undefined;
|
|
35
|
+
}>;
|
|
36
|
+
export type UpdateIntegrationRequest = z.infer<typeof UpdateIntegrationRequest>;
|
|
37
|
+
export declare const FindIntegrationsQuery: z.ZodObject<{
|
|
38
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
40
|
+
} & {
|
|
41
|
+
search: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
search?: string | undefined;
|
|
44
|
+
limit?: number | undefined;
|
|
45
|
+
cursor?: string | undefined;
|
|
46
|
+
}, {
|
|
47
|
+
search?: string | undefined;
|
|
48
|
+
limit?: number | undefined;
|
|
49
|
+
cursor?: string | undefined;
|
|
50
|
+
}>;
|
|
51
|
+
export type FindIntegrationsQuery = z.infer<typeof FindIntegrationsQuery>;
|
|
20
52
|
export interface FindIntegrationsResponse extends PaginationResponse<Integration> {
|
|
21
53
|
}
|
|
22
|
-
export
|
|
23
|
-
allowMultipleConnections
|
|
24
|
-
name
|
|
54
|
+
export declare const OpenNewConnectionOptions: z.ZodObject<{
|
|
55
|
+
allowMultipleConnections: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
+
name: z.ZodOptional<z.ZodString>;
|
|
57
|
+
connectorParameters: z.ZodOptional<z.ZodAny>;
|
|
58
|
+
} & {
|
|
59
|
+
onClose: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
|
|
60
|
+
showPoweredBy: z.ZodOptional<z.ZodBoolean>;
|
|
61
|
+
}, "strip", z.ZodTypeAny, {
|
|
62
|
+
name?: string | undefined;
|
|
25
63
|
connectorParameters?: any;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
64
|
+
onClose?: ((...args: unknown[]) => unknown) | undefined;
|
|
65
|
+
showPoweredBy?: boolean | undefined;
|
|
66
|
+
allowMultipleConnections?: boolean | undefined;
|
|
67
|
+
}, {
|
|
68
|
+
name?: string | undefined;
|
|
69
|
+
connectorParameters?: any;
|
|
70
|
+
onClose?: ((...args: unknown[]) => unknown) | undefined;
|
|
71
|
+
showPoweredBy?: boolean | undefined;
|
|
72
|
+
allowMultipleConnections?: boolean | undefined;
|
|
73
|
+
}>;
|
|
74
|
+
export type OpenNewConnectionOptions = z.infer<typeof OpenNewConnectionOptions>;
|
|
75
|
+
export declare const Integration: z.ZodObject<{
|
|
76
|
+
id: z.ZodString;
|
|
77
|
+
name: z.ZodString;
|
|
78
|
+
} & {
|
|
79
|
+
key: z.ZodString;
|
|
80
|
+
state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
|
|
81
|
+
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
82
|
+
} & {
|
|
83
|
+
logoUri: z.ZodString;
|
|
84
|
+
connectorId: z.ZodOptional<z.ZodString>;
|
|
85
|
+
connectorVersion: z.ZodOptional<z.ZodString>;
|
|
86
|
+
authOptions: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
87
|
+
oAuthCallbackUri: z.ZodOptional<z.ZodString>;
|
|
88
|
+
parametersSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
|
|
89
|
+
parameters: z.ZodOptional<z.ZodAny>;
|
|
90
|
+
baseUri: z.ZodString;
|
|
91
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
92
|
+
hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
|
|
93
|
+
hasDocumentation: z.ZodOptional<z.ZodBoolean>;
|
|
94
|
+
hasOperations: z.ZodOptional<z.ZodBoolean>;
|
|
95
|
+
hasData: z.ZodOptional<z.ZodBoolean>;
|
|
96
|
+
hasEvents: z.ZodOptional<z.ZodBoolean>;
|
|
97
|
+
hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
|
|
98
|
+
hasUdm: z.ZodOptional<z.ZodBoolean>;
|
|
99
|
+
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
100
|
+
appUuid: z.ZodOptional<z.ZodString>;
|
|
101
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
102
|
+
authType: z.ZodOptional<z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>>;
|
|
103
|
+
} & {
|
|
104
|
+
connection: z.ZodOptional<z.ZodObject<{
|
|
105
|
+
id: z.ZodString;
|
|
106
|
+
} & {
|
|
107
|
+
name: z.ZodString;
|
|
108
|
+
userId: z.ZodString;
|
|
109
|
+
disconnected: z.ZodOptional<z.ZodBoolean>;
|
|
110
|
+
error: any;
|
|
111
|
+
integrationId: z.ZodString;
|
|
112
|
+
credentials: z.ZodOptional<z.ZodUnknown>;
|
|
113
|
+
parameters: z.ZodOptional<z.ZodUnknown>;
|
|
114
|
+
connectorParameters: z.ZodOptional<z.ZodUnknown>;
|
|
115
|
+
accessToken: z.ZodOptional<z.ZodString>;
|
|
116
|
+
refreshToken: z.ZodOptional<z.ZodString>;
|
|
117
|
+
createdAt: z.ZodString;
|
|
118
|
+
updatedAt: z.ZodString;
|
|
119
|
+
lastActiveAt: z.ZodOptional<z.ZodString>;
|
|
120
|
+
nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
|
|
121
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
122
|
+
state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
|
|
123
|
+
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
124
|
+
}, "strip", z.ZodTypeAny, {
|
|
125
|
+
id: string;
|
|
126
|
+
name: string;
|
|
127
|
+
userId: string;
|
|
128
|
+
integrationId: string;
|
|
129
|
+
createdAt: string;
|
|
130
|
+
updatedAt: string;
|
|
131
|
+
error?: any;
|
|
132
|
+
state?: import("..").WorkspaceElementState | undefined;
|
|
133
|
+
errors?: any[] | undefined;
|
|
134
|
+
accessToken?: string | undefined;
|
|
135
|
+
credentials?: unknown;
|
|
136
|
+
parameters?: unknown;
|
|
137
|
+
connectorParameters?: unknown;
|
|
138
|
+
disconnected?: boolean | undefined;
|
|
139
|
+
refreshToken?: string | undefined;
|
|
140
|
+
lastActiveAt?: string | undefined;
|
|
141
|
+
nextCredentialsRefreshAt?: string | undefined;
|
|
142
|
+
archivedAt?: string | undefined;
|
|
143
|
+
}, {
|
|
144
|
+
id: string;
|
|
145
|
+
name: string;
|
|
146
|
+
userId: string;
|
|
147
|
+
integrationId: string;
|
|
148
|
+
createdAt: string;
|
|
149
|
+
updatedAt: string;
|
|
150
|
+
error?: any;
|
|
151
|
+
state?: import("..").WorkspaceElementState | undefined;
|
|
152
|
+
errors?: any[] | undefined;
|
|
153
|
+
accessToken?: string | undefined;
|
|
154
|
+
credentials?: unknown;
|
|
155
|
+
parameters?: unknown;
|
|
156
|
+
connectorParameters?: unknown;
|
|
157
|
+
disconnected?: boolean | undefined;
|
|
158
|
+
refreshToken?: string | undefined;
|
|
159
|
+
lastActiveAt?: string | undefined;
|
|
160
|
+
nextCredentialsRefreshAt?: string | undefined;
|
|
161
|
+
archivedAt?: string | undefined;
|
|
162
|
+
}>>;
|
|
163
|
+
spec: z.ZodOptional<z.ZodAny>;
|
|
164
|
+
}, "strip", z.ZodTypeAny, {
|
|
165
|
+
key: string;
|
|
166
|
+
id: string;
|
|
167
|
+
name: string;
|
|
168
|
+
baseUri: string;
|
|
169
|
+
logoUri: string;
|
|
170
|
+
connection?: {
|
|
171
|
+
id: string;
|
|
172
|
+
name: string;
|
|
173
|
+
userId: string;
|
|
174
|
+
integrationId: string;
|
|
175
|
+
createdAt: string;
|
|
176
|
+
updatedAt: string;
|
|
177
|
+
error?: any;
|
|
178
|
+
state?: import("..").WorkspaceElementState | undefined;
|
|
179
|
+
errors?: any[] | undefined;
|
|
180
|
+
accessToken?: string | undefined;
|
|
181
|
+
credentials?: unknown;
|
|
182
|
+
parameters?: unknown;
|
|
183
|
+
connectorParameters?: unknown;
|
|
184
|
+
disconnected?: boolean | undefined;
|
|
185
|
+
refreshToken?: string | undefined;
|
|
186
|
+
lastActiveAt?: string | undefined;
|
|
187
|
+
nextCredentialsRefreshAt?: string | undefined;
|
|
188
|
+
archivedAt?: string | undefined;
|
|
189
|
+
} | undefined;
|
|
190
|
+
state?: import("..").WorkspaceElementState | undefined;
|
|
191
|
+
errors?: any[] | undefined;
|
|
192
|
+
parameters?: any;
|
|
193
|
+
parametersSchema?: import("../..").DataSchema | undefined;
|
|
194
|
+
archivedAt?: string | undefined;
|
|
195
|
+
isTest?: boolean | undefined;
|
|
196
|
+
connectorId?: string | undefined;
|
|
197
|
+
connectorVersion?: string | undefined;
|
|
198
|
+
authOptions?: any[] | undefined;
|
|
199
|
+
oAuthCallbackUri?: string | undefined;
|
|
200
|
+
hasMissingParameters?: boolean | undefined;
|
|
201
|
+
hasDocumentation?: boolean | undefined;
|
|
202
|
+
hasOperations?: boolean | undefined;
|
|
203
|
+
hasData?: boolean | undefined;
|
|
204
|
+
hasEvents?: boolean | undefined;
|
|
205
|
+
hasGlobalWebhooks?: boolean | undefined;
|
|
206
|
+
hasUdm?: boolean | undefined;
|
|
207
|
+
appUuid?: string | undefined;
|
|
208
|
+
isDeactivated?: boolean | undefined;
|
|
209
|
+
authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
|
|
210
|
+
spec?: any;
|
|
211
|
+
}, {
|
|
212
|
+
key: string;
|
|
213
|
+
id: string;
|
|
214
|
+
name: string;
|
|
215
|
+
baseUri: string;
|
|
216
|
+
logoUri: string;
|
|
217
|
+
connection?: {
|
|
218
|
+
id: string;
|
|
219
|
+
name: string;
|
|
220
|
+
userId: string;
|
|
221
|
+
integrationId: string;
|
|
222
|
+
createdAt: string;
|
|
223
|
+
updatedAt: string;
|
|
224
|
+
error?: any;
|
|
225
|
+
state?: import("..").WorkspaceElementState | undefined;
|
|
226
|
+
errors?: any[] | undefined;
|
|
227
|
+
accessToken?: string | undefined;
|
|
228
|
+
credentials?: unknown;
|
|
229
|
+
parameters?: unknown;
|
|
230
|
+
connectorParameters?: unknown;
|
|
231
|
+
disconnected?: boolean | undefined;
|
|
232
|
+
refreshToken?: string | undefined;
|
|
233
|
+
lastActiveAt?: string | undefined;
|
|
234
|
+
nextCredentialsRefreshAt?: string | undefined;
|
|
235
|
+
archivedAt?: string | undefined;
|
|
236
|
+
} | undefined;
|
|
237
|
+
state?: import("..").WorkspaceElementState | undefined;
|
|
238
|
+
errors?: any[] | undefined;
|
|
239
|
+
parameters?: any;
|
|
240
|
+
parametersSchema?: import("../..").DataSchema | undefined;
|
|
241
|
+
archivedAt?: string | undefined;
|
|
242
|
+
isTest?: boolean | undefined;
|
|
243
|
+
connectorId?: string | undefined;
|
|
244
|
+
connectorVersion?: string | undefined;
|
|
245
|
+
authOptions?: any[] | undefined;
|
|
246
|
+
oAuthCallbackUri?: string | undefined;
|
|
247
|
+
hasMissingParameters?: boolean | undefined;
|
|
248
|
+
hasDocumentation?: boolean | undefined;
|
|
249
|
+
hasOperations?: boolean | undefined;
|
|
250
|
+
hasData?: boolean | undefined;
|
|
251
|
+
hasEvents?: boolean | undefined;
|
|
252
|
+
hasGlobalWebhooks?: boolean | undefined;
|
|
253
|
+
hasUdm?: boolean | undefined;
|
|
254
|
+
appUuid?: string | undefined;
|
|
255
|
+
isDeactivated?: boolean | undefined;
|
|
256
|
+
authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
|
|
257
|
+
spec?: any;
|
|
258
|
+
}>;
|
|
259
|
+
export type Integration = z.infer<typeof Integration>;
|
|
31
260
|
export type IntegrationApiResponse = Integration;
|