@membranehq/sdk 0.17.4 → 0.17.6

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 (72) hide show
  1. package/dist/bundle.d.ts +27 -7
  2. package/dist/bundle.js +5247 -5235
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/action-instances-accessors.d.ts +1 -1
  5. package/dist/dts/accessors/actions-accessors.d.ts +1 -1
  6. package/dist/dts/accessors/app-data-schema-instances-accessors.d.ts +1 -1
  7. package/dist/dts/accessors/app-data-schemas-accessors.d.ts +1 -1
  8. package/dist/dts/accessors/app-event-subscriptions-accessors.d.ts +1 -1
  9. package/dist/dts/accessors/app-event-types-accessors.d.ts +1 -1
  10. package/dist/dts/accessors/connections-accessors.d.ts +6 -5
  11. package/dist/dts/accessors/customers-accessors.d.ts +1 -1
  12. package/dist/dts/accessors/data-link-table-instances-accessors.d.ts +1 -1
  13. package/dist/dts/accessors/data-link-tables-accessors.d.ts +1 -1
  14. package/dist/dts/accessors/data-sources-accessors.d.ts +1 -1
  15. package/dist/dts/accessors/external-event-subscriptions-accessors.d.ts +1 -1
  16. package/dist/dts/accessors/field-mapping-instances-accessors.d.ts +1 -1
  17. package/dist/dts/accessors/field-mappings-accessors.d.ts +1 -1
  18. package/dist/dts/accessors/flow-instances-accessors.d.ts +1 -1
  19. package/dist/dts/accessors/flows-accessors.d.ts +1 -1
  20. package/dist/dts/accessors/integrations-accessors.d.ts +6 -5
  21. package/dist/dts/accessors/scenarios-accessors.d.ts +1 -1
  22. package/dist/dts/accessors/screens-accessors.d.ts +1 -1
  23. package/dist/dts/agent/worker-contracts.d.ts +1 -0
  24. package/dist/dts/alerts/utils.d.ts +1 -1
  25. package/dist/dts/client.d.ts +1 -1
  26. package/dist/dts/data-filter/index.d.ts +1 -1
  27. package/dist/dts/formulas/base.d.ts +1 -1
  28. package/dist/dts/formulas/eval.d.ts +1 -1
  29. package/dist/dts/formulas/findAppRecordId.d.ts +1 -1
  30. package/dist/dts/formulas/findExternalRecordId.d.ts +1 -1
  31. package/dist/dts/formulas/index.d.ts +26 -4
  32. package/dist/dts/formulas/record.d.ts +1 -1
  33. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +2 -0
  34. package/dist/dts/workspace-elements/api/actions-api.d.ts +1 -1
  35. package/dist/dts/workspace-elements/api/connections-api.d.ts +17 -1
  36. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +2 -1
  37. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +4 -2
  38. package/dist/dts/workspace-elements/api/external-api-logs-api.d.ts +1 -0
  39. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +1 -0
  40. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +1 -0
  41. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +1 -0
  42. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +1 -1
  43. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +3 -1
  44. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +2 -0
  45. package/dist/dts/workspace-elements/api/flows-api.d.ts +3 -1
  46. package/dist/dts/workspace-elements/api/incoming-webhooks-api.d.ts +1 -0
  47. package/dist/dts/workspace-elements/api/integrations-api.d.ts +1 -0
  48. package/dist/dts/workspace-elements/base/actions/index.d.ts +2 -2
  49. package/dist/dts/workspace-elements/base/connection-requests/index.d.ts +2 -0
  50. package/dist/dts/workspace-elements/base/connections/index.d.ts +3 -0
  51. package/dist/dts/workspace-elements/base/connectors/auth.d.ts +1 -1
  52. package/dist/dts/workspace-elements/base/connectors/functions.d.ts +1 -1
  53. package/dist/dts/workspace-elements/base/connectors/operations/handlers.d.ts +1 -1
  54. package/dist/dts/workspace-elements/base/data-collections/data-locations/collections/events/methods.d.ts +1 -1
  55. package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +1 -1
  56. package/dist/dts/workspace-elements/base/data-collections/udm/index.d.ts +1 -1
  57. package/dist/dts/workspace-elements/base/data-collections/utils.d.ts +1 -1
  58. package/dist/dts/workspace-elements-catalog/index.d.ts +1 -0
  59. package/dist/dts/workspaces/compare.d.ts +1 -1
  60. package/dist/index.browser.d.mts +733 -691
  61. package/dist/index.browser.d.ts +733 -691
  62. package/dist/index.browser.js +1157 -1113
  63. package/dist/index.browser.js.map +1 -1
  64. package/dist/index.browser.mjs +1132 -1114
  65. package/dist/index.browser.mjs.map +1 -1
  66. package/dist/index.node.d.mts +733 -691
  67. package/dist/index.node.d.ts +733 -691
  68. package/dist/index.node.js +1157 -1113
  69. package/dist/index.node.js.map +1 -1
  70. package/dist/index.node.mjs +1132 -1114
  71. package/dist/index.node.mjs.map +1 -1
  72. package/package.json +1 -1
