@membranehq/sdk 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.d.ts +8370 -1268
- package/dist/bundle.js +2216 -2085
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +57 -1
- package/dist/dts/accessors/integrations-accessors.d.ts +57 -1
- package/dist/dts/api-client.d.ts +1 -0
- package/dist/dts/client.d.ts +1 -0
- package/dist/dts/data-schema/types.d.ts +4 -3
- package/dist/dts/entity-repository.d.ts +87 -20
- package/dist/dts/formulas/dataSchemaRef.d.ts +2 -2
- package/dist/dts/http-requests.d.ts +20 -6
- package/dist/dts/iframe.d.ts +12 -4
- package/dist/dts/index.d.ts +2 -1
- package/dist/dts/sse/index.d.ts +1 -0
- package/dist/dts/sse/workspace-elements.d.ts +9 -0
- package/dist/dts/workspace-elements/api/actions-api.d.ts +702 -40
- package/dist/dts/workspace-elements/api/connections-api.d.ts +702 -41
- package/dist/dts/workspace-elements/api/customers-api.d.ts +56 -13
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +834 -77
- package/dist/dts/workspace-elements/api/external-events-api.d.ts +440 -6
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +586 -6
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/flows-api.d.ts +2417 -50
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +253 -24
- package/dist/dts/workspace-elements/api/scenarios-api.d.ts +397 -34
- package/dist/dts/workspace-elements/api/screens-api.d.ts +2 -2
- package/dist/dts/workspace-elements/base/action-instances/types.d.ts +61 -14
- package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +30 -7
- package/dist/dts/workspace-elements/base/actions/types.d.ts +60 -17
- package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +42 -7
- package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +35 -7
- package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +78 -9
- package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +70 -7
- package/dist/dts/workspace-elements/base/connections/types.d.ts +76 -20
- package/dist/dts/workspace-elements/base/connectors/types.d.ts +14 -2
- package/dist/dts/workspace-elements/base/customers/index.d.ts +26 -6
- package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +75 -74
- package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +61 -11
- package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +26 -4
- package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +1030 -19
- package/dist/dts/workspace-elements/base/data-sources/types.d.ts +89 -22
- package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +31 -8
- package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +35 -8
- package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +199 -23
- package/dist/dts/workspace-elements/base/external-events/types.d.ts +145 -5
- package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +74 -16
- package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +91 -14
- package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +39 -39
- package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +155 -24
- package/dist/dts/workspace-elements/base/flow-runs/flow-node-runs.d.ts +20 -20
- package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +114 -19
- package/dist/dts/workspace-elements/base/flows/types.d.ts +220 -26
- package/dist/dts/workspace-elements/base/integrations/types.d.ts +497 -24
- package/dist/dts/workspace-elements/base/scenarios/types.d.ts +723 -23
- package/dist/dts/workspace-elements/base/screens/types.d.ts +40 -6
- package/dist/index.d.ts +12141 -2138
- package/dist/index.js +1555 -522
- package/dist/index.js.map +1 -1
- package/dist/index.module.d.mts +12141 -2138
- package/dist/index.module.mjs +1414 -490
- package/dist/index.module.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7,9 +7,9 @@ var jsonata = require('jsonata');
|
|
|
7
7
|
var deepEqual = require('fast-deep-equal');
|
|
8
8
|
var structuredClonePolyfill = require('@ungap/structured-clone');
|
|
9
9
|
var urljoin = require('url-join');
|
|
10
|
+
var penpal = require('penpal');
|
|
10
11
|
var v3 = require('zod-validation-error/v3');
|
|
11
12
|
var qs = require('qs');
|
|
12
|
-
var penpal = require('penpal');
|
|
13
13
|
var axiosOriginal = require('axios');
|
|
14
14
|
|
|
15
15
|
exports.ErrorType = void 0;
|
|
@@ -1346,6 +1346,42 @@ const DataSchemaSchema = zod.z.lazy(() => zod.z.object({
|
|
|
1346
1346
|
referenceCollectionUri: zod.z.string().optional(),
|
|
1347
1347
|
}));
|
|
1348
1348
|
|
|
1349
|
+
const DataSchema = zod.z.lazy(() => zod.z.object({
|
|
1350
|
+
title: zod.z.string().optional(),
|
|
1351
|
+
description: zod.z.string().optional(),
|
|
1352
|
+
type: zod.z.union([zod.z.string(), zod.z.array(zod.z.string())]).optional(),
|
|
1353
|
+
format: zod.z.string().optional(),
|
|
1354
|
+
properties: zod.z.record(DataSchema).optional(),
|
|
1355
|
+
items: DataSchema.optional(),
|
|
1356
|
+
additionalProperties: zod.z.union([zod.z.boolean(), DataSchema]).optional(),
|
|
1357
|
+
enum: zod.z.array(zod.z.string()).optional(),
|
|
1358
|
+
referenceRecords: zod.z.array(zod.z.any()).optional(),
|
|
1359
|
+
referenceCollection: zod.z
|
|
1360
|
+
.object({
|
|
1361
|
+
key: zod.z.any().optional(),
|
|
1362
|
+
parameters: zod.z.record(zod.z.any()).optional(),
|
|
1363
|
+
})
|
|
1364
|
+
.optional(),
|
|
1365
|
+
referenceUdm: zod.z.string().optional(),
|
|
1366
|
+
default: zod.z.any().optional(),
|
|
1367
|
+
allowCustom: zod.z.boolean().optional(),
|
|
1368
|
+
$ref: zod.z.string().optional(),
|
|
1369
|
+
required: zod.z.array(zod.z.string()).optional(),
|
|
1370
|
+
minLength: zod.z.number().optional(),
|
|
1371
|
+
maxLength: zod.z.number().optional(),
|
|
1372
|
+
minimum: zod.z.number().optional(),
|
|
1373
|
+
maximum: zod.z.number().optional(),
|
|
1374
|
+
maxItems: zod.z.number().optional(),
|
|
1375
|
+
readOnly: zod.z.boolean().optional(),
|
|
1376
|
+
writeOnly: zod.z.boolean().optional(),
|
|
1377
|
+
examples: zod.z.array(zod.z.any()).optional(),
|
|
1378
|
+
anyOf: zod.z.array(DataSchema).optional(),
|
|
1379
|
+
isImplied: zod.z.boolean().optional(),
|
|
1380
|
+
isSensitive: zod.z.boolean().optional(),
|
|
1381
|
+
referenceCollectionPath: zod.z.string().optional(),
|
|
1382
|
+
referenceCollectionUri: zod.z.string().optional(),
|
|
1383
|
+
}));
|
|
1384
|
+
|
|
1349
1385
|
function updateImpliedSchema({ schema: sourceSchema, value, variablesSchema, }) {
|
|
1350
1386
|
let resultSchema = sourceSchema ? JSON.parse(JSON.stringify(sourceSchema)) : undefined;
|
|
1351
1387
|
resultSchema = walkSchema(resultSchema, (schema) => (schema.isImplied ? undefined : schema));
|
|
@@ -3363,12 +3399,110 @@ function getFormula(value) {
|
|
|
3363
3399
|
return undefined;
|
|
3364
3400
|
}
|
|
3365
3401
|
|
|
3402
|
+
exports.ConfigurationState = void 0;
|
|
3403
|
+
(function (ConfigurationState) {
|
|
3404
|
+
ConfigurationState["CONFIGURED"] = "CONFIGURED";
|
|
3405
|
+
ConfigurationState["NOT_CONFIGURED"] = "NOT_CONFIGURED";
|
|
3406
|
+
})(exports.ConfigurationState || (exports.ConfigurationState = {}));
|
|
3407
|
+
exports.WorkspaceElementType = void 0;
|
|
3408
|
+
(function (WorkspaceElementType) {
|
|
3409
|
+
WorkspaceElementType["Customer"] = "customer";
|
|
3410
|
+
WorkspaceElementType["Connector"] = "connector";
|
|
3411
|
+
WorkspaceElementType["Integration"] = "integration";
|
|
3412
|
+
WorkspaceElementType["Flow"] = "flow";
|
|
3413
|
+
WorkspaceElementType["FlowInstance"] = "flow-instance";
|
|
3414
|
+
WorkspaceElementType["FlowRun"] = "flow-run";
|
|
3415
|
+
WorkspaceElementType["Action"] = "action";
|
|
3416
|
+
WorkspaceElementType["Scenario"] = "scenario";
|
|
3417
|
+
WorkspaceElementType["ActionInstance"] = "action-instance";
|
|
3418
|
+
WorkspaceElementType["Connection"] = "connection";
|
|
3419
|
+
WorkspaceElementType["FieldMapping"] = "field-mapping";
|
|
3420
|
+
WorkspaceElementType["FieldMappingInstance"] = "field-mapping-instance";
|
|
3421
|
+
WorkspaceElementType["DataSource"] = "data-source";
|
|
3422
|
+
WorkspaceElementType["DataSourceInstance"] = "data-source-instance";
|
|
3423
|
+
WorkspaceElementType["DataLinkTable"] = "data-link-table";
|
|
3424
|
+
WorkspaceElementType["DataLinkTableInstance"] = "data-link-table-instance";
|
|
3425
|
+
WorkspaceElementType["AppEventType"] = "app-event-type";
|
|
3426
|
+
WorkspaceElementType["AppEventSubscription"] = "app-event-subscription";
|
|
3427
|
+
WorkspaceElementType["AppDataSchema"] = "app-data-schema";
|
|
3428
|
+
WorkspaceElementType["AppDataSchemaInstance"] = "app-data-schema-instance";
|
|
3429
|
+
WorkspaceElementType["ExternalEventSubscription"] = "external-event-subscription";
|
|
3430
|
+
WorkspaceElementType["ExternalEventLogRecord"] = "external-event-log-record";
|
|
3431
|
+
WorkspaceElementType["ExternalEventPull"] = "external-event-pull";
|
|
3432
|
+
WorkspaceElementType["DataCollection"] = "data-collection";
|
|
3433
|
+
WorkspaceElementType["Screen"] = "screen";
|
|
3434
|
+
WorkspaceElementType["ActionRunLogRecord"] = "action-run-log-record";
|
|
3435
|
+
})(exports.WorkspaceElementType || (exports.WorkspaceElementType = {}));
|
|
3436
|
+
exports.WorkspaceEventType = void 0;
|
|
3437
|
+
(function (WorkspaceEventType) {
|
|
3438
|
+
WorkspaceEventType["ConnectionCreated"] = "connection.created";
|
|
3439
|
+
WorkspaceEventType["ConnectionDeleted"] = "connection.deleted";
|
|
3440
|
+
WorkspaceEventType["ConnectionDisconnected"] = "connection.disconnected";
|
|
3441
|
+
WorkspaceEventType["ConnectionReconnected"] = "connection.reconnected";
|
|
3442
|
+
WorkspaceEventType["FlowRunQueued"] = "flowRun.queued";
|
|
3443
|
+
WorkspaceEventType["FlowRunStarted"] = "flowRun.started";
|
|
3444
|
+
WorkspaceEventType["FlowRunCompleted"] = "flowRun.completed";
|
|
3445
|
+
WorkspaceEventType["FlowRunFailed"] = "flowRun.failed";
|
|
3446
|
+
WorkspaceEventType["FlowRunStopped"] = "flowRun.stopped";
|
|
3447
|
+
})(exports.WorkspaceEventType || (exports.WorkspaceEventType = {}));
|
|
3448
|
+
exports.WorkspaceElementState = void 0;
|
|
3449
|
+
(function (WorkspaceElementState) {
|
|
3450
|
+
WorkspaceElementState["CONFIGURATION_ERROR"] = "CONFIGURATION_ERROR";
|
|
3451
|
+
WorkspaceElementState["SETUP_FAILED"] = "SETUP_FAILED";
|
|
3452
|
+
WorkspaceElementState["READY"] = "READY";
|
|
3453
|
+
})(exports.WorkspaceElementState || (exports.WorkspaceElementState = {}));
|
|
3454
|
+
exports.WorkspaceElementDependencyType = void 0;
|
|
3455
|
+
(function (WorkspaceElementDependencyType) {
|
|
3456
|
+
WorkspaceElementDependencyType["Configuration"] = "CONFIGURATION";
|
|
3457
|
+
WorkspaceElementDependencyType["Parent"] = "PARENT";
|
|
3458
|
+
})(exports.WorkspaceElementDependencyType || (exports.WorkspaceElementDependencyType = {}));
|
|
3459
|
+
const BaseWorkspaceElement = zod.z.object({
|
|
3460
|
+
id: zod.z.string(),
|
|
3461
|
+
name: zod.z.string(),
|
|
3462
|
+
});
|
|
3463
|
+
const BaseMembraneInterface = BaseWorkspaceElement.extend({
|
|
3464
|
+
key: zod.z.string(),
|
|
3465
|
+
state: zod.z.nativeEnum(exports.WorkspaceElementState).optional(),
|
|
3466
|
+
errors: zod.z.array(ErrorDataSchema).optional(),
|
|
3467
|
+
});
|
|
3468
|
+
|
|
3366
3469
|
exports.FieldMappingDirection = void 0;
|
|
3367
3470
|
(function (FieldMappingDirection) {
|
|
3368
3471
|
FieldMappingDirection["IMPORT"] = "import";
|
|
3369
3472
|
FieldMappingDirection["EXPORT"] = "export";
|
|
3370
3473
|
FieldMappingDirection["BOTH"] = "both";
|
|
3371
3474
|
})(exports.FieldMappingDirection || (exports.FieldMappingDirection = {}));
|
|
3475
|
+
const BaseFieldMapping = BaseMembraneInterface.extend({
|
|
3476
|
+
revision: zod.z.string(),
|
|
3477
|
+
publishedRevision: zod.z.string().optional(),
|
|
3478
|
+
universalFieldMappingId: zod.z.string().optional(),
|
|
3479
|
+
universalFieldMappingRevision: zod.z.string().optional(),
|
|
3480
|
+
integrationId: zod.z.string().optional(),
|
|
3481
|
+
dataSourceId: zod.z.string(),
|
|
3482
|
+
dataSourceKey: zod.z.string(),
|
|
3483
|
+
appSchema: DataSchema,
|
|
3484
|
+
direction: zod.z.nativeEnum(exports.FieldMappingDirection),
|
|
3485
|
+
defaultImportValue: zod.z.any().optional(),
|
|
3486
|
+
defaultExportValue: zod.z.any().optional(),
|
|
3487
|
+
importValue: zod.z.any().optional(),
|
|
3488
|
+
exportValue: zod.z.any().optional(),
|
|
3489
|
+
frozenImportFields: zod.z.any().optional(),
|
|
3490
|
+
frozenExportFields: zod.z.any().optional(),
|
|
3491
|
+
frozenUnifiedExportFields: zod.z.any().optional(),
|
|
3492
|
+
archivedAt: zod.z.string().optional(),
|
|
3493
|
+
customized: zod.z.boolean().optional(),
|
|
3494
|
+
});
|
|
3495
|
+
const FieldMappingUnitConfig = zod.z.object({
|
|
3496
|
+
key: zod.z.string().optional(),
|
|
3497
|
+
input: zod.z.any().optional(),
|
|
3498
|
+
includeRawFields: zod.z.any().optional(),
|
|
3499
|
+
importValue: zod.z.any().optional(),
|
|
3500
|
+
exportValue: zod.z.any().optional(),
|
|
3501
|
+
default: zod.z.any().optional(),
|
|
3502
|
+
defaultUnifiedValue: zod.z.any().optional(),
|
|
3503
|
+
defaultValue: zod.z.any().optional(),
|
|
3504
|
+
appSchema: DataSchema.optional(),
|
|
3505
|
+
});
|
|
3372
3506
|
|
|
3373
3507
|
function mergeWithFormulas(a, b) {
|
|
3374
3508
|
if (Array.isArray(a) && Array.isArray(b)) {
|
|
@@ -3497,6 +3631,56 @@ const ACTIONS = {
|
|
|
3497
3631
|
},
|
|
3498
3632
|
};
|
|
3499
3633
|
|
|
3634
|
+
const BaseAction = zod.z.object({
|
|
3635
|
+
id: zod.z.string(),
|
|
3636
|
+
key: zod.z.string(),
|
|
3637
|
+
name: zod.z.string(),
|
|
3638
|
+
revision: zod.z.string(),
|
|
3639
|
+
integrationId: zod.z.string().optional(),
|
|
3640
|
+
parentId: zod.z.string().optional(),
|
|
3641
|
+
parentRevision: zod.z.string().optional(),
|
|
3642
|
+
isCustomized: zod.z.boolean().optional(),
|
|
3643
|
+
createdAt: zod.z.string().optional(),
|
|
3644
|
+
updatedAt: zod.z.string().optional(),
|
|
3645
|
+
archivedAt: zod.z.string().optional(),
|
|
3646
|
+
type: zod.z.nativeEnum(exports.ActionType),
|
|
3647
|
+
inputSchema: DataSchema.optional(),
|
|
3648
|
+
config: zod.z.any().optional(),
|
|
3649
|
+
outputMapping: zod.z.any().optional(),
|
|
3650
|
+
customOutputSchema: DataSchema.optional(),
|
|
3651
|
+
defaultOutputSchema: DataSchema.optional(),
|
|
3652
|
+
transformedOutputSchema: DataSchema.optional(),
|
|
3653
|
+
outputSchema: DataSchema.optional(),
|
|
3654
|
+
dependencies: zod.z.array(zod.z.any()).optional(),
|
|
3655
|
+
});
|
|
3656
|
+
|
|
3657
|
+
const ConnectionRequest = zod.z.object({
|
|
3658
|
+
path: zod.z.any(),
|
|
3659
|
+
method: zod.z.enum(['GET', 'POST', 'PUT', 'PATCH', 'DELETE']).optional(),
|
|
3660
|
+
pathParameters: zod.z.record(zod.z.string()).optional(),
|
|
3661
|
+
headers: zod.z.record(zod.z.string()).optional(),
|
|
3662
|
+
query: zod.z.record(zod.z.string()).optional(),
|
|
3663
|
+
data: zod.z.any().optional(),
|
|
3664
|
+
});
|
|
3665
|
+
const BaseConnection = BaseWorkspaceElement.extend({
|
|
3666
|
+
name: zod.z.string(),
|
|
3667
|
+
userId: zod.z.string(),
|
|
3668
|
+
disconnected: zod.z.boolean().optional(),
|
|
3669
|
+
error: ErrorDataSchema.optional(),
|
|
3670
|
+
integrationId: zod.z.string(),
|
|
3671
|
+
credentials: zod.z.unknown().optional(),
|
|
3672
|
+
parameters: zod.z.unknown().optional(),
|
|
3673
|
+
connectorParameters: zod.z.unknown().optional(),
|
|
3674
|
+
accessToken: zod.z.string().optional(),
|
|
3675
|
+
refreshToken: zod.z.string().optional(),
|
|
3676
|
+
createdAt: zod.z.string(),
|
|
3677
|
+
updatedAt: zod.z.string(),
|
|
3678
|
+
lastActiveAt: zod.z.string().optional(),
|
|
3679
|
+
nextCredentialsRefreshAt: zod.z.string().optional(),
|
|
3680
|
+
archivedAt: zod.z.string().optional(),
|
|
3681
|
+
state: zod.z.nativeEnum(exports.WorkspaceElementState).optional(),
|
|
3682
|
+
errors: zod.z.array(ErrorDataSchema).optional(),
|
|
3683
|
+
});
|
|
3500
3684
|
class ConnectionSpec {
|
|
3501
3685
|
constructor(opts) {
|
|
3502
3686
|
Object.assign(this, opts);
|
|
@@ -3820,6 +4004,12 @@ exports.ConnectorStatus = void 0;
|
|
|
3820
4004
|
ConnectorStatus["beta"] = "beta";
|
|
3821
4005
|
ConnectorStatus["planned"] = "planned";
|
|
3822
4006
|
})(exports.ConnectorStatus || (exports.ConnectorStatus = {}));
|
|
4007
|
+
const MinimalConnector = zod.z.object({
|
|
4008
|
+
id: zod.z.string(),
|
|
4009
|
+
key: zod.z.string(),
|
|
4010
|
+
name: zod.z.string(),
|
|
4011
|
+
logoUri: zod.z.string(),
|
|
4012
|
+
});
|
|
3823
4013
|
|
|
3824
4014
|
const DataRecordSchema = zod.z.object({
|
|
3825
4015
|
id: zod.z.string(),
|
|
@@ -7285,7 +7475,7 @@ function getWritableFieldsSchema(spec) {
|
|
|
7285
7475
|
return mergeSchemas([getDataCollectionCreateFields(spec), getDataCollectionUpdateFields(spec)]);
|
|
7286
7476
|
}
|
|
7287
7477
|
function getReferenceCollectionPointerForSchema(schema) {
|
|
7288
|
-
if (schema === null || schema === void 0 ? void 0 : schema.referenceCollection) {
|
|
7478
|
+
if ((schema === null || schema === void 0 ? void 0 : schema.referenceCollection) && schema.referenceCollection.key) {
|
|
7289
7479
|
return schema.referenceCollection;
|
|
7290
7480
|
}
|
|
7291
7481
|
else if (schema === null || schema === void 0 ? void 0 : schema.referenceCollectionPath) {
|
|
@@ -7880,8 +8070,8 @@ const DataCollectionRecordFromFieldsMethod = {
|
|
|
7880
8070
|
getInputSchema: ({ collectionSpec }) => ({
|
|
7881
8071
|
type: 'object',
|
|
7882
8072
|
properties: {
|
|
7883
|
-
|
|
7884
|
-
|
|
8073
|
+
...((collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) && { fields: collectionSpec.fieldsSchema }),
|
|
8074
|
+
...((collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.parametersSchema) && { parameters: collectionSpec.parametersSchema }),
|
|
7885
8075
|
},
|
|
7886
8076
|
}),
|
|
7887
8077
|
getOutputSchema: () => DATA_RECORD_SCHEMA,
|
|
@@ -7920,7 +8110,7 @@ const DataCollectionFieldsFromApiMethod = {
|
|
|
7920
8110
|
},
|
|
7921
8111
|
};
|
|
7922
8112
|
},
|
|
7923
|
-
getOutputSchema: ({ collectionSpec }) => collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema,
|
|
8113
|
+
getOutputSchema: ({ collectionSpec }) => (collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) || { type: 'object' },
|
|
7924
8114
|
supportedImplementationTypes: [exports.ConnectorMethodImplementationType.javascript],
|
|
7925
8115
|
};
|
|
7926
8116
|
const DataCollectionFieldsToApiMethod = {
|
|
@@ -7929,7 +8119,7 @@ const DataCollectionFieldsToApiMethod = {
|
|
|
7929
8119
|
getInputSchema: ({ collectionSpec }) => ({
|
|
7930
8120
|
type: 'object',
|
|
7931
8121
|
properties: {
|
|
7932
|
-
|
|
8122
|
+
...((collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) && { fields: collectionSpec.fieldsSchema }),
|
|
7933
8123
|
},
|
|
7934
8124
|
}),
|
|
7935
8125
|
getOutputSchema: () => {
|
|
@@ -7971,134 +8161,134 @@ const DataLocationTypeCollection = {
|
|
|
7971
8161
|
};
|
|
7972
8162
|
const ConnectorDataCollectionMethodKeys = Object.keys(DataLocationTypeCollection.methods);
|
|
7973
8163
|
|
|
7974
|
-
const
|
|
8164
|
+
const ApiRequestSpec = zod.z.object({
|
|
7975
8165
|
path: zod.z.unknown(),
|
|
7976
8166
|
method: zod.z.unknown(),
|
|
7977
8167
|
});
|
|
7978
|
-
const
|
|
7979
|
-
apiRequests: zod.z.array(
|
|
8168
|
+
const DataCollectionMethodSpec = zod.z.object({
|
|
8169
|
+
apiRequests: zod.z.array(ApiRequestSpec).optional(),
|
|
7980
8170
|
});
|
|
7981
|
-
const
|
|
8171
|
+
const DataCollectionListSpec = DataCollectionMethodSpec.extend({
|
|
7982
8172
|
filterFields: zod.z.array(zod.z.string()).optional(),
|
|
7983
8173
|
});
|
|
7984
|
-
const
|
|
7985
|
-
const
|
|
8174
|
+
const DataCollectionSearchSpec = DataCollectionMethodSpec.extend({});
|
|
8175
|
+
const DataCollectionMatchSpec = DataCollectionMethodSpec.extend({
|
|
7986
8176
|
fields: zod.z.array(zod.z.string()).optional(),
|
|
7987
8177
|
});
|
|
7988
|
-
const
|
|
7989
|
-
const
|
|
8178
|
+
const DataCollectionFindByIdSpec = DataCollectionMethodSpec.extend({});
|
|
8179
|
+
const DataCollectionCreateSpec = DataCollectionMethodSpec.extend({
|
|
7990
8180
|
fields: zod.z.array(zod.z.string()).optional(),
|
|
7991
8181
|
requiredFields: zod.z.array(zod.z.string()).optional(),
|
|
7992
8182
|
excludedFields: zod.z.array(zod.z.string()).optional(),
|
|
7993
8183
|
});
|
|
7994
|
-
const
|
|
8184
|
+
const DataCollectionUpdateSpec = DataCollectionMethodSpec.extend({
|
|
7995
8185
|
fields: zod.z.array(zod.z.string()).optional(),
|
|
7996
8186
|
excludedFields: zod.z.array(zod.z.string()).optional(),
|
|
7997
8187
|
});
|
|
7998
|
-
const
|
|
7999
|
-
const
|
|
8188
|
+
const DataCollectionDeleteSpec = DataCollectionMethodSpec.extend({});
|
|
8189
|
+
const DataCollectionFindSpec = DataCollectionMethodSpec.extend({
|
|
8000
8190
|
queryFields: zod.z.array(zod.z.string()).optional(),
|
|
8001
8191
|
});
|
|
8002
|
-
const
|
|
8192
|
+
const DataCollectionEventTypeSpec = zod.z.object({
|
|
8003
8193
|
type: zod.z.enum(['push', 'pull']),
|
|
8004
8194
|
isFullScan: zod.z.boolean().optional(),
|
|
8005
8195
|
isIdOnly: zod.z.boolean().optional(),
|
|
8006
8196
|
});
|
|
8007
|
-
const
|
|
8197
|
+
const DataCollectionEventsSpec = zod.z
|
|
8008
8198
|
.object({
|
|
8009
|
-
created:
|
|
8010
|
-
updated:
|
|
8011
|
-
deleted:
|
|
8012
|
-
all:
|
|
8199
|
+
created: DataCollectionEventTypeSpec.optional(),
|
|
8200
|
+
updated: DataCollectionEventTypeSpec.optional(),
|
|
8201
|
+
deleted: DataCollectionEventTypeSpec.optional(),
|
|
8202
|
+
all: DataCollectionEventTypeSpec.optional(),
|
|
8013
8203
|
})
|
|
8014
|
-
.catchall(
|
|
8015
|
-
const
|
|
8204
|
+
.catchall(DataCollectionEventTypeSpec);
|
|
8205
|
+
const DataCollectionUdmSpec = zod.z.object({
|
|
8016
8206
|
fields: zod.z.array(zod.z.string()).optional(),
|
|
8017
8207
|
extract: zod.z.record(zod.z.any()).optional(),
|
|
8018
8208
|
parse: zod.z.record(zod.z.any()).optional(),
|
|
8019
8209
|
});
|
|
8020
|
-
const
|
|
8021
|
-
const
|
|
8210
|
+
const DataCollectionUdmsSpec = zod.z.record(DataCollectionUdmSpec);
|
|
8211
|
+
const DataCollectionSpec = zod.z.object({
|
|
8022
8212
|
type: zod.z.literal('collection'),
|
|
8023
8213
|
key: zod.z.string().optional(),
|
|
8024
8214
|
name: zod.z.string(),
|
|
8025
|
-
parametersSchema:
|
|
8026
|
-
fieldsSchema:
|
|
8027
|
-
list:
|
|
8028
|
-
search:
|
|
8029
|
-
match:
|
|
8030
|
-
findById:
|
|
8031
|
-
create:
|
|
8032
|
-
update:
|
|
8033
|
-
delete:
|
|
8034
|
-
events:
|
|
8215
|
+
parametersSchema: DataSchema.optional(),
|
|
8216
|
+
fieldsSchema: DataSchema.optional(),
|
|
8217
|
+
list: DataCollectionListSpec.optional(),
|
|
8218
|
+
search: DataCollectionSearchSpec.optional(),
|
|
8219
|
+
match: DataCollectionMatchSpec.optional(),
|
|
8220
|
+
findById: DataCollectionFindByIdSpec.optional(),
|
|
8221
|
+
create: DataCollectionCreateSpec.optional(),
|
|
8222
|
+
update: DataCollectionUpdateSpec.optional(),
|
|
8223
|
+
delete: DataCollectionDeleteSpec.optional(),
|
|
8224
|
+
events: DataCollectionEventsSpec.optional(),
|
|
8035
8225
|
customFields: zod.z.boolean().optional(),
|
|
8036
|
-
udm:
|
|
8037
|
-
find:
|
|
8226
|
+
udm: DataCollectionUdmsSpec.optional(),
|
|
8227
|
+
find: DataCollectionFindSpec.optional(),
|
|
8038
8228
|
});
|
|
8039
|
-
const
|
|
8229
|
+
const DataCollectionMethodRequest = zod.z.object({
|
|
8040
8230
|
parameters: zod.z.record(zod.z.any()).optional(),
|
|
8041
8231
|
});
|
|
8042
|
-
const
|
|
8232
|
+
const DataCollectionFindRequest = zod.z.object({
|
|
8043
8233
|
query: zod.z.any().optional(),
|
|
8044
8234
|
cursor: zod.z.string().optional(),
|
|
8045
8235
|
});
|
|
8046
|
-
const
|
|
8236
|
+
const DataCollectionFindResponse = zod.z.object({
|
|
8047
8237
|
records: zod.z.array(DataRecordSchema),
|
|
8048
8238
|
cursor: zod.z.string().optional(),
|
|
8049
8239
|
});
|
|
8050
|
-
const
|
|
8240
|
+
const DataCollectionListRequest = DataCollectionMethodRequest.extend({
|
|
8051
8241
|
filter: zod.z.any().optional(),
|
|
8052
8242
|
unifiedFilter: zod.z.any().optional(),
|
|
8053
8243
|
cursor: zod.z.string().optional(),
|
|
8054
8244
|
});
|
|
8055
|
-
const
|
|
8245
|
+
const DataCollectionListResponseDrilldown = zod.z.object({
|
|
8056
8246
|
parameters: zod.z.record(zod.z.any()).optional(),
|
|
8057
8247
|
filter: zod.z.record(zod.z.any()).optional(),
|
|
8058
8248
|
});
|
|
8059
|
-
const
|
|
8249
|
+
const DataCollectionListResponse = zod.z.object({
|
|
8060
8250
|
records: zod.z.array(DataRecordSchema),
|
|
8061
|
-
drilldowns: zod.z.array(
|
|
8251
|
+
drilldowns: zod.z.array(DataCollectionListResponseDrilldown).optional(),
|
|
8062
8252
|
cursor: zod.z.string().optional(),
|
|
8063
8253
|
});
|
|
8064
|
-
const
|
|
8254
|
+
const DataCollectionSearchRequest = DataCollectionMethodRequest.extend({
|
|
8065
8255
|
query: zod.z.string(),
|
|
8066
8256
|
cursor: zod.z.string().optional(),
|
|
8067
8257
|
});
|
|
8068
|
-
const
|
|
8258
|
+
const DataCollectionSearchResponse = zod.z.object({
|
|
8069
8259
|
records: zod.z.array(DataRecordSchema),
|
|
8070
8260
|
cursor: zod.z.string().optional(),
|
|
8071
8261
|
});
|
|
8072
|
-
const
|
|
8262
|
+
const DataCollectionFindByIdRequest = DataCollectionMethodRequest.extend({
|
|
8073
8263
|
id: zod.z.string(),
|
|
8074
8264
|
udm: zod.z.string().optional(),
|
|
8075
8265
|
});
|
|
8076
|
-
const
|
|
8266
|
+
const DataCollectionFindByIdResponse = zod.z.object({
|
|
8077
8267
|
record: DataRecordSchema,
|
|
8078
8268
|
});
|
|
8079
|
-
const
|
|
8269
|
+
const DataCollectionMatchRequest = DataCollectionMethodRequest.extend({
|
|
8080
8270
|
query: zod.z.record(zod.z.any()),
|
|
8081
8271
|
});
|
|
8082
|
-
const
|
|
8272
|
+
const DataCollectionMatchResponse = zod.z.object({
|
|
8083
8273
|
record: DataRecordSchema.optional(),
|
|
8084
8274
|
});
|
|
8085
|
-
const
|
|
8275
|
+
const DataCollectionCreateRequest = DataCollectionMethodRequest.extend({
|
|
8086
8276
|
fields: zod.z.record(zod.z.any()),
|
|
8087
8277
|
});
|
|
8088
|
-
const
|
|
8278
|
+
const DataCollectionCreateResponse = zod.z.object({
|
|
8089
8279
|
id: zod.z.string(),
|
|
8090
8280
|
});
|
|
8091
|
-
const
|
|
8281
|
+
const DataCollectionUpdateRequest = DataCollectionMethodRequest.extend({
|
|
8092
8282
|
id: zod.z.string(),
|
|
8093
8283
|
fields: zod.z.record(zod.z.any()),
|
|
8094
8284
|
});
|
|
8095
|
-
const
|
|
8285
|
+
const DataCollectionUpdateResponse = zod.z.object({
|
|
8096
8286
|
id: zod.z.string(),
|
|
8097
8287
|
});
|
|
8098
|
-
const
|
|
8288
|
+
const DataCollectionDeleteRequest = DataCollectionMethodRequest.extend({
|
|
8099
8289
|
id: zod.z.string(),
|
|
8100
8290
|
});
|
|
8101
|
-
const
|
|
8291
|
+
const DataCollectionDeleteResponse = zod.z.object({});
|
|
8102
8292
|
const ConnectorDataLocationTypes = {
|
|
8103
8293
|
collection: DataLocationTypeCollection,
|
|
8104
8294
|
};
|
|
@@ -8166,6 +8356,56 @@ const DEFAULT_FULL_SYNC_INTERVAL_SECONDS = 60 * 60 * 3;
|
|
|
8166
8356
|
const MIN_FULL_SYNC_INTERVAL_SECONDS = 1 * 60;
|
|
8167
8357
|
const MIN_PULL_UPDATES_INTERVAL_SECONDS = 1 * 60;
|
|
8168
8358
|
|
|
8359
|
+
const DataSourceUnitConfig = zod.z.object({
|
|
8360
|
+
key: zod.z.string().optional(),
|
|
8361
|
+
collectionKey: zod.z.any().optional(),
|
|
8362
|
+
collectionParameters: zod.z.any().optional(),
|
|
8363
|
+
udm: zod.z.any().optional(),
|
|
8364
|
+
path: zod.z.string().optional(),
|
|
8365
|
+
pullUpdatesIntervalSeconds: zod.z.number().optional(),
|
|
8366
|
+
fullSyncIntervalSeconds: zod.z.number().optional(),
|
|
8367
|
+
});
|
|
8368
|
+
const BaseDataSource = BaseMembraneInterface.extend({
|
|
8369
|
+
revision: zod.z.string(),
|
|
8370
|
+
publishedRevision: zod.z.string().optional(),
|
|
8371
|
+
integrationId: zod.z.string().optional(),
|
|
8372
|
+
universalDataSourceId: zod.z.string().optional(),
|
|
8373
|
+
universalDataSourceRevision: zod.z.string().optional(),
|
|
8374
|
+
udm: zod.z.string().optional(),
|
|
8375
|
+
pullUpdatesIntervalSeconds: zod.z.number().optional(),
|
|
8376
|
+
fullSyncIntervalSeconds: zod.z.number().optional(),
|
|
8377
|
+
collectionKey: zod.z.string().optional(),
|
|
8378
|
+
collectionParameters: zod.z.any().optional(),
|
|
8379
|
+
archivedAt: zod.z.string().optional(),
|
|
8380
|
+
createdAt: zod.z.string().optional(),
|
|
8381
|
+
updatedAt: zod.z.string().optional(),
|
|
8382
|
+
customized: zod.z.boolean().optional(),
|
|
8383
|
+
defaultPath: zod.z.string().optional(),
|
|
8384
|
+
});
|
|
8385
|
+
|
|
8386
|
+
const BaseDataSourceInstance = BaseMembraneInterface.extend({
|
|
8387
|
+
userId: zod.z.string(),
|
|
8388
|
+
revision: zod.z.string(),
|
|
8389
|
+
dataSourceRevision: zod.z.string().optional(),
|
|
8390
|
+
dataSourceId: zod.z.string().optional(),
|
|
8391
|
+
universalDataSourceId: zod.z.string().optional(),
|
|
8392
|
+
udm: zod.z.string().optional(),
|
|
8393
|
+
connectionId: zod.z.string(),
|
|
8394
|
+
integrationId: zod.z.string(),
|
|
8395
|
+
instanceKey: zod.z.string().optional(),
|
|
8396
|
+
collectionKey: zod.z.string().optional(),
|
|
8397
|
+
collectionParameters: zod.z.any().optional(),
|
|
8398
|
+
defaultCollectionKey: zod.z.string().optional(),
|
|
8399
|
+
defaultCollectionParameters: zod.z.any().optional(),
|
|
8400
|
+
collectionSpec: DataCollectionSpec.optional(),
|
|
8401
|
+
isCustomized: zod.z.boolean().optional(),
|
|
8402
|
+
errors: zod.z.array(ErrorDataSchema).optional(),
|
|
8403
|
+
pullUpdatesIntervalSeconds: zod.z.number().optional(),
|
|
8404
|
+
fullSyncIntervalSeconds: zod.z.number().optional(),
|
|
8405
|
+
path: zod.z.string().optional(),
|
|
8406
|
+
defaultPath: zod.z.string().optional(),
|
|
8407
|
+
});
|
|
8408
|
+
|
|
8169
8409
|
exports.ExternalEventType = void 0;
|
|
8170
8410
|
(function (ExternalEventType) {
|
|
8171
8411
|
ExternalEventType["DataRecordCreated"] = "data-record-created";
|
|
@@ -8178,6 +8418,15 @@ exports.IncomingWebhooksState = void 0;
|
|
|
8178
8418
|
IncomingWebhooksState["SUCCESS"] = "success";
|
|
8179
8419
|
IncomingWebhooksState["ERROR"] = "error";
|
|
8180
8420
|
})(exports.IncomingWebhooksState || (exports.IncomingWebhooksState = {}));
|
|
8421
|
+
const ExternalEventUnitConfig = zod.z.object({
|
|
8422
|
+
type: zod.z.nativeEnum(exports.ExternalEventType),
|
|
8423
|
+
dataSource: DataSourceUnitConfig.optional(),
|
|
8424
|
+
eventKey: zod.z.string().optional(),
|
|
8425
|
+
eventParameters: zod.z.any().optional(),
|
|
8426
|
+
});
|
|
8427
|
+
const BaseExternalEvent = zod.z.object({
|
|
8428
|
+
config: ExternalEventUnitConfig.optional(),
|
|
8429
|
+
});
|
|
8181
8430
|
|
|
8182
8431
|
function externalEventTypeToDataCollectionEventType(type) {
|
|
8183
8432
|
switch (type) {
|
|
@@ -8204,6 +8453,23 @@ function dataCollectionEventTypeToExternalEventType(type) {
|
|
|
8204
8453
|
}
|
|
8205
8454
|
}
|
|
8206
8455
|
|
|
8456
|
+
exports.FlowRunState = void 0;
|
|
8457
|
+
(function (FlowRunState) {
|
|
8458
|
+
FlowRunState["QUEUED"] = "queued";
|
|
8459
|
+
FlowRunState["RUNNING"] = "running";
|
|
8460
|
+
FlowRunState["COMPLETED"] = "completed";
|
|
8461
|
+
FlowRunState["STOPPED"] = "stopped";
|
|
8462
|
+
FlowRunState["FAILED"] = "failed";
|
|
8463
|
+
})(exports.FlowRunState || (exports.FlowRunState = {}));
|
|
8464
|
+
exports.FlowRunLaunchedByTrigger = void 0;
|
|
8465
|
+
(function (FlowRunLaunchedByTrigger) {
|
|
8466
|
+
FlowRunLaunchedByTrigger["ApiTrigger"] = "api-trigger";
|
|
8467
|
+
FlowRunLaunchedByTrigger["ScheduleTrigger"] = "schedule-trigger";
|
|
8468
|
+
FlowRunLaunchedByTrigger["AppEventTrigger"] = "app-event-trigger";
|
|
8469
|
+
FlowRunLaunchedByTrigger["DataSourceTrigger"] = "data-source-trigger";
|
|
8470
|
+
FlowRunLaunchedByTrigger["ExternalEvent"] = "external-event";
|
|
8471
|
+
})(exports.FlowRunLaunchedByTrigger || (exports.FlowRunLaunchedByTrigger = {}));
|
|
8472
|
+
|
|
8207
8473
|
exports.FlowRunNodeState = void 0;
|
|
8208
8474
|
(function (FlowRunNodeState) {
|
|
8209
8475
|
FlowRunNodeState["RUNNING"] = "running";
|
|
@@ -8211,6 +8477,33 @@ exports.FlowRunNodeState = void 0;
|
|
|
8211
8477
|
FlowRunNodeState["STOPPED"] = "stopped";
|
|
8212
8478
|
FlowRunNodeState["FAILED"] = "failed";
|
|
8213
8479
|
})(exports.FlowRunNodeState || (exports.FlowRunNodeState = {}));
|
|
8480
|
+
const FlowRunLaunchedBy = zod.z.object({
|
|
8481
|
+
type: zod.z.nativeEnum(exports.FlowRunLaunchedByTrigger),
|
|
8482
|
+
ids: zod.z.array(zod.z.string()).optional(),
|
|
8483
|
+
});
|
|
8484
|
+
const FlowRunNode = zod.z.object({
|
|
8485
|
+
state: zod.z.nativeEnum(exports.FlowRunNodeState),
|
|
8486
|
+
runs: zod.z.number().optional(),
|
|
8487
|
+
erroredRuns: zod.z.number().optional(),
|
|
8488
|
+
outputs: zod.z.number().optional(),
|
|
8489
|
+
});
|
|
8490
|
+
const BaseFlowRun = zod.z.object({
|
|
8491
|
+
id: zod.z.string(),
|
|
8492
|
+
name: zod.z.string().optional(),
|
|
8493
|
+
flowInstanceId: zod.z.string(),
|
|
8494
|
+
universalFlowId: zod.z.string().optional(),
|
|
8495
|
+
connectionId: zod.z.string().optional(),
|
|
8496
|
+
integrationId: zod.z.string().optional(),
|
|
8497
|
+
startNodeKey: zod.z.string(),
|
|
8498
|
+
userId: zod.z.string(),
|
|
8499
|
+
input: zod.z.any().optional(),
|
|
8500
|
+
state: zod.z.nativeEnum(exports.FlowRunState),
|
|
8501
|
+
startTime: zod.z.string(),
|
|
8502
|
+
endTime: zod.z.string().optional(),
|
|
8503
|
+
errors: zod.z.array(ErrorDataSchema).optional(),
|
|
8504
|
+
nodes: zod.z.record(FlowRunNode).optional(),
|
|
8505
|
+
launchedBy: FlowRunLaunchedBy.optional(),
|
|
8506
|
+
});
|
|
8214
8507
|
|
|
8215
8508
|
exports.FlowNodeRunStatus = void 0;
|
|
8216
8509
|
(function (FlowNodeRunStatus) {
|
|
@@ -8535,11 +8828,201 @@ const FLOW_NODE_SPECS = {
|
|
|
8535
8828
|
[exports.FlowNodeType.RunAction]: RunAction,
|
|
8536
8829
|
};
|
|
8537
8830
|
|
|
8831
|
+
const FlowNodeLink = zod.z.object({
|
|
8832
|
+
key: zod.z.string().optional(),
|
|
8833
|
+
filter: zod.z.any().optional(),
|
|
8834
|
+
name: zod.z.string().optional(),
|
|
8835
|
+
});
|
|
8836
|
+
const FlowNode = zod.z.object({
|
|
8837
|
+
type: zod.z.string().optional(),
|
|
8838
|
+
version: zod.z.number().optional(),
|
|
8839
|
+
name: zod.z.string().optional(),
|
|
8840
|
+
description: zod.z.string().optional(),
|
|
8841
|
+
config: zod.z.any().optional(),
|
|
8842
|
+
concurrency: zod.z.number().optional(),
|
|
8843
|
+
onError: zod.z.enum(['stop', 'continue']).optional(),
|
|
8844
|
+
ui: zod.z.any().optional(),
|
|
8845
|
+
inputSchema: zod.z.any().optional(),
|
|
8846
|
+
outputSchema: zod.z.any().optional(),
|
|
8847
|
+
outputExample: zod.z.any().optional(),
|
|
8848
|
+
links: zod.z.array(FlowNodeLink).optional(),
|
|
8849
|
+
isCustomized: zod.z.boolean().optional(),
|
|
8850
|
+
});
|
|
8851
|
+
const BaseFlow = BaseMembraneInterface.extend({
|
|
8852
|
+
integrationId: zod.z.string().optional(),
|
|
8853
|
+
universalFlowId: zod.z.string().optional(),
|
|
8854
|
+
universalFlowRevision: zod.z.string().optional(),
|
|
8855
|
+
parametersSchema: DataSchema.optional(),
|
|
8856
|
+
nodes: zod.z.record(FlowNode).optional(),
|
|
8857
|
+
autoCreateInstances: zod.z.boolean().optional(),
|
|
8858
|
+
archivedAt: zod.z.string().optional(),
|
|
8859
|
+
revision: zod.z.string(),
|
|
8860
|
+
customized: zod.z.boolean().optional(),
|
|
8861
|
+
});
|
|
8862
|
+
|
|
8863
|
+
const BaseIntegration = BaseMembraneInterface.extend({
|
|
8864
|
+
logoUri: zod.z.string(),
|
|
8865
|
+
connectorId: zod.z.string().optional(),
|
|
8866
|
+
connectorVersion: zod.z.string().optional(),
|
|
8867
|
+
authOptions: zod.z.array(zod.z.any()).optional(),
|
|
8868
|
+
oAuthCallbackUri: zod.z.string().optional(),
|
|
8869
|
+
parametersSchema: DataSchema.optional(),
|
|
8870
|
+
parameters: zod.z.any().optional(),
|
|
8871
|
+
baseUri: zod.z.string(),
|
|
8872
|
+
archivedAt: zod.z.string().optional(),
|
|
8873
|
+
hasMissingParameters: zod.z.boolean().optional(),
|
|
8874
|
+
hasDocumentation: zod.z.boolean().optional(),
|
|
8875
|
+
hasOperations: zod.z.boolean().optional(),
|
|
8876
|
+
hasData: zod.z.boolean().optional(),
|
|
8877
|
+
hasEvents: zod.z.boolean().optional(),
|
|
8878
|
+
hasGlobalWebhooks: zod.z.boolean().optional(),
|
|
8879
|
+
hasUdm: zod.z.boolean().optional(),
|
|
8880
|
+
isTest: zod.z.boolean().optional(),
|
|
8881
|
+
appUuid: zod.z.string().optional(),
|
|
8882
|
+
isDeactivated: zod.z.boolean().optional(),
|
|
8883
|
+
authType: zod.z.enum(CONNECTOR_AUTH_TYPES).optional(),
|
|
8884
|
+
});
|
|
8885
|
+
const AppliedToIntegrations = (elementSchema) => zod.z.array(zod.z.object({
|
|
8886
|
+
element: elementSchema,
|
|
8887
|
+
integration: BaseIntegration,
|
|
8888
|
+
}));
|
|
8889
|
+
|
|
8890
|
+
exports.ScenarioTemplateCategory = void 0;
|
|
8891
|
+
(function (ScenarioTemplateCategory) {
|
|
8892
|
+
ScenarioTemplateCategory["DataExport"] = "data-export";
|
|
8893
|
+
ScenarioTemplateCategory["DataImport"] = "data-import";
|
|
8894
|
+
ScenarioTemplateCategory["BiDirectionalSync"] = "bi-directional-sync";
|
|
8895
|
+
ScenarioTemplateCategory["UnifiedApi"] = "unified-api";
|
|
8896
|
+
ScenarioTemplateCategory["DataEnrichment"] = "data-enrichment";
|
|
8897
|
+
})(exports.ScenarioTemplateCategory || (exports.ScenarioTemplateCategory = {}));
|
|
8898
|
+
const ScenarioToDo = zod.z.object({
|
|
8899
|
+
name: zod.z.string(),
|
|
8900
|
+
description: zod.z.string(),
|
|
8901
|
+
isComplete: zod.z.boolean(),
|
|
8902
|
+
});
|
|
8903
|
+
const ScenarioElement = zod.z.object({
|
|
8904
|
+
id: zod.z.string(),
|
|
8905
|
+
type: zod.z.string(),
|
|
8906
|
+
element: zod.z.any().optional(),
|
|
8907
|
+
});
|
|
8908
|
+
const BaseScenario = BaseMembraneInterface.extend({
|
|
8909
|
+
appId: zod.z.string(),
|
|
8910
|
+
scenarioTemplateId: zod.z.string().optional(),
|
|
8911
|
+
elements: zod.z.array(ScenarioElement).optional(),
|
|
8912
|
+
connectors: zod.z.array(MinimalConnector).optional(),
|
|
8913
|
+
todos: zod.z.array(ScenarioToDo).optional(),
|
|
8914
|
+
archivedAt: zod.z.string().optional(),
|
|
8915
|
+
});
|
|
8916
|
+
const HandyScenarioTemplateElement = zod.z.object({
|
|
8917
|
+
type: zod.z.string(),
|
|
8918
|
+
integration: zod.z.object({ key: zod.z.string(), connectorId: zod.z.string() }).optional(),
|
|
8919
|
+
integrations: zod.z.array(zod.z.object({ key: zod.z.string(), connectorId: zod.z.string() })).optional(),
|
|
8920
|
+
fields: zod.z
|
|
8921
|
+
.object({
|
|
8922
|
+
key: zod.z.string(),
|
|
8923
|
+
name: zod.z.string(),
|
|
8924
|
+
})
|
|
8925
|
+
.and(zod.z.record(zod.z.any())),
|
|
8926
|
+
});
|
|
8927
|
+
const withIntegrationKeys = (schema) => schema.and(zod.z.object({ integrationKeys: zod.z.array(zod.z.string()).optional() }));
|
|
8928
|
+
const ElementsExportFields = zod.z.object({
|
|
8929
|
+
flows: zod.z.record(withIntegrationKeys(zod.z.any())).optional(),
|
|
8930
|
+
actions: zod.z.record(withIntegrationKeys(zod.z.any())).optional(),
|
|
8931
|
+
fieldMappings: zod.z.record(withIntegrationKeys(zod.z.any())).optional(),
|
|
8932
|
+
dataSources: zod.z.record(withIntegrationKeys(zod.z.any())).optional(),
|
|
8933
|
+
dataLinkTables: zod.z.record(zod.z.any()).optional(),
|
|
8934
|
+
appEventTypes: zod.z.record(zod.z.any()).optional(),
|
|
8935
|
+
appDataSchemas: zod.z.record(zod.z.any()).optional(),
|
|
8936
|
+
});
|
|
8937
|
+
const ScenarioTemplateElements = ElementsExportFields.and(zod.z.object({
|
|
8938
|
+
integrations: zod.z.record(ElementsExportFields.and(zod.z.object({ connectorId: zod.z.string() }))).optional(),
|
|
8939
|
+
}));
|
|
8940
|
+
const ScenarioTemplate = zod.z.object({
|
|
8941
|
+
id: zod.z.string(),
|
|
8942
|
+
name: zod.z.string(),
|
|
8943
|
+
key: zod.z.string(),
|
|
8944
|
+
shortDescription: zod.z.string().optional(),
|
|
8945
|
+
description: zod.z.string().optional(),
|
|
8946
|
+
demoWorkspaceKey: zod.z.string().optional(),
|
|
8947
|
+
demoAppUri: zod.z.string().optional(),
|
|
8948
|
+
demoGithubRepo: zod.z.string().optional(),
|
|
8949
|
+
demoVideoYoutubeUri: zod.z.string().optional(),
|
|
8950
|
+
tags: zod.z.array(zod.z.nativeEnum(exports.ScenarioTemplateCategory)).optional(),
|
|
8951
|
+
elements: ScenarioTemplateElements.optional(),
|
|
8952
|
+
todos: zod.z.array(ScenarioToDo.omit({ isComplete: true })).optional(),
|
|
8953
|
+
connectors: zod.z.array(MinimalConnector).optional(),
|
|
8954
|
+
handyElements: zod.z.array(HandyScenarioTemplateElement).optional(),
|
|
8955
|
+
});
|
|
8956
|
+
|
|
8957
|
+
exports.ScreenType = void 0;
|
|
8958
|
+
(function (ScreenType) {
|
|
8959
|
+
ScreenType["Integration"] = "integration";
|
|
8960
|
+
})(exports.ScreenType || (exports.ScreenType = {}));
|
|
8961
|
+
exports.ScreenBlockType = void 0;
|
|
8962
|
+
(function (ScreenBlockType) {
|
|
8963
|
+
ScreenBlockType["Flow"] = "flow";
|
|
8964
|
+
ScreenBlockType["FieldMapping"] = "field-mapping";
|
|
8965
|
+
ScreenBlockType["DataSource"] = "data-source";
|
|
8966
|
+
ScreenBlockType["Action"] = "action";
|
|
8967
|
+
})(exports.ScreenBlockType || (exports.ScreenBlockType = {}));
|
|
8968
|
+
|
|
8969
|
+
const ScreenBlock = zod.z
|
|
8970
|
+
.object({
|
|
8971
|
+
type: zod.z.nativeEnum(exports.ScreenBlockType),
|
|
8972
|
+
})
|
|
8973
|
+
.and(zod.z.record(zod.z.any()));
|
|
8974
|
+
const BaseScreen = BaseWorkspaceElement.extend({
|
|
8975
|
+
type: zod.z.nativeEnum(exports.ScreenType),
|
|
8976
|
+
key: zod.z.string().optional(),
|
|
8977
|
+
blocks: zod.z.array(ScreenBlock),
|
|
8978
|
+
});
|
|
8979
|
+
|
|
8980
|
+
const BaseCustomer = zod.z.object({
|
|
8981
|
+
id: zod.z.string(),
|
|
8982
|
+
name: zod.z.string(),
|
|
8983
|
+
internalId: zod.z.string(),
|
|
8984
|
+
fields: zod.z.record(zod.z.string(), zod.z.any()).optional(),
|
|
8985
|
+
credentials: zod.z.any().optional(),
|
|
8986
|
+
lastActiveAt: zod.z.string().optional(),
|
|
8987
|
+
isTest: zod.z.boolean().optional(),
|
|
8988
|
+
isBillable: zod.z.boolean().optional(),
|
|
8989
|
+
});
|
|
8990
|
+
|
|
8991
|
+
const BaseFlowInstance = BaseMembraneInterface.extend({
|
|
8992
|
+
userId: zod.z.string(),
|
|
8993
|
+
connectionId: zod.z.string().optional(),
|
|
8994
|
+
flowId: zod.z.string().optional(),
|
|
8995
|
+
universalFlowId: zod.z.string().optional(),
|
|
8996
|
+
integrationId: zod.z.string(),
|
|
8997
|
+
instanceKey: zod.z.string().optional(),
|
|
8998
|
+
parameters: zod.z.any().optional(),
|
|
8999
|
+
parametersSchema: DataSchema.optional(),
|
|
9000
|
+
nodes: zod.z.record(zod.z.any()).optional(),
|
|
9001
|
+
enabled: zod.z.boolean(),
|
|
9002
|
+
createdAt: zod.z.string(),
|
|
9003
|
+
updatedAt: zod.z.string(),
|
|
9004
|
+
state: zod.z.nativeEnum(exports.WorkspaceElementState).optional(),
|
|
9005
|
+
outdated: zod.z.boolean().optional(),
|
|
9006
|
+
customized: zod.z
|
|
9007
|
+
.object({
|
|
9008
|
+
name: zod.z.boolean().optional(),
|
|
9009
|
+
nodes: zod.z.boolean().optional(),
|
|
9010
|
+
})
|
|
9011
|
+
.optional(),
|
|
9012
|
+
dependencies: zod.z.array(zod.z.any()).optional(),
|
|
9013
|
+
});
|
|
8538
9014
|
exports.FlowInstanceNodeState = void 0;
|
|
8539
9015
|
(function (FlowInstanceNodeState) {
|
|
8540
9016
|
FlowInstanceNodeState["SETUP_FAILED"] = "SETUP_FAILED";
|
|
8541
9017
|
FlowInstanceNodeState["READY"] = "READY";
|
|
8542
9018
|
})(exports.FlowInstanceNodeState || (exports.FlowInstanceNodeState = {}));
|
|
9019
|
+
const FlowInstanceNode = FlowNode.extend({
|
|
9020
|
+
state: zod.z.nativeEnum(exports.FlowInstanceNodeState).optional(),
|
|
9021
|
+
errors: zod.z.array(ErrorDataSchema).optional(),
|
|
9022
|
+
userConfig: zod.z.any().optional(),
|
|
9023
|
+
testInput: zod.z.any().optional(),
|
|
9024
|
+
dependencies: zod.z.array(zod.z.any()).optional(),
|
|
9025
|
+
});
|
|
8543
9026
|
|
|
8544
9027
|
const flowNodeLinkSchema = zod.z.object({
|
|
8545
9028
|
key: zod.z.string().optional(),
|
|
@@ -8603,6 +9086,54 @@ exports.ActionDependencyType = void 0;
|
|
|
8603
9086
|
ActionDependencyType["FieldMapping"] = "FieldMapping";
|
|
8604
9087
|
ActionDependencyType["DataSource"] = "DataSource";
|
|
8605
9088
|
})(exports.ActionDependencyType || (exports.ActionDependencyType = {}));
|
|
9089
|
+
const ActionDependency = zod.z.object({
|
|
9090
|
+
type: zod.z.nativeEnum(exports.ActionDependencyType),
|
|
9091
|
+
key: zod.z.string(),
|
|
9092
|
+
element: zod.z.any().optional(),
|
|
9093
|
+
});
|
|
9094
|
+
const BaseActionInstance = zod.z.object({
|
|
9095
|
+
id: zod.z.string(),
|
|
9096
|
+
name: zod.z.string(),
|
|
9097
|
+
revision: zod.z.string(),
|
|
9098
|
+
parentId: zod.z.string().optional(),
|
|
9099
|
+
parentRevision: zod.z.string().optional(),
|
|
9100
|
+
universalParentId: zod.z.string().optional(),
|
|
9101
|
+
userId: zod.z.string(),
|
|
9102
|
+
instanceKey: zod.z.string().optional(),
|
|
9103
|
+
createdAt: zod.z.string().optional(),
|
|
9104
|
+
updatedAt: zod.z.string().optional(),
|
|
9105
|
+
archivedAt: zod.z.string().optional(),
|
|
9106
|
+
type: zod.z.nativeEnum(exports.ActionType),
|
|
9107
|
+
inputSchema: zod.z.any().optional(),
|
|
9108
|
+
config: zod.z.any().optional(),
|
|
9109
|
+
outputSchema: zod.z.any().optional(),
|
|
9110
|
+
isOutdated: zod.z.boolean().optional(),
|
|
9111
|
+
state: zod.z.nativeEnum(exports.WorkspaceElementState),
|
|
9112
|
+
});
|
|
9113
|
+
|
|
9114
|
+
const BaseFieldMappingInstance = BaseMembraneInterface.extend({
|
|
9115
|
+
userId: zod.z.string(),
|
|
9116
|
+
revision: zod.z.string(),
|
|
9117
|
+
connectionId: zod.z.string(),
|
|
9118
|
+
integrationId: zod.z.string(),
|
|
9119
|
+
fieldMappingRevision: zod.z.string().optional(),
|
|
9120
|
+
fieldMappingId: zod.z.string().optional(),
|
|
9121
|
+
instanceKey: zod.z.string().optional(),
|
|
9122
|
+
dataSourceInstanceId: zod.z.string().optional(),
|
|
9123
|
+
dataSourceSchema: DataSchema.optional(),
|
|
9124
|
+
direction: zod.z.nativeEnum(exports.FieldMappingDirection).optional(),
|
|
9125
|
+
appSchema: DataSchema.optional(),
|
|
9126
|
+
importValue: zod.z.any().optional(),
|
|
9127
|
+
exportValue: zod.z.any().optional(),
|
|
9128
|
+
isCustomized: zod.z.boolean().optional(),
|
|
9129
|
+
unifiedExportValue: zod.z.any().optional(),
|
|
9130
|
+
unifiedImportValue: zod.z.any().optional(),
|
|
9131
|
+
frozenImportFields: zod.z.array(zod.z.string()).optional(),
|
|
9132
|
+
frozenExportFields: zod.z.array(zod.z.string()).optional(),
|
|
9133
|
+
state: zod.z.nativeEnum(exports.WorkspaceElementState).optional(),
|
|
9134
|
+
error: ErrorDataSchema.optional(),
|
|
9135
|
+
externalSchema: zod.z.any().optional(),
|
|
9136
|
+
});
|
|
8606
9137
|
|
|
8607
9138
|
exports.DataLinkDirection = void 0;
|
|
8608
9139
|
(function (DataLinkDirection) {
|
|
@@ -8610,6 +9141,106 @@ exports.DataLinkDirection = void 0;
|
|
|
8610
9141
|
DataLinkDirection["EXPORT"] = "export";
|
|
8611
9142
|
DataLinkDirection["BOTH"] = "both";
|
|
8612
9143
|
})(exports.DataLinkDirection || (exports.DataLinkDirection = {}));
|
|
9144
|
+
const BaseDataLinkTable = BaseMembraneInterface.extend({
|
|
9145
|
+
archivedAt: zod.z.string().optional(),
|
|
9146
|
+
});
|
|
9147
|
+
|
|
9148
|
+
const BaseDataLinkTableInstance = BaseMembraneInterface.extend({
|
|
9149
|
+
dataLinkTableId: zod.z.string().optional(),
|
|
9150
|
+
connectionId: zod.z.string().optional(),
|
|
9151
|
+
integrationId: zod.z.string(),
|
|
9152
|
+
instanceKey: zod.z.string().optional(),
|
|
9153
|
+
userId: zod.z.string(),
|
|
9154
|
+
archivedAt: zod.z.string().optional(),
|
|
9155
|
+
});
|
|
9156
|
+
const DataLink = zod.z.object({
|
|
9157
|
+
id: zod.z.string(),
|
|
9158
|
+
dataLinkTableInstanceId: zod.z.string(),
|
|
9159
|
+
externalRecordId: zod.z.string(),
|
|
9160
|
+
appRecordId: zod.z.string(),
|
|
9161
|
+
direction: zod.z.nativeEnum(exports.DataLinkDirection),
|
|
9162
|
+
});
|
|
9163
|
+
const DataLinkTableConfig = zod.z.object({
|
|
9164
|
+
key: zod.z.string(),
|
|
9165
|
+
});
|
|
9166
|
+
|
|
9167
|
+
exports.HttpRequestMethod = void 0;
|
|
9168
|
+
(function (HttpRequestMethod) {
|
|
9169
|
+
HttpRequestMethod["GET"] = "GET";
|
|
9170
|
+
HttpRequestMethod["POST"] = "POST";
|
|
9171
|
+
HttpRequestMethod["PATCH"] = "PATCH";
|
|
9172
|
+
HttpRequestMethod["PUT"] = "PUT";
|
|
9173
|
+
HttpRequestMethod["DELETE"] = "DELETE";
|
|
9174
|
+
})(exports.HttpRequestMethod || (exports.HttpRequestMethod = {}));
|
|
9175
|
+
const HttpRequestSpec = zod.z.object({
|
|
9176
|
+
method: zod.z.nativeEnum(exports.HttpRequestMethod).optional(),
|
|
9177
|
+
uri: zod.z.any(),
|
|
9178
|
+
headers: zod.z.record(zod.z.any()).optional(),
|
|
9179
|
+
query: zod.z.record(zod.z.any()).optional(),
|
|
9180
|
+
body: zod.z.any().optional(),
|
|
9181
|
+
});
|
|
9182
|
+
const HTTP_REQUEST_SCHEMA = {
|
|
9183
|
+
type: 'object',
|
|
9184
|
+
properties: {
|
|
9185
|
+
uri: { type: 'string' },
|
|
9186
|
+
method: {
|
|
9187
|
+
type: 'string',
|
|
9188
|
+
enum: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'],
|
|
9189
|
+
},
|
|
9190
|
+
body: {},
|
|
9191
|
+
query: {
|
|
9192
|
+
type: 'object',
|
|
9193
|
+
section: true,
|
|
9194
|
+
additionalProperties: true,
|
|
9195
|
+
},
|
|
9196
|
+
headers: {
|
|
9197
|
+
type: 'object',
|
|
9198
|
+
section: true,
|
|
9199
|
+
additionalProperties: true,
|
|
9200
|
+
},
|
|
9201
|
+
},
|
|
9202
|
+
};
|
|
9203
|
+
|
|
9204
|
+
const BaseAppEventType = BaseMembraneInterface.extend({
|
|
9205
|
+
revision: zod.z.string(),
|
|
9206
|
+
archivedAt: zod.z.string().optional(),
|
|
9207
|
+
subscribeRequest: HttpRequestSpec.optional(),
|
|
9208
|
+
example: zod.z.any().optional(),
|
|
9209
|
+
schema: DataSchema.optional(),
|
|
9210
|
+
globalWebhookUri: zod.z.string(),
|
|
9211
|
+
userIdFormula: zod.z.any().optional(),
|
|
9212
|
+
});
|
|
9213
|
+
|
|
9214
|
+
const BaseAppEventSubscription = BaseMembraneInterface.extend({
|
|
9215
|
+
revision: zod.z.string(),
|
|
9216
|
+
appEventTypeId: zod.z.string(),
|
|
9217
|
+
userId: zod.z.string(),
|
|
9218
|
+
instanceKey: zod.z.string().optional(),
|
|
9219
|
+
isSubscribed: zod.z.boolean(),
|
|
9220
|
+
schema: DataSchema.optional(),
|
|
9221
|
+
webhookUri: zod.z.string(),
|
|
9222
|
+
subscriptionRequest: HttpRequestSpec,
|
|
9223
|
+
subscriptionResponse: zod.z.any().optional(),
|
|
9224
|
+
archivedAt: zod.z.string().optional(),
|
|
9225
|
+
});
|
|
9226
|
+
|
|
9227
|
+
const BaseAppDataSchema = BaseMembraneInterface.extend({
|
|
9228
|
+
schema: zod.z.any(),
|
|
9229
|
+
code: zod.z.string().optional(),
|
|
9230
|
+
archivedAt: zod.z.string().optional(),
|
|
9231
|
+
revision: zod.z.string().optional(),
|
|
9232
|
+
});
|
|
9233
|
+
|
|
9234
|
+
const BaseAppDataSchemaInstance = BaseMembraneInterface.extend({
|
|
9235
|
+
appId: zod.z.string(),
|
|
9236
|
+
userId: zod.z.string(),
|
|
9237
|
+
appDataSchemaId: zod.z.string(),
|
|
9238
|
+
appDataSchemaRevision: zod.z.string(),
|
|
9239
|
+
instanceKey: zod.z.string().optional(),
|
|
9240
|
+
schema: zod.z.any().optional(),
|
|
9241
|
+
error: ErrorDataSchema.optional(),
|
|
9242
|
+
archivedAt: zod.z.string().optional(),
|
|
9243
|
+
});
|
|
8613
9244
|
|
|
8614
9245
|
exports.ExternalEventSubscriptionStatus = void 0;
|
|
8615
9246
|
(function (ExternalEventSubscriptionStatus) {
|
|
@@ -8624,6 +9255,35 @@ exports.ExternalEventSubscriptionType = void 0;
|
|
|
8624
9255
|
ExternalEventSubscriptionType["DataRecordDeleted"] = "data-record-deleted";
|
|
8625
9256
|
ExternalEventSubscriptionType["ConnectorEvent"] = "connector-event";
|
|
8626
9257
|
})(exports.ExternalEventSubscriptionType || (exports.ExternalEventSubscriptionType = {}));
|
|
9258
|
+
const ExternalEventSubscriptionConfig = zod.z.object({
|
|
9259
|
+
type: zod.z.nativeEnum(exports.ExternalEventSubscriptionType),
|
|
9260
|
+
dataSource: DataSourceUnitConfig.optional(),
|
|
9261
|
+
eventKey: zod.z.string().optional(),
|
|
9262
|
+
eventParameters: zod.z.any().optional(),
|
|
9263
|
+
});
|
|
9264
|
+
const BaseExternalEventSubscription = zod.z.object({
|
|
9265
|
+
id: zod.z.string(),
|
|
9266
|
+
name: zod.z.string().optional(),
|
|
9267
|
+
userId: zod.z.string(),
|
|
9268
|
+
connectionId: zod.z.string(),
|
|
9269
|
+
integrationId: zod.z.string(),
|
|
9270
|
+
uuid: zod.z.string(),
|
|
9271
|
+
config: ExternalEventSubscriptionConfig.optional(),
|
|
9272
|
+
status: zod.z.nativeEnum(exports.ExternalEventSubscriptionStatus).optional(),
|
|
9273
|
+
error: ErrorDataSchema.optional(),
|
|
9274
|
+
isRealTime: zod.z.boolean().optional(),
|
|
9275
|
+
requiresPull: zod.z.boolean().optional(),
|
|
9276
|
+
requiresFullSync: zod.z.boolean().optional(),
|
|
9277
|
+
createdAt: zod.z.string().optional(),
|
|
9278
|
+
archivedAt: zod.z.string().optional(),
|
|
9279
|
+
stateData: zod.z.any().optional(),
|
|
9280
|
+
nextPullEventsTimestamp: zod.z.number().optional(),
|
|
9281
|
+
pullUpdatesIntervalSeconds: zod.z.number().optional(),
|
|
9282
|
+
fullSyncIntervalSeconds: zod.z.number().optional(),
|
|
9283
|
+
nextRefreshTimestamp: zod.z.number().optional(),
|
|
9284
|
+
globalWebhookKey: zod.z.string().optional(),
|
|
9285
|
+
globalWebhookEventSelector: zod.z.string().optional(),
|
|
9286
|
+
});
|
|
8627
9287
|
|
|
8628
9288
|
exports.ExternalEventLogStatus = void 0;
|
|
8629
9289
|
(function (ExternalEventLogStatus) {
|
|
@@ -8631,143 +9291,667 @@ exports.ExternalEventLogStatus = void 0;
|
|
|
8631
9291
|
ExternalEventLogStatus["ERROR"] = "error";
|
|
8632
9292
|
ExternalEventLogStatus["SUCCESS"] = "success";
|
|
8633
9293
|
})(exports.ExternalEventLogStatus || (exports.ExternalEventLogStatus = {}));
|
|
9294
|
+
const BaseExternalEventLogRecord = zod.z.object({
|
|
9295
|
+
id: zod.z.string(),
|
|
9296
|
+
userId: zod.z.string(),
|
|
9297
|
+
name: zod.z.string().optional(),
|
|
9298
|
+
externalEventSubscriptionId: zod.z.string(),
|
|
9299
|
+
integrationId: zod.z.string(),
|
|
9300
|
+
connectionId: zod.z.string(),
|
|
9301
|
+
payload: zod.z.any().optional(),
|
|
9302
|
+
launchedFlowRunIds: zod.z.array(zod.z.string()).optional(),
|
|
9303
|
+
status: zod.z.nativeEnum(exports.ExternalEventLogStatus),
|
|
9304
|
+
error: ErrorDataSchema.optional(),
|
|
9305
|
+
});
|
|
9306
|
+
|
|
9307
|
+
exports.ExternalEventPullStatus = void 0;
|
|
9308
|
+
(function (ExternalEventPullStatus) {
|
|
9309
|
+
ExternalEventPullStatus["RUNNING"] = "running";
|
|
9310
|
+
ExternalEventPullStatus["SUCCESS"] = "success";
|
|
9311
|
+
ExternalEventPullStatus["ERROR"] = "error";
|
|
9312
|
+
ExternalEventPullStatus["QUEUED"] = "queued";
|
|
9313
|
+
})(exports.ExternalEventPullStatus || (exports.ExternalEventPullStatus = {}));
|
|
9314
|
+
const BaseExternalEventPull = zod.z.object({
|
|
9315
|
+
id: zod.z.string(),
|
|
9316
|
+
name: zod.z.string().optional(),
|
|
9317
|
+
userId: zod.z.string(),
|
|
9318
|
+
externalEventSubscriptionId: zod.z.string(),
|
|
9319
|
+
integrationId: zod.z.string(),
|
|
9320
|
+
connectionId: zod.z.string(),
|
|
9321
|
+
startDatetime: zod.z.string(),
|
|
9322
|
+
endDatetime: zod.z.string(),
|
|
9323
|
+
isFullScan: zod.z.boolean().optional(),
|
|
9324
|
+
status: zod.z.nativeEnum(exports.ExternalEventPullStatus),
|
|
9325
|
+
collectedEventIds: zod.z.array(zod.z.string()),
|
|
9326
|
+
error: ErrorDataSchema.optional(),
|
|
9327
|
+
});
|
|
9328
|
+
|
|
9329
|
+
exports.ActionRunStatus = void 0;
|
|
9330
|
+
(function (ActionRunStatus) {
|
|
9331
|
+
ActionRunStatus["RUNNING"] = "running";
|
|
9332
|
+
ActionRunStatus["SUCCESS"] = "success";
|
|
9333
|
+
ActionRunStatus["ERROR"] = "error";
|
|
9334
|
+
ActionRunStatus["QUEUED"] = "queued";
|
|
9335
|
+
})(exports.ActionRunStatus || (exports.ActionRunStatus = {}));
|
|
9336
|
+
const BaseActionRunLogRecord = zod.z.object({
|
|
9337
|
+
id: zod.z.string(),
|
|
9338
|
+
actionId: zod.z.string(),
|
|
9339
|
+
integrationId: zod.z.string(),
|
|
9340
|
+
connectionId: zod.z.string(),
|
|
9341
|
+
input: zod.z.any().optional(),
|
|
9342
|
+
output: zod.z.any().optional(),
|
|
9343
|
+
status: zod.z.nativeEnum(exports.ActionRunStatus),
|
|
9344
|
+
startedAt: zod.z.string(),
|
|
9345
|
+
completedAt: zod.z.string().optional(),
|
|
9346
|
+
error: ErrorDataSchema.optional(),
|
|
9347
|
+
});
|
|
9348
|
+
|
|
9349
|
+
const IncludeArchivedQuery = zod.z.object({
|
|
9350
|
+
includeArchived: zod.z.boolean().optional(),
|
|
9351
|
+
});
|
|
9352
|
+
const SearchQuery = zod.z.object({
|
|
9353
|
+
search: zod.z.string().optional(),
|
|
9354
|
+
});
|
|
9355
|
+
const PaginationQuery = zod.z.object({
|
|
9356
|
+
limit: zod.z.number().optional(),
|
|
9357
|
+
cursor: zod.z.string().optional(),
|
|
9358
|
+
});
|
|
9359
|
+
const CommonListElementsQuery = SearchQuery.merge(PaginationQuery).merge(IncludeArchivedQuery);
|
|
9360
|
+
const CommonInstancesListQuery = CommonListElementsQuery.extend({
|
|
9361
|
+
userId: zod.z.string().optional(),
|
|
9362
|
+
instanceKey: zod.z.string().optional(),
|
|
9363
|
+
});
|
|
9364
|
+
const CommonIntegrationOrConnectionQuery = zod.z.object({
|
|
9365
|
+
connectionId: zod.z.string().optional(),
|
|
9366
|
+
integrationId: zod.z.string().optional(),
|
|
9367
|
+
integrationKey: zod.z.string().optional(),
|
|
9368
|
+
});
|
|
9369
|
+
class PaginationResponse {
|
|
9370
|
+
}
|
|
9371
|
+
|
|
9372
|
+
const ListActionsForIntegrationQuery = zod.z
|
|
9373
|
+
.object({
|
|
9374
|
+
parentId: zod.z.string().optional(),
|
|
9375
|
+
})
|
|
9376
|
+
.merge(PaginationQuery);
|
|
9377
|
+
const FindActionsQuery = ListActionsForIntegrationQuery.extend({
|
|
9378
|
+
integrationId: zod.z.string().optional(),
|
|
9379
|
+
});
|
|
9380
|
+
const CreateActionRequest = zod.z.object({
|
|
9381
|
+
key: zod.z.string(),
|
|
9382
|
+
name: zod.z.string(),
|
|
9383
|
+
type: zod.z.nativeEnum(exports.ActionType).optional(),
|
|
9384
|
+
inputSchema: zod.z.any().optional(),
|
|
9385
|
+
config: zod.z.any().optional(),
|
|
9386
|
+
integrationId: zod.z.string().optional(),
|
|
9387
|
+
});
|
|
9388
|
+
const UpdateActionRequest = zod.z.object({
|
|
9389
|
+
key: zod.z.string().optional(),
|
|
9390
|
+
type: zod.z.nativeEnum(exports.ActionType).optional(),
|
|
9391
|
+
name: zod.z.string().optional(),
|
|
9392
|
+
inputSchema: zod.z.any().optional(),
|
|
9393
|
+
config: zod.z.any().optional(),
|
|
9394
|
+
archivedAt: zod.z.string().optional(),
|
|
9395
|
+
});
|
|
9396
|
+
const ListActionInstancesForConnectionQuery = zod.z
|
|
9397
|
+
.object({
|
|
9398
|
+
parentId: zod.z.string().optional(),
|
|
9399
|
+
universalParentId: zod.z.string().optional(),
|
|
9400
|
+
})
|
|
9401
|
+
.merge(PaginationQuery);
|
|
9402
|
+
const FindActionInstancesQuery = ListActionInstancesForConnectionQuery.extend({
|
|
9403
|
+
integrationKey: zod.z.string().optional(),
|
|
9404
|
+
integrationId: zod.z.string().optional(),
|
|
9405
|
+
userId: zod.z.string().optional(),
|
|
9406
|
+
connectionId: zod.z.string().optional(),
|
|
9407
|
+
});
|
|
9408
|
+
const CreateActionInstanceRequest = zod.z.object({
|
|
9409
|
+
parentId: zod.z.string(),
|
|
9410
|
+
connectionId: zod.z.string(),
|
|
9411
|
+
config: zod.z.any().optional(),
|
|
9412
|
+
});
|
|
9413
|
+
const UpdateActionInstanceRequest = zod.z.object({
|
|
9414
|
+
config: zod.z.any().optional(),
|
|
9415
|
+
});
|
|
9416
|
+
const ActionRunResponse = zod.z.object({
|
|
9417
|
+
output: zod.z.any().optional(),
|
|
9418
|
+
logs: zod.z.array(zod.z.any()).optional(),
|
|
9419
|
+
});
|
|
9420
|
+
exports.ActionRunLogStatus = void 0;
|
|
9421
|
+
(function (ActionRunLogStatus) {
|
|
9422
|
+
ActionRunLogStatus["SUCCESS"] = "success";
|
|
9423
|
+
ActionRunLogStatus["ERROR"] = "error";
|
|
9424
|
+
})(exports.ActionRunLogStatus || (exports.ActionRunLogStatus = {}));
|
|
9425
|
+
const Action = BaseAction.extend({
|
|
9426
|
+
integration: BaseIntegration.optional(),
|
|
9427
|
+
appliedToIntegrations: AppliedToIntegrations(BaseAction).optional(),
|
|
9428
|
+
});
|
|
9429
|
+
|
|
9430
|
+
const FindConnectionsQuery = zod.z
|
|
9431
|
+
.object({
|
|
9432
|
+
userId: zod.z.string().optional(),
|
|
9433
|
+
isTest: zod.z.boolean().optional(),
|
|
9434
|
+
integrationKey: zod.z.string().optional(),
|
|
9435
|
+
integrationId: zod.z.string().optional(),
|
|
9436
|
+
includeArchived: zod.z.boolean().optional(),
|
|
9437
|
+
})
|
|
9438
|
+
.merge(PaginationQuery);
|
|
9439
|
+
const CreateConnectionRequest = zod.z.object({
|
|
9440
|
+
name: zod.z.string(),
|
|
9441
|
+
integrationId: zod.z.string(),
|
|
9442
|
+
credentials: zod.z.string().optional(),
|
|
9443
|
+
});
|
|
9444
|
+
const UpdateConnectionRequest = zod.z.object({
|
|
9445
|
+
name: zod.z.string().optional(),
|
|
9446
|
+
credentials: zod.z.string().optional(),
|
|
9447
|
+
accessToken: zod.z.string().optional(),
|
|
9448
|
+
});
|
|
9449
|
+
class FindConnectionsResponse extends PaginationResponse {
|
|
9450
|
+
}
|
|
9451
|
+
const ConnectionSelector = zod.z.object({
|
|
9452
|
+
id: zod.z.string().optional(),
|
|
9453
|
+
integrationKey: zod.z.string().optional(),
|
|
9454
|
+
integrationId: zod.z.string().optional(),
|
|
9455
|
+
connectionId: zod.z.string().optional(),
|
|
9456
|
+
});
|
|
9457
|
+
const Connection = BaseConnection.extend({
|
|
9458
|
+
user: BaseCustomer.optional(),
|
|
9459
|
+
integration: BaseIntegration.optional(),
|
|
9460
|
+
});
|
|
9461
|
+
const ConnectionMessagePayload = zod.z.discriminatedUnion('type', [
|
|
9462
|
+
zod.z.object({
|
|
9463
|
+
source: zod.z.string(),
|
|
9464
|
+
requestId: zod.z.string(),
|
|
9465
|
+
type: zod.z.literal('newConnectionCreated'),
|
|
9466
|
+
connection: Connection,
|
|
9467
|
+
}),
|
|
9468
|
+
zod.z.object({
|
|
9469
|
+
source: zod.z.string(),
|
|
9470
|
+
requestId: zod.z.string(),
|
|
9471
|
+
type: zod.z.literal('newConnectionFailure'),
|
|
9472
|
+
error: zod.z.string(),
|
|
9473
|
+
errorData: ErrorDataSchema.optional(),
|
|
9474
|
+
}),
|
|
9475
|
+
]);
|
|
9476
|
+
|
|
9477
|
+
const ListDataSourcesForIntegrationQuery = zod.z
|
|
9478
|
+
.object({
|
|
9479
|
+
universalDataSourceId: zod.z.string().optional(),
|
|
9480
|
+
})
|
|
9481
|
+
.merge(PaginationQuery);
|
|
9482
|
+
const FindDataSourcesQuery = ListDataSourcesForIntegrationQuery.extend({
|
|
9483
|
+
integrationId: zod.z.string().optional(),
|
|
9484
|
+
});
|
|
9485
|
+
const CreateDataSourceRequest = zod.z.object({
|
|
9486
|
+
key: zod.z.string(),
|
|
9487
|
+
name: zod.z.string(),
|
|
9488
|
+
integrationId: zod.z.string().optional(),
|
|
9489
|
+
udm: zod.z.string().optional(),
|
|
9490
|
+
pullUpdatesIntervalSeconds: zod.z.number().optional(),
|
|
9491
|
+
fullSyncIntervalSeconds: zod.z.number().optional(),
|
|
9492
|
+
rootPath: zod.z.string().optional(),
|
|
9493
|
+
defaultPath: zod.z.string().optional(),
|
|
9494
|
+
collectionKey: zod.z.string().optional(),
|
|
9495
|
+
collectionParameters: zod.z.any().optional(),
|
|
9496
|
+
});
|
|
9497
|
+
const UpdateDataSourceRequest = zod.z.object({
|
|
9498
|
+
key: zod.z.string().optional(),
|
|
9499
|
+
name: zod.z.string().optional(),
|
|
9500
|
+
archivedAt: zod.z.string().optional(),
|
|
9501
|
+
udm: zod.z.string().optional(),
|
|
9502
|
+
pullUpdatesIntervalSeconds: zod.z.number().optional(),
|
|
9503
|
+
fullSyncIntervalSeconds: zod.z.number().optional(),
|
|
9504
|
+
rootPath: zod.z.string().optional(),
|
|
9505
|
+
defaultPath: zod.z.string().optional(),
|
|
9506
|
+
});
|
|
9507
|
+
const FindDataSourceInstancesQuery = zod.z
|
|
9508
|
+
.object({
|
|
9509
|
+
userId: zod.z.string().optional(),
|
|
9510
|
+
dataSourceId: zod.z.string().optional(),
|
|
9511
|
+
universalDataSourceId: zod.z.string().optional(),
|
|
9512
|
+
connectionId: zod.z.string().optional(),
|
|
9513
|
+
integrationKey: zod.z.string().optional(),
|
|
9514
|
+
integrationId: zod.z.string().optional(),
|
|
9515
|
+
})
|
|
9516
|
+
.merge(PaginationQuery);
|
|
9517
|
+
const CreateDataSourceInstanceRequest = zod.z.object({
|
|
9518
|
+
dataSourceId: zod.z.string(),
|
|
9519
|
+
connectionId: zod.z.string(),
|
|
9520
|
+
path: zod.z.string().optional(),
|
|
9521
|
+
});
|
|
9522
|
+
const UpdateDataSourceInstanceRequest = zod.z.object({
|
|
9523
|
+
path: zod.z.string().optional(),
|
|
9524
|
+
collectionKey: zod.z.string().optional(),
|
|
9525
|
+
collectionParameters: zod.z.any().optional(),
|
|
9526
|
+
pullUpdatesIntervalSeconds: zod.z.number().optional(),
|
|
9527
|
+
fullSyncIntervalSeconds: zod.z.number().optional(),
|
|
9528
|
+
subscribedTo: zod.z
|
|
9529
|
+
.object({
|
|
9530
|
+
created: zod.z.boolean().optional(),
|
|
9531
|
+
updated: zod.z.boolean().optional(),
|
|
9532
|
+
deleted: zod.z.boolean().optional(),
|
|
9533
|
+
})
|
|
9534
|
+
.optional(),
|
|
9535
|
+
});
|
|
9536
|
+
const FindDataSourceEventsQuery = zod.z
|
|
9537
|
+
.object({
|
|
9538
|
+
userId: zod.z.string().optional(),
|
|
9539
|
+
udm: zod.z.string().optional(),
|
|
9540
|
+
dataSourceInstanceId: zod.z.string().optional(),
|
|
9541
|
+
startDatetime: zod.z.string().optional(),
|
|
9542
|
+
endDatetime: zod.z.string().optional(),
|
|
9543
|
+
})
|
|
9544
|
+
.merge(PaginationQuery);
|
|
9545
|
+
const FindDataSourceSyncsQuery = zod.z
|
|
9546
|
+
.object({
|
|
9547
|
+
userId: zod.z.string().optional(),
|
|
9548
|
+
dataSourceId: zod.z.string().optional(),
|
|
9549
|
+
dataSourceInstanceId: zod.z.string().optional(),
|
|
9550
|
+
integrationId: zod.z.string().optional(),
|
|
9551
|
+
connectionId: zod.z.string().optional(),
|
|
9552
|
+
startedAfter: zod.z.string().optional(),
|
|
9553
|
+
})
|
|
9554
|
+
.merge(PaginationQuery);
|
|
9555
|
+
const ListDataSourceInstancesForConnectionQuery = zod.z
|
|
9556
|
+
.object({
|
|
9557
|
+
dataSourceId: zod.z.string().optional(),
|
|
9558
|
+
})
|
|
9559
|
+
.merge(PaginationQuery);
|
|
9560
|
+
const FindDataSourceInstanceSyncsQuery = ListDataSourceInstancesForConnectionQuery.extend({
|
|
9561
|
+
userId: zod.z.string().optional(),
|
|
9562
|
+
connectionId: zod.z.string().optional(),
|
|
9563
|
+
integrationId: zod.z.string().optional(),
|
|
9564
|
+
dataSourceInstanceId: zod.z.string().optional(),
|
|
9565
|
+
});
|
|
9566
|
+
const DataSource = BaseDataSource.extend({
|
|
9567
|
+
integration: BaseIntegration.optional(),
|
|
9568
|
+
appliedToIntegrations: AppliedToIntegrations(BaseDataSource).optional(),
|
|
9569
|
+
});
|
|
9570
|
+
|
|
9571
|
+
const ExternalEvent = BaseExternalEvent.extend({
|
|
9572
|
+
appliedToIntegrations: AppliedToIntegrations(BaseExternalEvent).optional(),
|
|
9573
|
+
});
|
|
9574
|
+
|
|
9575
|
+
const ListFlowsForIntegrationQuery = zod.z
|
|
9576
|
+
.object({
|
|
9577
|
+
universalFlowId: zod.z.string().optional(),
|
|
9578
|
+
})
|
|
9579
|
+
.merge(CommonListElementsQuery);
|
|
9580
|
+
const FindFlowsQuery = ListFlowsForIntegrationQuery.extend({
|
|
9581
|
+
integrationId: zod.z.string().optional(),
|
|
9582
|
+
});
|
|
9583
|
+
const CreateFlowNodeRequest = zod.z.object({
|
|
9584
|
+
type: zod.z.string(),
|
|
9585
|
+
config: zod.z.any().optional(),
|
|
9586
|
+
ui: zod.z.any().optional(),
|
|
9587
|
+
links: zod.z.array(zod.z.lazy(() => zod.z.any())).optional(),
|
|
9588
|
+
});
|
|
9589
|
+
const CreateFlowRequest = zod.z.object({
|
|
9590
|
+
key: zod.z.string(),
|
|
9591
|
+
name: zod.z.string(),
|
|
9592
|
+
integrationId: zod.z.string().optional(),
|
|
9593
|
+
nodes: zod.z.record(zod.z.string(), CreateFlowNodeRequest).optional(),
|
|
9594
|
+
parametersSchema: DataSchema.optional(),
|
|
9595
|
+
autoCreateInstances: zod.z.boolean().optional(),
|
|
9596
|
+
});
|
|
9597
|
+
const UpdateFlowRequest = CreateFlowRequest.extend({
|
|
9598
|
+
archivedAt: zod.z.string().optional(),
|
|
9599
|
+
});
|
|
9600
|
+
const ListFlowInstancesForConnectionQuery = zod.z
|
|
9601
|
+
.object({
|
|
9602
|
+
flowId: zod.z.string().optional(),
|
|
9603
|
+
flowKey: zod.z.string().optional(),
|
|
9604
|
+
enabled: zod.z.boolean().optional(),
|
|
9605
|
+
})
|
|
9606
|
+
.merge(CommonInstancesListQuery);
|
|
9607
|
+
const FindFlowInstancesQuery = ListFlowInstancesForConnectionQuery.merge(CommonIntegrationOrConnectionQuery);
|
|
9608
|
+
const ResetFlowInstanceOptions = zod.z.object({
|
|
9609
|
+
name: zod.z.boolean().optional(),
|
|
9610
|
+
nodes: zod.z.record(zod.z.string(), zod.z.boolean()).optional(),
|
|
9611
|
+
allNodes: zod.z.boolean().optional(),
|
|
9612
|
+
});
|
|
9613
|
+
const RunFlowOptions = zod.z.object({
|
|
9614
|
+
nodeKey: zod.z.string().optional(),
|
|
9615
|
+
input: zod.z.any().optional(),
|
|
9616
|
+
returnImmediately: zod.z.boolean().optional(),
|
|
9617
|
+
onUpdate: zod.z.function().optional(),
|
|
9618
|
+
});
|
|
9619
|
+
const Flow = BaseFlow.extend({
|
|
9620
|
+
integration: BaseIntegration.optional(),
|
|
9621
|
+
appliedToIntegrations: AppliedToIntegrations(BaseFlow).optional(),
|
|
9622
|
+
});
|
|
9623
|
+
const FlowInstance = BaseFlowInstance.extend({
|
|
9624
|
+
user: zod.z.lazy(() => zod.z.any()).optional(),
|
|
9625
|
+
connection: zod.z.lazy(() => zod.z.any()).optional(),
|
|
9626
|
+
flow: zod.z.lazy(() => Flow).optional(),
|
|
9627
|
+
integration: zod.z.lazy(() => zod.z.any()).optional(),
|
|
9628
|
+
});
|
|
9629
|
+
|
|
9630
|
+
const POPUP_ELEMENT_ID = '__integration-app-popup';
|
|
9631
|
+
const CONTAINER_ELEMENT_ID = '__integration-app-container';
|
|
9632
|
+
const CONTAINER_ELEMENT_CLASS = '__integration-app-container';
|
|
9633
|
+
const CONTAINER_ELEMENT_CLASS__LOADER = '__integration-app-container__loader';
|
|
9634
|
+
const BODY_CLASS = '__integration-app-open';
|
|
9635
|
+
const STYLES_ELEMENT_ID = '__integration-app-embed-styles';
|
|
9636
|
+
const OpenConfigurationOptions = zod.z.object({
|
|
9637
|
+
onClose: zod.z.function().optional(),
|
|
9638
|
+
showPoweredBy: zod.z.boolean().optional(),
|
|
9639
|
+
});
|
|
9640
|
+
let IFRAME_START_SHOW_LOADER_TIME = 0;
|
|
9641
|
+
let IFRAME_SHOW_LOADER_TIMEOUT_ID;
|
|
9642
|
+
const IFRAME_SHOW_LOADER_MINIMAL_TIME = 500;
|
|
9643
|
+
const IFRAME_LAYOUT_SHIFT_TIME = 300;
|
|
9644
|
+
function showIframeLoader() {
|
|
9645
|
+
const container = getContainer();
|
|
9646
|
+
container === null || container === void 0 ? void 0 : container.classList.add(CONTAINER_ELEMENT_CLASS__LOADER);
|
|
9647
|
+
IFRAME_START_SHOW_LOADER_TIME = Date.now();
|
|
9648
|
+
}
|
|
9649
|
+
function hideIframeLoader(waitLayoutShift = IFRAME_LAYOUT_SHIFT_TIME) {
|
|
9650
|
+
if (IFRAME_SHOW_LOADER_TIMEOUT_ID) {
|
|
9651
|
+
clearTimeout(IFRAME_SHOW_LOADER_TIMEOUT_ID);
|
|
9652
|
+
}
|
|
9653
|
+
const delta = Date.now() - IFRAME_START_SHOW_LOADER_TIME;
|
|
9654
|
+
if (delta >= IFRAME_SHOW_LOADER_MINIMAL_TIME) {
|
|
9655
|
+
setTimeout(() => {
|
|
9656
|
+
const container = getContainer();
|
|
9657
|
+
container === null || container === void 0 ? void 0 : container.classList.remove(CONTAINER_ELEMENT_CLASS__LOADER);
|
|
9658
|
+
IFRAME_START_SHOW_LOADER_TIME = 0;
|
|
9659
|
+
}, waitLayoutShift);
|
|
9660
|
+
return;
|
|
9661
|
+
}
|
|
9662
|
+
else {
|
|
9663
|
+
const waitLayoutShift = delta >= IFRAME_LAYOUT_SHIFT_TIME ? 0 : IFRAME_LAYOUT_SHIFT_TIME - delta;
|
|
9664
|
+
const timeoutTime = IFRAME_SHOW_LOADER_MINIMAL_TIME - delta;
|
|
9665
|
+
IFRAME_SHOW_LOADER_TIMEOUT_ID = setTimeout(() => {
|
|
9666
|
+
hideIframeLoader(waitLayoutShift);
|
|
9667
|
+
}, timeoutTime);
|
|
9668
|
+
return;
|
|
9669
|
+
}
|
|
9670
|
+
}
|
|
9671
|
+
async function openIframe(uri, callbacks = {}, { mountTargetSelector } = {}) {
|
|
9672
|
+
close();
|
|
9673
|
+
init(mountTargetSelector);
|
|
9674
|
+
return new Promise((resolve) => {
|
|
9675
|
+
function complete(callback) {
|
|
9676
|
+
close(callback);
|
|
9677
|
+
resolve();
|
|
9678
|
+
}
|
|
9679
|
+
function doOpen() {
|
|
9680
|
+
const iframe = document.createElement('iframe');
|
|
9681
|
+
iframe.src = uri;
|
|
9682
|
+
iframe.id = POPUP_ELEMENT_ID;
|
|
9683
|
+
iframe.onload = () => {
|
|
9684
|
+
hideIframeLoader();
|
|
9685
|
+
};
|
|
9686
|
+
if (!!getContainer()) {
|
|
9687
|
+
document.body.classList.add(BODY_CLASS);
|
|
9688
|
+
showIframeLoader();
|
|
9689
|
+
appendToContainer(iframe);
|
|
9690
|
+
handleIframeUnmount(iframe);
|
|
9691
|
+
penpal.connectToChild({
|
|
9692
|
+
iframe,
|
|
9693
|
+
methods: {
|
|
9694
|
+
...callbacks,
|
|
9695
|
+
handshake: (...args) => {
|
|
9696
|
+
var _a;
|
|
9697
|
+
hideIframeLoader();
|
|
9698
|
+
(_a = callbacks === null || callbacks === void 0 ? void 0 : callbacks.handshake) === null || _a === void 0 ? void 0 : _a.call(callbacks, ...args);
|
|
9699
|
+
},
|
|
9700
|
+
close: () => complete(callbacks.onClose),
|
|
9701
|
+
},
|
|
9702
|
+
});
|
|
9703
|
+
}
|
|
9704
|
+
else {
|
|
9705
|
+
throw Error('Membrane container element not found. Was it manually removed?');
|
|
9706
|
+
}
|
|
9707
|
+
}
|
|
9708
|
+
if (document.readyState === 'complete' || document.readyState === 'interactive') {
|
|
9709
|
+
doOpen();
|
|
9710
|
+
}
|
|
9711
|
+
else {
|
|
9712
|
+
document.addEventListener('DOMContentLoaded', () => {
|
|
9713
|
+
doOpen();
|
|
9714
|
+
});
|
|
9715
|
+
}
|
|
9716
|
+
});
|
|
9717
|
+
}
|
|
9718
|
+
function close(callback) {
|
|
9719
|
+
document.body.classList.remove(BODY_CLASS);
|
|
9720
|
+
if (!!getContainer()) {
|
|
9721
|
+
deleteContainer();
|
|
9722
|
+
if (callback) {
|
|
9723
|
+
callback();
|
|
9724
|
+
}
|
|
9725
|
+
}
|
|
9726
|
+
}
|
|
9727
|
+
function init(mountTargetSelector) {
|
|
9728
|
+
var _a;
|
|
9729
|
+
injectStyles(mountTargetSelector);
|
|
9730
|
+
if (!!getContainer()) {
|
|
9731
|
+
return;
|
|
9732
|
+
}
|
|
9733
|
+
const container = createContainer();
|
|
9734
|
+
if (mountTargetSelector && document.querySelector(mountTargetSelector)) {
|
|
9735
|
+
(_a = document.querySelector(mountTargetSelector)) === null || _a === void 0 ? void 0 : _a.appendChild(container);
|
|
9736
|
+
}
|
|
9737
|
+
else {
|
|
9738
|
+
document.body.appendChild(container);
|
|
9739
|
+
}
|
|
9740
|
+
}
|
|
9741
|
+
function injectStyles(mountTargetSelector) {
|
|
9742
|
+
const hasCustomMountTarget = Boolean(mountTargetSelector && document.querySelector(mountTargetSelector));
|
|
9743
|
+
const styles = [
|
|
9744
|
+
`.${CONTAINER_ELEMENT_CLASS}:empty {
|
|
9745
|
+
display: none;
|
|
9746
|
+
}`,
|
|
9747
|
+
hasCustomMountTarget
|
|
9748
|
+
? `.${CONTAINER_ELEMENT_CLASS} {
|
|
9749
|
+
inset: 0;
|
|
9750
|
+
background: rgba(0, 0, 0, 0);
|
|
9751
|
+
transition: background 0.2s ease-out;
|
|
9752
|
+
display: flex;
|
|
9753
|
+
justify-content: center;
|
|
9754
|
+
align-items: center;
|
|
9755
|
+
width: 100%;
|
|
9756
|
+
height: 100%;
|
|
9757
|
+
}`
|
|
9758
|
+
: `.${CONTAINER_ELEMENT_CLASS} {
|
|
9759
|
+
position: fixed;
|
|
9760
|
+
inset: 0;
|
|
9761
|
+
z-index: 2147483647;
|
|
9762
|
+
display: flex;
|
|
9763
|
+
justify-content: center;
|
|
9764
|
+
align-items: center;
|
|
9765
|
+
pointer-events: auto;
|
|
9766
|
+
background: rgba(0, 0, 0, 0);
|
|
9767
|
+
transition: background 0.2s ease-out;
|
|
9768
|
+
}`,
|
|
9769
|
+
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} {
|
|
9770
|
+
background: rgba(0, 0, 0, 0.8);
|
|
9771
|
+
}`,
|
|
9772
|
+
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER}::before {
|
|
9773
|
+
${hasCustomMountTarget ? 'position: absolute;' : ''}
|
|
9774
|
+
content: "";
|
|
9775
|
+
width: 5rem;
|
|
9776
|
+
height: 4rem;
|
|
9777
|
+
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');
|
|
9778
|
+
background-size: contain;
|
|
9779
|
+
background-repeat: no-repeat;
|
|
9780
|
+
background-position: center;
|
|
9781
|
+
filter: invert(1);
|
|
9782
|
+
}`,
|
|
9783
|
+
`.${CONTAINER_ELEMENT_CLASS} iframe {
|
|
9784
|
+
${hasCustomMountTarget ? '' : 'position: absolute;'}
|
|
9785
|
+
width: 100%;
|
|
9786
|
+
height: 100%;
|
|
9787
|
+
border-width: 0;
|
|
9788
|
+
|
|
9789
|
+
/* fix transparent bg, because iframe document has light scheme */
|
|
9790
|
+
color-scheme: light;
|
|
9791
|
+
}`,
|
|
9792
|
+
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} iframe {
|
|
9793
|
+
visibility: hidden;
|
|
9794
|
+
}`,
|
|
9795
|
+
!hasCustomMountTarget
|
|
9796
|
+
? `body.${BODY_CLASS} {
|
|
9797
|
+
overflow: hidden;
|
|
9798
|
+
}`
|
|
9799
|
+
: '',
|
|
9800
|
+
];
|
|
9801
|
+
let styleElement = document.getElementById(STYLES_ELEMENT_ID);
|
|
9802
|
+
if (!styleElement) {
|
|
9803
|
+
styleElement = document.createElement('style');
|
|
9804
|
+
styleElement.id = STYLES_ELEMENT_ID;
|
|
9805
|
+
styleElement.type = 'text/css';
|
|
9806
|
+
document.head.appendChild(styleElement);
|
|
9807
|
+
}
|
|
9808
|
+
styleElement.textContent = styles.join('\n');
|
|
9809
|
+
}
|
|
9810
|
+
function removeInjectedStyles() {
|
|
9811
|
+
const stylesElement = document.getElementById(STYLES_ELEMENT_ID);
|
|
9812
|
+
if (stylesElement) {
|
|
9813
|
+
stylesElement.remove();
|
|
9814
|
+
}
|
|
9815
|
+
}
|
|
9816
|
+
function createContainer() {
|
|
9817
|
+
const container = document.createElement('div');
|
|
9818
|
+
container.id = CONTAINER_ELEMENT_ID;
|
|
9819
|
+
container.classList.add(CONTAINER_ELEMENT_CLASS);
|
|
9820
|
+
return container;
|
|
9821
|
+
}
|
|
9822
|
+
function getContainer() {
|
|
9823
|
+
return document.getElementById(CONTAINER_ELEMENT_ID);
|
|
9824
|
+
}
|
|
9825
|
+
function appendToContainer(el) {
|
|
9826
|
+
const container = getContainer();
|
|
9827
|
+
container === null || container === void 0 ? void 0 : container.appendChild(el);
|
|
9828
|
+
}
|
|
9829
|
+
function deleteContainer() {
|
|
9830
|
+
const container = getContainer();
|
|
9831
|
+
if (container) {
|
|
9832
|
+
container.remove();
|
|
9833
|
+
}
|
|
9834
|
+
removeInjectedStyles();
|
|
9835
|
+
}
|
|
9836
|
+
function handleIframeUnmount(iframe) {
|
|
9837
|
+
const observer = new MutationObserver((mutationsList) => {
|
|
9838
|
+
for (const mutation of mutationsList) {
|
|
9839
|
+
for (const removedNode of mutation.removedNodes) {
|
|
9840
|
+
if (removedNode instanceof HTMLElement && removedNode.id === POPUP_ELEMENT_ID) {
|
|
9841
|
+
observer.disconnect();
|
|
9842
|
+
deleteContainer();
|
|
9843
|
+
return;
|
|
9844
|
+
}
|
|
9845
|
+
}
|
|
9846
|
+
}
|
|
9847
|
+
});
|
|
9848
|
+
const parent = iframe.parentNode;
|
|
9849
|
+
if (parent) {
|
|
9850
|
+
observer.observe(parent, {
|
|
9851
|
+
childList: true,
|
|
9852
|
+
});
|
|
9853
|
+
}
|
|
9854
|
+
else {
|
|
9855
|
+
console.warn(`iframe with ID "${POPUP_ELEMENT_ID}" has no parent node`);
|
|
9856
|
+
}
|
|
9857
|
+
}
|
|
8634
9858
|
|
|
8635
|
-
|
|
8636
|
-
|
|
8637
|
-
|
|
8638
|
-
|
|
8639
|
-
|
|
8640
|
-
|
|
8641
|
-
|
|
9859
|
+
const CreateIntegrationRequest = zod.z.object({
|
|
9860
|
+
name: zod.z.string().optional(),
|
|
9861
|
+
key: zod.z.string(),
|
|
9862
|
+
baseUri: zod.z.string(),
|
|
9863
|
+
logoUri: zod.z.string(),
|
|
9864
|
+
});
|
|
9865
|
+
const UpdateIntegrationRequest = zod.z.object({
|
|
9866
|
+
name: zod.z.string().optional(),
|
|
9867
|
+
key: zod.z.string().optional(),
|
|
9868
|
+
baseUri: zod.z.string().optional(),
|
|
9869
|
+
logoUri: zod.z.string().optional(),
|
|
9870
|
+
});
|
|
9871
|
+
const FindIntegrationsQuery = zod.z.object({}).merge(PaginationQuery).merge(SearchQuery);
|
|
9872
|
+
const OpenNewConnectionOptions = zod.z
|
|
9873
|
+
.object({
|
|
9874
|
+
allowMultipleConnections: zod.z.boolean().optional(),
|
|
9875
|
+
name: zod.z.string().optional(),
|
|
9876
|
+
connectorParameters: zod.z.any().optional(),
|
|
9877
|
+
})
|
|
9878
|
+
.merge(OpenConfigurationOptions);
|
|
9879
|
+
const Integration = BaseIntegration.extend({
|
|
9880
|
+
connection: BaseConnection.optional(),
|
|
9881
|
+
spec: zod.z.any().optional(),
|
|
9882
|
+
});
|
|
8642
9883
|
|
|
8643
|
-
exports.
|
|
8644
|
-
(function (
|
|
8645
|
-
|
|
8646
|
-
|
|
8647
|
-
|
|
8648
|
-
|
|
8649
|
-
|
|
9884
|
+
exports.IntegrationElementLevel = void 0;
|
|
9885
|
+
(function (IntegrationElementLevel) {
|
|
9886
|
+
IntegrationElementLevel["UNIVERSAL"] = "universal";
|
|
9887
|
+
IntegrationElementLevel["CONNECTOR"] = "connector";
|
|
9888
|
+
IntegrationElementLevel["CONNECTION"] = "connection";
|
|
9889
|
+
})(exports.IntegrationElementLevel || (exports.IntegrationElementLevel = {}));
|
|
9890
|
+
exports.IntegrationElementType = void 0;
|
|
9891
|
+
(function (IntegrationElementType) {
|
|
9892
|
+
IntegrationElementType["APP_DATA_SCHEMA"] = "app-data-schema";
|
|
9893
|
+
IntegrationElementType["APP_EVENT_TYPE"] = "app-event-type";
|
|
9894
|
+
IntegrationElementType["DATA_SOURCE"] = "data-source";
|
|
9895
|
+
IntegrationElementType["SCHEMA"] = "schema";
|
|
9896
|
+
IntegrationElementType["FIELD_MAPPING"] = "field-mapping";
|
|
9897
|
+
IntegrationElementType["FLOW"] = "flow";
|
|
9898
|
+
IntegrationElementType["INTEGRATION"] = "integration";
|
|
9899
|
+
IntegrationElementType["ACTION"] = "action";
|
|
9900
|
+
IntegrationElementType["DATA_LINK_TABLE"] = "data-link-table";
|
|
9901
|
+
IntegrationElementType["EXTERNAL_EVENT"] = "external-event";
|
|
9902
|
+
})(exports.IntegrationElementType || (exports.IntegrationElementType = {}));
|
|
8650
9903
|
|
|
8651
|
-
|
|
8652
|
-
(function (ConfigurationState) {
|
|
8653
|
-
ConfigurationState["CONFIGURED"] = "CONFIGURED";
|
|
8654
|
-
ConfigurationState["NOT_CONFIGURED"] = "NOT_CONFIGURED";
|
|
8655
|
-
})(exports.ConfigurationState || (exports.ConfigurationState = {}));
|
|
8656
|
-
exports.WorkspaceElementType = void 0;
|
|
8657
|
-
(function (WorkspaceElementType) {
|
|
8658
|
-
WorkspaceElementType["Customer"] = "customer";
|
|
8659
|
-
WorkspaceElementType["Connector"] = "connector";
|
|
8660
|
-
WorkspaceElementType["Integration"] = "integration";
|
|
8661
|
-
WorkspaceElementType["Flow"] = "flow";
|
|
8662
|
-
WorkspaceElementType["FlowInstance"] = "flow-instance";
|
|
8663
|
-
WorkspaceElementType["FlowRun"] = "flow-run";
|
|
8664
|
-
WorkspaceElementType["Action"] = "action";
|
|
8665
|
-
WorkspaceElementType["Scenario"] = "scenario";
|
|
8666
|
-
WorkspaceElementType["ActionInstance"] = "action-instance";
|
|
8667
|
-
WorkspaceElementType["Connection"] = "connection";
|
|
8668
|
-
WorkspaceElementType["FieldMapping"] = "field-mapping";
|
|
8669
|
-
WorkspaceElementType["FieldMappingInstance"] = "field-mapping-instance";
|
|
8670
|
-
WorkspaceElementType["DataSource"] = "data-source";
|
|
8671
|
-
WorkspaceElementType["DataSourceInstance"] = "data-source-instance";
|
|
8672
|
-
WorkspaceElementType["DataLinkTable"] = "data-link-table";
|
|
8673
|
-
WorkspaceElementType["DataLinkTableInstance"] = "data-link-table-instance";
|
|
8674
|
-
WorkspaceElementType["AppEventType"] = "app-event-type";
|
|
8675
|
-
WorkspaceElementType["AppEventSubscription"] = "app-event-subscription";
|
|
8676
|
-
WorkspaceElementType["AppDataSchema"] = "app-data-schema";
|
|
8677
|
-
WorkspaceElementType["AppDataSchemaInstance"] = "app-data-schema-instance";
|
|
8678
|
-
WorkspaceElementType["ExternalEventSubscription"] = "external-event-subscription";
|
|
8679
|
-
WorkspaceElementType["ExternalEventLogRecord"] = "external-event-log-record";
|
|
8680
|
-
WorkspaceElementType["ExternalEventPull"] = "external-event-pull";
|
|
8681
|
-
WorkspaceElementType["DataCollection"] = "data-collection";
|
|
8682
|
-
WorkspaceElementType["Screen"] = "screen";
|
|
8683
|
-
WorkspaceElementType["ActionRunLogRecord"] = "action-run-log-record";
|
|
8684
|
-
})(exports.WorkspaceElementType || (exports.WorkspaceElementType = {}));
|
|
8685
|
-
exports.WorkspaceEventType = void 0;
|
|
8686
|
-
(function (WorkspaceEventType) {
|
|
8687
|
-
WorkspaceEventType["ConnectionCreated"] = "connection.created";
|
|
8688
|
-
WorkspaceEventType["ConnectionDeleted"] = "connection.deleted";
|
|
8689
|
-
WorkspaceEventType["ConnectionDisconnected"] = "connection.disconnected";
|
|
8690
|
-
WorkspaceEventType["ConnectionReconnected"] = "connection.reconnected";
|
|
8691
|
-
WorkspaceEventType["FlowRunQueued"] = "flowRun.queued";
|
|
8692
|
-
WorkspaceEventType["FlowRunStarted"] = "flowRun.started";
|
|
8693
|
-
WorkspaceEventType["FlowRunCompleted"] = "flowRun.completed";
|
|
8694
|
-
WorkspaceEventType["FlowRunFailed"] = "flowRun.failed";
|
|
8695
|
-
WorkspaceEventType["FlowRunStopped"] = "flowRun.stopped";
|
|
8696
|
-
})(exports.WorkspaceEventType || (exports.WorkspaceEventType = {}));
|
|
8697
|
-
exports.WorkspaceElementState = void 0;
|
|
8698
|
-
(function (WorkspaceElementState) {
|
|
8699
|
-
WorkspaceElementState["CONFIGURATION_ERROR"] = "CONFIGURATION_ERROR";
|
|
8700
|
-
WorkspaceElementState["SETUP_FAILED"] = "SETUP_FAILED";
|
|
8701
|
-
WorkspaceElementState["READY"] = "READY";
|
|
8702
|
-
})(exports.WorkspaceElementState || (exports.WorkspaceElementState = {}));
|
|
8703
|
-
exports.WorkspaceElementDependencyType = void 0;
|
|
8704
|
-
(function (WorkspaceElementDependencyType) {
|
|
8705
|
-
WorkspaceElementDependencyType["Configuration"] = "CONFIGURATION";
|
|
8706
|
-
WorkspaceElementDependencyType["Parent"] = "PARENT";
|
|
8707
|
-
})(exports.WorkspaceElementDependencyType || (exports.WorkspaceElementDependencyType = {}));
|
|
8708
|
-
const BaseWorkspaceElement = zod.z.object({
|
|
8709
|
-
id: zod.z.string(),
|
|
9904
|
+
const ScenarioToDoApi = zod.z.object({
|
|
8710
9905
|
name: zod.z.string(),
|
|
9906
|
+
description: zod.z.string(),
|
|
9907
|
+
isComplete: zod.z.boolean(),
|
|
8711
9908
|
});
|
|
8712
|
-
const
|
|
9909
|
+
const ScenarioElementApi = zod.z.object({
|
|
9910
|
+
id: zod.z.string(),
|
|
9911
|
+
type: zod.z.nativeEnum(exports.IntegrationElementType),
|
|
9912
|
+
element: zod.z.any().optional(),
|
|
9913
|
+
});
|
|
9914
|
+
const FindScenariosQuery = zod.z.object({}).merge(SearchQuery).merge(PaginationQuery);
|
|
9915
|
+
const CreateScenarioRequest = zod.z.object({
|
|
9916
|
+
name: zod.z.string(),
|
|
8713
9917
|
key: zod.z.string(),
|
|
8714
|
-
|
|
8715
|
-
|
|
9918
|
+
elements: zod.z.array(ScenarioElementApi).optional(),
|
|
9919
|
+
todos: zod.z.array(ScenarioToDoApi).optional(),
|
|
9920
|
+
});
|
|
9921
|
+
const UpdateScenarioRequest = zod.z.object({
|
|
9922
|
+
name: zod.z.string().optional(),
|
|
9923
|
+
key: zod.z.string().optional(),
|
|
9924
|
+
elements: zod.z.array(ScenarioElementApi).optional(),
|
|
9925
|
+
todos: zod.z.array(ScenarioToDoApi).optional(),
|
|
9926
|
+
});
|
|
9927
|
+
const Scenario = BaseScenario.extend({
|
|
9928
|
+
appliedToIntegrations: zod.z.array(BaseIntegration).optional(),
|
|
8716
9929
|
});
|
|
8717
9930
|
|
|
8718
|
-
|
|
8719
|
-
|
|
8720
|
-
|
|
8721
|
-
|
|
8722
|
-
|
|
8723
|
-
|
|
8724
|
-
|
|
8725
|
-
|
|
8726
|
-
|
|
8727
|
-
|
|
8728
|
-
|
|
8729
|
-
|
|
8730
|
-
|
|
8731
|
-
|
|
8732
|
-
|
|
8733
|
-
|
|
8734
|
-
|
|
8735
|
-
(
|
|
8736
|
-
|
|
8737
|
-
FlowRunState["RUNNING"] = "running";
|
|
8738
|
-
FlowRunState["COMPLETED"] = "completed";
|
|
8739
|
-
FlowRunState["STOPPED"] = "stopped";
|
|
8740
|
-
FlowRunState["FAILED"] = "failed";
|
|
8741
|
-
})(exports.FlowRunState || (exports.FlowRunState = {}));
|
|
8742
|
-
exports.FlowRunLaunchedByTrigger = void 0;
|
|
8743
|
-
(function (FlowRunLaunchedByTrigger) {
|
|
8744
|
-
FlowRunLaunchedByTrigger["ApiTrigger"] = "api-trigger";
|
|
8745
|
-
FlowRunLaunchedByTrigger["ScheduleTrigger"] = "schedule-trigger";
|
|
8746
|
-
FlowRunLaunchedByTrigger["AppEventTrigger"] = "app-event-trigger";
|
|
8747
|
-
FlowRunLaunchedByTrigger["DataSourceTrigger"] = "data-source-trigger";
|
|
8748
|
-
FlowRunLaunchedByTrigger["ExternalEvent"] = "external-event";
|
|
8749
|
-
})(exports.FlowRunLaunchedByTrigger || (exports.FlowRunLaunchedByTrigger = {}));
|
|
8750
|
-
|
|
8751
|
-
exports.ScenarioTemplateCategory = void 0;
|
|
8752
|
-
(function (ScenarioTemplateCategory) {
|
|
8753
|
-
ScenarioTemplateCategory["DataExport"] = "data-export";
|
|
8754
|
-
ScenarioTemplateCategory["DataImport"] = "data-import";
|
|
8755
|
-
ScenarioTemplateCategory["BiDirectionalSync"] = "bi-directional-sync";
|
|
8756
|
-
ScenarioTemplateCategory["UnifiedApi"] = "unified-api";
|
|
8757
|
-
ScenarioTemplateCategory["DataEnrichment"] = "data-enrichment";
|
|
8758
|
-
})(exports.ScenarioTemplateCategory || (exports.ScenarioTemplateCategory = {}));
|
|
9931
|
+
const CreateCustomerRequest = zod.z.object({
|
|
9932
|
+
name: zod.z.string().optional(),
|
|
9933
|
+
internalId: zod.z.string(),
|
|
9934
|
+
fields: zod.z.any().optional(),
|
|
9935
|
+
credentials: zod.z.any().optional(),
|
|
9936
|
+
});
|
|
9937
|
+
const UpdateCustomerRequest = zod.z.object({
|
|
9938
|
+
name: zod.z.string().optional(),
|
|
9939
|
+
internalId: zod.z.string().optional(),
|
|
9940
|
+
fields: zod.z.any().optional(),
|
|
9941
|
+
credentials: zod.z.any().optional(),
|
|
9942
|
+
});
|
|
9943
|
+
const FindCustomersQuery = zod.z
|
|
9944
|
+
.object({
|
|
9945
|
+
isTest: zod.z.boolean().optional(),
|
|
9946
|
+
})
|
|
9947
|
+
.merge(PaginationQuery)
|
|
9948
|
+
.merge(SearchQuery);
|
|
9949
|
+
const CustomerSelector = zod.z.object({ id: zod.z.string() });
|
|
8759
9950
|
|
|
8760
|
-
|
|
8761
|
-
|
|
8762
|
-
|
|
8763
|
-
})
|
|
8764
|
-
exports.ScreenBlockType = void 0;
|
|
8765
|
-
(function (ScreenBlockType) {
|
|
8766
|
-
ScreenBlockType["Flow"] = "flow";
|
|
8767
|
-
ScreenBlockType["FieldMapping"] = "field-mapping";
|
|
8768
|
-
ScreenBlockType["DataSource"] = "data-source";
|
|
8769
|
-
ScreenBlockType["Action"] = "action";
|
|
8770
|
-
})(exports.ScreenBlockType || (exports.ScreenBlockType = {}));
|
|
9951
|
+
const FieldMapping = BaseFieldMapping.extend({
|
|
9952
|
+
integration: BaseIntegration.optional(),
|
|
9953
|
+
appliedToIntegrations: AppliedToIntegrations(BaseFieldMapping).optional(),
|
|
9954
|
+
});
|
|
8771
9955
|
|
|
8772
9956
|
class DependencyError extends IntegrationAppError {
|
|
8773
9957
|
constructor(arg, workspaceElementReference) {
|
|
@@ -8840,7 +10024,7 @@ function getChildNodeKeys(flow, nodeKey) {
|
|
|
8840
10024
|
return (nodeLinks
|
|
8841
10025
|
.map((nodeLink) => nodeLink.key)
|
|
8842
10026
|
.filter(Boolean)
|
|
8843
|
-
.filter((k) => { var _a; return !!((_a = flow.nodes) === null || _a === void 0 ? void 0 : _a[k]); }));
|
|
10027
|
+
.filter((k) => { var _a; return k && !!((_a = flow.nodes) === null || _a === void 0 ? void 0 : _a[k]); }));
|
|
8844
10028
|
}
|
|
8845
10029
|
function getDownstreamNodeKeys(flow, nodeKey) {
|
|
8846
10030
|
const linkedKeys = getChildNodeKeys(flow, nodeKey);
|
|
@@ -9413,83 +10597,33 @@ class DataForm {
|
|
|
9413
10597
|
|
|
9414
10598
|
function parseDate(value) {
|
|
9415
10599
|
let timestamp;
|
|
9416
|
-
if (typeof value === 'number') {
|
|
9417
|
-
timestamp = value;
|
|
9418
|
-
}
|
|
9419
|
-
else if (typeof value === 'string') {
|
|
9420
|
-
timestamp = Date.parse(value);
|
|
9421
|
-
if (isNaN(timestamp)) {
|
|
9422
|
-
timestamp = undefined;
|
|
9423
|
-
}
|
|
9424
|
-
if (!timestamp && Number(value) > 1000000000) {
|
|
9425
|
-
timestamp = Number(value);
|
|
9426
|
-
}
|
|
9427
|
-
}
|
|
9428
|
-
if (timestamp) {
|
|
9429
|
-
return timestampToDate(timestamp);
|
|
9430
|
-
}
|
|
9431
|
-
else {
|
|
9432
|
-
return undefined;
|
|
9433
|
-
}
|
|
9434
|
-
}
|
|
9435
|
-
function timestampToDate(value) {
|
|
9436
|
-
if (Math.round(value).toString().length < 13) {
|
|
9437
|
-
return new Date(value * 1000);
|
|
9438
|
-
}
|
|
9439
|
-
else {
|
|
9440
|
-
return new Date(value);
|
|
9441
|
-
}
|
|
9442
|
-
}
|
|
9443
|
-
|
|
9444
|
-
exports.HttpRequestMethod = void 0;
|
|
9445
|
-
(function (HttpRequestMethod) {
|
|
9446
|
-
HttpRequestMethod["GET"] = "GET";
|
|
9447
|
-
HttpRequestMethod["POST"] = "POST";
|
|
9448
|
-
HttpRequestMethod["PATCH"] = "PATCH";
|
|
9449
|
-
HttpRequestMethod["PUT"] = "PUT";
|
|
9450
|
-
HttpRequestMethod["DELETE"] = "DELETE";
|
|
9451
|
-
})(exports.HttpRequestMethod || (exports.HttpRequestMethod = {}));
|
|
9452
|
-
const HTTP_REQUEST_SCHEMA = {
|
|
9453
|
-
type: 'object',
|
|
9454
|
-
properties: {
|
|
9455
|
-
uri: { type: 'string' },
|
|
9456
|
-
method: {
|
|
9457
|
-
type: 'string',
|
|
9458
|
-
enum: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'],
|
|
9459
|
-
},
|
|
9460
|
-
body: {},
|
|
9461
|
-
query: {
|
|
9462
|
-
type: 'object',
|
|
9463
|
-
section: true,
|
|
9464
|
-
additionalProperties: true,
|
|
9465
|
-
},
|
|
9466
|
-
headers: {
|
|
9467
|
-
type: 'object',
|
|
9468
|
-
section: true,
|
|
9469
|
-
additionalProperties: true,
|
|
9470
|
-
},
|
|
9471
|
-
},
|
|
9472
|
-
};
|
|
9473
|
-
|
|
9474
|
-
exports.IntegrationElementLevel = void 0;
|
|
9475
|
-
(function (IntegrationElementLevel) {
|
|
9476
|
-
IntegrationElementLevel["UNIVERSAL"] = "universal";
|
|
9477
|
-
IntegrationElementLevel["CONNECTOR"] = "connector";
|
|
9478
|
-
IntegrationElementLevel["CONNECTION"] = "connection";
|
|
9479
|
-
})(exports.IntegrationElementLevel || (exports.IntegrationElementLevel = {}));
|
|
9480
|
-
exports.IntegrationElementType = void 0;
|
|
9481
|
-
(function (IntegrationElementType) {
|
|
9482
|
-
IntegrationElementType["APP_DATA_SCHEMA"] = "app-data-schema";
|
|
9483
|
-
IntegrationElementType["APP_EVENT_TYPE"] = "app-event-type";
|
|
9484
|
-
IntegrationElementType["DATA_SOURCE"] = "data-source";
|
|
9485
|
-
IntegrationElementType["SCHEMA"] = "schema";
|
|
9486
|
-
IntegrationElementType["FIELD_MAPPING"] = "field-mapping";
|
|
9487
|
-
IntegrationElementType["FLOW"] = "flow";
|
|
9488
|
-
IntegrationElementType["INTEGRATION"] = "integration";
|
|
9489
|
-
IntegrationElementType["ACTION"] = "action";
|
|
9490
|
-
IntegrationElementType["DATA_LINK_TABLE"] = "data-link-table";
|
|
9491
|
-
IntegrationElementType["EXTERNAL_EVENT"] = "external-event";
|
|
9492
|
-
})(exports.IntegrationElementType || (exports.IntegrationElementType = {}));
|
|
10600
|
+
if (typeof value === 'number') {
|
|
10601
|
+
timestamp = value;
|
|
10602
|
+
}
|
|
10603
|
+
else if (typeof value === 'string') {
|
|
10604
|
+
timestamp = Date.parse(value);
|
|
10605
|
+
if (isNaN(timestamp)) {
|
|
10606
|
+
timestamp = undefined;
|
|
10607
|
+
}
|
|
10608
|
+
if (!timestamp && Number(value) > 1000000000) {
|
|
10609
|
+
timestamp = Number(value);
|
|
10610
|
+
}
|
|
10611
|
+
}
|
|
10612
|
+
if (timestamp) {
|
|
10613
|
+
return timestampToDate(timestamp);
|
|
10614
|
+
}
|
|
10615
|
+
else {
|
|
10616
|
+
return undefined;
|
|
10617
|
+
}
|
|
10618
|
+
}
|
|
10619
|
+
function timestampToDate(value) {
|
|
10620
|
+
if (Math.round(value).toString().length < 13) {
|
|
10621
|
+
return new Date(value * 1000);
|
|
10622
|
+
}
|
|
10623
|
+
else {
|
|
10624
|
+
return new Date(value);
|
|
10625
|
+
}
|
|
10626
|
+
}
|
|
9493
10627
|
|
|
9494
10628
|
exports.UsageType = void 0;
|
|
9495
10629
|
(function (UsageType) {
|
|
@@ -9926,231 +11060,6 @@ class IntegrationLevelActionsListAccessor extends IntegrationLevelElementsListAc
|
|
|
9926
11060
|
}
|
|
9927
11061
|
}
|
|
9928
11062
|
|
|
9929
|
-
const POPUP_ELEMENT_ID = '__integration-app-popup';
|
|
9930
|
-
const CONTAINER_ELEMENT_ID = '__integration-app-container';
|
|
9931
|
-
const CONTAINER_ELEMENT_CLASS = '__integration-app-container';
|
|
9932
|
-
const CONTAINER_ELEMENT_CLASS__LOADER = '__integration-app-container__loader';
|
|
9933
|
-
const BODY_CLASS = '__integration-app-open';
|
|
9934
|
-
const STYLES_ELEMENT_ID = '__integration-app-embed-styles';
|
|
9935
|
-
let IFRAME_START_SHOW_LOADER_TIME = 0;
|
|
9936
|
-
let IFRAME_SHOW_LOADER_TIMEOUT_ID;
|
|
9937
|
-
const IFRAME_SHOW_LOADER_MINIMAL_TIME = 500;
|
|
9938
|
-
const IFRAME_LAYOUT_SHIFT_TIME = 300;
|
|
9939
|
-
function showIframeLoader() {
|
|
9940
|
-
const container = getContainer();
|
|
9941
|
-
container === null || container === void 0 ? void 0 : container.classList.add(CONTAINER_ELEMENT_CLASS__LOADER);
|
|
9942
|
-
IFRAME_START_SHOW_LOADER_TIME = Date.now();
|
|
9943
|
-
}
|
|
9944
|
-
function hideIframeLoader(waitLayoutShift = IFRAME_LAYOUT_SHIFT_TIME) {
|
|
9945
|
-
if (IFRAME_SHOW_LOADER_TIMEOUT_ID) {
|
|
9946
|
-
clearTimeout(IFRAME_SHOW_LOADER_TIMEOUT_ID);
|
|
9947
|
-
}
|
|
9948
|
-
const delta = Date.now() - IFRAME_START_SHOW_LOADER_TIME;
|
|
9949
|
-
if (delta >= IFRAME_SHOW_LOADER_MINIMAL_TIME) {
|
|
9950
|
-
setTimeout(() => {
|
|
9951
|
-
const container = getContainer();
|
|
9952
|
-
container === null || container === void 0 ? void 0 : container.classList.remove(CONTAINER_ELEMENT_CLASS__LOADER);
|
|
9953
|
-
IFRAME_START_SHOW_LOADER_TIME = 0;
|
|
9954
|
-
}, waitLayoutShift);
|
|
9955
|
-
return;
|
|
9956
|
-
}
|
|
9957
|
-
else {
|
|
9958
|
-
const waitLayoutShift = delta >= IFRAME_LAYOUT_SHIFT_TIME ? 0 : IFRAME_LAYOUT_SHIFT_TIME - delta;
|
|
9959
|
-
const timeoutTime = IFRAME_SHOW_LOADER_MINIMAL_TIME - delta;
|
|
9960
|
-
IFRAME_SHOW_LOADER_TIMEOUT_ID = setTimeout(() => {
|
|
9961
|
-
hideIframeLoader(waitLayoutShift);
|
|
9962
|
-
}, timeoutTime);
|
|
9963
|
-
return;
|
|
9964
|
-
}
|
|
9965
|
-
}
|
|
9966
|
-
async function openIframe(uri, callbacks = {}, { mountTargetSelector } = {}) {
|
|
9967
|
-
close();
|
|
9968
|
-
init(mountTargetSelector);
|
|
9969
|
-
return new Promise((resolve) => {
|
|
9970
|
-
function complete(callback) {
|
|
9971
|
-
close(callback);
|
|
9972
|
-
resolve();
|
|
9973
|
-
}
|
|
9974
|
-
function doOpen() {
|
|
9975
|
-
const iframe = document.createElement('iframe');
|
|
9976
|
-
iframe.src = uri;
|
|
9977
|
-
iframe.id = POPUP_ELEMENT_ID;
|
|
9978
|
-
iframe.onload = () => {
|
|
9979
|
-
hideIframeLoader();
|
|
9980
|
-
};
|
|
9981
|
-
if (!!getContainer()) {
|
|
9982
|
-
document.body.classList.add(BODY_CLASS);
|
|
9983
|
-
showIframeLoader();
|
|
9984
|
-
appendToContainer(iframe);
|
|
9985
|
-
handleIframeUnmount(iframe);
|
|
9986
|
-
penpal.connectToChild({
|
|
9987
|
-
iframe,
|
|
9988
|
-
methods: {
|
|
9989
|
-
...callbacks,
|
|
9990
|
-
handshake: (...args) => {
|
|
9991
|
-
var _a;
|
|
9992
|
-
hideIframeLoader();
|
|
9993
|
-
(_a = callbacks === null || callbacks === void 0 ? void 0 : callbacks.handshake) === null || _a === void 0 ? void 0 : _a.call(callbacks, ...args);
|
|
9994
|
-
},
|
|
9995
|
-
close: () => complete(callbacks.onClose),
|
|
9996
|
-
},
|
|
9997
|
-
});
|
|
9998
|
-
}
|
|
9999
|
-
else {
|
|
10000
|
-
throw Error('Membrane container element not found. Was it manually removed?');
|
|
10001
|
-
}
|
|
10002
|
-
}
|
|
10003
|
-
if (document.readyState === 'complete' || document.readyState === 'interactive') {
|
|
10004
|
-
doOpen();
|
|
10005
|
-
}
|
|
10006
|
-
else {
|
|
10007
|
-
document.addEventListener('DOMContentLoaded', () => {
|
|
10008
|
-
doOpen();
|
|
10009
|
-
});
|
|
10010
|
-
}
|
|
10011
|
-
});
|
|
10012
|
-
}
|
|
10013
|
-
function close(callback) {
|
|
10014
|
-
document.body.classList.remove(BODY_CLASS);
|
|
10015
|
-
if (!!getContainer()) {
|
|
10016
|
-
deleteContainer();
|
|
10017
|
-
if (callback) {
|
|
10018
|
-
callback();
|
|
10019
|
-
}
|
|
10020
|
-
}
|
|
10021
|
-
}
|
|
10022
|
-
function init(mountTargetSelector) {
|
|
10023
|
-
var _a;
|
|
10024
|
-
injectStyles(mountTargetSelector);
|
|
10025
|
-
if (!!getContainer()) {
|
|
10026
|
-
return;
|
|
10027
|
-
}
|
|
10028
|
-
const container = createContainer();
|
|
10029
|
-
if (mountTargetSelector && document.querySelector(mountTargetSelector)) {
|
|
10030
|
-
(_a = document.querySelector(mountTargetSelector)) === null || _a === void 0 ? void 0 : _a.appendChild(container);
|
|
10031
|
-
}
|
|
10032
|
-
else {
|
|
10033
|
-
document.body.appendChild(container);
|
|
10034
|
-
}
|
|
10035
|
-
}
|
|
10036
|
-
function injectStyles(mountTargetSelector) {
|
|
10037
|
-
const hasCustomMountTarget = Boolean(mountTargetSelector && document.querySelector(mountTargetSelector));
|
|
10038
|
-
const styles = [
|
|
10039
|
-
`.${CONTAINER_ELEMENT_CLASS}:empty {
|
|
10040
|
-
display: none;
|
|
10041
|
-
}`,
|
|
10042
|
-
hasCustomMountTarget
|
|
10043
|
-
? `.${CONTAINER_ELEMENT_CLASS} {
|
|
10044
|
-
inset: 0;
|
|
10045
|
-
background: rgba(0, 0, 0, 0);
|
|
10046
|
-
transition: background 0.2s ease-out;
|
|
10047
|
-
display: flex;
|
|
10048
|
-
justify-content: center;
|
|
10049
|
-
align-items: center;
|
|
10050
|
-
width: 100%;
|
|
10051
|
-
height: 100%;
|
|
10052
|
-
}`
|
|
10053
|
-
: `.${CONTAINER_ELEMENT_CLASS} {
|
|
10054
|
-
position: fixed;
|
|
10055
|
-
inset: 0;
|
|
10056
|
-
z-index: 2147483647;
|
|
10057
|
-
display: flex;
|
|
10058
|
-
justify-content: center;
|
|
10059
|
-
align-items: center;
|
|
10060
|
-
pointer-events: auto;
|
|
10061
|
-
background: rgba(0, 0, 0, 0);
|
|
10062
|
-
transition: background 0.2s ease-out;
|
|
10063
|
-
}`,
|
|
10064
|
-
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} {
|
|
10065
|
-
background: rgba(0, 0, 0, 0.8);
|
|
10066
|
-
}`,
|
|
10067
|
-
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER}::before {
|
|
10068
|
-
${hasCustomMountTarget ? 'position: absolute;' : ''}
|
|
10069
|
-
content: "";
|
|
10070
|
-
width: 5rem;
|
|
10071
|
-
height: 4rem;
|
|
10072
|
-
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');
|
|
10073
|
-
background-size: contain;
|
|
10074
|
-
background-repeat: no-repeat;
|
|
10075
|
-
background-position: center;
|
|
10076
|
-
filter: invert(1);
|
|
10077
|
-
}`,
|
|
10078
|
-
`.${CONTAINER_ELEMENT_CLASS} iframe {
|
|
10079
|
-
${hasCustomMountTarget ? '' : 'position: absolute;'}
|
|
10080
|
-
width: 100%;
|
|
10081
|
-
height: 100%;
|
|
10082
|
-
border-width: 0;
|
|
10083
|
-
|
|
10084
|
-
/* fix transparent bg, because iframe document has light scheme */
|
|
10085
|
-
color-scheme: light;
|
|
10086
|
-
}`,
|
|
10087
|
-
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} iframe {
|
|
10088
|
-
visibility: hidden;
|
|
10089
|
-
}`,
|
|
10090
|
-
!hasCustomMountTarget
|
|
10091
|
-
? `body.${BODY_CLASS} {
|
|
10092
|
-
overflow: hidden;
|
|
10093
|
-
}`
|
|
10094
|
-
: '',
|
|
10095
|
-
];
|
|
10096
|
-
let styleElement = document.getElementById(STYLES_ELEMENT_ID);
|
|
10097
|
-
if (!styleElement) {
|
|
10098
|
-
styleElement = document.createElement('style');
|
|
10099
|
-
styleElement.id = STYLES_ELEMENT_ID;
|
|
10100
|
-
styleElement.type = 'text/css';
|
|
10101
|
-
document.head.appendChild(styleElement);
|
|
10102
|
-
}
|
|
10103
|
-
styleElement.textContent = styles.join('\n');
|
|
10104
|
-
}
|
|
10105
|
-
function removeInjectedStyles() {
|
|
10106
|
-
const stylesElement = document.getElementById(STYLES_ELEMENT_ID);
|
|
10107
|
-
if (stylesElement) {
|
|
10108
|
-
stylesElement.remove();
|
|
10109
|
-
}
|
|
10110
|
-
}
|
|
10111
|
-
function createContainer() {
|
|
10112
|
-
const container = document.createElement('div');
|
|
10113
|
-
container.id = CONTAINER_ELEMENT_ID;
|
|
10114
|
-
container.classList.add(CONTAINER_ELEMENT_CLASS);
|
|
10115
|
-
return container;
|
|
10116
|
-
}
|
|
10117
|
-
function getContainer() {
|
|
10118
|
-
return document.getElementById(CONTAINER_ELEMENT_ID);
|
|
10119
|
-
}
|
|
10120
|
-
function appendToContainer(el) {
|
|
10121
|
-
const container = getContainer();
|
|
10122
|
-
container === null || container === void 0 ? void 0 : container.appendChild(el);
|
|
10123
|
-
}
|
|
10124
|
-
function deleteContainer() {
|
|
10125
|
-
const container = getContainer();
|
|
10126
|
-
if (container) {
|
|
10127
|
-
container.remove();
|
|
10128
|
-
}
|
|
10129
|
-
removeInjectedStyles();
|
|
10130
|
-
}
|
|
10131
|
-
function handleIframeUnmount(iframe) {
|
|
10132
|
-
const observer = new MutationObserver((mutationsList) => {
|
|
10133
|
-
for (const mutation of mutationsList) {
|
|
10134
|
-
for (const removedNode of mutation.removedNodes) {
|
|
10135
|
-
if (removedNode instanceof HTMLElement && removedNode.id === POPUP_ELEMENT_ID) {
|
|
10136
|
-
observer.disconnect();
|
|
10137
|
-
deleteContainer();
|
|
10138
|
-
return;
|
|
10139
|
-
}
|
|
10140
|
-
}
|
|
10141
|
-
}
|
|
10142
|
-
});
|
|
10143
|
-
const parent = iframe.parentNode;
|
|
10144
|
-
if (parent) {
|
|
10145
|
-
observer.observe(parent, {
|
|
10146
|
-
childList: true,
|
|
10147
|
-
});
|
|
10148
|
-
}
|
|
10149
|
-
else {
|
|
10150
|
-
console.warn(`iframe with ID "${POPUP_ELEMENT_ID}" has no parent node`);
|
|
10151
|
-
}
|
|
10152
|
-
}
|
|
10153
|
-
|
|
10154
11063
|
class ConnectionLevelElementAccessor {
|
|
10155
11064
|
constructor(client, connectionSelector, selector, elementKey, query) {
|
|
10156
11065
|
this.client = client;
|
|
@@ -11372,6 +12281,11 @@ class ExternalEventSubscriptionAccessor {
|
|
|
11372
12281
|
}
|
|
11373
12282
|
}
|
|
11374
12283
|
|
|
12284
|
+
exports.WorkspaceSyncEventType = void 0;
|
|
12285
|
+
(function (WorkspaceSyncEventType) {
|
|
12286
|
+
WorkspaceSyncEventType["ElementUpdate"] = "element-update";
|
|
12287
|
+
})(exports.WorkspaceSyncEventType || (exports.WorkspaceSyncEventType = {}));
|
|
12288
|
+
|
|
11375
12289
|
function decodeJWT(token) {
|
|
11376
12290
|
if (typeof token !== 'string') {
|
|
11377
12291
|
return undefined;
|
|
@@ -11465,6 +12379,13 @@ class IntegrationAppApiClient {
|
|
|
11465
12379
|
async delete(uri, data, options) {
|
|
11466
12380
|
return this.makeApiRequest('DELETE', { ...(options !== null && options !== void 0 ? options : {}), url: uri, data });
|
|
11467
12381
|
}
|
|
12382
|
+
async createEventSource(uri, queryParams) {
|
|
12383
|
+
const token = await this.getToken();
|
|
12384
|
+
const allParams = { ...queryParams, token };
|
|
12385
|
+
const queryString = qs.stringify(omitBy(allParams, isEmptyValue));
|
|
12386
|
+
const urlWithToken = `${this.apiUri}/${uri}?${queryString}`;
|
|
12387
|
+
return new EventSource(urlWithToken);
|
|
12388
|
+
}
|
|
11468
12389
|
async getEmbedUri(page, pageParams, options) {
|
|
11469
12390
|
var _a;
|
|
11470
12391
|
const paramsWithToken = {
|
|
@@ -11645,6 +12566,9 @@ class IntegrationAppClient extends IntegrationAppApiClient {
|
|
|
11645
12566
|
get scenarios() {
|
|
11646
12567
|
return new ScenariosAccessor(this);
|
|
11647
12568
|
}
|
|
12569
|
+
async createEventSource(uri, queryParams) {
|
|
12570
|
+
return super.createEventSource(uri, queryParams);
|
|
12571
|
+
}
|
|
11648
12572
|
async connectionRequest(connectionId, uri, data) {
|
|
11649
12573
|
return this.post(`connections/${connectionId}/execute-request`, {
|
|
11650
12574
|
key: uri,
|
|
@@ -11657,13 +12581,16 @@ injectFormulaCatalog(getFormula, isFormula, hasFormulas);
|
|
|
11657
12581
|
|
|
11658
12582
|
exports.ACTIONS = ACTIONS;
|
|
11659
12583
|
exports.AccessDeniedError = AccessDeniedError;
|
|
12584
|
+
exports.Action = Action;
|
|
11660
12585
|
exports.ActionAccessor = ActionAccessor;
|
|
12586
|
+
exports.ActionDependency = ActionDependency;
|
|
11661
12587
|
exports.ActionInstanceAccessor = ActionInstanceAccessor;
|
|
11662
12588
|
exports.ActionInstanceSetupError = ActionInstanceSetupError;
|
|
11663
12589
|
exports.ActionInstancesAccessor = ActionInstancesAccessor;
|
|
11664
12590
|
exports.ActionRunError = ActionRunError;
|
|
12591
|
+
exports.ActionRunResponse = ActionRunResponse;
|
|
11665
12592
|
exports.ActionsAccessor = ActionsAccessor;
|
|
11666
|
-
exports.
|
|
12593
|
+
exports.ApiRequestSpec = ApiRequestSpec;
|
|
11667
12594
|
exports.AppDataSchemaAccessor = AppDataSchemaAccessor;
|
|
11668
12595
|
exports.AppDataSchemaInstanceAccessor = AppDataSchemaInstanceAccessor;
|
|
11669
12596
|
exports.AppDataSchemaInstancesAccessor = AppDataSchemaInstancesAccessor;
|
|
@@ -11672,8 +12599,34 @@ exports.AppEventSubscriptionAccessor = AppEventSubscriptionAccessor;
|
|
|
11672
12599
|
exports.AppEventSubscriptionsAccessor = AppEventSubscriptionsAccessor;
|
|
11673
12600
|
exports.AppEventTypeAccessor = AppEventTypeAccessor;
|
|
11674
12601
|
exports.AppEventTypesAccessor = AppEventTypesAccessor;
|
|
12602
|
+
exports.AppliedToIntegrations = AppliedToIntegrations;
|
|
11675
12603
|
exports.BadRequestError = BadRequestError;
|
|
12604
|
+
exports.BaseAction = BaseAction;
|
|
12605
|
+
exports.BaseActionInstance = BaseActionInstance;
|
|
12606
|
+
exports.BaseActionRunLogRecord = BaseActionRunLogRecord;
|
|
12607
|
+
exports.BaseAppDataSchema = BaseAppDataSchema;
|
|
12608
|
+
exports.BaseAppDataSchemaInstance = BaseAppDataSchemaInstance;
|
|
12609
|
+
exports.BaseAppEventSubscription = BaseAppEventSubscription;
|
|
12610
|
+
exports.BaseAppEventType = BaseAppEventType;
|
|
12611
|
+
exports.BaseConnection = BaseConnection;
|
|
12612
|
+
exports.BaseCustomer = BaseCustomer;
|
|
12613
|
+
exports.BaseDataLinkTable = BaseDataLinkTable;
|
|
12614
|
+
exports.BaseDataLinkTableInstance = BaseDataLinkTableInstance;
|
|
12615
|
+
exports.BaseDataSource = BaseDataSource;
|
|
12616
|
+
exports.BaseDataSourceInstance = BaseDataSourceInstance;
|
|
12617
|
+
exports.BaseExternalEvent = BaseExternalEvent;
|
|
12618
|
+
exports.BaseExternalEventLogRecord = BaseExternalEventLogRecord;
|
|
12619
|
+
exports.BaseExternalEventPull = BaseExternalEventPull;
|
|
12620
|
+
exports.BaseExternalEventSubscription = BaseExternalEventSubscription;
|
|
12621
|
+
exports.BaseFieldMapping = BaseFieldMapping;
|
|
12622
|
+
exports.BaseFieldMappingInstance = BaseFieldMappingInstance;
|
|
12623
|
+
exports.BaseFlow = BaseFlow;
|
|
12624
|
+
exports.BaseFlowInstance = BaseFlowInstance;
|
|
12625
|
+
exports.BaseFlowRun = BaseFlowRun;
|
|
12626
|
+
exports.BaseIntegration = BaseIntegration;
|
|
11676
12627
|
exports.BaseMembraneInterface = BaseMembraneInterface;
|
|
12628
|
+
exports.BaseScenario = BaseScenario;
|
|
12629
|
+
exports.BaseScreen = BaseScreen;
|
|
11677
12630
|
exports.BaseWorkspaceElement = BaseWorkspaceElement;
|
|
11678
12631
|
exports.CONNECTOR_AUTH_TYPES = CONNECTOR_AUTH_TYPES;
|
|
11679
12632
|
exports.CONNECTOR_CATEGORIES = CONNECTOR_CATEGORIES;
|
|
@@ -11683,8 +12636,12 @@ exports.CONNECTOR_EVENTS_DIR = CONNECTOR_EVENTS_DIR;
|
|
|
11683
12636
|
exports.CONNECTOR_GLOBAL_WEBHOOKS_DIR = CONNECTOR_GLOBAL_WEBHOOKS_DIR;
|
|
11684
12637
|
exports.CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES = CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES;
|
|
11685
12638
|
exports.CONNECTOR_OPERATIONS_DIR = CONNECTOR_OPERATIONS_DIR;
|
|
12639
|
+
exports.CommonInstancesListQuery = CommonInstancesListQuery;
|
|
12640
|
+
exports.CommonIntegrationOrConnectionQuery = CommonIntegrationOrConnectionQuery;
|
|
12641
|
+
exports.CommonListElementsQuery = CommonListElementsQuery;
|
|
11686
12642
|
exports.ConcurrencyError = ConcurrencyError;
|
|
11687
12643
|
exports.ConfigurationError = ConfigurationError;
|
|
12644
|
+
exports.Connection = Connection;
|
|
11688
12645
|
exports.ConnectionAccessor = ConnectionAccessor;
|
|
11689
12646
|
exports.ConnectionDataCollectionAccessor = ConnectionDataCollectionAccessor;
|
|
11690
12647
|
exports.ConnectionError = ConnectionError;
|
|
@@ -11696,8 +12653,11 @@ exports.ConnectionLevelFieldMappingAccessor = ConnectionLevelFieldMappingAccesso
|
|
|
11696
12653
|
exports.ConnectionLevelFieldMappingsAccessor = ConnectionLevelFieldMappingsAccessor;
|
|
11697
12654
|
exports.ConnectionLevelFlowAccessor = ConnectionLevelFlowAccessor;
|
|
11698
12655
|
exports.ConnectionLevelFlowsAccessor = ConnectionLevelFlowsAccessor;
|
|
12656
|
+
exports.ConnectionMessagePayload = ConnectionMessagePayload;
|
|
11699
12657
|
exports.ConnectionOperationAccessor = ConnectionOperationAccessor;
|
|
11700
12658
|
exports.ConnectionProxy = ConnectionProxy;
|
|
12659
|
+
exports.ConnectionRequest = ConnectionRequest;
|
|
12660
|
+
exports.ConnectionSelector = ConnectionSelector;
|
|
11701
12661
|
exports.ConnectionSpec = ConnectionSpec;
|
|
11702
12662
|
exports.ConnectionsAccessor = ConnectionsAccessor;
|
|
11703
12663
|
exports.ConnectorAuthMethodTypes = ConnectorAuthMethodTypes;
|
|
@@ -11707,48 +12667,60 @@ exports.ConnectorDataLocationTypes = ConnectorDataLocationTypes;
|
|
|
11707
12667
|
exports.ConnectorEventHandlerMethods = ConnectorEventHandlerMethods;
|
|
11708
12668
|
exports.ConnectorOperationMethodImplementationTypes = ConnectorOperationMethodImplementationTypes;
|
|
11709
12669
|
exports.CopilotActivityScope = CopilotActivityScope;
|
|
12670
|
+
exports.CreateActionInstanceRequest = CreateActionInstanceRequest;
|
|
12671
|
+
exports.CreateActionRequest = CreateActionRequest;
|
|
11710
12672
|
exports.CreateConnectionRequest = CreateConnectionRequest;
|
|
12673
|
+
exports.CreateCustomerRequest = CreateCustomerRequest;
|
|
12674
|
+
exports.CreateDataSourceInstanceRequest = CreateDataSourceInstanceRequest;
|
|
12675
|
+
exports.CreateDataSourceRequest = CreateDataSourceRequest;
|
|
12676
|
+
exports.CreateFlowNodeRequest = CreateFlowNodeRequest;
|
|
12677
|
+
exports.CreateFlowRequest = CreateFlowRequest;
|
|
12678
|
+
exports.CreateIntegrationRequest = CreateIntegrationRequest;
|
|
12679
|
+
exports.CreateScenarioRequest = CreateScenarioRequest;
|
|
11711
12680
|
exports.CustomCodeError = CustomCodeError;
|
|
11712
12681
|
exports.CustomerAccessor = CustomerAccessor;
|
|
12682
|
+
exports.CustomerSelector = CustomerSelector;
|
|
11713
12683
|
exports.CustomersAccessor = CustomersAccessor;
|
|
11714
12684
|
exports.DATA_RECORD_SCHEMA = DATA_RECORD_SCHEMA;
|
|
11715
12685
|
exports.DEFAULT_FULL_SYNC_INTERVAL_SECONDS = DEFAULT_FULL_SYNC_INTERVAL_SECONDS;
|
|
11716
12686
|
exports.DEFAULT_PULL_UPDATES_INTERVAL_SECONDS = DEFAULT_PULL_UPDATES_INTERVAL_SECONDS;
|
|
11717
|
-
exports.
|
|
11718
|
-
exports.
|
|
11719
|
-
exports.
|
|
11720
|
-
exports.
|
|
11721
|
-
exports.
|
|
11722
|
-
exports.
|
|
11723
|
-
exports.
|
|
11724
|
-
exports.
|
|
11725
|
-
exports.
|
|
11726
|
-
exports.
|
|
11727
|
-
exports.
|
|
11728
|
-
exports.
|
|
11729
|
-
exports.
|
|
11730
|
-
exports.
|
|
11731
|
-
exports.
|
|
11732
|
-
exports.
|
|
11733
|
-
exports.
|
|
11734
|
-
exports.
|
|
11735
|
-
exports.
|
|
11736
|
-
exports.
|
|
11737
|
-
exports.
|
|
11738
|
-
exports.
|
|
11739
|
-
exports.
|
|
11740
|
-
exports.
|
|
11741
|
-
exports.
|
|
11742
|
-
exports.
|
|
11743
|
-
exports.
|
|
11744
|
-
exports.
|
|
11745
|
-
exports.
|
|
11746
|
-
exports.
|
|
11747
|
-
exports.
|
|
11748
|
-
exports.
|
|
12687
|
+
exports.DataCollectionCreateRequest = DataCollectionCreateRequest;
|
|
12688
|
+
exports.DataCollectionCreateResponse = DataCollectionCreateResponse;
|
|
12689
|
+
exports.DataCollectionCreateSpec = DataCollectionCreateSpec;
|
|
12690
|
+
exports.DataCollectionDeleteRequest = DataCollectionDeleteRequest;
|
|
12691
|
+
exports.DataCollectionDeleteResponse = DataCollectionDeleteResponse;
|
|
12692
|
+
exports.DataCollectionDeleteSpec = DataCollectionDeleteSpec;
|
|
12693
|
+
exports.DataCollectionEventTypeSpec = DataCollectionEventTypeSpec;
|
|
12694
|
+
exports.DataCollectionEventsSpec = DataCollectionEventsSpec;
|
|
12695
|
+
exports.DataCollectionFindByIdRequest = DataCollectionFindByIdRequest;
|
|
12696
|
+
exports.DataCollectionFindByIdResponse = DataCollectionFindByIdResponse;
|
|
12697
|
+
exports.DataCollectionFindByIdSpec = DataCollectionFindByIdSpec;
|
|
12698
|
+
exports.DataCollectionFindRequest = DataCollectionFindRequest;
|
|
12699
|
+
exports.DataCollectionFindResponse = DataCollectionFindResponse;
|
|
12700
|
+
exports.DataCollectionFindSpec = DataCollectionFindSpec;
|
|
12701
|
+
exports.DataCollectionListRequest = DataCollectionListRequest;
|
|
12702
|
+
exports.DataCollectionListResponse = DataCollectionListResponse;
|
|
12703
|
+
exports.DataCollectionListResponseDrilldown = DataCollectionListResponseDrilldown;
|
|
12704
|
+
exports.DataCollectionListSpec = DataCollectionListSpec;
|
|
12705
|
+
exports.DataCollectionMatchRequest = DataCollectionMatchRequest;
|
|
12706
|
+
exports.DataCollectionMatchResponse = DataCollectionMatchResponse;
|
|
12707
|
+
exports.DataCollectionMatchSpec = DataCollectionMatchSpec;
|
|
12708
|
+
exports.DataCollectionMethodRequest = DataCollectionMethodRequest;
|
|
12709
|
+
exports.DataCollectionMethodSpec = DataCollectionMethodSpec;
|
|
12710
|
+
exports.DataCollectionSearchRequest = DataCollectionSearchRequest;
|
|
12711
|
+
exports.DataCollectionSearchResponse = DataCollectionSearchResponse;
|
|
12712
|
+
exports.DataCollectionSearchSpec = DataCollectionSearchSpec;
|
|
12713
|
+
exports.DataCollectionSpec = DataCollectionSpec;
|
|
12714
|
+
exports.DataCollectionUdmSpec = DataCollectionUdmSpec;
|
|
12715
|
+
exports.DataCollectionUdmsSpec = DataCollectionUdmsSpec;
|
|
12716
|
+
exports.DataCollectionUpdateRequest = DataCollectionUpdateRequest;
|
|
12717
|
+
exports.DataCollectionUpdateResponse = DataCollectionUpdateResponse;
|
|
12718
|
+
exports.DataCollectionUpdateSpec = DataCollectionUpdateSpec;
|
|
11749
12719
|
exports.DataFilterCondition = DataFilterCondition;
|
|
11750
12720
|
exports.DataForm = DataForm;
|
|
12721
|
+
exports.DataLink = DataLink;
|
|
11751
12722
|
exports.DataLinkTableAccessor = DataLinkTableAccessor;
|
|
12723
|
+
exports.DataLinkTableConfig = DataLinkTableConfig;
|
|
11752
12724
|
exports.DataLinkTableInstanceAccessor = DataLinkTableInstanceAccessor;
|
|
11753
12725
|
exports.DataLinkTableInstancesAccessor = DataLinkTableInstancesAccessor;
|
|
11754
12726
|
exports.DataLinkTablesAccessor = DataLinkTablesAccessor;
|
|
@@ -11758,10 +12730,13 @@ exports.DataLocatorStep = DataLocatorStep;
|
|
|
11758
12730
|
exports.DataLocatorStepArrayItem = DataLocatorStepArrayItem;
|
|
11759
12731
|
exports.DataLocatorStepObjectProperty = DataLocatorStepObjectProperty;
|
|
11760
12732
|
exports.DataRecordSchema = DataRecordSchema;
|
|
12733
|
+
exports.DataSchema = DataSchema;
|
|
11761
12734
|
exports.DataSchemaSchema = DataSchemaSchema;
|
|
12735
|
+
exports.DataSource = DataSource;
|
|
11762
12736
|
exports.DataSourceAccessor = DataSourceAccessor;
|
|
11763
12737
|
exports.DataSourceInstanceAccessor = DataSourceInstanceAccessor;
|
|
11764
12738
|
exports.DataSourceInstancesAccessor = DataSourceInstancesAccessor;
|
|
12739
|
+
exports.DataSourceUnitConfig = DataSourceUnitConfig;
|
|
11765
12740
|
exports.DataSourcesAccessor = DataSourcesAccessor;
|
|
11766
12741
|
exports.DependencyError = DependencyError;
|
|
11767
12742
|
exports.DownstreamFlowNodeRunSchema = DownstreamFlowNodeRunSchema;
|
|
@@ -11770,20 +12745,44 @@ exports.ElementAccessor = ElementAccessor;
|
|
|
11770
12745
|
exports.ElementInstanceAccessor = ElementInstanceAccessor;
|
|
11771
12746
|
exports.ElementInstanceListAccessor = ElementInstanceListAccessor;
|
|
11772
12747
|
exports.ElementListAccessor = ElementListAccessor;
|
|
12748
|
+
exports.ElementsExportFields = ElementsExportFields;
|
|
11773
12749
|
exports.ErrorData = ErrorData;
|
|
11774
12750
|
exports.ErrorDataSchema = ErrorDataSchema;
|
|
12751
|
+
exports.ExternalEvent = ExternalEvent;
|
|
11775
12752
|
exports.ExternalEventSubscriptionAccessor = ExternalEventSubscriptionAccessor;
|
|
12753
|
+
exports.ExternalEventSubscriptionConfig = ExternalEventSubscriptionConfig;
|
|
11776
12754
|
exports.ExternalEventSubscriptionsAccessor = ExternalEventSubscriptionsAccessor;
|
|
12755
|
+
exports.ExternalEventUnitConfig = ExternalEventUnitConfig;
|
|
11777
12756
|
exports.FLOW_NODE_SPECS = FLOW_NODE_SPECS;
|
|
12757
|
+
exports.FieldMapping = FieldMapping;
|
|
11778
12758
|
exports.FieldMappingAccessor = FieldMappingAccessor;
|
|
11779
12759
|
exports.FieldMappingInstanceAccessor = FieldMappingInstanceAccessor;
|
|
11780
12760
|
exports.FieldMappingInstancesAccessor = FieldMappingInstancesAccessor;
|
|
12761
|
+
exports.FieldMappingUnitConfig = FieldMappingUnitConfig;
|
|
11781
12762
|
exports.FieldMappingsAccessor = FieldMappingsAccessor;
|
|
12763
|
+
exports.FindActionInstancesQuery = FindActionInstancesQuery;
|
|
12764
|
+
exports.FindActionsQuery = FindActionsQuery;
|
|
12765
|
+
exports.FindConnectionsQuery = FindConnectionsQuery;
|
|
11782
12766
|
exports.FindConnectionsResponse = FindConnectionsResponse;
|
|
12767
|
+
exports.FindCustomersQuery = FindCustomersQuery;
|
|
12768
|
+
exports.FindDataSourceEventsQuery = FindDataSourceEventsQuery;
|
|
12769
|
+
exports.FindDataSourceInstanceSyncsQuery = FindDataSourceInstanceSyncsQuery;
|
|
12770
|
+
exports.FindDataSourceInstancesQuery = FindDataSourceInstancesQuery;
|
|
12771
|
+
exports.FindDataSourceSyncsQuery = FindDataSourceSyncsQuery;
|
|
12772
|
+
exports.FindDataSourcesQuery = FindDataSourcesQuery;
|
|
12773
|
+
exports.FindFlowInstancesQuery = FindFlowInstancesQuery;
|
|
12774
|
+
exports.FindFlowsQuery = FindFlowsQuery;
|
|
12775
|
+
exports.FindIntegrationsQuery = FindIntegrationsQuery;
|
|
12776
|
+
exports.FindScenariosQuery = FindScenariosQuery;
|
|
12777
|
+
exports.Flow = Flow;
|
|
11783
12778
|
exports.FlowAccessor = FlowAccessor;
|
|
12779
|
+
exports.FlowInstance = FlowInstance;
|
|
11784
12780
|
exports.FlowInstanceAccessor = FlowInstanceAccessor;
|
|
12781
|
+
exports.FlowInstanceNode = FlowInstanceNode;
|
|
11785
12782
|
exports.FlowInstanceSetupError = FlowInstanceSetupError;
|
|
11786
12783
|
exports.FlowInstancesAccessor = FlowInstancesAccessor;
|
|
12784
|
+
exports.FlowNode = FlowNode;
|
|
12785
|
+
exports.FlowNodeLink = FlowNodeLink;
|
|
11787
12786
|
exports.FlowNodeRunOutputMetadataSchema = FlowNodeRunOutputMetadataSchema;
|
|
11788
12787
|
exports.FlowNodeRunOutputSchema = FlowNodeRunOutputSchema;
|
|
11789
12788
|
exports.FlowNodeRunOutputWithoutDownstreamRunsSchema = FlowNodeRunOutputWithoutDownstreamRunsSchema;
|
|
@@ -11794,10 +12793,16 @@ exports.FlowNodeRunResultSchema = FlowNodeRunResultSchema;
|
|
|
11794
12793
|
exports.FlowNodeSpec = FlowNodeSpec;
|
|
11795
12794
|
exports.FlowRunAccessor = FlowRunAccessor;
|
|
11796
12795
|
exports.FlowRunError = FlowRunError;
|
|
12796
|
+
exports.FlowRunLaunchedBy = FlowRunLaunchedBy;
|
|
12797
|
+
exports.FlowRunNode = FlowRunNode;
|
|
11797
12798
|
exports.FlowRunsAccessor = FlowRunsAccessor;
|
|
11798
12799
|
exports.FlowsAccessor = FlowsAccessor;
|
|
11799
12800
|
exports.Formula = Formula;
|
|
11800
12801
|
exports.HTTP_REQUEST_SCHEMA = HTTP_REQUEST_SCHEMA;
|
|
12802
|
+
exports.HandyScenarioTemplateElement = HandyScenarioTemplateElement;
|
|
12803
|
+
exports.HttpRequestSpec = HttpRequestSpec;
|
|
12804
|
+
exports.IncludeArchivedQuery = IncludeArchivedQuery;
|
|
12805
|
+
exports.Integration = Integration;
|
|
11801
12806
|
exports.IntegrationAccessor = IntegrationAccessor;
|
|
11802
12807
|
exports.IntegrationAppClient = IntegrationAppClient;
|
|
11803
12808
|
exports.IntegrationAppError = IntegrationAppError;
|
|
@@ -11812,24 +12817,52 @@ exports.IntegrationLevelFlowsListAccessor = IntegrationLevelFlowsListAccessor;
|
|
|
11812
12817
|
exports.IntegrationsAccessor = IntegrationsAccessor;
|
|
11813
12818
|
exports.InternalError = InternalError;
|
|
11814
12819
|
exports.InvalidLocatorError = InvalidLocatorError;
|
|
12820
|
+
exports.ListActionInstancesForConnectionQuery = ListActionInstancesForConnectionQuery;
|
|
12821
|
+
exports.ListActionsForIntegrationQuery = ListActionsForIntegrationQuery;
|
|
12822
|
+
exports.ListDataSourceInstancesForConnectionQuery = ListDataSourceInstancesForConnectionQuery;
|
|
12823
|
+
exports.ListDataSourcesForIntegrationQuery = ListDataSourcesForIntegrationQuery;
|
|
12824
|
+
exports.ListFlowInstancesForConnectionQuery = ListFlowInstancesForConnectionQuery;
|
|
12825
|
+
exports.ListFlowsForIntegrationQuery = ListFlowsForIntegrationQuery;
|
|
11815
12826
|
exports.MIN_FULL_SYNC_INTERVAL_SECONDS = MIN_FULL_SYNC_INTERVAL_SECONDS;
|
|
11816
12827
|
exports.MIN_PULL_UPDATES_INTERVAL_SECONDS = MIN_PULL_UPDATES_INTERVAL_SECONDS;
|
|
12828
|
+
exports.MinimalConnector = MinimalConnector;
|
|
11817
12829
|
exports.NotAuthenticatedError = NotAuthenticatedError;
|
|
11818
12830
|
exports.NotFoundError = NotFoundError;
|
|
11819
12831
|
exports.OAUTH1_CONFIG_SCHEMA = OAUTH1_CONFIG_SCHEMA;
|
|
11820
12832
|
exports.OAUTH_CONFIG_SCHEMA = OAUTH_CONFIG_SCHEMA;
|
|
12833
|
+
exports.OpenNewConnectionOptions = OpenNewConnectionOptions;
|
|
11821
12834
|
exports.PARALLEL_EXECUTION_LIMITS = PARALLEL_EXECUTION_LIMITS;
|
|
12835
|
+
exports.PaginationQuery = PaginationQuery;
|
|
11822
12836
|
exports.PaginationResponse = PaginationResponse;
|
|
11823
12837
|
exports.RATE_LIMITS = RATE_LIMITS;
|
|
11824
12838
|
exports.RateLimitExceededError = RateLimitExceededError;
|
|
12839
|
+
exports.ResetFlowInstanceOptions = ResetFlowInstanceOptions;
|
|
12840
|
+
exports.RunFlowOptions = RunFlowOptions;
|
|
12841
|
+
exports.Scenario = Scenario;
|
|
11825
12842
|
exports.ScenarioAccessor = ScenarioAccessor;
|
|
12843
|
+
exports.ScenarioElement = ScenarioElement;
|
|
12844
|
+
exports.ScenarioElementApi = ScenarioElementApi;
|
|
12845
|
+
exports.ScenarioTemplate = ScenarioTemplate;
|
|
12846
|
+
exports.ScenarioTemplateElements = ScenarioTemplateElements;
|
|
12847
|
+
exports.ScenarioToDo = ScenarioToDo;
|
|
12848
|
+
exports.ScenarioToDoApi = ScenarioToDoApi;
|
|
11826
12849
|
exports.ScenariosAccessor = ScenariosAccessor;
|
|
11827
12850
|
exports.ScreenAccessor = ScreenAccessor;
|
|
12851
|
+
exports.ScreenBlock = ScreenBlock;
|
|
11828
12852
|
exports.ScreensAccessor = ScreensAccessor;
|
|
12853
|
+
exports.SearchQuery = SearchQuery;
|
|
11829
12854
|
exports.SelfAccessor = SelfAccessor;
|
|
11830
12855
|
exports.UNIFIED_DATA_MODELS = UNIFIED_DATA_MODELS;
|
|
11831
12856
|
exports.UnitRunError = UnitRunError;
|
|
12857
|
+
exports.UpdateActionInstanceRequest = UpdateActionInstanceRequest;
|
|
12858
|
+
exports.UpdateActionRequest = UpdateActionRequest;
|
|
11832
12859
|
exports.UpdateConnectionRequest = UpdateConnectionRequest;
|
|
12860
|
+
exports.UpdateCustomerRequest = UpdateCustomerRequest;
|
|
12861
|
+
exports.UpdateDataSourceInstanceRequest = UpdateDataSourceInstanceRequest;
|
|
12862
|
+
exports.UpdateDataSourceRequest = UpdateDataSourceRequest;
|
|
12863
|
+
exports.UpdateFlowRequest = UpdateFlowRequest;
|
|
12864
|
+
exports.UpdateIntegrationRequest = UpdateIntegrationRequest;
|
|
12865
|
+
exports.UpdateScenarioRequest = UpdateScenarioRequest;
|
|
11833
12866
|
exports.UpstreamFlowNodeRunSchema = UpstreamFlowNodeRunSchema;
|
|
11834
12867
|
exports.UserAccessor = UserAccessor;
|
|
11835
12868
|
exports.UsersAccessor = UsersAccessor;
|