@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.node.mjs
CHANGED
|
@@ -5,9 +5,9 @@ import jsonata from 'jsonata';
|
|
|
5
5
|
import deepEqual from 'fast-deep-equal';
|
|
6
6
|
import structuredClonePolyfill from '@ungap/structured-clone';
|
|
7
7
|
import urljoin from 'url-join';
|
|
8
|
-
import {
|
|
9
|
-
import { fromError } from 'zod-validation-error/v3';
|
|
8
|
+
import { fromError } from 'zod-validation-error/v4';
|
|
10
9
|
import qs from 'qs';
|
|
10
|
+
import { connectToChild } from 'penpal';
|
|
11
11
|
import axiosOriginal from 'axios';
|
|
12
12
|
import * as fs from 'fs';
|
|
13
13
|
import * as path from 'path';
|
|
@@ -1320,7 +1320,7 @@ const DataSchema = z.lazy(() => z
|
|
|
1320
1320
|
description: z.string().optional(),
|
|
1321
1321
|
type: z.union([z.string(), z.array(z.string())]).optional(),
|
|
1322
1322
|
format: z.string().optional(),
|
|
1323
|
-
properties: z.record(DataSchema).optional(),
|
|
1323
|
+
properties: z.record(z.string(), DataSchema).optional(),
|
|
1324
1324
|
items: DataSchema.optional(),
|
|
1325
1325
|
additionalProperties: z.union([z.boolean(), DataSchema]).optional(),
|
|
1326
1326
|
enum: z.array(z.string()).optional(),
|
|
@@ -1328,7 +1328,7 @@ const DataSchema = z.lazy(() => z
|
|
|
1328
1328
|
referenceCollection: z
|
|
1329
1329
|
.object({
|
|
1330
1330
|
key: z.any().optional(),
|
|
1331
|
-
parameters: z.record(z.any()).optional(),
|
|
1331
|
+
parameters: z.record(z.string(), z.any()).optional(),
|
|
1332
1332
|
})
|
|
1333
1333
|
.optional(),
|
|
1334
1334
|
referenceUdm: z.string().optional(),
|
|
@@ -3459,40 +3459,6 @@ const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = BaseMembraneInte
|
|
|
3459
3459
|
});
|
|
3460
3460
|
const BaseIntegrationLevelMembraneInterface = BaseMembraneInterface.merge(BaseIntegrationLevelMembraneInterfaceEditableProperties).merge(BaseIntegrationLevelMembraneInterfaceReadOnlyProperties);
|
|
3461
3461
|
|
|
3462
|
-
var FieldMappingDirection;
|
|
3463
|
-
(function (FieldMappingDirection) {
|
|
3464
|
-
FieldMappingDirection["IMPORT"] = "import";
|
|
3465
|
-
FieldMappingDirection["EXPORT"] = "export";
|
|
3466
|
-
FieldMappingDirection["BOTH"] = "both";
|
|
3467
|
-
})(FieldMappingDirection || (FieldMappingDirection = {}));
|
|
3468
|
-
const BaseFieldMapping = BaseIntegrationLevelMembraneInterface.extend({
|
|
3469
|
-
publishedRevision: z.string().optional(),
|
|
3470
|
-
universalFieldMappingId: z.string().optional(),
|
|
3471
|
-
universalFieldMappingRevision: z.string().optional(),
|
|
3472
|
-
dataSourceId: z.string().optional(),
|
|
3473
|
-
dataSourceKey: z.string().optional(),
|
|
3474
|
-
appSchema: DataSchema.optional(),
|
|
3475
|
-
direction: z.nativeEnum(FieldMappingDirection).optional(),
|
|
3476
|
-
defaultImportValue: z.any().optional(),
|
|
3477
|
-
defaultExportValue: z.any().optional(),
|
|
3478
|
-
importValue: z.any().optional(),
|
|
3479
|
-
exportValue: z.any().optional(),
|
|
3480
|
-
frozenImportFields: z.any().optional(),
|
|
3481
|
-
frozenExportFields: z.any().optional(),
|
|
3482
|
-
frozenUnifiedExportFields: z.any().optional(),
|
|
3483
|
-
});
|
|
3484
|
-
const FieldMappingUnitConfig = z.object({
|
|
3485
|
-
key: z.string().optional(),
|
|
3486
|
-
input: z.any().optional(),
|
|
3487
|
-
includeRawFields: z.any().optional(),
|
|
3488
|
-
importValue: z.any().optional(),
|
|
3489
|
-
exportValue: z.any().optional(),
|
|
3490
|
-
default: z.any().optional(),
|
|
3491
|
-
defaultUnifiedValue: z.any().optional(),
|
|
3492
|
-
defaultValue: z.any().optional(),
|
|
3493
|
-
appSchema: DataSchema.optional(),
|
|
3494
|
-
});
|
|
3495
|
-
|
|
3496
3462
|
function mergeWithFormulas(a, b) {
|
|
3497
3463
|
if (Array.isArray(a) && Array.isArray(b)) {
|
|
3498
3464
|
const length = Math.max(a.length, b.length);
|
|
@@ -3523,6 +3489,44 @@ function isObject(value) {
|
|
|
3523
3489
|
!(value instanceof Boolean));
|
|
3524
3490
|
}
|
|
3525
3491
|
|
|
3492
|
+
var FieldMappingDirection;
|
|
3493
|
+
(function (FieldMappingDirection) {
|
|
3494
|
+
FieldMappingDirection["IMPORT"] = "import";
|
|
3495
|
+
FieldMappingDirection["EXPORT"] = "export";
|
|
3496
|
+
FieldMappingDirection["BOTH"] = "both";
|
|
3497
|
+
})(FieldMappingDirection || (FieldMappingDirection = {}));
|
|
3498
|
+
const FieldMappingEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
|
|
3499
|
+
parentId: true,
|
|
3500
|
+
}).extend({
|
|
3501
|
+
universalFieldMappingId: z.string().optional(),
|
|
3502
|
+
dataSourceKey: z.string().optional(),
|
|
3503
|
+
dataSourceId: z.string().optional(),
|
|
3504
|
+
appSchema: DataSchema.optional(),
|
|
3505
|
+
direction: z.nativeEnum(FieldMappingDirection).optional(),
|
|
3506
|
+
defaultImportValue: z.any().optional(),
|
|
3507
|
+
defaultExportValue: z.any().optional(),
|
|
3508
|
+
importValue: z.any().optional(),
|
|
3509
|
+
exportValue: z.any().optional(),
|
|
3510
|
+
frozenImportFields: z.any().optional(),
|
|
3511
|
+
frozenExportFields: z.any().optional(),
|
|
3512
|
+
frozenUnifiedExportFields: z.any().optional(),
|
|
3513
|
+
});
|
|
3514
|
+
const FieldMappingReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
3515
|
+
universalFieldMappingRevision: z.string().optional(),
|
|
3516
|
+
});
|
|
3517
|
+
const BaseFieldMapping = BaseMembraneInterface.merge(FieldMappingEditableProperties).merge(FieldMappingReadOnlyProperties);
|
|
3518
|
+
const FieldMappingUnitConfig = z.object({
|
|
3519
|
+
key: z.string().optional(),
|
|
3520
|
+
input: z.any().optional(),
|
|
3521
|
+
includeRawFields: z.any().optional(),
|
|
3522
|
+
importValue: z.any().optional(),
|
|
3523
|
+
exportValue: z.any().optional(),
|
|
3524
|
+
default: z.any().optional(),
|
|
3525
|
+
defaultUnifiedValue: z.any().optional(),
|
|
3526
|
+
defaultValue: z.any().optional(),
|
|
3527
|
+
appSchema: DataSchema.optional(),
|
|
3528
|
+
});
|
|
3529
|
+
|
|
3526
3530
|
var ActionType;
|
|
3527
3531
|
(function (ActionType) {
|
|
3528
3532
|
ActionType["ListDataRecords"] = "list-data-records";
|
|
@@ -3635,9 +3639,9 @@ const BaseAction = BaseMembraneInterface.merge(ActionEditableProperties).merge(A
|
|
|
3635
3639
|
const ConnectionRequest = z.object({
|
|
3636
3640
|
path: z.any(),
|
|
3637
3641
|
method: z.enum(['GET', 'POST', 'PUT', 'PATCH', 'DELETE']).optional(),
|
|
3638
|
-
pathParameters: z.record(z.string()).optional(),
|
|
3639
|
-
headers: z.record(z.string()).optional(),
|
|
3640
|
-
query: z.record(z.string()).optional(),
|
|
3642
|
+
pathParameters: z.record(z.string(), z.string()).optional(),
|
|
3643
|
+
headers: z.record(z.string(), z.string()).optional(),
|
|
3644
|
+
query: z.record(z.string(), z.string()).optional(),
|
|
3641
3645
|
data: z.any().optional(),
|
|
3642
3646
|
});
|
|
3643
3647
|
const BaseConnection = BaseWorkspaceElement.extend({
|
|
@@ -3656,7 +3660,7 @@ const BaseConnection = BaseWorkspaceElement.extend({
|
|
|
3656
3660
|
nextCredentialsRefreshAt: z.string().optional(),
|
|
3657
3661
|
archivedAt: z.string().optional(),
|
|
3658
3662
|
isDeactivated: z.boolean().optional(),
|
|
3659
|
-
meta: z.record(z.any()).optional(),
|
|
3663
|
+
meta: z.record(z.string(), z.any()).optional(),
|
|
3660
3664
|
});
|
|
3661
3665
|
class ConnectionSpec {
|
|
3662
3666
|
constructor(opts) {
|
|
@@ -3993,10 +3997,10 @@ const DataRecordSchema = z.object({
|
|
|
3993
3997
|
name: z.string().optional(),
|
|
3994
3998
|
uri: z.string().optional(),
|
|
3995
3999
|
iconUri: z.string().optional(),
|
|
3996
|
-
fields: z.record(z.any()).optional(),
|
|
4000
|
+
fields: z.record(z.string(), z.any()).optional(),
|
|
3997
4001
|
udm: z.string().optional(),
|
|
3998
|
-
unifiedFields: z.record(z.any()).optional(),
|
|
3999
|
-
rawFields: z.record(z.any()).optional(),
|
|
4002
|
+
unifiedFields: z.record(z.string(), z.any()).optional(),
|
|
4003
|
+
rawFields: z.record(z.string(), z.any()).optional(),
|
|
4000
4004
|
createdTime: z.string().optional(),
|
|
4001
4005
|
updatedTime: z.string().optional(),
|
|
4002
4006
|
deletedTime: z.string().optional(),
|
|
@@ -8181,10 +8185,10 @@ const DataCollectionEventsSpec = z
|
|
|
8181
8185
|
.catchall(DataCollectionEventTypeSpec);
|
|
8182
8186
|
const DataCollectionUdmSpec = z.object({
|
|
8183
8187
|
fields: z.array(z.string()).optional(),
|
|
8184
|
-
extract: z.record(z.any()).optional(),
|
|
8185
|
-
parse: z.record(z.any()).optional(),
|
|
8188
|
+
extract: z.record(z.string(), z.any()).optional(),
|
|
8189
|
+
parse: z.record(z.string(), z.any()).optional(),
|
|
8186
8190
|
});
|
|
8187
|
-
const DataCollectionUdmsSpec = z.record(DataCollectionUdmSpec);
|
|
8191
|
+
const DataCollectionUdmsSpec = z.record(z.string(), DataCollectionUdmSpec);
|
|
8188
8192
|
const DataCollectionSpec = z.object({
|
|
8189
8193
|
type: z.literal('collection'),
|
|
8190
8194
|
key: z.string().optional(),
|
|
@@ -8204,7 +8208,7 @@ const DataCollectionSpec = z.object({
|
|
|
8204
8208
|
find: DataCollectionFindSpec.optional(),
|
|
8205
8209
|
});
|
|
8206
8210
|
const DataCollectionMethodRequest = z.object({
|
|
8207
|
-
parameters: z.record(z.any()).optional(),
|
|
8211
|
+
parameters: z.record(z.string(), z.any()).optional(),
|
|
8208
8212
|
});
|
|
8209
8213
|
const DataCollectionFindRequest = z.object({
|
|
8210
8214
|
query: z.any().optional(),
|
|
@@ -8220,8 +8224,8 @@ const DataCollectionListRequest = DataCollectionMethodRequest.extend({
|
|
|
8220
8224
|
cursor: z.string().optional(),
|
|
8221
8225
|
});
|
|
8222
8226
|
const DataCollectionListResponseDrilldown = z.object({
|
|
8223
|
-
parameters: z.record(z.any()).optional(),
|
|
8224
|
-
filter: z.record(z.any()).optional(),
|
|
8227
|
+
parameters: z.record(z.string(), z.any()).optional(),
|
|
8228
|
+
filter: z.record(z.string(), z.any()).optional(),
|
|
8225
8229
|
});
|
|
8226
8230
|
const DataCollectionListResponse = z.object({
|
|
8227
8231
|
records: z.array(DataRecordSchema),
|
|
@@ -8244,20 +8248,20 @@ const DataCollectionFindByIdResponse = z.object({
|
|
|
8244
8248
|
record: DataRecordSchema,
|
|
8245
8249
|
});
|
|
8246
8250
|
const DataCollectionMatchRequest = DataCollectionMethodRequest.extend({
|
|
8247
|
-
query: z.record(z.any()),
|
|
8251
|
+
query: z.record(z.string(), z.any()),
|
|
8248
8252
|
});
|
|
8249
8253
|
const DataCollectionMatchResponse = z.object({
|
|
8250
8254
|
record: DataRecordSchema.optional(),
|
|
8251
8255
|
});
|
|
8252
8256
|
const DataCollectionCreateRequest = DataCollectionMethodRequest.extend({
|
|
8253
|
-
fields: z.record(z.any()),
|
|
8257
|
+
fields: z.record(z.string(), z.any()),
|
|
8254
8258
|
});
|
|
8255
8259
|
const DataCollectionCreateResponse = z.object({
|
|
8256
8260
|
id: z.string(),
|
|
8257
8261
|
});
|
|
8258
8262
|
const DataCollectionUpdateRequest = DataCollectionMethodRequest.extend({
|
|
8259
8263
|
id: z.string(),
|
|
8260
|
-
fields: z.record(z.any()),
|
|
8264
|
+
fields: z.record(z.string(), z.any()),
|
|
8261
8265
|
});
|
|
8262
8266
|
const DataCollectionUpdateResponse = z.object({
|
|
8263
8267
|
id: z.string(),
|
|
@@ -8332,7 +8336,21 @@ const DEFAULT_PULL_UPDATES_INTERVAL_SECONDS = 60 * 5;
|
|
|
8332
8336
|
const DEFAULT_FULL_SYNC_INTERVAL_SECONDS = 60 * 60 * 3;
|
|
8333
8337
|
const MIN_FULL_SYNC_INTERVAL_SECONDS = 1 * 60;
|
|
8334
8338
|
const MIN_PULL_UPDATES_INTERVAL_SECONDS = 1 * 60;
|
|
8335
|
-
|
|
8339
|
+
const DataSourceEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
|
|
8340
|
+
parentId: true,
|
|
8341
|
+
}).extend({
|
|
8342
|
+
universalDataSourceId: z.string().optional(),
|
|
8343
|
+
udm: z.string().optional(),
|
|
8344
|
+
pullUpdatesIntervalSeconds: z.number().optional(),
|
|
8345
|
+
fullSyncIntervalSeconds: z.number().optional(),
|
|
8346
|
+
collectionKey: z.string().optional(),
|
|
8347
|
+
collectionParameters: z.any().optional(),
|
|
8348
|
+
defaultPath: z.string().optional(),
|
|
8349
|
+
});
|
|
8350
|
+
const DataSourceReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
8351
|
+
universalDataSourceRevision: z.string().optional(),
|
|
8352
|
+
});
|
|
8353
|
+
const BaseDataSource = BaseMembraneInterface.merge(DataSourceEditableProperties).merge(DataSourceReadOnlyProperties);
|
|
8336
8354
|
const DataSourceUnitConfig = z.object({
|
|
8337
8355
|
key: z.string().optional(),
|
|
8338
8356
|
collectionKey: z.any().optional(),
|
|
@@ -8342,17 +8360,6 @@ const DataSourceUnitConfig = z.object({
|
|
|
8342
8360
|
pullUpdatesIntervalSeconds: z.number().optional(),
|
|
8343
8361
|
fullSyncIntervalSeconds: z.number().optional(),
|
|
8344
8362
|
});
|
|
8345
|
-
const BaseDataSource = BaseIntegrationLevelMembraneInterface.extend({
|
|
8346
|
-
publishedRevision: z.string().optional(),
|
|
8347
|
-
universalDataSourceId: z.string().optional(),
|
|
8348
|
-
universalDataSourceRevision: z.string().optional(),
|
|
8349
|
-
udm: z.string().optional(),
|
|
8350
|
-
pullUpdatesIntervalSeconds: z.number().optional(),
|
|
8351
|
-
fullSyncIntervalSeconds: z.number().optional(),
|
|
8352
|
-
collectionKey: z.string().optional(),
|
|
8353
|
-
collectionParameters: z.any().optional(),
|
|
8354
|
-
defaultPath: z.string().optional(),
|
|
8355
|
-
});
|
|
8356
8363
|
|
|
8357
8364
|
const BaseDataSourceInstance = BaseMembraneInterface.extend({
|
|
8358
8365
|
userId: z.string(),
|
|
@@ -8471,7 +8478,7 @@ const BaseFlowRun = z.object({
|
|
|
8471
8478
|
startTime: z.string(),
|
|
8472
8479
|
endTime: z.string().optional(),
|
|
8473
8480
|
errors: z.array(ErrorDataSchema).optional(),
|
|
8474
|
-
nodes: z.record(FlowRunNode).optional(),
|
|
8481
|
+
nodes: z.record(z.string(), FlowRunNode).optional(),
|
|
8475
8482
|
launchedBy: FlowRunLaunchedBy.optional(),
|
|
8476
8483
|
});
|
|
8477
8484
|
|
|
@@ -8525,6 +8532,26 @@ const FlowNodeRunRecordWithoutOutputsDataSchema = z.object({
|
|
|
8525
8532
|
errors: z.array(ErrorDataSchema),
|
|
8526
8533
|
});
|
|
8527
8534
|
|
|
8535
|
+
const FlowNodeLink = z.object({
|
|
8536
|
+
key: z.string().optional(),
|
|
8537
|
+
filter: z.any().optional(),
|
|
8538
|
+
name: z.string().optional(),
|
|
8539
|
+
});
|
|
8540
|
+
const FlowNode = z.object({
|
|
8541
|
+
type: z.string().optional(),
|
|
8542
|
+
version: z.number().optional(),
|
|
8543
|
+
name: z.string().optional(),
|
|
8544
|
+
description: z.string().optional(),
|
|
8545
|
+
config: z.any().optional(),
|
|
8546
|
+
concurrency: z.number().optional(),
|
|
8547
|
+
onError: z.enum(['stop', 'continue']).optional(),
|
|
8548
|
+
ui: z.any().optional(),
|
|
8549
|
+
inputSchema: z.any().optional(),
|
|
8550
|
+
outputSchema: z.any().optional(),
|
|
8551
|
+
outputExample: z.any().optional(),
|
|
8552
|
+
links: z.array(FlowNodeLink).optional(),
|
|
8553
|
+
isCustomized: z.boolean().optional(),
|
|
8554
|
+
});
|
|
8528
8555
|
class FlowNodeSpec {
|
|
8529
8556
|
constructor(args) {
|
|
8530
8557
|
Object.assign(this, args);
|
|
@@ -8798,33 +8825,19 @@ const FLOW_NODE_SPECS = {
|
|
|
8798
8825
|
[FlowNodeType.RunAction]: RunAction,
|
|
8799
8826
|
};
|
|
8800
8827
|
|
|
8801
|
-
const
|
|
8802
|
-
|
|
8803
|
-
|
|
8804
|
-
|
|
8805
|
-
});
|
|
8806
|
-
const FlowNode = z.object({
|
|
8807
|
-
type: z.string().optional(),
|
|
8808
|
-
version: z.number().optional(),
|
|
8809
|
-
name: z.string().optional(),
|
|
8810
|
-
description: z.string().optional(),
|
|
8811
|
-
config: z.any().optional(),
|
|
8812
|
-
concurrency: z.number().optional(),
|
|
8813
|
-
onError: z.enum(['stop', 'continue']).optional(),
|
|
8814
|
-
ui: z.any().optional(),
|
|
8815
|
-
inputSchema: z.any().optional(),
|
|
8816
|
-
outputSchema: z.any().optional(),
|
|
8817
|
-
outputExample: z.any().optional(),
|
|
8818
|
-
links: z.array(FlowNodeLink).optional(),
|
|
8819
|
-
isCustomized: z.boolean().optional(),
|
|
8820
|
-
});
|
|
8821
|
-
const BaseFlow = BaseIntegrationLevelMembraneInterface.extend({
|
|
8828
|
+
const FlowEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
|
|
8829
|
+
parentId: true,
|
|
8830
|
+
}).extend({
|
|
8831
|
+
integrationId: z.string().optional(),
|
|
8822
8832
|
universalFlowId: z.string().optional(),
|
|
8823
|
-
universalFlowRevision: z.string().optional(),
|
|
8824
8833
|
parametersSchema: DataSchema.optional(),
|
|
8825
|
-
nodes: z.record(FlowNode).optional(),
|
|
8834
|
+
nodes: z.record(z.string(), FlowNode).optional(),
|
|
8826
8835
|
autoCreateInstances: z.boolean().optional(),
|
|
8827
8836
|
});
|
|
8837
|
+
const FlowReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
8838
|
+
universalFlowRevision: z.string().optional(),
|
|
8839
|
+
});
|
|
8840
|
+
const BaseFlow = BaseMembraneInterface.merge(FlowEditableProperties).merge(FlowReadOnlyProperties);
|
|
8828
8841
|
|
|
8829
8842
|
const BaseIntegration = BaseMembraneInterface.extend({
|
|
8830
8843
|
logoUri: z.string(),
|
|
@@ -8906,7 +8919,7 @@ const ScreenBlock = z
|
|
|
8906
8919
|
.object({
|
|
8907
8920
|
type: z.nativeEnum(ScreenBlockType),
|
|
8908
8921
|
})
|
|
8909
|
-
.and(z.record(z.any()));
|
|
8922
|
+
.and(z.record(z.string(), z.any()));
|
|
8910
8923
|
const BaseScreen = BaseWorkspaceElement.extend({
|
|
8911
8924
|
type: z.nativeEnum(ScreenType),
|
|
8912
8925
|
key: z.string().optional(),
|
|
@@ -8916,7 +8929,7 @@ const BaseScreen = BaseWorkspaceElement.extend({
|
|
|
8916
8929
|
const BaseCustomer = z.object({
|
|
8917
8930
|
id: z.string(),
|
|
8918
8931
|
name: z.string(),
|
|
8919
|
-
meta: z.record(z.any()).optional(),
|
|
8932
|
+
meta: z.record(z.string(), z.any()).optional(),
|
|
8920
8933
|
internalId: z.string(),
|
|
8921
8934
|
fields: z.record(z.string(), z.any()).optional(),
|
|
8922
8935
|
credentials: z.any().optional(),
|
|
@@ -8936,7 +8949,7 @@ const BaseFlowInstance = BaseMembraneInterface.extend({
|
|
|
8936
8949
|
instanceKey: z.string().optional(),
|
|
8937
8950
|
parameters: z.any().optional(),
|
|
8938
8951
|
parametersSchema: DataSchema.optional(),
|
|
8939
|
-
nodes: z.record(z.any()).optional(),
|
|
8952
|
+
nodes: z.record(z.string(), z.any()).optional(),
|
|
8940
8953
|
enabled: z.boolean(),
|
|
8941
8954
|
createdAt: z.string(),
|
|
8942
8955
|
updatedAt: z.string(),
|
|
@@ -9104,8 +9117,8 @@ var HttpRequestMethod;
|
|
|
9104
9117
|
const HttpRequestSpec = z.object({
|
|
9105
9118
|
method: z.string().toUpperCase().pipe(z.nativeEnum(HttpRequestMethod)).optional(),
|
|
9106
9119
|
uri: z.any(),
|
|
9107
|
-
headers: z.record(z.any()).optional(),
|
|
9108
|
-
query: z.record(z.any()).optional(),
|
|
9120
|
+
headers: z.record(z.string(), z.any()).optional(),
|
|
9121
|
+
query: z.record(z.string(), z.any()).optional(),
|
|
9109
9122
|
body: z.any().optional(),
|
|
9110
9123
|
});
|
|
9111
9124
|
const HTTP_REQUEST_SCHEMA = {
|
|
@@ -9414,36 +9427,19 @@ const ConnectionMessagePayload = z.discriminatedUnion('type', [
|
|
|
9414
9427
|
}),
|
|
9415
9428
|
]);
|
|
9416
9429
|
|
|
9417
|
-
const
|
|
9418
|
-
.
|
|
9419
|
-
|
|
9420
|
-
})
|
|
9421
|
-
.merge(PaginationQuery);
|
|
9422
|
-
const FindDataSourcesQuery = ListDataSourcesForIntegrationQuery.extend({
|
|
9423
|
-
integrationId: z.string().optional(),
|
|
9430
|
+
const DataSourceApiResponse = BaseDataSource.extend({
|
|
9431
|
+
integration: BaseIntegration.optional(),
|
|
9432
|
+
appliedToIntegrations: AppliedToIntegrations(BaseDataSource).optional(),
|
|
9424
9433
|
});
|
|
9425
|
-
const
|
|
9426
|
-
key: z.string(),
|
|
9427
|
-
name: z.string(),
|
|
9434
|
+
const FindDataSourcesQuery = PaginationQuery.extend({
|
|
9428
9435
|
integrationId: z.string().optional(),
|
|
9429
|
-
|
|
9430
|
-
|
|
9431
|
-
|
|
9432
|
-
|
|
9433
|
-
defaultPath: z.string().optional(),
|
|
9434
|
-
collectionKey: z.string().optional(),
|
|
9435
|
-
collectionParameters: z.any().optional(),
|
|
9436
|
-
});
|
|
9437
|
-
const UpdateDataSourceRequest = z.object({
|
|
9438
|
-
key: z.string().optional(),
|
|
9439
|
-
name: z.string().optional(),
|
|
9440
|
-
archivedAt: z.string().optional(),
|
|
9441
|
-
udm: z.string().optional(),
|
|
9442
|
-
pullUpdatesIntervalSeconds: z.number().optional(),
|
|
9443
|
-
fullSyncIntervalSeconds: z.number().optional(),
|
|
9444
|
-
rootPath: z.string().optional(),
|
|
9445
|
-
defaultPath: z.string().optional(),
|
|
9436
|
+
integrationKey: z.string().optional(),
|
|
9437
|
+
universalDataSourceId: z.string().optional(),
|
|
9438
|
+
search: z.string().optional(),
|
|
9439
|
+
includeArchived: zodBooleanCoercion().optional(),
|
|
9446
9440
|
});
|
|
9441
|
+
const CreateDataSourceRequest = DataSourceEditableProperties;
|
|
9442
|
+
const UpdateDataSourceRequest = CreateDataSourceRequest.extend({}).partial();
|
|
9447
9443
|
const FindDataSourceInstancesQuery = z
|
|
9448
9444
|
.object({
|
|
9449
9445
|
userId: z.string().optional(),
|
|
@@ -9503,10 +9499,6 @@ const FindDataSourceInstanceSyncsQuery = ListDataSourceInstancesForConnectionQue
|
|
|
9503
9499
|
integrationId: z.string().optional(),
|
|
9504
9500
|
dataSourceInstanceId: z.string().optional(),
|
|
9505
9501
|
});
|
|
9506
|
-
const DataSourceApiResponse = BaseDataSource.extend({
|
|
9507
|
-
integration: BaseIntegration.optional(),
|
|
9508
|
-
appliedToIntegrations: AppliedToIntegrations(BaseDataSource).optional(),
|
|
9509
|
-
});
|
|
9510
9502
|
|
|
9511
9503
|
const DataSourceInstanceApiResponse = BaseDataSourceInstance.extend({
|
|
9512
9504
|
user: BaseCustomer.optional(),
|
|
@@ -9519,31 +9511,25 @@ const ExternalEvent = BaseExternalEvent.extend({
|
|
|
9519
9511
|
appliedToIntegrations: AppliedToIntegrations(BaseExternalEvent).optional(),
|
|
9520
9512
|
});
|
|
9521
9513
|
|
|
9522
|
-
const
|
|
9523
|
-
.
|
|
9524
|
-
|
|
9525
|
-
|
|
9526
|
-
|
|
9527
|
-
|
|
9528
|
-
|
|
9529
|
-
})
|
|
9530
|
-
|
|
9531
|
-
type: z.string(),
|
|
9532
|
-
config: z.any().optional(),
|
|
9533
|
-
ui: z.any().optional(),
|
|
9534
|
-
links: z.array(z.lazy(() => z.any())).optional(),
|
|
9514
|
+
const FlowApiResponse = BaseFlow.extend({
|
|
9515
|
+
integration: BaseIntegration.optional(),
|
|
9516
|
+
appliedToIntegrations: AppliedToIntegrations(z.object({
|
|
9517
|
+
id: z.string(),
|
|
9518
|
+
integrationId: z.string().optional(),
|
|
9519
|
+
isCustomized: z.boolean().optional(),
|
|
9520
|
+
universalFlowId: z.string().optional(),
|
|
9521
|
+
})).optional(),
|
|
9522
|
+
dependencies: z.array(z.any()).optional(),
|
|
9535
9523
|
});
|
|
9536
|
-
const
|
|
9537
|
-
key: z.string(),
|
|
9538
|
-
name: z.string(),
|
|
9524
|
+
const FindFlowsQuery = PaginationQuery.extend({
|
|
9539
9525
|
integrationId: z.string().optional(),
|
|
9540
|
-
|
|
9541
|
-
|
|
9542
|
-
|
|
9543
|
-
|
|
9544
|
-
const UpdateFlowRequest = CreateFlowRequest.extend({
|
|
9545
|
-
archivedAt: z.string().optional(),
|
|
9526
|
+
integrationKey: z.string().optional(),
|
|
9527
|
+
universalFlowId: z.string().optional(),
|
|
9528
|
+
search: z.string().optional(),
|
|
9529
|
+
includeArchived: zodBooleanCoercion().optional(),
|
|
9546
9530
|
});
|
|
9531
|
+
const CreateFlowRequest = FlowEditableProperties;
|
|
9532
|
+
const UpdateFlowRequest = CreateFlowRequest.extend({}).partial();
|
|
9547
9533
|
const ListFlowInstancesForConnectionQuery = z
|
|
9548
9534
|
.object({
|
|
9549
9535
|
flowId: z.string().optional(),
|
|
@@ -9557,28 +9543,18 @@ const ResetFlowInstanceOptions = z.object({
|
|
|
9557
9543
|
nodes: z.record(z.string(), z.boolean()).optional(),
|
|
9558
9544
|
allNodes: z.boolean().optional(),
|
|
9559
9545
|
});
|
|
9560
|
-
const RunFlowOptions = z.object({
|
|
9561
|
-
nodeKey: z.string().optional(),
|
|
9562
|
-
input: z.any().optional(),
|
|
9563
|
-
returnImmediately: z.boolean().optional(),
|
|
9564
|
-
onUpdate: z.function().optional(),
|
|
9565
|
-
});
|
|
9566
|
-
const FlowApiResponse = BaseFlow.extend({
|
|
9567
|
-
integration: BaseIntegration.optional(),
|
|
9568
|
-
appliedToIntegrations: AppliedToIntegrations(z.object({
|
|
9569
|
-
id: z.string(),
|
|
9570
|
-
integrationId: z.string().optional(),
|
|
9571
|
-
isCustomized: z.boolean().optional(),
|
|
9572
|
-
universalFlowId: z.string().optional(),
|
|
9573
|
-
})).optional(),
|
|
9574
|
-
dependencies: z.array(z.any()).optional(),
|
|
9575
|
-
});
|
|
9576
9546
|
const FlowInstanceApiResponse = BaseFlowInstance.extend({
|
|
9577
9547
|
user: z.lazy(() => z.any()).optional(),
|
|
9578
9548
|
connection: z.lazy(() => z.any()).optional(),
|
|
9579
9549
|
flow: z.lazy(() => FlowApiResponse).optional(),
|
|
9580
9550
|
integration: z.lazy(() => z.any()).optional(),
|
|
9581
9551
|
});
|
|
9552
|
+
const CreateFlowNodeRequest = z.object({
|
|
9553
|
+
type: z.string(),
|
|
9554
|
+
config: z.any().optional(),
|
|
9555
|
+
ui: z.any().optional(),
|
|
9556
|
+
links: z.array(z.lazy(() => z.any())).optional(),
|
|
9557
|
+
});
|
|
9582
9558
|
|
|
9583
9559
|
const CreateFlowRunRequest = z.object({
|
|
9584
9560
|
flowInstanceId: z.string(),
|
|
@@ -9612,240 +9588,11 @@ const FindFlowRunsResponse = z.object({
|
|
|
9612
9588
|
cursor: z.string().optional(),
|
|
9613
9589
|
});
|
|
9614
9590
|
|
|
9615
|
-
const
|
|
9616
|
-
|
|
9617
|
-
|
|
9618
|
-
|
|
9619
|
-
|
|
9620
|
-
const STYLES_ELEMENT_ID = '__integration-app-embed-styles';
|
|
9621
|
-
const OpenConfigurationOptions = z.object({
|
|
9622
|
-
onClose: z.function().optional(),
|
|
9623
|
-
showPoweredBy: z.boolean().optional(),
|
|
9624
|
-
});
|
|
9625
|
-
let IFRAME_START_SHOW_LOADER_TIME = 0;
|
|
9626
|
-
let IFRAME_SHOW_LOADER_TIMEOUT_ID;
|
|
9627
|
-
const IFRAME_SHOW_LOADER_MINIMAL_TIME = 500;
|
|
9628
|
-
const IFRAME_LAYOUT_SHIFT_TIME = 300;
|
|
9629
|
-
function showIframeLoader() {
|
|
9630
|
-
const container = getContainer();
|
|
9631
|
-
container === null || container === void 0 ? void 0 : container.classList.add(CONTAINER_ELEMENT_CLASS__LOADER);
|
|
9632
|
-
IFRAME_START_SHOW_LOADER_TIME = Date.now();
|
|
9633
|
-
}
|
|
9634
|
-
function hideIframeLoader(waitLayoutShift = IFRAME_LAYOUT_SHIFT_TIME) {
|
|
9635
|
-
if (IFRAME_SHOW_LOADER_TIMEOUT_ID) {
|
|
9636
|
-
clearTimeout(IFRAME_SHOW_LOADER_TIMEOUT_ID);
|
|
9637
|
-
}
|
|
9638
|
-
const delta = Date.now() - IFRAME_START_SHOW_LOADER_TIME;
|
|
9639
|
-
if (delta >= IFRAME_SHOW_LOADER_MINIMAL_TIME) {
|
|
9640
|
-
setTimeout(() => {
|
|
9641
|
-
const container = getContainer();
|
|
9642
|
-
container === null || container === void 0 ? void 0 : container.classList.remove(CONTAINER_ELEMENT_CLASS__LOADER);
|
|
9643
|
-
IFRAME_START_SHOW_LOADER_TIME = 0;
|
|
9644
|
-
}, waitLayoutShift);
|
|
9645
|
-
return;
|
|
9646
|
-
}
|
|
9647
|
-
else {
|
|
9648
|
-
const waitLayoutShift = delta >= IFRAME_LAYOUT_SHIFT_TIME ? 0 : IFRAME_LAYOUT_SHIFT_TIME - delta;
|
|
9649
|
-
const timeoutTime = IFRAME_SHOW_LOADER_MINIMAL_TIME - delta;
|
|
9650
|
-
IFRAME_SHOW_LOADER_TIMEOUT_ID = setTimeout(() => {
|
|
9651
|
-
hideIframeLoader(waitLayoutShift);
|
|
9652
|
-
}, timeoutTime);
|
|
9653
|
-
return;
|
|
9654
|
-
}
|
|
9655
|
-
}
|
|
9656
|
-
async function openIframe(uri, callbacks = {}, { mountTargetSelector } = {}) {
|
|
9657
|
-
close();
|
|
9658
|
-
init(mountTargetSelector);
|
|
9659
|
-
return new Promise((resolve) => {
|
|
9660
|
-
function complete(callback) {
|
|
9661
|
-
close(callback);
|
|
9662
|
-
resolve();
|
|
9663
|
-
}
|
|
9664
|
-
function doOpen() {
|
|
9665
|
-
const iframe = document.createElement('iframe');
|
|
9666
|
-
iframe.src = uri;
|
|
9667
|
-
iframe.id = POPUP_ELEMENT_ID;
|
|
9668
|
-
iframe.onload = () => {
|
|
9669
|
-
hideIframeLoader();
|
|
9670
|
-
};
|
|
9671
|
-
if (!!getContainer()) {
|
|
9672
|
-
document.body.classList.add(BODY_CLASS);
|
|
9673
|
-
showIframeLoader();
|
|
9674
|
-
appendToContainer(iframe);
|
|
9675
|
-
handleIframeUnmount(iframe);
|
|
9676
|
-
connectToChild({
|
|
9677
|
-
iframe,
|
|
9678
|
-
methods: {
|
|
9679
|
-
...callbacks,
|
|
9680
|
-
handshake: (...args) => {
|
|
9681
|
-
var _a;
|
|
9682
|
-
hideIframeLoader();
|
|
9683
|
-
(_a = callbacks === null || callbacks === void 0 ? void 0 : callbacks.handshake) === null || _a === void 0 ? void 0 : _a.call(callbacks, ...args);
|
|
9684
|
-
},
|
|
9685
|
-
close: () => complete(callbacks.onClose),
|
|
9686
|
-
},
|
|
9687
|
-
});
|
|
9688
|
-
}
|
|
9689
|
-
else {
|
|
9690
|
-
throw Error('Membrane container element not found. Was it manually removed?');
|
|
9691
|
-
}
|
|
9692
|
-
}
|
|
9693
|
-
if (document.readyState === 'complete' || document.readyState === 'interactive') {
|
|
9694
|
-
doOpen();
|
|
9695
|
-
}
|
|
9696
|
-
else {
|
|
9697
|
-
document.addEventListener('DOMContentLoaded', () => {
|
|
9698
|
-
doOpen();
|
|
9699
|
-
});
|
|
9700
|
-
}
|
|
9701
|
-
});
|
|
9702
|
-
}
|
|
9703
|
-
function close(callback) {
|
|
9704
|
-
document.body.classList.remove(BODY_CLASS);
|
|
9705
|
-
if (!!getContainer()) {
|
|
9706
|
-
deleteContainer();
|
|
9707
|
-
if (callback) {
|
|
9708
|
-
callback();
|
|
9709
|
-
}
|
|
9710
|
-
}
|
|
9711
|
-
}
|
|
9712
|
-
function init(mountTargetSelector) {
|
|
9713
|
-
var _a;
|
|
9714
|
-
injectStyles(mountTargetSelector);
|
|
9715
|
-
if (!!getContainer()) {
|
|
9716
|
-
return;
|
|
9717
|
-
}
|
|
9718
|
-
const container = createContainer();
|
|
9719
|
-
if (mountTargetSelector && document.querySelector(mountTargetSelector)) {
|
|
9720
|
-
(_a = document.querySelector(mountTargetSelector)) === null || _a === void 0 ? void 0 : _a.appendChild(container);
|
|
9721
|
-
}
|
|
9722
|
-
else {
|
|
9723
|
-
document.body.appendChild(container);
|
|
9724
|
-
}
|
|
9725
|
-
}
|
|
9726
|
-
function injectStyles(mountTargetSelector) {
|
|
9727
|
-
const hasCustomMountTarget = Boolean(mountTargetSelector && document.querySelector(mountTargetSelector));
|
|
9728
|
-
const styles = [
|
|
9729
|
-
`.${CONTAINER_ELEMENT_CLASS}:empty {
|
|
9730
|
-
display: none;
|
|
9731
|
-
}`,
|
|
9732
|
-
hasCustomMountTarget
|
|
9733
|
-
? `.${CONTAINER_ELEMENT_CLASS} {
|
|
9734
|
-
inset: 0;
|
|
9735
|
-
background: rgba(0, 0, 0, 0);
|
|
9736
|
-
transition: background 0.2s ease-out;
|
|
9737
|
-
display: flex;
|
|
9738
|
-
justify-content: center;
|
|
9739
|
-
align-items: center;
|
|
9740
|
-
width: 100%;
|
|
9741
|
-
height: 100%;
|
|
9742
|
-
}`
|
|
9743
|
-
: `.${CONTAINER_ELEMENT_CLASS} {
|
|
9744
|
-
position: fixed;
|
|
9745
|
-
inset: 0;
|
|
9746
|
-
z-index: 2147483647;
|
|
9747
|
-
display: flex;
|
|
9748
|
-
justify-content: center;
|
|
9749
|
-
align-items: center;
|
|
9750
|
-
pointer-events: auto;
|
|
9751
|
-
background: rgba(0, 0, 0, 0);
|
|
9752
|
-
transition: background 0.2s ease-out;
|
|
9753
|
-
}`,
|
|
9754
|
-
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} {
|
|
9755
|
-
background: rgba(0, 0, 0, 0.8);
|
|
9756
|
-
}`,
|
|
9757
|
-
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER}::before {
|
|
9758
|
-
${hasCustomMountTarget ? 'position: absolute;' : ''}
|
|
9759
|
-
content: "";
|
|
9760
|
-
width: 5rem;
|
|
9761
|
-
height: 4rem;
|
|
9762
|
-
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');
|
|
9763
|
-
background-size: contain;
|
|
9764
|
-
background-repeat: no-repeat;
|
|
9765
|
-
background-position: center;
|
|
9766
|
-
filter: invert(1);
|
|
9767
|
-
}`,
|
|
9768
|
-
`.${CONTAINER_ELEMENT_CLASS} iframe {
|
|
9769
|
-
${hasCustomMountTarget ? '' : 'position: absolute;'}
|
|
9770
|
-
width: 100%;
|
|
9771
|
-
height: 100%;
|
|
9772
|
-
border-width: 0;
|
|
9773
|
-
|
|
9774
|
-
/* fix transparent bg, because iframe document has light scheme */
|
|
9775
|
-
color-scheme: light;
|
|
9776
|
-
}`,
|
|
9777
|
-
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} iframe {
|
|
9778
|
-
visibility: hidden;
|
|
9779
|
-
}`,
|
|
9780
|
-
!hasCustomMountTarget
|
|
9781
|
-
? `body.${BODY_CLASS} {
|
|
9782
|
-
overflow: hidden;
|
|
9783
|
-
}`
|
|
9784
|
-
: '',
|
|
9785
|
-
];
|
|
9786
|
-
let styleElement = document.getElementById(STYLES_ELEMENT_ID);
|
|
9787
|
-
if (!styleElement) {
|
|
9788
|
-
styleElement = document.createElement('style');
|
|
9789
|
-
styleElement.id = STYLES_ELEMENT_ID;
|
|
9790
|
-
styleElement.type = 'text/css';
|
|
9791
|
-
document.head.appendChild(styleElement);
|
|
9792
|
-
}
|
|
9793
|
-
styleElement.textContent = styles.join('\n');
|
|
9794
|
-
}
|
|
9795
|
-
function removeInjectedStyles() {
|
|
9796
|
-
const stylesElement = document.getElementById(STYLES_ELEMENT_ID);
|
|
9797
|
-
if (stylesElement) {
|
|
9798
|
-
stylesElement.remove();
|
|
9799
|
-
}
|
|
9800
|
-
}
|
|
9801
|
-
function createContainer() {
|
|
9802
|
-
const container = document.createElement('div');
|
|
9803
|
-
container.id = CONTAINER_ELEMENT_ID;
|
|
9804
|
-
container.classList.add(CONTAINER_ELEMENT_CLASS);
|
|
9805
|
-
return container;
|
|
9806
|
-
}
|
|
9807
|
-
function getContainer() {
|
|
9808
|
-
return document.getElementById(CONTAINER_ELEMENT_ID);
|
|
9809
|
-
}
|
|
9810
|
-
function appendToContainer(el) {
|
|
9811
|
-
const container = getContainer();
|
|
9812
|
-
container === null || container === void 0 ? void 0 : container.appendChild(el);
|
|
9813
|
-
}
|
|
9814
|
-
function deleteContainer() {
|
|
9815
|
-
const container = getContainer();
|
|
9816
|
-
if (container) {
|
|
9817
|
-
container.remove();
|
|
9818
|
-
}
|
|
9819
|
-
removeInjectedStyles();
|
|
9820
|
-
}
|
|
9821
|
-
function handleIframeUnmount(iframe) {
|
|
9822
|
-
const observer = new MutationObserver((mutationsList) => {
|
|
9823
|
-
for (const mutation of mutationsList) {
|
|
9824
|
-
for (const removedNode of mutation.removedNodes) {
|
|
9825
|
-
if (removedNode instanceof HTMLElement && removedNode.id === POPUP_ELEMENT_ID) {
|
|
9826
|
-
observer.disconnect();
|
|
9827
|
-
deleteContainer();
|
|
9828
|
-
return;
|
|
9829
|
-
}
|
|
9830
|
-
}
|
|
9831
|
-
}
|
|
9832
|
-
});
|
|
9833
|
-
const parent = iframe.parentNode;
|
|
9834
|
-
if (parent) {
|
|
9835
|
-
observer.observe(parent, {
|
|
9836
|
-
childList: true,
|
|
9837
|
-
});
|
|
9838
|
-
}
|
|
9839
|
-
else {
|
|
9840
|
-
console.warn(`iframe with ID "${POPUP_ELEMENT_ID}" has no parent node`);
|
|
9841
|
-
}
|
|
9842
|
-
}
|
|
9843
|
-
|
|
9844
|
-
const CreateIntegrationRequest = z.object({
|
|
9845
|
-
name: z.string().optional(),
|
|
9846
|
-
key: z.string(),
|
|
9847
|
-
baseUri: z.string(),
|
|
9848
|
-
logoUri: z.string(),
|
|
9591
|
+
const CreateIntegrationRequest = z.object({
|
|
9592
|
+
name: z.string().optional(),
|
|
9593
|
+
key: z.string(),
|
|
9594
|
+
baseUri: z.string(),
|
|
9595
|
+
logoUri: z.string(),
|
|
9849
9596
|
});
|
|
9850
9597
|
const UpdateIntegrationRequest = z.object({
|
|
9851
9598
|
name: z.string().optional(),
|
|
@@ -9854,13 +9601,6 @@ const UpdateIntegrationRequest = z.object({
|
|
|
9854
9601
|
logoUri: z.string().optional(),
|
|
9855
9602
|
});
|
|
9856
9603
|
const FindIntegrationsQuery = z.object({}).merge(PaginationQuery).merge(SearchQuery);
|
|
9857
|
-
const OpenNewConnectionOptions = z
|
|
9858
|
-
.object({
|
|
9859
|
-
allowMultipleConnections: z.boolean().optional(),
|
|
9860
|
-
name: z.string().optional(),
|
|
9861
|
-
connectorParameters: z.any().optional(),
|
|
9862
|
-
})
|
|
9863
|
-
.merge(OpenConfigurationOptions);
|
|
9864
9604
|
const IntegrationAuthUi = z.object({
|
|
9865
9605
|
schema: z.any().optional(),
|
|
9866
9606
|
helpUri: z.string().optional(),
|
|
@@ -9916,6 +9656,15 @@ const FieldMappingApiResponse = BaseFieldMapping.extend({
|
|
|
9916
9656
|
integration: BaseIntegration.optional(),
|
|
9917
9657
|
appliedToIntegrations: AppliedToIntegrations(BaseFieldMapping).optional(),
|
|
9918
9658
|
});
|
|
9659
|
+
const FindFieldMappingsQuery = PaginationQuery.extend({
|
|
9660
|
+
integrationId: z.string().optional(),
|
|
9661
|
+
integrationKey: z.string().optional(),
|
|
9662
|
+
universalFieldMappingId: z.string().optional(),
|
|
9663
|
+
search: z.string().optional(),
|
|
9664
|
+
includeArchived: zodBooleanCoercion().optional(),
|
|
9665
|
+
});
|
|
9666
|
+
const CreateFieldMappingRequest = FieldMappingEditableProperties;
|
|
9667
|
+
const UpdateFieldMappingRequest = CreateFieldMappingRequest.extend({}).partial();
|
|
9919
9668
|
|
|
9920
9669
|
const FieldMappingInstanceApiResponse = BaseFieldMappingInstance.extend({
|
|
9921
9670
|
user: BaseCustomer.optional(),
|
|
@@ -10681,6 +10430,29 @@ function timestampToDate(value) {
|
|
|
10681
10430
|
}
|
|
10682
10431
|
}
|
|
10683
10432
|
|
|
10433
|
+
const ONE_DAY_IN_MS = 24 * 60 * 60 * 1000;
|
|
10434
|
+
function isBusinessDay(date) {
|
|
10435
|
+
const dayOfWeek = date.getDay();
|
|
10436
|
+
return dayOfWeek >= 1 && dayOfWeek <= 5;
|
|
10437
|
+
}
|
|
10438
|
+
function getBusinessDaysBetween(startDate, endDate) {
|
|
10439
|
+
const businessDays = new Set();
|
|
10440
|
+
if (endDate < startDate) {
|
|
10441
|
+
return businessDays;
|
|
10442
|
+
}
|
|
10443
|
+
const startTime = Date.UTC(startDate.getFullYear(), startDate.getMonth(), startDate.getDate());
|
|
10444
|
+
const endTime = Date.UTC(endDate.getFullYear(), endDate.getMonth(), endDate.getDate());
|
|
10445
|
+
const dayCount = Math.floor((endTime - startTime) / ONE_DAY_IN_MS) + 1;
|
|
10446
|
+
for (let i = 0; i < dayCount; i++) {
|
|
10447
|
+
const currentTime = startTime + i * ONE_DAY_IN_MS;
|
|
10448
|
+
const currentDate = new Date(currentTime);
|
|
10449
|
+
if (isBusinessDay(currentDate)) {
|
|
10450
|
+
businessDays.add(currentDate.toISOString().split('T')[0]);
|
|
10451
|
+
}
|
|
10452
|
+
}
|
|
10453
|
+
return businessDays;
|
|
10454
|
+
}
|
|
10455
|
+
|
|
10684
10456
|
var UsageType;
|
|
10685
10457
|
(function (UsageType) {
|
|
10686
10458
|
UsageType["FLOW_RUNS_DURATION"] = "flow-runs-duration";
|
|
@@ -11125,6 +10897,231 @@ class IntegrationLevelActionsListAccessor extends IntegrationLevelElementsListAc
|
|
|
11125
10897
|
}
|
|
11126
10898
|
}
|
|
11127
10899
|
|
|
10900
|
+
const POPUP_ELEMENT_ID = '__integration-app-popup';
|
|
10901
|
+
const CONTAINER_ELEMENT_ID = '__integration-app-container';
|
|
10902
|
+
const CONTAINER_ELEMENT_CLASS = '__integration-app-container';
|
|
10903
|
+
const CONTAINER_ELEMENT_CLASS__LOADER = '__integration-app-container__loader';
|
|
10904
|
+
const BODY_CLASS = '__integration-app-open';
|
|
10905
|
+
const STYLES_ELEMENT_ID = '__integration-app-embed-styles';
|
|
10906
|
+
let IFRAME_START_SHOW_LOADER_TIME = 0;
|
|
10907
|
+
let IFRAME_SHOW_LOADER_TIMEOUT_ID;
|
|
10908
|
+
const IFRAME_SHOW_LOADER_MINIMAL_TIME = 500;
|
|
10909
|
+
const IFRAME_LAYOUT_SHIFT_TIME = 300;
|
|
10910
|
+
function showIframeLoader() {
|
|
10911
|
+
const container = getContainer();
|
|
10912
|
+
container === null || container === void 0 ? void 0 : container.classList.add(CONTAINER_ELEMENT_CLASS__LOADER);
|
|
10913
|
+
IFRAME_START_SHOW_LOADER_TIME = Date.now();
|
|
10914
|
+
}
|
|
10915
|
+
function hideIframeLoader(waitLayoutShift = IFRAME_LAYOUT_SHIFT_TIME) {
|
|
10916
|
+
if (IFRAME_SHOW_LOADER_TIMEOUT_ID) {
|
|
10917
|
+
clearTimeout(IFRAME_SHOW_LOADER_TIMEOUT_ID);
|
|
10918
|
+
}
|
|
10919
|
+
const delta = Date.now() - IFRAME_START_SHOW_LOADER_TIME;
|
|
10920
|
+
if (delta >= IFRAME_SHOW_LOADER_MINIMAL_TIME) {
|
|
10921
|
+
setTimeout(() => {
|
|
10922
|
+
const container = getContainer();
|
|
10923
|
+
container === null || container === void 0 ? void 0 : container.classList.remove(CONTAINER_ELEMENT_CLASS__LOADER);
|
|
10924
|
+
IFRAME_START_SHOW_LOADER_TIME = 0;
|
|
10925
|
+
}, waitLayoutShift);
|
|
10926
|
+
return;
|
|
10927
|
+
}
|
|
10928
|
+
else {
|
|
10929
|
+
const waitLayoutShift = delta >= IFRAME_LAYOUT_SHIFT_TIME ? 0 : IFRAME_LAYOUT_SHIFT_TIME - delta;
|
|
10930
|
+
const timeoutTime = IFRAME_SHOW_LOADER_MINIMAL_TIME - delta;
|
|
10931
|
+
IFRAME_SHOW_LOADER_TIMEOUT_ID = setTimeout(() => {
|
|
10932
|
+
hideIframeLoader(waitLayoutShift);
|
|
10933
|
+
}, timeoutTime);
|
|
10934
|
+
return;
|
|
10935
|
+
}
|
|
10936
|
+
}
|
|
10937
|
+
async function openIframe(uri, callbacks = {}, { mountTargetSelector } = {}) {
|
|
10938
|
+
close();
|
|
10939
|
+
init(mountTargetSelector);
|
|
10940
|
+
return new Promise((resolve) => {
|
|
10941
|
+
function complete(callback) {
|
|
10942
|
+
close(callback);
|
|
10943
|
+
resolve();
|
|
10944
|
+
}
|
|
10945
|
+
function doOpen() {
|
|
10946
|
+
const iframe = document.createElement('iframe');
|
|
10947
|
+
iframe.src = uri;
|
|
10948
|
+
iframe.id = POPUP_ELEMENT_ID;
|
|
10949
|
+
iframe.onload = () => {
|
|
10950
|
+
hideIframeLoader();
|
|
10951
|
+
};
|
|
10952
|
+
if (!!getContainer()) {
|
|
10953
|
+
document.body.classList.add(BODY_CLASS);
|
|
10954
|
+
showIframeLoader();
|
|
10955
|
+
appendToContainer(iframe);
|
|
10956
|
+
handleIframeUnmount(iframe);
|
|
10957
|
+
connectToChild({
|
|
10958
|
+
iframe,
|
|
10959
|
+
methods: {
|
|
10960
|
+
...callbacks,
|
|
10961
|
+
handshake: (...args) => {
|
|
10962
|
+
var _a;
|
|
10963
|
+
hideIframeLoader();
|
|
10964
|
+
(_a = callbacks === null || callbacks === void 0 ? void 0 : callbacks.handshake) === null || _a === void 0 ? void 0 : _a.call(callbacks, ...args);
|
|
10965
|
+
},
|
|
10966
|
+
close: () => complete(callbacks.onClose),
|
|
10967
|
+
},
|
|
10968
|
+
});
|
|
10969
|
+
}
|
|
10970
|
+
else {
|
|
10971
|
+
throw Error('Membrane container element not found. Was it manually removed?');
|
|
10972
|
+
}
|
|
10973
|
+
}
|
|
10974
|
+
if (document.readyState === 'complete' || document.readyState === 'interactive') {
|
|
10975
|
+
doOpen();
|
|
10976
|
+
}
|
|
10977
|
+
else {
|
|
10978
|
+
document.addEventListener('DOMContentLoaded', () => {
|
|
10979
|
+
doOpen();
|
|
10980
|
+
});
|
|
10981
|
+
}
|
|
10982
|
+
});
|
|
10983
|
+
}
|
|
10984
|
+
function close(callback) {
|
|
10985
|
+
document.body.classList.remove(BODY_CLASS);
|
|
10986
|
+
if (!!getContainer()) {
|
|
10987
|
+
deleteContainer();
|
|
10988
|
+
if (callback) {
|
|
10989
|
+
callback();
|
|
10990
|
+
}
|
|
10991
|
+
}
|
|
10992
|
+
}
|
|
10993
|
+
function init(mountTargetSelector) {
|
|
10994
|
+
var _a;
|
|
10995
|
+
injectStyles(mountTargetSelector);
|
|
10996
|
+
if (!!getContainer()) {
|
|
10997
|
+
return;
|
|
10998
|
+
}
|
|
10999
|
+
const container = createContainer();
|
|
11000
|
+
if (mountTargetSelector && document.querySelector(mountTargetSelector)) {
|
|
11001
|
+
(_a = document.querySelector(mountTargetSelector)) === null || _a === void 0 ? void 0 : _a.appendChild(container);
|
|
11002
|
+
}
|
|
11003
|
+
else {
|
|
11004
|
+
document.body.appendChild(container);
|
|
11005
|
+
}
|
|
11006
|
+
}
|
|
11007
|
+
function injectStyles(mountTargetSelector) {
|
|
11008
|
+
const hasCustomMountTarget = Boolean(mountTargetSelector && document.querySelector(mountTargetSelector));
|
|
11009
|
+
const styles = [
|
|
11010
|
+
`.${CONTAINER_ELEMENT_CLASS}:empty {
|
|
11011
|
+
display: none;
|
|
11012
|
+
}`,
|
|
11013
|
+
hasCustomMountTarget
|
|
11014
|
+
? `.${CONTAINER_ELEMENT_CLASS} {
|
|
11015
|
+
inset: 0;
|
|
11016
|
+
background: rgba(0, 0, 0, 0);
|
|
11017
|
+
transition: background 0.2s ease-out;
|
|
11018
|
+
display: flex;
|
|
11019
|
+
justify-content: center;
|
|
11020
|
+
align-items: center;
|
|
11021
|
+
width: 100%;
|
|
11022
|
+
height: 100%;
|
|
11023
|
+
}`
|
|
11024
|
+
: `.${CONTAINER_ELEMENT_CLASS} {
|
|
11025
|
+
position: fixed;
|
|
11026
|
+
inset: 0;
|
|
11027
|
+
z-index: 2147483647;
|
|
11028
|
+
display: flex;
|
|
11029
|
+
justify-content: center;
|
|
11030
|
+
align-items: center;
|
|
11031
|
+
pointer-events: auto;
|
|
11032
|
+
background: rgba(0, 0, 0, 0);
|
|
11033
|
+
transition: background 0.2s ease-out;
|
|
11034
|
+
}`,
|
|
11035
|
+
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} {
|
|
11036
|
+
background: rgba(0, 0, 0, 0.8);
|
|
11037
|
+
}`,
|
|
11038
|
+
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER}::before {
|
|
11039
|
+
${hasCustomMountTarget ? 'position: absolute;' : ''}
|
|
11040
|
+
content: "";
|
|
11041
|
+
width: 5rem;
|
|
11042
|
+
height: 4rem;
|
|
11043
|
+
background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 32 22" fill="%23000" xmlns="http://www.w3.org/2000/svg" %3E%3Cdefs%3E%3Cmask id="a"%3E%3Crect width="100%25" height="100%25" fill="%23fff" /%3E%3Cpath d="M11.8 13.12a3 3 0 0 1 0-4.24l7.08-7.07a3 3 0 0 1 4.24 0l7.07 7.07a3 3 0 0 1 0 4.24l-7.07 7.07a3 3 0 0 1-4.24 0l-7.07-7.07Z"%3E%3CanimateTransform attributeName="transform" attributeType="XML" type="rotate" repeatCount="indefinite" calcMode="spline" keyTimes="0;1" dur="5s" keySplines="0 0 0.1 1" from="0 21 11" to="-360 21 11" /%3E%3C/path%3E%3C/mask%3E%3Cmask id="b"%3E%3Crect width="100%25" height="100%25" fill="%23fff"/%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M1.8 8.88a3 3 0 0 0 0 4.24l7.08 7.07a3 3 0 0 0 4.24 0l7.07-7.07a3 3 0 0 0 0-4.24L13.12 1.8a3 3 0 0 0-4.24 0L1.8 8.88Zm.71.7a2 2 0 0 0 0 2.83L9.6 19.5a2 2 0 0 0 2.82 0l7.08-7.08a2 2 0 0 0 0-2.82l-7.1-7.1a2 2 0 0 0-2.82 0L2.5 9.6Z" %3E%3CanimateTransform attributeName="transform" attributeType="XML" type="rotate" repeatCount="indefinite" calcMode="spline" keyTimes="0;1" dur="5s" keySplines="0 0 0.1 1" from="0 11 11" to="720 11 11" /%3E%3C/path%3E%3C/mask%3E%3C/defs%3E%3Cg mask="url(%23a)"%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M1.8 8.88a3 3 0 0 0 0 4.24l7.08 7.07a3 3 0 0 0 4.24 0l7.07-7.07a3 3 0 0 0 0-4.24L13.12 1.8a3 3 0 0 0-4.24 0L1.8 8.88Zm.71.7a2 2 0 0 0 0 2.83L9.6 19.5a2 2 0 0 0 2.82 0l7.08-7.08a2 2 0 0 0 0-2.82l-7.1-7.1a2 2 0 0 0-2.82 0L2.5 9.6Z"%0A%3E%3CanimateTransform attributeName="transform" attributeType="XML" type="rotate" repeatCount="indefinite" calcMode="spline" keyTimes="0;1" dur="5s" keySplines="0 0 0.1 1" from="0 11 11" to="720 11 11" /%3E%3C/path%3E%3C/g%3E%3Cg mask="url(%23b)"%3E%3Cpath d="M11.8 13.12a3 3 0 0 1 0-4.24l7.08-7.07a3 3 0 0 1 4.24 0l7.07 7.07a3 3 0 0 1 0 4.24l-7.07 7.07a3 3 0 0 1-4.24 0l-7.07-7.07Z"%3E%3CanimateTransform attributeName="transform" attributeType="XML" type="rotate" repeatCount="indefinite" calcMode="spline" keyTimes="0;1" dur="5s" keySplines="0 0 0.1 1" from="0 21 11" to="-360 21 11" /%3E%3C/path%3E%3C/g%3E%3C/svg%3E');
|
|
11044
|
+
background-size: contain;
|
|
11045
|
+
background-repeat: no-repeat;
|
|
11046
|
+
background-position: center;
|
|
11047
|
+
filter: invert(1);
|
|
11048
|
+
}`,
|
|
11049
|
+
`.${CONTAINER_ELEMENT_CLASS} iframe {
|
|
11050
|
+
${hasCustomMountTarget ? '' : 'position: absolute;'}
|
|
11051
|
+
width: 100%;
|
|
11052
|
+
height: 100%;
|
|
11053
|
+
border-width: 0;
|
|
11054
|
+
|
|
11055
|
+
/* fix transparent bg, because iframe document has light scheme */
|
|
11056
|
+
color-scheme: light;
|
|
11057
|
+
}`,
|
|
11058
|
+
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} iframe {
|
|
11059
|
+
visibility: hidden;
|
|
11060
|
+
}`,
|
|
11061
|
+
!hasCustomMountTarget
|
|
11062
|
+
? `body.${BODY_CLASS} {
|
|
11063
|
+
overflow: hidden;
|
|
11064
|
+
}`
|
|
11065
|
+
: '',
|
|
11066
|
+
];
|
|
11067
|
+
let styleElement = document.getElementById(STYLES_ELEMENT_ID);
|
|
11068
|
+
if (!styleElement) {
|
|
11069
|
+
styleElement = document.createElement('style');
|
|
11070
|
+
styleElement.id = STYLES_ELEMENT_ID;
|
|
11071
|
+
styleElement.type = 'text/css';
|
|
11072
|
+
document.head.appendChild(styleElement);
|
|
11073
|
+
}
|
|
11074
|
+
styleElement.textContent = styles.join('\n');
|
|
11075
|
+
}
|
|
11076
|
+
function removeInjectedStyles() {
|
|
11077
|
+
const stylesElement = document.getElementById(STYLES_ELEMENT_ID);
|
|
11078
|
+
if (stylesElement) {
|
|
11079
|
+
stylesElement.remove();
|
|
11080
|
+
}
|
|
11081
|
+
}
|
|
11082
|
+
function createContainer() {
|
|
11083
|
+
const container = document.createElement('div');
|
|
11084
|
+
container.id = CONTAINER_ELEMENT_ID;
|
|
11085
|
+
container.classList.add(CONTAINER_ELEMENT_CLASS);
|
|
11086
|
+
return container;
|
|
11087
|
+
}
|
|
11088
|
+
function getContainer() {
|
|
11089
|
+
return document.getElementById(CONTAINER_ELEMENT_ID);
|
|
11090
|
+
}
|
|
11091
|
+
function appendToContainer(el) {
|
|
11092
|
+
const container = getContainer();
|
|
11093
|
+
container === null || container === void 0 ? void 0 : container.appendChild(el);
|
|
11094
|
+
}
|
|
11095
|
+
function deleteContainer() {
|
|
11096
|
+
const container = getContainer();
|
|
11097
|
+
if (container) {
|
|
11098
|
+
container.remove();
|
|
11099
|
+
}
|
|
11100
|
+
removeInjectedStyles();
|
|
11101
|
+
}
|
|
11102
|
+
function handleIframeUnmount(iframe) {
|
|
11103
|
+
const observer = new MutationObserver((mutationsList) => {
|
|
11104
|
+
for (const mutation of mutationsList) {
|
|
11105
|
+
for (const removedNode of mutation.removedNodes) {
|
|
11106
|
+
if (removedNode instanceof HTMLElement && removedNode.id === POPUP_ELEMENT_ID) {
|
|
11107
|
+
observer.disconnect();
|
|
11108
|
+
deleteContainer();
|
|
11109
|
+
return;
|
|
11110
|
+
}
|
|
11111
|
+
}
|
|
11112
|
+
}
|
|
11113
|
+
});
|
|
11114
|
+
const parent = iframe.parentNode;
|
|
11115
|
+
if (parent) {
|
|
11116
|
+
observer.observe(parent, {
|
|
11117
|
+
childList: true,
|
|
11118
|
+
});
|
|
11119
|
+
}
|
|
11120
|
+
else {
|
|
11121
|
+
console.warn(`iframe with ID "${POPUP_ELEMENT_ID}" has no parent node`);
|
|
11122
|
+
}
|
|
11123
|
+
}
|
|
11124
|
+
|
|
11128
11125
|
class ConnectionLevelElementAccessor {
|
|
11129
11126
|
constructor(client, connectionSelector, selector, elementKey, query) {
|
|
11130
11127
|
this.client = client;
|
|
@@ -12368,20 +12365,20 @@ const HandyScenarioTemplateElement = z.object({
|
|
|
12368
12365
|
key: z.string(),
|
|
12369
12366
|
name: z.string(),
|
|
12370
12367
|
})
|
|
12371
|
-
.and(z.record(z.any())),
|
|
12368
|
+
.and(z.record(z.string(), z.any())),
|
|
12372
12369
|
});
|
|
12373
12370
|
const withIntegrationKeys = (schema) => schema.and(z.object({ integrationKeys: z.array(z.string()).optional() }));
|
|
12374
12371
|
const ElementsExportFields = z.object({
|
|
12375
|
-
flows: z.record(withIntegrationKeys(z.any())).optional(),
|
|
12376
|
-
actions: z.record(withIntegrationKeys(z.any())).optional(),
|
|
12377
|
-
fieldMappings: z.record(withIntegrationKeys(z.any())).optional(),
|
|
12378
|
-
dataSources: z.record(withIntegrationKeys(z.any())).optional(),
|
|
12379
|
-
dataLinkTables: z.record(z.any()).optional(),
|
|
12380
|
-
appEventTypes: z.record(z.any()).optional(),
|
|
12381
|
-
appDataSchemas: z.record(z.any()).optional(),
|
|
12372
|
+
flows: z.record(z.string(), withIntegrationKeys(z.any())).optional(),
|
|
12373
|
+
actions: z.record(z.string(), withIntegrationKeys(z.any())).optional(),
|
|
12374
|
+
fieldMappings: z.record(z.string(), withIntegrationKeys(z.any())).optional(),
|
|
12375
|
+
dataSources: z.record(z.string(), withIntegrationKeys(z.any())).optional(),
|
|
12376
|
+
dataLinkTables: z.record(z.string(), z.any()).optional(),
|
|
12377
|
+
appEventTypes: z.record(z.string(), z.any()).optional(),
|
|
12378
|
+
appDataSchemas: z.record(z.string(), z.any()).optional(),
|
|
12382
12379
|
});
|
|
12383
12380
|
const ScenarioTemplateElements = ElementsExportFields.and(z.object({
|
|
12384
|
-
integrations: z.record(ElementsExportFields.and(z.object({ connectorId: z.string() }))).optional(),
|
|
12381
|
+
integrations: z.record(z.string(), ElementsExportFields.and(z.object({ connectorId: z.string() }))).optional(),
|
|
12385
12382
|
}));
|
|
12386
12383
|
const ScenarioTemplate = z.object({
|
|
12387
12384
|
id: z.string(),
|
|
@@ -12858,5 +12855,5 @@ function hasMembraneCredentials(cwd) {
|
|
|
12858
12855
|
return getDefaultMembraneConfigLoader().hasWorkspaceCredentials();
|
|
12859
12856
|
}
|
|
12860
12857
|
|
|
12861
|
-
export { ACTIONS, AccessDeniedError, ActionAccessor, ActionApiResponse, ActionDependency, ActionDependencyType, ActionEditableProperties, ActionInstanceAccessor, ActionInstanceApiResponse, ActionInstanceSetupError, ActionInstancesAccessor, ActionRunError, ActionRunLogRecordApiResponse, ActionRunLogStatus, ActionRunResponse, ActionType, ActionsAccessor, AlertSeverity, AlertStatus, AlertType, ApiRequestSpec, AppDataSchemaAccessor, AppDataSchemaApiResponse, AppDataSchemaInstanceAccessor, AppDataSchemaInstanceApiResponse, AppDataSchemaInstancesAccessor, AppDataSchemasAccessor, AppEventLogRecordApiResponse, AppEventSubscriptionAccessor, AppEventSubscriptionApiResponse, AppEventSubscriptionsAccessor, AppEventTypeAccessor, AppEventTypeApiResponse, AppEventTypesAccessor, AppliedToIntegrations, BadRequestError, BadRequestErrorKey, BaseAction, BaseActionInstance, BaseActionRunLogRecord, BaseAppDataSchema, BaseAppDataSchemaInstance, BaseAppEventSubscription, BaseAppEventType, BaseConnection, BaseCustomer, BaseDataLinkTable, BaseDataLinkTableInstance, BaseDataSource, BaseDataSourceInstance, BaseExternalEvent, BaseExternalEventLogRecord, BaseExternalEventPull, BaseExternalEventSubscription, BaseFieldMapping, BaseFieldMappingInstance, BaseFlow, BaseFlowInstance, BaseFlowRun, BaseIntegration, BaseIntegrationLevelMembraneInterface, BaseIntegrationLevelMembraneInterfaceEditableProperties, BaseIntegrationLevelMembraneInterfaceReadOnlyProperties, BaseMembraneInterface, BaseMembraneInterfaceEditableProperties, BaseMembraneInterfaceReadOnlyProperties, BaseScenario, BaseScreen, BaseWorkspaceElement, CONFIG_FILE_NAME, CONNECTOR_AUTH_TYPES, CONNECTOR_CATEGORIES, CONNECTOR_DATA_DIR, CONNECTOR_DOCS_DIR, CONNECTOR_EVENTS_DIR, CONNECTOR_GLOBAL_WEBHOOKS_DIR, CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES, CONNECTOR_OPERATIONS_DIR, CommonInstancesListQuery, CommonIntegrationOrConnectionQuery, CommonListElementsQuery, ConcurrencyError, ConcurrencyErrorKey, ConfigurationError, ConfigurationState, ConnectionAccessor, ConnectionApiResponse, ConnectionApiResponseWithSecrets, ConnectionDataCollectionAccessor, ConnectionError, ConnectionErrorKey, ConnectionLevelActionAccessor, ConnectionLevelActionsAccessor, ConnectionLevelDataSourceAccessor, ConnectionLevelDataSourcesAccessor, ConnectionLevelFieldMappingAccessor, ConnectionLevelFieldMappingsAccessor, ConnectionLevelFlowAccessor, ConnectionLevelFlowsAccessor, ConnectionMessagePayload, ConnectionOperationAccessor, ConnectionProxy, ConnectionRequest, ConnectionSelector, ConnectionSpec, ConnectionsAccessor, ConnectorAuthMethodTypes, ConnectorCopilotFileChunkTopicKey, ConnectorCopilotSuggestionType, ConnectorDataCollectionEventImplementationType, ConnectorDataCollectionMethodKeys, ConnectorDataLocationTypes, ConnectorEventHandlerMethods, ConnectorEventImplementationType, ConnectorMethodImplementationType, ConnectorOperationMethodImplementationTypes, ConnectorStatus, CopilotActionStatus, CopilotActionType, CopilotActivityScope, CopilotActivityType, CopilotTaskStatus, CopilotTaskType, CreateActionInstanceRequest, CreateActionRequest, CreateConnectionRequest, CreateCustomerRequest, CreateDataSourceInstanceRequest, CreateDataSourceRequest, 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, MembraneConfigLoader, MembraneError, MinimalConnector, NotAuthenticatedError, NotFoundError, OAUTH1_CONFIG_SCHEMA, OAUTH_CONFIG_SCHEMA, OpenNewConnectionOptions, OrgLimitsType, OrgUserRole, OrgUserStatus, PARALLEL_EXECUTION_LIMITS, PaginationQuery, PaginationResponse, RATE_LIMITS, RateLimitExceededError, ResetFlowInstanceOptions, RunFlowOptions, ScenarioAccessor, ScenarioApiResponse, ScenarioCalculatedProperties, ScenarioEditableProperties, ScenarioElement, ScenarioElementApi, ScenarioTemplate, ScenarioTemplateCategory, ScenarioTemplateElements, ScenariosAccessor, ScreenAccessor, ScreenApiResponse, ScreenBlock, ScreenBlockType, ScreenType, ScreensAccessor, SearchQuery, SelfAccessor, UDM, UNIFIED_DATA_MODELS, UnitRunError, UpdateActionInstanceRequest, UpdateActionRequest, UpdateConnectionRequest, UpdateCustomerRequest, UpdateDataSourceInstanceRequest, UpdateDataSourceRequest, UpdateFlowRequest, UpdateIntegrationRequest, UpstreamFlowNodeRunSchema, UsageType, UserAccessor, UsersAccessor, WORKSPACE_SIZE_LIMITS, WebhookTypeEnum, WorkspaceElementDependencyType, WorkspaceElementSpecs, WorkspaceElementState, WorkspaceElementType, WorkspaceEventType, WorkspaceNotificationType, WorkspaceOnboardingStep, WorkspaceSyncEventType, WorkspaceType, __resolveValue, addRequiredFieldsToSchema, addUdmFallbackFields, backwardCompatibleFilterMatch, buildData, buildDataSchema, buildValue, compressDataSchema, createCompoundSchema, createFlowInstanceSchema, createObjectFromLocators, createOrUpdateConnection, createSchema, dataCollectionEventTypeToExternalEventType, dataLocationParametersMatch, doesMatchFilter, excludeFieldsFromSchema, excludeFieldsFromValue, excludeReadOnlyFieldsFromSchema, excludeWriteOnlyFieldsFromSchema, externalEventTypeToDataCollectionEventType, extractFieldLocator, extractMembraneErrorData, findUdmCollectionMapping, findUdmDefaultCollection, findUdmRootLocation, findValueLocators, generateExampleFromSchema, getActionInstanceVariableSchema, getActionRunTimeVariablesSchema, getAllEventMethodFilePaths, getChildNodeKeys, getDataCollectionCreateFields, getDataCollectionUpdateFields, getDataLocationMethodPath, getDefaultMembraneConfigLoader, getDownstreamNodeKeys, getErrorFromData, getEventMethodFileKey, getFilterFieldValuesByLocator, getFlowInstanceNodeDependency, getFlowNode, getFlowNodeConfigTimeVariablesSchema, getFlowNodeDescription, getFlowNodeRunTimeVariablesSchema, getFlowNodeSpec, getFlowNodeTitle, getFormula$1 as getFormula, getFormulaLocators, getFormula as getFormula_internalDoNotUse, getFullNameForLocator, getFullTitleForLocator, getIconUriForLocator, getLocatorsFromData, getLocatorsFromSchema, getMissingRequiredFields, getNameComponentsForLocator, getNameForLocator, getNodeInputSchema, getOperatorsBySchema, getParentNodeKeys, getReferenceCollectionPathForSchema, getReferenceCollectionPointerForSchema, getRequiredFieldsFromSchema, getRootNodeKeys, getSchemaByLocator, getSchemaFromValue, getUpstreamNodeKeys, getValueAtLocator, getValueByLocator, getVariableLocators, getWritableFieldsSchema, hasCycles, hasFormulas$1 as hasFormulas, hasFormulas as hasFormulas_internalDoNotUse, hasMembraneCredentials, injectFormulaCatalog, isDataActionType, isDataLocationMethodSupported, isFormula$1 as isFormula, isFormula as isFormula_internalDoNotUse, isMembraneError, isObject, isSameDataLocation, isSchemaEmpty, isStream, isValidLocator, loadMembraneConfig, locatorToField, locatorToSteps, locatorToString, makeDataLocationOperationPath, makeDataLocationPath, makeDataRecordSchema, makeObjectPropertyLocator, makeSchemaForLocator, membraneConfigSchema, mergeSchemas, mergeWithFormulas, nonEmptyObjectProperties, parseDataLocationPath, parseDate, patchSchema, pickFieldsFromSchema, pickFieldsFromValue, populateSchemaTitles, processCopy, removeNonExistentVars, removeRequiredFieldsFromSchema, resolveFormulas, schemaAllowsCustomValue, schemaHasFixedValues, schemaHasProperties, schemaIsNumber, schemaIsScalar, schemaTypeFromValue, schemaWithTitle, setSchemaAtLocator, setValueAtLocator, stepsToLocator, streamToString, transformVariablesWith, transformVars, truncateData, unwrapSchema, unwrapSchemas, updateFlowInstanceSchema, updateImpliedSchema, valueToSchema, valueToString, walkSchema, wrapAnyOfSchema, zodBooleanCoercion };
|
|
12858
|
+
export { ACTIONS, AccessDeniedError, ActionAccessor, ActionApiResponse, ActionDependency, ActionDependencyType, ActionEditableProperties, ActionInstanceAccessor, ActionInstanceApiResponse, ActionInstanceSetupError, ActionInstancesAccessor, ActionRunError, ActionRunLogRecordApiResponse, ActionRunLogStatus, ActionRunResponse, ActionType, ActionsAccessor, AlertSeverity, AlertStatus, AlertType, ApiRequestSpec, AppDataSchemaAccessor, AppDataSchemaApiResponse, AppDataSchemaInstanceAccessor, AppDataSchemaInstanceApiResponse, AppDataSchemaInstancesAccessor, AppDataSchemasAccessor, AppEventLogRecordApiResponse, AppEventSubscriptionAccessor, AppEventSubscriptionApiResponse, AppEventSubscriptionsAccessor, AppEventTypeAccessor, AppEventTypeApiResponse, AppEventTypesAccessor, AppliedToIntegrations, BadRequestError, BadRequestErrorKey, BaseAction, BaseActionInstance, BaseActionRunLogRecord, BaseAppDataSchema, BaseAppDataSchemaInstance, BaseAppEventSubscription, BaseAppEventType, BaseConnection, BaseCustomer, BaseDataLinkTable, BaseDataLinkTableInstance, BaseDataSource, BaseDataSourceInstance, BaseExternalEvent, BaseExternalEventLogRecord, BaseExternalEventPull, BaseExternalEventSubscription, BaseFieldMapping, BaseFieldMappingInstance, BaseFlow, BaseFlowInstance, BaseFlowRun, BaseIntegration, BaseIntegrationLevelMembraneInterface, BaseIntegrationLevelMembraneInterfaceEditableProperties, BaseIntegrationLevelMembraneInterfaceReadOnlyProperties, BaseMembraneInterface, BaseMembraneInterfaceEditableProperties, BaseMembraneInterfaceReadOnlyProperties, BaseScenario, BaseScreen, BaseWorkspaceElement, CONFIG_FILE_NAME, CONNECTOR_AUTH_TYPES, CONNECTOR_CATEGORIES, CONNECTOR_DATA_DIR, CONNECTOR_DOCS_DIR, CONNECTOR_EVENTS_DIR, CONNECTOR_GLOBAL_WEBHOOKS_DIR, CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES, CONNECTOR_OPERATIONS_DIR, CommonInstancesListQuery, CommonIntegrationOrConnectionQuery, CommonListElementsQuery, ConcurrencyError, ConcurrencyErrorKey, ConfigurationError, ConfigurationState, ConnectionAccessor, ConnectionApiResponse, ConnectionApiResponseWithSecrets, ConnectionDataCollectionAccessor, ConnectionError, ConnectionErrorKey, ConnectionLevelActionAccessor, ConnectionLevelActionsAccessor, ConnectionLevelDataSourceAccessor, ConnectionLevelDataSourcesAccessor, ConnectionLevelFieldMappingAccessor, ConnectionLevelFieldMappingsAccessor, ConnectionLevelFlowAccessor, ConnectionLevelFlowsAccessor, ConnectionMessagePayload, ConnectionOperationAccessor, ConnectionProxy, ConnectionRequest, ConnectionSelector, ConnectionSpec, ConnectionsAccessor, ConnectorAuthMethodTypes, ConnectorCopilotFileChunkTopicKey, ConnectorCopilotSuggestionType, ConnectorDataCollectionEventImplementationType, ConnectorDataCollectionMethodKeys, ConnectorDataLocationTypes, ConnectorEventHandlerMethods, ConnectorEventImplementationType, ConnectorMethodImplementationType, ConnectorOperationMethodImplementationTypes, ConnectorStatus, CopilotActionStatus, CopilotActionType, CopilotActivityScope, CopilotActivityType, CopilotTaskStatus, CopilotTaskType, CreateActionInstanceRequest, CreateActionRequest, CreateConnectionRequest, CreateCustomerRequest, CreateDataSourceInstanceRequest, CreateDataSourceRequest, CreateFieldMappingRequest, CreateFlowNodeRequest, CreateFlowRequest, CreateFlowRunRequest, CreateIntegrationRequest, CustomCodeError, CustomerAccessor, CustomerApiResponse, CustomerSelector, CustomersAccessor, DATA_RECORD_SCHEMA, DEFAULT_FULL_SYNC_INTERVAL_SECONDS, DEFAULT_PULL_UPDATES_INTERVAL_SECONDS, DataBuilderFormulaType, DataCollectionCreateRequest, DataCollectionCreateResponse, DataCollectionCreateSpec, DataCollectionDeleteRequest, DataCollectionDeleteResponse, DataCollectionDeleteSpec, DataCollectionEventType, DataCollectionEventTypeSpec, DataCollectionEventsSpec, DataCollectionFindByIdRequest, DataCollectionFindByIdResponse, DataCollectionFindByIdSpec, DataCollectionFindRequest, DataCollectionFindResponse, DataCollectionFindSpec, DataCollectionListRequest, DataCollectionListResponse, DataCollectionListResponseDrilldown, DataCollectionListSpec, DataCollectionMatchRequest, DataCollectionMatchResponse, DataCollectionMatchSpec, DataCollectionMethodRequest, DataCollectionMethodSpec, DataCollectionSearchRequest, DataCollectionSearchResponse, DataCollectionSearchSpec, DataCollectionSpec, DataCollectionUdmSpec, DataCollectionUdmsSpec, DataCollectionUpdateRequest, DataCollectionUpdateResponse, DataCollectionUpdateSpec, DataFilterCondition, DataForm, DataLink, DataLinkDirection, DataLinkTableAccessor, DataLinkTableApiResponse, DataLinkTableConfig, DataLinkTableInstanceAccessor, DataLinkTableInstanceApiResponse, DataLinkTableInstancesAccessor, DataLinkTablesAccessor, DataLocationMethodImplementationTypes, DataLocationTypeCollection, DataLocatorStep, DataLocatorStepArrayItem, DataLocatorStepObjectProperty, DataLocatorStepType, DataRecordSchema, DataSchema, DataSourceAccessor, DataSourceApiResponse, DataSourceEditableProperties, DataSourceInstanceAccessor, DataSourceInstanceApiResponse, DataSourceInstancesAccessor, DataSourceUnitConfig, DataSourcesAccessor, DependencyError, DownstreamFlowNodeRunSchema, EDITABLE_LIMITS, ElementAccessor, ElementInstanceAccessor, ElementInstanceListAccessor, ElementListAccessor, ElementsExportFields, ErrorData, ErrorDataSchema, ErrorType, ExternalEvent, ExternalEventLogRecordApiResponse, ExternalEventLogStatus, ExternalEventPullApiResponse, ExternalEventPullStatus, ExternalEventSubscriptionAccessor, ExternalEventSubscriptionApiResponse, ExternalEventSubscriptionConfig, ExternalEventSubscriptionStatus, ExternalEventSubscriptionType, ExternalEventSubscriptionsAccessor, ExternalEventType, ExternalEventUnitConfig, FLOW_NODE_SPECS, FieldMappingAccessor, FieldMappingApiResponse, FieldMappingDirection, FieldMappingEditableProperties, FieldMappingInstanceAccessor, FieldMappingInstanceApiResponse, FieldMappingInstancesAccessor, FieldMappingUnitConfig, FieldMappingsAccessor, FindActionInstancesQuery, FindActionsQuery, FindConnectionsQuery, FindConnectionsResponse, FindCustomersQuery, FindDataSourceEventsQuery, FindDataSourceInstanceSyncsQuery, FindDataSourceInstancesQuery, FindDataSourceSyncsQuery, FindDataSourcesQuery, FindFieldMappingsQuery, FindFlowInstancesQuery, FindFlowRunsQuery, FindFlowRunsResponse, FindFlowsQuery, FindIntegrationsQuery, FindScenariosQuery, FlowAccessor, FlowApiResponse, FlowEditableProperties, FlowInstanceAccessor, FlowInstanceApiResponse, FlowInstanceNode, FlowInstanceNodeState, FlowInstanceSetupError, FlowInstancesAccessor, FlowNode, FlowNodeLink, FlowNodeRunOutputMetadataSchema, FlowNodeRunOutputSchema, FlowNodeRunOutputWithoutDownstreamRunsSchema, FlowNodeRunParametersSchema, FlowNodeRunRecordSchema, FlowNodeRunRecordWithoutOutputsDataSchema, FlowNodeRunResultSchema, FlowNodeRunStatus, FlowNodeSpec, FlowNodeType, FlowRunAccessor, FlowRunApiResponse, FlowRunError, FlowRunLaunchedBy, FlowRunLaunchedByApi, FlowRunLaunchedByTrigger, FlowRunNode, FlowRunNodeState, FlowRunState, FlowRunsAccessor, FlowsAccessor, Formula, HTTP_REQUEST_SCHEMA, HandyScenarioTemplateElement, HttpRequestMethod, HttpRequestSpec, IncludeArchivedQuery, IncomingWebhooksState, IntegrationAccessor, IntegrationApiResponse, MembraneClient as IntegrationAppClient, IntegrationAuthOption, IntegrationAuthUi, IntegrationElementLevel, IntegrationElementType, IntegrationLevelActionAccessor, IntegrationLevelActionsListAccessor, IntegrationLevelDataSourceAccessor, IntegrationLevelDataSourcesListAccessor, IntegrationLevelFieldMappingAccessor, IntegrationLevelFieldMappingsListAccessor, IntegrationLevelFlowAccessor, IntegrationLevelFlowsListAccessor, IntegrationsAccessor, InternalError, InvalidLocatorError, LimitUnits, ListActionInstancesForConnectionQuery, ListDataSourceInstancesForConnectionQuery, ListExternalEventLogRecordsQuery, ListExternalEventPullsQuery, ListFlowInstancesForConnectionQuery, LogRecordType, MIN_FULL_SYNC_INTERVAL_SECONDS, MIN_PULL_UPDATES_INTERVAL_SECONDS, MembraneClient, MembraneConfigLoader, MembraneError, MinimalConnector, NotAuthenticatedError, NotFoundError, OAUTH1_CONFIG_SCHEMA, OAUTH_CONFIG_SCHEMA, OrgLimitsType, OrgUserRole, OrgUserStatus, PARALLEL_EXECUTION_LIMITS, PaginationQuery, PaginationResponse, RATE_LIMITS, RateLimitExceededError, ResetFlowInstanceOptions, ScenarioAccessor, ScenarioApiResponse, ScenarioCalculatedProperties, ScenarioEditableProperties, ScenarioElement, ScenarioElementApi, ScenarioTemplate, ScenarioTemplateCategory, ScenarioTemplateElements, ScenariosAccessor, ScreenAccessor, ScreenApiResponse, ScreenBlock, ScreenBlockType, ScreenType, ScreensAccessor, SearchQuery, SelfAccessor, UDM, UNIFIED_DATA_MODELS, UnitRunError, UpdateActionInstanceRequest, UpdateActionRequest, UpdateConnectionRequest, UpdateCustomerRequest, UpdateDataSourceInstanceRequest, UpdateDataSourceRequest, UpdateFieldMappingRequest, UpdateFlowRequest, UpdateIntegrationRequest, UpstreamFlowNodeRunSchema, UsageType, UserAccessor, UsersAccessor, WORKSPACE_SIZE_LIMITS, WebhookTypeEnum, WorkspaceElementDependencyType, WorkspaceElementSpecs, WorkspaceElementState, WorkspaceElementType, WorkspaceEventType, WorkspaceNotificationType, WorkspaceOnboardingStep, WorkspaceSyncEventType, WorkspaceType, __resolveValue, addRequiredFieldsToSchema, addUdmFallbackFields, backwardCompatibleFilterMatch, buildData, buildDataSchema, buildValue, compressDataSchema, createCompoundSchema, createFlowInstanceSchema, createObjectFromLocators, createOrUpdateConnection, createSchema, dataCollectionEventTypeToExternalEventType, dataLocationParametersMatch, doesMatchFilter, excludeFieldsFromSchema, excludeFieldsFromValue, excludeReadOnlyFieldsFromSchema, excludeWriteOnlyFieldsFromSchema, externalEventTypeToDataCollectionEventType, extractFieldLocator, extractMembraneErrorData, findUdmCollectionMapping, findUdmDefaultCollection, findUdmRootLocation, findValueLocators, generateExampleFromSchema, getActionInstanceVariableSchema, getActionRunTimeVariablesSchema, getAllEventMethodFilePaths, getBusinessDaysBetween, getChildNodeKeys, getDataCollectionCreateFields, getDataCollectionUpdateFields, getDataLocationMethodPath, getDefaultMembraneConfigLoader, getDownstreamNodeKeys, getErrorFromData, getEventMethodFileKey, getFilterFieldValuesByLocator, getFlowInstanceNodeDependency, getFlowNode, getFlowNodeConfigTimeVariablesSchema, getFlowNodeDescription, getFlowNodeRunTimeVariablesSchema, getFlowNodeSpec, getFlowNodeTitle, getFormula$1 as getFormula, getFormulaLocators, getFormula as getFormula_internalDoNotUse, getFullNameForLocator, getFullTitleForLocator, getIconUriForLocator, getLocatorsFromData, getLocatorsFromSchema, getMissingRequiredFields, getNameComponentsForLocator, getNameForLocator, getNodeInputSchema, getOperatorsBySchema, getParentNodeKeys, getReferenceCollectionPathForSchema, getReferenceCollectionPointerForSchema, getRequiredFieldsFromSchema, getRootNodeKeys, getSchemaByLocator, getSchemaFromValue, getUpstreamNodeKeys, getValueAtLocator, getValueByLocator, getVariableLocators, getWritableFieldsSchema, hasCycles, hasFormulas$1 as hasFormulas, hasFormulas as hasFormulas_internalDoNotUse, hasMembraneCredentials, injectFormulaCatalog, isBusinessDay, isDataActionType, isDataLocationMethodSupported, isFormula$1 as isFormula, isFormula as isFormula_internalDoNotUse, isMembraneError, isObject, isSameDataLocation, isSchemaEmpty, isStream, isValidLocator, loadMembraneConfig, locatorToField, locatorToSteps, locatorToString, makeDataLocationOperationPath, makeDataLocationPath, makeDataRecordSchema, makeObjectPropertyLocator, makeSchemaForLocator, membraneConfigSchema, mergeSchemas, mergeWithFormulas, nonEmptyObjectProperties, parseDataLocationPath, parseDate, patchSchema, pickFieldsFromSchema, pickFieldsFromValue, populateSchemaTitles, processCopy, removeNonExistentVars, removeRequiredFieldsFromSchema, resolveFormulas, schemaAllowsCustomValue, schemaHasFixedValues, schemaHasProperties, schemaIsNumber, schemaIsScalar, schemaTypeFromValue, schemaWithTitle, setSchemaAtLocator, setValueAtLocator, stepsToLocator, streamToString, transformVariablesWith, transformVars, truncateData, unwrapSchema, unwrapSchemas, updateFlowInstanceSchema, updateImpliedSchema, valueToSchema, valueToString, walkSchema, wrapAnyOfSchema, zodBooleanCoercion };
|
|
12862
12859
|
//# sourceMappingURL=index.node.mjs.map
|