@membranehq/sdk 0.7.3 → 0.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/dist/bundle.d.ts +2283 -14038
  2. package/dist/bundle.js +3949 -4253
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/connections-accessors.d.ts +28 -28
  5. package/dist/dts/accessors/integrations-accessors.d.ts +28 -28
  6. package/dist/dts/config/index.d.ts +1 -11
  7. package/dist/dts/date-time/business-day.d.ts +2 -0
  8. package/dist/dts/date-time/business-day.test.d.ts +1 -0
  9. package/dist/dts/date-time/index.d.ts +1 -0
  10. package/dist/dts/entity-repository.d.ts +13 -64
  11. package/dist/dts/http-requests.d.ts +2 -14
  12. package/dist/dts/iframe.d.ts +4 -12
  13. package/dist/dts/scenario-templates/index.d.ts +60 -484
  14. package/dist/dts/workspace-elements/api/action-instances-api.d.ts +17 -248
  15. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +23 -339
  16. package/dist/dts/workspace-elements/api/actions-api.d.ts +52 -639
  17. package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +8 -169
  18. package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +19 -51
  19. package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +15 -325
  20. package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +13 -248
  21. package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +28 -90
  22. package/dist/dts/workspace-elements/api/connections-api.d.ts +56 -892
  23. package/dist/dts/workspace-elements/api/customers-api.d.ts +8 -68
  24. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +21 -369
  25. package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +17 -45
  26. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +86 -1359
  27. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +164 -880
  28. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +29 -502
  29. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +29 -506
  30. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +21 -381
  31. package/dist/dts/workspace-elements/api/external-events-api.d.ts +20 -425
  32. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +125 -2363
  33. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +109 -666
  34. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +66 -1229
  35. package/dist/dts/workspace-elements/api/flows-api.d.ts +273 -1874
  36. package/dist/dts/workspace-elements/api/integrations-api.d.ts +45 -287
  37. package/dist/dts/workspace-elements/api/scenarios-api.d.ts +27 -450
  38. package/dist/dts/workspace-elements/api/screens-api.d.ts +11 -31
  39. package/dist/dts/workspace-elements/base/action-instances/types.d.ts +6 -60
  40. package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +3 -28
  41. package/dist/dts/workspace-elements/base/actions/index.d.ts +10 -82
  42. package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +4 -47
  43. package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +3 -36
  44. package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +6 -75
  45. package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +6 -69
  46. package/dist/dts/workspace-elements/base/connections/types.d.ts +11 -56
  47. package/dist/dts/workspace-elements/base/connectors/types.d.ts +1 -11
  48. package/dist/dts/workspace-elements/base/customers/index.d.ts +1 -25
  49. package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +141 -1471
  50. package/dist/dts/workspace-elements/base/data-collections/types.d.ts +1 -29
  51. package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +6 -61
  52. package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +3 -32
  53. package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +60 -973
  54. package/dist/dts/workspace-elements/base/data-sources/index.d.ts +57 -2
  55. package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +4 -26
  56. package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +4 -30
  57. package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +9 -161
  58. package/dist/dts/workspace-elements/base/external-events/types.d.ts +7 -121
  59. package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +10 -77
  60. package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +71 -1
  61. package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +16 -194
  62. package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +15 -132
  63. package/dist/dts/workspace-elements/base/flow-runs/flow-node-runs.d.ts +29 -284
  64. package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +13 -93
  65. package/dist/dts/workspace-elements/base/flows/index.d.ts +80 -1
  66. package/dist/dts/workspace-elements/base/flows/nodes/base.d.ts +30 -1
  67. package/dist/dts/workspace-elements/base/flows/nodes/index.d.ts +1 -1
  68. package/dist/dts/workspace-elements/base/integrations/types.d.ts +23 -539
  69. package/dist/dts/workspace-elements/base/scenarios/index.d.ts +11 -119
  70. package/dist/dts/workspace-elements/base/screens/types.d.ts +6 -31
  71. package/dist/dts/workspace-elements/types.d.ts +15 -153
  72. package/dist/index.browser.d.mts +7609 -26109
  73. package/dist/index.browser.d.ts +7609 -26109
  74. package/dist/index.browser.js +420 -419
  75. package/dist/index.browser.js.map +1 -1
  76. package/dist/index.browser.mjs +412 -415
  77. package/dist/index.browser.mjs.map +1 -1
  78. package/dist/index.node.d.mts +7537 -26047
  79. package/dist/index.node.d.ts +7537 -26047
  80. package/dist/index.node.js +420 -419
  81. package/dist/index.node.js.map +1 -1
  82. package/dist/index.node.mjs +412 -415
  83. package/dist/index.node.mjs.map +1 -1
  84. package/package.json +2 -2
  85. package/dist/dts/workspace-elements/base/data-sources/constants.d.ts +0 -4
  86. package/dist/dts/workspace-elements/base/data-sources/types.d.ts +0 -109
  87. package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +0 -136
  88. package/dist/dts/workspace-elements/base/flows/types.d.ts +0 -248
@@ -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');
11
- var v3 = require('zod-validation-error/v3');
10
+ var v4 = require('zod-validation-error/v4');
12
11
  var qs = require('qs');
12
+ var penpal = require('penpal');
13
13
  var axiosOriginal = require('axios');
14
14
  var fs = require('fs');
15
15
  var path = require('path');
@@ -1343,7 +1343,7 @@ const DataSchema = zod.z.lazy(() => zod.z
1343
1343
  description: zod.z.string().optional(),
1344
1344
  type: zod.z.union([zod.z.string(), zod.z.array(zod.z.string())]).optional(),
1345
1345
  format: zod.z.string().optional(),
1346
- properties: zod.z.record(DataSchema).optional(),
1346
+ properties: zod.z.record(zod.z.string(), DataSchema).optional(),
1347
1347
  items: DataSchema.optional(),
1348
1348
  additionalProperties: zod.z.union([zod.z.boolean(), DataSchema]).optional(),
1349
1349
  enum: zod.z.array(zod.z.string()).optional(),
@@ -1351,7 +1351,7 @@ const DataSchema = zod.z.lazy(() => zod.z
1351
1351
  referenceCollection: zod.z
1352
1352
  .object({
1353
1353
  key: zod.z.any().optional(),
1354
- parameters: zod.z.record(zod.z.any()).optional(),
1354
+ parameters: zod.z.record(zod.z.string(), zod.z.any()).optional(),
1355
1355
  })
1356
1356
  .optional(),
1357
1357
  referenceUdm: zod.z.string().optional(),
@@ -3482,40 +3482,6 @@ const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = BaseMembraneInte
3482
3482
  });
3483
3483
  const BaseIntegrationLevelMembraneInterface = BaseMembraneInterface.merge(BaseIntegrationLevelMembraneInterfaceEditableProperties).merge(BaseIntegrationLevelMembraneInterfaceReadOnlyProperties);
3484
3484
 
