@membranehq/sdk 0.7.4 → 0.7.5
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 +2063 -13949
- package/dist/bundle.js +3949 -4253
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +28 -28
- 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 +27 -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/index.browser.d.mts +5926 -24800
- package/dist/index.browser.d.ts +5926 -24800
- package/dist/index.browser.js +287 -281
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +285 -279
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +5956 -24840
- package/dist/index.node.d.ts +5956 -24840
- package/dist/index.node.js +287 -281
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +285 -279
- 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';
|
|
@@ -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(),
|
|
@@ -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({
|
|
@@ -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(),
|
|
@@ -8478,7 +8478,7 @@ const BaseFlowRun = z.object({
|
|
|
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
|
|
|
@@ -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({
|
|
@@ -8919,7 +8919,7 @@ const ScreenBlock = z
|
|
|
8919
8919
|
.object({
|
|
8920
8920
|
type: z.nativeEnum(ScreenBlockType),
|
|
8921
8921
|
})
|
|
8922
|
-
.and(z.record(z.any()));
|
|
8922
|
+
.and(z.record(z.string(), z.any()));
|
|
8923
8923
|
const BaseScreen = BaseWorkspaceElement.extend({
|
|
8924
8924
|
type: z.nativeEnum(ScreenType),
|
|
8925
8925
|
key: z.string().optional(),
|
|
@@ -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,7 +8949,7 @@ 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(),
|
|
@@ -9117,8 +9117,8 @@ var HttpRequestMethod;
|
|
|
9117
9117
|
const HttpRequestSpec = z.object({
|
|
9118
9118
|
method: z.string().toUpperCase().pipe(z.nativeEnum(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 = {
|
|
@@ -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(),
|
|
@@ -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(),
|
|
@@ -10672,6 +10430,29 @@ function timestampToDate(value) {
|
|
|
10672
10430
|
}
|
|
10673
10431
|
}
|
|
10674
10432
|
|
|
10433
|
+
const ONE_DAY_IN_MS = 24 * 60 * 60 * 1000;
|
|
10434
|
+
function isBusinessDay(date) {
|
|
10435
|
+
const dayOfWeek = date.getDay();
|
|
10436
|
+
return dayOfWeek >= 1 && dayOfWeek <= 5;
|
|
10437
|
+
}
|
|
10438
|
+
function getBusinessDaysBetween(startDate, endDate) {
|
|
10439
|
+
const businessDays = new Set();
|
|
10440
|
+
if (endDate < startDate) {
|
|
10441
|
+
return businessDays;
|
|
10442
|
+
}
|
|
10443
|
+
const startTime = Date.UTC(startDate.getFullYear(), startDate.getMonth(), startDate.getDate());
|
|
10444
|
+
const endTime = Date.UTC(endDate.getFullYear(), endDate.getMonth(), endDate.getDate());
|
|
10445
|
+
const dayCount = Math.floor((endTime - startTime) / ONE_DAY_IN_MS) + 1;
|
|
10446
|
+
for (let i = 0; i < dayCount; i++) {
|
|
10447
|
+
const currentTime = startTime + i * ONE_DAY_IN_MS;
|
|
10448
|
+
const currentDate = new Date(currentTime);
|
|
10449
|
+
if (isBusinessDay(currentDate)) {
|
|
10450
|
+
businessDays.add(currentDate.toISOString().split('T')[0]);
|
|
10451
|
+
}
|
|
10452
|
+
}
|
|
10453
|
+
return businessDays;
|
|
10454
|
+
}
|
|
10455
|
+
|
|
10675
10456
|
var UsageType;
|
|
10676
10457
|
(function (UsageType) {
|
|
10677
10458
|
UsageType["FLOW_RUNS_DURATION"] = "flow-runs-duration";
|
|
@@ -11116,6 +10897,231 @@ class IntegrationLevelActionsListAccessor extends IntegrationLevelElementsListAc
|
|
|
11116
10897
|
}
|
|
11117
10898
|
}
|
|
11118
10899
|
|
|
10900
|
+
const POPUP_ELEMENT_ID = '__integration-app-popup';
|
|
10901
|
+
const CONTAINER_ELEMENT_ID = '__integration-app-container';
|
|
10902
|
+
const CONTAINER_ELEMENT_CLASS = '__integration-app-container';
|
|
10903
|
+
const CONTAINER_ELEMENT_CLASS__LOADER = '__integration-app-container__loader';
|
|
10904
|
+
const BODY_CLASS = '__integration-app-open';
|
|
10905
|
+
const STYLES_ELEMENT_ID = '__integration-app-embed-styles';
|
|
10906
|
+
let IFRAME_START_SHOW_LOADER_TIME = 0;
|
|
10907
|
+
let IFRAME_SHOW_LOADER_TIMEOUT_ID;
|
|
10908
|
+
const IFRAME_SHOW_LOADER_MINIMAL_TIME = 500;
|
|
10909
|
+
const IFRAME_LAYOUT_SHIFT_TIME = 300;
|
|
10910
|
+
function showIframeLoader() {
|
|
10911
|
+
const container = getContainer();
|
|
10912
|
+
container === null || container === void 0 ? void 0 : container.classList.add(CONTAINER_ELEMENT_CLASS__LOADER);
|
|
10913
|
+
IFRAME_START_SHOW_LOADER_TIME = Date.now();
|
|
10914
|
+
}
|
|
10915
|
+
function hideIframeLoader(waitLayoutShift = IFRAME_LAYOUT_SHIFT_TIME) {
|
|
10916
|
+
if (IFRAME_SHOW_LOADER_TIMEOUT_ID) {
|
|
10917
|
+
clearTimeout(IFRAME_SHOW_LOADER_TIMEOUT_ID);
|
|
10918
|
+
}
|
|
10919
|
+
const delta = Date.now() - IFRAME_START_SHOW_LOADER_TIME;
|
|
10920
|
+
if (delta >= IFRAME_SHOW_LOADER_MINIMAL_TIME) {
|
|
10921
|
+
setTimeout(() => {
|
|
10922
|
+
const container = getContainer();
|
|
10923
|
+
container === null || container === void 0 ? void 0 : container.classList.remove(CONTAINER_ELEMENT_CLASS__LOADER);
|
|
10924
|
+
IFRAME_START_SHOW_LOADER_TIME = 0;
|
|
10925
|
+
}, waitLayoutShift);
|
|
10926
|
+
return;
|
|
10927
|
+
}
|
|
10928
|
+
else {
|
|
10929
|
+
const waitLayoutShift = delta >= IFRAME_LAYOUT_SHIFT_TIME ? 0 : IFRAME_LAYOUT_SHIFT_TIME - delta;
|
|
10930
|
+
const timeoutTime = IFRAME_SHOW_LOADER_MINIMAL_TIME - delta;
|
|
10931
|
+
IFRAME_SHOW_LOADER_TIMEOUT_ID = setTimeout(() => {
|
|
10932
|
+
hideIframeLoader(waitLayoutShift);
|
|
10933
|
+
}, timeoutTime);
|
|
10934
|
+
return;
|
|
10935
|
+
}
|
|
10936
|
+
}
|
|
10937
|
+
async function openIframe(uri, callbacks = {}, { mountTargetSelector } = {}) {
|
|
10938
|
+
close();
|
|
10939
|
+
init(mountTargetSelector);
|
|
10940
|
+
return new Promise((resolve) => {
|
|
10941
|
+
function complete(callback) {
|
|
10942
|
+
close(callback);
|
|
10943
|
+
resolve();
|
|
10944
|
+
}
|
|
10945
|
+
function doOpen() {
|
|
10946
|
+
const iframe = document.createElement('iframe');
|
|
10947
|
+
iframe.src = uri;
|
|
10948
|
+
iframe.id = POPUP_ELEMENT_ID;
|
|
10949
|
+
iframe.onload = () => {
|
|
10950
|
+
hideIframeLoader();
|
|
10951
|
+
};
|
|
10952
|
+
if (!!getContainer()) {
|
|
10953
|
+
document.body.classList.add(BODY_CLASS);
|
|
10954
|
+
showIframeLoader();
|
|
10955
|
+
appendToContainer(iframe);
|
|
10956
|
+
handleIframeUnmount(iframe);
|
|
10957
|
+
connectToChild({
|
|
10958
|
+
iframe,
|
|
10959
|
+
methods: {
|
|
10960
|
+
...callbacks,
|
|
10961
|
+
handshake: (...args) => {
|
|
10962
|
+
var _a;
|
|
10963
|
+
hideIframeLoader();
|
|
10964
|
+
(_a = callbacks === null || callbacks === void 0 ? void 0 : callbacks.handshake) === null || _a === void 0 ? void 0 : _a.call(callbacks, ...args);
|
|
10965
|
+
},
|
|
10966
|
+
close: () => complete(callbacks.onClose),
|
|
10967
|
+
},
|
|
10968
|
+
});
|
|
10969
|
+
}
|
|
10970
|
+
else {
|
|
10971
|
+
throw Error('Membrane container element not found. Was it manually removed?');
|
|
10972
|
+
}
|
|
10973
|
+
}
|
|
10974
|
+
if (document.readyState === 'complete' || document.readyState === 'interactive') {
|
|
10975
|
+
doOpen();
|
|
10976
|
+
}
|
|
10977
|
+
else {
|
|
10978
|
+
document.addEventListener('DOMContentLoaded', () => {
|
|
10979
|
+
doOpen();
|
|
10980
|
+
});
|
|
10981
|
+
}
|
|
10982
|
+
});
|
|
10983
|
+
}
|
|
10984
|
+
function close(callback) {
|
|
10985
|
+
document.body.classList.remove(BODY_CLASS);
|
|
10986
|
+
if (!!getContainer()) {
|
|
10987
|
+
deleteContainer();
|
|
10988
|
+
if (callback) {
|
|
10989
|
+
callback();
|
|
10990
|
+
}
|
|
10991
|
+
}
|
|
10992
|
+
}
|
|
10993
|
+
function init(mountTargetSelector) {
|
|
10994
|
+
var _a;
|
|
10995
|
+
injectStyles(mountTargetSelector);
|
|
10996
|
+
if (!!getContainer()) {
|
|
10997
|
+
return;
|
|
10998
|
+
}
|
|
10999
|
+
const container = createContainer();
|
|
11000
|
+
if (mountTargetSelector && document.querySelector(mountTargetSelector)) {
|
|
11001
|
+
(_a = document.querySelector(mountTargetSelector)) === null || _a === void 0 ? void 0 : _a.appendChild(container);
|
|
11002
|
+
}
|
|
11003
|
+
else {
|
|
11004
|
+
document.body.appendChild(container);
|
|
11005
|
+
}
|
|
11006
|
+
}
|
|
11007
|
+
function injectStyles(mountTargetSelector) {
|
|
11008
|
+
const hasCustomMountTarget = Boolean(mountTargetSelector && document.querySelector(mountTargetSelector));
|
|
11009
|
+
const styles = [
|
|
11010
|
+
`.${CONTAINER_ELEMENT_CLASS}:empty {
|
|
11011
|
+
display: none;
|
|
11012
|
+
}`,
|
|
11013
|
+
hasCustomMountTarget
|
|
11014
|
+
? `.${CONTAINER_ELEMENT_CLASS} {
|
|
11015
|
+
inset: 0;
|
|
11016
|
+
background: rgba(0, 0, 0, 0);
|
|
11017
|
+
transition: background 0.2s ease-out;
|
|
11018
|
+
display: flex;
|
|
11019
|
+
justify-content: center;
|
|
11020
|
+
align-items: center;
|
|
11021
|
+
width: 100%;
|
|
11022
|
+
height: 100%;
|
|
11023
|
+
}`
|
|
11024
|
+
: `.${CONTAINER_ELEMENT_CLASS} {
|
|
11025
|
+
position: fixed;
|
|
11026
|
+
inset: 0;
|
|
11027
|
+
z-index: 2147483647;
|
|
11028
|
+
display: flex;
|
|
11029
|
+
justify-content: center;
|
|
11030
|
+
align-items: center;
|
|
11031
|
+
pointer-events: auto;
|
|
11032
|
+
background: rgba(0, 0, 0, 0);
|
|
11033
|
+
transition: background 0.2s ease-out;
|
|
11034
|
+
}`,
|
|
11035
|
+
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} {
|
|
11036
|
+
background: rgba(0, 0, 0, 0.8);
|
|
11037
|
+
}`,
|
|
11038
|
+
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER}::before {
|
|
11039
|
+
${hasCustomMountTarget ? 'position: absolute;' : ''}
|
|
11040
|
+
content: "";
|
|
11041
|
+
width: 5rem;
|
|
11042
|
+
height: 4rem;
|
|
11043
|
+
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');
|
|
11044
|
+
background-size: contain;
|
|
11045
|
+
background-repeat: no-repeat;
|
|
11046
|
+
background-position: center;
|
|
11047
|
+
filter: invert(1);
|
|
11048
|
+
}`,
|
|
11049
|
+
`.${CONTAINER_ELEMENT_CLASS} iframe {
|
|
11050
|
+
${hasCustomMountTarget ? '' : 'position: absolute;'}
|
|
11051
|
+
width: 100%;
|
|
11052
|
+
height: 100%;
|
|
11053
|
+
border-width: 0;
|
|
11054
|
+
|
|
11055
|
+
/* fix transparent bg, because iframe document has light scheme */
|
|
11056
|
+
color-scheme: light;
|
|
11057
|
+
}`,
|
|
11058
|
+
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} iframe {
|
|
11059
|
+
visibility: hidden;
|
|
11060
|
+
}`,
|
|
11061
|
+
!hasCustomMountTarget
|
|
11062
|
+
? `body.${BODY_CLASS} {
|
|
11063
|
+
overflow: hidden;
|
|
11064
|
+
}`
|
|
11065
|
+
: '',
|
|
11066
|
+
];
|
|
11067
|
+
let styleElement = document.getElementById(STYLES_ELEMENT_ID);
|
|
11068
|
+
if (!styleElement) {
|
|
11069
|
+
styleElement = document.createElement('style');
|
|
11070
|
+
styleElement.id = STYLES_ELEMENT_ID;
|
|
11071
|
+
styleElement.type = 'text/css';
|
|
11072
|
+
document.head.appendChild(styleElement);
|
|
11073
|
+
}
|
|
11074
|
+
styleElement.textContent = styles.join('\n');
|
|
11075
|
+
}
|
|
11076
|
+
function removeInjectedStyles() {
|
|
11077
|
+
const stylesElement = document.getElementById(STYLES_ELEMENT_ID);
|
|
11078
|
+
if (stylesElement) {
|
|
11079
|
+
stylesElement.remove();
|
|
11080
|
+
}
|
|
11081
|
+
}
|
|
11082
|
+
function createContainer() {
|
|
11083
|
+
const container = document.createElement('div');
|
|
11084
|
+
container.id = CONTAINER_ELEMENT_ID;
|
|
11085
|
+
container.classList.add(CONTAINER_ELEMENT_CLASS);
|
|
11086
|
+
return container;
|
|
11087
|
+
}
|
|
11088
|
+
function getContainer() {
|
|
11089
|
+
return document.getElementById(CONTAINER_ELEMENT_ID);
|
|
11090
|
+
}
|
|
11091
|
+
function appendToContainer(el) {
|
|
11092
|
+
const container = getContainer();
|
|
11093
|
+
container === null || container === void 0 ? void 0 : container.appendChild(el);
|
|
11094
|
+
}
|
|
11095
|
+
function deleteContainer() {
|
|
11096
|
+
const container = getContainer();
|
|
11097
|
+
if (container) {
|
|
11098
|
+
container.remove();
|
|
11099
|
+
}
|
|
11100
|
+
removeInjectedStyles();
|
|
11101
|
+
}
|
|
11102
|
+
function handleIframeUnmount(iframe) {
|
|
11103
|
+
const observer = new MutationObserver((mutationsList) => {
|
|
11104
|
+
for (const mutation of mutationsList) {
|
|
11105
|
+
for (const removedNode of mutation.removedNodes) {
|
|
11106
|
+
if (removedNode instanceof HTMLElement && removedNode.id === POPUP_ELEMENT_ID) {
|
|
11107
|
+
observer.disconnect();
|
|
11108
|
+
deleteContainer();
|
|
11109
|
+
return;
|
|
11110
|
+
}
|
|
11111
|
+
}
|
|
11112
|
+
}
|
|
11113
|
+
});
|
|
11114
|
+
const parent = iframe.parentNode;
|
|
11115
|
+
if (parent) {
|
|
11116
|
+
observer.observe(parent, {
|
|
11117
|
+
childList: true,
|
|
11118
|
+
});
|
|
11119
|
+
}
|
|
11120
|
+
else {
|
|
11121
|
+
console.warn(`iframe with ID "${POPUP_ELEMENT_ID}" has no parent node`);
|
|
11122
|
+
}
|
|
11123
|
+
}
|
|
11124
|
+
|
|
11119
11125
|
class ConnectionLevelElementAccessor {
|
|
11120
11126
|
constructor(client, connectionSelector, selector, elementKey, query) {
|
|
11121
11127
|
this.client = client;
|
|
@@ -12359,20 +12365,20 @@ const HandyScenarioTemplateElement = z.object({
|
|
|
12359
12365
|
key: z.string(),
|
|
12360
12366
|
name: z.string(),
|
|
12361
12367
|
})
|
|
12362
|
-
.and(z.record(z.any())),
|
|
12368
|
+
.and(z.record(z.string(), z.any())),
|
|
12363
12369
|
});
|
|
12364
12370
|
const withIntegrationKeys = (schema) => schema.and(z.object({ integrationKeys: z.array(z.string()).optional() }));
|
|
12365
12371
|
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(),
|
|
12372
|
+
flows: z.record(z.string(), withIntegrationKeys(z.any())).optional(),
|
|
12373
|
+
actions: z.record(z.string(), withIntegrationKeys(z.any())).optional(),
|
|
12374
|
+
fieldMappings: z.record(z.string(), withIntegrationKeys(z.any())).optional(),
|
|
12375
|
+
dataSources: z.record(z.string(), withIntegrationKeys(z.any())).optional(),
|
|
12376
|
+
dataLinkTables: z.record(z.string(), z.any()).optional(),
|
|
12377
|
+
appEventTypes: z.record(z.string(), z.any()).optional(),
|
|
12378
|
+
appDataSchemas: z.record(z.string(), z.any()).optional(),
|
|
12373
12379
|
});
|
|
12374
12380
|
const ScenarioTemplateElements = ElementsExportFields.and(z.object({
|
|
12375
|
-
integrations: z.record(ElementsExportFields.and(z.object({ connectorId: z.string() }))).optional(),
|
|
12381
|
+
integrations: z.record(z.string(), ElementsExportFields.and(z.object({ connectorId: z.string() }))).optional(),
|
|
12376
12382
|
}));
|
|
12377
12383
|
const ScenarioTemplate = z.object({
|
|
12378
12384
|
id: z.string(),
|
|
@@ -12849,5 +12855,5 @@ function hasMembraneCredentials(cwd) {
|
|
|
12849
12855
|
return getDefaultMembraneConfigLoader().hasWorkspaceCredentials();
|
|
12850
12856
|
}
|
|
12851
12857
|
|
|
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 };
|
|
12858
|
+
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
12859
|
//# sourceMappingURL=index.node.mjs.map
|