@membranehq/sdk 0.8.0 → 0.8.2
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 +346 -118
- package/dist/bundle.js +410 -235
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/action-instances-accessors.d.ts +1 -2
- package/dist/dts/accessors/scenarios-accessors.d.ts +6 -4
- package/dist/dts/alerts/types.d.ts +3 -1
- package/dist/dts/client.d.ts +3 -3
- package/dist/dts/sse/workspace-elements.d.ts +7 -0
- package/dist/dts/webhooks/types.d.ts +5 -2
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +5 -0
- package/dist/dts/workspace-elements/api/actions-api.d.ts +334 -8
- package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +4 -4
- package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +2 -2
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +4 -4
- package/dist/dts/workspace-elements/api/index.d.ts +1 -2
- package/dist/dts/workspace-elements/api/{scenarios-api.d.ts → packages-api.d.ts} +8 -7
- package/dist/dts/workspace-elements/base/action-instances/types.d.ts +14 -9
- package/dist/dts/workspace-elements/base/actions/index.d.ts +46 -0
- package/dist/dts/workspace-elements/base/data-sources/index.d.ts +2 -2
- package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +2 -2
- package/dist/dts/workspace-elements/base/index.d.ts +1 -2
- package/dist/dts/workspace-elements/base/{scenarios → packages}/index.d.ts +8 -8
- package/dist/dts/workspace-elements/types.d.ts +26 -1
- package/dist/index.browser.d.mts +742 -453
- package/dist/index.browser.d.ts +742 -453
- package/dist/index.browser.js +139 -127
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +128 -121
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +742 -453
- package/dist/index.node.d.ts +742 -453
- package/dist/index.node.js +139 -127
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +128 -121
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/dts/workspace-elements/api/action-instances-api.d.ts +0 -94
package/dist/index.node.js
CHANGED
|
@@ -2901,12 +2901,13 @@ class DataBuilderFormulaIterate extends DataBuilderFormulaBase {
|
|
|
2901
2901
|
}
|
|
2902
2902
|
}
|
|
2903
2903
|
getSchema(variablesSchema) {
|
|
2904
|
-
|
|
2904
|
+
const sourceSchema = buildDataSchema(this.source, variablesSchema);
|
|
2905
|
+
const itemSchema = sourceSchema === null || sourceSchema === void 0 ? void 0 : sourceSchema.items;
|
|
2905
2906
|
const itemVariablesSchema = {
|
|
2906
2907
|
type: 'object',
|
|
2907
2908
|
properties: {
|
|
2908
2909
|
parent: variablesSchema,
|
|
2909
|
-
item:
|
|
2910
|
+
item: itemSchema,
|
|
2910
2911
|
index: { type: 'number' },
|
|
2911
2912
|
},
|
|
2912
2913
|
};
|
|
@@ -3393,6 +3394,44 @@ function getFormula(value) {
|
|
|
3393
3394
|
return undefined;
|
|
3394
3395
|
}
|
|
3395
3396
|
|
|
3397
|
+
const zodBooleanCoercion = () => zod.z.preprocess((val) => {
|
|
3398
|
+
if (typeof val === 'boolean')
|
|
3399
|
+
return val;
|
|
3400
|
+
if (typeof val === 'string') {
|
|
3401
|
+
const lower = val.toLowerCase();
|
|
3402
|
+
if (lower === 'true' || lower === '1')
|
|
3403
|
+
return true;
|
|
3404
|
+
if (lower === 'false' || lower === '0')
|
|
3405
|
+
return false;
|
|
3406
|
+
return Boolean(val);
|
|
3407
|
+
}
|
|
3408
|
+
if (typeof val === 'number')
|
|
3409
|
+
return Boolean(val);
|
|
3410
|
+
return Boolean(val);
|
|
3411
|
+
}, zod.z.boolean());
|
|
3412
|
+
const IncludeArchivedQuery = zod.z.object({
|
|
3413
|
+
includeArchived: zodBooleanCoercion().optional(),
|
|
3414
|
+
});
|
|
3415
|
+
const SearchQuery = zod.z.object({
|
|
3416
|
+
search: zod.z.string().optional(),
|
|
3417
|
+
});
|
|
3418
|
+
const PaginationQuery = zod.z.object({
|
|
3419
|
+
limit: zod.z.coerce.number().int().min(1).max(1000).optional(),
|
|
3420
|
+
cursor: zod.z.string().optional(),
|
|
3421
|
+
});
|
|
3422
|
+
const CommonListElementsQuery = SearchQuery.merge(PaginationQuery).merge(IncludeArchivedQuery);
|
|
3423
|
+
const CommonInstancesListQuery = CommonListElementsQuery.extend({
|
|
3424
|
+
userId: zod.z.string().optional(),
|
|
3425
|
+
instanceKey: zod.z.string().optional(),
|
|
3426
|
+
});
|
|
3427
|
+
const CommonIntegrationOrConnectionQuery = zod.z.object({
|
|
3428
|
+
connectionId: zod.z.string().optional(),
|
|
3429
|
+
integrationId: zod.z.string().optional(),
|
|
3430
|
+
integrationKey: zod.z.string().optional(),
|
|
3431
|
+
});
|
|
3432
|
+
class PaginationResponse {
|
|
3433
|
+
}
|
|
3434
|
+
|
|
3396
3435
|
exports.ConfigurationState = void 0;
|
|
3397
3436
|
(function (ConfigurationState) {
|
|
3398
3437
|
ConfigurationState["CONFIGURED"] = "CONFIGURED";
|
|
@@ -3407,7 +3446,7 @@ exports.WorkspaceElementType = void 0;
|
|
|
3407
3446
|
WorkspaceElementType["FlowInstance"] = "flow-instance";
|
|
3408
3447
|
WorkspaceElementType["FlowRun"] = "flow-run";
|
|
3409
3448
|
WorkspaceElementType["Action"] = "action";
|
|
3410
|
-
WorkspaceElementType["
|
|
3449
|
+
WorkspaceElementType["Package"] = "package";
|
|
3411
3450
|
WorkspaceElementType["ActionInstance"] = "action-instance";
|
|
3412
3451
|
WorkspaceElementType["Connection"] = "connection";
|
|
3413
3452
|
WorkspaceElementType["FieldMapping"] = "field-mapping";
|
|
@@ -3480,6 +3519,18 @@ const BaseIntegrationLevelMembraneInterfaceEditableProperties = BaseMembraneInte
|
|
|
3480
3519
|
const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties.extend({
|
|
3481
3520
|
isCustomized: zod.z.boolean().optional(),
|
|
3482
3521
|
});
|
|
3522
|
+
const IntegrationLevelMembraneInterfaceSelectorQuery = zod.z.object({
|
|
3523
|
+
integrationKey: zod.z.string().optional(),
|
|
3524
|
+
connectionId: zod.z.string().optional(),
|
|
3525
|
+
instanceKey: zod.z.string().optional(),
|
|
3526
|
+
});
|
|
3527
|
+
const FindIntegrationLevelMembraneInterfaceQuery = IntegrationLevelMembraneInterfaceSelectorQuery.extend(CommonListElementsQuery.shape).extend({
|
|
3528
|
+
layer: zod.z.enum(['universal', 'integration', 'connection']).optional(),
|
|
3529
|
+
integrationId: zod.z.string().optional(),
|
|
3530
|
+
parentId: zod.z.string().optional(),
|
|
3531
|
+
universalParentId: zod.z.string().optional(),
|
|
3532
|
+
userId: zod.z.string().optional(),
|
|
3533
|
+
});
|
|
3483
3534
|
const BaseIntegrationLevelMembraneInterface = BaseMembraneInterface.merge(BaseIntegrationLevelMembraneInterfaceEditableProperties).merge(BaseIntegrationLevelMembraneInterfaceReadOnlyProperties);
|
|
3484
3535
|
|
|
3485
3536
|
function mergeWithFormulas(a, b) {
|
|
@@ -3647,17 +3698,34 @@ const ACTIONS = {
|
|
|
3647
3698
|
},
|
|
3648
3699
|
};
|
|
3649
3700
|
|
|
3701
|
+
exports.ActionDependencyType = void 0;
|
|
3702
|
+
(function (ActionDependencyType) {
|
|
3703
|
+
ActionDependencyType["FieldMapping"] = "FieldMapping";
|
|
3704
|
+
ActionDependencyType["DataSource"] = "DataSource";
|
|
3705
|
+
})(exports.ActionDependencyType || (exports.ActionDependencyType = {}));
|
|
3706
|
+
const ActionDependency = zod.z.object({
|
|
3707
|
+
type: zod.z.enum(exports.ActionDependencyType),
|
|
3708
|
+
key: zod.z.string(),
|
|
3709
|
+
element: zod.z.any().optional(),
|
|
3710
|
+
});
|
|
3650
3711
|
const ActionEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.extend({
|
|
3651
3712
|
integrationId: zod.z.string().optional(),
|
|
3713
|
+
connectionId: zod.z.string().optional(),
|
|
3652
3714
|
parentId: zod.z.string().optional(),
|
|
3715
|
+
instanceKey: zod.z.string().optional(),
|
|
3653
3716
|
inputSchema: DataSchema.optional(),
|
|
3654
3717
|
type: zod.z.enum(exports.ActionType).optional(),
|
|
3655
3718
|
config: zod.z.any().optional(),
|
|
3656
3719
|
outputMapping: zod.z.any().optional(),
|
|
3657
3720
|
customOutputSchema: DataSchema.optional(),
|
|
3658
3721
|
});
|
|
3659
|
-
const ActionReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties
|
|
3722
|
+
const ActionReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
3723
|
+
universalParentId: zod.z.string().optional(),
|
|
3724
|
+
userId: zod.z.string().optional(),
|
|
3725
|
+
outputSchema: zod.z.any().optional(),
|
|
3726
|
+
});
|
|
3660
3727
|
const BaseAction = BaseMembraneInterface.merge(ActionEditableProperties).merge(ActionReadOnlyProperties);
|
|
3728
|
+
const BaseActionInstance = BaseAction;
|
|
3661
3729
|
|
|
3662
3730
|
const ConnectionRequest = zod.z.object({
|
|
3663
3731
|
path: zod.z.any(),
|
|
@@ -8909,23 +8977,23 @@ exports.IntegrationElementType = void 0;
|
|
|
8909
8977
|
IntegrationElementType["EXTERNAL_EVENT"] = "external-event";
|
|
8910
8978
|
})(exports.IntegrationElementType || (exports.IntegrationElementType = {}));
|
|
8911
8979
|
|
|
8912
|
-
const
|
|
8980
|
+
const PackageElement = zod.z.object({
|
|
8913
8981
|
id: zod.z.string(),
|
|
8914
8982
|
type: zod.z.enum(exports.IntegrationElementType),
|
|
8915
8983
|
element: zod.z.any().optional(),
|
|
8916
8984
|
});
|
|
8917
|
-
const
|
|
8985
|
+
const PackageEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
8918
8986
|
scenarioTemplateId: zod.z.string().optional(),
|
|
8919
|
-
elements: zod.z.array(
|
|
8987
|
+
elements: zod.z.array(PackageElement).optional(),
|
|
8920
8988
|
integrationId: zod.z.string().optional(),
|
|
8921
8989
|
parentId: zod.z.string().optional(),
|
|
8922
8990
|
});
|
|
8923
|
-
const
|
|
8991
|
+
const PackageCalculatedProperties = zod.z.object({
|
|
8924
8992
|
key: zod.z.string(),
|
|
8925
8993
|
name: zod.z.string(),
|
|
8926
8994
|
isCustomized: zod.z.boolean().optional(),
|
|
8927
8995
|
});
|
|
8928
|
-
const
|
|
8996
|
+
const BasePackage = BaseMembraneInterface.merge(PackageEditableProperties).merge(PackageCalculatedProperties);
|
|
8929
8997
|
|
|
8930
8998
|
exports.ScreenType = void 0;
|
|
8931
8999
|
(function (ScreenType) {
|
|
@@ -9055,27 +9123,6 @@ const updateFlowInstanceSchema = zod.z.object({
|
|
|
9055
9123
|
.optional(),
|
|
9056
9124
|
});
|
|
9057
9125
|
|
|
9058
|
-
exports.ActionDependencyType = void 0;
|
|
9059
|
-
(function (ActionDependencyType) {
|
|
9060
|
-
ActionDependencyType["FieldMapping"] = "FieldMapping";
|
|
9061
|
-
ActionDependencyType["DataSource"] = "DataSource";
|
|
9062
|
-
})(exports.ActionDependencyType || (exports.ActionDependencyType = {}));
|
|
9063
|
-
const ActionDependency = zod.z.object({
|
|
9064
|
-
type: zod.z.enum(exports.ActionDependencyType),
|
|
9065
|
-
key: zod.z.string(),
|
|
9066
|
-
element: zod.z.any().optional(),
|
|
9067
|
-
});
|
|
9068
|
-
const BaseActionInstance = BaseMembraneInterface.extend({
|
|
9069
|
-
parentId: zod.z.string().optional(),
|
|
9070
|
-
universalParentId: zod.z.string().optional(),
|
|
9071
|
-
userId: zod.z.string(),
|
|
9072
|
-
instanceKey: zod.z.string().optional(),
|
|
9073
|
-
type: zod.z.enum(exports.ActionType).optional(),
|
|
9074
|
-
inputSchema: zod.z.any().optional(),
|
|
9075
|
-
config: zod.z.any().optional(),
|
|
9076
|
-
outputSchema: zod.z.any().optional(),
|
|
9077
|
-
});
|
|
9078
|
-
|
|
9079
9126
|
const BaseFieldMappingInstance = BaseMembraneInterface.extend({
|
|
9080
9127
|
userId: zod.z.string(),
|
|
9081
9128
|
revision: zod.z.string(),
|
|
@@ -9307,90 +9354,31 @@ const BaseActionRunLogRecord = BaseWorkspaceElement.extend({
|
|
|
9307
9354
|
error: ErrorDataSchema.optional(),
|
|
9308
9355
|
});
|
|
9309
9356
|
|
|
9310
|
-
const zodBooleanCoercion = () => zod.z.preprocess((val) => {
|
|
9311
|
-
if (typeof val === 'boolean')
|
|
9312
|
-
return val;
|
|
9313
|
-
if (typeof val === 'string') {
|
|
9314
|
-
const lower = val.toLowerCase();
|
|
9315
|
-
if (lower === 'true' || lower === '1')
|
|
9316
|
-
return true;
|
|
9317
|
-
if (lower === 'false' || lower === '0')
|
|
9318
|
-
return false;
|
|
9319
|
-
return Boolean(val);
|
|
9320
|
-
}
|
|
9321
|
-
if (typeof val === 'number')
|
|
9322
|
-
return Boolean(val);
|
|
9323
|
-
return Boolean(val);
|
|
9324
|
-
}, zod.z.boolean());
|
|
9325
|
-
const IncludeArchivedQuery = zod.z.object({
|
|
9326
|
-
includeArchived: zodBooleanCoercion().optional(),
|
|
9327
|
-
});
|
|
9328
|
-
const SearchQuery = zod.z.object({
|
|
9329
|
-
search: zod.z.string().optional(),
|
|
9330
|
-
});
|
|
9331
|
-
const PaginationQuery = zod.z.object({
|
|
9332
|
-
limit: zod.z.coerce.number().int().min(1).max(1000).optional(),
|
|
9333
|
-
cursor: zod.z.string().optional(),
|
|
9334
|
-
});
|
|
9335
|
-
const CommonListElementsQuery = SearchQuery.merge(PaginationQuery).merge(IncludeArchivedQuery);
|
|
9336
|
-
const CommonInstancesListQuery = CommonListElementsQuery.extend({
|
|
9337
|
-
userId: zod.z.string().optional(),
|
|
9338
|
-
instanceKey: zod.z.string().optional(),
|
|
9339
|
-
});
|
|
9340
|
-
const CommonIntegrationOrConnectionQuery = zod.z.object({
|
|
9341
|
-
connectionId: zod.z.string().optional(),
|
|
9342
|
-
integrationId: zod.z.string().optional(),
|
|
9343
|
-
integrationKey: zod.z.string().optional(),
|
|
9344
|
-
});
|
|
9345
|
-
class PaginationResponse {
|
|
9346
|
-
}
|
|
9347
|
-
|
|
9348
9357
|
const ActionApiResponse = BaseAction.extend({
|
|
9349
9358
|
integration: BaseIntegration.optional(),
|
|
9359
|
+
user: BaseCustomer.optional(),
|
|
9360
|
+
parent: BaseAction.optional(),
|
|
9350
9361
|
appliedToIntegrations: AppliedToIntegrations(BaseAction).optional(),
|
|
9351
9362
|
defaultOutputSchema: DataSchema.optional(),
|
|
9352
9363
|
transformedOutputSchema: DataSchema.optional(),
|
|
9353
9364
|
outputSchema: DataSchema.optional(),
|
|
9354
9365
|
dependencies: zod.z.array(zod.z.any()).optional(),
|
|
9355
9366
|
});
|
|
9356
|
-
const FindActionsQuery =
|
|
9357
|
-
integrationId: zod.z.string().optional(),
|
|
9358
|
-
parentId: zod.z.string().optional(),
|
|
9359
|
-
integrationKey: zod.z.string().optional(),
|
|
9360
|
-
search: zod.z.string().optional(),
|
|
9361
|
-
includeArchived: zodBooleanCoercion().optional(),
|
|
9362
|
-
});
|
|
9367
|
+
const FindActionsQuery = FindIntegrationLevelMembraneInterfaceQuery;
|
|
9363
9368
|
const CreateActionRequest = ActionEditableProperties;
|
|
9364
9369
|
const UpdateActionRequest = CreateActionRequest.extend({}).partial();
|
|
9370
|
+
const CreateActionInstanceRequest = CreateActionRequest;
|
|
9371
|
+
const UpdateActionInstanceRequest = UpdateActionRequest;
|
|
9372
|
+
const RunActionRequest = zod.z.object({
|
|
9373
|
+
input: zod.z.any().optional(),
|
|
9374
|
+
});
|
|
9365
9375
|
const ActionRunResponse = zod.z.object({
|
|
9366
9376
|
output: zod.z.any().optional(),
|
|
9367
9377
|
logs: zod.z.array(zod.z.any()).optional(),
|
|
9368
9378
|
});
|
|
9369
|
-
|
|
9370
|
-
const
|
|
9371
|
-
|
|
9372
|
-
parent: BaseAction.optional(),
|
|
9373
|
-
});
|
|
9374
|
-
const ListActionInstancesForConnectionQuery = zod.z
|
|
9375
|
-
.object({
|
|
9376
|
-
parentId: zod.z.string().optional(),
|
|
9377
|
-
universalParentId: zod.z.string().optional(),
|
|
9378
|
-
})
|
|
9379
|
-
.merge(PaginationQuery);
|
|
9380
|
-
const FindActionInstancesQuery = ListActionInstancesForConnectionQuery.extend({
|
|
9381
|
-
integrationKey: zod.z.string().optional(),
|
|
9382
|
-
integrationId: zod.z.string().optional(),
|
|
9383
|
-
userId: zod.z.string().optional(),
|
|
9384
|
-
connectionId: zod.z.string().optional(),
|
|
9385
|
-
});
|
|
9386
|
-
const CreateActionInstanceRequest = zod.z.object({
|
|
9387
|
-
parentId: zod.z.string(),
|
|
9388
|
-
connectionId: zod.z.string(),
|
|
9389
|
-
config: zod.z.any().optional(),
|
|
9390
|
-
});
|
|
9391
|
-
const UpdateActionInstanceRequest = zod.z.object({
|
|
9392
|
-
config: zod.z.any().optional(),
|
|
9393
|
-
});
|
|
9379
|
+
const ActionInstanceApiResponse = ActionApiResponse;
|
|
9380
|
+
const ListActionInstancesForConnectionQuery = FindActionsQuery;
|
|
9381
|
+
const FindActionInstancesQuery = FindActionsQuery;
|
|
9394
9382
|
|
|
9395
9383
|
const ActionRunLogRecordApiResponse = BaseActionRunLogRecord.extend({
|
|
9396
9384
|
action: BaseAction.optional(),
|
|
@@ -9642,12 +9630,12 @@ const IntegrationApiResponse = BaseIntegration.extend({
|
|
|
9642
9630
|
parametersSchema: DataSchema.optional(),
|
|
9643
9631
|
});
|
|
9644
9632
|
|
|
9645
|
-
const
|
|
9633
|
+
const PackageElementApi = zod.z.object({
|
|
9646
9634
|
id: zod.z.string(),
|
|
9647
9635
|
type: zod.z.enum(exports.IntegrationElementType),
|
|
9648
9636
|
element: zod.z.any().optional(),
|
|
9649
9637
|
});
|
|
9650
|
-
const
|
|
9638
|
+
const FindPackagesQuery = zod.z
|
|
9651
9639
|
.object({
|
|
9652
9640
|
integrationId: zod.z.string().optional(),
|
|
9653
9641
|
integrationKey: zod.z.string().optional(),
|
|
@@ -9656,8 +9644,8 @@ const FindScenariosQuery = zod.z
|
|
|
9656
9644
|
.extend(SearchQuery.shape)
|
|
9657
9645
|
.extend(PaginationQuery.shape)
|
|
9658
9646
|
.extend(IncludeArchivedQuery.shape);
|
|
9659
|
-
const
|
|
9660
|
-
appliedToIntegrations: AppliedToIntegrations(
|
|
9647
|
+
const PackageApiResponse = BasePackage.extend({
|
|
9648
|
+
appliedToIntegrations: AppliedToIntegrations(BasePackage).optional(),
|
|
9661
9649
|
});
|
|
9662
9650
|
|
|
9663
9651
|
const ScreenApiResponse = BaseScreen;
|
|
@@ -9938,14 +9926,14 @@ const WorkspaceElementSpecs = {
|
|
|
9938
9926
|
name: 'Connection',
|
|
9939
9927
|
namePlural: 'Connections',
|
|
9940
9928
|
},
|
|
9941
|
-
[exports.WorkspaceElementType.
|
|
9942
|
-
type: exports.WorkspaceElementType.
|
|
9943
|
-
apiPath: '
|
|
9944
|
-
name: '
|
|
9945
|
-
namePlural: '
|
|
9946
|
-
editablePropertiesSchema:
|
|
9947
|
-
apiResponseSchema:
|
|
9948
|
-
findQuerySchema:
|
|
9929
|
+
[exports.WorkspaceElementType.Package]: {
|
|
9930
|
+
type: exports.WorkspaceElementType.Package,
|
|
9931
|
+
apiPath: 'packages',
|
|
9932
|
+
name: 'Package',
|
|
9933
|
+
namePlural: 'Packages',
|
|
9934
|
+
editablePropertiesSchema: PackageEditableProperties,
|
|
9935
|
+
apiResponseSchema: PackageApiResponse,
|
|
9936
|
+
findQuerySchema: FindPackagesQuery,
|
|
9949
9937
|
isMembraneInterface: true,
|
|
9950
9938
|
isIntegrationLevel: true,
|
|
9951
9939
|
},
|
|
@@ -9989,6 +9977,7 @@ const WorkspaceElementSpecs = {
|
|
|
9989
9977
|
updateSchema: updateFlowInstanceSchema,
|
|
9990
9978
|
name: 'Flow',
|
|
9991
9979
|
namePlural: 'Flows',
|
|
9980
|
+
parentFieldKey: 'flowId',
|
|
9992
9981
|
isMembraneInterface: true,
|
|
9993
9982
|
},
|
|
9994
9983
|
[exports.WorkspaceElementType.FlowRun]: {
|
|
@@ -10011,6 +10000,7 @@ const WorkspaceElementSpecs = {
|
|
|
10011
10000
|
apiPath: 'field-mapping-instances',
|
|
10012
10001
|
name: 'Field Mapping Instance',
|
|
10013
10002
|
namePlural: 'Field Mapping Instances',
|
|
10003
|
+
parentFieldKey: 'fieldMappingId',
|
|
10014
10004
|
isMembraneInterface: true,
|
|
10015
10005
|
},
|
|
10016
10006
|
[exports.WorkspaceElementType.DataCollection]: {
|
|
@@ -10033,6 +10023,7 @@ const WorkspaceElementSpecs = {
|
|
|
10033
10023
|
apiPath: 'data-source-instances',
|
|
10034
10024
|
name: 'Data Source Instance',
|
|
10035
10025
|
namePlural: 'Data Source Instances',
|
|
10026
|
+
parentFieldKey: 'dataSourceId',
|
|
10036
10027
|
isMembraneInterface: true,
|
|
10037
10028
|
},
|
|
10038
10029
|
[exports.WorkspaceElementType.DataLinkTable]: {
|
|
@@ -10047,6 +10038,7 @@ const WorkspaceElementSpecs = {
|
|
|
10047
10038
|
apiPath: 'data-link-table-instances',
|
|
10048
10039
|
name: 'Data Link Table Instance',
|
|
10049
10040
|
namePlural: 'Data Link Table Instances',
|
|
10041
|
+
parentFieldKey: 'dataLinkTableId',
|
|
10050
10042
|
isMembraneInterface: true,
|
|
10051
10043
|
},
|
|
10052
10044
|
[exports.WorkspaceElementType.AppEventType]: {
|
|
@@ -10081,6 +10073,7 @@ const WorkspaceElementSpecs = {
|
|
|
10081
10073
|
apiPath: 'app-data-schema-instances',
|
|
10082
10074
|
name: 'App Data Schema Instance',
|
|
10083
10075
|
namePlural: 'App Data Schema Instances',
|
|
10076
|
+
parentFieldKey: 'appDataSchemaId',
|
|
10084
10077
|
isMembraneInterface: true,
|
|
10085
10078
|
},
|
|
10086
10079
|
[exports.WorkspaceElementType.ExternalEventSubscription]: {
|
|
@@ -10722,6 +10715,9 @@ exports.WebhookTypeEnum = void 0;
|
|
|
10722
10715
|
WebhookTypeEnum["USER_INVITED_TO_ORG"] = "user-invited-to-org";
|
|
10723
10716
|
WebhookTypeEnum["ORG_ACCESS_REQUESTED"] = "org-access-requested";
|
|
10724
10717
|
WebhookTypeEnum["ORG_CREATED"] = "org-created";
|
|
10718
|
+
WebhookTypeEnum["TASK_CREATED"] = "task-created";
|
|
10719
|
+
WebhookTypeEnum["TASK_UPDATED"] = "task-updated";
|
|
10720
|
+
WebhookTypeEnum["TASK_ACTIVITY_CREATED"] = "task-activity-created";
|
|
10725
10721
|
})(exports.WebhookTypeEnum || (exports.WebhookTypeEnum = {}));
|
|
10726
10722
|
|
|
10727
10723
|
exports.AlertStatus = void 0;
|
|
@@ -10737,6 +10733,8 @@ exports.AlertSeverity = void 0;
|
|
|
10737
10733
|
exports.AlertType = void 0;
|
|
10738
10734
|
(function (AlertType) {
|
|
10739
10735
|
AlertType["externalEventsPerCustomerPerDay"] = "externalEventsPerCustomerPerDay";
|
|
10736
|
+
AlertType["totalUsagePerDay"] = "totalUsagePerDay";
|
|
10737
|
+
AlertType["totalUsagePer30Days"] = "totalUsagePer30Days";
|
|
10740
10738
|
})(exports.AlertType || (exports.AlertType = {}));
|
|
10741
10739
|
|
|
10742
10740
|
class ElementAccessor {
|
|
@@ -12180,20 +12178,22 @@ class IntegrationAccessor extends ElementAccessor {
|
|
|
12180
12178
|
}
|
|
12181
12179
|
}
|
|
12182
12180
|
|
|
12183
|
-
class
|
|
12181
|
+
class PackagesAccessor extends ElementListAccessor {
|
|
12184
12182
|
constructor(client) {
|
|
12185
|
-
super(client, '
|
|
12183
|
+
super(client, 'packages');
|
|
12186
12184
|
}
|
|
12187
12185
|
}
|
|
12188
|
-
class
|
|
12186
|
+
class PackageAccessor extends ElementAccessor {
|
|
12189
12187
|
constructor(client, selector) {
|
|
12190
12188
|
super({
|
|
12191
12189
|
client,
|
|
12192
12190
|
selector,
|
|
12193
|
-
path: '
|
|
12191
|
+
path: 'package',
|
|
12194
12192
|
});
|
|
12195
12193
|
}
|
|
12196
12194
|
}
|
|
12195
|
+
const ScenariosAccessor = PackagesAccessor;
|
|
12196
|
+
const ScenarioAccessor = PackageAccessor;
|
|
12197
12197
|
|
|
12198
12198
|
class ScreensAccessor extends ElementListAccessor {
|
|
12199
12199
|
constructor(client) {
|
|
@@ -12380,6 +12380,13 @@ exports.WorkspaceSyncEventType = void 0;
|
|
|
12380
12380
|
(function (WorkspaceSyncEventType) {
|
|
12381
12381
|
WorkspaceSyncEventType["ElementUpdate"] = "element-update";
|
|
12382
12382
|
})(exports.WorkspaceSyncEventType || (exports.WorkspaceSyncEventType = {}));
|
|
12383
|
+
exports.ConnectorFileUpdateType = void 0;
|
|
12384
|
+
(function (ConnectorFileUpdateType) {
|
|
12385
|
+
ConnectorFileUpdateType["ConnectorFileUpdated"] = "connector-file-updated";
|
|
12386
|
+
ConnectorFileUpdateType["ConnectorFileDeleted"] = "connector-file-deleted";
|
|
12387
|
+
ConnectorFileUpdateType["ConnectorDirectoryRenamed"] = "connector-directory-renamed";
|
|
12388
|
+
ConnectorFileUpdateType["ConnectorDirectoryDeleted"] = "connector-directory-deleted";
|
|
12389
|
+
})(exports.ConnectorFileUpdateType || (exports.ConnectorFileUpdateType = {}));
|
|
12383
12390
|
|
|
12384
12391
|
exports.ScenarioTemplateCategory = void 0;
|
|
12385
12392
|
(function (ScenarioTemplateCategory) {
|
|
@@ -12703,11 +12710,11 @@ class MembraneClient extends MembraneApiClient {
|
|
|
12703
12710
|
get customers() {
|
|
12704
12711
|
return new CustomersAccessor(this);
|
|
12705
12712
|
}
|
|
12706
|
-
|
|
12707
|
-
return new
|
|
12713
|
+
package(selector) {
|
|
12714
|
+
return new PackageAccessor(this, selector);
|
|
12708
12715
|
}
|
|
12709
|
-
get
|
|
12710
|
-
return new
|
|
12716
|
+
get packages() {
|
|
12717
|
+
return new PackagesAccessor(this);
|
|
12711
12718
|
}
|
|
12712
12719
|
async createEventSource(uri, queryParams) {
|
|
12713
12720
|
return super.createEventSource(uri, queryParams);
|
|
@@ -12947,7 +12954,7 @@ exports.BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = BaseIntegratio
|
|
|
12947
12954
|
exports.BaseMembraneInterface = BaseMembraneInterface;
|
|
12948
12955
|
exports.BaseMembraneInterfaceEditableProperties = BaseMembraneInterfaceEditableProperties;
|
|
12949
12956
|
exports.BaseMembraneInterfaceReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties;
|
|
12950
|
-
exports.
|
|
12957
|
+
exports.BasePackage = BasePackage;
|
|
12951
12958
|
exports.BaseScreen = BaseScreen;
|
|
12952
12959
|
exports.BaseWorkspaceElement = BaseWorkspaceElement;
|
|
12953
12960
|
exports.CONFIG_FILE_NAME = CONFIG_FILE_NAME;
|
|
@@ -13109,8 +13116,9 @@ exports.FindFlowInstancesQuery = FindFlowInstancesQuery;
|
|
|
13109
13116
|
exports.FindFlowRunsQuery = FindFlowRunsQuery;
|
|
13110
13117
|
exports.FindFlowRunsResponse = FindFlowRunsResponse;
|
|
13111
13118
|
exports.FindFlowsQuery = FindFlowsQuery;
|
|
13119
|
+
exports.FindIntegrationLevelMembraneInterfaceQuery = FindIntegrationLevelMembraneInterfaceQuery;
|
|
13112
13120
|
exports.FindIntegrationsQuery = FindIntegrationsQuery;
|
|
13113
|
-
exports.
|
|
13121
|
+
exports.FindPackagesQuery = FindPackagesQuery;
|
|
13114
13122
|
exports.FlowAccessor = FlowAccessor;
|
|
13115
13123
|
exports.FlowApiResponse = FlowApiResponse;
|
|
13116
13124
|
exports.FlowEditableProperties = FlowEditableProperties;
|
|
@@ -13155,6 +13163,7 @@ exports.IntegrationLevelFieldMappingAccessor = IntegrationLevelFieldMappingAcces
|
|
|
13155
13163
|
exports.IntegrationLevelFieldMappingsListAccessor = IntegrationLevelFieldMappingsListAccessor;
|
|
13156
13164
|
exports.IntegrationLevelFlowAccessor = IntegrationLevelFlowAccessor;
|
|
13157
13165
|
exports.IntegrationLevelFlowsListAccessor = IntegrationLevelFlowsListAccessor;
|
|
13166
|
+
exports.IntegrationLevelMembraneInterfaceSelectorQuery = IntegrationLevelMembraneInterfaceSelectorQuery;
|
|
13158
13167
|
exports.IntegrationsAccessor = IntegrationsAccessor;
|
|
13159
13168
|
exports.InternalError = InternalError;
|
|
13160
13169
|
exports.InvalidLocatorError = InvalidLocatorError;
|
|
@@ -13174,17 +13183,20 @@ exports.NotFoundError = NotFoundError;
|
|
|
13174
13183
|
exports.OAUTH1_CONFIG_SCHEMA = OAUTH1_CONFIG_SCHEMA;
|
|
13175
13184
|
exports.OAUTH_CONFIG_SCHEMA = OAUTH_CONFIG_SCHEMA;
|
|
13176
13185
|
exports.PARALLEL_EXECUTION_LIMITS = PARALLEL_EXECUTION_LIMITS;
|
|
13186
|
+
exports.PackageAccessor = PackageAccessor;
|
|
13187
|
+
exports.PackageApiResponse = PackageApiResponse;
|
|
13188
|
+
exports.PackageCalculatedProperties = PackageCalculatedProperties;
|
|
13189
|
+
exports.PackageEditableProperties = PackageEditableProperties;
|
|
13190
|
+
exports.PackageElement = PackageElement;
|
|
13191
|
+
exports.PackageElementApi = PackageElementApi;
|
|
13192
|
+
exports.PackagesAccessor = PackagesAccessor;
|
|
13177
13193
|
exports.PaginationQuery = PaginationQuery;
|
|
13178
13194
|
exports.PaginationResponse = PaginationResponse;
|
|
13179
13195
|
exports.RATE_LIMITS = RATE_LIMITS;
|
|
13180
13196
|
exports.RateLimitExceededError = RateLimitExceededError;
|
|
13181
13197
|
exports.ResetFlowInstanceOptions = ResetFlowInstanceOptions;
|
|
13198
|
+
exports.RunActionRequest = RunActionRequest;
|
|
13182
13199
|
exports.ScenarioAccessor = ScenarioAccessor;
|
|
13183
|
-
exports.ScenarioApiResponse = ScenarioApiResponse;
|
|
13184
|
-
exports.ScenarioCalculatedProperties = ScenarioCalculatedProperties;
|
|
13185
|
-
exports.ScenarioEditableProperties = ScenarioEditableProperties;
|
|
13186
|
-
exports.ScenarioElement = ScenarioElement;
|
|
13187
|
-
exports.ScenarioElementApi = ScenarioElementApi;
|
|
13188
13200
|
exports.ScenarioTemplate = ScenarioTemplate;
|
|
13189
13201
|
exports.ScenarioTemplateElements = ScenarioTemplateElements;
|
|
13190
13202
|
exports.ScenariosAccessor = ScenariosAccessor;
|