@membranehq/sdk 0.4.0 → 0.5.1
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 +16299 -1303
- package/dist/bundle.js +3980 -3701
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +78 -1
- package/dist/dts/accessors/integrations-accessors.d.ts +78 -1
- package/dist/dts/api-client.d.ts +1 -0
- package/dist/dts/client.d.ts +1 -0
- package/dist/dts/data-schema/index.d.ts +0 -1
- package/dist/dts/data-schema/types.d.ts +4 -3
- package/dist/dts/entity-repository.d.ts +88 -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/action-instances-api.d.ts +269 -8
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +529 -10
- package/dist/dts/workspace-elements/api/actions-api.d.ts +1010 -45
- package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +203 -8
- package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +49 -3
- package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +376 -0
- package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +293 -8
- package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +88 -3
- package/dist/dts/workspace-elements/api/connections-api.d.ts +993 -42
- package/dist/dts/workspace-elements/api/customers-api.d.ts +92 -16
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +541 -12
- package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +43 -2
- package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +1590 -12
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +1113 -78
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +696 -19
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +702 -19
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +559 -10
- package/dist/dts/workspace-elements/api/external-events-api.d.ts +582 -6
- package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +2786 -14
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +885 -7
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +1652 -47
- package/dist/dts/workspace-elements/api/flows-api.d.ts +3202 -52
- package/dist/dts/workspace-elements/api/index.d.ts +1 -1
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +339 -26
- package/dist/dts/workspace-elements/api/scenarios-api.d.ts +523 -35
- package/dist/dts/workspace-elements/api/screens-api.d.ts +35 -15
- package/dist/dts/workspace-elements/base/action-instances/types.d.ts +78 -15
- package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +37 -12
- package/dist/dts/workspace-elements/base/actions/types.d.ts +78 -18
- package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +59 -7
- package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +49 -7
- package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +92 -9
- package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +84 -7
- package/dist/dts/workspace-elements/base/connections/types.d.ts +82 -20
- package/dist/dts/workspace-elements/base/connectors/types.d.ts +14 -2
- package/dist/dts/workspace-elements/base/customers/index.d.ts +32 -6
- package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +93 -92
- package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +78 -11
- package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +43 -4
- package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +1048 -19
- package/dist/dts/workspace-elements/base/data-sources/types.d.ts +97 -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 +197 -24
- 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 +92 -16
- package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +105 -14
- package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +43 -43
- package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +170 -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 +127 -19
- package/dist/dts/workspace-elements/base/flows/types.d.ts +234 -26
- package/dist/dts/workspace-elements/base/integrations/types.d.ts +988 -25
- package/dist/dts/workspace-elements/base/scenarios/types.d.ts +740 -23
- package/dist/dts/workspace-elements/base/screens/types.d.ts +48 -6
- package/dist/dts/workspace-elements/types.d.ts +25 -3
- package/dist/dts/workspaces/types.d.ts +4 -3
- package/dist/index.d.ts +26481 -3080
- package/dist/index.js +1717 -535
- package/dist/index.js.map +1 -1
- package/dist/index.module.d.mts +26481 -3080
- package/dist/index.module.mjs +1550 -502
- package/dist/index.module.mjs.map +1 -1
- package/package.json +3 -2
- package/dist/dts/data-schema/schemas.d.ts +0 -4
- package/dist/dts/workspace-elements/api/app-events-api.d.ts +0 -17
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;
|
|
@@ -1310,19 +1310,19 @@ function createSchemaForObject(obj) {
|
|
|
1310
1310
|
return schema;
|
|
1311
1311
|
}
|
|
1312
1312
|
|
|
1313
|
-
const
|
|
1313
|
+
const DataSchema = zod.z.lazy(() => zod.z.object({
|
|
1314
1314
|
title: zod.z.string().optional(),
|
|
1315
1315
|
description: zod.z.string().optional(),
|
|
1316
1316
|
type: zod.z.union([zod.z.string(), zod.z.array(zod.z.string())]).optional(),
|
|
1317
1317
|
format: zod.z.string().optional(),
|
|
1318
|
-
properties: zod.z.record(
|
|
1319
|
-
items:
|
|
1320
|
-
additionalProperties: zod.z.union([zod.z.boolean(),
|
|
1318
|
+
properties: zod.z.record(DataSchema).optional(),
|
|
1319
|
+
items: DataSchema.optional(),
|
|
1320
|
+
additionalProperties: zod.z.union([zod.z.boolean(), DataSchema]).optional(),
|
|
1321
1321
|
enum: zod.z.array(zod.z.string()).optional(),
|
|
1322
1322
|
referenceRecords: zod.z.array(zod.z.any()).optional(),
|
|
1323
1323
|
referenceCollection: zod.z
|
|
1324
1324
|
.object({
|
|
1325
|
-
key: zod.z.any(),
|
|
1325
|
+
key: zod.z.any().optional(),
|
|
1326
1326
|
parameters: zod.z.record(zod.z.any()).optional(),
|
|
1327
1327
|
})
|
|
1328
1328
|
.optional(),
|
|
@@ -1339,7 +1339,7 @@ const DataSchemaSchema = zod.z.lazy(() => zod.z.object({
|
|
|
1339
1339
|
readOnly: zod.z.boolean().optional(),
|
|
1340
1340
|
writeOnly: zod.z.boolean().optional(),
|
|
1341
1341
|
examples: zod.z.array(zod.z.any()).optional(),
|
|
1342
|
-
anyOf: zod.z.array(
|
|
1342
|
+
anyOf: zod.z.array(DataSchema).optional(),
|
|
1343
1343
|
isImplied: zod.z.boolean().optional(),
|
|
1344
1344
|
isSensitive: zod.z.boolean().optional(),
|
|
1345
1345
|
referenceCollectionPath: zod.z.string().optional(),
|
|
@@ -3363,12 +3363,118 @@ function getFormula(value) {
|
|
|
3363
3363
|
return undefined;
|
|
3364
3364
|
}
|
|
3365
3365
|
|
|
3366
|
+
exports.ConfigurationState = void 0;
|
|
3367
|
+
(function (ConfigurationState) {
|
|
3368
|
+
ConfigurationState["CONFIGURED"] = "CONFIGURED";
|
|
3369
|
+
ConfigurationState["NOT_CONFIGURED"] = "NOT_CONFIGURED";
|
|
3370
|
+
})(exports.ConfigurationState || (exports.ConfigurationState = {}));
|
|
3371
|
+
exports.WorkspaceElementType = void 0;
|
|
3372
|
+
(function (WorkspaceElementType) {
|
|
3373
|
+
WorkspaceElementType["Customer"] = "customer";
|
|
3374
|
+
WorkspaceElementType["Connector"] = "connector";
|
|
3375
|
+
WorkspaceElementType["Integration"] = "integration";
|
|
3376
|
+
WorkspaceElementType["Flow"] = "flow";
|
|
3377
|
+
WorkspaceElementType["FlowInstance"] = "flow-instance";
|
|
3378
|
+
WorkspaceElementType["FlowRun"] = "flow-run";
|
|
3379
|
+
WorkspaceElementType["Action"] = "action";
|
|
3380
|
+
WorkspaceElementType["Scenario"] = "scenario";
|
|
3381
|
+
WorkspaceElementType["ActionInstance"] = "action-instance";
|
|
3382
|
+
WorkspaceElementType["Connection"] = "connection";
|
|
3383
|
+
WorkspaceElementType["FieldMapping"] = "field-mapping";
|
|
3384
|
+
WorkspaceElementType["FieldMappingInstance"] = "field-mapping-instance";
|
|
3385
|
+
WorkspaceElementType["DataSource"] = "data-source";
|
|
3386
|
+
WorkspaceElementType["DataSourceInstance"] = "data-source-instance";
|
|
3387
|
+
WorkspaceElementType["DataLinkTable"] = "data-link-table";
|
|
3388
|
+
WorkspaceElementType["DataLinkTableInstance"] = "data-link-table-instance";
|
|
3389
|
+
WorkspaceElementType["AppEventType"] = "app-event-type";
|
|
3390
|
+
WorkspaceElementType["AppEventSubscription"] = "app-event-subscription";
|
|
3391
|
+
WorkspaceElementType["AppEventLogRecord"] = "app-event-log-record";
|
|
3392
|
+
WorkspaceElementType["AppDataSchema"] = "app-data-schema";
|
|
3393
|
+
WorkspaceElementType["AppDataSchemaInstance"] = "app-data-schema-instance";
|
|
3394
|
+
WorkspaceElementType["ExternalEventSubscription"] = "external-event-subscription";
|
|
3395
|
+
WorkspaceElementType["ExternalEventLogRecord"] = "external-event-log-record";
|
|
3396
|
+
WorkspaceElementType["ExternalEventPull"] = "external-event-pull";
|
|
3397
|
+
WorkspaceElementType["DataCollection"] = "data-collection";
|
|
3398
|
+
WorkspaceElementType["Screen"] = "screen";
|
|
3399
|
+
WorkspaceElementType["ActionRunLogRecord"] = "action-run-log-record";
|
|
3400
|
+
})(exports.WorkspaceElementType || (exports.WorkspaceElementType = {}));
|
|
3401
|
+
exports.WorkspaceEventType = void 0;
|
|
3402
|
+
(function (WorkspaceEventType) {
|
|
3403
|
+
WorkspaceEventType["ConnectionCreated"] = "connection.created";
|
|
3404
|
+
WorkspaceEventType["ConnectionDeleted"] = "connection.deleted";
|
|
3405
|
+
WorkspaceEventType["ConnectionDisconnected"] = "connection.disconnected";
|
|
3406
|
+
WorkspaceEventType["ConnectionReconnected"] = "connection.reconnected";
|
|
3407
|
+
WorkspaceEventType["FlowRunQueued"] = "flowRun.queued";
|
|
3408
|
+
WorkspaceEventType["FlowRunStarted"] = "flowRun.started";
|
|
3409
|
+
WorkspaceEventType["FlowRunCompleted"] = "flowRun.completed";
|
|
3410
|
+
WorkspaceEventType["FlowRunFailed"] = "flowRun.failed";
|
|
3411
|
+
WorkspaceEventType["FlowRunStopped"] = "flowRun.stopped";
|
|
3412
|
+
})(exports.WorkspaceEventType || (exports.WorkspaceEventType = {}));
|
|
3413
|
+
exports.WorkspaceElementState = void 0;
|
|
3414
|
+
(function (WorkspaceElementState) {
|
|
3415
|
+
WorkspaceElementState["CONFIGURATION_ERROR"] = "CONFIGURATION_ERROR";
|
|
3416
|
+
WorkspaceElementState["SETUP_FAILED"] = "SETUP_FAILED";
|
|
3417
|
+
WorkspaceElementState["READY"] = "READY";
|
|
3418
|
+
})(exports.WorkspaceElementState || (exports.WorkspaceElementState = {}));
|
|
3419
|
+
exports.WorkspaceElementDependencyType = void 0;
|
|
3420
|
+
(function (WorkspaceElementDependencyType) {
|
|
3421
|
+
WorkspaceElementDependencyType["Configuration"] = "CONFIGURATION";
|
|
3422
|
+
WorkspaceElementDependencyType["Parent"] = "PARENT";
|
|
3423
|
+
})(exports.WorkspaceElementDependencyType || (exports.WorkspaceElementDependencyType = {}));
|
|
3424
|
+
const BaseWorkspaceElement = zod.z.object({
|
|
3425
|
+
id: zod.z.string(),
|
|
3426
|
+
name: zod.z.string(),
|
|
3427
|
+
});
|
|
3428
|
+
const BaseMembraneInterface = BaseWorkspaceElement.extend({
|
|
3429
|
+
key: zod.z.string().optional(),
|
|
3430
|
+
uuid: zod.z.string().optional(),
|
|
3431
|
+
description: zod.z.string().optional(),
|
|
3432
|
+
state: zod.z.nativeEnum(exports.WorkspaceElementState).optional(),
|
|
3433
|
+
errors: zod.z.array(ErrorDataSchema).optional(),
|
|
3434
|
+
revision: zod.z.string().optional(),
|
|
3435
|
+
isDeactivated: zod.z.boolean().optional(),
|
|
3436
|
+
createdAt: zod.z.string().optional(),
|
|
3437
|
+
updatedAt: zod.z.string().optional(),
|
|
3438
|
+
archivedAt: zod.z.string().optional(),
|
|
3439
|
+
});
|
|
3440
|
+
|
|
3366
3441
|
exports.FieldMappingDirection = void 0;
|
|
3367
3442
|
(function (FieldMappingDirection) {
|
|
3368
3443
|
FieldMappingDirection["IMPORT"] = "import";
|
|
3369
3444
|
FieldMappingDirection["EXPORT"] = "export";
|
|
3370
3445
|
FieldMappingDirection["BOTH"] = "both";
|
|
3371
3446
|
})(exports.FieldMappingDirection || (exports.FieldMappingDirection = {}));
|
|
3447
|
+
const BaseFieldMapping = BaseMembraneInterface.extend({
|
|
3448
|
+
revision: zod.z.string(),
|
|
3449
|
+
publishedRevision: zod.z.string().optional(),
|
|
3450
|
+
universalFieldMappingId: zod.z.string().optional(),
|
|
3451
|
+
universalFieldMappingRevision: zod.z.string().optional(),
|
|
3452
|
+
integrationId: zod.z.string().optional(),
|
|
3453
|
+
dataSourceId: zod.z.string(),
|
|
3454
|
+
dataSourceKey: zod.z.string(),
|
|
3455
|
+
appSchema: DataSchema,
|
|
3456
|
+
direction: zod.z.nativeEnum(exports.FieldMappingDirection),
|
|
3457
|
+
defaultImportValue: zod.z.any().optional(),
|
|
3458
|
+
defaultExportValue: zod.z.any().optional(),
|
|
3459
|
+
importValue: zod.z.any().optional(),
|
|
3460
|
+
exportValue: zod.z.any().optional(),
|
|
3461
|
+
frozenImportFields: zod.z.any().optional(),
|
|
3462
|
+
frozenExportFields: zod.z.any().optional(),
|
|
3463
|
+
frozenUnifiedExportFields: zod.z.any().optional(),
|
|
3464
|
+
archivedAt: zod.z.string().optional(),
|
|
3465
|
+
customized: zod.z.boolean().optional(),
|
|
3466
|
+
});
|
|
3467
|
+
const FieldMappingUnitConfig = zod.z.object({
|
|
3468
|
+
key: zod.z.string().optional(),
|
|
3469
|
+
input: zod.z.any().optional(),
|
|
3470
|
+
includeRawFields: zod.z.any().optional(),
|
|
3471
|
+
importValue: zod.z.any().optional(),
|
|
3472
|
+
exportValue: zod.z.any().optional(),
|
|
3473
|
+
default: zod.z.any().optional(),
|
|
3474
|
+
defaultUnifiedValue: zod.z.any().optional(),
|
|
3475
|
+
defaultValue: zod.z.any().optional(),
|
|
3476
|
+
appSchema: DataSchema.optional(),
|
|
3477
|
+
});
|
|
3372
3478
|
|
|
3373
3479
|
function mergeWithFormulas(a, b) {
|
|
3374
3480
|
if (Array.isArray(a) && Array.isArray(b)) {
|
|
@@ -3497,6 +3603,51 @@ const ACTIONS = {
|
|
|
3497
3603
|
},
|
|
3498
3604
|
};
|
|
3499
3605
|
|
|
3606
|
+
const BaseAction = BaseMembraneInterface.extend({
|
|
3607
|
+
integrationId: zod.z.string().optional(),
|
|
3608
|
+
parentId: zod.z.string().optional(),
|
|
3609
|
+
parentRevision: zod.z.string().optional(),
|
|
3610
|
+
isCustomized: zod.z.boolean().optional(),
|
|
3611
|
+
type: zod.z.nativeEnum(exports.ActionType),
|
|
3612
|
+
inputSchema: DataSchema.optional(),
|
|
3613
|
+
config: zod.z.any().optional(),
|
|
3614
|
+
outputMapping: zod.z.any().optional(),
|
|
3615
|
+
customOutputSchema: DataSchema.optional(),
|
|
3616
|
+
defaultOutputSchema: DataSchema.optional(),
|
|
3617
|
+
transformedOutputSchema: DataSchema.optional(),
|
|
3618
|
+
outputSchema: DataSchema.optional(),
|
|
3619
|
+
dependencies: zod.z.array(zod.z.any()).optional(),
|
|
3620
|
+
});
|
|
3621
|
+
|
|
3622
|
+
const ConnectionRequest = zod.z.object({
|
|
3623
|
+
path: zod.z.any(),
|
|
3624
|
+
method: zod.z.enum(['GET', 'POST', 'PUT', 'PATCH', 'DELETE']).optional(),
|
|
3625
|
+
pathParameters: zod.z.record(zod.z.string()).optional(),
|
|
3626
|
+
headers: zod.z.record(zod.z.string()).optional(),
|
|
3627
|
+
query: zod.z.record(zod.z.string()).optional(),
|
|
3628
|
+
data: zod.z.any().optional(),
|
|
3629
|
+
});
|
|
3630
|
+
const BaseConnection = BaseWorkspaceElement.extend({
|
|
3631
|
+
name: zod.z.string(),
|
|
3632
|
+
userId: zod.z.string(),
|
|
3633
|
+
isTest: zod.z.boolean().optional(),
|
|
3634
|
+
disconnected: zod.z.boolean().optional(),
|
|
3635
|
+
isDefunct: zod.z.boolean().optional(),
|
|
3636
|
+
error: ErrorDataSchema.optional(),
|
|
3637
|
+
integrationId: zod.z.string(),
|
|
3638
|
+
credentials: zod.z.unknown().optional(),
|
|
3639
|
+
parameters: zod.z.unknown().optional(),
|
|
3640
|
+
connectorParameters: zod.z.unknown().optional(),
|
|
3641
|
+
createdAt: zod.z.string(),
|
|
3642
|
+
updatedAt: zod.z.string(),
|
|
3643
|
+
lastActiveAt: zod.z.string().optional(),
|
|
3644
|
+
nextCredentialsRefreshAt: zod.z.string().optional(),
|
|
3645
|
+
archivedAt: zod.z.string().optional(),
|
|
3646
|
+
isDeactivated: zod.z.boolean().optional(),
|
|
3647
|
+
state: zod.z.nativeEnum(exports.WorkspaceElementState).optional(),
|
|
3648
|
+
errors: zod.z.array(ErrorDataSchema).optional(),
|
|
3649
|
+
meta: zod.z.record(zod.z.any()).optional(),
|
|
3650
|
+
});
|
|
3500
3651
|
class ConnectionSpec {
|
|
3501
3652
|
constructor(opts) {
|
|
3502
3653
|
Object.assign(this, opts);
|
|
@@ -3820,6 +3971,12 @@ exports.ConnectorStatus = void 0;
|
|
|
3820
3971
|
ConnectorStatus["beta"] = "beta";
|
|
3821
3972
|
ConnectorStatus["planned"] = "planned";
|
|
3822
3973
|
})(exports.ConnectorStatus || (exports.ConnectorStatus = {}));
|
|
3974
|
+
const MinimalConnector = zod.z.object({
|
|
3975
|
+
id: zod.z.string(),
|
|
3976
|
+
key: zod.z.string(),
|
|
3977
|
+
name: zod.z.string(),
|
|
3978
|
+
logoUri: zod.z.string(),
|
|
3979
|
+
});
|
|
3823
3980
|
|
|
3824
3981
|
const DataRecordSchema = zod.z.object({
|
|
3825
3982
|
id: zod.z.string(),
|
|
@@ -7285,7 +7442,7 @@ function getWritableFieldsSchema(spec) {
|
|
|
7285
7442
|
return mergeSchemas([getDataCollectionCreateFields(spec), getDataCollectionUpdateFields(spec)]);
|
|
7286
7443
|
}
|
|
7287
7444
|
function getReferenceCollectionPointerForSchema(schema) {
|
|
7288
|
-
if (schema === null || schema === void 0 ? void 0 : schema.referenceCollection) {
|
|
7445
|
+
if ((schema === null || schema === void 0 ? void 0 : schema.referenceCollection) && schema.referenceCollection.key) {
|
|
7289
7446
|
return schema.referenceCollection;
|
|
7290
7447
|
}
|
|
7291
7448
|
else if (schema === null || schema === void 0 ? void 0 : schema.referenceCollectionPath) {
|
|
@@ -7880,8 +8037,8 @@ const DataCollectionRecordFromFieldsMethod = {
|
|
|
7880
8037
|
getInputSchema: ({ collectionSpec }) => ({
|
|
7881
8038
|
type: 'object',
|
|
7882
8039
|
properties: {
|
|
7883
|
-
|
|
7884
|
-
|
|
8040
|
+
...((collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) && { fields: collectionSpec.fieldsSchema }),
|
|
8041
|
+
...((collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.parametersSchema) && { parameters: collectionSpec.parametersSchema }),
|
|
7885
8042
|
},
|
|
7886
8043
|
}),
|
|
7887
8044
|
getOutputSchema: () => DATA_RECORD_SCHEMA,
|
|
@@ -7920,7 +8077,7 @@ const DataCollectionFieldsFromApiMethod = {
|
|
|
7920
8077
|
},
|
|
7921
8078
|
};
|
|
7922
8079
|
},
|
|
7923
|
-
getOutputSchema: ({ collectionSpec }) => collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema,
|
|
8080
|
+
getOutputSchema: ({ collectionSpec }) => (collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) || { type: 'object' },
|
|
7924
8081
|
supportedImplementationTypes: [exports.ConnectorMethodImplementationType.javascript],
|
|
7925
8082
|
};
|
|
7926
8083
|
const DataCollectionFieldsToApiMethod = {
|
|
@@ -7929,7 +8086,7 @@ const DataCollectionFieldsToApiMethod = {
|
|
|
7929
8086
|
getInputSchema: ({ collectionSpec }) => ({
|
|
7930
8087
|
type: 'object',
|
|
7931
8088
|
properties: {
|
|
7932
|
-
|
|
8089
|
+
...((collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) && { fields: collectionSpec.fieldsSchema }),
|
|
7933
8090
|
},
|
|
7934
8091
|
}),
|
|
7935
8092
|
getOutputSchema: () => {
|
|
@@ -7971,134 +8128,134 @@ const DataLocationTypeCollection = {
|
|
|
7971
8128
|
};
|
|
7972
8129
|
const ConnectorDataCollectionMethodKeys = Object.keys(DataLocationTypeCollection.methods);
|
|
7973
8130
|
|
|
7974
|
-
const
|
|
8131
|
+
const ApiRequestSpec = zod.z.object({
|
|
7975
8132
|
path: zod.z.unknown(),
|
|
7976
8133
|
method: zod.z.unknown(),
|
|
7977
8134
|
});
|
|
7978
|
-
const
|
|
7979
|
-
apiRequests: zod.z.array(
|
|
8135
|
+
const DataCollectionMethodSpec = zod.z.object({
|
|
8136
|
+
apiRequests: zod.z.array(ApiRequestSpec).optional(),
|
|
7980
8137
|
});
|
|
7981
|
-
const
|
|
8138
|
+
const DataCollectionListSpec = DataCollectionMethodSpec.extend({
|
|
7982
8139
|
filterFields: zod.z.array(zod.z.string()).optional(),
|
|
7983
8140
|
});
|
|
7984
|
-
const
|
|
7985
|
-
const
|
|
8141
|
+
const DataCollectionSearchSpec = DataCollectionMethodSpec.extend({});
|
|
8142
|
+
const DataCollectionMatchSpec = DataCollectionMethodSpec.extend({
|
|
7986
8143
|
fields: zod.z.array(zod.z.string()).optional(),
|
|
7987
8144
|
});
|
|
7988
|
-
const
|
|
7989
|
-
const
|
|
8145
|
+
const DataCollectionFindByIdSpec = DataCollectionMethodSpec.extend({});
|
|
8146
|
+
const DataCollectionCreateSpec = DataCollectionMethodSpec.extend({
|
|
7990
8147
|
fields: zod.z.array(zod.z.string()).optional(),
|
|
7991
8148
|
requiredFields: zod.z.array(zod.z.string()).optional(),
|
|
7992
8149
|
excludedFields: zod.z.array(zod.z.string()).optional(),
|
|
7993
8150
|
});
|
|
7994
|
-
const
|
|
8151
|
+
const DataCollectionUpdateSpec = DataCollectionMethodSpec.extend({
|
|
7995
8152
|
fields: zod.z.array(zod.z.string()).optional(),
|
|
7996
8153
|
excludedFields: zod.z.array(zod.z.string()).optional(),
|
|
7997
8154
|
});
|
|
7998
|
-
const
|
|
7999
|
-
const
|
|
8155
|
+
const DataCollectionDeleteSpec = DataCollectionMethodSpec.extend({});
|
|
8156
|
+
const DataCollectionFindSpec = DataCollectionMethodSpec.extend({
|
|
8000
8157
|
queryFields: zod.z.array(zod.z.string()).optional(),
|
|
8001
8158
|
});
|
|
8002
|
-
const
|
|
8159
|
+
const DataCollectionEventTypeSpec = zod.z.object({
|
|
8003
8160
|
type: zod.z.enum(['push', 'pull']),
|
|
8004
8161
|
isFullScan: zod.z.boolean().optional(),
|
|
8005
8162
|
isIdOnly: zod.z.boolean().optional(),
|
|
8006
8163
|
});
|
|
8007
|
-
const
|
|
8164
|
+
const DataCollectionEventsSpec = zod.z
|
|
8008
8165
|
.object({
|
|
8009
|
-
created:
|
|
8010
|
-
updated:
|
|
8011
|
-
deleted:
|
|
8012
|
-
all:
|
|
8166
|
+
created: DataCollectionEventTypeSpec.optional(),
|
|
8167
|
+
updated: DataCollectionEventTypeSpec.optional(),
|
|
8168
|
+
deleted: DataCollectionEventTypeSpec.optional(),
|
|
8169
|
+
all: DataCollectionEventTypeSpec.optional(),
|
|
8013
8170
|
})
|
|
8014
|
-
.catchall(
|
|
8015
|
-
const
|
|
8171
|
+
.catchall(DataCollectionEventTypeSpec);
|
|
8172
|
+
const DataCollectionUdmSpec = zod.z.object({
|
|
8016
8173
|
fields: zod.z.array(zod.z.string()).optional(),
|
|
8017
8174
|
extract: zod.z.record(zod.z.any()).optional(),
|
|
8018
8175
|
parse: zod.z.record(zod.z.any()).optional(),
|
|
8019
8176
|
});
|
|
8020
|
-
const
|
|
8021
|
-
const
|
|
8177
|
+
const DataCollectionUdmsSpec = zod.z.record(DataCollectionUdmSpec);
|
|
8178
|
+
const DataCollectionSpec = zod.z.object({
|
|
8022
8179
|
type: zod.z.literal('collection'),
|
|
8023
8180
|
key: zod.z.string().optional(),
|
|
8024
8181
|
name: zod.z.string(),
|
|
8025
|
-
parametersSchema:
|
|
8026
|
-
fieldsSchema:
|
|
8027
|
-
list:
|
|
8028
|
-
search:
|
|
8029
|
-
match:
|
|
8030
|
-
findById:
|
|
8031
|
-
create:
|
|
8032
|
-
update:
|
|
8033
|
-
delete:
|
|
8034
|
-
events:
|
|
8182
|
+
parametersSchema: DataSchema.optional(),
|
|
8183
|
+
fieldsSchema: DataSchema.optional(),
|
|
8184
|
+
list: DataCollectionListSpec.optional(),
|
|
8185
|
+
search: DataCollectionSearchSpec.optional(),
|
|
8186
|
+
match: DataCollectionMatchSpec.optional(),
|
|
8187
|
+
findById: DataCollectionFindByIdSpec.optional(),
|
|
8188
|
+
create: DataCollectionCreateSpec.optional(),
|
|
8189
|
+
update: DataCollectionUpdateSpec.optional(),
|
|
8190
|
+
delete: DataCollectionDeleteSpec.optional(),
|
|
8191
|
+
events: DataCollectionEventsSpec.optional(),
|
|
8035
8192
|
customFields: zod.z.boolean().optional(),
|
|
8036
|
-
udm:
|
|
8037
|
-
find:
|
|
8193
|
+
udm: DataCollectionUdmsSpec.optional(),
|
|
8194
|
+
find: DataCollectionFindSpec.optional(),
|
|
8038
8195
|
});
|
|
8039
|
-
const
|
|
8196
|
+
const DataCollectionMethodRequest = zod.z.object({
|
|
8040
8197
|
parameters: zod.z.record(zod.z.any()).optional(),
|
|
8041
8198
|
});
|
|
8042
|
-
const
|
|
8199
|
+
const DataCollectionFindRequest = zod.z.object({
|
|
8043
8200
|
query: zod.z.any().optional(),
|
|
8044
8201
|
cursor: zod.z.string().optional(),
|
|
8045
8202
|
});
|
|
8046
|
-
const
|
|
8203
|
+
const DataCollectionFindResponse = zod.z.object({
|
|
8047
8204
|
records: zod.z.array(DataRecordSchema),
|
|
8048
8205
|
cursor: zod.z.string().optional(),
|
|
8049
8206
|
});
|
|
8050
|
-
const
|
|
8207
|
+
const DataCollectionListRequest = DataCollectionMethodRequest.extend({
|
|
8051
8208
|
filter: zod.z.any().optional(),
|
|
8052
8209
|
unifiedFilter: zod.z.any().optional(),
|
|
8053
8210
|
cursor: zod.z.string().optional(),
|
|
8054
8211
|
});
|
|
8055
|
-
const
|
|
8212
|
+
const DataCollectionListResponseDrilldown = zod.z.object({
|
|
8056
8213
|
parameters: zod.z.record(zod.z.any()).optional(),
|
|
8057
8214
|
filter: zod.z.record(zod.z.any()).optional(),
|
|
8058
8215
|
});
|
|
8059
|
-
const
|
|
8216
|
+
const DataCollectionListResponse = zod.z.object({
|
|
8060
8217
|
records: zod.z.array(DataRecordSchema),
|
|
8061
|
-
drilldowns: zod.z.array(
|
|
8218
|
+
drilldowns: zod.z.array(DataCollectionListResponseDrilldown).optional(),
|
|
8062
8219
|
cursor: zod.z.string().optional(),
|
|
8063
8220
|
});
|
|
8064
|
-
const
|
|
8221
|
+
const DataCollectionSearchRequest = DataCollectionMethodRequest.extend({
|
|
8065
8222
|
query: zod.z.string(),
|
|
8066
8223
|
cursor: zod.z.string().optional(),
|
|
8067
8224
|
});
|
|
8068
|
-
const
|
|
8225
|
+
const DataCollectionSearchResponse = zod.z.object({
|
|
8069
8226
|
records: zod.z.array(DataRecordSchema),
|
|
8070
8227
|
cursor: zod.z.string().optional(),
|
|
8071
8228
|
});
|
|
8072
|
-
const
|
|
8229
|
+
const DataCollectionFindByIdRequest = DataCollectionMethodRequest.extend({
|
|
8073
8230
|
id: zod.z.string(),
|
|
8074
8231
|
udm: zod.z.string().optional(),
|
|
8075
8232
|
});
|
|
8076
|
-
const
|
|
8233
|
+
const DataCollectionFindByIdResponse = zod.z.object({
|
|
8077
8234
|
record: DataRecordSchema,
|
|
8078
8235
|
});
|
|
8079
|
-
const
|
|
8236
|
+
const DataCollectionMatchRequest = DataCollectionMethodRequest.extend({
|
|
8080
8237
|
query: zod.z.record(zod.z.any()),
|
|
8081
8238
|
});
|
|
8082
|
-
const
|
|
8239
|
+
const DataCollectionMatchResponse = zod.z.object({
|
|
8083
8240
|
record: DataRecordSchema.optional(),
|
|
8084
8241
|
});
|
|
8085
|
-
const
|
|
8242
|
+
const DataCollectionCreateRequest = DataCollectionMethodRequest.extend({
|
|
8086
8243
|
fields: zod.z.record(zod.z.any()),
|
|
8087
8244
|
});
|
|
8088
|
-
const
|
|
8245
|
+
const DataCollectionCreateResponse = zod.z.object({
|
|
8089
8246
|
id: zod.z.string(),
|
|
8090
8247
|
});
|
|
8091
|
-
const
|
|
8248
|
+
const DataCollectionUpdateRequest = DataCollectionMethodRequest.extend({
|
|
8092
8249
|
id: zod.z.string(),
|
|
8093
8250
|
fields: zod.z.record(zod.z.any()),
|
|
8094
8251
|
});
|
|
8095
|
-
const
|
|
8252
|
+
const DataCollectionUpdateResponse = zod.z.object({
|
|
8096
8253
|
id: zod.z.string(),
|
|
8097
8254
|
});
|
|
8098
|
-
const
|
|
8255
|
+
const DataCollectionDeleteRequest = DataCollectionMethodRequest.extend({
|
|
8099
8256
|
id: zod.z.string(),
|
|
8100
8257
|
});
|
|
8101
|
-
const
|
|
8258
|
+
const DataCollectionDeleteResponse = zod.z.object({});
|
|
8102
8259
|
const ConnectorDataLocationTypes = {
|
|
8103
8260
|
collection: DataLocationTypeCollection,
|
|
8104
8261
|
};
|
|
@@ -8166,6 +8323,56 @@ const DEFAULT_FULL_SYNC_INTERVAL_SECONDS = 60 * 60 * 3;
|
|
|
8166
8323
|
const MIN_FULL_SYNC_INTERVAL_SECONDS = 1 * 60;
|
|
8167
8324
|
const MIN_PULL_UPDATES_INTERVAL_SECONDS = 1 * 60;
|
|
8168
8325
|
|
|
8326
|
+
const DataSourceUnitConfig = zod.z.object({
|
|
8327
|
+
key: zod.z.string().optional(),
|
|
8328
|
+
collectionKey: zod.z.any().optional(),
|
|
8329
|
+
collectionParameters: zod.z.any().optional(),
|
|
8330
|
+
udm: zod.z.any().optional(),
|
|
8331
|
+
path: zod.z.string().optional(),
|
|
8332
|
+
pullUpdatesIntervalSeconds: zod.z.number().optional(),
|
|
8333
|
+
fullSyncIntervalSeconds: zod.z.number().optional(),
|
|
8334
|
+
});
|
|
8335
|
+
const BaseDataSource = BaseMembraneInterface.extend({
|
|
8336
|
+
revision: zod.z.string(),
|
|
8337
|
+
publishedRevision: zod.z.string().optional(),
|
|
8338
|
+
integrationId: zod.z.string().optional(),
|
|
8339
|
+
universalDataSourceId: zod.z.string().optional(),
|
|
8340
|
+
universalDataSourceRevision: zod.z.string().optional(),
|
|
8341
|
+
udm: zod.z.string().optional(),
|
|
8342
|
+
pullUpdatesIntervalSeconds: zod.z.number().optional(),
|
|
8343
|
+
fullSyncIntervalSeconds: zod.z.number().optional(),
|
|
8344
|
+
collectionKey: zod.z.string().optional(),
|
|
8345
|
+
collectionParameters: zod.z.any().optional(),
|
|
8346
|
+
archivedAt: zod.z.string().optional(),
|
|
8347
|
+
createdAt: zod.z.string().optional(),
|
|
8348
|
+
updatedAt: zod.z.string().optional(),
|
|
8349
|
+
customized: zod.z.boolean().optional(),
|
|
8350
|
+
defaultPath: zod.z.string().optional(),
|
|
8351
|
+
});
|
|
8352
|
+
|
|
8353
|
+
const BaseDataSourceInstance = BaseMembraneInterface.extend({
|
|
8354
|
+
userId: zod.z.string(),
|
|
8355
|
+
revision: zod.z.string(),
|
|
8356
|
+
dataSourceRevision: zod.z.string().optional(),
|
|
8357
|
+
dataSourceId: zod.z.string().optional(),
|
|
8358
|
+
universalDataSourceId: zod.z.string().optional(),
|
|
8359
|
+
udm: zod.z.string().optional(),
|
|
8360
|
+
connectionId: zod.z.string(),
|
|
8361
|
+
integrationId: zod.z.string(),
|
|
8362
|
+
instanceKey: zod.z.string().optional(),
|
|
8363
|
+
collectionKey: zod.z.string().optional(),
|
|
8364
|
+
collectionParameters: zod.z.any().optional(),
|
|
8365
|
+
defaultCollectionKey: zod.z.string().optional(),
|
|
8366
|
+
defaultCollectionParameters: zod.z.any().optional(),
|
|
8367
|
+
collectionSpec: DataCollectionSpec.optional(),
|
|
8368
|
+
isCustomized: zod.z.boolean().optional(),
|
|
8369
|
+
errors: zod.z.array(ErrorDataSchema).optional(),
|
|
8370
|
+
pullUpdatesIntervalSeconds: zod.z.number().optional(),
|
|
8371
|
+
fullSyncIntervalSeconds: zod.z.number().optional(),
|
|
8372
|
+
path: zod.z.string().optional(),
|
|
8373
|
+
defaultPath: zod.z.string().optional(),
|
|
8374
|
+
});
|
|
8375
|
+
|
|
8169
8376
|
exports.ExternalEventType = void 0;
|
|
8170
8377
|
(function (ExternalEventType) {
|
|
8171
8378
|
ExternalEventType["DataRecordCreated"] = "data-record-created";
|
|
@@ -8178,6 +8385,15 @@ exports.IncomingWebhooksState = void 0;
|
|
|
8178
8385
|
IncomingWebhooksState["SUCCESS"] = "success";
|
|
8179
8386
|
IncomingWebhooksState["ERROR"] = "error";
|
|
8180
8387
|
})(exports.IncomingWebhooksState || (exports.IncomingWebhooksState = {}));
|
|
8388
|
+
const ExternalEventUnitConfig = zod.z.object({
|
|
8389
|
+
type: zod.z.nativeEnum(exports.ExternalEventType),
|
|
8390
|
+
dataSource: DataSourceUnitConfig.optional(),
|
|
8391
|
+
eventKey: zod.z.string().optional(),
|
|
8392
|
+
eventParameters: zod.z.any().optional(),
|
|
8393
|
+
});
|
|
8394
|
+
const BaseExternalEvent = zod.z.object({
|
|
8395
|
+
config: ExternalEventUnitConfig.optional(),
|
|
8396
|
+
});
|
|
8181
8397
|
|
|
8182
8398
|
function externalEventTypeToDataCollectionEventType(type) {
|
|
8183
8399
|
switch (type) {
|
|
@@ -8211,6 +8427,49 @@ exports.FlowRunNodeState = void 0;
|
|
|
8211
8427
|
FlowRunNodeState["STOPPED"] = "stopped";
|
|
8212
8428
|
FlowRunNodeState["FAILED"] = "failed";
|
|
8213
8429
|
})(exports.FlowRunNodeState || (exports.FlowRunNodeState = {}));
|
|
8430
|
+
exports.FlowRunState = void 0;
|
|
8431
|
+
(function (FlowRunState) {
|
|
8432
|
+
FlowRunState["QUEUED"] = "queued";
|
|
8433
|
+
FlowRunState["RUNNING"] = "running";
|
|
8434
|
+
FlowRunState["COMPLETED"] = "completed";
|
|
8435
|
+
FlowRunState["STOPPED"] = "stopped";
|
|
8436
|
+
FlowRunState["FAILED"] = "failed";
|
|
8437
|
+
})(exports.FlowRunState || (exports.FlowRunState = {}));
|
|
8438
|
+
exports.FlowRunLaunchedByTrigger = void 0;
|
|
8439
|
+
(function (FlowRunLaunchedByTrigger) {
|
|
8440
|
+
FlowRunLaunchedByTrigger["ApiTrigger"] = "api-trigger";
|
|
8441
|
+
FlowRunLaunchedByTrigger["ScheduleTrigger"] = "schedule-trigger";
|
|
8442
|
+
FlowRunLaunchedByTrigger["AppEventTrigger"] = "app-event-trigger";
|
|
8443
|
+
FlowRunLaunchedByTrigger["DataSourceTrigger"] = "data-source-trigger";
|
|
8444
|
+
FlowRunLaunchedByTrigger["ExternalEvent"] = "external-event";
|
|
8445
|
+
})(exports.FlowRunLaunchedByTrigger || (exports.FlowRunLaunchedByTrigger = {}));
|
|
8446
|
+
const FlowRunLaunchedBy = zod.z.object({
|
|
8447
|
+
type: zod.z.nativeEnum(exports.FlowRunLaunchedByTrigger),
|
|
8448
|
+
ids: zod.z.array(zod.z.string()).optional(),
|
|
8449
|
+
});
|
|
8450
|
+
const FlowRunNode = zod.z.object({
|
|
8451
|
+
state: zod.z.nativeEnum(exports.FlowRunNodeState),
|
|
8452
|
+
runs: zod.z.number().optional(),
|
|
8453
|
+
erroredRuns: zod.z.number().optional(),
|
|
8454
|
+
outputs: zod.z.number().optional(),
|
|
8455
|
+
});
|
|
8456
|
+
const BaseFlowRun = zod.z.object({
|
|
8457
|
+
id: zod.z.string(),
|
|
8458
|
+
name: zod.z.string().optional(),
|
|
8459
|
+
flowInstanceId: zod.z.string(),
|
|
8460
|
+
universalFlowId: zod.z.string().optional(),
|
|
8461
|
+
connectionId: zod.z.string().optional(),
|
|
8462
|
+
integrationId: zod.z.string().optional(),
|
|
8463
|
+
startNodeKey: zod.z.string(),
|
|
8464
|
+
userId: zod.z.string(),
|
|
8465
|
+
input: zod.z.any().optional(),
|
|
8466
|
+
state: zod.z.nativeEnum(exports.FlowRunState),
|
|
8467
|
+
startTime: zod.z.string(),
|
|
8468
|
+
endTime: zod.z.string().optional(),
|
|
8469
|
+
errors: zod.z.array(ErrorDataSchema).optional(),
|
|
8470
|
+
nodes: zod.z.record(FlowRunNode).optional(),
|
|
8471
|
+
launchedBy: FlowRunLaunchedBy.optional(),
|
|
8472
|
+
});
|
|
8214
8473
|
|
|
8215
8474
|
exports.FlowNodeRunStatus = void 0;
|
|
8216
8475
|
(function (FlowNodeRunStatus) {
|
|
@@ -8535,11 +8794,216 @@ const FLOW_NODE_SPECS = {
|
|
|
8535
8794
|
[exports.FlowNodeType.RunAction]: RunAction,
|
|
8536
8795
|
};
|
|
8537
8796
|
|
|
8797
|
+
const FlowNodeLink = zod.z.object({
|
|
8798
|
+
key: zod.z.string().optional(),
|
|
8799
|
+
filter: zod.z.any().optional(),
|
|
8800
|
+
name: zod.z.string().optional(),
|
|
8801
|
+
});
|
|
8802
|
+
const FlowNode = zod.z.object({
|
|
8803
|
+
type: zod.z.string().optional(),
|
|
8804
|
+
version: zod.z.number().optional(),
|
|
8805
|
+
name: zod.z.string().optional(),
|
|
8806
|
+
description: zod.z.string().optional(),
|
|
8807
|
+
config: zod.z.any().optional(),
|
|
8808
|
+
concurrency: zod.z.number().optional(),
|
|
8809
|
+
onError: zod.z.enum(['stop', 'continue']).optional(),
|
|
8810
|
+
ui: zod.z.any().optional(),
|
|
8811
|
+
inputSchema: zod.z.any().optional(),
|
|
8812
|
+
outputSchema: zod.z.any().optional(),
|
|
8813
|
+
outputExample: zod.z.any().optional(),
|
|
8814
|
+
links: zod.z.array(FlowNodeLink).optional(),
|
|
8815
|
+
isCustomized: zod.z.boolean().optional(),
|
|
8816
|
+
});
|
|
8817
|
+
const BaseFlow = BaseMembraneInterface.extend({
|
|
8818
|
+
integrationId: zod.z.string().optional(),
|
|
8819
|
+
universalFlowId: zod.z.string().optional(),
|
|
8820
|
+
universalFlowRevision: zod.z.string().optional(),
|
|
8821
|
+
parametersSchema: DataSchema.optional(),
|
|
8822
|
+
nodes: zod.z.record(FlowNode).optional(),
|
|
8823
|
+
autoCreateInstances: zod.z.boolean().optional(),
|
|
8824
|
+
archivedAt: zod.z.string().optional(),
|
|
8825
|
+
revision: zod.z.string(),
|
|
8826
|
+
customized: zod.z.boolean().optional(),
|
|
8827
|
+
});
|
|
8828
|
+
|
|
8829
|
+
const IntegrationAuthUi = zod.z.object({
|
|
8830
|
+
schema: zod.z.any().optional(),
|
|
8831
|
+
helpUri: zod.z.string().optional(),
|
|
8832
|
+
});
|
|
8833
|
+
const IntegrationAuthOption = zod.z.object({
|
|
8834
|
+
key: zod.z.string(),
|
|
8835
|
+
type: zod.z.enum(CONNECTOR_AUTH_TYPES),
|
|
8836
|
+
title: zod.z.string().optional(),
|
|
8837
|
+
description: zod.z.string().optional(),
|
|
8838
|
+
ui: IntegrationAuthUi.optional(),
|
|
8839
|
+
});
|
|
8840
|
+
const BaseIntegration = BaseMembraneInterface.extend({
|
|
8841
|
+
logoUri: zod.z.string(),
|
|
8842
|
+
connectorId: zod.z.string().optional(),
|
|
8843
|
+
connectorVersion: zod.z.string().optional(),
|
|
8844
|
+
authOptions: zod.z.array(IntegrationAuthOption).optional(),
|
|
8845
|
+
oAuthCallbackUri: zod.z.string().optional(),
|
|
8846
|
+
parametersSchema: DataSchema.optional(),
|
|
8847
|
+
parameters: zod.z.any().optional(),
|
|
8848
|
+
baseUri: zod.z.string(),
|
|
8849
|
+
archivedAt: zod.z.string().optional(),
|
|
8850
|
+
hasMissingParameters: zod.z.boolean().optional(),
|
|
8851
|
+
hasDocumentation: zod.z.boolean().optional(),
|
|
8852
|
+
hasOperations: zod.z.boolean().optional(),
|
|
8853
|
+
operationsCount: zod.z.number().optional(),
|
|
8854
|
+
hasData: zod.z.boolean().optional(),
|
|
8855
|
+
dataCollectionsCount: zod.z.number().optional(),
|
|
8856
|
+
hasEvents: zod.z.boolean().optional(),
|
|
8857
|
+
eventsCount: zod.z.number().optional(),
|
|
8858
|
+
hasGlobalWebhooks: zod.z.boolean().optional(),
|
|
8859
|
+
hasUdm: zod.z.boolean().optional(),
|
|
8860
|
+
isTest: zod.z.boolean().optional(),
|
|
8861
|
+
appUuid: zod.z.string().optional(),
|
|
8862
|
+
isDeactivated: zod.z.boolean().optional(),
|
|
8863
|
+
authType: zod.z.enum(CONNECTOR_AUTH_TYPES).optional(),
|
|
8864
|
+
});
|
|
8865
|
+
const AppliedToIntegrations = (elementSchema) => zod.z.array(zod.z.object({
|
|
8866
|
+
element: elementSchema,
|
|
8867
|
+
integration: BaseIntegration,
|
|
8868
|
+
}));
|
|
8869
|
+
|
|
8870
|
+
exports.ScenarioTemplateCategory = void 0;
|
|
8871
|
+
(function (ScenarioTemplateCategory) {
|
|
8872
|
+
ScenarioTemplateCategory["DataExport"] = "data-export";
|
|
8873
|
+
ScenarioTemplateCategory["DataImport"] = "data-import";
|
|
8874
|
+
ScenarioTemplateCategory["BiDirectionalSync"] = "bi-directional-sync";
|
|
8875
|
+
ScenarioTemplateCategory["UnifiedApi"] = "unified-api";
|
|
8876
|
+
ScenarioTemplateCategory["DataEnrichment"] = "data-enrichment";
|
|
8877
|
+
})(exports.ScenarioTemplateCategory || (exports.ScenarioTemplateCategory = {}));
|
|
8878
|
+
const ScenarioToDo = zod.z.object({
|
|
8879
|
+
name: zod.z.string(),
|
|
8880
|
+
description: zod.z.string(),
|
|
8881
|
+
isComplete: zod.z.boolean(),
|
|
8882
|
+
});
|
|
8883
|
+
const ScenarioElement = zod.z.object({
|
|
8884
|
+
id: zod.z.string(),
|
|
8885
|
+
type: zod.z.string(),
|
|
8886
|
+
element: zod.z.any().optional(),
|
|
8887
|
+
});
|
|
8888
|
+
const BaseScenario = BaseMembraneInterface.extend({
|
|
8889
|
+
appId: zod.z.string(),
|
|
8890
|
+
scenarioTemplateId: zod.z.string().optional(),
|
|
8891
|
+
elements: zod.z.array(ScenarioElement).optional(),
|
|
8892
|
+
connectors: zod.z.array(MinimalConnector).optional(),
|
|
8893
|
+
todos: zod.z.array(ScenarioToDo).optional(),
|
|
8894
|
+
archivedAt: zod.z.string().optional(),
|
|
8895
|
+
});
|
|
8896
|
+
const HandyScenarioTemplateElement = zod.z.object({
|
|
8897
|
+
type: zod.z.string(),
|
|
8898
|
+
integration: zod.z.object({ key: zod.z.string(), connectorId: zod.z.string() }).optional(),
|
|
8899
|
+
integrations: zod.z.array(zod.z.object({ key: zod.z.string(), connectorId: zod.z.string() })).optional(),
|
|
8900
|
+
fields: zod.z
|
|
8901
|
+
.object({
|
|
8902
|
+
key: zod.z.string(),
|
|
8903
|
+
name: zod.z.string(),
|
|
8904
|
+
})
|
|
8905
|
+
.and(zod.z.record(zod.z.any())),
|
|
8906
|
+
});
|
|
8907
|
+
const withIntegrationKeys = (schema) => schema.and(zod.z.object({ integrationKeys: zod.z.array(zod.z.string()).optional() }));
|
|
8908
|
+
const ElementsExportFields = zod.z.object({
|
|
8909
|
+
flows: zod.z.record(withIntegrationKeys(zod.z.any())).optional(),
|
|
8910
|
+
actions: zod.z.record(withIntegrationKeys(zod.z.any())).optional(),
|
|
8911
|
+
fieldMappings: zod.z.record(withIntegrationKeys(zod.z.any())).optional(),
|
|
8912
|
+
dataSources: zod.z.record(withIntegrationKeys(zod.z.any())).optional(),
|
|
8913
|
+
dataLinkTables: zod.z.record(zod.z.any()).optional(),
|
|
8914
|
+
appEventTypes: zod.z.record(zod.z.any()).optional(),
|
|
8915
|
+
appDataSchemas: zod.z.record(zod.z.any()).optional(),
|
|
8916
|
+
});
|
|
8917
|
+
const ScenarioTemplateElements = ElementsExportFields.and(zod.z.object({
|
|
8918
|
+
integrations: zod.z.record(ElementsExportFields.and(zod.z.object({ connectorId: zod.z.string() }))).optional(),
|
|
8919
|
+
}));
|
|
8920
|
+
const ScenarioTemplate = zod.z.object({
|
|
8921
|
+
id: zod.z.string(),
|
|
8922
|
+
name: zod.z.string(),
|
|
8923
|
+
key: zod.z.string(),
|
|
8924
|
+
shortDescription: zod.z.string().optional(),
|
|
8925
|
+
description: zod.z.string().optional(),
|
|
8926
|
+
demoWorkspaceKey: zod.z.string().optional(),
|
|
8927
|
+
demoAppUri: zod.z.string().optional(),
|
|
8928
|
+
demoGithubRepo: zod.z.string().optional(),
|
|
8929
|
+
demoVideoYoutubeUri: zod.z.string().optional(),
|
|
8930
|
+
tags: zod.z.array(zod.z.nativeEnum(exports.ScenarioTemplateCategory)).optional(),
|
|
8931
|
+
elements: ScenarioTemplateElements.optional(),
|
|
8932
|
+
todos: zod.z.array(ScenarioToDo.omit({ isComplete: true })).optional(),
|
|
8933
|
+
connectors: zod.z.array(MinimalConnector).optional(),
|
|
8934
|
+
handyElements: zod.z.array(HandyScenarioTemplateElement).optional(),
|
|
8935
|
+
});
|
|
8936
|
+
|
|
8937
|
+
exports.ScreenType = void 0;
|
|
8938
|
+
(function (ScreenType) {
|
|
8939
|
+
ScreenType["Integration"] = "integration";
|
|
8940
|
+
})(exports.ScreenType || (exports.ScreenType = {}));
|
|
8941
|
+
exports.ScreenBlockType = void 0;
|
|
8942
|
+
(function (ScreenBlockType) {
|
|
8943
|
+
ScreenBlockType["Flow"] = "flow";
|
|
8944
|
+
ScreenBlockType["FieldMapping"] = "field-mapping";
|
|
8945
|
+
ScreenBlockType["DataSource"] = "data-source";
|
|
8946
|
+
ScreenBlockType["Action"] = "action";
|
|
8947
|
+
})(exports.ScreenBlockType || (exports.ScreenBlockType = {}));
|
|
8948
|
+
const ScreenBlock = zod.z
|
|
8949
|
+
.object({
|
|
8950
|
+
type: zod.z.nativeEnum(exports.ScreenBlockType),
|
|
8951
|
+
})
|
|
8952
|
+
.and(zod.z.record(zod.z.any()));
|
|
8953
|
+
const BaseScreen = BaseWorkspaceElement.extend({
|
|
8954
|
+
type: zod.z.nativeEnum(exports.ScreenType),
|
|
8955
|
+
key: zod.z.string().optional(),
|
|
8956
|
+
blocks: zod.z.array(ScreenBlock),
|
|
8957
|
+
});
|
|
8958
|
+
|
|
8959
|
+
const BaseCustomer = zod.z.object({
|
|
8960
|
+
id: zod.z.string(),
|
|
8961
|
+
name: zod.z.string(),
|
|
8962
|
+
internalId: zod.z.string(),
|
|
8963
|
+
fields: zod.z.record(zod.z.string(), zod.z.any()).optional(),
|
|
8964
|
+
credentials: zod.z.any().optional(),
|
|
8965
|
+
lastActiveAt: zod.z.string().optional(),
|
|
8966
|
+
isTest: zod.z.boolean().optional(),
|
|
8967
|
+
isBillable: zod.z.boolean().optional(),
|
|
8968
|
+
createdAt: zod.z.string().optional(),
|
|
8969
|
+
archivedAt: zod.z.string().optional(),
|
|
8970
|
+
});
|
|
8971
|
+
|
|
8972
|
+
const BaseFlowInstance = BaseMembraneInterface.extend({
|
|
8973
|
+
userId: zod.z.string(),
|
|
8974
|
+
connectionId: zod.z.string().optional(),
|
|
8975
|
+
flowId: zod.z.string().optional(),
|
|
8976
|
+
universalFlowId: zod.z.string().optional(),
|
|
8977
|
+
integrationId: zod.z.string(),
|
|
8978
|
+
instanceKey: zod.z.string().optional(),
|
|
8979
|
+
parameters: zod.z.any().optional(),
|
|
8980
|
+
parametersSchema: DataSchema.optional(),
|
|
8981
|
+
nodes: zod.z.record(zod.z.any()).optional(),
|
|
8982
|
+
enabled: zod.z.boolean(),
|
|
8983
|
+
createdAt: zod.z.string(),
|
|
8984
|
+
updatedAt: zod.z.string(),
|
|
8985
|
+
state: zod.z.nativeEnum(exports.WorkspaceElementState).optional(),
|
|
8986
|
+
outdated: zod.z.boolean().optional(),
|
|
8987
|
+
customized: zod.z
|
|
8988
|
+
.object({
|
|
8989
|
+
name: zod.z.boolean().optional(),
|
|
8990
|
+
nodes: zod.z.boolean().optional(),
|
|
8991
|
+
})
|
|
8992
|
+
.optional(),
|
|
8993
|
+
dependencies: zod.z.array(zod.z.any()).optional(),
|
|
8994
|
+
});
|
|
8538
8995
|
exports.FlowInstanceNodeState = void 0;
|
|
8539
8996
|
(function (FlowInstanceNodeState) {
|
|
8540
8997
|
FlowInstanceNodeState["SETUP_FAILED"] = "SETUP_FAILED";
|
|
8541
8998
|
FlowInstanceNodeState["READY"] = "READY";
|
|
8542
8999
|
})(exports.FlowInstanceNodeState || (exports.FlowInstanceNodeState = {}));
|
|
9000
|
+
const FlowInstanceNode = FlowNode.extend({
|
|
9001
|
+
state: zod.z.nativeEnum(exports.FlowInstanceNodeState).optional(),
|
|
9002
|
+
errors: zod.z.array(ErrorDataSchema).optional(),
|
|
9003
|
+
userConfig: zod.z.any().optional(),
|
|
9004
|
+
testInput: zod.z.any().optional(),
|
|
9005
|
+
dependencies: zod.z.array(zod.z.any()).optional(),
|
|
9006
|
+
});
|
|
8543
9007
|
|
|
8544
9008
|
const flowNodeLinkSchema = zod.z.object({
|
|
8545
9009
|
key: zod.z.string().optional(),
|
|
@@ -8603,6 +9067,47 @@ exports.ActionDependencyType = void 0;
|
|
|
8603
9067
|
ActionDependencyType["FieldMapping"] = "FieldMapping";
|
|
8604
9068
|
ActionDependencyType["DataSource"] = "DataSource";
|
|
8605
9069
|
})(exports.ActionDependencyType || (exports.ActionDependencyType = {}));
|
|
9070
|
+
const ActionDependency = zod.z.object({
|
|
9071
|
+
type: zod.z.nativeEnum(exports.ActionDependencyType),
|
|
9072
|
+
key: zod.z.string(),
|
|
9073
|
+
element: zod.z.any().optional(),
|
|
9074
|
+
});
|
|
9075
|
+
const BaseActionInstance = BaseMembraneInterface.extend({
|
|
9076
|
+
parentId: zod.z.string().optional(),
|
|
9077
|
+
parentRevision: zod.z.string().optional(),
|
|
9078
|
+
universalParentId: zod.z.string().optional(),
|
|
9079
|
+
userId: zod.z.string(),
|
|
9080
|
+
instanceKey: zod.z.string().optional(),
|
|
9081
|
+
type: zod.z.nativeEnum(exports.ActionType),
|
|
9082
|
+
inputSchema: zod.z.any().optional(),
|
|
9083
|
+
config: zod.z.any().optional(),
|
|
9084
|
+
outputSchema: zod.z.any().optional(),
|
|
9085
|
+
isOutdated: zod.z.boolean().optional(),
|
|
9086
|
+
});
|
|
9087
|
+
|
|
9088
|
+
const BaseFieldMappingInstance = BaseMembraneInterface.extend({
|
|
9089
|
+
userId: zod.z.string(),
|
|
9090
|
+
revision: zod.z.string(),
|
|
9091
|
+
connectionId: zod.z.string(),
|
|
9092
|
+
integrationId: zod.z.string(),
|
|
9093
|
+
fieldMappingRevision: zod.z.string().optional(),
|
|
9094
|
+
fieldMappingId: zod.z.string().optional(),
|
|
9095
|
+
instanceKey: zod.z.string().optional(),
|
|
9096
|
+
dataSourceInstanceId: zod.z.string().optional(),
|
|
9097
|
+
dataSourceSchema: DataSchema.optional(),
|
|
9098
|
+
direction: zod.z.nativeEnum(exports.FieldMappingDirection).optional(),
|
|
9099
|
+
appSchema: DataSchema.optional(),
|
|
9100
|
+
importValue: zod.z.any().optional(),
|
|
9101
|
+
exportValue: zod.z.any().optional(),
|
|
9102
|
+
isCustomized: zod.z.boolean().optional(),
|
|
9103
|
+
unifiedExportValue: zod.z.any().optional(),
|
|
9104
|
+
unifiedImportValue: zod.z.any().optional(),
|
|
9105
|
+
frozenImportFields: zod.z.array(zod.z.string()).optional(),
|
|
9106
|
+
frozenExportFields: zod.z.array(zod.z.string()).optional(),
|
|
9107
|
+
state: zod.z.nativeEnum(exports.WorkspaceElementState).optional(),
|
|
9108
|
+
error: ErrorDataSchema.optional(),
|
|
9109
|
+
externalSchema: zod.z.any().optional(),
|
|
9110
|
+
});
|
|
8606
9111
|
|
|
8607
9112
|
exports.DataLinkDirection = void 0;
|
|
8608
9113
|
(function (DataLinkDirection) {
|
|
@@ -8610,27 +9115,167 @@ exports.DataLinkDirection = void 0;
|
|
|
8610
9115
|
DataLinkDirection["EXPORT"] = "export";
|
|
8611
9116
|
DataLinkDirection["BOTH"] = "both";
|
|
8612
9117
|
})(exports.DataLinkDirection || (exports.DataLinkDirection = {}));
|
|
9118
|
+
const BaseDataLinkTable = BaseMembraneInterface.extend({
|
|
9119
|
+
archivedAt: zod.z.string().optional(),
|
|
9120
|
+
});
|
|
8613
9121
|
|
|
8614
|
-
|
|
8615
|
-
|
|
8616
|
-
|
|
8617
|
-
|
|
8618
|
-
|
|
8619
|
-
|
|
8620
|
-
|
|
8621
|
-
|
|
8622
|
-
|
|
8623
|
-
|
|
8624
|
-
|
|
8625
|
-
|
|
8626
|
-
|
|
9122
|
+
const BaseDataLinkTableInstance = BaseMembraneInterface.extend({
|
|
9123
|
+
dataLinkTableId: zod.z.string().optional(),
|
|
9124
|
+
connectionId: zod.z.string().optional(),
|
|
9125
|
+
integrationId: zod.z.string(),
|
|
9126
|
+
instanceKey: zod.z.string().optional(),
|
|
9127
|
+
userId: zod.z.string(),
|
|
9128
|
+
archivedAt: zod.z.string().optional(),
|
|
9129
|
+
});
|
|
9130
|
+
const DataLink = zod.z.object({
|
|
9131
|
+
id: zod.z.string(),
|
|
9132
|
+
dataLinkTableInstanceId: zod.z.string(),
|
|
9133
|
+
externalRecordId: zod.z.string(),
|
|
9134
|
+
appRecordId: zod.z.string(),
|
|
9135
|
+
direction: zod.z.nativeEnum(exports.DataLinkDirection),
|
|
9136
|
+
});
|
|
9137
|
+
const DataLinkTableConfig = zod.z.object({
|
|
9138
|
+
key: zod.z.string(),
|
|
9139
|
+
});
|
|
8627
9140
|
|
|
8628
|
-
exports.
|
|
8629
|
-
(function (
|
|
8630
|
-
|
|
9141
|
+
exports.HttpRequestMethod = void 0;
|
|
9142
|
+
(function (HttpRequestMethod) {
|
|
9143
|
+
HttpRequestMethod["GET"] = "GET";
|
|
9144
|
+
HttpRequestMethod["POST"] = "POST";
|
|
9145
|
+
HttpRequestMethod["PATCH"] = "PATCH";
|
|
9146
|
+
HttpRequestMethod["PUT"] = "PUT";
|
|
9147
|
+
HttpRequestMethod["DELETE"] = "DELETE";
|
|
9148
|
+
})(exports.HttpRequestMethod || (exports.HttpRequestMethod = {}));
|
|
9149
|
+
const HttpRequestSpec = zod.z.object({
|
|
9150
|
+
method: zod.z.string().toUpperCase().pipe(zod.z.nativeEnum(exports.HttpRequestMethod)).optional(),
|
|
9151
|
+
uri: zod.z.any(),
|
|
9152
|
+
headers: zod.z.record(zod.z.any()).optional(),
|
|
9153
|
+
query: zod.z.record(zod.z.any()).optional(),
|
|
9154
|
+
body: zod.z.any().optional(),
|
|
9155
|
+
});
|
|
9156
|
+
const HTTP_REQUEST_SCHEMA = {
|
|
9157
|
+
type: 'object',
|
|
9158
|
+
properties: {
|
|
9159
|
+
uri: { type: 'string' },
|
|
9160
|
+
method: {
|
|
9161
|
+
type: 'string',
|
|
9162
|
+
enum: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'],
|
|
9163
|
+
},
|
|
9164
|
+
body: {},
|
|
9165
|
+
query: {
|
|
9166
|
+
type: 'object',
|
|
9167
|
+
section: true,
|
|
9168
|
+
additionalProperties: true,
|
|
9169
|
+
},
|
|
9170
|
+
headers: {
|
|
9171
|
+
type: 'object',
|
|
9172
|
+
section: true,
|
|
9173
|
+
additionalProperties: true,
|
|
9174
|
+
},
|
|
9175
|
+
},
|
|
9176
|
+
};
|
|
9177
|
+
|
|
9178
|
+
const BaseAppEventType = BaseMembraneInterface.extend({
|
|
9179
|
+
revision: zod.z.string(),
|
|
9180
|
+
archivedAt: zod.z.string().optional(),
|
|
9181
|
+
subscribeRequest: HttpRequestSpec.optional(),
|
|
9182
|
+
example: zod.z.any().optional(),
|
|
9183
|
+
schema: DataSchema.optional(),
|
|
9184
|
+
globalWebhookUri: zod.z.string(),
|
|
9185
|
+
userIdFormula: zod.z.any().optional(),
|
|
9186
|
+
});
|
|
9187
|
+
|
|
9188
|
+
const BaseAppEventSubscription = BaseMembraneInterface.extend({
|
|
9189
|
+
revision: zod.z.string(),
|
|
9190
|
+
appEventTypeId: zod.z.string(),
|
|
9191
|
+
userId: zod.z.string(),
|
|
9192
|
+
instanceKey: zod.z.string().optional(),
|
|
9193
|
+
isSubscribed: zod.z.boolean(),
|
|
9194
|
+
schema: DataSchema.optional(),
|
|
9195
|
+
webhookUri: zod.z.string(),
|
|
9196
|
+
subscriptionRequest: HttpRequestSpec,
|
|
9197
|
+
subscriptionResponse: zod.z.any().optional(),
|
|
9198
|
+
archivedAt: zod.z.string().optional(),
|
|
9199
|
+
});
|
|
9200
|
+
|
|
9201
|
+
const BaseAppDataSchema = BaseMembraneInterface.extend({
|
|
9202
|
+
schema: zod.z.any(),
|
|
9203
|
+
code: zod.z.string().optional(),
|
|
9204
|
+
archivedAt: zod.z.string().optional(),
|
|
9205
|
+
revision: zod.z.string().optional(),
|
|
9206
|
+
});
|
|
9207
|
+
|
|
9208
|
+
const BaseAppDataSchemaInstance = BaseMembraneInterface.extend({
|
|
9209
|
+
appId: zod.z.string(),
|
|
9210
|
+
userId: zod.z.string(),
|
|
9211
|
+
appDataSchemaId: zod.z.string(),
|
|
9212
|
+
appDataSchemaRevision: zod.z.string(),
|
|
9213
|
+
instanceKey: zod.z.string().optional(),
|
|
9214
|
+
schema: zod.z.any().optional(),
|
|
9215
|
+
error: ErrorDataSchema.optional(),
|
|
9216
|
+
archivedAt: zod.z.string().optional(),
|
|
9217
|
+
});
|
|
9218
|
+
|
|
9219
|
+
exports.ExternalEventSubscriptionStatus = void 0;
|
|
9220
|
+
(function (ExternalEventSubscriptionStatus) {
|
|
9221
|
+
ExternalEventSubscriptionStatus["Subscribed"] = "subscribed";
|
|
9222
|
+
ExternalEventSubscriptionStatus["Unsubscribed"] = "unsubscribed";
|
|
9223
|
+
ExternalEventSubscriptionStatus["Error"] = "error";
|
|
9224
|
+
})(exports.ExternalEventSubscriptionStatus || (exports.ExternalEventSubscriptionStatus = {}));
|
|
9225
|
+
exports.ExternalEventSubscriptionType = void 0;
|
|
9226
|
+
(function (ExternalEventSubscriptionType) {
|
|
9227
|
+
ExternalEventSubscriptionType["DataRecordCreated"] = "data-record-created";
|
|
9228
|
+
ExternalEventSubscriptionType["DataRecordUpdated"] = "data-record-updated";
|
|
9229
|
+
ExternalEventSubscriptionType["DataRecordDeleted"] = "data-record-deleted";
|
|
9230
|
+
ExternalEventSubscriptionType["ConnectorEvent"] = "connector-event";
|
|
9231
|
+
})(exports.ExternalEventSubscriptionType || (exports.ExternalEventSubscriptionType = {}));
|
|
9232
|
+
const ExternalEventSubscriptionConfig = zod.z.object({
|
|
9233
|
+
type: zod.z.nativeEnum(exports.ExternalEventSubscriptionType),
|
|
9234
|
+
dataSource: DataSourceUnitConfig.optional(),
|
|
9235
|
+
eventKey: zod.z.string().optional(),
|
|
9236
|
+
eventParameters: zod.z.any().optional(),
|
|
9237
|
+
});
|
|
9238
|
+
const BaseExternalEventSubscription = zod.z.object({
|
|
9239
|
+
id: zod.z.string(),
|
|
9240
|
+
name: zod.z.string().optional(),
|
|
9241
|
+
userId: zod.z.string(),
|
|
9242
|
+
connectionId: zod.z.string(),
|
|
9243
|
+
integrationId: zod.z.string(),
|
|
9244
|
+
config: ExternalEventSubscriptionConfig.optional(),
|
|
9245
|
+
status: zod.z.nativeEnum(exports.ExternalEventSubscriptionStatus).optional(),
|
|
9246
|
+
error: ErrorDataSchema.optional(),
|
|
9247
|
+
isRealTime: zod.z.boolean().optional(),
|
|
9248
|
+
requiresPull: zod.z.boolean().optional(),
|
|
9249
|
+
requiresFullSync: zod.z.boolean().optional(),
|
|
9250
|
+
createdAt: zod.z.string().optional(),
|
|
9251
|
+
archivedAt: zod.z.string().optional(),
|
|
9252
|
+
stateData: zod.z.any().optional(),
|
|
9253
|
+
nextPullEventsTimestamp: zod.z.number().optional(),
|
|
9254
|
+
pullUpdatesIntervalSeconds: zod.z.number().optional(),
|
|
9255
|
+
fullSyncIntervalSeconds: zod.z.number().optional(),
|
|
9256
|
+
nextRefreshTimestamp: zod.z.number().optional(),
|
|
9257
|
+
globalWebhookKey: zod.z.string().optional(),
|
|
9258
|
+
globalWebhookEventSelector: zod.z.string().optional(),
|
|
9259
|
+
});
|
|
9260
|
+
|
|
9261
|
+
exports.ExternalEventLogStatus = void 0;
|
|
9262
|
+
(function (ExternalEventLogStatus) {
|
|
9263
|
+
ExternalEventLogStatus["CREATED"] = "created";
|
|
8631
9264
|
ExternalEventLogStatus["ERROR"] = "error";
|
|
8632
9265
|
ExternalEventLogStatus["SUCCESS"] = "success";
|
|
8633
9266
|
})(exports.ExternalEventLogStatus || (exports.ExternalEventLogStatus = {}));
|
|
9267
|
+
const BaseExternalEventLogRecord = zod.z.object({
|
|
9268
|
+
id: zod.z.string(),
|
|
9269
|
+
userId: zod.z.string(),
|
|
9270
|
+
name: zod.z.string().optional(),
|
|
9271
|
+
externalEventSubscriptionId: zod.z.string(),
|
|
9272
|
+
integrationId: zod.z.string(),
|
|
9273
|
+
connectionId: zod.z.string(),
|
|
9274
|
+
payload: zod.z.any().optional(),
|
|
9275
|
+
launchedFlowRunIds: zod.z.array(zod.z.string()).optional(),
|
|
9276
|
+
status: zod.z.nativeEnum(exports.ExternalEventLogStatus),
|
|
9277
|
+
error: ErrorDataSchema.optional(),
|
|
9278
|
+
});
|
|
8634
9279
|
|
|
8635
9280
|
exports.ExternalEventPullStatus = void 0;
|
|
8636
9281
|
(function (ExternalEventPullStatus) {
|
|
@@ -8639,135 +9284,785 @@ exports.ExternalEventPullStatus = void 0;
|
|
|
8639
9284
|
ExternalEventPullStatus["ERROR"] = "error";
|
|
8640
9285
|
ExternalEventPullStatus["QUEUED"] = "queued";
|
|
8641
9286
|
})(exports.ExternalEventPullStatus || (exports.ExternalEventPullStatus = {}));
|
|
9287
|
+
const BaseExternalEventPull = zod.z.object({
|
|
9288
|
+
id: zod.z.string(),
|
|
9289
|
+
name: zod.z.string().optional(),
|
|
9290
|
+
userId: zod.z.string(),
|
|
9291
|
+
externalEventSubscriptionId: zod.z.string(),
|
|
9292
|
+
integrationId: zod.z.string(),
|
|
9293
|
+
connectionId: zod.z.string(),
|
|
9294
|
+
startDatetime: zod.z.string(),
|
|
9295
|
+
endDatetime: zod.z.string(),
|
|
9296
|
+
isFullScan: zod.z.boolean().optional(),
|
|
9297
|
+
status: zod.z.nativeEnum(exports.ExternalEventPullStatus),
|
|
9298
|
+
collectedEventIds: zod.z.array(zod.z.string()),
|
|
9299
|
+
error: ErrorDataSchema.optional(),
|
|
9300
|
+
});
|
|
9301
|
+
|
|
9302
|
+
exports.ActionRunLogStatus = void 0;
|
|
9303
|
+
(function (ActionRunLogStatus) {
|
|
9304
|
+
ActionRunLogStatus["SUCCESS"] = "success";
|
|
9305
|
+
ActionRunLogStatus["ERROR"] = "error";
|
|
9306
|
+
})(exports.ActionRunLogStatus || (exports.ActionRunLogStatus = {}));
|
|
9307
|
+
const BaseActionRunLogRecord = BaseWorkspaceElement.extend({
|
|
9308
|
+
actionId: zod.z.string(),
|
|
9309
|
+
integrationId: zod.z.string(),
|
|
9310
|
+
connectionId: zod.z.string(),
|
|
9311
|
+
input: zod.z.any().optional(),
|
|
9312
|
+
output: zod.z.any().optional(),
|
|
9313
|
+
status: zod.z.nativeEnum(exports.ActionRunLogStatus),
|
|
9314
|
+
createdAt: zod.z.string(),
|
|
9315
|
+
completedAt: zod.z.string().optional(),
|
|
9316
|
+
error: ErrorDataSchema.optional(),
|
|
9317
|
+
});
|
|
9318
|
+
|
|
9319
|
+
const zodBooleanCoercion = () => zod.z.preprocess((val) => {
|
|
9320
|
+
if (typeof val === 'boolean')
|
|
9321
|
+
return val;
|
|
9322
|
+
if (typeof val === 'string') {
|
|
9323
|
+
const lower = val.toLowerCase();
|
|
9324
|
+
if (lower === 'true' || lower === '1')
|
|
9325
|
+
return true;
|
|
9326
|
+
if (lower === 'false' || lower === '0')
|
|
9327
|
+
return false;
|
|
9328
|
+
return Boolean(val);
|
|
9329
|
+
}
|
|
9330
|
+
if (typeof val === 'number')
|
|
9331
|
+
return Boolean(val);
|
|
9332
|
+
return Boolean(val);
|
|
9333
|
+
}, zod.z.boolean());
|
|
9334
|
+
const IncludeArchivedQuery = zod.z.object({
|
|
9335
|
+
includeArchived: zodBooleanCoercion().optional(),
|
|
9336
|
+
});
|
|
9337
|
+
const SearchQuery = zod.z.object({
|
|
9338
|
+
search: zod.z.string().optional(),
|
|
9339
|
+
});
|
|
9340
|
+
const PaginationQuery = zod.z.object({
|
|
9341
|
+
limit: zod.z.coerce.number().optional(),
|
|
9342
|
+
cursor: zod.z.string().optional(),
|
|
9343
|
+
});
|
|
9344
|
+
const CommonListElementsQuery = SearchQuery.merge(PaginationQuery).merge(IncludeArchivedQuery);
|
|
9345
|
+
const CommonInstancesListQuery = CommonListElementsQuery.extend({
|
|
9346
|
+
userId: zod.z.string().optional(),
|
|
9347
|
+
instanceKey: zod.z.string().optional(),
|
|
9348
|
+
});
|
|
9349
|
+
const CommonIntegrationOrConnectionQuery = zod.z.object({
|
|
9350
|
+
connectionId: zod.z.string().optional(),
|
|
9351
|
+
integrationId: zod.z.string().optional(),
|
|
9352
|
+
integrationKey: zod.z.string().optional(),
|
|
9353
|
+
});
|
|
9354
|
+
class PaginationResponse {
|
|
9355
|
+
}
|
|
9356
|
+
|
|
9357
|
+
const ListActionsForIntegrationQuery = zod.z
|
|
9358
|
+
.object({
|
|
9359
|
+
parentId: zod.z.string().optional(),
|
|
9360
|
+
})
|
|
9361
|
+
.merge(PaginationQuery);
|
|
9362
|
+
const FindActionsQuery = ListActionsForIntegrationQuery.extend({
|
|
9363
|
+
integrationId: zod.z.string().optional(),
|
|
9364
|
+
});
|
|
9365
|
+
const CreateActionRequest = zod.z.object({
|
|
9366
|
+
key: zod.z.string(),
|
|
9367
|
+
name: zod.z.string(),
|
|
9368
|
+
type: zod.z.nativeEnum(exports.ActionType).optional(),
|
|
9369
|
+
inputSchema: zod.z.any().optional(),
|
|
9370
|
+
config: zod.z.any().optional(),
|
|
9371
|
+
integrationId: zod.z.string().optional(),
|
|
9372
|
+
});
|
|
9373
|
+
const UpdateActionRequest = zod.z.object({
|
|
9374
|
+
key: zod.z.string().optional(),
|
|
9375
|
+
type: zod.z.nativeEnum(exports.ActionType).optional(),
|
|
9376
|
+
name: zod.z.string().optional(),
|
|
9377
|
+
inputSchema: zod.z.any().optional(),
|
|
9378
|
+
config: zod.z.any().optional(),
|
|
9379
|
+
customOutputSchema: zod.z.any().optional(),
|
|
9380
|
+
outputMapping: zod.z.any().optional(),
|
|
9381
|
+
});
|
|
9382
|
+
const ListActionInstancesForConnectionQuery = zod.z
|
|
9383
|
+
.object({
|
|
9384
|
+
parentId: zod.z.string().optional(),
|
|
9385
|
+
universalParentId: zod.z.string().optional(),
|
|
9386
|
+
})
|
|
9387
|
+
.merge(PaginationQuery);
|
|
9388
|
+
const FindActionInstancesQuery = ListActionInstancesForConnectionQuery.extend({
|
|
9389
|
+
integrationKey: zod.z.string().optional(),
|
|
9390
|
+
integrationId: zod.z.string().optional(),
|
|
9391
|
+
userId: zod.z.string().optional(),
|
|
9392
|
+
connectionId: zod.z.string().optional(),
|
|
9393
|
+
});
|
|
9394
|
+
const CreateActionInstanceRequest = zod.z.object({
|
|
9395
|
+
parentId: zod.z.string(),
|
|
9396
|
+
connectionId: zod.z.string(),
|
|
9397
|
+
config: zod.z.any().optional(),
|
|
9398
|
+
});
|
|
9399
|
+
const UpdateActionInstanceRequest = zod.z.object({
|
|
9400
|
+
config: zod.z.any().optional(),
|
|
9401
|
+
});
|
|
9402
|
+
const ActionRunResponse = zod.z.object({
|
|
9403
|
+
output: zod.z.any().optional(),
|
|
9404
|
+
logs: zod.z.array(zod.z.any()).optional(),
|
|
9405
|
+
});
|
|
9406
|
+
const ActionApiResponse = BaseAction.extend({
|
|
9407
|
+
integration: BaseIntegration.optional(),
|
|
9408
|
+
appliedToIntegrations: AppliedToIntegrations(BaseAction).optional(),
|
|
9409
|
+
});
|
|
9410
|
+
|
|
9411
|
+
const ActionInstanceApiResponse = BaseActionInstance.extend({
|
|
9412
|
+
user: BaseCustomer.optional(),
|
|
9413
|
+
parent: BaseAction.optional(),
|
|
9414
|
+
});
|
|
9415
|
+
|
|
9416
|
+
const ActionRunLogRecordApiResponse = BaseActionRunLogRecord.extend({
|
|
9417
|
+
action: BaseAction.optional(),
|
|
9418
|
+
integration: BaseIntegration.optional(),
|
|
9419
|
+
connection: BaseConnection.optional(),
|
|
9420
|
+
});
|
|
9421
|
+
|
|
9422
|
+
const FindConnectionsQuery = zod.z
|
|
9423
|
+
.object({
|
|
9424
|
+
userId: zod.z.string().optional(),
|
|
9425
|
+
isTest: zodBooleanCoercion().optional(),
|
|
9426
|
+
integrationKey: zod.z.string().optional(),
|
|
9427
|
+
integrationId: zod.z.string().optional(),
|
|
9428
|
+
includeArchived: zodBooleanCoercion().optional(),
|
|
9429
|
+
})
|
|
9430
|
+
.merge(PaginationQuery);
|
|
9431
|
+
const CreateConnectionRequest = zod.z.object({
|
|
9432
|
+
name: zod.z.string(),
|
|
9433
|
+
integrationId: zod.z.string(),
|
|
9434
|
+
credentials: zod.z.string().optional(),
|
|
9435
|
+
});
|
|
9436
|
+
const UpdateConnectionRequest = zod.z.object({
|
|
9437
|
+
name: zod.z.string().optional(),
|
|
9438
|
+
credentials: zod.z.string().optional(),
|
|
9439
|
+
accessToken: zod.z.string().optional(),
|
|
9440
|
+
});
|
|
9441
|
+
class FindConnectionsResponse extends PaginationResponse {
|
|
9442
|
+
}
|
|
9443
|
+
const ConnectionSelector = zod.z.object({
|
|
9444
|
+
id: zod.z.string().optional(),
|
|
9445
|
+
integrationKey: zod.z.string().optional(),
|
|
9446
|
+
integrationId: zod.z.string().optional(),
|
|
9447
|
+
connectionId: zod.z.string().optional(),
|
|
9448
|
+
});
|
|
9449
|
+
const ConnectionApiResponse = BaseConnection.extend({
|
|
9450
|
+
user: BaseCustomer.optional(),
|
|
9451
|
+
integration: BaseIntegration.optional(),
|
|
9452
|
+
});
|
|
9453
|
+
const ConnectionMessagePayload = zod.z.discriminatedUnion('type', [
|
|
9454
|
+
zod.z.object({
|
|
9455
|
+
source: zod.z.string(),
|
|
9456
|
+
requestId: zod.z.string(),
|
|
9457
|
+
type: zod.z.literal('newConnectionCreated'),
|
|
9458
|
+
connection: ConnectionApiResponse,
|
|
9459
|
+
}),
|
|
9460
|
+
zod.z.object({
|
|
9461
|
+
source: zod.z.string(),
|
|
9462
|
+
requestId: zod.z.string(),
|
|
9463
|
+
type: zod.z.literal('newConnectionFailure'),
|
|
9464
|
+
error: zod.z.string(),
|
|
9465
|
+
errorData: ErrorDataSchema.optional(),
|
|
9466
|
+
}),
|
|
9467
|
+
]);
|
|
9468
|
+
|
|
9469
|
+
const ListDataSourcesForIntegrationQuery = zod.z
|
|
9470
|
+
.object({
|
|
9471
|
+
universalDataSourceId: zod.z.string().optional(),
|
|
9472
|
+
})
|
|
9473
|
+
.merge(PaginationQuery);
|
|
9474
|
+
const FindDataSourcesQuery = ListDataSourcesForIntegrationQuery.extend({
|
|
9475
|
+
integrationId: zod.z.string().optional(),
|
|
9476
|
+
});
|
|
9477
|
+
const CreateDataSourceRequest = zod.z.object({
|
|
9478
|
+
key: zod.z.string(),
|
|
9479
|
+
name: zod.z.string(),
|
|
9480
|
+
integrationId: zod.z.string().optional(),
|
|
9481
|
+
udm: zod.z.string().optional(),
|
|
9482
|
+
pullUpdatesIntervalSeconds: zod.z.number().optional(),
|
|
9483
|
+
fullSyncIntervalSeconds: zod.z.number().optional(),
|
|
9484
|
+
rootPath: zod.z.string().optional(),
|
|
9485
|
+
defaultPath: zod.z.string().optional(),
|
|
9486
|
+
collectionKey: zod.z.string().optional(),
|
|
9487
|
+
collectionParameters: zod.z.any().optional(),
|
|
9488
|
+
});
|
|
9489
|
+
const UpdateDataSourceRequest = zod.z.object({
|
|
9490
|
+
key: zod.z.string().optional(),
|
|
9491
|
+
name: zod.z.string().optional(),
|
|
9492
|
+
archivedAt: zod.z.string().optional(),
|
|
9493
|
+
udm: zod.z.string().optional(),
|
|
9494
|
+
pullUpdatesIntervalSeconds: zod.z.number().optional(),
|
|
9495
|
+
fullSyncIntervalSeconds: zod.z.number().optional(),
|
|
9496
|
+
rootPath: zod.z.string().optional(),
|
|
9497
|
+
defaultPath: zod.z.string().optional(),
|
|
9498
|
+
});
|
|
9499
|
+
const FindDataSourceInstancesQuery = zod.z
|
|
9500
|
+
.object({
|
|
9501
|
+
userId: zod.z.string().optional(),
|
|
9502
|
+
dataSourceId: zod.z.string().optional(),
|
|
9503
|
+
universalDataSourceId: zod.z.string().optional(),
|
|
9504
|
+
connectionId: zod.z.string().optional(),
|
|
9505
|
+
integrationKey: zod.z.string().optional(),
|
|
9506
|
+
integrationId: zod.z.string().optional(),
|
|
9507
|
+
})
|
|
9508
|
+
.merge(PaginationQuery);
|
|
9509
|
+
const CreateDataSourceInstanceRequest = zod.z.object({
|
|
9510
|
+
dataSourceId: zod.z.string(),
|
|
9511
|
+
connectionId: zod.z.string(),
|
|
9512
|
+
path: zod.z.string().optional(),
|
|
9513
|
+
});
|
|
9514
|
+
const UpdateDataSourceInstanceRequest = zod.z.object({
|
|
9515
|
+
path: zod.z.string().optional(),
|
|
9516
|
+
collectionKey: zod.z.string().optional(),
|
|
9517
|
+
collectionParameters: zod.z.any().optional(),
|
|
9518
|
+
pullUpdatesIntervalSeconds: zod.z.number().optional(),
|
|
9519
|
+
fullSyncIntervalSeconds: zod.z.number().optional(),
|
|
9520
|
+
subscribedTo: zod.z
|
|
9521
|
+
.object({
|
|
9522
|
+
created: zod.z.boolean().optional(),
|
|
9523
|
+
updated: zod.z.boolean().optional(),
|
|
9524
|
+
deleted: zod.z.boolean().optional(),
|
|
9525
|
+
})
|
|
9526
|
+
.optional(),
|
|
9527
|
+
});
|
|
9528
|
+
const FindDataSourceEventsQuery = zod.z
|
|
9529
|
+
.object({
|
|
9530
|
+
userId: zod.z.string().optional(),
|
|
9531
|
+
udm: zod.z.string().optional(),
|
|
9532
|
+
dataSourceInstanceId: zod.z.string().optional(),
|
|
9533
|
+
startDatetime: zod.z.string().optional(),
|
|
9534
|
+
endDatetime: zod.z.string().optional(),
|
|
9535
|
+
})
|
|
9536
|
+
.merge(PaginationQuery);
|
|
9537
|
+
const FindDataSourceSyncsQuery = zod.z
|
|
9538
|
+
.object({
|
|
9539
|
+
userId: zod.z.string().optional(),
|
|
9540
|
+
dataSourceId: zod.z.string().optional(),
|
|
9541
|
+
dataSourceInstanceId: zod.z.string().optional(),
|
|
9542
|
+
integrationId: zod.z.string().optional(),
|
|
9543
|
+
connectionId: zod.z.string().optional(),
|
|
9544
|
+
startedAfter: zod.z.string().optional(),
|
|
9545
|
+
})
|
|
9546
|
+
.merge(PaginationQuery);
|
|
9547
|
+
const ListDataSourceInstancesForConnectionQuery = zod.z
|
|
9548
|
+
.object({
|
|
9549
|
+
dataSourceId: zod.z.string().optional(),
|
|
9550
|
+
})
|
|
9551
|
+
.merge(PaginationQuery);
|
|
9552
|
+
const FindDataSourceInstanceSyncsQuery = ListDataSourceInstancesForConnectionQuery.extend({
|
|
9553
|
+
userId: zod.z.string().optional(),
|
|
9554
|
+
connectionId: zod.z.string().optional(),
|
|
9555
|
+
integrationId: zod.z.string().optional(),
|
|
9556
|
+
dataSourceInstanceId: zod.z.string().optional(),
|
|
9557
|
+
});
|
|
9558
|
+
const DataSourceApiResponse = BaseDataSource.extend({
|
|
9559
|
+
integration: BaseIntegration.optional(),
|
|
9560
|
+
appliedToIntegrations: AppliedToIntegrations(BaseDataSource).optional(),
|
|
9561
|
+
});
|
|
9562
|
+
|
|
9563
|
+
const DataSourceInstanceApiResponse = BaseDataSourceInstance.extend({
|
|
9564
|
+
user: BaseCustomer.optional(),
|
|
9565
|
+
dataSource: BaseDataSource.optional(),
|
|
9566
|
+
connection: BaseConnection.optional(),
|
|
9567
|
+
integration: BaseIntegration.optional(),
|
|
9568
|
+
});
|
|
9569
|
+
|
|
9570
|
+
const ExternalEvent = BaseExternalEvent.extend({
|
|
9571
|
+
appliedToIntegrations: AppliedToIntegrations(BaseExternalEvent).optional(),
|
|
9572
|
+
});
|
|
9573
|
+
|
|
9574
|
+
const ListFlowsForIntegrationQuery = zod.z
|
|
9575
|
+
.object({
|
|
9576
|
+
universalFlowId: zod.z.string().optional(),
|
|
9577
|
+
})
|
|
9578
|
+
.merge(CommonListElementsQuery);
|
|
9579
|
+
const FindFlowsQuery = ListFlowsForIntegrationQuery.extend({
|
|
9580
|
+
integrationId: zod.z.string().optional(),
|
|
9581
|
+
});
|
|
9582
|
+
const CreateFlowNodeRequest = zod.z.object({
|
|
9583
|
+
type: zod.z.string(),
|
|
9584
|
+
config: zod.z.any().optional(),
|
|
9585
|
+
ui: zod.z.any().optional(),
|
|
9586
|
+
links: zod.z.array(zod.z.lazy(() => zod.z.any())).optional(),
|
|
9587
|
+
});
|
|
9588
|
+
const CreateFlowRequest = zod.z.object({
|
|
9589
|
+
key: zod.z.string(),
|
|
9590
|
+
name: zod.z.string(),
|
|
9591
|
+
integrationId: zod.z.string().optional(),
|
|
9592
|
+
nodes: zod.z.record(zod.z.string(), CreateFlowNodeRequest).optional(),
|
|
9593
|
+
parametersSchema: DataSchema.optional(),
|
|
9594
|
+
autoCreateInstances: zod.z.boolean().optional(),
|
|
9595
|
+
});
|
|
9596
|
+
const UpdateFlowRequest = CreateFlowRequest.extend({
|
|
9597
|
+
archivedAt: zod.z.string().optional(),
|
|
9598
|
+
});
|
|
9599
|
+
const ListFlowInstancesForConnectionQuery = zod.z
|
|
9600
|
+
.object({
|
|
9601
|
+
flowId: zod.z.string().optional(),
|
|
9602
|
+
flowKey: zod.z.string().optional(),
|
|
9603
|
+
enabled: zod.z.boolean().optional(),
|
|
9604
|
+
})
|
|
9605
|
+
.merge(CommonInstancesListQuery);
|
|
9606
|
+
const FindFlowInstancesQuery = ListFlowInstancesForConnectionQuery.merge(CommonIntegrationOrConnectionQuery);
|
|
9607
|
+
const ResetFlowInstanceOptions = zod.z.object({
|
|
9608
|
+
name: zod.z.boolean().optional(),
|
|
9609
|
+
nodes: zod.z.record(zod.z.string(), zod.z.boolean()).optional(),
|
|
9610
|
+
allNodes: zod.z.boolean().optional(),
|
|
9611
|
+
});
|
|
9612
|
+
const RunFlowOptions = zod.z.object({
|
|
9613
|
+
nodeKey: zod.z.string().optional(),
|
|
9614
|
+
input: zod.z.any().optional(),
|
|
9615
|
+
returnImmediately: zod.z.boolean().optional(),
|
|
9616
|
+
onUpdate: zod.z.function().optional(),
|
|
9617
|
+
});
|
|
9618
|
+
const FlowApiResponse = BaseFlow.extend({
|
|
9619
|
+
integration: BaseIntegration.optional(),
|
|
9620
|
+
appliedToIntegrations: AppliedToIntegrations(BaseFlow).optional(),
|
|
9621
|
+
});
|
|
9622
|
+
const FlowInstanceApiResponse = BaseFlowInstance.extend({
|
|
9623
|
+
user: zod.z.lazy(() => zod.z.any()).optional(),
|
|
9624
|
+
connection: zod.z.lazy(() => zod.z.any()).optional(),
|
|
9625
|
+
flow: zod.z.lazy(() => FlowApiResponse).optional(),
|
|
9626
|
+
integration: zod.z.lazy(() => zod.z.any()).optional(),
|
|
9627
|
+
});
|
|
9628
|
+
|
|
9629
|
+
const CreateFlowRunRequest = zod.z.object({
|
|
9630
|
+
flowInstanceId: zod.z.string(),
|
|
9631
|
+
nodeKey: zod.z.string().optional(),
|
|
9632
|
+
input: zod.z.any().optional(),
|
|
9633
|
+
});
|
|
9634
|
+
const FindFlowRunsQuery = PaginationQuery.extend({
|
|
9635
|
+
id: zod.z.string().optional(),
|
|
9636
|
+
flowInstanceId: zod.z.string().optional(),
|
|
9637
|
+
startNodeKey: zod.z.string().optional(),
|
|
9638
|
+
flowId: zod.z.string().optional(),
|
|
9639
|
+
universalFlowId: zod.z.string().optional(),
|
|
9640
|
+
userId: zod.z.string().optional(),
|
|
9641
|
+
state: zod.z.nativeEnum(exports.FlowRunState).optional(),
|
|
9642
|
+
integrationId: zod.z.string().optional(),
|
|
9643
|
+
connectionId: zod.z.string().optional(),
|
|
9644
|
+
startedAfter: zod.z.string().optional(),
|
|
9645
|
+
});
|
|
9646
|
+
const FlowRunLaunchedByApi = zod.z.object({
|
|
9647
|
+
type: zod.z.nativeEnum(exports.FlowRunLaunchedByTrigger),
|
|
9648
|
+
ids: zod.z.array(zod.z.string()).optional(),
|
|
9649
|
+
});
|
|
9650
|
+
const FlowRunApiResponse = BaseFlowRun.extend({
|
|
9651
|
+
flowInstance: BaseFlowInstance.optional(),
|
|
9652
|
+
connection: BaseConnection.optional(),
|
|
9653
|
+
integration: BaseIntegration.optional(),
|
|
9654
|
+
user: BaseCustomer.optional(),
|
|
9655
|
+
});
|
|
9656
|
+
const FindFlowRunsResponse = zod.z.object({
|
|
9657
|
+
items: zod.z.array(FlowRunApiResponse),
|
|
9658
|
+
cursor: zod.z.string().optional(),
|
|
9659
|
+
});
|
|
9660
|
+
|
|
9661
|
+
const POPUP_ELEMENT_ID = '__integration-app-popup';
|
|
9662
|
+
const CONTAINER_ELEMENT_ID = '__integration-app-container';
|
|
9663
|
+
const CONTAINER_ELEMENT_CLASS = '__integration-app-container';
|
|
9664
|
+
const CONTAINER_ELEMENT_CLASS__LOADER = '__integration-app-container__loader';
|
|
9665
|
+
const BODY_CLASS = '__integration-app-open';
|
|
9666
|
+
const STYLES_ELEMENT_ID = '__integration-app-embed-styles';
|
|
9667
|
+
const OpenConfigurationOptions = zod.z.object({
|
|
9668
|
+
onClose: zod.z.function().optional(),
|
|
9669
|
+
showPoweredBy: zod.z.boolean().optional(),
|
|
9670
|
+
});
|
|
9671
|
+
let IFRAME_START_SHOW_LOADER_TIME = 0;
|
|
9672
|
+
let IFRAME_SHOW_LOADER_TIMEOUT_ID;
|
|
9673
|
+
const IFRAME_SHOW_LOADER_MINIMAL_TIME = 500;
|
|
9674
|
+
const IFRAME_LAYOUT_SHIFT_TIME = 300;
|
|
9675
|
+
function showIframeLoader() {
|
|
9676
|
+
const container = getContainer();
|
|
9677
|
+
container === null || container === void 0 ? void 0 : container.classList.add(CONTAINER_ELEMENT_CLASS__LOADER);
|
|
9678
|
+
IFRAME_START_SHOW_LOADER_TIME = Date.now();
|
|
9679
|
+
}
|
|
9680
|
+
function hideIframeLoader(waitLayoutShift = IFRAME_LAYOUT_SHIFT_TIME) {
|
|
9681
|
+
if (IFRAME_SHOW_LOADER_TIMEOUT_ID) {
|
|
9682
|
+
clearTimeout(IFRAME_SHOW_LOADER_TIMEOUT_ID);
|
|
9683
|
+
}
|
|
9684
|
+
const delta = Date.now() - IFRAME_START_SHOW_LOADER_TIME;
|
|
9685
|
+
if (delta >= IFRAME_SHOW_LOADER_MINIMAL_TIME) {
|
|
9686
|
+
setTimeout(() => {
|
|
9687
|
+
const container = getContainer();
|
|
9688
|
+
container === null || container === void 0 ? void 0 : container.classList.remove(CONTAINER_ELEMENT_CLASS__LOADER);
|
|
9689
|
+
IFRAME_START_SHOW_LOADER_TIME = 0;
|
|
9690
|
+
}, waitLayoutShift);
|
|
9691
|
+
return;
|
|
9692
|
+
}
|
|
9693
|
+
else {
|
|
9694
|
+
const waitLayoutShift = delta >= IFRAME_LAYOUT_SHIFT_TIME ? 0 : IFRAME_LAYOUT_SHIFT_TIME - delta;
|
|
9695
|
+
const timeoutTime = IFRAME_SHOW_LOADER_MINIMAL_TIME - delta;
|
|
9696
|
+
IFRAME_SHOW_LOADER_TIMEOUT_ID = setTimeout(() => {
|
|
9697
|
+
hideIframeLoader(waitLayoutShift);
|
|
9698
|
+
}, timeoutTime);
|
|
9699
|
+
return;
|
|
9700
|
+
}
|
|
9701
|
+
}
|
|
9702
|
+
async function openIframe(uri, callbacks = {}, { mountTargetSelector } = {}) {
|
|
9703
|
+
close();
|
|
9704
|
+
init(mountTargetSelector);
|
|
9705
|
+
return new Promise((resolve) => {
|
|
9706
|
+
function complete(callback) {
|
|
9707
|
+
close(callback);
|
|
9708
|
+
resolve();
|
|
9709
|
+
}
|
|
9710
|
+
function doOpen() {
|
|
9711
|
+
const iframe = document.createElement('iframe');
|
|
9712
|
+
iframe.src = uri;
|
|
9713
|
+
iframe.id = POPUP_ELEMENT_ID;
|
|
9714
|
+
iframe.onload = () => {
|
|
9715
|
+
hideIframeLoader();
|
|
9716
|
+
};
|
|
9717
|
+
if (!!getContainer()) {
|
|
9718
|
+
document.body.classList.add(BODY_CLASS);
|
|
9719
|
+
showIframeLoader();
|
|
9720
|
+
appendToContainer(iframe);
|
|
9721
|
+
handleIframeUnmount(iframe);
|
|
9722
|
+
penpal.connectToChild({
|
|
9723
|
+
iframe,
|
|
9724
|
+
methods: {
|
|
9725
|
+
...callbacks,
|
|
9726
|
+
handshake: (...args) => {
|
|
9727
|
+
var _a;
|
|
9728
|
+
hideIframeLoader();
|
|
9729
|
+
(_a = callbacks === null || callbacks === void 0 ? void 0 : callbacks.handshake) === null || _a === void 0 ? void 0 : _a.call(callbacks, ...args);
|
|
9730
|
+
},
|
|
9731
|
+
close: () => complete(callbacks.onClose),
|
|
9732
|
+
},
|
|
9733
|
+
});
|
|
9734
|
+
}
|
|
9735
|
+
else {
|
|
9736
|
+
throw Error('Membrane container element not found. Was it manually removed?');
|
|
9737
|
+
}
|
|
9738
|
+
}
|
|
9739
|
+
if (document.readyState === 'complete' || document.readyState === 'interactive') {
|
|
9740
|
+
doOpen();
|
|
9741
|
+
}
|
|
9742
|
+
else {
|
|
9743
|
+
document.addEventListener('DOMContentLoaded', () => {
|
|
9744
|
+
doOpen();
|
|
9745
|
+
});
|
|
9746
|
+
}
|
|
9747
|
+
});
|
|
9748
|
+
}
|
|
9749
|
+
function close(callback) {
|
|
9750
|
+
document.body.classList.remove(BODY_CLASS);
|
|
9751
|
+
if (!!getContainer()) {
|
|
9752
|
+
deleteContainer();
|
|
9753
|
+
if (callback) {
|
|
9754
|
+
callback();
|
|
9755
|
+
}
|
|
9756
|
+
}
|
|
9757
|
+
}
|
|
9758
|
+
function init(mountTargetSelector) {
|
|
9759
|
+
var _a;
|
|
9760
|
+
injectStyles(mountTargetSelector);
|
|
9761
|
+
if (!!getContainer()) {
|
|
9762
|
+
return;
|
|
9763
|
+
}
|
|
9764
|
+
const container = createContainer();
|
|
9765
|
+
if (mountTargetSelector && document.querySelector(mountTargetSelector)) {
|
|
9766
|
+
(_a = document.querySelector(mountTargetSelector)) === null || _a === void 0 ? void 0 : _a.appendChild(container);
|
|
9767
|
+
}
|
|
9768
|
+
else {
|
|
9769
|
+
document.body.appendChild(container);
|
|
9770
|
+
}
|
|
9771
|
+
}
|
|
9772
|
+
function injectStyles(mountTargetSelector) {
|
|
9773
|
+
const hasCustomMountTarget = Boolean(mountTargetSelector && document.querySelector(mountTargetSelector));
|
|
9774
|
+
const styles = [
|
|
9775
|
+
`.${CONTAINER_ELEMENT_CLASS}:empty {
|
|
9776
|
+
display: none;
|
|
9777
|
+
}`,
|
|
9778
|
+
hasCustomMountTarget
|
|
9779
|
+
? `.${CONTAINER_ELEMENT_CLASS} {
|
|
9780
|
+
inset: 0;
|
|
9781
|
+
background: rgba(0, 0, 0, 0);
|
|
9782
|
+
transition: background 0.2s ease-out;
|
|
9783
|
+
display: flex;
|
|
9784
|
+
justify-content: center;
|
|
9785
|
+
align-items: center;
|
|
9786
|
+
width: 100%;
|
|
9787
|
+
height: 100%;
|
|
9788
|
+
}`
|
|
9789
|
+
: `.${CONTAINER_ELEMENT_CLASS} {
|
|
9790
|
+
position: fixed;
|
|
9791
|
+
inset: 0;
|
|
9792
|
+
z-index: 2147483647;
|
|
9793
|
+
display: flex;
|
|
9794
|
+
justify-content: center;
|
|
9795
|
+
align-items: center;
|
|
9796
|
+
pointer-events: auto;
|
|
9797
|
+
background: rgba(0, 0, 0, 0);
|
|
9798
|
+
transition: background 0.2s ease-out;
|
|
9799
|
+
}`,
|
|
9800
|
+
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} {
|
|
9801
|
+
background: rgba(0, 0, 0, 0.8);
|
|
9802
|
+
}`,
|
|
9803
|
+
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER}::before {
|
|
9804
|
+
${hasCustomMountTarget ? 'position: absolute;' : ''}
|
|
9805
|
+
content: "";
|
|
9806
|
+
width: 5rem;
|
|
9807
|
+
height: 4rem;
|
|
9808
|
+
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');
|
|
9809
|
+
background-size: contain;
|
|
9810
|
+
background-repeat: no-repeat;
|
|
9811
|
+
background-position: center;
|
|
9812
|
+
filter: invert(1);
|
|
9813
|
+
}`,
|
|
9814
|
+
`.${CONTAINER_ELEMENT_CLASS} iframe {
|
|
9815
|
+
${hasCustomMountTarget ? '' : 'position: absolute;'}
|
|
9816
|
+
width: 100%;
|
|
9817
|
+
height: 100%;
|
|
9818
|
+
border-width: 0;
|
|
9819
|
+
|
|
9820
|
+
/* fix transparent bg, because iframe document has light scheme */
|
|
9821
|
+
color-scheme: light;
|
|
9822
|
+
}`,
|
|
9823
|
+
`.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} iframe {
|
|
9824
|
+
visibility: hidden;
|
|
9825
|
+
}`,
|
|
9826
|
+
!hasCustomMountTarget
|
|
9827
|
+
? `body.${BODY_CLASS} {
|
|
9828
|
+
overflow: hidden;
|
|
9829
|
+
}`
|
|
9830
|
+
: '',
|
|
9831
|
+
];
|
|
9832
|
+
let styleElement = document.getElementById(STYLES_ELEMENT_ID);
|
|
9833
|
+
if (!styleElement) {
|
|
9834
|
+
styleElement = document.createElement('style');
|
|
9835
|
+
styleElement.id = STYLES_ELEMENT_ID;
|
|
9836
|
+
styleElement.type = 'text/css';
|
|
9837
|
+
document.head.appendChild(styleElement);
|
|
9838
|
+
}
|
|
9839
|
+
styleElement.textContent = styles.join('\n');
|
|
9840
|
+
}
|
|
9841
|
+
function removeInjectedStyles() {
|
|
9842
|
+
const stylesElement = document.getElementById(STYLES_ELEMENT_ID);
|
|
9843
|
+
if (stylesElement) {
|
|
9844
|
+
stylesElement.remove();
|
|
9845
|
+
}
|
|
9846
|
+
}
|
|
9847
|
+
function createContainer() {
|
|
9848
|
+
const container = document.createElement('div');
|
|
9849
|
+
container.id = CONTAINER_ELEMENT_ID;
|
|
9850
|
+
container.classList.add(CONTAINER_ELEMENT_CLASS);
|
|
9851
|
+
return container;
|
|
9852
|
+
}
|
|
9853
|
+
function getContainer() {
|
|
9854
|
+
return document.getElementById(CONTAINER_ELEMENT_ID);
|
|
9855
|
+
}
|
|
9856
|
+
function appendToContainer(el) {
|
|
9857
|
+
const container = getContainer();
|
|
9858
|
+
container === null || container === void 0 ? void 0 : container.appendChild(el);
|
|
9859
|
+
}
|
|
9860
|
+
function deleteContainer() {
|
|
9861
|
+
const container = getContainer();
|
|
9862
|
+
if (container) {
|
|
9863
|
+
container.remove();
|
|
9864
|
+
}
|
|
9865
|
+
removeInjectedStyles();
|
|
9866
|
+
}
|
|
9867
|
+
function handleIframeUnmount(iframe) {
|
|
9868
|
+
const observer = new MutationObserver((mutationsList) => {
|
|
9869
|
+
for (const mutation of mutationsList) {
|
|
9870
|
+
for (const removedNode of mutation.removedNodes) {
|
|
9871
|
+
if (removedNode instanceof HTMLElement && removedNode.id === POPUP_ELEMENT_ID) {
|
|
9872
|
+
observer.disconnect();
|
|
9873
|
+
deleteContainer();
|
|
9874
|
+
return;
|
|
9875
|
+
}
|
|
9876
|
+
}
|
|
9877
|
+
}
|
|
9878
|
+
});
|
|
9879
|
+
const parent = iframe.parentNode;
|
|
9880
|
+
if (parent) {
|
|
9881
|
+
observer.observe(parent, {
|
|
9882
|
+
childList: true,
|
|
9883
|
+
});
|
|
9884
|
+
}
|
|
9885
|
+
else {
|
|
9886
|
+
console.warn(`iframe with ID "${POPUP_ELEMENT_ID}" has no parent node`);
|
|
9887
|
+
}
|
|
9888
|
+
}
|
|
8642
9889
|
|
|
8643
|
-
|
|
8644
|
-
|
|
8645
|
-
|
|
8646
|
-
|
|
8647
|
-
|
|
8648
|
-
|
|
8649
|
-
|
|
9890
|
+
const CreateIntegrationRequest = zod.z.object({
|
|
9891
|
+
name: zod.z.string().optional(),
|
|
9892
|
+
key: zod.z.string(),
|
|
9893
|
+
baseUri: zod.z.string(),
|
|
9894
|
+
logoUri: zod.z.string(),
|
|
9895
|
+
});
|
|
9896
|
+
const UpdateIntegrationRequest = zod.z.object({
|
|
9897
|
+
name: zod.z.string().optional(),
|
|
9898
|
+
key: zod.z.string().optional(),
|
|
9899
|
+
baseUri: zod.z.string().optional(),
|
|
9900
|
+
logoUri: zod.z.string().optional(),
|
|
9901
|
+
});
|
|
9902
|
+
const FindIntegrationsQuery = zod.z.object({}).merge(PaginationQuery).merge(SearchQuery);
|
|
9903
|
+
const OpenNewConnectionOptions = zod.z
|
|
9904
|
+
.object({
|
|
9905
|
+
allowMultipleConnections: zod.z.boolean().optional(),
|
|
9906
|
+
name: zod.z.string().optional(),
|
|
9907
|
+
connectorParameters: zod.z.any().optional(),
|
|
9908
|
+
})
|
|
9909
|
+
.merge(OpenConfigurationOptions);
|
|
9910
|
+
const IntegrationApiResponse = BaseIntegration.extend({
|
|
9911
|
+
connection: BaseConnection.optional(),
|
|
9912
|
+
spec: zod.z.any().optional(),
|
|
9913
|
+
});
|
|
8650
9914
|
|
|
8651
|
-
exports.
|
|
8652
|
-
(function (
|
|
8653
|
-
|
|
8654
|
-
|
|
8655
|
-
|
|
8656
|
-
exports.
|
|
8657
|
-
|
|
8658
|
-
|
|
8659
|
-
|
|
8660
|
-
|
|
8661
|
-
|
|
8662
|
-
|
|
8663
|
-
|
|
8664
|
-
|
|
8665
|
-
|
|
8666
|
-
|
|
8667
|
-
|
|
8668
|
-
|
|
8669
|
-
|
|
8670
|
-
|
|
8671
|
-
|
|
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(),
|
|
9915
|
+
exports.IntegrationElementLevel = void 0;
|
|
9916
|
+
(function (IntegrationElementLevel) {
|
|
9917
|
+
IntegrationElementLevel["UNIVERSAL"] = "universal";
|
|
9918
|
+
IntegrationElementLevel["CONNECTOR"] = "connector";
|
|
9919
|
+
IntegrationElementLevel["CONNECTION"] = "connection";
|
|
9920
|
+
})(exports.IntegrationElementLevel || (exports.IntegrationElementLevel = {}));
|
|
9921
|
+
exports.IntegrationElementType = void 0;
|
|
9922
|
+
(function (IntegrationElementType) {
|
|
9923
|
+
IntegrationElementType["APP_DATA_SCHEMA"] = "app-data-schema";
|
|
9924
|
+
IntegrationElementType["APP_EVENT_TYPE"] = "app-event-type";
|
|
9925
|
+
IntegrationElementType["DATA_SOURCE"] = "data-source";
|
|
9926
|
+
IntegrationElementType["SCHEMA"] = "schema";
|
|
9927
|
+
IntegrationElementType["FIELD_MAPPING"] = "field-mapping";
|
|
9928
|
+
IntegrationElementType["FLOW"] = "flow";
|
|
9929
|
+
IntegrationElementType["INTEGRATION"] = "integration";
|
|
9930
|
+
IntegrationElementType["ACTION"] = "action";
|
|
9931
|
+
IntegrationElementType["DATA_LINK_TABLE"] = "data-link-table";
|
|
9932
|
+
IntegrationElementType["EXTERNAL_EVENT"] = "external-event";
|
|
9933
|
+
})(exports.IntegrationElementType || (exports.IntegrationElementType = {}));
|
|
9934
|
+
|
|
9935
|
+
const ScenarioToDoApi = zod.z.object({
|
|
8710
9936
|
name: zod.z.string(),
|
|
9937
|
+
description: zod.z.string(),
|
|
9938
|
+
isComplete: zod.z.boolean(),
|
|
8711
9939
|
});
|
|
8712
|
-
const
|
|
9940
|
+
const ScenarioElementApi = zod.z.object({
|
|
9941
|
+
id: zod.z.string(),
|
|
9942
|
+
type: zod.z.nativeEnum(exports.IntegrationElementType),
|
|
9943
|
+
element: zod.z.any().optional(),
|
|
9944
|
+
});
|
|
9945
|
+
const FindScenariosQuery = zod.z.object({}).merge(SearchQuery).merge(PaginationQuery);
|
|
9946
|
+
const CreateScenarioRequest = zod.z.object({
|
|
9947
|
+
name: zod.z.string(),
|
|
8713
9948
|
key: zod.z.string(),
|
|
8714
|
-
|
|
8715
|
-
|
|
9949
|
+
elements: zod.z.array(ScenarioElementApi).optional(),
|
|
9950
|
+
todos: zod.z.array(ScenarioToDoApi).optional(),
|
|
9951
|
+
});
|
|
9952
|
+
const UpdateScenarioRequest = zod.z.object({
|
|
9953
|
+
name: zod.z.string().optional(),
|
|
9954
|
+
key: zod.z.string().optional(),
|
|
9955
|
+
elements: zod.z.array(ScenarioElementApi).optional(),
|
|
9956
|
+
todos: zod.z.array(ScenarioToDoApi).optional(),
|
|
9957
|
+
});
|
|
9958
|
+
const ScenarioApiResponse = BaseScenario.extend({
|
|
9959
|
+
appliedToIntegrations: zod.z.array(BaseIntegration).optional(),
|
|
8716
9960
|
});
|
|
8717
9961
|
|
|
8718
|
-
|
|
8719
|
-
(function (ActionRunLogStatus) {
|
|
8720
|
-
ActionRunLogStatus["SUCCESS"] = "success";
|
|
8721
|
-
ActionRunLogStatus["ERROR"] = "error";
|
|
8722
|
-
})(exports.ActionRunLogStatus || (exports.ActionRunLogStatus = {}));
|
|
9962
|
+
const ScreenApiResponse = BaseScreen;
|
|
8723
9963
|
|
|
8724
|
-
|
|
8725
|
-
|
|
9964
|
+
const CreateCustomerRequest = zod.z.object({
|
|
9965
|
+
name: zod.z.string().optional(),
|
|
9966
|
+
internalId: zod.z.string(),
|
|
9967
|
+
fields: zod.z.any().optional(),
|
|
9968
|
+
credentials: zod.z.any().optional(),
|
|
9969
|
+
});
|
|
9970
|
+
const UpdateCustomerRequest = zod.z.object({
|
|
9971
|
+
name: zod.z.string().optional(),
|
|
9972
|
+
internalId: zod.z.string().optional(),
|
|
9973
|
+
fields: zod.z.any().optional(),
|
|
9974
|
+
credentials: zod.z.any().optional(),
|
|
9975
|
+
});
|
|
9976
|
+
const FindCustomersQuery = zod.z
|
|
9977
|
+
.object({
|
|
9978
|
+
isTest: zodBooleanCoercion().optional(),
|
|
9979
|
+
})
|
|
9980
|
+
.merge(PaginationQuery)
|
|
9981
|
+
.merge(SearchQuery);
|
|
9982
|
+
const CustomerSelector = zod.z.object({ id: zod.z.string() });
|
|
9983
|
+
const CustomerApiResponse = BaseCustomer;
|
|
9984
|
+
|
|
9985
|
+
const FieldMappingApiResponse = BaseFieldMapping.extend({
|
|
9986
|
+
integration: BaseIntegration.optional(),
|
|
9987
|
+
appliedToIntegrations: AppliedToIntegrations(BaseFieldMapping).optional(),
|
|
9988
|
+
});
|
|
8726
9989
|
|
|
8727
|
-
|
|
8728
|
-
|
|
8729
|
-
|
|
8730
|
-
|
|
8731
|
-
|
|
8732
|
-
|
|
9990
|
+
const FieldMappingInstanceApiResponse = BaseFieldMappingInstance.extend({
|
|
9991
|
+
user: BaseCustomer.optional(),
|
|
9992
|
+
connection: BaseConnection.optional(),
|
|
9993
|
+
integration: BaseIntegration.optional(),
|
|
9994
|
+
fieldMapping: BaseFieldMapping.optional(),
|
|
9995
|
+
dataSourceInstance: DataSourceInstanceApiResponse.optional(),
|
|
9996
|
+
});
|
|
8733
9997
|
|
|
8734
|
-
|
|
8735
|
-
(function (FlowRunState) {
|
|
8736
|
-
FlowRunState["QUEUED"] = "queued";
|
|
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 = {}));
|
|
9998
|
+
const DataLinkTableApiResponse = BaseDataLinkTable;
|
|
8750
9999
|
|
|
8751
|
-
|
|
8752
|
-
|
|
8753
|
-
|
|
8754
|
-
|
|
8755
|
-
|
|
8756
|
-
|
|
8757
|
-
ScenarioTemplateCategory["DataEnrichment"] = "data-enrichment";
|
|
8758
|
-
})(exports.ScenarioTemplateCategory || (exports.ScenarioTemplateCategory = {}));
|
|
10000
|
+
const DataLinkTableInstanceApiResponse = BaseDataLinkTableInstance.extend({
|
|
10001
|
+
dataLinkTable: BaseDataLinkTable.optional(),
|
|
10002
|
+
connection: BaseConnection.optional(),
|
|
10003
|
+
integration: BaseIntegration.optional(),
|
|
10004
|
+
user: BaseCustomer.optional(),
|
|
10005
|
+
});
|
|
8759
10006
|
|
|
8760
|
-
|
|
8761
|
-
|
|
8762
|
-
|
|
8763
|
-
|
|
8764
|
-
|
|
8765
|
-
|
|
8766
|
-
|
|
8767
|
-
|
|
8768
|
-
|
|
8769
|
-
|
|
8770
|
-
|
|
10007
|
+
const AppEventTypeApiResponse = BaseAppEventType;
|
|
10008
|
+
|
|
10009
|
+
const AppEventSubscriptionApiResponse = BaseAppEventSubscription.extend({
|
|
10010
|
+
appEventType: BaseAppEventType.optional(),
|
|
10011
|
+
user: BaseCustomer.optional(),
|
|
10012
|
+
});
|
|
10013
|
+
|
|
10014
|
+
const AppDataSchemaApiResponse = BaseAppDataSchema;
|
|
10015
|
+
|
|
10016
|
+
const AppDataSchemaInstanceApiResponse = BaseAppDataSchemaInstance.extend({
|
|
10017
|
+
user: BaseCustomer.optional(),
|
|
10018
|
+
appDataSchema: BaseAppDataSchema.optional(),
|
|
10019
|
+
});
|
|
10020
|
+
|
|
10021
|
+
const ListExternalEventLogRecordsQuery = CommonListElementsQuery.extend({
|
|
10022
|
+
connectionId: zod.z.string().optional(),
|
|
10023
|
+
integrationId: zod.z.string().optional(),
|
|
10024
|
+
externalEventSubscriptionId: zod.z.string().optional(),
|
|
10025
|
+
status: zod.z.nativeEnum(exports.ExternalEventLogStatus).optional(),
|
|
10026
|
+
});
|
|
10027
|
+
const ExternalEventLogRecordApiResponse = BaseExternalEventLogRecord.extend({
|
|
10028
|
+
user: BaseCustomer.optional(),
|
|
10029
|
+
externalEventSubscription: BaseExternalEventSubscription.optional(),
|
|
10030
|
+
integration: BaseIntegration.optional(),
|
|
10031
|
+
connection: BaseConnection.optional(),
|
|
10032
|
+
});
|
|
10033
|
+
|
|
10034
|
+
const ListExternalEventPullsQuery = CommonListElementsQuery.extend({
|
|
10035
|
+
connectionId: zod.z.string().optional(),
|
|
10036
|
+
integrationId: zod.z.string().optional(),
|
|
10037
|
+
externalEventSubscriptionId: zod.z.string().optional(),
|
|
10038
|
+
status: zod.z.nativeEnum(exports.ExternalEventPullStatus).optional(),
|
|
10039
|
+
});
|
|
10040
|
+
const ExternalEventPullApiResponse = BaseExternalEventPull.extend({
|
|
10041
|
+
user: BaseCustomer.optional(),
|
|
10042
|
+
externalEventSubscription: BaseExternalEventSubscription.optional(),
|
|
10043
|
+
integration: BaseIntegration.optional(),
|
|
10044
|
+
connection: BaseConnection.optional(),
|
|
10045
|
+
});
|
|
10046
|
+
|
|
10047
|
+
const ExternalEventSubscriptionApiResponse = BaseExternalEventSubscription.extend({
|
|
10048
|
+
user: BaseCustomer.optional(),
|
|
10049
|
+
connection: BaseConnection.optional(),
|
|
10050
|
+
integration: BaseIntegration.optional(),
|
|
10051
|
+
});
|
|
10052
|
+
|
|
10053
|
+
const AppEventLogRecordApiResponse = zod.z.object({
|
|
10054
|
+
id: zod.z.string(),
|
|
10055
|
+
name: zod.z.string().optional(),
|
|
10056
|
+
userId: zod.z.string(),
|
|
10057
|
+
user: BaseCustomer.optional(),
|
|
10058
|
+
appEventTypeId: zod.z.string(),
|
|
10059
|
+
appEventType: BaseAppEventType.optional(),
|
|
10060
|
+
appEventSubscriptionId: zod.z.string(),
|
|
10061
|
+
appEventSubscription: BaseAppEventSubscription.optional(),
|
|
10062
|
+
event: zod.z.any(),
|
|
10063
|
+
datetime: zod.z.string(),
|
|
10064
|
+
launchedFlowRunIds: zod.z.array(zod.z.string()),
|
|
10065
|
+
});
|
|
8771
10066
|
|
|
8772
10067
|
class DependencyError extends IntegrationAppError {
|
|
8773
10068
|
constructor(arg, workspaceElementReference) {
|
|
@@ -8840,7 +10135,7 @@ function getChildNodeKeys(flow, nodeKey) {
|
|
|
8840
10135
|
return (nodeLinks
|
|
8841
10136
|
.map((nodeLink) => nodeLink.key)
|
|
8842
10137
|
.filter(Boolean)
|
|
8843
|
-
.filter((k) => { var _a; return !!((_a = flow.nodes) === null || _a === void 0 ? void 0 : _a[k]); }));
|
|
10138
|
+
.filter((k) => { var _a; return k && !!((_a = flow.nodes) === null || _a === void 0 ? void 0 : _a[k]); }));
|
|
8844
10139
|
}
|
|
8845
10140
|
function getDownstreamNodeKeys(flow, nodeKey) {
|
|
8846
10141
|
const linkedKeys = getChildNodeKeys(flow, nodeKey);
|
|
@@ -9031,6 +10326,12 @@ const WorkspaceElementSpecs = {
|
|
|
9031
10326
|
name: 'App Event Subscription',
|
|
9032
10327
|
namePlural: 'App Event Subscriptions',
|
|
9033
10328
|
},
|
|
10329
|
+
[exports.WorkspaceElementType.AppEventLogRecord]: {
|
|
10330
|
+
type: exports.WorkspaceElementType.AppEventLogRecord,
|
|
10331
|
+
apiPath: 'app-events',
|
|
10332
|
+
name: 'App Event Log Record',
|
|
10333
|
+
namePlural: 'App Event Log Records',
|
|
10334
|
+
},
|
|
9034
10335
|
[exports.WorkspaceElementType.AppDataSchema]: {
|
|
9035
10336
|
type: exports.WorkspaceElementType.AppDataSchema,
|
|
9036
10337
|
apiPath: 'app-data-schemas',
|
|
@@ -9413,83 +10714,33 @@ class DataForm {
|
|
|
9413
10714
|
|
|
9414
10715
|
function parseDate(value) {
|
|
9415
10716
|
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 = {}));
|
|
10717
|
+
if (typeof value === 'number') {
|
|
10718
|
+
timestamp = value;
|
|
10719
|
+
}
|
|
10720
|
+
else if (typeof value === 'string') {
|
|
10721
|
+
timestamp = Date.parse(value);
|
|
10722
|
+
if (isNaN(timestamp)) {
|
|
10723
|
+
timestamp = undefined;
|
|
10724
|
+
}
|
|
10725
|
+
if (!timestamp && Number(value) > 1000000000) {
|
|
10726
|
+
timestamp = Number(value);
|
|
10727
|
+
}
|
|
10728
|
+
}
|
|
10729
|
+
if (timestamp) {
|
|
10730
|
+
return timestampToDate(timestamp);
|
|
10731
|
+
}
|
|
10732
|
+
else {
|
|
10733
|
+
return undefined;
|
|
10734
|
+
}
|
|
10735
|
+
}
|
|
10736
|
+
function timestampToDate(value) {
|
|
10737
|
+
if (Math.round(value).toString().length < 13) {
|
|
10738
|
+
return new Date(value * 1000);
|
|
10739
|
+
}
|
|
10740
|
+
else {
|
|
10741
|
+
return new Date(value);
|
|
10742
|
+
}
|
|
10743
|
+
}
|
|
9493
10744
|
|
|
9494
10745
|
exports.UsageType = void 0;
|
|
9495
10746
|
(function (UsageType) {
|
|
@@ -9621,7 +10872,7 @@ function getFlowRunVariableSchema() {
|
|
|
9621
10872
|
exports.WorkspaceOnboardingStep = void 0;
|
|
9622
10873
|
(function (WorkspaceOnboardingStep) {
|
|
9623
10874
|
WorkspaceOnboardingStep["AddConnectors"] = "add-connectors";
|
|
9624
|
-
WorkspaceOnboardingStep["ConnectYourApp"] = "
|
|
10875
|
+
WorkspaceOnboardingStep["ConnectYourApp"] = "first-connection";
|
|
9625
10876
|
WorkspaceOnboardingStep["BuildIntegrations"] = "build-integrations";
|
|
9626
10877
|
WorkspaceOnboardingStep["Completed"] = "completed";
|
|
9627
10878
|
})(exports.WorkspaceOnboardingStep || (exports.WorkspaceOnboardingStep = {}));
|
|
@@ -9629,7 +10880,14 @@ exports.WorkspaceNotificationType = void 0;
|
|
|
9629
10880
|
(function (WorkspaceNotificationType) {
|
|
9630
10881
|
WorkspaceNotificationType["WorkspaceUpdate"] = "workspace-update";
|
|
9631
10882
|
WorkspaceNotificationType["CopilotActivity"] = "copilot-activity";
|
|
10883
|
+
WorkspaceNotificationType["LocalClientUpdate"] = "local-client-update";
|
|
9632
10884
|
})(exports.WorkspaceNotificationType || (exports.WorkspaceNotificationType = {}));
|
|
10885
|
+
exports.LimitUnits = void 0;
|
|
10886
|
+
(function (LimitUnits) {
|
|
10887
|
+
LimitUnits["Number"] = "number";
|
|
10888
|
+
LimitUnits["Msec"] = "msec";
|
|
10889
|
+
LimitUnits["Mb"] = "Mb";
|
|
10890
|
+
})(exports.LimitUnits || (exports.LimitUnits = {}));
|
|
9633
10891
|
exports.WorkspaceType = void 0;
|
|
9634
10892
|
(function (WorkspaceType) {
|
|
9635
10893
|
WorkspaceType["PRODUCTION"] = "production";
|
|
@@ -9926,231 +11184,6 @@ class IntegrationLevelActionsListAccessor extends IntegrationLevelElementsListAc
|
|
|
9926
11184
|
}
|
|
9927
11185
|
}
|
|
9928
11186
|
|
|
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
11187
|
class ConnectionLevelElementAccessor {
|
|
10155
11188
|
constructor(client, connectionSelector, selector, elementKey, query) {
|
|
10156
11189
|
this.client = client;
|
|
@@ -11372,6 +12405,11 @@ class ExternalEventSubscriptionAccessor {
|
|
|
11372
12405
|
}
|
|
11373
12406
|
}
|
|
11374
12407
|
|
|
12408
|
+
exports.WorkspaceSyncEventType = void 0;
|
|
12409
|
+
(function (WorkspaceSyncEventType) {
|
|
12410
|
+
WorkspaceSyncEventType["ElementUpdate"] = "element-update";
|
|
12411
|
+
})(exports.WorkspaceSyncEventType || (exports.WorkspaceSyncEventType = {}));
|
|
12412
|
+
|
|
11375
12413
|
function decodeJWT(token) {
|
|
11376
12414
|
if (typeof token !== 'string') {
|
|
11377
12415
|
return undefined;
|
|
@@ -11465,6 +12503,13 @@ class IntegrationAppApiClient {
|
|
|
11465
12503
|
async delete(uri, data, options) {
|
|
11466
12504
|
return this.makeApiRequest('DELETE', { ...(options !== null && options !== void 0 ? options : {}), url: uri, data });
|
|
11467
12505
|
}
|
|
12506
|
+
async createEventSource(uri, queryParams) {
|
|
12507
|
+
const token = await this.getToken();
|
|
12508
|
+
const allParams = { ...queryParams, token };
|
|
12509
|
+
const queryString = qs.stringify(omitBy(allParams, isEmptyValue));
|
|
12510
|
+
const urlWithToken = `${this.apiUri}/${uri}?${queryString}`;
|
|
12511
|
+
return new EventSource(urlWithToken);
|
|
12512
|
+
}
|
|
11468
12513
|
async getEmbedUri(page, pageParams, options) {
|
|
11469
12514
|
var _a;
|
|
11470
12515
|
const paramsWithToken = {
|
|
@@ -11645,6 +12690,9 @@ class IntegrationAppClient extends IntegrationAppApiClient {
|
|
|
11645
12690
|
get scenarios() {
|
|
11646
12691
|
return new ScenariosAccessor(this);
|
|
11647
12692
|
}
|
|
12693
|
+
async createEventSource(uri, queryParams) {
|
|
12694
|
+
return super.createEventSource(uri, queryParams);
|
|
12695
|
+
}
|
|
11648
12696
|
async connectionRequest(connectionId, uri, data) {
|
|
11649
12697
|
return this.post(`connections/${connectionId}/execute-request`, {
|
|
11650
12698
|
key: uri,
|
|
@@ -11658,22 +12706,58 @@ injectFormulaCatalog(getFormula, isFormula, hasFormulas);
|
|
|
11658
12706
|
exports.ACTIONS = ACTIONS;
|
|
11659
12707
|
exports.AccessDeniedError = AccessDeniedError;
|
|
11660
12708
|
exports.ActionAccessor = ActionAccessor;
|
|
12709
|
+
exports.ActionApiResponse = ActionApiResponse;
|
|
12710
|
+
exports.ActionDependency = ActionDependency;
|
|
11661
12711
|
exports.ActionInstanceAccessor = ActionInstanceAccessor;
|
|
12712
|
+
exports.ActionInstanceApiResponse = ActionInstanceApiResponse;
|
|
11662
12713
|
exports.ActionInstanceSetupError = ActionInstanceSetupError;
|
|
11663
12714
|
exports.ActionInstancesAccessor = ActionInstancesAccessor;
|
|
11664
12715
|
exports.ActionRunError = ActionRunError;
|
|
12716
|
+
exports.ActionRunLogRecordApiResponse = ActionRunLogRecordApiResponse;
|
|
12717
|
+
exports.ActionRunResponse = ActionRunResponse;
|
|
11665
12718
|
exports.ActionsAccessor = ActionsAccessor;
|
|
11666
|
-
exports.
|
|
12719
|
+
exports.ApiRequestSpec = ApiRequestSpec;
|
|
11667
12720
|
exports.AppDataSchemaAccessor = AppDataSchemaAccessor;
|
|
12721
|
+
exports.AppDataSchemaApiResponse = AppDataSchemaApiResponse;
|
|
11668
12722
|
exports.AppDataSchemaInstanceAccessor = AppDataSchemaInstanceAccessor;
|
|
12723
|
+
exports.AppDataSchemaInstanceApiResponse = AppDataSchemaInstanceApiResponse;
|
|
11669
12724
|
exports.AppDataSchemaInstancesAccessor = AppDataSchemaInstancesAccessor;
|
|
11670
12725
|
exports.AppDataSchemasAccessor = AppDataSchemasAccessor;
|
|
12726
|
+
exports.AppEventLogRecordApiResponse = AppEventLogRecordApiResponse;
|
|
11671
12727
|
exports.AppEventSubscriptionAccessor = AppEventSubscriptionAccessor;
|
|
12728
|
+
exports.AppEventSubscriptionApiResponse = AppEventSubscriptionApiResponse;
|
|
11672
12729
|
exports.AppEventSubscriptionsAccessor = AppEventSubscriptionsAccessor;
|
|
11673
12730
|
exports.AppEventTypeAccessor = AppEventTypeAccessor;
|
|
12731
|
+
exports.AppEventTypeApiResponse = AppEventTypeApiResponse;
|
|
11674
12732
|
exports.AppEventTypesAccessor = AppEventTypesAccessor;
|
|
12733
|
+
exports.AppliedToIntegrations = AppliedToIntegrations;
|
|
11675
12734
|
exports.BadRequestError = BadRequestError;
|
|
12735
|
+
exports.BaseAction = BaseAction;
|
|
12736
|
+
exports.BaseActionInstance = BaseActionInstance;
|
|
12737
|
+
exports.BaseActionRunLogRecord = BaseActionRunLogRecord;
|
|
12738
|
+
exports.BaseAppDataSchema = BaseAppDataSchema;
|
|
12739
|
+
exports.BaseAppDataSchemaInstance = BaseAppDataSchemaInstance;
|
|
12740
|
+
exports.BaseAppEventSubscription = BaseAppEventSubscription;
|
|
12741
|
+
exports.BaseAppEventType = BaseAppEventType;
|
|
12742
|
+
exports.BaseConnection = BaseConnection;
|
|
12743
|
+
exports.BaseCustomer = BaseCustomer;
|
|
12744
|
+
exports.BaseDataLinkTable = BaseDataLinkTable;
|
|
12745
|
+
exports.BaseDataLinkTableInstance = BaseDataLinkTableInstance;
|
|
12746
|
+
exports.BaseDataSource = BaseDataSource;
|
|
12747
|
+
exports.BaseDataSourceInstance = BaseDataSourceInstance;
|
|
12748
|
+
exports.BaseExternalEvent = BaseExternalEvent;
|
|
12749
|
+
exports.BaseExternalEventLogRecord = BaseExternalEventLogRecord;
|
|
12750
|
+
exports.BaseExternalEventPull = BaseExternalEventPull;
|
|
12751
|
+
exports.BaseExternalEventSubscription = BaseExternalEventSubscription;
|
|
12752
|
+
exports.BaseFieldMapping = BaseFieldMapping;
|
|
12753
|
+
exports.BaseFieldMappingInstance = BaseFieldMappingInstance;
|
|
12754
|
+
exports.BaseFlow = BaseFlow;
|
|
12755
|
+
exports.BaseFlowInstance = BaseFlowInstance;
|
|
12756
|
+
exports.BaseFlowRun = BaseFlowRun;
|
|
12757
|
+
exports.BaseIntegration = BaseIntegration;
|
|
11676
12758
|
exports.BaseMembraneInterface = BaseMembraneInterface;
|
|
12759
|
+
exports.BaseScenario = BaseScenario;
|
|
12760
|
+
exports.BaseScreen = BaseScreen;
|
|
11677
12761
|
exports.BaseWorkspaceElement = BaseWorkspaceElement;
|
|
11678
12762
|
exports.CONNECTOR_AUTH_TYPES = CONNECTOR_AUTH_TYPES;
|
|
11679
12763
|
exports.CONNECTOR_CATEGORIES = CONNECTOR_CATEGORIES;
|
|
@@ -11683,9 +12767,13 @@ exports.CONNECTOR_EVENTS_DIR = CONNECTOR_EVENTS_DIR;
|
|
|
11683
12767
|
exports.CONNECTOR_GLOBAL_WEBHOOKS_DIR = CONNECTOR_GLOBAL_WEBHOOKS_DIR;
|
|
11684
12768
|
exports.CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES = CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES;
|
|
11685
12769
|
exports.CONNECTOR_OPERATIONS_DIR = CONNECTOR_OPERATIONS_DIR;
|
|
12770
|
+
exports.CommonInstancesListQuery = CommonInstancesListQuery;
|
|
12771
|
+
exports.CommonIntegrationOrConnectionQuery = CommonIntegrationOrConnectionQuery;
|
|
12772
|
+
exports.CommonListElementsQuery = CommonListElementsQuery;
|
|
11686
12773
|
exports.ConcurrencyError = ConcurrencyError;
|
|
11687
12774
|
exports.ConfigurationError = ConfigurationError;
|
|
11688
12775
|
exports.ConnectionAccessor = ConnectionAccessor;
|
|
12776
|
+
exports.ConnectionApiResponse = ConnectionApiResponse;
|
|
11689
12777
|
exports.ConnectionDataCollectionAccessor = ConnectionDataCollectionAccessor;
|
|
11690
12778
|
exports.ConnectionError = ConnectionError;
|
|
11691
12779
|
exports.ConnectionLevelActionAccessor = ConnectionLevelActionAccessor;
|
|
@@ -11696,8 +12784,11 @@ exports.ConnectionLevelFieldMappingAccessor = ConnectionLevelFieldMappingAccesso
|
|
|
11696
12784
|
exports.ConnectionLevelFieldMappingsAccessor = ConnectionLevelFieldMappingsAccessor;
|
|
11697
12785
|
exports.ConnectionLevelFlowAccessor = ConnectionLevelFlowAccessor;
|
|
11698
12786
|
exports.ConnectionLevelFlowsAccessor = ConnectionLevelFlowsAccessor;
|
|
12787
|
+
exports.ConnectionMessagePayload = ConnectionMessagePayload;
|
|
11699
12788
|
exports.ConnectionOperationAccessor = ConnectionOperationAccessor;
|
|
11700
12789
|
exports.ConnectionProxy = ConnectionProxy;
|
|
12790
|
+
exports.ConnectionRequest = ConnectionRequest;
|
|
12791
|
+
exports.ConnectionSelector = ConnectionSelector;
|
|
11701
12792
|
exports.ConnectionSpec = ConnectionSpec;
|
|
11702
12793
|
exports.ConnectionsAccessor = ConnectionsAccessor;
|
|
11703
12794
|
exports.ConnectorAuthMethodTypes = ConnectorAuthMethodTypes;
|
|
@@ -11707,49 +12798,65 @@ exports.ConnectorDataLocationTypes = ConnectorDataLocationTypes;
|
|
|
11707
12798
|
exports.ConnectorEventHandlerMethods = ConnectorEventHandlerMethods;
|
|
11708
12799
|
exports.ConnectorOperationMethodImplementationTypes = ConnectorOperationMethodImplementationTypes;
|
|
11709
12800
|
exports.CopilotActivityScope = CopilotActivityScope;
|
|
12801
|
+
exports.CreateActionInstanceRequest = CreateActionInstanceRequest;
|
|
12802
|
+
exports.CreateActionRequest = CreateActionRequest;
|
|
11710
12803
|
exports.CreateConnectionRequest = CreateConnectionRequest;
|
|
12804
|
+
exports.CreateCustomerRequest = CreateCustomerRequest;
|
|
12805
|
+
exports.CreateDataSourceInstanceRequest = CreateDataSourceInstanceRequest;
|
|
12806
|
+
exports.CreateDataSourceRequest = CreateDataSourceRequest;
|
|
12807
|
+
exports.CreateFlowNodeRequest = CreateFlowNodeRequest;
|
|
12808
|
+
exports.CreateFlowRequest = CreateFlowRequest;
|
|
12809
|
+
exports.CreateFlowRunRequest = CreateFlowRunRequest;
|
|
12810
|
+
exports.CreateIntegrationRequest = CreateIntegrationRequest;
|
|
12811
|
+
exports.CreateScenarioRequest = CreateScenarioRequest;
|
|
11711
12812
|
exports.CustomCodeError = CustomCodeError;
|
|
11712
12813
|
exports.CustomerAccessor = CustomerAccessor;
|
|
12814
|
+
exports.CustomerApiResponse = CustomerApiResponse;
|
|
12815
|
+
exports.CustomerSelector = CustomerSelector;
|
|
11713
12816
|
exports.CustomersAccessor = CustomersAccessor;
|
|
11714
12817
|
exports.DATA_RECORD_SCHEMA = DATA_RECORD_SCHEMA;
|
|
11715
12818
|
exports.DEFAULT_FULL_SYNC_INTERVAL_SECONDS = DEFAULT_FULL_SYNC_INTERVAL_SECONDS;
|
|
11716
12819
|
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.
|
|
12820
|
+
exports.DataCollectionCreateRequest = DataCollectionCreateRequest;
|
|
12821
|
+
exports.DataCollectionCreateResponse = DataCollectionCreateResponse;
|
|
12822
|
+
exports.DataCollectionCreateSpec = DataCollectionCreateSpec;
|
|
12823
|
+
exports.DataCollectionDeleteRequest = DataCollectionDeleteRequest;
|
|
12824
|
+
exports.DataCollectionDeleteResponse = DataCollectionDeleteResponse;
|
|
12825
|
+
exports.DataCollectionDeleteSpec = DataCollectionDeleteSpec;
|
|
12826
|
+
exports.DataCollectionEventTypeSpec = DataCollectionEventTypeSpec;
|
|
12827
|
+
exports.DataCollectionEventsSpec = DataCollectionEventsSpec;
|
|
12828
|
+
exports.DataCollectionFindByIdRequest = DataCollectionFindByIdRequest;
|
|
12829
|
+
exports.DataCollectionFindByIdResponse = DataCollectionFindByIdResponse;
|
|
12830
|
+
exports.DataCollectionFindByIdSpec = DataCollectionFindByIdSpec;
|
|
12831
|
+
exports.DataCollectionFindRequest = DataCollectionFindRequest;
|
|
12832
|
+
exports.DataCollectionFindResponse = DataCollectionFindResponse;
|
|
12833
|
+
exports.DataCollectionFindSpec = DataCollectionFindSpec;
|
|
12834
|
+
exports.DataCollectionListRequest = DataCollectionListRequest;
|
|
12835
|
+
exports.DataCollectionListResponse = DataCollectionListResponse;
|
|
12836
|
+
exports.DataCollectionListResponseDrilldown = DataCollectionListResponseDrilldown;
|
|
12837
|
+
exports.DataCollectionListSpec = DataCollectionListSpec;
|
|
12838
|
+
exports.DataCollectionMatchRequest = DataCollectionMatchRequest;
|
|
12839
|
+
exports.DataCollectionMatchResponse = DataCollectionMatchResponse;
|
|
12840
|
+
exports.DataCollectionMatchSpec = DataCollectionMatchSpec;
|
|
12841
|
+
exports.DataCollectionMethodRequest = DataCollectionMethodRequest;
|
|
12842
|
+
exports.DataCollectionMethodSpec = DataCollectionMethodSpec;
|
|
12843
|
+
exports.DataCollectionSearchRequest = DataCollectionSearchRequest;
|
|
12844
|
+
exports.DataCollectionSearchResponse = DataCollectionSearchResponse;
|
|
12845
|
+
exports.DataCollectionSearchSpec = DataCollectionSearchSpec;
|
|
12846
|
+
exports.DataCollectionSpec = DataCollectionSpec;
|
|
12847
|
+
exports.DataCollectionUdmSpec = DataCollectionUdmSpec;
|
|
12848
|
+
exports.DataCollectionUdmsSpec = DataCollectionUdmsSpec;
|
|
12849
|
+
exports.DataCollectionUpdateRequest = DataCollectionUpdateRequest;
|
|
12850
|
+
exports.DataCollectionUpdateResponse = DataCollectionUpdateResponse;
|
|
12851
|
+
exports.DataCollectionUpdateSpec = DataCollectionUpdateSpec;
|
|
11749
12852
|
exports.DataFilterCondition = DataFilterCondition;
|
|
11750
12853
|
exports.DataForm = DataForm;
|
|
12854
|
+
exports.DataLink = DataLink;
|
|
11751
12855
|
exports.DataLinkTableAccessor = DataLinkTableAccessor;
|
|
12856
|
+
exports.DataLinkTableApiResponse = DataLinkTableApiResponse;
|
|
12857
|
+
exports.DataLinkTableConfig = DataLinkTableConfig;
|
|
11752
12858
|
exports.DataLinkTableInstanceAccessor = DataLinkTableInstanceAccessor;
|
|
12859
|
+
exports.DataLinkTableInstanceApiResponse = DataLinkTableInstanceApiResponse;
|
|
11753
12860
|
exports.DataLinkTableInstancesAccessor = DataLinkTableInstancesAccessor;
|
|
11754
12861
|
exports.DataLinkTablesAccessor = DataLinkTablesAccessor;
|
|
11755
12862
|
exports.DataLocationMethodImplementationTypes = DataLocationMethodImplementationTypes;
|
|
@@ -11758,10 +12865,13 @@ exports.DataLocatorStep = DataLocatorStep;
|
|
|
11758
12865
|
exports.DataLocatorStepArrayItem = DataLocatorStepArrayItem;
|
|
11759
12866
|
exports.DataLocatorStepObjectProperty = DataLocatorStepObjectProperty;
|
|
11760
12867
|
exports.DataRecordSchema = DataRecordSchema;
|
|
11761
|
-
exports.
|
|
12868
|
+
exports.DataSchema = DataSchema;
|
|
11762
12869
|
exports.DataSourceAccessor = DataSourceAccessor;
|
|
12870
|
+
exports.DataSourceApiResponse = DataSourceApiResponse;
|
|
11763
12871
|
exports.DataSourceInstanceAccessor = DataSourceInstanceAccessor;
|
|
12872
|
+
exports.DataSourceInstanceApiResponse = DataSourceInstanceApiResponse;
|
|
11764
12873
|
exports.DataSourceInstancesAccessor = DataSourceInstancesAccessor;
|
|
12874
|
+
exports.DataSourceUnitConfig = DataSourceUnitConfig;
|
|
11765
12875
|
exports.DataSourcesAccessor = DataSourcesAccessor;
|
|
11766
12876
|
exports.DependencyError = DependencyError;
|
|
11767
12877
|
exports.DownstreamFlowNodeRunSchema = DownstreamFlowNodeRunSchema;
|
|
@@ -11770,20 +12880,50 @@ exports.ElementAccessor = ElementAccessor;
|
|
|
11770
12880
|
exports.ElementInstanceAccessor = ElementInstanceAccessor;
|
|
11771
12881
|
exports.ElementInstanceListAccessor = ElementInstanceListAccessor;
|
|
11772
12882
|
exports.ElementListAccessor = ElementListAccessor;
|
|
12883
|
+
exports.ElementsExportFields = ElementsExportFields;
|
|
11773
12884
|
exports.ErrorData = ErrorData;
|
|
11774
12885
|
exports.ErrorDataSchema = ErrorDataSchema;
|
|
12886
|
+
exports.ExternalEvent = ExternalEvent;
|
|
12887
|
+
exports.ExternalEventLogRecordApiResponse = ExternalEventLogRecordApiResponse;
|
|
12888
|
+
exports.ExternalEventPullApiResponse = ExternalEventPullApiResponse;
|
|
11775
12889
|
exports.ExternalEventSubscriptionAccessor = ExternalEventSubscriptionAccessor;
|
|
12890
|
+
exports.ExternalEventSubscriptionApiResponse = ExternalEventSubscriptionApiResponse;
|
|
12891
|
+
exports.ExternalEventSubscriptionConfig = ExternalEventSubscriptionConfig;
|
|
11776
12892
|
exports.ExternalEventSubscriptionsAccessor = ExternalEventSubscriptionsAccessor;
|
|
12893
|
+
exports.ExternalEventUnitConfig = ExternalEventUnitConfig;
|
|
11777
12894
|
exports.FLOW_NODE_SPECS = FLOW_NODE_SPECS;
|
|
11778
12895
|
exports.FieldMappingAccessor = FieldMappingAccessor;
|
|
12896
|
+
exports.FieldMappingApiResponse = FieldMappingApiResponse;
|
|
11779
12897
|
exports.FieldMappingInstanceAccessor = FieldMappingInstanceAccessor;
|
|
12898
|
+
exports.FieldMappingInstanceApiResponse = FieldMappingInstanceApiResponse;
|
|
11780
12899
|
exports.FieldMappingInstancesAccessor = FieldMappingInstancesAccessor;
|
|
12900
|
+
exports.FieldMappingUnitConfig = FieldMappingUnitConfig;
|
|
11781
12901
|
exports.FieldMappingsAccessor = FieldMappingsAccessor;
|
|
12902
|
+
exports.FindActionInstancesQuery = FindActionInstancesQuery;
|
|
12903
|
+
exports.FindActionsQuery = FindActionsQuery;
|
|
12904
|
+
exports.FindConnectionsQuery = FindConnectionsQuery;
|
|
11782
12905
|
exports.FindConnectionsResponse = FindConnectionsResponse;
|
|
12906
|
+
exports.FindCustomersQuery = FindCustomersQuery;
|
|
12907
|
+
exports.FindDataSourceEventsQuery = FindDataSourceEventsQuery;
|
|
12908
|
+
exports.FindDataSourceInstanceSyncsQuery = FindDataSourceInstanceSyncsQuery;
|
|
12909
|
+
exports.FindDataSourceInstancesQuery = FindDataSourceInstancesQuery;
|
|
12910
|
+
exports.FindDataSourceSyncsQuery = FindDataSourceSyncsQuery;
|
|
12911
|
+
exports.FindDataSourcesQuery = FindDataSourcesQuery;
|
|
12912
|
+
exports.FindFlowInstancesQuery = FindFlowInstancesQuery;
|
|
12913
|
+
exports.FindFlowRunsQuery = FindFlowRunsQuery;
|
|
12914
|
+
exports.FindFlowRunsResponse = FindFlowRunsResponse;
|
|
12915
|
+
exports.FindFlowsQuery = FindFlowsQuery;
|
|
12916
|
+
exports.FindIntegrationsQuery = FindIntegrationsQuery;
|
|
12917
|
+
exports.FindScenariosQuery = FindScenariosQuery;
|
|
11783
12918
|
exports.FlowAccessor = FlowAccessor;
|
|
12919
|
+
exports.FlowApiResponse = FlowApiResponse;
|
|
11784
12920
|
exports.FlowInstanceAccessor = FlowInstanceAccessor;
|
|
12921
|
+
exports.FlowInstanceApiResponse = FlowInstanceApiResponse;
|
|
12922
|
+
exports.FlowInstanceNode = FlowInstanceNode;
|
|
11785
12923
|
exports.FlowInstanceSetupError = FlowInstanceSetupError;
|
|
11786
12924
|
exports.FlowInstancesAccessor = FlowInstancesAccessor;
|
|
12925
|
+
exports.FlowNode = FlowNode;
|
|
12926
|
+
exports.FlowNodeLink = FlowNodeLink;
|
|
11787
12927
|
exports.FlowNodeRunOutputMetadataSchema = FlowNodeRunOutputMetadataSchema;
|
|
11788
12928
|
exports.FlowNodeRunOutputSchema = FlowNodeRunOutputSchema;
|
|
11789
12929
|
exports.FlowNodeRunOutputWithoutDownstreamRunsSchema = FlowNodeRunOutputWithoutDownstreamRunsSchema;
|
|
@@ -11793,14 +12933,24 @@ exports.FlowNodeRunRecordWithoutOutputsDataSchema = FlowNodeRunRecordWithoutOutp
|
|
|
11793
12933
|
exports.FlowNodeRunResultSchema = FlowNodeRunResultSchema;
|
|
11794
12934
|
exports.FlowNodeSpec = FlowNodeSpec;
|
|
11795
12935
|
exports.FlowRunAccessor = FlowRunAccessor;
|
|
12936
|
+
exports.FlowRunApiResponse = FlowRunApiResponse;
|
|
11796
12937
|
exports.FlowRunError = FlowRunError;
|
|
12938
|
+
exports.FlowRunLaunchedBy = FlowRunLaunchedBy;
|
|
12939
|
+
exports.FlowRunLaunchedByApi = FlowRunLaunchedByApi;
|
|
12940
|
+
exports.FlowRunNode = FlowRunNode;
|
|
11797
12941
|
exports.FlowRunsAccessor = FlowRunsAccessor;
|
|
11798
12942
|
exports.FlowsAccessor = FlowsAccessor;
|
|
11799
12943
|
exports.Formula = Formula;
|
|
11800
12944
|
exports.HTTP_REQUEST_SCHEMA = HTTP_REQUEST_SCHEMA;
|
|
12945
|
+
exports.HandyScenarioTemplateElement = HandyScenarioTemplateElement;
|
|
12946
|
+
exports.HttpRequestSpec = HttpRequestSpec;
|
|
12947
|
+
exports.IncludeArchivedQuery = IncludeArchivedQuery;
|
|
11801
12948
|
exports.IntegrationAccessor = IntegrationAccessor;
|
|
12949
|
+
exports.IntegrationApiResponse = IntegrationApiResponse;
|
|
11802
12950
|
exports.IntegrationAppClient = IntegrationAppClient;
|
|
11803
12951
|
exports.IntegrationAppError = IntegrationAppError;
|
|
12952
|
+
exports.IntegrationAuthOption = IntegrationAuthOption;
|
|
12953
|
+
exports.IntegrationAuthUi = IntegrationAuthUi;
|
|
11804
12954
|
exports.IntegrationLevelActionAccessor = IntegrationLevelActionAccessor;
|
|
11805
12955
|
exports.IntegrationLevelActionsListAccessor = IntegrationLevelActionsListAccessor;
|
|
11806
12956
|
exports.IntegrationLevelDataSourceAccessor = IntegrationLevelDataSourceAccessor;
|
|
@@ -11812,24 +12962,55 @@ exports.IntegrationLevelFlowsListAccessor = IntegrationLevelFlowsListAccessor;
|
|
|
11812
12962
|
exports.IntegrationsAccessor = IntegrationsAccessor;
|
|
11813
12963
|
exports.InternalError = InternalError;
|
|
11814
12964
|
exports.InvalidLocatorError = InvalidLocatorError;
|
|
12965
|
+
exports.ListActionInstancesForConnectionQuery = ListActionInstancesForConnectionQuery;
|
|
12966
|
+
exports.ListActionsForIntegrationQuery = ListActionsForIntegrationQuery;
|
|
12967
|
+
exports.ListDataSourceInstancesForConnectionQuery = ListDataSourceInstancesForConnectionQuery;
|
|
12968
|
+
exports.ListDataSourcesForIntegrationQuery = ListDataSourcesForIntegrationQuery;
|
|
12969
|
+
exports.ListExternalEventLogRecordsQuery = ListExternalEventLogRecordsQuery;
|
|
12970
|
+
exports.ListExternalEventPullsQuery = ListExternalEventPullsQuery;
|
|
12971
|
+
exports.ListFlowInstancesForConnectionQuery = ListFlowInstancesForConnectionQuery;
|
|
12972
|
+
exports.ListFlowsForIntegrationQuery = ListFlowsForIntegrationQuery;
|
|
11815
12973
|
exports.MIN_FULL_SYNC_INTERVAL_SECONDS = MIN_FULL_SYNC_INTERVAL_SECONDS;
|
|
11816
12974
|
exports.MIN_PULL_UPDATES_INTERVAL_SECONDS = MIN_PULL_UPDATES_INTERVAL_SECONDS;
|
|
12975
|
+
exports.MinimalConnector = MinimalConnector;
|
|
11817
12976
|
exports.NotAuthenticatedError = NotAuthenticatedError;
|
|
11818
12977
|
exports.NotFoundError = NotFoundError;
|
|
11819
12978
|
exports.OAUTH1_CONFIG_SCHEMA = OAUTH1_CONFIG_SCHEMA;
|
|
11820
12979
|
exports.OAUTH_CONFIG_SCHEMA = OAUTH_CONFIG_SCHEMA;
|
|
12980
|
+
exports.OpenNewConnectionOptions = OpenNewConnectionOptions;
|
|
11821
12981
|
exports.PARALLEL_EXECUTION_LIMITS = PARALLEL_EXECUTION_LIMITS;
|
|
12982
|
+
exports.PaginationQuery = PaginationQuery;
|
|
11822
12983
|
exports.PaginationResponse = PaginationResponse;
|
|
11823
12984
|
exports.RATE_LIMITS = RATE_LIMITS;
|
|
11824
12985
|
exports.RateLimitExceededError = RateLimitExceededError;
|
|
12986
|
+
exports.ResetFlowInstanceOptions = ResetFlowInstanceOptions;
|
|
12987
|
+
exports.RunFlowOptions = RunFlowOptions;
|
|
11825
12988
|
exports.ScenarioAccessor = ScenarioAccessor;
|
|
12989
|
+
exports.ScenarioApiResponse = ScenarioApiResponse;
|
|
12990
|
+
exports.ScenarioElement = ScenarioElement;
|
|
12991
|
+
exports.ScenarioElementApi = ScenarioElementApi;
|
|
12992
|
+
exports.ScenarioTemplate = ScenarioTemplate;
|
|
12993
|
+
exports.ScenarioTemplateElements = ScenarioTemplateElements;
|
|
12994
|
+
exports.ScenarioToDo = ScenarioToDo;
|
|
12995
|
+
exports.ScenarioToDoApi = ScenarioToDoApi;
|
|
11826
12996
|
exports.ScenariosAccessor = ScenariosAccessor;
|
|
11827
12997
|
exports.ScreenAccessor = ScreenAccessor;
|
|
12998
|
+
exports.ScreenApiResponse = ScreenApiResponse;
|
|
12999
|
+
exports.ScreenBlock = ScreenBlock;
|
|
11828
13000
|
exports.ScreensAccessor = ScreensAccessor;
|
|
13001
|
+
exports.SearchQuery = SearchQuery;
|
|
11829
13002
|
exports.SelfAccessor = SelfAccessor;
|
|
11830
13003
|
exports.UNIFIED_DATA_MODELS = UNIFIED_DATA_MODELS;
|
|
11831
13004
|
exports.UnitRunError = UnitRunError;
|
|
13005
|
+
exports.UpdateActionInstanceRequest = UpdateActionInstanceRequest;
|
|
13006
|
+
exports.UpdateActionRequest = UpdateActionRequest;
|
|
11832
13007
|
exports.UpdateConnectionRequest = UpdateConnectionRequest;
|
|
13008
|
+
exports.UpdateCustomerRequest = UpdateCustomerRequest;
|
|
13009
|
+
exports.UpdateDataSourceInstanceRequest = UpdateDataSourceInstanceRequest;
|
|
13010
|
+
exports.UpdateDataSourceRequest = UpdateDataSourceRequest;
|
|
13011
|
+
exports.UpdateFlowRequest = UpdateFlowRequest;
|
|
13012
|
+
exports.UpdateIntegrationRequest = UpdateIntegrationRequest;
|
|
13013
|
+
exports.UpdateScenarioRequest = UpdateScenarioRequest;
|
|
11833
13014
|
exports.UpstreamFlowNodeRunSchema = UpstreamFlowNodeRunSchema;
|
|
11834
13015
|
exports.UserAccessor = UserAccessor;
|
|
11835
13016
|
exports.UsersAccessor = UsersAccessor;
|
|
@@ -11960,4 +13141,5 @@ exports.valueToSchema = valueToSchema;
|
|
|
11960
13141
|
exports.valueToString = valueToString;
|
|
11961
13142
|
exports.walkSchema = walkSchema;
|
|
11962
13143
|
exports.wrapAnyOfSchema = wrapAnyOfSchema;
|
|
13144
|
+
exports.zodBooleanCoercion = zodBooleanCoercion;
|
|
11963
13145
|
//# sourceMappingURL=index.js.map
|