@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
 
15
15
  exports.ErrorType = void 0;
@@ -1319,7 +1319,7 @@ const DataSchema = zod.z.lazy(() => zod.z
1319
1319
  description: zod.z.string().optional(),
1320
1320
  type: zod.z.union([zod.z.string(), zod.z.array(zod.z.string())]).optional(),
1321
1321
  format: zod.z.string().optional(),
1322
- properties: zod.z.record(DataSchema).optional(),
1322
+ properties: zod.z.record(zod.z.string(), DataSchema).optional(),
1323
1323
  items: DataSchema.optional(),
1324
1324
  additionalProperties: zod.z.union([zod.z.boolean(), DataSchema]).optional(),
1325
1325
  enum: zod.z.array(zod.z.string()).optional(),
@@ -1327,7 +1327,7 @@ const DataSchema = zod.z.lazy(() => zod.z
1327
1327
  referenceCollection: zod.z
1328
1328
  .object({
1329
1329
  key: zod.z.any().optional(),
1330
- parameters: zod.z.record(zod.z.any()).optional(),
1330
+ parameters: zod.z.record(zod.z.string(), zod.z.any()).optional(),
1331
1331
  })
1332
1332
  .optional(),
1333
1333
  referenceUdm: zod.z.string().optional(),
@@ -3458,40 +3458,6 @@ const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = BaseMembraneInte
3458
3458
  });
3459
3459
  const BaseIntegrationLevelMembraneInterface = BaseMembraneInterface.merge(BaseIntegrationLevelMembraneInterfaceEditableProperties).merge(BaseIntegrationLevelMembraneInterfaceReadOnlyProperties);
3460
3460
 
3461
- exports.FieldMappingDirection = void 0;
3462
- (function (FieldMappingDirection) {
3463
- FieldMappingDirection["IMPORT"] = "import";
3464
- FieldMappingDirection["EXPORT"] = "export";
3465
- FieldMappingDirection["BOTH"] = "both";
3466
- })(exports.FieldMappingDirection || (exports.FieldMappingDirection = {}));
3467
- const BaseFieldMapping = BaseIntegrationLevelMembraneInterface.extend({
3468
- publishedRevision: zod.z.string().optional(),
3469
- universalFieldMappingId: zod.z.string().optional(),
3470
- universalFieldMappingRevision: zod.z.string().optional(),
3471
- dataSourceId: zod.z.string().optional(),
3472
- dataSourceKey: zod.z.string().optional(),
3473
- appSchema: DataSchema.optional(),
3474
- direction: zod.z.nativeEnum(exports.FieldMappingDirection).optional(),
3475
- defaultImportValue: zod.z.any().optional(),
3476
- defaultExportValue: zod.z.any().optional(),
3477
- importValue: zod.z.any().optional(),
3478
- exportValue: zod.z.any().optional(),
3479
- frozenImportFields: zod.z.any().optional(),
3480
- frozenExportFields: zod.z.any().optional(),
3481
- frozenUnifiedExportFields: zod.z.any().optional(),
3482
- });
3483
- const FieldMappingUnitConfig = zod.z.object({
3484
- key: zod.z.string().optional(),
3485
- input: zod.z.any().optional(),
3486
- includeRawFields: zod.z.any().optional(),
3487
- importValue: zod.z.any().optional(),
3488
- exportValue: zod.z.any().optional(),
3489
- default: zod.z.any().optional(),
3490
- defaultUnifiedValue: zod.z.any().optional(),
3491
- defaultValue: zod.z.any().optional(),
3492
- appSchema: DataSchema.optional(),
3493
- });
3494
-
3495
3461
  function mergeWithFormulas(a, b) {
3496
3462
  if (Array.isArray(a) && Array.isArray(b)) {
3497
3463
  const length = Math.max(a.length, b.length);
@@ -3522,6 +3488,44 @@ function isObject(value) {
3522
3488
  !(value instanceof Boolean));
3523
3489
  }
3524
3490
 
3491
+ exports.FieldMappingDirection = void 0;
3492
+ (function (FieldMappingDirection) {
3493
+ FieldMappingDirection["IMPORT"] = "import";
3494
+ FieldMappingDirection["EXPORT"] = "export";
3495
+ FieldMappingDirection["BOTH"] = "both";
3496
+ })(exports.FieldMappingDirection || (exports.FieldMappingDirection = {}));
3497
+ const FieldMappingEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
3498
+ parentId: true,
3499
+ }).extend({
3500
+ universalFieldMappingId: zod.z.string().optional(),
3501
+ dataSourceKey: zod.z.string().optional(),
3502
+ dataSourceId: zod.z.string().optional(),
3503
+ appSchema: DataSchema.optional(),
3504
+ direction: zod.z.nativeEnum(exports.FieldMappingDirection).optional(),
3505
+ defaultImportValue: zod.z.any().optional(),
3506
+ defaultExportValue: zod.z.any().optional(),
3507
+ importValue: zod.z.any().optional(),
3508
+ exportValue: zod.z.any().optional(),
3509
+ frozenImportFields: zod.z.any().optional(),
3510
+ frozenExportFields: zod.z.any().optional(),
3511
+ frozenUnifiedExportFields: zod.z.any().optional(),
3512
+ });
3513
+ const FieldMappingReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
3514
+ universalFieldMappingRevision: zod.z.string().optional(),
3515
+ });
3516
+ const BaseFieldMapping = BaseMembraneInterface.merge(FieldMappingEditableProperties).merge(FieldMappingReadOnlyProperties);
3517
+ const FieldMappingUnitConfig = zod.z.object({
3518
+ key: zod.z.string().optional(),
3519
+ input: zod.z.any().optional(),
3520
+ includeRawFields: zod.z.any().optional(),
3521
+ importValue: zod.z.any().optional(),
3522
+ exportValue: zod.z.any().optional(),
3523
+ default: zod.z.any().optional(),
3524
+ defaultUnifiedValue: zod.z.any().optional(),
3525
+ defaultValue: zod.z.any().optional(),
3526
+ appSchema: DataSchema.optional(),
3527
+ });
3528
+
3525
3529
  exports.ActionType = void 0;
