@membranehq/sdk 0.7.4 → 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 +2066 -13953
- package/dist/bundle.js +3912 -4250
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/actions-accessors.d.ts +0 -1
- package/dist/dts/accessors/connections-accessors.d.ts +28 -28
- 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/accessors/integrations-accessors.d.ts +28 -28
- package/dist/dts/config/index.d.ts +1 -11
- package/dist/dts/date-time/business-day.d.ts +2 -0
- package/dist/dts/date-time/business-day.test.d.ts +1 -0
- package/dist/dts/date-time/index.d.ts +1 -0
- package/dist/dts/entity-repository.d.ts +13 -64
- package/dist/dts/http-requests.d.ts +2 -14
- package/dist/dts/iframe.d.ts +4 -12
- package/dist/dts/scenario-templates/index.d.ts +60 -484
- package/dist/dts/workspace-elements/api/action-instances-api.d.ts +17 -248
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +23 -339
- package/dist/dts/workspace-elements/api/actions-api.d.ts +52 -639
- package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +8 -169
- package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +19 -51
- package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +15 -325
- package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +13 -248
- package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +28 -90
- package/dist/dts/workspace-elements/api/connections-api.d.ts +56 -892
- package/dist/dts/workspace-elements/api/customers-api.d.ts +8 -68
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +21 -369
- package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +17 -45
- package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +79 -1341
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +52 -767
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +29 -502
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +29 -506
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +21 -381
- package/dist/dts/workspace-elements/api/external-events-api.d.ts +20 -425
- package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +109 -2321
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +47 -702
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +66 -1229
- package/dist/dts/workspace-elements/api/flows-api.d.ts +149 -1836
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +45 -287
- package/dist/dts/workspace-elements/api/scenarios-api.d.ts +30 -450
- package/dist/dts/workspace-elements/api/screens-api.d.ts +11 -31
- package/dist/dts/workspace-elements/base/action-instances/types.d.ts +6 -60
- package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +3 -28
- package/dist/dts/workspace-elements/base/actions/index.d.ts +10 -82
- package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +4 -47
- package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +3 -36
- package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +6 -75
- package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +6 -69
- package/dist/dts/workspace-elements/base/connections/types.d.ts +11 -56
- package/dist/dts/workspace-elements/base/connectors/types.d.ts +1 -11
- package/dist/dts/workspace-elements/base/customers/index.d.ts +1 -25
- package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +141 -1471
- package/dist/dts/workspace-elements/base/data-collections/types.d.ts +1 -29
- package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +6 -61
- package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +3 -32
- package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +60 -973
- package/dist/dts/workspace-elements/base/data-sources/index.d.ts +8 -104
- package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +4 -26
- package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +4 -30
- package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +9 -161
- package/dist/dts/workspace-elements/base/external-events/types.d.ts +7 -121
- package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +9 -76
- package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +13 -133
- package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +16 -194
- package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +15 -132
- package/dist/dts/workspace-elements/base/flow-runs/flow-node-runs.d.ts +29 -284
- package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +13 -93
- package/dist/dts/workspace-elements/base/flows/index.d.ts +20 -240
- package/dist/dts/workspace-elements/base/flows/nodes/base.d.ts +7 -56
- package/dist/dts/workspace-elements/base/integrations/types.d.ts +23 -539
- package/dist/dts/workspace-elements/base/scenarios/index.d.ts +11 -119
- package/dist/dts/workspace-elements/base/screens/types.d.ts +6 -31
- package/dist/dts/workspace-elements/types.d.ts +15 -153
- package/dist/dts/workspace-elements-catalog/index.d.ts +2 -0
- package/dist/index.browser.d.mts +5929 -24802
- package/dist/index.browser.d.ts +5929 -24802
- package/dist/index.browser.js +351 -335
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +349 -333
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +5959 -24842
- package/dist/index.node.d.ts +5959 -24842
- package/dist/index.node.js +351 -335
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +349 -333
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.browser.mjs
CHANGED
|
@@ -5,9 +5,9 @@ import jsonata from 'jsonata';
|
|
|
5
5
|
import deepEqual from 'fast-deep-equal';
|
|
6
6
|
import structuredClonePolyfill from '@ungap/structured-clone';
|
|
7
7
|
import urljoin from 'url-join';
|
|
8
|
-
import {
|
|
9
|
-
import { fromError } from 'zod-validation-error/v3';
|
|
8
|
+
import { fromError } from 'zod-validation-error/v4';
|
|
10
9
|
import qs from 'qs';
|
|
10
|
+
import { connectToChild } from 'penpal';
|
|
11
11
|
import axiosOriginal from 'axios';
|
|
12
12
|
|
|
13
13
|
var ErrorType;
|
|
@@ -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(),
|
|
@@ -1317,7 +1317,7 @@ const DataSchema = z.lazy(() => z
|
|
|
1317
1317
|
description: z.string().optional(),
|
|
1318
1318
|
type: z.union([z.string(), z.array(z.string())]).optional(),
|
|
1319
1319
|
format: z.string().optional(),
|
|
1320
|
-
properties: z.record(DataSchema).optional(),
|
|
1320
|
+
properties: z.record(z.string(), DataSchema).optional(),
|
|
1321
1321
|
items: DataSchema.optional(),
|
|
1322
1322
|
additionalProperties: z.union([z.boolean(), DataSchema]).optional(),
|
|
1323
1323
|
enum: z.array(z.string()).optional(),
|
|
@@ -1325,7 +1325,7 @@ const DataSchema = z.lazy(() => z
|
|
|
1325
1325
|
referenceCollection: z
|
|
1326
1326
|
.object({
|
|
1327
1327
|
key: z.any().optional(),
|
|
1328
|
-
parameters: z.record(z.any()).optional(),
|
|
1328
|
+
parameters: z.record(z.string(), z.any()).optional(),
|
|
1329
1329
|
})
|
|
1330
1330
|
.optional(),
|
|
1331
1331
|
referenceUdm: z.string().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(),
|
|
@@ -3636,9 +3636,9 @@ const BaseAction = BaseMembraneInterface.merge(ActionEditableProperties).merge(A
|
|
|
3636
3636
|
const ConnectionRequest = z.object({
|
|
3637
3637
|
path: z.any(),
|
|
3638
3638
|
method: z.enum(['GET', 'POST', 'PUT', 'PATCH', 'DELETE']).optional(),
|
|
3639
|
-
pathParameters: z.record(z.string()).optional(),
|
|
3640
|
-
headers: z.record(z.string()).optional(),
|
|
3641
|
-
query: z.record(z.string()).optional(),
|
|
3639
|
+
pathParameters: z.record(z.string(), z.string()).optional(),
|
|
3640
|
+
headers: z.record(z.string(), z.string()).optional(),
|
|
3641
|
+
query: z.record(z.string(), z.string()).optional(),
|
|
3642
3642
|
data: z.any().optional(),
|
|
3643
3643
|
});
|
|
3644
3644
|
const BaseConnection = BaseWorkspaceElement.extend({
|
|
@@ -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(),
|
|
@@ -3657,7 +3657,7 @@ const BaseConnection = BaseWorkspaceElement.extend({
|
|
|
3657
3657
|
nextCredentialsRefreshAt: z.string().optional(),
|
|
3658
3658
|
archivedAt: z.string().optional(),
|
|
3659
3659
|
isDeactivated: z.boolean().optional(),
|
|
3660
|
-
meta: z.record(z.any()).optional(),
|
|
3660
|
+
meta: z.record(z.string(), z.any()).optional(),
|
|
3661
3661
|
});
|
|
3662
3662
|
class ConnectionSpec {
|
|
3663
3663
|
constructor(opts) {
|
|
@@ -3994,10 +3994,10 @@ const DataRecordSchema = z.object({
|
|
|
3994
3994
|
name: z.string().optional(),
|
|
3995
3995
|
uri: z.string().optional(),
|
|
3996
3996
|
iconUri: z.string().optional(),
|
|
3997
|
-
fields: z.record(z.any()).optional(),
|
|
3997
|
+
fields: z.record(z.string(), z.any()).optional(),
|
|
3998
3998
|
udm: z.string().optional(),
|
|
3999
|
-
unifiedFields: z.record(z.any()).optional(),
|
|
4000
|
-
rawFields: z.record(z.any()).optional(),
|
|
3999
|
+
unifiedFields: z.record(z.string(), z.any()).optional(),
|
|
4000
|
+
rawFields: z.record(z.string(), z.any()).optional(),
|
|
4001
4001
|
createdTime: z.string().optional(),
|
|
4002
4002
|
updatedTime: z.string().optional(),
|
|
4003
4003
|
deletedTime: z.string().optional(),
|
|
@@ -8182,10 +8182,10 @@ const DataCollectionEventsSpec = z
|
|
|
8182
8182
|
.catchall(DataCollectionEventTypeSpec);
|
|
8183
8183
|
const DataCollectionUdmSpec = z.object({
|
|
8184
8184
|
fields: z.array(z.string()).optional(),
|
|
8185
|
-
extract: z.record(z.any()).optional(),
|
|
8186
|
-
parse: z.record(z.any()).optional(),
|
|
8185
|
+
extract: z.record(z.string(), z.any()).optional(),
|
|
8186
|
+
parse: z.record(z.string(), z.any()).optional(),
|
|
8187
8187
|
});
|
|
8188
|
-
const DataCollectionUdmsSpec = z.record(DataCollectionUdmSpec);
|
|
8188
|
+
const DataCollectionUdmsSpec = z.record(z.string(), DataCollectionUdmSpec);
|
|
8189
8189
|
const DataCollectionSpec = z.object({
|
|
8190
8190
|
type: z.literal('collection'),
|
|
8191
8191
|
key: z.string().optional(),
|
|
@@ -8205,7 +8205,7 @@ const DataCollectionSpec = z.object({
|
|
|
8205
8205
|
find: DataCollectionFindSpec.optional(),
|
|
8206
8206
|
});
|
|
8207
8207
|
const DataCollectionMethodRequest = z.object({
|
|
8208
|
-
parameters: z.record(z.any()).optional(),
|
|
8208
|
+
parameters: z.record(z.string(), z.any()).optional(),
|
|
8209
8209
|
});
|
|
8210
8210
|
const DataCollectionFindRequest = z.object({
|
|
8211
8211
|
query: z.any().optional(),
|
|
@@ -8221,8 +8221,8 @@ const DataCollectionListRequest = DataCollectionMethodRequest.extend({
|
|
|
8221
8221
|
cursor: z.string().optional(),
|
|
8222
8222
|
});
|
|
8223
8223
|
const DataCollectionListResponseDrilldown = z.object({
|
|
8224
|
-
parameters: z.record(z.any()).optional(),
|
|
8225
|
-
filter: z.record(z.any()).optional(),
|
|
8224
|
+
parameters: z.record(z.string(), z.any()).optional(),
|
|
8225
|
+
filter: z.record(z.string(), z.any()).optional(),
|
|
8226
8226
|
});
|
|
8227
8227
|
const DataCollectionListResponse = z.object({
|
|
8228
8228
|
records: z.array(DataRecordSchema),
|
|
@@ -8245,20 +8245,20 @@ const DataCollectionFindByIdResponse = z.object({
|
|
|
8245
8245
|
record: DataRecordSchema,
|
|
8246
8246
|
});
|
|
8247
8247
|
const DataCollectionMatchRequest = DataCollectionMethodRequest.extend({
|
|
8248
|
-
query: z.record(z.any()),
|
|
8248
|
+
query: z.record(z.string(), z.any()),
|
|
8249
8249
|
});
|
|
8250
8250
|
const DataCollectionMatchResponse = z.object({
|
|
8251
8251
|
record: DataRecordSchema.optional(),
|
|
8252
8252
|
});
|
|
8253
8253
|
const DataCollectionCreateRequest = DataCollectionMethodRequest.extend({
|
|
8254
|
-
fields: z.record(z.any()),
|
|
8254
|
+
fields: z.record(z.string(), z.any()),
|
|
8255
8255
|
});
|
|
8256
8256
|
const DataCollectionCreateResponse = z.object({
|
|
8257
8257
|
id: z.string(),
|
|
8258
8258
|
});
|
|
8259
8259
|
const DataCollectionUpdateRequest = DataCollectionMethodRequest.extend({
|
|
8260
8260
|
id: z.string(),
|
|
8261
|
-
fields: z.record(z.any()),
|
|
8261
|
+
fields: z.record(z.string(), z.any()),
|
|
8262
8262
|
});
|
|
8263
8263
|
const DataCollectionUpdateResponse = z.object({
|
|
8264
8264
|
id: z.string(),
|
|
@@ -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,11 +8471,11 @@ 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(),
|
|
8478
|
-
nodes: z.record(FlowRunNode).optional(),
|
|
8478
|
+
nodes: z.record(z.string(), FlowRunNode).optional(),
|
|
8479
8479
|
launchedBy: FlowRunLaunchedBy.optional(),
|
|
8480
8480
|
});
|
|
8481
8481
|
|
|
@@ -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),
|
|
@@ -8828,7 +8828,7 @@ const FlowEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProp
|
|
|
8828
8828
|
integrationId: z.string().optional(),
|
|
8829
8829
|
universalFlowId: z.string().optional(),
|
|
8830
8830
|
parametersSchema: DataSchema.optional(),
|
|
8831
|
-
nodes: z.record(FlowNode).optional(),
|
|
8831
|
+
nodes: z.record(z.string(), FlowNode).optional(),
|
|
8832
8832
|
autoCreateInstances: z.boolean().optional(),
|
|
8833
8833
|
});
|
|
8834
8834
|
const FlowReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
@@ -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
|
-
.and(z.record(z.any()));
|
|
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
|
});
|
|
@@ -8926,7 +8926,7 @@ const BaseScreen = BaseWorkspaceElement.extend({
|
|
|
8926
8926
|
const BaseCustomer = z.object({
|
|
8927
8927
|
id: z.string(),
|
|
8928
8928
|
name: z.string(),
|
|
8929
|
-
meta: z.record(z.any()).optional(),
|
|
8929
|
+
meta: z.record(z.string(), z.any()).optional(),
|
|
8930
8930
|
internalId: z.string(),
|
|
8931
8931
|
fields: z.record(z.string(), z.any()).optional(),
|
|
8932
8932
|
credentials: z.any().optional(),
|
|
@@ -8946,11 +8946,11 @@ const BaseFlowInstance = BaseMembraneInterface.extend({
|
|
|
8946
8946
|
instanceKey: z.string().optional(),
|
|
8947
8947
|
parameters: z.any().optional(),
|
|
8948
8948
|
parametersSchema: DataSchema.optional(),
|
|
8949
|
-
nodes: z.record(z.any()).optional(),
|
|
8949
|
+
nodes: z.record(z.string(), z.any()).optional(),
|
|
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,10 +9112,10 @@ 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
|
-
headers: z.record(z.any()).optional(),
|
|
9118
|
-
query: z.record(z.any()).optional(),
|
|
9117
|
+
headers: z.record(z.string(), z.any()).optional(),
|
|
9118
|
+
query: z.record(z.string(), z.any()).optional(),
|
|
9119
9119
|
body: z.any().optional(),
|
|
9120
9120
|
});
|
|
9121
9121
|
const HTTP_REQUEST_SCHEMA = {
|
|
@@ -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(),
|
|
@@ -9540,12 +9540,6 @@ const ResetFlowInstanceOptions = z.object({
|
|
|
9540
9540
|
nodes: z.record(z.string(), z.boolean()).optional(),
|
|
9541
9541
|
allNodes: z.boolean().optional(),
|
|
9542
9542
|
});
|
|
9543
|
-
const RunFlowOptions = z.object({
|
|
9544
|
-
nodeKey: z.string().optional(),
|
|
9545
|
-
input: z.any().optional(),
|
|
9546
|
-
returnImmediately: z.boolean().optional(),
|
|
9547
|
-
onUpdate: z.function().optional(),
|
|
9548
|
-
});
|
|
9549
9543
|
const FlowInstanceApiResponse = BaseFlowInstance.extend({
|
|
9550
9544
|
user: z.lazy(() => z.any()).optional(),
|
|
9551
9545
|
connection: z.lazy(() => z.any()).optional(),
|
|
@@ -9571,13 +9565,13 @@ const FindFlowRunsQuery = PaginationQuery.extend({
|
|
|
9571
9565
|
flowId: z.string().optional(),
|
|
9572
9566
|
universalFlowId: z.string().optional(),
|
|
9573
9567
|
userId: z.string().optional(),
|
|
9574
|
-
state: z.
|
|
9568
|
+
state: z.enum(FlowRunState).optional(),
|
|
9575
9569
|
integrationId: z.string().optional(),
|
|
9576
9570
|
connectionId: z.string().optional(),
|
|
9577
9571
|
startedAfter: z.string().optional(),
|
|
9578
9572
|
});
|
|
9579
9573
|
const FlowRunLaunchedByApi = z.object({
|
|
9580
|
-
type: z.
|
|
9574
|
+
type: z.enum(FlowRunLaunchedByTrigger),
|
|
9581
9575
|
ids: z.array(z.string()).optional(),
|
|
9582
9576
|
});
|
|
9583
9577
|
const FlowRunApiResponse = BaseFlowRun.extend({
|
|
@@ -9591,235 +9585,6 @@ const FindFlowRunsResponse = z.object({
|
|
|
9591
9585
|
cursor: z.string().optional(),
|
|
9592
9586
|
});
|
|
9593
9587
|
|
|
9594
|
-
const POPUP_ELEMENT_ID = '__integration-app-popup';
|
|
9595
|
-
const CONTAINER_ELEMENT_ID = '__integration-app-container';
|
|
9596
|
-
const CONTAINER_ELEMENT_CLASS = '__integration-app-container';
|
|
9597
|
-
const CONTAINER_ELEMENT_CLASS__LOADER = '__integration-app-container__loader';
|
|
9598
|
-
const BODY_CLASS = '__integration-app-open';
|
|
9599
|
-
const STYLES_ELEMENT_ID = '__integration-app-embed-styles';
|
|
9600
|
-
const OpenConfigurationOptions = z.object({
|
|
9601
|
-
onClose: z.function().optional(),
|
|
9602
|
-
showPoweredBy: z.boolean().optional(),
|
|
9603
|
-
});
|
|
9604
|
-
let IFRAME_START_SHOW_LOADER_TIME = 0;
|
|
9605
|
-
let IFRAME_SHOW_LOADER_TIMEOUT_ID;
|
|
9606
|
-
const IFRAME_SHOW_LOADER_MINIMAL_TIME = 500;
|
|
9607
|
-
const IFRAME_LAYOUT_SHIFT_TIME = 300;
|
|
9608
|
-
function showIframeLoader() {
|
|
9609
|
-
const container = getContainer();
|
|
9610
|
-
container === null || container === void 0 ? void 0 : container.classList.add(CONTAINER_ELEMENT_CLASS__LOADER);
|
|
9611
|
-
IFRAME_START_SHOW_LOADER_TIME = Date.now();
|
|
9612
|
-
}
|
|
9613
|
-
function hideIframeLoader(waitLayoutShift = IFRAME_LAYOUT_SHIFT_TIME) {
|
|
9614
|
-
if (IFRAME_SHOW_LOADER_TIMEOUT_ID) {
|
|
9615
|
-
clearTimeout(IFRAME_SHOW_LOADER_TIMEOUT_ID);
|
|
9616
|
-
}
|
|
9617
|
-
const delta = Date.now() - IFRAME_START_SHOW_LOADER_TIME;
|
|
9618
|
-
if (delta >= IFRAME_SHOW_LOADER_MINIMAL_TIME) {
|
|
9619
|
-
setTimeout(() => {
|
|
9620
|
-
const container = getContainer();
|
|
9621
|
-
container === null || container === void 0 ? void 0 : container.classList.remove(CONTAINER_ELEMENT_CLASS__LOADER);
|
|
9622
|
-
IFRAME_START_SHOW_LOADER_TIME = 0;
|
|
9623
|
-
}, waitLayoutShift);
|
|
9624
|
-
return;
|
|
9625
|
-
}
|
|
9626
|
-
else {
|
|
9627
|
-
const waitLayoutShift = delta >= IFRAME_LAYOUT_SHIFT_TIME ? 0 : IFRAME_LAYOUT_SHIFT_TIME - delta;
|
|
9628
|
-
const timeoutTime = IFRAME_SHOW_LOADER_MINIMAL_TIME - delta;
|
|
9629
|
-
IFRAME_SHOW_LOADER_TIMEOUT_ID = setTimeout(() => {
|
|
9630
|
-
hideIframeLoader(waitLayoutShift);
|
|
9631
|
-
}, timeoutTime);
|
|
9632
|
-
return;
|
|
9633
|
-
}
|
|
9634
|
-
}
|
|
9635
|
-
async function openIframe(uri, callbacks = {}, { mountTargetSelector } = {}) {
|
|
9636
|
-
close();
|
|
9637
|
-
init(mountTargetSelector);
|
|
9638
|
-
return new Promise((resolve) => {
|
|
9639
|
-
function complete(callback) {
|
|
9640
|
-
close(callback);
|
|
9641
|
-
resolve();
|
|
9642
|
-
}
|
|
9643
|
-
function doOpen() {
|
|
9644
|
-
const iframe = document.createElement('iframe');
|
|
9645
|
-
iframe.src = uri;
|
|
9646
|
-
iframe.id = POPUP_ELEMENT_ID;
|
|
9647
|
-
iframe.onload = () => {
|
|
9648
|
-
hideIframeLoader();
|
|
9649
|
-
};
|
|
9650
|
-
if (!!getContainer()) {
|
|
9651
|
-
document.body.classList.add(BODY_CLASS);
|
|
9652
|
-
showIframeLoader();
|
|
9653
|
-
appendToContainer(iframe);
|
|
9654
|
-
handleIframeUnmount(iframe);
|
|
9655
|
-
connectToChild({
|
|
9656
|
-
iframe,
|
|
9657
|
-
methods: {
|
|
9658
|
-
...callbacks,
|
|
9659
|
-
handshake: (...args) => {
|
|
9660
|
-
var _a;
|
|
9661
|
-
hideIframeLoader();
|
|
9662
|
-
(_a = callbacks === null || callbacks === void 0 ? void 0 : callbacks.handshake) === null || _a === void 0 ? void 0 : _a.call(callbacks, ...args);
|
|
9663
|
-
},
|
|
9664
|
-
close: () => complete(callbacks.onClose),
|
|
9665
|
-
},
|
|
9666
|
-
});
|
|
9667
|
-
}
|
|
9668
|
-
else {
|
|
9669
|
-
throw Error('Membrane container element not found. Was it manually removed?');
|
|
9670
|
-
}
|
|
9671
|
-
}
|
|
9672
|
-
if (document.readyState === 'complete' || document.readyState === 'interactive') {
|
|
9673
|
-
doOpen();
|
|
9674
|
-
}
|
|
9675
|
-
else {
|
|
9676
|
-
document.addEventListener('DOMContentLoaded', () => {
|
|
9677
|
-
doOpen();
|
|
9678
|
-
});
|
|
9679
|
-
}
|
|
9680
|
-
});
|
|
9681
|
-
}
|
|
9682
|
-
function close(callback) {
|
|
9683
|
-
document.body.classList.remove(BODY_CLASS);
|
|
9684
|
-
if (!!getContainer()) {
|
|
9685
|
-
deleteContainer();
|
|
9686
|
-
if (callback) {
|
|
9687
|
-
callback();
|
|
9688
|
-
}
|
|
9689
|
-
}
|
|
9690
|
-
}
|
|
9691
|
-
function init(mountTargetSelector) {
|
|
9692
|
-
var _a;
|
|
9693
|
-
injectStyles(mountTargetSelector);
|
|
9694
|
-
if (!!getContainer()) {
|
|
9695
|
-
return;
|
|
9696
|
-
}
|
|
9697
|
-
const container = createContainer();
|
|
9698
|
-
if (mountTargetSelector && document.querySelector(mountTargetSelector)) {
|
|
9699
|
-
(_a = document.querySelector(mountTargetSelector)) === null || _a === void 0 ? void 0 : _a.appendChild(container);
|
|
9700
|
-
}
|
|
9701
|
-
else {
|
|
9702
|
-
document.body.appendChild(container);
|
|
9703
|
-
}
|
|
9704
|
-
}
|
|
9705
|
-
function injectStyles(mountTargetSelector) {
|
|
9706
|
-
const hasCustomMountTarget = Boolean(mountTargetSelector && document.querySelector(mountTargetSelector));
|
|
9707
|
-
const styles = [
|
|
9708
|
-
`.${CONTAINER_ELEMENT_CLASS}:empty {
|
|
9709
|
-
display: none;
|
|
9710
|
-
}`,
|
|
9711
|
-
hasCustomMountTarget
|
|
9712
|
-
? `.${CONTAINER_ELEMENT_CLASS} {
|
|
9713
|
-
inset: 0;
|
|
9714
|
-
background: rgba(0, 0, 0, 0);
|
|
9715
|
-
transition: background 0.2s ease-out;
|
|
9716
|
-
display: flex;
|
|
9717
|
-
justify-content: center;
|
|
9718
|
-
align-items: center;
|
|
9719
|
-
width: 100%;
|
|
9720
|
-
height: 100%;
|
|
9721
|
-
}`
|
|
9722
|
-
: `.${CONTAINER_ELEMENT_CLASS} {
|
|
9723
|
-
position: fixed;
|
|
9724
|
-
inset: 0;
|
|
9725
|
-
z-index: 2147483647;
|
|
9726
|
-
display: flex;
|
|
9727
|
-
justify-content: center;
|
|
9728
|
-
align-items: center;
|
|
9729
|
-
pointer-events: auto;
|
|
9730
|
-
background: rgba(0, 0, 0, 0);
|
|
9731
|
-
transition: background 0.2s ease-out;
|
|
9732
|
-
}`,
|
|
9733
|
-
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} {
|
|
9734
|
-
background: rgba(0, 0, 0, 0.8);
|
|
9735
|
-
}`,
|
|
9736
|
-
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER}::before {
|
|
9737
|
-
${hasCustomMountTarget ? 'position: absolute;' : ''}
|
|
9738
|
-
content: "";
|
|
9739
|
-
width: 5rem;
|
|
9740
|
-
height: 4rem;
|
|
9741
|
-
background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 32 22" fill="%23000" xmlns="http://www.w3.org/2000/svg" %3E%3Cdefs%3E%3Cmask id="a"%3E%3Crect width="100%25" height="100%25" fill="%23fff" /%3E%3Cpath d="M11.8 13.12a3 3 0 0 1 0-4.24l7.08-7.07a3 3 0 0 1 4.24 0l7.07 7.07a3 3 0 0 1 0 4.24l-7.07 7.07a3 3 0 0 1-4.24 0l-7.07-7.07Z"%3E%3CanimateTransform attributeName="transform" attributeType="XML" type="rotate" repeatCount="indefinite" calcMode="spline" keyTimes="0;1" dur="5s" keySplines="0 0 0.1 1" from="0 21 11" to="-360 21 11" /%3E%3C/path%3E%3C/mask%3E%3Cmask id="b"%3E%3Crect width="100%25" height="100%25" fill="%23fff"/%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M1.8 8.88a3 3 0 0 0 0 4.24l7.08 7.07a3 3 0 0 0 4.24 0l7.07-7.07a3 3 0 0 0 0-4.24L13.12 1.8a3 3 0 0 0-4.24 0L1.8 8.88Zm.71.7a2 2 0 0 0 0 2.83L9.6 19.5a2 2 0 0 0 2.82 0l7.08-7.08a2 2 0 0 0 0-2.82l-7.1-7.1a2 2 0 0 0-2.82 0L2.5 9.6Z" %3E%3CanimateTransform attributeName="transform" attributeType="XML" type="rotate" repeatCount="indefinite" calcMode="spline" keyTimes="0;1" dur="5s" keySplines="0 0 0.1 1" from="0 11 11" to="720 11 11" /%3E%3C/path%3E%3C/mask%3E%3C/defs%3E%3Cg mask="url(%23a)"%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M1.8 8.88a3 3 0 0 0 0 4.24l7.08 7.07a3 3 0 0 0 4.24 0l7.07-7.07a3 3 0 0 0 0-4.24L13.12 1.8a3 3 0 0 0-4.24 0L1.8 8.88Zm.71.7a2 2 0 0 0 0 2.83L9.6 19.5a2 2 0 0 0 2.82 0l7.08-7.08a2 2 0 0 0 0-2.82l-7.1-7.1a2 2 0 0 0-2.82 0L2.5 9.6Z"%0A%3E%3CanimateTransform attributeName="transform" attributeType="XML" type="rotate" repeatCount="indefinite" calcMode="spline" keyTimes="0;1" dur="5s" keySplines="0 0 0.1 1" from="0 11 11" to="720 11 11" /%3E%3C/path%3E%3C/g%3E%3Cg mask="url(%23b)"%3E%3Cpath d="M11.8 13.12a3 3 0 0 1 0-4.24l7.08-7.07a3 3 0 0 1 4.24 0l7.07 7.07a3 3 0 0 1 0 4.24l-7.07 7.07a3 3 0 0 1-4.24 0l-7.07-7.07Z"%3E%3CanimateTransform attributeName="transform" attributeType="XML" type="rotate" repeatCount="indefinite" calcMode="spline" keyTimes="0;1" dur="5s" keySplines="0 0 0.1 1" from="0 21 11" to="-360 21 11" /%3E%3C/path%3E%3C/g%3E%3C/svg%3E');
|
|
9742
|
-
background-size: contain;
|
|
9743
|
-
background-repeat: no-repeat;
|
|
9744
|
-
background-position: center;
|
|
9745
|
-
filter: invert(1);
|
|
9746
|
-
}`,
|
|
9747
|
-
`.${CONTAINER_ELEMENT_CLASS} iframe {
|
|
9748
|
-
${hasCustomMountTarget ? '' : 'position: absolute;'}
|
|
9749
|
-
width: 100%;
|
|
9750
|
-
height: 100%;
|
|
9751
|
-
border-width: 0;
|
|
9752
|
-
|
|
9753
|
-
/* fix transparent bg, because iframe document has light scheme */
|
|
9754
|
-
color-scheme: light;
|
|
9755
|
-
}`,
|
|
9756
|
-
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} iframe {
|
|
9757
|
-
visibility: hidden;
|
|
9758
|
-
}`,
|
|
9759
|
-
!hasCustomMountTarget
|
|
9760
|
-
? `body.${BODY_CLASS} {
|
|
9761
|
-
overflow: hidden;
|
|
9762
|
-
}`
|
|
9763
|
-
: '',
|
|
9764
|
-
];
|
|
9765
|
-
let styleElement = document.getElementById(STYLES_ELEMENT_ID);
|
|
9766
|
-
if (!styleElement) {
|
|
9767
|
-
styleElement = document.createElement('style');
|
|
9768
|
-
styleElement.id = STYLES_ELEMENT_ID;
|
|
9769
|
-
styleElement.type = 'text/css';
|
|
9770
|
-
document.head.appendChild(styleElement);
|
|
9771
|
-
}
|
|
9772
|
-
styleElement.textContent = styles.join('\n');
|
|
9773
|
-
}
|
|
9774
|
-
function removeInjectedStyles() {
|
|
9775
|
-
const stylesElement = document.getElementById(STYLES_ELEMENT_ID);
|
|
9776
|
-
if (stylesElement) {
|
|
9777
|
-
stylesElement.remove();
|
|
9778
|
-
}
|
|
9779
|
-
}
|
|
9780
|
-
function createContainer() {
|
|
9781
|
-
const container = document.createElement('div');
|
|
9782
|
-
container.id = CONTAINER_ELEMENT_ID;
|
|
9783
|
-
container.classList.add(CONTAINER_ELEMENT_CLASS);
|
|
9784
|
-
return container;
|
|
9785
|
-
}
|
|
9786
|
-
function getContainer() {
|
|
9787
|
-
return document.getElementById(CONTAINER_ELEMENT_ID);
|
|
9788
|
-
}
|
|
9789
|
-
function appendToContainer(el) {
|
|
9790
|
-
const container = getContainer();
|
|
9791
|
-
container === null || container === void 0 ? void 0 : container.appendChild(el);
|
|
9792
|
-
}
|
|
9793
|
-
function deleteContainer() {
|
|
9794
|
-
const container = getContainer();
|
|
9795
|
-
if (container) {
|
|
9796
|
-
container.remove();
|
|
9797
|
-
}
|
|
9798
|
-
removeInjectedStyles();
|
|
9799
|
-
}
|
|
9800
|
-
function handleIframeUnmount(iframe) {
|
|
9801
|
-
const observer = new MutationObserver((mutationsList) => {
|
|
9802
|
-
for (const mutation of mutationsList) {
|
|
9803
|
-
for (const removedNode of mutation.removedNodes) {
|
|
9804
|
-
if (removedNode instanceof HTMLElement && removedNode.id === POPUP_ELEMENT_ID) {
|
|
9805
|
-
observer.disconnect();
|
|
9806
|
-
deleteContainer();
|
|
9807
|
-
return;
|
|
9808
|
-
}
|
|
9809
|
-
}
|
|
9810
|
-
}
|
|
9811
|
-
});
|
|
9812
|
-
const parent = iframe.parentNode;
|
|
9813
|
-
if (parent) {
|
|
9814
|
-
observer.observe(parent, {
|
|
9815
|
-
childList: true,
|
|
9816
|
-
});
|
|
9817
|
-
}
|
|
9818
|
-
else {
|
|
9819
|
-
console.warn(`iframe with ID "${POPUP_ELEMENT_ID}" has no parent node`);
|
|
9820
|
-
}
|
|
9821
|
-
}
|
|
9822
|
-
|
|
9823
9588
|
const CreateIntegrationRequest = z.object({
|
|
9824
9589
|
name: z.string().optional(),
|
|
9825
9590
|
key: z.string(),
|
|
@@ -9833,13 +9598,6 @@ const UpdateIntegrationRequest = z.object({
|
|
|
9833
9598
|
logoUri: z.string().optional(),
|
|
9834
9599
|
});
|
|
9835
9600
|
const FindIntegrationsQuery = z.object({}).merge(PaginationQuery).merge(SearchQuery);
|
|
9836
|
-
const OpenNewConnectionOptions = z
|
|
9837
|
-
.object({
|
|
9838
|
-
allowMultipleConnections: z.boolean().optional(),
|
|
9839
|
-
name: z.string().optional(),
|
|
9840
|
-
connectorParameters: z.any().optional(),
|
|
9841
|
-
})
|
|
9842
|
-
.merge(OpenConfigurationOptions);
|
|
9843
9601
|
const IntegrationAuthUi = z.object({
|
|
9844
9602
|
schema: z.any().optional(),
|
|
9845
9603
|
helpUri: z.string().optional(),
|
|
@@ -9860,10 +9618,18 @@ const IntegrationApiResponse = BaseIntegration.extend({
|
|
|
9860
9618
|
|
|
9861
9619
|
const ScenarioElementApi = z.object({
|
|
9862
9620
|
id: z.string(),
|
|
9863
|
-
type: z.
|
|
9621
|
+
type: z.enum(IntegrationElementType),
|
|
9864
9622
|
element: z.any().optional(),
|
|
9865
9623
|
});
|
|
9866
|
-
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);
|
|
9867
9633
|
const ScenarioApiResponse = BaseScenario.extend({
|
|
9868
9634
|
appliedToIntegrations: AppliedToIntegrations(BaseScenario).optional(),
|
|
9869
9635
|
});
|
|
@@ -9940,7 +9706,7 @@ const ListExternalEventLogRecordsQuery = CommonListElementsQuery.extend({
|
|
|
9940
9706
|
connectionId: z.string().optional(),
|
|
9941
9707
|
integrationId: z.string().optional(),
|
|
9942
9708
|
externalEventSubscriptionId: z.string().optional(),
|
|
9943
|
-
status: z.
|
|
9709
|
+
status: z.enum(ExternalEventLogStatus).optional(),
|
|
9944
9710
|
});
|
|
9945
9711
|
const ExternalEventLogRecordApiResponse = BaseExternalEventLogRecord.extend({
|
|
9946
9712
|
user: BaseCustomer.optional(),
|
|
@@ -9953,7 +9719,7 @@ const ListExternalEventPullsQuery = CommonListElementsQuery.extend({
|
|
|
9953
9719
|
connectionId: z.string().optional(),
|
|
9954
9720
|
integrationId: z.string().optional(),
|
|
9955
9721
|
externalEventSubscriptionId: z.string().optional(),
|
|
9956
|
-
status: z.
|
|
9722
|
+
status: z.enum(ExternalEventPullStatus).optional(),
|
|
9957
9723
|
});
|
|
9958
9724
|
const ExternalEventPullApiResponse = BaseExternalEventPull.extend({
|
|
9959
9725
|
user: BaseCustomer.optional(),
|
|
@@ -10154,12 +9920,15 @@ const WorkspaceElementSpecs = {
|
|
|
10154
9920
|
editablePropertiesSchema: ScenarioEditableProperties,
|
|
10155
9921
|
apiResponseSchema: ScenarioApiResponse,
|
|
10156
9922
|
findQuerySchema: FindScenariosQuery,
|
|
9923
|
+
isMembraneInterface: true,
|
|
9924
|
+
isIntegrationLevel: true,
|
|
10157
9925
|
},
|
|
10158
9926
|
[WorkspaceElementType.ActionInstance]: {
|
|
10159
9927
|
type: WorkspaceElementType.ActionInstance,
|
|
10160
9928
|
apiPath: 'action-instances',
|
|
10161
9929
|
name: 'Action Instance',
|
|
10162
9930
|
namePlural: 'Action Instances',
|
|
9931
|
+
isMembraneInterface: true,
|
|
10163
9932
|
},
|
|
10164
9933
|
[WorkspaceElementType.Action]: {
|
|
10165
9934
|
type: WorkspaceElementType.Action,
|
|
@@ -10169,6 +9938,8 @@ const WorkspaceElementSpecs = {
|
|
|
10169
9938
|
editablePropertiesSchema: ActionEditableProperties,
|
|
10170
9939
|
apiResponseSchema: ActionApiResponse,
|
|
10171
9940
|
findQuerySchema: FindActionsQuery,
|
|
9941
|
+
isMembraneInterface: true,
|
|
9942
|
+
isIntegrationLevel: true,
|
|
10172
9943
|
},
|
|
10173
9944
|
[WorkspaceElementType.ActionRunLogRecord]: {
|
|
10174
9945
|
type: WorkspaceElementType.ActionRunLogRecord,
|
|
@@ -10182,6 +9953,8 @@ const WorkspaceElementSpecs = {
|
|
|
10182
9953
|
name: 'Flow',
|
|
10183
9954
|
namePlural: 'Flows',
|
|
10184
9955
|
parentFieldKey: 'universalFlowId',
|
|
9956
|
+
isMembraneInterface: true,
|
|
9957
|
+
isIntegrationLevel: true,
|
|
10185
9958
|
},
|
|
10186
9959
|
[WorkspaceElementType.FlowInstance]: {
|
|
10187
9960
|
type: WorkspaceElementType.FlowInstance,
|
|
@@ -10190,6 +9963,7 @@ const WorkspaceElementSpecs = {
|
|
|
10190
9963
|
updateSchema: updateFlowInstanceSchema,
|
|
10191
9964
|
name: 'Flow',
|
|
10192
9965
|
namePlural: 'Flows',
|
|
9966
|
+
isMembraneInterface: true,
|
|
10193
9967
|
},
|
|
10194
9968
|
[WorkspaceElementType.FlowRun]: {
|
|
10195
9969
|
type: WorkspaceElementType.FlowRun,
|
|
@@ -10203,12 +9977,15 @@ const WorkspaceElementSpecs = {
|
|
|
10203
9977
|
name: 'Field Mapping',
|
|
10204
9978
|
namePlural: 'Field Mappings',
|
|
10205
9979
|
parentFieldKey: 'universalFieldMappingId',
|
|
9980
|
+
isMembraneInterface: true,
|
|
9981
|
+
isIntegrationLevel: true,
|
|
10206
9982
|
},
|
|
10207
9983
|
[WorkspaceElementType.FieldMappingInstance]: {
|
|
10208
9984
|
type: WorkspaceElementType.FieldMappingInstance,
|
|
10209
9985
|
apiPath: 'field-mapping-instances',
|
|
10210
9986
|
name: 'Field Mapping Instance',
|
|
10211
9987
|
namePlural: 'Field Mapping Instances',
|
|
9988
|
+
isMembraneInterface: true,
|
|
10212
9989
|
},
|
|
10213
9990
|
[WorkspaceElementType.DataCollection]: {
|
|
10214
9991
|
type: WorkspaceElementType.DataCollection,
|
|
@@ -10222,36 +9999,43 @@ const WorkspaceElementSpecs = {
|
|
|
10222
9999
|
name: 'Data Source',
|
|
10223
10000
|
namePlural: 'Data Sources',
|
|
10224
10001
|
parentFieldKey: 'universalDataSourceId',
|
|
10002
|
+
isMembraneInterface: true,
|
|
10003
|
+
isIntegrationLevel: true,
|
|
10225
10004
|
},
|
|
10226
10005
|
[WorkspaceElementType.DataSourceInstance]: {
|
|
10227
10006
|
type: WorkspaceElementType.DataSourceInstance,
|
|
10228
10007
|
apiPath: 'data-source-instances',
|
|
10229
10008
|
name: 'Data Source Instance',
|
|
10230
10009
|
namePlural: 'Data Source Instances',
|
|
10010
|
+
isMembraneInterface: true,
|
|
10231
10011
|
},
|
|
10232
10012
|
[WorkspaceElementType.DataLinkTable]: {
|
|
10233
10013
|
type: WorkspaceElementType.DataLinkTable,
|
|
10234
10014
|
apiPath: 'data-link-tables',
|
|
10235
10015
|
name: 'Data Link Table',
|
|
10236
10016
|
namePlural: 'Data Link Tables',
|
|
10017
|
+
isMembraneInterface: true,
|
|
10237
10018
|
},
|
|
10238
10019
|
[WorkspaceElementType.DataLinkTableInstance]: {
|
|
10239
10020
|
type: WorkspaceElementType.DataLinkTableInstance,
|
|
10240
10021
|
apiPath: 'data-link-table-instances',
|
|
10241
10022
|
name: 'Data Link Table Instance',
|
|
10242
10023
|
namePlural: 'Data Link Table Instances',
|
|
10024
|
+
isMembraneInterface: true,
|
|
10243
10025
|
},
|
|
10244
10026
|
[WorkspaceElementType.AppEventType]: {
|
|
10245
10027
|
type: WorkspaceElementType.AppEventType,
|
|
10246
10028
|
apiPath: 'app-event-types',
|
|
10247
10029
|
name: 'App Event Type',
|
|
10248
10030
|
namePlural: 'App Event Types',
|
|
10031
|
+
isMembraneInterface: true,
|
|
10249
10032
|
},
|
|
10250
10033
|
[WorkspaceElementType.AppEventSubscription]: {
|
|
10251
10034
|
type: WorkspaceElementType.AppEventSubscription,
|
|
10252
10035
|
apiPath: 'app-event-subscriptions',
|
|
10253
10036
|
name: 'App Event Subscription',
|
|
10254
10037
|
namePlural: 'App Event Subscriptions',
|
|
10038
|
+
isMembraneInterface: true,
|
|
10255
10039
|
},
|
|
10256
10040
|
[WorkspaceElementType.AppEventLogRecord]: {
|
|
10257
10041
|
type: WorkspaceElementType.AppEventLogRecord,
|
|
@@ -10264,18 +10048,21 @@ const WorkspaceElementSpecs = {
|
|
|
10264
10048
|
apiPath: 'app-data-schemas',
|
|
10265
10049
|
name: 'App Data Schema',
|
|
10266
10050
|
namePlural: 'App Data Schemas',
|
|
10051
|
+
isMembraneInterface: true,
|
|
10267
10052
|
},
|
|
10268
10053
|
[WorkspaceElementType.AppDataSchemaInstance]: {
|
|
10269
10054
|
type: WorkspaceElementType.AppDataSchemaInstance,
|
|
10270
10055
|
apiPath: 'app-data-schema-instances',
|
|
10271
10056
|
name: 'App Data Schema Instance',
|
|
10272
10057
|
namePlural: 'App Data Schema Instances',
|
|
10058
|
+
isMembraneInterface: true,
|
|
10273
10059
|
},
|
|
10274
10060
|
[WorkspaceElementType.ExternalEventSubscription]: {
|
|
10275
10061
|
type: WorkspaceElementType.ExternalEventSubscription,
|
|
10276
10062
|
apiPath: 'external-event-subscriptions',
|
|
10277
10063
|
name: 'External Event Subscription',
|
|
10278
10064
|
namePlural: 'External Event Subscriptions',
|
|
10065
|
+
isMembraneInterface: true,
|
|
10279
10066
|
},
|
|
10280
10067
|
[WorkspaceElementType.ExternalEventLogRecord]: {
|
|
10281
10068
|
type: WorkspaceElementType.ExternalEventLogRecord,
|
|
@@ -10294,6 +10081,7 @@ const WorkspaceElementSpecs = {
|
|
|
10294
10081
|
apiPath: 'screens',
|
|
10295
10082
|
name: 'Screen',
|
|
10296
10083
|
namePlural: 'Screens',
|
|
10084
|
+
isMembraneInterface: true,
|
|
10297
10085
|
},
|
|
10298
10086
|
};
|
|
10299
10087
|
|
|
@@ -10669,6 +10457,29 @@ function timestampToDate(value) {
|
|
|
10669
10457
|
}
|
|
10670
10458
|
}
|
|
10671
10459
|
|
|
10460
|
+
const ONE_DAY_IN_MS = 24 * 60 * 60 * 1000;
|
|
10461
|
+
function isBusinessDay(date) {
|
|
10462
|
+
const dayOfWeek = date.getDay();
|
|
10463
|
+
return dayOfWeek >= 1 && dayOfWeek <= 5;
|
|
10464
|
+
}
|
|
10465
|
+
function getBusinessDaysBetween(startDate, endDate) {
|
|
10466
|
+
const businessDays = new Set();
|
|
10467
|
+
if (endDate < startDate) {
|
|
10468
|
+
return businessDays;
|
|
10469
|
+
}
|
|
10470
|
+
const startTime = Date.UTC(startDate.getFullYear(), startDate.getMonth(), startDate.getDate());
|
|
10471
|
+
const endTime = Date.UTC(endDate.getFullYear(), endDate.getMonth(), endDate.getDate());
|
|
10472
|
+
const dayCount = Math.floor((endTime - startTime) / ONE_DAY_IN_MS) + 1;
|
|
10473
|
+
for (let i = 0; i < dayCount; i++) {
|
|
10474
|
+
const currentTime = startTime + i * ONE_DAY_IN_MS;
|
|
10475
|
+
const currentDate = new Date(currentTime);
|
|
10476
|
+
if (isBusinessDay(currentDate)) {
|
|
10477
|
+
businessDays.add(currentDate.toISOString().split('T')[0]);
|
|
10478
|
+
}
|
|
10479
|
+
}
|
|
10480
|
+
return businessDays;
|
|
10481
|
+
}
|
|
10482
|
+
|
|
10672
10483
|
var UsageType;
|
|
10673
10484
|
(function (UsageType) {
|
|
10674
10485
|
UsageType["FLOW_RUNS_DURATION"] = "flow-runs-duration";
|
|
@@ -11088,11 +10899,6 @@ class ActionAccessor extends ElementAccessor {
|
|
|
11088
10899
|
path: 'action',
|
|
11089
10900
|
});
|
|
11090
10901
|
}
|
|
11091
|
-
async apply(integrationKeys) {
|
|
11092
|
-
return await this.options.client.post(this.getPath('apply'), {
|
|
11093
|
-
integrationKeys,
|
|
11094
|
-
});
|
|
11095
|
-
}
|
|
11096
10902
|
async reset() {
|
|
11097
10903
|
return await this.options.client.post(this.getPath('reset'));
|
|
11098
10904
|
}
|
|
@@ -11113,6 +10919,231 @@ class IntegrationLevelActionsListAccessor extends IntegrationLevelElementsListAc
|
|
|
11113
10919
|
}
|
|
11114
10920
|
}
|
|
11115
10921
|
|
|
10922
|
+
const POPUP_ELEMENT_ID = '__integration-app-popup';
|
|
10923
|
+
const CONTAINER_ELEMENT_ID = '__integration-app-container';
|
|
10924
|
+
const CONTAINER_ELEMENT_CLASS = '__integration-app-container';
|
|
10925
|
+
const CONTAINER_ELEMENT_CLASS__LOADER = '__integration-app-container__loader';
|
|
10926
|
+
const BODY_CLASS = '__integration-app-open';
|
|
10927
|
+
const STYLES_ELEMENT_ID = '__integration-app-embed-styles';
|
|
10928
|
+
let IFRAME_START_SHOW_LOADER_TIME = 0;
|
|
10929
|
+
let IFRAME_SHOW_LOADER_TIMEOUT_ID;
|
|
10930
|
+
const IFRAME_SHOW_LOADER_MINIMAL_TIME = 500;
|
|
10931
|
+
const IFRAME_LAYOUT_SHIFT_TIME = 300;
|
|
10932
|
+
function showIframeLoader() {
|
|
10933
|
+
const container = getContainer();
|
|
10934
|
+
container === null || container === void 0 ? void 0 : container.classList.add(CONTAINER_ELEMENT_CLASS__LOADER);
|
|
10935
|
+
IFRAME_START_SHOW_LOADER_TIME = Date.now();
|
|
10936
|
+
}
|
|
10937
|
+
function hideIframeLoader(waitLayoutShift = IFRAME_LAYOUT_SHIFT_TIME) {
|
|
10938
|
+
if (IFRAME_SHOW_LOADER_TIMEOUT_ID) {
|
|
10939
|
+
clearTimeout(IFRAME_SHOW_LOADER_TIMEOUT_ID);
|
|
10940
|
+
}
|
|
10941
|
+
const delta = Date.now() - IFRAME_START_SHOW_LOADER_TIME;
|
|
10942
|
+
if (delta >= IFRAME_SHOW_LOADER_MINIMAL_TIME) {
|
|
10943
|
+
setTimeout(() => {
|
|
10944
|
+
const container = getContainer();
|
|
10945
|
+
container === null || container === void 0 ? void 0 : container.classList.remove(CONTAINER_ELEMENT_CLASS__LOADER);
|
|
10946
|
+
IFRAME_START_SHOW_LOADER_TIME = 0;
|
|
10947
|
+
}, waitLayoutShift);
|
|
10948
|
+
return;
|
|
10949
|
+
}
|
|
10950
|
+
else {
|
|
10951
|
+
const waitLayoutShift = delta >= IFRAME_LAYOUT_SHIFT_TIME ? 0 : IFRAME_LAYOUT_SHIFT_TIME - delta;
|
|
10952
|
+
const timeoutTime = IFRAME_SHOW_LOADER_MINIMAL_TIME - delta;
|
|
10953
|
+
IFRAME_SHOW_LOADER_TIMEOUT_ID = setTimeout(() => {
|
|
10954
|
+
hideIframeLoader(waitLayoutShift);
|
|
10955
|
+
}, timeoutTime);
|
|
10956
|
+
return;
|
|
10957
|
+
}
|
|
10958
|
+
}
|
|
10959
|
+
async function openIframe(uri, callbacks = {}, { mountTargetSelector } = {}) {
|
|
10960
|
+
close();
|
|
10961
|
+
init(mountTargetSelector);
|
|
10962
|
+
return new Promise((resolve) => {
|
|
10963
|
+
function complete(callback) {
|
|
10964
|
+
close(callback);
|
|
10965
|
+
resolve();
|
|
10966
|
+
}
|
|
10967
|
+
function doOpen() {
|
|
10968
|
+
const iframe = document.createElement('iframe');
|
|
10969
|
+
iframe.src = uri;
|
|
10970
|
+
iframe.id = POPUP_ELEMENT_ID;
|
|
10971
|
+
iframe.onload = () => {
|
|
10972
|
+
hideIframeLoader();
|
|
10973
|
+
};
|
|
10974
|
+
if (!!getContainer()) {
|
|
10975
|
+
document.body.classList.add(BODY_CLASS);
|
|
10976
|
+
showIframeLoader();
|
|
10977
|
+
appendToContainer(iframe);
|
|
10978
|
+
handleIframeUnmount(iframe);
|
|
10979
|
+
connectToChild({
|
|
10980
|
+
iframe,
|
|
10981
|
+
methods: {
|
|
10982
|
+
...callbacks,
|
|
10983
|
+
handshake: (...args) => {
|
|
10984
|
+
var _a;
|
|
10985
|
+
hideIframeLoader();
|
|
10986
|
+
(_a = callbacks === null || callbacks === void 0 ? void 0 : callbacks.handshake) === null || _a === void 0 ? void 0 : _a.call(callbacks, ...args);
|
|
10987
|
+
},
|
|
10988
|
+
close: () => complete(callbacks.onClose),
|
|
10989
|
+
},
|
|
10990
|
+
});
|
|
10991
|
+
}
|
|
10992
|
+
else {
|
|
10993
|
+
throw Error('Membrane container element not found. Was it manually removed?');
|
|
10994
|
+
}
|
|
10995
|
+
}
|
|
10996
|
+
if (document.readyState === 'complete' || document.readyState === 'interactive') {
|
|
10997
|
+
doOpen();
|
|
10998
|
+
}
|
|
10999
|
+
else {
|
|
11000
|
+
document.addEventListener('DOMContentLoaded', () => {
|
|
11001
|
+
doOpen();
|
|
11002
|
+
});
|
|
11003
|
+
}
|
|
11004
|
+
});
|
|
11005
|
+
}
|
|
11006
|
+
function close(callback) {
|
|
11007
|
+
document.body.classList.remove(BODY_CLASS);
|
|
11008
|
+
if (!!getContainer()) {
|
|
11009
|
+
deleteContainer();
|
|
11010
|
+
if (callback) {
|
|
11011
|
+
callback();
|
|
11012
|
+
}
|
|
11013
|
+
}
|
|
11014
|
+
}
|
|
11015
|
+
function init(mountTargetSelector) {
|
|
11016
|
+
var _a;
|
|
11017
|
+
injectStyles(mountTargetSelector);
|
|
11018
|
+
if (!!getContainer()) {
|
|
11019
|
+
return;
|
|
11020
|
+
}
|
|
11021
|
+
const container = createContainer();
|
|
11022
|
+
if (mountTargetSelector && document.querySelector(mountTargetSelector)) {
|
|
11023
|
+
(_a = document.querySelector(mountTargetSelector)) === null || _a === void 0 ? void 0 : _a.appendChild(container);
|
|
11024
|
+
}
|
|
11025
|
+
else {
|
|
11026
|
+
document.body.appendChild(container);
|
|
11027
|
+
}
|
|
11028
|
+
}
|
|
11029
|
+
function injectStyles(mountTargetSelector) {
|
|
11030
|
+
const hasCustomMountTarget = Boolean(mountTargetSelector && document.querySelector(mountTargetSelector));
|
|
11031
|
+
const styles = [
|
|
11032
|
+
`.${CONTAINER_ELEMENT_CLASS}:empty {
|
|
11033
|
+
display: none;
|
|
11034
|
+
}`,
|
|
11035
|
+
hasCustomMountTarget
|
|
11036
|
+
? `.${CONTAINER_ELEMENT_CLASS} {
|
|
11037
|
+
inset: 0;
|
|
11038
|
+
background: rgba(0, 0, 0, 0);
|
|
11039
|
+
transition: background 0.2s ease-out;
|
|
11040
|
+
display: flex;
|
|
11041
|
+
justify-content: center;
|
|
11042
|
+
align-items: center;
|
|
11043
|
+
width: 100%;
|
|
11044
|
+
height: 100%;
|
|
11045
|
+
}`
|
|
11046
|
+
: `.${CONTAINER_ELEMENT_CLASS} {
|
|
11047
|
+
position: fixed;
|
|
11048
|
+
inset: 0;
|
|
11049
|
+
z-index: 2147483647;
|
|
11050
|
+
display: flex;
|
|
11051
|
+
justify-content: center;
|
|
11052
|
+
align-items: center;
|
|
11053
|
+
pointer-events: auto;
|
|
11054
|
+
background: rgba(0, 0, 0, 0);
|
|
11055
|
+
transition: background 0.2s ease-out;
|
|
11056
|
+
}`,
|
|
11057
|
+
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} {
|
|
11058
|
+
background: rgba(0, 0, 0, 0.8);
|
|
11059
|
+
}`,
|
|
11060
|
+
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER}::before {
|
|
11061
|
+
${hasCustomMountTarget ? 'position: absolute;' : ''}
|
|
11062
|
+
content: "";
|
|
11063
|
+
width: 5rem;
|
|
11064
|
+
height: 4rem;
|
|
11065
|
+
background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 32 22" fill="%23000" xmlns="http://www.w3.org/2000/svg" %3E%3Cdefs%3E%3Cmask id="a"%3E%3Crect width="100%25" height="100%25" fill="%23fff" /%3E%3Cpath d="M11.8 13.12a3 3 0 0 1 0-4.24l7.08-7.07a3 3 0 0 1 4.24 0l7.07 7.07a3 3 0 0 1 0 4.24l-7.07 7.07a3 3 0 0 1-4.24 0l-7.07-7.07Z"%3E%3CanimateTransform attributeName="transform" attributeType="XML" type="rotate" repeatCount="indefinite" calcMode="spline" keyTimes="0;1" dur="5s" keySplines="0 0 0.1 1" from="0 21 11" to="-360 21 11" /%3E%3C/path%3E%3C/mask%3E%3Cmask id="b"%3E%3Crect width="100%25" height="100%25" fill="%23fff"/%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M1.8 8.88a3 3 0 0 0 0 4.24l7.08 7.07a3 3 0 0 0 4.24 0l7.07-7.07a3 3 0 0 0 0-4.24L13.12 1.8a3 3 0 0 0-4.24 0L1.8 8.88Zm.71.7a2 2 0 0 0 0 2.83L9.6 19.5a2 2 0 0 0 2.82 0l7.08-7.08a2 2 0 0 0 0-2.82l-7.1-7.1a2 2 0 0 0-2.82 0L2.5 9.6Z" %3E%3CanimateTransform attributeName="transform" attributeType="XML" type="rotate" repeatCount="indefinite" calcMode="spline" keyTimes="0;1" dur="5s" keySplines="0 0 0.1 1" from="0 11 11" to="720 11 11" /%3E%3C/path%3E%3C/mask%3E%3C/defs%3E%3Cg mask="url(%23a)"%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M1.8 8.88a3 3 0 0 0 0 4.24l7.08 7.07a3 3 0 0 0 4.24 0l7.07-7.07a3 3 0 0 0 0-4.24L13.12 1.8a3 3 0 0 0-4.24 0L1.8 8.88Zm.71.7a2 2 0 0 0 0 2.83L9.6 19.5a2 2 0 0 0 2.82 0l7.08-7.08a2 2 0 0 0 0-2.82l-7.1-7.1a2 2 0 0 0-2.82 0L2.5 9.6Z"%0A%3E%3CanimateTransform attributeName="transform" attributeType="XML" type="rotate" repeatCount="indefinite" calcMode="spline" keyTimes="0;1" dur="5s" keySplines="0 0 0.1 1" from="0 11 11" to="720 11 11" /%3E%3C/path%3E%3C/g%3E%3Cg mask="url(%23b)"%3E%3Cpath d="M11.8 13.12a3 3 0 0 1 0-4.24l7.08-7.07a3 3 0 0 1 4.24 0l7.07 7.07a3 3 0 0 1 0 4.24l-7.07 7.07a3 3 0 0 1-4.24 0l-7.07-7.07Z"%3E%3CanimateTransform attributeName="transform" attributeType="XML" type="rotate" repeatCount="indefinite" calcMode="spline" keyTimes="0;1" dur="5s" keySplines="0 0 0.1 1" from="0 21 11" to="-360 21 11" /%3E%3C/path%3E%3C/g%3E%3C/svg%3E');
|
|
11066
|
+
background-size: contain;
|
|
11067
|
+
background-repeat: no-repeat;
|
|
11068
|
+
background-position: center;
|
|
11069
|
+
filter: invert(1);
|
|
11070
|
+
}`,
|
|
11071
|
+
`.${CONTAINER_ELEMENT_CLASS} iframe {
|
|
11072
|
+
${hasCustomMountTarget ? '' : 'position: absolute;'}
|
|
11073
|
+
width: 100%;
|
|
11074
|
+
height: 100%;
|
|
11075
|
+
border-width: 0;
|
|
11076
|
+
|
|
11077
|
+
/* fix transparent bg, because iframe document has light scheme */
|
|
11078
|
+
color-scheme: light;
|
|
11079
|
+
}`,
|
|
11080
|
+
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} iframe {
|
|
11081
|
+
visibility: hidden;
|
|
11082
|
+
}`,
|
|
11083
|
+
!hasCustomMountTarget
|
|
11084
|
+
? `body.${BODY_CLASS} {
|
|
11085
|
+
overflow: hidden;
|
|
11086
|
+
}`
|
|
11087
|
+
: '',
|
|
11088
|
+
];
|
|
11089
|
+
let styleElement = document.getElementById(STYLES_ELEMENT_ID);
|
|
11090
|
+
if (!styleElement) {
|
|
11091
|
+
styleElement = document.createElement('style');
|
|
11092
|
+
styleElement.id = STYLES_ELEMENT_ID;
|
|
11093
|
+
styleElement.type = 'text/css';
|
|
11094
|
+
document.head.appendChild(styleElement);
|
|
11095
|
+
}
|
|
11096
|
+
styleElement.textContent = styles.join('\n');
|
|
11097
|
+
}
|
|
11098
|
+
function removeInjectedStyles() {
|
|
11099
|
+
const stylesElement = document.getElementById(STYLES_ELEMENT_ID);
|
|
11100
|
+
if (stylesElement) {
|
|
11101
|
+
stylesElement.remove();
|
|
11102
|
+
}
|
|
11103
|
+
}
|
|
11104
|
+
function createContainer() {
|
|
11105
|
+
const container = document.createElement('div');
|
|
11106
|
+
container.id = CONTAINER_ELEMENT_ID;
|
|
11107
|
+
container.classList.add(CONTAINER_ELEMENT_CLASS);
|
|
11108
|
+
return container;
|
|
11109
|
+
}
|
|
11110
|
+
function getContainer() {
|
|
11111
|
+
return document.getElementById(CONTAINER_ELEMENT_ID);
|
|
11112
|
+
}
|
|
11113
|
+
function appendToContainer(el) {
|
|
11114
|
+
const container = getContainer();
|
|
11115
|
+
container === null || container === void 0 ? void 0 : container.appendChild(el);
|
|
11116
|
+
}
|
|
11117
|
+
function deleteContainer() {
|
|
11118
|
+
const container = getContainer();
|
|
11119
|
+
if (container) {
|
|
11120
|
+
container.remove();
|
|
11121
|
+
}
|
|
11122
|
+
removeInjectedStyles();
|
|
11123
|
+
}
|
|
11124
|
+
function handleIframeUnmount(iframe) {
|
|
11125
|
+
const observer = new MutationObserver((mutationsList) => {
|
|
11126
|
+
for (const mutation of mutationsList) {
|
|
11127
|
+
for (const removedNode of mutation.removedNodes) {
|
|
11128
|
+
if (removedNode instanceof HTMLElement && removedNode.id === POPUP_ELEMENT_ID) {
|
|
11129
|
+
observer.disconnect();
|
|
11130
|
+
deleteContainer();
|
|
11131
|
+
return;
|
|
11132
|
+
}
|
|
11133
|
+
}
|
|
11134
|
+
}
|
|
11135
|
+
});
|
|
11136
|
+
const parent = iframe.parentNode;
|
|
11137
|
+
if (parent) {
|
|
11138
|
+
observer.observe(parent, {
|
|
11139
|
+
childList: true,
|
|
11140
|
+
});
|
|
11141
|
+
}
|
|
11142
|
+
else {
|
|
11143
|
+
console.warn(`iframe with ID "${POPUP_ELEMENT_ID}" has no parent node`);
|
|
11144
|
+
}
|
|
11145
|
+
}
|
|
11146
|
+
|
|
11116
11147
|
class ConnectionLevelElementAccessor {
|
|
11117
11148
|
constructor(client, connectionSelector, selector, elementKey, query) {
|
|
11118
11149
|
this.client = client;
|
|
@@ -11224,11 +11255,6 @@ class DataSourceAccessor extends ElementAccessor {
|
|
|
11224
11255
|
path: 'data-source',
|
|
11225
11256
|
});
|
|
11226
11257
|
}
|
|
11227
|
-
async apply(integrationKeys) {
|
|
11228
|
-
return await this.options.client.post(this.getPath('apply'), {
|
|
11229
|
-
integrationKeys,
|
|
11230
|
-
});
|
|
11231
|
-
}
|
|
11232
11258
|
async setup() {
|
|
11233
11259
|
await this.options.client.post(this.getPath('setup'));
|
|
11234
11260
|
}
|
|
@@ -11971,11 +11997,6 @@ class FlowAccessor extends ElementAccessor {
|
|
|
11971
11997
|
path: 'flow',
|
|
11972
11998
|
});
|
|
11973
11999
|
}
|
|
11974
|
-
async apply(integrationKeys) {
|
|
11975
|
-
return await this.options.client.post(this.getPath('apply'), {
|
|
11976
|
-
integrationKeys,
|
|
11977
|
-
});
|
|
11978
|
-
}
|
|
11979
12000
|
async reset() {
|
|
11980
12001
|
return await this.options.client.post(this.getPath('reset'));
|
|
11981
12002
|
}
|
|
@@ -12012,11 +12033,6 @@ class FieldMappingAccessor extends ElementAccessor {
|
|
|
12012
12033
|
async getAppSchema() {
|
|
12013
12034
|
return await this.options.client.get(this.getPath('app-schema'));
|
|
12014
12035
|
}
|
|
12015
|
-
async apply(integrationKeys) {
|
|
12016
|
-
return await this.options.client.post(this.getPath('apply'), {
|
|
12017
|
-
integrationKeys,
|
|
12018
|
-
});
|
|
12019
|
-
}
|
|
12020
12036
|
async setup() {
|
|
12021
12037
|
return await this.options.client.post(this.getPath('setup'));
|
|
12022
12038
|
}
|
|
@@ -12356,20 +12372,20 @@ const HandyScenarioTemplateElement = z.object({
|
|
|
12356
12372
|
key: z.string(),
|
|
12357
12373
|
name: z.string(),
|
|
12358
12374
|
})
|
|
12359
|
-
.and(z.record(z.any())),
|
|
12375
|
+
.and(z.record(z.string(), z.any())),
|
|
12360
12376
|
});
|
|
12361
12377
|
const withIntegrationKeys = (schema) => schema.and(z.object({ integrationKeys: z.array(z.string()).optional() }));
|
|
12362
12378
|
const ElementsExportFields = z.object({
|
|
12363
|
-
flows: z.record(withIntegrationKeys(z.any())).optional(),
|
|
12364
|
-
actions: z.record(withIntegrationKeys(z.any())).optional(),
|
|
12365
|
-
fieldMappings: z.record(withIntegrationKeys(z.any())).optional(),
|
|
12366
|
-
dataSources: z.record(withIntegrationKeys(z.any())).optional(),
|
|
12367
|
-
dataLinkTables: z.record(z.any()).optional(),
|
|
12368
|
-
appEventTypes: z.record(z.any()).optional(),
|
|
12369
|
-
appDataSchemas: z.record(z.any()).optional(),
|
|
12379
|
+
flows: z.record(z.string(), withIntegrationKeys(z.any())).optional(),
|
|
12380
|
+
actions: z.record(z.string(), withIntegrationKeys(z.any())).optional(),
|
|
12381
|
+
fieldMappings: z.record(z.string(), withIntegrationKeys(z.any())).optional(),
|
|
12382
|
+
dataSources: z.record(z.string(), withIntegrationKeys(z.any())).optional(),
|
|
12383
|
+
dataLinkTables: z.record(z.string(), z.any()).optional(),
|
|
12384
|
+
appEventTypes: z.record(z.string(), z.any()).optional(),
|
|
12385
|
+
appDataSchemas: z.record(z.string(), z.any()).optional(),
|
|
12370
12386
|
});
|
|
12371
12387
|
const ScenarioTemplateElements = ElementsExportFields.and(z.object({
|
|
12372
|
-
integrations: z.record(ElementsExportFields.and(z.object({ connectorId: z.string() }))).optional(),
|
|
12388
|
+
integrations: z.record(z.string(), ElementsExportFields.and(z.object({ connectorId: z.string() }))).optional(),
|
|
12373
12389
|
}));
|
|
12374
12390
|
const ScenarioTemplate = z.object({
|
|
12375
12391
|
id: z.string(),
|
|
@@ -12381,7 +12397,7 @@ const ScenarioTemplate = z.object({
|
|
|
12381
12397
|
demoAppUri: z.string().optional(),
|
|
12382
12398
|
demoGithubRepo: z.string().optional(),
|
|
12383
12399
|
demoVideoYoutubeUri: z.string().optional(),
|
|
12384
|
-
tags: z.array(z.
|
|
12400
|
+
tags: z.array(z.enum(ScenarioTemplateCategory)).optional(),
|
|
12385
12401
|
elements: ScenarioTemplateElements.optional(),
|
|
12386
12402
|
connectors: z.array(MinimalConnector).optional(),
|
|
12387
12403
|
handyElements: z.array(HandyScenarioTemplateElement).optional(),
|
|
@@ -12680,5 +12696,5 @@ class MembraneClient extends MembraneApiClient {
|
|
|
12680
12696
|
|
|
12681
12697
|
injectFormulaCatalog(getFormula, isFormula, hasFormulas);
|
|
12682
12698
|
|
|
12683
|
-
export { ACTIONS, AccessDeniedError, ActionAccessor, ActionApiResponse, ActionDependency, ActionDependencyType, ActionEditableProperties, ActionInstanceAccessor, ActionInstanceApiResponse, ActionInstanceSetupError, ActionInstancesAccessor, ActionRunError, ActionRunLogRecordApiResponse, ActionRunLogStatus, ActionRunResponse, ActionType, ActionsAccessor, AlertSeverity, AlertStatus, AlertType, ApiRequestSpec, AppDataSchemaAccessor, AppDataSchemaApiResponse, AppDataSchemaInstanceAccessor, AppDataSchemaInstanceApiResponse, AppDataSchemaInstancesAccessor, AppDataSchemasAccessor, AppEventLogRecordApiResponse, AppEventSubscriptionAccessor, AppEventSubscriptionApiResponse, AppEventSubscriptionsAccessor, AppEventTypeAccessor, AppEventTypeApiResponse, AppEventTypesAccessor, AppliedToIntegrations, BadRequestError, BadRequestErrorKey, BaseAction, BaseActionInstance, BaseActionRunLogRecord, BaseAppDataSchema, BaseAppDataSchemaInstance, BaseAppEventSubscription, BaseAppEventType, BaseConnection, BaseCustomer, BaseDataLinkTable, BaseDataLinkTableInstance, BaseDataSource, BaseDataSourceInstance, BaseExternalEvent, BaseExternalEventLogRecord, BaseExternalEventPull, BaseExternalEventSubscription, BaseFieldMapping, BaseFieldMappingInstance, BaseFlow, BaseFlowInstance, BaseFlowRun, BaseIntegration, BaseIntegrationLevelMembraneInterface, BaseIntegrationLevelMembraneInterfaceEditableProperties, BaseIntegrationLevelMembraneInterfaceReadOnlyProperties, BaseMembraneInterface, BaseMembraneInterfaceEditableProperties, BaseMembraneInterfaceReadOnlyProperties, BaseScenario, BaseScreen, BaseWorkspaceElement, CONNECTOR_AUTH_TYPES, CONNECTOR_CATEGORIES, CONNECTOR_DATA_DIR, CONNECTOR_DOCS_DIR, CONNECTOR_EVENTS_DIR, CONNECTOR_GLOBAL_WEBHOOKS_DIR, CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES, CONNECTOR_OPERATIONS_DIR, CommonInstancesListQuery, CommonIntegrationOrConnectionQuery, CommonListElementsQuery, ConcurrencyError, ConcurrencyErrorKey, ConfigurationError, ConfigurationState, ConnectionAccessor, ConnectionApiResponse, ConnectionApiResponseWithSecrets, ConnectionDataCollectionAccessor, ConnectionError, ConnectionErrorKey, ConnectionLevelActionAccessor, ConnectionLevelActionsAccessor, ConnectionLevelDataSourceAccessor, ConnectionLevelDataSourcesAccessor, ConnectionLevelFieldMappingAccessor, ConnectionLevelFieldMappingsAccessor, ConnectionLevelFlowAccessor, ConnectionLevelFlowsAccessor, ConnectionMessagePayload, ConnectionOperationAccessor, ConnectionProxy, ConnectionRequest, ConnectionSelector, ConnectionSpec, ConnectionsAccessor, ConnectorAuthMethodTypes, ConnectorCopilotFileChunkTopicKey, ConnectorCopilotSuggestionType, ConnectorDataCollectionEventImplementationType, ConnectorDataCollectionMethodKeys, ConnectorDataLocationTypes, ConnectorEventHandlerMethods, ConnectorEventImplementationType, ConnectorMethodImplementationType, ConnectorOperationMethodImplementationTypes, ConnectorStatus, CopilotActionStatus, CopilotActionType, CopilotActivityScope, CopilotActivityType, CopilotTaskStatus, CopilotTaskType, CreateActionInstanceRequest, CreateActionRequest, CreateConnectionRequest, CreateCustomerRequest, CreateDataSourceInstanceRequest, CreateDataSourceRequest, CreateFieldMappingRequest, CreateFlowNodeRequest, CreateFlowRequest, CreateFlowRunRequest, CreateIntegrationRequest, CustomCodeError, CustomerAccessor, CustomerApiResponse, CustomerSelector, CustomersAccessor, DATA_RECORD_SCHEMA, DEFAULT_FULL_SYNC_INTERVAL_SECONDS, DEFAULT_PULL_UPDATES_INTERVAL_SECONDS, DataBuilderFormulaType, DataCollectionCreateRequest, DataCollectionCreateResponse, DataCollectionCreateSpec, DataCollectionDeleteRequest, DataCollectionDeleteResponse, DataCollectionDeleteSpec, DataCollectionEventType, DataCollectionEventTypeSpec, DataCollectionEventsSpec, DataCollectionFindByIdRequest, DataCollectionFindByIdResponse, DataCollectionFindByIdSpec, DataCollectionFindRequest, DataCollectionFindResponse, DataCollectionFindSpec, DataCollectionListRequest, DataCollectionListResponse, DataCollectionListResponseDrilldown, DataCollectionListSpec, DataCollectionMatchRequest, DataCollectionMatchResponse, DataCollectionMatchSpec, DataCollectionMethodRequest, DataCollectionMethodSpec, DataCollectionSearchRequest, DataCollectionSearchResponse, DataCollectionSearchSpec, DataCollectionSpec, DataCollectionUdmSpec, DataCollectionUdmsSpec, DataCollectionUpdateRequest, DataCollectionUpdateResponse, DataCollectionUpdateSpec, DataFilterCondition, DataForm, DataLink, DataLinkDirection, DataLinkTableAccessor, DataLinkTableApiResponse, DataLinkTableConfig, DataLinkTableInstanceAccessor, DataLinkTableInstanceApiResponse, DataLinkTableInstancesAccessor, DataLinkTablesAccessor, DataLocationMethodImplementationTypes, DataLocationTypeCollection, DataLocatorStep, DataLocatorStepArrayItem, DataLocatorStepObjectProperty, DataLocatorStepType, DataRecordSchema, DataSchema, DataSourceAccessor, DataSourceApiResponse, DataSourceEditableProperties, DataSourceInstanceAccessor, DataSourceInstanceApiResponse, DataSourceInstancesAccessor, DataSourceUnitConfig, DataSourcesAccessor, DependencyError, DownstreamFlowNodeRunSchema, EDITABLE_LIMITS, ElementAccessor, ElementInstanceAccessor, ElementInstanceListAccessor, ElementListAccessor, ElementsExportFields, ErrorData, ErrorDataSchema, ErrorType, ExternalEvent, ExternalEventLogRecordApiResponse, ExternalEventLogStatus, ExternalEventPullApiResponse, ExternalEventPullStatus, ExternalEventSubscriptionAccessor, ExternalEventSubscriptionApiResponse, ExternalEventSubscriptionConfig, ExternalEventSubscriptionStatus, ExternalEventSubscriptionType, ExternalEventSubscriptionsAccessor, ExternalEventType, ExternalEventUnitConfig, FLOW_NODE_SPECS, FieldMappingAccessor, FieldMappingApiResponse, FieldMappingDirection, FieldMappingEditableProperties, FieldMappingInstanceAccessor, FieldMappingInstanceApiResponse, FieldMappingInstancesAccessor, FieldMappingUnitConfig, FieldMappingsAccessor, FindActionInstancesQuery, FindActionsQuery, FindConnectionsQuery, FindConnectionsResponse, FindCustomersQuery, FindDataSourceEventsQuery, FindDataSourceInstanceSyncsQuery, FindDataSourceInstancesQuery, FindDataSourceSyncsQuery, FindDataSourcesQuery, FindFieldMappingsQuery, FindFlowInstancesQuery, FindFlowRunsQuery, FindFlowRunsResponse, FindFlowsQuery, FindIntegrationsQuery, FindScenariosQuery, FlowAccessor, FlowApiResponse, FlowEditableProperties, FlowInstanceAccessor, FlowInstanceApiResponse, FlowInstanceNode, FlowInstanceNodeState, FlowInstanceSetupError, FlowInstancesAccessor, FlowNode, FlowNodeLink, FlowNodeRunOutputMetadataSchema, FlowNodeRunOutputSchema, FlowNodeRunOutputWithoutDownstreamRunsSchema, FlowNodeRunParametersSchema, FlowNodeRunRecordSchema, FlowNodeRunRecordWithoutOutputsDataSchema, FlowNodeRunResultSchema, FlowNodeRunStatus, FlowNodeSpec, FlowNodeType, FlowRunAccessor, FlowRunApiResponse, FlowRunError, FlowRunLaunchedBy, FlowRunLaunchedByApi, FlowRunLaunchedByTrigger, FlowRunNode, FlowRunNodeState, FlowRunState, FlowRunsAccessor, FlowsAccessor, Formula, HTTP_REQUEST_SCHEMA, HandyScenarioTemplateElement, HttpRequestMethod, HttpRequestSpec, IncludeArchivedQuery, IncomingWebhooksState, IntegrationAccessor, IntegrationApiResponse, MembraneClient as IntegrationAppClient, IntegrationAuthOption, IntegrationAuthUi, IntegrationElementLevel, IntegrationElementType, IntegrationLevelActionAccessor, IntegrationLevelActionsListAccessor, IntegrationLevelDataSourceAccessor, IntegrationLevelDataSourcesListAccessor, IntegrationLevelFieldMappingAccessor, IntegrationLevelFieldMappingsListAccessor, IntegrationLevelFlowAccessor, IntegrationLevelFlowsListAccessor, IntegrationsAccessor, InternalError, InvalidLocatorError, LimitUnits, ListActionInstancesForConnectionQuery, ListDataSourceInstancesForConnectionQuery, ListExternalEventLogRecordsQuery, ListExternalEventPullsQuery, ListFlowInstancesForConnectionQuery, LogRecordType, MIN_FULL_SYNC_INTERVAL_SECONDS, MIN_PULL_UPDATES_INTERVAL_SECONDS, MembraneClient, MembraneError, MinimalConnector, NotAuthenticatedError, NotFoundError, OAUTH1_CONFIG_SCHEMA, OAUTH_CONFIG_SCHEMA, OpenNewConnectionOptions, OrgLimitsType, OrgUserRole, OrgUserStatus, PARALLEL_EXECUTION_LIMITS, PaginationQuery, PaginationResponse, RATE_LIMITS, RateLimitExceededError, ResetFlowInstanceOptions, RunFlowOptions, ScenarioAccessor, ScenarioApiResponse, ScenarioCalculatedProperties, ScenarioEditableProperties, ScenarioElement, ScenarioElementApi, ScenarioTemplate, ScenarioTemplateCategory, ScenarioTemplateElements, ScenariosAccessor, ScreenAccessor, ScreenApiResponse, ScreenBlock, ScreenBlockType, ScreenType, ScreensAccessor, SearchQuery, SelfAccessor, UDM, UNIFIED_DATA_MODELS, UnitRunError, UpdateActionInstanceRequest, UpdateActionRequest, UpdateConnectionRequest, UpdateCustomerRequest, UpdateDataSourceInstanceRequest, UpdateDataSourceRequest, UpdateFieldMappingRequest, UpdateFlowRequest, UpdateIntegrationRequest, UpstreamFlowNodeRunSchema, UsageType, UserAccessor, UsersAccessor, WORKSPACE_SIZE_LIMITS, WebhookTypeEnum, WorkspaceElementDependencyType, WorkspaceElementSpecs, WorkspaceElementState, WorkspaceElementType, WorkspaceEventType, WorkspaceNotificationType, WorkspaceOnboardingStep, WorkspaceSyncEventType, WorkspaceType, __resolveValue, addRequiredFieldsToSchema, addUdmFallbackFields, backwardCompatibleFilterMatch, buildData, buildDataSchema, buildValue, compressDataSchema, createCompoundSchema, createFlowInstanceSchema, createObjectFromLocators, createOrUpdateConnection, createSchema, dataCollectionEventTypeToExternalEventType, dataLocationParametersMatch, doesMatchFilter, excludeFieldsFromSchema, excludeFieldsFromValue, excludeReadOnlyFieldsFromSchema, excludeWriteOnlyFieldsFromSchema, externalEventTypeToDataCollectionEventType, extractFieldLocator, extractMembraneErrorData, findUdmCollectionMapping, findUdmDefaultCollection, findUdmRootLocation, findValueLocators, generateExampleFromSchema, getActionInstanceVariableSchema, getActionRunTimeVariablesSchema, getAllEventMethodFilePaths, getChildNodeKeys, getDataCollectionCreateFields, getDataCollectionUpdateFields, getDataLocationMethodPath, getDownstreamNodeKeys, getErrorFromData, getEventMethodFileKey, getFilterFieldValuesByLocator, getFlowInstanceNodeDependency, getFlowNode, getFlowNodeConfigTimeVariablesSchema, getFlowNodeDescription, getFlowNodeRunTimeVariablesSchema, getFlowNodeSpec, getFlowNodeTitle, getFormula$1 as getFormula, getFormulaLocators, getFormula as getFormula_internalDoNotUse, getFullNameForLocator, getFullTitleForLocator, getIconUriForLocator, getLocatorsFromData, getLocatorsFromSchema, getMissingRequiredFields, getNameComponentsForLocator, getNameForLocator, getNodeInputSchema, getOperatorsBySchema, getParentNodeKeys, getReferenceCollectionPathForSchema, getReferenceCollectionPointerForSchema, getRequiredFieldsFromSchema, getRootNodeKeys, getSchemaByLocator, getSchemaFromValue, getUpstreamNodeKeys, getValueAtLocator, getValueByLocator, getVariableLocators, getWritableFieldsSchema, hasCycles, hasFormulas$1 as hasFormulas, hasFormulas as hasFormulas_internalDoNotUse, injectFormulaCatalog, isDataActionType, isDataLocationMethodSupported, isFormula$1 as isFormula, isFormula as isFormula_internalDoNotUse, isMembraneError, isObject, isSameDataLocation, isSchemaEmpty, isStream, isValidLocator, locatorToField, locatorToSteps, locatorToString, makeDataLocationOperationPath, makeDataLocationPath, makeDataRecordSchema, makeObjectPropertyLocator, makeSchemaForLocator, mergeSchemas, mergeWithFormulas, nonEmptyObjectProperties, parseDataLocationPath, parseDate, patchSchema, pickFieldsFromSchema, pickFieldsFromValue, populateSchemaTitles, processCopy, removeNonExistentVars, removeRequiredFieldsFromSchema, resolveFormulas, schemaAllowsCustomValue, schemaHasFixedValues, schemaHasProperties, schemaIsNumber, schemaIsScalar, schemaTypeFromValue, schemaWithTitle, setSchemaAtLocator, setValueAtLocator, stepsToLocator, streamToString, transformVariablesWith, transformVars, truncateData, unwrapSchema, unwrapSchemas, updateFlowInstanceSchema, updateImpliedSchema, valueToSchema, valueToString, walkSchema, wrapAnyOfSchema, zodBooleanCoercion };
|
|
12699
|
+
export { ACTIONS, AccessDeniedError, ActionAccessor, ActionApiResponse, ActionDependency, ActionDependencyType, ActionEditableProperties, ActionInstanceAccessor, ActionInstanceApiResponse, ActionInstanceSetupError, ActionInstancesAccessor, ActionRunError, ActionRunLogRecordApiResponse, ActionRunLogStatus, ActionRunResponse, ActionType, ActionsAccessor, AlertSeverity, AlertStatus, AlertType, ApiRequestSpec, AppDataSchemaAccessor, AppDataSchemaApiResponse, AppDataSchemaInstanceAccessor, AppDataSchemaInstanceApiResponse, AppDataSchemaInstancesAccessor, AppDataSchemasAccessor, AppEventLogRecordApiResponse, AppEventSubscriptionAccessor, AppEventSubscriptionApiResponse, AppEventSubscriptionsAccessor, AppEventTypeAccessor, AppEventTypeApiResponse, AppEventTypesAccessor, AppliedToIntegrations, BadRequestError, BadRequestErrorKey, BaseAction, BaseActionInstance, BaseActionRunLogRecord, BaseAppDataSchema, BaseAppDataSchemaInstance, BaseAppEventSubscription, BaseAppEventType, BaseConnection, BaseCustomer, BaseDataLinkTable, BaseDataLinkTableInstance, BaseDataSource, BaseDataSourceInstance, BaseExternalEvent, BaseExternalEventLogRecord, BaseExternalEventPull, BaseExternalEventSubscription, BaseFieldMapping, BaseFieldMappingInstance, BaseFlow, BaseFlowInstance, BaseFlowRun, BaseIntegration, BaseIntegrationLevelMembraneInterface, BaseIntegrationLevelMembraneInterfaceEditableProperties, BaseIntegrationLevelMembraneInterfaceReadOnlyProperties, BaseMembraneInterface, BaseMembraneInterfaceEditableProperties, BaseMembraneInterfaceReadOnlyProperties, BaseScenario, BaseScreen, BaseWorkspaceElement, CONNECTOR_AUTH_TYPES, CONNECTOR_CATEGORIES, CONNECTOR_DATA_DIR, CONNECTOR_DOCS_DIR, CONNECTOR_EVENTS_DIR, CONNECTOR_GLOBAL_WEBHOOKS_DIR, CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES, CONNECTOR_OPERATIONS_DIR, CommonInstancesListQuery, CommonIntegrationOrConnectionQuery, CommonListElementsQuery, ConcurrencyError, ConcurrencyErrorKey, ConfigurationError, ConfigurationState, ConnectionAccessor, ConnectionApiResponse, ConnectionApiResponseWithSecrets, ConnectionDataCollectionAccessor, ConnectionError, ConnectionErrorKey, ConnectionLevelActionAccessor, ConnectionLevelActionsAccessor, ConnectionLevelDataSourceAccessor, ConnectionLevelDataSourcesAccessor, ConnectionLevelFieldMappingAccessor, ConnectionLevelFieldMappingsAccessor, ConnectionLevelFlowAccessor, ConnectionLevelFlowsAccessor, ConnectionMessagePayload, ConnectionOperationAccessor, ConnectionProxy, ConnectionRequest, ConnectionSelector, ConnectionSpec, ConnectionsAccessor, ConnectorAuthMethodTypes, ConnectorCopilotFileChunkTopicKey, ConnectorCopilotSuggestionType, ConnectorDataCollectionEventImplementationType, ConnectorDataCollectionMethodKeys, ConnectorDataLocationTypes, ConnectorEventHandlerMethods, ConnectorEventImplementationType, ConnectorMethodImplementationType, ConnectorOperationMethodImplementationTypes, ConnectorStatus, CopilotActionStatus, CopilotActionType, CopilotActivityScope, CopilotActivityType, CopilotTaskStatus, CopilotTaskType, CreateActionInstanceRequest, CreateActionRequest, CreateConnectionRequest, CreateCustomerRequest, CreateDataSourceInstanceRequest, CreateDataSourceRequest, CreateFieldMappingRequest, CreateFlowNodeRequest, CreateFlowRequest, CreateFlowRunRequest, CreateIntegrationRequest, CustomCodeError, CustomerAccessor, CustomerApiResponse, CustomerSelector, CustomersAccessor, DATA_RECORD_SCHEMA, DEFAULT_FULL_SYNC_INTERVAL_SECONDS, DEFAULT_PULL_UPDATES_INTERVAL_SECONDS, DataBuilderFormulaType, DataCollectionCreateRequest, DataCollectionCreateResponse, DataCollectionCreateSpec, DataCollectionDeleteRequest, DataCollectionDeleteResponse, DataCollectionDeleteSpec, DataCollectionEventType, DataCollectionEventTypeSpec, DataCollectionEventsSpec, DataCollectionFindByIdRequest, DataCollectionFindByIdResponse, DataCollectionFindByIdSpec, DataCollectionFindRequest, DataCollectionFindResponse, DataCollectionFindSpec, DataCollectionListRequest, DataCollectionListResponse, DataCollectionListResponseDrilldown, DataCollectionListSpec, DataCollectionMatchRequest, DataCollectionMatchResponse, DataCollectionMatchSpec, DataCollectionMethodRequest, DataCollectionMethodSpec, DataCollectionSearchRequest, DataCollectionSearchResponse, DataCollectionSearchSpec, DataCollectionSpec, DataCollectionUdmSpec, DataCollectionUdmsSpec, DataCollectionUpdateRequest, DataCollectionUpdateResponse, DataCollectionUpdateSpec, DataFilterCondition, DataForm, DataLink, DataLinkDirection, DataLinkTableAccessor, DataLinkTableApiResponse, DataLinkTableConfig, DataLinkTableInstanceAccessor, DataLinkTableInstanceApiResponse, DataLinkTableInstancesAccessor, DataLinkTablesAccessor, DataLocationMethodImplementationTypes, DataLocationTypeCollection, DataLocatorStep, DataLocatorStepArrayItem, DataLocatorStepObjectProperty, DataLocatorStepType, DataRecordSchema, DataSchema, DataSourceAccessor, DataSourceApiResponse, DataSourceEditableProperties, DataSourceInstanceAccessor, DataSourceInstanceApiResponse, DataSourceInstancesAccessor, DataSourceUnitConfig, DataSourcesAccessor, DependencyError, DownstreamFlowNodeRunSchema, EDITABLE_LIMITS, ElementAccessor, ElementInstanceAccessor, ElementInstanceListAccessor, ElementListAccessor, ElementsExportFields, ErrorData, ErrorDataSchema, ErrorType, ExternalEvent, ExternalEventLogRecordApiResponse, ExternalEventLogStatus, ExternalEventPullApiResponse, ExternalEventPullStatus, ExternalEventSubscriptionAccessor, ExternalEventSubscriptionApiResponse, ExternalEventSubscriptionConfig, ExternalEventSubscriptionStatus, ExternalEventSubscriptionType, ExternalEventSubscriptionsAccessor, ExternalEventType, ExternalEventUnitConfig, FLOW_NODE_SPECS, FieldMappingAccessor, FieldMappingApiResponse, FieldMappingDirection, FieldMappingEditableProperties, FieldMappingInstanceAccessor, FieldMappingInstanceApiResponse, FieldMappingInstancesAccessor, FieldMappingUnitConfig, FieldMappingsAccessor, FindActionInstancesQuery, FindActionsQuery, FindConnectionsQuery, FindConnectionsResponse, FindCustomersQuery, FindDataSourceEventsQuery, FindDataSourceInstanceSyncsQuery, FindDataSourceInstancesQuery, FindDataSourceSyncsQuery, FindDataSourcesQuery, FindFieldMappingsQuery, FindFlowInstancesQuery, FindFlowRunsQuery, FindFlowRunsResponse, FindFlowsQuery, FindIntegrationsQuery, FindScenariosQuery, FlowAccessor, FlowApiResponse, FlowEditableProperties, FlowInstanceAccessor, FlowInstanceApiResponse, FlowInstanceNode, FlowInstanceNodeState, FlowInstanceSetupError, FlowInstancesAccessor, FlowNode, FlowNodeLink, FlowNodeRunOutputMetadataSchema, FlowNodeRunOutputSchema, FlowNodeRunOutputWithoutDownstreamRunsSchema, FlowNodeRunParametersSchema, FlowNodeRunRecordSchema, FlowNodeRunRecordWithoutOutputsDataSchema, FlowNodeRunResultSchema, FlowNodeRunStatus, FlowNodeSpec, FlowNodeType, FlowRunAccessor, FlowRunApiResponse, FlowRunError, FlowRunLaunchedBy, FlowRunLaunchedByApi, FlowRunLaunchedByTrigger, FlowRunNode, FlowRunNodeState, FlowRunState, FlowRunsAccessor, FlowsAccessor, Formula, HTTP_REQUEST_SCHEMA, HandyScenarioTemplateElement, HttpRequestMethod, HttpRequestSpec, IncludeArchivedQuery, IncomingWebhooksState, IntegrationAccessor, IntegrationApiResponse, MembraneClient as IntegrationAppClient, IntegrationAuthOption, IntegrationAuthUi, IntegrationElementLevel, IntegrationElementType, IntegrationLevelActionAccessor, IntegrationLevelActionsListAccessor, IntegrationLevelDataSourceAccessor, IntegrationLevelDataSourcesListAccessor, IntegrationLevelFieldMappingAccessor, IntegrationLevelFieldMappingsListAccessor, IntegrationLevelFlowAccessor, IntegrationLevelFlowsListAccessor, IntegrationsAccessor, InternalError, InvalidLocatorError, LimitUnits, ListActionInstancesForConnectionQuery, ListDataSourceInstancesForConnectionQuery, ListExternalEventLogRecordsQuery, ListExternalEventPullsQuery, ListFlowInstancesForConnectionQuery, LogRecordType, MIN_FULL_SYNC_INTERVAL_SECONDS, MIN_PULL_UPDATES_INTERVAL_SECONDS, MembraneClient, MembraneError, MinimalConnector, NotAuthenticatedError, NotFoundError, OAUTH1_CONFIG_SCHEMA, OAUTH_CONFIG_SCHEMA, OrgLimitsType, OrgUserRole, OrgUserStatus, PARALLEL_EXECUTION_LIMITS, PaginationQuery, PaginationResponse, RATE_LIMITS, RateLimitExceededError, ResetFlowInstanceOptions, ScenarioAccessor, ScenarioApiResponse, ScenarioCalculatedProperties, ScenarioEditableProperties, ScenarioElement, ScenarioElementApi, ScenarioTemplate, ScenarioTemplateCategory, ScenarioTemplateElements, ScenariosAccessor, ScreenAccessor, ScreenApiResponse, ScreenBlock, ScreenBlockType, ScreenType, ScreensAccessor, SearchQuery, SelfAccessor, UDM, UNIFIED_DATA_MODELS, UnitRunError, UpdateActionInstanceRequest, UpdateActionRequest, UpdateConnectionRequest, UpdateCustomerRequest, UpdateDataSourceInstanceRequest, UpdateDataSourceRequest, UpdateFieldMappingRequest, UpdateFlowRequest, UpdateIntegrationRequest, UpstreamFlowNodeRunSchema, UsageType, UserAccessor, UsersAccessor, WORKSPACE_SIZE_LIMITS, WebhookTypeEnum, WorkspaceElementDependencyType, WorkspaceElementSpecs, WorkspaceElementState, WorkspaceElementType, WorkspaceEventType, WorkspaceNotificationType, WorkspaceOnboardingStep, WorkspaceSyncEventType, WorkspaceType, __resolveValue, addRequiredFieldsToSchema, addUdmFallbackFields, backwardCompatibleFilterMatch, buildData, buildDataSchema, buildValue, compressDataSchema, createCompoundSchema, createFlowInstanceSchema, createObjectFromLocators, createOrUpdateConnection, createSchema, dataCollectionEventTypeToExternalEventType, dataLocationParametersMatch, doesMatchFilter, excludeFieldsFromSchema, excludeFieldsFromValue, excludeReadOnlyFieldsFromSchema, excludeWriteOnlyFieldsFromSchema, externalEventTypeToDataCollectionEventType, extractFieldLocator, extractMembraneErrorData, findUdmCollectionMapping, findUdmDefaultCollection, findUdmRootLocation, findValueLocators, generateExampleFromSchema, getActionInstanceVariableSchema, getActionRunTimeVariablesSchema, getAllEventMethodFilePaths, getBusinessDaysBetween, getChildNodeKeys, getDataCollectionCreateFields, getDataCollectionUpdateFields, getDataLocationMethodPath, getDownstreamNodeKeys, getErrorFromData, getEventMethodFileKey, getFilterFieldValuesByLocator, getFlowInstanceNodeDependency, getFlowNode, getFlowNodeConfigTimeVariablesSchema, getFlowNodeDescription, getFlowNodeRunTimeVariablesSchema, getFlowNodeSpec, getFlowNodeTitle, getFormula$1 as getFormula, getFormulaLocators, getFormula as getFormula_internalDoNotUse, getFullNameForLocator, getFullTitleForLocator, getIconUriForLocator, getLocatorsFromData, getLocatorsFromSchema, getMissingRequiredFields, getNameComponentsForLocator, getNameForLocator, getNodeInputSchema, getOperatorsBySchema, getParentNodeKeys, getReferenceCollectionPathForSchema, getReferenceCollectionPointerForSchema, getRequiredFieldsFromSchema, getRootNodeKeys, getSchemaByLocator, getSchemaFromValue, getUpstreamNodeKeys, getValueAtLocator, getValueByLocator, getVariableLocators, getWritableFieldsSchema, hasCycles, hasFormulas$1 as hasFormulas, hasFormulas as hasFormulas_internalDoNotUse, injectFormulaCatalog, isBusinessDay, isDataActionType, isDataLocationMethodSupported, isFormula$1 as isFormula, isFormula as isFormula_internalDoNotUse, isMembraneError, isObject, isSameDataLocation, isSchemaEmpty, isStream, isValidLocator, locatorToField, locatorToSteps, locatorToString, makeDataLocationOperationPath, makeDataLocationPath, makeDataRecordSchema, makeObjectPropertyLocator, makeSchemaForLocator, mergeSchemas, mergeWithFormulas, nonEmptyObjectProperties, parseDataLocationPath, parseDate, patchSchema, pickFieldsFromSchema, pickFieldsFromValue, populateSchemaTitles, processCopy, removeNonExistentVars, removeRequiredFieldsFromSchema, resolveFormulas, schemaAllowsCustomValue, schemaHasFixedValues, schemaHasProperties, schemaIsNumber, schemaIsScalar, schemaTypeFromValue, schemaWithTitle, setSchemaAtLocator, setValueAtLocator, stepsToLocator, streamToString, transformVariablesWith, transformVars, truncateData, unwrapSchema, unwrapSchemas, updateFlowInstanceSchema, updateImpliedSchema, valueToSchema, valueToString, walkSchema, wrapAnyOfSchema, zodBooleanCoercion };
|
|
12684
12700
|
//# sourceMappingURL=index.browser.mjs.map
|