@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,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { DataCollectionEvent } from './types';
|
|
3
|
-
|
|
3
|
+
import { DataSchema } from '../../../data-schema';
|
|
4
|
+
export declare const ApiRequestSpec: z.ZodObject<{
|
|
4
5
|
path: z.ZodUnknown;
|
|
5
6
|
method: z.ZodUnknown;
|
|
6
7
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -10,8 +11,8 @@ export declare const ApiRequestSpecSchema: z.ZodObject<{
|
|
|
10
11
|
method?: unknown;
|
|
11
12
|
path?: unknown;
|
|
12
13
|
}>;
|
|
13
|
-
export type ApiRequestSpec = z.infer<typeof
|
|
14
|
-
export declare const
|
|
14
|
+
export type ApiRequestSpec = z.infer<typeof ApiRequestSpec>;
|
|
15
|
+
export declare const DataCollectionMethodSpec: z.ZodObject<{
|
|
15
16
|
apiRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
16
17
|
path: z.ZodUnknown;
|
|
17
18
|
method: z.ZodUnknown;
|
|
@@ -33,8 +34,8 @@ export declare const DataCollectionMethodSpecSchema: z.ZodObject<{
|
|
|
33
34
|
path?: unknown;
|
|
34
35
|
}[] | undefined;
|
|
35
36
|
}>;
|
|
36
|
-
export type DataCollectionMethodSpec = z.infer<typeof
|
|
37
|
-
export declare const
|
|
37
|
+
export type DataCollectionMethodSpec = z.infer<typeof DataCollectionMethodSpec>;
|
|
38
|
+
export declare const DataCollectionListSpec: z.ZodObject<{
|
|
38
39
|
apiRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
39
40
|
path: z.ZodUnknown;
|
|
40
41
|
method: z.ZodUnknown;
|
|
@@ -60,8 +61,8 @@ export declare const DataCollectionListSpecSchema: z.ZodObject<{
|
|
|
60
61
|
}[] | undefined;
|
|
61
62
|
filterFields?: string[] | undefined;
|
|
62
63
|
}>;
|
|
63
|
-
export type DataCollectionListSpec = z.infer<typeof
|
|
64
|
-
export declare const
|
|
64
|
+
export type DataCollectionListSpec = z.infer<typeof DataCollectionListSpec>;
|
|
65
|
+
export declare const DataCollectionSearchSpec: z.ZodObject<{
|
|
65
66
|
apiRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
66
67
|
path: z.ZodUnknown;
|
|
67
68
|
method: z.ZodUnknown;
|
|
@@ -83,8 +84,8 @@ export declare const DataCollectionSearchSpecSchema: z.ZodObject<{
|
|
|
83
84
|
path?: unknown;
|
|
84
85
|
}[] | undefined;
|
|
85
86
|
}>;
|
|
86
|
-
export type DataCollectionSearchSpec = z.infer<typeof
|
|
87
|
-
export declare const
|
|
87
|
+
export type DataCollectionSearchSpec = z.infer<typeof DataCollectionSearchSpec>;
|
|
88
|
+
export declare const DataCollectionMatchSpec: z.ZodObject<{
|
|
88
89
|
apiRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
89
90
|
path: z.ZodUnknown;
|
|
90
91
|
method: z.ZodUnknown;
|
|
@@ -110,8 +111,8 @@ export declare const DataCollectionMatchSpecSchema: z.ZodObject<{
|
|
|
110
111
|
path?: unknown;
|
|
111
112
|
}[] | undefined;
|
|
112
113
|
}>;
|
|
113
|
-
export type DataCollectionMatchSpec = z.infer<typeof
|
|
114
|
-
export declare const
|
|
114
|
+
export type DataCollectionMatchSpec = z.infer<typeof DataCollectionMatchSpec>;
|
|
115
|
+
export declare const DataCollectionFindByIdSpec: z.ZodObject<{
|
|
115
116
|
apiRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
116
117
|
path: z.ZodUnknown;
|
|
117
118
|
method: z.ZodUnknown;
|
|
@@ -133,8 +134,8 @@ export declare const DataCollectionFindByIdSpecSchema: z.ZodObject<{
|
|
|
133
134
|
path?: unknown;
|
|
134
135
|
}[] | undefined;
|
|
135
136
|
}>;
|
|
136
|
-
export type DataCollectionFindByIdSpec = z.infer<typeof
|
|
137
|
-
export declare const
|
|
137
|
+
export type DataCollectionFindByIdSpec = z.infer<typeof DataCollectionFindByIdSpec>;
|
|
138
|
+
export declare const DataCollectionCreateSpec: z.ZodObject<{
|
|
138
139
|
apiRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
139
140
|
path: z.ZodUnknown;
|
|
140
141
|
method: z.ZodUnknown;
|
|
@@ -166,8 +167,8 @@ export declare const DataCollectionCreateSpecSchema: z.ZodObject<{
|
|
|
166
167
|
requiredFields?: string[] | undefined;
|
|
167
168
|
excludedFields?: string[] | undefined;
|
|
168
169
|
}>;
|
|
169
|
-
export type DataCollectionCreateSpec = z.infer<typeof
|
|
170
|
-
export declare const
|
|
170
|
+
export type DataCollectionCreateSpec = z.infer<typeof DataCollectionCreateSpec>;
|
|
171
|
+
export declare const DataCollectionUpdateSpec: z.ZodObject<{
|
|
171
172
|
apiRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
172
173
|
path: z.ZodUnknown;
|
|
173
174
|
method: z.ZodUnknown;
|
|
@@ -196,8 +197,8 @@ export declare const DataCollectionUpdateSpecSchema: z.ZodObject<{
|
|
|
196
197
|
}[] | undefined;
|
|
197
198
|
excludedFields?: string[] | undefined;
|
|
198
199
|
}>;
|
|
199
|
-
export type DataCollectionUpdateSpec = z.infer<typeof
|
|
200
|
-
export declare const
|
|
200
|
+
export type DataCollectionUpdateSpec = z.infer<typeof DataCollectionUpdateSpec>;
|
|
201
|
+
export declare const DataCollectionDeleteSpec: z.ZodObject<{
|
|
201
202
|
apiRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
202
203
|
path: z.ZodUnknown;
|
|
203
204
|
method: z.ZodUnknown;
|
|
@@ -219,8 +220,8 @@ export declare const DataCollectionDeleteSpecSchema: z.ZodObject<{
|
|
|
219
220
|
path?: unknown;
|
|
220
221
|
}[] | undefined;
|
|
221
222
|
}>;
|
|
222
|
-
export type DataCollectionDeleteSpec = z.infer<typeof
|
|
223
|
-
export declare const
|
|
223
|
+
export type DataCollectionDeleteSpec = z.infer<typeof DataCollectionDeleteSpec>;
|
|
224
|
+
export declare const DataCollectionFindSpec: z.ZodObject<{
|
|
224
225
|
apiRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
225
226
|
path: z.ZodUnknown;
|
|
226
227
|
method: z.ZodUnknown;
|
|
@@ -246,8 +247,8 @@ export declare const DataCollectionFindSpecSchema: z.ZodObject<{
|
|
|
246
247
|
}[] | undefined;
|
|
247
248
|
queryFields?: string[] | undefined;
|
|
248
249
|
}>;
|
|
249
|
-
export type DataCollectionFindSpec = z.infer<typeof
|
|
250
|
-
export declare const
|
|
250
|
+
export type DataCollectionFindSpec = z.infer<typeof DataCollectionFindSpec>;
|
|
251
|
+
export declare const DataCollectionEventTypeSpec: z.ZodObject<{
|
|
251
252
|
type: z.ZodEnum<["push", "pull"]>;
|
|
252
253
|
isFullScan: z.ZodOptional<z.ZodBoolean>;
|
|
253
254
|
isIdOnly: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -260,8 +261,8 @@ export declare const DataCollectionEventTypeSpecSchema: z.ZodObject<{
|
|
|
260
261
|
isFullScan?: boolean | undefined;
|
|
261
262
|
isIdOnly?: boolean | undefined;
|
|
262
263
|
}>;
|
|
263
|
-
export type DataCollectionEventTypeSpec = z.infer<typeof
|
|
264
|
-
export declare const
|
|
264
|
+
export type DataCollectionEventTypeSpec = z.infer<typeof DataCollectionEventTypeSpec>;
|
|
265
|
+
export declare const DataCollectionEventsSpec: z.ZodObject<{
|
|
265
266
|
created: z.ZodOptional<z.ZodObject<{
|
|
266
267
|
type: z.ZodEnum<["push", "pull"]>;
|
|
267
268
|
isFullScan: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -457,8 +458,8 @@ export declare const DataCollectionEventsSpecSchema: z.ZodObject<{
|
|
|
457
458
|
isFullScan?: boolean | undefined;
|
|
458
459
|
isIdOnly?: boolean | undefined;
|
|
459
460
|
}>, "strip">>;
|
|
460
|
-
export type DataCollectionEventsSpec = z.infer<typeof
|
|
461
|
-
export declare const
|
|
461
|
+
export type DataCollectionEventsSpec = z.infer<typeof DataCollectionEventsSpec>;
|
|
462
|
+
export declare const DataCollectionUdmSpec: z.ZodObject<{
|
|
462
463
|
fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
463
464
|
extract: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
464
465
|
parse: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -471,8 +472,8 @@ export declare const DataCollectionUdmSpecSchema: z.ZodObject<{
|
|
|
471
472
|
extract?: Record<string, any> | undefined;
|
|
472
473
|
parse?: Record<string, any> | undefined;
|
|
473
474
|
}>;
|
|
474
|
-
export type DataCollectionUdmSpec = z.infer<typeof
|
|
475
|
-
export declare const
|
|
475
|
+
export type DataCollectionUdmSpec = z.infer<typeof DataCollectionUdmSpec>;
|
|
476
|
+
export declare const DataCollectionUdmsSpec: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
476
477
|
fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
477
478
|
extract: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
478
479
|
parse: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -485,13 +486,13 @@ export declare const DataCollectionUdmsSpecSchema: z.ZodRecord<z.ZodString, z.Zo
|
|
|
485
486
|
extract?: Record<string, any> | undefined;
|
|
486
487
|
parse?: Record<string, any> | undefined;
|
|
487
488
|
}>>;
|
|
488
|
-
export type DataCollectionUdmsSpec = z.infer<typeof
|
|
489
|
-
export declare const
|
|
489
|
+
export type DataCollectionUdmsSpec = z.infer<typeof DataCollectionUdmsSpec>;
|
|
490
|
+
export declare const DataCollectionSpec: z.ZodObject<{
|
|
490
491
|
type: z.ZodLiteral<"collection">;
|
|
491
492
|
key: z.ZodOptional<z.ZodString>;
|
|
492
493
|
name: z.ZodString;
|
|
493
|
-
parametersSchema: z.ZodOptional<z.
|
|
494
|
-
fieldsSchema: z.ZodOptional<z.
|
|
494
|
+
parametersSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
495
|
+
fieldsSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
495
496
|
list: z.ZodOptional<z.ZodObject<{
|
|
496
497
|
apiRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
497
498
|
path: z.ZodUnknown;
|
|
@@ -1015,8 +1016,8 @@ export declare const DataCollectionSpecSchema: z.ZodObject<{
|
|
|
1015
1016
|
isFullScan?: boolean | undefined;
|
|
1016
1017
|
isIdOnly?: boolean | undefined;
|
|
1017
1018
|
}>, "strip"> | undefined;
|
|
1018
|
-
parametersSchema?:
|
|
1019
|
-
fieldsSchema?:
|
|
1019
|
+
parametersSchema?: DataSchema | undefined;
|
|
1020
|
+
fieldsSchema?: DataSchema | undefined;
|
|
1020
1021
|
findById?: {
|
|
1021
1022
|
apiRequests?: {
|
|
1022
1023
|
method?: unknown;
|
|
@@ -1149,8 +1150,8 @@ export declare const DataCollectionSpecSchema: z.ZodObject<{
|
|
|
1149
1150
|
isFullScan?: boolean | undefined;
|
|
1150
1151
|
isIdOnly?: boolean | undefined;
|
|
1151
1152
|
}>, "strip"> | undefined;
|
|
1152
|
-
parametersSchema?:
|
|
1153
|
-
fieldsSchema?:
|
|
1153
|
+
parametersSchema?: DataSchema | undefined;
|
|
1154
|
+
fieldsSchema?: DataSchema | undefined;
|
|
1154
1155
|
findById?: {
|
|
1155
1156
|
apiRequests?: {
|
|
1156
1157
|
method?: unknown;
|
|
@@ -1176,7 +1177,7 @@ export declare const DataCollectionSpecSchema: z.ZodObject<{
|
|
|
1176
1177
|
} | undefined;
|
|
1177
1178
|
customFields?: boolean | undefined;
|
|
1178
1179
|
}>;
|
|
1179
|
-
export type DataCollectionSpec = z.infer<typeof
|
|
1180
|
+
export type DataCollectionSpec = z.infer<typeof DataCollectionSpec>;
|
|
1180
1181
|
export interface DataLocationPointer {
|
|
1181
1182
|
key: string;
|
|
1182
1183
|
parameters?: Record<string, any>;
|
|
@@ -1191,14 +1192,14 @@ export interface DataCollectionListItem {
|
|
|
1191
1192
|
type: 'collection';
|
|
1192
1193
|
isHidden?: boolean;
|
|
1193
1194
|
}
|
|
1194
|
-
export declare const
|
|
1195
|
+
export declare const DataCollectionMethodRequest: z.ZodObject<{
|
|
1195
1196
|
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1196
1197
|
}, "strip", z.ZodTypeAny, {
|
|
1197
1198
|
parameters?: Record<string, any> | undefined;
|
|
1198
1199
|
}, {
|
|
1199
1200
|
parameters?: Record<string, any> | undefined;
|
|
1200
1201
|
}>;
|
|
1201
|
-
export declare const
|
|
1202
|
+
export declare const DataCollectionFindRequest: z.ZodObject<{
|
|
1202
1203
|
query: z.ZodOptional<z.ZodAny>;
|
|
1203
1204
|
cursor: z.ZodOptional<z.ZodString>;
|
|
1204
1205
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1208,7 +1209,7 @@ export declare const DataCollectionFindRequestSchema: z.ZodObject<{
|
|
|
1208
1209
|
cursor?: string | undefined;
|
|
1209
1210
|
query?: any;
|
|
1210
1211
|
}>;
|
|
1211
|
-
export declare const
|
|
1212
|
+
export declare const DataCollectionFindResponse: z.ZodObject<{
|
|
1212
1213
|
records: z.ZodArray<z.ZodObject<{
|
|
1213
1214
|
id: z.ZodString;
|
|
1214
1215
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -1288,7 +1289,7 @@ export declare const DataCollectionFindResponseSchema: z.ZodObject<{
|
|
|
1288
1289
|
}[];
|
|
1289
1290
|
cursor?: string | undefined;
|
|
1290
1291
|
}>;
|
|
1291
|
-
export declare const
|
|
1292
|
+
export declare const DataCollectionListRequest: z.ZodObject<{
|
|
1292
1293
|
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1293
1294
|
} & {
|
|
1294
1295
|
filter: z.ZodOptional<z.ZodAny>;
|
|
@@ -1305,7 +1306,7 @@ export declare const DataCollectionListRequestSchema: z.ZodObject<{
|
|
|
1305
1306
|
parameters?: Record<string, any> | undefined;
|
|
1306
1307
|
unifiedFilter?: any;
|
|
1307
1308
|
}>;
|
|
1308
|
-
export declare const
|
|
1309
|
+
export declare const DataCollectionListResponseDrilldown: z.ZodObject<{
|
|
1309
1310
|
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1310
1311
|
filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1311
1312
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1315,7 +1316,7 @@ export declare const DataCollectionListResponseDrilldownSchema: z.ZodObject<{
|
|
|
1315
1316
|
filter?: Record<string, any> | undefined;
|
|
1316
1317
|
parameters?: Record<string, any> | undefined;
|
|
1317
1318
|
}>;
|
|
1318
|
-
export declare const
|
|
1319
|
+
export declare const DataCollectionListResponse: z.ZodObject<{
|
|
1319
1320
|
records: z.ZodArray<z.ZodObject<{
|
|
1320
1321
|
id: z.ZodString;
|
|
1321
1322
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -1413,7 +1414,7 @@ export declare const DataCollectionListResponseSchema: z.ZodObject<{
|
|
|
1413
1414
|
parameters?: Record<string, any> | undefined;
|
|
1414
1415
|
}[] | undefined;
|
|
1415
1416
|
}>;
|
|
1416
|
-
export declare const
|
|
1417
|
+
export declare const DataCollectionSearchRequest: z.ZodObject<{
|
|
1417
1418
|
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1418
1419
|
} & {
|
|
1419
1420
|
query: z.ZodString;
|
|
@@ -1427,7 +1428,7 @@ export declare const DataCollectionSearchRequestSchema: z.ZodObject<{
|
|
|
1427
1428
|
cursor?: string | undefined;
|
|
1428
1429
|
parameters?: Record<string, any> | undefined;
|
|
1429
1430
|
}>;
|
|
1430
|
-
export declare const
|
|
1431
|
+
export declare const DataCollectionSearchResponse: z.ZodObject<{
|
|
1431
1432
|
records: z.ZodArray<z.ZodObject<{
|
|
1432
1433
|
id: z.ZodString;
|
|
1433
1434
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -1507,21 +1508,21 @@ export declare const DataCollectionSearchResponseSchema: z.ZodObject<{
|
|
|
1507
1508
|
}[];
|
|
1508
1509
|
cursor?: string | undefined;
|
|
1509
1510
|
}>;
|
|
1510
|
-
export declare const
|
|
1511
|
+
export declare const DataCollectionFindByIdRequest: z.ZodObject<{
|
|
1511
1512
|
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1512
1513
|
} & {
|
|
1513
1514
|
id: z.ZodString;
|
|
1514
1515
|
udm: z.ZodOptional<z.ZodString>;
|
|
1515
1516
|
}, "strip", z.ZodTypeAny, {
|
|
1516
1517
|
id: string;
|
|
1517
|
-
udm?: string | undefined;
|
|
1518
1518
|
parameters?: Record<string, any> | undefined;
|
|
1519
|
+
udm?: string | undefined;
|
|
1519
1520
|
}, {
|
|
1520
1521
|
id: string;
|
|
1521
|
-
udm?: string | undefined;
|
|
1522
1522
|
parameters?: Record<string, any> | undefined;
|
|
1523
|
+
udm?: string | undefined;
|
|
1523
1524
|
}>;
|
|
1524
|
-
export declare const
|
|
1525
|
+
export declare const DataCollectionFindByIdResponse: z.ZodObject<{
|
|
1525
1526
|
record: z.ZodObject<{
|
|
1526
1527
|
id: z.ZodString;
|
|
1527
1528
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -1598,7 +1599,7 @@ export declare const DataCollectionFindByIdResponseSchema: z.ZodObject<{
|
|
|
1598
1599
|
updatedById?: string | undefined;
|
|
1599
1600
|
};
|
|
1600
1601
|
}>;
|
|
1601
|
-
export declare const
|
|
1602
|
+
export declare const DataCollectionMatchRequest: z.ZodObject<{
|
|
1602
1603
|
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1603
1604
|
} & {
|
|
1604
1605
|
query: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
@@ -1609,7 +1610,7 @@ export declare const DataCollectionMatchRequestSchema: z.ZodObject<{
|
|
|
1609
1610
|
query: Record<string, any>;
|
|
1610
1611
|
parameters?: Record<string, any> | undefined;
|
|
1611
1612
|
}>;
|
|
1612
|
-
export declare const
|
|
1613
|
+
export declare const DataCollectionMatchResponse: z.ZodObject<{
|
|
1613
1614
|
record: z.ZodOptional<z.ZodObject<{
|
|
1614
1615
|
id: z.ZodString;
|
|
1615
1616
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -1686,7 +1687,7 @@ export declare const DataCollectionMatchResponseSchema: z.ZodObject<{
|
|
|
1686
1687
|
updatedById?: string | undefined;
|
|
1687
1688
|
} | undefined;
|
|
1688
1689
|
}>;
|
|
1689
|
-
export declare const
|
|
1690
|
+
export declare const DataCollectionCreateRequest: z.ZodObject<{
|
|
1690
1691
|
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1691
1692
|
} & {
|
|
1692
1693
|
fields: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
@@ -1697,14 +1698,14 @@ export declare const DataCollectionCreateRequestSchema: z.ZodObject<{
|
|
|
1697
1698
|
fields: Record<string, any>;
|
|
1698
1699
|
parameters?: Record<string, any> | undefined;
|
|
1699
1700
|
}>;
|
|
1700
|
-
export declare const
|
|
1701
|
+
export declare const DataCollectionCreateResponse: z.ZodObject<{
|
|
1701
1702
|
id: z.ZodString;
|
|
1702
1703
|
}, "strip", z.ZodTypeAny, {
|
|
1703
1704
|
id: string;
|
|
1704
1705
|
}, {
|
|
1705
1706
|
id: string;
|
|
1706
1707
|
}>;
|
|
1707
|
-
export declare const
|
|
1708
|
+
export declare const DataCollectionUpdateRequest: z.ZodObject<{
|
|
1708
1709
|
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1709
1710
|
} & {
|
|
1710
1711
|
id: z.ZodString;
|
|
@@ -1718,14 +1719,14 @@ export declare const DataCollectionUpdateRequestSchema: z.ZodObject<{
|
|
|
1718
1719
|
fields: Record<string, any>;
|
|
1719
1720
|
parameters?: Record<string, any> | undefined;
|
|
1720
1721
|
}>;
|
|
1721
|
-
export declare const
|
|
1722
|
+
export declare const DataCollectionUpdateResponse: z.ZodObject<{
|
|
1722
1723
|
id: z.ZodString;
|
|
1723
1724
|
}, "strip", z.ZodTypeAny, {
|
|
1724
1725
|
id: string;
|
|
1725
1726
|
}, {
|
|
1726
1727
|
id: string;
|
|
1727
1728
|
}>;
|
|
1728
|
-
export declare const
|
|
1729
|
+
export declare const DataCollectionDeleteRequest: z.ZodObject<{
|
|
1729
1730
|
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1730
1731
|
} & {
|
|
1731
1732
|
id: z.ZodString;
|
|
@@ -1736,25 +1737,25 @@ export declare const DataCollectionDeleteRequestSchema: z.ZodObject<{
|
|
|
1736
1737
|
id: string;
|
|
1737
1738
|
parameters?: Record<string, any> | undefined;
|
|
1738
1739
|
}>;
|
|
1739
|
-
export declare const
|
|
1740
|
-
export type DataCollectionMethodRequest = z.infer<typeof
|
|
1741
|
-
export type DataCollectionFindRequest = z.infer<typeof
|
|
1742
|
-
export type DataCollectionFindResponse = z.infer<typeof
|
|
1743
|
-
export type DataCollectionListRequest = z.infer<typeof
|
|
1744
|
-
export type DataCollectionListResponseDrilldown = z.infer<typeof
|
|
1745
|
-
export type DataCollectionListResponse = z.infer<typeof
|
|
1746
|
-
export type DataCollectionSearchRequest = z.infer<typeof
|
|
1747
|
-
export type DataCollectionSearchResponse = z.infer<typeof
|
|
1748
|
-
export type DataCollectionFindByIdRequest = z.infer<typeof
|
|
1749
|
-
export type DataCollectionFindByIdResponse = z.infer<typeof
|
|
1750
|
-
export type DataCollectionMatchRequest = z.infer<typeof
|
|
1751
|
-
export type DataCollectionMatchResponse = z.infer<typeof
|
|
1752
|
-
export type DataCollectionCreateRequest = z.infer<typeof
|
|
1753
|
-
export type DataCollectionCreateResponse = z.infer<typeof
|
|
1754
|
-
export type DataCollectionUpdateRequest = z.infer<typeof
|
|
1755
|
-
export type DataCollectionUpdateResponse = z.infer<typeof
|
|
1756
|
-
export type DataCollectionDeleteRequest = z.infer<typeof
|
|
1757
|
-
export type DataCollectionDeleteResponse = z.infer<typeof
|
|
1740
|
+
export declare const DataCollectionDeleteResponse: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
1741
|
+
export type DataCollectionMethodRequest = z.infer<typeof DataCollectionMethodRequest>;
|
|
1742
|
+
export type DataCollectionFindRequest = z.infer<typeof DataCollectionFindRequest>;
|
|
1743
|
+
export type DataCollectionFindResponse = z.infer<typeof DataCollectionFindResponse>;
|
|
1744
|
+
export type DataCollectionListRequest = z.infer<typeof DataCollectionListRequest>;
|
|
1745
|
+
export type DataCollectionListResponseDrilldown = z.infer<typeof DataCollectionListResponseDrilldown>;
|
|
1746
|
+
export type DataCollectionListResponse = z.infer<typeof DataCollectionListResponse>;
|
|
1747
|
+
export type DataCollectionSearchRequest = z.infer<typeof DataCollectionSearchRequest>;
|
|
1748
|
+
export type DataCollectionSearchResponse = z.infer<typeof DataCollectionSearchResponse>;
|
|
1749
|
+
export type DataCollectionFindByIdRequest = z.infer<typeof DataCollectionFindByIdRequest>;
|
|
1750
|
+
export type DataCollectionFindByIdResponse = z.infer<typeof DataCollectionFindByIdResponse>;
|
|
1751
|
+
export type DataCollectionMatchRequest = z.infer<typeof DataCollectionMatchRequest>;
|
|
1752
|
+
export type DataCollectionMatchResponse = z.infer<typeof DataCollectionMatchResponse>;
|
|
1753
|
+
export type DataCollectionCreateRequest = z.infer<typeof DataCollectionCreateRequest>;
|
|
1754
|
+
export type DataCollectionCreateResponse = z.infer<typeof DataCollectionCreateResponse>;
|
|
1755
|
+
export type DataCollectionUpdateRequest = z.infer<typeof DataCollectionUpdateRequest>;
|
|
1756
|
+
export type DataCollectionUpdateResponse = z.infer<typeof DataCollectionUpdateResponse>;
|
|
1757
|
+
export type DataCollectionDeleteRequest = z.infer<typeof DataCollectionDeleteRequest>;
|
|
1758
|
+
export type DataCollectionDeleteResponse = z.infer<typeof DataCollectionDeleteResponse>;
|
|
1758
1759
|
export interface DataCollectionSubscribeRequest extends DataCollectionMethodRequest {
|
|
1759
1760
|
events?: {
|
|
1760
1761
|
created?: boolean;
|
|
@@ -1,20 +1,70 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
import { DataLinkDirection } from '../data-link-tables';
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
export declare const BaseDataLinkTableInstance: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
} & {
|
|
7
|
+
key: z.ZodString;
|
|
8
|
+
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
9
|
+
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
10
|
+
} & {
|
|
11
|
+
dataLinkTableId: z.ZodOptional<z.ZodString>;
|
|
12
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
13
|
+
integrationId: z.ZodString;
|
|
14
|
+
instanceKey: z.ZodOptional<z.ZodString>;
|
|
15
|
+
userId: z.ZodString;
|
|
16
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
key: string;
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
userId: string;
|
|
6
22
|
integrationId: string;
|
|
7
|
-
|
|
23
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
24
|
+
errors?: any[] | undefined;
|
|
25
|
+
instanceKey?: string | undefined;
|
|
26
|
+
connectionId?: string | undefined;
|
|
27
|
+
archivedAt?: string | undefined;
|
|
28
|
+
dataLinkTableId?: string | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
key: string;
|
|
31
|
+
id: string;
|
|
32
|
+
name: string;
|
|
8
33
|
userId: string;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
34
|
+
integrationId: string;
|
|
35
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
36
|
+
errors?: any[] | undefined;
|
|
37
|
+
instanceKey?: string | undefined;
|
|
38
|
+
connectionId?: string | undefined;
|
|
39
|
+
archivedAt?: string | undefined;
|
|
40
|
+
dataLinkTableId?: string | undefined;
|
|
41
|
+
}>;
|
|
42
|
+
export type BaseDataLinkTableInstance = z.infer<typeof BaseDataLinkTableInstance>;
|
|
43
|
+
export declare const DataLink: z.ZodObject<{
|
|
44
|
+
id: z.ZodString;
|
|
45
|
+
dataLinkTableInstanceId: z.ZodString;
|
|
46
|
+
externalRecordId: z.ZodString;
|
|
47
|
+
appRecordId: z.ZodString;
|
|
48
|
+
direction: z.ZodNativeEnum<typeof DataLinkDirection>;
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
50
|
id: string;
|
|
51
|
+
direction: DataLinkDirection;
|
|
13
52
|
dataLinkTableInstanceId: string;
|
|
14
53
|
externalRecordId: string;
|
|
15
54
|
appRecordId: string;
|
|
55
|
+
}, {
|
|
56
|
+
id: string;
|
|
16
57
|
direction: DataLinkDirection;
|
|
17
|
-
|
|
18
|
-
|
|
58
|
+
dataLinkTableInstanceId: string;
|
|
59
|
+
externalRecordId: string;
|
|
60
|
+
appRecordId: string;
|
|
61
|
+
}>;
|
|
62
|
+
export type DataLink = z.infer<typeof DataLink>;
|
|
63
|
+
export declare const DataLinkTableConfig: z.ZodObject<{
|
|
64
|
+
key: z.ZodString;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
key: string;
|
|
67
|
+
}, {
|
|
19
68
|
key: string;
|
|
20
|
-
}
|
|
69
|
+
}>;
|
|
70
|
+
export type DataLinkTableConfig = z.infer<typeof DataLinkTableConfig>;
|
|
@@ -1,9 +1,31 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
export declare enum DataLinkDirection {
|
|
3
3
|
IMPORT = "import",
|
|
4
4
|
EXPORT = "export",
|
|
5
5
|
BOTH = "both"
|
|
6
6
|
}
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
export declare const BaseDataLinkTable: z.ZodObject<{
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
name: z.ZodString;
|
|
10
|
+
} & {
|
|
11
|
+
key: z.ZodString;
|
|
12
|
+
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
13
|
+
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
14
|
+
} & {
|
|
15
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
key: string;
|
|
18
|
+
id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
21
|
+
errors?: any[] | undefined;
|
|
22
|
+
archivedAt?: string | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
key: string;
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
28
|
+
errors?: any[] | undefined;
|
|
29
|
+
archivedAt?: string | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
export type BaseDataLinkTable = z.infer<typeof BaseDataLinkTable>;
|