@membranehq/sdk 0.7.5 → 0.8.0
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 +3 -4
- package/dist/bundle.js +7 -41
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/actions-accessors.d.ts +0 -1
- package/dist/dts/accessors/data-sources-accessors.d.ts +0 -1
- package/dist/dts/accessors/field-mappings-accessors.d.ts +0 -1
- package/dist/dts/accessors/flows-accessors.d.ts +0 -1
- package/dist/dts/workspace-elements/api/scenarios-api.d.ts +3 -0
- package/dist/dts/workspace-elements-catalog/index.d.ts +2 -0
- package/dist/index.browser.d.mts +5 -4
- package/dist/index.browser.d.ts +5 -4
- package/dist/index.browser.js +64 -54
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +64 -54
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +5 -4
- package/dist/index.node.d.ts +5 -4
- package/dist/index.node.js +64 -54
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +64 -54
- package/dist/index.node.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.node.mjs
CHANGED
|
@@ -47,7 +47,7 @@ var ConcurrencyErrorKey;
|
|
|
47
47
|
ConcurrencyErrorKey["LOCK_TIMEOUT"] = "lock_timeout";
|
|
48
48
|
})(ConcurrencyErrorKey || (ConcurrencyErrorKey = {}));
|
|
49
49
|
const ErrorDataSchema = z.lazy(() => z.object({
|
|
50
|
-
type: z.
|
|
50
|
+
type: z.enum(ErrorType).optional(),
|
|
51
51
|
key: z.string().optional(),
|
|
52
52
|
message: z.string(),
|
|
53
53
|
data: z.any().optional(),
|
|
@@ -3441,7 +3441,7 @@ const BaseMembraneInterfaceEditableProperties = z.object({
|
|
|
3441
3441
|
});
|
|
3442
3442
|
const BaseMembraneInterfaceReadOnlyProperties = z.object({
|
|
3443
3443
|
name: z.string(),
|
|
3444
|
-
state: z.
|
|
3444
|
+
state: z.enum(WorkspaceElementState).optional(),
|
|
3445
3445
|
errors: z.array(ErrorDataSchema).optional(),
|
|
3446
3446
|
revision: z.string().optional(),
|
|
3447
3447
|
createdAt: z.string().optional(),
|
|
@@ -3502,7 +3502,7 @@ const FieldMappingEditableProperties = BaseIntegrationLevelMembraneInterfaceEdit
|
|
|
3502
3502
|
dataSourceKey: z.string().optional(),
|
|
3503
3503
|
dataSourceId: z.string().optional(),
|
|
3504
3504
|
appSchema: DataSchema.optional(),
|
|
3505
|
-
direction: z.
|
|
3505
|
+
direction: z.enum(FieldMappingDirection).optional(),
|
|
3506
3506
|
defaultImportValue: z.any().optional(),
|
|
3507
3507
|
defaultExportValue: z.any().optional(),
|
|
3508
3508
|
importValue: z.any().optional(),
|
|
@@ -3628,7 +3628,7 @@ const ActionEditableProperties = BaseIntegrationLevelMembraneInterfaceEditablePr
|
|
|
3628
3628
|
integrationId: z.string().optional(),
|
|
3629
3629
|
parentId: z.string().optional(),
|
|
3630
3630
|
inputSchema: DataSchema.optional(),
|
|
3631
|
-
type: z.
|
|
3631
|
+
type: z.enum(ActionType).optional(),
|
|
3632
3632
|
config: z.any().optional(),
|
|
3633
3633
|
outputMapping: z.any().optional(),
|
|
3634
3634
|
customOutputSchema: DataSchema.optional(),
|
|
@@ -3650,7 +3650,7 @@ const BaseConnection = BaseWorkspaceElement.extend({
|
|
|
3650
3650
|
isTest: z.boolean().optional(),
|
|
3651
3651
|
disconnected: z.boolean().optional(),
|
|
3652
3652
|
isDefunct: z.boolean().optional(),
|
|
3653
|
-
state: z.
|
|
3653
|
+
state: z.enum(WorkspaceElementState).optional(),
|
|
3654
3654
|
error: ErrorDataSchema.optional(),
|
|
3655
3655
|
integrationId: z.string(),
|
|
3656
3656
|
authOptionKey: z.string().optional(),
|
|
@@ -8397,7 +8397,7 @@ var IncomingWebhooksState;
|
|
|
8397
8397
|
IncomingWebhooksState["ERROR"] = "error";
|
|
8398
8398
|
})(IncomingWebhooksState || (IncomingWebhooksState = {}));
|
|
8399
8399
|
const ExternalEventUnitConfig = z.object({
|
|
8400
|
-
type: z.
|
|
8400
|
+
type: z.enum(ExternalEventType),
|
|
8401
8401
|
dataSource: DataSourceUnitConfig.optional(),
|
|
8402
8402
|
eventKey: z.string().optional(),
|
|
8403
8403
|
eventParameters: z.any().optional(),
|
|
@@ -8455,11 +8455,11 @@ var FlowRunLaunchedByTrigger;
|
|
|
8455
8455
|
FlowRunLaunchedByTrigger["ExternalEvent"] = "external-event";
|
|
8456
8456
|
})(FlowRunLaunchedByTrigger || (FlowRunLaunchedByTrigger = {}));
|
|
8457
8457
|
const FlowRunLaunchedBy = z.object({
|
|
8458
|
-
type: z.
|
|
8458
|
+
type: z.enum(FlowRunLaunchedByTrigger),
|
|
8459
8459
|
ids: z.array(z.string()).optional(),
|
|
8460
8460
|
});
|
|
8461
8461
|
const FlowRunNode = z.object({
|
|
8462
|
-
state: z.
|
|
8462
|
+
state: z.enum(FlowRunNodeState),
|
|
8463
8463
|
runs: z.number().optional(),
|
|
8464
8464
|
erroredRuns: z.number().optional(),
|
|
8465
8465
|
outputs: z.number().optional(),
|
|
@@ -8474,7 +8474,7 @@ const BaseFlowRun = z.object({
|
|
|
8474
8474
|
startNodeKey: z.string(),
|
|
8475
8475
|
userId: z.string(),
|
|
8476
8476
|
input: z.any().optional(),
|
|
8477
|
-
state: z.
|
|
8477
|
+
state: z.enum(FlowRunState),
|
|
8478
8478
|
startTime: z.string(),
|
|
8479
8479
|
endTime: z.string().optional(),
|
|
8480
8480
|
errors: z.array(ErrorDataSchema).optional(),
|
|
@@ -8508,7 +8508,7 @@ const FlowNodeRunOutputSchema = z.object({
|
|
|
8508
8508
|
downstreamRuns: z.array(DownstreamFlowNodeRunSchema),
|
|
8509
8509
|
});
|
|
8510
8510
|
const FlowNodeRunResultSchema = z.object({
|
|
8511
|
-
status: z.
|
|
8511
|
+
status: z.enum(FlowNodeRunStatus),
|
|
8512
8512
|
logs: z.array(z.any()),
|
|
8513
8513
|
outputs: z.array(FlowNodeRunOutputSchema),
|
|
8514
8514
|
errors: z.array(ErrorDataSchema),
|
|
@@ -8526,7 +8526,7 @@ const FlowNodeRunRecordWithoutOutputsDataSchema = z.object({
|
|
|
8526
8526
|
id: z.string(),
|
|
8527
8527
|
upstreamRuns: z.array(UpstreamFlowNodeRunSchema),
|
|
8528
8528
|
input: z.any(),
|
|
8529
|
-
status: z.
|
|
8529
|
+
status: z.enum(FlowNodeRunStatus),
|
|
8530
8530
|
logs: z.array(z.any()),
|
|
8531
8531
|
outputs: z.array(FlowNodeRunOutputMetadataSchema),
|
|
8532
8532
|
errors: z.array(ErrorDataSchema),
|
|
@@ -8888,7 +8888,7 @@ var IntegrationElementType;
|
|
|
8888
8888
|
|
|
8889
8889
|
const ScenarioElement = z.object({
|
|
8890
8890
|
id: z.string(),
|
|
8891
|
-
type: z.
|
|
8891
|
+
type: z.enum(IntegrationElementType),
|
|
8892
8892
|
element: z.any().optional(),
|
|
8893
8893
|
});
|
|
8894
8894
|
const ScenarioEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
@@ -8917,11 +8917,11 @@ var ScreenBlockType;
|
|
|
8917
8917
|
})(ScreenBlockType || (ScreenBlockType = {}));
|
|
8918
8918
|
const ScreenBlock = z
|
|
8919
8919
|
.object({
|
|
8920
|
-
type: z.
|
|
8920
|
+
type: z.enum(ScreenBlockType),
|
|
8921
8921
|
})
|
|
8922
8922
|
.and(z.record(z.string(), z.any()));
|
|
8923
8923
|
const BaseScreen = BaseWorkspaceElement.extend({
|
|
8924
|
-
type: z.
|
|
8924
|
+
type: z.enum(ScreenType),
|
|
8925
8925
|
key: z.string().optional(),
|
|
8926
8926
|
blocks: z.array(ScreenBlock),
|
|
8927
8927
|
});
|
|
@@ -8953,7 +8953,7 @@ const BaseFlowInstance = BaseMembraneInterface.extend({
|
|
|
8953
8953
|
enabled: z.boolean(),
|
|
8954
8954
|
createdAt: z.string(),
|
|
8955
8955
|
updatedAt: z.string(),
|
|
8956
|
-
state: z.
|
|
8956
|
+
state: z.enum(WorkspaceElementState).optional(),
|
|
8957
8957
|
customized: z
|
|
8958
8958
|
.object({
|
|
8959
8959
|
name: z.boolean().optional(),
|
|
@@ -8968,7 +8968,7 @@ var FlowInstanceNodeState;
|
|
|
8968
8968
|
FlowInstanceNodeState["READY"] = "READY";
|
|
8969
8969
|
})(FlowInstanceNodeState || (FlowInstanceNodeState = {}));
|
|
8970
8970
|
const FlowInstanceNode = FlowNode.extend({
|
|
8971
|
-
state: z.
|
|
8971
|
+
state: z.enum(FlowInstanceNodeState).optional(),
|
|
8972
8972
|
errors: z.array(ErrorDataSchema).optional(),
|
|
8973
8973
|
userConfig: z.any().optional(),
|
|
8974
8974
|
testInput: z.any().optional(),
|
|
@@ -9038,7 +9038,7 @@ var ActionDependencyType;
|
|
|
9038
9038
|
ActionDependencyType["DataSource"] = "DataSource";
|
|
9039
9039
|
})(ActionDependencyType || (ActionDependencyType = {}));
|
|
9040
9040
|
const ActionDependency = z.object({
|
|
9041
|
-
type: z.
|
|
9041
|
+
type: z.enum(ActionDependencyType),
|
|
9042
9042
|
key: z.string(),
|
|
9043
9043
|
element: z.any().optional(),
|
|
9044
9044
|
});
|
|
@@ -9047,7 +9047,7 @@ const BaseActionInstance = BaseMembraneInterface.extend({
|
|
|
9047
9047
|
universalParentId: z.string().optional(),
|
|
9048
9048
|
userId: z.string(),
|
|
9049
9049
|
instanceKey: z.string().optional(),
|
|
9050
|
-
type: z.
|
|
9050
|
+
type: z.enum(ActionType).optional(),
|
|
9051
9051
|
inputSchema: z.any().optional(),
|
|
9052
9052
|
config: z.any().optional(),
|
|
9053
9053
|
outputSchema: z.any().optional(),
|
|
@@ -9063,7 +9063,7 @@ const BaseFieldMappingInstance = BaseMembraneInterface.extend({
|
|
|
9063
9063
|
instanceKey: z.string().optional(),
|
|
9064
9064
|
dataSourceInstanceId: z.string().optional(),
|
|
9065
9065
|
dataSourceSchema: DataSchema.optional(),
|
|
9066
|
-
direction: z.
|
|
9066
|
+
direction: z.enum(FieldMappingDirection).optional(),
|
|
9067
9067
|
appSchema: DataSchema.optional(),
|
|
9068
9068
|
importValue: z.any().optional(),
|
|
9069
9069
|
exportValue: z.any().optional(),
|
|
@@ -9072,7 +9072,7 @@ const BaseFieldMappingInstance = BaseMembraneInterface.extend({
|
|
|
9072
9072
|
unifiedImportValue: z.any().optional(),
|
|
9073
9073
|
frozenImportFields: z.array(z.string()).optional(),
|
|
9074
9074
|
frozenExportFields: z.array(z.string()).optional(),
|
|
9075
|
-
state: z.
|
|
9075
|
+
state: z.enum(WorkspaceElementState).optional(),
|
|
9076
9076
|
error: ErrorDataSchema.optional(),
|
|
9077
9077
|
externalSchema: z.any().optional(),
|
|
9078
9078
|
});
|
|
@@ -9100,7 +9100,7 @@ const DataLink = z.object({
|
|
|
9100
9100
|
dataLinkTableInstanceId: z.string(),
|
|
9101
9101
|
externalRecordId: z.string(),
|
|
9102
9102
|
appRecordId: z.string(),
|
|
9103
|
-
direction: z.
|
|
9103
|
+
direction: z.enum(DataLinkDirection),
|
|
9104
9104
|
});
|
|
9105
9105
|
const DataLinkTableConfig = z.object({
|
|
9106
9106
|
key: z.string(),
|
|
@@ -9115,7 +9115,7 @@ var HttpRequestMethod;
|
|
|
9115
9115
|
HttpRequestMethod["DELETE"] = "DELETE";
|
|
9116
9116
|
})(HttpRequestMethod || (HttpRequestMethod = {}));
|
|
9117
9117
|
const HttpRequestSpec = z.object({
|
|
9118
|
-
method: z.string().toUpperCase().pipe(z.
|
|
9118
|
+
method: z.string().toUpperCase().pipe(z.enum(HttpRequestMethod)).optional(),
|
|
9119
9119
|
uri: z.any(),
|
|
9120
9120
|
headers: z.record(z.string(), z.any()).optional(),
|
|
9121
9121
|
query: z.record(z.string(), z.any()).optional(),
|
|
@@ -9198,7 +9198,7 @@ var ExternalEventSubscriptionType;
|
|
|
9198
9198
|
ExternalEventSubscriptionType["ConnectorEvent"] = "connector-event";
|
|
9199
9199
|
})(ExternalEventSubscriptionType || (ExternalEventSubscriptionType = {}));
|
|
9200
9200
|
const ExternalEventSubscriptionConfig = z.object({
|
|
9201
|
-
type: z.
|
|
9201
|
+
type: z.enum(ExternalEventSubscriptionType),
|
|
9202
9202
|
dataSource: DataSourceUnitConfig.optional(),
|
|
9203
9203
|
eventKey: z.string().optional(),
|
|
9204
9204
|
eventParameters: z.any().optional(),
|
|
@@ -9210,7 +9210,7 @@ const BaseExternalEventSubscription = z.object({
|
|
|
9210
9210
|
connectionId: z.string(),
|
|
9211
9211
|
integrationId: z.string(),
|
|
9212
9212
|
config: ExternalEventSubscriptionConfig.optional(),
|
|
9213
|
-
status: z.
|
|
9213
|
+
status: z.enum(ExternalEventSubscriptionStatus).optional(),
|
|
9214
9214
|
error: ErrorDataSchema.optional(),
|
|
9215
9215
|
isRealTime: z.boolean().optional(),
|
|
9216
9216
|
requiresPull: z.boolean().optional(),
|
|
@@ -9241,7 +9241,7 @@ const BaseExternalEventLogRecord = z.object({
|
|
|
9241
9241
|
connectionId: z.string(),
|
|
9242
9242
|
payload: z.any().optional(),
|
|
9243
9243
|
launchedFlowRunIds: z.array(z.string()).optional(),
|
|
9244
|
-
status: z.
|
|
9244
|
+
status: z.enum(ExternalEventLogStatus),
|
|
9245
9245
|
error: ErrorDataSchema.optional(),
|
|
9246
9246
|
});
|
|
9247
9247
|
|
|
@@ -9262,7 +9262,7 @@ const BaseExternalEventPull = z.object({
|
|
|
9262
9262
|
startDatetime: z.string(),
|
|
9263
9263
|
endDatetime: z.string(),
|
|
9264
9264
|
isFullScan: z.boolean().optional(),
|
|
9265
|
-
status: z.
|
|
9265
|
+
status: z.enum(ExternalEventPullStatus),
|
|
9266
9266
|
collectedEventIds: z.array(z.string()),
|
|
9267
9267
|
error: ErrorDataSchema.optional(),
|
|
9268
9268
|
});
|
|
@@ -9278,7 +9278,7 @@ const BaseActionRunLogRecord = BaseWorkspaceElement.extend({
|
|
|
9278
9278
|
connectionId: z.string(),
|
|
9279
9279
|
input: z.any().optional(),
|
|
9280
9280
|
output: z.any().optional(),
|
|
9281
|
-
status: z.
|
|
9281
|
+
status: z.enum(ActionRunLogStatus),
|
|
9282
9282
|
createdAt: z.string(),
|
|
9283
9283
|
completedAt: z.string().optional(),
|
|
9284
9284
|
error: ErrorDataSchema.optional(),
|
|
@@ -9568,13 +9568,13 @@ const FindFlowRunsQuery = PaginationQuery.extend({
|
|
|
9568
9568
|
flowId: z.string().optional(),
|
|
9569
9569
|
universalFlowId: z.string().optional(),
|
|
9570
9570
|
userId: z.string().optional(),
|
|
9571
|
-
state: z.
|
|
9571
|
+
state: z.enum(FlowRunState).optional(),
|
|
9572
9572
|
integrationId: z.string().optional(),
|
|
9573
9573
|
connectionId: z.string().optional(),
|
|
9574
9574
|
startedAfter: z.string().optional(),
|
|
9575
9575
|
});
|
|
9576
9576
|
const FlowRunLaunchedByApi = z.object({
|
|
9577
|
-
type: z.
|
|
9577
|
+
type: z.enum(FlowRunLaunchedByTrigger),
|
|
9578
9578
|
ids: z.array(z.string()).optional(),
|
|
9579
9579
|
});
|
|
9580
9580
|
const FlowRunApiResponse = BaseFlowRun.extend({
|
|
@@ -9621,10 +9621,18 @@ const IntegrationApiResponse = BaseIntegration.extend({
|
|
|
9621
9621
|
|
|
9622
9622
|
const ScenarioElementApi = z.object({
|
|
9623
9623
|
id: z.string(),
|
|
9624
|
-
type: z.
|
|
9624
|
+
type: z.enum(IntegrationElementType),
|
|
9625
9625
|
element: z.any().optional(),
|
|
9626
9626
|
});
|
|
9627
|
-
const FindScenariosQuery = z
|
|
9627
|
+
const FindScenariosQuery = z
|
|
9628
|
+
.object({
|
|
9629
|
+
integrationId: z.string().optional(),
|
|
9630
|
+
integrationKey: z.string().optional(),
|
|
9631
|
+
parentId: z.string().optional(),
|
|
9632
|
+
})
|
|
9633
|
+
.extend(SearchQuery.shape)
|
|
9634
|
+
.extend(PaginationQuery.shape)
|
|
9635
|
+
.extend(IncludeArchivedQuery.shape);
|
|
9628
9636
|
const ScenarioApiResponse = BaseScenario.extend({
|
|
9629
9637
|
appliedToIntegrations: AppliedToIntegrations(BaseScenario).optional(),
|
|
9630
9638
|
});
|
|
@@ -9701,7 +9709,7 @@ const ListExternalEventLogRecordsQuery = CommonListElementsQuery.extend({
|
|
|
9701
9709
|
connectionId: z.string().optional(),
|
|
9702
9710
|
integrationId: z.string().optional(),
|
|
9703
9711
|
externalEventSubscriptionId: z.string().optional(),
|
|
9704
|
-
status: z.
|
|
9712
|
+
status: z.enum(ExternalEventLogStatus).optional(),
|
|
9705
9713
|
});
|
|
9706
9714
|
const ExternalEventLogRecordApiResponse = BaseExternalEventLogRecord.extend({
|
|
9707
9715
|
user: BaseCustomer.optional(),
|
|
@@ -9714,7 +9722,7 @@ const ListExternalEventPullsQuery = CommonListElementsQuery.extend({
|
|
|
9714
9722
|
connectionId: z.string().optional(),
|
|
9715
9723
|
integrationId: z.string().optional(),
|
|
9716
9724
|
externalEventSubscriptionId: z.string().optional(),
|
|
9717
|
-
status: z.
|
|
9725
|
+
status: z.enum(ExternalEventPullStatus).optional(),
|
|
9718
9726
|
});
|
|
9719
9727
|
const ExternalEventPullApiResponse = BaseExternalEventPull.extend({
|
|
9720
9728
|
user: BaseCustomer.optional(),
|
|
@@ -9915,12 +9923,15 @@ const WorkspaceElementSpecs = {
|
|
|
9915
9923
|
editablePropertiesSchema: ScenarioEditableProperties,
|
|
9916
9924
|
apiResponseSchema: ScenarioApiResponse,
|
|
9917
9925
|
findQuerySchema: FindScenariosQuery,
|
|
9926
|
+
isMembraneInterface: true,
|
|
9927
|
+
isIntegrationLevel: true,
|
|
9918
9928
|
},
|
|
9919
9929
|
[WorkspaceElementType.ActionInstance]: {
|
|
9920
9930
|
type: WorkspaceElementType.ActionInstance,
|
|
9921
9931
|
apiPath: 'action-instances',
|
|
9922
9932
|
name: 'Action Instance',
|
|
9923
9933
|
namePlural: 'Action Instances',
|
|
9934
|
+
isMembraneInterface: true,
|
|
9924
9935
|
},
|
|
9925
9936
|
[WorkspaceElementType.Action]: {
|
|
9926
9937
|
type: WorkspaceElementType.Action,
|
|
@@ -9930,6 +9941,8 @@ const WorkspaceElementSpecs = {
|
|
|
9930
9941
|
editablePropertiesSchema: ActionEditableProperties,
|
|
9931
9942
|
apiResponseSchema: ActionApiResponse,
|
|
9932
9943
|
findQuerySchema: FindActionsQuery,
|
|
9944
|
+
isMembraneInterface: true,
|
|
9945
|
+
isIntegrationLevel: true,
|
|
9933
9946
|
},
|
|
9934
9947
|
[WorkspaceElementType.ActionRunLogRecord]: {
|
|
9935
9948
|
type: WorkspaceElementType.ActionRunLogRecord,
|
|
@@ -9943,6 +9956,8 @@ const WorkspaceElementSpecs = {
|
|
|
9943
9956
|
name: 'Flow',
|
|
9944
9957
|
namePlural: 'Flows',
|
|
9945
9958
|
parentFieldKey: 'universalFlowId',
|
|
9959
|
+
isMembraneInterface: true,
|
|
9960
|
+
isIntegrationLevel: true,
|
|
9946
9961
|
},
|
|
9947
9962
|
[WorkspaceElementType.FlowInstance]: {
|
|
9948
9963
|
type: WorkspaceElementType.FlowInstance,
|
|
@@ -9951,6 +9966,7 @@ const WorkspaceElementSpecs = {
|
|
|
9951
9966
|
updateSchema: updateFlowInstanceSchema,
|
|
9952
9967
|
name: 'Flow',
|
|
9953
9968
|
namePlural: 'Flows',
|
|
9969
|
+
isMembraneInterface: true,
|
|
9954
9970
|
},
|
|
9955
9971
|
[WorkspaceElementType.FlowRun]: {
|
|
9956
9972
|
type: WorkspaceElementType.FlowRun,
|
|
@@ -9964,12 +9980,15 @@ const WorkspaceElementSpecs = {
|
|
|
9964
9980
|
name: 'Field Mapping',
|
|
9965
9981
|
namePlural: 'Field Mappings',
|
|
9966
9982
|
parentFieldKey: 'universalFieldMappingId',
|
|
9983
|
+
isMembraneInterface: true,
|
|
9984
|
+
isIntegrationLevel: true,
|
|
9967
9985
|
},
|
|
9968
9986
|
[WorkspaceElementType.FieldMappingInstance]: {
|
|
9969
9987
|
type: WorkspaceElementType.FieldMappingInstance,
|
|
9970
9988
|
apiPath: 'field-mapping-instances',
|
|
9971
9989
|
name: 'Field Mapping Instance',
|
|
9972
9990
|
namePlural: 'Field Mapping Instances',
|
|
9991
|
+
isMembraneInterface: true,
|
|
9973
9992
|
},
|
|
9974
9993
|
[WorkspaceElementType.DataCollection]: {
|
|
9975
9994
|
type: WorkspaceElementType.DataCollection,
|
|
@@ -9983,36 +10002,43 @@ const WorkspaceElementSpecs = {
|
|
|
9983
10002
|
name: 'Data Source',
|
|
9984
10003
|
namePlural: 'Data Sources',
|
|
9985
10004
|
parentFieldKey: 'universalDataSourceId',
|
|
10005
|
+
isMembraneInterface: true,
|
|
10006
|
+
isIntegrationLevel: true,
|
|
9986
10007
|
},
|
|
9987
10008
|
[WorkspaceElementType.DataSourceInstance]: {
|
|
9988
10009
|
type: WorkspaceElementType.DataSourceInstance,
|
|
9989
10010
|
apiPath: 'data-source-instances',
|
|
9990
10011
|
name: 'Data Source Instance',
|
|
9991
10012
|
namePlural: 'Data Source Instances',
|
|
10013
|
+
isMembraneInterface: true,
|
|
9992
10014
|
},
|
|
9993
10015
|
[WorkspaceElementType.DataLinkTable]: {
|
|
9994
10016
|
type: WorkspaceElementType.DataLinkTable,
|
|
9995
10017
|
apiPath: 'data-link-tables',
|
|
9996
10018
|
name: 'Data Link Table',
|
|
9997
10019
|
namePlural: 'Data Link Tables',
|
|
10020
|
+
isMembraneInterface: true,
|
|
9998
10021
|
},
|
|
9999
10022
|
[WorkspaceElementType.DataLinkTableInstance]: {
|
|
10000
10023
|
type: WorkspaceElementType.DataLinkTableInstance,
|
|
10001
10024
|
apiPath: 'data-link-table-instances',
|
|
10002
10025
|
name: 'Data Link Table Instance',
|
|
10003
10026
|
namePlural: 'Data Link Table Instances',
|
|
10027
|
+
isMembraneInterface: true,
|
|
10004
10028
|
},
|
|
10005
10029
|
[WorkspaceElementType.AppEventType]: {
|
|
10006
10030
|
type: WorkspaceElementType.AppEventType,
|
|
10007
10031
|
apiPath: 'app-event-types',
|
|
10008
10032
|
name: 'App Event Type',
|
|
10009
10033
|
namePlural: 'App Event Types',
|
|
10034
|
+
isMembraneInterface: true,
|
|
10010
10035
|
},
|
|
10011
10036
|
[WorkspaceElementType.AppEventSubscription]: {
|
|
10012
10037
|
type: WorkspaceElementType.AppEventSubscription,
|
|
10013
10038
|
apiPath: 'app-event-subscriptions',
|
|
10014
10039
|
name: 'App Event Subscription',
|
|
10015
10040
|
namePlural: 'App Event Subscriptions',
|
|
10041
|
+
isMembraneInterface: true,
|
|
10016
10042
|
},
|
|
10017
10043
|
[WorkspaceElementType.AppEventLogRecord]: {
|
|
10018
10044
|
type: WorkspaceElementType.AppEventLogRecord,
|
|
@@ -10025,18 +10051,21 @@ const WorkspaceElementSpecs = {
|
|
|
10025
10051
|
apiPath: 'app-data-schemas',
|
|
10026
10052
|
name: 'App Data Schema',
|
|
10027
10053
|
namePlural: 'App Data Schemas',
|
|
10054
|
+
isMembraneInterface: true,
|
|
10028
10055
|
},
|
|
10029
10056
|
[WorkspaceElementType.AppDataSchemaInstance]: {
|
|
10030
10057
|
type: WorkspaceElementType.AppDataSchemaInstance,
|
|
10031
10058
|
apiPath: 'app-data-schema-instances',
|
|
10032
10059
|
name: 'App Data Schema Instance',
|
|
10033
10060
|
namePlural: 'App Data Schema Instances',
|
|
10061
|
+
isMembraneInterface: true,
|
|
10034
10062
|
},
|
|
10035
10063
|
[WorkspaceElementType.ExternalEventSubscription]: {
|
|
10036
10064
|
type: WorkspaceElementType.ExternalEventSubscription,
|
|
10037
10065
|
apiPath: 'external-event-subscriptions',
|
|
10038
10066
|
name: 'External Event Subscription',
|
|
10039
10067
|
namePlural: 'External Event Subscriptions',
|
|
10068
|
+
isMembraneInterface: true,
|
|
10040
10069
|
},
|
|
10041
10070
|
[WorkspaceElementType.ExternalEventLogRecord]: {
|
|
10042
10071
|
type: WorkspaceElementType.ExternalEventLogRecord,
|
|
@@ -10055,6 +10084,7 @@ const WorkspaceElementSpecs = {
|
|
|
10055
10084
|
apiPath: 'screens',
|
|
10056
10085
|
name: 'Screen',
|
|
10057
10086
|
namePlural: 'Screens',
|
|
10087
|
+
isMembraneInterface: true,
|
|
10058
10088
|
},
|
|
10059
10089
|
};
|
|
10060
10090
|
|
|
@@ -10872,11 +10902,6 @@ class ActionAccessor extends ElementAccessor {
|
|
|
10872
10902
|
path: 'action',
|
|
10873
10903
|
});
|
|
10874
10904
|
}
|
|
10875
|
-
async apply(integrationKeys) {
|
|
10876
|
-
return await this.options.client.post(this.getPath('apply'), {
|
|
10877
|
-
integrationKeys,
|
|
10878
|
-
});
|
|
10879
|
-
}
|
|
10880
10905
|
async reset() {
|
|
10881
10906
|
return await this.options.client.post(this.getPath('reset'));
|
|
10882
10907
|
}
|
|
@@ -11233,11 +11258,6 @@ class DataSourceAccessor extends ElementAccessor {
|
|
|
11233
11258
|
path: 'data-source',
|
|
11234
11259
|
});
|
|
11235
11260
|
}
|
|
11236
|
-
async apply(integrationKeys) {
|
|
11237
|
-
return await this.options.client.post(this.getPath('apply'), {
|
|
11238
|
-
integrationKeys,
|
|
11239
|
-
});
|
|
11240
|
-
}
|
|
11241
11261
|
async setup() {
|
|
11242
11262
|
await this.options.client.post(this.getPath('setup'));
|
|
11243
11263
|
}
|
|
@@ -11980,11 +12000,6 @@ class FlowAccessor extends ElementAccessor {
|
|
|
11980
12000
|
path: 'flow',
|
|
11981
12001
|
});
|
|
11982
12002
|
}
|
|
11983
|
-
async apply(integrationKeys) {
|
|
11984
|
-
return await this.options.client.post(this.getPath('apply'), {
|
|
11985
|
-
integrationKeys,
|
|
11986
|
-
});
|
|
11987
|
-
}
|
|
11988
12003
|
async reset() {
|
|
11989
12004
|
return await this.options.client.post(this.getPath('reset'));
|
|
11990
12005
|
}
|
|
@@ -12021,11 +12036,6 @@ class FieldMappingAccessor extends ElementAccessor {
|
|
|
12021
12036
|
async getAppSchema() {
|
|
12022
12037
|
return await this.options.client.get(this.getPath('app-schema'));
|
|
12023
12038
|
}
|
|
12024
|
-
async apply(integrationKeys) {
|
|
12025
|
-
return await this.options.client.post(this.getPath('apply'), {
|
|
12026
|
-
integrationKeys,
|
|
12027
|
-
});
|
|
12028
|
-
}
|
|
12029
12039
|
async setup() {
|
|
12030
12040
|
return await this.options.client.post(this.getPath('setup'));
|
|
12031
12041
|
}
|
|
@@ -12390,7 +12400,7 @@ const ScenarioTemplate = z.object({
|
|
|
12390
12400
|
demoAppUri: z.string().optional(),
|
|
12391
12401
|
demoGithubRepo: z.string().optional(),
|
|
12392
12402
|
demoVideoYoutubeUri: z.string().optional(),
|
|
12393
|
-
tags: z.array(z.
|
|
12403
|
+
tags: z.array(z.enum(ScenarioTemplateCategory)).optional(),
|
|
12394
12404
|
elements: ScenarioTemplateElements.optional(),
|
|
12395
12405
|
connectors: z.array(MinimalConnector).optional(),
|
|
12396
12406
|
handyElements: z.array(HandyScenarioTemplateElement).optional(),
|