@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.browser.js
CHANGED
|
@@ -2877,12 +2877,13 @@ class DataBuilderFormulaIterate extends DataBuilderFormulaBase {
|
|
|
2877
2877
|
}
|
|
2878
2878
|
}
|
|
2879
2879
|
getSchema(variablesSchema) {
|
|
2880
|
-
|
|
2880
|
+
const sourceSchema = buildDataSchema(this.source, variablesSchema);
|
|
2881
|
+
const itemSchema = sourceSchema === null || sourceSchema === void 0 ? void 0 : sourceSchema.items;
|
|
2881
2882
|
const itemVariablesSchema = {
|
|
2882
2883
|
type: 'object',
|
|
2883
2884
|
properties: {
|
|
2884
2885
|
parent: variablesSchema,
|
|
2885
|
-
item:
|
|
2886
|
+
item: itemSchema,
|
|
2886
2887
|
index: { type: 'number' },
|
|
2887
2888
|
},
|
|
2888
2889
|
};
|
|
@@ -3369,6 +3370,44 @@ function getFormula(value) {
|
|
|
3369
3370
|
return undefined;
|
|
3370
3371
|
}
|
|
3371
3372
|
|
|
3373
|
+
const zodBooleanCoercion = () => zod.z.preprocess((val) => {
|
|
3374
|
+
if (typeof val === 'boolean')
|
|
3375
|
+
return val;
|
|
3376
|
+
if (typeof val === 'string') {
|
|
3377
|
+
const lower = val.toLowerCase();
|
|
3378
|
+
if (lower === 'true' || lower === '1')
|
|
3379
|
+
return true;
|
|
3380
|
+
if (lower === 'false' || lower === '0')
|
|
3381
|
+
return false;
|
|
3382
|
+
return Boolean(val);
|
|
3383
|
+
}
|
|
3384
|
+
if (typeof val === 'number')
|
|
3385
|
+
return Boolean(val);
|
|
3386
|
+
return Boolean(val);
|
|
3387
|
+
}, zod.z.boolean());
|
|
3388
|
+
const IncludeArchivedQuery = zod.z.object({
|
|
3389
|
+
includeArchived: zodBooleanCoercion().optional(),
|
|
3390
|
+
});
|
|
3391
|
+
const SearchQuery = zod.z.object({
|
|
3392
|
+
search: zod.z.string().optional(),
|
|
3393
|
+
});
|
|
3394
|
+
const PaginationQuery = zod.z.object({
|
|
3395
|
+
limit: zod.z.coerce.number().int().min(1).max(1000).optional(),
|
|
3396
|
+
cursor: zod.z.string().optional(),
|
|
3397
|
+
});
|
|
3398
|
+
const CommonListElementsQuery = SearchQuery.merge(PaginationQuery).merge(IncludeArchivedQuery);
|
|
3399
|
+
const CommonInstancesListQuery = CommonListElementsQuery.extend({
|
|
3400
|
+
userId: zod.z.string().optional(),
|
|
3401
|
+
instanceKey: zod.z.string().optional(),
|
|
3402
|
+
});
|
|
3403
|
+
const CommonIntegrationOrConnectionQuery = zod.z.object({
|
|
3404
|
+
connectionId: zod.z.string().optional(),
|
|
3405
|
+
integrationId: zod.z.string().optional(),
|
|
3406
|
+
integrationKey: zod.z.string().optional(),
|
|
3407
|
+
});
|
|
3408
|
+
class PaginationResponse {
|
|
3409
|
+
}
|
|
3410
|
+
|
|
3372
3411
|
exports.ConfigurationState = void 0;
|
|
3373
3412
|
(function (ConfigurationState) {
|
|
3374
3413
|
ConfigurationState["CONFIGURED"] = "CONFIGURED";
|
|
@@ -3383,7 +3422,7 @@ exports.WorkspaceElementType = void 0;
|
|
|
3383
3422
|
WorkspaceElementType["FlowInstance"] = "flow-instance";
|
|
3384
3423
|
WorkspaceElementType["FlowRun"] = "flow-run";
|
|
3385
3424
|
WorkspaceElementType["Action"] = "action";
|
|
3386
|
-
WorkspaceElementType["
|
|
3425
|
+
WorkspaceElementType["Package"] = "package";
|
|
3387
3426
|
WorkspaceElementType["ActionInstance"] = "action-instance";
|
|
3388
3427
|
WorkspaceElementType["Connection"] = "connection";
|
|
3389
3428
|
WorkspaceElementType["FieldMapping"] = "field-mapping";
|
|
@@ -3456,6 +3495,18 @@ const BaseIntegrationLevelMembraneInterfaceEditableProperties = BaseMembraneInte
|
|
|
3456
3495
|
const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties.extend({
|
|
3457
3496
|
isCustomized: zod.z.boolean().optional(),
|
|
3458
3497
|
});
|
|
3498
|
+
const IntegrationLevelMembraneInterfaceSelectorQuery = zod.z.object({
|
|
3499
|
+
integrationKey: zod.z.string().optional(),
|
|
3500
|
+
connectionId: zod.z.string().optional(),
|
|
3501
|
+
instanceKey: zod.z.string().optional(),
|
|
3502
|
+
});
|
|
3503
|
+
const FindIntegrationLevelMembraneInterfaceQuery = IntegrationLevelMembraneInterfaceSelectorQuery.extend(CommonListElementsQuery.shape).extend({
|
|
3504
|
+
layer: zod.z.enum(['universal', 'integration', 'connection']).optional(),
|
|
3505
|
+
integrationId: zod.z.string().optional(),
|
|
3506
|
+
parentId: zod.z.string().optional(),
|
|
3507
|
+
universalParentId: zod.z.string().optional(),
|
|
3508
|
+
userId: zod.z.string().optional(),
|
|
3509
|
+
});
|
|
3459
3510
|
const BaseIntegrationLevelMembraneInterface = BaseMembraneInterface.merge(BaseIntegrationLevelMembraneInterfaceEditableProperties).merge(BaseIntegrationLevelMembraneInterfaceReadOnlyProperties);
|
|
3460
3511
|
|
|
3461
3512
|
function mergeWithFormulas(a, b) {
|
|
@@ -3623,17 +3674,34 @@ const ACTIONS = {
|
|
|
3623
3674
|
},
|
|
3624
3675
|
};
|
|
3625
3676
|
|
|
3677
|
+
exports.ActionDependencyType = void 0;
|
|
3678
|
+
(function (ActionDependencyType) {
|
|
3679
|
+
ActionDependencyType["FieldMapping"] = "FieldMapping";
|
|
3680
|
+
ActionDependencyType["DataSource"] = "DataSource";
|
|
3681
|
+
})(exports.ActionDependencyType || (exports.ActionDependencyType = {}));
|
|
3682
|
+
const ActionDependency = zod.z.object({
|
|
3683
|
+
type: zod.z.enum(exports.ActionDependencyType),
|
|
3684
|
+
key: zod.z.string(),
|
|
3685
|
+
element: zod.z.any().optional(),
|
|
3686
|
+
});
|
|
3626
3687
|
const ActionEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.extend({
|
|
3627
3688
|
integrationId: zod.z.string().optional(),
|
|
3689
|
+
connectionId: zod.z.string().optional(),
|
|
3628
3690
|
parentId: zod.z.string().optional(),
|
|
3691
|
+
instanceKey: zod.z.string().optional(),
|
|
3629
3692
|
inputSchema: DataSchema.optional(),
|
|
3630
3693
|
type: zod.z.enum(exports.ActionType).optional(),
|
|
3631
3694
|
config: zod.z.any().optional(),
|
|
3632
3695
|
outputMapping: zod.z.any().optional(),
|
|
3633
3696
|
customOutputSchema: DataSchema.optional(),
|
|
3634
3697
|
});
|
|
3635
|
-
const ActionReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties
|
|
3698
|
+
const ActionReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
3699
|
+
universalParentId: zod.z.string().optional(),
|
|
3700
|
+
userId: zod.z.string().optional(),
|
|
3701
|
+
outputSchema: zod.z.any().optional(),
|
|
3702
|
+
});
|
|
3636
3703
|
const BaseAction = BaseMembraneInterface.merge(ActionEditableProperties).merge(ActionReadOnlyProperties);
|
|
3704
|
+
const BaseActionInstance = BaseAction;
|
|
3637
3705
|
|
|
3638
3706
|
const ConnectionRequest = zod.z.object({
|
|
3639
3707
|
path: zod.z.any(),
|
|
@@ -8885,23 +8953,23 @@ exports.IntegrationElementType = void 0;
|
|
|
8885
8953
|
IntegrationElementType["EXTERNAL_EVENT"] = "external-event";
|
|
8886
8954
|
})(exports.IntegrationElementType || (exports.IntegrationElementType = {}));
|
|
8887
8955
|
|
|
8888
|
-
const
|
|
8956
|
+
const PackageElement = zod.z.object({
|
|
8889
8957
|
id: zod.z.string(),
|
|
8890
8958
|
type: zod.z.enum(exports.IntegrationElementType),
|
|
8891
8959
|
element: zod.z.any().optional(),
|
|
8892
8960
|
});
|
|
8893
|
-
const
|
|
8961
|
+
const PackageEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
8894
8962
|
scenarioTemplateId: zod.z.string().optional(),
|
|
8895
|
-
elements: zod.z.array(
|
|
8963
|
+
elements: zod.z.array(PackageElement).optional(),
|
|
8896
8964
|
integrationId: zod.z.string().optional(),
|
|
8897
8965
|
parentId: zod.z.string().optional(),
|
|
8898
8966
|
});
|
|
8899
|
-
const
|
|
8967
|
+
const PackageCalculatedProperties = zod.z.object({
|
|
8900
8968
|
key: zod.z.string(),
|
|
8901
8969
|
name: zod.z.string(),
|
|
8902
8970
|
isCustomized: zod.z.boolean().optional(),
|
|
8903
8971
|
});
|
|
8904
|
-
const
|
|
8972
|
+
const BasePackage = BaseMembraneInterface.merge(PackageEditableProperties).merge(PackageCalculatedProperties);
|
|
8905
8973
|
|
|
8906
8974
|
exports.ScreenType = void 0;
|
|
8907
8975
|
(function (ScreenType) {
|
|
@@ -9031,27 +9099,6 @@ const updateFlowInstanceSchema = zod.z.object({
|
|
|
9031
9099
|
.optional(),
|
|
9032
9100
|
});
|
|
9033
9101
|
|
|
9034
|
-
exports.ActionDependencyType = void 0;
|
|
9035
|
-
(function (ActionDependencyType) {
|
|
9036
|
-
ActionDependencyType["FieldMapping"] = "FieldMapping";
|
|
9037
|
-
ActionDependencyType["DataSource"] = "DataSource";
|
|
9038
|
-
})(exports.ActionDependencyType || (exports.ActionDependencyType = {}));
|
|
9039
|
-
const ActionDependency = zod.z.object({
|
|
9040
|
-
type: zod.z.enum(exports.ActionDependencyType),
|
|
9041
|
-
key: zod.z.string(),
|
|
9042
|
-
element: zod.z.any().optional(),
|
|
9043
|
-
});
|
|
9044
|
-
const BaseActionInstance = BaseMembraneInterface.extend({
|
|
9045
|
-
parentId: zod.z.string().optional(),
|
|
9046
|
-
universalParentId: zod.z.string().optional(),
|
|
9047
|
-
userId: zod.z.string(),
|
|
9048
|
-
instanceKey: zod.z.string().optional(),
|
|
9049
|
-
type: zod.z.enum(exports.ActionType).optional(),
|
|
9050
|
-
inputSchema: zod.z.any().optional(),
|
|
9051
|
-
config: zod.z.any().optional(),
|
|
9052
|
-
outputSchema: zod.z.any().optional(),
|
|
9053
|
-
});
|
|
9054
|
-
|
|
9055
9102
|
const BaseFieldMappingInstance = BaseMembraneInterface.extend({
|
|
9056
9103
|
userId: zod.z.string(),
|
|
9057
9104
|
revision: zod.z.string(),
|
|
@@ -9283,90 +9330,31 @@ const BaseActionRunLogRecord = BaseWorkspaceElement.extend({
|
|
|
9283
9330
|
error: ErrorDataSchema.optional(),
|
|
9284
9331
|
});
|
|
9285
9332
|
|
|
9286
|
-
const zodBooleanCoercion = () => zod.z.preprocess((val) => {
|
|
9287
|
-
if (typeof val === 'boolean')
|
|
9288
|
-
return val;
|
|
9289
|
-
if (typeof val === 'string') {
|
|
9290
|
-
const lower = val.toLowerCase();
|
|
9291
|
-
if (lower === 'true' || lower === '1')
|
|
9292
|
-
return true;
|
|
9293
|
-
if (lower === 'false' || lower === '0')
|
|
9294
|
-
return false;
|
|
9295
|
-
return Boolean(val);
|
|
9296
|
-
}
|
|
9297
|
-
if (typeof val === 'number')
|
|
9298
|
-
return Boolean(val);
|
|
9299
|
-
return Boolean(val);
|
|
9300
|
-
}, zod.z.boolean());
|
|
9301
|
-
const IncludeArchivedQuery = zod.z.object({
|
|
9302
|
-
includeArchived: zodBooleanCoercion().optional(),
|
|
9303
|
-
});
|
|
9304
|
-
const SearchQuery = zod.z.object({
|
|
9305
|
-
search: zod.z.string().optional(),
|
|
9306
|
-
});
|
|
9307
|
-
const PaginationQuery = zod.z.object({
|
|
9308
|
-
limit: zod.z.coerce.number().int().min(1).max(1000).optional(),
|
|
9309
|
-
cursor: zod.z.string().optional(),
|
|
9310
|
-
});
|
|
9311
|
-
const CommonListElementsQuery = SearchQuery.merge(PaginationQuery).merge(IncludeArchivedQuery);
|
|
9312
|
-
const CommonInstancesListQuery = CommonListElementsQuery.extend({
|
|
9313
|
-
userId: zod.z.string().optional(),
|
|
9314
|
-
instanceKey: zod.z.string().optional(),
|
|
9315
|
-
});
|
|
9316
|
-
const CommonIntegrationOrConnectionQuery = zod.z.object({
|
|
9317
|
-
connectionId: zod.z.string().optional(),
|
|
9318
|
-
integrationId: zod.z.string().optional(),
|
|
9319
|
-
integrationKey: zod.z.string().optional(),
|
|
9320
|
-
});
|
|
9321
|
-
class PaginationResponse {
|
|
9322
|
-
}
|
|
9323
|
-
|
|
9324
9333
|
const ActionApiResponse = BaseAction.extend({
|
|
9325
9334
|
integration: BaseIntegration.optional(),
|
|
9335
|
+
user: BaseCustomer.optional(),
|
|
9336
|
+
parent: BaseAction.optional(),
|
|
9326
9337
|
appliedToIntegrations: AppliedToIntegrations(BaseAction).optional(),
|
|
9327
9338
|
defaultOutputSchema: DataSchema.optional(),
|
|
9328
9339
|
transformedOutputSchema: DataSchema.optional(),
|
|
9329
9340
|
outputSchema: DataSchema.optional(),
|
|
9330
9341
|
dependencies: zod.z.array(zod.z.any()).optional(),
|
|
9331
9342
|
});
|
|
9332
|
-
const FindActionsQuery =
|
|
9333
|
-
integrationId: zod.z.string().optional(),
|
|
9334
|
-
parentId: zod.z.string().optional(),
|
|
9335
|
-
integrationKey: zod.z.string().optional(),
|
|
9336
|
-
search: zod.z.string().optional(),
|
|
9337
|
-
includeArchived: zodBooleanCoercion().optional(),
|
|
9338
|
-
});
|
|
9343
|
+
const FindActionsQuery = FindIntegrationLevelMembraneInterfaceQuery;
|
|
9339
9344
|
const CreateActionRequest = ActionEditableProperties;
|
|
9340
9345
|
const UpdateActionRequest = CreateActionRequest.extend({}).partial();
|
|
9346
|
+
const CreateActionInstanceRequest = CreateActionRequest;
|
|
9347
|
+
const UpdateActionInstanceRequest = UpdateActionRequest;
|
|
9348
|
+
const RunActionRequest = zod.z.object({
|
|
9349
|
+
input: zod.z.any().optional(),
|
|
9350
|
+
});
|
|
9341
9351
|
const ActionRunResponse = zod.z.object({
|
|
9342
9352
|
output: zod.z.any().optional(),
|
|
9343
9353
|
logs: zod.z.array(zod.z.any()).optional(),
|
|
9344
9354
|
});
|
|
9345
|
-
|
|
9346
|
-
const
|
|
9347
|
-
|
|
9348
|
-
parent: BaseAction.optional(),
|
|
9349
|
-
});
|
|
9350
|
-
const ListActionInstancesForConnectionQuery = zod.z
|
|
9351
|
-
.object({
|
|
9352
|
-
parentId: zod.z.string().optional(),
|
|
9353
|
-
universalParentId: zod.z.string().optional(),
|
|
9354
|
-
})
|
|
9355
|
-
.merge(PaginationQuery);
|
|
9356
|
-
const FindActionInstancesQuery = ListActionInstancesForConnectionQuery.extend({
|
|
9357
|
-
integrationKey: zod.z.string().optional(),
|
|
9358
|
-
integrationId: zod.z.string().optional(),
|
|
9359
|
-
userId: zod.z.string().optional(),
|
|
9360
|
-
connectionId: zod.z.string().optional(),
|
|
9361
|
-
});
|
|
9362
|
-
const CreateActionInstanceRequest = zod.z.object({
|
|
9363
|
-
parentId: zod.z.string(),
|
|
9364
|
-
connectionId: zod.z.string(),
|
|
9365
|
-
config: zod.z.any().optional(),
|
|
9366
|
-
});
|
|
9367
|
-
const UpdateActionInstanceRequest = zod.z.object({
|
|
9368
|
-
config: zod.z.any().optional(),
|
|
9369
|
-
});
|
|
9355
|
+
const ActionInstanceApiResponse = ActionApiResponse;
|
|
9356
|
+
const ListActionInstancesForConnectionQuery = FindActionsQuery;
|
|
9357
|
+
const FindActionInstancesQuery = FindActionsQuery;
|
|
9370
9358
|
|
|
9371
9359
|
const ActionRunLogRecordApiResponse = BaseActionRunLogRecord.extend({
|
|
9372
9360
|
action: BaseAction.optional(),
|
|
@@ -9618,12 +9606,12 @@ const IntegrationApiResponse = BaseIntegration.extend({
|
|
|
9618
9606
|
parametersSchema: DataSchema.optional(),
|
|
9619
9607
|
});
|
|
9620
9608
|
|
|
9621
|
-
const
|
|
9609
|
+
const PackageElementApi = zod.z.object({
|
|
9622
9610
|
id: zod.z.string(),
|
|
9623
9611
|
type: zod.z.enum(exports.IntegrationElementType),
|
|
9624
9612
|
element: zod.z.any().optional(),
|
|
9625
9613
|
});
|
|
9626
|
-
const
|
|
9614
|
+
const FindPackagesQuery = zod.z
|
|
9627
9615
|
.object({
|
|
9628
9616
|
integrationId: zod.z.string().optional(),
|
|
9629
9617
|
integrationKey: zod.z.string().optional(),
|
|
@@ -9632,8 +9620,8 @@ const FindScenariosQuery = zod.z
|
|
|
9632
9620
|
.extend(SearchQuery.shape)
|
|
9633
9621
|
.extend(PaginationQuery.shape)
|
|
9634
9622
|
.extend(IncludeArchivedQuery.shape);
|
|
9635
|
-
const
|
|
9636
|
-
appliedToIntegrations: AppliedToIntegrations(
|
|
9623
|
+
const PackageApiResponse = BasePackage.extend({
|
|
9624
|
+
appliedToIntegrations: AppliedToIntegrations(BasePackage).optional(),
|
|
9637
9625
|
});
|
|
9638
9626
|
|
|
9639
9627
|
const ScreenApiResponse = BaseScreen;
|
|
@@ -9914,14 +9902,14 @@ const WorkspaceElementSpecs = {
|
|
|
9914
9902
|
name: 'Connection',
|
|
9915
9903
|
namePlural: 'Connections',
|
|
9916
9904
|
},
|
|
9917
|
-
[exports.WorkspaceElementType.
|
|
9918
|
-
type: exports.WorkspaceElementType.
|
|
9919
|
-
apiPath: '
|
|
9920
|
-
name: '
|
|
9921
|
-
namePlural: '
|
|
9922
|
-
editablePropertiesSchema:
|
|
9923
|
-
apiResponseSchema:
|
|
9924
|
-
findQuerySchema:
|
|
9905
|
+
[exports.WorkspaceElementType.Package]: {
|
|
9906
|
+
type: exports.WorkspaceElementType.Package,
|
|
9907
|
+
apiPath: 'packages',
|
|
9908
|
+
name: 'Package',
|
|
9909
|
+
namePlural: 'Packages',
|
|
9910
|
+
editablePropertiesSchema: PackageEditableProperties,
|
|
9911
|
+
apiResponseSchema: PackageApiResponse,
|
|
9912
|
+
findQuerySchema: FindPackagesQuery,
|
|
9925
9913
|
isMembraneInterface: true,
|
|
9926
9914
|
isIntegrationLevel: true,
|
|
9927
9915
|
},
|
|
@@ -9965,6 +9953,7 @@ const WorkspaceElementSpecs = {
|
|
|
9965
9953
|
updateSchema: updateFlowInstanceSchema,
|
|
9966
9954
|
name: 'Flow',
|
|
9967
9955
|
namePlural: 'Flows',
|
|
9956
|
+
parentFieldKey: 'flowId',
|
|
9968
9957
|
isMembraneInterface: true,
|
|
9969
9958
|
},
|
|
9970
9959
|
[exports.WorkspaceElementType.FlowRun]: {
|
|
@@ -9987,6 +9976,7 @@ const WorkspaceElementSpecs = {
|
|
|
9987
9976
|
apiPath: 'field-mapping-instances',
|
|
9988
9977
|
name: 'Field Mapping Instance',
|
|
9989
9978
|
namePlural: 'Field Mapping Instances',
|
|
9979
|
+
parentFieldKey: 'fieldMappingId',
|
|
9990
9980
|
isMembraneInterface: true,
|
|
9991
9981
|
},
|
|
9992
9982
|
[exports.WorkspaceElementType.DataCollection]: {
|
|
@@ -10009,6 +9999,7 @@ const WorkspaceElementSpecs = {
|
|
|
10009
9999
|
apiPath: 'data-source-instances',
|
|
10010
10000
|
name: 'Data Source Instance',
|
|
10011
10001
|
namePlural: 'Data Source Instances',
|
|
10002
|
+
parentFieldKey: 'dataSourceId',
|
|
10012
10003
|
isMembraneInterface: true,
|
|
10013
10004
|
},
|
|
10014
10005
|
[exports.WorkspaceElementType.DataLinkTable]: {
|
|
@@ -10023,6 +10014,7 @@ const WorkspaceElementSpecs = {
|
|
|
10023
10014
|
apiPath: 'data-link-table-instances',
|
|
10024
10015
|
name: 'Data Link Table Instance',
|
|
10025
10016
|
namePlural: 'Data Link Table Instances',
|
|
10017
|
+
parentFieldKey: 'dataLinkTableId',
|
|
10026
10018
|
isMembraneInterface: true,
|
|
10027
10019
|
},
|
|
10028
10020
|
[exports.WorkspaceElementType.AppEventType]: {
|
|
@@ -10057,6 +10049,7 @@ const WorkspaceElementSpecs = {
|
|
|
10057
10049
|
apiPath: 'app-data-schema-instances',
|
|
10058
10050
|
name: 'App Data Schema Instance',
|
|
10059
10051
|
namePlural: 'App Data Schema Instances',
|
|
10052
|
+
parentFieldKey: 'appDataSchemaId',
|
|
10060
10053
|
isMembraneInterface: true,
|
|
10061
10054
|
},
|
|
10062
10055
|
[exports.WorkspaceElementType.ExternalEventSubscription]: {
|
|
@@ -10698,6 +10691,9 @@ exports.WebhookTypeEnum = void 0;
|
|
|
10698
10691
|
WebhookTypeEnum["USER_INVITED_TO_ORG"] = "user-invited-to-org";
|
|
10699
10692
|
WebhookTypeEnum["ORG_ACCESS_REQUESTED"] = "org-access-requested";
|
|
10700
10693
|
WebhookTypeEnum["ORG_CREATED"] = "org-created";
|
|
10694
|
+
WebhookTypeEnum["TASK_CREATED"] = "task-created";
|
|
10695
|
+
WebhookTypeEnum["TASK_UPDATED"] = "task-updated";
|
|
10696
|
+
WebhookTypeEnum["TASK_ACTIVITY_CREATED"] = "task-activity-created";
|
|
10701
10697
|
})(exports.WebhookTypeEnum || (exports.WebhookTypeEnum = {}));
|
|
10702
10698
|
|
|
10703
10699
|
exports.AlertStatus = void 0;
|
|
@@ -10713,6 +10709,8 @@ exports.AlertSeverity = void 0;
|
|
|
10713
10709
|
exports.AlertType = void 0;
|
|
10714
10710
|
(function (AlertType) {
|
|
10715
10711
|
AlertType["externalEventsPerCustomerPerDay"] = "externalEventsPerCustomerPerDay";
|
|
10712
|
+
AlertType["totalUsagePerDay"] = "totalUsagePerDay";
|
|
10713
|
+
AlertType["totalUsagePer30Days"] = "totalUsagePer30Days";
|
|
10716
10714
|
})(exports.AlertType || (exports.AlertType = {}));
|
|
10717
10715
|
|
|
10718
10716
|
class ElementAccessor {
|
|
@@ -12156,20 +12154,22 @@ class IntegrationAccessor extends ElementAccessor {
|
|
|
12156
12154
|
}
|
|
12157
12155
|
}
|
|
12158
12156
|
|
|
12159
|
-
class
|
|
12157
|
+
class PackagesAccessor extends ElementListAccessor {
|
|
12160
12158
|
constructor(client) {
|
|
12161
|
-
super(client, '
|
|
12159
|
+
super(client, 'packages');
|
|
12162
12160
|
}
|
|
12163
12161
|
}
|
|
12164
|
-
class
|
|
12162
|
+
class PackageAccessor extends ElementAccessor {
|
|
12165
12163
|
constructor(client, selector) {
|
|
12166
12164
|
super({
|
|
12167
12165
|
client,
|
|
12168
12166
|
selector,
|
|
12169
|
-
path: '
|
|
12167
|
+
path: 'package',
|
|
12170
12168
|
});
|
|
12171
12169
|
}
|
|
12172
12170
|
}
|
|
12171
|
+
const ScenariosAccessor = PackagesAccessor;
|
|
12172
|
+
const ScenarioAccessor = PackageAccessor;
|
|
12173
12173
|
|
|
12174
12174
|
class ScreensAccessor extends ElementListAccessor {
|
|
12175
12175
|
constructor(client) {
|
|
@@ -12356,6 +12356,13 @@ exports.WorkspaceSyncEventType = void 0;
|
|
|
12356
12356
|
(function (WorkspaceSyncEventType) {
|
|
12357
12357
|
WorkspaceSyncEventType["ElementUpdate"] = "element-update";
|
|
12358
12358
|
})(exports.WorkspaceSyncEventType || (exports.WorkspaceSyncEventType = {}));
|
|
12359
|
+
exports.ConnectorFileUpdateType = void 0;
|
|
12360
|
+
(function (ConnectorFileUpdateType) {
|
|
12361
|
+
ConnectorFileUpdateType["ConnectorFileUpdated"] = "connector-file-updated";
|
|
12362
|
+
ConnectorFileUpdateType["ConnectorFileDeleted"] = "connector-file-deleted";
|
|
12363
|
+
ConnectorFileUpdateType["ConnectorDirectoryRenamed"] = "connector-directory-renamed";
|
|
12364
|
+
ConnectorFileUpdateType["ConnectorDirectoryDeleted"] = "connector-directory-deleted";
|
|
12365
|
+
})(exports.ConnectorFileUpdateType || (exports.ConnectorFileUpdateType = {}));
|
|
12359
12366
|
|
|
12360
12367
|
exports.ScenarioTemplateCategory = void 0;
|
|
12361
12368
|
(function (ScenarioTemplateCategory) {
|
|
@@ -12679,11 +12686,11 @@ class MembraneClient extends MembraneApiClient {
|
|
|
12679
12686
|
get customers() {
|
|
12680
12687
|
return new CustomersAccessor(this);
|
|
12681
12688
|
}
|
|
12682
|
-
|
|
12683
|
-
return new
|
|
12689
|
+
package(selector) {
|
|
12690
|
+
return new PackageAccessor(this, selector);
|
|
12684
12691
|
}
|
|
12685
|
-
get
|
|
12686
|
-
return new
|
|
12692
|
+
get packages() {
|
|
12693
|
+
return new PackagesAccessor(this);
|
|
12687
12694
|
}
|
|
12688
12695
|
async createEventSource(uri, queryParams) {
|
|
12689
12696
|
return super.createEventSource(uri, queryParams);
|
|
@@ -12757,7 +12764,7 @@ exports.BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = BaseIntegratio
|
|
|
12757
12764
|
exports.BaseMembraneInterface = BaseMembraneInterface;
|
|
12758
12765
|
exports.BaseMembraneInterfaceEditableProperties = BaseMembraneInterfaceEditableProperties;
|
|
12759
12766
|
exports.BaseMembraneInterfaceReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties;
|
|
12760
|
-
exports.
|
|
12767
|
+
exports.BasePackage = BasePackage;
|
|
12761
12768
|
exports.BaseScreen = BaseScreen;
|
|
12762
12769
|
exports.BaseWorkspaceElement = BaseWorkspaceElement;
|
|
12763
12770
|
exports.CONNECTOR_AUTH_TYPES = CONNECTOR_AUTH_TYPES;
|
|
@@ -12918,8 +12925,9 @@ exports.FindFlowInstancesQuery = FindFlowInstancesQuery;
|
|
|
12918
12925
|
exports.FindFlowRunsQuery = FindFlowRunsQuery;
|
|
12919
12926
|
exports.FindFlowRunsResponse = FindFlowRunsResponse;
|
|
12920
12927
|
exports.FindFlowsQuery = FindFlowsQuery;
|
|
12928
|
+
exports.FindIntegrationLevelMembraneInterfaceQuery = FindIntegrationLevelMembraneInterfaceQuery;
|
|
12921
12929
|
exports.FindIntegrationsQuery = FindIntegrationsQuery;
|
|
12922
|
-
exports.
|
|
12930
|
+
exports.FindPackagesQuery = FindPackagesQuery;
|
|
12923
12931
|
exports.FlowAccessor = FlowAccessor;
|
|
12924
12932
|
exports.FlowApiResponse = FlowApiResponse;
|
|
12925
12933
|
exports.FlowEditableProperties = FlowEditableProperties;
|
|
@@ -12964,6 +12972,7 @@ exports.IntegrationLevelFieldMappingAccessor = IntegrationLevelFieldMappingAcces
|
|
|
12964
12972
|
exports.IntegrationLevelFieldMappingsListAccessor = IntegrationLevelFieldMappingsListAccessor;
|
|
12965
12973
|
exports.IntegrationLevelFlowAccessor = IntegrationLevelFlowAccessor;
|
|
12966
12974
|
exports.IntegrationLevelFlowsListAccessor = IntegrationLevelFlowsListAccessor;
|
|
12975
|
+
exports.IntegrationLevelMembraneInterfaceSelectorQuery = IntegrationLevelMembraneInterfaceSelectorQuery;
|
|
12967
12976
|
exports.IntegrationsAccessor = IntegrationsAccessor;
|
|
12968
12977
|
exports.InternalError = InternalError;
|
|
12969
12978
|
exports.InvalidLocatorError = InvalidLocatorError;
|
|
@@ -12982,17 +12991,20 @@ exports.NotFoundError = NotFoundError;
|
|
|
12982
12991
|
exports.OAUTH1_CONFIG_SCHEMA = OAUTH1_CONFIG_SCHEMA;
|
|
12983
12992
|
exports.OAUTH_CONFIG_SCHEMA = OAUTH_CONFIG_SCHEMA;
|
|
12984
12993
|
exports.PARALLEL_EXECUTION_LIMITS = PARALLEL_EXECUTION_LIMITS;
|
|
12994
|
+
exports.PackageAccessor = PackageAccessor;
|
|
12995
|
+
exports.PackageApiResponse = PackageApiResponse;
|
|
12996
|
+
exports.PackageCalculatedProperties = PackageCalculatedProperties;
|
|
12997
|
+
exports.PackageEditableProperties = PackageEditableProperties;
|
|
12998
|
+
exports.PackageElement = PackageElement;
|
|
12999
|
+
exports.PackageElementApi = PackageElementApi;
|
|
13000
|
+
exports.PackagesAccessor = PackagesAccessor;
|
|
12985
13001
|
exports.PaginationQuery = PaginationQuery;
|
|
12986
13002
|
exports.PaginationResponse = PaginationResponse;
|
|
12987
13003
|
exports.RATE_LIMITS = RATE_LIMITS;
|
|
12988
13004
|
exports.RateLimitExceededError = RateLimitExceededError;
|
|
12989
13005
|
exports.ResetFlowInstanceOptions = ResetFlowInstanceOptions;
|
|
13006
|
+
exports.RunActionRequest = RunActionRequest;
|
|
12990
13007
|
exports.ScenarioAccessor = ScenarioAccessor;
|
|
12991
|
-
exports.ScenarioApiResponse = ScenarioApiResponse;
|
|
12992
|
-
exports.ScenarioCalculatedProperties = ScenarioCalculatedProperties;
|
|
12993
|
-
exports.ScenarioEditableProperties = ScenarioEditableProperties;
|
|
12994
|
-
exports.ScenarioElement = ScenarioElement;
|
|
12995
|
-
exports.ScenarioElementApi = ScenarioElementApi;
|
|
12996
13008
|
exports.ScenarioTemplate = ScenarioTemplate;
|
|
12997
13009
|
exports.ScenarioTemplateElements = ScenarioTemplateElements;
|
|
12998
13010
|
exports.ScenariosAccessor = ScenariosAccessor;
|