@@ -3934,6 +3934,7 @@ const CreateConnectionRequestPayload = z.object({
3934
3934
  integrationId: z.string().optional(),
3935
3935
  integrationKey: z.string().optional(),
3936
3936
  connectorId: z.string().optional(),
3937
+ connectorKey: z.string().optional(),
3937
3938
  connectorVersion: z.string().optional(),
3938
3939
  connectionId: z.string().optional(),
3939
3940
  name: z.string().optional(),
@@ -3947,6 +3948,7 @@ const ConnectionRequest = z.object({
3947
3948
  integrationId: z.string().optional(),
3948
3949
  integrationKey: z.string().optional(),
3949
3950
  connectorId: z.string().optional(),
3951
+ connectorKey: z.string().optional(),
3950
3952
  connectorVersion: z.string().optional(),
3951
3953
  connectionId: z.string().optional(),
3952
3954
  name: z.string().optional(),
@@ -3964,6 +3966,8 @@ const ConnectionEditableProperties = z.object({
3964
3966
  name: z.string().optional(),
3965
3967
  meta: z.record(z.string(), z.any()).optional(),
3966
3968
  authOptionKey: z.string().optional(),
3969
+ externalAppId: z.string().optional(),
3970
+ externalAppUuid: z.string().optional(),
3967
3971
  credentials: z.unknown().optional(),
3968
3972
  connectorParameters: z.unknown().optional(),
3969
3973
  input: z.unknown().optional(),
@@ -3978,6 +3982,7 @@ const BaseConnection = BaseWorkspaceElement.extend({
3978
3982
  error: ErrorDataSchema.optional(),
3979
3983
  integrationId: z.string().optional(),
3980
3984
  connectorId: z.string().optional(),
3985
+ externalAppId: z.string().optional(),
3981
3986
  connectorVersion: z.string().optional(),
3982
3987
  authOptionKey: z.string().optional(),
3983
3988
  createdAt: z.string(),
@@ -3998,6 +4003,97 @@ class ConnectionSpec {
3998
4003
  }
3999
4004
  }
4000
4005
 
4006
+ var FunctionType;
4007
+ (function (FunctionType) {
4008
+ FunctionType["mapping"] = "mapping";
4009
+ FunctionType["operationMapping"] = "operation-mapping";
4010
+ FunctionType["restApiMapping"] = "rest-api-mapping";
4011
+ FunctionType["graphqlApiMapping"] = "graphql-api-mapping";
4012
+ FunctionType["javascript"] = "javascript";
4013
+ })(FunctionType || (FunctionType = {}));
4014
+ const BaseFunctionDefinition = z.object({
4015
+ type: z.enum([
4016
+ FunctionType.mapping,
4017
+ FunctionType.operationMapping,
4018
+ FunctionType.restApiMapping,
4019
+ FunctionType.graphqlApiMapping,
4020
+ FunctionType.javascript,
4021
+ ]),
4022
+ });
4023
+ const GenericFunctionDefinition = z
4024
+ .object({
4025
+ type: z.enum(['mapping', 'operation-mapping', 'rest-api-mapping', 'graphql-api-mapping', 'javascript']).optional(),
4026
+ })
4027
+ .loose();
4028
+
4029
+ const GraphQLFieldMappingSchema = z.lazy(() => z.object({
4030
+ field: z.string(),
4031
+ args: z.record(z.string(), z.any()).optional(),
4032
+ subFields: z.array(GraphQLFieldMappingSchema).optional(),
4033
+ }));
4034
+ const GraphQLApiMappingSchema = z.object({
4035
+ path: z.string(),
4036
+ operationType: z.enum(['query', 'mutation']),
4037
+ requestMapping: z.array(GraphQLFieldMappingSchema),
4038
+ responseMapping: z.any().optional(),
4039
+ });
4040
+ const GraphqlApiMappingFunction = z.object({
4041
+ type: z.literal(FunctionType.graphqlApiMapping),
4042
+ mapping: GraphQLApiMappingSchema,
4043
+ });
4044
+
4045
+ const JavascriptFunction = z.object({
4046
+ type: z.literal(FunctionType.javascript),
4047
+ code: z.string(),
4048
+ });
4049
+
4050
+ const MappingSchema = z.any();
4051
+ const MappingFunction = z.object({
4052
+ type: z.literal(FunctionType.mapping),
4053
+ mapping: MappingSchema,
4054
+ });
4055
+
4056
+ const OperationMappingSchema = z.object({
4057
+ operationKey: z.string(),
4058
+ inputMapping: z.any().optional(),
4059
+ outputMapping: z.any().optional(),
4060
+ });
4061
+ const OperationMappingFunction = z.object({
4062
+ type: z.literal(FunctionType.operationMapping),
4063
+ mapping: OperationMappingSchema,
4064
+ });
4065
+
4066
+ const RequestMappingSchema = z.object({
4067
+ pathParameters: z.any().optional(),
4068
+ query: z.any().optional(),
4069
+ data: z.any().optional(),
4070
+ headers: z.any().optional(),
4071
+ });
4072
+ const RestApiMappingSchema = z.object({
4073
+ path: z.string(),
4074
+ method: z.string(),
4075
+ requestMapping: RequestMappingSchema,
4076
+ responseMapping: z.any().optional(),
4077
+ });
4078
+ const OpenapiMappingSchema = z.object({
4079
+ path: z.string(),
4080
+ method: z.string(),
4081
+ requestMapping: RequestMappingSchema,
4082
+ responseMapping: z.any().optional(),
4083
+ });
4084
+ const RestApiMappingFunction = z.object({
4085
+ type: z.literal(FunctionType.restApiMapping),
4086
+ mapping: RestApiMappingSchema,
4087
+ });
4088
+
4089
+ const FunctionDefinition = z.union([
4090
+ MappingFunction,
4091
+ OperationMappingFunction,
4092
+ RestApiMappingFunction,
4093
+ GraphqlApiMappingFunction,
4094
+ JavascriptFunction,
4095
+ ]);
4096
+
4001
4097
  var ConnectorMethodImplementationType;
4002
4098
  (function (ConnectorMethodImplementationType) {
4003
4099
  ConnectorMethodImplementationType["mapping"] = "mapping";
@@ -4394,97 +4490,6 @@ const REST_API_CLIENT_SCHEMA$1 = {
4394
4490
  },
4395
4491
  };
4396
4492
 
4397
- var FunctionType;
4398
- (function (FunctionType) {
4399
- FunctionType["mapping"] = "mapping";
4400
- FunctionType["operationMapping"] = "operation-mapping";
4401
- FunctionType["restApiMapping"] = "rest-api-mapping";
4402
- FunctionType["graphqlApiMapping"] = "graphql-api-mapping";
4403
- FunctionType["javascript"] = "javascript";
4404
- })(FunctionType || (FunctionType = {}));
4405
- const BaseFunctionDefinition = z.object({
4406
- type: z.enum([
4407
- FunctionType.mapping,
4408
- FunctionType.operationMapping,
4409
- FunctionType.restApiMapping,
4410
- FunctionType.graphqlApiMapping,
4411
- FunctionType.javascript,
4412
- ]),
4413
- });
4414
- const GenericFunctionDefinition = z
4415
- .object({
4416
- type: z.enum(['mapping', 'operation-mapping', 'rest-api-mapping', 'graphql-api-mapping', 'javascript']).optional(),
4417
- })
4418
- .loose();
4419
-
4420
- const GraphQLFieldMappingSchema = z.lazy(() => z.object({
4421
- field: z.string(),
4422
- args: z.record(z.string(), z.any()).optional(),
4423
- subFields: z.array(GraphQLFieldMappingSchema).optional(),
4424
- }));
4425
- const GraphQLApiMappingSchema = z.object({
4426
- path: z.string(),
4427
- operationType: z.enum(['query', 'mutation']),
4428
- requestMapping: z.array(GraphQLFieldMappingSchema),
4429
- responseMapping: z.any().optional(),
4430
- });
4431
- const GraphqlApiMappingFunction = z.object({
4432
- type: z.literal(FunctionType.graphqlApiMapping),
4433
- mapping: GraphQLApiMappingSchema,
4434
- });
4435
-
4436
- const JavascriptFunction = z.object({
4437
- type: z.literal(FunctionType.javascript),
4438
- code: z.string(),
4439
- });
4440
-
4441
- const MappingSchema = z.any();
4442
- const MappingFunction = z.object({
4443
- type: z.literal(FunctionType.mapping),
4444
- mapping: MappingSchema,
4445
- });
4446
-
4447
- const OperationMappingSchema = z.object({
4448
- operationKey: z.string(),
4449
- inputMapping: z.any().optional(),
4450
- outputMapping: z.any().optional(),
4451
- });
4452
- const OperationMappingFunction = z.object({
4453
- type: z.literal(FunctionType.operationMapping),
4454
- mapping: OperationMappingSchema,
4455
- });
4456
-
4457
- const RequestMappingSchema = z.object({
4458
- pathParameters: z.any().optional(),
4459
- query: z.any().optional(),
4460
- data: z.any().optional(),
4461
- headers: z.any().optional(),
4462
- });
4463
- const RestApiMappingSchema = z.object({
4464
- path: z.string(),
4465
- method: z.string(),
4466
- requestMapping: RequestMappingSchema,
4467
- responseMapping: z.any().optional(),
4468
- });
4469
- const OpenapiMappingSchema = z.object({
4470
- path: z.string(),
4471
- method: z.string(),
4472
- requestMapping: RequestMappingSchema,
4473
- responseMapping: z.any().optional(),
4474
- });
4475
- const RestApiMappingFunction = z.object({
4476
- type: z.literal(FunctionType.restApiMapping),
4477
- mapping: RestApiMappingSchema,
4478
- });
4479
-
4480
- const FunctionDefinition = z.union([
4481
- MappingFunction,
4482
- OperationMappingFunction,
4483
- RestApiMappingFunction,
4484
- GraphqlApiMappingFunction,
4485
- JavascriptFunction,
4486
- ]);
4487
-
4488
4493
  const CONNECTOR_DATA_DIR = 'data';
4489
4494
  const CONNECTOR_OPERATIONS_DIR = 'operations';
4490
4495
  const CONNECTOR_DOCS_DIR = 'docs';
@@ -4660,369 +4665,528 @@ var DataCollectionEventType;
4660
4665
  DataCollectionEventType["DELETED"] = "deleted";
4661
4666
  })(DataCollectionEventType || (DataCollectionEventType = {}));
4662
4667
 
4663
- const DataLocationMethodImplementationTypes = [
4664
- ConnectorMethodImplementationType.operationMapping,
4665
- ConnectorMethodImplementationType.restApiMapping,
4666
- ConnectorMethodImplementationType.graphqlApiMapping,
4667
- ConnectorMethodImplementationType.javascript,
4668
- ConnectorMethodImplementationType.notSupported,
4669
- ];
4668
+ const structuredClone$1 = (structuredClonePolyfill === null || structuredClonePolyfill === void 0 ? void 0 : structuredClonePolyfill.default) || structuredClonePolyfill;
4669
+ function isNil(value) {
4670
+ return value == null;
4671
+ }
4672
+ function omitBy(obj, check) {
4673
+ obj = { ...obj };
4674
+ Object.entries(obj).forEach(([key, value]) => check(value) && delete obj[key]);
4675
+ return obj;
4676
+ }
4677
+ function isEmptyValue(value) {
4678
+ if (isNil(value)) {
4679
+ return true;
4680
+ }
4681
+ if (typeof value === 'symbol') {
4682
+ return true;
4683
+ }
4684
+ if (typeof value === 'boolean') {
4685
+ return false;
4686
+ }
4687
+ if (typeof value === 'number') {
4688
+ return isNaN(value);
4689
+ }
4690
+ if (typeof value === 'string') {
4691
+ return value.trim().length === 0;
4692
+ }
4693
+ const tag = value.toString();
4694
+ if (tag === '[object Map]' || tag === '[object Set]') {
4695
+ return !value.size;
4696
+ }
4697
+ return typeof value === 'object' && Object.keys(value).length === 0;
4698
+ }
4699
+ const simpleUniqueId = () => {
4700
+ return Math.floor(Math.random() * Number.MAX_SAFE_INTEGER)
4701
+ .toString(36)
4702
+ .padStart(11, '0')
4703
+ .substring(0, 11);
4704
+ };
4670
4705
 
4671
- const DataCollectionMethodCreate = {
4672
- name: 'Create',
4673
- description: 'Create a new data record in the collection',
4674
- getConfigSchema: ({ collectionSpec }) => {
4675
- var _a, _b;
4676
- const fields = Object.keys((_b = (_a = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) === null || _a === void 0 ? void 0 : _a.properties) !== null && _b !== void 0 ? _b : {}).map(locatorToField);
4677
- return {
4678
- type: 'object',
4679
- properties: {
4680
- fields: {
4681
- type: 'array',
4682
- items: { type: 'string', enum: fields },
4683
- },
4684
- excludedFields: {
4685
- type: 'array',
4686
- items: { type: 'string', enum: fields },
4687
- },
4688
- },
4689
- };
4690
- },
4691
- getInputSchema: ({ collectionSpec, method, credentialsSchema }) => {
4692
- var _a;
4693
- let fieldsSchema = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema;
4694
- if (method === null || method === void 0 ? void 0 : method.fields) {
4695
- fieldsSchema = pickFieldsFromSchema(fieldsSchema, method.fields);
4696
- }
4697
- if (method === null || method === void 0 ? void 0 : method.excludedFields) {
4698
- fieldsSchema = excludeFieldsFromSchema(fieldsSchema, method.excludedFields);
4706
+ function getDataLocationMethodPath(locationKey, methodKey) {
4707
+ return `data/${locationKey}/${toKebabCase(methodKey)}`;
4708
+ }
4709
+ function dataLocationParametersMatch({ locationParameters, targetParameters, }) {
4710
+ targetParameters = typeof targetParameters === 'object' && targetParameters ? targetParameters : {};
4711
+ locationParameters = typeof locationParameters === 'object' && locationParameters ? locationParameters : {};
4712
+ for (const [key, value] of Object.entries(targetParameters)) {
4713
+ if (locationParameters[key] !== value) {
4714
+ return false;
4715
+ }
4716
+ }
4717
+ return true;
4718
+ }
4719
+ function parseDataLocationPath(path) {
4720
+ if (!path) {
4721
+ return undefined;
4722
+ }
4723
+ if (path.startsWith('/')) {
4724
+ path = path.slice(1);
4725
+ }
4726
+ if (!path.startsWith('data/')) {
4727
+ throw new Error(`Invalid data location path: ${path}. It should start with "data/"`);
4728
+ }
4729
+ path = path.slice(5);
4730
+ const [key, query] = path.split('?');
4731
+ const parameters = Object.fromEntries(new URLSearchParams(query).entries());
4732
+ return { key, parameters };
4733
+ }
4734
+ function makeDataLocationPath(pointer) {
4735
+ var _a;
4736
+ const normalizedPointer = normalizePointer(pointer);
4737
+ if (normalizedPointer === null || normalizedPointer === void 0 ? void 0 : normalizedPointer.key) {
4738
+ let path = `/data/${normalizedPointer.key}`;
4739
+ const parameters = omitBy((_a = normalizedPointer.parameters) !== null && _a !== void 0 ? _a : {}, isNil);
4740
+ if (Object.keys(parameters).length > 0) {
4741
+ path += `?${new URLSearchParams(parameters).toString()}`;
4699
4742
  }
4743
+ return path;
4744
+ }
4745
+ else {
4746
+ return undefined;
4747
+ }
4748
+ }
4749
+ function normalizePointer(pointer) {
4750
+ if (typeof pointer === 'string' && pointer.startsWith('/data/')) {
4700
4751
  return {
4701
- type: 'object',
4702
- properties: nonEmptyObjectProperties({
4703
- fields: (_a = transformVariablesWith(fieldsSchema, (locator) => `fields.${locatorToField(locator)}`)) !== null && _a !== void 0 ? _a : {
4704
- type: 'object',
4705
- },
4706
- credentials: credentialsSchema,
4707
- }),
4752
+ key: pointer.slice(6),
4708
4753
  };
4709
- },
4710
- getOutputSchema: ({}) => ({
4711
- type: 'object',
4712
- properties: {
4713
- id: { type: 'string' },
4714
- },
4715
- }),
4716
- supportedImplementationTypes: DataLocationMethodImplementationTypes,
4717
- };
4754
+ }
4755
+ return pointer;
4756
+ }
4757
+ function makeDataLocationOperationPath(collectionPath, operation) {
4758
+ const [path, query] = (collectionPath !== null && collectionPath !== void 0 ? collectionPath : '').split('?');
4759
+ return urljoin(path, operation, query ? `?${query}` : '');
4760
+ }
4761
+ function isSameDataLocation(location1, location2) {
4762
+ if (location1.key !== location2.key) {
4763
+ return false;
4764
+ }
4765
+ const cleanParameters1 = location1.parameters && Object.keys(location1.parameters).length > 0 ? location1.parameters : undefined;
4766
+ const cleanParameters2 = location2.parameters && Object.keys(location2.parameters).length > 0 ? location2.parameters : undefined;
4767
+ if (!deepEqual(cleanParameters1, cleanParameters2)) {
4768
+ return false;
4769
+ }
4770
+ return true;
4771
+ }
4772
+ function isDataLocationMethodSupported(location, methodKey) {
4773
+ var _a;
4774
+ const method = (_a = location === null || location === void 0 ? void 0 : location.methods) === null || _a === void 0 ? void 0 : _a[methodKey];
4775
+ return method && method.implementationType !== ConnectorMethodImplementationType.notSupported;
4776
+ }
4777
+ function getDataCollectionCreateFields(spec) {
4778
+ if (!spec)
4779
+ return undefined;
4780
+ if (!spec.fieldsSchema)
4781
+ return undefined;
4782
+ if (!spec.create)
4783
+ return undefined;
4784
+ let schema = excludeReadOnlyFieldsFromSchema(spec.fieldsSchema);
4785
+ if (spec.create.fields) {
4786
+ schema = pickFieldsFromSchema(schema, spec.create.fields);
4787
+ }
4788
+ if (spec.create.excludedFields) {
4789
+ schema = excludeFieldsFromSchema(schema, spec.create.excludedFields);
4790
+ }
4791
+ return schema;
4792
+ }
4793
+ function getDataCollectionUpdateFields(spec) {
4794
+ if (!spec)
4795
+ return undefined;
4796
+ if (!spec.fieldsSchema)
4797
+ return undefined;
4798
+ if (!spec.update)
4799
+ return undefined;
4800
+ let schema = excludeReadOnlyFieldsFromSchema(spec.fieldsSchema);
4801
+ if (spec.update.fields) {
4802
+ schema = pickFieldsFromSchema(schema, spec.update.fields);
4803
+ }
4804
+ if (spec.update.excludedFields) {
4805
+ schema = excludeFieldsFromSchema(schema, spec.update.excludedFields);
4806
+ }
4807
+ return schema;
4808
+ }
4809
+ function getWritableFieldsSchema(spec) {
4810
+ if (!spec)
4811
+ return undefined;
4812
+ if (!spec.fieldsSchema)
4813
+ return undefined;
4814
+ return mergeSchemas([getDataCollectionCreateFields(spec), getDataCollectionUpdateFields(spec)]);
4815
+ }
4816
+ function getReferenceCollectionPointerForSchema(schema) {
4817
+ if ((schema === null || schema === void 0 ? void 0 : schema.referenceCollection) && schema.referenceCollection.key) {
4818
+ return schema.referenceCollection;
4819
+ }
4820
+ else if (schema === null || schema === void 0 ? void 0 : schema.referenceCollectionPath) {
4821
+ return parseDataLocationPath(schema.referenceCollectionPath);
4822
+ }
4823
+ else if (schema === null || schema === void 0 ? void 0 : schema.referenceCollectionUri) {
4824
+ return parseDataLocationPath(schema.referenceCollectionUri);
4825
+ }
4826
+ else {
4827
+ return undefined;
4828
+ }
4829
+ }
4830
+ function getReferenceCollectionPathForSchema(schema) {
4831
+ const pointer = getReferenceCollectionPointerForSchema(schema);
4832
+ return makeDataLocationPath(pointer);
4833
+ }
4718
4834
 
4719
- const DataCollectionMethodDelete = {
4720
- name: 'Delete',
4721
- description: 'Delete a data record from the collection by id',
4722
- getInputSchema: ({ collectionHandler, parameters, credentialsSchema }) => {
4723
- return {
4724
- type: 'object',
4725
- properties: nonEmptyObjectProperties({
4726
- id: {
4727
- type: 'string',
4728
- referenceCollection: { key: collectionHandler === null || collectionHandler === void 0 ? void 0 : collectionHandler.key, parameters },
4835
+ const FIELDS_SCHEMA$G = {
4836
+ type: 'object',
4837
+ properties: {
4838
+ id: { type: 'string', readOnly: true },
4839
+ title: { type: 'string' },
4840
+ description: { type: 'string' },
4841
+ type: { type: 'string' },
4842
+ durationSeconds: { type: 'number' },
4843
+ location: { type: 'string' },
4844
+ isRecurrent: { type: 'boolean' },
4845
+ participants: {
4846
+ type: 'array',
4847
+ items: {
4848
+ type: 'object',
4849
+ properties: {
4850
+ userId: { type: 'string' },
4851
+ contactId: { type: 'string' },
4729
4852
  },
4730
- credentials: credentialsSchema,
4731
- }),
4732
- };
4853
+ },
4854
+ },
4855
+ status: { type: 'string' },
4856
+ contactId: {
4857
+ type: 'string',
4858
+ referenceUdm: 'contacts',
4859
+ },
4860
+ companyId: {
4861
+ type: 'string',
4862
+ referenceUdm: 'companies',
4863
+ },
4864
+ dealId: {
4865
+ type: 'string',
4866
+ referenceUdm: 'deals',
4867
+ },
4868
+ leadId: {
4869
+ type: 'string',
4870
+ referenceUdm: 'leads',
4871
+ },
4872
+ ownerId: {
4873
+ type: 'string',
4874
+ referenceUdm: 'users',
4875
+ },
4876
+ startTime: {
4877
+ type: 'string',
4878
+ format: 'date-time',
4879
+ },
4880
+ endTime: {
4881
+ type: 'string',
4882
+ format: 'date-time',
4883
+ },
4884
+ dueTime: {
4885
+ type: 'string',
4886
+ format: 'date-time',
4887
+ },
4888
+ createdTime: {
4889
+ type: 'string',
4890
+ format: 'date-time',
4891
+ readOnly: true,
4892
+ },
4893
+ createdBy: {
4894
+ type: 'string',
4895
+ referenceUdm: 'users',
4896
+ readOnly: true,
4897
+ },
4898
+ updatedTime: {
4899
+ type: 'string',
4900
+ format: 'date-time',
4901
+ readOnly: true,
4902
+ },
4903
+ updatedBy: {
4904
+ type: 'string',
4905
+ referenceUdm: 'users',
4906
+ readOnly: true,
4907
+ },
4733
4908
  },
4734
- getOutputSchema: () => null,
4735
- supportedImplementationTypes: DataLocationMethodImplementationTypes,
4736
4909
  };
4737
-
4738
- const DataCollectionMethodFind = {
4739
- isDeprecated: true,
4740
- name: 'Find',
4741
- description: 'Find a list of data records in the collection',
4742
- getConfigSchema: ({ collectionSpec }) => {
4743
- var _a, _b;
4744
- const fields = Object.keys((_b = (_a = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) === null || _a === void 0 ? void 0 : _a.properties) !== null && _b !== void 0 ? _b : {}).map(locatorToField);
4745
- return {
4746
- type: 'object',
4747
- properties: {
4748
- queryFields: {
4749
- type: 'array',
4750
- items: { type: 'string', enum: fields },
4751
- },
4752
- },
4753
- };
4910
+ const FallbackFieldsMap = {
4911
+ fromActivitiesToTasks: {
4912
+ subject: {
4913
+ $var: 'title',
4914
+ },
4915
+ content: {
4916
+ $var: 'description',
4917
+ },
4754
4918
  },
4755
- getInputSchema: ({ collectionSpec, method, credentialsSchema }) => {
4756
- const queryFieldsSchema = pickFieldsFromSchema(collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema, method === null || method === void 0 ? void 0 : method.queryFields);
4757
- const schema = {
4758
- type: 'object',
4759
- properties: nonEmptyObjectProperties({
4760
- cursor: { type: 'string' },
4761
- credentials: credentialsSchema,
4762
- }),
4763
- };
4764
- if (queryFieldsSchema === null || queryFieldsSchema === void 0 ? void 0 : queryFieldsSchema.properties) {
4765
- schema.properties = {
4766
- ...schema.properties,
4767
- query: transformVariablesWith(queryFieldsSchema, (locator) => `query.${locatorToField(locator)}`),
4768
- };
4769
- }
4770
- return schema;
4919
+ fromTasksToActivities: {
4920
+ title: {
4921
+ $var: 'subject',
4922
+ },
4923
+ description: {
4924
+ $var: 'content',
4925
+ },
4771
4926
  },
4772
- getOutputSchema: ({ collectionSpec }) => {
4773
- var _a;
4774
- return ({
4775
- type: 'object',
4776
- properties: {
4777
- records: {
4778
- type: 'array',
4779
- items: (_a = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) !== null && _a !== void 0 ? _a : { type: 'object' },
4780
- },
4781
- cursor: {
4782
- type: 'string',
4783
- },
4784
- },
4785
- });
4927
+ fromActivitiesToNotes: {
4928
+ content: {
4929
+ $var: 'description',
4930
+ },
4931
+ },
4932
+ fromNotesToActivities: {
4933
+ description: {
4934
+ $var: 'content',
4935
+ },
4936
+ },
4937
+ fromActivitiesToEmails: {
4938
+ subject: {
4939
+ $var: 'title',
4940
+ },
4941
+ body: {
4942
+ $var: 'description',
4943
+ },
4944
+ },
4945
+ fromEmailsToActivities: {
4946
+ title: {
4947
+ $var: 'subject',
4948
+ },
4949
+ description: {
4950
+ $var: 'body',
4951
+ },
4786
4952
  },
4787
- supportedImplementationTypes: DataLocationMethodImplementationTypes,
4788
4953
  };
4789
-
4790
- const DataCollectionMethodFindById = {
4791
- name: 'Find by ID',
4792
- description: 'Find a single data record in the collection by its id',
4793
- getInputSchema: ({ collectionHandler, parameters, credentialsSchema }) => ({
4794
- type: 'object',
4795
- properties: nonEmptyObjectProperties({
4796
- id: {
4797
- type: 'string',
4798
- referenceCollection: { key: collectionHandler === null || collectionHandler === void 0 ? void 0 : collectionHandler.key, parameters },
4799
- },
4800
- credentials: credentialsSchema,
4801
- }),
4802
- }),
4803
- getOutputSchema: ({ collectionSpec }) => {
4804
- var _a;
4805
- return ({
4806
- type: 'object',
4807
- properties: {
4808
- record: (_a = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) !== null && _a !== void 0 ? _a : { type: 'object' },
4809
- },
4810
- });
4954
+ const udm$G = {
4955
+ singularName: 'activity',
4956
+ pluralName: 'activities',
4957
+ fieldsSchema: FIELDS_SCHEMA$G,
4958
+ list: {
4959
+ filterFields: ['type', 'companyId', 'contactId', 'dealId', 'leadId', 'ownerId'],
4811
4960
  },
4812
- supportedImplementationTypes: DataLocationMethodImplementationTypes,
4961
+ match: {
4962
+ fields: ['type', 'companyId', 'contactId', 'dealId', 'leadId', 'ownerId'],
4963
+ },
4964
+ populateFields,
4965
+ udmFallbacks: [
4966
+ {
4967
+ udm: 'tasks',
4968
+ importFields: FallbackFieldsMap.fromTasksToActivities,
4969
+ exportFields: FallbackFieldsMap.fromActivitiesToTasks,
4970
+ },
4971
+ {
4972
+ udm: 'meetings',
4973
+ },
4974
+ {
4975
+ udm: 'notes',
4976
+ importFields: FallbackFieldsMap.fromNotesToActivities,
4977
+ exportFields: FallbackFieldsMap.fromActivitiesToNotes,
4978
+ },
4979
+ {
4980
+ udm: 'emails',
4981
+ importFields: FallbackFieldsMap.fromEmailsToActivities,
4982
+ exportFields: FallbackFieldsMap.fromActivitiesToEmails,
4983
+ },
4984
+ ],
4813
4985
  };
4986
+ function populateFields(fields) {
4987
+ const result = JSON.parse(JSON.stringify(fields));
4988
+ if (!result.dueTime) {
4989
+ result.dueTime = result.endTime || result.startTime;
4990
+ }
4991
+ if (!result.startTime) {
4992
+ result.startTime = result.dueTime || result.endTime;
4993
+ }
4994
+ if (!result.endTime) {
4995
+ result.endTime = result.dueTime || result.startTime;
4996
+ }
4997
+ return result;
4998
+ }
4814
4999
 
4815
- const DataCollectionMethodList = {
4816
- name: 'List',
4817
- description: 'Return all data records from the collection',
4818
- getConfigSchema: ({ collectionSpec }) => {
4819
- var _a, _b;
4820
- const fields = Object.keys((_b = (_a = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) === null || _a === void 0 ? void 0 : _a.properties) !== null && _b !== void 0 ? _b : {}).map(locatorToField);
4821
- return {
4822
- type: 'object',
4823
- properties: {
4824
- filterFields: {
4825
- type: 'array',
4826
- items: { type: 'string', enum: fields },
5000
+ const FIELDS_SCHEMA$F = {
5001
+ type: 'object',
5002
+ properties: {
5003
+ id: { type: 'string', readOnly: true },
5004
+ number: { type: 'string' },
5005
+ name: { type: 'string' },
5006
+ memo: { type: 'string' },
5007
+ status: { type: 'string' },
5008
+ paymentMethod: { type: 'string' },
5009
+ supplierId: { type: 'string', referenceUdm: 'suppliers' },
5010
+ currency: { type: 'string' },
5011
+ payments: {
5012
+ type: 'array',
5013
+ items: {
5014
+ type: 'string',
5015
+ referenceUdm: 'payments',
5016
+ },
5017
+ },
5018
+ lineItems: {
5019
+ type: 'array',
5020
+ items: {
5021
+ type: 'object',
5022
+ properties: {
5023
+ id: { type: 'string' },
5024
+ itemName: { type: 'string' },
5025
+ description: { type: 'string' },
5026
+ code: { type: 'string' },
5027
+ type: { type: 'string' },
5028
+ companyId: { type: 'string', referenceUdm: 'companies' },
5029
+ ledgerAccountId: { type: 'string', referenceUdm: 'ledger-accounts' },
5030
+ quantity: { type: 'number' },
5031
+ unitPrice: { type: 'number' },
5032
+ unitOfMeasure: { type: 'string' },
5033
+ purchasePrice: { type: 'number' },
5034
+ salesPrice: { type: 'number' },
5035
+ taxable: { type: 'boolean' },
5036
+ taxAmount: { type: 'number' },
5037
+ totalAmount: { type: 'number' },
4827
5038
  },
4828
5039
  },
4829
- };
5040
+ },
5041
+ totalAmount: { type: 'number' },
5042
+ totalTax: { type: 'number' },
5043
+ exchangeRate: { type: 'number' },
5044
+ totalDiscount: { type: 'number' },
5045
+ subTotal: { type: 'number' },
5046
+ balance: { type: 'number' },
5047
+ ledgerAccountId: { type: 'string', referenceUdm: 'ledger-accounts' },
5048
+ issueDate: {
5049
+ type: 'string',
5050
+ format: 'date-time',
5051
+ },
5052
+ dueDate: {
5053
+ type: 'string',
5054
+ format: 'date-time',
5055
+ },
5056
+ paidOnDate: {
5057
+ type: 'string',
5058
+ format: 'date-time',
5059
+ },
5060
+ createdTime: { type: 'string', format: 'date-time', readOnly: true },
5061
+ createdBy: { type: 'string', referenceUdm: 'users', readOnly: true },
5062
+ updatedTime: { type: 'string', format: 'date-time', readOnly: true },
5063
+ updatedBy: { type: 'string', referenceUdm: 'users', readOnly: true },
4830
5064
  },
4831
- getInputSchema: ({ method, collectionSpec, credentialsSchema }) => {
4832
- const fieldsSchema = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema;
4833
- let filterSchema;
4834
- if (method === null || method === void 0 ? void 0 : method.filterFields) {
4835
- filterSchema = pickFieldsFromSchema(fieldsSchema, method.filterFields);
4836
- }
4837
- return {
4838
- type: 'object',
4839
- properties: nonEmptyObjectProperties({
4840
- filter: filterSchema,
4841
- cursor: {
4842
- type: 'string',
4843
- description: 'Cursor returned in response to the previous "list" request',
4844
- },
4845
- credentials: credentialsSchema,
4846
- }),
4847
- };
5065
+ };
5066
+ const udm$F = {
5067
+ singularName: 'bill',
5068
+ pluralName: 'bills',
5069
+ fieldsSchema: FIELDS_SCHEMA$F,
5070
+ list: {
5071
+ filterFields: ['name', 'number', 'status', 'supplierId'],
4848
5072
  },
4849
- getOutputSchema: ({ collectionSpec }) => {
4850
- var _a;
4851
- return ({
4852
- type: 'object',
4853
- properties: {
4854
- records: {
4855
- type: 'array',
4856
- items: (_a = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) !== null && _a !== void 0 ? _a : { type: 'object' },
4857
- },
4858
- cursor: {
4859
- type: 'string',
4860
- description: 'Cursor to request the next page of results',
4861
- },
4862
- },
4863
- });
5073
+ match: {
5074
+ fields: ['name', 'number', 'status', 'supplierId'],
4864
5075
  },
4865
- supportedImplementationTypes: DataLocationMethodImplementationTypes,
4866
5076
  };
4867
5077
 
4868
- const DataCollectionMethodMatch = {
4869
- name: 'Match',
4870
- description: 'Find a single matching record in a data collection by a set of fields',
4871
- getConfigSchema: ({ collectionSpec }) => {
4872
- var _a, _b;
4873
- const fields = Object.keys((_b = (_a = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) === null || _a === void 0 ? void 0 : _a.properties) !== null && _b !== void 0 ? _b : {}).map(locatorToField);
4874
- return {
4875
- type: 'object',
4876
- properties: {
4877
- fields: {
4878
- type: 'array',
4879
- items: { type: 'string', enum: fields },
4880
- },
4881
- },
4882
- };
4883
- },
4884
- getInputSchema: ({ collectionSpec, method, credentialsSchema }) => {
4885
- const fieldsSchema = pickFieldsFromSchema(collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema, method === null || method === void 0 ? void 0 : method.fields);
4886
- return {
4887
- type: 'object',
4888
- properties: nonEmptyObjectProperties({
4889
- query: transformVariablesWith(fieldsSchema !== null && fieldsSchema !== void 0 ? fieldsSchema : {}, (locator) => `query.${locatorToField(locator)}`),
4890
- credentials: credentialsSchema,
4891
- }),
4892
- };
4893
- },
4894
- getOutputSchema: ({ collectionSpec }) => {
4895
- var _a;
4896
- return ({
4897
- type: 'object',
4898
- properties: {
4899
- record: (_a = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) !== null && _a !== void 0 ? _a : { type: 'object' },
4900
- },
4901
- });
4902
- },
4903
- supportedImplementationTypes: DataLocationMethodImplementationTypes,
4904
- };
4905
-
4906
- const DataCollectionMethodSearch = {
4907
- name: 'Search',
4908
- description: 'Find data records in a collection by a string query',
4909
- getInputSchema: ({ credentialsSchema }) => ({
4910
- type: 'object',
4911
- properties: nonEmptyObjectProperties({
4912
- query: { type: 'string' },
4913
- cursor: { type: 'string' },
4914
- credentials: credentialsSchema,
4915
- }),
4916
- }),
4917
- getOutputSchema: ({ collectionSpec }) => {
4918
- var _a;
4919
- return ({
4920
- type: 'object',
4921
- properties: {
4922
- records: {
4923
- type: 'array',
4924
- items: (_a = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) !== null && _a !== void 0 ? _a : { type: 'object' },
4925
- },
4926
- cursor: { type: 'string' },
4927
- },
4928
- });
5078
+ const FIELDS_SCHEMA$E = {
5079
+ type: 'object',
5080
+ properties: {
5081
+ id: { type: 'string', readOnly: true },
5082
+ fullName: { type: 'string' },
5083
+ firstName: { type: 'string' },
5084
+ lastName: { type: 'string' },
5085
+ primaryEmail: { type: 'string' },
5086
+ campaignId: {
5087
+ type: 'string',
5088
+ referenceUdm: 'campaigns',
5089
+ },
5090
+ contactId: {
5091
+ type: 'string',
5092
+ referenceUdm: 'contacts',
5093
+ },
5094
+ leadId: {
5095
+ type: 'string',
5096
+ referenceUdm: 'leads',
5097
+ },
5098
+ source: { type: 'string' },
5099
+ status: { type: 'string' },
5100
+ companyId: {
5101
+ type: 'string',
5102
+ referenceUdm: 'companies',
5103
+ },
5104
+ jobTitle: { type: 'string' },
5105
+ hasOptedOutOfEmail: { type: 'boolean' },
5106
+ createdTime: {
5107
+ type: 'string',
5108
+ format: 'date-time',
5109
+ },
5110
+ createdBy: {
5111
+ type: 'string',
5112
+ readOnly: true,
5113
+ referenceUdm: 'users',
5114
+ },
5115
+ updatedTime: {
5116
+ type: 'string',
5117
+ readOnly: true,
5118
+ format: 'date-time',
5119
+ },
5120
+ updatedBy: {
5121
+ type: 'string',
5122
+ readOnly: true,
5123
+ referenceUdm: 'users',
5124
+ },
4929
5125
  },
4930
- supportedImplementationTypes: DataLocationMethodImplementationTypes,
4931
5126
  };
4932
-
4933
- const DataCollectionMethodUpdate = {
4934
- name: 'Update',
4935
- description: 'Update one data record in the collection by its id',
4936
- getConfigSchema: ({ collectionSpec }) => {
4937
- var _a, _b;
4938
- const fields = Object.keys((_b = (_a = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) === null || _a === void 0 ? void 0 : _a.properties) !== null && _b !== void 0 ? _b : {}).map(locatorToField);
4939
- return {
4940
- type: 'object',
4941
- properties: {
4942
- fields: {
4943
- type: 'array',
4944
- items: { type: 'string', enum: fields },
4945
- },
4946
- excludedFields: {
4947
- type: 'array',
4948
- items: { type: 'string', enum: fields },
4949
- },
4950
- },
4951
- };
5127
+ const udm$E = {
5128
+ singularName: 'campaign-member',
5129
+ pluralName: 'campaign-members',
5130
+ fieldsSchema: FIELDS_SCHEMA$E,
5131
+ list: {
5132
+ filterFields: [
5133
+ 'primaryEmail',
5134
+ 'fullName',
5135
+ 'firstName',
5136
+ 'lastName',
5137
+ 'campaignId',
5138
+ 'contactId',
5139
+ 'leadId',
5140
+ 'companyId',
5141
+ ],
4952
5142
  },
4953
- getInputSchema: ({ collectionSpec, collectionHandler, credentialsSchema, method, parameters }) => {
4954
- var _a;
4955
- let fieldsSchema = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema;
4956
- if (method === null || method === void 0 ? void 0 : method.fields) {
4957
- fieldsSchema = pickFieldsFromSchema(fieldsSchema, method.fields);
4958
- }
4959
- if (method === null || method === void 0 ? void 0 : method.excludedFields) {
4960
- fieldsSchema = excludeFieldsFromSchema(fieldsSchema, method.excludedFields);
4961
- }
4962
- return {
4963
- type: 'object',
4964
- properties: nonEmptyObjectProperties({
4965
- id: {
4966
- type: 'string',
4967
- referenceCollection: { key: collectionHandler === null || collectionHandler === void 0 ? void 0 : collectionHandler.key, parameters },
4968
- },
4969
- fields: (_a = transformVariablesWith(fieldsSchema, (locator) => `fields.${locatorToField(locator)}`)) !== null && _a !== void 0 ? _a : {
4970
- type: 'object',
4971
- },
4972
- credentials: credentialsSchema,
4973
- }),
4974
- };
5143
+ match: {
5144
+ fields: ['primaryEmail', 'fullName', 'firstName', 'lastName', 'campaignId', 'contactId', 'leadId', 'companyId'],
4975
5145
  },
4976
- getOutputSchema: ({}) => ({
4977
- type: 'object',
4978
- properties: {
4979
- id: { type: 'string' },
4980
- },
4981
- }),
4982
- supportedImplementationTypes: DataLocationMethodImplementationTypes,
4983
5146
  };
4984
5147
 
4985
- const FIELDS_SCHEMA$G = {
5148
+ const FIELDS_SCHEMA$D = {
4986
5149
  type: 'object',
4987
5150
  properties: {
4988
5151
  id: { type: 'string', readOnly: true },
4989
- title: { type: 'string' },
4990
- description: { type: 'string' },
4991
- type: { type: 'string' },
4992
- durationSeconds: { type: 'number' },
4993
- location: { type: 'string' },
4994
- isRecurrent: { type: 'boolean' },
4995
- participants: {
4996
- type: 'array',
4997
- items: {
4998
- type: 'object',
4999
- properties: {
5000
- userId: { type: 'string' },
5001
- contactId: { type: 'string' },
5002
- },
5003
- },
5152
+ name: {
5153
+ type: 'string',
5004
5154
  },
5005
- status: { type: 'string' },
5006
- contactId: {
5155
+ cost: {
5156
+ type: 'number',
5157
+ },
5158
+ description: {
5007
5159
  type: 'string',
5008
- referenceUdm: 'contacts',
5009
5160
  },
5010
- companyId: {
5161
+ source: {
5011
5162
  type: 'string',
5012
- referenceUdm: 'companies',
5013
5163
  },
5014
- dealId: {
5164
+ stage: {
5015
5165
  type: 'string',
5016
- referenceUdm: 'deals',
5017
5166
  },
5018
- leadId: {
5167
+ type: {
5019
5168
  type: 'string',
5020
- referenceUdm: 'leads',
5021
5169
  },
5022
5170
  ownerId: {
5023
5171
  type: 'string',
5024
5172
  referenceUdm: 'users',
5025
5173
  },
5174
+ sentCount: {
5175
+ type: 'number',
5176
+ readOnly: true,
5177
+ },
5178
+ replyCount: {
5179
+ type: 'number',
5180
+ readOnly: true,
5181
+ },
5182
+ openCount: {
5183
+ type: 'number',
5184
+ readOnly: true,
5185
+ },
5186
+ clickCount: {
5187
+ type: 'number',
5188
+ readOnly: true,
5189
+ },
5026
5190
  startTime: {
5027
5191
  type: 'string',
5028
5192
  format: 'date-time',
@@ -5031,10 +5195,6 @@ const FIELDS_SCHEMA$G = {
5031
5195
  type: 'string',
5032
5196
  format: 'date-time',
5033
5197
  },
5034
- dueTime: {
5035
- type: 'string',
5036
- format: 'date-time',
5037
- },
5038
5198
  createdTime: {
5039
5199
  type: 'string',
5040
5200
  format: 'date-time',
@@ -5055,477 +5215,167 @@ const FIELDS_SCHEMA$G = {
5055
5215
  referenceUdm: 'users',
5056
5216
  readOnly: true,
5057
5217
  },
5218
+ lastActivityTime: {
5219
+ type: 'string',
5220
+ format: 'date-time',
5221
+ readOnly: true,
5222
+ },
5058
5223
  },
5059
5224
  };
5060
- const FallbackFieldsMap = {
5061
- fromActivitiesToTasks: {
5062
- subject: {
5063
- $var: 'title',
5064
- },
5065
- content: {
5066
- $var: 'description',
5067
- },
5225
+ const MODIFIABLE_FIELDS$2 = ['name', 'description', 'ownerId', 'startTime', 'endTime', 'cost', 'source', 'stage', 'type'];
5226
+ const udm$D = {
5227
+ singularName: 'campaign',
5228
+ pluralName: 'campaigns',
5229
+ fieldsSchema: FIELDS_SCHEMA$D,
5230
+ categories: ['Marketing Automation', 'Sales', 'CRM', 'Ads'],
5231
+ list: {
5232
+ filterFields: ['name', 'source', 'stage', 'type', 'ownerId'],
5068
5233
  },
5069
- fromTasksToActivities: {
5070
- title: {
5071
- $var: 'subject',
5072
- },
5073
- description: {
5074
- $var: 'content',
5075
- },
5234
+ find: {
5235
+ queryFields: ['name', 'source', 'stage', 'type', 'ownerId'],
5076
5236
  },
5077
- fromActivitiesToNotes: {
5078
- content: {
5079
- $var: 'description',
5080
- },
5237
+ match: {
5238
+ fields: ['name', 'source', 'stage', 'type', 'ownerId'],
5081
5239
  },
5082
- fromNotesToActivities: {
5083
- description: {
5084
- $var: 'content',
5085
- },
5086
- },
5087
- fromActivitiesToEmails: {
5088
- subject: {
5089
- $var: 'title',
5090
- },
5091
- body: {
5092
- $var: 'description',
5093
- },
5240
+ create: {
5241
+ fields: MODIFIABLE_FIELDS$2,
5094
5242
  },
5095
- fromEmailsToActivities: {
5096
- title: {
5097
- $var: 'subject',
5098
- },
5099
- description: {
5100
- $var: 'body',
5101
- },
5243
+ update: {
5244
+ fields: MODIFIABLE_FIELDS$2,
5102
5245
  },
5103
5246
  };
5104
- const udm$G = {
5105
- singularName: 'activity',
5106
- pluralName: 'activities',
5107
- fieldsSchema: FIELDS_SCHEMA$G,
5108
- list: {
5109
- filterFields: ['type', 'companyId', 'contactId', 'dealId', 'leadId', 'ownerId'],
5247
+
5248
+ const AddressSchema = {
5249
+ type: 'object',
5250
+ properties: {
5251
+ type: { type: 'string' },
5252
+ full: { type: 'string' },
5253
+ street: { type: 'string' },
5254
+ city: { type: 'string' },
5255
+ state: { type: 'string' },
5256
+ country: { type: 'string' },
5257
+ zip: { type: 'string' },
5110
5258
  },
5111
- match: {
5112
- fields: ['type', 'companyId', 'contactId', 'dealId', 'leadId', 'ownerId'],
5259
+ };
5260
+ const PhoneEmailSchema = {
5261
+ type: 'object',
5262
+ properties: {
5263
+ value: { type: 'string' },
5264
+ type: { type: 'string' },
5113
5265
  },
5114
- populateFields,
5115
- udmFallbacks: [
5116
- {
5117
- udm: 'tasks',
5118
- importFields: FallbackFieldsMap.fromTasksToActivities,
5119
- exportFields: FallbackFieldsMap.fromActivitiesToTasks,
5120
- },
5121
- {
5122
- udm: 'meetings',
5123
- },
5124
- {
5125
- udm: 'notes',
5126
- importFields: FallbackFieldsMap.fromNotesToActivities,
5127
- exportFields: FallbackFieldsMap.fromActivitiesToNotes,
5128
- },
5129
- {
5130
- udm: 'emails',
5131
- importFields: FallbackFieldsMap.fromEmailsToActivities,
5132
- exportFields: FallbackFieldsMap.fromActivitiesToEmails,
5133
- },
5134
- ],
5135
5266
  };
5136
- function populateFields(fields) {
5137
- const result = JSON.parse(JSON.stringify(fields));
5138
- if (!result.dueTime) {
5139
- result.dueTime = result.endTime || result.startTime;
5140
- }
5141
- if (!result.startTime) {
5142
- result.startTime = result.dueTime || result.endTime;
5143
- }
5144
- if (!result.endTime) {
5145
- result.endTime = result.dueTime || result.startTime;
5146
- }
5147
- return result;
5148
- }
5149
5267
 
5150
- const FIELDS_SCHEMA$F = {
5268
+ const FIELDS_SCHEMA$C = {
5151
5269
  type: 'object',
5152
5270
  properties: {
5153
5271
  id: { type: 'string', readOnly: true },
5154
- number: { type: 'string' },
5155
- name: { type: 'string' },
5156
- memo: { type: 'string' },
5157
- status: { type: 'string' },
5158
- paymentMethod: { type: 'string' },
5159
- supplierId: { type: 'string', referenceUdm: 'suppliers' },
5160
- currency: { type: 'string' },
5161
- payments: {
5162
- type: 'array',
5163
- items: {
5164
- type: 'string',
5165
- referenceUdm: 'payments',
5166
- },
5272
+ name: {
5273
+ type: 'string',
5167
5274
  },
5168
- lineItems: {
5275
+ websiteUrl: {
5276
+ type: 'string',
5277
+ },
5278
+ phones: {
5169
5279
  type: 'array',
5170
- items: {
5171
- type: 'object',
5172
- properties: {
5173
- id: { type: 'string' },
5174
- itemName: { type: 'string' },
5175
- description: { type: 'string' },
5176
- code: { type: 'string' },
5177
- type: { type: 'string' },
5178
- companyId: { type: 'string', referenceUdm: 'companies' },
5179
- ledgerAccountId: { type: 'string', referenceUdm: 'ledger-accounts' },
5180
- quantity: { type: 'number' },
5181
- unitPrice: { type: 'number' },
5182
- unitOfMeasure: { type: 'string' },
5183
- purchasePrice: { type: 'number' },
5184
- salesPrice: { type: 'number' },
5185
- taxable: { type: 'boolean' },
5186
- taxAmount: { type: 'number' },
5187
- totalAmount: { type: 'number' },
5188
- },
5189
- },
5280
+ items: PhoneEmailSchema,
5190
5281
  },
5191
- totalAmount: { type: 'number' },
5192
- totalTax: { type: 'number' },
5193
- exchangeRate: { type: 'number' },
5194
- totalDiscount: { type: 'number' },
5195
- subTotal: { type: 'number' },
5196
- balance: { type: 'number' },
5197
- ledgerAccountId: { type: 'string', referenceUdm: 'ledger-accounts' },
5198
- issueDate: {
5282
+ primaryPhone: {
5199
5283
  type: 'string',
5200
- format: 'date-time',
5201
5284
  },
5202
- dueDate: {
5285
+ description: {
5203
5286
  type: 'string',
5204
- format: 'date-time',
5205
5287
  },
5206
- paidOnDate: {
5288
+ currency: {
5207
5289
  type: 'string',
5208
- format: 'date-time',
5209
5290
  },
5210
- createdTime: { type: 'string', format: 'date-time', readOnly: true },
5211
- createdBy: { type: 'string', referenceUdm: 'users', readOnly: true },
5212
- updatedTime: { type: 'string', format: 'date-time', readOnly: true },
5213
- updatedBy: { type: 'string', referenceUdm: 'users', readOnly: true },
5214
- },
5215
- };
5216
- const udm$F = {
5217
- singularName: 'bill',
5218
- pluralName: 'bills',
5219
- fieldsSchema: FIELDS_SCHEMA$F,
5220
- list: {
5221
- filterFields: ['name', 'number', 'status', 'supplierId'],
5222
- },
5223
- match: {
5224
- fields: ['name', 'number', 'status', 'supplierId'],
5225
- },
5226
- };
5227
-
5228
- const FIELDS_SCHEMA$E = {
5229
- type: 'object',
5230
- properties: {
5231
- id: { type: 'string', readOnly: true },
5232
- fullName: { type: 'string' },
5233
- firstName: { type: 'string' },
5234
- lastName: { type: 'string' },
5235
- primaryEmail: { type: 'string' },
5236
- campaignId: {
5291
+ industry: {
5237
5292
  type: 'string',
5238
- referenceUdm: 'campaigns',
5239
5293
  },
5240
- contactId: {
5294
+ ownerId: {
5241
5295
  type: 'string',
5242
- referenceUdm: 'contacts',
5296
+ referenceUdm: 'users',
5243
5297
  },
5244
- leadId: {
5245
- type: 'string',
5246
- referenceUdm: 'leads',
5298
+ primaryAddress: AddressSchema,
5299
+ addresses: {
5300
+ type: 'array',
5301
+ items: AddressSchema,
5247
5302
  },
5248
- source: { type: 'string' },
5249
- status: { type: 'string' },
5250
- companyId: {
5251
- type: 'string',
5252
- referenceUdm: 'companies',
5303
+ numberOfEmployees: {
5304
+ type: 'number',
5253
5305
  },
5254
- jobTitle: { type: 'string' },
5255
- hasOptedOutOfEmail: { type: 'boolean' },
5256
5306
  createdTime: {
5257
5307
  type: 'string',
5258
5308
  format: 'date-time',
5259
5309
  },
5260
5310
  createdBy: {
5261
5311
  type: 'string',
5262
- readOnly: true,
5263
5312
  referenceUdm: 'users',
5313
+ readOnly: true,
5264
5314
  },
5265
5315
  updatedTime: {
5266
5316
  type: 'string',
5267
- readOnly: true,
5268
5317
  format: 'date-time',
5318
+ readOnly: true,
5269
5319
  },
5270
5320
  updatedBy: {
5271
5321
  type: 'string',
5272
- readOnly: true,
5273
5322
  referenceUdm: 'users',
5323
+ readOnly: true,
5324
+ },
5325
+ lastActivityTime: {
5326
+ type: 'string',
5327
+ format: 'date-time',
5328
+ readOnly: true,
5274
5329
  },
5275
5330
  },
5276
5331
  };
5277
- const udm$E = {
5278
- singularName: 'campaign-member',
5279
- pluralName: 'campaign-members',
5280
- fieldsSchema: FIELDS_SCHEMA$E,
5332
+ const udm$C = {
5333
+ singularName: 'company',
5334
+ pluralName: 'companies',
5335
+ fieldsSchema: FIELDS_SCHEMA$C,
5281
5336
  list: {
5282
- filterFields: [
5283
- 'primaryEmail',
5284
- 'fullName',
5285
- 'firstName',
5286
- 'lastName',
5287
- 'campaignId',
5288
- 'contactId',
5289
- 'leadId',
5290
- 'companyId',
5291
- ],
5337
+ filterFields: ['ownerId', 'name', 'websiteUrl', 'industry'],
5338
+ },
5339
+ find: {
5340
+ queryFields: ['ownerId', 'name', 'websiteUrl', 'industry'],
5292
5341
  },
5293
5342
  match: {
5294
- fields: ['primaryEmail', 'fullName', 'firstName', 'lastName', 'campaignId', 'contactId', 'leadId', 'companyId'],
5343
+ fields: ['ownerId', 'name', 'websiteUrl', 'industry'],
5344
+ },
5345
+ fieldFallbacks: {
5346
+ 'primaryAddress.full': [
5347
+ {
5348
+ $concat: {
5349
+ values: [
5350
+ { $var: 'primaryAddress.street' },
5351
+ { $var: 'primaryAddress.city' },
5352
+ { $var: 'primaryAddress.state' },
5353
+ { $var: 'primaryAddress.zip' },
5354
+ { $var: 'primaryAddress.country' },
5355
+ ],
5356
+ delimiter: ', ',
5357
+ },
5358
+ },
5359
+ ],
5295
5360
  },
5296
5361
  };
5297
5362
 
5298
- const FIELDS_SCHEMA$D = {
5363
+ const FIELDS_SCHEMA$B = {
5299
5364
  type: 'object',
5300
5365
  properties: {
5301
5366
  id: { type: 'string', readOnly: true },
5302
- name: {
5367
+ name: { type: 'string' },
5368
+ description: { type: 'string' },
5369
+ source: { type: 'string' },
5370
+ type: { type: 'string' },
5371
+ ownerId: {
5303
5372
  type: 'string',
5373
+ referenceUdm: 'users',
5304
5374
  },
5305
- cost: {
5306
- type: 'number',
5307
- },
5308
- description: {
5375
+ createdTime: {
5309
5376
  type: 'string',
5310
- },
5311
- source: {
5312
- type: 'string',
5313
- },
5314
- stage: {
5315
- type: 'string',
5316
- },
5317
- type: {
5318
- type: 'string',
5319
- },
5320
- ownerId: {
5321
- type: 'string',
5322
- referenceUdm: 'users',
5323
- },
5324
- sentCount: {
5325
- type: 'number',
5326
- readOnly: true,
5327
- },
5328
- replyCount: {
5329
- type: 'number',
5330
- readOnly: true,
5331
- },
5332
- openCount: {
5333
- type: 'number',
5334
- readOnly: true,
5335
- },
5336
- clickCount: {
5337
- type: 'number',
5338
- readOnly: true,
5339
- },
5340
- startTime: {
5341
- type: 'string',
5342
- format: 'date-time',
5343
- },
5344
- endTime: {
5345
- type: 'string',
5346
- format: 'date-time',
5347
- },
5348
- createdTime: {
5349
- type: 'string',
5350
- format: 'date-time',
5351
- readOnly: true,
5352
- },
5353
- createdBy: {
5354
- type: 'string',
5355
- referenceUdm: 'users',
5356
- readOnly: true,
5357
- },
5358
- updatedTime: {
5359
- type: 'string',
5360
- format: 'date-time',
5361
- readOnly: true,
5362
- },
5363
- updatedBy: {
5364
- type: 'string',
5365
- referenceUdm: 'users',
5366
- readOnly: true,
5367
- },
5368
- lastActivityTime: {
5369
- type: 'string',
5370
- format: 'date-time',
5371
- readOnly: true,
5372
- },
5373
- },
5374
- };
5375
- const MODIFIABLE_FIELDS$2 = ['name', 'description', 'ownerId', 'startTime', 'endTime', 'cost', 'source', 'stage', 'type'];
5376
- const udm$D = {
5377
- singularName: 'campaign',
5378
- pluralName: 'campaigns',
5379
- fieldsSchema: FIELDS_SCHEMA$D,
5380
- categories: ['Marketing Automation', 'Sales', 'CRM', 'Ads'],
5381
- list: {
5382
- filterFields: ['name', 'source', 'stage', 'type', 'ownerId'],
5383
- },
5384
- find: {
5385
- queryFields: ['name', 'source', 'stage', 'type', 'ownerId'],
5386
- },
5387
- match: {
5388
- fields: ['name', 'source', 'stage', 'type', 'ownerId'],
5389
- },
5390
- create: {
5391
- fields: MODIFIABLE_FIELDS$2,
5392
- },
5393
- update: {
5394
- fields: MODIFIABLE_FIELDS$2,
5395
- },
5396
- };
5397
-
5398
- const AddressSchema = {
5399
- type: 'object',
5400
- properties: {
5401
- type: { type: 'string' },
5402
- full: { type: 'string' },
5403
- street: { type: 'string' },
5404
- city: { type: 'string' },
5405
- state: { type: 'string' },
5406
- country: { type: 'string' },
5407
- zip: { type: 'string' },
5408
- },
5409
- };
5410
- const PhoneEmailSchema = {
5411
- type: 'object',
5412
- properties: {
5413
- value: { type: 'string' },
5414
- type: { type: 'string' },
5415
- },
5416
- };
5417
-
5418
- const FIELDS_SCHEMA$C = {
5419
- type: 'object',
5420
- properties: {
5421
- id: { type: 'string', readOnly: true },
5422
- name: {
5423
- type: 'string',
5424
- },
5425
- websiteUrl: {
5426
- type: 'string',
5427
- },
5428
- phones: {
5429
- type: 'array',
5430
- items: PhoneEmailSchema,
5431
- },
5432
- primaryPhone: {
5433
- type: 'string',
5434
- },
5435
- description: {
5436
- type: 'string',
5437
- },
5438
- currency: {
5439
- type: 'string',
5440
- },
5441
- industry: {
5442
- type: 'string',
5443
- },
5444
- ownerId: {
5445
- type: 'string',
5446
- referenceUdm: 'users',
5447
- },
5448
- primaryAddress: AddressSchema,
5449
- addresses: {
5450
- type: 'array',
5451
- items: AddressSchema,
5452
- },
5453
- numberOfEmployees: {
5454
- type: 'number',
5455
- },
5456
- createdTime: {
5457
- type: 'string',
5458
- format: 'date-time',
5459
- },
5460
- createdBy: {
5461
- type: 'string',
5462
- referenceUdm: 'users',
5463
- readOnly: true,
5464
- },
5465
- updatedTime: {
5466
- type: 'string',
5467
- format: 'date-time',
5468
- readOnly: true,
5469
- },
5470
- updatedBy: {
5471
- type: 'string',
5472
- referenceUdm: 'users',
5473
- readOnly: true,
5474
- },
5475
- lastActivityTime: {
5476
- type: 'string',
5477
- format: 'date-time',
5478
- readOnly: true,
5479
- },
5480
- },
5481
- };
5482
- const udm$C = {
5483
- singularName: 'company',
5484
- pluralName: 'companies',
5485
- fieldsSchema: FIELDS_SCHEMA$C,
5486
- list: {
5487
- filterFields: ['ownerId', 'name', 'websiteUrl', 'industry'],
5488
- },
5489
- find: {
5490
- queryFields: ['ownerId', 'name', 'websiteUrl', 'industry'],
5491
- },
5492
- match: {
5493
- fields: ['ownerId', 'name', 'websiteUrl', 'industry'],
5494
- },
5495
- fieldFallbacks: {
5496
- 'primaryAddress.full': [
5497
- {
5498
- $concat: {
5499
- values: [
5500
- { $var: 'primaryAddress.street' },
5501
- { $var: 'primaryAddress.city' },
5502
- { $var: 'primaryAddress.state' },
5503
- { $var: 'primaryAddress.zip' },
5504
- { $var: 'primaryAddress.country' },
5505
- ],
5506
- delimiter: ', ',
5507
- },
5508
- },
5509
- ],
5510
- },
5511
- };
5512
-
5513
- const FIELDS_SCHEMA$B = {
5514
- type: 'object',
5515
- properties: {
5516
- id: { type: 'string', readOnly: true },
5517
- name: { type: 'string' },
5518
- description: { type: 'string' },
5519
- source: { type: 'string' },
5520
- type: { type: 'string' },
5521
- ownerId: {
5522
- type: 'string',
5523
- referenceUdm: 'users',
5524
- },
5525
- createdTime: {
5526
- type: 'string',
5527
- format: 'date-time',
5528
- readOnly: true,
5377
+ format: 'date-time',
5378
+ readOnly: true,
5529
5379
  },
5530
5380
  createdBy: {
5531
5381
  type: 'string',
@@ -7943,173 +7793,6 @@ const udm = {
7943
7793
  },
7944
7794
  };
7945
7795
 
7946
- const structuredClone$1 = (structuredClonePolyfill === null || structuredClonePolyfill === void 0 ? void 0 : structuredClonePolyfill.default) || structuredClonePolyfill;
7947
- function isNil(value) {
7948
- return value == null;
7949
- }
7950
- function omitBy(obj, check) {
7951
- obj = { ...obj };
7952
- Object.entries(obj).forEach(([key, value]) => check(value) && delete obj[key]);
7953
- return obj;
7954
- }
7955
- function isEmptyValue(value) {
7956
- if (isNil(value)) {
7957
- return true;
7958
- }
7959
- if (typeof value === 'symbol') {
7960
- return true;
7961
- }
7962
- if (typeof value === 'boolean') {
7963
- return false;
7964
- }
7965
- if (typeof value === 'number') {
7966
- return isNaN(value);
7967
- }
7968
- if (typeof value === 'string') {
7969
- return value.trim().length === 0;
7970
- }
7971
- const tag = value.toString();
7972
- if (tag === '[object Map]' || tag === '[object Set]') {
7973
- return !value.size;
7974
- }
7975
- return typeof value === 'object' && Object.keys(value).length === 0;
7976
- }
7977
- const simpleUniqueId = () => {
7978
- return Math.floor(Math.random() * Number.MAX_SAFE_INTEGER)
7979
- .toString(36)
7980
- .padStart(11, '0')
7981
- .substring(0, 11);
7982
- };
7983
-
7984
- function getDataLocationMethodPath(locationKey, methodKey) {
7985
- return `data/${locationKey}/${toKebabCase(methodKey)}`;
7986
- }
7987
- function dataLocationParametersMatch({ locationParameters, targetParameters, }) {
7988
- targetParameters = typeof targetParameters === 'object' && targetParameters ? targetParameters : {};
7989
- locationParameters = typeof locationParameters === 'object' && locationParameters ? locationParameters : {};
7990
- for (const [key, value] of Object.entries(targetParameters)) {
7991
- if (locationParameters[key] !== value) {
7992
- return false;
7993
- }
7994
- }
7995
- return true;
7996
- }
7997
- function parseDataLocationPath(path) {
7998
- if (!path) {
7999
- return undefined;
8000
- }
8001
- if (path.startsWith('/')) {
8002
- path = path.slice(1);
8003
- }
8004
- if (!path.startsWith('data/')) {
8005
- throw new Error(`Invalid data location path: ${path}. It should start with "data/"`);
8006
- }
8007
- path = path.slice(5);
8008
- const [key, query] = path.split('?');
8009
- const parameters = Object.fromEntries(new URLSearchParams(query).entries());
8010
- return { key, parameters };
8011
- }
8012
- function makeDataLocationPath(pointer) {
8013
- var _a;
8014
- const normalizedPointer = normalizePointer(pointer);
8015
- if (normalizedPointer === null || normalizedPointer === void 0 ? void 0 : normalizedPointer.key) {
8016
- let path = `/data/${normalizedPointer.key}`;
8017
- const parameters = omitBy((_a = normalizedPointer.parameters) !== null && _a !== void 0 ? _a : {}, isNil);
8018
- if (Object.keys(parameters).length > 0) {
8019
- path += `?${new URLSearchParams(parameters).toString()}`;
8020
- }
8021
- return path;
8022
- }
8023
- else {
8024
- return undefined;
8025
- }
8026
- }
8027
- function normalizePointer(pointer) {
8028
- if (typeof pointer === 'string' && pointer.startsWith('/data/')) {
8029
- return {
8030
- key: pointer.slice(6),
8031
- };
8032
- }
8033
- return pointer;
8034
- }
8035
- function makeDataLocationOperationPath(collectionPath, operation) {
8036
- const [path, query] = (collectionPath !== null && collectionPath !== void 0 ? collectionPath : '').split('?');
8037
- return urljoin(path, operation, query ? `?${query}` : '');
8038
- }
8039
- function isSameDataLocation(location1, location2) {
8040
- if (location1.key !== location2.key) {
8041
- return false;
8042
- }
8043
- const cleanParameters1 = location1.parameters && Object.keys(location1.parameters).length > 0 ? location1.parameters : undefined;
8044
- const cleanParameters2 = location2.parameters && Object.keys(location2.parameters).length > 0 ? location2.parameters : undefined;
8045
- if (!deepEqual(cleanParameters1, cleanParameters2)) {
8046
- return false;
8047
- }
8048
- return true;
8049
- }
8050
- function isDataLocationMethodSupported(location, methodKey) {
8051
- var _a;
8052
- const method = (_a = location === null || location === void 0 ? void 0 : location.methods) === null || _a === void 0 ? void 0 : _a[methodKey];
8053
- return method && method.implementationType !== ConnectorMethodImplementationType.notSupported;
8054
- }
8055
- function getDataCollectionCreateFields(spec) {
8056
- if (!spec)
8057
- return undefined;
8058
- if (!spec.fieldsSchema)
8059
- return undefined;
8060
- if (!spec.create)
8061
- return undefined;
8062
- let schema = excludeReadOnlyFieldsFromSchema(spec.fieldsSchema);
8063
- if (spec.create.fields) {
8064
- schema = pickFieldsFromSchema(schema, spec.create.fields);
8065
- }
8066
- if (spec.create.excludedFields) {
8067
- schema = excludeFieldsFromSchema(schema, spec.create.excludedFields);
8068
- }
8069
- return schema;
8070
- }
8071
- function getDataCollectionUpdateFields(spec) {
8072
- if (!spec)
8073
- return undefined;
8074
- if (!spec.fieldsSchema)
8075
- return undefined;
8076
- if (!spec.update)
8077
- return undefined;
8078
- let schema = excludeReadOnlyFieldsFromSchema(spec.fieldsSchema);
8079
- if (spec.update.fields) {
8080
- schema = pickFieldsFromSchema(schema, spec.update.fields);
8081
- }
8082
- if (spec.update.excludedFields) {
8083
- schema = excludeFieldsFromSchema(schema, spec.update.excludedFields);
8084
- }
8085
- return schema;
8086
- }
8087
- function getWritableFieldsSchema(spec) {
8088
- if (!spec)
8089
- return undefined;
8090
- if (!spec.fieldsSchema)
8091
- return undefined;
8092
- return mergeSchemas([getDataCollectionCreateFields(spec), getDataCollectionUpdateFields(spec)]);
8093
- }
8094
- function getReferenceCollectionPointerForSchema(schema) {
8095
- if ((schema === null || schema === void 0 ? void 0 : schema.referenceCollection) && schema.referenceCollection.key) {
8096
- return schema.referenceCollection;
8097
- }
8098
- else if (schema === null || schema === void 0 ? void 0 : schema.referenceCollectionPath) {
8099
- return parseDataLocationPath(schema.referenceCollectionPath);
8100
- }
8101
- else if (schema === null || schema === void 0 ? void 0 : schema.referenceCollectionUri) {
8102
- return parseDataLocationPath(schema.referenceCollectionUri);
8103
- }
8104
- else {
8105
- return undefined;
8106
- }
8107
- }
8108
- function getReferenceCollectionPathForSchema(schema) {
8109
- const pointer = getReferenceCollectionPointerForSchema(schema);
8110
- return makeDataLocationPath(pointer);
8111
- }
8112
-
8113
7796
  var UDM;
8114
7797
  (function (UDM) {
8115
7798
  UDM["ACTIVITIES"] = "activities";
@@ -8244,113 +7927,435 @@ function findUdmDefaultCollection(spec, udm, useFallback = true) {
8244
7927
  }
8245
7928
  if ((_h = (_g = (_f = (_e = spec.udm) === null || _e === void 0 ? void 0 : _e[udm]) === null || _f === void 0 ? void 0 : _f.collectionMappings) === null || _g === void 0 ? void 0 : _g[0]) === null || _h === void 0 ? void 0 : _h.key) {
8246
7929
  return {
8247
- key: spec.udm[udm].collectionMappings[0].key,
7930
+ key: spec.udm[udm].collectionMappings[0].key,
7931
+ };
7932
+ }
7933
+ const udmSpec = UNIFIED_DATA_MODELS[udm];
7934
+ if (!udmSpec) {
7935
+ throw new BadRequestError(`Unknown UDM: ${udm}`);
7936
+ }
7937
+ if (useFallback) {
7938
+ for (const fallback of (_j = udmSpec.udmFallbacks) !== null && _j !== void 0 ? _j : []) {
7939
+ const pointer = findUdmDefaultCollection(spec, fallback.udm, false);
7940
+ if (pointer) {
7941
+ return pointer;
7942
+ }
7943
+ }
7944
+ }
7945
+ return undefined;
7946
+ }
7947
+ function addUdmFallbackFields(fields, udm) {
7948
+ if (!udm) {
7949
+ return fields;
7950
+ }
7951
+ const udmSpec = UNIFIED_DATA_MODELS[udm];
7952
+ if (!udmSpec) {
7953
+ throw new BadRequestError(`Unknown UDM: ${udm}`);
7954
+ }
7955
+ if (!udmSpec.fieldFallbacks) {
7956
+ return fields;
7957
+ }
7958
+ let result = structuredClone$1(fields);
7959
+ for (const fieldKeyWithFallbacks of Object.keys(udmSpec.fieldFallbacks)) {
7960
+ const currentValue = getValueAtLocator(fields, fieldKeyWithFallbacks);
7961
+ if (currentValue !== undefined)
7962
+ continue;
7963
+ for (const fallbackValue of udmSpec.fieldFallbacks[fieldKeyWithFallbacks]) {
7964
+ const varFormulaLocators = getVariableLocators(fallbackValue);
7965
+ const varLocators = [];
7966
+ for (const varFormulaLocator of varFormulaLocators) {
7967
+ const formula = getFormula$1(getValueAtLocator(fallbackValue, varFormulaLocator));
7968
+ varLocators.push(formula.locator);
7969
+ }
7970
+ const fallbackValueHasDependencies = varLocators.some((locator) => getValueAtLocator(fields, locator) !== undefined);
7971
+ if (fallbackValueHasDependencies) {
7972
+ result = setValueAtLocator(result, fieldKeyWithFallbacks, transformVars(fallbackValue, fields));
7973
+ break;
7974
+ }
7975
+ }
7976
+ }
7977
+ return result;
7978
+ }
7979
+
7980
+ const DATA_RECORD_SCHEMA = {
7981
+ type: 'object',
7982
+ properties: {
7983
+ id: {
7984
+ type: 'string',
7985
+ },
7986
+ name: {
7987
+ type: 'string',
7988
+ },
7989
+ uri: {
7990
+ type: 'string',
7991
+ format: 'url',
7992
+ },
7993
+ createdTime: {
7994
+ type: 'string',
7995
+ format: 'datetime',
7996
+ },
7997
+ updatedTime: {
7998
+ type: 'string',
7999
+ format: 'datetime',
8000
+ },
8001
+ deletedTime: {
8002
+ type: 'string',
8003
+ format: 'datetime',
8004
+ },
8005
+ createdById: {
8006
+ type: 'string',
8007
+ },
8008
+ updatedById: {
8009
+ type: 'string',
8010
+ },
8011
+ },
8012
+ };
8013
+ function makeDataRecordSchema({ fieldsSchema, udm, rawFieldsSchema, }) {
8014
+ var _a, _b, _c;
8015
+ const schema = structuredClone$1(DATA_RECORD_SCHEMA);
8016
+ schema.properties = {
8017
+ ...((_a = schema.properties) !== null && _a !== void 0 ? _a : {}),
8018
+ fields: fieldsSchema !== null && fieldsSchema !== void 0 ? fieldsSchema : { type: 'object' },
8019
+ };
8020
+ if (udm) {
8021
+ const unifiedModel = UNIFIED_DATA_MODELS[udm];
8022
+ if (unifiedModel === null || unifiedModel === void 0 ? void 0 : unifiedModel.fieldsSchema) {
8023
+ schema.properties = {
8024
+ ...((_b = schema.properties) !== null && _b !== void 0 ? _b : {}),
8025
+ unifiedFields: unifiedModel.fieldsSchema,
8026
+ };
8027
+ }
8028
+ }
8029
+ if (rawFieldsSchema) {
8030
+ schema.properties = {
8031
+ ...((_c = schema.properties) !== null && _c !== void 0 ? _c : {}),
8032
+ rawFields: rawFieldsSchema,
8033
+ };
8034
+ }
8035
+ return schema;
8036
+ }
8037
+
8038
+ const DataLocationMethodImplementationTypes = [
8039
+ ConnectorMethodImplementationType.operationMapping,
8040
+ ConnectorMethodImplementationType.restApiMapping,
8041
+ ConnectorMethodImplementationType.graphqlApiMapping,
8042
+ ConnectorMethodImplementationType.javascript,
8043
+ ConnectorMethodImplementationType.notSupported,
8044
+ ];
8045
+
8046
+ const DataCollectionMethodCreate = {
8047
+ name: 'Create',
8048
+ description: 'Create a new data record in the collection',
8049
+ getConfigSchema: ({ collectionSpec }) => {
8050
+ var _a, _b;
8051
+ const fields = Object.keys((_b = (_a = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) === null || _a === void 0 ? void 0 : _a.properties) !== null && _b !== void 0 ? _b : {}).map(locatorToField);
8052
+ return {
8053
+ type: 'object',
8054
+ properties: {
8055
+ fields: {
8056
+ type: 'array',
8057
+ items: { type: 'string', enum: fields },
8058
+ },
8059
+ excludedFields: {
8060
+ type: 'array',
8061
+ items: { type: 'string', enum: fields },
8062
+ },
8063
+ },
8064
+ };
8065
+ },
8066
+ getInputSchema: ({ collectionSpec, method, credentialsSchema }) => {
8067
+ var _a;
8068
+ let fieldsSchema = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema;
8069
+ if (method === null || method === void 0 ? void 0 : method.fields) {
8070
+ fieldsSchema = pickFieldsFromSchema(fieldsSchema, method.fields);
8071
+ }
8072
+ if (method === null || method === void 0 ? void 0 : method.excludedFields) {
8073
+ fieldsSchema = excludeFieldsFromSchema(fieldsSchema, method.excludedFields);
8074
+ }
8075
+ return {
8076
+ type: 'object',
8077
+ properties: nonEmptyObjectProperties({
8078
+ fields: (_a = transformVariablesWith(fieldsSchema, (locator) => `fields.${locatorToField(locator)}`)) !== null && _a !== void 0 ? _a : {
8079
+ type: 'object',
8080
+ },
8081
+ credentials: credentialsSchema,
8082
+ }),
8083
+ };
8084
+ },
8085
+ getOutputSchema: ({}) => ({
8086
+ type: 'object',
8087
+ properties: {
8088
+ id: { type: 'string' },
8089
+ },
8090
+ }),
8091
+ supportedImplementationTypes: DataLocationMethodImplementationTypes,
8092
+ };
8093
+
8094
+ const DataCollectionMethodDelete = {
8095
+ name: 'Delete',
8096
+ description: 'Delete a data record from the collection by id',
8097
+ getInputSchema: ({ collectionHandler, parameters, credentialsSchema }) => {
8098
+ return {
8099
+ type: 'object',
8100
+ properties: nonEmptyObjectProperties({
8101
+ id: {
8102
+ type: 'string',
8103
+ referenceCollection: { key: collectionHandler === null || collectionHandler === void 0 ? void 0 : collectionHandler.key, parameters },
8104
+ },
8105
+ credentials: credentialsSchema,
8106
+ }),
8107
+ };
8108
+ },
8109
+ getOutputSchema: () => null,
8110
+ supportedImplementationTypes: DataLocationMethodImplementationTypes,
8111
+ };
8112
+
8113
+ const DataCollectionMethodFind = {
8114
+ isDeprecated: true,
8115
+ name: 'Find',
8116
+ description: 'Find a list of data records in the collection',
8117
+ getConfigSchema: ({ collectionSpec }) => {
8118
+ var _a, _b;
8119
+ const fields = Object.keys((_b = (_a = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) === null || _a === void 0 ? void 0 : _a.properties) !== null && _b !== void 0 ? _b : {}).map(locatorToField);
8120
+ return {
8121
+ type: 'object',
8122
+ properties: {
8123
+ queryFields: {
8124
+ type: 'array',
8125
+ items: { type: 'string', enum: fields },
8126
+ },
8127
+ },
8128
+ };
8129
+ },
8130
+ getInputSchema: ({ collectionSpec, method, credentialsSchema }) => {
8131
+ const queryFieldsSchema = pickFieldsFromSchema(collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema, method === null || method === void 0 ? void 0 : method.queryFields);
8132
+ const schema = {
8133
+ type: 'object',
8134
+ properties: nonEmptyObjectProperties({
8135
+ cursor: { type: 'string' },
8136
+ credentials: credentialsSchema,
8137
+ }),
8138
+ };
8139
+ if (queryFieldsSchema === null || queryFieldsSchema === void 0 ? void 0 : queryFieldsSchema.properties) {
8140
+ schema.properties = {
8141
+ ...schema.properties,
8142
+ query: transformVariablesWith(queryFieldsSchema, (locator) => `query.${locatorToField(locator)}`),
8143
+ };
8144
+ }
8145
+ return schema;
8146
+ },
8147
+ getOutputSchema: ({ collectionSpec }) => {
8148
+ var _a;
8149
+ return ({
8150
+ type: 'object',
8151
+ properties: {
8152
+ records: {
8153
+ type: 'array',
8154
+ items: (_a = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) !== null && _a !== void 0 ? _a : { type: 'object' },
8155
+ },
8156
+ cursor: {
8157
+ type: 'string',
8158
+ },
8159
+ },
8160
+ });
8161
+ },
8162
+ supportedImplementationTypes: DataLocationMethodImplementationTypes,
8163
+ };
8164
+
8165
+ const DataCollectionMethodFindById = {
8166
+ name: 'Find by ID',
8167
+ description: 'Find a single data record in the collection by its id',
8168
+ getInputSchema: ({ collectionHandler, parameters, credentialsSchema }) => ({
8169
+ type: 'object',
8170
+ properties: nonEmptyObjectProperties({
8171
+ id: {
8172
+ type: 'string',
8173
+ referenceCollection: { key: collectionHandler === null || collectionHandler === void 0 ? void 0 : collectionHandler.key, parameters },
8174
+ },
8175
+ credentials: credentialsSchema,
8176
+ }),
8177
+ }),
8178
+ getOutputSchema: ({ collectionSpec }) => {
8179
+ var _a;
8180
+ return ({
8181
+ type: 'object',
8182
+ properties: {
8183
+ record: (_a = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) !== null && _a !== void 0 ? _a : { type: 'object' },
8184
+ },
8185
+ });
8186
+ },
8187
+ supportedImplementationTypes: DataLocationMethodImplementationTypes,
8188
+ };
8189
+
8190
+ const DataCollectionMethodList = {
8191
+ name: 'List',
8192
+ description: 'Return all data records from the collection',
8193
+ getConfigSchema: ({ collectionSpec }) => {
8194
+ var _a, _b;
8195
+ const fields = Object.keys((_b = (_a = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) === null || _a === void 0 ? void 0 : _a.properties) !== null && _b !== void 0 ? _b : {}).map(locatorToField);
8196
+ return {
8197
+ type: 'object',
8198
+ properties: {
8199
+ filterFields: {
8200
+ type: 'array',
8201
+ items: { type: 'string', enum: fields },
8202
+ },
8203
+ },
8204
+ };
8205
+ },
8206
+ getInputSchema: ({ method, collectionSpec, credentialsSchema }) => {
8207
+ const fieldsSchema = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema;
8208
+ let filterSchema;
8209
+ if (method === null || method === void 0 ? void 0 : method.filterFields) {
8210
+ filterSchema = pickFieldsFromSchema(fieldsSchema, method.filterFields);
8211
+ }
8212
+ return {
8213
+ type: 'object',
8214
+ properties: nonEmptyObjectProperties({
8215
+ filter: filterSchema,
8216
+ cursor: {
8217
+ type: 'string',
8218
+ description: 'Cursor returned in response to the previous "list" request',
8219
+ },
8220
+ credentials: credentialsSchema,
8221
+ }),
8222
+ };
8223
+ },
8224
+ getOutputSchema: ({ collectionSpec }) => {
8225
+ var _a;
8226
+ return ({
8227
+ type: 'object',
8228
+ properties: {
8229
+ records: {
8230
+ type: 'array',
8231
+ items: (_a = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) !== null && _a !== void 0 ? _a : { type: 'object' },
8232
+ },
8233
+ cursor: {
8234
+ type: 'string',
8235
+ description: 'Cursor to request the next page of results',
8236
+ },
8237
+ },
8238
+ });
8239
+ },
8240
+ supportedImplementationTypes: DataLocationMethodImplementationTypes,
8241
+ };
8242
+
8243
+ const DataCollectionMethodMatch = {
8244
+ name: 'Match',
8245
+ description: 'Find a single matching record in a data collection by a set of fields',
8246
+ getConfigSchema: ({ collectionSpec }) => {
8247
+ var _a, _b;
8248
+ const fields = Object.keys((_b = (_a = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) === null || _a === void 0 ? void 0 : _a.properties) !== null && _b !== void 0 ? _b : {}).map(locatorToField);
8249
+ return {
8250
+ type: 'object',
8251
+ properties: {
8252
+ fields: {
8253
+ type: 'array',
8254
+ items: { type: 'string', enum: fields },
8255
+ },
8256
+ },
8248
8257
  };
8249
- }
8250
- const udmSpec = UNIFIED_DATA_MODELS[udm];
8251
- if (!udmSpec) {
8252
- throw new BadRequestError(`Unknown UDM: ${udm}`);
8253
- }
8254
- if (useFallback) {
8255
- for (const fallback of (_j = udmSpec.udmFallbacks) !== null && _j !== void 0 ? _j : []) {
8256
- const pointer = findUdmDefaultCollection(spec, fallback.udm, false);
8257
- if (pointer) {
8258
- return pointer;
8259
- }
8260
- }
8261
- }
8262
- return undefined;
8263
- }
8264
- function addUdmFallbackFields(fields, udm) {
8265
- if (!udm) {
8266
- return fields;
8267
- }
8268
- const udmSpec = UNIFIED_DATA_MODELS[udm];
8269
- if (!udmSpec) {
8270
- throw new BadRequestError(`Unknown UDM: ${udm}`);
8271
- }
8272
- if (!udmSpec.fieldFallbacks) {
8273
- return fields;
8274
- }
8275
- let result = structuredClone$1(fields);
8276
- for (const fieldKeyWithFallbacks of Object.keys(udmSpec.fieldFallbacks)) {
8277
- const currentValue = getValueAtLocator(fields, fieldKeyWithFallbacks);
8278
- if (currentValue !== undefined)
8279
- continue;
8280
- for (const fallbackValue of udmSpec.fieldFallbacks[fieldKeyWithFallbacks]) {
8281
- const varFormulaLocators = getVariableLocators(fallbackValue);
8282
- const varLocators = [];
8283
- for (const varFormulaLocator of varFormulaLocators) {
8284
- const formula = getFormula$1(getValueAtLocator(fallbackValue, varFormulaLocator));
8285
- varLocators.push(formula.locator);
8286
- }
8287
- const fallbackValueHasDependencies = varLocators.some((locator) => getValueAtLocator(fields, locator) !== undefined);
8288
- if (fallbackValueHasDependencies) {
8289
- result = setValueAtLocator(result, fieldKeyWithFallbacks, transformVars(fallbackValue, fields));
8290
- break;
8291
- }
8292
- }
8293
- }
8294
- return result;
8295
- }
8258
+ },
8259
+ getInputSchema: ({ collectionSpec, method, credentialsSchema }) => {
8260
+ const fieldsSchema = pickFieldsFromSchema(collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema, method === null || method === void 0 ? void 0 : method.fields);
8261
+ return {
8262
+ type: 'object',
8263
+ properties: nonEmptyObjectProperties({
8264
+ query: transformVariablesWith(fieldsSchema !== null && fieldsSchema !== void 0 ? fieldsSchema : {}, (locator) => `query.${locatorToField(locator)}`),
8265
+ credentials: credentialsSchema,
8266
+ }),
8267
+ };
8268
+ },
8269
+ getOutputSchema: ({ collectionSpec }) => {
8270
+ var _a;
8271
+ return ({
8272
+ type: 'object',
8273
+ properties: {
8274
+ record: (_a = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) !== null && _a !== void 0 ? _a : { type: 'object' },
8275
+ },
8276
+ });
8277
+ },
8278
+ supportedImplementationTypes: DataLocationMethodImplementationTypes,
8279
+ };
8296
8280
 
8297
- const DATA_RECORD_SCHEMA = {
8298
- type: 'object',
8299
- properties: {
8300
- id: {
8301
- type: 'string',
8302
- },
8303
- name: {
8304
- type: 'string',
8305
- },
8306
- uri: {
8307
- type: 'string',
8308
- format: 'url',
8309
- },
8310
- createdTime: {
8311
- type: 'string',
8312
- format: 'datetime',
8313
- },
8314
- updatedTime: {
8315
- type: 'string',
8316
- format: 'datetime',
8317
- },
8318
- deletedTime: {
8319
- type: 'string',
8320
- format: 'datetime',
8321
- },
8322
- createdById: {
8323
- type: 'string',
8324
- },
8325
- updatedById: {
8326
- type: 'string',
8327
- },
8281
+ const DataCollectionMethodSearch = {
8282
+ name: 'Search',
8283
+ description: 'Find data records in a collection by a string query',
8284
+ getInputSchema: ({ credentialsSchema }) => ({
8285
+ type: 'object',
8286
+ properties: nonEmptyObjectProperties({
8287
+ query: { type: 'string' },
8288
+ cursor: { type: 'string' },
8289
+ credentials: credentialsSchema,
8290
+ }),
8291
+ }),
8292
+ getOutputSchema: ({ collectionSpec }) => {
8293
+ var _a;
8294
+ return ({
8295
+ type: 'object',
8296
+ properties: {
8297
+ records: {
8298
+ type: 'array',
8299
+ items: (_a = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) !== null && _a !== void 0 ? _a : { type: 'object' },
8300
+ },
8301
+ cursor: { type: 'string' },
8302
+ },
8303
+ });
8328
8304
  },
8305
+ supportedImplementationTypes: DataLocationMethodImplementationTypes,
8329
8306
  };
8330
- function makeDataRecordSchema({ fieldsSchema, udm, rawFieldsSchema, }) {
8331
- var _a, _b, _c;
8332
- const schema = structuredClone$1(DATA_RECORD_SCHEMA);
8333
- schema.properties = {
8334
- ...((_a = schema.properties) !== null && _a !== void 0 ? _a : {}),
8335
- fields: fieldsSchema !== null && fieldsSchema !== void 0 ? fieldsSchema : { type: 'object' },
8336
- };
8337
- if (udm) {
8338
- const unifiedModel = UNIFIED_DATA_MODELS[udm];
8339
- if (unifiedModel === null || unifiedModel === void 0 ? void 0 : unifiedModel.fieldsSchema) {
8340
- schema.properties = {
8341
- ...((_b = schema.properties) !== null && _b !== void 0 ? _b : {}),
8342
- unifiedFields: unifiedModel.fieldsSchema,
8343
- };
8307
+
8308
+ const DataCollectionMethodUpdate = {
8309
+ name: 'Update',
8310
+ description: 'Update one data record in the collection by its id',
8311
+ getConfigSchema: ({ collectionSpec }) => {
8312
+ var _a, _b;
8313
+ const fields = Object.keys((_b = (_a = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) === null || _a === void 0 ? void 0 : _a.properties) !== null && _b !== void 0 ? _b : {}).map(locatorToField);
8314
+ return {
8315
+ type: 'object',
8316
+ properties: {
8317
+ fields: {
8318
+ type: 'array',
8319
+ items: { type: 'string', enum: fields },
8320
+ },
8321
+ excludedFields: {
8322
+ type: 'array',
8323
+ items: { type: 'string', enum: fields },
8324
+ },
8325
+ },
8326
+ };
8327
+ },
8328
+ getInputSchema: ({ collectionSpec, collectionHandler, credentialsSchema, method, parameters }) => {
8329
+ var _a;
8330
+ let fieldsSchema = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema;
8331
+ if (method === null || method === void 0 ? void 0 : method.fields) {
8332
+ fieldsSchema = pickFieldsFromSchema(fieldsSchema, method.fields);
8344
8333
  }
8345
- }
8346
- if (rawFieldsSchema) {
8347
- schema.properties = {
8348
- ...((_c = schema.properties) !== null && _c !== void 0 ? _c : {}),
8349
- rawFields: rawFieldsSchema,
8334
+ if (method === null || method === void 0 ? void 0 : method.excludedFields) {
8335
+ fieldsSchema = excludeFieldsFromSchema(fieldsSchema, method.excludedFields);
8336
+ }
8337
+ return {
8338
+ type: 'object',
8339
+ properties: nonEmptyObjectProperties({
8340
+ id: {
8341
+ type: 'string',
8342
+ referenceCollection: { key: collectionHandler === null || collectionHandler === void 0 ? void 0 : collectionHandler.key, parameters },
8343
+ },
8344
+ fields: (_a = transformVariablesWith(fieldsSchema, (locator) => `fields.${locatorToField(locator)}`)) !== null && _a !== void 0 ? _a : {
8345
+ type: 'object',
8346
+ },
8347
+ credentials: credentialsSchema,
8348
+ }),
8350
8349
  };
8351
- }
8352
- return schema;
8353
- }
8350
+ },
8351
+ getOutputSchema: ({}) => ({
8352
+ type: 'object',
8353
+ properties: {
8354
+ id: { type: 'string' },
8355
+ },
8356
+ }),
8357
+ supportedImplementationTypes: DataLocationMethodImplementationTypes,
8358
+ };
8354
8359
 
8355
8360
  const GetEventConfig = {
8356
8361
  fileKey: 'connector-event-get-event-config',
@@ -10311,6 +10316,10 @@ const FindConnectionsQuery = PaginationQuery.merge(SearchQuery)
10311
10316
  .string()
10312
10317
  .optional()
10313
10318
  .meta({ hidden: true }),
10319
+ externalAppId: z.string().optional().meta({
10320
+ filterTitle: 'External App',
10321
+ referenceElementType: WorkspaceElementType.App,
10322
+ }),
10314
10323
  integrationKey: z
10315
10324
  .string()
10316
10325
  .optional()
@@ -10321,9 +10330,12 @@ const FindConnectionsQuery = PaginationQuery.merge(SearchQuery)
10321
10330
  });
10322
10331
  const CreateConnectionRequest = ConnectionEditableProperties.extend({
10323
10332
  integrationId: z.string().optional(),
10333
+ integrationUuid: z.string().optional(),
10334
+ integrationKey: z.string().optional(),
10324
10335
  connectorId: z.string().optional(),
10336
+ connectorUuid: z.string().optional(),
10337
+ connectorKey: z.string().optional(),
10325
10338
  connectorVersion: z.string().optional(),
10326
- externalAppId: z.string().optional(),
10327
10339
  });
10328
10340
  const UpdateConnectionRequest = ConnectionEditableProperties;
10329
10341
  const ConnectionExportProperties = ConnectionEditableProperties.omit({
@@ -10386,6 +10398,7 @@ const GenerateOptionsRequest = z.object({
10386
10398
  integrationId: z.string().optional(),
10387
10399
  integrationKey: z.string().optional(),
10388
10400
  connectorId: z.string().optional(),
10401
+ connectorKey: z.string().optional(),
10389
10402
  connectionId: z.string().optional(),
10390
10403
  connectorParameters: z.any().optional(),
10391
10404
  connectorVersion: z.string().optional(),
@@ -10395,6 +10408,7 @@ const ConnectPayload = z.object({
10395
10408
  integrationKey: z.string().optional(),
10396
10409
  integrationId: z.string().optional(),
10397
10410
  connectorId: z.string().optional(),
10411
+ connectorKey: z.string().optional(),
10398
10412
  connectorVersion: z.string().optional(),
10399
10413
  connectionId: z.string().optional(),
10400
10414
  name: z.string().optional(),
@@ -11684,6 +11698,7 @@ const WorkspaceElementSpecs = {
11684
11698
  name: 'App',
11685
11699
  namePlural: 'Apps',
11686
11700
  hasKey: true,
11701
+ hasPublicLayer: true,
11687
11702
  },
11688
11703
  [WorkspaceElementType.Integration]: {
11689
11704
  type: WorkspaceElementType.Integration,
@@ -11701,6 +11716,7 @@ const WorkspaceElementSpecs = {
11701
11716
  namePlural: 'Connectors',
11702
11717
  exportPropertiesSchema: ConnectorExportProperties,
11703
11718
  hasKey: true,
11719
+ hasPublicLayer: true,
11704
11720
  },
11705
11721
  [WorkspaceElementType.Connection]: {
11706
11722
  type: WorkspaceElementType.Connection,
@@ -11724,6 +11740,7 @@ const WorkspaceElementSpecs = {
11724
11740
  isIntegrationLevel: true,
11725
11741
  hasKey: true,
11726
11742
  hasParentChildRelationship: true,
11743
+ hasPublicLayer: true,
11727
11744
  isProOnly: true,
11728
11745
  },
11729
11746
  [WorkspaceElementType.ActionInstance]: {
@@ -11750,6 +11767,7 @@ const WorkspaceElementSpecs = {
11750
11767
  canBeAddedToPackage: true,
11751
11768
  hasParentChildRelationship: true,
11752
11769
  hasKey: true,
11770
+ hasPublicLayer: true,
11753
11771
  },
11754
11772
  [WorkspaceElementType.ActionRunLogRecord]: {
11755
11773
  type: WorkspaceElementType.ActionRunLogRecord,
@@ -15452,25 +15470,6 @@ const CreateClusterRequest = z.object({
15452
15470
  });
15453
15471
  const ListClustersQuery = PaginationQuery;
15454
15472
 
15455
- class UI {
15456
- constructor(client) {
15457
- this.client = client;
15458
- }
15459
- async connect(options = {}) {
15460
- const { url, postData } = await this.client.getScreensPostData('connect', {
15461
- ...options,
15462
- allowMultipleConnections: options.allowMultipleConnections ? '1' : '',
15463
- connectorParameters: options.connectorParameters ? JSON.stringify(options.connectorParameters) : undefined,
15464
- });
15465
- return new Promise((resolve) => {
15466
- return openIframeWithPost(url, postData, {
15467
- onClose: () => resolve(null),
15468
- onSuccess: (connection) => resolve(connection),
15469
- });
15470
- });
15471
- }
15472
- }
15473
-
15474
15473
  const API_VERSIONS = {
15475
15474
  LEGACY: 'legacy',
15476
15475
  '2025-10-21': '2025-10-21',
@@ -15722,6 +15721,25 @@ class MembraneApiClient {
15722
15721
  }
15723
15722
  }
15724
15723
 
15724
+ class UI {
15725
+ constructor(client) {
15726
+ this.client = client;
15727
+ }
15728
+ async connect(options = {}) {
15729
+ const { url, postData } = await this.client.getScreensPostData('connect', {
15730
+ ...options,
15731
+ allowMultipleConnections: options.allowMultipleConnections ? '1' : '',
15732
+ connectorParameters: options.connectorParameters ? JSON.stringify(options.connectorParameters) : undefined,
15733
+ });
15734
+ return new Promise((resolve) => {
15735
+ return openIframeWithPost(url, postData, {
15736
+ onClose: () => resolve(null),
15737
+ onSuccess: (connection) => resolve(connection),
15738
+ });
15739
+ });
15740
+ }
15741
+ }
15742
+
15725
15743
  class MembraneClient extends MembraneApiClient {
15726
15744
  constructor(options) {
15727
15745
  super(options);
@@ -15886,5 +15904,5 @@ class MembraneClient extends MembraneApiClient {
15886
15904
 
15887
15905
  injectFormulaCatalog(getFormula, isFormula, hasFormulas);
15888
15906
 
15889
- export { ACTIONS, ALERT_DELIVERY_METHODS, ALERT_TYPE_CATEGORIES, AccessDeniedError, AccountResponse, ActionAccessor, ActionApiResponse, ActionDependency, ActionDependencyType, ActionEditableProperties, ActionExportProperties, ActionInstanceAccessor, ActionInstanceApiResponse, ActionInstanceSetupError, ActionInstancesAccessor, ActionRunError, ActionRunLogRecordApiResponse, ActionRunLogStatus, ActionRunResponse, ActionRunsStatsQuery, ActionType, ActionsAccessor, ActivityLogRecord, ActivityStatsQuery, AgentName, AgentSession, AgentSessionInputSchema, AgentSessionState, AgentSessionStatus, AiAgentAudience, AiAgentParameters, AiAgentType, Alert, AlertCategory, AlertDeliverySettingsSchema, AlertSchema, AlertSeverity, AlertStatus, AlertType, AlertTypeDeliverySettingsSchema, ApiRequestSpec, AppDataSchemaAccessor, AppDataSchemaApiResponse, AppDataSchemaEditableProperties, AppDataSchemaExportProperties, AppDataSchemaInstanceAccessor, AppDataSchemaInstanceApiResponse, AppDataSchemaInstancesAccessor, AppDataSchemasAccessor, AppEventLogRecordApiResponse, AppEventSubscriptionAccessor, AppEventSubscriptionApiResponse, AppEventSubscriptionsAccessor, AppEventTypeAccessor, AppEventTypeApiResponse, AppEventTypeEditableProperties, AppEventTypeExportProperties, AppEventTypesAccessor, AppSchema, AppliedToIntegrations, AsyncRequestStatus, AsyncRequestTriggerResponse, AuthContextPermissionsSchema, BackwardCompatibleDataSourceEditableProperties, BadRequestError, BadRequestErrorKey, BaseAction, BaseActionInstance, BaseActionRunLogRecord, BaseAppDataSchema, BaseAppDataSchemaInstance, BaseAppEventSubscription, BaseAppEventType, BaseConnectedProduct, BaseConnection, BaseConnector, BaseCustomer, BaseDataLinkTable, BaseDataLinkTableInstance, BaseDataSource, BaseDataSourceInstance, BaseExternalEvent, BaseExternalEventLogRecord, BaseExternalEventPull, BaseExternalEventSubscription, BaseFieldMapping, BaseFieldMappingInstance, BaseFlow, BaseFlowInstance, BaseFlowRun, BaseFunctionDefinition, BaseIntegration, BaseIntegrationLevelMembraneInterface, BaseIntegrationLevelMembraneInterfaceEditableProperties, BaseIntegrationLevelMembraneInterfaceExportProperties, BaseIntegrationLevelMembraneInterfaceReadOnlyProperties, BaseMembraneInterface, BaseMembraneInterfaceEditableProperties, BaseMembraneInterfaceReadOnlyProperties, BaseOrgUser, BasePackage, BaseScreen, BaseWorkspaceElement, CLIENT_TOKEN_GRANT_TYPES, CONNECTION_REQUEST_ID_PARAM, CONNECTION_REQUEST_SCREEN_PATH, CONNECTOR_AUTH_TYPES, CONNECTOR_CATEGORIES, CONNECTOR_DATA_DIR, CONNECTOR_DOCS_DIR, CONNECTOR_EVENTS_DIR, CONNECTOR_GLOBAL_WEBHOOKS_DIR, CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES, CONNECTOR_OPERATIONS_DIR, CONNECTOR_VERSION_DEVELOPMENT, CONNECTOR_VERSION_LATEST, CONSOLE_ACCOUNT_API_TOKEN_PATH, CheckpointApiResponse, CheckpointDiffOperationSchema, CheckpointDiffResponseSchema, ClientToken, ClientTokenGrantType, ClientTokenListResponse, Cluster, CommonFindElementsQuery, CommonFindInstancesQuery, CommonInstancesListQuery, CommonIntegrationOrConnectionQuery, CommonListElementsQuery, ConcurrencyError, ConcurrencyErrorKey, ConfigurationError, ConfigurationState, ConnectPayload, ConnectUIOptions, ConnectedProductApiResponse, ConnectedProductAudience, ConnectedProductType, ConnectionAccessor, ConnectionApiResponse, ConnectionApiResponseWithSecrets, ConnectionDataCollectionAccessor, ConnectionEditableProperties, ConnectionError, ConnectionErrorKey, ConnectionExportProperties, ConnectionLevelActionAccessor, ConnectionLevelActionsAccessor, ConnectionLevelDataSourceAccessor, ConnectionLevelDataSourcesAccessor, ConnectionLevelFieldMappingAccessor, ConnectionLevelFieldMappingsAccessor, ConnectionLevelFlowAccessor, ConnectionLevelFlowsAccessor, ConnectionMessagePayload, ConnectionOperationAccessor, ConnectionOperationRunInput, ConnectionOperationRunResponse, ConnectionProxy, ConnectionProxyRequest, ConnectionRequest, ConnectionSelector, ConnectionSpec, ConnectionTestResponse, ConnectionsAccessor, Connector, ConnectorAuth, ConnectorAuthClientCredentials, ConnectorAuthHandlerBase, ConnectorAuthIntegrationAppToken, ConnectorAuthMembraneToken, ConnectorAuthMethodTypes, ConnectorAuthOAuth1, ConnectorAuthOAuth2, ConnectorAuthProxy, ConnectorAuthSpec, ConnectorAuthSuccessRecord, ConnectorAuthWithFunctions, ConnectorDataCollectionEventImplementationType, ConnectorDataCollectionMethodKeys, ConnectorDataLocationTypes, ConnectorEventHandlerMethods, ConnectorEventImplementationType, ConnectorExportProperties, ConnectorFileUpdateType, ConnectorFunctionSpecs, ConnectorMethodImplementation, ConnectorMethodImplementationBase, ConnectorMethodImplementationGraphqlApiMapping, ConnectorMethodImplementationJavascript, ConnectorMethodImplementationMapping, ConnectorMethodImplementationNotSupported, ConnectorMethodImplementationOperationMapping, ConnectorMethodImplementationRestApiMapping, ConnectorMethodImplementationType, ConnectorOperationMethodImplementationTypes, ConnectorOption, ConnectorOptions, ConnectorSpec, ConnectorStatus, ConnectorStatusValues, ConnectorUdmCollectionMapping, ConnectorUdmListItem, ConnectorUdmSpec, ConnectorUiSpec, ConnectorVersion, ConnectorVersionData, CreateActionInstanceRequest, CreateActionRequest, CreateAgentSession, CreateAlert, CreateClientTokenRequest, CreateClientTokenResponse, CreateClusterRequest, CreateConnectedProductRequest, CreateConnectionRequest, CreateConnectionRequestPayload, CreateConnectorRequest, CreateCustomerRequest, CreateDataLinkTableRequest, CreateDataSourceInstanceRequest, CreateDataSourceRequest, CreateFieldMappingInstanceRequest, CreateFieldMappingRequest, CreateFlowNodeRequest, CreateFlowRequest, CreateFlowRunRequest, CreateIntegrationRequest, CreateOrgInvitationRequest, CreateOrgRequest, CreateOrgUserRequest, CreatePackageRequest, CreateScreenRequest, CreateSelfHostingTokenRequest, CreateSelfHostingTokenResponse, CustomCodeError, CustomerAccessor, CustomerApiResponse, CustomerLimits, CustomerSelector, CustomersAccessor, DATA_RECORD_SCHEMA, DEFAULT_ALERT_DELIVERY_SETTINGS, DEFAULT_ALERT_TYPE_DELIVERY_SETTINGS, DEFAULT_FULL_SYNC_INTERVAL_SECONDS, DEFAULT_PULL_UPDATES_INTERVAL_SECONDS, DataBuilderFormulaType, DataCollectionCreateRequest, DataCollectionCreateResponse, DataCollectionCreateSpec, DataCollectionDeleteRequest, DataCollectionDeleteResponse, DataCollectionDeleteSpec, DataCollectionEventType, DataCollectionEventTypeSpec, DataCollectionEventsSpec, DataCollectionFindByIdRequest, DataCollectionFindByIdResponse, DataCollectionFindByIdSpec, DataCollectionFindRequest, DataCollectionFindResponse, DataCollectionFindSpec, DataCollectionListRequest, DataCollectionListResponse, DataCollectionListResponseDrilldown, DataCollectionListSpec, DataCollectionMatchRequest, DataCollectionMatchResponse, DataCollectionMatchSpec, DataCollectionMethodRequest, DataCollectionMethodSpec, DataCollectionSearchRequest, DataCollectionSearchResponse, DataCollectionSearchSpec, DataCollectionSpec, DataCollectionUdmSpec, DataCollectionUdmsSpec, DataCollectionUpdateRequest, DataCollectionUpdateResponse, DataCollectionUpdateSpec, DataFilterCondition, DataForm, DataLink, DataLinkDirection, DataLinkTableAccessor, DataLinkTableApiResponse, DataLinkTableConfig, DataLinkTableEditableProperties, DataLinkTableExportProperties, DataLinkTableInstanceAccessor, DataLinkTableInstanceApiResponse, DataLinkTableInstancesAccessor, DataLinkTableLayer, DataLinkTablesAccessor, DataLocationMethodImplementationTypes, DataLocationPointer, DataLocationTypeCollection, DataLocatorStep, DataLocatorStepArrayItem, DataLocatorStepObjectProperty, DataLocatorStepType, DataRecordSchema, DataSchema, DataSourceAccessor, DataSourceApiResponse, DataSourceEditableProperties, DataSourceExportProperties, DataSourceInstanceAccessor, DataSourceInstanceApiResponse, DataSourceInstancesAccessor, DataSourceUnitConfig, DataSourcesAccessor, DbBackedCountsSchema, DependencyError, DownstreamFlowNodeRunSchema, EDITABLE_LIMITS, ElementAccessor, ElementInstanceAccessor, ElementInstanceListAccessor, ElementListAccessor, ElementsExportFields, EngineCreditsProjectionResponse, EngineWorkspaceSettingsSchema, ErrorData, ErrorDataSchema, ErrorType, ExternalApiLogApiResponse, ExternalEvent, ExternalEventLogRecordApiResponse, ExternalEventLogStatus, ExternalEventPullApiResponse, ExternalEventPullStatus, ExternalEventSubscriptionAccessor, ExternalEventSubscriptionApiResponse, ExternalEventSubscriptionConfig, ExternalEventSubscriptionStatus, ExternalEventSubscriptionType, ExternalEventSubscriptionsAccessor, ExternalEventType, ExternalEventUnitConfig, FLOW_NODE_SPECS, FieldMappingAccessor, FieldMappingApiResponse, FieldMappingDirection, FieldMappingEditableProperties, FieldMappingExportProperties, FieldMappingInstanceAccessor, FieldMappingInstanceApiResponse, FieldMappingInstancesAccessor, FieldMappingUnitConfig, FieldMappingsAccessor, FindActionInstancesQuery, FindActionRunLogsQuery, FindActionRunLogsResponse, FindActionsQuery, FindAlertsQuery, FindAppDataSchemaInstancesQuery, FindAppDataSchemasQuery, FindAppEventSubscriptionsQuery, FindAppEventTypesQuery, FindAppEventsQuery, FindConnectedProductsQuery, FindConnectionsQuery, FindConnectionsResponse, FindCustomersQuery, FindDataLinkTableInstanceLinksQuery, FindDataLinkTableInstancesQuery, FindDataLinkTablesQuery, FindDataLinksInTableQuery, FindDataLinksQuery, FindDataLinksResponse, FindDataSourceEventsQuery, FindDataSourceInstanceSyncsQuery, FindDataSourceInstancesQuery, FindDataSourceSyncsQuery, FindDataSourcesQuery, FindExternalEventPullsQuery, FindFieldMappingInstancesQuery, FindFieldMappingsQuery, FindFlowInstancesQuery, FindFlowRunsQuery, FindFlowRunsResponse, FindFlowsQuery, FindIntegrationLevelMembraneInterfaceQuery, FindIntegrationsQuery, FindOrgWorkspacesQuery, FindOrgsQuery, FindPackagesQuery, FindScreensQuery, FlowAccessor, FlowApiResponse, FlowEditableProperties, FlowExportProperties, FlowInstanceAccessor, FlowInstanceApiResponse, FlowInstanceSetupError, FlowInstancesAccessor, FlowNode, FlowNodeLink, FlowNodeRunOutputMetadataSchema, FlowNodeRunOutputSchema, FlowNodeRunOutputWithoutDownstreamRunsSchema, FlowNodeRunParametersSchema, FlowNodeRunRecordSchema, FlowNodeRunRecordWithoutOutputsDataSchema, FlowNodeRunResultSchema, FlowNodeRunStatus, FlowNodeSpec, FlowNodeState, FlowNodeType, FlowRunAccessor, FlowRunApiResponse, FlowRunError, FlowRunLaunchedBy, FlowRunLaunchedByApi, FlowRunLaunchedByTrigger, FlowRunNode, FlowRunNodeState, FlowRunState, FlowRunsAccessor, FlowRunsStatsQuery, FlowsAccessor, Formula, FullOrgUser, FullPlatformUser, FunctionDefinition, FunctionType, GenerateOptionsRequest, GeneratedConnectorOption, GenericFunctionDefinition, GraphQLApiMappingSchema, GraphQLFieldMappingSchema, GraphqlApiMappingFunction, HTTP_REQUEST_SCHEMA, HandyScenarioTemplateElement, HttpRequestMethod, HttpRequestSpec, IncludeArchivedQuery, IncomingWebhookApiResponse, IncomingWebhooksState, InsufficientCreditsError, IntegrationAccessor, IntegrationApiResponse, MembraneClient as IntegrationAppClient, IntegrationAppError, IntegrationAuthOption, IntegrationAuthUi, IntegrationEditableProperties, IntegrationElementLevel, IntegrationElementType, IntegrationExportProperties, IntegrationLayerStatsQuery, IntegrationLevelActionAccessor, IntegrationLevelActionsListAccessor, IntegrationLevelDataSourceAccessor, IntegrationLevelDataSourcesListAccessor, IntegrationLevelFieldMappingAccessor, IntegrationLevelFieldMappingsListAccessor, IntegrationLevelFlowAccessor, IntegrationLevelFlowsListAccessor, IntegrationLevelMembraneInterfaceSelectorQuery, IntegrationOptionConfig, IntegrationOptions, IntegrationSpecificElementSelector, IntegrationsAccessor, InternalError, InvalidLocatorError, JavascriptFunction, LimitUnits, ListActionInstancesForConnectionQuery, ListAppEventLogRecordsQuery, ListClustersQuery, ListDataSourceInstancesForConnectionQuery, ListExternalApiLogsQuery, ListExternalAppsQuery, ListExternalEventLogRecordsQuery, ListExternalEventPullsQuery, ListExternalEventSubscriptionsQuery, ListFlowInstancesForConnectionQuery, ListIncomingWebhooksQuery, ListPublicConnectorsQuery, ListPublicPackagesQuery, LogRecordType, MEMBRANE_CLI_CLIENT_ID, MEMBRANE_ELEMENT_CONFIG_FILE_NAME, MIN_FULL_SYNC_INTERVAL_SECONDS, MIN_PULL_UPDATES_INTERVAL_SECONDS, MappingFunction, MappingSchema, MembraneAgentKey, axios as MembraneAxiosInstance, MembraneClient, MembraneElementLayer, MembraneError, MinimalConnector, NotAuthenticatedError, NotFoundError, OAUTH1_CONFIG_SCHEMA, OAUTH_CONFIG_SCHEMA, OAUTH_SCOPES, OAUTH_SCOPE_PLATFORM_USER, OAUTH_SCOPE_TENANT, OAuthTokenResponse, OpenRouterNotConfiguredError, OpenapiMappingSchema, OperationMappingFunction, OperationMappingSchema, Org, OrgInvitation, OrgLimits, OrgLimitsType, OrgPlan, OrgUserRole, OrgUserStatus, OrgWorkspace, OrgWorkspaceUser, PACKAGE_VERSION_DEVELOPMENT, PACKAGE_VERSION_LATEST, PARALLEL_EXECUTION_LIMITS, PackageAccessor, PackageApiResponse, PackageCalculatedProperties, PackageEditableProperties, PackageElement, PackageElementApi, PackageElementExport, PackageExportProperties, PackageVersionData, PackageVersionListItem, PackagesAccessor, PaginationQuery, PaginationResponse, ParallelExecutionLimits, PatchAgentSessionSchema, PendingQueueCountSchema, PendingTasksSummarySchema, PlatformUser, RATE_LIMITS, REFERENCE_ELEMENT_TYPE_SELF, RateLimitExceededError, RateLimits, RequestMappingSchema, ResetFlowInstanceOptions, RestApiMappingFunction, RestApiMappingSchema, RunActionRequest, RunFieldMappingRequest, RunFieldMappingResponse, RunFlowApiRequest, SYSTEM_FIELDS, ScenarioAccessor, ScenarioTemplate, ScenarioTemplateCategory, ScenarioTemplateElements, ScenariosAccessor, ScreenAccessor, ScreenApiResponse, ScreenBlock, ScreenBlockType, ScreenSelector, ScreenType, ScreensAccessor, SearchQuery, SelfAccessor, SelfHostingToken, SessionCredentials, SessionParameters, StatsFilterQuery, TenantLayerElement, TenantSelfResponse, UDM, UNIFIED_DATA_MODELS, UnitRunError, UpdateActionInstanceRequest, UpdateActionRequest, UpdateConnectedProductRequest, UpdateConnectionRequest, UpdateConnectorRequest, UpdateCustomerRequest, UpdateDataLinkTableRequest, UpdateDataSourceInstanceRequest, UpdateDataSourceRequest, UpdateFieldMappingInstanceRequest, UpdateFieldMappingRequest, UpdateFlowRequest, UpdateIntegrationRequest, UpdateOrgInvitationRequest, UpdateOrgRequest, UpdateOrgUserRequest, UpdatePackageRequest, UpdateScreenRequest, UpdateSelfHostingTokenRequest, UpstreamFlowNodeRunSchema, UsageType, UserAccessor, UsersAccessor, ValidateSelfHostingTokenRequest, ValidateSelfHostingTokenResponse, WORKSPACE_ELEMENTS_STATS_COLLECTIONS, WORKSPACE_SIZE_LIMITS, WebhookTypeEnum, Workspace, WorkspaceElementChangeType, WorkspaceElementDependencyType, WorkspaceElementSearchQuery, WorkspaceElementSearchResult, WorkspaceElementSpecs, WorkspaceElementState, WorkspaceElementType, WorkspaceElementsStatsSchema, WorkspaceEventType, WorkspaceLimitsSchema, WorkspaceNotificationType, WorkspacePublicKey, WorkspaceSettingsSchema, WorkspaceSizeLimits, WorkspaceSyncEventType, WorkspaceType, WritableConnectorVersionData, WritablePackageVersionData, WriteableConnectorFields, WriteableConnectorOption, __resolveValue, addRequiredFieldsToSchema, addUdmFallbackFields, addUndefinedWriteableProperties, backwardCompatibleFilterMatch, buildData, buildDataSchema, buildValue, compareWorkspaceExports, compressDataSchema, createCompoundSchema, createFlowInstanceSchema, createObjectFromLocators, createOrUpdateConnection, createPaginationResponseSchema, createSchema, dataCollectionEventTypeToExternalEventType, dataLocationParametersMatch, doesMatchFilter, excludeFieldsFromSchema, excludeFieldsFromValue, excludeReadOnlyFieldsFromSchema, excludeWriteOnlyFieldsFromSchema, externalEventTypeToDataCollectionEventType, extractFieldLocator, extractMembraneErrorData, findUdmCollectionMapping, findUdmDefaultCollection, findUdmRootLocation, findValueLocators, generateExampleFromSchema, getActionInstanceVariableSchema, getActionRunTimeVariablesSchema, getAlertCategoryDisplayName, getAlertDeliveryMethodLabel, getAlertTypeDisplayName, getAlertTypesByCategory, getAllEventMethodFilePaths, getBusinessDaysBetween, getChildNodeKeys, getConnectionRequestUrl, getConnectorSpecPath, getConnectorVersionPath, getDataCollectionCreateFields, getDataCollectionUpdateFields, getDataLocationMethodPath, getDownstreamNodeKeys, getEditablePathsForElementType, getEditablePathsFromSchema, getEffectiveConnectorOption, getElementSelector, getErrorFromData, getEventMethodFileKey, getFilterFieldMeta, getFilterFieldValuesByLocator, getFlowInstanceNodeDependency, getFlowNode, getFlowNodeConfigTimeVariablesSchema, getFlowNodeDescription, getFlowNodeRunTimeVariablesSchema, getFlowNodeSpec, getFlowNodeTitle, getFormula$1 as getFormula, getFormulaLocators, getFormula as getFormula_internalDoNotUse, getFullNameForLocator, getFullTitleForLocator, getIconUriForLocator, getLocatorsFromData, getLocatorsFromSchema, getMembraneElementPath, getMissingRequiredFields, getNameComponentsForLocator, getNameForLocator, getNodeInputSchema, getOperatorsBySchema, getParentNodeKeys, getReferenceCollectionPathForSchema, getReferenceCollectionPointerForSchema, getRequiredFieldsFromSchema, getRootNodeKeys, getSchemaByLocator, getSchemaDescription, getSchemaFromValue, getUpstreamNodeKeys, getValueAtLocator, getValueByLocator, getVariableLocators, getWritableFieldsSchema, hasCycles, hasFormulas$1 as hasFormulas, hasFormulas as hasFormulas_internalDoNotUse, injectFormulaCatalog, isBlob, isBusinessDay, isDataActionType, isDataLocationMethodSupported, isDeliveryMethodEnabled, isFormula$1 as isFormula, isFormula as isFormula_internalDoNotUse, isMembraneError, isObject, isPathUserEditable, isSameDataLocation, isSchemaEmpty, isStream, isValidAlertType, isValidLocator, jsonPointerToDotPath, lenientParseWithSchema, locatorToField, locatorToSteps, locatorToString, makeDataLocationOperationPath, makeDataLocationPath, makeDataRecordSchema, makeObjectPropertyLocator, makeSchemaForLocator, mergeSchemas, mergeWithFormulas, nonEmptyObjectProperties, parseDataLocationPath, parseDate, parseMembraneElementPath, patchSchema, pickFieldsFromSchema, pickFieldsFromValue, populateSchemaTitles, processCopy, removeNonExistentVars, removeRequiredFieldsFromSchema, resolveFormulas, schemaAllowsCustomValue, schemaHasFixedValues, schemaHasProperties, schemaIsNumber, schemaIsScalar, schemaTypeFromValue, schemaWithTitle, setEditablePropertiesForWorkspaceElement, setSchemaAtLocator, setValueAtLocator, stepsToLocator, streamToString, transformVariablesWith, transformVars, truncateData, unwrapSchema, unwrapSchemas, updateFlowInstanceSchema, updateImpliedSchema, valueToSchema, valueToString, walkSchema, wrapAnyOfSchema, zodBooleanCoercion };
15907
+ export { ACTIONS, ALERT_DELIVERY_METHODS, ALERT_TYPE_CATEGORIES, AccessDeniedError, AccountResponse, ActionAccessor, ActionApiResponse, ActionDependency, ActionDependencyType, ActionEditableProperties, ActionExportProperties, ActionInstanceAccessor, ActionInstanceApiResponse, ActionInstanceSetupError, ActionInstancesAccessor, ActionRunError, ActionRunLogRecordApiResponse, ActionRunLogStatus, ActionRunResponse, ActionRunsStatsQuery, ActionType, ActionsAccessor, ActivityLogRecord, ActivityStatsQuery, AgentName, AgentSession, AgentSessionInputSchema, AgentSessionState, AgentSessionStatus, AiAgentAudience, AiAgentParameters, AiAgentType, Alert, AlertCategory, AlertDeliverySettingsSchema, AlertSchema, AlertSeverity, AlertStatus, AlertType, AlertTypeDeliverySettingsSchema, And, ApiRequestSpec, AppDataSchemaAccessor, AppDataSchemaApiResponse, AppDataSchemaEditableProperties, AppDataSchemaExportProperties, AppDataSchemaInstanceAccessor, AppDataSchemaInstanceApiResponse, AppDataSchemaInstancesAccessor, AppDataSchemasAccessor, AppEventLogRecordApiResponse, AppEventSubscriptionAccessor, AppEventSubscriptionApiResponse, AppEventSubscriptionsAccessor, AppEventTypeAccessor, AppEventTypeApiResponse, AppEventTypeEditableProperties, AppEventTypeExportProperties, AppEventTypesAccessor, AppSchema, AppliedToIntegrations, AsyncRequestStatus, AsyncRequestTriggerResponse, AuthContextPermissionsSchema, BackwardCompatibleDataSourceEditableProperties, BadRequestError, BadRequestErrorKey, BaseAction, BaseActionInstance, BaseActionRunLogRecord, BaseAppDataSchema, BaseAppDataSchemaInstance, BaseAppEventSubscription, BaseAppEventType, BaseConnectedProduct, BaseConnection, BaseConnector, BaseCustomer, BaseDataLinkTable, BaseDataLinkTableInstance, BaseDataSource, BaseDataSourceInstance, BaseExternalEvent, BaseExternalEventLogRecord, BaseExternalEventPull, BaseExternalEventSubscription, BaseFieldMapping, BaseFieldMappingInstance, BaseFlow, BaseFlowInstance, BaseFlowRun, BaseFunctionDefinition, BaseIntegration, BaseIntegrationLevelMembraneInterface, BaseIntegrationLevelMembraneInterfaceEditableProperties, BaseIntegrationLevelMembraneInterfaceExportProperties, BaseIntegrationLevelMembraneInterfaceReadOnlyProperties, BaseMembraneInterface, BaseMembraneInterfaceEditableProperties, BaseMembraneInterfaceReadOnlyProperties, BaseOrgUser, BasePackage, BaseScreen, BaseWorkspaceElement, CLIENT_TOKEN_GRANT_TYPES, CONNECTION_REQUEST_ID_PARAM, CONNECTION_REQUEST_SCREEN_PATH, CONNECTOR_AUTH_TYPES, CONNECTOR_CATEGORIES, CONNECTOR_DATA_DIR, CONNECTOR_DOCS_DIR, CONNECTOR_EVENTS_DIR, CONNECTOR_GLOBAL_WEBHOOKS_DIR, CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES, CONNECTOR_OPERATIONS_DIR, CONNECTOR_VERSION_DEVELOPMENT, CONNECTOR_VERSION_LATEST, CONSOLE_ACCOUNT_API_TOKEN_PATH, CheckpointApiResponse, CheckpointDiffOperationSchema, CheckpointDiffResponseSchema, ClientToken, ClientTokenGrantType, ClientTokenListResponse, Cluster, CommonFindElementsQuery, CommonFindInstancesQuery, CommonInstancesListQuery, CommonIntegrationOrConnectionQuery, CommonListElementsQuery, ConcurrencyError, ConcurrencyErrorKey, ConfigurationError, ConfigurationState, ConnectPayload, ConnectUIOptions, ConnectedProductApiResponse, ConnectedProductAudience, ConnectedProductType, ConnectionAccessor, ConnectionApiResponse, ConnectionApiResponseWithSecrets, ConnectionDataCollectionAccessor, ConnectionEditableProperties, ConnectionError, ConnectionErrorKey, ConnectionExportProperties, ConnectionLevelActionAccessor, ConnectionLevelActionsAccessor, ConnectionLevelDataSourceAccessor, ConnectionLevelDataSourcesAccessor, ConnectionLevelFieldMappingAccessor, ConnectionLevelFieldMappingsAccessor, ConnectionLevelFlowAccessor, ConnectionLevelFlowsAccessor, ConnectionMessagePayload, ConnectionOperationAccessor, ConnectionOperationRunInput, ConnectionOperationRunResponse, ConnectionProxy, ConnectionProxyRequest, ConnectionRequest, ConnectionSelector, ConnectionSpec, ConnectionTestResponse, ConnectionsAccessor, Connector, ConnectorAuth, ConnectorAuthClientCredentials, ConnectorAuthHandlerBase, ConnectorAuthIntegrationAppToken, ConnectorAuthMembraneToken, ConnectorAuthMethodTypes, ConnectorAuthOAuth1, ConnectorAuthOAuth2, ConnectorAuthProxy, ConnectorAuthSpec, ConnectorAuthSuccessRecord, ConnectorAuthWithFunctions, ConnectorDataCollectionEventImplementationType, ConnectorDataCollectionMethodKeys, ConnectorDataLocationTypes, ConnectorEventHandlerMethods, ConnectorEventImplementationType, ConnectorExportProperties, ConnectorFileUpdateType, ConnectorFunctionSpecs, ConnectorMethodImplementation, ConnectorMethodImplementationBase, ConnectorMethodImplementationGraphqlApiMapping, ConnectorMethodImplementationJavascript, ConnectorMethodImplementationMapping, ConnectorMethodImplementationNotSupported, ConnectorMethodImplementationOperationMapping, ConnectorMethodImplementationRestApiMapping, ConnectorMethodImplementationType, ConnectorOperationMethodImplementationTypes, ConnectorOption, ConnectorOptions, ConnectorSpec, ConnectorStatus, ConnectorStatusValues, ConnectorUdmCollectionMapping, ConnectorUdmListItem, ConnectorUdmSpec, ConnectorUiSpec, ConnectorVersion, ConnectorVersionData, CreateActionInstanceRequest, CreateActionRequest, CreateAgentSession, CreateAlert, CreateClientTokenRequest, CreateClientTokenResponse, CreateClusterRequest, CreateConnectedProductRequest, CreateConnectionRequest, CreateConnectionRequestPayload, CreateConnectorRequest, CreateCustomerRequest, CreateDataLinkTableRequest, CreateDataSourceInstanceRequest, CreateDataSourceRequest, CreateFieldMappingInstanceRequest, CreateFieldMappingRequest, CreateFlowNodeRequest, CreateFlowRequest, CreateFlowRunRequest, CreateIntegrationRequest, CreateOrgInvitationRequest, CreateOrgRequest, CreateOrgUserRequest, CreatePackageRequest, CreateScreenRequest, CreateSelfHostingTokenRequest, CreateSelfHostingTokenResponse, CustomCodeError, CustomerAccessor, CustomerApiResponse, CustomerLimits, CustomerSelector, CustomersAccessor, DATA_RECORD_SCHEMA, DEFAULT_ALERT_DELIVERY_SETTINGS, DEFAULT_ALERT_TYPE_DELIVERY_SETTINGS, DEFAULT_FULL_SYNC_INTERVAL_SECONDS, DEFAULT_PULL_UPDATES_INTERVAL_SECONDS, DataBuilderFormulaBase, DataBuilderFormulaCase, DataBuilderFormulaConcat, DataBuilderFormulaCopy, DataBuilderFormulaExtractDate, DataBuilderFormulaExtractTime, DataBuilderFormulaFindAppRecordId, DataBuilderFormulaFindExternalRecordId, DataBuilderFormulaFirstName, DataBuilderFormulaIterate, DataBuilderFormulaLastName, DataBuilderFormulaLookup, DataBuilderFormulaMap, DataBuilderFormulaPlain, DataBuilderFormulaRecord, DataBuilderFormulaTpl, DataBuilderFormulaType, DataBuilderFormulaVar, DataCollectionCreateRequest, DataCollectionCreateResponse, DataCollectionCreateSpec, DataCollectionDeleteRequest, DataCollectionDeleteResponse, DataCollectionDeleteSpec, DataCollectionEventType, DataCollectionEventTypeSpec, DataCollectionEventsSpec, DataCollectionFindByIdRequest, DataCollectionFindByIdResponse, DataCollectionFindByIdSpec, DataCollectionFindRequest, DataCollectionFindResponse, DataCollectionFindSpec, DataCollectionListRequest, DataCollectionListResponse, DataCollectionListResponseDrilldown, DataCollectionListSpec, DataCollectionMatchRequest, DataCollectionMatchResponse, DataCollectionMatchSpec, DataCollectionMethodRequest, DataCollectionMethodSpec, DataCollectionSearchRequest, DataCollectionSearchResponse, DataCollectionSearchSpec, DataCollectionSpec, DataCollectionUdmSpec, DataCollectionUdmsSpec, DataCollectionUpdateRequest, DataCollectionUpdateResponse, DataCollectionUpdateSpec, DataFilterCondition, DataForm, DataLink, DataLinkDirection, DataLinkTableAccessor, DataLinkTableApiResponse, DataLinkTableConfig, DataLinkTableEditableProperties, DataLinkTableExportProperties, DataLinkTableInstanceAccessor, DataLinkTableInstanceApiResponse, DataLinkTableInstancesAccessor, DataLinkTableLayer, DataLinkTablesAccessor, DataLocationMethodImplementationTypes, DataLocationPointer, DataLocationTypeCollection, DataLocatorStep, DataLocatorStepArrayItem, DataLocatorStepObjectProperty, DataLocatorStepType, DataRecordSchema, DataSchema, DataSchemaRef, DataSourceAccessor, DataSourceApiResponse, DataSourceEditableProperties, DataSourceExportProperties, DataSourceInstanceAccessor, DataSourceInstanceApiResponse, DataSourceInstancesAccessor, DataSourceUnitConfig, DataSourcesAccessor, DbBackedCountsSchema, DependencyError, DomainFromEmail, DownstreamFlowNodeRunSchema, EDITABLE_LIMITS, ElementAccessor, ElementInstanceAccessor, ElementInstanceListAccessor, ElementListAccessor, ElementsExportFields, EngineCreditsProjectionResponse, EngineWorkspaceSettingsSchema, ErrorData, ErrorDataSchema, ErrorType, Eval, ExternalApiLogApiResponse, ExternalEvent, ExternalEventLogRecordApiResponse, ExternalEventLogStatus, ExternalEventPullApiResponse, ExternalEventPullStatus, ExternalEventSubscriptionAccessor, ExternalEventSubscriptionApiResponse, ExternalEventSubscriptionConfig, ExternalEventSubscriptionStatus, ExternalEventSubscriptionType, ExternalEventSubscriptionsAccessor, ExternalEventType, ExternalEventUnitConfig, FLOW_NODE_SPECS, FieldMappingAccessor, FieldMappingApiResponse, FieldMappingDirection, FieldMappingEditableProperties, FieldMappingExportProperties, FieldMappingInstanceAccessor, FieldMappingInstanceApiResponse, FieldMappingInstancesAccessor, FieldMappingUnitConfig, FieldMappingsAccessor, FindActionInstancesQuery, FindActionRunLogsQuery, FindActionRunLogsResponse, FindActionsQuery, FindAlertsQuery, FindAppDataSchemaInstancesQuery, FindAppDataSchemasQuery, FindAppEventSubscriptionsQuery, FindAppEventTypesQuery, FindAppEventsQuery, FindConnectedProductsQuery, FindConnectionsQuery, FindConnectionsResponse, FindCustomersQuery, FindDataLinkTableInstanceLinksQuery, FindDataLinkTableInstancesQuery, FindDataLinkTablesQuery, FindDataLinksInTableQuery, FindDataLinksQuery, FindDataLinksResponse, FindDataSourceEventsQuery, FindDataSourceInstanceSyncsQuery, FindDataSourceInstancesQuery, FindDataSourceSyncsQuery, FindDataSourcesQuery, FindExternalEventPullsQuery, FindFieldMappingInstancesQuery, FindFieldMappingsQuery, FindFlowInstancesQuery, FindFlowRunsQuery, FindFlowRunsResponse, FindFlowsQuery, FindIntegrationLevelMembraneInterfaceQuery, FindIntegrationsQuery, FindOrgWorkspacesQuery, FindOrgsQuery, FindPackagesQuery, FindScreensQuery, FirstNotEmpty, FlowAccessor, FlowApiResponse, FlowEditableProperties, FlowExportProperties, FlowInstanceAccessor, FlowInstanceApiResponse, FlowInstanceSetupError, FlowInstancesAccessor, FlowNode, FlowNodeLink, FlowNodeRunOutputMetadataSchema, FlowNodeRunOutputSchema, FlowNodeRunOutputWithoutDownstreamRunsSchema, FlowNodeRunParametersSchema, FlowNodeRunRecordSchema, FlowNodeRunRecordWithoutOutputsDataSchema, FlowNodeRunResultSchema, FlowNodeRunStatus, FlowNodeSpec, FlowNodeState, FlowNodeType, FlowRunAccessor, FlowRunApiResponse, FlowRunError, FlowRunLaunchedBy, FlowRunLaunchedByApi, FlowRunLaunchedByTrigger, FlowRunNode, FlowRunNodeState, FlowRunState, FlowRunsAccessor, FlowRunsStatsQuery, FlowsAccessor, Formula, FormulaFormula, FullOrgUser, FullPlatformUser, FunctionDefinition, FunctionType, GenerateOptionsRequest, GeneratedConnectorOption, GenericFunctionDefinition, GraphQLApiMappingSchema, GraphQLFieldMappingSchema, GraphqlApiMappingFunction, HTTP_REQUEST_SCHEMA, HandyScenarioTemplateElement, HttpRequestMethod, HttpRequestSpec, IncludeArchivedQuery, IncomingWebhookApiResponse, IncomingWebhooksState, InsufficientCreditsError, IntegrationAccessor, IntegrationApiResponse, MembraneClient as IntegrationAppClient, IntegrationAppError, IntegrationAuthOption, IntegrationAuthUi, IntegrationEditableProperties, IntegrationElementLevel, IntegrationElementType, IntegrationExportProperties, IntegrationLayerStatsQuery, IntegrationLevelActionAccessor, IntegrationLevelActionsListAccessor, IntegrationLevelDataSourceAccessor, IntegrationLevelDataSourcesListAccessor, IntegrationLevelFieldMappingAccessor, IntegrationLevelFieldMappingsListAccessor, IntegrationLevelFlowAccessor, IntegrationLevelFlowsListAccessor, IntegrationLevelMembraneInterfaceSelectorQuery, IntegrationOptionConfig, IntegrationOptions, IntegrationSpecificElementSelector, IntegrationsAccessor, InternalError, InvalidLocatorError, JavascriptFunction, JsonataFormula, LimitUnits, ListActionInstancesForConnectionQuery, ListAppEventLogRecordsQuery, ListClustersQuery, ListDataSourceInstancesForConnectionQuery, ListExternalApiLogsQuery, ListExternalAppsQuery, ListExternalEventLogRecordsQuery, ListExternalEventPullsQuery, ListExternalEventSubscriptionsQuery, ListFlowInstancesForConnectionQuery, ListIncomingWebhooksQuery, ListPublicConnectorsQuery, ListPublicPackagesQuery, LogRecordType, MEMBRANE_CLI_CLIENT_ID, MEMBRANE_ELEMENT_CONFIG_FILE_NAME, MIN_FULL_SYNC_INTERVAL_SECONDS, MIN_PULL_UPDATES_INTERVAL_SECONDS, MappingFunction, MappingSchema, MembraneAgentKey, axios as MembraneAxiosInstance, MembraneClient, MembraneElementLayer, MembraneError, MergeObjects, MinimalConnector, NotAuthenticatedError, NotFoundError, OAUTH1_CONFIG_SCHEMA, OAUTH_CONFIG_SCHEMA, OAUTH_SCOPES, OAUTH_SCOPE_PLATFORM_USER, OAUTH_SCOPE_TENANT, OAuthTokenResponse, OpenRouterNotConfiguredError, OpenapiMappingSchema, OperationMappingFunction, OperationMappingSchema, Or, Org, OrgInvitation, OrgLimits, OrgLimitsType, OrgPlan, OrgUserRole, OrgUserStatus, OrgWorkspace, OrgWorkspaceUser, PACKAGE_VERSION_DEVELOPMENT, PACKAGE_VERSION_LATEST, PARALLEL_EXECUTION_LIMITS, PackageAccessor, PackageApiResponse, PackageCalculatedProperties, PackageEditableProperties, PackageElement, PackageElementApi, PackageElementExport, PackageExportProperties, PackageVersionData, PackageVersionListItem, PackagesAccessor, PaginationQuery, PaginationResponse, ParallelExecutionLimits, PatchAgentSessionSchema, PendingQueueCountSchema, PendingTasksSummarySchema, PlatformUser, RATE_LIMITS, REFERENCE_ELEMENT_TYPE_SELF, RateLimitExceededError, RateLimits, RequestMappingSchema, ResetFlowInstanceOptions, RestApiMappingFunction, RestApiMappingSchema, RunActionRequest, RunFieldMappingRequest, RunFieldMappingResponse, RunFlowApiRequest, SYSTEM_FIELDS, ScenarioAccessor, ScenarioTemplate, ScenarioTemplateCategory, ScenarioTemplateElements, ScenariosAccessor, ScreenAccessor, ScreenApiResponse, ScreenBlock, ScreenBlockType, ScreenSelector, ScreenType, ScreensAccessor, SearchQuery, SelfAccessor, SelfHostingToken, SessionCredentials, SessionParameters, StatsFilterQuery, TenantLayerElement, TenantSelfResponse, UDM, UNIFIED_DATA_MODELS, UnitRunError, UpdateActionInstanceRequest, UpdateActionRequest, UpdateConnectedProductRequest, UpdateConnectionRequest, UpdateConnectorRequest, UpdateCustomerRequest, UpdateDataLinkTableRequest, UpdateDataSourceInstanceRequest, UpdateDataSourceRequest, UpdateFieldMappingInstanceRequest, UpdateFieldMappingRequest, UpdateFlowRequest, UpdateIntegrationRequest, UpdateOrgInvitationRequest, UpdateOrgRequest, UpdateOrgUserRequest, UpdatePackageRequest, UpdateScreenRequest, UpdateSelfHostingTokenRequest, UpstreamFlowNodeRunSchema, UsageType, UserAccessor, UsersAccessor, ValidateSelfHostingTokenRequest, ValidateSelfHostingTokenResponse, WORKSPACE_ELEMENTS_STATS_COLLECTIONS, WORKSPACE_SIZE_LIMITS, WebhookTypeEnum, Workspace, WorkspaceElementChangeType, WorkspaceElementDependencyType, WorkspaceElementSearchQuery, WorkspaceElementSearchResult, WorkspaceElementSpecs, WorkspaceElementState, WorkspaceElementType, WorkspaceElementsStatsSchema, WorkspaceEventType, WorkspaceLimitsSchema, WorkspaceNotificationType, WorkspacePublicKey, WorkspaceSettingsSchema, WorkspaceSizeLimits, WorkspaceSyncEventType, WorkspaceType, WritableConnectorVersionData, WritablePackageVersionData, WriteableConnectorFields, WriteableConnectorOption, __resolveValue, addRequiredFieldsToSchema, addUdmFallbackFields, addUndefinedWriteableProperties, backwardCompatibleFilterMatch, buildData, buildDataSchema, buildValue, compareWorkspaceExports, compressDataSchema, createCompoundSchema, createFlowInstanceSchema, createObjectFromLocators, createOrUpdateConnection, createPaginationResponseSchema, createSchema, dataCollectionEventTypeToExternalEventType, dataLocationParametersMatch, doesMatchFilter, excludeFieldsFromSchema, excludeFieldsFromValue, excludeReadOnlyFieldsFromSchema, excludeWriteOnlyFieldsFromSchema, externalEventTypeToDataCollectionEventType, extractFieldLocator, extractMembraneErrorData, findUdmCollectionMapping, findUdmDefaultCollection, findUdmRootLocation, findValueLocators, generateExampleFromSchema, getActionInstanceVariableSchema, getActionRunTimeVariablesSchema, getAlertCategoryDisplayName, getAlertDeliveryMethodLabel, getAlertTypeDisplayName, getAlertTypesByCategory, getAllEventMethodFilePaths, getBusinessDaysBetween, getChildNodeKeys, getConnectionRequestUrl, getConnectorSpecPath, getConnectorVersionPath, getDataCollectionCreateFields, getDataCollectionUpdateFields, getDataLocationMethodPath, getDownstreamNodeKeys, getEditablePathsForElementType, getEditablePathsFromSchema, getEffectiveConnectorOption, getElementSelector, getErrorFromData, getEventMethodFileKey, getFilterFieldMeta, getFilterFieldValuesByLocator, getFlowInstanceNodeDependency, getFlowNode, getFlowNodeConfigTimeVariablesSchema, getFlowNodeDescription, getFlowNodeRunTimeVariablesSchema, getFlowNodeSpec, getFlowNodeTitle, getFormula$1 as getFormula, getFormulaLocators, getFormula as getFormula_internalDoNotUse, getFullNameForLocator, getFullTitleForLocator, getIconUriForLocator, getLocatorsFromData, getLocatorsFromSchema, getMembraneElementPath, getMissingRequiredFields, getNameComponentsForLocator, getNameForLocator, getNodeInputSchema, getOperatorsBySchema, getParentNodeKeys, getReferenceCollectionPathForSchema, getReferenceCollectionPointerForSchema, getRequiredFieldsFromSchema, getRootNodeKeys, getSchemaByLocator, getSchemaDescription, getSchemaFromValue, getUpstreamNodeKeys, getValueAtLocator, getValueByLocator, getVariableLocators, getWritableFieldsSchema, hasCycles, hasFormulas$1 as hasFormulas, hasFormulas as hasFormulas_internalDoNotUse, injectFormulaCatalog, isBlob, isBusinessDay, isDataActionType, isDataLocationMethodSupported, isDeliveryMethodEnabled, isFormula$1 as isFormula, isFormula as isFormula_internalDoNotUse, isMembraneError, isObject, isPathUserEditable, isSameDataLocation, isSchemaEmpty, isStream, isValidAlertType, isValidLocator, jsonPointerToDotPath, lenientParseWithSchema, locatorToField, locatorToSteps, locatorToString, makeDataLocationOperationPath, makeDataLocationPath, makeDataRecordSchema, makeObjectPropertyLocator, makeSchemaForLocator, mergeSchemas, mergeWithFormulas, nonEmptyObjectProperties, parseDataLocationPath, parseDate, parseMembraneElementPath, patchSchema, pickFieldsFromSchema, pickFieldsFromValue, populateSchemaTitles, processCopy, removeNonExistentVars, removeRequiredFieldsFromSchema, resolveFormulas, schemaAllowsCustomValue, schemaHasFixedValues, schemaHasProperties, schemaIsNumber, schemaIsScalar, schemaTypeFromValue, schemaWithTitle, setEditablePropertiesForWorkspaceElement, setSchemaAtLocator, setValueAtLocator, stepsToLocator, streamToString, transformVariablesWith, transformVars, truncateData, unwrapSchema, unwrapSchemas, updateFlowInstanceSchema, updateImpliedSchema, valueToSchema, valueToString, walkSchema, wrapAnyOfSchema, zodBooleanCoercion };
15890
15908
  //# sourceMappingURL=index.browser.mjs.map