@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.browser.js
CHANGED
|
@@ -3385,6 +3385,7 @@ const zodBooleanCoercion = () => zod.z.preprocess((val) => {
|
|
|
3385
3385
|
return Boolean(val);
|
|
3386
3386
|
return Boolean(val);
|
|
3387
3387
|
}, zod.z.boolean());
|
|
3388
|
+
|
|
3388
3389
|
const IncludeArchivedQuery = zod.z.object({
|
|
3389
3390
|
includeArchived: zodBooleanCoercion().optional(),
|
|
3390
3391
|
});
|
|
@@ -3439,7 +3440,6 @@ exports.WorkspaceElementType = void 0;
|
|
|
3439
3440
|
WorkspaceElementType["ExternalEventSubscription"] = "external-event-subscription";
|
|
3440
3441
|
WorkspaceElementType["ExternalEventLogRecord"] = "external-event-log-record";
|
|
3441
3442
|
WorkspaceElementType["ExternalEventPull"] = "external-event-pull";
|
|
3442
|
-
WorkspaceElementType["DataCollection"] = "data-collection";
|
|
3443
3443
|
WorkspaceElementType["Screen"] = "screen";
|
|
3444
3444
|
WorkspaceElementType["ActionRunLogRecord"] = "action-run-log-record";
|
|
3445
3445
|
})(exports.WorkspaceElementType || (exports.WorkspaceElementType = {}));
|
|
@@ -3471,9 +3471,9 @@ const BaseWorkspaceElement = zod.z.object({
|
|
|
3471
3471
|
name: zod.z.string(),
|
|
3472
3472
|
});
|
|
3473
3473
|
const BaseMembraneInterfaceEditableProperties = zod.z.object({
|
|
3474
|
+
uuid: zod.z.string().optional(),
|
|
3474
3475
|
key: zod.z.string().optional(),
|
|
3475
3476
|
name: zod.z.string().optional(),
|
|
3476
|
-
uuid: zod.z.string().optional(),
|
|
3477
3477
|
description: zod.z.string().optional(),
|
|
3478
3478
|
meta: zod.z.record(zod.z.string(), zod.z.any()).optional(),
|
|
3479
3479
|
});
|
|
@@ -3489,14 +3489,20 @@ const BaseMembraneInterfaceReadOnlyProperties = zod.z.object({
|
|
|
3489
3489
|
});
|
|
3490
3490
|
const BaseMembraneInterface = BaseWorkspaceElement.merge(BaseMembraneInterfaceEditableProperties).merge(BaseMembraneInterfaceReadOnlyProperties);
|
|
3491
3491
|
const BaseIntegrationLevelMembraneInterfaceEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
3492
|
-
integrationUuid: zod.z.string().optional(),
|
|
3493
|
-
parentUuid: zod.z.string().optional(),
|
|
3494
3492
|
integrationId: zod.z.string().optional(),
|
|
3493
|
+
integrationUuid: zod.z.string().optional(),
|
|
3495
3494
|
parentId: zod.z.string().optional(),
|
|
3495
|
+
parentUuid: zod.z.string().optional(),
|
|
3496
|
+
connectionId: zod.z.string().optional(),
|
|
3497
|
+
instanceKey: zod.z.string().optional(),
|
|
3496
3498
|
});
|
|
3497
3499
|
const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties.extend({
|
|
3498
3500
|
isCustomized: zod.z.boolean().optional(),
|
|
3499
3501
|
});
|
|
3502
|
+
const BaseIntegrationLevelMembraneInterfaceExportProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
3503
|
+
integrationUuid: zod.z.string().optional(),
|
|
3504
|
+
parentUuid: zod.z.string().optional(),
|
|
3505
|
+
});
|
|
3500
3506
|
const IntegrationLevelMembraneInterfaceSelectorQuery = zod.z.object({
|
|
3501
3507
|
layer: zod.z.enum(['universal', 'integration', 'connection']).optional(),
|
|
3502
3508
|
integrationKey: zod.z.string().optional(),
|
|
@@ -3547,14 +3553,11 @@ exports.FieldMappingDirection = void 0;
|
|
|
3547
3553
|
FieldMappingDirection["EXPORT"] = "export";
|
|
3548
3554
|
FieldMappingDirection["BOTH"] = "both";
|
|
3549
3555
|
})(exports.FieldMappingDirection || (exports.FieldMappingDirection = {}));
|
|
3550
|
-
const
|
|
3551
|
-
parentId: true,
|
|
3552
|
-
}).extend({
|
|
3556
|
+
const FieldMappingSpecificProperties = zod.z.object({
|
|
3553
3557
|
connectionId: zod.z.string().optional(),
|
|
3554
3558
|
fieldMappingId: zod.z.string().optional(),
|
|
3555
3559
|
universalFieldMappingId: zod.z.string().optional(),
|
|
3556
3560
|
dataSourceKey: zod.z.string().optional(),
|
|
3557
|
-
dataSourceId: zod.z.string().optional(),
|
|
3558
3561
|
appSchema: DataSchema.optional(),
|
|
3559
3562
|
direction: zod.z.enum(exports.FieldMappingDirection).optional(),
|
|
3560
3563
|
defaultImportValue: zod.z.any().optional(),
|
|
@@ -3565,6 +3568,14 @@ const FieldMappingEditableProperties = BaseIntegrationLevelMembraneInterfaceEdit
|
|
|
3565
3568
|
frozenExportFields: zod.z.any().optional(),
|
|
3566
3569
|
frozenUnifiedExportFields: zod.z.any().optional(),
|
|
3567
3570
|
});
|
|
3571
|
+
const FieldMappingEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
|
|
3572
|
+
parentId: true,
|
|
3573
|
+
}).extend(FieldMappingSpecificProperties.shape);
|
|
3574
|
+
const FieldMappingExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(FieldMappingSpecificProperties.shape).omit({
|
|
3575
|
+
connectionId: true,
|
|
3576
|
+
fieldMappingId: true,
|
|
3577
|
+
universalFieldMappingId: true,
|
|
3578
|
+
});
|
|
3568
3579
|
const FieldMappingReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
3569
3580
|
universalFieldMappingRevision: zod.z.string().optional(),
|
|
3570
3581
|
});
|
|
@@ -3688,15 +3699,19 @@ const ActionDependency = zod.z.object({
|
|
|
3688
3699
|
key: zod.z.string(),
|
|
3689
3700
|
element: zod.z.any().optional(),
|
|
3690
3701
|
});
|
|
3691
|
-
const
|
|
3702
|
+
const ActionSpecificProperties = zod.z.object({
|
|
3692
3703
|
connectionId: zod.z.string().optional(),
|
|
3693
3704
|
instanceKey: zod.z.string().optional(),
|
|
3694
3705
|
inputSchema: DataSchema.optional(),
|
|
3695
3706
|
type: zod.z.enum(exports.ActionType).optional(),
|
|
3696
|
-
config: zod.z.
|
|
3707
|
+
config: zod.z.object({}).loose().optional(),
|
|
3697
3708
|
outputMapping: zod.z.any().optional(),
|
|
3698
3709
|
customOutputSchema: DataSchema.optional(),
|
|
3699
3710
|
});
|
|
3711
|
+
const ActionEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.extend(ActionSpecificProperties.shape);
|
|
3712
|
+
const ActionExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(ActionSpecificProperties.shape).omit({
|
|
3713
|
+
connectionId: true,
|
|
3714
|
+
});
|
|
3700
3715
|
const ActionReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
3701
3716
|
universalParentId: zod.z.string().optional(),
|
|
3702
3717
|
userId: zod.z.string().optional(),
|
|
@@ -8405,9 +8420,7 @@ const DEFAULT_PULL_UPDATES_INTERVAL_SECONDS = 60 * 5;
|
|
|
8405
8420
|
const DEFAULT_FULL_SYNC_INTERVAL_SECONDS = 60 * 60 * 3;
|
|
8406
8421
|
const MIN_FULL_SYNC_INTERVAL_SECONDS = 1 * 60;
|
|
8407
8422
|
const MIN_PULL_UPDATES_INTERVAL_SECONDS = 1 * 60;
|
|
8408
|
-
const
|
|
8409
|
-
parentId: true,
|
|
8410
|
-
}).extend({
|
|
8423
|
+
const DataSourceSpecificProperties = zod.z.object({
|
|
8411
8424
|
connectionId: zod.z.string().optional(),
|
|
8412
8425
|
dataSourceId: zod.z.string().optional(),
|
|
8413
8426
|
universalDataSourceId: zod.z.string().optional(),
|
|
@@ -8418,18 +8431,27 @@ const DataSourceEditableProperties = BaseIntegrationLevelMembraneInterfaceEditab
|
|
|
8418
8431
|
collectionParameters: zod.z.any().optional(),
|
|
8419
8432
|
defaultPath: zod.z.string().optional(),
|
|
8420
8433
|
});
|
|
8434
|
+
const DataSourceEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
|
|
8435
|
+
parentId: true,
|
|
8436
|
+
}).extend(DataSourceSpecificProperties.shape);
|
|
8437
|
+
const DataSourceExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(DataSourceSpecificProperties.shape).omit({
|
|
8438
|
+
connectionId: true,
|
|
8439
|
+
dataSourceId: true,
|
|
8440
|
+
universalDataSourceId: true,
|
|
8441
|
+
});
|
|
8421
8442
|
const DataSourceReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
8422
8443
|
universalDataSourceRevision: zod.z.string().optional(),
|
|
8423
8444
|
});
|
|
8424
8445
|
const BaseDataSource = BaseMembraneInterface.merge(DataSourceEditableProperties).merge(DataSourceReadOnlyProperties);
|
|
8425
8446
|
const DataSourceUnitConfig = zod.z.object({
|
|
8426
|
-
key: zod.z.
|
|
8447
|
+
key: zod.z.any().optional(),
|
|
8427
8448
|
collectionKey: zod.z.any().optional(),
|
|
8428
8449
|
collectionParameters: zod.z.any().optional(),
|
|
8429
8450
|
udm: zod.z.any().optional(),
|
|
8430
|
-
path: zod.z.string().optional(),
|
|
8431
8451
|
pullUpdatesIntervalSeconds: zod.z.number().optional(),
|
|
8432
8452
|
fullSyncIntervalSeconds: zod.z.number().optional(),
|
|
8453
|
+
path: zod.z.any().optional(),
|
|
8454
|
+
defaultPath: zod.z.any().optional(),
|
|
8433
8455
|
});
|
|
8434
8456
|
|
|
8435
8457
|
const BaseDataSourceInstance = BaseMembraneInterface.extend({
|
|
@@ -8896,16 +8918,22 @@ const FLOW_NODE_SPECS = {
|
|
|
8896
8918
|
[exports.FlowNodeType.RunAction]: RunAction,
|
|
8897
8919
|
};
|
|
8898
8920
|
|
|
8899
|
-
const
|
|
8900
|
-
parentId: true,
|
|
8901
|
-
}).extend({
|
|
8902
|
-
connectionId: zod.z.string().optional(),
|
|
8921
|
+
const FlowSpecificProperties = zod.z.object({
|
|
8903
8922
|
flowId: zod.z.string().optional(),
|
|
8904
8923
|
universalFlowId: zod.z.string().optional(),
|
|
8905
8924
|
parametersSchema: DataSchema.optional(),
|
|
8925
|
+
parameters: zod.z.any().optional(),
|
|
8926
|
+
enabled: zod.z.boolean().optional(),
|
|
8906
8927
|
nodes: zod.z.record(zod.z.string(), FlowNode).optional(),
|
|
8907
8928
|
autoCreateInstances: zod.z.boolean().optional(),
|
|
8908
8929
|
});
|
|
8930
|
+
const FlowEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
|
|
8931
|
+
parentId: true,
|
|
8932
|
+
}).extend(FlowSpecificProperties.shape);
|
|
8933
|
+
const FlowExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(FlowSpecificProperties.shape).omit({
|
|
8934
|
+
flowId: true,
|
|
8935
|
+
universalFlowId: true,
|
|
8936
|
+
});
|
|
8909
8937
|
const FlowReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
8910
8938
|
universalFlowRevision: zod.z.string().optional(),
|
|
8911
8939
|
});
|
|
@@ -8933,6 +8961,14 @@ const BaseIntegration = BaseMembraneInterface.extend({
|
|
|
8933
8961
|
isDeactivated: zod.z.boolean().optional(),
|
|
8934
8962
|
authType: zod.z.enum(CONNECTOR_AUTH_TYPES).optional(),
|
|
8935
8963
|
});
|
|
8964
|
+
const IntegrationExportProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
8965
|
+
logoUri: zod.z.string(),
|
|
8966
|
+
connectorUuid: zod.z.string().optional(),
|
|
8967
|
+
connectorVersion: zod.z.string().optional(),
|
|
8968
|
+
oAuthCallbackUri: zod.z.string().optional(),
|
|
8969
|
+
parameters: zod.z.any().optional(),
|
|
8970
|
+
appUuid: zod.z.string().optional(),
|
|
8971
|
+
});
|
|
8936
8972
|
const AppliedToIntegrations = (elementSchema) => zod.z.array(zod.z.object({
|
|
8937
8973
|
element: elementSchema,
|
|
8938
8974
|
integration: BaseIntegration,
|
|
@@ -8963,12 +8999,17 @@ const PackageElement = zod.z.object({
|
|
|
8963
8999
|
type: zod.z.enum(exports.IntegrationElementType),
|
|
8964
9000
|
element: zod.z.any().optional(),
|
|
8965
9001
|
});
|
|
8966
|
-
const
|
|
9002
|
+
const PackageElementExport = zod.z.object({
|
|
9003
|
+
uuid: zod.z.string(),
|
|
9004
|
+
type: zod.z.enum(exports.IntegrationElementType),
|
|
9005
|
+
element: zod.z.any().optional(),
|
|
9006
|
+
});
|
|
9007
|
+
const PackageEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.extend({
|
|
8967
9008
|
scenarioTemplateId: zod.z.string().optional(),
|
|
8968
9009
|
elements: zod.z.array(PackageElement).optional(),
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
9010
|
+
});
|
|
9011
|
+
const PackageExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend({
|
|
9012
|
+
elements: zod.z.array(PackageElementExport).optional(),
|
|
8972
9013
|
});
|
|
8973
9014
|
const PackageCalculatedProperties = zod.z.object({
|
|
8974
9015
|
key: zod.z.string(),
|
|
@@ -9202,6 +9243,7 @@ const BaseAppEventType = BaseMembraneInterface.extend({
|
|
|
9202
9243
|
example: zod.z.any().optional(),
|
|
9203
9244
|
schema: DataSchema.optional(),
|
|
9204
9245
|
globalWebhookUri: zod.z.string(),
|
|
9246
|
+
tenantIdFormula: zod.z.any().optional(),
|
|
9205
9247
|
userIdFormula: zod.z.any().optional(),
|
|
9206
9248
|
});
|
|
9207
9249
|
|
|
@@ -9884,6 +9926,7 @@ const WorkspaceElementSpecs = {
|
|
|
9884
9926
|
apiPath: 'integrations',
|
|
9885
9927
|
name: 'Integration',
|
|
9886
9928
|
namePlural: 'Integrations',
|
|
9929
|
+
exportPropertiesSchema: IntegrationExportProperties,
|
|
9887
9930
|
},
|
|
9888
9931
|
[exports.WorkspaceElementType.Connector]: {
|
|
9889
9932
|
type: exports.WorkspaceElementType.Connector,
|
|
@@ -9903,6 +9946,7 @@ const WorkspaceElementSpecs = {
|
|
|
9903
9946
|
name: 'Package',
|
|
9904
9947
|
namePlural: 'Packages',
|
|
9905
9948
|
editablePropertiesSchema: PackageEditableProperties,
|
|
9949
|
+
exportPropertiesSchema: PackageExportProperties,
|
|
9906
9950
|
apiResponseSchema: PackageApiResponse,
|
|
9907
9951
|
findQuerySchema: FindPackagesQuery,
|
|
9908
9952
|
isMembraneInterface: true,
|
|
@@ -9921,6 +9965,7 @@ const WorkspaceElementSpecs = {
|
|
|
9921
9965
|
name: 'Action',
|
|
9922
9966
|
namePlural: 'Actions',
|
|
9923
9967
|
editablePropertiesSchema: ActionEditableProperties,
|
|
9968
|
+
exportPropertiesSchema: ActionExportProperties,
|
|
9924
9969
|
apiResponseSchema: ActionApiResponse,
|
|
9925
9970
|
findQuerySchema: FindActionsQuery,
|
|
9926
9971
|
isMembraneInterface: true,
|
|
@@ -9939,6 +9984,7 @@ const WorkspaceElementSpecs = {
|
|
|
9939
9984
|
namePlural: 'Flows',
|
|
9940
9985
|
parentFieldKey: 'universalFlowId',
|
|
9941
9986
|
editablePropertiesSchema: FlowEditableProperties,
|
|
9987
|
+
exportPropertiesSchema: FlowExportProperties,
|
|
9942
9988
|
apiResponseSchema: FlowApiResponse,
|
|
9943
9989
|
findQuerySchema: FindFlowsQuery,
|
|
9944
9990
|
isMembraneInterface: true,
|
|
@@ -9968,6 +10014,7 @@ const WorkspaceElementSpecs = {
|
|
|
9968
10014
|
namePlural: 'Field Mappings',
|
|
9969
10015
|
parentFieldKey: 'universalFieldMappingId',
|
|
9970
10016
|
editablePropertiesSchema: FieldMappingEditableProperties,
|
|
10017
|
+
exportPropertiesSchema: FieldMappingExportProperties,
|
|
9971
10018
|
apiResponseSchema: FieldMappingApiResponse,
|
|
9972
10019
|
findQuerySchema: FindFieldMappingsQuery,
|
|
9973
10020
|
isMembraneInterface: true,
|
|
@@ -9982,12 +10029,6 @@ const WorkspaceElementSpecs = {
|
|
|
9982
10029
|
universalParentFieldKey: 'universalFieldMappingId',
|
|
9983
10030
|
isMembraneInterface: true,
|
|
9984
10031
|
},
|
|
9985
|
-
[exports.WorkspaceElementType.DataCollection]: {
|
|
9986
|
-
type: exports.WorkspaceElementType.DataCollection,
|
|
9987
|
-
apiPath: 'data-collections',
|
|
9988
|
-
name: 'Data Collection',
|
|
9989
|
-
namePlural: 'Data Collections',
|
|
9990
|
-
},
|
|
9991
10032
|
[exports.WorkspaceElementType.DataSource]: {
|
|
9992
10033
|
type: exports.WorkspaceElementType.DataSource,
|
|
9993
10034
|
apiPath: 'data-sources',
|
|
@@ -9995,6 +10036,7 @@ const WorkspaceElementSpecs = {
|
|
|
9995
10036
|
namePlural: 'Data Sources',
|
|
9996
10037
|
parentFieldKey: 'universalDataSourceId',
|
|
9997
10038
|
editablePropertiesSchema: DataSourceEditableProperties,
|
|
10039
|
+
exportPropertiesSchema: DataSourceExportProperties,
|
|
9998
10040
|
apiResponseSchema: DataSourceApiResponse,
|
|
9999
10041
|
findQuerySchema: FindDataSourcesQuery,
|
|
10000
10042
|
isMembraneInterface: true,
|
|
@@ -10087,6 +10129,44 @@ const WorkspaceElementSpecs = {
|
|
|
10087
10129
|
},
|
|
10088
10130
|
};
|
|
10089
10131
|
|
|
10132
|
+
const MEMBRANE_ELEMENT_CONFIG_FILE_NAME = 'spec.yaml';
|
|
10133
|
+
function getMembraneElementPath(elementType, elementKey, integrationKey) {
|
|
10134
|
+
const elementTypePath = WorkspaceElementSpecs[elementType].apiPath;
|
|
10135
|
+
if (!integrationKey) {
|
|
10136
|
+
return `${elementTypePath}/${elementKey}/${MEMBRANE_ELEMENT_CONFIG_FILE_NAME}`;
|
|
10137
|
+
}
|
|
10138
|
+
const integrationTypePath = WorkspaceElementSpecs[exports.WorkspaceElementType.Integration].apiPath;
|
|
10139
|
+
return `${integrationTypePath}/${integrationKey}/${elementTypePath}/${elementKey}/${MEMBRANE_ELEMENT_CONFIG_FILE_NAME}`;
|
|
10140
|
+
}
|
|
10141
|
+
function parseMembraneElementPath(relativePath) {
|
|
10142
|
+
const typeByApiPath = new Map();
|
|
10143
|
+
for (const spec of Object.values(WorkspaceElementSpecs)) {
|
|
10144
|
+
typeByApiPath.set(spec.apiPath, spec.type);
|
|
10145
|
+
}
|
|
10146
|
+
const elementTypes = Object.values(WorkspaceElementSpecs)
|
|
10147
|
+
.map((spec) => spec.apiPath)
|
|
10148
|
+
.join('|');
|
|
10149
|
+
const universalPattern = new RegExp(`^(?<elementType>${elementTypes})/(?<elementKey>[^/]+)/${MEMBRANE_ELEMENT_CONFIG_FILE_NAME}$`);
|
|
10150
|
+
const universalMatch = relativePath.match(universalPattern);
|
|
10151
|
+
if (universalMatch === null || universalMatch === void 0 ? void 0 : universalMatch.groups) {
|
|
10152
|
+
const { elementType: elementTypePath, elementKey } = universalMatch.groups;
|
|
10153
|
+
const elementType = typeByApiPath.get(elementTypePath);
|
|
10154
|
+
if (elementType) {
|
|
10155
|
+
return { type: elementType, key: elementKey };
|
|
10156
|
+
}
|
|
10157
|
+
}
|
|
10158
|
+
const integrationLevelPattern = new RegExp(`^integrations/(?<integrationKey>[^/]+)/(?<elementType>${elementTypes})/(?<elementKey>[^/]+)/${MEMBRANE_ELEMENT_CONFIG_FILE_NAME}$`);
|
|
10159
|
+
const integrationLevelMatch = relativePath.match(integrationLevelPattern);
|
|
10160
|
+
if (integrationLevelMatch === null || integrationLevelMatch === void 0 ? void 0 : integrationLevelMatch.groups) {
|
|
10161
|
+
const { integrationKey, elementType: elementTypePath, elementKey } = integrationLevelMatch.groups;
|
|
10162
|
+
const elementType = typeByApiPath.get(elementTypePath);
|
|
10163
|
+
if (elementType) {
|
|
10164
|
+
return { type: elementType, key: elementKey, integrationKey };
|
|
10165
|
+
}
|
|
10166
|
+
}
|
|
10167
|
+
return undefined;
|
|
10168
|
+
}
|
|
10169
|
+
|
|
10090
10170
|
class SelfAccessor {
|
|
10091
10171
|
constructor(client) {
|
|
10092
10172
|
this.client = client;
|
|
@@ -10099,136 +10179,6 @@ class SelfAccessor {
|
|
|
10099
10179
|
}
|
|
10100
10180
|
}
|
|
10101
10181
|
|
|
10102
|
-
exports.ConnectorCopilotSuggestionType = void 0;
|
|
10103
|
-
(function (ConnectorCopilotSuggestionType) {
|
|
10104
|
-
ConnectorCopilotSuggestionType["AuthType"] = "auth-type";
|
|
10105
|
-
ConnectorCopilotSuggestionType["AuthImplementation"] = "auth-implementation";
|
|
10106
|
-
ConnectorCopilotSuggestionType["AuthConnectionParameters"] = "auth-connection-parameters";
|
|
10107
|
-
ConnectorCopilotSuggestionType["AuthApiClient"] = "auth-api-client";
|
|
10108
|
-
ConnectorCopilotSuggestionType["DataCollection"] = "data-collection";
|
|
10109
|
-
ConnectorCopilotSuggestionType["DataCollectionOperationApiRequests"] = "data-location-operation-api-requests";
|
|
10110
|
-
ConnectorCopilotSuggestionType["DataCollectionOperationApiRequestMapping"] = "data-location-operation-api-request-mapping";
|
|
10111
|
-
ConnectorCopilotSuggestionType["DataCollectionFieldsSchema"] = "data-location-fields-schema";
|
|
10112
|
-
ConnectorCopilotSuggestionType["UdmList"] = "udm-list";
|
|
10113
|
-
ConnectorCopilotSuggestionType["UdmFieldsMapping"] = "udm-fields-mapping";
|
|
10114
|
-
ConnectorCopilotSuggestionType["UdmFieldsMappingToCollection"] = "udm-fields-mapping-to-collection";
|
|
10115
|
-
ConnectorCopilotSuggestionType["UdmFieldsMappingFromCollection"] = "udm-fields-mapping-from-collection";
|
|
10116
|
-
})(exports.ConnectorCopilotSuggestionType || (exports.ConnectorCopilotSuggestionType = {}));
|
|
10117
|
-
exports.ConnectorCopilotFileChunkTopicKey = void 0;
|
|
10118
|
-
(function (ConnectorCopilotFileChunkTopicKey) {
|
|
10119
|
-
ConnectorCopilotFileChunkTopicKey["AuthType"] = "auth-type";
|
|
10120
|
-
ConnectorCopilotFileChunkTopicKey["AuthImplementation"] = "auth-implementation";
|
|
10121
|
-
ConnectorCopilotFileChunkTopicKey["AuthConnectionParameters"] = "auth-connection-parameters";
|
|
10122
|
-
ConnectorCopilotFileChunkTopicKey["AuthApiClient"] = "auth-api-client";
|
|
10123
|
-
})(exports.ConnectorCopilotFileChunkTopicKey || (exports.ConnectorCopilotFileChunkTopicKey = {}));
|
|
10124
|
-
exports.CopilotTaskType = void 0;
|
|
10125
|
-
(function (CopilotTaskType) {
|
|
10126
|
-
CopilotTaskType["GenerateAuthType"] = "generate-auth-type";
|
|
10127
|
-
CopilotTaskType["GenerateOAuthConfiguration"] = "generate-oauth-configuration";
|
|
10128
|
-
CopilotTaskType["GenerateAuthConnectionParameters"] = "generate-auth-connection-parameters";
|
|
10129
|
-
CopilotTaskType["GenerateAuthApiClient"] = "generate-auth-api-client";
|
|
10130
|
-
CopilotTaskType["GenerateDataCollections"] = "generate-data-collections";
|
|
10131
|
-
CopilotTaskType["GenerateDataCollectionRecordFromFields"] = "generate-data-collection-record-from-fields";
|
|
10132
|
-
CopilotTaskType["GenerateDataCollectionOperationApiRequests"] = "generate-data-collection-operation-api-requests";
|
|
10133
|
-
CopilotTaskType["GenerateDataCollectionOperationApiRequestMapping"] = "generate-data-collection-operation-api-request-mapping";
|
|
10134
|
-
CopilotTaskType["GenerateDataCollectionFieldsSchema"] = "generate-data-collection-fields-schema";
|
|
10135
|
-
CopilotTaskType["GenerateUdmList"] = "generate-udm-list";
|
|
10136
|
-
CopilotTaskType["GenerateUdmFieldsMapping"] = "generate-udm-fields-mapping";
|
|
10137
|
-
})(exports.CopilotTaskType || (exports.CopilotTaskType = {}));
|
|
10138
|
-
exports.CopilotTaskStatus = void 0;
|
|
10139
|
-
(function (CopilotTaskStatus) {
|
|
10140
|
-
CopilotTaskStatus["Pending"] = "pending";
|
|
10141
|
-
CopilotTaskStatus["Running"] = "running";
|
|
10142
|
-
CopilotTaskStatus["Completed"] = "completed";
|
|
10143
|
-
CopilotTaskStatus["Failed"] = "failed";
|
|
10144
|
-
})(exports.CopilotTaskStatus || (exports.CopilotTaskStatus = {}));
|
|
10145
|
-
exports.CopilotActionType = void 0;
|
|
10146
|
-
(function (CopilotActionType) {
|
|
10147
|
-
CopilotActionType["PatchConnectorFile"] = "patch";
|
|
10148
|
-
CopilotActionType["PutConnectorFile"] = "put";
|
|
10149
|
-
CopilotActionType["PatchConnectorDataSchema"] = "patch-data-schema";
|
|
10150
|
-
CopilotActionType["PatchConnectorFieldMapping"] = "patch-field-mapping";
|
|
10151
|
-
CopilotActionType["SetConnectorAuthType"] = "set-connector-auth-type";
|
|
10152
|
-
})(exports.CopilotActionType || (exports.CopilotActionType = {}));
|
|
10153
|
-
exports.CopilotActionStatus = void 0;
|
|
10154
|
-
(function (CopilotActionStatus) {
|
|
10155
|
-
CopilotActionStatus["Suggested"] = "suggested";
|
|
10156
|
-
CopilotActionStatus["Executed"] = "executed";
|
|
10157
|
-
CopilotActionStatus["Rejected"] = "rejected";
|
|
10158
|
-
})(exports.CopilotActionStatus || (exports.CopilotActionStatus = {}));
|
|
10159
|
-
exports.CopilotActivityType = void 0;
|
|
10160
|
-
(function (CopilotActivityType) {
|
|
10161
|
-
CopilotActivityType["Task"] = "task";
|
|
10162
|
-
})(exports.CopilotActivityType || (exports.CopilotActivityType = {}));
|
|
10163
|
-
const CopilotActivityScope = {
|
|
10164
|
-
connector: (connectorId) => new CopilotActivityScopeConnector(connectorId),
|
|
10165
|
-
};
|
|
10166
|
-
class CopilotActivityScopeConnector {
|
|
10167
|
-
constructor(connectorId) {
|
|
10168
|
-
this.connectorId = connectorId;
|
|
10169
|
-
this.auth = () => new CopilotActivityScopeConnectorAuth(this);
|
|
10170
|
-
this.data = (key) => new CopilotActivityScopeConnectorData(this, key);
|
|
10171
|
-
this.udm = (key) => new CopilotActivityScopeConnectorUdm(this, key);
|
|
10172
|
-
}
|
|
10173
|
-
toString() {
|
|
10174
|
-
return `connectors/${this.connectorId}`;
|
|
10175
|
-
}
|
|
10176
|
-
}
|
|
10177
|
-
class CopilotActivityScopeConnectorAuth {
|
|
10178
|
-
constructor(connectorScope) {
|
|
10179
|
-
this.connectorScope = connectorScope;
|
|
10180
|
-
}
|
|
10181
|
-
toString() {
|
|
10182
|
-
return `${this.connectorScope.toString()}/auth`;
|
|
10183
|
-
}
|
|
10184
|
-
}
|
|
10185
|
-
class CopilotActivityScopeConnectorData {
|
|
10186
|
-
constructor(connectorScope, dataCollectionKey) {
|
|
10187
|
-
this.connectorScope = connectorScope;
|
|
10188
|
-
this.dataCollectionKey = dataCollectionKey;
|
|
10189
|
-
this.method = (key) => new CopilotActivityScopeConnectorDataMethod(this, key);
|
|
10190
|
-
}
|
|
10191
|
-
toString() {
|
|
10192
|
-
let scope = `${this.connectorScope.toString()}/data`;
|
|
10193
|
-
if (this.dataCollectionKey) {
|
|
10194
|
-
scope += `/${this.dataCollectionKey}`;
|
|
10195
|
-
}
|
|
10196
|
-
return scope;
|
|
10197
|
-
}
|
|
10198
|
-
}
|
|
10199
|
-
class CopilotActivityScopeConnectorDataMethod {
|
|
10200
|
-
constructor(collectionScope, methodKey) {
|
|
10201
|
-
this.collectionScope = collectionScope;
|
|
10202
|
-
this.methodKey = methodKey;
|
|
10203
|
-
}
|
|
10204
|
-
toString() {
|
|
10205
|
-
return `${this.collectionScope.toString()}/methods/${this.methodKey}`;
|
|
10206
|
-
}
|
|
10207
|
-
}
|
|
10208
|
-
class CopilotActivityScopeConnectorUdm {
|
|
10209
|
-
constructor(connectorScope, key) {
|
|
10210
|
-
this.connectorScope = connectorScope;
|
|
10211
|
-
this.key = key;
|
|
10212
|
-
this.collection = (key) => new CopilotActivityScopeConnectorUdmCollection(this, key);
|
|
10213
|
-
}
|
|
10214
|
-
toString() {
|
|
10215
|
-
let scope = `${this.connectorScope.toString()}/udm`;
|
|
10216
|
-
if (this.key) {
|
|
10217
|
-
scope += `/${this.key}`;
|
|
10218
|
-
}
|
|
10219
|
-
return scope;
|
|
10220
|
-
}
|
|
10221
|
-
}
|
|
10222
|
-
class CopilotActivityScopeConnectorUdmCollection {
|
|
10223
|
-
constructor(udmScope, key) {
|
|
10224
|
-
this.udmScope = udmScope;
|
|
10225
|
-
this.key = key;
|
|
10226
|
-
}
|
|
10227
|
-
toString() {
|
|
10228
|
-
return `${this.udmScope.toString()}/collection/${this.key}`;
|
|
10229
|
-
}
|
|
10230
|
-
}
|
|
10231
|
-
|
|
10232
10182
|
exports.LogRecordType = void 0;
|
|
10233
10183
|
(function (LogRecordType) {
|
|
10234
10184
|
LogRecordType["MSG"] = "message";
|
|
@@ -10502,6 +10452,7 @@ exports.UsageType = void 0;
|
|
|
10502
10452
|
UsageType["FILES_UPLOAD_NUMBER"] = "files-upload-number";
|
|
10503
10453
|
UsageType["FILES_UPLOAD_SIZE"] = "files-upload-size";
|
|
10504
10454
|
UsageType["CUSTOM_CODE_RUNTIME_DURATION"] = "custom-code-runtime-duration";
|
|
10455
|
+
UsageType["MEMBRANE_AGENT"] = "membrane-agent";
|
|
10505
10456
|
})(exports.UsageType || (exports.UsageType = {}));
|
|
10506
10457
|
|
|
10507
10458
|
function getNodeInputSchema(flow, nodeKey) {
|
|
@@ -10644,7 +10595,6 @@ const PARALLEL_EXECUTION_LIMITS = [
|
|
|
10644
10595
|
'parallelBackgroundJobs',
|
|
10645
10596
|
'parallelEventLogs',
|
|
10646
10597
|
'parallelEventLogsPerConnection',
|
|
10647
|
-
'parallelWriteDatabaseRequests',
|
|
10648
10598
|
'parallelPathfinderAgentSessions',
|
|
10649
10599
|
];
|
|
10650
10600
|
const RATE_LIMITS = [
|
|
@@ -10655,7 +10605,6 @@ const RATE_LIMITS = [
|
|
|
10655
10605
|
'webhookRequestsPerHour',
|
|
10656
10606
|
'workspaceElementCreationsPerHour',
|
|
10657
10607
|
'workspaceElementCreationsPerSecond',
|
|
10658
|
-
'createDatabaseRequestsPerSecond',
|
|
10659
10608
|
];
|
|
10660
10609
|
const WORKSPACE_SIZE_LIMITS = [
|
|
10661
10610
|
'totalNumberOfCustomers',
|
|
@@ -10671,9 +10620,6 @@ const EDITABLE_LIMITS = [
|
|
|
10671
10620
|
'webhookRequestsPerCustomerPerSecond',
|
|
10672
10621
|
'webhookRequestsPerCustomerPerHour',
|
|
10673
10622
|
'parallelFlowRunsPerConnection',
|
|
10674
|
-
'parallelWriteDatabaseRequestsPerCustomer',
|
|
10675
|
-
'createDatabaseRequestsPerCustomerPerSecond',
|
|
10676
|
-
'updateDatabaseRequestsPerCustomerPerSecond',
|
|
10677
10623
|
];
|
|
10678
10624
|
|
|
10679
10625
|
exports.OrgLimitsType = void 0;
|
|
@@ -10681,8 +10627,8 @@ exports.OrgLimitsType = void 0;
|
|
|
10681
10627
|
OrgLimitsType["NUMBER_OF_WORKSPACES"] = "numberOfWorkspaces";
|
|
10682
10628
|
OrgLimitsType["TODAY_USAGE"] = "todayUsage";
|
|
10683
10629
|
OrgLimitsType["LAST_THIRTY_DAY_USAGE"] = "lastThirtyDayUsage";
|
|
10684
|
-
OrgLimitsType["MEMBRANE_AGENT_MONTHLY_USAGE"] = "membraneAgentMonthlyUsage";
|
|
10685
10630
|
OrgLimitsType["MEMBRANE_EXPERT_CREDITS_CAP"] = "membraneExpertCreditsCapPerMonth";
|
|
10631
|
+
OrgLimitsType["MEMBRANE_AGENT_LAST_THIRTY_DAYS_USAGE"] = "membraneAgentLastThirtyDaysUsage";
|
|
10686
10632
|
})(exports.OrgLimitsType || (exports.OrgLimitsType = {}));
|
|
10687
10633
|
exports.OrgUserRole = void 0;
|
|
10688
10634
|
(function (OrgUserRole) {
|
|
@@ -10720,6 +10666,7 @@ exports.AlertType = void 0;
|
|
|
10720
10666
|
AlertType["externalEventsPerCustomerPerDay"] = "externalEventsPerCustomerPerDay";
|
|
10721
10667
|
AlertType["totalUsagePerDay"] = "totalUsagePerDay";
|
|
10722
10668
|
AlertType["totalUsagePer30Days"] = "totalUsagePer30Days";
|
|
10669
|
+
AlertType["membraneAgentUsagePer30Days"] = "membraneAgentUsagePer30Days";
|
|
10723
10670
|
})(exports.AlertType || (exports.AlertType = {}));
|
|
10724
10671
|
|
|
10725
10672
|
class ElementAccessor {
|
|
@@ -10853,6 +10800,55 @@ class ElementInstanceAccessor {
|
|
|
10853
10800
|
}
|
|
10854
10801
|
}
|
|
10855
10802
|
|
|
10803
|
+
class ConnectionLevelElementAccessor {
|
|
10804
|
+
constructor(client, connectionSelector, selector, elementKey, query) {
|
|
10805
|
+
this.client = client;
|
|
10806
|
+
this.connectionSelector = connectionSelector;
|
|
10807
|
+
this.selector = selector;
|
|
10808
|
+
this.elementKey = elementKey;
|
|
10809
|
+
this.query = query;
|
|
10810
|
+
this.endpoint = `/connections/${this.connectionSelector}/${elementKey}/${selector}`;
|
|
10811
|
+
}
|
|
10812
|
+
uri(path = '', query = {}) {
|
|
10813
|
+
return this.endpoint + path + '?' + qs.stringify({ ...this.query, ...query });
|
|
10814
|
+
}
|
|
10815
|
+
getUniqueIdentifier() {
|
|
10816
|
+
return this.endpoint;
|
|
10817
|
+
}
|
|
10818
|
+
async get(query = {}) {
|
|
10819
|
+
return this.client.get(this.uri('', query));
|
|
10820
|
+
}
|
|
10821
|
+
async create() {
|
|
10822
|
+
return this.client.put(this.uri());
|
|
10823
|
+
}
|
|
10824
|
+
async patch(data) {
|
|
10825
|
+
return this.client.patch(this.uri(), data);
|
|
10826
|
+
}
|
|
10827
|
+
async put(data) {
|
|
10828
|
+
return this.client.put(this.uri(), data);
|
|
10829
|
+
}
|
|
10830
|
+
async archive() {
|
|
10831
|
+
return this.client.delete(this.uri());
|
|
10832
|
+
}
|
|
10833
|
+
async reset() {
|
|
10834
|
+
return this.client.post(this.uri('/reset'));
|
|
10835
|
+
}
|
|
10836
|
+
async setup() {
|
|
10837
|
+
return this.client.post(this.uri('/setup'));
|
|
10838
|
+
}
|
|
10839
|
+
}
|
|
10840
|
+
class ConnectionLevelElementsListAccessor {
|
|
10841
|
+
constructor(client, connectionSelector, elementKey) {
|
|
10842
|
+
this.client = client;
|
|
10843
|
+
this.connectionSelector = connectionSelector;
|
|
10844
|
+
this.elementKey = elementKey;
|
|
10845
|
+
}
|
|
10846
|
+
async list(query) {
|
|
10847
|
+
const endpoint = `/connections/${this.connectionSelector}/${this.elementKey}?${qs.stringify(query !== null && query !== void 0 ? query : {})}`;
|
|
10848
|
+
return this.client.get(endpoint);
|
|
10849
|
+
}
|
|
10850
|
+
}
|
|
10851
|
+
|
|
10856
10852
|
class IntegrationLevelElementAccessor {
|
|
10857
10853
|
constructor(client, integrationSelector, elementSelector, elementKey) {
|
|
10858
10854
|
this.client = client;
|
|
@@ -10911,6 +10907,15 @@ class ActionAccessor extends ElementAccessor {
|
|
|
10911
10907
|
async reset() {
|
|
10912
10908
|
return await this.options.client.post(this.getPath('reset'));
|
|
10913
10909
|
}
|
|
10910
|
+
async run(input, options) {
|
|
10911
|
+
const queryParams = options
|
|
10912
|
+
? {
|
|
10913
|
+
integrationKey: options.integrationKey,
|
|
10914
|
+
connectionId: options.connectionId,
|
|
10915
|
+
}
|
|
10916
|
+
: {};
|
|
10917
|
+
return this.options.client.post(this.getPath('run'), { input }, { params: queryParams });
|
|
10918
|
+
}
|
|
10914
10919
|
}
|
|
10915
10920
|
class IntegrationLevelActionAccessor extends IntegrationLevelElementAccessor {
|
|
10916
10921
|
constructor(client, integrationSelector, actionSelector) {
|
|
@@ -10927,6 +10932,25 @@ class IntegrationLevelActionsListAccessor extends IntegrationLevelElementsListAc
|
|
|
10927
10932
|
this.integrationSelector = integrationSelector;
|
|
10928
10933
|
}
|
|
10929
10934
|
}
|
|
10935
|
+
class ConnectionLevelActionAccessor extends ConnectionLevelElementAccessor {
|
|
10936
|
+
constructor(client, connectionSelector, actionSelector, query) {
|
|
10937
|
+
super(client, connectionSelector, actionSelector, 'actions', query);
|
|
10938
|
+
this.client = client;
|
|
10939
|
+
this.connectionSelector = connectionSelector;
|
|
10940
|
+
this.actionSelector = actionSelector;
|
|
10941
|
+
this.query = query;
|
|
10942
|
+
}
|
|
10943
|
+
async run(input) {
|
|
10944
|
+
return this.client.post(this.uri('/run'), input);
|
|
10945
|
+
}
|
|
10946
|
+
}
|
|
10947
|
+
class ConnectionLevelActionsAccessor extends ConnectionLevelElementsListAccessor {
|
|
10948
|
+
constructor(client, connectionSelector) {
|
|
10949
|
+
super(client, connectionSelector, 'actions');
|
|
10950
|
+
this.client = client;
|
|
10951
|
+
this.connectionSelector = connectionSelector;
|
|
10952
|
+
}
|
|
10953
|
+
}
|
|
10930
10954
|
|
|
10931
10955
|
const POPUP_ELEMENT_ID = '__integration-app-popup';
|
|
10932
10956
|
const CONTAINER_ELEMENT_ID = '__integration-app-container';
|
|
@@ -11153,104 +11177,6 @@ function handleIframeUnmount(iframe) {
|
|
|
11153
11177
|
}
|
|
11154
11178
|
}
|
|
11155
11179
|
|
|
11156
|
-
class ConnectionLevelElementAccessor {
|
|
11157
|
-
constructor(client, connectionSelector, selector, elementKey, query) {
|
|
11158
|
-
this.client = client;
|
|
11159
|
-
this.connectionSelector = connectionSelector;
|
|
11160
|
-
this.selector = selector;
|
|
11161
|
-
this.elementKey = elementKey;
|
|
11162
|
-
this.query = query;
|
|
11163
|
-
this.endpoint = `/connections/${this.connectionSelector}/${elementKey}/${selector}`;
|
|
11164
|
-
}
|
|
11165
|
-
uri(path = '', query = {}) {
|
|
11166
|
-
return this.endpoint + path + '?' + qs.stringify({ ...this.query, ...query });
|
|
11167
|
-
}
|
|
11168
|
-
getUniqueIdentifier() {
|
|
11169
|
-
return this.endpoint;
|
|
11170
|
-
}
|
|
11171
|
-
async get(query = {}) {
|
|
11172
|
-
return this.client.get(this.uri('', query));
|
|
11173
|
-
}
|
|
11174
|
-
async create() {
|
|
11175
|
-
return this.client.put(this.uri());
|
|
11176
|
-
}
|
|
11177
|
-
async patch(data) {
|
|
11178
|
-
return this.client.patch(this.uri(), data);
|
|
11179
|
-
}
|
|
11180
|
-
async put(data) {
|
|
11181
|
-
return this.client.put(this.uri(), data);
|
|
11182
|
-
}
|
|
11183
|
-
async archive() {
|
|
11184
|
-
return this.client.delete(this.uri());
|
|
11185
|
-
}
|
|
11186
|
-
async reset() {
|
|
11187
|
-
return this.client.post(this.uri('/reset'));
|
|
11188
|
-
}
|
|
11189
|
-
async setup() {
|
|
11190
|
-
return this.client.post(this.uri('/setup'));
|
|
11191
|
-
}
|
|
11192
|
-
}
|
|
11193
|
-
class ConnectionLevelElementsListAccessor {
|
|
11194
|
-
constructor(client, connectionSelector, elementKey) {
|
|
11195
|
-
this.client = client;
|
|
11196
|
-
this.connectionSelector = connectionSelector;
|
|
11197
|
-
this.elementKey = elementKey;
|
|
11198
|
-
}
|
|
11199
|
-
async list(query) {
|
|
11200
|
-
const endpoint = `/connections/${this.connectionSelector}/${this.elementKey}?${qs.stringify(query !== null && query !== void 0 ? query : {})}`;
|
|
11201
|
-
return this.client.get(endpoint);
|
|
11202
|
-
}
|
|
11203
|
-
}
|
|
11204
|
-
|
|
11205
|
-
class ActionInstancesAccessor extends ElementInstanceListAccessor {
|
|
11206
|
-
constructor(client) {
|
|
11207
|
-
super(client, 'action-instances');
|
|
11208
|
-
}
|
|
11209
|
-
}
|
|
11210
|
-
class ActionInstanceAccessor extends ElementInstanceAccessor {
|
|
11211
|
-
constructor(client, selector) {
|
|
11212
|
-
super({
|
|
11213
|
-
client,
|
|
11214
|
-
instancePath: 'action-instance',
|
|
11215
|
-
selector,
|
|
11216
|
-
});
|
|
11217
|
-
this.client = client;
|
|
11218
|
-
}
|
|
11219
|
-
async setup() {
|
|
11220
|
-
await this.client.post(this.getPath('setup'));
|
|
11221
|
-
}
|
|
11222
|
-
async reset() {
|
|
11223
|
-
await this.client.post(this.getPath('reset'));
|
|
11224
|
-
}
|
|
11225
|
-
async run(input) {
|
|
11226
|
-
return this.client.post(this.getPath('run'), input);
|
|
11227
|
-
}
|
|
11228
|
-
async open({ onClose = () => { } } = {}) {
|
|
11229
|
-
const id = await this.getId();
|
|
11230
|
-
const uri = await this.client.getEmbedUri(`action-instances/${id}/configuration`);
|
|
11231
|
-
return openIframe(uri, { onClose });
|
|
11232
|
-
}
|
|
11233
|
-
}
|
|
11234
|
-
class ConnectionLevelActionAccessor extends ConnectionLevelElementAccessor {
|
|
11235
|
-
constructor(client, connectionSelector, actionSelector, query) {
|
|
11236
|
-
super(client, connectionSelector, actionSelector, 'actions', query);
|
|
11237
|
-
this.client = client;
|
|
11238
|
-
this.connectionSelector = connectionSelector;
|
|
11239
|
-
this.actionSelector = actionSelector;
|
|
11240
|
-
this.query = query;
|
|
11241
|
-
}
|
|
11242
|
-
async run(input) {
|
|
11243
|
-
return this.client.post(this.uri('/run'), input);
|
|
11244
|
-
}
|
|
11245
|
-
}
|
|
11246
|
-
class ConnectionLevelActionsAccessor extends ConnectionLevelElementsListAccessor {
|
|
11247
|
-
constructor(client, connectionSelector) {
|
|
11248
|
-
super(client, connectionSelector, 'actions');
|
|
11249
|
-
this.client = client;
|
|
11250
|
-
this.connectionSelector = connectionSelector;
|
|
11251
|
-
}
|
|
11252
|
-
}
|
|
11253
|
-
|
|
11254
11180
|
class DataSourcesAccessor extends ElementListAccessor {
|
|
11255
11181
|
constructor(client) {
|
|
11256
11182
|
super(client, 'data-sources');
|
|
@@ -12220,6 +12146,36 @@ class UserAccessor extends CustomerAccessor {
|
|
|
12220
12146
|
}
|
|
12221
12147
|
}
|
|
12222
12148
|
|
|
12149
|
+
class ActionInstancesAccessor extends ElementInstanceListAccessor {
|
|
12150
|
+
constructor(client) {
|
|
12151
|
+
super(client, 'action-instances');
|
|
12152
|
+
}
|
|
12153
|
+
}
|
|
12154
|
+
class ActionInstanceAccessor extends ElementInstanceAccessor {
|
|
12155
|
+
constructor(client, selector) {
|
|
12156
|
+
super({
|
|
12157
|
+
client,
|
|
12158
|
+
instancePath: 'action-instance',
|
|
12159
|
+
selector,
|
|
12160
|
+
});
|
|
12161
|
+
this.client = client;
|
|
12162
|
+
}
|
|
12163
|
+
async setup() {
|
|
12164
|
+
await this.client.post(this.getPath('setup'));
|
|
12165
|
+
}
|
|
12166
|
+
async reset() {
|
|
12167
|
+
await this.client.post(this.getPath('reset'));
|
|
12168
|
+
}
|
|
12169
|
+
async run(input) {
|
|
12170
|
+
return this.client.post(this.getPath('run'), input);
|
|
12171
|
+
}
|
|
12172
|
+
async open({ onClose = () => { } } = {}) {
|
|
12173
|
+
const id = await this.getId();
|
|
12174
|
+
const uri = await this.client.getEmbedUri(`action-instances/${id}/configuration`);
|
|
12175
|
+
return openIframe(uri, { onClose });
|
|
12176
|
+
}
|
|
12177
|
+
}
|
|
12178
|
+
|
|
12223
12179
|
class DataLinkTablesAccessor extends ElementListAccessor {
|
|
12224
12180
|
constructor(client) {
|
|
12225
12181
|
super(client, 'data-link-tables');
|
|
@@ -12490,6 +12446,9 @@ const DEFAULT_API_URI = 'https://api.integration.app';
|
|
|
12490
12446
|
const DEFAULT_UI_URI = 'https://ui.integration.app';
|
|
12491
12447
|
const REFETCH_EXPIRATION_THRESHOLD = 10 * 1000;
|
|
12492
12448
|
function decodeToken(token) {
|
|
12449
|
+
if (token.startsWith('pat-')) {
|
|
12450
|
+
return null;
|
|
12451
|
+
}
|
|
12493
12452
|
const payload = decodeJWT(token);
|
|
12494
12453
|
if (!payload) {
|
|
12495
12454
|
throw new Error('Access token should be a valid JWT token.');
|
|
@@ -12519,7 +12478,7 @@ class MembraneApiClient {
|
|
|
12519
12478
|
}
|
|
12520
12479
|
else {
|
|
12521
12480
|
const payload = decodeToken(this.token);
|
|
12522
|
-
if (payload.exp) {
|
|
12481
|
+
if (payload === null || payload === void 0 ? void 0 : payload.exp) {
|
|
12523
12482
|
const willExpireSoon = new Date(payload.exp * 1000).getTime() - new Date().getTime() < REFETCH_EXPIRATION_THRESHOLD;
|
|
12524
12483
|
if (willExpireSoon) {
|
|
12525
12484
|
this.token = await this.fetchToken();
|
|
@@ -12757,6 +12716,7 @@ exports.ActionAccessor = ActionAccessor;
|
|
|
12757
12716
|
exports.ActionApiResponse = ActionApiResponse;
|
|
12758
12717
|
exports.ActionDependency = ActionDependency;
|
|
12759
12718
|
exports.ActionEditableProperties = ActionEditableProperties;
|
|
12719
|
+
exports.ActionExportProperties = ActionExportProperties;
|
|
12760
12720
|
exports.ActionInstanceAccessor = ActionInstanceAccessor;
|
|
12761
12721
|
exports.ActionInstanceApiResponse = ActionInstanceApiResponse;
|
|
12762
12722
|
exports.ActionInstanceSetupError = ActionInstanceSetupError;
|
|
@@ -12808,6 +12768,7 @@ exports.BaseFlowRun = BaseFlowRun;
|
|
|
12808
12768
|
exports.BaseIntegration = BaseIntegration;
|
|
12809
12769
|
exports.BaseIntegrationLevelMembraneInterface = BaseIntegrationLevelMembraneInterface;
|
|
12810
12770
|
exports.BaseIntegrationLevelMembraneInterfaceEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties;
|
|
12771
|
+
exports.BaseIntegrationLevelMembraneInterfaceExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties;
|
|
12811
12772
|
exports.BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties;
|
|
12812
12773
|
exports.BaseMembraneInterface = BaseMembraneInterface;
|
|
12813
12774
|
exports.BaseMembraneInterfaceEditableProperties = BaseMembraneInterfaceEditableProperties;
|
|
@@ -12854,7 +12815,6 @@ exports.ConnectorDataCollectionMethodKeys = ConnectorDataCollectionMethodKeys;
|
|
|
12854
12815
|
exports.ConnectorDataLocationTypes = ConnectorDataLocationTypes;
|
|
12855
12816
|
exports.ConnectorEventHandlerMethods = ConnectorEventHandlerMethods;
|
|
12856
12817
|
exports.ConnectorOperationMethodImplementationTypes = ConnectorOperationMethodImplementationTypes;
|
|
12857
|
-
exports.CopilotActivityScope = CopilotActivityScope;
|
|
12858
12818
|
exports.CreateActionInstanceRequest = CreateActionInstanceRequest;
|
|
12859
12819
|
exports.CreateActionRequest = CreateActionRequest;
|
|
12860
12820
|
exports.CreateAgentSession = CreateAgentSession;
|
|
@@ -12928,6 +12888,7 @@ exports.DataSchema = DataSchema;
|
|
|
12928
12888
|
exports.DataSourceAccessor = DataSourceAccessor;
|
|
12929
12889
|
exports.DataSourceApiResponse = DataSourceApiResponse;
|
|
12930
12890
|
exports.DataSourceEditableProperties = DataSourceEditableProperties;
|
|
12891
|
+
exports.DataSourceExportProperties = DataSourceExportProperties;
|
|
12931
12892
|
exports.DataSourceInstanceAccessor = DataSourceInstanceAccessor;
|
|
12932
12893
|
exports.DataSourceInstanceApiResponse = DataSourceInstanceApiResponse;
|
|
12933
12894
|
exports.DataSourceInstancesAccessor = DataSourceInstancesAccessor;
|
|
@@ -12955,6 +12916,7 @@ exports.FLOW_NODE_SPECS = FLOW_NODE_SPECS;
|
|
|
12955
12916
|
exports.FieldMappingAccessor = FieldMappingAccessor;
|
|
12956
12917
|
exports.FieldMappingApiResponse = FieldMappingApiResponse;
|
|
12957
12918
|
exports.FieldMappingEditableProperties = FieldMappingEditableProperties;
|
|
12919
|
+
exports.FieldMappingExportProperties = FieldMappingExportProperties;
|
|
12958
12920
|
exports.FieldMappingInstanceAccessor = FieldMappingInstanceAccessor;
|
|
12959
12921
|
exports.FieldMappingInstanceApiResponse = FieldMappingInstanceApiResponse;
|
|
12960
12922
|
exports.FieldMappingInstancesAccessor = FieldMappingInstancesAccessor;
|
|
@@ -12981,6 +12943,7 @@ exports.FindPackagesQuery = FindPackagesQuery;
|
|
|
12981
12943
|
exports.FlowAccessor = FlowAccessor;
|
|
12982
12944
|
exports.FlowApiResponse = FlowApiResponse;
|
|
12983
12945
|
exports.FlowEditableProperties = FlowEditableProperties;
|
|
12946
|
+
exports.FlowExportProperties = FlowExportProperties;
|
|
12984
12947
|
exports.FlowInstanceAccessor = FlowInstanceAccessor;
|
|
12985
12948
|
exports.FlowInstanceApiResponse = FlowInstanceApiResponse;
|
|
12986
12949
|
exports.FlowInstanceNode = FlowInstanceNode;
|
|
@@ -13014,6 +12977,7 @@ exports.IntegrationApiResponse = IntegrationApiResponse;
|
|
|
13014
12977
|
exports.IntegrationAppClient = MembraneClient;
|
|
13015
12978
|
exports.IntegrationAuthOption = IntegrationAuthOption;
|
|
13016
12979
|
exports.IntegrationAuthUi = IntegrationAuthUi;
|
|
12980
|
+
exports.IntegrationExportProperties = IntegrationExportProperties;
|
|
13017
12981
|
exports.IntegrationLevelActionAccessor = IntegrationLevelActionAccessor;
|
|
13018
12982
|
exports.IntegrationLevelActionsListAccessor = IntegrationLevelActionsListAccessor;
|
|
13019
12983
|
exports.IntegrationLevelDataSourceAccessor = IntegrationLevelDataSourceAccessor;
|
|
@@ -13031,6 +12995,7 @@ exports.ListDataSourceInstancesForConnectionQuery = ListDataSourceInstancesForCo
|
|
|
13031
12995
|
exports.ListExternalEventLogRecordsQuery = ListExternalEventLogRecordsQuery;
|
|
13032
12996
|
exports.ListExternalEventPullsQuery = ListExternalEventPullsQuery;
|
|
13033
12997
|
exports.ListFlowInstancesForConnectionQuery = ListFlowInstancesForConnectionQuery;
|
|
12998
|
+
exports.MEMBRANE_ELEMENT_CONFIG_FILE_NAME = MEMBRANE_ELEMENT_CONFIG_FILE_NAME;
|
|
13034
12999
|
exports.MIN_FULL_SYNC_INTERVAL_SECONDS = MIN_FULL_SYNC_INTERVAL_SECONDS;
|
|
13035
13000
|
exports.MIN_PULL_UPDATES_INTERVAL_SECONDS = MIN_PULL_UPDATES_INTERVAL_SECONDS;
|
|
13036
13001
|
exports.MembraneAxiosInstance = axios;
|
|
@@ -13048,6 +13013,8 @@ exports.PackageCalculatedProperties = PackageCalculatedProperties;
|
|
|
13048
13013
|
exports.PackageEditableProperties = PackageEditableProperties;
|
|
13049
13014
|
exports.PackageElement = PackageElement;
|
|
13050
13015
|
exports.PackageElementApi = PackageElementApi;
|
|
13016
|
+
exports.PackageElementExport = PackageElementExport;
|
|
13017
|
+
exports.PackageExportProperties = PackageExportProperties;
|
|
13051
13018
|
exports.PackagesAccessor = PackagesAccessor;
|
|
13052
13019
|
exports.PaginationQuery = PaginationQuery;
|
|
13053
13020
|
exports.PaginationResponse = PaginationResponse;
|
|
@@ -13137,6 +13104,7 @@ exports.getFullTitleForLocator = getFullTitleForLocator;
|
|
|
13137
13104
|
exports.getIconUriForLocator = getIconUriForLocator;
|
|
13138
13105
|
exports.getLocatorsFromData = getLocatorsFromData;
|
|
13139
13106
|
exports.getLocatorsFromSchema = getLocatorsFromSchema;
|
|
13107
|
+
exports.getMembraneElementPath = getMembraneElementPath;
|
|
13140
13108
|
exports.getMissingRequiredFields = getMissingRequiredFields;
|
|
13141
13109
|
exports.getNameComponentsForLocator = getNameComponentsForLocator;
|
|
13142
13110
|
exports.getNameForLocator = getNameForLocator;
|
|
@@ -13180,6 +13148,7 @@ exports.mergeWithFormulas = mergeWithFormulas;
|
|
|
13180
13148
|
exports.nonEmptyObjectProperties = nonEmptyObjectProperties;
|
|
13181
13149
|
exports.parseDataLocationPath = parseDataLocationPath;
|
|
13182
13150
|
exports.parseDate = parseDate;
|
|
13151
|
+
exports.parseMembraneElementPath = parseMembraneElementPath;
|
|
13183
13152
|
exports.patchSchema = patchSchema;
|
|
13184
13153
|
exports.pickFieldsFromSchema = pickFieldsFromSchema;
|
|
13185
13154
|
exports.pickFieldsFromValue = pickFieldsFromValue;
|