3526
3530
  (function (ActionType) {
3527
3531
  ActionType["ListDataRecords"] = "list-data-records";
@@ -3634,9 +3638,9 @@ const BaseAction = BaseMembraneInterface.merge(ActionEditableProperties).merge(A
3634
3638
  const ConnectionRequest = zod.z.object({
3635
3639
  path: zod.z.any(),
3636
3640
  method: zod.z.enum(['GET', 'POST', 'PUT', 'PATCH', 'DELETE']).optional(),
3637
- pathParameters: zod.z.record(zod.z.string()).optional(),
3638
- headers: zod.z.record(zod.z.string()).optional(),
3639
- query: zod.z.record(zod.z.string()).optional(),
3641
+ pathParameters: zod.z.record(zod.z.string(), zod.z.string()).optional(),
3642
+ headers: zod.z.record(zod.z.string(), zod.z.string()).optional(),
3643
+ query: zod.z.record(zod.z.string(), zod.z.string()).optional(),
3640
3644
  data: zod.z.any().optional(),
3641
3645
  });
3642
3646
  const BaseConnection = BaseWorkspaceElement.extend({
@@ -3655,7 +3659,7 @@ const BaseConnection = BaseWorkspaceElement.extend({
3655
3659
  nextCredentialsRefreshAt: zod.z.string().optional(),
3656
3660
  archivedAt: zod.z.string().optional(),
3657
3661
  isDeactivated: zod.z.boolean().optional(),
3658
- meta: zod.z.record(zod.z.any()).optional(),
3662
+ meta: zod.z.record(zod.z.string(), zod.z.any()).optional(),
3659
3663
  });
3660
3664
  class ConnectionSpec {
3661
3665
  constructor(opts) {
@@ -3992,10 +3996,10 @@ const DataRecordSchema = zod.z.object({
3992
3996
  name: zod.z.string().optional(),
3993
3997
  uri: zod.z.string().optional(),
3994
3998
  iconUri: zod.z.string().optional(),
3995
- fields: zod.z.record(zod.z.any()).optional(),
3999
+ fields: zod.z.record(zod.z.string(), zod.z.any()).optional(),
3996
4000
  udm: zod.z.string().optional(),
3997
- unifiedFields: zod.z.record(zod.z.any()).optional(),
3998
- rawFields: zod.z.record(zod.z.any()).optional(),
4001
+ unifiedFields: zod.z.record(zod.z.string(), zod.z.any()).optional(),
4002
+ rawFields: zod.z.record(zod.z.string(), zod.z.any()).optional(),
3999
4003
  createdTime: zod.z.string().optional(),
4000
4004
  updatedTime: zod.z.string().optional(),
4001
4005
  deletedTime: zod.z.string().optional(),
@@ -8180,10 +8184,10 @@ const DataCollectionEventsSpec = zod.z
8180
8184
  .catchall(DataCollectionEventTypeSpec);
8181
8185
  const DataCollectionUdmSpec = zod.z.object({
8182
8186
  fields: zod.z.array(zod.z.string()).optional(),
8183
- extract: zod.z.record(zod.z.any()).optional(),
8184
- parse: zod.z.record(zod.z.any()).optional(),
8187
+ extract: zod.z.record(zod.z.string(), zod.z.any()).optional(),
8188
+ parse: zod.z.record(zod.z.string(), zod.z.any()).optional(),
8185
8189
  });
8186
- const DataCollectionUdmsSpec = zod.z.record(DataCollectionUdmSpec);
8190
+ const DataCollectionUdmsSpec = zod.z.record(zod.z.string(), DataCollectionUdmSpec);
8187
8191
  const DataCollectionSpec = zod.z.object({
8188
8192
  type: zod.z.literal('collection'),
8189
8193
  key: zod.z.string().optional(),
@@ -8203,7 +8207,7 @@ const DataCollectionSpec = zod.z.object({
8203
8207
  find: DataCollectionFindSpec.optional(),
8204
8208
  });
8205
8209
  const DataCollectionMethodRequest = zod.z.object({
8206
- parameters: zod.z.record(zod.z.any()).optional(),
8210
+ parameters: zod.z.record(zod.z.string(), zod.z.any()).optional(),
8207
8211
  });
8208
8212
  const DataCollectionFindRequest = zod.z.object({
8209
8213
  query: zod.z.any().optional(),
@@ -8219,8 +8223,8 @@ const DataCollectionListRequest = DataCollectionMethodRequest.extend({
8219
8223
  cursor: zod.z.string().optional(),
8220
8224
  });
8221
8225
  const DataCollectionListResponseDrilldown = zod.z.object({
8222
- parameters: zod.z.record(zod.z.any()).optional(),
8223
- filter: zod.z.record(zod.z.any()).optional(),
8226
+ parameters: zod.z.record(zod.z.string(), zod.z.any()).optional(),
8227
+ filter: zod.z.record(zod.z.string(), zod.z.any()).optional(),
8224
8228
  });
8225
8229
  const DataCollectionListResponse = zod.z.object({
8226
8230
  records: zod.z.array(DataRecordSchema),
@@ -8243,20 +8247,20 @@ const DataCollectionFindByIdResponse = zod.z.object({
8243
8247
  record: DataRecordSchema,
8244
8248
  });
8245
8249
  const DataCollectionMatchRequest = DataCollectionMethodRequest.extend({
8246
- query: zod.z.record(zod.z.any()),
8250
+ query: zod.z.record(zod.z.string(), zod.z.any()),
8247
8251
  });
8248
8252
  const DataCollectionMatchResponse = zod.z.object({
8249
8253
  record: DataRecordSchema.optional(),
8250
8254
  });
8251
8255
  const DataCollectionCreateRequest = DataCollectionMethodRequest.extend({
8252
- fields: zod.z.record(zod.z.any()),
8256
+ fields: zod.z.record(zod.z.string(), zod.z.any()),
8253
8257
  });
8254
8258
  const DataCollectionCreateResponse = zod.z.object({
8255
8259
  id: zod.z.string(),
8256
8260
  });
8257
8261
  const DataCollectionUpdateRequest = DataCollectionMethodRequest.extend({
8258
8262
  id: zod.z.string(),
8259
- fields: zod.z.record(zod.z.any()),
8263
+ fields: zod.z.record(zod.z.string(), zod.z.any()),
8260
8264
  });
8261
8265
  const DataCollectionUpdateResponse = zod.z.object({
8262
8266
  id: zod.z.string(),
@@ -8331,7 +8335,21 @@ const DEFAULT_PULL_UPDATES_INTERVAL_SECONDS = 60 * 5;
8331
8335
  const DEFAULT_FULL_SYNC_INTERVAL_SECONDS = 60 * 60 * 3;
8332
8336
  const MIN_FULL_SYNC_INTERVAL_SECONDS = 1 * 60;
8333
8337
  const MIN_PULL_UPDATES_INTERVAL_SECONDS = 1 * 60;
8334
-
8338
+ const DataSourceEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
8339
+ parentId: true,
8340
+ }).extend({
8341
+ universalDataSourceId: zod.z.string().optional(),
8342
+ udm: zod.z.string().optional(),
8343
+ pullUpdatesIntervalSeconds: zod.z.number().optional(),
8344
+ fullSyncIntervalSeconds: zod.z.number().optional(),
8345
+ collectionKey: zod.z.string().optional(),
8346
+ collectionParameters: zod.z.any().optional(),
8347
+ defaultPath: zod.z.string().optional(),
8348
+ });
8349
+ const DataSourceReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
8350
+ universalDataSourceRevision: zod.z.string().optional(),
8351
+ });
8352
+ const BaseDataSource = BaseMembraneInterface.merge(DataSourceEditableProperties).merge(DataSourceReadOnlyProperties);
8335
8353
  const DataSourceUnitConfig = zod.z.object({
8336
8354
  key: zod.z.string().optional(),
8337
8355
  collectionKey: zod.z.any().optional(),
@@ -8341,17 +8359,6 @@ const DataSourceUnitConfig = zod.z.object({
8341
8359
  pullUpdatesIntervalSeconds: zod.z.number().optional(),
8342
8360
  fullSyncIntervalSeconds: zod.z.number().optional(),
8343
8361
  });
8344
- const BaseDataSource = BaseIntegrationLevelMembraneInterface.extend({
8345
- publishedRevision: zod.z.string().optional(),
8346
- universalDataSourceId: zod.z.string().optional(),
8347
- universalDataSourceRevision: zod.z.string().optional(),
8348
- udm: zod.z.string().optional(),
8349
- pullUpdatesIntervalSeconds: zod.z.number().optional(),
8350
- fullSyncIntervalSeconds: zod.z.number().optional(),
8351
- collectionKey: zod.z.string().optional(),
8352
- collectionParameters: zod.z.any().optional(),
8353
- defaultPath: zod.z.string().optional(),
8354
- });
8355
8362
 
8356
8363
  const BaseDataSourceInstance = BaseMembraneInterface.extend({
8357
8364
  userId: zod.z.string(),
@@ -8470,7 +8477,7 @@ const BaseFlowRun = zod.z.object({
8470
8477
  startTime: zod.z.string(),
8471
8478
  endTime: zod.z.string().optional(),
8472
8479
  errors: zod.z.array(ErrorDataSchema).optional(),
8473
- nodes: zod.z.record(FlowRunNode).optional(),
8480
+ nodes: zod.z.record(zod.z.string(), FlowRunNode).optional(),
8474
8481
  launchedBy: FlowRunLaunchedBy.optional(),
8475
8482
  });
8476
8483
 
@@ -8524,6 +8531,26 @@ const FlowNodeRunRecordWithoutOutputsDataSchema = zod.z.object({
8524
8531
  errors: zod.z.array(ErrorDataSchema),
8525
8532
  });
8526
8533
 
8534
+ const FlowNodeLink = zod.z.object({
8535
+ key: zod.z.string().optional(),
8536
+ filter: zod.z.any().optional(),
8537
+ name: zod.z.string().optional(),
8538
+ });
8539
+ const FlowNode = zod.z.object({
8540
+ type: zod.z.string().optional(),
8541
+ version: zod.z.number().optional(),
8542
+ name: zod.z.string().optional(),
8543
+ description: zod.z.string().optional(),
8544
+ config: zod.z.any().optional(),
8545
+ concurrency: zod.z.number().optional(),
8546
+ onError: zod.z.enum(['stop', 'continue']).optional(),
8547
+ ui: zod.z.any().optional(),
8548
+ inputSchema: zod.z.any().optional(),
8549
+ outputSchema: zod.z.any().optional(),
8550
+ outputExample: zod.z.any().optional(),
8551
+ links: zod.z.array(FlowNodeLink).optional(),
8552
+ isCustomized: zod.z.boolean().optional(),
8553
+ });
8527
8554
  class FlowNodeSpec {
8528
8555
  constructor(args) {
8529
8556
  Object.assign(this, args);
@@ -8797,33 +8824,19 @@ const FLOW_NODE_SPECS = {
8797
8824
  [exports.FlowNodeType.RunAction]: RunAction,
8798
8825
  };
8799
8826
 
8800
- const FlowNodeLink = zod.z.object({
8801
- key: zod.z.string().optional(),
8802
- filter: zod.z.any().optional(),
8803
- name: zod.z.string().optional(),
8804
- });
8805
- const FlowNode = zod.z.object({
8806
- type: zod.z.string().optional(),
8807
- version: zod.z.number().optional(),
8808
- name: zod.z.string().optional(),
8809
- description: zod.z.string().optional(),
8810
- config: zod.z.any().optional(),
8811
- concurrency: zod.z.number().optional(),
8812
- onError: zod.z.enum(['stop', 'continue']).optional(),
8813
- ui: zod.z.any().optional(),
8814
- inputSchema: zod.z.any().optional(),
8815
- outputSchema: zod.z.any().optional(),
8816
- outputExample: zod.z.any().optional(),
8817
- links: zod.z.array(FlowNodeLink).optional(),
8818
- isCustomized: zod.z.boolean().optional(),
8819
- });
8820
- const BaseFlow = BaseIntegrationLevelMembraneInterface.extend({
8827
+ const FlowEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
8828
+ parentId: true,
8829
+ }).extend({
8830
+ integrationId: zod.z.string().optional(),
8821
8831
  universalFlowId: zod.z.string().optional(),
8822
- universalFlowRevision: zod.z.string().optional(),
8823
8832
  parametersSchema: DataSchema.optional(),
8824
- nodes: zod.z.record(FlowNode).optional(),
8833
+ nodes: zod.z.record(zod.z.string(), FlowNode).optional(),
8825
8834
  autoCreateInstances: zod.z.boolean().optional(),
8826
8835
  });
8836
+ const FlowReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
8837
+ universalFlowRevision: zod.z.string().optional(),
8838
+ });
8839
+ const BaseFlow = BaseMembraneInterface.merge(FlowEditableProperties).merge(FlowReadOnlyProperties);
8827
8840
 
8828
8841
  const BaseIntegration = BaseMembraneInterface.extend({
8829
8842
  logoUri: zod.z.string(),
@@ -8905,7 +8918,7 @@ const ScreenBlock = zod.z
8905
8918
  .object({
8906
8919
  type: zod.z.nativeEnum(exports.ScreenBlockType),
8907
8920
  })
8908
- .and(zod.z.record(zod.z.any()));
8921
+ .and(zod.z.record(zod.z.string(), zod.z.any()));
8909
8922
  const BaseScreen = BaseWorkspaceElement.extend({
8910
8923
  type: zod.z.nativeEnum(exports.ScreenType),
8911
8924
  key: zod.z.string().optional(),
@@ -8915,7 +8928,7 @@ const BaseScreen = BaseWorkspaceElement.extend({
8915
8928
  const BaseCustomer = zod.z.object({
8916
8929
  id: zod.z.string(),
8917
8930
  name: zod.z.string(),
8918
- meta: zod.z.record(zod.z.any()).optional(),
8931
+ meta: zod.z.record(zod.z.string(), zod.z.any()).optional(),
8919
8932
  internalId: zod.z.string(),
8920
8933
  fields: zod.z.record(zod.z.string(), zod.z.any()).optional(),
8921
8934
  credentials: zod.z.any().optional(),
@@ -8935,7 +8948,7 @@ const BaseFlowInstance = BaseMembraneInterface.extend({
8935
8948
  instanceKey: zod.z.string().optional(),
8936
8949
  parameters: zod.z.any().optional(),
8937
8950
  parametersSchema: DataSchema.optional(),
8938
- nodes: zod.z.record(zod.z.any()).optional(),
8951
+ nodes: zod.z.record(zod.z.string(), zod.z.any()).optional(),
8939
8952
  enabled: zod.z.boolean(),
8940
8953
  createdAt: zod.z.string(),
8941
8954
  updatedAt: zod.z.string(),
@@ -9103,8 +9116,8 @@ exports.HttpRequestMethod = void 0;
9103
9116
  const HttpRequestSpec = zod.z.object({
9104
9117
  method: zod.z.string().toUpperCase().pipe(zod.z.nativeEnum(exports.HttpRequestMethod)).optional(),
9105
9118
  uri: zod.z.any(),
9106
- headers: zod.z.record(zod.z.any()).optional(),
9107
- query: zod.z.record(zod.z.any()).optional(),
9119
+ headers: zod.z.record(zod.z.string(), zod.z.any()).optional(),
9120
+ query: zod.z.record(zod.z.string(), zod.z.any()).optional(),
9108
9121
  body: zod.z.any().optional(),
9109
9122
  });
9110
9123
  const HTTP_REQUEST_SCHEMA = {
@@ -9413,36 +9426,19 @@ const ConnectionMessagePayload = zod.z.discriminatedUnion('type', [
9413
9426
  }),
9414
9427
  ]);
9415
9428
 
9416
- const ListDataSourcesForIntegrationQuery = zod.z
9417
- .object({
9418
- universalDataSourceId: zod.z.string().optional(),
9419
- })
9420
- .merge(PaginationQuery);
9421
- const FindDataSourcesQuery = ListDataSourcesForIntegrationQuery.extend({
9422
- integrationId: zod.z.string().optional(),
9429
+ const DataSourceApiResponse = BaseDataSource.extend({
9430
+ integration: BaseIntegration.optional(),
9431
+ appliedToIntegrations: AppliedToIntegrations(BaseDataSource).optional(),
9423
9432
  });
9424
- const CreateDataSourceRequest = zod.z.object({
9425
- key: zod.z.string(),
9426
- name: zod.z.string(),
9433
+ const FindDataSourcesQuery = PaginationQuery.extend({
9427
9434
  integrationId: zod.z.string().optional(),
9428
- udm: zod.z.string().optional(),
9429
- pullUpdatesIntervalSeconds: zod.z.number().optional(),
9430
- fullSyncIntervalSeconds: zod.z.number().optional(),
9431
- rootPath: zod.z.string().optional(),
9432
- defaultPath: zod.z.string().optional(),
9433
- collectionKey: zod.z.string().optional(),
9434
- collectionParameters: zod.z.any().optional(),
9435
- });
9436
- const UpdateDataSourceRequest = zod.z.object({
9437
- key: zod.z.string().optional(),
9438
- name: zod.z.string().optional(),
9439
- archivedAt: zod.z.string().optional(),
9440
- udm: zod.z.string().optional(),
9441
- pullUpdatesIntervalSeconds: zod.z.number().optional(),
9442
- fullSyncIntervalSeconds: zod.z.number().optional(),
9443
- rootPath: zod.z.string().optional(),
9444
- defaultPath: zod.z.string().optional(),
9435
+ integrationKey: zod.z.string().optional(),
9436
+ universalDataSourceId: zod.z.string().optional(),
9437
+ search: zod.z.string().optional(),
9438
+ includeArchived: zodBooleanCoercion().optional(),
9445
9439
  });
9440
+ const CreateDataSourceRequest = DataSourceEditableProperties;
9441
+ const UpdateDataSourceRequest = CreateDataSourceRequest.extend({}).partial();
9446
9442
  const FindDataSourceInstancesQuery = zod.z
9447
9443
  .object({
9448
9444
  userId: zod.z.string().optional(),
@@ -9502,10 +9498,6 @@ const FindDataSourceInstanceSyncsQuery = ListDataSourceInstancesForConnectionQue
9502
9498
  integrationId: zod.z.string().optional(),
9503
9499
  dataSourceInstanceId: zod.z.string().optional(),
9504
9500
  });
9505
- const DataSourceApiResponse = BaseDataSource.extend({
9506
- integration: BaseIntegration.optional(),
9507
- appliedToIntegrations: AppliedToIntegrations(BaseDataSource).optional(),
9508
- });
9509
9501
 
9510
9502
  const DataSourceInstanceApiResponse = BaseDataSourceInstance.extend({
9511
9503
  user: BaseCustomer.optional(),
@@ -9518,31 +9510,25 @@ const ExternalEvent = BaseExternalEvent.extend({
9518
9510
  appliedToIntegrations: AppliedToIntegrations(BaseExternalEvent).optional(),
9519
9511
  });
9520
9512
 
9521
- const ListFlowsForIntegrationQuery = zod.z
9522
- .object({
9523
- universalFlowId: zod.z.string().optional(),
9524
- })
9525
- .merge(CommonListElementsQuery);
9526
- const FindFlowsQuery = ListFlowsForIntegrationQuery.extend({
9527
- integrationId: zod.z.string().optional(),
9528
- });
9529
- const CreateFlowNodeRequest = zod.z.object({
9530
- type: zod.z.string(),
9531
- config: zod.z.any().optional(),
9532
- ui: zod.z.any().optional(),
9533
- links: zod.z.array(zod.z.lazy(() => zod.z.any())).optional(),
9513
+ const FlowApiResponse = BaseFlow.extend({
9514
+ integration: BaseIntegration.optional(),
9515
+ appliedToIntegrations: AppliedToIntegrations(zod.z.object({
9516
+ id: zod.z.string(),
9517
+ integrationId: zod.z.string().optional(),
9518
+ isCustomized: zod.z.boolean().optional(),
9519
+ universalFlowId: zod.z.string().optional(),
9520
+ })).optional(),
9521
+ dependencies: zod.z.array(zod.z.any()).optional(),
9534
9522
  });
9535
- const CreateFlowRequest = zod.z.object({
9536
- key: zod.z.string(),
9537
- name: zod.z.string(),
9523
+ const FindFlowsQuery = PaginationQuery.extend({
9538
9524
  integrationId: zod.z.string().optional(),
9539
- nodes: zod.z.record(zod.z.string(), CreateFlowNodeRequest).optional(),
9540
- parametersSchema: DataSchema.optional(),
9541
- autoCreateInstances: zod.z.boolean().optional(),
9542
- });
9543
- const UpdateFlowRequest = CreateFlowRequest.extend({
9544
- archivedAt: zod.z.string().optional(),
9525
+ integrationKey: zod.z.string().optional(),
9526
+ universalFlowId: zod.z.string().optional(),
9527
+ search: zod.z.string().optional(),
9528
+ includeArchived: zodBooleanCoercion().optional(),
9545
9529
  });
9530
+ const CreateFlowRequest = FlowEditableProperties;
9531
+ const UpdateFlowRequest = CreateFlowRequest.extend({}).partial();
9546
9532
  const ListFlowInstancesForConnectionQuery = zod.z
9547
9533
  .object({
9548
9534
  flowId: zod.z.string().optional(),
@@ -9556,28 +9542,18 @@ const ResetFlowInstanceOptions = zod.z.object({
9556
9542
  nodes: zod.z.record(zod.z.string(), zod.z.boolean()).optional(),
9557
9543
  allNodes: zod.z.boolean().optional(),
9558
9544
  });
9559
- const RunFlowOptions = zod.z.object({
9560
- nodeKey: zod.z.string().optional(),
9561
- input: zod.z.any().optional(),
9562
- returnImmediately: zod.z.boolean().optional(),
9563
- onUpdate: zod.z.function().optional(),
9564
- });
9565
- const FlowApiResponse = BaseFlow.extend({
9566
- integration: BaseIntegration.optional(),
9567
- appliedToIntegrations: AppliedToIntegrations(zod.z.object({
9568
- id: zod.z.string(),
9569
- integrationId: zod.z.string().optional(),
9570
- isCustomized: zod.z.boolean().optional(),
9571
- universalFlowId: zod.z.string().optional(),
9572
- })).optional(),
9573
- dependencies: zod.z.array(zod.z.any()).optional(),
9574
- });
9575
9545
  const FlowInstanceApiResponse = BaseFlowInstance.extend({
9576
9546
  user: zod.z.lazy(() => zod.z.any()).optional(),
9577
9547
  connection: zod.z.lazy(() => zod.z.any()).optional(),
9578
9548
  flow: zod.z.lazy(() => FlowApiResponse).optional(),
9579
9549
  integration: zod.z.lazy(() => zod.z.any()).optional(),
9580
9550
  });
9551
+ const CreateFlowNodeRequest = zod.z.object({
9552
+ type: zod.z.string(),
9553
+ config: zod.z.any().optional(),
9554
+ ui: zod.z.any().optional(),
9555
+ links: zod.z.array(zod.z.lazy(() => zod.z.any())).optional(),
9556
+ });
9581
9557
 
9582
9558
  const CreateFlowRunRequest = zod.z.object({
9583
9559
  flowInstanceId: zod.z.string(),
@@ -9611,240 +9587,11 @@ const FindFlowRunsResponse = zod.z.object({
9611
9587
  cursor: zod.z.string().optional(),
9612
9588
  });
9613
9589
 
9614
- const POPUP_ELEMENT_ID = '__integration-app-popup';
9615
- const CONTAINER_ELEMENT_ID = '__integration-app-container';
9616
- const CONTAINER_ELEMENT_CLASS = '__integration-app-container';
9617
- const CONTAINER_ELEMENT_CLASS__LOADER = '__integration-app-container__loader';
9618
- const BODY_CLASS = '__integration-app-open';
9619
- const STYLES_ELEMENT_ID = '__integration-app-embed-styles';
9620
- const OpenConfigurationOptions = zod.z.object({
9621
- onClose: zod.z.function().optional(),
9622
- showPoweredBy: zod.z.boolean().optional(),
9623
- });
9624
- let IFRAME_START_SHOW_LOADER_TIME = 0;
9625
- let IFRAME_SHOW_LOADER_TIMEOUT_ID;
9626
- const IFRAME_SHOW_LOADER_MINIMAL_TIME = 500;
9627
- const IFRAME_LAYOUT_SHIFT_TIME = 300;
9628
- function showIframeLoader() {
9629
- const container = getContainer();
9630
- container === null || container === void 0 ? void 0 : container.classList.add(CONTAINER_ELEMENT_CLASS__LOADER);
9631
- IFRAME_START_SHOW_LOADER_TIME = Date.now();
9632
- }
9633
- function hideIframeLoader(waitLayoutShift = IFRAME_LAYOUT_SHIFT_TIME) {
9634
- if (IFRAME_SHOW_LOADER_TIMEOUT_ID) {
9635
- clearTimeout(IFRAME_SHOW_LOADER_TIMEOUT_ID);
9636
- }
9637
- const delta = Date.now() - IFRAME_START_SHOW_LOADER_TIME;
9638
- if (delta >= IFRAME_SHOW_LOADER_MINIMAL_TIME) {
9639
- setTimeout(() => {
9640
- const container = getContainer();
9641
- container === null || container === void 0 ? void 0 : container.classList.remove(CONTAINER_ELEMENT_CLASS__LOADER);
9642
- IFRAME_START_SHOW_LOADER_TIME = 0;
9643
- }, waitLayoutShift);
9644
- return;
9645
- }
9646
- else {
9647
- const waitLayoutShift = delta >= IFRAME_LAYOUT_SHIFT_TIME ? 0 : IFRAME_LAYOUT_SHIFT_TIME - delta;
9648
- const timeoutTime = IFRAME_SHOW_LOADER_MINIMAL_TIME - delta;
9649
- IFRAME_SHOW_LOADER_TIMEOUT_ID = setTimeout(() => {
9650
- hideIframeLoader(waitLayoutShift);
9651
- }, timeoutTime);
9652
- return;
9653
- }
9654
- }
9655
- async function openIframe(uri, callbacks = {}, { mountTargetSelector } = {}) {
9656
- close();
9657
- init(mountTargetSelector);
9658
- return new Promise((resolve) => {
9659
- function complete(callback) {
9660
- close(callback);
9661
- resolve();
9662
- }
9663
- function doOpen() {
9664
- const iframe = document.createElement('iframe');
9665
- iframe.src = uri;
9666
- iframe.id = POPUP_ELEMENT_ID;
9667
- iframe.onload = () => {
9668
- hideIframeLoader();
9669
- };
9670
- if (!!getContainer()) {
9671
- document.body.classList.add(BODY_CLASS);
9672
- showIframeLoader();
9673
- appendToContainer(iframe);
9674
- handleIframeUnmount(iframe);
9675
- penpal.connectToChild({
9676
- iframe,
9677
- methods: {
9678
- ...callbacks,
9679
- handshake: (...args) => {
9680
- var _a;
9681
- hideIframeLoader();
9682
- (_a = callbacks === null || callbacks === void 0 ? void 0 : callbacks.handshake) === null || _a === void 0 ? void 0 : _a.call(callbacks, ...args);
9683
- },
9684
- close: () => complete(callbacks.onClose),
9685
- },
9686
- });
9687
- }
9688
- else {
9689
- throw Error('Membrane container element not found. Was it manually removed?');
9690
- }
9691
- }
9692
- if (document.readyState === 'complete' || document.readyState === 'interactive') {
9693
- doOpen();
9694
- }
9695
- else {
9696
- document.addEventListener('DOMContentLoaded', () => {
9697
- doOpen();
9698
- });
9699
- }
9700
- });
9701
- }
9702
- function close(callback) {
9703
- document.body.classList.remove(BODY_CLASS);
9704
- if (!!getContainer()) {
9705
- deleteContainer();
9706
- if (callback) {
9707
- callback();
9708
- }
9709
- }
9710
- }
9711
- function init(mountTargetSelector) {
9712
- var _a;
9713
- injectStyles(mountTargetSelector);
9714
- if (!!getContainer()) {
9715
- return;
9716
- }
9717
- const container = createContainer();
9718
- if (mountTargetSelector && document.querySelector(mountTargetSelector)) {
9719
- (_a = document.querySelector(mountTargetSelector)) === null || _a === void 0 ? void 0 : _a.appendChild(container);
9720
- }
9721
- else {
9722
- document.body.appendChild(container);
9723
- }
9724
- }
9725
- function injectStyles(mountTargetSelector) {
9726
- const hasCustomMountTarget = Boolean(mountTargetSelector && document.querySelector(mountTargetSelector));
9727
- const styles = [
9728
- `.${CONTAINER_ELEMENT_CLASS}:empty {
9729
- display: none;
9730
- }`,
9731
- hasCustomMountTarget
9732
- ? `.${CONTAINER_ELEMENT_CLASS} {
9733
- inset: 0;
9734
- background: rgba(0, 0, 0, 0);
9735
- transition: background 0.2s ease-out;
9736
- display: flex;
9737
- justify-content: center;
9738
- align-items: center;
9739
- width: 100%;
9740
- height: 100%;
9741
- }`
9742
- : `.${CONTAINER_ELEMENT_CLASS} {
9743
- position: fixed;
9744
- inset: 0;
9745
- z-index: 2147483647;
9746
- display: flex;
9747
- justify-content: center;
9748
- align-items: center;
9749
- pointer-events: auto;
9750
- background: rgba(0, 0, 0, 0);
9751
- transition: background 0.2s ease-out;
9752
- }`,
9753
- `.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} {
9754
- background: rgba(0, 0, 0, 0.8);
9755
- }`,
9756
- `.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER}::before {
9757
- ${hasCustomMountTarget ? 'position: absolute;' : ''}
9758
- content: "";
9759
- width: 5rem;
9760
- height: 4rem;
9761
- 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');
9762
- background-size: contain;
9763
- background-repeat: no-repeat;
9764
- background-position: center;
9765
- filter: invert(1);
9766
- }`,
9767
- `.${CONTAINER_ELEMENT_CLASS} iframe {
9768
- ${hasCustomMountTarget ? '' : 'position: absolute;'}
9769
- width: 100%;
9770
- height: 100%;
9771
- border-width: 0;
9772
-
9773
- /* fix transparent bg, because iframe document has light scheme */
9774
- color-scheme: light;
9775
- }`,
9776
- `.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} iframe {
9777
- visibility: hidden;
9778
- }`,
9779
- !hasCustomMountTarget
9780
- ? `body.${BODY_CLASS} {
9781
- overflow: hidden;
9782
- }`
9783
- : '',
9784
- ];
9785
- let styleElement = document.getElementById(STYLES_ELEMENT_ID);
9786
- if (!styleElement) {
9787
- styleElement = document.createElement('style');
9788
- styleElement.id = STYLES_ELEMENT_ID;
9789
- styleElement.type = 'text/css';
9790
- document.head.appendChild(styleElement);
9791
- }
9792
- styleElement.textContent = styles.join('\n');
9793
- }
9794
- function removeInjectedStyles() {
9795
- const stylesElement = document.getElementById(STYLES_ELEMENT_ID);
9796
- if (stylesElement) {
9797
- stylesElement.remove();
9798
- }
9799
- }
9800
- function createContainer() {
9801
- const container = document.createElement('div');
9802
- container.id = CONTAINER_ELEMENT_ID;
9803
- container.classList.add(CONTAINER_ELEMENT_CLASS);
9804
- return container;
9805
- }
9806
- function getContainer() {
9807
- return document.getElementById(CONTAINER_ELEMENT_ID);
9808
- }
9809
- function appendToContainer(el) {
9810
- const container = getContainer();
9811
- container === null || container === void 0 ? void 0 : container.appendChild(el);
9812
- }
9813
- function deleteContainer() {
9814
- const container = getContainer();
9815
- if (container) {
9816
- container.remove();
9817
- }
9818
- removeInjectedStyles();
9819
- }
9820
- function handleIframeUnmount(iframe) {
9821
- const observer = new MutationObserver((mutationsList) => {
9822
- for (const mutation of mutationsList) {
9823
- for (const removedNode of mutation.removedNodes) {
9824
- if (removedNode instanceof HTMLElement && removedNode.id === POPUP_ELEMENT_ID) {
9825
- observer.disconnect();
9826
- deleteContainer();
9827
- return;
9828
- }
9829
- }
9830
- }
9831
- });
9832
- const parent = iframe.parentNode;
9833
- if (parent) {
9834
- observer.observe(parent, {
9835
- childList: true,
9836
- });
9837
- }
9838
- else {
9839
- console.warn(`iframe with ID "${POPUP_ELEMENT_ID}" has no parent node`);
9840
- }
9841
- }
9842
-
9843
- const CreateIntegrationRequest = zod.z.object({
9844
- name: zod.z.string().optional(),
9845
- key: zod.z.string(),
9846
- baseUri: zod.z.string(),
9847
- logoUri: zod.z.string(),
9590
+ const CreateIntegrationRequest = zod.z.object({
9591
+ name: zod.z.string().optional(),
9592
+ key: zod.z.string(),
9593
+ baseUri: zod.z.string(),
9594
+ logoUri: zod.z.string(),
9848
9595
  });
9849
9596
  const UpdateIntegrationRequest = zod.z.object({
9850
9597
  name: zod.z.string().optional(),
@@ -9853,13 +9600,6 @@ const UpdateIntegrationRequest = zod.z.object({
9853
9600
  logoUri: zod.z.string().optional(),
9854
9601
  });
9855
9602
  const FindIntegrationsQuery = zod.z.object({}).merge(PaginationQuery).merge(SearchQuery);
9856
- const OpenNewConnectionOptions = zod.z
9857
- .object({
9858
- allowMultipleConnections: zod.z.boolean().optional(),
9859
- name: zod.z.string().optional(),
9860
- connectorParameters: zod.z.any().optional(),
9861
- })
9862
- .merge(OpenConfigurationOptions);
9863
9603
  const IntegrationAuthUi = zod.z.object({
9864
9604
  schema: zod.z.any().optional(),
9865
9605
  helpUri: zod.z.string().optional(),
@@ -9915,6 +9655,15 @@ const FieldMappingApiResponse = BaseFieldMapping.extend({
9915
9655
  integration: BaseIntegration.optional(),
9916
9656
  appliedToIntegrations: AppliedToIntegrations(BaseFieldMapping).optional(),
9917
9657
  });
9658
+ const FindFieldMappingsQuery = PaginationQuery.extend({
9659
+ integrationId: zod.z.string().optional(),
9660
+ integrationKey: zod.z.string().optional(),
9661
+ universalFieldMappingId: zod.z.string().optional(),
9662
+ search: zod.z.string().optional(),
9663
+ includeArchived: zodBooleanCoercion().optional(),
9664
+ });
9665
+ const CreateFieldMappingRequest = FieldMappingEditableProperties;
9666
+ const UpdateFieldMappingRequest = CreateFieldMappingRequest.extend({}).partial();
9918
9667
 
9919
9668
  const FieldMappingInstanceApiResponse = BaseFieldMappingInstance.extend({
9920
9669
  user: BaseCustomer.optional(),
@@ -10589,7 +10338,7 @@ function extractMembraneErrorData(error) {
10589
10338
  };
10590
10339
  }
10591
10340
  if (error instanceof zod.ZodError) {
10592
- data.message = v3.fromError(error).toString();
10341
+ data.message = v4.fromError(error).toString();
10593
10342
  }
10594
10343
  return data;
10595
10344
  }
@@ -10680,6 +10429,29 @@ function timestampToDate(value) {
10680
10429
  }
10681
10430
  }
10682
10431
 
10432
+ const ONE_DAY_IN_MS = 24 * 60 * 60 * 1000;
10433
+ function isBusinessDay(date) {
10434
+ const dayOfWeek = date.getDay();
10435
+ return dayOfWeek >= 1 && dayOfWeek <= 5;
10436
+ }
10437
+ function getBusinessDaysBetween(startDate, endDate) {
10438
+ const businessDays = new Set();
10439
+ if (endDate < startDate) {
10440
+ return businessDays;
10441
+ }
10442
+ const startTime = Date.UTC(startDate.getFullYear(), startDate.getMonth(), startDate.getDate());
10443
+ const endTime = Date.UTC(endDate.getFullYear(), endDate.getMonth(), endDate.getDate());
10444
+ const dayCount = Math.floor((endTime - startTime) / ONE_DAY_IN_MS) + 1;
10445
+ for (let i = 0; i < dayCount; i++) {
10446
+ const currentTime = startTime + i * ONE_DAY_IN_MS;
10447
+ const currentDate = new Date(currentTime);
10448
+ if (isBusinessDay(currentDate)) {
10449
+ businessDays.add(currentDate.toISOString().split('T')[0]);
10450
+ }
10451
+ }
10452
+ return businessDays;
10453
+ }
10454
+
10683
10455
  exports.UsageType = void 0;
10684
10456
  (function (UsageType) {
10685
10457
  UsageType["FLOW_RUNS_DURATION"] = "flow-runs-duration";
@@ -11124,6 +10896,231 @@ class IntegrationLevelActionsListAccessor extends IntegrationLevelElementsListAc
11124
10896
  }
11125
10897
  }
11126
10898
 
10899
+ const POPUP_ELEMENT_ID = '__integration-app-popup';
10900
+ const CONTAINER_ELEMENT_ID = '__integration-app-container';
10901
+ const CONTAINER_ELEMENT_CLASS = '__integration-app-container';
10902
+ const CONTAINER_ELEMENT_CLASS__LOADER = '__integration-app-container__loader';
10903
+ const BODY_CLASS = '__integration-app-open';
10904
+ const STYLES_ELEMENT_ID = '__integration-app-embed-styles';
10905
+ let IFRAME_START_SHOW_LOADER_TIME = 0;
10906
+ let IFRAME_SHOW_LOADER_TIMEOUT_ID;
10907
+ const IFRAME_SHOW_LOADER_MINIMAL_TIME = 500;
10908
+ const IFRAME_LAYOUT_SHIFT_TIME = 300;
10909
+ function showIframeLoader() {
10910
+ const container = getContainer();
10911
+ container === null || container === void 0 ? void 0 : container.classList.add(CONTAINER_ELEMENT_CLASS__LOADER);
10912
+ IFRAME_START_SHOW_LOADER_TIME = Date.now();
10913
+ }
10914
+ function hideIframeLoader(waitLayoutShift = IFRAME_LAYOUT_SHIFT_TIME) {
10915
+ if (IFRAME_SHOW_LOADER_TIMEOUT_ID) {
10916
+ clearTimeout(IFRAME_SHOW_LOADER_TIMEOUT_ID);
10917
+ }
10918
+ const delta = Date.now() - IFRAME_START_SHOW_LOADER_TIME;
10919
+ if (delta >= IFRAME_SHOW_LOADER_MINIMAL_TIME) {
10920
+ setTimeout(() => {
10921
+ const container = getContainer();
10922
+ container === null || container === void 0 ? void 0 : container.classList.remove(CONTAINER_ELEMENT_CLASS__LOADER);
10923
+ IFRAME_START_SHOW_LOADER_TIME = 0;
10924
+ }, waitLayoutShift);
10925
+ return;
10926
+ }
10927
+ else {
10928
+ const waitLayoutShift = delta >= IFRAME_LAYOUT_SHIFT_TIME ? 0 : IFRAME_LAYOUT_SHIFT_TIME - delta;
10929
+ const timeoutTime = IFRAME_SHOW_LOADER_MINIMAL_TIME - delta;
10930
+ IFRAME_SHOW_LOADER_TIMEOUT_ID = setTimeout(() => {
10931
+ hideIframeLoader(waitLayoutShift);
10932
+ }, timeoutTime);
10933
+ return;
10934
+ }
10935
+ }
10936
+ async function openIframe(uri, callbacks = {}, { mountTargetSelector } = {}) {
10937
+ close();
10938
+ init(mountTargetSelector);
10939
+ return new Promise((resolve) => {
10940
+ function complete(callback) {
10941
+ close(callback);
10942
+ resolve();
10943
+ }
10944
+ function doOpen() {
10945
+ const iframe = document.createElement('iframe');
10946
+ iframe.src = uri;
10947
+ iframe.id = POPUP_ELEMENT_ID;
10948
+ iframe.onload = () => {
10949
+ hideIframeLoader();
10950
+ };
10951
+ if (!!getContainer()) {
10952
+ document.body.classList.add(BODY_CLASS);
10953
+ showIframeLoader();
10954
+ appendToContainer(iframe);
10955
+ handleIframeUnmount(iframe);
10956
+ penpal.connectToChild({
10957
+ iframe,
10958
+ methods: {
10959
+ ...callbacks,
10960
+ handshake: (...args) => {
10961
+ var _a;
10962
+ hideIframeLoader();
10963
+ (_a = callbacks === null || callbacks === void 0 ? void 0 : callbacks.handshake) === null || _a === void 0 ? void 0 : _a.call(callbacks, ...args);
10964
+ },
10965
+ close: () => complete(callbacks.onClose),
10966
+ },
10967
+ });
10968
+ }
10969
+ else {
10970
+ throw Error('Membrane container element not found. Was it manually removed?');
10971
+ }
10972
+ }
10973
+ if (document.readyState === 'complete' || document.readyState === 'interactive') {
10974
+ doOpen();
10975
+ }
10976
+ else {
10977
+ document.addEventListener('DOMContentLoaded', () => {
10978
+ doOpen();
10979
+ });
10980
+ }
10981
+ });
10982
+ }
10983
+ function close(callback) {
10984
+ document.body.classList.remove(BODY_CLASS);
10985
+ if (!!getContainer()) {
10986
+ deleteContainer();
10987
+ if (callback) {
10988
+ callback();
10989
+ }
10990
+ }
10991
+ }
10992
+ function init(mountTargetSelector) {
10993
+ var _a;
10994
+ injectStyles(mountTargetSelector);
10995
+ if (!!getContainer()) {
10996
+ return;
10997
+ }
10998
+ const container = createContainer();
10999
+ if (mountTargetSelector && document.querySelector(mountTargetSelector)) {
11000
+ (_a = document.querySelector(mountTargetSelector)) === null || _a === void 0 ? void 0 : _a.appendChild(container);
11001
+ }
11002
+ else {
11003
+ document.body.appendChild(container);
11004
+ }
11005
+ }
11006
+ function injectStyles(mountTargetSelector) {
11007
+ const hasCustomMountTarget = Boolean(mountTargetSelector && document.querySelector(mountTargetSelector));
11008
+ const styles = [
11009
+ `.${CONTAINER_ELEMENT_CLASS}:empty {
11010
+ display: none;
11011
+ }`,
11012
+ hasCustomMountTarget
11013
+ ? `.${CONTAINER_ELEMENT_CLASS} {
11014
+ inset: 0;
11015
+ background: rgba(0, 0, 0, 0);
11016
+ transition: background 0.2s ease-out;
11017
+ display: flex;
11018
+ justify-content: center;
11019
+ align-items: center;
11020
+ width: 100%;
11021
+ height: 100%;
11022
+ }`
11023
+ : `.${CONTAINER_ELEMENT_CLASS} {
11024
+ position: fixed;
11025
+ inset: 0;
11026
+ z-index: 2147483647;
11027
+ display: flex;
11028
+ justify-content: center;
11029
+ align-items: center;
11030
+ pointer-events: auto;
11031
+ background: rgba(0, 0, 0, 0);
11032
+ transition: background 0.2s ease-out;
11033
+ }`,
11034
+ `.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} {
11035
+ background: rgba(0, 0, 0, 0.8);
11036
+ }`,
11037
+ `.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER}::before {
11038
+ ${hasCustomMountTarget ? 'position: absolute;' : ''}
11039
+ content: "";
11040
+ width: 5rem;
11041
+ height: 4rem;
11042
+ 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');
11043
+ background-size: contain;
11044
+ background-repeat: no-repeat;
11045
+ background-position: center;
11046
+ filter: invert(1);
11047
+ }`,
11048
+ `.${CONTAINER_ELEMENT_CLASS} iframe {
11049
+ ${hasCustomMountTarget ? '' : 'position: absolute;'}
11050
+ width: 100%;
11051
+ height: 100%;
11052
+ border-width: 0;
11053
+
11054
+ /* fix transparent bg, because iframe document has light scheme */
11055
+ color-scheme: light;
11056
+ }`,
11057
+ `.${CONTAINER_ELEMENT_CLASS}.${CONTAINER_ELEMENT_CLASS__LOADER} iframe {
11058
+ visibility: hidden;
11059
+ }`,
11060
+ !hasCustomMountTarget
11061
+ ? `body.${BODY_CLASS} {
11062
+ overflow: hidden;
11063
+ }`
11064
+ : '',
11065
+ ];
11066
+ let styleElement = document.getElementById(STYLES_ELEMENT_ID);
11067
+ if (!styleElement) {
11068
+ styleElement = document.createElement('style');
11069
+ styleElement.id = STYLES_ELEMENT_ID;
11070
+ styleElement.type = 'text/css';
11071
+ document.head.appendChild(styleElement);
11072
+ }
11073
+ styleElement.textContent = styles.join('\n');
11074
+ }
11075
+ function removeInjectedStyles() {
11076
+ const stylesElement = document.getElementById(STYLES_ELEMENT_ID);
11077
+ if (stylesElement) {
11078
+ stylesElement.remove();
11079
+ }
11080
+ }
11081
+ function createContainer() {
11082
+ const container = document.createElement('div');
11083
+ container.id = CONTAINER_ELEMENT_ID;
11084
+ container.classList.add(CONTAINER_ELEMENT_CLASS);
11085
+ return container;
11086
+ }
11087
+ function getContainer() {
11088
+ return document.getElementById(CONTAINER_ELEMENT_ID);
11089
+ }
11090
+ function appendToContainer(el) {
11091
+ const container = getContainer();
11092
+ container === null || container === void 0 ? void 0 : container.appendChild(el);
11093
+ }
11094
+ function deleteContainer() {
11095
+ const container = getContainer();
11096
+ if (container) {
11097
+ container.remove();
11098
+ }
11099
+ removeInjectedStyles();
11100
+ }
11101
+ function handleIframeUnmount(iframe) {
11102
+ const observer = new MutationObserver((mutationsList) => {
11103
+ for (const mutation of mutationsList) {
11104
+ for (const removedNode of mutation.removedNodes) {
11105
+ if (removedNode instanceof HTMLElement && removedNode.id === POPUP_ELEMENT_ID) {
11106
+ observer.disconnect();
11107
+ deleteContainer();
11108
+ return;
11109
+ }
11110
+ }
11111
+ }
11112
+ });
11113
+ const parent = iframe.parentNode;
11114
+ if (parent) {
11115
+ observer.observe(parent, {
11116
+ childList: true,
11117
+ });
11118
+ }
11119
+ else {
11120
+ console.warn(`iframe with ID "${POPUP_ELEMENT_ID}" has no parent node`);
11121
+ }
11122
+ }
11123
+
11127
11124
  class ConnectionLevelElementAccessor {
11128
11125
  constructor(client, connectionSelector, selector, elementKey, query) {
11129
11126
  this.client = client;
@@ -12367,20 +12364,20 @@ const HandyScenarioTemplateElement = zod.z.object({
12367
12364
  key: zod.z.string(),
12368
12365
  name: zod.z.string(),
12369
12366
  })
12370
- .and(zod.z.record(zod.z.any())),
12367
+ .and(zod.z.record(zod.z.string(), zod.z.any())),
12371
12368
  });
12372
12369
  const withIntegrationKeys = (schema) => schema.and(zod.z.object({ integrationKeys: zod.z.array(zod.z.string()).optional() }));
12373
12370
  const ElementsExportFields = zod.z.object({
12374
- flows: zod.z.record(withIntegrationKeys(zod.z.any())).optional(),
12375
- actions: zod.z.record(withIntegrationKeys(zod.z.any())).optional(),
12376
- fieldMappings: zod.z.record(withIntegrationKeys(zod.z.any())).optional(),
12377
- dataSources: zod.z.record(withIntegrationKeys(zod.z.any())).optional(),
12378
- dataLinkTables: zod.z.record(zod.z.any()).optional(),
12379
- appEventTypes: zod.z.record(zod.z.any()).optional(),
12380
- appDataSchemas: zod.z.record(zod.z.any()).optional(),
12371
+ flows: zod.z.record(zod.z.string(), withIntegrationKeys(zod.z.any())).optional(),
12372
+ actions: zod.z.record(zod.z.string(), withIntegrationKeys(zod.z.any())).optional(),
12373
+ fieldMappings: zod.z.record(zod.z.string(), withIntegrationKeys(zod.z.any())).optional(),
12374
+ dataSources: zod.z.record(zod.z.string(), withIntegrationKeys(zod.z.any())).optional(),
12375
+ dataLinkTables: zod.z.record(zod.z.string(), zod.z.any()).optional(),
12376
+ appEventTypes: zod.z.record(zod.z.string(), zod.z.any()).optional(),
12377
+ appDataSchemas: zod.z.record(zod.z.string(), zod.z.any()).optional(),
12381
12378
  });
12382
12379
  const ScenarioTemplateElements = ElementsExportFields.and(zod.z.object({
12383
- integrations: zod.z.record(ElementsExportFields.and(zod.z.object({ connectorId: zod.z.string() }))).optional(),
12380
+ integrations: zod.z.record(zod.z.string(), ElementsExportFields.and(zod.z.object({ connectorId: zod.z.string() }))).optional(),
12384
12381
  }));
12385
12382
  const ScenarioTemplate = zod.z.object({
12386
12383
  id: zod.z.string(),
@@ -12799,6 +12796,7 @@ exports.CreateConnectionRequest = CreateConnectionRequest;
12799
12796
  exports.CreateCustomerRequest = CreateCustomerRequest;
12800
12797
  exports.CreateDataSourceInstanceRequest = CreateDataSourceInstanceRequest;
12801
12798
  exports.CreateDataSourceRequest = CreateDataSourceRequest;
12799
+ exports.CreateFieldMappingRequest = CreateFieldMappingRequest;
12802
12800
  exports.CreateFlowNodeRequest = CreateFlowNodeRequest;
12803
12801
  exports.CreateFlowRequest = CreateFlowRequest;
12804
12802
  exports.CreateFlowRunRequest = CreateFlowRunRequest;
@@ -12862,6 +12860,7 @@ exports.DataRecordSchema = DataRecordSchema;
12862
12860
  exports.DataSchema = DataSchema;
12863
12861
  exports.DataSourceAccessor = DataSourceAccessor;
12864
12862
  exports.DataSourceApiResponse = DataSourceApiResponse;
12863
+ exports.DataSourceEditableProperties = DataSourceEditableProperties;
12865
12864
  exports.DataSourceInstanceAccessor = DataSourceInstanceAccessor;
12866
12865
  exports.DataSourceInstanceApiResponse = DataSourceInstanceApiResponse;
12867
12866
  exports.DataSourceInstancesAccessor = DataSourceInstancesAccessor;
@@ -12888,6 +12887,7 @@ exports.ExternalEventUnitConfig = ExternalEventUnitConfig;
12888
12887
  exports.FLOW_NODE_SPECS = FLOW_NODE_SPECS;
12889
12888
  exports.FieldMappingAccessor = FieldMappingAccessor;
12890
12889
  exports.FieldMappingApiResponse = FieldMappingApiResponse;
12890
+ exports.FieldMappingEditableProperties = FieldMappingEditableProperties;
12891
12891
  exports.FieldMappingInstanceAccessor = FieldMappingInstanceAccessor;
12892
12892
  exports.FieldMappingInstanceApiResponse = FieldMappingInstanceApiResponse;
12893
12893
  exports.FieldMappingInstancesAccessor = FieldMappingInstancesAccessor;
@@ -12903,6 +12903,7 @@ exports.FindDataSourceInstanceSyncsQuery = FindDataSourceInstanceSyncsQuery;
12903
12903
  exports.FindDataSourceInstancesQuery = FindDataSourceInstancesQuery;
12904
12904
  exports.FindDataSourceSyncsQuery = FindDataSourceSyncsQuery;
12905
12905
  exports.FindDataSourcesQuery = FindDataSourcesQuery;
12906
+ exports.FindFieldMappingsQuery = FindFieldMappingsQuery;
12906
12907
  exports.FindFlowInstancesQuery = FindFlowInstancesQuery;
12907
12908
  exports.FindFlowRunsQuery = FindFlowRunsQuery;
12908
12909
  exports.FindFlowRunsResponse = FindFlowRunsResponse;
@@ -12911,6 +12912,7 @@ exports.FindIntegrationsQuery = FindIntegrationsQuery;
12911
12912
  exports.FindScenariosQuery = FindScenariosQuery;
12912
12913
  exports.FlowAccessor = FlowAccessor;
12913
12914
  exports.FlowApiResponse = FlowApiResponse;
12915
+ exports.FlowEditableProperties = FlowEditableProperties;
12914
12916
  exports.FlowInstanceAccessor = FlowInstanceAccessor;
12915
12917
  exports.FlowInstanceApiResponse = FlowInstanceApiResponse;
12916
12918
  exports.FlowInstanceNode = FlowInstanceNode;
@@ -12957,11 +12959,9 @@ exports.InternalError = InternalError;
12957
12959
  exports.InvalidLocatorError = InvalidLocatorError;
12958
12960
  exports.ListActionInstancesForConnectionQuery = ListActionInstancesForConnectionQuery;
12959
12961
  exports.ListDataSourceInstancesForConnectionQuery = ListDataSourceInstancesForConnectionQuery;
12960
- exports.ListDataSourcesForIntegrationQuery = ListDataSourcesForIntegrationQuery;
12961
12962
  exports.ListExternalEventLogRecordsQuery = ListExternalEventLogRecordsQuery;
12962
12963
  exports.ListExternalEventPullsQuery = ListExternalEventPullsQuery;
12963
12964
  exports.ListFlowInstancesForConnectionQuery = ListFlowInstancesForConnectionQuery;
12964
- exports.ListFlowsForIntegrationQuery = ListFlowsForIntegrationQuery;
12965
12965
  exports.MIN_FULL_SYNC_INTERVAL_SECONDS = MIN_FULL_SYNC_INTERVAL_SECONDS;
12966
12966
  exports.MIN_PULL_UPDATES_INTERVAL_SECONDS = MIN_PULL_UPDATES_INTERVAL_SECONDS;
12967
12967
  exports.MembraneClient = MembraneClient;
@@ -12971,14 +12971,12 @@ exports.NotAuthenticatedError = NotAuthenticatedError;
12971
12971
  exports.NotFoundError = NotFoundError;
12972
12972
  exports.OAUTH1_CONFIG_SCHEMA = OAUTH1_CONFIG_SCHEMA;
12973
12973
  exports.OAUTH_CONFIG_SCHEMA = OAUTH_CONFIG_SCHEMA;
12974
- exports.OpenNewConnectionOptions = OpenNewConnectionOptions;
12975
12974
  exports.PARALLEL_EXECUTION_LIMITS = PARALLEL_EXECUTION_LIMITS;
12976
12975
  exports.PaginationQuery = PaginationQuery;
12977
12976
  exports.PaginationResponse = PaginationResponse;
12978
12977
  exports.RATE_LIMITS = RATE_LIMITS;
12979
12978
  exports.RateLimitExceededError = RateLimitExceededError;
12980
12979
  exports.ResetFlowInstanceOptions = ResetFlowInstanceOptions;
12981
- exports.RunFlowOptions = RunFlowOptions;
12982
12980
  exports.ScenarioAccessor = ScenarioAccessor;
12983
12981
  exports.ScenarioApiResponse = ScenarioApiResponse;
12984
12982
  exports.ScenarioCalculatedProperties = ScenarioCalculatedProperties;
@@ -13002,6 +13000,7 @@ exports.UpdateConnectionRequest = UpdateConnectionRequest;
13002
13000
  exports.UpdateCustomerRequest = UpdateCustomerRequest;
13003
13001
  exports.UpdateDataSourceInstanceRequest = UpdateDataSourceInstanceRequest;
13004
13002
  exports.UpdateDataSourceRequest = UpdateDataSourceRequest;
13003
+ exports.UpdateFieldMappingRequest = UpdateFieldMappingRequest;
13005
13004
  exports.UpdateFlowRequest = UpdateFlowRequest;
13006
13005
  exports.UpdateIntegrationRequest = UpdateIntegrationRequest;
13007
13006
  exports.UpstreamFlowNodeRunSchema = UpstreamFlowNodeRunSchema;
@@ -13040,6 +13039,7 @@ exports.generateExampleFromSchema = generateExampleFromSchema;
13040
13039
  exports.getActionInstanceVariableSchema = getActionInstanceVariableSchema;
13041
13040
  exports.getActionRunTimeVariablesSchema = getActionRunTimeVariablesSchema;
13042
13041
  exports.getAllEventMethodFilePaths = getAllEventMethodFilePaths;
13042
+ exports.getBusinessDaysBetween = getBusinessDaysBetween;
13043
13043
  exports.getChildNodeKeys = getChildNodeKeys;
13044
13044
  exports.getDataCollectionCreateFields = getDataCollectionCreateFields;
13045
13045
  exports.getDataCollectionUpdateFields = getDataCollectionUpdateFields;
@@ -13082,6 +13082,7 @@ exports.getWritableFieldsSchema = getWritableFieldsSchema;
13082
13082
  exports.hasCycles = hasCycles;
13083
13083
  exports.hasFormulas_internalDoNotUse = hasFormulas;
13084
13084
  exports.injectFormulaCatalog = injectFormulaCatalog;
13085
+ exports.isBusinessDay = isBusinessDay;
13085
13086
  exports.isDataActionType = isDataActionType;
13086
13087
  exports.isDataLocationMethodSupported = isDataLocationMethodSupported;
13087
13088
  exports.isFormula_internalDoNotUse = isFormula;