3485
- exports.FieldMappingDirection = void 0;
3486
- (function (FieldMappingDirection) {
3487
- FieldMappingDirection["IMPORT"] = "import";
3488
- FieldMappingDirection["EXPORT"] = "export";
3489
- FieldMappingDirection["BOTH"] = "both";
3490
- })(exports.FieldMappingDirection || (exports.FieldMappingDirection = {}));
3491
- const BaseFieldMapping = BaseIntegrationLevelMembraneInterface.extend({
3492
- publishedRevision: zod.z.string().optional(),
3493
- universalFieldMappingId: zod.z.string().optional(),
3494
- universalFieldMappingRevision: zod.z.string().optional(),
3495
- dataSourceId: zod.z.string().optional(),
3496
- dataSourceKey: zod.z.string().optional(),
3497
- appSchema: DataSchema.optional(),
3498
- direction: zod.z.nativeEnum(exports.FieldMappingDirection).optional(),
3499
- defaultImportValue: zod.z.any().optional(),
3500
- defaultExportValue: zod.z.any().optional(),
3501
- importValue: zod.z.any().optional(),
3502
- exportValue: zod.z.any().optional(),
3503
- frozenImportFields: zod.z.any().optional(),
3504
- frozenExportFields: zod.z.any().optional(),
3505
- frozenUnifiedExportFields: zod.z.any().optional(),
3506
- });
3507
- const FieldMappingUnitConfig = zod.z.object({
3508
- key: zod.z.string().optional(),
3509
- input: zod.z.any().optional(),
3510
- includeRawFields: zod.z.any().optional(),
3511
- importValue: zod.z.any().optional(),
3512
- exportValue: zod.z.any().optional(),
3513
- default: zod.z.any().optional(),
3514
- defaultUnifiedValue: zod.z.any().optional(),
3515
- defaultValue: zod.z.any().optional(),
3516
- appSchema: DataSchema.optional(),
3517
- });
3518
-
3519
3485
  function mergeWithFormulas(a, b) {
3520
3486
  if (Array.isArray(a) && Array.isArray(b)) {
3521
3487
  const length = Math.max(a.length, b.length);
@@ -3546,6 +3512,44 @@ function isObject(value) {
3546
3512
  !(value instanceof Boolean));
3547
3513
  }
3548
3514
 
3515
+ exports.FieldMappingDirection = void 0;
3516
+ (function (FieldMappingDirection) {
3517
+ FieldMappingDirection["IMPORT"] = "import";
3518
+ FieldMappingDirection["EXPORT"] = "export";
3519
+ FieldMappingDirection["BOTH"] = "both";
3520
+ })(exports.FieldMappingDirection || (exports.FieldMappingDirection = {}));
3521
+ const FieldMappingEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
3522
+ parentId: true,
3523
+ }).extend({
3524
+ universalFieldMappingId: zod.z.string().optional(),
3525
+ dataSourceKey: zod.z.string().optional(),
3526
+ dataSourceId: zod.z.string().optional(),
3527
+ appSchema: DataSchema.optional(),
3528
+ direction: zod.z.nativeEnum(exports.FieldMappingDirection).optional(),
3529
+ defaultImportValue: zod.z.any().optional(),
3530
+ defaultExportValue: zod.z.any().optional(),
3531
+ importValue: zod.z.any().optional(),
3532
+ exportValue: zod.z.any().optional(),
3533
+ frozenImportFields: zod.z.any().optional(),
3534
+ frozenExportFields: zod.z.any().optional(),
3535
+ frozenUnifiedExportFields: zod.z.any().optional(),
3536
+ });
3537
+ const FieldMappingReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
3538
+ universalFieldMappingRevision: zod.z.string().optional(),
3539
+ });
3540
+ const BaseFieldMapping = BaseMembraneInterface.merge(FieldMappingEditableProperties).merge(FieldMappingReadOnlyProperties);
3541
+ const FieldMappingUnitConfig = zod.z.object({
3542
+ key: zod.z.string().optional(),
3543
+ input: zod.z.any().optional(),
3544
+ includeRawFields: zod.z.any().optional(),
3545
+ importValue: zod.z.any().optional(),
3546
+ exportValue: zod.z.any().optional(),
3547
+ default: zod.z.any().optional(),
3548
+ defaultUnifiedValue: zod.z.any().optional(),
3549
+ defaultValue: zod.z.any().optional(),
3550
+ appSchema: DataSchema.optional(),
3551
+ });
3552
+
3549
3553
  exports.ActionType = void 0;
