@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.browser.mjs
CHANGED
|
@@ -44,7 +44,7 @@ var ConcurrencyErrorKey;
|
|
|
44
44
|
ConcurrencyErrorKey["LOCK_TIMEOUT"] = "lock_timeout";
|
|
45
45
|
})(ConcurrencyErrorKey || (ConcurrencyErrorKey = {}));
|
|
46
46
|
const ErrorDataSchema = z.lazy(() => z.object({
|
|
47
|
-
type: z.
|
|
47
|
+
type: z.enum(ErrorType).optional(),
|
|
48
48
|
key: z.string().optional(),
|
|
49
49
|
message: z.string(),
|
|
50
50
|
data: z.any().optional(),
|
|
@@ -3438,7 +3438,7 @@ const BaseMembraneInterfaceEditableProperties = z.object({
|
|
|
3438
3438
|
});
|
|
3439
3439
|
const BaseMembraneInterfaceReadOnlyProperties = z.object({
|
|
3440
3440
|
name: z.string(),
|
|
3441
|
-
state: z.
|
|
3441
|
+
state: z.enum(WorkspaceElementState).optional(),
|
|
3442
3442
|
errors: z.array(ErrorDataSchema).optional(),
|
|
3443
3443
|
revision: z.string().optional(),
|
|
3444
3444
|
createdAt: z.string().optional(),
|
|
@@ -3499,7 +3499,7 @@ const FieldMappingEditableProperties = BaseIntegrationLevelMembraneInterfaceEdit
|
|
|
3499
3499
|
dataSourceKey: z.string().optional(),
|
|
3500
3500
|
dataSourceId: z.string().optional(),
|
|
3501
3501
|
appSchema: DataSchema.optional(),
|
|
3502
|
-
direction: z.
|
|
3502
|
+
direction: z.enum(FieldMappingDirection).optional(),
|
|
3503
3503
|
defaultImportValue: z.any().optional(),
|
|
3504
3504
|
defaultExportValue: z.any().optional(),
|
|
3505
3505
|
importValue: z.any().optional(),
|
|
@@ -3625,7 +3625,7 @@ const ActionEditableProperties = BaseIntegrationLevelMembraneInterfaceEditablePr
|
|
|
3625
3625
|
integrationId: z.string().optional(),
|
|
3626
3626
|
parentId: z.string().optional(),
|
|
3627
3627
|
inputSchema: DataSchema.optional(),
|
|
3628
|
-
type: z.
|
|
3628
|
+
type: z.enum(ActionType).optional(),
|
|
3629
3629
|
config: z.any().optional(),
|
|
3630
3630
|
outputMapping: z.any().optional(),
|
|
3631
3631
|
customOutputSchema: DataSchema.optional(),
|
|
@@ -3647,7 +3647,7 @@ const BaseConnection = BaseWorkspaceElement.extend({
|
|
|
3647
3647
|
isTest: z.boolean().optional(),
|
|
3648
3648
|
disconnected: z.boolean().optional(),
|
|
3649
3649
|
isDefunct: z.boolean().optional(),
|
|
3650
|
-
state: z.
|
|
3650
|
+
state: z.enum(WorkspaceElementState).optional(),
|
|
3651
3651
|
error: ErrorDataSchema.optional(),
|
|
3652
3652
|
integrationId: z.string(),
|
|
3653
3653
|
authOptionKey: z.string().optional(),
|
|
@@ -8394,7 +8394,7 @@ var IncomingWebhooksState;
|
|
|
8394
8394
|
IncomingWebhooksState["ERROR"] = "error";
|
|
8395
8395
|
})(IncomingWebhooksState || (IncomingWebhooksState = {}));
|
|
8396
8396
|
const ExternalEventUnitConfig = z.object({
|
|
8397
|
-
type: z.
|
|
8397
|
+
type: z.enum(ExternalEventType),
|
|
8398
8398
|
dataSource: DataSourceUnitConfig.optional(),
|
|
8399
8399
|
eventKey: z.string().optional(),
|
|
8400
8400
|
eventParameters: z.any().optional(),
|
|
@@ -8452,11 +8452,11 @@ var FlowRunLaunchedByTrigger;
|
|
|
8452
8452
|
FlowRunLaunchedByTrigger["ExternalEvent"] = "external-event";
|
|
8453
8453
|
})(FlowRunLaunchedByTrigger || (FlowRunLaunchedByTrigger = {}));
|
|
8454
8454
|
const FlowRunLaunchedBy = z.object({
|
|
8455
|
-
type: z.
|
|
8455
|
+
type: z.enum(FlowRunLaunchedByTrigger),
|
|
8456
8456
|
ids: z.array(z.string()).optional(),
|
|
8457
8457
|
});
|
|
8458
8458
|
const FlowRunNode = z.object({
|
|
8459
|
-
state: z.
|
|
8459
|
+
state: z.enum(FlowRunNodeState),
|
|
8460
8460
|
runs: z.number().optional(),
|
|
8461
8461
|
erroredRuns: z.number().optional(),
|
|
8462
8462
|
outputs: z.number().optional(),
|
|
@@ -8471,7 +8471,7 @@ const BaseFlowRun = z.object({
|
|
|
8471
8471
|
startNodeKey: z.string(),
|
|
8472
8472
|
userId: z.string(),
|
|
8473
8473
|
input: z.any().optional(),
|
|
8474
|
-
state: z.
|
|
8474
|
+
state: z.enum(FlowRunState),
|
|
8475
8475
|
startTime: z.string(),
|
|
8476
8476
|
endTime: z.string().optional(),
|
|
8477
8477
|
errors: z.array(ErrorDataSchema).optional(),
|
|
@@ -8505,7 +8505,7 @@ const FlowNodeRunOutputSchema = z.object({
|
|
|
8505
8505
|
downstreamRuns: z.array(DownstreamFlowNodeRunSchema),
|
|
8506
8506
|
});
|
|
8507
8507
|
const FlowNodeRunResultSchema = z.object({
|
|
8508
|
-
status: z.
|
|
8508
|
+
status: z.enum(FlowNodeRunStatus),
|
|
8509
8509
|
logs: z.array(z.any()),
|
|
8510
8510
|
outputs: z.array(FlowNodeRunOutputSchema),
|
|
8511
8511
|
errors: z.array(ErrorDataSchema),
|
|
@@ -8523,7 +8523,7 @@ const FlowNodeRunRecordWithoutOutputsDataSchema = z.object({
|
|
|
8523
8523
|
id: z.string(),
|
|
8524
8524
|
upstreamRuns: z.array(UpstreamFlowNodeRunSchema),
|
|
8525
8525
|
input: z.any(),
|
|
8526
|
-
status: z.
|
|
8526
|
+
status: z.enum(FlowNodeRunStatus),
|
|
8527
8527
|
logs: z.array(z.any()),
|
|
8528
8528
|
outputs: z.array(FlowNodeRunOutputMetadataSchema),
|
|
8529
8529
|
errors: z.array(ErrorDataSchema),
|
|
@@ -8885,7 +8885,7 @@ var IntegrationElementType;
|
|
|
8885
8885
|
|
|
8886
8886
|
const ScenarioElement = z.object({
|
|
8887
8887
|
id: z.string(),
|
|
8888
|
-
type: z.
|
|
8888
|
+
type: z.enum(IntegrationElementType),
|
|
8889
8889
|
element: z.any().optional(),
|
|
8890
8890
|
});
|
|
8891
8891
|
const ScenarioEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
@@ -8914,11 +8914,11 @@ var ScreenBlockType;
|
|
|
8914
8914
|
})(ScreenBlockType || (ScreenBlockType = {}));
|
|
8915
8915
|
const ScreenBlock = z
|
|
8916
8916
|
.object({
|
|
8917
|
-
type: z.
|
|
8917
|
+
type: z.enum(ScreenBlockType),
|
|
8918
8918
|
})
|
|
8919
8919
|
.and(z.record(z.string(), z.any()));
|
|
8920
8920
|
const BaseScreen = BaseWorkspaceElement.extend({
|
|
8921
|
-
type: z.
|
|
8921
|
+
type: z.enum(ScreenType),
|
|
8922
8922
|
key: z.string().optional(),
|
|
8923
8923
|
blocks: z.array(ScreenBlock),
|
|
8924
8924
|
});
|
|
@@ -8950,7 +8950,7 @@ const BaseFlowInstance = BaseMembraneInterface.extend({
|
|
|
8950
8950
|
enabled: z.boolean(),
|
|
8951
8951
|
createdAt: z.string(),
|
|
8952
8952
|
updatedAt: z.string(),
|
|
8953
|
-
state: z.
|
|
8953
|
+
state: z.enum(WorkspaceElementState).optional(),
|
|
8954
8954
|
customized: z
|
|
8955
8955
|
.object({
|
|
8956
8956
|
name: z.boolean().optional(),
|
|
@@ -8965,7 +8965,7 @@ var FlowInstanceNodeState;
|
|
|
8965
8965
|
FlowInstanceNodeState["READY"] = "READY";
|
|
8966
8966
|
})(FlowInstanceNodeState || (FlowInstanceNodeState = {}));
|
|
8967
8967
|
const FlowInstanceNode = FlowNode.extend({
|
|
8968
|
-
state: z.
|
|
8968
|
+
state: z.enum(FlowInstanceNodeState).optional(),
|
|
8969
8969
|
errors: z.array(ErrorDataSchema).optional(),
|
|
8970
8970
|
userConfig: z.any().optional(),
|
|
8971
8971
|
testInput: z.any().optional(),
|
|
@@ -9035,7 +9035,7 @@ var ActionDependencyType;
|
|
|
9035
9035
|
ActionDependencyType["DataSource"] = "DataSource";
|
|
9036
9036
|
})(ActionDependencyType || (ActionDependencyType = {}));
|
|
9037
9037
|
const ActionDependency = z.object({
|
|
9038
|
-
type: z.
|
|
9038
|
+
type: z.enum(ActionDependencyType),
|
|
9039
9039
|
key: z.string(),
|
|
9040
9040
|
element: z.any().optional(),
|
|
9041
9041
|
});
|
|
@@ -9044,7 +9044,7 @@ const BaseActionInstance = BaseMembraneInterface.extend({
|
|
|
9044
9044
|
universalParentId: z.string().optional(),
|
|
9045
9045
|
userId: z.string(),
|
|
9046
9046
|
instanceKey: z.string().optional(),
|
|
9047
|
-
type: z.
|
|
9047
|
+
type: z.enum(ActionType).optional(),
|
|
9048
9048
|
inputSchema: z.any().optional(),
|
|
9049
9049
|
config: z.any().optional(),
|
|
9050
9050
|
outputSchema: z.any().optional(),
|
|
@@ -9060,7 +9060,7 @@ const BaseFieldMappingInstance = BaseMembraneInterface.extend({
|
|
|
9060
9060
|
instanceKey: z.string().optional(),
|
|
9061
9061
|
dataSourceInstanceId: z.string().optional(),
|
|
9062
9062
|
dataSourceSchema: DataSchema.optional(),
|
|
9063
|
-
direction: z.
|
|
9063
|
+
direction: z.enum(FieldMappingDirection).optional(),
|
|
9064
9064
|
appSchema: DataSchema.optional(),
|
|
9065
9065
|
importValue: z.any().optional(),
|
|
9066
9066
|
exportValue: z.any().optional(),
|
|
@@ -9069,7 +9069,7 @@ const BaseFieldMappingInstance = BaseMembraneInterface.extend({
|
|
|
9069
9069
|
unifiedImportValue: z.any().optional(),
|
|
9070
9070
|
frozenImportFields: z.array(z.string()).optional(),
|
|
9071
9071
|
frozenExportFields: z.array(z.string()).optional(),
|
|
9072
|
-
state: z.
|
|
9072
|
+
state: z.enum(WorkspaceElementState).optional(),
|
|
9073
9073
|
error: ErrorDataSchema.optional(),
|
|
9074
9074
|
externalSchema: z.any().optional(),
|
|
9075
9075
|
});
|
|
@@ -9097,7 +9097,7 @@ const DataLink = z.object({
|
|
|
9097
9097
|
dataLinkTableInstanceId: z.string(),
|
|
9098
9098
|
externalRecordId: z.string(),
|
|
9099
9099
|
appRecordId: z.string(),
|
|
9100
|
-
direction: z.
|
|
9100
|
+
direction: z.enum(DataLinkDirection),
|
|
9101
9101
|
});
|
|
9102
9102
|
const DataLinkTableConfig = z.object({
|
|
9103
9103
|
key: z.string(),
|
|
@@ -9112,7 +9112,7 @@ var HttpRequestMethod;
|
|
|
9112
9112
|
HttpRequestMethod["DELETE"] = "DELETE";
|
|
9113
9113
|
})(HttpRequestMethod || (HttpRequestMethod = {}));
|
|
9114
9114
|
const HttpRequestSpec = z.object({
|
|
9115
|
-
method: z.string().toUpperCase().pipe(z.
|
|
9115
|
+
method: z.string().toUpperCase().pipe(z.enum(HttpRequestMethod)).optional(),
|
|
9116
9116
|
uri: z.any(),
|
|
9117
9117
|
headers: z.record(z.string(), z.any()).optional(),
|
|
9118
9118
|
query: z.record(z.string(), z.any()).optional(),
|
|
@@ -9195,7 +9195,7 @@ var ExternalEventSubscriptionType;
|
|
|
9195
9195
|
ExternalEventSubscriptionType["ConnectorEvent"] = "connector-event";
|
|
9196
9196
|
})(ExternalEventSubscriptionType || (ExternalEventSubscriptionType = {}));
|
|
9197
9197
|
const ExternalEventSubscriptionConfig = z.object({
|
|
9198
|
-
type: z.
|
|
9198
|
+
type: z.enum(ExternalEventSubscriptionType),
|
|
9199
9199
|
dataSource: DataSourceUnitConfig.optional(),
|
|
9200
9200
|
eventKey: z.string().optional(),
|
|
9201
9201
|
eventParameters: z.any().optional(),
|
|
@@ -9207,7 +9207,7 @@ const BaseExternalEventSubscription = z.object({
|
|
|
9207
9207
|
connectionId: z.string(),
|
|
9208
9208
|
integrationId: z.string(),
|
|
9209
9209
|
config: ExternalEventSubscriptionConfig.optional(),
|
|
9210
|
-
status: z.
|
|
9210
|
+
status: z.enum(ExternalEventSubscriptionStatus).optional(),
|
|
9211
9211
|
error: ErrorDataSchema.optional(),
|
|
9212
9212
|
isRealTime: z.boolean().optional(),
|
|
9213
9213
|
requiresPull: z.boolean().optional(),
|
|
@@ -9238,7 +9238,7 @@ const BaseExternalEventLogRecord = z.object({
|
|
|
9238
9238
|
connectionId: z.string(),
|
|
9239
9239
|
payload: z.any().optional(),
|
|
9240
9240
|
launchedFlowRunIds: z.array(z.string()).optional(),
|
|
9241
|
-
status: z.
|
|
9241
|
+
status: z.enum(ExternalEventLogStatus),
|
|
9242
9242
|
error: ErrorDataSchema.optional(),
|
|
9243
9243
|
});
|
|
9244
9244
|
|
|
@@ -9259,7 +9259,7 @@ const BaseExternalEventPull = z.object({
|
|
|
9259
9259
|
startDatetime: z.string(),
|
|
9260
9260
|
endDatetime: z.string(),
|
|
9261
9261
|
isFullScan: z.boolean().optional(),
|
|
9262
|
-
status: z.
|
|
9262
|
+
status: z.enum(ExternalEventPullStatus),
|
|
9263
9263
|
collectedEventIds: z.array(z.string()),
|
|
9264
9264
|
error: ErrorDataSchema.optional(),
|
|
9265
9265
|
});
|
|
@@ -9275,7 +9275,7 @@ const BaseActionRunLogRecord = BaseWorkspaceElement.extend({
|
|
|
9275
9275
|
connectionId: z.string(),
|
|
9276
9276
|
input: z.any().optional(),
|
|
9277
9277
|
output: z.any().optional(),
|
|
9278
|
-
status: z.
|
|
9278
|
+
status: z.enum(ActionRunLogStatus),
|
|
9279
9279
|
createdAt: z.string(),
|
|
9280
9280
|
completedAt: z.string().optional(),
|
|
9281
9281
|
error: ErrorDataSchema.optional(),
|
|
@@ -9565,13 +9565,13 @@ const FindFlowRunsQuery = PaginationQuery.extend({
|
|
|
9565
9565
|
flowId: z.string().optional(),
|
|
9566
9566
|
universalFlowId: z.string().optional(),
|
|
9567
9567
|
userId: z.string().optional(),
|
|
9568
|
-
state: z.
|
|
9568
|
+
state: z.enum(FlowRunState).optional(),
|
|
9569
9569
|
integrationId: z.string().optional(),
|
|
9570
9570
|
connectionId: z.string().optional(),
|
|
9571
9571
|
startedAfter: z.string().optional(),
|
|
9572
9572
|
});
|
|
9573
9573
|
const FlowRunLaunchedByApi = z.object({
|
|
9574
|
-
type: z.
|
|
9574
|
+
type: z.enum(FlowRunLaunchedByTrigger),
|
|
9575
9575
|
ids: z.array(z.string()).optional(),
|
|
9576
9576
|
});
|
|
9577
9577
|
const FlowRunApiResponse = BaseFlowRun.extend({
|
|
@@ -9618,10 +9618,18 @@ const IntegrationApiResponse = BaseIntegration.extend({
|
|
|
9618
9618
|
|
|
9619
9619
|
const ScenarioElementApi = z.object({
|
|
9620
9620
|
id: z.string(),
|
|
9621
|
-
type: z.
|
|
9621
|
+
type: z.enum(IntegrationElementType),
|
|
9622
9622
|
element: z.any().optional(),
|
|
9623
9623
|
});
|
|
9624
|
-
const FindScenariosQuery = z
|
|
9624
|
+
const FindScenariosQuery = z
|
|
9625
|
+
.object({
|
|
9626
|
+
integrationId: z.string().optional(),
|
|
9627
|
+
integrationKey: z.string().optional(),
|
|
9628
|
+
parentId: z.string().optional(),
|
|
9629
|
+
})
|
|
9630
|
+
.extend(SearchQuery.shape)
|
|
9631
|
+
.extend(PaginationQuery.shape)
|
|
9632
|
+
.extend(IncludeArchivedQuery.shape);
|
|
9625
9633
|
const ScenarioApiResponse = BaseScenario.extend({
|
|
9626
9634
|
appliedToIntegrations: AppliedToIntegrations(BaseScenario).optional(),
|
|
9627
9635
|
});
|
|
@@ -9698,7 +9706,7 @@ const ListExternalEventLogRecordsQuery = CommonListElementsQuery.extend({
|
|
|
9698
9706
|
connectionId: z.string().optional(),
|
|
9699
9707
|
integrationId: z.string().optional(),
|
|
9700
9708
|
externalEventSubscriptionId: z.string().optional(),
|
|
9701
|
-
status: z.
|
|
9709
|
+
status: z.enum(ExternalEventLogStatus).optional(),
|
|
9702
9710
|
});
|
|
9703
9711
|
const ExternalEventLogRecordApiResponse = BaseExternalEventLogRecord.extend({
|
|
9704
9712
|
user: BaseCustomer.optional(),
|
|
@@ -9711,7 +9719,7 @@ const ListExternalEventPullsQuery = CommonListElementsQuery.extend({
|
|
|
9711
9719
|
connectionId: z.string().optional(),
|
|
9712
9720
|
integrationId: z.string().optional(),
|
|
9713
9721
|
externalEventSubscriptionId: z.string().optional(),
|
|
9714
|
-
status: z.
|
|
9722
|
+
status: z.enum(ExternalEventPullStatus).optional(),
|
|
9715
9723
|
});
|
|
9716
9724
|
const ExternalEventPullApiResponse = BaseExternalEventPull.extend({
|
|
9717
9725
|
user: BaseCustomer.optional(),
|
|
@@ -9912,12 +9920,15 @@ const WorkspaceElementSpecs = {
|
|
|
9912
9920
|
editablePropertiesSchema: ScenarioEditableProperties,
|
|
9913
9921
|
apiResponseSchema: ScenarioApiResponse,
|
|
9914
9922
|
findQuerySchema: FindScenariosQuery,
|
|
9923
|
+
isMembraneInterface: true,
|
|
9924
|
+
isIntegrationLevel: true,
|
|
9915
9925
|
},
|
|
9916
9926
|
[WorkspaceElementType.ActionInstance]: {
|
|
9917
9927
|
type: WorkspaceElementType.ActionInstance,
|
|
9918
9928
|
apiPath: 'action-instances',
|
|
9919
9929
|
name: 'Action Instance',
|
|
9920
9930
|
namePlural: 'Action Instances',
|
|
9931
|
+
isMembraneInterface: true,
|
|
9921
9932
|
},
|
|
9922
9933
|
[WorkspaceElementType.Action]: {
|
|
9923
9934
|
type: WorkspaceElementType.Action,
|
|
@@ -9927,6 +9938,8 @@ const WorkspaceElementSpecs = {
|
|
|
9927
9938
|
editablePropertiesSchema: ActionEditableProperties,
|
|
9928
9939
|
apiResponseSchema: ActionApiResponse,
|
|
9929
9940
|
findQuerySchema: FindActionsQuery,
|
|
9941
|
+
isMembraneInterface: true,
|
|
9942
|
+
isIntegrationLevel: true,
|
|
9930
9943
|
},
|
|
9931
9944
|
[WorkspaceElementType.ActionRunLogRecord]: {
|
|
9932
9945
|
type: WorkspaceElementType.ActionRunLogRecord,
|
|
@@ -9940,6 +9953,8 @@ const WorkspaceElementSpecs = {
|
|
|
9940
9953
|
name: 'Flow',
|
|
9941
9954
|
namePlural: 'Flows',
|
|
9942
9955
|
parentFieldKey: 'universalFlowId',
|
|
9956
|
+
isMembraneInterface: true,
|
|
9957
|
+
isIntegrationLevel: true,
|
|
9943
9958
|
},
|
|
9944
9959
|
[WorkspaceElementType.FlowInstance]: {
|
|
9945
9960
|
type: WorkspaceElementType.FlowInstance,
|
|
@@ -9948,6 +9963,7 @@ const WorkspaceElementSpecs = {
|
|
|
9948
9963
|
updateSchema: updateFlowInstanceSchema,
|
|
9949
9964
|
name: 'Flow',
|
|
9950
9965
|
namePlural: 'Flows',
|
|
9966
|
+
isMembraneInterface: true,
|
|
9951
9967
|
},
|
|
9952
9968
|
[WorkspaceElementType.FlowRun]: {
|
|
9953
9969
|
type: WorkspaceElementType.FlowRun,
|
|
@@ -9961,12 +9977,15 @@ const WorkspaceElementSpecs = {
|
|
|
9961
9977
|
name: 'Field Mapping',
|
|
9962
9978
|
namePlural: 'Field Mappings',
|
|
9963
9979
|
parentFieldKey: 'universalFieldMappingId',
|
|
9980
|
+
isMembraneInterface: true,
|
|
9981
|
+
isIntegrationLevel: true,
|
|
9964
9982
|
},
|
|
9965
9983
|
[WorkspaceElementType.FieldMappingInstance]: {
|
|
9966
9984
|
type: WorkspaceElementType.FieldMappingInstance,
|
|
9967
9985
|
apiPath: 'field-mapping-instances',
|
|
9968
9986
|
name: 'Field Mapping Instance',
|
|
9969
9987
|
namePlural: 'Field Mapping Instances',
|
|
9988
|
+
isMembraneInterface: true,
|
|
9970
9989
|
},
|
|
9971
9990
|
[WorkspaceElementType.DataCollection]: {
|
|
9972
9991
|
type: WorkspaceElementType.DataCollection,
|
|
@@ -9980,36 +9999,43 @@ const WorkspaceElementSpecs = {
|
|
|
9980
9999
|
name: 'Data Source',
|
|
9981
10000
|
namePlural: 'Data Sources',
|
|
9982
10001
|
parentFieldKey: 'universalDataSourceId',
|
|
10002
|
+
isMembraneInterface: true,
|
|
10003
|
+
isIntegrationLevel: true,
|
|
9983
10004
|
},
|
|
9984
10005
|
[WorkspaceElementType.DataSourceInstance]: {
|
|
9985
10006
|
type: WorkspaceElementType.DataSourceInstance,
|
|
9986
10007
|
apiPath: 'data-source-instances',
|
|
9987
10008
|
name: 'Data Source Instance',
|
|
9988
10009
|
namePlural: 'Data Source Instances',
|
|
10010
|
+
isMembraneInterface: true,
|
|
9989
10011
|
},
|
|
9990
10012
|
[WorkspaceElementType.DataLinkTable]: {
|
|
9991
10013
|
type: WorkspaceElementType.DataLinkTable,
|
|
9992
10014
|
apiPath: 'data-link-tables',
|
|
9993
10015
|
name: 'Data Link Table',
|
|
9994
10016
|
namePlural: 'Data Link Tables',
|
|
10017
|
+
isMembraneInterface: true,
|
|
9995
10018
|
},
|
|
9996
10019
|
[WorkspaceElementType.DataLinkTableInstance]: {
|
|
9997
10020
|
type: WorkspaceElementType.DataLinkTableInstance,
|
|
9998
10021
|
apiPath: 'data-link-table-instances',
|
|
9999
10022
|
name: 'Data Link Table Instance',
|
|
10000
10023
|
namePlural: 'Data Link Table Instances',
|
|
10024
|
+
isMembraneInterface: true,
|
|
10001
10025
|
},
|
|
10002
10026
|
[WorkspaceElementType.AppEventType]: {
|
|
10003
10027
|
type: WorkspaceElementType.AppEventType,
|
|
10004
10028
|
apiPath: 'app-event-types',
|
|
10005
10029
|
name: 'App Event Type',
|
|
10006
10030
|
namePlural: 'App Event Types',
|
|
10031
|
+
isMembraneInterface: true,
|
|
10007
10032
|
},
|
|
10008
10033
|
[WorkspaceElementType.AppEventSubscription]: {
|
|
10009
10034
|
type: WorkspaceElementType.AppEventSubscription,
|
|
10010
10035
|
apiPath: 'app-event-subscriptions',
|
|
10011
10036
|
name: 'App Event Subscription',
|
|
10012
10037
|
namePlural: 'App Event Subscriptions',
|
|
10038
|
+
isMembraneInterface: true,
|
|
10013
10039
|
},
|
|
10014
10040
|
[WorkspaceElementType.AppEventLogRecord]: {
|
|
10015
10041
|
type: WorkspaceElementType.AppEventLogRecord,
|
|
@@ -10022,18 +10048,21 @@ const WorkspaceElementSpecs = {
|
|
|
10022
10048
|
apiPath: 'app-data-schemas',
|
|
10023
10049
|
name: 'App Data Schema',
|
|
10024
10050
|
namePlural: 'App Data Schemas',
|
|
10051
|
+
isMembraneInterface: true,
|
|
10025
10052
|
},
|
|
10026
10053
|
[WorkspaceElementType.AppDataSchemaInstance]: {
|
|
10027
10054
|
type: WorkspaceElementType.AppDataSchemaInstance,
|
|
10028
10055
|
apiPath: 'app-data-schema-instances',
|
|
10029
10056
|
name: 'App Data Schema Instance',
|
|
10030
10057
|
namePlural: 'App Data Schema Instances',
|
|
10058
|
+
isMembraneInterface: true,
|
|
10031
10059
|
},
|
|
10032
10060
|
[WorkspaceElementType.ExternalEventSubscription]: {
|
|
10033
10061
|
type: WorkspaceElementType.ExternalEventSubscription,
|
|
10034
10062
|
apiPath: 'external-event-subscriptions',
|
|
10035
10063
|
name: 'External Event Subscription',
|
|
10036
10064
|
namePlural: 'External Event Subscriptions',
|
|
10065
|
+
isMembraneInterface: true,
|
|
10037
10066
|
},
|
|
10038
10067
|
[WorkspaceElementType.ExternalEventLogRecord]: {
|
|
10039
10068
|
type: WorkspaceElementType.ExternalEventLogRecord,
|
|
@@ -10052,6 +10081,7 @@ const WorkspaceElementSpecs = {
|
|
|
10052
10081
|
apiPath: 'screens',
|
|
10053
10082
|
name: 'Screen',
|
|
10054
10083
|
namePlural: 'Screens',
|
|
10084
|
+
isMembraneInterface: true,
|
|
10055
10085
|
},
|
|
10056
10086
|
};
|
|
10057
10087
|
|
|
@@ -10869,11 +10899,6 @@ class ActionAccessor extends ElementAccessor {
|
|
|
10869
10899
|
path: 'action',
|
|
10870
10900
|
});
|
|
10871
10901
|
}
|
|
10872
|
-
async apply(integrationKeys) {
|
|
10873
|
-
return await this.options.client.post(this.getPath('apply'), {
|
|
10874
|
-
integrationKeys,
|
|
10875
|
-
});
|
|
10876
|
-
}
|
|
10877
10902
|
async reset() {
|
|
10878
10903
|
return await this.options.client.post(this.getPath('reset'));
|
|
10879
10904
|
}
|
|
@@ -11230,11 +11255,6 @@ class DataSourceAccessor extends ElementAccessor {
|
|
|
11230
11255
|
path: 'data-source',
|
|
11231
11256
|
});
|
|
11232
11257
|
}
|
|
11233
|
-
async apply(integrationKeys) {
|
|
11234
|
-
return await this.options.client.post(this.getPath('apply'), {
|
|
11235
|
-
integrationKeys,
|
|
11236
|
-
});
|
|
11237
|
-
}
|
|
11238
11258
|
async setup() {
|
|
11239
11259
|
await this.options.client.post(this.getPath('setup'));
|
|
11240
11260
|
}
|
|
@@ -11977,11 +11997,6 @@ class FlowAccessor extends ElementAccessor {
|
|
|
11977
11997
|
path: 'flow',
|
|
11978
11998
|
});
|
|
11979
11999
|
}
|
|
11980
|
-
async apply(integrationKeys) {
|
|
11981
|
-
return await this.options.client.post(this.getPath('apply'), {
|
|
11982
|
-
integrationKeys,
|
|
11983
|
-
});
|
|
11984
|
-
}
|
|
11985
12000
|
async reset() {
|
|
11986
12001
|
return await this.options.client.post(this.getPath('reset'));
|
|
11987
12002
|
}
|
|
@@ -12018,11 +12033,6 @@ class FieldMappingAccessor extends ElementAccessor {
|
|
|
12018
12033
|
async getAppSchema() {
|
|
12019
12034
|
return await this.options.client.get(this.getPath('app-schema'));
|
|
12020
12035
|
}
|
|
12021
|
-
async apply(integrationKeys) {
|
|
12022
|
-
return await this.options.client.post(this.getPath('apply'), {
|
|
12023
|
-
integrationKeys,
|
|
12024
|
-
});
|
|
12025
|
-
}
|
|
12026
12036
|
async setup() {
|
|
12027
12037
|
return await this.options.client.post(this.getPath('setup'));
|
|
12028
12038
|
}
|
|
@@ -12387,7 +12397,7 @@ const ScenarioTemplate = z.object({
|
|
|
12387
12397
|
demoAppUri: z.string().optional(),
|
|
12388
12398
|
demoGithubRepo: z.string().optional(),
|
|
12389
12399
|
demoVideoYoutubeUri: z.string().optional(),
|
|
12390
|
-
tags: z.array(z.
|
|
12400
|
+
tags: z.array(z.enum(ScenarioTemplateCategory)).optional(),
|
|
12391
12401
|
elements: ScenarioTemplateElements.optional(),
|
|
12392
12402
|
connectors: z.array(MinimalConnector).optional(),
|
|
12393
12403
|
handyElements: z.array(HandyScenarioTemplateElement).optional(),
|