@membranehq/sdk 0.7.1 → 0.7.4
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 +5200 -4617
- package/dist/bundle.js +10 -1
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +4 -3
- package/dist/dts/accessors/integrations-accessors.d.ts +4 -3
- package/dist/dts/accessors/scenarios-accessors.d.ts +4 -3
- package/dist/dts/config/config.test.d.ts +1 -0
- package/dist/dts/config/index.d.ts +42 -0
- package/dist/dts/entity-repository.d.ts +2 -2
- package/dist/dts/index.browser.d.ts +31 -0
- package/dist/dts/index.d.ts +2 -0
- package/dist/dts/index.node.d.ts +2 -0
- package/dist/dts/integration-elements/index.d.ts +0 -2
- package/dist/dts/{workspace-elements/base/scenarios/types.d.ts → scenario-templates/index.d.ts} +64 -169
- package/dist/dts/workspace-elements/api/action-instances-api.d.ts +39 -34
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +37 -37
- package/dist/dts/workspace-elements/api/actions-api.d.ts +64 -46
- package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +13 -0
- package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +3 -0
- package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +17 -2
- package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +13 -0
- package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +3 -0
- package/dist/dts/workspace-elements/api/connections-api.d.ts +57 -34
- package/dist/dts/workspace-elements/api/customers-api.d.ts +3 -0
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +29 -16
- package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +3 -0
- package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +51 -43
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +474 -441
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +27 -22
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +27 -22
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +21 -16
- package/dist/dts/workspace-elements/api/external-events-api.d.ts +7 -0
- package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +144 -124
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +250 -118
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +122 -98
- package/dist/dts/workspace-elements/api/flows-api.d.ts +965 -826
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +12 -14
- package/dist/dts/workspace-elements/api/scenarios-api.d.ts +434 -431
- package/dist/dts/workspace-elements/base/action-instances/types.d.ts +5 -5
- package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +2 -2
- package/dist/dts/workspace-elements/base/actions/index.d.ts +18 -15
- package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +3 -0
- package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +3 -0
- package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +3 -0
- package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +3 -0
- package/dist/dts/workspace-elements/base/connections/types.d.ts +5 -8
- package/dist/dts/workspace-elements/base/customers/index.d.ts +3 -0
- package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +5 -2
- package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +3 -0
- package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +9 -6
- package/dist/dts/workspace-elements/base/data-sources/index.d.ts +153 -2
- package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +2 -2
- package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +2 -2
- package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +2 -2
- package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +8 -5
- package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +191 -1
- package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +26 -26
- package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +15 -12
- package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +4 -4
- package/dist/dts/workspace-elements/base/flows/index.d.ts +300 -1
- package/dist/dts/workspace-elements/base/flows/nodes/base.d.ts +79 -1
- package/dist/dts/workspace-elements/base/flows/nodes/index.d.ts +1 -1
- package/dist/dts/workspace-elements/base/integrations/types.d.ts +18 -0
- package/dist/dts/workspace-elements/base/scenarios/index.d.ts +163 -1
- package/dist/dts/workspace-elements/types.d.ts +118 -0
- package/dist/dts/workspace-elements-catalog/index.d.ts +1 -0
- package/dist/{index.d.ts → index.browser.d.mts} +17282 -16311
- package/dist/{index.module.d.mts → index.browser.d.ts} +17282 -16311
- package/dist/{index.js → index.browser.js} +228 -255
- package/dist/index.browser.js.map +1 -0
- package/dist/{index.module.mjs → index.browser.mjs} +218 -250
- package/dist/index.browser.mjs.map +1 -0
- package/dist/index.node.d.mts +28306 -0
- package/dist/index.node.d.ts +28306 -0
- package/dist/index.node.js +13329 -0
- package/dist/index.node.js.map +1 -0
- package/dist/index.node.mjs +12853 -0
- package/dist/index.node.mjs.map +1 -0
- package/package.json +38 -15
- package/dist/dts/workspace-elements/base/data-sources/constants.d.ts +0 -4
- package/dist/dts/workspace-elements/base/data-sources/types.d.ts +0 -102
- package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +0 -129
- package/dist/dts/workspace-elements/base/flows/types.d.ts +0 -241
- package/dist/index.js.map +0 -1
- package/dist/index.module.mjs.map +0 -1
|
@@ -3436,6 +3436,7 @@ const BaseMembraneInterfaceEditableProperties = zod.z.object({
|
|
|
3436
3436
|
name: zod.z.string().optional(),
|
|
3437
3437
|
uuid: zod.z.string().optional(),
|
|
3438
3438
|
description: zod.z.string().optional(),
|
|
3439
|
+
meta: zod.z.record(zod.z.string(), zod.z.any()).optional(),
|
|
3439
3440
|
});
|
|
3440
3441
|
const BaseMembraneInterfaceReadOnlyProperties = zod.z.object({
|
|
3441
3442
|
name: zod.z.string(),
|
|
@@ -3448,44 +3449,14 @@ const BaseMembraneInterfaceReadOnlyProperties = zod.z.object({
|
|
|
3448
3449
|
isDeactivated: zod.z.boolean().optional(),
|
|
3449
3450
|
});
|
|
3450
3451
|
const BaseMembraneInterface = BaseWorkspaceElement.merge(BaseMembraneInterfaceEditableProperties).merge(BaseMembraneInterfaceReadOnlyProperties);
|
|
3451
|
-
|
|
3452
|
-
exports.FieldMappingDirection = void 0;
|
|
3453
|
-
(function (FieldMappingDirection) {
|
|
3454
|
-
FieldMappingDirection["IMPORT"] = "import";
|
|
3455
|
-
FieldMappingDirection["EXPORT"] = "export";
|
|
3456
|
-
FieldMappingDirection["BOTH"] = "both";
|
|
3457
|
-
})(exports.FieldMappingDirection || (exports.FieldMappingDirection = {}));
|
|
3458
|
-
const BaseFieldMapping = BaseMembraneInterface.extend({
|
|
3459
|
-
revision: zod.z.string(),
|
|
3460
|
-
publishedRevision: zod.z.string().optional(),
|
|
3461
|
-
universalFieldMappingId: zod.z.string().optional(),
|
|
3462
|
-
universalFieldMappingRevision: zod.z.string().optional(),
|
|
3452
|
+
const BaseIntegrationLevelMembraneInterfaceEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
3463
3453
|
integrationId: zod.z.string().optional(),
|
|
3464
|
-
|
|
3465
|
-
dataSourceKey: zod.z.string().optional(),
|
|
3466
|
-
appSchema: DataSchema.optional(),
|
|
3467
|
-
direction: zod.z.nativeEnum(exports.FieldMappingDirection).optional(),
|
|
3468
|
-
defaultImportValue: zod.z.any().optional(),
|
|
3469
|
-
defaultExportValue: zod.z.any().optional(),
|
|
3470
|
-
importValue: zod.z.any().optional(),
|
|
3471
|
-
exportValue: zod.z.any().optional(),
|
|
3472
|
-
frozenImportFields: zod.z.any().optional(),
|
|
3473
|
-
frozenExportFields: zod.z.any().optional(),
|
|
3474
|
-
frozenUnifiedExportFields: zod.z.any().optional(),
|
|
3475
|
-
archivedAt: zod.z.string().optional(),
|
|
3476
|
-
customized: zod.z.boolean().optional(),
|
|
3454
|
+
parentId: zod.z.string().optional(),
|
|
3477
3455
|
});
|
|
3478
|
-
const
|
|
3479
|
-
|
|
3480
|
-
input: zod.z.any().optional(),
|
|
3481
|
-
includeRawFields: zod.z.any().optional(),
|
|
3482
|
-
importValue: zod.z.any().optional(),
|
|
3483
|
-
exportValue: zod.z.any().optional(),
|
|
3484
|
-
default: zod.z.any().optional(),
|
|
3485
|
-
defaultUnifiedValue: zod.z.any().optional(),
|
|
3486
|
-
defaultValue: zod.z.any().optional(),
|
|
3487
|
-
appSchema: DataSchema.optional(),
|
|
3456
|
+
const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties.extend({
|
|
3457
|
+
isCustomized: zod.z.boolean().optional(),
|
|
3488
3458
|
});
|
|
3459
|
+
const BaseIntegrationLevelMembraneInterface = BaseMembraneInterface.merge(BaseIntegrationLevelMembraneInterfaceEditableProperties).merge(BaseIntegrationLevelMembraneInterfaceReadOnlyProperties);
|
|
3489
3460
|
|
|
3490
3461
|
function mergeWithFormulas(a, b) {
|
|
3491
3462
|
if (Array.isArray(a) && Array.isArray(b)) {
|
|
@@ -3517,6 +3488,44 @@ function isObject(value) {
|
|
|
3517
3488
|
!(value instanceof Boolean));
|
|
3518
3489
|
}
|
|
3519
3490
|
|
|
3491
|
+
exports.FieldMappingDirection = void 0;
|
|
3492
|
+
(function (FieldMappingDirection) {
|
|
3493
|
+
FieldMappingDirection["IMPORT"] = "import";
|
|
3494
|
+
FieldMappingDirection["EXPORT"] = "export";
|
|
3495
|
+
FieldMappingDirection["BOTH"] = "both";
|
|
3496
|
+
})(exports.FieldMappingDirection || (exports.FieldMappingDirection = {}));
|
|
3497
|
+
const FieldMappingEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
|
|
3498
|
+
parentId: true,
|
|
3499
|
+
}).extend({
|
|
3500
|
+
universalFieldMappingId: zod.z.string().optional(),
|
|
3501
|
+
dataSourceKey: zod.z.string().optional(),
|
|
3502
|
+
dataSourceId: zod.z.string().optional(),
|
|
3503
|
+
appSchema: DataSchema.optional(),
|
|
3504
|
+
direction: zod.z.nativeEnum(exports.FieldMappingDirection).optional(),
|
|
3505
|
+
defaultImportValue: zod.z.any().optional(),
|
|
3506
|
+
defaultExportValue: zod.z.any().optional(),
|
|
3507
|
+
importValue: zod.z.any().optional(),
|
|
3508
|
+
exportValue: zod.z.any().optional(),
|
|
3509
|
+
frozenImportFields: zod.z.any().optional(),
|
|
3510
|
+
frozenExportFields: zod.z.any().optional(),
|
|
3511
|
+
frozenUnifiedExportFields: zod.z.any().optional(),
|
|
3512
|
+
});
|
|
3513
|
+
const FieldMappingReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
3514
|
+
universalFieldMappingRevision: zod.z.string().optional(),
|
|
3515
|
+
});
|
|
3516
|
+
const BaseFieldMapping = BaseMembraneInterface.merge(FieldMappingEditableProperties).merge(FieldMappingReadOnlyProperties);
|
|
3517
|
+
const FieldMappingUnitConfig = zod.z.object({
|
|
3518
|
+
key: zod.z.string().optional(),
|
|
3519
|
+
input: zod.z.any().optional(),
|
|
3520
|
+
includeRawFields: zod.z.any().optional(),
|
|
3521
|
+
importValue: zod.z.any().optional(),
|
|
3522
|
+
exportValue: zod.z.any().optional(),
|
|
3523
|
+
default: zod.z.any().optional(),
|
|
3524
|
+
defaultUnifiedValue: zod.z.any().optional(),
|
|
3525
|
+
defaultValue: zod.z.any().optional(),
|
|
3526
|
+
appSchema: DataSchema.optional(),
|
|
3527
|
+
});
|
|
3528
|
+
|
|
3520
3529
|
exports.ActionType = void 0;
|
|
3521
3530
|
(function (ActionType) {
|
|
3522
3531
|
ActionType["ListDataRecords"] = "list-data-records";
|
|
@@ -3614,7 +3623,7 @@ const ACTIONS = {
|
|
|
3614
3623
|
},
|
|
3615
3624
|
};
|
|
3616
3625
|
|
|
3617
|
-
const ActionEditableProperties =
|
|
3626
|
+
const ActionEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.extend({
|
|
3618
3627
|
integrationId: zod.z.string().optional(),
|
|
3619
3628
|
parentId: zod.z.string().optional(),
|
|
3620
3629
|
inputSchema: DataSchema.optional(),
|
|
@@ -3623,13 +3632,8 @@ const ActionEditableProperties = BaseMembraneInterfaceEditableProperties.extend(
|
|
|
3623
3632
|
outputMapping: zod.z.any().optional(),
|
|
3624
3633
|
customOutputSchema: DataSchema.optional(),
|
|
3625
3634
|
});
|
|
3626
|
-
const
|
|
3627
|
-
|
|
3628
|
-
name: zod.z.string(),
|
|
3629
|
-
isCustomized: zod.z.boolean().optional(),
|
|
3630
|
-
parentRevision: zod.z.string().optional(),
|
|
3631
|
-
});
|
|
3632
|
-
const BaseAction = BaseMembraneInterface.merge(ActionEditableProperties).merge(ActionCalculatedProperties);
|
|
3635
|
+
const ActionReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties;
|
|
3636
|
+
const BaseAction = BaseMembraneInterface.merge(ActionEditableProperties).merge(ActionReadOnlyProperties);
|
|
3633
3637
|
|
|
3634
3638
|
const ConnectionRequest = zod.z.object({
|
|
3635
3639
|
path: zod.z.any(),
|
|
@@ -3645,6 +3649,7 @@ const BaseConnection = BaseWorkspaceElement.extend({
|
|
|
3645
3649
|
isTest: zod.z.boolean().optional(),
|
|
3646
3650
|
disconnected: zod.z.boolean().optional(),
|
|
3647
3651
|
isDefunct: zod.z.boolean().optional(),
|
|
3652
|
+
state: zod.z.nativeEnum(exports.WorkspaceElementState).optional(),
|
|
3648
3653
|
error: ErrorDataSchema.optional(),
|
|
3649
3654
|
integrationId: zod.z.string(),
|
|
3650
3655
|
authOptionKey: zod.z.string().optional(),
|
|
@@ -3654,8 +3659,6 @@ const BaseConnection = BaseWorkspaceElement.extend({
|
|
|
3654
3659
|
nextCredentialsRefreshAt: zod.z.string().optional(),
|
|
3655
3660
|
archivedAt: zod.z.string().optional(),
|
|
3656
3661
|
isDeactivated: zod.z.boolean().optional(),
|
|
3657
|
-
state: zod.z.nativeEnum(exports.WorkspaceElementState).optional(),
|
|
3658
|
-
errors: zod.z.array(ErrorDataSchema).optional(),
|
|
3659
3662
|
meta: zod.z.record(zod.z.any()).optional(),
|
|
3660
3663
|
});
|
|
3661
3664
|
class ConnectionSpec {
|
|
@@ -8332,7 +8335,21 @@ const DEFAULT_PULL_UPDATES_INTERVAL_SECONDS = 60 * 5;
|
|
|
8332
8335
|
const DEFAULT_FULL_SYNC_INTERVAL_SECONDS = 60 * 60 * 3;
|
|
8333
8336
|
const MIN_FULL_SYNC_INTERVAL_SECONDS = 1 * 60;
|
|
8334
8337
|
const MIN_PULL_UPDATES_INTERVAL_SECONDS = 1 * 60;
|
|
8335
|
-
|
|
8338
|
+
const DataSourceEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
|
|
8339
|
+
parentId: true,
|
|
8340
|
+
}).extend({
|
|
8341
|
+
universalDataSourceId: zod.z.string().optional(),
|
|
8342
|
+
udm: zod.z.string().optional(),
|
|
8343
|
+
pullUpdatesIntervalSeconds: zod.z.number().optional(),
|
|
8344
|
+
fullSyncIntervalSeconds: zod.z.number().optional(),
|
|
8345
|
+
collectionKey: zod.z.string().optional(),
|
|
8346
|
+
collectionParameters: zod.z.any().optional(),
|
|
8347
|
+
defaultPath: zod.z.string().optional(),
|
|
8348
|
+
});
|
|
8349
|
+
const DataSourceReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
8350
|
+
universalDataSourceRevision: zod.z.string().optional(),
|
|
8351
|
+
});
|
|
8352
|
+
const BaseDataSource = BaseMembraneInterface.merge(DataSourceEditableProperties).merge(DataSourceReadOnlyProperties);
|
|
8336
8353
|
const DataSourceUnitConfig = zod.z.object({
|
|
8337
8354
|
key: zod.z.string().optional(),
|
|
8338
8355
|
collectionKey: zod.z.any().optional(),
|
|
@@ -8342,23 +8359,6 @@ const DataSourceUnitConfig = zod.z.object({
|
|
|
8342
8359
|
pullUpdatesIntervalSeconds: zod.z.number().optional(),
|
|
8343
8360
|
fullSyncIntervalSeconds: zod.z.number().optional(),
|
|
8344
8361
|
});
|
|
8345
|
-
const BaseDataSource = BaseMembraneInterface.extend({
|
|
8346
|
-
revision: zod.z.string(),
|
|
8347
|
-
publishedRevision: zod.z.string().optional(),
|
|
8348
|
-
integrationId: zod.z.string().optional(),
|
|
8349
|
-
universalDataSourceId: zod.z.string().optional(),
|
|
8350
|
-
universalDataSourceRevision: zod.z.string().optional(),
|
|
8351
|
-
udm: zod.z.string().optional(),
|
|
8352
|
-
pullUpdatesIntervalSeconds: zod.z.number().optional(),
|
|
8353
|
-
fullSyncIntervalSeconds: zod.z.number().optional(),
|
|
8354
|
-
collectionKey: zod.z.string().optional(),
|
|
8355
|
-
collectionParameters: zod.z.any().optional(),
|
|
8356
|
-
archivedAt: zod.z.string().optional(),
|
|
8357
|
-
createdAt: zod.z.string().optional(),
|
|
8358
|
-
updatedAt: zod.z.string().optional(),
|
|
8359
|
-
customized: zod.z.boolean().optional(),
|
|
8360
|
-
defaultPath: zod.z.string().optional(),
|
|
8361
|
-
});
|
|
8362
8362
|
|
|
8363
8363
|
const BaseDataSourceInstance = BaseMembraneInterface.extend({
|
|
8364
8364
|
userId: zod.z.string(),
|
|
@@ -8531,6 +8531,26 @@ const FlowNodeRunRecordWithoutOutputsDataSchema = zod.z.object({
|
|
|
8531
8531
|
errors: zod.z.array(ErrorDataSchema),
|
|
8532
8532
|
});
|
|
8533
8533
|
|
|
8534
|
+
const FlowNodeLink = zod.z.object({
|
|
8535
|
+
key: zod.z.string().optional(),
|
|
8536
|
+
filter: zod.z.any().optional(),
|
|
8537
|
+
name: zod.z.string().optional(),
|
|
8538
|
+
});
|
|
8539
|
+
const FlowNode = zod.z.object({
|
|
8540
|
+
type: zod.z.string().optional(),
|
|
8541
|
+
version: zod.z.number().optional(),
|
|
8542
|
+
name: zod.z.string().optional(),
|
|
8543
|
+
description: zod.z.string().optional(),
|
|
8544
|
+
config: zod.z.any().optional(),
|
|
8545
|
+
concurrency: zod.z.number().optional(),
|
|
8546
|
+
onError: zod.z.enum(['stop', 'continue']).optional(),
|
|
8547
|
+
ui: zod.z.any().optional(),
|
|
8548
|
+
inputSchema: zod.z.any().optional(),
|
|
8549
|
+
outputSchema: zod.z.any().optional(),
|
|
8550
|
+
outputExample: zod.z.any().optional(),
|
|
8551
|
+
links: zod.z.array(FlowNodeLink).optional(),
|
|
8552
|
+
isCustomized: zod.z.boolean().optional(),
|
|
8553
|
+
});
|
|
8534
8554
|
class FlowNodeSpec {
|
|
8535
8555
|
constructor(args) {
|
|
8536
8556
|
Object.assign(this, args);
|
|
@@ -8804,37 +8824,19 @@ const FLOW_NODE_SPECS = {
|
|
|
8804
8824
|
[exports.FlowNodeType.RunAction]: RunAction,
|
|
8805
8825
|
};
|
|
8806
8826
|
|
|
8807
|
-
const
|
|
8808
|
-
|
|
8809
|
-
|
|
8810
|
-
name: zod.z.string().optional(),
|
|
8811
|
-
});
|
|
8812
|
-
const FlowNode = zod.z.object({
|
|
8813
|
-
type: zod.z.string().optional(),
|
|
8814
|
-
version: zod.z.number().optional(),
|
|
8815
|
-
name: zod.z.string().optional(),
|
|
8816
|
-
description: zod.z.string().optional(),
|
|
8817
|
-
config: zod.z.any().optional(),
|
|
8818
|
-
concurrency: zod.z.number().optional(),
|
|
8819
|
-
onError: zod.z.enum(['stop', 'continue']).optional(),
|
|
8820
|
-
ui: zod.z.any().optional(),
|
|
8821
|
-
inputSchema: zod.z.any().optional(),
|
|
8822
|
-
outputSchema: zod.z.any().optional(),
|
|
8823
|
-
outputExample: zod.z.any().optional(),
|
|
8824
|
-
links: zod.z.array(FlowNodeLink).optional(),
|
|
8825
|
-
isCustomized: zod.z.boolean().optional(),
|
|
8826
|
-
});
|
|
8827
|
-
const BaseFlow = BaseMembraneInterface.extend({
|
|
8827
|
+
const FlowEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
|
|
8828
|
+
parentId: true,
|
|
8829
|
+
}).extend({
|
|
8828
8830
|
integrationId: zod.z.string().optional(),
|
|
8829
8831
|
universalFlowId: zod.z.string().optional(),
|
|
8830
|
-
universalFlowRevision: zod.z.string().optional(),
|
|
8831
8832
|
parametersSchema: DataSchema.optional(),
|
|
8832
8833
|
nodes: zod.z.record(FlowNode).optional(),
|
|
8833
8834
|
autoCreateInstances: zod.z.boolean().optional(),
|
|
8834
|
-
archivedAt: zod.z.string().optional(),
|
|
8835
|
-
revision: zod.z.string(),
|
|
8836
|
-
customized: zod.z.boolean().optional(),
|
|
8837
8835
|
});
|
|
8836
|
+
const FlowReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
8837
|
+
universalFlowRevision: zod.z.string().optional(),
|
|
8838
|
+
});
|
|
8839
|
+
const BaseFlow = BaseMembraneInterface.merge(FlowEditableProperties).merge(FlowReadOnlyProperties);
|
|
8838
8840
|
|
|
8839
8841
|
const BaseIntegration = BaseMembraneInterface.extend({
|
|
8840
8842
|
logoUri: zod.z.string(),
|
|
@@ -8863,72 +8865,43 @@ const AppliedToIntegrations = (elementSchema) => zod.z.array(zod.z.object({
|
|
|
8863
8865
|
integration: BaseIntegration,
|
|
8864
8866
|
}));
|
|
8865
8867
|
|
|
8866
|
-
exports.
|
|
8867
|
-
(function (
|
|
8868
|
-
|
|
8869
|
-
|
|
8870
|
-
|
|
8871
|
-
|
|
8872
|
-
|
|
8873
|
-
|
|
8874
|
-
|
|
8875
|
-
|
|
8876
|
-
|
|
8877
|
-
|
|
8878
|
-
|
|
8868
|
+
exports.IntegrationElementLevel = void 0;
|
|
8869
|
+
(function (IntegrationElementLevel) {
|
|
8870
|
+
IntegrationElementLevel["UNIVERSAL"] = "universal";
|
|
8871
|
+
IntegrationElementLevel["CONNECTOR"] = "connector";
|
|
8872
|
+
IntegrationElementLevel["CONNECTION"] = "connection";
|
|
8873
|
+
})(exports.IntegrationElementLevel || (exports.IntegrationElementLevel = {}));
|
|
8874
|
+
exports.IntegrationElementType = void 0;
|
|
8875
|
+
(function (IntegrationElementType) {
|
|
8876
|
+
IntegrationElementType["APP_DATA_SCHEMA"] = "app-data-schema";
|
|
8877
|
+
IntegrationElementType["APP_EVENT_TYPE"] = "app-event-type";
|
|
8878
|
+
IntegrationElementType["DATA_SOURCE"] = "data-source";
|
|
8879
|
+
IntegrationElementType["SCHEMA"] = "schema";
|
|
8880
|
+
IntegrationElementType["FIELD_MAPPING"] = "field-mapping";
|
|
8881
|
+
IntegrationElementType["FLOW"] = "flow";
|
|
8882
|
+
IntegrationElementType["INTEGRATION"] = "integration";
|
|
8883
|
+
IntegrationElementType["ACTION"] = "action";
|
|
8884
|
+
IntegrationElementType["DATA_LINK_TABLE"] = "data-link-table";
|
|
8885
|
+
IntegrationElementType["EXTERNAL_EVENT"] = "external-event";
|
|
8886
|
+
})(exports.IntegrationElementType || (exports.IntegrationElementType = {}));
|
|
8887
|
+
|
|
8879
8888
|
const ScenarioElement = zod.z.object({
|
|
8880
8889
|
id: zod.z.string(),
|
|
8881
|
-
type: zod.z.
|
|
8890
|
+
type: zod.z.nativeEnum(exports.IntegrationElementType),
|
|
8882
8891
|
element: zod.z.any().optional(),
|
|
8883
8892
|
});
|
|
8884
|
-
const
|
|
8885
|
-
appId: zod.z.string(),
|
|
8893
|
+
const ScenarioEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
8886
8894
|
scenarioTemplateId: zod.z.string().optional(),
|
|
8887
8895
|
elements: zod.z.array(ScenarioElement).optional(),
|
|
8888
|
-
|
|
8889
|
-
|
|
8890
|
-
archivedAt: zod.z.string().optional(),
|
|
8891
|
-
});
|
|
8892
|
-
const HandyScenarioTemplateElement = zod.z.object({
|
|
8893
|
-
type: zod.z.string(),
|
|
8894
|
-
integration: zod.z.object({ key: zod.z.string(), connectorId: zod.z.string() }).optional(),
|
|
8895
|
-
integrations: zod.z.array(zod.z.object({ key: zod.z.string(), connectorId: zod.z.string() })).optional(),
|
|
8896
|
-
fields: zod.z
|
|
8897
|
-
.object({
|
|
8898
|
-
key: zod.z.string(),
|
|
8899
|
-
name: zod.z.string(),
|
|
8900
|
-
})
|
|
8901
|
-
.and(zod.z.record(zod.z.any())),
|
|
8902
|
-
});
|
|
8903
|
-
const withIntegrationKeys = (schema) => schema.and(zod.z.object({ integrationKeys: zod.z.array(zod.z.string()).optional() }));
|
|
8904
|
-
const ElementsExportFields = zod.z.object({
|
|
8905
|
-
flows: zod.z.record(withIntegrationKeys(zod.z.any())).optional(),
|
|
8906
|
-
actions: zod.z.record(withIntegrationKeys(zod.z.any())).optional(),
|
|
8907
|
-
fieldMappings: zod.z.record(withIntegrationKeys(zod.z.any())).optional(),
|
|
8908
|
-
dataSources: zod.z.record(withIntegrationKeys(zod.z.any())).optional(),
|
|
8909
|
-
dataLinkTables: zod.z.record(zod.z.any()).optional(),
|
|
8910
|
-
appEventTypes: zod.z.record(zod.z.any()).optional(),
|
|
8911
|
-
appDataSchemas: zod.z.record(zod.z.any()).optional(),
|
|
8896
|
+
integrationId: zod.z.string().optional(),
|
|
8897
|
+
parentId: zod.z.string().optional(),
|
|
8912
8898
|
});
|
|
8913
|
-
const
|
|
8914
|
-
integrations: zod.z.record(ElementsExportFields.and(zod.z.object({ connectorId: zod.z.string() }))).optional(),
|
|
8915
|
-
}));
|
|
8916
|
-
const ScenarioTemplate = zod.z.object({
|
|
8917
|
-
id: zod.z.string(),
|
|
8918
|
-
name: zod.z.string(),
|
|
8899
|
+
const ScenarioCalculatedProperties = zod.z.object({
|
|
8919
8900
|
key: zod.z.string(),
|
|
8920
|
-
|
|
8921
|
-
|
|
8922
|
-
demoWorkspaceKey: zod.z.string().optional(),
|
|
8923
|
-
demoAppUri: zod.z.string().optional(),
|
|
8924
|
-
demoGithubRepo: zod.z.string().optional(),
|
|
8925
|
-
demoVideoYoutubeUri: zod.z.string().optional(),
|
|
8926
|
-
tags: zod.z.array(zod.z.nativeEnum(exports.ScenarioTemplateCategory)).optional(),
|
|
8927
|
-
elements: ScenarioTemplateElements.optional(),
|
|
8928
|
-
todos: zod.z.array(ScenarioToDo.omit({ isComplete: true })).optional(),
|
|
8929
|
-
connectors: zod.z.array(MinimalConnector).optional(),
|
|
8930
|
-
handyElements: zod.z.array(HandyScenarioTemplateElement).optional(),
|
|
8901
|
+
name: zod.z.string(),
|
|
8902
|
+
isCustomized: zod.z.boolean().optional(),
|
|
8931
8903
|
});
|
|
8904
|
+
const BaseScenario = BaseMembraneInterface.merge(ScenarioEditableProperties).merge(ScenarioCalculatedProperties);
|
|
8932
8905
|
|
|
8933
8906
|
exports.ScreenType = void 0;
|
|
8934
8907
|
(function (ScreenType) {
|
|
@@ -8955,6 +8928,7 @@ const BaseScreen = BaseWorkspaceElement.extend({
|
|
|
8955
8928
|
const BaseCustomer = zod.z.object({
|
|
8956
8929
|
id: zod.z.string(),
|
|
8957
8930
|
name: zod.z.string(),
|
|
8931
|
+
meta: zod.z.record(zod.z.any()).optional(),
|
|
8958
8932
|
internalId: zod.z.string(),
|
|
8959
8933
|
fields: zod.z.record(zod.z.string(), zod.z.any()).optional(),
|
|
8960
8934
|
credentials: zod.z.any().optional(),
|
|
@@ -9069,7 +9043,6 @@ const ActionDependency = zod.z.object({
|
|
|
9069
9043
|
});
|
|
9070
9044
|
const BaseActionInstance = BaseMembraneInterface.extend({
|
|
9071
9045
|
parentId: zod.z.string().optional(),
|
|
9072
|
-
parentRevision: zod.z.string().optional(),
|
|
9073
9046
|
universalParentId: zod.z.string().optional(),
|
|
9074
9047
|
userId: zod.z.string(),
|
|
9075
9048
|
instanceKey: zod.z.string().optional(),
|
|
@@ -9453,36 +9426,19 @@ const ConnectionMessagePayload = zod.z.discriminatedUnion('type', [
|
|
|
9453
9426
|
}),
|
|
9454
9427
|
]);
|
|
9455
9428
|
|
|
9456
|
-
const
|
|
9457
|
-
.
|
|
9458
|
-
|
|
9459
|
-
})
|
|
9460
|
-
.merge(PaginationQuery);
|
|
9461
|
-
const FindDataSourcesQuery = ListDataSourcesForIntegrationQuery.extend({
|
|
9462
|
-
integrationId: zod.z.string().optional(),
|
|
9429
|
+
const DataSourceApiResponse = BaseDataSource.extend({
|
|
9430
|
+
integration: BaseIntegration.optional(),
|
|
9431
|
+
appliedToIntegrations: AppliedToIntegrations(BaseDataSource).optional(),
|
|
9463
9432
|
});
|
|
9464
|
-
const
|
|
9465
|
-
key: zod.z.string(),
|
|
9466
|
-
name: zod.z.string(),
|
|
9433
|
+
const FindDataSourcesQuery = PaginationQuery.extend({
|
|
9467
9434
|
integrationId: zod.z.string().optional(),
|
|
9468
|
-
|
|
9469
|
-
|
|
9470
|
-
|
|
9471
|
-
|
|
9472
|
-
defaultPath: zod.z.string().optional(),
|
|
9473
|
-
collectionKey: zod.z.string().optional(),
|
|
9474
|
-
collectionParameters: zod.z.any().optional(),
|
|
9475
|
-
});
|
|
9476
|
-
const UpdateDataSourceRequest = zod.z.object({
|
|
9477
|
-
key: zod.z.string().optional(),
|
|
9478
|
-
name: zod.z.string().optional(),
|
|
9479
|
-
archivedAt: zod.z.string().optional(),
|
|
9480
|
-
udm: zod.z.string().optional(),
|
|
9481
|
-
pullUpdatesIntervalSeconds: zod.z.number().optional(),
|
|
9482
|
-
fullSyncIntervalSeconds: zod.z.number().optional(),
|
|
9483
|
-
rootPath: zod.z.string().optional(),
|
|
9484
|
-
defaultPath: zod.z.string().optional(),
|
|
9435
|
+
integrationKey: zod.z.string().optional(),
|
|
9436
|
+
universalDataSourceId: zod.z.string().optional(),
|
|
9437
|
+
search: zod.z.string().optional(),
|
|
9438
|
+
includeArchived: zodBooleanCoercion().optional(),
|
|
9485
9439
|
});
|
|
9440
|
+
const CreateDataSourceRequest = DataSourceEditableProperties;
|
|
9441
|
+
const UpdateDataSourceRequest = CreateDataSourceRequest.extend({}).partial();
|
|
9486
9442
|
const FindDataSourceInstancesQuery = zod.z
|
|
9487
9443
|
.object({
|
|
9488
9444
|
userId: zod.z.string().optional(),
|
|
@@ -9542,10 +9498,6 @@ const FindDataSourceInstanceSyncsQuery = ListDataSourceInstancesForConnectionQue
|
|
|
9542
9498
|
integrationId: zod.z.string().optional(),
|
|
9543
9499
|
dataSourceInstanceId: zod.z.string().optional(),
|
|
9544
9500
|
});
|
|
9545
|
-
const DataSourceApiResponse = BaseDataSource.extend({
|
|
9546
|
-
integration: BaseIntegration.optional(),
|
|
9547
|
-
appliedToIntegrations: AppliedToIntegrations(BaseDataSource).optional(),
|
|
9548
|
-
});
|
|
9549
9501
|
|
|
9550
9502
|
const DataSourceInstanceApiResponse = BaseDataSourceInstance.extend({
|
|
9551
9503
|
user: BaseCustomer.optional(),
|
|
@@ -9558,31 +9510,25 @@ const ExternalEvent = BaseExternalEvent.extend({
|
|
|
9558
9510
|
appliedToIntegrations: AppliedToIntegrations(BaseExternalEvent).optional(),
|
|
9559
9511
|
});
|
|
9560
9512
|
|
|
9561
|
-
const
|
|
9562
|
-
.
|
|
9563
|
-
|
|
9564
|
-
|
|
9565
|
-
|
|
9566
|
-
|
|
9567
|
-
|
|
9568
|
-
})
|
|
9569
|
-
|
|
9570
|
-
type: zod.z.string(),
|
|
9571
|
-
config: zod.z.any().optional(),
|
|
9572
|
-
ui: zod.z.any().optional(),
|
|
9573
|
-
links: zod.z.array(zod.z.lazy(() => zod.z.any())).optional(),
|
|
9513
|
+
const FlowApiResponse = BaseFlow.extend({
|
|
9514
|
+
integration: BaseIntegration.optional(),
|
|
9515
|
+
appliedToIntegrations: AppliedToIntegrations(zod.z.object({
|
|
9516
|
+
id: zod.z.string(),
|
|
9517
|
+
integrationId: zod.z.string().optional(),
|
|
9518
|
+
isCustomized: zod.z.boolean().optional(),
|
|
9519
|
+
universalFlowId: zod.z.string().optional(),
|
|
9520
|
+
})).optional(),
|
|
9521
|
+
dependencies: zod.z.array(zod.z.any()).optional(),
|
|
9574
9522
|
});
|
|
9575
|
-
const
|
|
9576
|
-
key: zod.z.string(),
|
|
9577
|
-
name: zod.z.string(),
|
|
9523
|
+
const FindFlowsQuery = PaginationQuery.extend({
|
|
9578
9524
|
integrationId: zod.z.string().optional(),
|
|
9579
|
-
|
|
9580
|
-
|
|
9581
|
-
|
|
9582
|
-
|
|
9583
|
-
const UpdateFlowRequest = CreateFlowRequest.extend({
|
|
9584
|
-
archivedAt: zod.z.string().optional(),
|
|
9525
|
+
integrationKey: zod.z.string().optional(),
|
|
9526
|
+
universalFlowId: zod.z.string().optional(),
|
|
9527
|
+
search: zod.z.string().optional(),
|
|
9528
|
+
includeArchived: zodBooleanCoercion().optional(),
|
|
9585
9529
|
});
|
|
9530
|
+
const CreateFlowRequest = FlowEditableProperties;
|
|
9531
|
+
const UpdateFlowRequest = CreateFlowRequest.extend({}).partial();
|
|
9586
9532
|
const ListFlowInstancesForConnectionQuery = zod.z
|
|
9587
9533
|
.object({
|
|
9588
9534
|
flowId: zod.z.string().optional(),
|
|
@@ -9602,22 +9548,18 @@ const RunFlowOptions = zod.z.object({
|
|
|
9602
9548
|
returnImmediately: zod.z.boolean().optional(),
|
|
9603
9549
|
onUpdate: zod.z.function().optional(),
|
|
9604
9550
|
});
|
|
9605
|
-
const FlowApiResponse = BaseFlow.extend({
|
|
9606
|
-
integration: BaseIntegration.optional(),
|
|
9607
|
-
appliedToIntegrations: AppliedToIntegrations(zod.z.object({
|
|
9608
|
-
id: zod.z.string(),
|
|
9609
|
-
integrationId: zod.z.string().optional(),
|
|
9610
|
-
customized: zod.z.boolean().optional(),
|
|
9611
|
-
universalFlowId: zod.z.string().optional(),
|
|
9612
|
-
})).optional(),
|
|
9613
|
-
dependencies: zod.z.array(zod.z.any()).optional(),
|
|
9614
|
-
});
|
|
9615
9551
|
const FlowInstanceApiResponse = BaseFlowInstance.extend({
|
|
9616
9552
|
user: zod.z.lazy(() => zod.z.any()).optional(),
|
|
9617
9553
|
connection: zod.z.lazy(() => zod.z.any()).optional(),
|
|
9618
9554
|
flow: zod.z.lazy(() => FlowApiResponse).optional(),
|
|
9619
9555
|
integration: zod.z.lazy(() => zod.z.any()).optional(),
|
|
9620
9556
|
});
|
|
9557
|
+
const CreateFlowNodeRequest = zod.z.object({
|
|
9558
|
+
type: zod.z.string(),
|
|
9559
|
+
config: zod.z.any().optional(),
|
|
9560
|
+
ui: zod.z.any().optional(),
|
|
9561
|
+
links: zod.z.array(zod.z.lazy(() => zod.z.any())).optional(),
|
|
9562
|
+
});
|
|
9621
9563
|
|
|
9622
9564
|
const CreateFlowRunRequest = zod.z.object({
|
|
9623
9565
|
flowInstanceId: zod.z.string(),
|
|
@@ -9918,51 +9860,14 @@ const IntegrationApiResponse = BaseIntegration.extend({
|
|
|
9918
9860
|
parametersSchema: DataSchema.optional(),
|
|
9919
9861
|
});
|
|
9920
9862
|
|
|
9921
|
-
exports.IntegrationElementLevel = void 0;
|
|
9922
|
-
(function (IntegrationElementLevel) {
|
|
9923
|
-
IntegrationElementLevel["UNIVERSAL"] = "universal";
|
|
9924
|
-
IntegrationElementLevel["CONNECTOR"] = "connector";
|
|
9925
|
-
IntegrationElementLevel["CONNECTION"] = "connection";
|
|
9926
|
-
})(exports.IntegrationElementLevel || (exports.IntegrationElementLevel = {}));
|
|
9927
|
-
exports.IntegrationElementType = void 0;
|
|
9928
|
-
(function (IntegrationElementType) {
|
|
9929
|
-
IntegrationElementType["APP_DATA_SCHEMA"] = "app-data-schema";
|
|
9930
|
-
IntegrationElementType["APP_EVENT_TYPE"] = "app-event-type";
|
|
9931
|
-
IntegrationElementType["DATA_SOURCE"] = "data-source";
|
|
9932
|
-
IntegrationElementType["SCHEMA"] = "schema";
|
|
9933
|
-
IntegrationElementType["FIELD_MAPPING"] = "field-mapping";
|
|
9934
|
-
IntegrationElementType["FLOW"] = "flow";
|
|
9935
|
-
IntegrationElementType["INTEGRATION"] = "integration";
|
|
9936
|
-
IntegrationElementType["ACTION"] = "action";
|
|
9937
|
-
IntegrationElementType["DATA_LINK_TABLE"] = "data-link-table";
|
|
9938
|
-
IntegrationElementType["EXTERNAL_EVENT"] = "external-event";
|
|
9939
|
-
})(exports.IntegrationElementType || (exports.IntegrationElementType = {}));
|
|
9940
|
-
|
|
9941
|
-
const ScenarioToDoApi = zod.z.object({
|
|
9942
|
-
name: zod.z.string(),
|
|
9943
|
-
description: zod.z.string(),
|
|
9944
|
-
isComplete: zod.z.boolean(),
|
|
9945
|
-
});
|
|
9946
9863
|
const ScenarioElementApi = zod.z.object({
|
|
9947
9864
|
id: zod.z.string(),
|
|
9948
9865
|
type: zod.z.nativeEnum(exports.IntegrationElementType),
|
|
9949
9866
|
element: zod.z.any().optional(),
|
|
9950
9867
|
});
|
|
9951
|
-
const FindScenariosQuery = zod.z.object({}).merge(SearchQuery).merge(PaginationQuery);
|
|
9952
|
-
const CreateScenarioRequest = zod.z.object({
|
|
9953
|
-
name: zod.z.string(),
|
|
9954
|
-
key: zod.z.string(),
|
|
9955
|
-
elements: zod.z.array(ScenarioElementApi).optional(),
|
|
9956
|
-
todos: zod.z.array(ScenarioToDoApi).optional(),
|
|
9957
|
-
});
|
|
9958
|
-
const UpdateScenarioRequest = zod.z.object({
|
|
9959
|
-
name: zod.z.string().optional(),
|
|
9960
|
-
key: zod.z.string().optional(),
|
|
9961
|
-
elements: zod.z.array(ScenarioElementApi).optional(),
|
|
9962
|
-
todos: zod.z.array(ScenarioToDoApi).optional(),
|
|
9963
|
-
});
|
|
9868
|
+
const FindScenariosQuery = zod.z.object({}).merge(SearchQuery).merge(PaginationQuery).merge(IncludeArchivedQuery);
|
|
9964
9869
|
const ScenarioApiResponse = BaseScenario.extend({
|
|
9965
|
-
appliedToIntegrations:
|
|
9870
|
+
appliedToIntegrations: AppliedToIntegrations(BaseScenario).optional(),
|
|
9966
9871
|
});
|
|
9967
9872
|
|
|
9968
9873
|
const ScreenApiResponse = BaseScreen;
|
|
@@ -9992,6 +9897,15 @@ const FieldMappingApiResponse = BaseFieldMapping.extend({
|
|
|
9992
9897
|
integration: BaseIntegration.optional(),
|
|
9993
9898
|
appliedToIntegrations: AppliedToIntegrations(BaseFieldMapping).optional(),
|
|
9994
9899
|
});
|
|
9900
|
+
const FindFieldMappingsQuery = PaginationQuery.extend({
|
|
9901
|
+
integrationId: zod.z.string().optional(),
|
|
9902
|
+
integrationKey: zod.z.string().optional(),
|
|
9903
|
+
universalFieldMappingId: zod.z.string().optional(),
|
|
9904
|
+
search: zod.z.string().optional(),
|
|
9905
|
+
includeArchived: zodBooleanCoercion().optional(),
|
|
9906
|
+
});
|
|
9907
|
+
const CreateFieldMappingRequest = FieldMappingEditableProperties;
|
|
9908
|
+
const UpdateFieldMappingRequest = CreateFieldMappingRequest.extend({}).partial();
|
|
9995
9909
|
|
|
9996
9910
|
const FieldMappingInstanceApiResponse = BaseFieldMappingInstance.extend({
|
|
9997
9911
|
user: BaseCustomer.optional(),
|
|
@@ -10239,6 +10153,9 @@ const WorkspaceElementSpecs = {
|
|
|
10239
10153
|
apiPath: 'scenarios',
|
|
10240
10154
|
name: 'Scenario',
|
|
10241
10155
|
namePlural: 'Scenarios',
|
|
10156
|
+
editablePropertiesSchema: ScenarioEditableProperties,
|
|
10157
|
+
apiResponseSchema: ScenarioApiResponse,
|
|
10158
|
+
findQuerySchema: FindScenariosQuery,
|
|
10242
10159
|
},
|
|
10243
10160
|
[exports.WorkspaceElementType.ActionInstance]: {
|
|
10244
10161
|
type: exports.WorkspaceElementType.ActionInstance,
|
|
@@ -10266,6 +10183,7 @@ const WorkspaceElementSpecs = {
|
|
|
10266
10183
|
apiPath: 'flows',
|
|
10267
10184
|
name: 'Flow',
|
|
10268
10185
|
namePlural: 'Flows',
|
|
10186
|
+
parentFieldKey: 'universalFlowId',
|
|
10269
10187
|
},
|
|
10270
10188
|
[exports.WorkspaceElementType.FlowInstance]: {
|
|
10271
10189
|
type: exports.WorkspaceElementType.FlowInstance,
|
|
@@ -10286,6 +10204,7 @@ const WorkspaceElementSpecs = {
|
|
|
10286
10204
|
apiPath: 'field-mappings',
|
|
10287
10205
|
name: 'Field Mapping',
|
|
10288
10206
|
namePlural: 'Field Mappings',
|
|
10207
|
+
parentFieldKey: 'universalFieldMappingId',
|
|
10289
10208
|
},
|
|
10290
10209
|
[exports.WorkspaceElementType.FieldMappingInstance]: {
|
|
10291
10210
|
type: exports.WorkspaceElementType.FieldMappingInstance,
|
|
@@ -10304,6 +10223,7 @@ const WorkspaceElementSpecs = {
|
|
|
10304
10223
|
apiPath: 'data-sources',
|
|
10305
10224
|
name: 'Data Source',
|
|
10306
10225
|
namePlural: 'Data Sources',
|
|
10226
|
+
parentFieldKey: 'universalDataSourceId',
|
|
10307
10227
|
},
|
|
10308
10228
|
[exports.WorkspaceElementType.DataSourceInstance]: {
|
|
10309
10229
|
type: exports.WorkspaceElementType.DataSourceInstance,
|
|
@@ -12421,6 +12341,54 @@ exports.WorkspaceSyncEventType = void 0;
|
|
|
12421
12341
|
WorkspaceSyncEventType["ElementUpdate"] = "element-update";
|
|
12422
12342
|
})(exports.WorkspaceSyncEventType || (exports.WorkspaceSyncEventType = {}));
|
|
12423
12343
|
|
|
12344
|
+
exports.ScenarioTemplateCategory = void 0;
|
|
12345
|
+
(function (ScenarioTemplateCategory) {
|
|
12346
|
+
ScenarioTemplateCategory["DataExport"] = "data-export";
|
|
12347
|
+
ScenarioTemplateCategory["DataImport"] = "data-import";
|
|
12348
|
+
ScenarioTemplateCategory["BiDirectionalSync"] = "bi-directional-sync";
|
|
12349
|
+
ScenarioTemplateCategory["UnifiedApi"] = "unified-api";
|
|
12350
|
+
ScenarioTemplateCategory["DataEnrichment"] = "data-enrichment";
|
|
12351
|
+
})(exports.ScenarioTemplateCategory || (exports.ScenarioTemplateCategory = {}));
|
|
12352
|
+
const HandyScenarioTemplateElement = zod.z.object({
|
|
12353
|
+
type: zod.z.string(),
|
|
12354
|
+
integration: zod.z.object({ key: zod.z.string(), connectorId: zod.z.string() }).optional(),
|
|
12355
|
+
integrations: zod.z.array(zod.z.object({ key: zod.z.string(), connectorId: zod.z.string() })).optional(),
|
|
12356
|
+
fields: zod.z
|
|
12357
|
+
.object({
|
|
12358
|
+
key: zod.z.string(),
|
|
12359
|
+
name: zod.z.string(),
|
|
12360
|
+
})
|
|
12361
|
+
.and(zod.z.record(zod.z.any())),
|
|
12362
|
+
});
|
|
12363
|
+
const withIntegrationKeys = (schema) => schema.and(zod.z.object({ integrationKeys: zod.z.array(zod.z.string()).optional() }));
|
|
12364
|
+
const ElementsExportFields = zod.z.object({
|
|
12365
|
+
flows: zod.z.record(withIntegrationKeys(zod.z.any())).optional(),
|
|
12366
|
+
actions: zod.z.record(withIntegrationKeys(zod.z.any())).optional(),
|
|
12367
|
+
fieldMappings: zod.z.record(withIntegrationKeys(zod.z.any())).optional(),
|
|
12368
|
+
dataSources: zod.z.record(withIntegrationKeys(zod.z.any())).optional(),
|
|
12369
|
+
dataLinkTables: zod.z.record(zod.z.any()).optional(),
|
|
12370
|
+
appEventTypes: zod.z.record(zod.z.any()).optional(),
|
|
12371
|
+
appDataSchemas: zod.z.record(zod.z.any()).optional(),
|
|
12372
|
+
});
|
|
12373
|
+
const ScenarioTemplateElements = ElementsExportFields.and(zod.z.object({
|
|
12374
|
+
integrations: zod.z.record(ElementsExportFields.and(zod.z.object({ connectorId: zod.z.string() }))).optional(),
|
|
12375
|
+
}));
|
|
12376
|
+
const ScenarioTemplate = zod.z.object({
|
|
12377
|
+
id: zod.z.string(),
|
|
12378
|
+
name: zod.z.string(),
|
|
12379
|
+
key: zod.z.string(),
|
|
12380
|
+
shortDescription: zod.z.string().optional(),
|
|
12381
|
+
description: zod.z.string().optional(),
|
|
12382
|
+
demoWorkspaceKey: zod.z.string().optional(),
|
|
12383
|
+
demoAppUri: zod.z.string().optional(),
|
|
12384
|
+
demoGithubRepo: zod.z.string().optional(),
|
|
12385
|
+
demoVideoYoutubeUri: zod.z.string().optional(),
|
|
12386
|
+
tags: zod.z.array(zod.z.nativeEnum(exports.ScenarioTemplateCategory)).optional(),
|
|
12387
|
+
elements: ScenarioTemplateElements.optional(),
|
|
12388
|
+
connectors: zod.z.array(MinimalConnector).optional(),
|
|
12389
|
+
handyElements: zod.z.array(HandyScenarioTemplateElement).optional(),
|
|
12390
|
+
});
|
|
12391
|
+
|
|
12424
12392
|
function decodeJWT(token) {
|
|
12425
12393
|
if (typeof token !== 'string') {
|
|
12426
12394
|
return undefined;
|
|
@@ -12767,6 +12735,9 @@ exports.BaseFlow = BaseFlow;
|
|
|
12767
12735
|
exports.BaseFlowInstance = BaseFlowInstance;
|
|
12768
12736
|
exports.BaseFlowRun = BaseFlowRun;
|
|
12769
12737
|
exports.BaseIntegration = BaseIntegration;
|
|
12738
|
+
exports.BaseIntegrationLevelMembraneInterface = BaseIntegrationLevelMembraneInterface;
|
|
12739
|
+
exports.BaseIntegrationLevelMembraneInterfaceEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties;
|
|
12740
|
+
exports.BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties;
|
|
12770
12741
|
exports.BaseMembraneInterface = BaseMembraneInterface;
|
|
12771
12742
|
exports.BaseMembraneInterfaceEditableProperties = BaseMembraneInterfaceEditableProperties;
|
|
12772
12743
|
exports.BaseMembraneInterfaceReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties;
|
|
@@ -12819,11 +12790,11 @@ exports.CreateConnectionRequest = CreateConnectionRequest;
|
|
|
12819
12790
|
exports.CreateCustomerRequest = CreateCustomerRequest;
|
|
12820
12791
|
exports.CreateDataSourceInstanceRequest = CreateDataSourceInstanceRequest;
|
|
12821
12792
|
exports.CreateDataSourceRequest = CreateDataSourceRequest;
|
|
12793
|
+
exports.CreateFieldMappingRequest = CreateFieldMappingRequest;
|
|
12822
12794
|
exports.CreateFlowNodeRequest = CreateFlowNodeRequest;
|
|
12823
12795
|
exports.CreateFlowRequest = CreateFlowRequest;
|
|
12824
12796
|
exports.CreateFlowRunRequest = CreateFlowRunRequest;
|
|
12825
12797
|
exports.CreateIntegrationRequest = CreateIntegrationRequest;
|
|
12826
|
-
exports.CreateScenarioRequest = CreateScenarioRequest;
|
|
12827
12798
|
exports.CustomCodeError = CustomCodeError;
|
|
12828
12799
|
exports.CustomerAccessor = CustomerAccessor;
|
|
12829
12800
|
exports.CustomerApiResponse = CustomerApiResponse;
|
|
@@ -12883,6 +12854,7 @@ exports.DataRecordSchema = DataRecordSchema;
|
|
|
12883
12854
|
exports.DataSchema = DataSchema;
|
|
12884
12855
|
exports.DataSourceAccessor = DataSourceAccessor;
|
|
12885
12856
|
exports.DataSourceApiResponse = DataSourceApiResponse;
|
|
12857
|
+
exports.DataSourceEditableProperties = DataSourceEditableProperties;
|
|
12886
12858
|
exports.DataSourceInstanceAccessor = DataSourceInstanceAccessor;
|
|
12887
12859
|
exports.DataSourceInstanceApiResponse = DataSourceInstanceApiResponse;
|
|
12888
12860
|
exports.DataSourceInstancesAccessor = DataSourceInstancesAccessor;
|
|
@@ -12909,6 +12881,7 @@ exports.ExternalEventUnitConfig = ExternalEventUnitConfig;
|
|
|
12909
12881
|
exports.FLOW_NODE_SPECS = FLOW_NODE_SPECS;
|
|
12910
12882
|
exports.FieldMappingAccessor = FieldMappingAccessor;
|
|
12911
12883
|
exports.FieldMappingApiResponse = FieldMappingApiResponse;
|
|
12884
|
+
exports.FieldMappingEditableProperties = FieldMappingEditableProperties;
|
|
12912
12885
|
exports.FieldMappingInstanceAccessor = FieldMappingInstanceAccessor;
|
|
12913
12886
|
exports.FieldMappingInstanceApiResponse = FieldMappingInstanceApiResponse;
|
|
12914
12887
|
exports.FieldMappingInstancesAccessor = FieldMappingInstancesAccessor;
|
|
@@ -12924,6 +12897,7 @@ exports.FindDataSourceInstanceSyncsQuery = FindDataSourceInstanceSyncsQuery;
|
|
|
12924
12897
|
exports.FindDataSourceInstancesQuery = FindDataSourceInstancesQuery;
|
|
12925
12898
|
exports.FindDataSourceSyncsQuery = FindDataSourceSyncsQuery;
|
|
12926
12899
|
exports.FindDataSourcesQuery = FindDataSourcesQuery;
|
|
12900
|
+
exports.FindFieldMappingsQuery = FindFieldMappingsQuery;
|
|
12927
12901
|
exports.FindFlowInstancesQuery = FindFlowInstancesQuery;
|
|
12928
12902
|
exports.FindFlowRunsQuery = FindFlowRunsQuery;
|
|
12929
12903
|
exports.FindFlowRunsResponse = FindFlowRunsResponse;
|
|
@@ -12932,6 +12906,7 @@ exports.FindIntegrationsQuery = FindIntegrationsQuery;
|
|
|
12932
12906
|
exports.FindScenariosQuery = FindScenariosQuery;
|
|
12933
12907
|
exports.FlowAccessor = FlowAccessor;
|
|
12934
12908
|
exports.FlowApiResponse = FlowApiResponse;
|
|
12909
|
+
exports.FlowEditableProperties = FlowEditableProperties;
|
|
12935
12910
|
exports.FlowInstanceAccessor = FlowInstanceAccessor;
|
|
12936
12911
|
exports.FlowInstanceApiResponse = FlowInstanceApiResponse;
|
|
12937
12912
|
exports.FlowInstanceNode = FlowInstanceNode;
|
|
@@ -12978,11 +12953,9 @@ exports.InternalError = InternalError;
|
|
|
12978
12953
|
exports.InvalidLocatorError = InvalidLocatorError;
|
|
12979
12954
|
exports.ListActionInstancesForConnectionQuery = ListActionInstancesForConnectionQuery;
|
|
12980
12955
|
exports.ListDataSourceInstancesForConnectionQuery = ListDataSourceInstancesForConnectionQuery;
|
|
12981
|
-
exports.ListDataSourcesForIntegrationQuery = ListDataSourcesForIntegrationQuery;
|
|
12982
12956
|
exports.ListExternalEventLogRecordsQuery = ListExternalEventLogRecordsQuery;
|
|
12983
12957
|
exports.ListExternalEventPullsQuery = ListExternalEventPullsQuery;
|
|
12984
12958
|
exports.ListFlowInstancesForConnectionQuery = ListFlowInstancesForConnectionQuery;
|
|
12985
|
-
exports.ListFlowsForIntegrationQuery = ListFlowsForIntegrationQuery;
|
|
12986
12959
|
exports.MIN_FULL_SYNC_INTERVAL_SECONDS = MIN_FULL_SYNC_INTERVAL_SECONDS;
|
|
12987
12960
|
exports.MIN_PULL_UPDATES_INTERVAL_SECONDS = MIN_PULL_UPDATES_INTERVAL_SECONDS;
|
|
12988
12961
|
exports.MembraneClient = MembraneClient;
|
|
@@ -13002,12 +12975,12 @@ exports.ResetFlowInstanceOptions = ResetFlowInstanceOptions;
|
|
|
13002
12975
|
exports.RunFlowOptions = RunFlowOptions;
|
|
13003
12976
|
exports.ScenarioAccessor = ScenarioAccessor;
|
|
13004
12977
|
exports.ScenarioApiResponse = ScenarioApiResponse;
|
|
12978
|
+
exports.ScenarioCalculatedProperties = ScenarioCalculatedProperties;
|
|
12979
|
+
exports.ScenarioEditableProperties = ScenarioEditableProperties;
|
|
13005
12980
|
exports.ScenarioElement = ScenarioElement;
|
|
13006
12981
|
exports.ScenarioElementApi = ScenarioElementApi;
|
|
13007
12982
|
exports.ScenarioTemplate = ScenarioTemplate;
|
|
13008
12983
|
exports.ScenarioTemplateElements = ScenarioTemplateElements;
|
|
13009
|
-
exports.ScenarioToDo = ScenarioToDo;
|
|
13010
|
-
exports.ScenarioToDoApi = ScenarioToDoApi;
|
|
13011
12984
|
exports.ScenariosAccessor = ScenariosAccessor;
|
|
13012
12985
|
exports.ScreenAccessor = ScreenAccessor;
|
|
13013
12986
|
exports.ScreenApiResponse = ScreenApiResponse;
|
|
@@ -13023,9 +12996,9 @@ exports.UpdateConnectionRequest = UpdateConnectionRequest;
|
|
|
13023
12996
|
exports.UpdateCustomerRequest = UpdateCustomerRequest;
|
|
13024
12997
|
exports.UpdateDataSourceInstanceRequest = UpdateDataSourceInstanceRequest;
|
|
13025
12998
|
exports.UpdateDataSourceRequest = UpdateDataSourceRequest;
|
|
12999
|
+
exports.UpdateFieldMappingRequest = UpdateFieldMappingRequest;
|
|
13026
13000
|
exports.UpdateFlowRequest = UpdateFlowRequest;
|
|
13027
13001
|
exports.UpdateIntegrationRequest = UpdateIntegrationRequest;
|
|
13028
|
-
exports.UpdateScenarioRequest = UpdateScenarioRequest;
|
|
13029
13002
|
exports.UpstreamFlowNodeRunSchema = UpstreamFlowNodeRunSchema;
|
|
13030
13003
|
exports.UserAccessor = UserAccessor;
|
|
13031
13004
|
exports.UsersAccessor = UsersAccessor;
|
|
@@ -13157,4 +13130,4 @@ exports.valueToString = valueToString;
|
|
|
13157
13130
|
exports.walkSchema = walkSchema;
|
|
13158
13131
|
exports.wrapAnyOfSchema = wrapAnyOfSchema;
|
|
13159
13132
|
exports.zodBooleanCoercion = zodBooleanCoercion;
|
|
13160
|
-
//# sourceMappingURL=index.js.map
|
|
13133
|
+
//# sourceMappingURL=index.browser.js.map
|