3550
3554
  (function (ActionType) {
3551
3555
  ActionType["ListDataRecords"] = "list-data-records";
@@ -3658,9 +3662,9 @@ const BaseAction = BaseMembraneInterface.merge(ActionEditableProperties).merge(A
3658
3662
  const ConnectionRequest = zod.z.object({
3659
3663
  path: zod.z.any(),
3660
3664
  method: zod.z.enum(['GET', 'POST', 'PUT', 'PATCH', 'DELETE']).optional(),
3661
- pathParameters: zod.z.record(zod.z.string()).optional(),
3662
- headers: zod.z.record(zod.z.string()).optional(),
3663
- query: zod.z.record(zod.z.string()).optional(),
3665
+ pathParameters: zod.z.record(zod.z.string(), zod.z.string()).optional(),
3666
+ headers: zod.z.record(zod.z.string(), zod.z.string()).optional(),
3667
+ query: zod.z.record(zod.z.string(), zod.z.string()).optional(),
3664
3668
  data: zod.z.any().optional(),
3665
3669
  });
3666
3670
  const BaseConnection = BaseWorkspaceElement.extend({
@@ -3679,7 +3683,7 @@ const BaseConnection = BaseWorkspaceElement.extend({
3679
3683
  nextCredentialsRefreshAt: zod.z.string().optional(),
3680
3684
  archivedAt: zod.z.string().optional(),
3681
3685
  isDeactivated: zod.z.boolean().optional(),
3682
- meta: zod.z.record(zod.z.any()).optional(),
3686
+ meta: zod.z.record(zod.z.string(), zod.z.any()).optional(),
3683
3687
  });
3684
3688
  class ConnectionSpec {
3685
3689
  constructor(opts) {
@@ -4016,10 +4020,10 @@ const DataRecordSchema = zod.z.object({
4016
4020
  name: zod.z.string().optional(),
4017
4021
  uri: zod.z.string().optional(),
4018
4022
  iconUri: zod.z.string().optional(),
4019
- fields: zod.z.record(zod.z.any()).optional(),
4023
+ fields: zod.z.record(zod.z.string(), zod.z.any()).optional(),
4020
4024
  udm: zod.z.string().optional(),
4021
- unifiedFields: zod.z.record(zod.z.any()).optional(),
4022
- rawFields: zod.z.record(zod.z.any()).optional(),
4025
+ unifiedFields: zod.z.record(zod.z.string(), zod.z.any()).optional(),
4026
+ rawFields: zod.z.record(zod.z.string(), zod.z.any()).optional(),
4023
4027
  createdTime: zod.z.string().optional(),
4024
4028
  updatedTime: zod.z.string().optional(),
4025
4029
  deletedTime: zod.z.string().optional(),
@@ -8204,10 +8208,10 @@ const DataCollectionEventsSpec = zod.z
8204
8208
  .catchall(DataCollectionEventTypeSpec);
8205
8209
  const DataCollectionUdmSpec = zod.z.object({
8206
8210
  fields: zod.z.array(zod.z.string()).optional(),
8207
- extract: zod.z.record(zod.z.any()).optional(),
8208
- parse: zod.z.record(zod.z.any()).optional(),
8211
+ extract: zod.z.record(zod.z.string(), zod.z.any()).optional(),
8212
+ parse: zod.z.record(zod.z.string(), zod.z.any()).optional(),
8209
8213
  });
8210
- const DataCollectionUdmsSpec = zod.z.record(DataCollectionUdmSpec);
8214
+ const DataCollectionUdmsSpec = zod.z.record(zod.z.string(), DataCollectionUdmSpec);
8211
8215
  const DataCollectionSpec = zod.z.object({
8212
8216
  type: zod.z.literal('collection'),
8213
8217
  key: zod.z.string().optional(),
@@ -8227,7 +8231,7 @@ const DataCollectionSpec = zod.z.object({
8227
8231
  find: DataCollectionFindSpec.optional(),
8228
8232
  });
8229
8233
  const DataCollectionMethodRequest = zod.z.object({
8230
- parameters: zod.z.record(zod.z.any()).optional(),
8234
+ parameters: zod.z.record(zod.z.string(), zod.z.any()).optional(),
8231
8235
  });
8232
8236
  const DataCollectionFindRequest = zod.z.object({
8233
8237
  query: zod.z.any().optional(),
@@ -8243,8 +8247,8 @@ const DataCollectionListRequest = DataCollectionMethodRequest.extend({
8243
8247
  cursor: zod.z.string().optional(),
8244
8248
  });
8245
8249
  const DataCollectionListResponseDrilldown = zod.z.object({
8246
- parameters: zod.z.record(zod.z.any()).optional(),
8247
- filter: zod.z.record(zod.z.any()).optional(),
8250
+ parameters: zod.z.record(zod.z.string(), zod.z.any()).optional(),
8251
+ filter: zod.z.record(zod.z.string(), zod.z.any()).optional(),
8248
8252
  });
8249
8253
  const DataCollectionListResponse = zod.z.object({
8250
8254
  records: zod.z.array(DataRecordSchema),
@@ -8267,20 +8271,20 @@ const DataCollectionFindByIdResponse = zod.z.object({
8267
8271
  record: DataRecordSchema,
8268
8272
  });
8269
8273
  const DataCollectionMatchRequest = DataCollectionMethodRequest.extend({
8270
- query: zod.z.record(zod.z.any()),
8274
+ query: zod.z.record(zod.z.string(), zod.z.any()),
8271
8275
  });
8272
8276
  const DataCollectionMatchResponse = zod.z.object({
8273
8277
  record: DataRecordSchema.optional(),
8274
8278
  });
8275
8279
  const DataCollectionCreateRequest = DataCollectionMethodRequest.extend({
8276
- fields: zod.z.record(zod.z.any()),
8280
+ fields: zod.z.record(zod.z.string(), zod.z.any()),
8277
8281
  });
8278
8282
  const DataCollectionCreateResponse = zod.z.object({
8279
8283
  id: zod.z.string(),
8280
8284
  });
8281
8285
  const DataCollectionUpdateRequest = DataCollectionMethodRequest.extend({
8282
8286
  id: zod.z.string(),
8283
- fields: zod.z.record(zod.z.any()),
8287
+ fields: zod.z.record(zod.z.string(), zod.z.any()),
8284
8288
  });
8285
8289
  const DataCollectionUpdateResponse = zod.z.object({
8286
8290
  id: zod.z.string(),
@@ -8355,7 +8359,21 @@ const DEFAULT_PULL_UPDATES_INTERVAL_SECONDS = 60 * 5;
8355
8359
  const DEFAULT_FULL_SYNC_INTERVAL_SECONDS = 60 * 60 * 3;
8356
8360
  const MIN_FULL_SYNC_INTERVAL_SECONDS = 1 * 60;
8357
8361
  const MIN_PULL_UPDATES_INTERVAL_SECONDS = 1 * 60;
8358
-
8362
+ const DataSourceEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
8363
+ parentId: true,
8364
+ }).extend({
8365
+ universalDataSourceId: zod.z.string().optional(),
8366
+ udm: zod.z.string().optional(),
8367
+ pullUpdatesIntervalSeconds: zod.z.number().optional(),
8368
+ fullSyncIntervalSeconds: zod.z.number().optional(),
8369
+ collectionKey: zod.z.string().optional(),
8370
+ collectionParameters: zod.z.any().optional(),
8371
+ defaultPath: zod.z.string().optional(),
8372
+ });
8373
+ const DataSourceReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
8374
+ universalDataSourceRevision: zod.z.string().optional(),
8375
+ });
8376
+ const BaseDataSource = BaseMembraneInterface.merge(DataSourceEditableProperties).merge(DataSourceReadOnlyProperties);
8359
8377
  const DataSourceUnitConfig = zod.z.object({
8360
8378
  key: zod.z.string().optional(),
8361
8379
  collectionKey: zod.z.any().optional(),
@@ -8365,17 +8383,6 @@ const DataSourceUnitConfig = zod.z.object({
8365
8383
  pullUpdatesIntervalSeconds: zod.z.number().optional(),
8366
8384
  fullSyncIntervalSeconds: zod.z.number().optional(),
8367
8385
  });
8368
- const BaseDataSource = BaseIntegrationLevelMembraneInterface.extend({
8369
- publishedRevision: zod.z.string().optional(),
8370
- universalDataSourceId: zod.z.string().optional(),
8371
- universalDataSourceRevision: zod.z.string().optional(),
8372
- udm: zod.z.string().optional(),
8373
- pullUpdatesIntervalSeconds: zod.z.number().optional(),
8374
- fullSyncIntervalSeconds: zod.z.number().optional(),
8375
- collectionKey: zod.z.string().optional(),
8376
- collectionParameters: zod.z.any().optional(),
8377
- defaultPath: zod.z.string().optional(),
8378
- });
8379
8386
 
8380
8387
  const BaseDataSourceInstance = BaseMembraneInterface.extend({
8381
8388
  userId: zod.z.string(),
@@ -8494,7 +8501,7 @@ const BaseFlowRun = zod.z.object({
8494
8501
  startTime: zod.z.string(),
8495
8502
  endTime: zod.z.string().optional(),
8496
8503
  errors: zod.z.array(ErrorDataSchema).optional(),
8497
- nodes: zod.z.record(FlowRunNode).optional(),
8504
+ nodes: zod.z.record(zod.z.string(), FlowRunNode).optional(),
8498
8505
  launchedBy: FlowRunLaunchedBy.optional(),
8499
8506
  });
8500
8507
 
@@ -8548,6 +8555,26 @@ const FlowNodeRunRecordWithoutOutputsDataSchema = zod.z.object({
8548
8555
  errors: zod.z.array(ErrorDataSchema),
8549
8556
  });
8550
8557
 
8558
+ const FlowNodeLink = zod.z.object({
8559
+ key: zod.z.string().optional(),
8560
+ filter: zod.z.any().optional(),
8561
+ name: zod.z.string().optional(),
8562
+ });
8563
+ const FlowNode = zod.z.object({
8564
+ type: zod.z.string().optional(),
8565
+ version: zod.z.number().optional(),
8566
+ name: zod.z.string().optional(),
8567
+ description: zod.z.string().optional(),
8568
+ config: zod.z.any().optional(),
8569
+ concurrency: zod.z.number().optional(),
8570
+ onError: zod.z.enum(['stop', 'continue']).optional(),
8571
+ ui: zod.z.any().optional(),
8572
+ inputSchema: zod.z.any().optional(),
8573
+ outputSchema: zod.z.any().optional(),
8574
+ outputExample: zod.z.any().optional(),
8575
+ links: zod.z.array(FlowNodeLink).optional(),
8576
+ isCustomized: zod.z.boolean().optional(),
8577
+ });
8551
8578
  class FlowNodeSpec {
8552
8579
  constructor(args) {
8553
8580
  Object.assign(this, args);
@@ -8821,33 +8848,19 @@ const FLOW_NODE_SPECS = {
8821
8848
  [exports.FlowNodeType.RunAction]: RunAction,
8822
8849
  };
8823
8850
 
8824
- const FlowNodeLink = zod.z.object({
8825
- key: zod.z.string().optional(),
8826
- filter: zod.z.any().optional(),
8827
- name: zod.z.string().optional(),
8828
- });
8829
- const FlowNode = zod.z.object({
8830
- type: zod.z.string().optional(),
8831
- version: zod.z.number().optional(),
8832
- name: zod.z.string().optional(),
8833
- description: zod.z.string().optional(),
8834
- config: zod.z.any().optional(),
8835
- concurrency: zod.z.number().optional(),
8836
- onError: zod.z.enum(['stop', 'continue']).optional(),
8837
- ui: zod.z.any().optional(),
8838
- inputSchema: zod.z.any().optional(),
8839
- outputSchema: zod.z.any().optional(),
8840
- outputExample: zod.z.any().optional(),
8841
- links: zod.z.array(FlowNodeLink).optional(),
8842
- isCustomized: zod.z.boolean().optional(),
8843
- });
8844
- const BaseFlow = BaseIntegrationLevelMembraneInterface.extend({
8851
+ const FlowEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
8852
+ parentId: true,
8853
+ }).extend({
8854
+ integrationId: zod.z.string().optional(),
8845
8855
  universalFlowId: zod.z.string().optional(),
8846
- universalFlowRevision: zod.z.string().optional(),
8847
8856
  parametersSchema: DataSchema.optional(),
8848
- nodes: zod.z.record(FlowNode).optional(),
8857
+ nodes: zod.z.record(zod.z.string(), FlowNode).optional(),
8849
8858
  autoCreateInstances: zod.z.boolean().optional(),
8850
8859
  });
8860
+ const FlowReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
8861
+ universalFlowRevision: zod.z.string().optional(),
8862
+ });
8863
+ const BaseFlow = BaseMembraneInterface.merge(FlowEditableProperties).merge(FlowReadOnlyProperties);
8851
8864
 
8852
8865
  const BaseIntegration = BaseMembraneInterface.extend({
8853
8866
  logoUri: zod.z.string(),
@@ -8929,7 +8942,7 @@ const ScreenBlock = zod.z
8929
8942
  .object({
8930
8943
  type: zod.z.nativeEnum(exports.ScreenBlockType),
8931
8944
  })
8932
- .and(zod.z.record(zod.z.any()));
8945
+ .and(zod.z.record(zod.z.string(), zod.z.any()));
8933
8946
  const BaseScreen = BaseWorkspaceElement.extend({
8934
8947
  type: zod.z.nativeEnum(exports.ScreenType),
8935
8948
  key: zod.z.string().optional(),
@@ -8939,7 +8952,7 @@ const BaseScreen = BaseWorkspaceElement.extend({
8939
8952
  const BaseCustomer = zod.z.object({
8940
8953
  id: zod.z.string(),
8941
8954
  name: zod.z.string(),
8942
- meta: zod.z.record(zod.z.any()).optional(),
8955
+ meta: zod.z.record(zod.z.string(), zod.z.any()).optional(),
8943
8956
  internalId: zod.z.string(),
8944
8957
  fields: zod.z.record(zod.z.string(), zod.z.any()).optional(),
8945
8958
  credentials: zod.z.any().optional(),
@@ -8959,7 +8972,7 @@ const BaseFlowInstance = BaseMembraneInterface.extend({
8959
8972
  instanceKey: zod.z.string().optional(),
8960
8973
  parameters: zod.z.any().optional(),
8961
8974
  parametersSchema: DataSchema.optional(),
8962
- nodes: zod.z.record(zod.z.any()).optional(),
8975
+ nodes: zod.z.record(zod.z.string(), zod.z.any()).optional(),
8963
8976
  enabled: zod.z.boolean(),
8964
8977
  createdAt: zod.z.string(),
8965
8978
  updatedAt: zod.z.string(),
@@ -9127,8 +9140,8 @@ exports.HttpRequestMethod = void 0;
9127
9140
  const HttpRequestSpec = zod.z.object({
9128
9141
  method: zod.z.string().toUpperCase().pipe(zod.z.nativeEnum(exports.HttpRequestMethod)).optional(),
9129
9142
  uri: zod.z.any(),
9130
- headers: zod.z.record(zod.z.any()).optional(),
9131
- query: zod.z.record(zod.z.any()).optional(),
9143
+ headers: zod.z.record(zod.z.string(), zod.z.any()).optional(),
9144
+ query: zod.z.record(zod.z.string(), zod.z.any()).optional(),
9132
9145
  body: zod.z.any().optional(),
9133
9146
  });
9134
9147
  const HTTP_REQUEST_SCHEMA = {
@@ -9437,36 +9450,19 @@ const ConnectionMessagePayload = zod.z.discriminatedUnion('type', [
9437
9450
  }),
9438
9451
  ]);
9439
9452
 
9440
- const ListDataSourcesForIntegrationQuery = zod.z
9441
- .object({
9442
- universalDataSourceId: zod.z.string().optional(),
9443
- })
9444
- .merge(PaginationQuery);
9445
- const FindDataSourcesQuery = ListDataSourcesForIntegrationQuery.extend({
9446
- integrationId: zod.z.string().optional(),
9453
+ const DataSourceApiResponse = BaseDataSource.extend({
9454
+ integration: BaseIntegration.optional(),
9455
+ appliedToIntegrations: AppliedToIntegrations(BaseDataSource).optional(),
9447
9456
  });
9448
- const CreateDataSourceRequest = zod.z.object({
9449
- key: zod.z.string(),
9450
- name: zod.z.string(),
9457
+ const FindDataSourcesQuery = PaginationQuery.extend({
9451
9458
  integrationId: zod.z.string().optional(),
9452
- udm: zod.z.string().optional(),
9453
- pullUpdatesIntervalSeconds: zod.z.number().optional(),
9454
- fullSyncIntervalSeconds: zod.z.number().optional(),
9455
- rootPath: zod.z.string().optional(),
9456
- defaultPath: zod.z.string().optional(),
9457
- collectionKey: zod.z.string().optional(),
9458
- collectionParameters: zod.z.any().optional(),
9459
- });
9460
- const UpdateDataSourceRequest = zod.z.object({
9461
- key: zod.z.string().optional(),
9462
- name: zod.z.string().optional(),
9463
- archivedAt: zod.z.string().optional(),
9464
- udm: zod.z.string().optional(),
9465
- pullUpdatesIntervalSeconds: zod.z.number().optional(),
9466
- fullSyncIntervalSeconds: zod.z.number().optional(),
9467
- rootPath: zod.z.string().optional(),
9468
- defaultPath: zod.z.string().optional(),
9459
+ integrationKey: zod.z.string().optional(),
9460
+ universalDataSourceId: zod.z.string().optional(),
9461
+ search: zod.z.string().optional(),
9462
+ includeArchived: zodBooleanCoercion().optional(),
9469
9463
  });
9464
+ const CreateDataSourceRequest = DataSourceEditableProperties;
9465
+ const UpdateDataSourceRequest = CreateDataSourceRequest.extend({}).partial();
9470
9466
  const FindDataSourceInstancesQuery = zod.z
9471
9467
  .object({
9472
9468
  userId: zod.z.string().optional(),
@@ -9526,10 +9522,6 @@ const FindDataSourceInstanceSyncsQuery = ListDataSourceInstancesForConnectionQue
9526
9522
  integrationId: zod.z.string().optional(),
9527
9523
  dataSourceInstanceId: zod.z.string().optional(),
9528
9524
  });
9529
- const DataSourceApiResponse = BaseDataSource.extend({
9530
- integration: BaseIntegration.optional(),
9531
- appliedToIntegrations: AppliedToIntegrations(BaseDataSource).optional(),
9532
- });
9533
9525
 
9534
9526
  const DataSourceInstanceApiResponse = BaseDataSourceInstance.extend({
9535
9527
  user: BaseCustomer.optional(),
@@ -9542,31 +9534,25 @@ const ExternalEvent = BaseExternalEvent.extend({
9542
9534
  appliedToIntegrations: AppliedToIntegrations(BaseExternalEvent).optional(),
9543
9535
  });
9544
9536
 
9545
- const ListFlowsForIntegrationQuery = zod.z
9546
- .object({
9547
- universalFlowId: zod.z.string().optional(),
9548
- })
9549
- .merge(CommonListElementsQuery);
9550
- const FindFlowsQuery = ListFlowsForIntegrationQuery.extend({
9551
- integrationId: zod.z.string().optional(),
9552
- });
9553
- const CreateFlowNodeRequest = zod.z.object({
9554
- type: zod.z.string(),
9555
- config: zod.z.any().optional(),
9556
- ui: zod.z.any().optional(),
9557
- links: zod.z.array(zod.z.lazy(() => zod.z.any())).optional(),
9537
+ const FlowApiResponse = BaseFlow.extend({
9538
+ integration: BaseIntegration.optional(),
9539
+ appliedToIntegrations: AppliedToIntegrations(zod.z.object({
9540
+ id: zod.z.string(),
9541
+ integrationId: zod.z.string().optional(),
9542
+ isCustomized: zod.z.boolean().optional(),
9543
+ universalFlowId: zod.z.string().optional(),
9544
+ })).optional(),
9545
+ dependencies: zod.z.array(zod.z.any()).optional(),
9558
9546
  });
9559
- const CreateFlowRequest = zod.z.object({
9560
- key: zod.z.string(),
9561
- name: zod.z.string(),
9547
+ const FindFlowsQuery = PaginationQuery.extend({
9562
9548
  integrationId: zod.z.string().optional(),
9563
- nodes: zod.z.record(zod.z.string(), CreateFlowNodeRequest).optional(),
9564
- parametersSchema: DataSchema.optional(),
9565
- autoCreateInstances: zod.z.boolean().optional(),
9566
- });
9567
- const UpdateFlowRequest = CreateFlowRequest.extend({
9568
- archivedAt: zod.z.string().optional(),
9549
+ integrationKey: zod.z.string().optional(),
9550
+ universalFlowId: zod.z.string().optional(),
9551
+ search: zod.z.string().optional(),
9552
+ includeArchived: zodBooleanCoercion().optional(),
9569
9553
  });
9554
+ const CreateFlowRequest = FlowEditableProperties;
9555
+ const UpdateFlowRequest = CreateFlowRequest.extend({}).partial();
9570
9556
  const ListFlowInstancesForConnectionQuery = zod.z
9571
9557
  .object({
9572
9558
  flowId: zod.z.string().optional(),
@@ -9580,28 +9566,18 @@ const ResetFlowInstanceOptions = zod.z.object({
9580
9566
  nodes: zod.z.record(zod.z.string(), zod.z.boolean()).optional(),
9581
9567
  allNodes: zod.z.boolean().optional(),
9582
9568
  });
9583
- const RunFlowOptions = zod.z.object({
9584
- nodeKey: zod.z.string().optional(),
9585
- input: zod.z.any().optional(),
9586
- returnImmediately: zod.z.boolean().optional(),
9587
- onUpdate: zod.z.function().optional(),
9588
- });
9589
- const FlowApiResponse = BaseFlow.extend({
9590
- integration: BaseIntegration.optional(),
9591
- appliedToIntegrations: AppliedToIntegrations(zod.z.object({
9592
- id: zod.z.string(),
9593
- integrationId: zod.z.string().optional(),
9594
- isCustomized: zod.z.boolean().optional(),
9595
- universalFlowId: zod.z.string().optional(),
9596
- })).optional(),
9597
- dependencies: zod.z.array(zod.z.any()).optional(),
9598
- });
9599
9569
  const FlowInstanceApiResponse = BaseFlowInstance.extend({
9600
9570
  user: zod.z.lazy(() => zod.z.any()).optional(),
9601
9571
  connection: zod.z.lazy(() => zod.z.any()).optional(),
9602
9572
  flow: zod.z.lazy(() => FlowApiResponse).optional(),
9603
9573
  integration: zod.z.lazy(() => zod.z.any()).optional(),
9604
9574
  });
9575
+ const CreateFlowNodeRequest = zod.z.object({
9576
+ type: zod.z.string(),
9577
+ config: zod.z.any().optional(),
9578
+ ui: zod.z.any().optional(),
9579
+ links: zod.z.array(zod.z.lazy(() => zod.z.any())).optional(),
9580
+ });
9605
9581
 
9606
9582
  const CreateFlowRunRequest = zod.z.object({
9607
9583
  flowInstanceId: zod.z.string(),
@@ -9635,240 +9611,11 @@ const FindFlowRunsResponse = zod.z.object({
9635
9611
  cursor: zod.z.string().optional(),
9636
9612
  });
9637
9613
 
9638
- const POPUP_ELEMENT_ID = '__integration-app-popup';
9639
- const CONTAINER_ELEMENT_ID = '__integration-app-container';
9640
- const CONTAINER_ELEMENT_CLASS = '__integration-app-container';
9641
- const CONTAINER_ELEMENT_CLASS__LOADER = '__integration-app-container__loader';
9642
- const BODY_CLASS = '__integration-app-open';
9643
- const STYLES_ELEMENT_ID = '__integration-app-embed-styles';
9644
- const OpenConfigurationOptions = zod.z.object({
9645
- onClose: zod.z.function().optional(),
9646
- showPoweredBy: zod.z.boolean().optional(),
9647
- });
9648
- let IFRAME_START_SHOW_LOADER_TIME = 0;
9649
- let IFRAME_SHOW_LOADER_TIMEOUT_ID;
9650
- const IFRAME_SHOW_LOADER_MINIMAL_TIME = 500;
9651
- const IFRAME_LAYOUT_SHIFT_TIME = 300;
9652
- function showIframeLoader() {
9653
- const container = getContainer();
9654
- container === null || container === void 0 ? void 0 : container.classList.add(CONTAINER_ELEMENT_CLASS__LOADER);
9655
- IFRAME_START_SHOW_LOADER_TIME = Date.now();
9656
- }
9657
- function hideIframeLoader(waitLayoutShift = IFRAME_LAYOUT_SHIFT_TIME) {
9658
- if (IFRAME_SHOW_LOADER_TIMEOUT_ID) {
9659
- clearTimeout(IFRAME_SHOW_LOADER_TIMEOUT_ID);
9660
- }
9661
- const delta = Date.now() - IFRAME_START_SHOW_LOADER_TIME;
9662
- if (delta >= IFRAME_SHOW_LOADER_MINIMAL_TIME) {
9663
- setTimeout(() => {
9664
- const container = getContainer();
9665
- container === null || container === void 0 ? void 0 : container.classList.remove(CONTAINER_ELEMENT_CLASS__LOADER);
9666
- IFRAME_START_SHOW_LOADER_TIME = 0;
9667
- }, waitLayoutShift);
9668
- return;
9669
- }
9670
- else {
9671
- const waitLayoutShift = delta >= IFRAME_LAYOUT_SHIFT_TIME ? 0 : IFRAME_LAYOUT_SHIFT_TIME - delta;
9672
- const timeoutTime = IFRAME_SHOW_LOADER_MINIMAL_TIME - delta;
9673
- IFRAME_SHOW_LOADER_TIMEOUT_ID = setTimeout(() => {
9674
- hideIframeLoader(waitLayoutShift);
9675
- }, timeoutTime);
9676
- return;
9677
- }
9678
- }
9679
- async function openIframe(uri, callbacks = {}, { mountTargetSelector } = {}) {
9680
- close();
9681
- init(mountTargetSelector);
9682
- return new Promise((resolve) => {
9683
- function complete(callback) {
9684
- close(callback);
9685
- resolve();
9686
- }
9687
- function doOpen() {
9688
- const iframe = document.createElement('iframe');
9689
- iframe.src = uri;
9690
- iframe.id = POPUP_ELEMENT_ID;
9691
- iframe.onload = () => {
9692
- hideIframeLoader();
9693
- };
9694
- if (!!getContainer()) {
9695
- document.body.classList.add(BODY_CLASS);
9696
- showIframeLoader();
9697
- appendToContainer(iframe);
9698
- handleIframeUnmount(iframe);
9699
- penpal.connectToChild({
9700
- iframe,
9701
- methods: {
9702
- ...callbacks,
9703
- handshake: (...args) => {
9704
- var _a;
9705
- hideIframeLoader();
9706
- (_a = callbacks === null || callbacks === void 0 ? void 0 : callbacks.handshake) === null || _a === void 0 ? void 0 : _a.call(callbacks, ...args);
9707
- },
9708
- close: () => complete(callbacks.onClose),
9709
- },
9710
- });
9711
- }
9712
- else {
9713
- throw Error('Membrane container element not found. Was it manually removed?');
9714
- }
9715
- }
9716
- if (document.readyState === 'complete' || document.readyState === 'interactive') {
9717
- doOpen();
9718
- }
9719
- else {
9720
- document.addEventListener('DOMContentLoaded', () => {
9721
- doOpen();
9722
- });
9723
- }
9724
- });
9725
- }
9726
- function close(callback) {
9727
- document.body.classList.remove(BODY_CLASS);
9728
- if (!!getContainer()) {
9729
- deleteContainer();
9730
- if (callback) {
9731
- callback();
9732
- }
9733
- }
9734
- }
9735
- function init(mountTargetSelector) {
9736
- var _a;
9737
- injectStyles(mountTargetSelector);
9738
- if (!!getContainer()) {
9739
- return;
9740
- }
9741
- const container = createContainer();
9742
- if (mountTargetSelector && document.querySelector(mountTargetSelector)) {
9743
- (_a = document.querySelector(mountTargetSelector)) === null || _a === void 0 ? void 0 : _a.appendChild(container);
9744
- }
9745
- else {
9746
- document.body.appendChild(container);
9747
- }
9748
- }
9749
- function injectStyles(mountTargetSelector) {
9750
- const hasCustomMountTarget = Boolean(mountTargetSelector && document.querySelector(mountTargetSelector));
9751
- const styles = [
9752
- `.${CONTAINER_ELEMENT_CLASS}:empty {
9753
- display: none;
9754
- }`,
9755
- hasCustomMountTarget
9756
- ? `.${CONTAINER_ELEMENT_CLASS} {
9757
- inset: 0;
9758
- background: rgba(0, 0, 0, 0);
9759
- transition: background 0.2s ease-out;
9760
- display: flex;
9761
- justify-content: center;
9762
- align-items: center;
9763
- width: 100%;
9764
- height: 100%;
9765
- }`
9766
- : `.${CONTAINER_ELEMENT_CLASS} {
9767
- position: fixed;
9768
- inset: 0;
9769
- z-index: 2147483647;
9770
- display: flex;
9771
- justify-content: center;
9772
- align-items: center;
9773
- pointer-events: auto;
9774
- background: rgba(0, 0, 0, 0);
9775
- transition: background 0.2s ease-out;
9776
- }`,
9777
- `.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} {
9778
- background: rgba(0, 0, 0, 0.8);
9779
- }`,
9780
- `.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER}::before {
9781
- ${hasCustomMountTarget ? 'position: absolute;' : ''}
9782
- content: "";
9783
- width: 5rem;
9784
- height: 4rem;
9785
- 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');
9786
- background-size: contain;
9787
- background-repeat: no-repeat;
9788
- background-position: center;
9789
- filter: invert(1);
9790
- }`,
9791
- `.${CONTAINER_ELEMENT_CLASS} iframe {
9792
- ${hasCustomMountTarget ? '' : 'position: absolute;'}
9793
- width: 100%;
9794
- height: 100%;
9795
- border-width: 0;
9796
-
9797
- /* fix transparent bg, because iframe document has light scheme */
9798
- color-scheme: light;
9799
- }`,
9800
- `.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} iframe {
9801
- visibility: hidden;
9802
- }`,
9803
- !hasCustomMountTarget
9804
- ? `body.${BODY_CLASS} {
9805
- overflow: hidden;
9806
- }`
9807
- : '',
9808
- ];
9809
- let styleElement = document.getElementById(STYLES_ELEMENT_ID);
9810
- if (!styleElement) {
9811
- styleElement = document.createElement('style');
9812
- styleElement.id = STYLES_ELEMENT_ID;
9813
- styleElement.type = 'text/css';
9814
- document.head.appendChild(styleElement);
9815
- }
9816
- styleElement.textContent = styles.join('\n');
9817
- }
9818
- function removeInjectedStyles() {
9819
- const stylesElement = document.getElementById(STYLES_ELEMENT_ID);
9820
- if (stylesElement) {
9821
- stylesElement.remove();
9822
- }
9823
- }
9824
- function createContainer() {
9825
- const container = document.createElement('div');
9826
- container.id = CONTAINER_ELEMENT_ID;
9827
- container.classList.add(CONTAINER_ELEMENT_CLASS);
9828
- return container;
9829
- }
9830
- function getContainer() {
9831
- return document.getElementById(CONTAINER_ELEMENT_ID);
9832
- }
9833
- function appendToContainer(el) {
9834
- const container = getContainer();
9835
- container === null || container === void 0 ? void 0 : container.appendChild(el);
9836
- }
9837
- function deleteContainer() {
9838
- const container = getContainer();
9839
- if (container) {
9840
- container.remove();
9841
- }
9842
- removeInjectedStyles();
9843
- }
9844
- function handleIframeUnmount(iframe) {
9845
- const observer = new MutationObserver((mutationsList) => {
9846
- for (const mutation of mutationsList) {
9847
- for (const removedNode of mutation.removedNodes) {
9848
- if (removedNode instanceof HTMLElement && removedNode.id === POPUP_ELEMENT_ID) {
9849
- observer.disconnect();
9850
- deleteContainer();
9851
- return;
9852
- }
9853
- }
9854
- }
9855
- });
9856
- const parent = iframe.parentNode;
9857
- if (parent) {
9858
- observer.observe(parent, {
9859
- childList: true,
9860
- });
9861
- }
9862
- else {
9863
- console.warn(`iframe with ID "${POPUP_ELEMENT_ID}" has no parent node`);
9864
- }
9865
- }
9866
-
9867
- const CreateIntegrationRequest = zod.z.object({
9868
- name: zod.z.string().optional(),
9869
- key: zod.z.string(),
9870
- baseUri: zod.z.string(),
9871
- logoUri: zod.z.string(),
9614
+ const CreateIntegrationRequest = zod.z.object({
9615
+ name: zod.z.string().optional(),
9616
+ key: zod.z.string(),
9617
+ baseUri: zod.z.string(),
9618
+ logoUri: zod.z.string(),
9872
9619
  });
9873
9620
  const UpdateIntegrationRequest = zod.z.object({
9874
9621
  name: zod.z.string().optional(),
@@ -9877,13 +9624,6 @@ const UpdateIntegrationRequest = zod.z.object({
9877
9624
  logoUri: zod.z.string().optional(),
9878
9625
  });
9879
9626
  const FindIntegrationsQuery = zod.z.object({}).merge(PaginationQuery).merge(SearchQuery);
9880
- const OpenNewConnectionOptions = zod.z
9881
- .object({
9882
- allowMultipleConnections: zod.z.boolean().optional(),
9883
- name: zod.z.string().optional(),
9884
- connectorParameters: zod.z.any().optional(),
9885
- })
9886
- .merge(OpenConfigurationOptions);
9887
9627
  const IntegrationAuthUi = zod.z.object({
9888
9628
  schema: zod.z.any().optional(),
9889
9629
  helpUri: zod.z.string().optional(),
@@ -9939,6 +9679,15 @@ const FieldMappingApiResponse = BaseFieldMapping.extend({
9939
9679
  integration: BaseIntegration.optional(),
9940
9680
  appliedToIntegrations: AppliedToIntegrations(BaseFieldMapping).optional(),
9941
9681
  });
9682
+ const FindFieldMappingsQuery = PaginationQuery.extend({
9683
+ integrationId: zod.z.string().optional(),
9684
+ integrationKey: zod.z.string().optional(),
9685
+ universalFieldMappingId: zod.z.string().optional(),
9686
+ search: zod.z.string().optional(),
9687
+ includeArchived: zodBooleanCoercion().optional(),
9688
+ });
9689
+ const CreateFieldMappingRequest = FieldMappingEditableProperties;
9690
+ const UpdateFieldMappingRequest = CreateFieldMappingRequest.extend({}).partial();
9942
9691
 
9943
9692
  const FieldMappingInstanceApiResponse = BaseFieldMappingInstance.extend({
9944
9693
  user: BaseCustomer.optional(),
@@ -10613,7 +10362,7 @@ function extractMembraneErrorData(error) {
10613
10362
  };
10614
10363
  }
10615
10364
  if (error instanceof zod.ZodError) {
10616
- data.message = v3.fromError(error).toString();
10365
+ data.message = v4.fromError(error).toString();
10617
10366
  }
10618
10367
  return data;
10619
10368
  }
@@ -10704,6 +10453,29 @@ function timestampToDate(value) {
10704
10453
  }
10705
10454
  }
10706
10455
 
10456
+ const ONE_DAY_IN_MS = 24 * 60 * 60 * 1000;
10457
+ function isBusinessDay(date) {
10458
+ const dayOfWeek = date.getDay();
10459
+ return dayOfWeek >= 1 && dayOfWeek <= 5;
10460
+ }
10461
+ function getBusinessDaysBetween(startDate, endDate) {
10462
+ const businessDays = new Set();
10463
+ if (endDate < startDate) {
10464
+ return businessDays;
10465
+ }
10466
+ const startTime = Date.UTC(startDate.getFullYear(), startDate.getMonth(), startDate.getDate());
10467
+ const endTime = Date.UTC(endDate.getFullYear(), endDate.getMonth(), endDate.getDate());
10468
+ const dayCount = Math.floor((endTime - startTime) / ONE_DAY_IN_MS) + 1;
10469
+ for (let i = 0; i < dayCount; i++) {
10470
+ const currentTime = startTime + i * ONE_DAY_IN_MS;
10471
+ const currentDate = new Date(currentTime);
10472
+ if (isBusinessDay(currentDate)) {
10473
+ businessDays.add(currentDate.toISOString().split('T')[0]);
10474
+ }
10475
+ }
10476
+ return businessDays;
10477
+ }
10478
+
10707
10479
  exports.UsageType = void 0;
10708
10480
  (function (UsageType) {
10709
10481
  UsageType["FLOW_RUNS_DURATION"] = "flow-runs-duration";
@@ -11148,6 +10920,231 @@ class IntegrationLevelActionsListAccessor extends IntegrationLevelElementsListAc
11148
10920
  }
11149
10921
  }
11150
10922
 
10923
+ const POPUP_ELEMENT_ID = '__integration-app-popup';
10924
+ const CONTAINER_ELEMENT_ID = '__integration-app-container';
10925
+ const CONTAINER_ELEMENT_CLASS = '__integration-app-container';
10926
+ const CONTAINER_ELEMENT_CLASS__LOADER = '__integration-app-container__loader';
10927
+ const BODY_CLASS = '__integration-app-open';
10928
+ const STYLES_ELEMENT_ID = '__integration-app-embed-styles';
10929
+ let IFRAME_START_SHOW_LOADER_TIME = 0;
10930
+ let IFRAME_SHOW_LOADER_TIMEOUT_ID;
10931
+ const IFRAME_SHOW_LOADER_MINIMAL_TIME = 500;
10932
+ const IFRAME_LAYOUT_SHIFT_TIME = 300;
10933
+ function showIframeLoader() {
10934
+ const container = getContainer();
10935
+ container === null || container === void 0 ? void 0 : container.classList.add(CONTAINER_ELEMENT_CLASS__LOADER);
10936
+ IFRAME_START_SHOW_LOADER_TIME = Date.now();
10937
+ }
10938
+ function hideIframeLoader(waitLayoutShift = IFRAME_LAYOUT_SHIFT_TIME) {
10939
+ if (IFRAME_SHOW_LOADER_TIMEOUT_ID) {
10940
+ clearTimeout(IFRAME_SHOW_LOADER_TIMEOUT_ID);
10941
+ }
10942
+ const delta = Date.now() - IFRAME_START_SHOW_LOADER_TIME;
10943
+ if (delta >= IFRAME_SHOW_LOADER_MINIMAL_TIME) {
10944
+ setTimeout(() => {
10945
+ const container = getContainer();
10946
+ container === null || container === void 0 ? void 0 : container.classList.remove(CONTAINER_ELEMENT_CLASS__LOADER);
10947
+ IFRAME_START_SHOW_LOADER_TIME = 0;
10948
+ }, waitLayoutShift);
10949
+ return;
10950
+ }
10951
+ else {
10952
+ const waitLayoutShift = delta >= IFRAME_LAYOUT_SHIFT_TIME ? 0 : IFRAME_LAYOUT_SHIFT_TIME - delta;
10953
+ const timeoutTime = IFRAME_SHOW_LOADER_MINIMAL_TIME - delta;
10954
+ IFRAME_SHOW_LOADER_TIMEOUT_ID = setTimeout(() => {
10955
+ hideIframeLoader(waitLayoutShift);
10956
+ }, timeoutTime);
10957
+ return;
10958
+ }
10959
+ }
10960
+ async function openIframe(uri, callbacks = {}, { mountTargetSelector } = {}) {
10961
+ close();
10962
+ init(mountTargetSelector);
10963
+ return new Promise((resolve) => {
10964
+ function complete(callback) {
10965
+ close(callback);
10966
+ resolve();
10967
+ }
10968
+ function doOpen() {
10969
+ const iframe = document.createElement('iframe');
10970
+ iframe.src = uri;
10971
+ iframe.id = POPUP_ELEMENT_ID;
10972
+ iframe.onload = () => {
10973
+ hideIframeLoader();
10974
+ };
10975
+ if (!!getContainer()) {
10976
+ document.body.classList.add(BODY_CLASS);
10977
+ showIframeLoader();
10978
+ appendToContainer(iframe);
10979
+ handleIframeUnmount(iframe);
10980
+ penpal.connectToChild({
10981
+ iframe,
10982
+ methods: {
10983
+ ...callbacks,
10984
+ handshake: (...args) => {
10985
+ var _a;
10986
+ hideIframeLoader();
10987
+ (_a = callbacks === null || callbacks === void 0 ? void 0 : callbacks.handshake) === null || _a === void 0 ? void 0 : _a.call(callbacks, ...args);
10988
+ },
10989
+ close: () => complete(callbacks.onClose),
10990
+ },
10991
+ });
10992
+ }
10993
+ else {
10994
+ throw Error('Membrane container element not found. Was it manually removed?');
10995
+ }
10996
+ }
10997
+ if (document.readyState === 'complete' || document.readyState === 'interactive') {
10998
+ doOpen();
10999
+ }
11000
+ else {
11001
+ document.addEventListener('DOMContentLoaded', () => {
11002
+ doOpen();
11003
+ });
11004
+ }
11005
+ });
11006
+ }
11007
+ function close(callback) {
11008
+ document.body.classList.remove(BODY_CLASS);
11009
+ if (!!getContainer()) {
11010
+ deleteContainer();
11011
+ if (callback) {
11012
+ callback();
11013
+ }
11014
+ }
11015
+ }
11016
+ function init(mountTargetSelector) {
11017
+ var _a;
11018
+ injectStyles(mountTargetSelector);
11019
+ if (!!getContainer()) {
11020
+ return;
11021
+ }
11022
+ const container = createContainer();
11023
+ if (mountTargetSelector && document.querySelector(mountTargetSelector)) {
11024
+ (_a = document.querySelector(mountTargetSelector)) === null || _a === void 0 ? void 0 : _a.appendChild(container);
11025
+ }
11026
+ else {
11027
+ document.body.appendChild(container);
11028
+ }
11029
+ }
11030
+ function injectStyles(mountTargetSelector) {
11031
+ const hasCustomMountTarget = Boolean(mountTargetSelector && document.querySelector(mountTargetSelector));
11032
+ const styles = [
11033
+ `.${CONTAINER_ELEMENT_CLASS}:empty {
11034
+ display: none;
11035
+ }`,
11036
+ hasCustomMountTarget
11037
+ ? `.${CONTAINER_ELEMENT_CLASS} {
11038
+ inset: 0;
11039
+ background: rgba(0, 0, 0, 0);
11040
+ transition: background 0.2s ease-out;
11041
+ display: flex;
11042
+ justify-content: center;
11043
+ align-items: center;
11044
+ width: 100%;
11045
+ height: 100%;
11046
+ }`
11047
+ : `.${CONTAINER_ELEMENT_CLASS} {
11048
+ position: fixed;
11049
+ inset: 0;
11050
+ z-index: 2147483647;
11051
+ display: flex;
11052
+ justify-content: center;
11053
+ align-items: center;
11054
+ pointer-events: auto;
11055
+ background: rgba(0, 0, 0, 0);
11056
+ transition: background 0.2s ease-out;
11057
+ }`,
11058
+ `.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} {
11059
+ background: rgba(0, 0, 0, 0.8);
11060
+ }`,
11061
+ `.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER}::before {
11062
+ ${hasCustomMountTarget ? 'position: absolute;' : ''}
11063
+ content: "";
11064
+ width: 5rem;
11065
+ height: 4rem;
11066
+ 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');
11067
+ background-size: contain;
11068
+ background-repeat: no-repeat;
11069
+ background-position: center;
11070
+ filter: invert(1);
11071
+ }`,
11072
+ `.${CONTAINER_ELEMENT_CLASS} iframe {
11073
+ ${hasCustomMountTarget ? '' : 'position: absolute;'}
11074
+ width: 100%;
11075
+ height: 100%;
11076
+ border-width: 0;
11077
+
11078
+ /* fix transparent bg, because iframe document has light scheme */
11079
+ color-scheme: light;
11080
+ }`,
11081
+ `.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} iframe {
11082
+ visibility: hidden;
11083
+ }`,
11084
+ !hasCustomMountTarget
11085
+ ? `body.${BODY_CLASS} {
11086
+ overflow: hidden;
11087
+ }`
11088
+ : '',
11089
+ ];
11090
+ let styleElement = document.getElementById(STYLES_ELEMENT_ID);
11091
+ if (!styleElement) {
11092
+ styleElement = document.createElement('style');
11093
+ styleElement.id = STYLES_ELEMENT_ID;
11094
+ styleElement.type = 'text/css';
11095
+ document.head.appendChild(styleElement);
11096
+ }
11097
+ styleElement.textContent = styles.join('\n');
11098
+ }
11099
+ function removeInjectedStyles() {
11100
+ const stylesElement = document.getElementById(STYLES_ELEMENT_ID);
11101
+ if (stylesElement) {
11102
+ stylesElement.remove();
11103
+ }
11104
+ }
11105
+ function createContainer() {
11106
+ const container = document.createElement('div');
11107
+ container.id = CONTAINER_ELEMENT_ID;
11108
+ container.classList.add(CONTAINER_ELEMENT_CLASS);
11109
+ return container;
11110
+ }
11111
+ function getContainer() {
11112
+ return document.getElementById(CONTAINER_ELEMENT_ID);
11113
+ }
11114
+ function appendToContainer(el) {
11115
+ const container = getContainer();
11116
+ container === null || container === void 0 ? void 0 : container.appendChild(el);
11117
+ }
11118
+ function deleteContainer() {
11119
+ const container = getContainer();
11120
+ if (container) {
11121
+ container.remove();
11122
+ }
11123
+ removeInjectedStyles();
11124
+ }
11125
+ function handleIframeUnmount(iframe) {
11126
+ const observer = new MutationObserver((mutationsList) => {
11127
+ for (const mutation of mutationsList) {
11128
+ for (const removedNode of mutation.removedNodes) {
11129
+ if (removedNode instanceof HTMLElement && removedNode.id === POPUP_ELEMENT_ID) {
11130
+ observer.disconnect();
11131
+ deleteContainer();
11132
+ return;
11133
+ }
11134
+ }
11135
+ }
11136
+ });
11137
+ const parent = iframe.parentNode;
11138
+ if (parent) {
11139
+ observer.observe(parent, {
11140
+ childList: true,
11141
+ });
11142
+ }
11143
+ else {
11144
+ console.warn(`iframe with ID "${POPUP_ELEMENT_ID}" has no parent node`);
11145
+ }
11146
+ }
11147
+
11151
11148
  class ConnectionLevelElementAccessor {
11152
11149
  constructor(client, connectionSelector, selector, elementKey, query) {
11153
11150
  this.client = client;
@@ -12391,20 +12388,20 @@ const HandyScenarioTemplateElement = zod.z.object({
12391
12388
  key: zod.z.string(),
12392
12389
  name: zod.z.string(),
12393
12390
  })
12394
- .and(zod.z.record(zod.z.any())),
12391
+ .and(zod.z.record(zod.z.string(), zod.z.any())),
12395
12392
  });
12396
12393
  const withIntegrationKeys = (schema) => schema.and(zod.z.object({ integrationKeys: zod.z.array(zod.z.string()).optional() }));
12397
12394
  const ElementsExportFields = zod.z.object({
12398
- flows: zod.z.record(withIntegrationKeys(zod.z.any())).optional(),
12399
- actions: zod.z.record(withIntegrationKeys(zod.z.any())).optional(),
12400
- fieldMappings: zod.z.record(withIntegrationKeys(zod.z.any())).optional(),
12401
- dataSources: zod.z.record(withIntegrationKeys(zod.z.any())).optional(),
12402
- dataLinkTables: zod.z.record(zod.z.any()).optional(),
12403
- appEventTypes: zod.z.record(zod.z.any()).optional(),
12404
- appDataSchemas: zod.z.record(zod.z.any()).optional(),
12395
+ flows: zod.z.record(zod.z.string(), withIntegrationKeys(zod.z.any())).optional(),
12396
+ actions: zod.z.record(zod.z.string(), withIntegrationKeys(zod.z.any())).optional(),
12397
+ fieldMappings: zod.z.record(zod.z.string(), withIntegrationKeys(zod.z.any())).optional(),
12398
+ dataSources: zod.z.record(zod.z.string(), withIntegrationKeys(zod.z.any())).optional(),
12399
+ dataLinkTables: zod.z.record(zod.z.string(), zod.z.any()).optional(),
12400
+ appEventTypes: zod.z.record(zod.z.string(), zod.z.any()).optional(),
12401
+ appDataSchemas: zod.z.record(zod.z.string(), zod.z.any()).optional(),
12405
12402
  });
12406
12403
  const ScenarioTemplateElements = ElementsExportFields.and(zod.z.object({
12407
- integrations: zod.z.record(ElementsExportFields.and(zod.z.object({ connectorId: zod.z.string() }))).optional(),
12404
+ integrations: zod.z.record(zod.z.string(), ElementsExportFields.and(zod.z.object({ connectorId: zod.z.string() }))).optional(),
12408
12405
  }));
12409
12406
  const ScenarioTemplate = zod.z.object({
12410
12407
  id: zod.z.string(),
@@ -12990,6 +12987,7 @@ exports.CreateConnectionRequest = CreateConnectionRequest;
12990
12987
  exports.CreateCustomerRequest = CreateCustomerRequest;
12991
12988
  exports.CreateDataSourceInstanceRequest = CreateDataSourceInstanceRequest;
12992
12989
  exports.CreateDataSourceRequest = CreateDataSourceRequest;
12990
+ exports.CreateFieldMappingRequest = CreateFieldMappingRequest;
12993
12991
  exports.CreateFlowNodeRequest = CreateFlowNodeRequest;
12994
12992
  exports.CreateFlowRequest = CreateFlowRequest;
12995
12993
  exports.CreateFlowRunRequest = CreateFlowRunRequest;
@@ -13053,6 +13051,7 @@ exports.DataRecordSchema = DataRecordSchema;
13053
13051
  exports.DataSchema = DataSchema;
13054
13052
  exports.DataSourceAccessor = DataSourceAccessor;
13055
13053
  exports.DataSourceApiResponse = DataSourceApiResponse;
13054
+ exports.DataSourceEditableProperties = DataSourceEditableProperties;
13056
13055
  exports.DataSourceInstanceAccessor = DataSourceInstanceAccessor;
13057
13056
  exports.DataSourceInstanceApiResponse = DataSourceInstanceApiResponse;
13058
13057
  exports.DataSourceInstancesAccessor = DataSourceInstancesAccessor;
@@ -13079,6 +13078,7 @@ exports.ExternalEventUnitConfig = ExternalEventUnitConfig;
13079
13078
  exports.FLOW_NODE_SPECS = FLOW_NODE_SPECS;
13080
13079
  exports.FieldMappingAccessor = FieldMappingAccessor;
13081
13080
  exports.FieldMappingApiResponse = FieldMappingApiResponse;
13081
+ exports.FieldMappingEditableProperties = FieldMappingEditableProperties;
13082
13082
  exports.FieldMappingInstanceAccessor = FieldMappingInstanceAccessor;
13083
13083
  exports.FieldMappingInstanceApiResponse = FieldMappingInstanceApiResponse;
13084
13084
  exports.FieldMappingInstancesAccessor = FieldMappingInstancesAccessor;
@@ -13094,6 +13094,7 @@ exports.FindDataSourceInstanceSyncsQuery = FindDataSourceInstanceSyncsQuery;
13094
13094
  exports.FindDataSourceInstancesQuery = FindDataSourceInstancesQuery;
13095
13095
  exports.FindDataSourceSyncsQuery = FindDataSourceSyncsQuery;
13096
13096
  exports.FindDataSourcesQuery = FindDataSourcesQuery;
13097
+ exports.FindFieldMappingsQuery = FindFieldMappingsQuery;
13097
13098
  exports.FindFlowInstancesQuery = FindFlowInstancesQuery;
13098
13099
  exports.FindFlowRunsQuery = FindFlowRunsQuery;
13099
13100
  exports.FindFlowRunsResponse = FindFlowRunsResponse;
@@ -13102,6 +13103,7 @@ exports.FindIntegrationsQuery = FindIntegrationsQuery;
13102
13103
  exports.FindScenariosQuery = FindScenariosQuery;
13103
13104
  exports.FlowAccessor = FlowAccessor;
13104
13105
  exports.FlowApiResponse = FlowApiResponse;
13106
+ exports.FlowEditableProperties = FlowEditableProperties;
13105
13107
  exports.FlowInstanceAccessor = FlowInstanceAccessor;
13106
13108
  exports.FlowInstanceApiResponse = FlowInstanceApiResponse;
13107
13109
  exports.FlowInstanceNode = FlowInstanceNode;
@@ -13148,11 +13150,9 @@ exports.InternalError = InternalError;
13148
13150
  exports.InvalidLocatorError = InvalidLocatorError;
13149
13151
  exports.ListActionInstancesForConnectionQuery = ListActionInstancesForConnectionQuery;
13150
13152
  exports.ListDataSourceInstancesForConnectionQuery = ListDataSourceInstancesForConnectionQuery;
13151
- exports.ListDataSourcesForIntegrationQuery = ListDataSourcesForIntegrationQuery;
13152
13153
  exports.ListExternalEventLogRecordsQuery = ListExternalEventLogRecordsQuery;
13153
13154
  exports.ListExternalEventPullsQuery = ListExternalEventPullsQuery;
13154
13155
  exports.ListFlowInstancesForConnectionQuery = ListFlowInstancesForConnectionQuery;
13155
- exports.ListFlowsForIntegrationQuery = ListFlowsForIntegrationQuery;
13156
13156
  exports.MIN_FULL_SYNC_INTERVAL_SECONDS = MIN_FULL_SYNC_INTERVAL_SECONDS;
13157
13157
  exports.MIN_PULL_UPDATES_INTERVAL_SECONDS = MIN_PULL_UPDATES_INTERVAL_SECONDS;
13158
13158
  exports.MembraneClient = MembraneClient;
@@ -13163,14 +13163,12 @@ exports.NotAuthenticatedError = NotAuthenticatedError;
13163
13163
  exports.NotFoundError = NotFoundError;
13164
13164
  exports.OAUTH1_CONFIG_SCHEMA = OAUTH1_CONFIG_SCHEMA;
13165
13165
  exports.OAUTH_CONFIG_SCHEMA = OAUTH_CONFIG_SCHEMA;
13166
- exports.OpenNewConnectionOptions = OpenNewConnectionOptions;
13167
13166
  exports.PARALLEL_EXECUTION_LIMITS = PARALLEL_EXECUTION_LIMITS;
13168
13167
  exports.PaginationQuery = PaginationQuery;
13169
13168
  exports.PaginationResponse = PaginationResponse;
13170
13169
  exports.RATE_LIMITS = RATE_LIMITS;
13171
13170
  exports.RateLimitExceededError = RateLimitExceededError;
13172
13171
  exports.ResetFlowInstanceOptions = ResetFlowInstanceOptions;
13173
- exports.RunFlowOptions = RunFlowOptions;
13174
13172
  exports.ScenarioAccessor = ScenarioAccessor;
13175
13173
  exports.ScenarioApiResponse = ScenarioApiResponse;
13176
13174
  exports.ScenarioCalculatedProperties = ScenarioCalculatedProperties;
@@ -13194,6 +13192,7 @@ exports.UpdateConnectionRequest = UpdateConnectionRequest;
13194
13192
  exports.UpdateCustomerRequest = UpdateCustomerRequest;
13195
13193
  exports.UpdateDataSourceInstanceRequest = UpdateDataSourceInstanceRequest;
13196
13194
  exports.UpdateDataSourceRequest = UpdateDataSourceRequest;
13195
+ exports.UpdateFieldMappingRequest = UpdateFieldMappingRequest;
13197
13196
  exports.UpdateFlowRequest = UpdateFlowRequest;
13198
13197
  exports.UpdateIntegrationRequest = UpdateIntegrationRequest;
13199
13198
  exports.UpstreamFlowNodeRunSchema = UpstreamFlowNodeRunSchema;
@@ -13232,6 +13231,7 @@ exports.generateExampleFromSchema = generateExampleFromSchema;
13232
13231
  exports.getActionInstanceVariableSchema = getActionInstanceVariableSchema;
13233
13232
  exports.getActionRunTimeVariablesSchema = getActionRunTimeVariablesSchema;
13234
13233
  exports.getAllEventMethodFilePaths = getAllEventMethodFilePaths;
13234
+ exports.getBusinessDaysBetween = getBusinessDaysBetween;
13235
13235
  exports.getChildNodeKeys = getChildNodeKeys;
13236
13236
  exports.getDataCollectionCreateFields = getDataCollectionCreateFields;
13237
13237
  exports.getDataCollectionUpdateFields = getDataCollectionUpdateFields;
@@ -13276,6 +13276,7 @@ exports.hasCycles = hasCycles;
13276
13276
  exports.hasFormulas_internalDoNotUse = hasFormulas;
13277
13277
  exports.hasMembraneCredentials = hasMembraneCredentials;
13278
13278
  exports.injectFormulaCatalog = injectFormulaCatalog;
13279
+ exports.isBusinessDay = isBusinessDay;
13279
13280
  exports.isDataActionType = isDataActionType;
13280
13281
  exports.isDataLocationMethodSupported = isDataLocationMethodSupported;
13281
13282
  exports.isFormula_internalDoNotUse = isFormula;