@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.browser.mjs
CHANGED
|
@@ -5,9 +5,9 @@ import jsonata from 'jsonata';
|
|
|
5
5
|
import deepEqual from 'fast-deep-equal';
|
|
6
6
|
import structuredClonePolyfill from '@ungap/structured-clone';
|
|
7
7
|
import urljoin from 'url-join';
|
|
8
|
-
import {
|
|
9
|
-
import { fromError } from 'zod-validation-error/v3';
|
|
8
|
+
import { fromError } from 'zod-validation-error/v4';
|
|
10
9
|
import qs from 'qs';
|
|
10
|
+
import { connectToChild } from 'penpal';
|
|
11
11
|
import axiosOriginal from 'axios';
|
|
12
12
|
|
|
13
13
|
var ErrorType;
|
|
@@ -1317,7 +1317,7 @@ const DataSchema = z.lazy(() => z
|
|
|
1317
1317
|
description: z.string().optional(),
|
|
1318
1318
|
type: z.union([z.string(), z.array(z.string())]).optional(),
|
|
1319
1319
|
format: z.string().optional(),
|
|
1320
|
-
properties: z.record(DataSchema).optional(),
|
|
1320
|
+
properties: z.record(z.string(), DataSchema).optional(),
|
|
1321
1321
|
items: DataSchema.optional(),
|
|
1322
1322
|
additionalProperties: z.union([z.boolean(), DataSchema]).optional(),
|
|
1323
1323
|
enum: z.array(z.string()).optional(),
|
|
@@ -1325,7 +1325,7 @@ const DataSchema = z.lazy(() => z
|
|
|
1325
1325
|
referenceCollection: z
|
|
1326
1326
|
.object({
|
|
1327
1327
|
key: z.any().optional(),
|
|
1328
|
-
parameters: z.record(z.any()).optional(),
|
|
1328
|
+
parameters: z.record(z.string(), z.any()).optional(),
|
|
1329
1329
|
})
|
|
1330
1330
|
.optional(),
|
|
1331
1331
|
referenceUdm: z.string().optional(),
|
|
@@ -3636,9 +3636,9 @@ const BaseAction = BaseMembraneInterface.merge(ActionEditableProperties).merge(A
|
|
|
3636
3636
|
const ConnectionRequest = z.object({
|
|
3637
3637
|
path: z.any(),
|
|
3638
3638
|
method: z.enum(['GET', 'POST', 'PUT', 'PATCH', 'DELETE']).optional(),
|
|
3639
|
-
pathParameters: z.record(z.string()).optional(),
|
|
3640
|
-
headers: z.record(z.string()).optional(),
|
|
3641
|
-
query: z.record(z.string()).optional(),
|
|
3639
|
+
pathParameters: z.record(z.string(), z.string()).optional(),
|
|
3640
|
+
headers: z.record(z.string(), z.string()).optional(),
|
|
3641
|
+
query: z.record(z.string(), z.string()).optional(),
|
|
3642
3642
|
data: z.any().optional(),
|
|
3643
3643
|
});
|
|
3644
3644
|
const BaseConnection = BaseWorkspaceElement.extend({
|
|
@@ -3657,7 +3657,7 @@ const BaseConnection = BaseWorkspaceElement.extend({
|
|
|
3657
3657
|
nextCredentialsRefreshAt: z.string().optional(),
|
|
3658
3658
|
archivedAt: z.string().optional(),
|
|
3659
3659
|
isDeactivated: z.boolean().optional(),
|
|
3660
|
-
meta: z.record(z.any()).optional(),
|
|
3660
|
+
meta: z.record(z.string(), z.any()).optional(),
|
|
3661
3661
|
});
|
|
3662
3662
|
class ConnectionSpec {
|
|
3663
3663
|
constructor(opts) {
|
|
@@ -3994,10 +3994,10 @@ const DataRecordSchema = z.object({
|
|
|
3994
3994
|
name: z.string().optional(),
|
|
3995
3995
|
uri: z.string().optional(),
|
|
3996
3996
|
iconUri: z.string().optional(),
|
|
3997
|
-
fields: z.record(z.any()).optional(),
|
|
3997
|
+
fields: z.record(z.string(), z.any()).optional(),
|
|
3998
3998
|
udm: z.string().optional(),
|
|
3999
|
-
unifiedFields: z.record(z.any()).optional(),
|
|
4000
|
-
rawFields: z.record(z.any()).optional(),
|
|
3999
|
+
unifiedFields: z.record(z.string(), z.any()).optional(),
|
|
4000
|
+
rawFields: z.record(z.string(), z.any()).optional(),
|
|
4001
4001
|
createdTime: z.string().optional(),
|
|
4002
4002
|
updatedTime: z.string().optional(),
|
|
4003
4003
|
deletedTime: z.string().optional(),
|
|
@@ -8182,10 +8182,10 @@ const DataCollectionEventsSpec = z
|
|
|
8182
8182
|
.catchall(DataCollectionEventTypeSpec);
|
|
8183
8183
|
const DataCollectionUdmSpec = z.object({
|
|
8184
8184
|
fields: z.array(z.string()).optional(),
|
|
8185
|
-
extract: z.record(z.any()).optional(),
|
|
8186
|
-
parse: z.record(z.any()).optional(),
|
|
8185
|
+
extract: z.record(z.string(), z.any()).optional(),
|
|
8186
|
+
parse: z.record(z.string(), z.any()).optional(),
|
|
8187
8187
|
});
|
|
8188
|
-
const DataCollectionUdmsSpec = z.record(DataCollectionUdmSpec);
|
|
8188
|
+
const DataCollectionUdmsSpec = z.record(z.string(), DataCollectionUdmSpec);
|
|
8189
8189
|
const DataCollectionSpec = z.object({
|
|
8190
8190
|
type: z.literal('collection'),
|
|
8191
8191
|
key: z.string().optional(),
|
|
@@ -8205,7 +8205,7 @@ const DataCollectionSpec = z.object({
|
|
|
8205
8205
|
find: DataCollectionFindSpec.optional(),
|
|
8206
8206
|
});
|
|
8207
8207
|
const DataCollectionMethodRequest = z.object({
|
|
8208
|
-
parameters: z.record(z.any()).optional(),
|
|
8208
|
+
parameters: z.record(z.string(), z.any()).optional(),
|
|
8209
8209
|
});
|
|
8210
8210
|
const DataCollectionFindRequest = z.object({
|
|
8211
8211
|
query: z.any().optional(),
|
|
@@ -8221,8 +8221,8 @@ const DataCollectionListRequest = DataCollectionMethodRequest.extend({
|
|
|
8221
8221
|
cursor: z.string().optional(),
|
|
8222
8222
|
});
|
|
8223
8223
|
const DataCollectionListResponseDrilldown = z.object({
|
|
8224
|
-
parameters: z.record(z.any()).optional(),
|
|
8225
|
-
filter: z.record(z.any()).optional(),
|
|
8224
|
+
parameters: z.record(z.string(), z.any()).optional(),
|
|
8225
|
+
filter: z.record(z.string(), z.any()).optional(),
|
|
8226
8226
|
});
|
|
8227
8227
|
const DataCollectionListResponse = z.object({
|
|
8228
8228
|
records: z.array(DataRecordSchema),
|
|
@@ -8245,20 +8245,20 @@ const DataCollectionFindByIdResponse = z.object({
|
|
|
8245
8245
|
record: DataRecordSchema,
|
|
8246
8246
|
});
|
|
8247
8247
|
const DataCollectionMatchRequest = DataCollectionMethodRequest.extend({
|
|
8248
|
-
query: z.record(z.any()),
|
|
8248
|
+
query: z.record(z.string(), z.any()),
|
|
8249
8249
|
});
|
|
8250
8250
|
const DataCollectionMatchResponse = z.object({
|
|
8251
8251
|
record: DataRecordSchema.optional(),
|
|
8252
8252
|
});
|
|
8253
8253
|
const DataCollectionCreateRequest = DataCollectionMethodRequest.extend({
|
|
8254
|
-
fields: z.record(z.any()),
|
|
8254
|
+
fields: z.record(z.string(), z.any()),
|
|
8255
8255
|
});
|
|
8256
8256
|
const DataCollectionCreateResponse = z.object({
|
|
8257
8257
|
id: z.string(),
|
|
8258
8258
|
});
|
|
8259
8259
|
const DataCollectionUpdateRequest = DataCollectionMethodRequest.extend({
|
|
8260
8260
|
id: z.string(),
|
|
8261
|
-
fields: z.record(z.any()),
|
|
8261
|
+
fields: z.record(z.string(), z.any()),
|
|
8262
8262
|
});
|
|
8263
8263
|
const DataCollectionUpdateResponse = z.object({
|
|
8264
8264
|
id: z.string(),
|
|
@@ -8475,7 +8475,7 @@ const BaseFlowRun = z.object({
|
|
|
8475
8475
|
startTime: z.string(),
|
|
8476
8476
|
endTime: z.string().optional(),
|
|
8477
8477
|
errors: z.array(ErrorDataSchema).optional(),
|
|
8478
|
-
nodes: z.record(FlowRunNode).optional(),
|
|
8478
|
+
nodes: z.record(z.string(), FlowRunNode).optional(),
|
|
8479
8479
|
launchedBy: FlowRunLaunchedBy.optional(),
|
|
8480
8480
|
});
|
|
8481
8481
|
|
|
@@ -8828,7 +8828,7 @@ const FlowEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProp
|
|
|
8828
8828
|
integrationId: z.string().optional(),
|
|
8829
8829
|
universalFlowId: z.string().optional(),
|
|
8830
8830
|
parametersSchema: DataSchema.optional(),
|
|
8831
|
-
nodes: z.record(FlowNode).optional(),
|
|
8831
|
+
nodes: z.record(z.string(), FlowNode).optional(),
|
|
8832
8832
|
autoCreateInstances: z.boolean().optional(),
|
|
8833
8833
|
});
|
|
8834
8834
|
const FlowReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
@@ -8916,7 +8916,7 @@ const ScreenBlock = z
|
|
|
8916
8916
|
.object({
|
|
8917
8917
|
type: z.nativeEnum(ScreenBlockType),
|
|
8918
8918
|
})
|
|
8919
|
-
.and(z.record(z.any()));
|
|
8919
|
+
.and(z.record(z.string(), z.any()));
|
|
8920
8920
|
const BaseScreen = BaseWorkspaceElement.extend({
|
|
8921
8921
|
type: z.nativeEnum(ScreenType),
|
|
8922
8922
|
key: z.string().optional(),
|
|
@@ -8926,7 +8926,7 @@ const BaseScreen = BaseWorkspaceElement.extend({
|
|
|
8926
8926
|
const BaseCustomer = z.object({
|
|
8927
8927
|
id: z.string(),
|
|
8928
8928
|
name: z.string(),
|
|
8929
|
-
meta: z.record(z.any()).optional(),
|
|
8929
|
+
meta: z.record(z.string(), z.any()).optional(),
|
|
8930
8930
|
internalId: z.string(),
|
|
8931
8931
|
fields: z.record(z.string(), z.any()).optional(),
|
|
8932
8932
|
credentials: z.any().optional(),
|
|
@@ -8946,7 +8946,7 @@ const BaseFlowInstance = BaseMembraneInterface.extend({
|
|
|
8946
8946
|
instanceKey: z.string().optional(),
|
|
8947
8947
|
parameters: z.any().optional(),
|
|
8948
8948
|
parametersSchema: DataSchema.optional(),
|
|
8949
|
-
nodes: z.record(z.any()).optional(),
|
|
8949
|
+
nodes: z.record(z.string(), z.any()).optional(),
|
|
8950
8950
|
enabled: z.boolean(),
|
|
8951
8951
|
createdAt: z.string(),
|
|
8952
8952
|
updatedAt: z.string(),
|
|
@@ -9114,8 +9114,8 @@ var HttpRequestMethod;
|
|
|
9114
9114
|
const HttpRequestSpec = z.object({
|
|
9115
9115
|
method: z.string().toUpperCase().pipe(z.nativeEnum(HttpRequestMethod)).optional(),
|
|
9116
9116
|
uri: z.any(),
|
|
9117
|
-
headers: z.record(z.any()).optional(),
|
|
9118
|
-
query: z.record(z.any()).optional(),
|
|
9117
|
+
headers: z.record(z.string(), z.any()).optional(),
|
|
9118
|
+
query: z.record(z.string(), z.any()).optional(),
|
|
9119
9119
|
body: z.any().optional(),
|
|
9120
9120
|
});
|
|
9121
9121
|
const HTTP_REQUEST_SCHEMA = {
|
|
@@ -9540,12 +9540,6 @@ const ResetFlowInstanceOptions = z.object({
|
|
|
9540
9540
|
nodes: z.record(z.string(), z.boolean()).optional(),
|
|
9541
9541
|
allNodes: z.boolean().optional(),
|
|
9542
9542
|
});
|
|
9543
|
-
const RunFlowOptions = z.object({
|
|
9544
|
-
nodeKey: z.string().optional(),
|
|
9545
|
-
input: z.any().optional(),
|
|
9546
|
-
returnImmediately: z.boolean().optional(),
|
|
9547
|
-
onUpdate: z.function().optional(),
|
|
9548
|
-
});
|
|
9549
9543
|
const FlowInstanceApiResponse = BaseFlowInstance.extend({
|
|
9550
9544
|
user: z.lazy(() => z.any()).optional(),
|
|
9551
9545
|
connection: z.lazy(() => z.any()).optional(),
|
|
@@ -9591,235 +9585,6 @@ const FindFlowRunsResponse = z.object({
|
|
|
9591
9585
|
cursor: z.string().optional(),
|
|
9592
9586
|
});
|
|
9593
9587
|
|
|
9594
|
-
const POPUP_ELEMENT_ID = '__integration-app-popup';
|
|
9595
|
-
const CONTAINER_ELEMENT_ID = '__integration-app-container';
|
|
9596
|
-
const CONTAINER_ELEMENT_CLASS = '__integration-app-container';
|
|
9597
|
-
const CONTAINER_ELEMENT_CLASS__LOADER = '__integration-app-container__loader';
|
|
9598
|
-
const BODY_CLASS = '__integration-app-open';
|
|
9599
|
-
const STYLES_ELEMENT_ID = '__integration-app-embed-styles';
|
|
9600
|
-
const OpenConfigurationOptions = z.object({
|
|
9601
|
-
onClose: z.function().optional(),
|
|
9602
|
-
showPoweredBy: z.boolean().optional(),
|
|
9603
|
-
});
|
|
9604
|
-
let IFRAME_START_SHOW_LOADER_TIME = 0;
|
|
9605
|
-
let IFRAME_SHOW_LOADER_TIMEOUT_ID;
|
|
9606
|
-
const IFRAME_SHOW_LOADER_MINIMAL_TIME = 500;
|
|
9607
|
-
const IFRAME_LAYOUT_SHIFT_TIME = 300;
|
|
9608
|
-
function showIframeLoader() {
|
|
9609
|
-
const container = getContainer();
|
|
9610
|
-
container === null || container === void 0 ? void 0 : container.classList.add(CONTAINER_ELEMENT_CLASS__LOADER);
|
|
9611
|
-
IFRAME_START_SHOW_LOADER_TIME = Date.now();
|
|
9612
|
-
}
|
|
9613
|
-
function hideIframeLoader(waitLayoutShift = IFRAME_LAYOUT_SHIFT_TIME) {
|
|
9614
|
-
if (IFRAME_SHOW_LOADER_TIMEOUT_ID) {
|
|
9615
|
-
clearTimeout(IFRAME_SHOW_LOADER_TIMEOUT_ID);
|
|
9616
|
-
}
|
|
9617
|
-
const delta = Date.now() - IFRAME_START_SHOW_LOADER_TIME;
|
|
9618
|
-
if (delta >= IFRAME_SHOW_LOADER_MINIMAL_TIME) {
|
|
9619
|
-
setTimeout(() => {
|
|
9620
|
-
const container = getContainer();
|
|
9621
|
-
container === null || container === void 0 ? void 0 : container.classList.remove(CONTAINER_ELEMENT_CLASS__LOADER);
|
|
9622
|
-
IFRAME_START_SHOW_LOADER_TIME = 0;
|
|
9623
|
-
}, waitLayoutShift);
|
|
9624
|
-
return;
|
|
9625
|
-
}
|
|
9626
|
-
else {
|
|
9627
|
-
const waitLayoutShift = delta >= IFRAME_LAYOUT_SHIFT_TIME ? 0 : IFRAME_LAYOUT_SHIFT_TIME - delta;
|
|
9628
|
-
const timeoutTime = IFRAME_SHOW_LOADER_MINIMAL_TIME - delta;
|
|
9629
|
-
IFRAME_SHOW_LOADER_TIMEOUT_ID = setTimeout(() => {
|
|
9630
|
-
hideIframeLoader(waitLayoutShift);
|
|
9631
|
-
}, timeoutTime);
|
|
9632
|
-
return;
|
|
9633
|
-
}
|
|
9634
|
-
}
|
|
9635
|
-
async function openIframe(uri, callbacks = {}, { mountTargetSelector } = {}) {
|
|
9636
|
-
close();
|
|
9637
|
-
init(mountTargetSelector);
|
|
9638
|
-
return new Promise((resolve) => {
|
|
9639
|
-
function complete(callback) {
|
|
9640
|
-
close(callback);
|
|
9641
|
-
resolve();
|
|
9642
|
-
}
|
|
9643
|
-
function doOpen() {
|
|
9644
|
-
const iframe = document.createElement('iframe');
|
|
9645
|
-
iframe.src = uri;
|
|
9646
|
-
iframe.id = POPUP_ELEMENT_ID;
|
|
9647
|
-
iframe.onload = () => {
|
|
9648
|
-
hideIframeLoader();
|
|
9649
|
-
};
|
|
9650
|
-
if (!!getContainer()) {
|
|
9651
|
-
document.body.classList.add(BODY_CLASS);
|
|
9652
|
-
showIframeLoader();
|
|
9653
|
-
appendToContainer(iframe);
|
|
9654
|
-
handleIframeUnmount(iframe);
|
|
9655
|
-
connectToChild({
|
|
9656
|
-
iframe,
|
|
9657
|
-
methods: {
|
|
9658
|
-
...callbacks,
|
|
9659
|
-
handshake: (...args) => {
|
|
9660
|
-
var _a;
|
|
9661
|
-
hideIframeLoader();
|
|
9662
|
-
(_a = callbacks === null || callbacks === void 0 ? void 0 : callbacks.handshake) === null || _a === void 0 ? void 0 : _a.call(callbacks, ...args);
|
|
9663
|
-
},
|
|
9664
|
-
close: () => complete(callbacks.onClose),
|
|
9665
|
-
},
|
|
9666
|
-
});
|
|
9667
|
-
}
|
|
9668
|
-
else {
|
|
9669
|
-
throw Error('Membrane container element not found. Was it manually removed?');
|
|
9670
|
-
}
|
|
9671
|
-
}
|
|
9672
|
-
if (document.readyState === 'complete' || document.readyState === 'interactive') {
|
|
9673
|
-
doOpen();
|
|
9674
|
-
}
|
|
9675
|
-
else {
|
|
9676
|
-
document.addEventListener('DOMContentLoaded', () => {
|
|
9677
|
-
doOpen();
|
|
9678
|
-
});
|
|
9679
|
-
}
|
|
9680
|
-
});
|
|
9681
|
-
}
|
|
9682
|
-
function close(callback) {
|
|
9683
|
-
document.body.classList.remove(BODY_CLASS);
|
|
9684
|
-
if (!!getContainer()) {
|
|
9685
|
-
deleteContainer();
|
|
9686
|
-
if (callback) {
|
|
9687
|
-
callback();
|
|
9688
|
-
}
|
|
9689
|
-
}
|
|
9690
|
-
}
|
|
9691
|
-
function init(mountTargetSelector) {
|
|
9692
|
-
var _a;
|
|
9693
|
-
injectStyles(mountTargetSelector);
|
|
9694
|
-
if (!!getContainer()) {
|
|
9695
|
-
return;
|
|
9696
|
-
}
|
|
9697
|
-
const container = createContainer();
|
|
9698
|
-
if (mountTargetSelector && document.querySelector(mountTargetSelector)) {
|
|
9699
|
-
(_a = document.querySelector(mountTargetSelector)) === null || _a === void 0 ? void 0 : _a.appendChild(container);
|
|
9700
|
-
}
|
|
9701
|
-
else {
|
|
9702
|
-
document.body.appendChild(container);
|
|
9703
|
-
}
|
|
9704
|
-
}
|
|
9705
|
-
function injectStyles(mountTargetSelector) {
|
|
9706
|
-
const hasCustomMountTarget = Boolean(mountTargetSelector && document.querySelector(mountTargetSelector));
|
|
9707
|
-
const styles = [
|
|
9708
|
-
`.${CONTAINER_ELEMENT_CLASS}:empty {
|
|
9709
|
-
display: none;
|
|
9710
|
-
}`,
|
|
9711
|
-
hasCustomMountTarget
|
|
9712
|
-
? `.${CONTAINER_ELEMENT_CLASS} {
|
|
9713
|
-
inset: 0;
|
|
9714
|
-
background: rgba(0, 0, 0, 0);
|
|
9715
|
-
transition: background 0.2s ease-out;
|
|
9716
|
-
display: flex;
|
|
9717
|
-
justify-content: center;
|
|
9718
|
-
align-items: center;
|
|
9719
|
-
width: 100%;
|
|
9720
|
-
height: 100%;
|
|
9721
|
-
}`
|
|
9722
|
-
: `.${CONTAINER_ELEMENT_CLASS} {
|
|
9723
|
-
position: fixed;
|
|
9724
|
-
inset: 0;
|
|
9725
|
-
z-index: 2147483647;
|
|
9726
|
-
display: flex;
|
|
9727
|
-
justify-content: center;
|
|
9728
|
-
align-items: center;
|
|
9729
|
-
pointer-events: auto;
|
|
9730
|
-
background: rgba(0, 0, 0, 0);
|
|
9731
|
-
transition: background 0.2s ease-out;
|
|
9732
|
-
}`,
|
|
9733
|
-
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} {
|
|
9734
|
-
background: rgba(0, 0, 0, 0.8);
|
|
9735
|
-
}`,
|
|
9736
|
-
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER}::before {
|
|
9737
|
-
${hasCustomMountTarget ? 'position: absolute;' : ''}
|
|
9738
|
-
content: "";
|
|
9739
|
-
width: 5rem;
|
|
9740
|
-
height: 4rem;
|
|
9741
|
-
background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 32 22" fill="%23000" xmlns="http://www.w3.org/2000/svg" %3E%3Cdefs%3E%3Cmask id="a"%3E%3Crect width="100%25" height="100%25" fill="%23fff" /%3E%3Cpath d="M11.8 13.12a3 3 0 0 1 0-4.24l7.08-7.07a3 3 0 0 1 4.24 0l7.07 7.07a3 3 0 0 1 0 4.24l-7.07 7.07a3 3 0 0 1-4.24 0l-7.07-7.07Z"%3E%3CanimateTransform attributeName="transform" attributeType="XML" type="rotate" repeatCount="indefinite" calcMode="spline" keyTimes="0;1" dur="5s" keySplines="0 0 0.1 1" from="0 21 11" to="-360 21 11" /%3E%3C/path%3E%3C/mask%3E%3Cmask id="b"%3E%3Crect width="100%25" height="100%25" fill="%23fff"/%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M1.8 8.88a3 3 0 0 0 0 4.24l7.08 7.07a3 3 0 0 0 4.24 0l7.07-7.07a3 3 0 0 0 0-4.24L13.12 1.8a3 3 0 0 0-4.24 0L1.8 8.88Zm.71.7a2 2 0 0 0 0 2.83L9.6 19.5a2 2 0 0 0 2.82 0l7.08-7.08a2 2 0 0 0 0-2.82l-7.1-7.1a2 2 0 0 0-2.82 0L2.5 9.6Z" %3E%3CanimateTransform attributeName="transform" attributeType="XML" type="rotate" repeatCount="indefinite" calcMode="spline" keyTimes="0;1" dur="5s" keySplines="0 0 0.1 1" from="0 11 11" to="720 11 11" /%3E%3C/path%3E%3C/mask%3E%3C/defs%3E%3Cg mask="url(%23a)"%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M1.8 8.88a3 3 0 0 0 0 4.24l7.08 7.07a3 3 0 0 0 4.24 0l7.07-7.07a3 3 0 0 0 0-4.24L13.12 1.8a3 3 0 0 0-4.24 0L1.8 8.88Zm.71.7a2 2 0 0 0 0 2.83L9.6 19.5a2 2 0 0 0 2.82 0l7.08-7.08a2 2 0 0 0 0-2.82l-7.1-7.1a2 2 0 0 0-2.82 0L2.5 9.6Z"%0A%3E%3CanimateTransform attributeName="transform" attributeType="XML" type="rotate" repeatCount="indefinite" calcMode="spline" keyTimes="0;1" dur="5s" keySplines="0 0 0.1 1" from="0 11 11" to="720 11 11" /%3E%3C/path%3E%3C/g%3E%3Cg mask="url(%23b)"%3E%3Cpath d="M11.8 13.12a3 3 0 0 1 0-4.24l7.08-7.07a3 3 0 0 1 4.24 0l7.07 7.07a3 3 0 0 1 0 4.24l-7.07 7.07a3 3 0 0 1-4.24 0l-7.07-7.07Z"%3E%3CanimateTransform attributeName="transform" attributeType="XML" type="rotate" repeatCount="indefinite" calcMode="spline" keyTimes="0;1" dur="5s" keySplines="0 0 0.1 1" from="0 21 11" to="-360 21 11" /%3E%3C/path%3E%3C/g%3E%3C/svg%3E');
|
|
9742
|
-
background-size: contain;
|
|
9743
|
-
background-repeat: no-repeat;
|
|
9744
|
-
background-position: center;
|
|
9745
|
-
filter: invert(1);
|
|
9746
|
-
}`,
|
|
9747
|
-
`.${CONTAINER_ELEMENT_CLASS} iframe {
|
|
9748
|
-
${hasCustomMountTarget ? '' : 'position: absolute;'}
|
|
9749
|
-
width: 100%;
|
|
9750
|
-
height: 100%;
|
|
9751
|
-
border-width: 0;
|
|
9752
|
-
|
|
9753
|
-
/* fix transparent bg, because iframe document has light scheme */
|
|
9754
|
-
color-scheme: light;
|
|
9755
|
-
}`,
|
|
9756
|
-
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} iframe {
|
|
9757
|
-
visibility: hidden;
|
|
9758
|
-
}`,
|
|
9759
|
-
!hasCustomMountTarget
|
|
9760
|
-
? `body.${BODY_CLASS} {
|
|
9761
|
-
overflow: hidden;
|
|
9762
|
-
}`
|
|
9763
|
-
: '',
|
|
9764
|
-
];
|
|
9765
|
-
let styleElement = document.getElementById(STYLES_ELEMENT_ID);
|
|
9766
|
-
if (!styleElement) {
|
|
9767
|
-
styleElement = document.createElement('style');
|
|
9768
|
-
styleElement.id = STYLES_ELEMENT_ID;
|
|
9769
|
-
styleElement.type = 'text/css';
|
|
9770
|
-
document.head.appendChild(styleElement);
|
|
9771
|
-
}
|
|
9772
|
-
styleElement.textContent = styles.join('\n');
|
|
9773
|
-
}
|
|
9774
|
-
function removeInjectedStyles() {
|
|
9775
|
-
const stylesElement = document.getElementById(STYLES_ELEMENT_ID);
|
|
9776
|
-
if (stylesElement) {
|
|
9777
|
-
stylesElement.remove();
|
|
9778
|
-
}
|
|
9779
|
-
}
|
|
9780
|
-
function createContainer() {
|
|
9781
|
-
const container = document.createElement('div');
|
|
9782
|
-
container.id = CONTAINER_ELEMENT_ID;
|
|
9783
|
-
container.classList.add(CONTAINER_ELEMENT_CLASS);
|
|
9784
|
-
return container;
|
|
9785
|
-
}
|
|
9786
|
-
function getContainer() {
|
|
9787
|
-
return document.getElementById(CONTAINER_ELEMENT_ID);
|
|
9788
|
-
}
|
|
9789
|
-
function appendToContainer(el) {
|
|
9790
|
-
const container = getContainer();
|
|
9791
|
-
container === null || container === void 0 ? void 0 : container.appendChild(el);
|
|
9792
|
-
}
|
|
9793
|
-
function deleteContainer() {
|
|
9794
|
-
const container = getContainer();
|
|
9795
|
-
if (container) {
|
|
9796
|
-
container.remove();
|
|
9797
|
-
}
|
|
9798
|
-
removeInjectedStyles();
|
|
9799
|
-
}
|
|
9800
|
-
function handleIframeUnmount(iframe) {
|
|
9801
|
-
const observer = new MutationObserver((mutationsList) => {
|
|
9802
|
-
for (const mutation of mutationsList) {
|
|
9803
|
-
for (const removedNode of mutation.removedNodes) {
|
|
9804
|
-
if (removedNode instanceof HTMLElement && removedNode.id === POPUP_ELEMENT_ID) {
|
|
9805
|
-
observer.disconnect();
|
|
9806
|
-
deleteContainer();
|
|
9807
|
-
return;
|
|
9808
|
-
}
|
|
9809
|
-
}
|
|
9810
|
-
}
|
|
9811
|
-
});
|
|
9812
|
-
const parent = iframe.parentNode;
|
|
9813
|
-
if (parent) {
|
|
9814
|
-
observer.observe(parent, {
|
|
9815
|
-
childList: true,
|
|
9816
|
-
});
|
|
9817
|
-
}
|
|
9818
|
-
else {
|
|
9819
|
-
console.warn(`iframe with ID "${POPUP_ELEMENT_ID}" has no parent node`);
|
|
9820
|
-
}
|
|
9821
|
-
}
|
|
9822
|
-
|
|
9823
9588
|
const CreateIntegrationRequest = z.object({
|
|
9824
9589
|
name: z.string().optional(),
|
|
9825
9590
|
key: z.string(),
|
|
@@ -9833,13 +9598,6 @@ const UpdateIntegrationRequest = z.object({
|
|
|
9833
9598
|
logoUri: z.string().optional(),
|
|
9834
9599
|
});
|
|
9835
9600
|
const FindIntegrationsQuery = z.object({}).merge(PaginationQuery).merge(SearchQuery);
|
|
9836
|
-
const OpenNewConnectionOptions = z
|
|
9837
|
-
.object({
|
|
9838
|
-
allowMultipleConnections: z.boolean().optional(),
|
|
9839
|
-
name: z.string().optional(),
|
|
9840
|
-
connectorParameters: z.any().optional(),
|
|
9841
|
-
})
|
|
9842
|
-
.merge(OpenConfigurationOptions);
|
|
9843
9601
|
const IntegrationAuthUi = z.object({
|
|
9844
9602
|
schema: z.any().optional(),
|
|
9845
9603
|
helpUri: z.string().optional(),
|
|
@@ -10669,6 +10427,29 @@ function timestampToDate(value) {
|
|
|
10669
10427
|
}
|
|
10670
10428
|
}
|
|
10671
10429
|
|
|
10430
|
+
const ONE_DAY_IN_MS = 24 * 60 * 60 * 1000;
|
|
10431
|
+
function isBusinessDay(date) {
|
|
10432
|
+
const dayOfWeek = date.getDay();
|
|
10433
|
+
return dayOfWeek >= 1 && dayOfWeek <= 5;
|
|
10434
|
+
}
|
|
10435
|
+
function getBusinessDaysBetween(startDate, endDate) {
|
|
10436
|
+
const businessDays = new Set();
|
|
10437
|
+
if (endDate < startDate) {
|
|
10438
|
+
return businessDays;
|
|
10439
|
+
}
|
|
10440
|
+
const startTime = Date.UTC(startDate.getFullYear(), startDate.getMonth(), startDate.getDate());
|
|
10441
|
+
const endTime = Date.UTC(endDate.getFullYear(), endDate.getMonth(), endDate.getDate());
|
|
10442
|
+
const dayCount = Math.floor((endTime - startTime) / ONE_DAY_IN_MS) + 1;
|
|
10443
|
+
for (let i = 0; i < dayCount; i++) {
|
|
10444
|
+
const currentTime = startTime + i * ONE_DAY_IN_MS;
|
|
10445
|
+
const currentDate = new Date(currentTime);
|
|
10446
|
+
if (isBusinessDay(currentDate)) {
|
|
10447
|
+
businessDays.add(currentDate.toISOString().split('T')[0]);
|
|
10448
|
+
}
|
|
10449
|
+
}
|
|
10450
|
+
return businessDays;
|
|
10451
|
+
}
|
|
10452
|
+
|
|
10672
10453
|
var UsageType;
|
|
10673
10454
|
(function (UsageType) {
|
|
10674
10455
|
UsageType["FLOW_RUNS_DURATION"] = "flow-runs-duration";
|
|
@@ -11113,6 +10894,231 @@ class IntegrationLevelActionsListAccessor extends IntegrationLevelElementsListAc
|
|
|
11113
10894
|
}
|
|
11114
10895
|
}
|
|
11115
10896
|
|
|
10897
|
+
const POPUP_ELEMENT_ID = '__integration-app-popup';
|
|
10898
|
+
const CONTAINER_ELEMENT_ID = '__integration-app-container';
|
|
10899
|
+
const CONTAINER_ELEMENT_CLASS = '__integration-app-container';
|
|
10900
|
+
const CONTAINER_ELEMENT_CLASS__LOADER = '__integration-app-container__loader';
|
|
10901
|
+
const BODY_CLASS = '__integration-app-open';
|
|
10902
|
+
const STYLES_ELEMENT_ID = '__integration-app-embed-styles';
|
|
10903
|
+
let IFRAME_START_SHOW_LOADER_TIME = 0;
|
|
10904
|
+
let IFRAME_SHOW_LOADER_TIMEOUT_ID;
|
|
10905
|
+
const IFRAME_SHOW_LOADER_MINIMAL_TIME = 500;
|
|
10906
|
+
const IFRAME_LAYOUT_SHIFT_TIME = 300;
|
|
10907
|
+
function showIframeLoader() {
|
|
10908
|
+
const container = getContainer();
|
|
10909
|
+
container === null || container === void 0 ? void 0 : container.classList.add(CONTAINER_ELEMENT_CLASS__LOADER);
|
|
10910
|
+
IFRAME_START_SHOW_LOADER_TIME = Date.now();
|
|
10911
|
+
}
|
|
10912
|
+
function hideIframeLoader(waitLayoutShift = IFRAME_LAYOUT_SHIFT_TIME) {
|
|
10913
|
+
if (IFRAME_SHOW_LOADER_TIMEOUT_ID) {
|
|
10914
|
+
clearTimeout(IFRAME_SHOW_LOADER_TIMEOUT_ID);
|
|
10915
|
+
}
|
|
10916
|
+
const delta = Date.now() - IFRAME_START_SHOW_LOADER_TIME;
|
|
10917
|
+
if (delta >= IFRAME_SHOW_LOADER_MINIMAL_TIME) {
|
|
10918
|
+
setTimeout(() => {
|
|
10919
|
+
const container = getContainer();
|
|
10920
|
+
container === null || container === void 0 ? void 0 : container.classList.remove(CONTAINER_ELEMENT_CLASS__LOADER);
|
|
10921
|
+
IFRAME_START_SHOW_LOADER_TIME = 0;
|
|
10922
|
+
}, waitLayoutShift);
|
|
10923
|
+
return;
|
|
10924
|
+
}
|
|
10925
|
+
else {
|
|
10926
|
+
const waitLayoutShift = delta >= IFRAME_LAYOUT_SHIFT_TIME ? 0 : IFRAME_LAYOUT_SHIFT_TIME - delta;
|
|
10927
|
+
const timeoutTime = IFRAME_SHOW_LOADER_MINIMAL_TIME - delta;
|
|
10928
|
+
IFRAME_SHOW_LOADER_TIMEOUT_ID = setTimeout(() => {
|
|
10929
|
+
hideIframeLoader(waitLayoutShift);
|
|
10930
|
+
}, timeoutTime);
|
|
10931
|
+
return;
|
|
10932
|
+
}
|
|
10933
|
+
}
|
|
10934
|
+
async function openIframe(uri, callbacks = {}, { mountTargetSelector } = {}) {
|
|
10935
|
+
close();
|
|
10936
|
+
init(mountTargetSelector);
|
|
10937
|
+
return new Promise((resolve) => {
|
|
10938
|
+
function complete(callback) {
|
|
10939
|
+
close(callback);
|
|
10940
|
+
resolve();
|
|
10941
|
+
}
|
|
10942
|
+
function doOpen() {
|
|
10943
|
+
const iframe = document.createElement('iframe');
|
|
10944
|
+
iframe.src = uri;
|
|
10945
|
+
iframe.id = POPUP_ELEMENT_ID;
|
|
10946
|
+
iframe.onload = () => {
|
|
10947
|
+
hideIframeLoader();
|
|
10948
|
+
};
|
|
10949
|
+
if (!!getContainer()) {
|
|
10950
|
+
document.body.classList.add(BODY_CLASS);
|
|
10951
|
+
showIframeLoader();
|
|
10952
|
+
appendToContainer(iframe);
|
|
10953
|
+
handleIframeUnmount(iframe);
|
|
10954
|
+
connectToChild({
|
|
10955
|
+
iframe,
|
|
10956
|
+
methods: {
|
|
10957
|
+
...callbacks,
|
|
10958
|
+
handshake: (...args) => {
|
|
10959
|
+
var _a;
|
|
10960
|
+
hideIframeLoader();
|
|
10961
|
+
(_a = callbacks === null || callbacks === void 0 ? void 0 : callbacks.handshake) === null || _a === void 0 ? void 0 : _a.call(callbacks, ...args);
|
|
10962
|
+
},
|
|
10963
|
+
close: () => complete(callbacks.onClose),
|
|
10964
|
+
},
|
|
10965
|
+
});
|
|
10966
|
+
}
|
|
10967
|
+
else {
|
|
10968
|
+
throw Error('Membrane container element not found. Was it manually removed?');
|
|
10969
|
+
}
|
|
10970
|
+
}
|
|
10971
|
+
if (document.readyState === 'complete' || document.readyState === 'interactive') {
|
|
10972
|
+
doOpen();
|
|
10973
|
+
}
|
|
10974
|
+
else {
|
|
10975
|
+
document.addEventListener('DOMContentLoaded', () => {
|
|
10976
|
+
doOpen();
|
|
10977
|
+
});
|
|
10978
|
+
}
|
|
10979
|
+
});
|
|
10980
|
+
}
|
|
10981
|
+
function close(callback) {
|
|
10982
|
+
document.body.classList.remove(BODY_CLASS);
|
|
10983
|
+
if (!!getContainer()) {
|
|
10984
|
+
deleteContainer();
|
|
10985
|
+
if (callback) {
|
|
10986
|
+
callback();
|
|
10987
|
+
}
|
|
10988
|
+
}
|
|
10989
|
+
}
|
|
10990
|
+
function init(mountTargetSelector) {
|
|
10991
|
+
var _a;
|
|
10992
|
+
injectStyles(mountTargetSelector);
|
|
10993
|
+
if (!!getContainer()) {
|
|
10994
|
+
return;
|
|
10995
|
+
}
|
|
10996
|
+
const container = createContainer();
|
|
10997
|
+
if (mountTargetSelector && document.querySelector(mountTargetSelector)) {
|
|
10998
|
+
(_a = document.querySelector(mountTargetSelector)) === null || _a === void 0 ? void 0 : _a.appendChild(container);
|
|
10999
|
+
}
|
|
11000
|
+
else {
|
|
11001
|
+
document.body.appendChild(container);
|
|
11002
|
+
}
|
|
11003
|
+
}
|
|
11004
|
+
function injectStyles(mountTargetSelector) {
|
|
11005
|
+
const hasCustomMountTarget = Boolean(mountTargetSelector && document.querySelector(mountTargetSelector));
|
|
11006
|
+
const styles = [
|
|
11007
|
+
`.${CONTAINER_ELEMENT_CLASS}:empty {
|
|
11008
|
+
display: none;
|
|
11009
|
+
}`,
|
|
11010
|
+
hasCustomMountTarget
|
|
11011
|
+
? `.${CONTAINER_ELEMENT_CLASS} {
|
|
11012
|
+
inset: 0;
|
|
11013
|
+
background: rgba(0, 0, 0, 0);
|
|
11014
|
+
transition: background 0.2s ease-out;
|
|
11015
|
+
display: flex;
|
|
11016
|
+
justify-content: center;
|
|
11017
|
+
align-items: center;
|
|
11018
|
+
width: 100%;
|
|
11019
|
+
height: 100%;
|
|
11020
|
+
}`
|
|
11021
|
+
: `.${CONTAINER_ELEMENT_CLASS} {
|
|
11022
|
+
position: fixed;
|
|
11023
|
+
inset: 0;
|
|
11024
|
+
z-index: 2147483647;
|
|
11025
|
+
display: flex;
|
|
11026
|
+
justify-content: center;
|
|
11027
|
+
align-items: center;
|
|
11028
|
+
pointer-events: auto;
|
|
11029
|
+
background: rgba(0, 0, 0, 0);
|
|
11030
|
+
transition: background 0.2s ease-out;
|
|
11031
|
+
}`,
|
|
11032
|
+
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} {
|
|
11033
|
+
background: rgba(0, 0, 0, 0.8);
|
|
11034
|
+
}`,
|
|
11035
|
+
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER}::before {
|
|
11036
|
+
${hasCustomMountTarget ? 'position: absolute;' : ''}
|
|
11037
|
+
content: "";
|
|
11038
|
+
width: 5rem;
|
|
11039
|
+
height: 4rem;
|
|
11040
|
+
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');
|
|
11041
|
+
background-size: contain;
|
|
11042
|
+
background-repeat: no-repeat;
|
|
11043
|
+
background-position: center;
|
|
11044
|
+
filter: invert(1);
|
|
11045
|
+
}`,
|
|
11046
|
+
`.${CONTAINER_ELEMENT_CLASS} iframe {
|
|
11047
|
+
${hasCustomMountTarget ? '' : 'position: absolute;'}
|
|
11048
|
+
width: 100%;
|
|
11049
|
+
height: 100%;
|
|
11050
|
+
border-width: 0;
|
|
11051
|
+
|
|
11052
|
+
/* fix transparent bg, because iframe document has light scheme */
|
|
11053
|
+
color-scheme: light;
|
|
11054
|
+
}`,
|
|
11055
|
+
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} iframe {
|
|
11056
|
+
visibility: hidden;
|
|
11057
|
+
}`,
|
|
11058
|
+
!hasCustomMountTarget
|
|
11059
|
+
? `body.${BODY_CLASS} {
|
|
11060
|
+
overflow: hidden;
|
|
11061
|
+
}`
|
|
11062
|
+
: '',
|
|
11063
|
+
];
|
|
11064
|
+
let styleElement = document.getElementById(STYLES_ELEMENT_ID);
|
|
11065
|
+
if (!styleElement) {
|
|
11066
|
+
styleElement = document.createElement('style');
|
|
11067
|
+
styleElement.id = STYLES_ELEMENT_ID;
|
|
11068
|
+
styleElement.type = 'text/css';
|
|
11069
|
+
document.head.appendChild(styleElement);
|
|
11070
|
+
}
|
|
11071
|
+
styleElement.textContent = styles.join('\n');
|
|
11072
|
+
}
|
|
11073
|
+
function removeInjectedStyles() {
|
|
11074
|
+
const stylesElement = document.getElementById(STYLES_ELEMENT_ID);
|
|
11075
|
+
if (stylesElement) {
|
|
11076
|
+
stylesElement.remove();
|
|
11077
|
+
}
|
|
11078
|
+
}
|
|
11079
|
+
function createContainer() {
|
|
11080
|
+
const container = document.createElement('div');
|
|
11081
|
+
container.id = CONTAINER_ELEMENT_ID;
|
|
11082
|
+
container.classList.add(CONTAINER_ELEMENT_CLASS);
|
|
11083
|
+
return container;
|
|
11084
|
+
}
|
|
11085
|
+
function getContainer() {
|
|
11086
|
+
return document.getElementById(CONTAINER_ELEMENT_ID);
|
|
11087
|
+
}
|
|
11088
|
+
function appendToContainer(el) {
|
|
11089
|
+
const container = getContainer();
|
|
11090
|
+
container === null || container === void 0 ? void 0 : container.appendChild(el);
|
|
11091
|
+
}
|
|
11092
|
+
function deleteContainer() {
|
|
11093
|
+
const container = getContainer();
|
|
11094
|
+
if (container) {
|
|
11095
|
+
container.remove();
|
|
11096
|
+
}
|
|
11097
|
+
removeInjectedStyles();
|
|
11098
|
+
}
|
|
11099
|
+
function handleIframeUnmount(iframe) {
|
|
11100
|
+
const observer = new MutationObserver((mutationsList) => {
|
|
11101
|
+
for (const mutation of mutationsList) {
|
|
11102
|
+
for (const removedNode of mutation.removedNodes) {
|
|
11103
|
+
if (removedNode instanceof HTMLElement && removedNode.id === POPUP_ELEMENT_ID) {
|
|
11104
|
+
observer.disconnect();
|
|
11105
|
+
deleteContainer();
|
|
11106
|
+
return;
|
|
11107
|
+
}
|
|
11108
|
+
}
|
|
11109
|
+
}
|
|
11110
|
+
});
|
|
11111
|
+
const parent = iframe.parentNode;
|
|
11112
|
+
if (parent) {
|
|
11113
|
+
observer.observe(parent, {
|
|
11114
|
+
childList: true,
|
|
11115
|
+
});
|
|
11116
|
+
}
|
|
11117
|
+
else {
|
|
11118
|
+
console.warn(`iframe with ID "${POPUP_ELEMENT_ID}" has no parent node`);
|
|
11119
|
+
}
|
|
11120
|
+
}
|
|
11121
|
+
|
|
11116
11122
|
class ConnectionLevelElementAccessor {
|
|
11117
11123
|
constructor(client, connectionSelector, selector, elementKey, query) {
|
|
11118
11124
|
this.client = client;
|
|
@@ -12356,20 +12362,20 @@ const HandyScenarioTemplateElement = z.object({
|
|
|
12356
12362
|
key: z.string(),
|
|
12357
12363
|
name: z.string(),
|
|
12358
12364
|
})
|
|
12359
|
-
.and(z.record(z.any())),
|
|
12365
|
+
.and(z.record(z.string(), z.any())),
|
|
12360
12366
|
});
|
|
12361
12367
|
const withIntegrationKeys = (schema) => schema.and(z.object({ integrationKeys: z.array(z.string()).optional() }));
|
|
12362
12368
|
const ElementsExportFields = z.object({
|
|
12363
|
-
flows: z.record(withIntegrationKeys(z.any())).optional(),
|
|
12364
|
-
actions: z.record(withIntegrationKeys(z.any())).optional(),
|
|
12365
|
-
fieldMappings: z.record(withIntegrationKeys(z.any())).optional(),
|
|
12366
|
-
dataSources: z.record(withIntegrationKeys(z.any())).optional(),
|
|
12367
|
-
dataLinkTables: z.record(z.any()).optional(),
|
|
12368
|
-
appEventTypes: z.record(z.any()).optional(),
|
|
12369
|
-
appDataSchemas: z.record(z.any()).optional(),
|
|
12369
|
+
flows: z.record(z.string(), withIntegrationKeys(z.any())).optional(),
|
|
12370
|
+
actions: z.record(z.string(), withIntegrationKeys(z.any())).optional(),
|
|
12371
|
+
fieldMappings: z.record(z.string(), withIntegrationKeys(z.any())).optional(),
|
|
12372
|
+
dataSources: z.record(z.string(), withIntegrationKeys(z.any())).optional(),
|
|
12373
|
+
dataLinkTables: z.record(z.string(), z.any()).optional(),
|
|
12374
|
+
appEventTypes: z.record(z.string(), z.any()).optional(),
|
|
12375
|
+
appDataSchemas: z.record(z.string(), z.any()).optional(),
|
|
12370
12376
|
});
|
|
12371
12377
|
const ScenarioTemplateElements = ElementsExportFields.and(z.object({
|
|
12372
|
-
integrations: z.record(ElementsExportFields.and(z.object({ connectorId: z.string() }))).optional(),
|
|
12378
|
+
integrations: z.record(z.string(), ElementsExportFields.and(z.object({ connectorId: z.string() }))).optional(),
|
|
12373
12379
|
}));
|
|
12374
12380
|
const ScenarioTemplate = z.object({
|
|
12375
12381
|
id: z.string(),
|
|
@@ -12680,5 +12686,5 @@ class MembraneClient extends MembraneApiClient {
|
|
|
12680
12686
|
|
|
12681
12687
|
injectFormulaCatalog(getFormula, isFormula, hasFormulas);
|
|
12682
12688
|
|
|
12683
|
-
export { ACTIONS, AccessDeniedError, ActionAccessor, ActionApiResponse, ActionDependency, ActionDependencyType, ActionEditableProperties, ActionInstanceAccessor, ActionInstanceApiResponse, ActionInstanceSetupError, ActionInstancesAccessor, ActionRunError, ActionRunLogRecordApiResponse, ActionRunLogStatus, ActionRunResponse, ActionType, ActionsAccessor, AlertSeverity, AlertStatus, AlertType, ApiRequestSpec, AppDataSchemaAccessor, AppDataSchemaApiResponse, AppDataSchemaInstanceAccessor, AppDataSchemaInstanceApiResponse, AppDataSchemaInstancesAccessor, AppDataSchemasAccessor, AppEventLogRecordApiResponse, AppEventSubscriptionAccessor, AppEventSubscriptionApiResponse, AppEventSubscriptionsAccessor, AppEventTypeAccessor, AppEventTypeApiResponse, AppEventTypesAccessor, AppliedToIntegrations, BadRequestError, BadRequestErrorKey, BaseAction, BaseActionInstance, BaseActionRunLogRecord, BaseAppDataSchema, BaseAppDataSchemaInstance, BaseAppEventSubscription, BaseAppEventType, BaseConnection, BaseCustomer, BaseDataLinkTable, BaseDataLinkTableInstance, BaseDataSource, BaseDataSourceInstance, BaseExternalEvent, BaseExternalEventLogRecord, BaseExternalEventPull, BaseExternalEventSubscription, BaseFieldMapping, BaseFieldMappingInstance, BaseFlow, BaseFlowInstance, BaseFlowRun, BaseIntegration, BaseIntegrationLevelMembraneInterface, BaseIntegrationLevelMembraneInterfaceEditableProperties, BaseIntegrationLevelMembraneInterfaceReadOnlyProperties, BaseMembraneInterface, BaseMembraneInterfaceEditableProperties, BaseMembraneInterfaceReadOnlyProperties, BaseScenario, BaseScreen, BaseWorkspaceElement, CONNECTOR_AUTH_TYPES, CONNECTOR_CATEGORIES, CONNECTOR_DATA_DIR, CONNECTOR_DOCS_DIR, CONNECTOR_EVENTS_DIR, CONNECTOR_GLOBAL_WEBHOOKS_DIR, CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES, CONNECTOR_OPERATIONS_DIR, CommonInstancesListQuery, CommonIntegrationOrConnectionQuery, CommonListElementsQuery, ConcurrencyError, ConcurrencyErrorKey, ConfigurationError, ConfigurationState, ConnectionAccessor, ConnectionApiResponse, ConnectionApiResponseWithSecrets, ConnectionDataCollectionAccessor, ConnectionError, ConnectionErrorKey, ConnectionLevelActionAccessor, ConnectionLevelActionsAccessor, ConnectionLevelDataSourceAccessor, ConnectionLevelDataSourcesAccessor, ConnectionLevelFieldMappingAccessor, ConnectionLevelFieldMappingsAccessor, ConnectionLevelFlowAccessor, ConnectionLevelFlowsAccessor, ConnectionMessagePayload, ConnectionOperationAccessor, ConnectionProxy, ConnectionRequest, ConnectionSelector, ConnectionSpec, ConnectionsAccessor, ConnectorAuthMethodTypes, ConnectorCopilotFileChunkTopicKey, ConnectorCopilotSuggestionType, ConnectorDataCollectionEventImplementationType, ConnectorDataCollectionMethodKeys, ConnectorDataLocationTypes, ConnectorEventHandlerMethods, ConnectorEventImplementationType, ConnectorMethodImplementationType, ConnectorOperationMethodImplementationTypes, ConnectorStatus, CopilotActionStatus, CopilotActionType, CopilotActivityScope, CopilotActivityType, CopilotTaskStatus, CopilotTaskType, CreateActionInstanceRequest, CreateActionRequest, CreateConnectionRequest, CreateCustomerRequest, CreateDataSourceInstanceRequest, CreateDataSourceRequest, CreateFieldMappingRequest, CreateFlowNodeRequest, CreateFlowRequest, CreateFlowRunRequest, CreateIntegrationRequest, CustomCodeError, CustomerAccessor, CustomerApiResponse, CustomerSelector, CustomersAccessor, DATA_RECORD_SCHEMA, DEFAULT_FULL_SYNC_INTERVAL_SECONDS, DEFAULT_PULL_UPDATES_INTERVAL_SECONDS, DataBuilderFormulaType, DataCollectionCreateRequest, DataCollectionCreateResponse, DataCollectionCreateSpec, DataCollectionDeleteRequest, DataCollectionDeleteResponse, DataCollectionDeleteSpec, DataCollectionEventType, DataCollectionEventTypeSpec, DataCollectionEventsSpec, DataCollectionFindByIdRequest, DataCollectionFindByIdResponse, DataCollectionFindByIdSpec, DataCollectionFindRequest, DataCollectionFindResponse, DataCollectionFindSpec, DataCollectionListRequest, DataCollectionListResponse, DataCollectionListResponseDrilldown, DataCollectionListSpec, DataCollectionMatchRequest, DataCollectionMatchResponse, DataCollectionMatchSpec, DataCollectionMethodRequest, DataCollectionMethodSpec, DataCollectionSearchRequest, DataCollectionSearchResponse, DataCollectionSearchSpec, DataCollectionSpec, DataCollectionUdmSpec, DataCollectionUdmsSpec, DataCollectionUpdateRequest, DataCollectionUpdateResponse, DataCollectionUpdateSpec, DataFilterCondition, DataForm, DataLink, DataLinkDirection, DataLinkTableAccessor, DataLinkTableApiResponse, DataLinkTableConfig, DataLinkTableInstanceAccessor, DataLinkTableInstanceApiResponse, DataLinkTableInstancesAccessor, DataLinkTablesAccessor, DataLocationMethodImplementationTypes, DataLocationTypeCollection, DataLocatorStep, DataLocatorStepArrayItem, DataLocatorStepObjectProperty, DataLocatorStepType, DataRecordSchema, DataSchema, DataSourceAccessor, DataSourceApiResponse, DataSourceEditableProperties, DataSourceInstanceAccessor, DataSourceInstanceApiResponse, DataSourceInstancesAccessor, DataSourceUnitConfig, DataSourcesAccessor, DependencyError, DownstreamFlowNodeRunSchema, EDITABLE_LIMITS, ElementAccessor, ElementInstanceAccessor, ElementInstanceListAccessor, ElementListAccessor, ElementsExportFields, ErrorData, ErrorDataSchema, ErrorType, ExternalEvent, ExternalEventLogRecordApiResponse, ExternalEventLogStatus, ExternalEventPullApiResponse, ExternalEventPullStatus, ExternalEventSubscriptionAccessor, ExternalEventSubscriptionApiResponse, ExternalEventSubscriptionConfig, ExternalEventSubscriptionStatus, ExternalEventSubscriptionType, ExternalEventSubscriptionsAccessor, ExternalEventType, ExternalEventUnitConfig, FLOW_NODE_SPECS, FieldMappingAccessor, FieldMappingApiResponse, FieldMappingDirection, FieldMappingEditableProperties, FieldMappingInstanceAccessor, FieldMappingInstanceApiResponse, FieldMappingInstancesAccessor, FieldMappingUnitConfig, FieldMappingsAccessor, FindActionInstancesQuery, FindActionsQuery, FindConnectionsQuery, FindConnectionsResponse, FindCustomersQuery, FindDataSourceEventsQuery, FindDataSourceInstanceSyncsQuery, FindDataSourceInstancesQuery, FindDataSourceSyncsQuery, FindDataSourcesQuery, FindFieldMappingsQuery, FindFlowInstancesQuery, FindFlowRunsQuery, FindFlowRunsResponse, FindFlowsQuery, FindIntegrationsQuery, FindScenariosQuery, FlowAccessor, FlowApiResponse, FlowEditableProperties, FlowInstanceAccessor, FlowInstanceApiResponse, FlowInstanceNode, FlowInstanceNodeState, FlowInstanceSetupError, FlowInstancesAccessor, FlowNode, FlowNodeLink, FlowNodeRunOutputMetadataSchema, FlowNodeRunOutputSchema, FlowNodeRunOutputWithoutDownstreamRunsSchema, FlowNodeRunParametersSchema, FlowNodeRunRecordSchema, FlowNodeRunRecordWithoutOutputsDataSchema, FlowNodeRunResultSchema, FlowNodeRunStatus, FlowNodeSpec, FlowNodeType, FlowRunAccessor, FlowRunApiResponse, FlowRunError, FlowRunLaunchedBy, FlowRunLaunchedByApi, FlowRunLaunchedByTrigger, FlowRunNode, FlowRunNodeState, FlowRunState, FlowRunsAccessor, FlowsAccessor, Formula, HTTP_REQUEST_SCHEMA, HandyScenarioTemplateElement, HttpRequestMethod, HttpRequestSpec, IncludeArchivedQuery, IncomingWebhooksState, IntegrationAccessor, IntegrationApiResponse, MembraneClient as IntegrationAppClient, IntegrationAuthOption, IntegrationAuthUi, IntegrationElementLevel, IntegrationElementType, IntegrationLevelActionAccessor, IntegrationLevelActionsListAccessor, IntegrationLevelDataSourceAccessor, IntegrationLevelDataSourcesListAccessor, IntegrationLevelFieldMappingAccessor, IntegrationLevelFieldMappingsListAccessor, IntegrationLevelFlowAccessor, IntegrationLevelFlowsListAccessor, IntegrationsAccessor, InternalError, InvalidLocatorError, LimitUnits, ListActionInstancesForConnectionQuery, ListDataSourceInstancesForConnectionQuery, ListExternalEventLogRecordsQuery, ListExternalEventPullsQuery, ListFlowInstancesForConnectionQuery, LogRecordType, MIN_FULL_SYNC_INTERVAL_SECONDS, MIN_PULL_UPDATES_INTERVAL_SECONDS, MembraneClient, MembraneError, MinimalConnector, NotAuthenticatedError, NotFoundError, OAUTH1_CONFIG_SCHEMA, OAUTH_CONFIG_SCHEMA, OpenNewConnectionOptions, OrgLimitsType, OrgUserRole, OrgUserStatus, PARALLEL_EXECUTION_LIMITS, PaginationQuery, PaginationResponse, RATE_LIMITS, RateLimitExceededError, ResetFlowInstanceOptions, RunFlowOptions, ScenarioAccessor, ScenarioApiResponse, ScenarioCalculatedProperties, ScenarioEditableProperties, ScenarioElement, ScenarioElementApi, ScenarioTemplate, ScenarioTemplateCategory, ScenarioTemplateElements, ScenariosAccessor, ScreenAccessor, ScreenApiResponse, ScreenBlock, ScreenBlockType, ScreenType, ScreensAccessor, SearchQuery, SelfAccessor, UDM, UNIFIED_DATA_MODELS, UnitRunError, UpdateActionInstanceRequest, UpdateActionRequest, UpdateConnectionRequest, UpdateCustomerRequest, UpdateDataSourceInstanceRequest, UpdateDataSourceRequest, UpdateFieldMappingRequest, UpdateFlowRequest, UpdateIntegrationRequest, UpstreamFlowNodeRunSchema, UsageType, UserAccessor, UsersAccessor, WORKSPACE_SIZE_LIMITS, WebhookTypeEnum, WorkspaceElementDependencyType, WorkspaceElementSpecs, WorkspaceElementState, WorkspaceElementType, WorkspaceEventType, WorkspaceNotificationType, WorkspaceOnboardingStep, WorkspaceSyncEventType, WorkspaceType, __resolveValue, addRequiredFieldsToSchema, addUdmFallbackFields, backwardCompatibleFilterMatch, buildData, buildDataSchema, buildValue, compressDataSchema, createCompoundSchema, createFlowInstanceSchema, createObjectFromLocators, createOrUpdateConnection, createSchema, dataCollectionEventTypeToExternalEventType, dataLocationParametersMatch, doesMatchFilter, excludeFieldsFromSchema, excludeFieldsFromValue, excludeReadOnlyFieldsFromSchema, excludeWriteOnlyFieldsFromSchema, externalEventTypeToDataCollectionEventType, extractFieldLocator, extractMembraneErrorData, findUdmCollectionMapping, findUdmDefaultCollection, findUdmRootLocation, findValueLocators, generateExampleFromSchema, getActionInstanceVariableSchema, getActionRunTimeVariablesSchema, getAllEventMethodFilePaths, getChildNodeKeys, getDataCollectionCreateFields, getDataCollectionUpdateFields, getDataLocationMethodPath, getDownstreamNodeKeys, getErrorFromData, getEventMethodFileKey, getFilterFieldValuesByLocator, getFlowInstanceNodeDependency, getFlowNode, getFlowNodeConfigTimeVariablesSchema, getFlowNodeDescription, getFlowNodeRunTimeVariablesSchema, getFlowNodeSpec, getFlowNodeTitle, getFormula$1 as getFormula, getFormulaLocators, getFormula as getFormula_internalDoNotUse, getFullNameForLocator, getFullTitleForLocator, getIconUriForLocator, getLocatorsFromData, getLocatorsFromSchema, getMissingRequiredFields, getNameComponentsForLocator, getNameForLocator, getNodeInputSchema, getOperatorsBySchema, getParentNodeKeys, getReferenceCollectionPathForSchema, getReferenceCollectionPointerForSchema, getRequiredFieldsFromSchema, getRootNodeKeys, getSchemaByLocator, getSchemaFromValue, getUpstreamNodeKeys, getValueAtLocator, getValueByLocator, getVariableLocators, getWritableFieldsSchema, hasCycles, hasFormulas$1 as hasFormulas, hasFormulas as hasFormulas_internalDoNotUse, injectFormulaCatalog, isDataActionType, isDataLocationMethodSupported, isFormula$1 as isFormula, isFormula as isFormula_internalDoNotUse, isMembraneError, isObject, isSameDataLocation, isSchemaEmpty, isStream, isValidLocator, locatorToField, locatorToSteps, locatorToString, makeDataLocationOperationPath, makeDataLocationPath, makeDataRecordSchema, makeObjectPropertyLocator, makeSchemaForLocator, mergeSchemas, mergeWithFormulas, nonEmptyObjectProperties, parseDataLocationPath, parseDate, patchSchema, pickFieldsFromSchema, pickFieldsFromValue, populateSchemaTitles, processCopy, removeNonExistentVars, removeRequiredFieldsFromSchema, resolveFormulas, schemaAllowsCustomValue, schemaHasFixedValues, schemaHasProperties, schemaIsNumber, schemaIsScalar, schemaTypeFromValue, schemaWithTitle, setSchemaAtLocator, setValueAtLocator, stepsToLocator, streamToString, transformVariablesWith, transformVars, truncateData, unwrapSchema, unwrapSchemas, updateFlowInstanceSchema, updateImpliedSchema, valueToSchema, valueToString, walkSchema, wrapAnyOfSchema, zodBooleanCoercion };
|
|
12689
|
+
export { ACTIONS, AccessDeniedError, ActionAccessor, ActionApiResponse, ActionDependency, ActionDependencyType, ActionEditableProperties, ActionInstanceAccessor, ActionInstanceApiResponse, ActionInstanceSetupError, ActionInstancesAccessor, ActionRunError, ActionRunLogRecordApiResponse, ActionRunLogStatus, ActionRunResponse, ActionType, ActionsAccessor, AlertSeverity, AlertStatus, AlertType, ApiRequestSpec, AppDataSchemaAccessor, AppDataSchemaApiResponse, AppDataSchemaInstanceAccessor, AppDataSchemaInstanceApiResponse, AppDataSchemaInstancesAccessor, AppDataSchemasAccessor, AppEventLogRecordApiResponse, AppEventSubscriptionAccessor, AppEventSubscriptionApiResponse, AppEventSubscriptionsAccessor, AppEventTypeAccessor, AppEventTypeApiResponse, AppEventTypesAccessor, AppliedToIntegrations, BadRequestError, BadRequestErrorKey, BaseAction, BaseActionInstance, BaseActionRunLogRecord, BaseAppDataSchema, BaseAppDataSchemaInstance, BaseAppEventSubscription, BaseAppEventType, BaseConnection, BaseCustomer, BaseDataLinkTable, BaseDataLinkTableInstance, BaseDataSource, BaseDataSourceInstance, BaseExternalEvent, BaseExternalEventLogRecord, BaseExternalEventPull, BaseExternalEventSubscription, BaseFieldMapping, BaseFieldMappingInstance, BaseFlow, BaseFlowInstance, BaseFlowRun, BaseIntegration, BaseIntegrationLevelMembraneInterface, BaseIntegrationLevelMembraneInterfaceEditableProperties, BaseIntegrationLevelMembraneInterfaceReadOnlyProperties, BaseMembraneInterface, BaseMembraneInterfaceEditableProperties, BaseMembraneInterfaceReadOnlyProperties, BaseScenario, BaseScreen, BaseWorkspaceElement, CONNECTOR_AUTH_TYPES, CONNECTOR_CATEGORIES, CONNECTOR_DATA_DIR, CONNECTOR_DOCS_DIR, CONNECTOR_EVENTS_DIR, CONNECTOR_GLOBAL_WEBHOOKS_DIR, CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES, CONNECTOR_OPERATIONS_DIR, CommonInstancesListQuery, CommonIntegrationOrConnectionQuery, CommonListElementsQuery, ConcurrencyError, ConcurrencyErrorKey, ConfigurationError, ConfigurationState, ConnectionAccessor, ConnectionApiResponse, ConnectionApiResponseWithSecrets, ConnectionDataCollectionAccessor, ConnectionError, ConnectionErrorKey, ConnectionLevelActionAccessor, ConnectionLevelActionsAccessor, ConnectionLevelDataSourceAccessor, ConnectionLevelDataSourcesAccessor, ConnectionLevelFieldMappingAccessor, ConnectionLevelFieldMappingsAccessor, ConnectionLevelFlowAccessor, ConnectionLevelFlowsAccessor, ConnectionMessagePayload, ConnectionOperationAccessor, ConnectionProxy, ConnectionRequest, ConnectionSelector, ConnectionSpec, ConnectionsAccessor, ConnectorAuthMethodTypes, ConnectorCopilotFileChunkTopicKey, ConnectorCopilotSuggestionType, ConnectorDataCollectionEventImplementationType, ConnectorDataCollectionMethodKeys, ConnectorDataLocationTypes, ConnectorEventHandlerMethods, ConnectorEventImplementationType, ConnectorMethodImplementationType, ConnectorOperationMethodImplementationTypes, ConnectorStatus, CopilotActionStatus, CopilotActionType, CopilotActivityScope, CopilotActivityType, CopilotTaskStatus, CopilotTaskType, CreateActionInstanceRequest, CreateActionRequest, CreateConnectionRequest, CreateCustomerRequest, CreateDataSourceInstanceRequest, CreateDataSourceRequest, CreateFieldMappingRequest, CreateFlowNodeRequest, CreateFlowRequest, CreateFlowRunRequest, CreateIntegrationRequest, CustomCodeError, CustomerAccessor, CustomerApiResponse, CustomerSelector, CustomersAccessor, DATA_RECORD_SCHEMA, DEFAULT_FULL_SYNC_INTERVAL_SECONDS, DEFAULT_PULL_UPDATES_INTERVAL_SECONDS, DataBuilderFormulaType, DataCollectionCreateRequest, DataCollectionCreateResponse, DataCollectionCreateSpec, DataCollectionDeleteRequest, DataCollectionDeleteResponse, DataCollectionDeleteSpec, DataCollectionEventType, DataCollectionEventTypeSpec, DataCollectionEventsSpec, DataCollectionFindByIdRequest, DataCollectionFindByIdResponse, DataCollectionFindByIdSpec, DataCollectionFindRequest, DataCollectionFindResponse, DataCollectionFindSpec, DataCollectionListRequest, DataCollectionListResponse, DataCollectionListResponseDrilldown, DataCollectionListSpec, DataCollectionMatchRequest, DataCollectionMatchResponse, DataCollectionMatchSpec, DataCollectionMethodRequest, DataCollectionMethodSpec, DataCollectionSearchRequest, DataCollectionSearchResponse, DataCollectionSearchSpec, DataCollectionSpec, DataCollectionUdmSpec, DataCollectionUdmsSpec, DataCollectionUpdateRequest, DataCollectionUpdateResponse, DataCollectionUpdateSpec, DataFilterCondition, DataForm, DataLink, DataLinkDirection, DataLinkTableAccessor, DataLinkTableApiResponse, DataLinkTableConfig, DataLinkTableInstanceAccessor, DataLinkTableInstanceApiResponse, DataLinkTableInstancesAccessor, DataLinkTablesAccessor, DataLocationMethodImplementationTypes, DataLocationTypeCollection, DataLocatorStep, DataLocatorStepArrayItem, DataLocatorStepObjectProperty, DataLocatorStepType, DataRecordSchema, DataSchema, DataSourceAccessor, DataSourceApiResponse, DataSourceEditableProperties, DataSourceInstanceAccessor, DataSourceInstanceApiResponse, DataSourceInstancesAccessor, DataSourceUnitConfig, DataSourcesAccessor, DependencyError, DownstreamFlowNodeRunSchema, EDITABLE_LIMITS, ElementAccessor, ElementInstanceAccessor, ElementInstanceListAccessor, ElementListAccessor, ElementsExportFields, ErrorData, ErrorDataSchema, ErrorType, ExternalEvent, ExternalEventLogRecordApiResponse, ExternalEventLogStatus, ExternalEventPullApiResponse, ExternalEventPullStatus, ExternalEventSubscriptionAccessor, ExternalEventSubscriptionApiResponse, ExternalEventSubscriptionConfig, ExternalEventSubscriptionStatus, ExternalEventSubscriptionType, ExternalEventSubscriptionsAccessor, ExternalEventType, ExternalEventUnitConfig, FLOW_NODE_SPECS, FieldMappingAccessor, FieldMappingApiResponse, FieldMappingDirection, FieldMappingEditableProperties, FieldMappingInstanceAccessor, FieldMappingInstanceApiResponse, FieldMappingInstancesAccessor, FieldMappingUnitConfig, FieldMappingsAccessor, FindActionInstancesQuery, FindActionsQuery, FindConnectionsQuery, FindConnectionsResponse, FindCustomersQuery, FindDataSourceEventsQuery, FindDataSourceInstanceSyncsQuery, FindDataSourceInstancesQuery, FindDataSourceSyncsQuery, FindDataSourcesQuery, FindFieldMappingsQuery, FindFlowInstancesQuery, FindFlowRunsQuery, FindFlowRunsResponse, FindFlowsQuery, FindIntegrationsQuery, FindScenariosQuery, FlowAccessor, FlowApiResponse, FlowEditableProperties, FlowInstanceAccessor, FlowInstanceApiResponse, FlowInstanceNode, FlowInstanceNodeState, FlowInstanceSetupError, FlowInstancesAccessor, FlowNode, FlowNodeLink, FlowNodeRunOutputMetadataSchema, FlowNodeRunOutputSchema, FlowNodeRunOutputWithoutDownstreamRunsSchema, FlowNodeRunParametersSchema, FlowNodeRunRecordSchema, FlowNodeRunRecordWithoutOutputsDataSchema, FlowNodeRunResultSchema, FlowNodeRunStatus, FlowNodeSpec, FlowNodeType, FlowRunAccessor, FlowRunApiResponse, FlowRunError, FlowRunLaunchedBy, FlowRunLaunchedByApi, FlowRunLaunchedByTrigger, FlowRunNode, FlowRunNodeState, FlowRunState, FlowRunsAccessor, FlowsAccessor, Formula, HTTP_REQUEST_SCHEMA, HandyScenarioTemplateElement, HttpRequestMethod, HttpRequestSpec, IncludeArchivedQuery, IncomingWebhooksState, IntegrationAccessor, IntegrationApiResponse, MembraneClient as IntegrationAppClient, IntegrationAuthOption, IntegrationAuthUi, IntegrationElementLevel, IntegrationElementType, IntegrationLevelActionAccessor, IntegrationLevelActionsListAccessor, IntegrationLevelDataSourceAccessor, IntegrationLevelDataSourcesListAccessor, IntegrationLevelFieldMappingAccessor, IntegrationLevelFieldMappingsListAccessor, IntegrationLevelFlowAccessor, IntegrationLevelFlowsListAccessor, IntegrationsAccessor, InternalError, InvalidLocatorError, LimitUnits, ListActionInstancesForConnectionQuery, ListDataSourceInstancesForConnectionQuery, ListExternalEventLogRecordsQuery, ListExternalEventPullsQuery, ListFlowInstancesForConnectionQuery, LogRecordType, MIN_FULL_SYNC_INTERVAL_SECONDS, MIN_PULL_UPDATES_INTERVAL_SECONDS, MembraneClient, MembraneError, MinimalConnector, NotAuthenticatedError, NotFoundError, OAUTH1_CONFIG_SCHEMA, OAUTH_CONFIG_SCHEMA, OrgLimitsType, OrgUserRole, OrgUserStatus, PARALLEL_EXECUTION_LIMITS, PaginationQuery, PaginationResponse, RATE_LIMITS, RateLimitExceededError, ResetFlowInstanceOptions, ScenarioAccessor, ScenarioApiResponse, ScenarioCalculatedProperties, ScenarioEditableProperties, ScenarioElement, ScenarioElementApi, ScenarioTemplate, ScenarioTemplateCategory, ScenarioTemplateElements, ScenariosAccessor, ScreenAccessor, ScreenApiResponse, ScreenBlock, ScreenBlockType, ScreenType, ScreensAccessor, SearchQuery, SelfAccessor, UDM, UNIFIED_DATA_MODELS, UnitRunError, UpdateActionInstanceRequest, UpdateActionRequest, UpdateConnectionRequest, UpdateCustomerRequest, UpdateDataSourceInstanceRequest, UpdateDataSourceRequest, UpdateFieldMappingRequest, UpdateFlowRequest, UpdateIntegrationRequest, UpstreamFlowNodeRunSchema, UsageType, UserAccessor, UsersAccessor, WORKSPACE_SIZE_LIMITS, WebhookTypeEnum, WorkspaceElementDependencyType, WorkspaceElementSpecs, WorkspaceElementState, WorkspaceElementType, WorkspaceEventType, WorkspaceNotificationType, WorkspaceOnboardingStep, WorkspaceSyncEventType, WorkspaceType, __resolveValue, addRequiredFieldsToSchema, addUdmFallbackFields, backwardCompatibleFilterMatch, buildData, buildDataSchema, buildValue, compressDataSchema, createCompoundSchema, createFlowInstanceSchema, createObjectFromLocators, createOrUpdateConnection, createSchema, dataCollectionEventTypeToExternalEventType, dataLocationParametersMatch, doesMatchFilter, excludeFieldsFromSchema, excludeFieldsFromValue, excludeReadOnlyFieldsFromSchema, excludeWriteOnlyFieldsFromSchema, externalEventTypeToDataCollectionEventType, extractFieldLocator, extractMembraneErrorData, findUdmCollectionMapping, findUdmDefaultCollection, findUdmRootLocation, findValueLocators, generateExampleFromSchema, getActionInstanceVariableSchema, getActionRunTimeVariablesSchema, getAllEventMethodFilePaths, getBusinessDaysBetween, getChildNodeKeys, getDataCollectionCreateFields, getDataCollectionUpdateFields, getDataLocationMethodPath, getDownstreamNodeKeys, getErrorFromData, getEventMethodFileKey, getFilterFieldValuesByLocator, getFlowInstanceNodeDependency, getFlowNode, getFlowNodeConfigTimeVariablesSchema, getFlowNodeDescription, getFlowNodeRunTimeVariablesSchema, getFlowNodeSpec, getFlowNodeTitle, getFormula$1 as getFormula, getFormulaLocators, getFormula as getFormula_internalDoNotUse, getFullNameForLocator, getFullTitleForLocator, getIconUriForLocator, getLocatorsFromData, getLocatorsFromSchema, getMissingRequiredFields, getNameComponentsForLocator, getNameForLocator, getNodeInputSchema, getOperatorsBySchema, getParentNodeKeys, getReferenceCollectionPathForSchema, getReferenceCollectionPointerForSchema, getRequiredFieldsFromSchema, getRootNodeKeys, getSchemaByLocator, getSchemaFromValue, getUpstreamNodeKeys, getValueAtLocator, getValueByLocator, getVariableLocators, getWritableFieldsSchema, hasCycles, hasFormulas$1 as hasFormulas, hasFormulas as hasFormulas_internalDoNotUse, injectFormulaCatalog, isBusinessDay, isDataActionType, isDataLocationMethodSupported, isFormula$1 as isFormula, isFormula as isFormula_internalDoNotUse, isMembraneError, isObject, isSameDataLocation, isSchemaEmpty, isStream, isValidLocator, locatorToField, locatorToSteps, locatorToString, makeDataLocationOperationPath, makeDataLocationPath, makeDataRecordSchema, makeObjectPropertyLocator, makeSchemaForLocator, mergeSchemas, mergeWithFormulas, nonEmptyObjectProperties, parseDataLocationPath, parseDate, patchSchema, pickFieldsFromSchema, pickFieldsFromValue, populateSchemaTitles, processCopy, removeNonExistentVars, removeRequiredFieldsFromSchema, resolveFormulas, schemaAllowsCustomValue, schemaHasFixedValues, schemaHasProperties, schemaIsNumber, schemaIsScalar, schemaTypeFromValue, schemaWithTitle, setSchemaAtLocator, setValueAtLocator, stepsToLocator, streamToString, transformVariablesWith, transformVars, truncateData, unwrapSchema, unwrapSchemas, updateFlowInstanceSchema, updateImpliedSchema, valueToSchema, valueToString, walkSchema, wrapAnyOfSchema, zodBooleanCoercion };
|
|
12684
12690
|
//# sourceMappingURL=index.browser.mjs.map
|