@membranehq/sdk 0.7.3 → 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 +2283 -14038
- 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 +86 -1359
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +164 -880
- 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 +125 -2363
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +109 -666
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +66 -1229
- package/dist/dts/workspace-elements/api/flows-api.d.ts +273 -1874
- 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 +57 -2
- 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 +10 -77
- package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +71 -1
- 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 +80 -1
- package/dist/dts/workspace-elements/base/flows/nodes/base.d.ts +30 -1
- package/dist/dts/workspace-elements/base/flows/nodes/index.d.ts +1 -1
- 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 +7609 -26109
- package/dist/index.browser.d.ts +7609 -26109
- package/dist/index.browser.js +420 -419
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +412 -415
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +7537 -26047
- package/dist/index.node.d.ts +7537 -26047
- package/dist/index.node.js +420 -419
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +412 -415
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/dts/workspace-elements/base/data-sources/constants.d.ts +0 -4
- package/dist/dts/workspace-elements/base/data-sources/types.d.ts +0 -109
- package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +0 -136
- package/dist/dts/workspace-elements/base/flows/types.d.ts +0 -248
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(),
|
|
@@ -3456,40 +3456,6 @@ const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = BaseMembraneInte
|
|
|
3456
3456
|
});
|
|
3457
3457
|
const BaseIntegrationLevelMembraneInterface = BaseMembraneInterface.merge(BaseIntegrationLevelMembraneInterfaceEditableProperties).merge(BaseIntegrationLevelMembraneInterfaceReadOnlyProperties);
|
|
3458
3458
|
|
|
3459
|
-
var FieldMappingDirection;
|
|
3460
|
-
(function (FieldMappingDirection) {
|
|
3461
|
-
FieldMappingDirection["IMPORT"] = "import";
|
|
3462
|
-
FieldMappingDirection["EXPORT"] = "export";
|
|
3463
|
-
FieldMappingDirection["BOTH"] = "both";
|
|
3464
|
-
})(FieldMappingDirection || (FieldMappingDirection = {}));
|
|
3465
|
-
const BaseFieldMapping = BaseIntegrationLevelMembraneInterface.extend({
|
|
3466
|
-
publishedRevision: z.string().optional(),
|
|
3467
|
-
universalFieldMappingId: z.string().optional(),
|
|
3468
|
-
universalFieldMappingRevision: z.string().optional(),
|
|
3469
|
-
dataSourceId: z.string().optional(),
|
|
3470
|
-
dataSourceKey: z.string().optional(),
|
|
3471
|
-
appSchema: DataSchema.optional(),
|
|
3472
|
-
direction: z.nativeEnum(FieldMappingDirection).optional(),
|
|
3473
|
-
defaultImportValue: z.any().optional(),
|
|
3474
|
-
defaultExportValue: z.any().optional(),
|
|
3475
|
-
importValue: z.any().optional(),
|
|
3476
|
-
exportValue: z.any().optional(),
|
|
3477
|
-
frozenImportFields: z.any().optional(),
|
|
3478
|
-
frozenExportFields: z.any().optional(),
|
|
3479
|
-
frozenUnifiedExportFields: z.any().optional(),
|
|
3480
|
-
});
|
|
3481
|
-
const FieldMappingUnitConfig = z.object({
|
|
3482
|
-
key: z.string().optional(),
|
|
3483
|
-
input: z.any().optional(),
|
|
3484
|
-
includeRawFields: z.any().optional(),
|
|
3485
|
-
importValue: z.any().optional(),
|
|
3486
|
-
exportValue: z.any().optional(),
|
|
3487
|
-
default: z.any().optional(),
|
|
3488
|
-
defaultUnifiedValue: z.any().optional(),
|
|
3489
|
-
defaultValue: z.any().optional(),
|
|
3490
|
-
appSchema: DataSchema.optional(),
|
|
3491
|
-
});
|
|
3492
|
-
|
|
3493
3459
|
function mergeWithFormulas(a, b) {
|
|
3494
3460
|
if (Array.isArray(a) && Array.isArray(b)) {
|
|
3495
3461
|
const length = Math.max(a.length, b.length);
|
|
@@ -3520,6 +3486,44 @@ function isObject(value) {
|
|
|
3520
3486
|
!(value instanceof Boolean));
|
|
3521
3487
|
}
|
|
3522
3488
|
|
|
3489
|
+
var FieldMappingDirection;
|
|
3490
|
+
(function (FieldMappingDirection) {
|
|
3491
|
+
FieldMappingDirection["IMPORT"] = "import";
|
|
3492
|
+
FieldMappingDirection["EXPORT"] = "export";
|
|
3493
|
+
FieldMappingDirection["BOTH"] = "both";
|
|
3494
|
+
})(FieldMappingDirection || (FieldMappingDirection = {}));
|
|
3495
|
+
const FieldMappingEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
|
|
3496
|
+
parentId: true,
|
|
3497
|
+
}).extend({
|
|
3498
|
+
universalFieldMappingId: z.string().optional(),
|
|
3499
|
+
dataSourceKey: z.string().optional(),
|
|
3500
|
+
dataSourceId: z.string().optional(),
|
|
3501
|
+
appSchema: DataSchema.optional(),
|
|
3502
|
+
direction: z.nativeEnum(FieldMappingDirection).optional(),
|
|
3503
|
+
defaultImportValue: z.any().optional(),
|
|
3504
|
+
defaultExportValue: z.any().optional(),
|
|
3505
|
+
importValue: z.any().optional(),
|
|
3506
|
+
exportValue: z.any().optional(),
|
|
3507
|
+
frozenImportFields: z.any().optional(),
|
|
3508
|
+
frozenExportFields: z.any().optional(),
|
|
3509
|
+
frozenUnifiedExportFields: z.any().optional(),
|
|
3510
|
+
});
|
|
3511
|
+
const FieldMappingReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
3512
|
+
universalFieldMappingRevision: z.string().optional(),
|
|
3513
|
+
});
|
|
3514
|
+
const BaseFieldMapping = BaseMembraneInterface.merge(FieldMappingEditableProperties).merge(FieldMappingReadOnlyProperties);
|
|
3515
|
+
const FieldMappingUnitConfig = z.object({
|
|
3516
|
+
key: z.string().optional(),
|
|
3517
|
+
input: z.any().optional(),
|
|
3518
|
+
includeRawFields: z.any().optional(),
|
|
3519
|
+
importValue: z.any().optional(),
|
|
3520
|
+
exportValue: z.any().optional(),
|
|
3521
|
+
default: z.any().optional(),
|
|
3522
|
+
defaultUnifiedValue: z.any().optional(),
|
|
3523
|
+
defaultValue: z.any().optional(),
|
|
3524
|
+
appSchema: DataSchema.optional(),
|
|
3525
|
+
});
|
|
3526
|
+
|
|
3523
3527
|
var ActionType;
|
|
3524
3528
|
(function (ActionType) {
|
|
3525
3529
|
ActionType["ListDataRecords"] = "list-data-records";
|
|
@@ -3632,9 +3636,9 @@ const BaseAction = BaseMembraneInterface.merge(ActionEditableProperties).merge(A
|
|
|
3632
3636
|
const ConnectionRequest = z.object({
|
|
3633
3637
|
path: z.any(),
|
|
3634
3638
|
method: z.enum(['GET', 'POST', 'PUT', 'PATCH', 'DELETE']).optional(),
|
|
3635
|
-
pathParameters: z.record(z.string()).optional(),
|
|
3636
|
-
headers: z.record(z.string()).optional(),
|
|
3637
|
-
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(),
|
|
3638
3642
|
data: z.any().optional(),
|
|
3639
3643
|
});
|
|
3640
3644
|
const BaseConnection = BaseWorkspaceElement.extend({
|
|
@@ -3653,7 +3657,7 @@ const BaseConnection = BaseWorkspaceElement.extend({
|
|
|
3653
3657
|
nextCredentialsRefreshAt: z.string().optional(),
|
|
3654
3658
|
archivedAt: z.string().optional(),
|
|
3655
3659
|
isDeactivated: z.boolean().optional(),
|
|
3656
|
-
meta: z.record(z.any()).optional(),
|
|
3660
|
+
meta: z.record(z.string(), z.any()).optional(),
|
|
3657
3661
|
});
|
|
3658
3662
|
class ConnectionSpec {
|
|
3659
3663
|
constructor(opts) {
|
|
@@ -3990,10 +3994,10 @@ const DataRecordSchema = z.object({
|
|
|
3990
3994
|
name: z.string().optional(),
|
|
3991
3995
|
uri: z.string().optional(),
|
|
3992
3996
|
iconUri: z.string().optional(),
|
|
3993
|
-
fields: z.record(z.any()).optional(),
|
|
3997
|
+
fields: z.record(z.string(), z.any()).optional(),
|
|
3994
3998
|
udm: z.string().optional(),
|
|
3995
|
-
unifiedFields: z.record(z.any()).optional(),
|
|
3996
|
-
rawFields: z.record(z.any()).optional(),
|
|
3999
|
+
unifiedFields: z.record(z.string(), z.any()).optional(),
|
|
4000
|
+
rawFields: z.record(z.string(), z.any()).optional(),
|
|
3997
4001
|
createdTime: z.string().optional(),
|
|
3998
4002
|
updatedTime: z.string().optional(),
|
|
3999
4003
|
deletedTime: z.string().optional(),
|
|
@@ -8178,10 +8182,10 @@ const DataCollectionEventsSpec = z
|
|
|
8178
8182
|
.catchall(DataCollectionEventTypeSpec);
|
|
8179
8183
|
const DataCollectionUdmSpec = z.object({
|
|
8180
8184
|
fields: z.array(z.string()).optional(),
|
|
8181
|
-
extract: z.record(z.any()).optional(),
|
|
8182
|
-
parse: z.record(z.any()).optional(),
|
|
8185
|
+
extract: z.record(z.string(), z.any()).optional(),
|
|
8186
|
+
parse: z.record(z.string(), z.any()).optional(),
|
|
8183
8187
|
});
|
|
8184
|
-
const DataCollectionUdmsSpec = z.record(DataCollectionUdmSpec);
|
|
8188
|
+
const DataCollectionUdmsSpec = z.record(z.string(), DataCollectionUdmSpec);
|
|
8185
8189
|
const DataCollectionSpec = z.object({
|
|
8186
8190
|
type: z.literal('collection'),
|
|
8187
8191
|
key: z.string().optional(),
|
|
@@ -8201,7 +8205,7 @@ const DataCollectionSpec = z.object({
|
|
|
8201
8205
|
find: DataCollectionFindSpec.optional(),
|
|
8202
8206
|
});
|
|
8203
8207
|
const DataCollectionMethodRequest = z.object({
|
|
8204
|
-
parameters: z.record(z.any()).optional(),
|
|
8208
|
+
parameters: z.record(z.string(), z.any()).optional(),
|
|
8205
8209
|
});
|
|
8206
8210
|
const DataCollectionFindRequest = z.object({
|
|
8207
8211
|
query: z.any().optional(),
|
|
@@ -8217,8 +8221,8 @@ const DataCollectionListRequest = DataCollectionMethodRequest.extend({
|
|
|
8217
8221
|
cursor: z.string().optional(),
|
|
8218
8222
|
});
|
|
8219
8223
|
const DataCollectionListResponseDrilldown = z.object({
|
|
8220
|
-
parameters: z.record(z.any()).optional(),
|
|
8221
|
-
filter: z.record(z.any()).optional(),
|
|
8224
|
+
parameters: z.record(z.string(), z.any()).optional(),
|
|
8225
|
+
filter: z.record(z.string(), z.any()).optional(),
|
|
8222
8226
|
});
|
|
8223
8227
|
const DataCollectionListResponse = z.object({
|
|
8224
8228
|
records: z.array(DataRecordSchema),
|
|
@@ -8241,20 +8245,20 @@ const DataCollectionFindByIdResponse = z.object({
|
|
|
8241
8245
|
record: DataRecordSchema,
|
|
8242
8246
|
});
|
|
8243
8247
|
const DataCollectionMatchRequest = DataCollectionMethodRequest.extend({
|
|
8244
|
-
query: z.record(z.any()),
|
|
8248
|
+
query: z.record(z.string(), z.any()),
|
|
8245
8249
|
});
|
|
8246
8250
|
const DataCollectionMatchResponse = z.object({
|
|
8247
8251
|
record: DataRecordSchema.optional(),
|
|
8248
8252
|
});
|
|
8249
8253
|
const DataCollectionCreateRequest = DataCollectionMethodRequest.extend({
|
|
8250
|
-
fields: z.record(z.any()),
|
|
8254
|
+
fields: z.record(z.string(), z.any()),
|
|
8251
8255
|
});
|
|
8252
8256
|
const DataCollectionCreateResponse = z.object({
|
|
8253
8257
|
id: z.string(),
|
|
8254
8258
|
});
|
|
8255
8259
|
const DataCollectionUpdateRequest = DataCollectionMethodRequest.extend({
|
|
8256
8260
|
id: z.string(),
|
|
8257
|
-
fields: z.record(z.any()),
|
|
8261
|
+
fields: z.record(z.string(), z.any()),
|
|
8258
8262
|
});
|
|
8259
8263
|
const DataCollectionUpdateResponse = z.object({
|
|
8260
8264
|
id: z.string(),
|
|
@@ -8329,7 +8333,21 @@ const DEFAULT_PULL_UPDATES_INTERVAL_SECONDS = 60 * 5;
|
|
|
8329
8333
|
const DEFAULT_FULL_SYNC_INTERVAL_SECONDS = 60 * 60 * 3;
|
|
8330
8334
|
const MIN_FULL_SYNC_INTERVAL_SECONDS = 1 * 60;
|
|
8331
8335
|
const MIN_PULL_UPDATES_INTERVAL_SECONDS = 1 * 60;
|
|
8332
|
-
|
|
8336
|
+
const DataSourceEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
|
|
8337
|
+
parentId: true,
|
|
8338
|
+
}).extend({
|
|
8339
|
+
universalDataSourceId: z.string().optional(),
|
|
8340
|
+
udm: z.string().optional(),
|
|
8341
|
+
pullUpdatesIntervalSeconds: z.number().optional(),
|
|
8342
|
+
fullSyncIntervalSeconds: z.number().optional(),
|
|
8343
|
+
collectionKey: z.string().optional(),
|
|
8344
|
+
collectionParameters: z.any().optional(),
|
|
8345
|
+
defaultPath: z.string().optional(),
|
|
8346
|
+
});
|
|
8347
|
+
const DataSourceReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
8348
|
+
universalDataSourceRevision: z.string().optional(),
|
|
8349
|
+
});
|
|
8350
|
+
const BaseDataSource = BaseMembraneInterface.merge(DataSourceEditableProperties).merge(DataSourceReadOnlyProperties);
|
|
8333
8351
|
const DataSourceUnitConfig = z.object({
|
|
8334
8352
|
key: z.string().optional(),
|
|
8335
8353
|
collectionKey: z.any().optional(),
|
|
@@ -8339,17 +8357,6 @@ const DataSourceUnitConfig = z.object({
|
|
|
8339
8357
|
pullUpdatesIntervalSeconds: z.number().optional(),
|
|
8340
8358
|
fullSyncIntervalSeconds: z.number().optional(),
|
|
8341
8359
|
});
|
|
8342
|
-
const BaseDataSource = BaseIntegrationLevelMembraneInterface.extend({
|
|
8343
|
-
publishedRevision: z.string().optional(),
|
|
8344
|
-
universalDataSourceId: z.string().optional(),
|
|
8345
|
-
universalDataSourceRevision: z.string().optional(),
|
|
8346
|
-
udm: z.string().optional(),
|
|
8347
|
-
pullUpdatesIntervalSeconds: z.number().optional(),
|
|
8348
|
-
fullSyncIntervalSeconds: z.number().optional(),
|
|
8349
|
-
collectionKey: z.string().optional(),
|
|
8350
|
-
collectionParameters: z.any().optional(),
|
|
8351
|
-
defaultPath: z.string().optional(),
|
|
8352
|
-
});
|
|
8353
8360
|
|
|
8354
8361
|
const BaseDataSourceInstance = BaseMembraneInterface.extend({
|
|
8355
8362
|
userId: z.string(),
|
|
@@ -8468,7 +8475,7 @@ const BaseFlowRun = z.object({
|
|
|
8468
8475
|
startTime: z.string(),
|
|
8469
8476
|
endTime: z.string().optional(),
|
|
8470
8477
|
errors: z.array(ErrorDataSchema).optional(),
|
|
8471
|
-
nodes: z.record(FlowRunNode).optional(),
|
|
8478
|
+
nodes: z.record(z.string(), FlowRunNode).optional(),
|
|
8472
8479
|
launchedBy: FlowRunLaunchedBy.optional(),
|
|
8473
8480
|
});
|
|
8474
8481
|
|
|
@@ -8522,6 +8529,26 @@ const FlowNodeRunRecordWithoutOutputsDataSchema = z.object({
|
|
|
8522
8529
|
errors: z.array(ErrorDataSchema),
|
|
8523
8530
|
});
|
|
8524
8531
|
|
|
8532
|
+
const FlowNodeLink = z.object({
|
|
8533
|
+
key: z.string().optional(),
|
|
8534
|
+
filter: z.any().optional(),
|
|
8535
|
+
name: z.string().optional(),
|
|
8536
|
+
});
|
|
8537
|
+
const FlowNode = z.object({
|
|
8538
|
+
type: z.string().optional(),
|
|
8539
|
+
version: z.number().optional(),
|
|
8540
|
+
name: z.string().optional(),
|
|
8541
|
+
description: z.string().optional(),
|
|
8542
|
+
config: z.any().optional(),
|
|
8543
|
+
concurrency: z.number().optional(),
|
|
8544
|
+
onError: z.enum(['stop', 'continue']).optional(),
|
|
8545
|
+
ui: z.any().optional(),
|
|
8546
|
+
inputSchema: z.any().optional(),
|
|
8547
|
+
outputSchema: z.any().optional(),
|
|
8548
|
+
outputExample: z.any().optional(),
|
|
8549
|
+
links: z.array(FlowNodeLink).optional(),
|
|
8550
|
+
isCustomized: z.boolean().optional(),
|
|
8551
|
+
});
|
|
8525
8552
|
class FlowNodeSpec {
|
|
8526
8553
|
constructor(args) {
|
|
8527
8554
|
Object.assign(this, args);
|
|
@@ -8795,33 +8822,19 @@ const FLOW_NODE_SPECS = {
|
|
|
8795
8822
|
[FlowNodeType.RunAction]: RunAction,
|
|
8796
8823
|
};
|
|
8797
8824
|
|
|
8798
|
-
const
|
|
8799
|
-
|
|
8800
|
-
|
|
8801
|
-
|
|
8802
|
-
});
|
|
8803
|
-
const FlowNode = z.object({
|
|
8804
|
-
type: z.string().optional(),
|
|
8805
|
-
version: z.number().optional(),
|
|
8806
|
-
name: z.string().optional(),
|
|
8807
|
-
description: z.string().optional(),
|
|
8808
|
-
config: z.any().optional(),
|
|
8809
|
-
concurrency: z.number().optional(),
|
|
8810
|
-
onError: z.enum(['stop', 'continue']).optional(),
|
|
8811
|
-
ui: z.any().optional(),
|
|
8812
|
-
inputSchema: z.any().optional(),
|
|
8813
|
-
outputSchema: z.any().optional(),
|
|
8814
|
-
outputExample: z.any().optional(),
|
|
8815
|
-
links: z.array(FlowNodeLink).optional(),
|
|
8816
|
-
isCustomized: z.boolean().optional(),
|
|
8817
|
-
});
|
|
8818
|
-
const BaseFlow = BaseIntegrationLevelMembraneInterface.extend({
|
|
8825
|
+
const FlowEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
|
|
8826
|
+
parentId: true,
|
|
8827
|
+
}).extend({
|
|
8828
|
+
integrationId: z.string().optional(),
|
|
8819
8829
|
universalFlowId: z.string().optional(),
|
|
8820
|
-
universalFlowRevision: z.string().optional(),
|
|
8821
8830
|
parametersSchema: DataSchema.optional(),
|
|
8822
|
-
nodes: z.record(FlowNode).optional(),
|
|
8831
|
+
nodes: z.record(z.string(), FlowNode).optional(),
|
|
8823
8832
|
autoCreateInstances: z.boolean().optional(),
|
|
8824
8833
|
});
|
|
8834
|
+
const FlowReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
8835
|
+
universalFlowRevision: z.string().optional(),
|
|
8836
|
+
});
|
|
8837
|
+
const BaseFlow = BaseMembraneInterface.merge(FlowEditableProperties).merge(FlowReadOnlyProperties);
|
|
8825
8838
|
|
|
8826
8839
|
const BaseIntegration = BaseMembraneInterface.extend({
|
|
8827
8840
|
logoUri: z.string(),
|
|
@@ -8903,7 +8916,7 @@ const ScreenBlock = z
|
|
|
8903
8916
|
.object({
|
|
8904
8917
|
type: z.nativeEnum(ScreenBlockType),
|
|
8905
8918
|
})
|
|
8906
|
-
.and(z.record(z.any()));
|
|
8919
|
+
.and(z.record(z.string(), z.any()));
|
|
8907
8920
|
const BaseScreen = BaseWorkspaceElement.extend({
|
|
8908
8921
|
type: z.nativeEnum(ScreenType),
|
|
8909
8922
|
key: z.string().optional(),
|
|
@@ -8913,7 +8926,7 @@ const BaseScreen = BaseWorkspaceElement.extend({
|
|
|
8913
8926
|
const BaseCustomer = z.object({
|
|
8914
8927
|
id: z.string(),
|
|
8915
8928
|
name: z.string(),
|
|
8916
|
-
meta: z.record(z.any()).optional(),
|
|
8929
|
+
meta: z.record(z.string(), z.any()).optional(),
|
|
8917
8930
|
internalId: z.string(),
|
|
8918
8931
|
fields: z.record(z.string(), z.any()).optional(),
|
|
8919
8932
|
credentials: z.any().optional(),
|
|
@@ -8933,7 +8946,7 @@ const BaseFlowInstance = BaseMembraneInterface.extend({
|
|
|
8933
8946
|
instanceKey: z.string().optional(),
|
|
8934
8947
|
parameters: z.any().optional(),
|
|
8935
8948
|
parametersSchema: DataSchema.optional(),
|
|
8936
|
-
nodes: z.record(z.any()).optional(),
|
|
8949
|
+
nodes: z.record(z.string(), z.any()).optional(),
|
|
8937
8950
|
enabled: z.boolean(),
|
|
8938
8951
|
createdAt: z.string(),
|
|
8939
8952
|
updatedAt: z.string(),
|
|
@@ -9101,8 +9114,8 @@ var HttpRequestMethod;
|
|
|
9101
9114
|
const HttpRequestSpec = z.object({
|
|
9102
9115
|
method: z.string().toUpperCase().pipe(z.nativeEnum(HttpRequestMethod)).optional(),
|
|
9103
9116
|
uri: z.any(),
|
|
9104
|
-
headers: z.record(z.any()).optional(),
|
|
9105
|
-
query: z.record(z.any()).optional(),
|
|
9117
|
+
headers: z.record(z.string(), z.any()).optional(),
|
|
9118
|
+
query: z.record(z.string(), z.any()).optional(),
|
|
9106
9119
|
body: z.any().optional(),
|
|
9107
9120
|
});
|
|
9108
9121
|
const HTTP_REQUEST_SCHEMA = {
|
|
@@ -9411,36 +9424,19 @@ const ConnectionMessagePayload = z.discriminatedUnion('type', [
|
|
|
9411
9424
|
}),
|
|
9412
9425
|
]);
|
|
9413
9426
|
|
|
9414
|
-
const
|
|
9415
|
-
.
|
|
9416
|
-
|
|
9417
|
-
})
|
|
9418
|
-
.merge(PaginationQuery);
|
|
9419
|
-
const FindDataSourcesQuery = ListDataSourcesForIntegrationQuery.extend({
|
|
9420
|
-
integrationId: z.string().optional(),
|
|
9427
|
+
const DataSourceApiResponse = BaseDataSource.extend({
|
|
9428
|
+
integration: BaseIntegration.optional(),
|
|
9429
|
+
appliedToIntegrations: AppliedToIntegrations(BaseDataSource).optional(),
|
|
9421
9430
|
});
|
|
9422
|
-
const
|
|
9423
|
-
key: z.string(),
|
|
9424
|
-
name: z.string(),
|
|
9431
|
+
const FindDataSourcesQuery = PaginationQuery.extend({
|
|
9425
9432
|
integrationId: z.string().optional(),
|
|
9426
|
-
|
|
9427
|
-
|
|
9428
|
-
|
|
9429
|
-
|
|
9430
|
-
defaultPath: z.string().optional(),
|
|
9431
|
-
collectionKey: z.string().optional(),
|
|
9432
|
-
collectionParameters: z.any().optional(),
|
|
9433
|
-
});
|
|
9434
|
-
const UpdateDataSourceRequest = z.object({
|
|
9435
|
-
key: z.string().optional(),
|
|
9436
|
-
name: z.string().optional(),
|
|
9437
|
-
archivedAt: z.string().optional(),
|
|
9438
|
-
udm: z.string().optional(),
|
|
9439
|
-
pullUpdatesIntervalSeconds: z.number().optional(),
|
|
9440
|
-
fullSyncIntervalSeconds: z.number().optional(),
|
|
9441
|
-
rootPath: z.string().optional(),
|
|
9442
|
-
defaultPath: z.string().optional(),
|
|
9433
|
+
integrationKey: z.string().optional(),
|
|
9434
|
+
universalDataSourceId: z.string().optional(),
|
|
9435
|
+
search: z.string().optional(),
|
|
9436
|
+
includeArchived: zodBooleanCoercion().optional(),
|
|
9443
9437
|
});
|
|
9438
|
+
const CreateDataSourceRequest = DataSourceEditableProperties;
|
|
9439
|
+
const UpdateDataSourceRequest = CreateDataSourceRequest.extend({}).partial();
|
|
9444
9440
|
const FindDataSourceInstancesQuery = z
|
|
9445
9441
|
.object({
|
|
9446
9442
|
userId: z.string().optional(),
|
|
@@ -9500,10 +9496,6 @@ const FindDataSourceInstanceSyncsQuery = ListDataSourceInstancesForConnectionQue
|
|
|
9500
9496
|
integrationId: z.string().optional(),
|
|
9501
9497
|
dataSourceInstanceId: z.string().optional(),
|
|
9502
9498
|
});
|
|
9503
|
-
const DataSourceApiResponse = BaseDataSource.extend({
|
|
9504
|
-
integration: BaseIntegration.optional(),
|
|
9505
|
-
appliedToIntegrations: AppliedToIntegrations(BaseDataSource).optional(),
|
|
9506
|
-
});
|
|
9507
9499
|
|
|
9508
9500
|
const DataSourceInstanceApiResponse = BaseDataSourceInstance.extend({
|
|
9509
9501
|
user: BaseCustomer.optional(),
|
|
@@ -9516,31 +9508,25 @@ const ExternalEvent = BaseExternalEvent.extend({
|
|
|
9516
9508
|
appliedToIntegrations: AppliedToIntegrations(BaseExternalEvent).optional(),
|
|
9517
9509
|
});
|
|
9518
9510
|
|
|
9519
|
-
const
|
|
9520
|
-
.
|
|
9521
|
-
|
|
9522
|
-
|
|
9523
|
-
|
|
9524
|
-
|
|
9525
|
-
|
|
9526
|
-
})
|
|
9527
|
-
|
|
9528
|
-
type: z.string(),
|
|
9529
|
-
config: z.any().optional(),
|
|
9530
|
-
ui: z.any().optional(),
|
|
9531
|
-
links: z.array(z.lazy(() => z.any())).optional(),
|
|
9511
|
+
const FlowApiResponse = BaseFlow.extend({
|
|
9512
|
+
integration: BaseIntegration.optional(),
|
|
9513
|
+
appliedToIntegrations: AppliedToIntegrations(z.object({
|
|
9514
|
+
id: z.string(),
|
|
9515
|
+
integrationId: z.string().optional(),
|
|
9516
|
+
isCustomized: z.boolean().optional(),
|
|
9517
|
+
universalFlowId: z.string().optional(),
|
|
9518
|
+
})).optional(),
|
|
9519
|
+
dependencies: z.array(z.any()).optional(),
|
|
9532
9520
|
});
|
|
9533
|
-
const
|
|
9534
|
-
key: z.string(),
|
|
9535
|
-
name: z.string(),
|
|
9521
|
+
const FindFlowsQuery = PaginationQuery.extend({
|
|
9536
9522
|
integrationId: z.string().optional(),
|
|
9537
|
-
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
const UpdateFlowRequest = CreateFlowRequest.extend({
|
|
9542
|
-
archivedAt: z.string().optional(),
|
|
9523
|
+
integrationKey: z.string().optional(),
|
|
9524
|
+
universalFlowId: z.string().optional(),
|
|
9525
|
+
search: z.string().optional(),
|
|
9526
|
+
includeArchived: zodBooleanCoercion().optional(),
|
|
9543
9527
|
});
|
|
9528
|
+
const CreateFlowRequest = FlowEditableProperties;
|
|
9529
|
+
const UpdateFlowRequest = CreateFlowRequest.extend({}).partial();
|
|
9544
9530
|
const ListFlowInstancesForConnectionQuery = z
|
|
9545
9531
|
.object({
|
|
9546
9532
|
flowId: z.string().optional(),
|
|
@@ -9554,28 +9540,18 @@ const ResetFlowInstanceOptions = z.object({
|
|
|
9554
9540
|
nodes: z.record(z.string(), z.boolean()).optional(),
|
|
9555
9541
|
allNodes: z.boolean().optional(),
|
|
9556
9542
|
});
|
|
9557
|
-
const RunFlowOptions = z.object({
|
|
9558
|
-
nodeKey: z.string().optional(),
|
|
9559
|
-
input: z.any().optional(),
|
|
9560
|
-
returnImmediately: z.boolean().optional(),
|
|
9561
|
-
onUpdate: z.function().optional(),
|
|
9562
|
-
});
|
|
9563
|
-
const FlowApiResponse = BaseFlow.extend({
|
|
9564
|
-
integration: BaseIntegration.optional(),
|
|
9565
|
-
appliedToIntegrations: AppliedToIntegrations(z.object({
|
|
9566
|
-
id: z.string(),
|
|
9567
|
-
integrationId: z.string().optional(),
|
|
9568
|
-
isCustomized: z.boolean().optional(),
|
|
9569
|
-
universalFlowId: z.string().optional(),
|
|
9570
|
-
})).optional(),
|
|
9571
|
-
dependencies: z.array(z.any()).optional(),
|
|
9572
|
-
});
|
|
9573
9543
|
const FlowInstanceApiResponse = BaseFlowInstance.extend({
|
|
9574
9544
|
user: z.lazy(() => z.any()).optional(),
|
|
9575
9545
|
connection: z.lazy(() => z.any()).optional(),
|
|
9576
9546
|
flow: z.lazy(() => FlowApiResponse).optional(),
|
|
9577
9547
|
integration: z.lazy(() => z.any()).optional(),
|
|
9578
9548
|
});
|
|
9549
|
+
const CreateFlowNodeRequest = z.object({
|
|
9550
|
+
type: z.string(),
|
|
9551
|
+
config: z.any().optional(),
|
|
9552
|
+
ui: z.any().optional(),
|
|
9553
|
+
links: z.array(z.lazy(() => z.any())).optional(),
|
|
9554
|
+
});
|
|
9579
9555
|
|
|
9580
9556
|
const CreateFlowRunRequest = z.object({
|
|
9581
9557
|
flowInstanceId: z.string(),
|
|
@@ -9609,240 +9585,11 @@ const FindFlowRunsResponse = z.object({
|
|
|
9609
9585
|
cursor: z.string().optional(),
|
|
9610
9586
|
});
|
|
9611
9587
|
|
|
9612
|
-
const
|
|
9613
|
-
|
|
9614
|
-
|
|
9615
|
-
|
|
9616
|
-
|
|
9617
|
-
const STYLES_ELEMENT_ID = '__integration-app-embed-styles';
|
|
9618
|
-
const OpenConfigurationOptions = z.object({
|
|
9619
|
-
onClose: z.function().optional(),
|
|
9620
|
-
showPoweredBy: z.boolean().optional(),
|
|
9621
|
-
});
|
|
9622
|
-
let IFRAME_START_SHOW_LOADER_TIME = 0;
|
|
9623
|
-
let IFRAME_SHOW_LOADER_TIMEOUT_ID;
|
|
9624
|
-
const IFRAME_SHOW_LOADER_MINIMAL_TIME = 500;
|
|
9625
|
-
const IFRAME_LAYOUT_SHIFT_TIME = 300;
|
|
9626
|
-
function showIframeLoader() {
|
|
9627
|
-
const container = getContainer();
|
|
9628
|
-
container === null || container === void 0 ? void 0 : container.classList.add(CONTAINER_ELEMENT_CLASS__LOADER);
|
|
9629
|
-
IFRAME_START_SHOW_LOADER_TIME = Date.now();
|
|
9630
|
-
}
|
|
9631
|
-
function hideIframeLoader(waitLayoutShift = IFRAME_LAYOUT_SHIFT_TIME) {
|
|
9632
|
-
if (IFRAME_SHOW_LOADER_TIMEOUT_ID) {
|
|
9633
|
-
clearTimeout(IFRAME_SHOW_LOADER_TIMEOUT_ID);
|
|
9634
|
-
}
|
|
9635
|
-
const delta = Date.now() - IFRAME_START_SHOW_LOADER_TIME;
|
|
9636
|
-
if (delta >= IFRAME_SHOW_LOADER_MINIMAL_TIME) {
|
|
9637
|
-
setTimeout(() => {
|
|
9638
|
-
const container = getContainer();
|
|
9639
|
-
container === null || container === void 0 ? void 0 : container.classList.remove(CONTAINER_ELEMENT_CLASS__LOADER);
|
|
9640
|
-
IFRAME_START_SHOW_LOADER_TIME = 0;
|
|
9641
|
-
}, waitLayoutShift);
|
|
9642
|
-
return;
|
|
9643
|
-
}
|
|
9644
|
-
else {
|
|
9645
|
-
const waitLayoutShift = delta >= IFRAME_LAYOUT_SHIFT_TIME ? 0 : IFRAME_LAYOUT_SHIFT_TIME - delta;
|
|
9646
|
-
const timeoutTime = IFRAME_SHOW_LOADER_MINIMAL_TIME - delta;
|
|
9647
|
-
IFRAME_SHOW_LOADER_TIMEOUT_ID = setTimeout(() => {
|
|
9648
|
-
hideIframeLoader(waitLayoutShift);
|
|
9649
|
-
}, timeoutTime);
|
|
9650
|
-
return;
|
|
9651
|
-
}
|
|
9652
|
-
}
|
|
9653
|
-
async function openIframe(uri, callbacks = {}, { mountTargetSelector } = {}) {
|
|
9654
|
-
close();
|
|
9655
|
-
init(mountTargetSelector);
|
|
9656
|
-
return new Promise((resolve) => {
|
|
9657
|
-
function complete(callback) {
|
|
9658
|
-
close(callback);
|
|
9659
|
-
resolve();
|
|
9660
|
-
}
|
|
9661
|
-
function doOpen() {
|
|
9662
|
-
const iframe = document.createElement('iframe');
|
|
9663
|
-
iframe.src = uri;
|
|
9664
|
-
iframe.id = POPUP_ELEMENT_ID;
|
|
9665
|
-
iframe.onload = () => {
|
|
9666
|
-
hideIframeLoader();
|
|
9667
|
-
};
|
|
9668
|
-
if (!!getContainer()) {
|
|
9669
|
-
document.body.classList.add(BODY_CLASS);
|
|
9670
|
-
showIframeLoader();
|
|
9671
|
-
appendToContainer(iframe);
|
|
9672
|
-
handleIframeUnmount(iframe);
|
|
9673
|
-
connectToChild({
|
|
9674
|
-
iframe,
|
|
9675
|
-
methods: {
|
|
9676
|
-
...callbacks,
|
|
9677
|
-
handshake: (...args) => {
|
|
9678
|
-
var _a;
|
|
9679
|
-
hideIframeLoader();
|
|
9680
|
-
(_a = callbacks === null || callbacks === void 0 ? void 0 : callbacks.handshake) === null || _a === void 0 ? void 0 : _a.call(callbacks, ...args);
|
|
9681
|
-
},
|
|
9682
|
-
close: () => complete(callbacks.onClose),
|
|
9683
|
-
},
|
|
9684
|
-
});
|
|
9685
|
-
}
|
|
9686
|
-
else {
|
|
9687
|
-
throw Error('Membrane container element not found. Was it manually removed?');
|
|
9688
|
-
}
|
|
9689
|
-
}
|
|
9690
|
-
if (document.readyState === 'complete' || document.readyState === 'interactive') {
|
|
9691
|
-
doOpen();
|
|
9692
|
-
}
|
|
9693
|
-
else {
|
|
9694
|
-
document.addEventListener('DOMContentLoaded', () => {
|
|
9695
|
-
doOpen();
|
|
9696
|
-
});
|
|
9697
|
-
}
|
|
9698
|
-
});
|
|
9699
|
-
}
|
|
9700
|
-
function close(callback) {
|
|
9701
|
-
document.body.classList.remove(BODY_CLASS);
|
|
9702
|
-
if (!!getContainer()) {
|
|
9703
|
-
deleteContainer();
|
|
9704
|
-
if (callback) {
|
|
9705
|
-
callback();
|
|
9706
|
-
}
|
|
9707
|
-
}
|
|
9708
|
-
}
|
|
9709
|
-
function init(mountTargetSelector) {
|
|
9710
|
-
var _a;
|
|
9711
|
-
injectStyles(mountTargetSelector);
|
|
9712
|
-
if (!!getContainer()) {
|
|
9713
|
-
return;
|
|
9714
|
-
}
|
|
9715
|
-
const container = createContainer();
|
|
9716
|
-
if (mountTargetSelector && document.querySelector(mountTargetSelector)) {
|
|
9717
|
-
(_a = document.querySelector(mountTargetSelector)) === null || _a === void 0 ? void 0 : _a.appendChild(container);
|
|
9718
|
-
}
|
|
9719
|
-
else {
|
|
9720
|
-
document.body.appendChild(container);
|
|
9721
|
-
}
|
|
9722
|
-
}
|
|
9723
|
-
function injectStyles(mountTargetSelector) {
|
|
9724
|
-
const hasCustomMountTarget = Boolean(mountTargetSelector && document.querySelector(mountTargetSelector));
|
|
9725
|
-
const styles = [
|
|
9726
|
-
`.${CONTAINER_ELEMENT_CLASS}:empty {
|
|
9727
|
-
display: none;
|
|
9728
|
-
}`,
|
|
9729
|
-
hasCustomMountTarget
|
|
9730
|
-
? `.${CONTAINER_ELEMENT_CLASS} {
|
|
9731
|
-
inset: 0;
|
|
9732
|
-
background: rgba(0, 0, 0, 0);
|
|
9733
|
-
transition: background 0.2s ease-out;
|
|
9734
|
-
display: flex;
|
|
9735
|
-
justify-content: center;
|
|
9736
|
-
align-items: center;
|
|
9737
|
-
width: 100%;
|
|
9738
|
-
height: 100%;
|
|
9739
|
-
}`
|
|
9740
|
-
: `.${CONTAINER_ELEMENT_CLASS} {
|
|
9741
|
-
position: fixed;
|
|
9742
|
-
inset: 0;
|
|
9743
|
-
z-index: 2147483647;
|
|
9744
|
-
display: flex;
|
|
9745
|
-
justify-content: center;
|
|
9746
|
-
align-items: center;
|
|
9747
|
-
pointer-events: auto;
|
|
9748
|
-
background: rgba(0, 0, 0, 0);
|
|
9749
|
-
transition: background 0.2s ease-out;
|
|
9750
|
-
}`,
|
|
9751
|
-
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} {
|
|
9752
|
-
background: rgba(0, 0, 0, 0.8);
|
|
9753
|
-
}`,
|
|
9754
|
-
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER}::before {
|
|
9755
|
-
${hasCustomMountTarget ? 'position: absolute;' : ''}
|
|
9756
|
-
content: "";
|
|
9757
|
-
width: 5rem;
|
|
9758
|
-
height: 4rem;
|
|
9759
|
-
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');
|
|
9760
|
-
background-size: contain;
|
|
9761
|
-
background-repeat: no-repeat;
|
|
9762
|
-
background-position: center;
|
|
9763
|
-
filter: invert(1);
|
|
9764
|
-
}`,
|
|
9765
|
-
`.${CONTAINER_ELEMENT_CLASS} iframe {
|
|
9766
|
-
${hasCustomMountTarget ? '' : 'position: absolute;'}
|
|
9767
|
-
width: 100%;
|
|
9768
|
-
height: 100%;
|
|
9769
|
-
border-width: 0;
|
|
9770
|
-
|
|
9771
|
-
/* fix transparent bg, because iframe document has light scheme */
|
|
9772
|
-
color-scheme: light;
|
|
9773
|
-
}`,
|
|
9774
|
-
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} iframe {
|
|
9775
|
-
visibility: hidden;
|
|
9776
|
-
}`,
|
|
9777
|
-
!hasCustomMountTarget
|
|
9778
|
-
? `body.${BODY_CLASS} {
|
|
9779
|
-
overflow: hidden;
|
|
9780
|
-
}`
|
|
9781
|
-
: '',
|
|
9782
|
-
];
|
|
9783
|
-
let styleElement = document.getElementById(STYLES_ELEMENT_ID);
|
|
9784
|
-
if (!styleElement) {
|
|
9785
|
-
styleElement = document.createElement('style');
|
|
9786
|
-
styleElement.id = STYLES_ELEMENT_ID;
|
|
9787
|
-
styleElement.type = 'text/css';
|
|
9788
|
-
document.head.appendChild(styleElement);
|
|
9789
|
-
}
|
|
9790
|
-
styleElement.textContent = styles.join('\n');
|
|
9791
|
-
}
|
|
9792
|
-
function removeInjectedStyles() {
|
|
9793
|
-
const stylesElement = document.getElementById(STYLES_ELEMENT_ID);
|
|
9794
|
-
if (stylesElement) {
|
|
9795
|
-
stylesElement.remove();
|
|
9796
|
-
}
|
|
9797
|
-
}
|
|
9798
|
-
function createContainer() {
|
|
9799
|
-
const container = document.createElement('div');
|
|
9800
|
-
container.id = CONTAINER_ELEMENT_ID;
|
|
9801
|
-
container.classList.add(CONTAINER_ELEMENT_CLASS);
|
|
9802
|
-
return container;
|
|
9803
|
-
}
|
|
9804
|
-
function getContainer() {
|
|
9805
|
-
return document.getElementById(CONTAINER_ELEMENT_ID);
|
|
9806
|
-
}
|
|
9807
|
-
function appendToContainer(el) {
|
|
9808
|
-
const container = getContainer();
|
|
9809
|
-
container === null || container === void 0 ? void 0 : container.appendChild(el);
|
|
9810
|
-
}
|
|
9811
|
-
function deleteContainer() {
|
|
9812
|
-
const container = getContainer();
|
|
9813
|
-
if (container) {
|
|
9814
|
-
container.remove();
|
|
9815
|
-
}
|
|
9816
|
-
removeInjectedStyles();
|
|
9817
|
-
}
|
|
9818
|
-
function handleIframeUnmount(iframe) {
|
|
9819
|
-
const observer = new MutationObserver((mutationsList) => {
|
|
9820
|
-
for (const mutation of mutationsList) {
|
|
9821
|
-
for (const removedNode of mutation.removedNodes) {
|
|
9822
|
-
if (removedNode instanceof HTMLElement && removedNode.id === POPUP_ELEMENT_ID) {
|
|
9823
|
-
observer.disconnect();
|
|
9824
|
-
deleteContainer();
|
|
9825
|
-
return;
|
|
9826
|
-
}
|
|
9827
|
-
}
|
|
9828
|
-
}
|
|
9829
|
-
});
|
|
9830
|
-
const parent = iframe.parentNode;
|
|
9831
|
-
if (parent) {
|
|
9832
|
-
observer.observe(parent, {
|
|
9833
|
-
childList: true,
|
|
9834
|
-
});
|
|
9835
|
-
}
|
|
9836
|
-
else {
|
|
9837
|
-
console.warn(`iframe with ID "${POPUP_ELEMENT_ID}" has no parent node`);
|
|
9838
|
-
}
|
|
9839
|
-
}
|
|
9840
|
-
|
|
9841
|
-
const CreateIntegrationRequest = z.object({
|
|
9842
|
-
name: z.string().optional(),
|
|
9843
|
-
key: z.string(),
|
|
9844
|
-
baseUri: z.string(),
|
|
9845
|
-
logoUri: z.string(),
|
|
9588
|
+
const CreateIntegrationRequest = z.object({
|
|
9589
|
+
name: z.string().optional(),
|
|
9590
|
+
key: z.string(),
|
|
9591
|
+
baseUri: z.string(),
|
|
9592
|
+
logoUri: z.string(),
|
|
9846
9593
|
});
|
|
9847
9594
|
const UpdateIntegrationRequest = z.object({
|
|
9848
9595
|
name: z.string().optional(),
|
|
@@ -9851,13 +9598,6 @@ const UpdateIntegrationRequest = z.object({
|
|
|
9851
9598
|
logoUri: z.string().optional(),
|
|
9852
9599
|
});
|
|
9853
9600
|
const FindIntegrationsQuery = z.object({}).merge(PaginationQuery).merge(SearchQuery);
|
|
9854
|
-
const OpenNewConnectionOptions = z
|
|
9855
|
-
.object({
|
|
9856
|
-
allowMultipleConnections: z.boolean().optional(),
|
|
9857
|
-
name: z.string().optional(),
|
|
9858
|
-
connectorParameters: z.any().optional(),
|
|
9859
|
-
})
|
|
9860
|
-
.merge(OpenConfigurationOptions);
|
|
9861
9601
|
const IntegrationAuthUi = z.object({
|
|
9862
9602
|
schema: z.any().optional(),
|
|
9863
9603
|
helpUri: z.string().optional(),
|
|
@@ -9913,6 +9653,15 @@ const FieldMappingApiResponse = BaseFieldMapping.extend({
|
|
|
9913
9653
|
integration: BaseIntegration.optional(),
|
|
9914
9654
|
appliedToIntegrations: AppliedToIntegrations(BaseFieldMapping).optional(),
|
|
9915
9655
|
});
|
|
9656
|
+
const FindFieldMappingsQuery = PaginationQuery.extend({
|
|
9657
|
+
integrationId: z.string().optional(),
|
|
9658
|
+
integrationKey: z.string().optional(),
|
|
9659
|
+
universalFieldMappingId: z.string().optional(),
|
|
9660
|
+
search: z.string().optional(),
|
|
9661
|
+
includeArchived: zodBooleanCoercion().optional(),
|
|
9662
|
+
});
|
|
9663
|
+
const CreateFieldMappingRequest = FieldMappingEditableProperties;
|
|
9664
|
+
const UpdateFieldMappingRequest = CreateFieldMappingRequest.extend({}).partial();
|
|
9916
9665
|
|
|
9917
9666
|
const FieldMappingInstanceApiResponse = BaseFieldMappingInstance.extend({
|
|
9918
9667
|
user: BaseCustomer.optional(),
|
|
@@ -10678,6 +10427,29 @@ function timestampToDate(value) {
|
|
|
10678
10427
|
}
|
|
10679
10428
|
}
|
|
10680
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
|
+
|
|
10681
10453
|
var UsageType;
|
|
10682
10454
|
(function (UsageType) {
|
|
10683
10455
|
UsageType["FLOW_RUNS_DURATION"] = "flow-runs-duration";
|
|
@@ -11122,6 +10894,231 @@ class IntegrationLevelActionsListAccessor extends IntegrationLevelElementsListAc
|
|
|
11122
10894
|
}
|
|
11123
10895
|
}
|
|
11124
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
|
+
|
|
11125
11122
|
class ConnectionLevelElementAccessor {
|
|
11126
11123
|
constructor(client, connectionSelector, selector, elementKey, query) {
|
|
11127
11124
|
this.client = client;
|
|
@@ -12365,20 +12362,20 @@ const HandyScenarioTemplateElement = z.object({
|
|
|
12365
12362
|
key: z.string(),
|
|
12366
12363
|
name: z.string(),
|
|
12367
12364
|
})
|
|
12368
|
-
.and(z.record(z.any())),
|
|
12365
|
+
.and(z.record(z.string(), z.any())),
|
|
12369
12366
|
});
|
|
12370
12367
|
const withIntegrationKeys = (schema) => schema.and(z.object({ integrationKeys: z.array(z.string()).optional() }));
|
|
12371
12368
|
const ElementsExportFields = z.object({
|
|
12372
|
-
flows: z.record(withIntegrationKeys(z.any())).optional(),
|
|
12373
|
-
actions: z.record(withIntegrationKeys(z.any())).optional(),
|
|
12374
|
-
fieldMappings: z.record(withIntegrationKeys(z.any())).optional(),
|
|
12375
|
-
dataSources: z.record(withIntegrationKeys(z.any())).optional(),
|
|
12376
|
-
dataLinkTables: z.record(z.any()).optional(),
|
|
12377
|
-
appEventTypes: z.record(z.any()).optional(),
|
|
12378
|
-
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(),
|
|
12379
12376
|
});
|
|
12380
12377
|
const ScenarioTemplateElements = ElementsExportFields.and(z.object({
|
|
12381
|
-
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(),
|
|
12382
12379
|
}));
|
|
12383
12380
|
const ScenarioTemplate = z.object({
|
|
12384
12381
|
id: z.string(),
|
|
@@ -12689,5 +12686,5 @@ class MembraneClient extends MembraneApiClient {
|
|
|
12689
12686
|
|
|
12690
12687
|
injectFormulaCatalog(getFormula, isFormula, hasFormulas);
|
|
12691
12688
|
|
|
12692
|
-
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, 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, 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, FieldMappingInstanceAccessor, FieldMappingInstanceApiResponse, FieldMappingInstancesAccessor, FieldMappingUnitConfig, FieldMappingsAccessor, FindActionInstancesQuery, FindActionsQuery, FindConnectionsQuery, FindConnectionsResponse, FindCustomersQuery, FindDataSourceEventsQuery, FindDataSourceInstanceSyncsQuery, FindDataSourceInstancesQuery, FindDataSourceSyncsQuery, FindDataSourcesQuery, FindFlowInstancesQuery, FindFlowRunsQuery, FindFlowRunsResponse, FindFlowsQuery, FindIntegrationsQuery, FindScenariosQuery, FlowAccessor, FlowApiResponse, 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, ListDataSourcesForIntegrationQuery, ListExternalEventLogRecordsQuery, ListExternalEventPullsQuery, ListFlowInstancesForConnectionQuery, ListFlowsForIntegrationQuery, 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, 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 };
|
|
12693
12690
|
//# sourceMappingURL=index.browser.mjs.map
|