@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.node.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
|
import * as fs from 'fs';
|
|
13
13
|
import * as path from 'path';
|
|
@@ -47,7 +47,7 @@ var ConcurrencyErrorKey;
|
|
|
47
47
|
ConcurrencyErrorKey["LOCK_TIMEOUT"] = "lock_timeout";
|
|
48
48
|
})(ConcurrencyErrorKey || (ConcurrencyErrorKey = {}));
|
|
49
49
|
const ErrorDataSchema = z.lazy(() => z.object({
|
|
50
|
-
type: z.
|
|
50
|
+
type: z.enum(ErrorType).optional(),
|
|
51
51
|
key: z.string().optional(),
|
|
52
52
|
message: z.string(),
|
|
53
53
|
data: z.any().optional(),
|
|
@@ -1320,7 +1320,7 @@ const DataSchema = z.lazy(() => z
|
|
|
1320
1320
|
description: z.string().optional(),
|
|
1321
1321
|
type: z.union([z.string(), z.array(z.string())]).optional(),
|
|
1322
1322
|
format: z.string().optional(),
|
|
1323
|
-
properties: z.record(DataSchema).optional(),
|
|
1323
|
+
properties: z.record(z.string(), DataSchema).optional(),
|
|
1324
1324
|
items: DataSchema.optional(),
|
|
1325
1325
|
additionalProperties: z.union([z.boolean(), DataSchema]).optional(),
|
|
1326
1326
|
enum: z.array(z.string()).optional(),
|
|
@@ -1328,7 +1328,7 @@ const DataSchema = z.lazy(() => z
|
|
|
1328
1328
|
referenceCollection: z
|
|
1329
1329
|
.object({
|
|
1330
1330
|
key: z.any().optional(),
|
|
1331
|
-
parameters: z.record(z.any()).optional(),
|
|
1331
|
+
parameters: z.record(z.string(), z.any()).optional(),
|
|
1332
1332
|
})
|
|
1333
1333
|
.optional(),
|
|
1334
1334
|
referenceUdm: z.string().optional(),
|
|
@@ -3441,7 +3441,7 @@ const BaseMembraneInterfaceEditableProperties = z.object({
|
|
|
3441
3441
|
});
|
|
3442
3442
|
const BaseMembraneInterfaceReadOnlyProperties = z.object({
|
|
3443
3443
|
name: z.string(),
|
|
3444
|
-
state: z.
|
|
3444
|
+
state: z.enum(WorkspaceElementState).optional(),
|
|
3445
3445
|
errors: z.array(ErrorDataSchema).optional(),
|
|
3446
3446
|
revision: z.string().optional(),
|
|
3447
3447
|
createdAt: z.string().optional(),
|
|
@@ -3502,7 +3502,7 @@ const FieldMappingEditableProperties = BaseIntegrationLevelMembraneInterfaceEdit
|
|
|
3502
3502
|
dataSourceKey: z.string().optional(),
|
|
3503
3503
|
dataSourceId: z.string().optional(),
|
|
3504
3504
|
appSchema: DataSchema.optional(),
|
|
3505
|
-
direction: z.
|
|
3505
|
+
direction: z.enum(FieldMappingDirection).optional(),
|
|
3506
3506
|
defaultImportValue: z.any().optional(),
|
|
3507
3507
|
defaultExportValue: z.any().optional(),
|
|
3508
3508
|
importValue: z.any().optional(),
|
|
@@ -3628,7 +3628,7 @@ const ActionEditableProperties = BaseIntegrationLevelMembraneInterfaceEditablePr
|
|
|
3628
3628
|
integrationId: z.string().optional(),
|
|
3629
3629
|
parentId: z.string().optional(),
|
|
3630
3630
|
inputSchema: DataSchema.optional(),
|
|
3631
|
-
type: z.
|
|
3631
|
+
type: z.enum(ActionType).optional(),
|
|
3632
3632
|
config: z.any().optional(),
|
|
3633
3633
|
outputMapping: z.any().optional(),
|
|
3634
3634
|
customOutputSchema: DataSchema.optional(),
|
|
@@ -3639,9 +3639,9 @@ const BaseAction = BaseMembraneInterface.merge(ActionEditableProperties).merge(A
|
|
|
3639
3639
|
const ConnectionRequest = z.object({
|
|
3640
3640
|
path: z.any(),
|
|
3641
3641
|
method: z.enum(['GET', 'POST', 'PUT', 'PATCH', 'DELETE']).optional(),
|
|
3642
|
-
pathParameters: z.record(z.string()).optional(),
|
|
3643
|
-
headers: z.record(z.string()).optional(),
|
|
3644
|
-
query: z.record(z.string()).optional(),
|
|
3642
|
+
pathParameters: z.record(z.string(), z.string()).optional(),
|
|
3643
|
+
headers: z.record(z.string(), z.string()).optional(),
|
|
3644
|
+
query: z.record(z.string(), z.string()).optional(),
|
|
3645
3645
|
data: z.any().optional(),
|
|
3646
3646
|
});
|
|
3647
3647
|
const BaseConnection = BaseWorkspaceElement.extend({
|
|
@@ -3650,7 +3650,7 @@ const BaseConnection = BaseWorkspaceElement.extend({
|
|
|
3650
3650
|
isTest: z.boolean().optional(),
|
|
3651
3651
|
disconnected: z.boolean().optional(),
|
|
3652
3652
|
isDefunct: z.boolean().optional(),
|
|
3653
|
-
state: z.
|
|
3653
|
+
state: z.enum(WorkspaceElementState).optional(),
|
|
3654
3654
|
error: ErrorDataSchema.optional(),
|
|
3655
3655
|
integrationId: z.string(),
|
|
3656
3656
|
authOptionKey: z.string().optional(),
|
|
@@ -3660,7 +3660,7 @@ const BaseConnection = BaseWorkspaceElement.extend({
|
|
|
3660
3660
|
nextCredentialsRefreshAt: z.string().optional(),
|
|
3661
3661
|
archivedAt: z.string().optional(),
|
|
3662
3662
|
isDeactivated: z.boolean().optional(),
|
|
3663
|
-
meta: z.record(z.any()).optional(),
|
|
3663
|
+
meta: z.record(z.string(), z.any()).optional(),
|
|
3664
3664
|
});
|
|
3665
3665
|
class ConnectionSpec {
|
|
3666
3666
|
constructor(opts) {
|
|
@@ -3997,10 +3997,10 @@ const DataRecordSchema = z.object({
|
|
|
3997
3997
|
name: z.string().optional(),
|
|
3998
3998
|
uri: z.string().optional(),
|
|
3999
3999
|
iconUri: z.string().optional(),
|
|
4000
|
-
fields: z.record(z.any()).optional(),
|
|
4000
|
+
fields: z.record(z.string(), z.any()).optional(),
|
|
4001
4001
|
udm: z.string().optional(),
|
|
4002
|
-
unifiedFields: z.record(z.any()).optional(),
|
|
4003
|
-
rawFields: z.record(z.any()).optional(),
|
|
4002
|
+
unifiedFields: z.record(z.string(), z.any()).optional(),
|
|
4003
|
+
rawFields: z.record(z.string(), z.any()).optional(),
|
|
4004
4004
|
createdTime: z.string().optional(),
|
|
4005
4005
|
updatedTime: z.string().optional(),
|
|
4006
4006
|
deletedTime: z.string().optional(),
|
|
@@ -8185,10 +8185,10 @@ const DataCollectionEventsSpec = z
|
|
|
8185
8185
|
.catchall(DataCollectionEventTypeSpec);
|
|
8186
8186
|
const DataCollectionUdmSpec = z.object({
|
|
8187
8187
|
fields: z.array(z.string()).optional(),
|
|
8188
|
-
extract: z.record(z.any()).optional(),
|
|
8189
|
-
parse: z.record(z.any()).optional(),
|
|
8188
|
+
extract: z.record(z.string(), z.any()).optional(),
|
|
8189
|
+
parse: z.record(z.string(), z.any()).optional(),
|
|
8190
8190
|
});
|
|
8191
|
-
const DataCollectionUdmsSpec = z.record(DataCollectionUdmSpec);
|
|
8191
|
+
const DataCollectionUdmsSpec = z.record(z.string(), DataCollectionUdmSpec);
|
|
8192
8192
|
const DataCollectionSpec = z.object({
|
|
8193
8193
|
type: z.literal('collection'),
|
|
8194
8194
|
key: z.string().optional(),
|
|
@@ -8208,7 +8208,7 @@ const DataCollectionSpec = z.object({
|
|
|
8208
8208
|
find: DataCollectionFindSpec.optional(),
|
|
8209
8209
|
});
|
|
8210
8210
|
const DataCollectionMethodRequest = z.object({
|
|
8211
|
-
parameters: z.record(z.any()).optional(),
|
|
8211
|
+
parameters: z.record(z.string(), z.any()).optional(),
|
|
8212
8212
|
});
|
|
8213
8213
|
const DataCollectionFindRequest = z.object({
|
|
8214
8214
|
query: z.any().optional(),
|
|
@@ -8224,8 +8224,8 @@ const DataCollectionListRequest = DataCollectionMethodRequest.extend({
|
|
|
8224
8224
|
cursor: z.string().optional(),
|
|
8225
8225
|
});
|
|
8226
8226
|
const DataCollectionListResponseDrilldown = z.object({
|
|
8227
|
-
parameters: z.record(z.any()).optional(),
|
|
8228
|
-
filter: z.record(z.any()).optional(),
|
|
8227
|
+
parameters: z.record(z.string(), z.any()).optional(),
|
|
8228
|
+
filter: z.record(z.string(), z.any()).optional(),
|
|
8229
8229
|
});
|
|
8230
8230
|
const DataCollectionListResponse = z.object({
|
|
8231
8231
|
records: z.array(DataRecordSchema),
|
|
@@ -8248,20 +8248,20 @@ const DataCollectionFindByIdResponse = z.object({
|
|
|
8248
8248
|
record: DataRecordSchema,
|
|
8249
8249
|
});
|
|
8250
8250
|
const DataCollectionMatchRequest = DataCollectionMethodRequest.extend({
|
|
8251
|
-
query: z.record(z.any()),
|
|
8251
|
+
query: z.record(z.string(), z.any()),
|
|
8252
8252
|
});
|
|
8253
8253
|
const DataCollectionMatchResponse = z.object({
|
|
8254
8254
|
record: DataRecordSchema.optional(),
|
|
8255
8255
|
});
|
|
8256
8256
|
const DataCollectionCreateRequest = DataCollectionMethodRequest.extend({
|
|
8257
|
-
fields: z.record(z.any()),
|
|
8257
|
+
fields: z.record(z.string(), z.any()),
|
|
8258
8258
|
});
|
|
8259
8259
|
const DataCollectionCreateResponse = z.object({
|
|
8260
8260
|
id: z.string(),
|
|
8261
8261
|
});
|
|
8262
8262
|
const DataCollectionUpdateRequest = DataCollectionMethodRequest.extend({
|
|
8263
8263
|
id: z.string(),
|
|
8264
|
-
fields: z.record(z.any()),
|
|
8264
|
+
fields: z.record(z.string(), z.any()),
|
|
8265
8265
|
});
|
|
8266
8266
|
const DataCollectionUpdateResponse = z.object({
|
|
8267
8267
|
id: z.string(),
|
|
@@ -8397,7 +8397,7 @@ var IncomingWebhooksState;
|
|
|
8397
8397
|
IncomingWebhooksState["ERROR"] = "error";
|
|
8398
8398
|
})(IncomingWebhooksState || (IncomingWebhooksState = {}));
|
|
8399
8399
|
const ExternalEventUnitConfig = z.object({
|
|
8400
|
-
type: z.
|
|
8400
|
+
type: z.enum(ExternalEventType),
|
|
8401
8401
|
dataSource: DataSourceUnitConfig.optional(),
|
|
8402
8402
|
eventKey: z.string().optional(),
|
|
8403
8403
|
eventParameters: z.any().optional(),
|
|
@@ -8455,11 +8455,11 @@ var FlowRunLaunchedByTrigger;
|
|
|
8455
8455
|
FlowRunLaunchedByTrigger["ExternalEvent"] = "external-event";
|
|
8456
8456
|
})(FlowRunLaunchedByTrigger || (FlowRunLaunchedByTrigger = {}));
|
|
8457
8457
|
const FlowRunLaunchedBy = z.object({
|
|
8458
|
-
type: z.
|
|
8458
|
+
type: z.enum(FlowRunLaunchedByTrigger),
|
|
8459
8459
|
ids: z.array(z.string()).optional(),
|
|
8460
8460
|
});
|
|
8461
8461
|
const FlowRunNode = z.object({
|
|
8462
|
-
state: z.
|
|
8462
|
+
state: z.enum(FlowRunNodeState),
|
|
8463
8463
|
runs: z.number().optional(),
|
|
8464
8464
|
erroredRuns: z.number().optional(),
|
|
8465
8465
|
outputs: z.number().optional(),
|
|
@@ -8474,11 +8474,11 @@ const BaseFlowRun = z.object({
|
|
|
8474
8474
|
startNodeKey: z.string(),
|
|
8475
8475
|
userId: z.string(),
|
|
8476
8476
|
input: z.any().optional(),
|
|
8477
|
-
state: z.
|
|
8477
|
+
state: z.enum(FlowRunState),
|
|
8478
8478
|
startTime: z.string(),
|
|
8479
8479
|
endTime: z.string().optional(),
|
|
8480
8480
|
errors: z.array(ErrorDataSchema).optional(),
|
|
8481
|
-
nodes: z.record(FlowRunNode).optional(),
|
|
8481
|
+
nodes: z.record(z.string(), FlowRunNode).optional(),
|
|
8482
8482
|
launchedBy: FlowRunLaunchedBy.optional(),
|
|
8483
8483
|
});
|
|
8484
8484
|
|
|
@@ -8508,7 +8508,7 @@ const FlowNodeRunOutputSchema = z.object({
|
|
|
8508
8508
|
downstreamRuns: z.array(DownstreamFlowNodeRunSchema),
|
|
8509
8509
|
});
|
|
8510
8510
|
const FlowNodeRunResultSchema = z.object({
|
|
8511
|
-
status: z.
|
|
8511
|
+
status: z.enum(FlowNodeRunStatus),
|
|
8512
8512
|
logs: z.array(z.any()),
|
|
8513
8513
|
outputs: z.array(FlowNodeRunOutputSchema),
|
|
8514
8514
|
errors: z.array(ErrorDataSchema),
|
|
@@ -8526,7 +8526,7 @@ const FlowNodeRunRecordWithoutOutputsDataSchema = z.object({
|
|
|
8526
8526
|
id: z.string(),
|
|
8527
8527
|
upstreamRuns: z.array(UpstreamFlowNodeRunSchema),
|
|
8528
8528
|
input: z.any(),
|
|
8529
|
-
status: z.
|
|
8529
|
+
status: z.enum(FlowNodeRunStatus),
|
|
8530
8530
|
logs: z.array(z.any()),
|
|
8531
8531
|
outputs: z.array(FlowNodeRunOutputMetadataSchema),
|
|
8532
8532
|
errors: z.array(ErrorDataSchema),
|
|
@@ -8831,7 +8831,7 @@ const FlowEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProp
|
|
|
8831
8831
|
integrationId: z.string().optional(),
|
|
8832
8832
|
universalFlowId: z.string().optional(),
|
|
8833
8833
|
parametersSchema: DataSchema.optional(),
|
|
8834
|
-
nodes: z.record(FlowNode).optional(),
|
|
8834
|
+
nodes: z.record(z.string(), FlowNode).optional(),
|
|
8835
8835
|
autoCreateInstances: z.boolean().optional(),
|
|
8836
8836
|
});
|
|
8837
8837
|
const FlowReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
@@ -8888,7 +8888,7 @@ var IntegrationElementType;
|
|
|
8888
8888
|
|
|
8889
8889
|
const ScenarioElement = z.object({
|
|
8890
8890
|
id: z.string(),
|
|
8891
|
-
type: z.
|
|
8891
|
+
type: z.enum(IntegrationElementType),
|
|
8892
8892
|
element: z.any().optional(),
|
|
8893
8893
|
});
|
|
8894
8894
|
const ScenarioEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
@@ -8917,11 +8917,11 @@ var ScreenBlockType;
|
|
|
8917
8917
|
})(ScreenBlockType || (ScreenBlockType = {}));
|
|
8918
8918
|
const ScreenBlock = z
|
|
8919
8919
|
.object({
|
|
8920
|
-
type: z.
|
|
8920
|
+
type: z.enum(ScreenBlockType),
|
|
8921
8921
|
})
|
|
8922
|
-
.and(z.record(z.any()));
|
|
8922
|
+
.and(z.record(z.string(), z.any()));
|
|
8923
8923
|
const BaseScreen = BaseWorkspaceElement.extend({
|
|
8924
|
-
type: z.
|
|
8924
|
+
type: z.enum(ScreenType),
|
|
8925
8925
|
key: z.string().optional(),
|
|
8926
8926
|
blocks: z.array(ScreenBlock),
|
|
8927
8927
|
});
|
|
@@ -8929,7 +8929,7 @@ const BaseScreen = BaseWorkspaceElement.extend({
|
|
|
8929
8929
|
const BaseCustomer = z.object({
|
|
8930
8930
|
id: z.string(),
|
|
8931
8931
|
name: z.string(),
|
|
8932
|
-
meta: z.record(z.any()).optional(),
|
|
8932
|
+
meta: z.record(z.string(), z.any()).optional(),
|
|
8933
8933
|
internalId: z.string(),
|
|
8934
8934
|
fields: z.record(z.string(), z.any()).optional(),
|
|
8935
8935
|
credentials: z.any().optional(),
|
|
@@ -8949,11 +8949,11 @@ const BaseFlowInstance = BaseMembraneInterface.extend({
|
|
|
8949
8949
|
instanceKey: z.string().optional(),
|
|
8950
8950
|
parameters: z.any().optional(),
|
|
8951
8951
|
parametersSchema: DataSchema.optional(),
|
|
8952
|
-
nodes: z.record(z.any()).optional(),
|
|
8952
|
+
nodes: z.record(z.string(), z.any()).optional(),
|
|
8953
8953
|
enabled: z.boolean(),
|
|
8954
8954
|
createdAt: z.string(),
|
|
8955
8955
|
updatedAt: z.string(),
|
|
8956
|
-
state: z.
|
|
8956
|
+
state: z.enum(WorkspaceElementState).optional(),
|
|
8957
8957
|
customized: z
|
|
8958
8958
|
.object({
|
|
8959
8959
|
name: z.boolean().optional(),
|
|
@@ -8968,7 +8968,7 @@ var FlowInstanceNodeState;
|
|
|
8968
8968
|
FlowInstanceNodeState["READY"] = "READY";
|
|
8969
8969
|
})(FlowInstanceNodeState || (FlowInstanceNodeState = {}));
|
|
8970
8970
|
const FlowInstanceNode = FlowNode.extend({
|
|
8971
|
-
state: z.
|
|
8971
|
+
state: z.enum(FlowInstanceNodeState).optional(),
|
|
8972
8972
|
errors: z.array(ErrorDataSchema).optional(),
|
|
8973
8973
|
userConfig: z.any().optional(),
|
|
8974
8974
|
testInput: z.any().optional(),
|
|
@@ -9038,7 +9038,7 @@ var ActionDependencyType;
|
|
|
9038
9038
|
ActionDependencyType["DataSource"] = "DataSource";
|
|
9039
9039
|
})(ActionDependencyType || (ActionDependencyType = {}));
|
|
9040
9040
|
const ActionDependency = z.object({
|
|
9041
|
-
type: z.
|
|
9041
|
+
type: z.enum(ActionDependencyType),
|
|
9042
9042
|
key: z.string(),
|
|
9043
9043
|
element: z.any().optional(),
|
|
9044
9044
|
});
|
|
@@ -9047,7 +9047,7 @@ const BaseActionInstance = BaseMembraneInterface.extend({
|
|
|
9047
9047
|
universalParentId: z.string().optional(),
|
|
9048
9048
|
userId: z.string(),
|
|
9049
9049
|
instanceKey: z.string().optional(),
|
|
9050
|
-
type: z.
|
|
9050
|
+
type: z.enum(ActionType).optional(),
|
|
9051
9051
|
inputSchema: z.any().optional(),
|
|
9052
9052
|
config: z.any().optional(),
|
|
9053
9053
|
outputSchema: z.any().optional(),
|
|
@@ -9063,7 +9063,7 @@ const BaseFieldMappingInstance = BaseMembraneInterface.extend({
|
|
|
9063
9063
|
instanceKey: z.string().optional(),
|
|
9064
9064
|
dataSourceInstanceId: z.string().optional(),
|
|
9065
9065
|
dataSourceSchema: DataSchema.optional(),
|
|
9066
|
-
direction: z.
|
|
9066
|
+
direction: z.enum(FieldMappingDirection).optional(),
|
|
9067
9067
|
appSchema: DataSchema.optional(),
|
|
9068
9068
|
importValue: z.any().optional(),
|
|
9069
9069
|
exportValue: z.any().optional(),
|
|
@@ -9072,7 +9072,7 @@ const BaseFieldMappingInstance = BaseMembraneInterface.extend({
|
|
|
9072
9072
|
unifiedImportValue: z.any().optional(),
|
|
9073
9073
|
frozenImportFields: z.array(z.string()).optional(),
|
|
9074
9074
|
frozenExportFields: z.array(z.string()).optional(),
|
|
9075
|
-
state: z.
|
|
9075
|
+
state: z.enum(WorkspaceElementState).optional(),
|
|
9076
9076
|
error: ErrorDataSchema.optional(),
|
|
9077
9077
|
externalSchema: z.any().optional(),
|
|
9078
9078
|
});
|
|
@@ -9100,7 +9100,7 @@ const DataLink = z.object({
|
|
|
9100
9100
|
dataLinkTableInstanceId: z.string(),
|
|
9101
9101
|
externalRecordId: z.string(),
|
|
9102
9102
|
appRecordId: z.string(),
|
|
9103
|
-
direction: z.
|
|
9103
|
+
direction: z.enum(DataLinkDirection),
|
|
9104
9104
|
});
|
|
9105
9105
|
const DataLinkTableConfig = z.object({
|
|
9106
9106
|
key: z.string(),
|
|
@@ -9115,10 +9115,10 @@ var HttpRequestMethod;
|
|
|
9115
9115
|
HttpRequestMethod["DELETE"] = "DELETE";
|
|
9116
9116
|
})(HttpRequestMethod || (HttpRequestMethod = {}));
|
|
9117
9117
|
const HttpRequestSpec = z.object({
|
|
9118
|
-
method: z.string().toUpperCase().pipe(z.
|
|
9118
|
+
method: z.string().toUpperCase().pipe(z.enum(HttpRequestMethod)).optional(),
|
|
9119
9119
|
uri: z.any(),
|
|
9120
|
-
headers: z.record(z.any()).optional(),
|
|
9121
|
-
query: z.record(z.any()).optional(),
|
|
9120
|
+
headers: z.record(z.string(), z.any()).optional(),
|
|
9121
|
+
query: z.record(z.string(), z.any()).optional(),
|
|
9122
9122
|
body: z.any().optional(),
|
|
9123
9123
|
});
|
|
9124
9124
|
const HTTP_REQUEST_SCHEMA = {
|
|
@@ -9198,7 +9198,7 @@ var ExternalEventSubscriptionType;
|
|
|
9198
9198
|
ExternalEventSubscriptionType["ConnectorEvent"] = "connector-event";
|
|
9199
9199
|
})(ExternalEventSubscriptionType || (ExternalEventSubscriptionType = {}));
|
|
9200
9200
|
const ExternalEventSubscriptionConfig = z.object({
|
|
9201
|
-
type: z.
|
|
9201
|
+
type: z.enum(ExternalEventSubscriptionType),
|
|
9202
9202
|
dataSource: DataSourceUnitConfig.optional(),
|
|
9203
9203
|
eventKey: z.string().optional(),
|
|
9204
9204
|
eventParameters: z.any().optional(),
|
|
@@ -9210,7 +9210,7 @@ const BaseExternalEventSubscription = z.object({
|
|
|
9210
9210
|
connectionId: z.string(),
|
|
9211
9211
|
integrationId: z.string(),
|
|
9212
9212
|
config: ExternalEventSubscriptionConfig.optional(),
|
|
9213
|
-
status: z.
|
|
9213
|
+
status: z.enum(ExternalEventSubscriptionStatus).optional(),
|
|
9214
9214
|
error: ErrorDataSchema.optional(),
|
|
9215
9215
|
isRealTime: z.boolean().optional(),
|
|
9216
9216
|
requiresPull: z.boolean().optional(),
|
|
@@ -9241,7 +9241,7 @@ const BaseExternalEventLogRecord = z.object({
|
|
|
9241
9241
|
connectionId: z.string(),
|
|
9242
9242
|
payload: z.any().optional(),
|
|
9243
9243
|
launchedFlowRunIds: z.array(z.string()).optional(),
|
|
9244
|
-
status: z.
|
|
9244
|
+
status: z.enum(ExternalEventLogStatus),
|
|
9245
9245
|
error: ErrorDataSchema.optional(),
|
|
9246
9246
|
});
|
|
9247
9247
|
|
|
@@ -9262,7 +9262,7 @@ const BaseExternalEventPull = z.object({
|
|
|
9262
9262
|
startDatetime: z.string(),
|
|
9263
9263
|
endDatetime: z.string(),
|
|
9264
9264
|
isFullScan: z.boolean().optional(),
|
|
9265
|
-
status: z.
|
|
9265
|
+
status: z.enum(ExternalEventPullStatus),
|
|
9266
9266
|
collectedEventIds: z.array(z.string()),
|
|
9267
9267
|
error: ErrorDataSchema.optional(),
|
|
9268
9268
|
});
|
|
@@ -9278,7 +9278,7 @@ const BaseActionRunLogRecord = BaseWorkspaceElement.extend({
|
|
|
9278
9278
|
connectionId: z.string(),
|
|
9279
9279
|
input: z.any().optional(),
|
|
9280
9280
|
output: z.any().optional(),
|
|
9281
|
-
status: z.
|
|
9281
|
+
status: z.enum(ActionRunLogStatus),
|
|
9282
9282
|
createdAt: z.string(),
|
|
9283
9283
|
completedAt: z.string().optional(),
|
|
9284
9284
|
error: ErrorDataSchema.optional(),
|
|
@@ -9543,12 +9543,6 @@ const ResetFlowInstanceOptions = z.object({
|
|
|
9543
9543
|
nodes: z.record(z.string(), z.boolean()).optional(),
|
|
9544
9544
|
allNodes: z.boolean().optional(),
|
|
9545
9545
|
});
|
|
9546
|
-
const RunFlowOptions = z.object({
|
|
9547
|
-
nodeKey: z.string().optional(),
|
|
9548
|
-
input: z.any().optional(),
|
|
9549
|
-
returnImmediately: z.boolean().optional(),
|
|
9550
|
-
onUpdate: z.function().optional(),
|
|
9551
|
-
});
|
|
9552
9546
|
const FlowInstanceApiResponse = BaseFlowInstance.extend({
|
|
9553
9547
|
user: z.lazy(() => z.any()).optional(),
|
|
9554
9548
|
connection: z.lazy(() => z.any()).optional(),
|
|
@@ -9574,13 +9568,13 @@ const FindFlowRunsQuery = PaginationQuery.extend({
|
|
|
9574
9568
|
flowId: z.string().optional(),
|
|
9575
9569
|
universalFlowId: z.string().optional(),
|
|
9576
9570
|
userId: z.string().optional(),
|
|
9577
|
-
state: z.
|
|
9571
|
+
state: z.enum(FlowRunState).optional(),
|
|
9578
9572
|
integrationId: z.string().optional(),
|
|
9579
9573
|
connectionId: z.string().optional(),
|
|
9580
9574
|
startedAfter: z.string().optional(),
|
|
9581
9575
|
});
|
|
9582
9576
|
const FlowRunLaunchedByApi = z.object({
|
|
9583
|
-
type: z.
|
|
9577
|
+
type: z.enum(FlowRunLaunchedByTrigger),
|
|
9584
9578
|
ids: z.array(z.string()).optional(),
|
|
9585
9579
|
});
|
|
9586
9580
|
const FlowRunApiResponse = BaseFlowRun.extend({
|
|
@@ -9594,235 +9588,6 @@ const FindFlowRunsResponse = z.object({
|
|
|
9594
9588
|
cursor: z.string().optional(),
|
|
9595
9589
|
});
|
|
9596
9590
|
|
|
9597
|
-
const POPUP_ELEMENT_ID = '__integration-app-popup';
|
|
9598
|
-
const CONTAINER_ELEMENT_ID = '__integration-app-container';
|
|
9599
|
-
const CONTAINER_ELEMENT_CLASS = '__integration-app-container';
|
|
9600
|
-
const CONTAINER_ELEMENT_CLASS__LOADER = '__integration-app-container__loader';
|
|
9601
|
-
const BODY_CLASS = '__integration-app-open';
|
|
9602
|
-
const STYLES_ELEMENT_ID = '__integration-app-embed-styles';
|
|
9603
|
-
const OpenConfigurationOptions = z.object({
|
|
9604
|
-
onClose: z.function().optional(),
|
|
9605
|
-
showPoweredBy: z.boolean().optional(),
|
|
9606
|
-
});
|
|
9607
|
-
let IFRAME_START_SHOW_LOADER_TIME = 0;
|
|
9608
|
-
let IFRAME_SHOW_LOADER_TIMEOUT_ID;
|
|
9609
|
-
const IFRAME_SHOW_LOADER_MINIMAL_TIME = 500;
|
|
9610
|
-
const IFRAME_LAYOUT_SHIFT_TIME = 300;
|
|
9611
|
-
function showIframeLoader() {
|
|
9612
|
-
const container = getContainer();
|
|
9613
|
-
container === null || container === void 0 ? void 0 : container.classList.add(CONTAINER_ELEMENT_CLASS__LOADER);
|
|
9614
|
-
IFRAME_START_SHOW_LOADER_TIME = Date.now();
|
|
9615
|
-
}
|
|
9616
|
-
function hideIframeLoader(waitLayoutShift = IFRAME_LAYOUT_SHIFT_TIME) {
|
|
9617
|
-
if (IFRAME_SHOW_LOADER_TIMEOUT_ID) {
|
|
9618
|
-
clearTimeout(IFRAME_SHOW_LOADER_TIMEOUT_ID);
|
|
9619
|
-
}
|
|
9620
|
-
const delta = Date.now() - IFRAME_START_SHOW_LOADER_TIME;
|
|
9621
|
-
if (delta >= IFRAME_SHOW_LOADER_MINIMAL_TIME) {
|
|
9622
|
-
setTimeout(() => {
|
|
9623
|
-
const container = getContainer();
|
|
9624
|
-
container === null || container === void 0 ? void 0 : container.classList.remove(CONTAINER_ELEMENT_CLASS__LOADER);
|
|
9625
|
-
IFRAME_START_SHOW_LOADER_TIME = 0;
|
|
9626
|
-
}, waitLayoutShift);
|
|
9627
|
-
return;
|
|
9628
|
-
}
|
|
9629
|
-
else {
|
|
9630
|
-
const waitLayoutShift = delta >= IFRAME_LAYOUT_SHIFT_TIME ? 0 : IFRAME_LAYOUT_SHIFT_TIME - delta;
|
|
9631
|
-
const timeoutTime = IFRAME_SHOW_LOADER_MINIMAL_TIME - delta;
|
|
9632
|
-
IFRAME_SHOW_LOADER_TIMEOUT_ID = setTimeout(() => {
|
|
9633
|
-
hideIframeLoader(waitLayoutShift);
|
|
9634
|
-
}, timeoutTime);
|
|
9635
|
-
return;
|
|
9636
|
-
}
|
|
9637
|
-
}
|
|
9638
|
-
async function openIframe(uri, callbacks = {}, { mountTargetSelector } = {}) {
|
|
9639
|
-
close();
|
|
9640
|
-
init(mountTargetSelector);
|
|
9641
|
-
return new Promise((resolve) => {
|
|
9642
|
-
function complete(callback) {
|
|
9643
|
-
close(callback);
|
|
9644
|
-
resolve();
|
|
9645
|
-
}
|
|
9646
|
-
function doOpen() {
|
|
9647
|
-
const iframe = document.createElement('iframe');
|
|
9648
|
-
iframe.src = uri;
|
|
9649
|
-
iframe.id = POPUP_ELEMENT_ID;
|
|
9650
|
-
iframe.onload = () => {
|
|
9651
|
-
hideIframeLoader();
|
|
9652
|
-
};
|
|
9653
|
-
if (!!getContainer()) {
|
|
9654
|
-
document.body.classList.add(BODY_CLASS);
|
|
9655
|
-
showIframeLoader();
|
|
9656
|
-
appendToContainer(iframe);
|
|
9657
|
-
handleIframeUnmount(iframe);
|
|
9658
|
-
connectToChild({
|
|
9659
|
-
iframe,
|
|
9660
|
-
methods: {
|
|
9661
|
-
...callbacks,
|
|
9662
|
-
handshake: (...args) => {
|
|
9663
|
-
var _a;
|
|
9664
|
-
hideIframeLoader();
|
|
9665
|
-
(_a = callbacks === null || callbacks === void 0 ? void 0 : callbacks.handshake) === null || _a === void 0 ? void 0 : _a.call(callbacks, ...args);
|
|
9666
|
-
},
|
|
9667
|
-
close: () => complete(callbacks.onClose),
|
|
9668
|
-
},
|
|
9669
|
-
});
|
|
9670
|
-
}
|
|
9671
|
-
else {
|
|
9672
|
-
throw Error('Membrane container element not found. Was it manually removed?');
|
|
9673
|
-
}
|
|
9674
|
-
}
|
|
9675
|
-
if (document.readyState === 'complete' || document.readyState === 'interactive') {
|
|
9676
|
-
doOpen();
|
|
9677
|
-
}
|
|
9678
|
-
else {
|
|
9679
|
-
document.addEventListener('DOMContentLoaded', () => {
|
|
9680
|
-
doOpen();
|
|
9681
|
-
});
|
|
9682
|
-
}
|
|
9683
|
-
});
|
|
9684
|
-
}
|
|
9685
|
-
function close(callback) {
|
|
9686
|
-
document.body.classList.remove(BODY_CLASS);
|
|
9687
|
-
if (!!getContainer()) {
|
|
9688
|
-
deleteContainer();
|
|
9689
|
-
if (callback) {
|
|
9690
|
-
callback();
|
|
9691
|
-
}
|
|
9692
|
-
}
|
|
9693
|
-
}
|
|
9694
|
-
function init(mountTargetSelector) {
|
|
9695
|
-
var _a;
|
|
9696
|
-
injectStyles(mountTargetSelector);
|
|
9697
|
-
if (!!getContainer()) {
|
|
9698
|
-
return;
|
|
9699
|
-
}
|
|
9700
|
-
const container = createContainer();
|
|
9701
|
-
if (mountTargetSelector && document.querySelector(mountTargetSelector)) {
|
|
9702
|
-
(_a = document.querySelector(mountTargetSelector)) === null || _a === void 0 ? void 0 : _a.appendChild(container);
|
|
9703
|
-
}
|
|
9704
|
-
else {
|
|
9705
|
-
document.body.appendChild(container);
|
|
9706
|
-
}
|
|
9707
|
-
}
|
|
9708
|
-
function injectStyles(mountTargetSelector) {
|
|
9709
|
-
const hasCustomMountTarget = Boolean(mountTargetSelector && document.querySelector(mountTargetSelector));
|
|
9710
|
-
const styles = [
|
|
9711
|
-
`.${CONTAINER_ELEMENT_CLASS}:empty {
|
|
9712
|
-
display: none;
|
|
9713
|
-
}`,
|
|
9714
|
-
hasCustomMountTarget
|
|
9715
|
-
? `.${CONTAINER_ELEMENT_CLASS} {
|
|
9716
|
-
inset: 0;
|
|
9717
|
-
background: rgba(0, 0, 0, 0);
|
|
9718
|
-
transition: background 0.2s ease-out;
|
|
9719
|
-
display: flex;
|
|
9720
|
-
justify-content: center;
|
|
9721
|
-
align-items: center;
|
|
9722
|
-
width: 100%;
|
|
9723
|
-
height: 100%;
|
|
9724
|
-
}`
|
|
9725
|
-
: `.${CONTAINER_ELEMENT_CLASS} {
|
|
9726
|
-
position: fixed;
|
|
9727
|
-
inset: 0;
|
|
9728
|
-
z-index: 2147483647;
|
|
9729
|
-
display: flex;
|
|
9730
|
-
justify-content: center;
|
|
9731
|
-
align-items: center;
|
|
9732
|
-
pointer-events: auto;
|
|
9733
|
-
background: rgba(0, 0, 0, 0);
|
|
9734
|
-
transition: background 0.2s ease-out;
|
|
9735
|
-
}`,
|
|
9736
|
-
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} {
|
|
9737
|
-
background: rgba(0, 0, 0, 0.8);
|
|
9738
|
-
}`,
|
|
9739
|
-
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER}::before {
|
|
9740
|
-
${hasCustomMountTarget ? 'position: absolute;' : ''}
|
|
9741
|
-
content: "";
|
|
9742
|
-
width: 5rem;
|
|
9743
|
-
height: 4rem;
|
|
9744
|
-
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');
|
|
9745
|
-
background-size: contain;
|
|
9746
|
-
background-repeat: no-repeat;
|
|
9747
|
-
background-position: center;
|
|
9748
|
-
filter: invert(1);
|
|
9749
|
-
}`,
|
|
9750
|
-
`.${CONTAINER_ELEMENT_CLASS} iframe {
|
|
9751
|
-
${hasCustomMountTarget ? '' : 'position: absolute;'}
|
|
9752
|
-
width: 100%;
|
|
9753
|
-
height: 100%;
|
|
9754
|
-
border-width: 0;
|
|
9755
|
-
|
|
9756
|
-
/* fix transparent bg, because iframe document has light scheme */
|
|
9757
|
-
color-scheme: light;
|
|
9758
|
-
}`,
|
|
9759
|
-
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} iframe {
|
|
9760
|
-
visibility: hidden;
|
|
9761
|
-
}`,
|
|
9762
|
-
!hasCustomMountTarget
|
|
9763
|
-
? `body.${BODY_CLASS} {
|
|
9764
|
-
overflow: hidden;
|
|
9765
|
-
}`
|
|
9766
|
-
: '',
|
|
9767
|
-
];
|
|
9768
|
-
let styleElement = document.getElementById(STYLES_ELEMENT_ID);
|
|
9769
|
-
if (!styleElement) {
|
|
9770
|
-
styleElement = document.createElement('style');
|
|
9771
|
-
styleElement.id = STYLES_ELEMENT_ID;
|
|
9772
|
-
styleElement.type = 'text/css';
|
|
9773
|
-
document.head.appendChild(styleElement);
|
|
9774
|
-
}
|
|
9775
|
-
styleElement.textContent = styles.join('\n');
|
|
9776
|
-
}
|
|
9777
|
-
function removeInjectedStyles() {
|
|
9778
|
-
const stylesElement = document.getElementById(STYLES_ELEMENT_ID);
|
|
9779
|
-
if (stylesElement) {
|
|
9780
|
-
stylesElement.remove();
|
|
9781
|
-
}
|
|
9782
|
-
}
|
|
9783
|
-
function createContainer() {
|
|
9784
|
-
const container = document.createElement('div');
|
|
9785
|
-
container.id = CONTAINER_ELEMENT_ID;
|
|
9786
|
-
container.classList.add(CONTAINER_ELEMENT_CLASS);
|
|
9787
|
-
return container;
|
|
9788
|
-
}
|
|
9789
|
-
function getContainer() {
|
|
9790
|
-
return document.getElementById(CONTAINER_ELEMENT_ID);
|
|
9791
|
-
}
|
|
9792
|
-
function appendToContainer(el) {
|
|
9793
|
-
const container = getContainer();
|
|
9794
|
-
container === null || container === void 0 ? void 0 : container.appendChild(el);
|
|
9795
|
-
}
|
|
9796
|
-
function deleteContainer() {
|
|
9797
|
-
const container = getContainer();
|
|
9798
|
-
if (container) {
|
|
9799
|
-
container.remove();
|
|
9800
|
-
}
|
|
9801
|
-
removeInjectedStyles();
|
|
9802
|
-
}
|
|
9803
|
-
function handleIframeUnmount(iframe) {
|
|
9804
|
-
const observer = new MutationObserver((mutationsList) => {
|
|
9805
|
-
for (const mutation of mutationsList) {
|
|
9806
|
-
for (const removedNode of mutation.removedNodes) {
|
|
9807
|
-
if (removedNode instanceof HTMLElement && removedNode.id === POPUP_ELEMENT_ID) {
|
|
9808
|
-
observer.disconnect();
|
|
9809
|
-
deleteContainer();
|
|
9810
|
-
return;
|
|
9811
|
-
}
|
|
9812
|
-
}
|
|
9813
|
-
}
|
|
9814
|
-
});
|
|
9815
|
-
const parent = iframe.parentNode;
|
|
9816
|
-
if (parent) {
|
|
9817
|
-
observer.observe(parent, {
|
|
9818
|
-
childList: true,
|
|
9819
|
-
});
|
|
9820
|
-
}
|
|
9821
|
-
else {
|
|
9822
|
-
console.warn(`iframe with ID "${POPUP_ELEMENT_ID}" has no parent node`);
|
|
9823
|
-
}
|
|
9824
|
-
}
|
|
9825
|
-
|
|
9826
9591
|
const CreateIntegrationRequest = z.object({
|
|
9827
9592
|
name: z.string().optional(),
|
|
9828
9593
|
key: z.string(),
|
|
@@ -9836,13 +9601,6 @@ const UpdateIntegrationRequest = z.object({
|
|
|
9836
9601
|
logoUri: z.string().optional(),
|
|
9837
9602
|
});
|
|
9838
9603
|
const FindIntegrationsQuery = z.object({}).merge(PaginationQuery).merge(SearchQuery);
|
|
9839
|
-
const OpenNewConnectionOptions = z
|
|
9840
|
-
.object({
|
|
9841
|
-
allowMultipleConnections: z.boolean().optional(),
|
|
9842
|
-
name: z.string().optional(),
|
|
9843
|
-
connectorParameters: z.any().optional(),
|
|
9844
|
-
})
|
|
9845
|
-
.merge(OpenConfigurationOptions);
|
|
9846
9604
|
const IntegrationAuthUi = z.object({
|
|
9847
9605
|
schema: z.any().optional(),
|
|
9848
9606
|
helpUri: z.string().optional(),
|
|
@@ -9863,10 +9621,18 @@ const IntegrationApiResponse = BaseIntegration.extend({
|
|
|
9863
9621
|
|
|
9864
9622
|
const ScenarioElementApi = z.object({
|
|
9865
9623
|
id: z.string(),
|
|
9866
|
-
type: z.
|
|
9624
|
+
type: z.enum(IntegrationElementType),
|
|
9867
9625
|
element: z.any().optional(),
|
|
9868
9626
|
});
|
|
9869
|
-
const FindScenariosQuery = z
|
|
9627
|
+
const FindScenariosQuery = z
|
|
9628
|
+
.object({
|
|
9629
|
+
integrationId: z.string().optional(),
|
|
9630
|
+
integrationKey: z.string().optional(),
|
|
9631
|
+
parentId: z.string().optional(),
|
|
9632
|
+
})
|
|
9633
|
+
.extend(SearchQuery.shape)
|
|
9634
|
+
.extend(PaginationQuery.shape)
|
|
9635
|
+
.extend(IncludeArchivedQuery.shape);
|
|
9870
9636
|
const ScenarioApiResponse = BaseScenario.extend({
|
|
9871
9637
|
appliedToIntegrations: AppliedToIntegrations(BaseScenario).optional(),
|
|
9872
9638
|
});
|
|
@@ -9943,7 +9709,7 @@ const ListExternalEventLogRecordsQuery = CommonListElementsQuery.extend({
|
|
|
9943
9709
|
connectionId: z.string().optional(),
|
|
9944
9710
|
integrationId: z.string().optional(),
|
|
9945
9711
|
externalEventSubscriptionId: z.string().optional(),
|
|
9946
|
-
status: z.
|
|
9712
|
+
status: z.enum(ExternalEventLogStatus).optional(),
|
|
9947
9713
|
});
|
|
9948
9714
|
const ExternalEventLogRecordApiResponse = BaseExternalEventLogRecord.extend({
|
|
9949
9715
|
user: BaseCustomer.optional(),
|
|
@@ -9956,7 +9722,7 @@ const ListExternalEventPullsQuery = CommonListElementsQuery.extend({
|
|
|
9956
9722
|
connectionId: z.string().optional(),
|
|
9957
9723
|
integrationId: z.string().optional(),
|
|
9958
9724
|
externalEventSubscriptionId: z.string().optional(),
|
|
9959
|
-
status: z.
|
|
9725
|
+
status: z.enum(ExternalEventPullStatus).optional(),
|
|
9960
9726
|
});
|
|
9961
9727
|
const ExternalEventPullApiResponse = BaseExternalEventPull.extend({
|
|
9962
9728
|
user: BaseCustomer.optional(),
|
|
@@ -10157,12 +9923,15 @@ const WorkspaceElementSpecs = {
|
|
|
10157
9923
|
editablePropertiesSchema: ScenarioEditableProperties,
|
|
10158
9924
|
apiResponseSchema: ScenarioApiResponse,
|
|
10159
9925
|
findQuerySchema: FindScenariosQuery,
|
|
9926
|
+
isMembraneInterface: true,
|
|
9927
|
+
isIntegrationLevel: true,
|
|
10160
9928
|
},
|
|
10161
9929
|
[WorkspaceElementType.ActionInstance]: {
|
|
10162
9930
|
type: WorkspaceElementType.ActionInstance,
|
|
10163
9931
|
apiPath: 'action-instances',
|
|
10164
9932
|
name: 'Action Instance',
|
|
10165
9933
|
namePlural: 'Action Instances',
|
|
9934
|
+
isMembraneInterface: true,
|
|
10166
9935
|
},
|
|
10167
9936
|
[WorkspaceElementType.Action]: {
|
|
10168
9937
|
type: WorkspaceElementType.Action,
|
|
@@ -10172,6 +9941,8 @@ const WorkspaceElementSpecs = {
|
|
|
10172
9941
|
editablePropertiesSchema: ActionEditableProperties,
|
|
10173
9942
|
apiResponseSchema: ActionApiResponse,
|
|
10174
9943
|
findQuerySchema: FindActionsQuery,
|
|
9944
|
+
isMembraneInterface: true,
|
|
9945
|
+
isIntegrationLevel: true,
|
|
10175
9946
|
},
|
|
10176
9947
|
[WorkspaceElementType.ActionRunLogRecord]: {
|
|
10177
9948
|
type: WorkspaceElementType.ActionRunLogRecord,
|
|
@@ -10185,6 +9956,8 @@ const WorkspaceElementSpecs = {
|
|
|
10185
9956
|
name: 'Flow',
|
|
10186
9957
|
namePlural: 'Flows',
|
|
10187
9958
|
parentFieldKey: 'universalFlowId',
|
|
9959
|
+
isMembraneInterface: true,
|
|
9960
|
+
isIntegrationLevel: true,
|
|
10188
9961
|
},
|
|
10189
9962
|
[WorkspaceElementType.FlowInstance]: {
|
|
10190
9963
|
type: WorkspaceElementType.FlowInstance,
|
|
@@ -10193,6 +9966,7 @@ const WorkspaceElementSpecs = {
|
|
|
10193
9966
|
updateSchema: updateFlowInstanceSchema,
|
|
10194
9967
|
name: 'Flow',
|
|
10195
9968
|
namePlural: 'Flows',
|
|
9969
|
+
isMembraneInterface: true,
|
|
10196
9970
|
},
|
|
10197
9971
|
[WorkspaceElementType.FlowRun]: {
|
|
10198
9972
|
type: WorkspaceElementType.FlowRun,
|
|
@@ -10206,12 +9980,15 @@ const WorkspaceElementSpecs = {
|
|
|
10206
9980
|
name: 'Field Mapping',
|
|
10207
9981
|
namePlural: 'Field Mappings',
|
|
10208
9982
|
parentFieldKey: 'universalFieldMappingId',
|
|
9983
|
+
isMembraneInterface: true,
|
|
9984
|
+
isIntegrationLevel: true,
|
|
10209
9985
|
},
|
|
10210
9986
|
[WorkspaceElementType.FieldMappingInstance]: {
|
|
10211
9987
|
type: WorkspaceElementType.FieldMappingInstance,
|
|
10212
9988
|
apiPath: 'field-mapping-instances',
|
|
10213
9989
|
name: 'Field Mapping Instance',
|
|
10214
9990
|
namePlural: 'Field Mapping Instances',
|
|
9991
|
+
isMembraneInterface: true,
|
|
10215
9992
|
},
|
|
10216
9993
|
[WorkspaceElementType.DataCollection]: {
|
|
10217
9994
|
type: WorkspaceElementType.DataCollection,
|
|
@@ -10225,36 +10002,43 @@ const WorkspaceElementSpecs = {
|
|
|
10225
10002
|
name: 'Data Source',
|
|
10226
10003
|
namePlural: 'Data Sources',
|
|
10227
10004
|
parentFieldKey: 'universalDataSourceId',
|
|
10005
|
+
isMembraneInterface: true,
|
|
10006
|
+
isIntegrationLevel: true,
|
|
10228
10007
|
},
|
|
10229
10008
|
[WorkspaceElementType.DataSourceInstance]: {
|
|
10230
10009
|
type: WorkspaceElementType.DataSourceInstance,
|
|
10231
10010
|
apiPath: 'data-source-instances',
|
|
10232
10011
|
name: 'Data Source Instance',
|
|
10233
10012
|
namePlural: 'Data Source Instances',
|
|
10013
|
+
isMembraneInterface: true,
|
|
10234
10014
|
},
|
|
10235
10015
|
[WorkspaceElementType.DataLinkTable]: {
|
|
10236
10016
|
type: WorkspaceElementType.DataLinkTable,
|
|
10237
10017
|
apiPath: 'data-link-tables',
|
|
10238
10018
|
name: 'Data Link Table',
|
|
10239
10019
|
namePlural: 'Data Link Tables',
|
|
10020
|
+
isMembraneInterface: true,
|
|
10240
10021
|
},
|
|
10241
10022
|
[WorkspaceElementType.DataLinkTableInstance]: {
|
|
10242
10023
|
type: WorkspaceElementType.DataLinkTableInstance,
|
|
10243
10024
|
apiPath: 'data-link-table-instances',
|
|
10244
10025
|
name: 'Data Link Table Instance',
|
|
10245
10026
|
namePlural: 'Data Link Table Instances',
|
|
10027
|
+
isMembraneInterface: true,
|
|
10246
10028
|
},
|
|
10247
10029
|
[WorkspaceElementType.AppEventType]: {
|
|
10248
10030
|
type: WorkspaceElementType.AppEventType,
|
|
10249
10031
|
apiPath: 'app-event-types',
|
|
10250
10032
|
name: 'App Event Type',
|
|
10251
10033
|
namePlural: 'App Event Types',
|
|
10034
|
+
isMembraneInterface: true,
|
|
10252
10035
|
},
|
|
10253
10036
|
[WorkspaceElementType.AppEventSubscription]: {
|
|
10254
10037
|
type: WorkspaceElementType.AppEventSubscription,
|
|
10255
10038
|
apiPath: 'app-event-subscriptions',
|
|
10256
10039
|
name: 'App Event Subscription',
|
|
10257
10040
|
namePlural: 'App Event Subscriptions',
|
|
10041
|
+
isMembraneInterface: true,
|
|
10258
10042
|
},
|
|
10259
10043
|
[WorkspaceElementType.AppEventLogRecord]: {
|
|
10260
10044
|
type: WorkspaceElementType.AppEventLogRecord,
|
|
@@ -10267,18 +10051,21 @@ const WorkspaceElementSpecs = {
|
|
|
10267
10051
|
apiPath: 'app-data-schemas',
|
|
10268
10052
|
name: 'App Data Schema',
|
|
10269
10053
|
namePlural: 'App Data Schemas',
|
|
10054
|
+
isMembraneInterface: true,
|
|
10270
10055
|
},
|
|
10271
10056
|
[WorkspaceElementType.AppDataSchemaInstance]: {
|
|
10272
10057
|
type: WorkspaceElementType.AppDataSchemaInstance,
|
|
10273
10058
|
apiPath: 'app-data-schema-instances',
|
|
10274
10059
|
name: 'App Data Schema Instance',
|
|
10275
10060
|
namePlural: 'App Data Schema Instances',
|
|
10061
|
+
isMembraneInterface: true,
|
|
10276
10062
|
},
|
|
10277
10063
|
[WorkspaceElementType.ExternalEventSubscription]: {
|
|
10278
10064
|
type: WorkspaceElementType.ExternalEventSubscription,
|
|
10279
10065
|
apiPath: 'external-event-subscriptions',
|
|
10280
10066
|
name: 'External Event Subscription',
|
|
10281
10067
|
namePlural: 'External Event Subscriptions',
|
|
10068
|
+
isMembraneInterface: true,
|
|
10282
10069
|
},
|
|
10283
10070
|
[WorkspaceElementType.ExternalEventLogRecord]: {
|
|
10284
10071
|
type: WorkspaceElementType.ExternalEventLogRecord,
|
|
@@ -10297,6 +10084,7 @@ const WorkspaceElementSpecs = {
|
|
|
10297
10084
|
apiPath: 'screens',
|
|
10298
10085
|
name: 'Screen',
|
|
10299
10086
|
namePlural: 'Screens',
|
|
10087
|
+
isMembraneInterface: true,
|
|
10300
10088
|
},
|
|
10301
10089
|
};
|
|
10302
10090
|
|
|
@@ -10672,6 +10460,29 @@ function timestampToDate(value) {
|
|
|
10672
10460
|
}
|
|
10673
10461
|
}
|
|
10674
10462
|
|
|
10463
|
+
const ONE_DAY_IN_MS = 24 * 60 * 60 * 1000;
|
|
10464
|
+
function isBusinessDay(date) {
|
|
10465
|
+
const dayOfWeek = date.getDay();
|
|
10466
|
+
return dayOfWeek >= 1 && dayOfWeek <= 5;
|
|
10467
|
+
}
|
|
10468
|
+
function getBusinessDaysBetween(startDate, endDate) {
|
|
10469
|
+
const businessDays = new Set();
|
|
10470
|
+
if (endDate < startDate) {
|
|
10471
|
+
return businessDays;
|
|
10472
|
+
}
|
|
10473
|
+
const startTime = Date.UTC(startDate.getFullYear(), startDate.getMonth(), startDate.getDate());
|
|
10474
|
+
const endTime = Date.UTC(endDate.getFullYear(), endDate.getMonth(), endDate.getDate());
|
|
10475
|
+
const dayCount = Math.floor((endTime - startTime) / ONE_DAY_IN_MS) + 1;
|
|
10476
|
+
for (let i = 0; i < dayCount; i++) {
|
|
10477
|
+
const currentTime = startTime + i * ONE_DAY_IN_MS;
|
|
10478
|
+
const currentDate = new Date(currentTime);
|
|
10479
|
+
if (isBusinessDay(currentDate)) {
|
|
10480
|
+
businessDays.add(currentDate.toISOString().split('T')[0]);
|
|
10481
|
+
}
|
|
10482
|
+
}
|
|
10483
|
+
return businessDays;
|
|
10484
|
+
}
|
|
10485
|
+
|
|
10675
10486
|
var UsageType;
|
|
10676
10487
|
(function (UsageType) {
|
|
10677
10488
|
UsageType["FLOW_RUNS_DURATION"] = "flow-runs-duration";
|
|
@@ -11091,11 +10902,6 @@ class ActionAccessor extends ElementAccessor {
|
|
|
11091
10902
|
path: 'action',
|
|
11092
10903
|
});
|
|
11093
10904
|
}
|
|
11094
|
-
async apply(integrationKeys) {
|
|
11095
|
-
return await this.options.client.post(this.getPath('apply'), {
|
|
11096
|
-
integrationKeys,
|
|
11097
|
-
});
|
|
11098
|
-
}
|
|
11099
10905
|
async reset() {
|
|
11100
10906
|
return await this.options.client.post(this.getPath('reset'));
|
|
11101
10907
|
}
|
|
@@ -11116,6 +10922,231 @@ class IntegrationLevelActionsListAccessor extends IntegrationLevelElementsListAc
|
|
|
11116
10922
|
}
|
|
11117
10923
|
}
|
|
11118
10924
|
|
|
10925
|
+
const POPUP_ELEMENT_ID = '__integration-app-popup';
|
|
10926
|
+
const CONTAINER_ELEMENT_ID = '__integration-app-container';
|
|
10927
|
+
const CONTAINER_ELEMENT_CLASS = '__integration-app-container';
|
|
10928
|
+
const CONTAINER_ELEMENT_CLASS__LOADER = '__integration-app-container__loader';
|
|
10929
|
+
const BODY_CLASS = '__integration-app-open';
|
|
10930
|
+
const STYLES_ELEMENT_ID = '__integration-app-embed-styles';
|
|
10931
|
+
let IFRAME_START_SHOW_LOADER_TIME = 0;
|
|
10932
|
+
let IFRAME_SHOW_LOADER_TIMEOUT_ID;
|
|
10933
|
+
const IFRAME_SHOW_LOADER_MINIMAL_TIME = 500;
|
|
10934
|
+
const IFRAME_LAYOUT_SHIFT_TIME = 300;
|
|
10935
|
+
function showIframeLoader() {
|
|
10936
|
+
const container = getContainer();
|
|
10937
|
+
container === null || container === void 0 ? void 0 : container.classList.add(CONTAINER_ELEMENT_CLASS__LOADER);
|
|
10938
|
+
IFRAME_START_SHOW_LOADER_TIME = Date.now();
|
|
10939
|
+
}
|
|
10940
|
+
function hideIframeLoader(waitLayoutShift = IFRAME_LAYOUT_SHIFT_TIME) {
|
|
10941
|
+
if (IFRAME_SHOW_LOADER_TIMEOUT_ID) {
|
|
10942
|
+
clearTimeout(IFRAME_SHOW_LOADER_TIMEOUT_ID);
|
|
10943
|
+
}
|
|
10944
|
+
const delta = Date.now() - IFRAME_START_SHOW_LOADER_TIME;
|
|
10945
|
+
if (delta >= IFRAME_SHOW_LOADER_MINIMAL_TIME) {
|
|
10946
|
+
setTimeout(() => {
|
|
10947
|
+
const container = getContainer();
|
|
10948
|
+
container === null || container === void 0 ? void 0 : container.classList.remove(CONTAINER_ELEMENT_CLASS__LOADER);
|
|
10949
|
+
IFRAME_START_SHOW_LOADER_TIME = 0;
|
|
10950
|
+
}, waitLayoutShift);
|
|
10951
|
+
return;
|
|
10952
|
+
}
|
|
10953
|
+
else {
|
|
10954
|
+
const waitLayoutShift = delta >= IFRAME_LAYOUT_SHIFT_TIME ? 0 : IFRAME_LAYOUT_SHIFT_TIME - delta;
|
|
10955
|
+
const timeoutTime = IFRAME_SHOW_LOADER_MINIMAL_TIME - delta;
|
|
10956
|
+
IFRAME_SHOW_LOADER_TIMEOUT_ID = setTimeout(() => {
|
|
10957
|
+
hideIframeLoader(waitLayoutShift);
|
|
10958
|
+
}, timeoutTime);
|
|
10959
|
+
return;
|
|
10960
|
+
}
|
|
10961
|
+
}
|
|
10962
|
+
async function openIframe(uri, callbacks = {}, { mountTargetSelector } = {}) {
|
|
10963
|
+
close();
|
|
10964
|
+
init(mountTargetSelector);
|
|
10965
|
+
return new Promise((resolve) => {
|
|
10966
|
+
function complete(callback) {
|
|
10967
|
+
close(callback);
|
|
10968
|
+
resolve();
|
|
10969
|
+
}
|
|
10970
|
+
function doOpen() {
|
|
10971
|
+
const iframe = document.createElement('iframe');
|
|
10972
|
+
iframe.src = uri;
|
|
10973
|
+
iframe.id = POPUP_ELEMENT_ID;
|
|
10974
|
+
iframe.onload = () => {
|
|
10975
|
+
hideIframeLoader();
|
|
10976
|
+
};
|
|
10977
|
+
if (!!getContainer()) {
|
|
10978
|
+
document.body.classList.add(BODY_CLASS);
|
|
10979
|
+
showIframeLoader();
|
|
10980
|
+
appendToContainer(iframe);
|
|
10981
|
+
handleIframeUnmount(iframe);
|
|
10982
|
+
connectToChild({
|
|
10983
|
+
iframe,
|
|
10984
|
+
methods: {
|
|
10985
|
+
...callbacks,
|
|
10986
|
+
handshake: (...args) => {
|
|
10987
|
+
var _a;
|
|
10988
|
+
hideIframeLoader();
|
|
10989
|
+
(_a = callbacks === null || callbacks === void 0 ? void 0 : callbacks.handshake) === null || _a === void 0 ? void 0 : _a.call(callbacks, ...args);
|
|
10990
|
+
},
|
|
10991
|
+
close: () => complete(callbacks.onClose),
|
|
10992
|
+
},
|
|
10993
|
+
});
|
|
10994
|
+
}
|
|
10995
|
+
else {
|
|
10996
|
+
throw Error('Membrane container element not found. Was it manually removed?');
|
|
10997
|
+
}
|
|
10998
|
+
}
|
|
10999
|
+
if (document.readyState === 'complete' || document.readyState === 'interactive') {
|
|
11000
|
+
doOpen();
|
|
11001
|
+
}
|
|
11002
|
+
else {
|
|
11003
|
+
document.addEventListener('DOMContentLoaded', () => {
|
|
11004
|
+
doOpen();
|
|
11005
|
+
});
|
|
11006
|
+
}
|
|
11007
|
+
});
|
|
11008
|
+
}
|
|
11009
|
+
function close(callback) {
|
|
11010
|
+
document.body.classList.remove(BODY_CLASS);
|
|
11011
|
+
if (!!getContainer()) {
|
|
11012
|
+
deleteContainer();
|
|
11013
|
+
if (callback) {
|
|
11014
|
+
callback();
|
|
11015
|
+
}
|
|
11016
|
+
}
|
|
11017
|
+
}
|
|
11018
|
+
function init(mountTargetSelector) {
|
|
11019
|
+
var _a;
|
|
11020
|
+
injectStyles(mountTargetSelector);
|
|
11021
|
+
if (!!getContainer()) {
|
|
11022
|
+
return;
|
|
11023
|
+
}
|
|
11024
|
+
const container = createContainer();
|
|
11025
|
+
if (mountTargetSelector && document.querySelector(mountTargetSelector)) {
|
|
11026
|
+
(_a = document.querySelector(mountTargetSelector)) === null || _a === void 0 ? void 0 : _a.appendChild(container);
|
|
11027
|
+
}
|
|
11028
|
+
else {
|
|
11029
|
+
document.body.appendChild(container);
|
|
11030
|
+
}
|
|
11031
|
+
}
|
|
11032
|
+
function injectStyles(mountTargetSelector) {
|
|
11033
|
+
const hasCustomMountTarget = Boolean(mountTargetSelector && document.querySelector(mountTargetSelector));
|
|
11034
|
+
const styles = [
|
|
11035
|
+
`.${CONTAINER_ELEMENT_CLASS}:empty {
|
|
11036
|
+
display: none;
|
|
11037
|
+
}`,
|
|
11038
|
+
hasCustomMountTarget
|
|
11039
|
+
? `.${CONTAINER_ELEMENT_CLASS} {
|
|
11040
|
+
inset: 0;
|
|
11041
|
+
background: rgba(0, 0, 0, 0);
|
|
11042
|
+
transition: background 0.2s ease-out;
|
|
11043
|
+
display: flex;
|
|
11044
|
+
justify-content: center;
|
|
11045
|
+
align-items: center;
|
|
11046
|
+
width: 100%;
|
|
11047
|
+
height: 100%;
|
|
11048
|
+
}`
|
|
11049
|
+
: `.${CONTAINER_ELEMENT_CLASS} {
|
|
11050
|
+
position: fixed;
|
|
11051
|
+
inset: 0;
|
|
11052
|
+
z-index: 2147483647;
|
|
11053
|
+
display: flex;
|
|
11054
|
+
justify-content: center;
|
|
11055
|
+
align-items: center;
|
|
11056
|
+
pointer-events: auto;
|
|
11057
|
+
background: rgba(0, 0, 0, 0);
|
|
11058
|
+
transition: background 0.2s ease-out;
|
|
11059
|
+
}`,
|
|
11060
|
+
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} {
|
|
11061
|
+
background: rgba(0, 0, 0, 0.8);
|
|
11062
|
+
}`,
|
|
11063
|
+
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER}::before {
|
|
11064
|
+
${hasCustomMountTarget ? 'position: absolute;' : ''}
|
|
11065
|
+
content: "";
|
|
11066
|
+
width: 5rem;
|
|
11067
|
+
height: 4rem;
|
|
11068
|
+
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');
|
|
11069
|
+
background-size: contain;
|
|
11070
|
+
background-repeat: no-repeat;
|
|
11071
|
+
background-position: center;
|
|
11072
|
+
filter: invert(1);
|
|
11073
|
+
}`,
|
|
11074
|
+
`.${CONTAINER_ELEMENT_CLASS} iframe {
|
|
11075
|
+
${hasCustomMountTarget ? '' : 'position: absolute;'}
|
|
11076
|
+
width: 100%;
|
|
11077
|
+
height: 100%;
|
|
11078
|
+
border-width: 0;
|
|
11079
|
+
|
|
11080
|
+
/* fix transparent bg, because iframe document has light scheme */
|
|
11081
|
+
color-scheme: light;
|
|
11082
|
+
}`,
|
|
11083
|
+
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} iframe {
|
|
11084
|
+
visibility: hidden;
|
|
11085
|
+
}`,
|
|
11086
|
+
!hasCustomMountTarget
|
|
11087
|
+
? `body.${BODY_CLASS} {
|
|
11088
|
+
overflow: hidden;
|
|
11089
|
+
}`
|
|
11090
|
+
: '',
|
|
11091
|
+
];
|
|
11092
|
+
let styleElement = document.getElementById(STYLES_ELEMENT_ID);
|
|
11093
|
+
if (!styleElement) {
|
|
11094
|
+
styleElement = document.createElement('style');
|
|
11095
|
+
styleElement.id = STYLES_ELEMENT_ID;
|
|
11096
|
+
styleElement.type = 'text/css';
|
|
11097
|
+
document.head.appendChild(styleElement);
|
|
11098
|
+
}
|
|
11099
|
+
styleElement.textContent = styles.join('\n');
|
|
11100
|
+
}
|
|
11101
|
+
function removeInjectedStyles() {
|
|
11102
|
+
const stylesElement = document.getElementById(STYLES_ELEMENT_ID);
|
|
11103
|
+
if (stylesElement) {
|
|
11104
|
+
stylesElement.remove();
|
|
11105
|
+
}
|
|
11106
|
+
}
|
|
11107
|
+
function createContainer() {
|
|
11108
|
+
const container = document.createElement('div');
|
|
11109
|
+
container.id = CONTAINER_ELEMENT_ID;
|
|
11110
|
+
container.classList.add(CONTAINER_ELEMENT_CLASS);
|
|
11111
|
+
return container;
|
|
11112
|
+
}
|
|
11113
|
+
function getContainer() {
|
|
11114
|
+
return document.getElementById(CONTAINER_ELEMENT_ID);
|
|
11115
|
+
}
|
|
11116
|
+
function appendToContainer(el) {
|
|
11117
|
+
const container = getContainer();
|
|
11118
|
+
container === null || container === void 0 ? void 0 : container.appendChild(el);
|
|
11119
|
+
}
|
|
11120
|
+
function deleteContainer() {
|
|
11121
|
+
const container = getContainer();
|
|
11122
|
+
if (container) {
|
|
11123
|
+
container.remove();
|
|
11124
|
+
}
|
|
11125
|
+
removeInjectedStyles();
|
|
11126
|
+
}
|
|
11127
|
+
function handleIframeUnmount(iframe) {
|
|
11128
|
+
const observer = new MutationObserver((mutationsList) => {
|
|
11129
|
+
for (const mutation of mutationsList) {
|
|
11130
|
+
for (const removedNode of mutation.removedNodes) {
|
|
11131
|
+
if (removedNode instanceof HTMLElement && removedNode.id === POPUP_ELEMENT_ID) {
|
|
11132
|
+
observer.disconnect();
|
|
11133
|
+
deleteContainer();
|
|
11134
|
+
return;
|
|
11135
|
+
}
|
|
11136
|
+
}
|
|
11137
|
+
}
|
|
11138
|
+
});
|
|
11139
|
+
const parent = iframe.parentNode;
|
|
11140
|
+
if (parent) {
|
|
11141
|
+
observer.observe(parent, {
|
|
11142
|
+
childList: true,
|
|
11143
|
+
});
|
|
11144
|
+
}
|
|
11145
|
+
else {
|
|
11146
|
+
console.warn(`iframe with ID "${POPUP_ELEMENT_ID}" has no parent node`);
|
|
11147
|
+
}
|
|
11148
|
+
}
|
|
11149
|
+
|
|
11119
11150
|
class ConnectionLevelElementAccessor {
|
|
11120
11151
|
constructor(client, connectionSelector, selector, elementKey, query) {
|
|
11121
11152
|
this.client = client;
|
|
@@ -11227,11 +11258,6 @@ class DataSourceAccessor extends ElementAccessor {
|
|
|
11227
11258
|
path: 'data-source',
|
|
11228
11259
|
});
|
|
11229
11260
|
}
|
|
11230
|
-
async apply(integrationKeys) {
|
|
11231
|
-
return await this.options.client.post(this.getPath('apply'), {
|
|
11232
|
-
integrationKeys,
|
|
11233
|
-
});
|
|
11234
|
-
}
|
|
11235
11261
|
async setup() {
|
|
11236
11262
|
await this.options.client.post(this.getPath('setup'));
|
|
11237
11263
|
}
|
|
@@ -11974,11 +12000,6 @@ class FlowAccessor extends ElementAccessor {
|
|
|
11974
12000
|
path: 'flow',
|
|
11975
12001
|
});
|
|
11976
12002
|
}
|
|
11977
|
-
async apply(integrationKeys) {
|
|
11978
|
-
return await this.options.client.post(this.getPath('apply'), {
|
|
11979
|
-
integrationKeys,
|
|
11980
|
-
});
|
|
11981
|
-
}
|
|
11982
12003
|
async reset() {
|
|
11983
12004
|
return await this.options.client.post(this.getPath('reset'));
|
|
11984
12005
|
}
|
|
@@ -12015,11 +12036,6 @@ class FieldMappingAccessor extends ElementAccessor {
|
|
|
12015
12036
|
async getAppSchema() {
|
|
12016
12037
|
return await this.options.client.get(this.getPath('app-schema'));
|
|
12017
12038
|
}
|
|
12018
|
-
async apply(integrationKeys) {
|
|
12019
|
-
return await this.options.client.post(this.getPath('apply'), {
|
|
12020
|
-
integrationKeys,
|
|
12021
|
-
});
|
|
12022
|
-
}
|
|
12023
12039
|
async setup() {
|
|
12024
12040
|
return await this.options.client.post(this.getPath('setup'));
|
|
12025
12041
|
}
|
|
@@ -12359,20 +12375,20 @@ const HandyScenarioTemplateElement = z.object({
|
|
|
12359
12375
|
key: z.string(),
|
|
12360
12376
|
name: z.string(),
|
|
12361
12377
|
})
|
|
12362
|
-
.and(z.record(z.any())),
|
|
12378
|
+
.and(z.record(z.string(), z.any())),
|
|
12363
12379
|
});
|
|
12364
12380
|
const withIntegrationKeys = (schema) => schema.and(z.object({ integrationKeys: z.array(z.string()).optional() }));
|
|
12365
12381
|
const ElementsExportFields = z.object({
|
|
12366
|
-
flows: z.record(withIntegrationKeys(z.any())).optional(),
|
|
12367
|
-
actions: z.record(withIntegrationKeys(z.any())).optional(),
|
|
12368
|
-
fieldMappings: z.record(withIntegrationKeys(z.any())).optional(),
|
|
12369
|
-
dataSources: z.record(withIntegrationKeys(z.any())).optional(),
|
|
12370
|
-
dataLinkTables: z.record(z.any()).optional(),
|
|
12371
|
-
appEventTypes: z.record(z.any()).optional(),
|
|
12372
|
-
appDataSchemas: z.record(z.any()).optional(),
|
|
12382
|
+
flows: z.record(z.string(), withIntegrationKeys(z.any())).optional(),
|
|
12383
|
+
actions: z.record(z.string(), withIntegrationKeys(z.any())).optional(),
|
|
12384
|
+
fieldMappings: z.record(z.string(), withIntegrationKeys(z.any())).optional(),
|
|
12385
|
+
dataSources: z.record(z.string(), withIntegrationKeys(z.any())).optional(),
|
|
12386
|
+
dataLinkTables: z.record(z.string(), z.any()).optional(),
|
|
12387
|
+
appEventTypes: z.record(z.string(), z.any()).optional(),
|
|
12388
|
+
appDataSchemas: z.record(z.string(), z.any()).optional(),
|
|
12373
12389
|
});
|
|
12374
12390
|
const ScenarioTemplateElements = ElementsExportFields.and(z.object({
|
|
12375
|
-
integrations: z.record(ElementsExportFields.and(z.object({ connectorId: z.string() }))).optional(),
|
|
12391
|
+
integrations: z.record(z.string(), ElementsExportFields.and(z.object({ connectorId: z.string() }))).optional(),
|
|
12376
12392
|
}));
|
|
12377
12393
|
const ScenarioTemplate = z.object({
|
|
12378
12394
|
id: z.string(),
|
|
@@ -12384,7 +12400,7 @@ const ScenarioTemplate = z.object({
|
|
|
12384
12400
|
demoAppUri: z.string().optional(),
|
|
12385
12401
|
demoGithubRepo: z.string().optional(),
|
|
12386
12402
|
demoVideoYoutubeUri: z.string().optional(),
|
|
12387
|
-
tags: z.array(z.
|
|
12403
|
+
tags: z.array(z.enum(ScenarioTemplateCategory)).optional(),
|
|
12388
12404
|
elements: ScenarioTemplateElements.optional(),
|
|
12389
12405
|
connectors: z.array(MinimalConnector).optional(),
|
|
12390
12406
|
handyElements: z.array(HandyScenarioTemplateElement).optional(),
|
|
@@ -12849,5 +12865,5 @@ function hasMembraneCredentials(cwd) {
|
|
|
12849
12865
|
return getDefaultMembraneConfigLoader().hasWorkspaceCredentials();
|
|
12850
12866
|
}
|
|
12851
12867
|
|
|
12852
|
-
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, CONFIG_FILE_NAME, 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, MembraneConfigLoader, 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, getDefaultMembraneConfigLoader, 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, hasMembraneCredentials, injectFormulaCatalog, isDataActionType, isDataLocationMethodSupported, isFormula$1 as isFormula, isFormula as isFormula_internalDoNotUse, isMembraneError, isObject, isSameDataLocation, isSchemaEmpty, isStream, isValidLocator, loadMembraneConfig, locatorToField, locatorToSteps, locatorToString, makeDataLocationOperationPath, makeDataLocationPath, makeDataRecordSchema, makeObjectPropertyLocator, makeSchemaForLocator, membraneConfigSchema, 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 };
|
|
12868
|
+
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, CONFIG_FILE_NAME, 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, MembraneConfigLoader, 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, getDefaultMembraneConfigLoader, 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, hasMembraneCredentials, injectFormulaCatalog, isBusinessDay, isDataActionType, isDataLocationMethodSupported, isFormula$1 as isFormula, isFormula as isFormula_internalDoNotUse, isMembraneError, isObject, isSameDataLocation, isSchemaEmpty, isStream, isValidLocator, loadMembraneConfig, locatorToField, locatorToSteps, locatorToString, makeDataLocationOperationPath, makeDataLocationPath, makeDataRecordSchema, makeObjectPropertyLocator, makeSchemaForLocator, membraneConfigSchema, 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 };
|
|
12853
12869
|
//# sourceMappingURL=index.node.mjs.map
|