@membranehq/sdk 0.8.4 → 0.8.5
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 +305 -290
- package/dist/bundle.js +121 -103
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/action-instances-accessors.d.ts +1 -16
- package/dist/dts/accessors/actions-accessors.d.ts +26 -7
- package/dist/dts/accessors/actions-accessors.test.d.ts +1 -0
- package/dist/dts/accessors/connections-accessors.d.ts +5 -5
- package/dist/dts/accessors/integrations-accessors.d.ts +5 -5
- package/dist/dts/alerts/types.d.ts +2 -1
- package/dist/dts/entity-repository.d.ts +0 -1
- package/dist/dts/formulas/dataSchemaRef.d.ts +3 -3
- package/dist/dts/index.browser.d.ts +2 -1
- package/dist/dts/orgs/types.d.ts +5 -4
- package/dist/dts/usage/types.d.ts +4 -2
- package/dist/dts/validation/types.d.ts +2 -0
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +11 -11
- package/dist/dts/workspace-elements/api/actions-api.d.ts +57 -55
- package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +5 -5
- package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +2 -2
- package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +9 -8
- package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +9 -8
- package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +3 -2
- package/dist/dts/workspace-elements/api/connections-api.d.ts +3 -3
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +7 -7
- package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +2 -2
- package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +9 -8
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +10 -6
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +8 -7
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +8 -7
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +7 -6
- package/dist/dts/workspace-elements/api/external-events-api.d.ts +8 -6
- package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +20 -19
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +14 -14
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +14 -14
- package/dist/dts/workspace-elements/api/flows-api.d.ts +39 -27
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +3 -3
- package/dist/dts/workspace-elements/api/packages-api.d.ts +30 -18
- package/dist/dts/workspace-elements/base/action-instances/types.d.ts +7 -7
- package/dist/dts/workspace-elements/base/actions/index.d.ts +30 -14
- package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +1 -1
- package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +2 -2
- package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +2 -2
- package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +3 -2
- package/dist/dts/workspace-elements/base/connectors/types.d.ts +2 -0
- package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +2 -2
- package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +2 -2
- package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +3 -3
- package/dist/dts/workspace-elements/base/data-sources/index.d.ts +22 -3
- package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +6 -4
- package/dist/dts/workspace-elements/base/external-events/types.d.ts +6 -4
- package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +1 -1
- package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +23 -3
- package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +1 -1
- package/dist/dts/workspace-elements/base/flows/index.d.ts +45 -3
- package/dist/dts/workspace-elements/base/integrations/types.d.ts +18 -4
- package/dist/dts/workspace-elements/base/packages/index.d.ts +35 -8
- package/dist/dts/workspace-elements/paths.d.ts +8 -0
- package/dist/dts/workspace-elements/paths.test.d.ts +1 -0
- package/dist/dts/workspace-elements/types.d.ts +21 -9
- package/dist/dts/workspace-elements-catalog/index.d.ts +1 -0
- package/dist/dts/workspaces/types.d.ts +0 -1
- package/dist/index.browser.d.mts +8742 -8687
- package/dist/index.browser.d.ts +8742 -8687
- package/dist/index.browser.js +234 -265
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +224 -265
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +8766 -8711
- package/dist/index.node.d.ts +8766 -8711
- package/dist/index.node.js +234 -265
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +224 -265
- package/dist/index.node.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/dts/connector-copilot/types.d.ts +0 -160
- package/dist/dts/index.d.ts +0 -34
- /package/dist/dts/{connector-copilot → validation}/index.d.ts +0 -0
package/dist/index.node.js
CHANGED
|
@@ -3409,6 +3409,7 @@ const zodBooleanCoercion = () => zod.z.preprocess((val) => {
|
|
|
3409
3409
|
return Boolean(val);
|
|
3410
3410
|
return Boolean(val);
|
|
3411
3411
|
}, zod.z.boolean());
|
|
3412
|
+
|
|
3412
3413
|
const IncludeArchivedQuery = zod.z.object({
|
|
3413
3414
|
includeArchived: zodBooleanCoercion().optional(),
|
|
3414
3415
|
});
|
|
@@ -3463,7 +3464,6 @@ exports.WorkspaceElementType = void 0;
|
|
|
3463
3464
|
WorkspaceElementType["ExternalEventSubscription"] = "external-event-subscription";
|
|
3464
3465
|
WorkspaceElementType["ExternalEventLogRecord"] = "external-event-log-record";
|
|
3465
3466
|
WorkspaceElementType["ExternalEventPull"] = "external-event-pull";
|
|
3466
|
-
WorkspaceElementType["DataCollection"] = "data-collection";
|
|
3467
3467
|
WorkspaceElementType["Screen"] = "screen";
|
|
3468
3468
|
WorkspaceElementType["ActionRunLogRecord"] = "action-run-log-record";
|
|
3469
3469
|
})(exports.WorkspaceElementType || (exports.WorkspaceElementType = {}));
|
|
@@ -3495,9 +3495,9 @@ const BaseWorkspaceElement = zod.z.object({
|
|
|
3495
3495
|
name: zod.z.string(),
|
|
3496
3496
|
});
|
|
3497
3497
|
const BaseMembraneInterfaceEditableProperties = zod.z.object({
|
|
3498
|
+
uuid: zod.z.string().optional(),
|
|
3498
3499
|
key: zod.z.string().optional(),
|
|
3499
3500
|
name: zod.z.string().optional(),
|
|
3500
|
-
uuid: zod.z.string().optional(),
|
|
3501
3501
|
description: zod.z.string().optional(),
|
|
3502
3502
|
meta: zod.z.record(zod.z.string(), zod.z.any()).optional(),
|
|
3503
3503
|
});
|
|
@@ -3513,14 +3513,20 @@ const BaseMembraneInterfaceReadOnlyProperties = zod.z.object({
|
|
|
3513
3513
|
});
|
|
3514
3514
|
const BaseMembraneInterface = BaseWorkspaceElement.merge(BaseMembraneInterfaceEditableProperties).merge(BaseMembraneInterfaceReadOnlyProperties);
|
|
3515
3515
|
const BaseIntegrationLevelMembraneInterfaceEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
3516
|
-
integrationUuid: zod.z.string().optional(),
|
|
3517
|
-
parentUuid: zod.z.string().optional(),
|
|
3518
3516
|
integrationId: zod.z.string().optional(),
|
|
3517
|
+
integrationUuid: zod.z.string().optional(),
|
|
3519
3518
|
parentId: zod.z.string().optional(),
|
|
3519
|
+
parentUuid: zod.z.string().optional(),
|
|
3520
|
+
connectionId: zod.z.string().optional(),
|
|
3521
|
+
instanceKey: zod.z.string().optional(),
|
|
3520
3522
|
});
|
|
3521
3523
|
const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties.extend({
|
|
3522
3524
|
isCustomized: zod.z.boolean().optional(),
|
|
3523
3525
|
});
|
|
3526
|
+
const BaseIntegrationLevelMembraneInterfaceExportProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
3527
|
+
integrationUuid: zod.z.string().optional(),
|
|
3528
|
+
parentUuid: zod.z.string().optional(),
|
|
3529
|
+
});
|
|
3524
3530
|
const IntegrationLevelMembraneInterfaceSelectorQuery = zod.z.object({
|
|
3525
3531
|
layer: zod.z.enum(['universal', 'integration', 'connection']).optional(),
|
|
3526
3532
|
integrationKey: zod.z.string().optional(),
|
|
@@ -3571,14 +3577,11 @@ exports.FieldMappingDirection = void 0;
|
|
|
3571
3577
|
FieldMappingDirection["EXPORT"] = "export";
|
|
3572
3578
|
FieldMappingDirection["BOTH"] = "both";
|
|
3573
3579
|
})(exports.FieldMappingDirection || (exports.FieldMappingDirection = {}));
|
|
3574
|
-
const
|
|
3575
|
-
parentId: true,
|
|
3576
|
-
}).extend({
|
|
3580
|
+
const FieldMappingSpecificProperties = zod.z.object({
|
|
3577
3581
|
connectionId: zod.z.string().optional(),
|
|
3578
3582
|
fieldMappingId: zod.z.string().optional(),
|
|
3579
3583
|
universalFieldMappingId: zod.z.string().optional(),
|
|
3580
3584
|
dataSourceKey: zod.z.string().optional(),
|
|
3581
|
-
dataSourceId: zod.z.string().optional(),
|
|
3582
3585
|
appSchema: DataSchema.optional(),
|
|
3583
3586
|
direction: zod.z.enum(exports.FieldMappingDirection).optional(),
|
|
3584
3587
|
defaultImportValue: zod.z.any().optional(),
|
|
@@ -3589,6 +3592,14 @@ const FieldMappingEditableProperties = BaseIntegrationLevelMembraneInterfaceEdit
|
|
|
3589
3592
|
frozenExportFields: zod.z.any().optional(),
|
|
3590
3593
|
frozenUnifiedExportFields: zod.z.any().optional(),
|
|
3591
3594
|
});
|
|
3595
|
+
const FieldMappingEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
|
|
3596
|
+
parentId: true,
|
|
3597
|
+
}).extend(FieldMappingSpecificProperties.shape);
|
|
3598
|
+
const FieldMappingExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(FieldMappingSpecificProperties.shape).omit({
|
|
3599
|
+
connectionId: true,
|
|
3600
|
+
fieldMappingId: true,
|
|
3601
|
+
universalFieldMappingId: true,
|
|
3602
|
+
});
|
|
3592
3603
|
const FieldMappingReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
3593
3604
|
universalFieldMappingRevision: zod.z.string().optional(),
|
|
3594
3605
|
});
|
|
@@ -3712,15 +3723,19 @@ const ActionDependency = zod.z.object({
|
|
|
3712
3723
|
key: zod.z.string(),
|
|
3713
3724
|
element: zod.z.any().optional(),
|
|
3714
3725
|
});
|
|
3715
|
-
const
|
|
3726
|
+
const ActionSpecificProperties = zod.z.object({
|
|
3716
3727
|
connectionId: zod.z.string().optional(),
|
|
3717
3728
|
instanceKey: zod.z.string().optional(),
|
|
3718
3729
|
inputSchema: DataSchema.optional(),
|
|
3719
3730
|
type: zod.z.enum(exports.ActionType).optional(),
|
|
3720
|
-
config: zod.z.
|
|
3731
|
+
config: zod.z.object({}).loose().optional(),
|
|
3721
3732
|
outputMapping: zod.z.any().optional(),
|
|
3722
3733
|
customOutputSchema: DataSchema.optional(),
|
|
3723
3734
|
});
|
|
3735
|
+
const ActionEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.extend(ActionSpecificProperties.shape);
|
|
3736
|
+
const ActionExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(ActionSpecificProperties.shape).omit({
|
|
3737
|
+
connectionId: true,
|
|
3738
|
+
});
|
|
3724
3739
|
const ActionReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
3725
3740
|
universalParentId: zod.z.string().optional(),
|
|
3726
3741
|
userId: zod.z.string().optional(),
|
|
@@ -8429,9 +8444,7 @@ const DEFAULT_PULL_UPDATES_INTERVAL_SECONDS = 60 * 5;
|
|
|
8429
8444
|
const DEFAULT_FULL_SYNC_INTERVAL_SECONDS = 60 * 60 * 3;
|
|
8430
8445
|
const MIN_FULL_SYNC_INTERVAL_SECONDS = 1 * 60;
|
|
8431
8446
|
const MIN_PULL_UPDATES_INTERVAL_SECONDS = 1 * 60;
|
|
8432
|
-
const
|
|
8433
|
-
parentId: true,
|
|
8434
|
-
}).extend({
|
|
8447
|
+
const DataSourceSpecificProperties = zod.z.object({
|
|
8435
8448
|
connectionId: zod.z.string().optional(),
|
|
8436
8449
|
dataSourceId: zod.z.string().optional(),
|
|
8437
8450
|
universalDataSourceId: zod.z.string().optional(),
|
|
@@ -8442,18 +8455,27 @@ const DataSourceEditableProperties = BaseIntegrationLevelMembraneInterfaceEditab
|
|
|
8442
8455
|
collectionParameters: zod.z.any().optional(),
|
|
8443
8456
|
defaultPath: zod.z.string().optional(),
|
|
8444
8457
|
});
|
|
8458
|
+
const DataSourceEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
|
|
8459
|
+
parentId: true,
|
|
8460
|
+
}).extend(DataSourceSpecificProperties.shape);
|
|
8461
|
+
const DataSourceExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(DataSourceSpecificProperties.shape).omit({
|
|
8462
|
+
connectionId: true,
|
|
8463
|
+
dataSourceId: true,
|
|
8464
|
+
universalDataSourceId: true,
|
|
8465
|
+
});
|
|
8445
8466
|
const DataSourceReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
8446
8467
|
universalDataSourceRevision: zod.z.string().optional(),
|
|
8447
8468
|
});
|
|
8448
8469
|
const BaseDataSource = BaseMembraneInterface.merge(DataSourceEditableProperties).merge(DataSourceReadOnlyProperties);
|
|
8449
8470
|
const DataSourceUnitConfig = zod.z.object({
|
|
8450
|
-
key: zod.z.
|
|
8471
|
+
key: zod.z.any().optional(),
|
|
8451
8472
|
collectionKey: zod.z.any().optional(),
|
|
8452
8473
|
collectionParameters: zod.z.any().optional(),
|
|
8453
8474
|
udm: zod.z.any().optional(),
|
|
8454
|
-
path: zod.z.string().optional(),
|
|
8455
8475
|
pullUpdatesIntervalSeconds: zod.z.number().optional(),
|
|
8456
8476
|
fullSyncIntervalSeconds: zod.z.number().optional(),
|
|
8477
|
+
path: zod.z.any().optional(),
|
|
8478
|
+
defaultPath: zod.z.any().optional(),
|
|
8457
8479
|
});
|
|
8458
8480
|
|
|
8459
8481
|
const BaseDataSourceInstance = BaseMembraneInterface.extend({
|
|
@@ -8920,16 +8942,22 @@ const FLOW_NODE_SPECS = {
|
|
|
8920
8942
|
[exports.FlowNodeType.RunAction]: RunAction,
|
|
8921
8943
|
};
|
|
8922
8944
|
|
|
8923
|
-
const
|
|
8924
|
-
parentId: true,
|
|
8925
|
-
}).extend({
|
|
8926
|
-
connectionId: zod.z.string().optional(),
|
|
8945
|
+
const FlowSpecificProperties = zod.z.object({
|
|
8927
8946
|
flowId: zod.z.string().optional(),
|
|
8928
8947
|
universalFlowId: zod.z.string().optional(),
|
|
8929
8948
|
parametersSchema: DataSchema.optional(),
|
|
8949
|
+
parameters: zod.z.any().optional(),
|
|
8950
|
+
enabled: zod.z.boolean().optional(),
|
|
8930
8951
|
nodes: zod.z.record(zod.z.string(), FlowNode).optional(),
|
|
8931
8952
|
autoCreateInstances: zod.z.boolean().optional(),
|
|
8932
8953
|
});
|
|
8954
|
+
const FlowEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
|
|
8955
|
+
parentId: true,
|
|
8956
|
+
}).extend(FlowSpecificProperties.shape);
|
|
8957
|
+
const FlowExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(FlowSpecificProperties.shape).omit({
|
|
8958
|
+
flowId: true,
|
|
8959
|
+
universalFlowId: true,
|
|
8960
|
+
});
|
|
8933
8961
|
const FlowReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
8934
8962
|
universalFlowRevision: zod.z.string().optional(),
|
|
8935
8963
|
});
|
|
@@ -8957,6 +8985,14 @@ const BaseIntegration = BaseMembraneInterface.extend({
|
|
|
8957
8985
|
isDeactivated: zod.z.boolean().optional(),
|
|
8958
8986
|
authType: zod.z.enum(CONNECTOR_AUTH_TYPES).optional(),
|
|
8959
8987
|
});
|
|
8988
|
+
const IntegrationExportProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
8989
|
+
logoUri: zod.z.string(),
|
|
8990
|
+
connectorUuid: zod.z.string().optional(),
|
|
8991
|
+
connectorVersion: zod.z.string().optional(),
|
|
8992
|
+
oAuthCallbackUri: zod.z.string().optional(),
|
|
8993
|
+
parameters: zod.z.any().optional(),
|
|
8994
|
+
appUuid: zod.z.string().optional(),
|
|
8995
|
+
});
|
|
8960
8996
|
const AppliedToIntegrations = (elementSchema) => zod.z.array(zod.z.object({
|
|
8961
8997
|
element: elementSchema,
|
|
8962
8998
|
integration: BaseIntegration,
|
|
@@ -8987,12 +9023,17 @@ const PackageElement = zod.z.object({
|
|
|
8987
9023
|
type: zod.z.enum(exports.IntegrationElementType),
|
|
8988
9024
|
element: zod.z.any().optional(),
|
|
8989
9025
|
});
|
|
8990
|
-
const
|
|
9026
|
+
const PackageElementExport = zod.z.object({
|
|
9027
|
+
uuid: zod.z.string(),
|
|
9028
|
+
type: zod.z.enum(exports.IntegrationElementType),
|
|
9029
|
+
element: zod.z.any().optional(),
|
|
9030
|
+
});
|
|
9031
|
+
const PackageEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.extend({
|
|
8991
9032
|
scenarioTemplateId: zod.z.string().optional(),
|
|
8992
9033
|
elements: zod.z.array(PackageElement).optional(),
|
|
8993
|
-
|
|
8994
|
-
|
|
8995
|
-
|
|
9034
|
+
});
|
|
9035
|
+
const PackageExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend({
|
|
9036
|
+
elements: zod.z.array(PackageElementExport).optional(),
|
|
8996
9037
|
});
|
|
8997
9038
|
const PackageCalculatedProperties = zod.z.object({
|
|
8998
9039
|
key: zod.z.string(),
|
|
@@ -9226,6 +9267,7 @@ const BaseAppEventType = BaseMembraneInterface.extend({
|
|
|
9226
9267
|
example: zod.z.any().optional(),
|
|
9227
9268
|
schema: DataSchema.optional(),
|
|
9228
9269
|
globalWebhookUri: zod.z.string(),
|
|
9270
|
+
tenantIdFormula: zod.z.any().optional(),
|
|
9229
9271
|
userIdFormula: zod.z.any().optional(),
|
|
9230
9272
|
});
|
|
9231
9273
|
|
|
@@ -9908,6 +9950,7 @@ const WorkspaceElementSpecs = {
|
|
|
9908
9950
|
apiPath: 'integrations',
|
|
9909
9951
|
name: 'Integration',
|
|
9910
9952
|
namePlural: 'Integrations',
|
|
9953
|
+
exportPropertiesSchema: IntegrationExportProperties,
|
|
9911
9954
|
},
|
|
9912
9955
|
[exports.WorkspaceElementType.Connector]: {
|
|
9913
9956
|
type: exports.WorkspaceElementType.Connector,
|
|
@@ -9927,6 +9970,7 @@ const WorkspaceElementSpecs = {
|
|
|
9927
9970
|
name: 'Package',
|
|
9928
9971
|
namePlural: 'Packages',
|
|
9929
9972
|
editablePropertiesSchema: PackageEditableProperties,
|
|
9973
|
+
exportPropertiesSchema: PackageExportProperties,
|
|
9930
9974
|
apiResponseSchema: PackageApiResponse,
|
|
9931
9975
|
findQuerySchema: FindPackagesQuery,
|
|
9932
9976
|
isMembraneInterface: true,
|
|
@@ -9945,6 +9989,7 @@ const WorkspaceElementSpecs = {
|
|
|
9945
9989
|
name: 'Action',
|
|
9946
9990
|
namePlural: 'Actions',
|
|
9947
9991
|
editablePropertiesSchema: ActionEditableProperties,
|
|
9992
|
+
exportPropertiesSchema: ActionExportProperties,
|
|
9948
9993
|
apiResponseSchema: ActionApiResponse,
|
|
9949
9994
|
findQuerySchema: FindActionsQuery,
|
|
9950
9995
|
isMembraneInterface: true,
|
|
@@ -9963,6 +10008,7 @@ const WorkspaceElementSpecs = {
|
|
|
9963
10008
|
namePlural: 'Flows',
|
|
9964
10009
|
parentFieldKey: 'universalFlowId',
|
|
9965
10010
|
editablePropertiesSchema: FlowEditableProperties,
|
|
10011
|
+
exportPropertiesSchema: FlowExportProperties,
|
|
9966
10012
|
apiResponseSchema: FlowApiResponse,
|
|
9967
10013
|
findQuerySchema: FindFlowsQuery,
|
|
9968
10014
|
isMembraneInterface: true,
|
|
@@ -9992,6 +10038,7 @@ const WorkspaceElementSpecs = {
|
|
|
9992
10038
|
namePlural: 'Field Mappings',
|
|
9993
10039
|
parentFieldKey: 'universalFieldMappingId',
|
|
9994
10040
|
editablePropertiesSchema: FieldMappingEditableProperties,
|
|
10041
|
+
exportPropertiesSchema: FieldMappingExportProperties,
|
|
9995
10042
|
apiResponseSchema: FieldMappingApiResponse,
|
|
9996
10043
|
findQuerySchema: FindFieldMappingsQuery,
|
|
9997
10044
|
isMembraneInterface: true,
|
|
@@ -10006,12 +10053,6 @@ const WorkspaceElementSpecs = {
|
|
|
10006
10053
|
universalParentFieldKey: 'universalFieldMappingId',
|
|
10007
10054
|
isMembraneInterface: true,
|
|
10008
10055
|
},
|
|
10009
|
-
[exports.WorkspaceElementType.DataCollection]: {
|
|
10010
|
-
type: exports.WorkspaceElementType.DataCollection,
|
|
10011
|
-
apiPath: 'data-collections',
|
|
10012
|
-
name: 'Data Collection',
|
|
10013
|
-
namePlural: 'Data Collections',
|
|
10014
|
-
},
|
|
10015
10056
|
[exports.WorkspaceElementType.DataSource]: {
|
|
10016
10057
|
type: exports.WorkspaceElementType.DataSource,
|
|
10017
10058
|
apiPath: 'data-sources',
|
|
@@ -10019,6 +10060,7 @@ const WorkspaceElementSpecs = {
|
|
|
10019
10060
|
namePlural: 'Data Sources',
|
|
10020
10061
|
parentFieldKey: 'universalDataSourceId',
|
|
10021
10062
|
editablePropertiesSchema: DataSourceEditableProperties,
|
|
10063
|
+
exportPropertiesSchema: DataSourceExportProperties,
|
|
10022
10064
|
apiResponseSchema: DataSourceApiResponse,
|
|
10023
10065
|
findQuerySchema: FindDataSourcesQuery,
|
|
10024
10066
|
isMembraneInterface: true,
|
|
@@ -10111,6 +10153,44 @@ const WorkspaceElementSpecs = {
|
|
|
10111
10153
|
},
|
|
10112
10154
|
};
|
|
10113
10155
|
|
|
10156
|
+
const MEMBRANE_ELEMENT_CONFIG_FILE_NAME = 'spec.yaml';
|
|
10157
|
+
function getMembraneElementPath(elementType, elementKey, integrationKey) {
|
|
10158
|
+
const elementTypePath = WorkspaceElementSpecs[elementType].apiPath;
|
|
10159
|
+
if (!integrationKey) {
|
|
10160
|
+
return `${elementTypePath}/${elementKey}/${MEMBRANE_ELEMENT_CONFIG_FILE_NAME}`;
|
|
10161
|
+
}
|
|
10162
|
+
const integrationTypePath = WorkspaceElementSpecs[exports.WorkspaceElementType.Integration].apiPath;
|
|
10163
|
+
return `${integrationTypePath}/${integrationKey}/${elementTypePath}/${elementKey}/${MEMBRANE_ELEMENT_CONFIG_FILE_NAME}`;
|
|
10164
|
+
}
|
|
10165
|
+
function parseMembraneElementPath(relativePath) {
|
|
10166
|
+
const typeByApiPath = new Map();
|
|
10167
|
+
for (const spec of Object.values(WorkspaceElementSpecs)) {
|
|
10168
|
+
typeByApiPath.set(spec.apiPath, spec.type);
|
|
10169
|
+
}
|
|
10170
|
+
const elementTypes = Object.values(WorkspaceElementSpecs)
|
|
10171
|
+
.map((spec) => spec.apiPath)
|
|
10172
|
+
.join('|');
|
|
10173
|
+
const universalPattern = new RegExp(`^(?<elementType>${elementTypes})/(?<elementKey>[^/]+)/${MEMBRANE_ELEMENT_CONFIG_FILE_NAME}$`);
|
|
10174
|
+
const universalMatch = relativePath.match(universalPattern);
|
|
10175
|
+
if (universalMatch === null || universalMatch === void 0 ? void 0 : universalMatch.groups) {
|
|
10176
|
+
const { elementType: elementTypePath, elementKey } = universalMatch.groups;
|
|
10177
|
+
const elementType = typeByApiPath.get(elementTypePath);
|
|
10178
|
+
if (elementType) {
|
|
10179
|
+
return { type: elementType, key: elementKey };
|
|
10180
|
+
}
|
|
10181
|
+
}
|
|
10182
|
+
const integrationLevelPattern = new RegExp(`^integrations/(?<integrationKey>[^/]+)/(?<elementType>${elementTypes})/(?<elementKey>[^/]+)/${MEMBRANE_ELEMENT_CONFIG_FILE_NAME}$`);
|
|
10183
|
+
const integrationLevelMatch = relativePath.match(integrationLevelPattern);
|
|
10184
|
+
if (integrationLevelMatch === null || integrationLevelMatch === void 0 ? void 0 : integrationLevelMatch.groups) {
|
|
10185
|
+
const { integrationKey, elementType: elementTypePath, elementKey } = integrationLevelMatch.groups;
|
|
10186
|
+
const elementType = typeByApiPath.get(elementTypePath);
|
|
10187
|
+
if (elementType) {
|
|
10188
|
+
return { type: elementType, key: elementKey, integrationKey };
|
|
10189
|
+
}
|
|
10190
|
+
}
|
|
10191
|
+
return undefined;
|
|
10192
|
+
}
|
|
10193
|
+
|
|
10114
10194
|
class SelfAccessor {
|
|
10115
10195
|
constructor(client) {
|
|
10116
10196
|
this.client = client;
|
|
@@ -10123,136 +10203,6 @@ class SelfAccessor {
|
|
|
10123
10203
|
}
|
|
10124
10204
|
}
|
|
10125
10205
|
|
|
10126
|
-
exports.ConnectorCopilotSuggestionType = void 0;
|
|
10127
|
-
(function (ConnectorCopilotSuggestionType) {
|
|
10128
|
-
ConnectorCopilotSuggestionType["AuthType"] = "auth-type";
|
|
10129
|
-
ConnectorCopilotSuggestionType["AuthImplementation"] = "auth-implementation";
|
|
10130
|
-
ConnectorCopilotSuggestionType["AuthConnectionParameters"] = "auth-connection-parameters";
|
|
10131
|
-
ConnectorCopilotSuggestionType["AuthApiClient"] = "auth-api-client";
|
|
10132
|
-
ConnectorCopilotSuggestionType["DataCollection"] = "data-collection";
|
|
10133
|
-
ConnectorCopilotSuggestionType["DataCollectionOperationApiRequests"] = "data-location-operation-api-requests";
|
|
10134
|
-
ConnectorCopilotSuggestionType["DataCollectionOperationApiRequestMapping"] = "data-location-operation-api-request-mapping";
|
|
10135
|
-
ConnectorCopilotSuggestionType["DataCollectionFieldsSchema"] = "data-location-fields-schema";
|
|
10136
|
-
ConnectorCopilotSuggestionType["UdmList"] = "udm-list";
|
|
10137
|
-
ConnectorCopilotSuggestionType["UdmFieldsMapping"] = "udm-fields-mapping";
|
|
10138
|
-
ConnectorCopilotSuggestionType["UdmFieldsMappingToCollection"] = "udm-fields-mapping-to-collection";
|
|
10139
|
-
ConnectorCopilotSuggestionType["UdmFieldsMappingFromCollection"] = "udm-fields-mapping-from-collection";
|
|
10140
|
-
})(exports.ConnectorCopilotSuggestionType || (exports.ConnectorCopilotSuggestionType = {}));
|
|
10141
|
-
exports.ConnectorCopilotFileChunkTopicKey = void 0;
|
|
10142
|
-
(function (ConnectorCopilotFileChunkTopicKey) {
|
|
10143
|
-
ConnectorCopilotFileChunkTopicKey["AuthType"] = "auth-type";
|
|
10144
|
-
ConnectorCopilotFileChunkTopicKey["AuthImplementation"] = "auth-implementation";
|
|
10145
|
-
ConnectorCopilotFileChunkTopicKey["AuthConnectionParameters"] = "auth-connection-parameters";
|
|
10146
|
-
ConnectorCopilotFileChunkTopicKey["AuthApiClient"] = "auth-api-client";
|
|
10147
|
-
})(exports.ConnectorCopilotFileChunkTopicKey || (exports.ConnectorCopilotFileChunkTopicKey = {}));
|
|
10148
|
-
exports.CopilotTaskType = void 0;
|
|
10149
|
-
(function (CopilotTaskType) {
|
|
10150
|
-
CopilotTaskType["GenerateAuthType"] = "generate-auth-type";
|
|
10151
|
-
CopilotTaskType["GenerateOAuthConfiguration"] = "generate-oauth-configuration";
|
|
10152
|
-
CopilotTaskType["GenerateAuthConnectionParameters"] = "generate-auth-connection-parameters";
|
|
10153
|
-
CopilotTaskType["GenerateAuthApiClient"] = "generate-auth-api-client";
|
|
10154
|
-
CopilotTaskType["GenerateDataCollections"] = "generate-data-collections";
|
|
10155
|
-
CopilotTaskType["GenerateDataCollectionRecordFromFields"] = "generate-data-collection-record-from-fields";
|
|
10156
|
-
CopilotTaskType["GenerateDataCollectionOperationApiRequests"] = "generate-data-collection-operation-api-requests";
|
|
10157
|
-
CopilotTaskType["GenerateDataCollectionOperationApiRequestMapping"] = "generate-data-collection-operation-api-request-mapping";
|
|
10158
|
-
CopilotTaskType["GenerateDataCollectionFieldsSchema"] = "generate-data-collection-fields-schema";
|
|
10159
|
-
CopilotTaskType["GenerateUdmList"] = "generate-udm-list";
|
|
10160
|
-
CopilotTaskType["GenerateUdmFieldsMapping"] = "generate-udm-fields-mapping";
|
|
10161
|
-
})(exports.CopilotTaskType || (exports.CopilotTaskType = {}));
|
|
10162
|
-
exports.CopilotTaskStatus = void 0;
|
|
10163
|
-
(function (CopilotTaskStatus) {
|
|
10164
|
-
CopilotTaskStatus["Pending"] = "pending";
|
|
10165
|
-
CopilotTaskStatus["Running"] = "running";
|
|
10166
|
-
CopilotTaskStatus["Completed"] = "completed";
|
|
10167
|
-
CopilotTaskStatus["Failed"] = "failed";
|
|
10168
|
-
})(exports.CopilotTaskStatus || (exports.CopilotTaskStatus = {}));
|
|
10169
|
-
exports.CopilotActionType = void 0;
|
|
10170
|
-
(function (CopilotActionType) {
|
|
10171
|
-
CopilotActionType["PatchConnectorFile"] = "patch";
|
|
10172
|
-
CopilotActionType["PutConnectorFile"] = "put";
|
|
10173
|
-
CopilotActionType["PatchConnectorDataSchema"] = "patch-data-schema";
|
|
10174
|
-
CopilotActionType["PatchConnectorFieldMapping"] = "patch-field-mapping";
|
|
10175
|
-
CopilotActionType["SetConnectorAuthType"] = "set-connector-auth-type";
|
|
10176
|
-
})(exports.CopilotActionType || (exports.CopilotActionType = {}));
|
|
10177
|
-
exports.CopilotActionStatus = void 0;
|
|
10178
|
-
(function (CopilotActionStatus) {
|
|
10179
|
-
CopilotActionStatus["Suggested"] = "suggested";
|
|
10180
|
-
CopilotActionStatus["Executed"] = "executed";
|
|
10181
|
-
CopilotActionStatus["Rejected"] = "rejected";
|
|
10182
|
-
})(exports.CopilotActionStatus || (exports.CopilotActionStatus = {}));
|
|
10183
|
-
exports.CopilotActivityType = void 0;
|
|
10184
|
-
(function (CopilotActivityType) {
|
|
10185
|
-
CopilotActivityType["Task"] = "task";
|
|
10186
|
-
})(exports.CopilotActivityType || (exports.CopilotActivityType = {}));
|
|
10187
|
-
const CopilotActivityScope = {
|
|
10188
|
-
connector: (connectorId) => new CopilotActivityScopeConnector(connectorId),
|
|
10189
|
-
};
|
|
10190
|
-
class CopilotActivityScopeConnector {
|
|
10191
|
-
constructor(connectorId) {
|
|
10192
|
-
this.connectorId = connectorId;
|
|
10193
|
-
this.auth = () => new CopilotActivityScopeConnectorAuth(this);
|
|
10194
|
-
this.data = (key) => new CopilotActivityScopeConnectorData(this, key);
|
|
10195
|
-
this.udm = (key) => new CopilotActivityScopeConnectorUdm(this, key);
|
|
10196
|
-
}
|
|
10197
|
-
toString() {
|
|
10198
|
-
return `connectors/${this.connectorId}`;
|
|
10199
|
-
}
|
|
10200
|
-
}
|
|
10201
|
-
class CopilotActivityScopeConnectorAuth {
|
|
10202
|
-
constructor(connectorScope) {
|
|
10203
|
-
this.connectorScope = connectorScope;
|
|
10204
|
-
}
|
|
10205
|
-
toString() {
|
|
10206
|
-
return `${this.connectorScope.toString()}/auth`;
|
|
10207
|
-
}
|
|
10208
|
-
}
|
|
10209
|
-
class CopilotActivityScopeConnectorData {
|
|
10210
|
-
constructor(connectorScope, dataCollectionKey) {
|
|
10211
|
-
this.connectorScope = connectorScope;
|
|
10212
|
-
this.dataCollectionKey = dataCollectionKey;
|
|
10213
|
-
this.method = (key) => new CopilotActivityScopeConnectorDataMethod(this, key);
|
|
10214
|
-
}
|
|
10215
|
-
toString() {
|
|
10216
|
-
let scope = `${this.connectorScope.toString()}/data`;
|
|
10217
|
-
if (this.dataCollectionKey) {
|
|
10218
|
-
scope += `/${this.dataCollectionKey}`;
|
|
10219
|
-
}
|
|
10220
|
-
return scope;
|
|
10221
|
-
}
|
|
10222
|
-
}
|
|
10223
|
-
class CopilotActivityScopeConnectorDataMethod {
|
|
10224
|
-
constructor(collectionScope, methodKey) {
|
|
10225
|
-
this.collectionScope = collectionScope;
|
|
10226
|
-
this.methodKey = methodKey;
|
|
10227
|
-
}
|
|
10228
|
-
toString() {
|
|
10229
|
-
return `${this.collectionScope.toString()}/methods/${this.methodKey}`;
|
|
10230
|
-
}
|
|
10231
|
-
}
|
|
10232
|
-
class CopilotActivityScopeConnectorUdm {
|
|
10233
|
-
constructor(connectorScope, key) {
|
|
10234
|
-
this.connectorScope = connectorScope;
|
|
10235
|
-
this.key = key;
|
|
10236
|
-
this.collection = (key) => new CopilotActivityScopeConnectorUdmCollection(this, key);
|
|
10237
|
-
}
|
|
10238
|
-
toString() {
|
|
10239
|
-
let scope = `${this.connectorScope.toString()}/udm`;
|
|
10240
|
-
if (this.key) {
|
|
10241
|
-
scope += `/${this.key}`;
|
|
10242
|
-
}
|
|
10243
|
-
return scope;
|
|
10244
|
-
}
|
|
10245
|
-
}
|
|
10246
|
-
class CopilotActivityScopeConnectorUdmCollection {
|
|
10247
|
-
constructor(udmScope, key) {
|
|
10248
|
-
this.udmScope = udmScope;
|
|
10249
|
-
this.key = key;
|
|
10250
|
-
}
|
|
10251
|
-
toString() {
|
|
10252
|
-
return `${this.udmScope.toString()}/collection/${this.key}`;
|
|
10253
|
-
}
|
|
10254
|
-
}
|
|
10255
|
-
|
|
10256
10206
|
exports.LogRecordType = void 0;
|
|
10257
10207
|
(function (LogRecordType) {
|
|
10258
10208
|
LogRecordType["MSG"] = "message";
|
|
@@ -10526,6 +10476,7 @@ exports.UsageType = void 0;
|
|
|
10526
10476
|
UsageType["FILES_UPLOAD_NUMBER"] = "files-upload-number";
|
|
10527
10477
|
UsageType["FILES_UPLOAD_SIZE"] = "files-upload-size";
|
|
10528
10478
|
UsageType["CUSTOM_CODE_RUNTIME_DURATION"] = "custom-code-runtime-duration";
|
|
10479
|
+
UsageType["MEMBRANE_AGENT"] = "membrane-agent";
|
|
10529
10480
|
})(exports.UsageType || (exports.UsageType = {}));
|
|
10530
10481
|
|
|
10531
10482
|
function getNodeInputSchema(flow, nodeKey) {
|
|
@@ -10668,7 +10619,6 @@ const PARALLEL_EXECUTION_LIMITS = [
|
|
|
10668
10619
|
'parallelBackgroundJobs',
|
|
10669
10620
|
'parallelEventLogs',
|
|
10670
10621
|
'parallelEventLogsPerConnection',
|
|
10671
|
-
'parallelWriteDatabaseRequests',
|
|
10672
10622
|
'parallelPathfinderAgentSessions',
|
|
10673
10623
|
];
|
|
10674
10624
|
const RATE_LIMITS = [
|
|
@@ -10679,7 +10629,6 @@ const RATE_LIMITS = [
|
|
|
10679
10629
|
'webhookRequestsPerHour',
|
|
10680
10630
|
'workspaceElementCreationsPerHour',
|
|
10681
10631
|
'workspaceElementCreationsPerSecond',
|
|
10682
|
-
'createDatabaseRequestsPerSecond',
|
|
10683
10632
|
];
|
|
10684
10633
|
const WORKSPACE_SIZE_LIMITS = [
|
|
10685
10634
|
'totalNumberOfCustomers',
|
|
@@ -10695,9 +10644,6 @@ const EDITABLE_LIMITS = [
|
|
|
10695
10644
|
'webhookRequestsPerCustomerPerSecond',
|
|
10696
10645
|
'webhookRequestsPerCustomerPerHour',
|
|
10697
10646
|
'parallelFlowRunsPerConnection',
|
|
10698
|
-
'parallelWriteDatabaseRequestsPerCustomer',
|
|
10699
|
-
'createDatabaseRequestsPerCustomerPerSecond',
|
|
10700
|
-
'updateDatabaseRequestsPerCustomerPerSecond',
|
|
10701
10647
|
];
|
|
10702
10648
|
|
|
10703
10649
|
exports.OrgLimitsType = void 0;
|
|
@@ -10705,8 +10651,8 @@ exports.OrgLimitsType = void 0;
|
|
|
10705
10651
|
OrgLimitsType["NUMBER_OF_WORKSPACES"] = "numberOfWorkspaces";
|
|
10706
10652
|
OrgLimitsType["TODAY_USAGE"] = "todayUsage";
|
|
10707
10653
|
OrgLimitsType["LAST_THIRTY_DAY_USAGE"] = "lastThirtyDayUsage";
|
|
10708
|
-
OrgLimitsType["MEMBRANE_AGENT_MONTHLY_USAGE"] = "membraneAgentMonthlyUsage";
|
|
10709
10654
|
OrgLimitsType["MEMBRANE_EXPERT_CREDITS_CAP"] = "membraneExpertCreditsCapPerMonth";
|
|
10655
|
+
OrgLimitsType["MEMBRANE_AGENT_LAST_THIRTY_DAYS_USAGE"] = "membraneAgentLastThirtyDaysUsage";
|
|
10710
10656
|
})(exports.OrgLimitsType || (exports.OrgLimitsType = {}));
|
|
10711
10657
|
exports.OrgUserRole = void 0;
|
|
10712
10658
|
(function (OrgUserRole) {
|
|
@@ -10744,6 +10690,7 @@ exports.AlertType = void 0;
|
|
|
10744
10690
|
AlertType["externalEventsPerCustomerPerDay"] = "externalEventsPerCustomerPerDay";
|
|
10745
10691
|
AlertType["totalUsagePerDay"] = "totalUsagePerDay";
|
|
10746
10692
|
AlertType["totalUsagePer30Days"] = "totalUsagePer30Days";
|
|
10693
|
+
AlertType["membraneAgentUsagePer30Days"] = "membraneAgentUsagePer30Days";
|
|
10747
10694
|
})(exports.AlertType || (exports.AlertType = {}));
|
|
10748
10695
|
|
|
10749
10696
|
class ElementAccessor {
|
|
@@ -10877,6 +10824,55 @@ class ElementInstanceAccessor {
|
|
|
10877
10824
|
}
|
|
10878
10825
|
}
|
|
10879
10826
|
|
|
10827
|
+
class ConnectionLevelElementAccessor {
|
|
10828
|
+
constructor(client, connectionSelector, selector, elementKey, query) {
|
|
10829
|
+
this.client = client;
|
|
10830
|
+
this.connectionSelector = connectionSelector;
|
|
10831
|
+
this.selector = selector;
|
|
10832
|
+
this.elementKey = elementKey;
|
|
10833
|
+
this.query = query;
|
|
10834
|
+
this.endpoint = `/connections/${this.connectionSelector}/${elementKey}/${selector}`;
|
|
10835
|
+
}
|
|
10836
|
+
uri(path = '', query = {}) {
|
|
10837
|
+
return this.endpoint + path + '?' + qs.stringify({ ...this.query, ...query });
|
|
10838
|
+
}
|
|
10839
|
+
getUniqueIdentifier() {
|
|
10840
|
+
return this.endpoint;
|
|
10841
|
+
}
|
|
10842
|
+
async get(query = {}) {
|
|
10843
|
+
return this.client.get(this.uri('', query));
|
|
10844
|
+
}
|
|
10845
|
+
async create() {
|
|
10846
|
+
return this.client.put(this.uri());
|
|
10847
|
+
}
|
|
10848
|
+
async patch(data) {
|
|
10849
|
+
return this.client.patch(this.uri(), data);
|
|
10850
|
+
}
|
|
10851
|
+
async put(data) {
|
|
10852
|
+
return this.client.put(this.uri(), data);
|
|
10853
|
+
}
|
|
10854
|
+
async archive() {
|
|
10855
|
+
return this.client.delete(this.uri());
|
|
10856
|
+
}
|
|
10857
|
+
async reset() {
|
|
10858
|
+
return this.client.post(this.uri('/reset'));
|
|
10859
|
+
}
|
|
10860
|
+
async setup() {
|
|
10861
|
+
return this.client.post(this.uri('/setup'));
|
|
10862
|
+
}
|
|
10863
|
+
}
|
|
10864
|
+
class ConnectionLevelElementsListAccessor {
|
|
10865
|
+
constructor(client, connectionSelector, elementKey) {
|
|
10866
|
+
this.client = client;
|
|
10867
|
+
this.connectionSelector = connectionSelector;
|
|
10868
|
+
this.elementKey = elementKey;
|
|
10869
|
+
}
|
|
10870
|
+
async list(query) {
|
|
10871
|
+
const endpoint = `/connections/${this.connectionSelector}/${this.elementKey}?${qs.stringify(query !== null && query !== void 0 ? query : {})}`;
|
|
10872
|
+
return this.client.get(endpoint);
|
|
10873
|
+
}
|
|
10874
|
+
}
|
|
10875
|
+
|
|
10880
10876
|
class IntegrationLevelElementAccessor {
|
|
10881
10877
|
constructor(client, integrationSelector, elementSelector, elementKey) {
|
|
10882
10878
|
this.client = client;
|
|
@@ -10935,6 +10931,15 @@ class ActionAccessor extends ElementAccessor {
|
|
|
10935
10931
|
async reset() {
|
|
10936
10932
|
return await this.options.client.post(this.getPath('reset'));
|
|
10937
10933
|
}
|
|
10934
|
+
async run(input, options) {
|
|
10935
|
+
const queryParams = options
|
|
10936
|
+
? {
|
|
10937
|
+
integrationKey: options.integrationKey,
|
|
10938
|
+
connectionId: options.connectionId,
|
|
10939
|
+
}
|
|
10940
|
+
: {};
|
|
10941
|
+
return this.options.client.post(this.getPath('run'), { input }, { params: queryParams });
|
|
10942
|
+
}
|
|
10938
10943
|
}
|
|
10939
10944
|
class IntegrationLevelActionAccessor extends IntegrationLevelElementAccessor {
|
|
10940
10945
|
constructor(client, integrationSelector, actionSelector) {
|
|
@@ -10951,6 +10956,25 @@ class IntegrationLevelActionsListAccessor extends IntegrationLevelElementsListAc
|
|
|
10951
10956
|
this.integrationSelector = integrationSelector;
|
|
10952
10957
|
}
|
|
10953
10958
|
}
|
|
10959
|
+
class ConnectionLevelActionAccessor extends ConnectionLevelElementAccessor {
|
|
10960
|
+
constructor(client, connectionSelector, actionSelector, query) {
|
|
10961
|
+
super(client, connectionSelector, actionSelector, 'actions', query);
|
|
10962
|
+
this.client = client;
|
|
10963
|
+
this.connectionSelector = connectionSelector;
|
|
10964
|
+
this.actionSelector = actionSelector;
|
|
10965
|
+
this.query = query;
|
|
10966
|
+
}
|
|
10967
|
+
async run(input) {
|
|
10968
|
+
return this.client.post(this.uri('/run'), input);
|
|
10969
|
+
}
|
|
10970
|
+
}
|
|
10971
|
+
class ConnectionLevelActionsAccessor extends ConnectionLevelElementsListAccessor {
|
|
10972
|
+
constructor(client, connectionSelector) {
|
|
10973
|
+
super(client, connectionSelector, 'actions');
|
|
10974
|
+
this.client = client;
|
|
10975
|
+
this.connectionSelector = connectionSelector;
|
|
10976
|
+
}
|
|
10977
|
+
}
|
|
10954
10978
|
|
|
10955
10979
|
const POPUP_ELEMENT_ID = '__integration-app-popup';
|
|
10956
10980
|
const CONTAINER_ELEMENT_ID = '__integration-app-container';
|
|
@@ -11177,104 +11201,6 @@ function handleIframeUnmount(iframe) {
|
|
|
11177
11201
|
}
|
|
11178
11202
|
}
|
|
11179
11203
|
|
|
11180
|
-
class ConnectionLevelElementAccessor {
|
|
11181
|
-
constructor(client, connectionSelector, selector, elementKey, query) {
|
|
11182
|
-
this.client = client;
|
|
11183
|
-
this.connectionSelector = connectionSelector;
|
|
11184
|
-
this.selector = selector;
|
|
11185
|
-
this.elementKey = elementKey;
|
|
11186
|
-
this.query = query;
|
|
11187
|
-
this.endpoint = `/connections/${this.connectionSelector}/${elementKey}/${selector}`;
|
|
11188
|
-
}
|
|
11189
|
-
uri(path = '', query = {}) {
|
|
11190
|
-
return this.endpoint + path + '?' + qs.stringify({ ...this.query, ...query });
|
|
11191
|
-
}
|
|
11192
|
-
getUniqueIdentifier() {
|
|
11193
|
-
return this.endpoint;
|
|
11194
|
-
}
|
|
11195
|
-
async get(query = {}) {
|
|
11196
|
-
return this.client.get(this.uri('', query));
|
|
11197
|
-
}
|
|
11198
|
-
async create() {
|
|
11199
|
-
return this.client.put(this.uri());
|
|
11200
|
-
}
|
|
11201
|
-
async patch(data) {
|
|
11202
|
-
return this.client.patch(this.uri(), data);
|
|
11203
|
-
}
|
|
11204
|
-
async put(data) {
|
|
11205
|
-
return this.client.put(this.uri(), data);
|
|
11206
|
-
}
|
|
11207
|
-
async archive() {
|
|
11208
|
-
return this.client.delete(this.uri());
|
|
11209
|
-
}
|
|
11210
|
-
async reset() {
|
|
11211
|
-
return this.client.post(this.uri('/reset'));
|
|
11212
|
-
}
|
|
11213
|
-
async setup() {
|
|
11214
|
-
return this.client.post(this.uri('/setup'));
|
|
11215
|
-
}
|
|
11216
|
-
}
|
|
11217
|
-
class ConnectionLevelElementsListAccessor {
|
|
11218
|
-
constructor(client, connectionSelector, elementKey) {
|
|
11219
|
-
this.client = client;
|
|
11220
|
-
this.connectionSelector = connectionSelector;
|
|
11221
|
-
this.elementKey = elementKey;
|
|
11222
|
-
}
|
|
11223
|
-
async list(query) {
|
|
11224
|
-
const endpoint = `/connections/${this.connectionSelector}/${this.elementKey}?${qs.stringify(query !== null && query !== void 0 ? query : {})}`;
|
|
11225
|
-
return this.client.get(endpoint);
|
|
11226
|
-
}
|
|
11227
|
-
}
|
|
11228
|
-
|
|
11229
|
-
class ActionInstancesAccessor extends ElementInstanceListAccessor {
|
|
11230
|
-
constructor(client) {
|
|
11231
|
-
super(client, 'action-instances');
|
|
11232
|
-
}
|
|
11233
|
-
}
|
|
11234
|
-
class ActionInstanceAccessor extends ElementInstanceAccessor {
|
|
11235
|
-
constructor(client, selector) {
|
|
11236
|
-
super({
|
|
11237
|
-
client,
|
|
11238
|
-
instancePath: 'action-instance',
|
|
11239
|
-
selector,
|
|
11240
|
-
});
|
|
11241
|
-
this.client = client;
|
|
11242
|
-
}
|
|
11243
|
-
async setup() {
|
|
11244
|
-
await this.client.post(this.getPath('setup'));
|
|
11245
|
-
}
|
|
11246
|
-
async reset() {
|
|
11247
|
-
await this.client.post(this.getPath('reset'));
|
|
11248
|
-
}
|
|
11249
|
-
async run(input) {
|
|
11250
|
-
return this.client.post(this.getPath('run'), input);
|
|
11251
|
-
}
|
|
11252
|
-
async open({ onClose = () => { } } = {}) {
|
|
11253
|
-
const id = await this.getId();
|
|
11254
|
-
const uri = await this.client.getEmbedUri(`action-instances/${id}/configuration`);
|
|
11255
|
-
return openIframe(uri, { onClose });
|
|
11256
|
-
}
|
|
11257
|
-
}
|
|
11258
|
-
class ConnectionLevelActionAccessor extends ConnectionLevelElementAccessor {
|
|
11259
|
-
constructor(client, connectionSelector, actionSelector, query) {
|
|
11260
|
-
super(client, connectionSelector, actionSelector, 'actions', query);
|
|
11261
|
-
this.client = client;
|
|
11262
|
-
this.connectionSelector = connectionSelector;
|
|
11263
|
-
this.actionSelector = actionSelector;
|
|
11264
|
-
this.query = query;
|
|
11265
|
-
}
|
|
11266
|
-
async run(input) {
|
|
11267
|
-
return this.client.post(this.uri('/run'), input);
|
|
11268
|
-
}
|
|
11269
|
-
}
|
|
11270
|
-
class ConnectionLevelActionsAccessor extends ConnectionLevelElementsListAccessor {
|
|
11271
|
-
constructor(client, connectionSelector) {
|
|
11272
|
-
super(client, connectionSelector, 'actions');
|
|
11273
|
-
this.client = client;
|
|
11274
|
-
this.connectionSelector = connectionSelector;
|
|
11275
|
-
}
|
|
11276
|
-
}
|
|
11277
|
-
|
|
11278
11204
|
class DataSourcesAccessor extends ElementListAccessor {
|
|
11279
11205
|
constructor(client) {
|
|
11280
11206
|
super(client, 'data-sources');
|
|
@@ -12244,6 +12170,36 @@ class UserAccessor extends CustomerAccessor {
|
|
|
12244
12170
|
}
|
|
12245
12171
|
}
|
|
12246
12172
|
|
|
12173
|
+
class ActionInstancesAccessor extends ElementInstanceListAccessor {
|
|
12174
|
+
constructor(client) {
|
|
12175
|
+
super(client, 'action-instances');
|
|
12176
|
+
}
|
|
12177
|
+
}
|
|
12178
|
+
class ActionInstanceAccessor extends ElementInstanceAccessor {
|
|
12179
|
+
constructor(client, selector) {
|
|
12180
|
+
super({
|
|
12181
|
+
client,
|
|
12182
|
+
instancePath: 'action-instance',
|
|
12183
|
+
selector,
|
|
12184
|
+
});
|
|
12185
|
+
this.client = client;
|
|
12186
|
+
}
|
|
12187
|
+
async setup() {
|
|
12188
|
+
await this.client.post(this.getPath('setup'));
|
|
12189
|
+
}
|
|
12190
|
+
async reset() {
|
|
12191
|
+
await this.client.post(this.getPath('reset'));
|
|
12192
|
+
}
|
|
12193
|
+
async run(input) {
|
|
12194
|
+
return this.client.post(this.getPath('run'), input);
|
|
12195
|
+
}
|
|
12196
|
+
async open({ onClose = () => { } } = {}) {
|
|
12197
|
+
const id = await this.getId();
|
|
12198
|
+
const uri = await this.client.getEmbedUri(`action-instances/${id}/configuration`);
|
|
12199
|
+
return openIframe(uri, { onClose });
|
|
12200
|
+
}
|
|
12201
|
+
}
|
|
12202
|
+
|
|
12247
12203
|
class DataLinkTablesAccessor extends ElementListAccessor {
|
|
12248
12204
|
constructor(client) {
|
|
12249
12205
|
super(client, 'data-link-tables');
|
|
@@ -12514,6 +12470,9 @@ const DEFAULT_API_URI = 'https://api.integration.app';
|
|
|
12514
12470
|
const DEFAULT_UI_URI = 'https://ui.integration.app';
|
|
12515
12471
|
const REFETCH_EXPIRATION_THRESHOLD = 10 * 1000;
|
|
12516
12472
|
function decodeToken(token) {
|
|
12473
|
+
if (token.startsWith('pat-')) {
|
|
12474
|
+
return null;
|
|
12475
|
+
}
|
|
12517
12476
|
const payload = decodeJWT(token);
|
|
12518
12477
|
if (!payload) {
|
|
12519
12478
|
throw new Error('Access token should be a valid JWT token.');
|
|
@@ -12543,7 +12502,7 @@ class MembraneApiClient {
|
|
|
12543
12502
|
}
|
|
12544
12503
|
else {
|
|
12545
12504
|
const payload = decodeToken(this.token);
|
|
12546
|
-
if (payload.exp) {
|
|
12505
|
+
if (payload === null || payload === void 0 ? void 0 : payload.exp) {
|
|
12547
12506
|
const willExpireSoon = new Date(payload.exp * 1000).getTime() - new Date().getTime() < REFETCH_EXPIRATION_THRESHOLD;
|
|
12548
12507
|
if (willExpireSoon) {
|
|
12549
12508
|
this.token = await this.fetchToken();
|
|
@@ -12947,6 +12906,7 @@ exports.ActionAccessor = ActionAccessor;
|
|
|
12947
12906
|
exports.ActionApiResponse = ActionApiResponse;
|
|
12948
12907
|
exports.ActionDependency = ActionDependency;
|
|
12949
12908
|
exports.ActionEditableProperties = ActionEditableProperties;
|
|
12909
|
+
exports.ActionExportProperties = ActionExportProperties;
|
|
12950
12910
|
exports.ActionInstanceAccessor = ActionInstanceAccessor;
|
|
12951
12911
|
exports.ActionInstanceApiResponse = ActionInstanceApiResponse;
|
|
12952
12912
|
exports.ActionInstanceSetupError = ActionInstanceSetupError;
|
|
@@ -12998,6 +12958,7 @@ exports.BaseFlowRun = BaseFlowRun;
|
|
|
12998
12958
|
exports.BaseIntegration = BaseIntegration;
|
|
12999
12959
|
exports.BaseIntegrationLevelMembraneInterface = BaseIntegrationLevelMembraneInterface;
|
|
13000
12960
|
exports.BaseIntegrationLevelMembraneInterfaceEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties;
|
|
12961
|
+
exports.BaseIntegrationLevelMembraneInterfaceExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties;
|
|
13001
12962
|
exports.BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties;
|
|
13002
12963
|
exports.BaseMembraneInterface = BaseMembraneInterface;
|
|
13003
12964
|
exports.BaseMembraneInterfaceEditableProperties = BaseMembraneInterfaceEditableProperties;
|
|
@@ -13045,7 +13006,6 @@ exports.ConnectorDataCollectionMethodKeys = ConnectorDataCollectionMethodKeys;
|
|
|
13045
13006
|
exports.ConnectorDataLocationTypes = ConnectorDataLocationTypes;
|
|
13046
13007
|
exports.ConnectorEventHandlerMethods = ConnectorEventHandlerMethods;
|
|
13047
13008
|
exports.ConnectorOperationMethodImplementationTypes = ConnectorOperationMethodImplementationTypes;
|
|
13048
|
-
exports.CopilotActivityScope = CopilotActivityScope;
|
|
13049
13009
|
exports.CreateActionInstanceRequest = CreateActionInstanceRequest;
|
|
13050
13010
|
exports.CreateActionRequest = CreateActionRequest;
|
|
13051
13011
|
exports.CreateAgentSession = CreateAgentSession;
|
|
@@ -13119,6 +13079,7 @@ exports.DataSchema = DataSchema;
|
|
|
13119
13079
|
exports.DataSourceAccessor = DataSourceAccessor;
|
|
13120
13080
|
exports.DataSourceApiResponse = DataSourceApiResponse;
|
|
13121
13081
|
exports.DataSourceEditableProperties = DataSourceEditableProperties;
|
|
13082
|
+
exports.DataSourceExportProperties = DataSourceExportProperties;
|
|
13122
13083
|
exports.DataSourceInstanceAccessor = DataSourceInstanceAccessor;
|
|
13123
13084
|
exports.DataSourceInstanceApiResponse = DataSourceInstanceApiResponse;
|
|
13124
13085
|
exports.DataSourceInstancesAccessor = DataSourceInstancesAccessor;
|
|
@@ -13146,6 +13107,7 @@ exports.FLOW_NODE_SPECS = FLOW_NODE_SPECS;
|
|
|
13146
13107
|
exports.FieldMappingAccessor = FieldMappingAccessor;
|
|
13147
13108
|
exports.FieldMappingApiResponse = FieldMappingApiResponse;
|
|
13148
13109
|
exports.FieldMappingEditableProperties = FieldMappingEditableProperties;
|
|
13110
|
+
exports.FieldMappingExportProperties = FieldMappingExportProperties;
|
|
13149
13111
|
exports.FieldMappingInstanceAccessor = FieldMappingInstanceAccessor;
|
|
13150
13112
|
exports.FieldMappingInstanceApiResponse = FieldMappingInstanceApiResponse;
|
|
13151
13113
|
exports.FieldMappingInstancesAccessor = FieldMappingInstancesAccessor;
|
|
@@ -13172,6 +13134,7 @@ exports.FindPackagesQuery = FindPackagesQuery;
|
|
|
13172
13134
|
exports.FlowAccessor = FlowAccessor;
|
|
13173
13135
|
exports.FlowApiResponse = FlowApiResponse;
|
|
13174
13136
|
exports.FlowEditableProperties = FlowEditableProperties;
|
|
13137
|
+
exports.FlowExportProperties = FlowExportProperties;
|
|
13175
13138
|
exports.FlowInstanceAccessor = FlowInstanceAccessor;
|
|
13176
13139
|
exports.FlowInstanceApiResponse = FlowInstanceApiResponse;
|
|
13177
13140
|
exports.FlowInstanceNode = FlowInstanceNode;
|
|
@@ -13205,6 +13168,7 @@ exports.IntegrationApiResponse = IntegrationApiResponse;
|
|
|
13205
13168
|
exports.IntegrationAppClient = MembraneClient;
|
|
13206
13169
|
exports.IntegrationAuthOption = IntegrationAuthOption;
|
|
13207
13170
|
exports.IntegrationAuthUi = IntegrationAuthUi;
|
|
13171
|
+
exports.IntegrationExportProperties = IntegrationExportProperties;
|
|
13208
13172
|
exports.IntegrationLevelActionAccessor = IntegrationLevelActionAccessor;
|
|
13209
13173
|
exports.IntegrationLevelActionsListAccessor = IntegrationLevelActionsListAccessor;
|
|
13210
13174
|
exports.IntegrationLevelDataSourceAccessor = IntegrationLevelDataSourceAccessor;
|
|
@@ -13222,6 +13186,7 @@ exports.ListDataSourceInstancesForConnectionQuery = ListDataSourceInstancesForCo
|
|
|
13222
13186
|
exports.ListExternalEventLogRecordsQuery = ListExternalEventLogRecordsQuery;
|
|
13223
13187
|
exports.ListExternalEventPullsQuery = ListExternalEventPullsQuery;
|
|
13224
13188
|
exports.ListFlowInstancesForConnectionQuery = ListFlowInstancesForConnectionQuery;
|
|
13189
|
+
exports.MEMBRANE_ELEMENT_CONFIG_FILE_NAME = MEMBRANE_ELEMENT_CONFIG_FILE_NAME;
|
|
13225
13190
|
exports.MIN_FULL_SYNC_INTERVAL_SECONDS = MIN_FULL_SYNC_INTERVAL_SECONDS;
|
|
13226
13191
|
exports.MIN_PULL_UPDATES_INTERVAL_SECONDS = MIN_PULL_UPDATES_INTERVAL_SECONDS;
|
|
13227
13192
|
exports.MembraneAxiosInstance = axios;
|
|
@@ -13240,6 +13205,8 @@ exports.PackageCalculatedProperties = PackageCalculatedProperties;
|
|
|
13240
13205
|
exports.PackageEditableProperties = PackageEditableProperties;
|
|
13241
13206
|
exports.PackageElement = PackageElement;
|
|
13242
13207
|
exports.PackageElementApi = PackageElementApi;
|
|
13208
|
+
exports.PackageElementExport = PackageElementExport;
|
|
13209
|
+
exports.PackageExportProperties = PackageExportProperties;
|
|
13243
13210
|
exports.PackagesAccessor = PackagesAccessor;
|
|
13244
13211
|
exports.PaginationQuery = PaginationQuery;
|
|
13245
13212
|
exports.PaginationResponse = PaginationResponse;
|
|
@@ -13330,6 +13297,7 @@ exports.getFullTitleForLocator = getFullTitleForLocator;
|
|
|
13330
13297
|
exports.getIconUriForLocator = getIconUriForLocator;
|
|
13331
13298
|
exports.getLocatorsFromData = getLocatorsFromData;
|
|
13332
13299
|
exports.getLocatorsFromSchema = getLocatorsFromSchema;
|
|
13300
|
+
exports.getMembraneElementPath = getMembraneElementPath;
|
|
13333
13301
|
exports.getMissingRequiredFields = getMissingRequiredFields;
|
|
13334
13302
|
exports.getNameComponentsForLocator = getNameComponentsForLocator;
|
|
13335
13303
|
exports.getNameForLocator = getNameForLocator;
|
|
@@ -13376,6 +13344,7 @@ exports.mergeWithFormulas = mergeWithFormulas;
|
|
|
13376
13344
|
exports.nonEmptyObjectProperties = nonEmptyObjectProperties;
|
|
13377
13345
|
exports.parseDataLocationPath = parseDataLocationPath;
|
|
13378
13346
|
exports.parseDate = parseDate;
|
|
13347
|
+
exports.parseMembraneElementPath = parseMembraneElementPath;
|
|
13379
13348
|
exports.patchSchema = patchSchema;
|
|
13380
13349
|
exports.pickFieldsFromSchema = pickFieldsFromSchema;
|
|
13381
13350
|
exports.pickFieldsFromValue = pickFieldsFromValue;
|