@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.
- package/dist/bundle.d.ts +27 -7
- package/dist/bundle.js +5247 -5235
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/action-instances-accessors.d.ts +1 -1
- package/dist/dts/accessors/actions-accessors.d.ts +1 -1
- package/dist/dts/accessors/app-data-schema-instances-accessors.d.ts +1 -1
- package/dist/dts/accessors/app-data-schemas-accessors.d.ts +1 -1
- package/dist/dts/accessors/app-event-subscriptions-accessors.d.ts +1 -1
- package/dist/dts/accessors/app-event-types-accessors.d.ts +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +6 -5
- package/dist/dts/accessors/customers-accessors.d.ts +1 -1
- package/dist/dts/accessors/data-link-table-instances-accessors.d.ts +1 -1
- package/dist/dts/accessors/data-link-tables-accessors.d.ts +1 -1
- package/dist/dts/accessors/data-sources-accessors.d.ts +1 -1
- package/dist/dts/accessors/external-event-subscriptions-accessors.d.ts +1 -1
- package/dist/dts/accessors/field-mapping-instances-accessors.d.ts +1 -1
- package/dist/dts/accessors/field-mappings-accessors.d.ts +1 -1
- package/dist/dts/accessors/flow-instances-accessors.d.ts +1 -1
- package/dist/dts/accessors/flows-accessors.d.ts +1 -1
- package/dist/dts/accessors/integrations-accessors.d.ts +6 -5
- package/dist/dts/accessors/scenarios-accessors.d.ts +1 -1
- package/dist/dts/accessors/screens-accessors.d.ts +1 -1
- package/dist/dts/agent/worker-contracts.d.ts +1 -0
- package/dist/dts/alerts/utils.d.ts +1 -1
- package/dist/dts/client.d.ts +1 -1
- package/dist/dts/data-filter/index.d.ts +1 -1
- package/dist/dts/formulas/base.d.ts +1 -1
- package/dist/dts/formulas/eval.d.ts +1 -1
- package/dist/dts/formulas/findAppRecordId.d.ts +1 -1
- package/dist/dts/formulas/findExternalRecordId.d.ts +1 -1
- package/dist/dts/formulas/index.d.ts +26 -4
- package/dist/dts/formulas/record.d.ts +1 -1
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/actions-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/connections-api.d.ts +17 -1
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +2 -1
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +4 -2
- package/dist/dts/workspace-elements/api/external-api-logs-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +3 -1
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/flows-api.d.ts +3 -1
- package/dist/dts/workspace-elements/api/incoming-webhooks-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +1 -0
- package/dist/dts/workspace-elements/base/actions/index.d.ts +2 -2
- package/dist/dts/workspace-elements/base/connection-requests/index.d.ts +2 -0
- package/dist/dts/workspace-elements/base/connections/index.d.ts +3 -0
- package/dist/dts/workspace-elements/base/connectors/auth.d.ts +1 -1
- package/dist/dts/workspace-elements/base/connectors/functions.d.ts +1 -1
- package/dist/dts/workspace-elements/base/connectors/operations/handlers.d.ts +1 -1
- package/dist/dts/workspace-elements/base/data-collections/data-locations/collections/events/methods.d.ts +1 -1
- package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +1 -1
- package/dist/dts/workspace-elements/base/data-collections/udm/index.d.ts +1 -1
- package/dist/dts/workspace-elements/base/data-collections/utils.d.ts +1 -1
- package/dist/dts/workspace-elements-catalog/index.d.ts +1 -0
- package/dist/dts/workspaces/compare.d.ts +1 -1
- package/dist/index.browser.d.mts +733 -691
- package/dist/index.browser.d.ts +733 -691
- package/dist/index.browser.js +1157 -1113
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +1132 -1114
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +733 -691
- package/dist/index.node.d.ts +733 -691
- package/dist/index.node.js +1157 -1113
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +1132 -1114
- package/dist/index.node.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.node.mjs
CHANGED
|
@@ -3936,6 +3936,7 @@ const CreateConnectionRequestPayload = z.object({
|
|
|
3936
3936
|
integrationId: z.string().optional(),
|
|
3937
3937
|
integrationKey: z.string().optional(),
|
|
3938
3938
|
connectorId: z.string().optional(),
|
|
3939
|
+
connectorKey: z.string().optional(),
|
|
3939
3940
|
connectorVersion: z.string().optional(),
|
|
3940
3941
|
connectionId: z.string().optional(),
|
|
3941
3942
|
name: z.string().optional(),
|
|
@@ -3949,6 +3950,7 @@ const ConnectionRequest = z.object({
|
|
|
3949
3950
|
integrationId: z.string().optional(),
|
|
3950
3951
|
integrationKey: z.string().optional(),
|
|
3951
3952
|
connectorId: z.string().optional(),
|
|
3953
|
+
connectorKey: z.string().optional(),
|
|
3952
3954
|
connectorVersion: z.string().optional(),
|
|
3953
3955
|
connectionId: z.string().optional(),
|
|
3954
3956
|
name: z.string().optional(),
|
|
@@ -3966,6 +3968,8 @@ const ConnectionEditableProperties = z.object({
|
|
|
3966
3968
|
name: z.string().optional(),
|
|
3967
3969
|
meta: z.record(z.string(), z.any()).optional(),
|
|
3968
3970
|
authOptionKey: z.string().optional(),
|
|
3971
|
+
externalAppId: z.string().optional(),
|
|
3972
|
+
externalAppUuid: z.string().optional(),
|
|
3969
3973
|
credentials: z.unknown().optional(),
|
|
3970
3974
|
connectorParameters: z.unknown().optional(),
|
|
3971
3975
|
input: z.unknown().optional(),
|
|
@@ -3980,6 +3984,7 @@ const BaseConnection = BaseWorkspaceElement.extend({
|
|
|
3980
3984
|
error: ErrorDataSchema.optional(),
|
|
3981
3985
|
integrationId: z.string().optional(),
|
|
3982
3986
|
connectorId: z.string().optional(),
|
|
3987
|
+
externalAppId: z.string().optional(),
|
|
3983
3988
|
connectorVersion: z.string().optional(),
|
|
3984
3989
|
authOptionKey: z.string().optional(),
|
|
3985
3990
|
createdAt: z.string(),
|
|
@@ -4000,6 +4005,97 @@ class ConnectionSpec {
|
|
|
4000
4005
|
}
|
|
4001
4006
|
}
|
|
4002
4007
|
|
|
4008
|
+
var FunctionType;
|
|
4009
|
+
(function (FunctionType) {
|
|
4010
|
+
FunctionType["mapping"] = "mapping";
|
|
4011
|
+
FunctionType["operationMapping"] = "operation-mapping";
|
|
4012
|
+
FunctionType["restApiMapping"] = "rest-api-mapping";
|
|
4013
|
+
FunctionType["graphqlApiMapping"] = "graphql-api-mapping";
|
|
4014
|
+
FunctionType["javascript"] = "javascript";
|
|
4015
|
+
})(FunctionType || (FunctionType = {}));
|
|
4016
|
+
const BaseFunctionDefinition = z.object({
|
|
4017
|
+
type: z.enum([
|
|
4018
|
+
FunctionType.mapping,
|
|
4019
|
+
FunctionType.operationMapping,
|
|
4020
|
+
FunctionType.restApiMapping,
|
|
4021
|
+
FunctionType.graphqlApiMapping,
|
|
4022
|
+
FunctionType.javascript,
|
|
4023
|
+
]),
|
|
4024
|
+
});
|
|
4025
|
+
const GenericFunctionDefinition = z
|
|
4026
|
+
.object({
|
|
4027
|
+
type: z.enum(['mapping', 'operation-mapping', 'rest-api-mapping', 'graphql-api-mapping', 'javascript']).optional(),
|
|
4028
|
+
})
|
|
4029
|
+
.loose();
|
|
4030
|
+
|
|
4031
|
+
const GraphQLFieldMappingSchema = z.lazy(() => z.object({
|
|
4032
|
+
field: z.string(),
|
|
4033
|
+
args: z.record(z.string(), z.any()).optional(),
|
|
4034
|
+
subFields: z.array(GraphQLFieldMappingSchema).optional(),
|
|
4035
|
+
}));
|
|
4036
|
+
const GraphQLApiMappingSchema = z.object({
|
|
4037
|
+
path: z.string(),
|
|
4038
|
+
operationType: z.enum(['query', 'mutation']),
|
|
4039
|
+
requestMapping: z.array(GraphQLFieldMappingSchema),
|
|
4040
|
+
responseMapping: z.any().optional(),
|
|
4041
|
+
});
|
|
4042
|
+
const GraphqlApiMappingFunction = z.object({
|
|
4043
|
+
type: z.literal(FunctionType.graphqlApiMapping),
|
|
4044
|
+
mapping: GraphQLApiMappingSchema,
|
|
4045
|
+
});
|
|
4046
|
+
|
|
4047
|
+
const JavascriptFunction = z.object({
|
|
4048
|
+
type: z.literal(FunctionType.javascript),
|
|
4049
|
+
code: z.string(),
|
|
4050
|
+
});
|
|
4051
|
+
|
|
4052
|
+
const MappingSchema = z.any();
|
|
4053
|
+
const MappingFunction = z.object({
|
|
4054
|
+
type: z.literal(FunctionType.mapping),
|
|
4055
|
+
mapping: MappingSchema,
|
|
4056
|
+
});
|
|
4057
|
+
|
|
4058
|
+
const OperationMappingSchema = z.object({
|
|
4059
|
+
operationKey: z.string(),
|
|
4060
|
+
inputMapping: z.any().optional(),
|
|
4061
|
+
outputMapping: z.any().optional(),
|
|
4062
|
+
});
|
|
4063
|
+
const OperationMappingFunction = z.object({
|
|
4064
|
+
type: z.literal(FunctionType.operationMapping),
|
|
4065
|
+
mapping: OperationMappingSchema,
|
|
4066
|
+
});
|
|
4067
|
+
|
|
4068
|
+
const RequestMappingSchema = z.object({
|
|
4069
|
+
pathParameters: z.any().optional(),
|
|
4070
|
+
query: z.any().optional(),
|
|
4071
|
+
data: z.any().optional(),
|
|
4072
|
+
headers: z.any().optional(),
|
|
4073
|
+
});
|
|
4074
|
+
const RestApiMappingSchema = z.object({
|
|
4075
|
+
path: z.string(),
|
|
4076
|
+
method: z.string(),
|
|
4077
|
+
requestMapping: RequestMappingSchema,
|
|
4078
|
+
responseMapping: z.any().optional(),
|
|
4079
|
+
});
|
|
4080
|
+
const OpenapiMappingSchema = z.object({
|
|
4081
|
+
path: z.string(),
|
|
4082
|
+
method: z.string(),
|
|
4083
|
+
requestMapping: RequestMappingSchema,
|
|
4084
|
+
responseMapping: z.any().optional(),
|
|
4085
|
+
});
|
|
4086
|
+
const RestApiMappingFunction = z.object({
|
|
4087
|
+
type: z.literal(FunctionType.restApiMapping),
|
|
4088
|
+
mapping: RestApiMappingSchema,
|
|
4089
|
+
});
|
|
4090
|
+
|
|
4091
|
+
const FunctionDefinition = z.union([
|
|
4092
|
+
MappingFunction,
|
|
4093
|
+
OperationMappingFunction,
|
|
4094
|
+
RestApiMappingFunction,
|
|
4095
|
+
GraphqlApiMappingFunction,
|
|
4096
|
+
JavascriptFunction,
|
|
4097
|
+
]);
|
|
4098
|
+
|
|
4003
4099
|
var ConnectorMethodImplementationType;
|
|
4004
4100
|
(function (ConnectorMethodImplementationType) {
|
|
4005
4101
|
ConnectorMethodImplementationType["mapping"] = "mapping";
|
|
@@ -4396,97 +4492,6 @@ const REST_API_CLIENT_SCHEMA$1 = {
|
|
|
4396
4492
|
},
|
|
4397
4493
|
};
|
|
4398
4494
|
|
|
4399
|
-
var FunctionType;
|
|
4400
|
-
(function (FunctionType) {
|
|
4401
|
-
FunctionType["mapping"] = "mapping";
|
|
4402
|
-
FunctionType["operationMapping"] = "operation-mapping";
|
|
4403
|
-
FunctionType["restApiMapping"] = "rest-api-mapping";
|
|
4404
|
-
FunctionType["graphqlApiMapping"] = "graphql-api-mapping";
|
|
4405
|
-
FunctionType["javascript"] = "javascript";
|
|
4406
|
-
})(FunctionType || (FunctionType = {}));
|
|
4407
|
-
const BaseFunctionDefinition = z.object({
|
|
4408
|
-
type: z.enum([
|
|
4409
|
-
FunctionType.mapping,
|
|
4410
|
-
FunctionType.operationMapping,
|
|
4411
|
-
FunctionType.restApiMapping,
|
|
4412
|
-
FunctionType.graphqlApiMapping,
|
|
4413
|
-
FunctionType.javascript,
|
|
4414
|
-
]),
|
|
4415
|
-
});
|
|
4416
|
-
const GenericFunctionDefinition = z
|
|
4417
|
-
.object({
|
|
4418
|
-
type: z.enum(['mapping', 'operation-mapping', 'rest-api-mapping', 'graphql-api-mapping', 'javascript']).optional(),
|
|
4419
|
-
})
|
|
4420
|
-
.loose();
|
|
4421
|
-
|
|
4422
|
-
const GraphQLFieldMappingSchema = z.lazy(() => z.object({
|
|
4423
|
-
field: z.string(),
|
|
4424
|
-
args: z.record(z.string(), z.any()).optional(),
|
|
4425
|
-
subFields: z.array(GraphQLFieldMappingSchema).optional(),
|
|
4426
|
-
}));
|
|
4427
|
-
const GraphQLApiMappingSchema = z.object({
|
|
4428
|
-
path: z.string(),
|
|
4429
|
-
operationType: z.enum(['query', 'mutation']),
|
|
4430
|
-
requestMapping: z.array(GraphQLFieldMappingSchema),
|
|
4431
|
-
responseMapping: z.any().optional(),
|
|
4432
|
-
});
|
|
4433
|
-
const GraphqlApiMappingFunction = z.object({
|
|
4434
|
-
type: z.literal(FunctionType.graphqlApiMapping),
|
|
4435
|
-
mapping: GraphQLApiMappingSchema,
|
|
4436
|
-
});
|
|
4437
|
-
|
|
4438
|
-
const JavascriptFunction = z.object({
|
|
4439
|
-
type: z.literal(FunctionType.javascript),
|
|
4440
|
-
code: z.string(),
|
|
4441
|
-
});
|
|
4442
|
-
|
|
4443
|
-
const MappingSchema = z.any();
|
|
4444
|
-
const MappingFunction = z.object({
|
|
4445
|
-
type: z.literal(FunctionType.mapping),
|
|
4446
|
-
mapping: MappingSchema,
|
|
4447
|
-
});
|
|
4448
|
-
|
|
4449
|
-
const OperationMappingSchema = z.object({
|
|
4450
|
-
operationKey: z.string(),
|
|
4451
|
-
inputMapping: z.any().optional(),
|
|
4452
|
-
outputMapping: z.any().optional(),
|
|
4453
|
-
});
|
|
4454
|
-
const OperationMappingFunction = z.object({
|
|
4455
|
-
type: z.literal(FunctionType.operationMapping),
|
|
4456
|
-
mapping: OperationMappingSchema,
|
|
4457
|
-
});
|
|
4458
|
-
|
|
4459
|
-
const RequestMappingSchema = z.object({
|
|
4460
|
-
pathParameters: z.any().optional(),
|
|
4461
|
-
query: z.any().optional(),
|
|
4462
|
-
data: z.any().optional(),
|
|
4463
|
-
headers: z.any().optional(),
|
|
4464
|
-
});
|
|
4465
|
-
const RestApiMappingSchema = z.object({
|
|
4466
|
-
path: z.string(),
|
|
4467
|
-
method: z.string(),
|
|
4468
|
-
requestMapping: RequestMappingSchema,
|
|
4469
|
-
responseMapping: z.any().optional(),
|
|
4470
|
-
});
|
|
4471
|
-
const OpenapiMappingSchema = z.object({
|
|
4472
|
-
path: z.string(),
|
|
4473
|
-
method: z.string(),
|
|
4474
|
-
requestMapping: RequestMappingSchema,
|
|
4475
|
-
responseMapping: z.any().optional(),
|
|
4476
|
-
});
|
|
4477
|
-
const RestApiMappingFunction = z.object({
|
|
4478
|
-
type: z.literal(FunctionType.restApiMapping),
|
|
4479
|
-
mapping: RestApiMappingSchema,
|
|
4480
|
-
});
|
|
4481
|
-
|
|
4482
|
-
const FunctionDefinition = z.union([
|
|
4483
|
-
MappingFunction,
|
|
4484
|
-
OperationMappingFunction,
|
|
4485
|
-
RestApiMappingFunction,
|
|
4486
|
-
GraphqlApiMappingFunction,
|
|
4487
|
-
JavascriptFunction,
|
|
4488
|
-
]);
|
|
4489
|
-
|
|
4490
4495
|
const CONNECTOR_DATA_DIR = 'data';
|
|
4491
4496
|
const CONNECTOR_OPERATIONS_DIR = 'operations';
|
|
4492
4497
|
const CONNECTOR_DOCS_DIR = 'docs';
|
|
@@ -4662,369 +4667,528 @@ var DataCollectionEventType;
|
|
|
4662
4667
|
DataCollectionEventType["DELETED"] = "deleted";
|
|
4663
4668
|
})(DataCollectionEventType || (DataCollectionEventType = {}));
|
|
4664
4669
|
|
|
4665
|
-
const
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
];
|
|
4670
|
+
const structuredClone$1 = (structuredClonePolyfill === null || structuredClonePolyfill === void 0 ? void 0 : structuredClonePolyfill.default) || structuredClonePolyfill;
|
|
4671
|
+
function isNil(value) {
|
|
4672
|
+
return value == null;
|
|
4673
|
+
}
|
|
4674
|
+
function omitBy(obj, check) {
|
|
4675
|
+
obj = { ...obj };
|
|
4676
|
+
Object.entries(obj).forEach(([key, value]) => check(value) && delete obj[key]);
|
|
4677
|
+
return obj;
|
|
4678
|
+
}
|
|
4679
|
+
function isEmptyValue(value) {
|
|
4680
|
+
if (isNil(value)) {
|
|
4681
|
+
return true;
|
|
4682
|
+
}
|
|
4683
|
+
if (typeof value === 'symbol') {
|
|
4684
|
+
return true;
|
|
4685
|
+
}
|
|
4686
|
+
if (typeof value === 'boolean') {
|
|
4687
|
+
return false;
|
|
4688
|
+
}
|
|
4689
|
+
if (typeof value === 'number') {
|
|
4690
|
+
return isNaN(value);
|
|
4691
|
+
}
|
|
4692
|
+
if (typeof value === 'string') {
|
|
4693
|
+
return value.trim().length === 0;
|
|
4694
|
+
}
|
|
4695
|
+
const tag = value.toString();
|
|
4696
|
+
if (tag === '[object Map]' || tag === '[object Set]') {
|
|
4697
|
+
return !value.size;
|
|
4698
|
+
}
|
|
4699
|
+
return typeof value === 'object' && Object.keys(value).length === 0;
|
|
4700
|
+
}
|
|
4701
|
+
const simpleUniqueId = () => {
|
|
4702
|
+
return Math.floor(Math.random() * Number.MAX_SAFE_INTEGER)
|
|
4703
|
+
.toString(36)
|
|
4704
|
+
.padStart(11, '0')
|
|
4705
|
+
.substring(0, 11);
|
|
4706
|
+
};
|
|
4672
4707
|
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
}
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4708
|
+
function getDataLocationMethodPath(locationKey, methodKey) {
|
|
4709
|
+
return `data/${locationKey}/${toKebabCase(methodKey)}`;
|
|
4710
|
+
}
|
|
4711
|
+
function dataLocationParametersMatch({ locationParameters, targetParameters, }) {
|
|
4712
|
+
targetParameters = typeof targetParameters === 'object' && targetParameters ? targetParameters : {};
|
|
4713
|
+
locationParameters = typeof locationParameters === 'object' && locationParameters ? locationParameters : {};
|
|
4714
|
+
for (const [key, value] of Object.entries(targetParameters)) {
|
|
4715
|
+
if (locationParameters[key] !== value) {
|
|
4716
|
+
return false;
|
|
4717
|
+
}
|
|
4718
|
+
}
|
|
4719
|
+
return true;
|
|
4720
|
+
}
|
|
4721
|
+
function parseDataLocationPath(path) {
|
|
4722
|
+
if (!path) {
|
|
4723
|
+
return undefined;
|
|
4724
|
+
}
|
|
4725
|
+
if (path.startsWith('/')) {
|
|
4726
|
+
path = path.slice(1);
|
|
4727
|
+
}
|
|
4728
|
+
if (!path.startsWith('data/')) {
|
|
4729
|
+
throw new Error(`Invalid data location path: ${path}. It should start with "data/"`);
|
|
4730
|
+
}
|
|
4731
|
+
path = path.slice(5);
|
|
4732
|
+
const [key, query] = path.split('?');
|
|
4733
|
+
const parameters = Object.fromEntries(new URLSearchParams(query).entries());
|
|
4734
|
+
return { key, parameters };
|
|
4735
|
+
}
|
|
4736
|
+
function makeDataLocationPath(pointer) {
|
|
4737
|
+
var _a;
|
|
4738
|
+
const normalizedPointer = normalizePointer(pointer);
|
|
4739
|
+
if (normalizedPointer === null || normalizedPointer === void 0 ? void 0 : normalizedPointer.key) {
|
|
4740
|
+
let path = `/data/${normalizedPointer.key}`;
|
|
4741
|
+
const parameters = omitBy((_a = normalizedPointer.parameters) !== null && _a !== void 0 ? _a : {}, isNil);
|
|
4742
|
+
if (Object.keys(parameters).length > 0) {
|
|
4743
|
+
path += `?${new URLSearchParams(parameters).toString()}`;
|
|
4701
4744
|
}
|
|
4745
|
+
return path;
|
|
4746
|
+
}
|
|
4747
|
+
else {
|
|
4748
|
+
return undefined;
|
|
4749
|
+
}
|
|
4750
|
+
}
|
|
4751
|
+
function normalizePointer(pointer) {
|
|
4752
|
+
if (typeof pointer === 'string' && pointer.startsWith('/data/')) {
|
|
4702
4753
|
return {
|
|
4703
|
-
|
|
4704
|
-
properties: nonEmptyObjectProperties({
|
|
4705
|
-
fields: (_a = transformVariablesWith(fieldsSchema, (locator) => `fields.${locatorToField(locator)}`)) !== null && _a !== void 0 ? _a : {
|
|
4706
|
-
type: 'object',
|
|
4707
|
-
},
|
|
4708
|
-
credentials: credentialsSchema,
|
|
4709
|
-
}),
|
|
4754
|
+
key: pointer.slice(6),
|
|
4710
4755
|
};
|
|
4711
|
-
}
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4756
|
+
}
|
|
4757
|
+
return pointer;
|
|
4758
|
+
}
|
|
4759
|
+
function makeDataLocationOperationPath(collectionPath, operation) {
|
|
4760
|
+
const [path, query] = (collectionPath !== null && collectionPath !== void 0 ? collectionPath : '').split('?');
|
|
4761
|
+
return urljoin(path, operation, query ? `?${query}` : '');
|
|
4762
|
+
}
|
|
4763
|
+
function isSameDataLocation(location1, location2) {
|
|
4764
|
+
if (location1.key !== location2.key) {
|
|
4765
|
+
return false;
|
|
4766
|
+
}
|
|
4767
|
+
const cleanParameters1 = location1.parameters && Object.keys(location1.parameters).length > 0 ? location1.parameters : undefined;
|
|
4768
|
+
const cleanParameters2 = location2.parameters && Object.keys(location2.parameters).length > 0 ? location2.parameters : undefined;
|
|
4769
|
+
if (!deepEqual(cleanParameters1, cleanParameters2)) {
|
|
4770
|
+
return false;
|
|
4771
|
+
}
|
|
4772
|
+
return true;
|
|
4773
|
+
}
|
|
4774
|
+
function isDataLocationMethodSupported(location, methodKey) {
|
|
4775
|
+
var _a;
|
|
4776
|
+
const method = (_a = location === null || location === void 0 ? void 0 : location.methods) === null || _a === void 0 ? void 0 : _a[methodKey];
|
|
4777
|
+
return method && method.implementationType !== ConnectorMethodImplementationType.notSupported;
|
|
4778
|
+
}
|
|
4779
|
+
function getDataCollectionCreateFields(spec) {
|
|
4780
|
+
if (!spec)
|
|
4781
|
+
return undefined;
|
|
4782
|
+
if (!spec.fieldsSchema)
|
|
4783
|
+
return undefined;
|
|
4784
|
+
if (!spec.create)
|
|
4785
|
+
return undefined;
|
|
4786
|
+
let schema = excludeReadOnlyFieldsFromSchema(spec.fieldsSchema);
|
|
4787
|
+
if (spec.create.fields) {
|
|
4788
|
+
schema = pickFieldsFromSchema(schema, spec.create.fields);
|
|
4789
|
+
}
|
|
4790
|
+
if (spec.create.excludedFields) {
|
|
4791
|
+
schema = excludeFieldsFromSchema(schema, spec.create.excludedFields);
|
|
4792
|
+
}
|
|
4793
|
+
return schema;
|
|
4794
|
+
}
|
|
4795
|
+
function getDataCollectionUpdateFields(spec) {
|
|
4796
|
+
if (!spec)
|
|
4797
|
+
return undefined;
|
|
4798
|
+
if (!spec.fieldsSchema)
|
|
4799
|
+
return undefined;
|
|
4800
|
+
if (!spec.update)
|
|
4801
|
+
return undefined;
|
|
4802
|
+
let schema = excludeReadOnlyFieldsFromSchema(spec.fieldsSchema);
|
|
4803
|
+
if (spec.update.fields) {
|
|
4804
|
+
schema = pickFieldsFromSchema(schema, spec.update.fields);
|
|
4805
|
+
}
|
|
4806
|
+
if (spec.update.excludedFields) {
|
|
4807
|
+
schema = excludeFieldsFromSchema(schema, spec.update.excludedFields);
|
|
4808
|
+
}
|
|
4809
|
+
return schema;
|
|
4810
|
+
}
|
|
4811
|
+
function getWritableFieldsSchema(spec) {
|
|
4812
|
+
if (!spec)
|
|
4813
|
+
return undefined;
|
|
4814
|
+
if (!spec.fieldsSchema)
|
|
4815
|
+
return undefined;
|
|
4816
|
+
return mergeSchemas([getDataCollectionCreateFields(spec), getDataCollectionUpdateFields(spec)]);
|
|
4817
|
+
}
|
|
4818
|
+
function getReferenceCollectionPointerForSchema(schema) {
|
|
4819
|
+
if ((schema === null || schema === void 0 ? void 0 : schema.referenceCollection) && schema.referenceCollection.key) {
|
|
4820
|
+
return schema.referenceCollection;
|
|
4821
|
+
}
|
|
4822
|
+
else if (schema === null || schema === void 0 ? void 0 : schema.referenceCollectionPath) {
|
|
4823
|
+
return parseDataLocationPath(schema.referenceCollectionPath);
|
|
4824
|
+
}
|
|
4825
|
+
else if (schema === null || schema === void 0 ? void 0 : schema.referenceCollectionUri) {
|
|
4826
|
+
return parseDataLocationPath(schema.referenceCollectionUri);
|
|
4827
|
+
}
|
|
4828
|
+
else {
|
|
4829
|
+
return undefined;
|
|
4830
|
+
}
|
|
4831
|
+
}
|
|
4832
|
+
function getReferenceCollectionPathForSchema(schema) {
|
|
4833
|
+
const pointer = getReferenceCollectionPointerForSchema(schema);
|
|
4834
|
+
return makeDataLocationPath(pointer);
|
|
4835
|
+
}
|
|
4720
4836
|
|
|
4721
|
-
const
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4837
|
+
const FIELDS_SCHEMA$G = {
|
|
4838
|
+
type: 'object',
|
|
4839
|
+
properties: {
|
|
4840
|
+
id: { type: 'string', readOnly: true },
|
|
4841
|
+
title: { type: 'string' },
|
|
4842
|
+
description: { type: 'string' },
|
|
4843
|
+
type: { type: 'string' },
|
|
4844
|
+
durationSeconds: { type: 'number' },
|
|
4845
|
+
location: { type: 'string' },
|
|
4846
|
+
isRecurrent: { type: 'boolean' },
|
|
4847
|
+
participants: {
|
|
4848
|
+
type: 'array',
|
|
4849
|
+
items: {
|
|
4850
|
+
type: 'object',
|
|
4851
|
+
properties: {
|
|
4852
|
+
userId: { type: 'string' },
|
|
4853
|
+
contactId: { type: 'string' },
|
|
4731
4854
|
},
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
}
|
|
4855
|
+
},
|
|
4856
|
+
},
|
|
4857
|
+
status: { type: 'string' },
|
|
4858
|
+
contactId: {
|
|
4859
|
+
type: 'string',
|
|
4860
|
+
referenceUdm: 'contacts',
|
|
4861
|
+
},
|
|
4862
|
+
companyId: {
|
|
4863
|
+
type: 'string',
|
|
4864
|
+
referenceUdm: 'companies',
|
|
4865
|
+
},
|
|
4866
|
+
dealId: {
|
|
4867
|
+
type: 'string',
|
|
4868
|
+
referenceUdm: 'deals',
|
|
4869
|
+
},
|
|
4870
|
+
leadId: {
|
|
4871
|
+
type: 'string',
|
|
4872
|
+
referenceUdm: 'leads',
|
|
4873
|
+
},
|
|
4874
|
+
ownerId: {
|
|
4875
|
+
type: 'string',
|
|
4876
|
+
referenceUdm: 'users',
|
|
4877
|
+
},
|
|
4878
|
+
startTime: {
|
|
4879
|
+
type: 'string',
|
|
4880
|
+
format: 'date-time',
|
|
4881
|
+
},
|
|
4882
|
+
endTime: {
|
|
4883
|
+
type: 'string',
|
|
4884
|
+
format: 'date-time',
|
|
4885
|
+
},
|
|
4886
|
+
dueTime: {
|
|
4887
|
+
type: 'string',
|
|
4888
|
+
format: 'date-time',
|
|
4889
|
+
},
|
|
4890
|
+
createdTime: {
|
|
4891
|
+
type: 'string',
|
|
4892
|
+
format: 'date-time',
|
|
4893
|
+
readOnly: true,
|
|
4894
|
+
},
|
|
4895
|
+
createdBy: {
|
|
4896
|
+
type: 'string',
|
|
4897
|
+
referenceUdm: 'users',
|
|
4898
|
+
readOnly: true,
|
|
4899
|
+
},
|
|
4900
|
+
updatedTime: {
|
|
4901
|
+
type: 'string',
|
|
4902
|
+
format: 'date-time',
|
|
4903
|
+
readOnly: true,
|
|
4904
|
+
},
|
|
4905
|
+
updatedBy: {
|
|
4906
|
+
type: 'string',
|
|
4907
|
+
referenceUdm: 'users',
|
|
4908
|
+
readOnly: true,
|
|
4909
|
+
},
|
|
4735
4910
|
},
|
|
4736
|
-
getOutputSchema: () => null,
|
|
4737
|
-
supportedImplementationTypes: DataLocationMethodImplementationTypes,
|
|
4738
4911
|
};
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
return {
|
|
4748
|
-
type: 'object',
|
|
4749
|
-
properties: {
|
|
4750
|
-
queryFields: {
|
|
4751
|
-
type: 'array',
|
|
4752
|
-
items: { type: 'string', enum: fields },
|
|
4753
|
-
},
|
|
4754
|
-
},
|
|
4755
|
-
};
|
|
4912
|
+
const FallbackFieldsMap = {
|
|
4913
|
+
fromActivitiesToTasks: {
|
|
4914
|
+
subject: {
|
|
4915
|
+
$var: 'title',
|
|
4916
|
+
},
|
|
4917
|
+
content: {
|
|
4918
|
+
$var: 'description',
|
|
4919
|
+
},
|
|
4756
4920
|
},
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
}),
|
|
4765
|
-
};
|
|
4766
|
-
if (queryFieldsSchema === null || queryFieldsSchema === void 0 ? void 0 : queryFieldsSchema.properties) {
|
|
4767
|
-
schema.properties = {
|
|
4768
|
-
...schema.properties,
|
|
4769
|
-
query: transformVariablesWith(queryFieldsSchema, (locator) => `query.${locatorToField(locator)}`),
|
|
4770
|
-
};
|
|
4771
|
-
}
|
|
4772
|
-
return schema;
|
|
4921
|
+
fromTasksToActivities: {
|
|
4922
|
+
title: {
|
|
4923
|
+
$var: 'subject',
|
|
4924
|
+
},
|
|
4925
|
+
description: {
|
|
4926
|
+
$var: 'content',
|
|
4927
|
+
},
|
|
4773
4928
|
},
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
}
|
|
4929
|
+
fromActivitiesToNotes: {
|
|
4930
|
+
content: {
|
|
4931
|
+
$var: 'description',
|
|
4932
|
+
},
|
|
4933
|
+
},
|
|
4934
|
+
fromNotesToActivities: {
|
|
4935
|
+
description: {
|
|
4936
|
+
$var: 'content',
|
|
4937
|
+
},
|
|
4938
|
+
},
|
|
4939
|
+
fromActivitiesToEmails: {
|
|
4940
|
+
subject: {
|
|
4941
|
+
$var: 'title',
|
|
4942
|
+
},
|
|
4943
|
+
body: {
|
|
4944
|
+
$var: 'description',
|
|
4945
|
+
},
|
|
4946
|
+
},
|
|
4947
|
+
fromEmailsToActivities: {
|
|
4948
|
+
title: {
|
|
4949
|
+
$var: 'subject',
|
|
4950
|
+
},
|
|
4951
|
+
description: {
|
|
4952
|
+
$var: 'body',
|
|
4953
|
+
},
|
|
4788
4954
|
},
|
|
4789
|
-
supportedImplementationTypes: DataLocationMethodImplementationTypes,
|
|
4790
4955
|
};
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
properties: nonEmptyObjectProperties({
|
|
4798
|
-
id: {
|
|
4799
|
-
type: 'string',
|
|
4800
|
-
referenceCollection: { key: collectionHandler === null || collectionHandler === void 0 ? void 0 : collectionHandler.key, parameters },
|
|
4801
|
-
},
|
|
4802
|
-
credentials: credentialsSchema,
|
|
4803
|
-
}),
|
|
4804
|
-
}),
|
|
4805
|
-
getOutputSchema: ({ collectionSpec }) => {
|
|
4806
|
-
var _a;
|
|
4807
|
-
return ({
|
|
4808
|
-
type: 'object',
|
|
4809
|
-
properties: {
|
|
4810
|
-
record: (_a = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) !== null && _a !== void 0 ? _a : { type: 'object' },
|
|
4811
|
-
},
|
|
4812
|
-
});
|
|
4956
|
+
const udm$G = {
|
|
4957
|
+
singularName: 'activity',
|
|
4958
|
+
pluralName: 'activities',
|
|
4959
|
+
fieldsSchema: FIELDS_SCHEMA$G,
|
|
4960
|
+
list: {
|
|
4961
|
+
filterFields: ['type', 'companyId', 'contactId', 'dealId', 'leadId', 'ownerId'],
|
|
4813
4962
|
},
|
|
4814
|
-
|
|
4963
|
+
match: {
|
|
4964
|
+
fields: ['type', 'companyId', 'contactId', 'dealId', 'leadId', 'ownerId'],
|
|
4965
|
+
},
|
|
4966
|
+
populateFields,
|
|
4967
|
+
udmFallbacks: [
|
|
4968
|
+
{
|
|
4969
|
+
udm: 'tasks',
|
|
4970
|
+
importFields: FallbackFieldsMap.fromTasksToActivities,
|
|
4971
|
+
exportFields: FallbackFieldsMap.fromActivitiesToTasks,
|
|
4972
|
+
},
|
|
4973
|
+
{
|
|
4974
|
+
udm: 'meetings',
|
|
4975
|
+
},
|
|
4976
|
+
{
|
|
4977
|
+
udm: 'notes',
|
|
4978
|
+
importFields: FallbackFieldsMap.fromNotesToActivities,
|
|
4979
|
+
exportFields: FallbackFieldsMap.fromActivitiesToNotes,
|
|
4980
|
+
},
|
|
4981
|
+
{
|
|
4982
|
+
udm: 'emails',
|
|
4983
|
+
importFields: FallbackFieldsMap.fromEmailsToActivities,
|
|
4984
|
+
exportFields: FallbackFieldsMap.fromActivitiesToEmails,
|
|
4985
|
+
},
|
|
4986
|
+
],
|
|
4815
4987
|
};
|
|
4988
|
+
function populateFields(fields) {
|
|
4989
|
+
const result = JSON.parse(JSON.stringify(fields));
|
|
4990
|
+
if (!result.dueTime) {
|
|
4991
|
+
result.dueTime = result.endTime || result.startTime;
|
|
4992
|
+
}
|
|
4993
|
+
if (!result.startTime) {
|
|
4994
|
+
result.startTime = result.dueTime || result.endTime;
|
|
4995
|
+
}
|
|
4996
|
+
if (!result.endTime) {
|
|
4997
|
+
result.endTime = result.dueTime || result.startTime;
|
|
4998
|
+
}
|
|
4999
|
+
return result;
|
|
5000
|
+
}
|
|
4816
5001
|
|
|
4817
|
-
const
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
5002
|
+
const FIELDS_SCHEMA$F = {
|
|
5003
|
+
type: 'object',
|
|
5004
|
+
properties: {
|
|
5005
|
+
id: { type: 'string', readOnly: true },
|
|
5006
|
+
number: { type: 'string' },
|
|
5007
|
+
name: { type: 'string' },
|
|
5008
|
+
memo: { type: 'string' },
|
|
5009
|
+
status: { type: 'string' },
|
|
5010
|
+
paymentMethod: { type: 'string' },
|
|
5011
|
+
supplierId: { type: 'string', referenceUdm: 'suppliers' },
|
|
5012
|
+
currency: { type: 'string' },
|
|
5013
|
+
payments: {
|
|
5014
|
+
type: 'array',
|
|
5015
|
+
items: {
|
|
5016
|
+
type: 'string',
|
|
5017
|
+
referenceUdm: 'payments',
|
|
5018
|
+
},
|
|
5019
|
+
},
|
|
5020
|
+
lineItems: {
|
|
5021
|
+
type: 'array',
|
|
5022
|
+
items: {
|
|
5023
|
+
type: 'object',
|
|
5024
|
+
properties: {
|
|
5025
|
+
id: { type: 'string' },
|
|
5026
|
+
itemName: { type: 'string' },
|
|
5027
|
+
description: { type: 'string' },
|
|
5028
|
+
code: { type: 'string' },
|
|
5029
|
+
type: { type: 'string' },
|
|
5030
|
+
companyId: { type: 'string', referenceUdm: 'companies' },
|
|
5031
|
+
ledgerAccountId: { type: 'string', referenceUdm: 'ledger-accounts' },
|
|
5032
|
+
quantity: { type: 'number' },
|
|
5033
|
+
unitPrice: { type: 'number' },
|
|
5034
|
+
unitOfMeasure: { type: 'string' },
|
|
5035
|
+
purchasePrice: { type: 'number' },
|
|
5036
|
+
salesPrice: { type: 'number' },
|
|
5037
|
+
taxable: { type: 'boolean' },
|
|
5038
|
+
taxAmount: { type: 'number' },
|
|
5039
|
+
totalAmount: { type: 'number' },
|
|
4829
5040
|
},
|
|
4830
5041
|
},
|
|
4831
|
-
}
|
|
5042
|
+
},
|
|
5043
|
+
totalAmount: { type: 'number' },
|
|
5044
|
+
totalTax: { type: 'number' },
|
|
5045
|
+
exchangeRate: { type: 'number' },
|
|
5046
|
+
totalDiscount: { type: 'number' },
|
|
5047
|
+
subTotal: { type: 'number' },
|
|
5048
|
+
balance: { type: 'number' },
|
|
5049
|
+
ledgerAccountId: { type: 'string', referenceUdm: 'ledger-accounts' },
|
|
5050
|
+
issueDate: {
|
|
5051
|
+
type: 'string',
|
|
5052
|
+
format: 'date-time',
|
|
5053
|
+
},
|
|
5054
|
+
dueDate: {
|
|
5055
|
+
type: 'string',
|
|
5056
|
+
format: 'date-time',
|
|
5057
|
+
},
|
|
5058
|
+
paidOnDate: {
|
|
5059
|
+
type: 'string',
|
|
5060
|
+
format: 'date-time',
|
|
5061
|
+
},
|
|
5062
|
+
createdTime: { type: 'string', format: 'date-time', readOnly: true },
|
|
5063
|
+
createdBy: { type: 'string', referenceUdm: 'users', readOnly: true },
|
|
5064
|
+
updatedTime: { type: 'string', format: 'date-time', readOnly: true },
|
|
5065
|
+
updatedBy: { type: 'string', referenceUdm: 'users', readOnly: true },
|
|
4832
5066
|
},
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
type: 'object',
|
|
4841
|
-
properties: nonEmptyObjectProperties({
|
|
4842
|
-
filter: filterSchema,
|
|
4843
|
-
cursor: {
|
|
4844
|
-
type: 'string',
|
|
4845
|
-
description: 'Cursor returned in response to the previous "list" request',
|
|
4846
|
-
},
|
|
4847
|
-
credentials: credentialsSchema,
|
|
4848
|
-
}),
|
|
4849
|
-
};
|
|
5067
|
+
};
|
|
5068
|
+
const udm$F = {
|
|
5069
|
+
singularName: 'bill',
|
|
5070
|
+
pluralName: 'bills',
|
|
5071
|
+
fieldsSchema: FIELDS_SCHEMA$F,
|
|
5072
|
+
list: {
|
|
5073
|
+
filterFields: ['name', 'number', 'status', 'supplierId'],
|
|
4850
5074
|
},
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
return ({
|
|
4854
|
-
type: 'object',
|
|
4855
|
-
properties: {
|
|
4856
|
-
records: {
|
|
4857
|
-
type: 'array',
|
|
4858
|
-
items: (_a = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) !== null && _a !== void 0 ? _a : { type: 'object' },
|
|
4859
|
-
},
|
|
4860
|
-
cursor: {
|
|
4861
|
-
type: 'string',
|
|
4862
|
-
description: 'Cursor to request the next page of results',
|
|
4863
|
-
},
|
|
4864
|
-
},
|
|
4865
|
-
});
|
|
5075
|
+
match: {
|
|
5076
|
+
fields: ['name', 'number', 'status', 'supplierId'],
|
|
4866
5077
|
},
|
|
4867
|
-
supportedImplementationTypes: DataLocationMethodImplementationTypes,
|
|
4868
5078
|
};
|
|
4869
5079
|
|
|
4870
|
-
const
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
type: '
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
}
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
}),
|
|
4918
|
-
}),
|
|
4919
|
-
getOutputSchema: ({ collectionSpec }) => {
|
|
4920
|
-
var _a;
|
|
4921
|
-
return ({
|
|
4922
|
-
type: 'object',
|
|
4923
|
-
properties: {
|
|
4924
|
-
records: {
|
|
4925
|
-
type: 'array',
|
|
4926
|
-
items: (_a = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) !== null && _a !== void 0 ? _a : { type: 'object' },
|
|
4927
|
-
},
|
|
4928
|
-
cursor: { type: 'string' },
|
|
4929
|
-
},
|
|
4930
|
-
});
|
|
5080
|
+
const FIELDS_SCHEMA$E = {
|
|
5081
|
+
type: 'object',
|
|
5082
|
+
properties: {
|
|
5083
|
+
id: { type: 'string', readOnly: true },
|
|
5084
|
+
fullName: { type: 'string' },
|
|
5085
|
+
firstName: { type: 'string' },
|
|
5086
|
+
lastName: { type: 'string' },
|
|
5087
|
+
primaryEmail: { type: 'string' },
|
|
5088
|
+
campaignId: {
|
|
5089
|
+
type: 'string',
|
|
5090
|
+
referenceUdm: 'campaigns',
|
|
5091
|
+
},
|
|
5092
|
+
contactId: {
|
|
5093
|
+
type: 'string',
|
|
5094
|
+
referenceUdm: 'contacts',
|
|
5095
|
+
},
|
|
5096
|
+
leadId: {
|
|
5097
|
+
type: 'string',
|
|
5098
|
+
referenceUdm: 'leads',
|
|
5099
|
+
},
|
|
5100
|
+
source: { type: 'string' },
|
|
5101
|
+
status: { type: 'string' },
|
|
5102
|
+
companyId: {
|
|
5103
|
+
type: 'string',
|
|
5104
|
+
referenceUdm: 'companies',
|
|
5105
|
+
},
|
|
5106
|
+
jobTitle: { type: 'string' },
|
|
5107
|
+
hasOptedOutOfEmail: { type: 'boolean' },
|
|
5108
|
+
createdTime: {
|
|
5109
|
+
type: 'string',
|
|
5110
|
+
format: 'date-time',
|
|
5111
|
+
},
|
|
5112
|
+
createdBy: {
|
|
5113
|
+
type: 'string',
|
|
5114
|
+
readOnly: true,
|
|
5115
|
+
referenceUdm: 'users',
|
|
5116
|
+
},
|
|
5117
|
+
updatedTime: {
|
|
5118
|
+
type: 'string',
|
|
5119
|
+
readOnly: true,
|
|
5120
|
+
format: 'date-time',
|
|
5121
|
+
},
|
|
5122
|
+
updatedBy: {
|
|
5123
|
+
type: 'string',
|
|
5124
|
+
readOnly: true,
|
|
5125
|
+
referenceUdm: 'users',
|
|
5126
|
+
},
|
|
4931
5127
|
},
|
|
4932
|
-
supportedImplementationTypes: DataLocationMethodImplementationTypes,
|
|
4933
5128
|
};
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
type: 'array',
|
|
4950
|
-
items: { type: 'string', enum: fields },
|
|
4951
|
-
},
|
|
4952
|
-
},
|
|
4953
|
-
};
|
|
5129
|
+
const udm$E = {
|
|
5130
|
+
singularName: 'campaign-member',
|
|
5131
|
+
pluralName: 'campaign-members',
|
|
5132
|
+
fieldsSchema: FIELDS_SCHEMA$E,
|
|
5133
|
+
list: {
|
|
5134
|
+
filterFields: [
|
|
5135
|
+
'primaryEmail',
|
|
5136
|
+
'fullName',
|
|
5137
|
+
'firstName',
|
|
5138
|
+
'lastName',
|
|
5139
|
+
'campaignId',
|
|
5140
|
+
'contactId',
|
|
5141
|
+
'leadId',
|
|
5142
|
+
'companyId',
|
|
5143
|
+
],
|
|
4954
5144
|
},
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
let fieldsSchema = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema;
|
|
4958
|
-
if (method === null || method === void 0 ? void 0 : method.fields) {
|
|
4959
|
-
fieldsSchema = pickFieldsFromSchema(fieldsSchema, method.fields);
|
|
4960
|
-
}
|
|
4961
|
-
if (method === null || method === void 0 ? void 0 : method.excludedFields) {
|
|
4962
|
-
fieldsSchema = excludeFieldsFromSchema(fieldsSchema, method.excludedFields);
|
|
4963
|
-
}
|
|
4964
|
-
return {
|
|
4965
|
-
type: 'object',
|
|
4966
|
-
properties: nonEmptyObjectProperties({
|
|
4967
|
-
id: {
|
|
4968
|
-
type: 'string',
|
|
4969
|
-
referenceCollection: { key: collectionHandler === null || collectionHandler === void 0 ? void 0 : collectionHandler.key, parameters },
|
|
4970
|
-
},
|
|
4971
|
-
fields: (_a = transformVariablesWith(fieldsSchema, (locator) => `fields.${locatorToField(locator)}`)) !== null && _a !== void 0 ? _a : {
|
|
4972
|
-
type: 'object',
|
|
4973
|
-
},
|
|
4974
|
-
credentials: credentialsSchema,
|
|
4975
|
-
}),
|
|
4976
|
-
};
|
|
5145
|
+
match: {
|
|
5146
|
+
fields: ['primaryEmail', 'fullName', 'firstName', 'lastName', 'campaignId', 'contactId', 'leadId', 'companyId'],
|
|
4977
5147
|
},
|
|
4978
|
-
getOutputSchema: ({}) => ({
|
|
4979
|
-
type: 'object',
|
|
4980
|
-
properties: {
|
|
4981
|
-
id: { type: 'string' },
|
|
4982
|
-
},
|
|
4983
|
-
}),
|
|
4984
|
-
supportedImplementationTypes: DataLocationMethodImplementationTypes,
|
|
4985
5148
|
};
|
|
4986
5149
|
|
|
4987
|
-
const FIELDS_SCHEMA$
|
|
5150
|
+
const FIELDS_SCHEMA$D = {
|
|
4988
5151
|
type: 'object',
|
|
4989
5152
|
properties: {
|
|
4990
5153
|
id: { type: 'string', readOnly: true },
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
type: { type: 'string' },
|
|
4994
|
-
durationSeconds: { type: 'number' },
|
|
4995
|
-
location: { type: 'string' },
|
|
4996
|
-
isRecurrent: { type: 'boolean' },
|
|
4997
|
-
participants: {
|
|
4998
|
-
type: 'array',
|
|
4999
|
-
items: {
|
|
5000
|
-
type: 'object',
|
|
5001
|
-
properties: {
|
|
5002
|
-
userId: { type: 'string' },
|
|
5003
|
-
contactId: { type: 'string' },
|
|
5004
|
-
},
|
|
5005
|
-
},
|
|
5154
|
+
name: {
|
|
5155
|
+
type: 'string',
|
|
5006
5156
|
},
|
|
5007
|
-
|
|
5008
|
-
|
|
5157
|
+
cost: {
|
|
5158
|
+
type: 'number',
|
|
5159
|
+
},
|
|
5160
|
+
description: {
|
|
5009
5161
|
type: 'string',
|
|
5010
|
-
referenceUdm: 'contacts',
|
|
5011
5162
|
},
|
|
5012
|
-
|
|
5163
|
+
source: {
|
|
5013
5164
|
type: 'string',
|
|
5014
|
-
referenceUdm: 'companies',
|
|
5015
5165
|
},
|
|
5016
|
-
|
|
5166
|
+
stage: {
|
|
5017
5167
|
type: 'string',
|
|
5018
|
-
referenceUdm: 'deals',
|
|
5019
5168
|
},
|
|
5020
|
-
|
|
5169
|
+
type: {
|
|
5021
5170
|
type: 'string',
|
|
5022
|
-
referenceUdm: 'leads',
|
|
5023
5171
|
},
|
|
5024
5172
|
ownerId: {
|
|
5025
5173
|
type: 'string',
|
|
5026
5174
|
referenceUdm: 'users',
|
|
5027
5175
|
},
|
|
5176
|
+
sentCount: {
|
|
5177
|
+
type: 'number',
|
|
5178
|
+
readOnly: true,
|
|
5179
|
+
},
|
|
5180
|
+
replyCount: {
|
|
5181
|
+
type: 'number',
|
|
5182
|
+
readOnly: true,
|
|
5183
|
+
},
|
|
5184
|
+
openCount: {
|
|
5185
|
+
type: 'number',
|
|
5186
|
+
readOnly: true,
|
|
5187
|
+
},
|
|
5188
|
+
clickCount: {
|
|
5189
|
+
type: 'number',
|
|
5190
|
+
readOnly: true,
|
|
5191
|
+
},
|
|
5028
5192
|
startTime: {
|
|
5029
5193
|
type: 'string',
|
|
5030
5194
|
format: 'date-time',
|
|
@@ -5033,10 +5197,6 @@ const FIELDS_SCHEMA$G = {
|
|
|
5033
5197
|
type: 'string',
|
|
5034
5198
|
format: 'date-time',
|
|
5035
5199
|
},
|
|
5036
|
-
dueTime: {
|
|
5037
|
-
type: 'string',
|
|
5038
|
-
format: 'date-time',
|
|
5039
|
-
},
|
|
5040
5200
|
createdTime: {
|
|
5041
5201
|
type: 'string',
|
|
5042
5202
|
format: 'date-time',
|
|
@@ -5057,477 +5217,167 @@ const FIELDS_SCHEMA$G = {
|
|
|
5057
5217
|
referenceUdm: 'users',
|
|
5058
5218
|
readOnly: true,
|
|
5059
5219
|
},
|
|
5220
|
+
lastActivityTime: {
|
|
5221
|
+
type: 'string',
|
|
5222
|
+
format: 'date-time',
|
|
5223
|
+
readOnly: true,
|
|
5224
|
+
},
|
|
5060
5225
|
},
|
|
5061
5226
|
};
|
|
5062
|
-
const
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5227
|
+
const MODIFIABLE_FIELDS$2 = ['name', 'description', 'ownerId', 'startTime', 'endTime', 'cost', 'source', 'stage', 'type'];
|
|
5228
|
+
const udm$D = {
|
|
5229
|
+
singularName: 'campaign',
|
|
5230
|
+
pluralName: 'campaigns',
|
|
5231
|
+
fieldsSchema: FIELDS_SCHEMA$D,
|
|
5232
|
+
categories: ['Marketing Automation', 'Sales', 'CRM', 'Ads'],
|
|
5233
|
+
list: {
|
|
5234
|
+
filterFields: ['name', 'source', 'stage', 'type', 'ownerId'],
|
|
5070
5235
|
},
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
$var: 'subject',
|
|
5074
|
-
},
|
|
5075
|
-
description: {
|
|
5076
|
-
$var: 'content',
|
|
5077
|
-
},
|
|
5236
|
+
find: {
|
|
5237
|
+
queryFields: ['name', 'source', 'stage', 'type', 'ownerId'],
|
|
5078
5238
|
},
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
$var: 'description',
|
|
5082
|
-
},
|
|
5239
|
+
match: {
|
|
5240
|
+
fields: ['name', 'source', 'stage', 'type', 'ownerId'],
|
|
5083
5241
|
},
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
$var: 'content',
|
|
5087
|
-
},
|
|
5088
|
-
},
|
|
5089
|
-
fromActivitiesToEmails: {
|
|
5090
|
-
subject: {
|
|
5091
|
-
$var: 'title',
|
|
5092
|
-
},
|
|
5093
|
-
body: {
|
|
5094
|
-
$var: 'description',
|
|
5095
|
-
},
|
|
5242
|
+
create: {
|
|
5243
|
+
fields: MODIFIABLE_FIELDS$2,
|
|
5096
5244
|
},
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
$var: 'subject',
|
|
5100
|
-
},
|
|
5101
|
-
description: {
|
|
5102
|
-
$var: 'body',
|
|
5103
|
-
},
|
|
5245
|
+
update: {
|
|
5246
|
+
fields: MODIFIABLE_FIELDS$2,
|
|
5104
5247
|
},
|
|
5105
5248
|
};
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5249
|
+
|
|
5250
|
+
const AddressSchema = {
|
|
5251
|
+
type: 'object',
|
|
5252
|
+
properties: {
|
|
5253
|
+
type: { type: 'string' },
|
|
5254
|
+
full: { type: 'string' },
|
|
5255
|
+
street: { type: 'string' },
|
|
5256
|
+
city: { type: 'string' },
|
|
5257
|
+
state: { type: 'string' },
|
|
5258
|
+
country: { type: 'string' },
|
|
5259
|
+
zip: { type: 'string' },
|
|
5112
5260
|
},
|
|
5113
|
-
|
|
5114
|
-
|
|
5261
|
+
};
|
|
5262
|
+
const PhoneEmailSchema = {
|
|
5263
|
+
type: 'object',
|
|
5264
|
+
properties: {
|
|
5265
|
+
value: { type: 'string' },
|
|
5266
|
+
type: { type: 'string' },
|
|
5115
5267
|
},
|
|
5116
|
-
populateFields,
|
|
5117
|
-
udmFallbacks: [
|
|
5118
|
-
{
|
|
5119
|
-
udm: 'tasks',
|
|
5120
|
-
importFields: FallbackFieldsMap.fromTasksToActivities,
|
|
5121
|
-
exportFields: FallbackFieldsMap.fromActivitiesToTasks,
|
|
5122
|
-
},
|
|
5123
|
-
{
|
|
5124
|
-
udm: 'meetings',
|
|
5125
|
-
},
|
|
5126
|
-
{
|
|
5127
|
-
udm: 'notes',
|
|
5128
|
-
importFields: FallbackFieldsMap.fromNotesToActivities,
|
|
5129
|
-
exportFields: FallbackFieldsMap.fromActivitiesToNotes,
|
|
5130
|
-
},
|
|
5131
|
-
{
|
|
5132
|
-
udm: 'emails',
|
|
5133
|
-
importFields: FallbackFieldsMap.fromEmailsToActivities,
|
|
5134
|
-
exportFields: FallbackFieldsMap.fromActivitiesToEmails,
|
|
5135
|
-
},
|
|
5136
|
-
],
|
|
5137
5268
|
};
|
|
5138
|
-
function populateFields(fields) {
|
|
5139
|
-
const result = JSON.parse(JSON.stringify(fields));
|
|
5140
|
-
if (!result.dueTime) {
|
|
5141
|
-
result.dueTime = result.endTime || result.startTime;
|
|
5142
|
-
}
|
|
5143
|
-
if (!result.startTime) {
|
|
5144
|
-
result.startTime = result.dueTime || result.endTime;
|
|
5145
|
-
}
|
|
5146
|
-
if (!result.endTime) {
|
|
5147
|
-
result.endTime = result.dueTime || result.startTime;
|
|
5148
|
-
}
|
|
5149
|
-
return result;
|
|
5150
|
-
}
|
|
5151
5269
|
|
|
5152
|
-
const FIELDS_SCHEMA$
|
|
5270
|
+
const FIELDS_SCHEMA$C = {
|
|
5153
5271
|
type: 'object',
|
|
5154
5272
|
properties: {
|
|
5155
5273
|
id: { type: 'string', readOnly: true },
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
memo: { type: 'string' },
|
|
5159
|
-
status: { type: 'string' },
|
|
5160
|
-
paymentMethod: { type: 'string' },
|
|
5161
|
-
supplierId: { type: 'string', referenceUdm: 'suppliers' },
|
|
5162
|
-
currency: { type: 'string' },
|
|
5163
|
-
payments: {
|
|
5164
|
-
type: 'array',
|
|
5165
|
-
items: {
|
|
5166
|
-
type: 'string',
|
|
5167
|
-
referenceUdm: 'payments',
|
|
5168
|
-
},
|
|
5274
|
+
name: {
|
|
5275
|
+
type: 'string',
|
|
5169
5276
|
},
|
|
5170
|
-
|
|
5277
|
+
websiteUrl: {
|
|
5278
|
+
type: 'string',
|
|
5279
|
+
},
|
|
5280
|
+
phones: {
|
|
5171
5281
|
type: 'array',
|
|
5172
|
-
items:
|
|
5173
|
-
type: 'object',
|
|
5174
|
-
properties: {
|
|
5175
|
-
id: { type: 'string' },
|
|
5176
|
-
itemName: { type: 'string' },
|
|
5177
|
-
description: { type: 'string' },
|
|
5178
|
-
code: { type: 'string' },
|
|
5179
|
-
type: { type: 'string' },
|
|
5180
|
-
companyId: { type: 'string', referenceUdm: 'companies' },
|
|
5181
|
-
ledgerAccountId: { type: 'string', referenceUdm: 'ledger-accounts' },
|
|
5182
|
-
quantity: { type: 'number' },
|
|
5183
|
-
unitPrice: { type: 'number' },
|
|
5184
|
-
unitOfMeasure: { type: 'string' },
|
|
5185
|
-
purchasePrice: { type: 'number' },
|
|
5186
|
-
salesPrice: { type: 'number' },
|
|
5187
|
-
taxable: { type: 'boolean' },
|
|
5188
|
-
taxAmount: { type: 'number' },
|
|
5189
|
-
totalAmount: { type: 'number' },
|
|
5190
|
-
},
|
|
5191
|
-
},
|
|
5282
|
+
items: PhoneEmailSchema,
|
|
5192
5283
|
},
|
|
5193
|
-
|
|
5194
|
-
totalTax: { type: 'number' },
|
|
5195
|
-
exchangeRate: { type: 'number' },
|
|
5196
|
-
totalDiscount: { type: 'number' },
|
|
5197
|
-
subTotal: { type: 'number' },
|
|
5198
|
-
balance: { type: 'number' },
|
|
5199
|
-
ledgerAccountId: { type: 'string', referenceUdm: 'ledger-accounts' },
|
|
5200
|
-
issueDate: {
|
|
5284
|
+
primaryPhone: {
|
|
5201
5285
|
type: 'string',
|
|
5202
|
-
format: 'date-time',
|
|
5203
5286
|
},
|
|
5204
|
-
|
|
5287
|
+
description: {
|
|
5205
5288
|
type: 'string',
|
|
5206
|
-
format: 'date-time',
|
|
5207
5289
|
},
|
|
5208
|
-
|
|
5290
|
+
currency: {
|
|
5209
5291
|
type: 'string',
|
|
5210
|
-
format: 'date-time',
|
|
5211
5292
|
},
|
|
5212
|
-
|
|
5213
|
-
createdBy: { type: 'string', referenceUdm: 'users', readOnly: true },
|
|
5214
|
-
updatedTime: { type: 'string', format: 'date-time', readOnly: true },
|
|
5215
|
-
updatedBy: { type: 'string', referenceUdm: 'users', readOnly: true },
|
|
5216
|
-
},
|
|
5217
|
-
};
|
|
5218
|
-
const udm$F = {
|
|
5219
|
-
singularName: 'bill',
|
|
5220
|
-
pluralName: 'bills',
|
|
5221
|
-
fieldsSchema: FIELDS_SCHEMA$F,
|
|
5222
|
-
list: {
|
|
5223
|
-
filterFields: ['name', 'number', 'status', 'supplierId'],
|
|
5224
|
-
},
|
|
5225
|
-
match: {
|
|
5226
|
-
fields: ['name', 'number', 'status', 'supplierId'],
|
|
5227
|
-
},
|
|
5228
|
-
};
|
|
5229
|
-
|
|
5230
|
-
const FIELDS_SCHEMA$E = {
|
|
5231
|
-
type: 'object',
|
|
5232
|
-
properties: {
|
|
5233
|
-
id: { type: 'string', readOnly: true },
|
|
5234
|
-
fullName: { type: 'string' },
|
|
5235
|
-
firstName: { type: 'string' },
|
|
5236
|
-
lastName: { type: 'string' },
|
|
5237
|
-
primaryEmail: { type: 'string' },
|
|
5238
|
-
campaignId: {
|
|
5293
|
+
industry: {
|
|
5239
5294
|
type: 'string',
|
|
5240
|
-
referenceUdm: 'campaigns',
|
|
5241
5295
|
},
|
|
5242
|
-
|
|
5296
|
+
ownerId: {
|
|
5243
5297
|
type: 'string',
|
|
5244
|
-
referenceUdm: '
|
|
5298
|
+
referenceUdm: 'users',
|
|
5245
5299
|
},
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5300
|
+
primaryAddress: AddressSchema,
|
|
5301
|
+
addresses: {
|
|
5302
|
+
type: 'array',
|
|
5303
|
+
items: AddressSchema,
|
|
5249
5304
|
},
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
companyId: {
|
|
5253
|
-
type: 'string',
|
|
5254
|
-
referenceUdm: 'companies',
|
|
5305
|
+
numberOfEmployees: {
|
|
5306
|
+
type: 'number',
|
|
5255
5307
|
},
|
|
5256
|
-
jobTitle: { type: 'string' },
|
|
5257
|
-
hasOptedOutOfEmail: { type: 'boolean' },
|
|
5258
5308
|
createdTime: {
|
|
5259
5309
|
type: 'string',
|
|
5260
5310
|
format: 'date-time',
|
|
5261
5311
|
},
|
|
5262
5312
|
createdBy: {
|
|
5263
5313
|
type: 'string',
|
|
5264
|
-
readOnly: true,
|
|
5265
5314
|
referenceUdm: 'users',
|
|
5315
|
+
readOnly: true,
|
|
5266
5316
|
},
|
|
5267
5317
|
updatedTime: {
|
|
5268
5318
|
type: 'string',
|
|
5269
|
-
readOnly: true,
|
|
5270
5319
|
format: 'date-time',
|
|
5320
|
+
readOnly: true,
|
|
5271
5321
|
},
|
|
5272
5322
|
updatedBy: {
|
|
5273
5323
|
type: 'string',
|
|
5274
|
-
readOnly: true,
|
|
5275
5324
|
referenceUdm: 'users',
|
|
5325
|
+
readOnly: true,
|
|
5326
|
+
},
|
|
5327
|
+
lastActivityTime: {
|
|
5328
|
+
type: 'string',
|
|
5329
|
+
format: 'date-time',
|
|
5330
|
+
readOnly: true,
|
|
5276
5331
|
},
|
|
5277
5332
|
},
|
|
5278
5333
|
};
|
|
5279
|
-
const udm$
|
|
5280
|
-
singularName: '
|
|
5281
|
-
pluralName: '
|
|
5282
|
-
fieldsSchema: FIELDS_SCHEMA$
|
|
5334
|
+
const udm$C = {
|
|
5335
|
+
singularName: 'company',
|
|
5336
|
+
pluralName: 'companies',
|
|
5337
|
+
fieldsSchema: FIELDS_SCHEMA$C,
|
|
5283
5338
|
list: {
|
|
5284
|
-
filterFields: [
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
'lastName',
|
|
5289
|
-
'campaignId',
|
|
5290
|
-
'contactId',
|
|
5291
|
-
'leadId',
|
|
5292
|
-
'companyId',
|
|
5293
|
-
],
|
|
5339
|
+
filterFields: ['ownerId', 'name', 'websiteUrl', 'industry'],
|
|
5340
|
+
},
|
|
5341
|
+
find: {
|
|
5342
|
+
queryFields: ['ownerId', 'name', 'websiteUrl', 'industry'],
|
|
5294
5343
|
},
|
|
5295
5344
|
match: {
|
|
5296
|
-
fields: ['
|
|
5345
|
+
fields: ['ownerId', 'name', 'websiteUrl', 'industry'],
|
|
5346
|
+
},
|
|
5347
|
+
fieldFallbacks: {
|
|
5348
|
+
'primaryAddress.full': [
|
|
5349
|
+
{
|
|
5350
|
+
$concat: {
|
|
5351
|
+
values: [
|
|
5352
|
+
{ $var: 'primaryAddress.street' },
|
|
5353
|
+
{ $var: 'primaryAddress.city' },
|
|
5354
|
+
{ $var: 'primaryAddress.state' },
|
|
5355
|
+
{ $var: 'primaryAddress.zip' },
|
|
5356
|
+
{ $var: 'primaryAddress.country' },
|
|
5357
|
+
],
|
|
5358
|
+
delimiter: ', ',
|
|
5359
|
+
},
|
|
5360
|
+
},
|
|
5361
|
+
],
|
|
5297
5362
|
},
|
|
5298
5363
|
};
|
|
5299
5364
|
|
|
5300
|
-
const FIELDS_SCHEMA$
|
|
5365
|
+
const FIELDS_SCHEMA$B = {
|
|
5301
5366
|
type: 'object',
|
|
5302
5367
|
properties: {
|
|
5303
5368
|
id: { type: 'string', readOnly: true },
|
|
5304
|
-
name: {
|
|
5369
|
+
name: { type: 'string' },
|
|
5370
|
+
description: { type: 'string' },
|
|
5371
|
+
source: { type: 'string' },
|
|
5372
|
+
type: { type: 'string' },
|
|
5373
|
+
ownerId: {
|
|
5305
5374
|
type: 'string',
|
|
5375
|
+
referenceUdm: 'users',
|
|
5306
5376
|
},
|
|
5307
|
-
|
|
5308
|
-
type: 'number',
|
|
5309
|
-
},
|
|
5310
|
-
description: {
|
|
5377
|
+
createdTime: {
|
|
5311
5378
|
type: 'string',
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
type: 'string',
|
|
5315
|
-
},
|
|
5316
|
-
stage: {
|
|
5317
|
-
type: 'string',
|
|
5318
|
-
},
|
|
5319
|
-
type: {
|
|
5320
|
-
type: 'string',
|
|
5321
|
-
},
|
|
5322
|
-
ownerId: {
|
|
5323
|
-
type: 'string',
|
|
5324
|
-
referenceUdm: 'users',
|
|
5325
|
-
},
|
|
5326
|
-
sentCount: {
|
|
5327
|
-
type: 'number',
|
|
5328
|
-
readOnly: true,
|
|
5329
|
-
},
|
|
5330
|
-
replyCount: {
|
|
5331
|
-
type: 'number',
|
|
5332
|
-
readOnly: true,
|
|
5333
|
-
},
|
|
5334
|
-
openCount: {
|
|
5335
|
-
type: 'number',
|
|
5336
|
-
readOnly: true,
|
|
5337
|
-
},
|
|
5338
|
-
clickCount: {
|
|
5339
|
-
type: 'number',
|
|
5340
|
-
readOnly: true,
|
|
5341
|
-
},
|
|
5342
|
-
startTime: {
|
|
5343
|
-
type: 'string',
|
|
5344
|
-
format: 'date-time',
|
|
5345
|
-
},
|
|
5346
|
-
endTime: {
|
|
5347
|
-
type: 'string',
|
|
5348
|
-
format: 'date-time',
|
|
5349
|
-
},
|
|
5350
|
-
createdTime: {
|
|
5351
|
-
type: 'string',
|
|
5352
|
-
format: 'date-time',
|
|
5353
|
-
readOnly: true,
|
|
5354
|
-
},
|
|
5355
|
-
createdBy: {
|
|
5356
|
-
type: 'string',
|
|
5357
|
-
referenceUdm: 'users',
|
|
5358
|
-
readOnly: true,
|
|
5359
|
-
},
|
|
5360
|
-
updatedTime: {
|
|
5361
|
-
type: 'string',
|
|
5362
|
-
format: 'date-time',
|
|
5363
|
-
readOnly: true,
|
|
5364
|
-
},
|
|
5365
|
-
updatedBy: {
|
|
5366
|
-
type: 'string',
|
|
5367
|
-
referenceUdm: 'users',
|
|
5368
|
-
readOnly: true,
|
|
5369
|
-
},
|
|
5370
|
-
lastActivityTime: {
|
|
5371
|
-
type: 'string',
|
|
5372
|
-
format: 'date-time',
|
|
5373
|
-
readOnly: true,
|
|
5374
|
-
},
|
|
5375
|
-
},
|
|
5376
|
-
};
|
|
5377
|
-
const MODIFIABLE_FIELDS$2 = ['name', 'description', 'ownerId', 'startTime', 'endTime', 'cost', 'source', 'stage', 'type'];
|
|
5378
|
-
const udm$D = {
|
|
5379
|
-
singularName: 'campaign',
|
|
5380
|
-
pluralName: 'campaigns',
|
|
5381
|
-
fieldsSchema: FIELDS_SCHEMA$D,
|
|
5382
|
-
categories: ['Marketing Automation', 'Sales', 'CRM', 'Ads'],
|
|
5383
|
-
list: {
|
|
5384
|
-
filterFields: ['name', 'source', 'stage', 'type', 'ownerId'],
|
|
5385
|
-
},
|
|
5386
|
-
find: {
|
|
5387
|
-
queryFields: ['name', 'source', 'stage', 'type', 'ownerId'],
|
|
5388
|
-
},
|
|
5389
|
-
match: {
|
|
5390
|
-
fields: ['name', 'source', 'stage', 'type', 'ownerId'],
|
|
5391
|
-
},
|
|
5392
|
-
create: {
|
|
5393
|
-
fields: MODIFIABLE_FIELDS$2,
|
|
5394
|
-
},
|
|
5395
|
-
update: {
|
|
5396
|
-
fields: MODIFIABLE_FIELDS$2,
|
|
5397
|
-
},
|
|
5398
|
-
};
|
|
5399
|
-
|
|
5400
|
-
const AddressSchema = {
|
|
5401
|
-
type: 'object',
|
|
5402
|
-
properties: {
|
|
5403
|
-
type: { type: 'string' },
|
|
5404
|
-
full: { type: 'string' },
|
|
5405
|
-
street: { type: 'string' },
|
|
5406
|
-
city: { type: 'string' },
|
|
5407
|
-
state: { type: 'string' },
|
|
5408
|
-
country: { type: 'string' },
|
|
5409
|
-
zip: { type: 'string' },
|
|
5410
|
-
},
|
|
5411
|
-
};
|
|
5412
|
-
const PhoneEmailSchema = {
|
|
5413
|
-
type: 'object',
|
|
5414
|
-
properties: {
|
|
5415
|
-
value: { type: 'string' },
|
|
5416
|
-
type: { type: 'string' },
|
|
5417
|
-
},
|
|
5418
|
-
};
|
|
5419
|
-
|
|
5420
|
-
const FIELDS_SCHEMA$C = {
|
|
5421
|
-
type: 'object',
|
|
5422
|
-
properties: {
|
|
5423
|
-
id: { type: 'string', readOnly: true },
|
|
5424
|
-
name: {
|
|
5425
|
-
type: 'string',
|
|
5426
|
-
},
|
|
5427
|
-
websiteUrl: {
|
|
5428
|
-
type: 'string',
|
|
5429
|
-
},
|
|
5430
|
-
phones: {
|
|
5431
|
-
type: 'array',
|
|
5432
|
-
items: PhoneEmailSchema,
|
|
5433
|
-
},
|
|
5434
|
-
primaryPhone: {
|
|
5435
|
-
type: 'string',
|
|
5436
|
-
},
|
|
5437
|
-
description: {
|
|
5438
|
-
type: 'string',
|
|
5439
|
-
},
|
|
5440
|
-
currency: {
|
|
5441
|
-
type: 'string',
|
|
5442
|
-
},
|
|
5443
|
-
industry: {
|
|
5444
|
-
type: 'string',
|
|
5445
|
-
},
|
|
5446
|
-
ownerId: {
|
|
5447
|
-
type: 'string',
|
|
5448
|
-
referenceUdm: 'users',
|
|
5449
|
-
},
|
|
5450
|
-
primaryAddress: AddressSchema,
|
|
5451
|
-
addresses: {
|
|
5452
|
-
type: 'array',
|
|
5453
|
-
items: AddressSchema,
|
|
5454
|
-
},
|
|
5455
|
-
numberOfEmployees: {
|
|
5456
|
-
type: 'number',
|
|
5457
|
-
},
|
|
5458
|
-
createdTime: {
|
|
5459
|
-
type: 'string',
|
|
5460
|
-
format: 'date-time',
|
|
5461
|
-
},
|
|
5462
|
-
createdBy: {
|
|
5463
|
-
type: 'string',
|
|
5464
|
-
referenceUdm: 'users',
|
|
5465
|
-
readOnly: true,
|
|
5466
|
-
},
|
|
5467
|
-
updatedTime: {
|
|
5468
|
-
type: 'string',
|
|
5469
|
-
format: 'date-time',
|
|
5470
|
-
readOnly: true,
|
|
5471
|
-
},
|
|
5472
|
-
updatedBy: {
|
|
5473
|
-
type: 'string',
|
|
5474
|
-
referenceUdm: 'users',
|
|
5475
|
-
readOnly: true,
|
|
5476
|
-
},
|
|
5477
|
-
lastActivityTime: {
|
|
5478
|
-
type: 'string',
|
|
5479
|
-
format: 'date-time',
|
|
5480
|
-
readOnly: true,
|
|
5481
|
-
},
|
|
5482
|
-
},
|
|
5483
|
-
};
|
|
5484
|
-
const udm$C = {
|
|
5485
|
-
singularName: 'company',
|
|
5486
|
-
pluralName: 'companies',
|
|
5487
|
-
fieldsSchema: FIELDS_SCHEMA$C,
|
|
5488
|
-
list: {
|
|
5489
|
-
filterFields: ['ownerId', 'name', 'websiteUrl', 'industry'],
|
|
5490
|
-
},
|
|
5491
|
-
find: {
|
|
5492
|
-
queryFields: ['ownerId', 'name', 'websiteUrl', 'industry'],
|
|
5493
|
-
},
|
|
5494
|
-
match: {
|
|
5495
|
-
fields: ['ownerId', 'name', 'websiteUrl', 'industry'],
|
|
5496
|
-
},
|
|
5497
|
-
fieldFallbacks: {
|
|
5498
|
-
'primaryAddress.full': [
|
|
5499
|
-
{
|
|
5500
|
-
$concat: {
|
|
5501
|
-
values: [
|
|
5502
|
-
{ $var: 'primaryAddress.street' },
|
|
5503
|
-
{ $var: 'primaryAddress.city' },
|
|
5504
|
-
{ $var: 'primaryAddress.state' },
|
|
5505
|
-
{ $var: 'primaryAddress.zip' },
|
|
5506
|
-
{ $var: 'primaryAddress.country' },
|
|
5507
|
-
],
|
|
5508
|
-
delimiter: ', ',
|
|
5509
|
-
},
|
|
5510
|
-
},
|
|
5511
|
-
],
|
|
5512
|
-
},
|
|
5513
|
-
};
|
|
5514
|
-
|
|
5515
|
-
const FIELDS_SCHEMA$B = {
|
|
5516
|
-
type: 'object',
|
|
5517
|
-
properties: {
|
|
5518
|
-
id: { type: 'string', readOnly: true },
|
|
5519
|
-
name: { type: 'string' },
|
|
5520
|
-
description: { type: 'string' },
|
|
5521
|
-
source: { type: 'string' },
|
|
5522
|
-
type: { type: 'string' },
|
|
5523
|
-
ownerId: {
|
|
5524
|
-
type: 'string',
|
|
5525
|
-
referenceUdm: 'users',
|
|
5526
|
-
},
|
|
5527
|
-
createdTime: {
|
|
5528
|
-
type: 'string',
|
|
5529
|
-
format: 'date-time',
|
|
5530
|
-
readOnly: true,
|
|
5379
|
+
format: 'date-time',
|
|
5380
|
+
readOnly: true,
|
|
5531
5381
|
},
|
|
5532
5382
|
createdBy: {
|
|
5533
5383
|
type: 'string',
|
|
@@ -7945,173 +7795,6 @@ const udm = {
|
|
|
7945
7795
|
},
|
|
7946
7796
|
};
|
|
7947
7797
|
|
|
7948
|
-
const structuredClone$1 = (structuredClonePolyfill === null || structuredClonePolyfill === void 0 ? void 0 : structuredClonePolyfill.default) || structuredClonePolyfill;
|
|
7949
|
-
function isNil(value) {
|
|
7950
|
-
return value == null;
|
|
7951
|
-
}
|
|
7952
|
-
function omitBy(obj, check) {
|
|
7953
|
-
obj = { ...obj };
|
|
7954
|
-
Object.entries(obj).forEach(([key, value]) => check(value) && delete obj[key]);
|
|
7955
|
-
return obj;
|
|
7956
|
-
}
|
|
7957
|
-
function isEmptyValue(value) {
|
|
7958
|
-
if (isNil(value)) {
|
|
7959
|
-
return true;
|
|
7960
|
-
}
|
|
7961
|
-
if (typeof value === 'symbol') {
|
|
7962
|
-
return true;
|
|
7963
|
-
}
|
|
7964
|
-
if (typeof value === 'boolean') {
|
|
7965
|
-
return false;
|
|
7966
|
-
}
|
|
7967
|
-
if (typeof value === 'number') {
|
|
7968
|
-
return isNaN(value);
|
|
7969
|
-
}
|
|
7970
|
-
if (typeof value === 'string') {
|
|
7971
|
-
return value.trim().length === 0;
|
|
7972
|
-
}
|
|
7973
|
-
const tag = value.toString();
|
|
7974
|
-
if (tag === '[object Map]' || tag === '[object Set]') {
|
|
7975
|
-
return !value.size;
|
|
7976
|
-
}
|
|
7977
|
-
return typeof value === 'object' && Object.keys(value).length === 0;
|
|
7978
|
-
}
|
|
7979
|
-
const simpleUniqueId = () => {
|
|
7980
|
-
return Math.floor(Math.random() * Number.MAX_SAFE_INTEGER)
|
|
7981
|
-
.toString(36)
|
|
7982
|
-
.padStart(11, '0')
|
|
7983
|
-
.substring(0, 11);
|
|
7984
|
-
};
|
|
7985
|
-
|
|
7986
|
-
function getDataLocationMethodPath(locationKey, methodKey) {
|
|
7987
|
-
return `data/${locationKey}/${toKebabCase(methodKey)}`;
|
|
7988
|
-
}
|
|
7989
|
-
function dataLocationParametersMatch({ locationParameters, targetParameters, }) {
|
|
7990
|
-
targetParameters = typeof targetParameters === 'object' && targetParameters ? targetParameters : {};
|
|
7991
|
-
locationParameters = typeof locationParameters === 'object' && locationParameters ? locationParameters : {};
|
|
7992
|
-
for (const [key, value] of Object.entries(targetParameters)) {
|
|
7993
|
-
if (locationParameters[key] !== value) {
|
|
7994
|
-
return false;
|
|
7995
|
-
}
|
|
7996
|
-
}
|
|
7997
|
-
return true;
|
|
7998
|
-
}
|
|
7999
|
-
function parseDataLocationPath(path) {
|
|
8000
|
-
if (!path) {
|
|
8001
|
-
return undefined;
|
|
8002
|
-
}
|
|
8003
|
-
if (path.startsWith('/')) {
|
|
8004
|
-
path = path.slice(1);
|
|
8005
|
-
}
|
|
8006
|
-
if (!path.startsWith('data/')) {
|
|
8007
|
-
throw new Error(`Invalid data location path: ${path}. It should start with "data/"`);
|
|
8008
|
-
}
|
|
8009
|
-
path = path.slice(5);
|
|
8010
|
-
const [key, query] = path.split('?');
|
|
8011
|
-
const parameters = Object.fromEntries(new URLSearchParams(query).entries());
|
|
8012
|
-
return { key, parameters };
|
|
8013
|
-
}
|
|
8014
|
-
function makeDataLocationPath(pointer) {
|
|
8015
|
-
var _a;
|
|
8016
|
-
const normalizedPointer = normalizePointer(pointer);
|
|
8017
|
-
if (normalizedPointer === null || normalizedPointer === void 0 ? void 0 : normalizedPointer.key) {
|
|
8018
|
-
let path = `/data/${normalizedPointer.key}`;
|
|
8019
|
-
const parameters = omitBy((_a = normalizedPointer.parameters) !== null && _a !== void 0 ? _a : {}, isNil);
|
|
8020
|
-
if (Object.keys(parameters).length > 0) {
|
|
8021
|
-
path += `?${new URLSearchParams(parameters).toString()}`;
|
|
8022
|
-
}
|
|
8023
|
-
return path;
|
|
8024
|
-
}
|
|
8025
|
-
else {
|
|
8026
|
-
return undefined;
|
|
8027
|
-
}
|
|
8028
|
-
}
|
|
8029
|
-
function normalizePointer(pointer) {
|
|
8030
|
-
if (typeof pointer === 'string' && pointer.startsWith('/data/')) {
|
|
8031
|
-
return {
|
|
8032
|
-
key: pointer.slice(6),
|
|
8033
|
-
};
|
|
8034
|
-
}
|
|
8035
|
-
return pointer;
|
|
8036
|
-
}
|
|
8037
|
-
function makeDataLocationOperationPath(collectionPath, operation) {
|
|
8038
|
-
const [path, query] = (collectionPath !== null && collectionPath !== void 0 ? collectionPath : '').split('?');
|
|
8039
|
-
return urljoin(path, operation, query ? `?${query}` : '');
|
|
8040
|
-
}
|
|
8041
|
-
function isSameDataLocation(location1, location2) {
|
|
8042
|
-
if (location1.key !== location2.key) {
|
|
8043
|
-
return false;
|
|
8044
|
-
}
|
|
8045
|
-
const cleanParameters1 = location1.parameters && Object.keys(location1.parameters).length > 0 ? location1.parameters : undefined;
|
|
8046
|
-
const cleanParameters2 = location2.parameters && Object.keys(location2.parameters).length > 0 ? location2.parameters : undefined;
|
|
8047
|
-
if (!deepEqual(cleanParameters1, cleanParameters2)) {
|
|
8048
|
-
return false;
|
|
8049
|
-
}
|
|
8050
|
-
return true;
|
|
8051
|
-
}
|
|
8052
|
-
function isDataLocationMethodSupported(location, methodKey) {
|
|
8053
|
-
var _a;
|
|
8054
|
-
const method = (_a = location === null || location === void 0 ? void 0 : location.methods) === null || _a === void 0 ? void 0 : _a[methodKey];
|
|
8055
|
-
return method && method.implementationType !== ConnectorMethodImplementationType.notSupported;
|
|
8056
|
-
}
|
|
8057
|
-
function getDataCollectionCreateFields(spec) {
|
|
8058
|
-
if (!spec)
|
|
8059
|
-
return undefined;
|
|
8060
|
-
if (!spec.fieldsSchema)
|
|
8061
|
-
return undefined;
|
|
8062
|
-
if (!spec.create)
|
|
8063
|
-
return undefined;
|
|
8064
|
-
let schema = excludeReadOnlyFieldsFromSchema(spec.fieldsSchema);
|
|
8065
|
-
if (spec.create.fields) {
|
|
8066
|
-
schema = pickFieldsFromSchema(schema, spec.create.fields);
|
|
8067
|
-
}
|
|
8068
|
-
if (spec.create.excludedFields) {
|
|
8069
|
-
schema = excludeFieldsFromSchema(schema, spec.create.excludedFields);
|
|
8070
|
-
}
|
|
8071
|
-
return schema;
|
|
8072
|
-
}
|
|
8073
|
-
function getDataCollectionUpdateFields(spec) {
|
|
8074
|
-
if (!spec)
|
|
8075
|
-
return undefined;
|
|
8076
|
-
if (!spec.fieldsSchema)
|
|
8077
|
-
return undefined;
|
|
8078
|
-
if (!spec.update)
|
|
8079
|
-
return undefined;
|
|
8080
|
-
let schema = excludeReadOnlyFieldsFromSchema(spec.fieldsSchema);
|
|
8081
|
-
if (spec.update.fields) {
|
|
8082
|
-
schema = pickFieldsFromSchema(schema, spec.update.fields);
|
|
8083
|
-
}
|
|
8084
|
-
if (spec.update.excludedFields) {
|
|
8085
|
-
schema = excludeFieldsFromSchema(schema, spec.update.excludedFields);
|
|
8086
|
-
}
|
|
8087
|
-
return schema;
|
|
8088
|
-
}
|
|
8089
|
-
function getWritableFieldsSchema(spec) {
|
|
8090
|
-
if (!spec)
|
|
8091
|
-
return undefined;
|
|
8092
|
-
if (!spec.fieldsSchema)
|
|
8093
|
-
return undefined;
|
|
8094
|
-
return mergeSchemas([getDataCollectionCreateFields(spec), getDataCollectionUpdateFields(spec)]);
|
|
8095
|
-
}
|
|
8096
|
-
function getReferenceCollectionPointerForSchema(schema) {
|
|
8097
|
-
if ((schema === null || schema === void 0 ? void 0 : schema.referenceCollection) && schema.referenceCollection.key) {
|
|
8098
|
-
return schema.referenceCollection;
|
|
8099
|
-
}
|
|
8100
|
-
else if (schema === null || schema === void 0 ? void 0 : schema.referenceCollectionPath) {
|
|
8101
|
-
return parseDataLocationPath(schema.referenceCollectionPath);
|
|
8102
|
-
}
|
|
8103
|
-
else if (schema === null || schema === void 0 ? void 0 : schema.referenceCollectionUri) {
|
|
8104
|
-
return parseDataLocationPath(schema.referenceCollectionUri);
|
|
8105
|
-
}
|
|
8106
|
-
else {
|
|
8107
|
-
return undefined;
|
|
8108
|
-
}
|
|
8109
|
-
}
|
|
8110
|
-
function getReferenceCollectionPathForSchema(schema) {
|
|
8111
|
-
const pointer = getReferenceCollectionPointerForSchema(schema);
|
|
8112
|
-
return makeDataLocationPath(pointer);
|
|
8113
|
-
}
|
|
8114
|
-
|
|
8115
7798
|
var UDM;
|
|
8116
7799
|
(function (UDM) {
|
|
8117
7800
|
UDM["ACTIVITIES"] = "activities";
|
|
@@ -8246,113 +7929,435 @@ function findUdmDefaultCollection(spec, udm, useFallback = true) {
|
|
|
8246
7929
|
}
|
|
8247
7930
|
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) {
|
|
8248
7931
|
return {
|
|
8249
|
-
key: spec.udm[udm].collectionMappings[0].key,
|
|
7932
|
+
key: spec.udm[udm].collectionMappings[0].key,
|
|
7933
|
+
};
|
|
7934
|
+
}
|
|
7935
|
+
const udmSpec = UNIFIED_DATA_MODELS[udm];
|
|
7936
|
+
if (!udmSpec) {
|
|
7937
|
+
throw new BadRequestError(`Unknown UDM: ${udm}`);
|
|
7938
|
+
}
|
|
7939
|
+
if (useFallback) {
|
|
7940
|
+
for (const fallback of (_j = udmSpec.udmFallbacks) !== null && _j !== void 0 ? _j : []) {
|
|
7941
|
+
const pointer = findUdmDefaultCollection(spec, fallback.udm, false);
|
|
7942
|
+
if (pointer) {
|
|
7943
|
+
return pointer;
|
|
7944
|
+
}
|
|
7945
|
+
}
|
|
7946
|
+
}
|
|
7947
|
+
return undefined;
|
|
7948
|
+
}
|
|
7949
|
+
function addUdmFallbackFields(fields, udm) {
|
|
7950
|
+
if (!udm) {
|
|
7951
|
+
return fields;
|
|
7952
|
+
}
|
|
7953
|
+
const udmSpec = UNIFIED_DATA_MODELS[udm];
|
|
7954
|
+
if (!udmSpec) {
|
|
7955
|
+
throw new BadRequestError(`Unknown UDM: ${udm}`);
|
|
7956
|
+
}
|
|
7957
|
+
if (!udmSpec.fieldFallbacks) {
|
|
7958
|
+
return fields;
|
|
7959
|
+
}
|
|
7960
|
+
let result = structuredClone$1(fields);
|
|
7961
|
+
for (const fieldKeyWithFallbacks of Object.keys(udmSpec.fieldFallbacks)) {
|
|
7962
|
+
const currentValue = getValueAtLocator(fields, fieldKeyWithFallbacks);
|
|
7963
|
+
if (currentValue !== undefined)
|
|
7964
|
+
continue;
|
|
7965
|
+
for (const fallbackValue of udmSpec.fieldFallbacks[fieldKeyWithFallbacks]) {
|
|
7966
|
+
const varFormulaLocators = getVariableLocators(fallbackValue);
|
|
7967
|
+
const varLocators = [];
|
|
7968
|
+
for (const varFormulaLocator of varFormulaLocators) {
|
|
7969
|
+
const formula = getFormula$1(getValueAtLocator(fallbackValue, varFormulaLocator));
|
|
7970
|
+
varLocators.push(formula.locator);
|
|
7971
|
+
}
|
|
7972
|
+
const fallbackValueHasDependencies = varLocators.some((locator) => getValueAtLocator(fields, locator) !== undefined);
|
|
7973
|
+
if (fallbackValueHasDependencies) {
|
|
7974
|
+
result = setValueAtLocator(result, fieldKeyWithFallbacks, transformVars(fallbackValue, fields));
|
|
7975
|
+
break;
|
|
7976
|
+
}
|
|
7977
|
+
}
|
|
7978
|
+
}
|
|
7979
|
+
return result;
|
|
7980
|
+
}
|
|
7981
|
+
|
|
7982
|
+
const DATA_RECORD_SCHEMA = {
|
|
7983
|
+
type: 'object',
|
|
7984
|
+
properties: {
|
|
7985
|
+
id: {
|
|
7986
|
+
type: 'string',
|
|
7987
|
+
},
|
|
7988
|
+
name: {
|
|
7989
|
+
type: 'string',
|
|
7990
|
+
},
|
|
7991
|
+
uri: {
|
|
7992
|
+
type: 'string',
|
|
7993
|
+
format: 'url',
|
|
7994
|
+
},
|
|
7995
|
+
createdTime: {
|
|
7996
|
+
type: 'string',
|
|
7997
|
+
format: 'datetime',
|
|
7998
|
+
},
|
|
7999
|
+
updatedTime: {
|
|
8000
|
+
type: 'string',
|
|
8001
|
+
format: 'datetime',
|
|
8002
|
+
},
|
|
8003
|
+
deletedTime: {
|
|
8004
|
+
type: 'string',
|
|
8005
|
+
format: 'datetime',
|
|
8006
|
+
},
|
|
8007
|
+
createdById: {
|
|
8008
|
+
type: 'string',
|
|
8009
|
+
},
|
|
8010
|
+
updatedById: {
|
|
8011
|
+
type: 'string',
|
|
8012
|
+
},
|
|
8013
|
+
},
|
|
8014
|
+
};
|
|
8015
|
+
function makeDataRecordSchema({ fieldsSchema, udm, rawFieldsSchema, }) {
|
|
8016
|
+
var _a, _b, _c;
|
|
8017
|
+
const schema = structuredClone$1(DATA_RECORD_SCHEMA);
|
|
8018
|
+
schema.properties = {
|
|
8019
|
+
...((_a = schema.properties) !== null && _a !== void 0 ? _a : {}),
|
|
8020
|
+
fields: fieldsSchema !== null && fieldsSchema !== void 0 ? fieldsSchema : { type: 'object' },
|
|
8021
|
+
};
|
|
8022
|
+
if (udm) {
|
|
8023
|
+
const unifiedModel = UNIFIED_DATA_MODELS[udm];
|
|
8024
|
+
if (unifiedModel === null || unifiedModel === void 0 ? void 0 : unifiedModel.fieldsSchema) {
|
|
8025
|
+
schema.properties = {
|
|
8026
|
+
...((_b = schema.properties) !== null && _b !== void 0 ? _b : {}),
|
|
8027
|
+
unifiedFields: unifiedModel.fieldsSchema,
|
|
8028
|
+
};
|
|
8029
|
+
}
|
|
8030
|
+
}
|
|
8031
|
+
if (rawFieldsSchema) {
|
|
8032
|
+
schema.properties = {
|
|
8033
|
+
...((_c = schema.properties) !== null && _c !== void 0 ? _c : {}),
|
|
8034
|
+
rawFields: rawFieldsSchema,
|
|
8035
|
+
};
|
|
8036
|
+
}
|
|
8037
|
+
return schema;
|
|
8038
|
+
}
|
|
8039
|
+
|
|
8040
|
+
const DataLocationMethodImplementationTypes = [
|
|
8041
|
+
ConnectorMethodImplementationType.operationMapping,
|
|
8042
|
+
ConnectorMethodImplementationType.restApiMapping,
|
|
8043
|
+
ConnectorMethodImplementationType.graphqlApiMapping,
|
|
8044
|
+
ConnectorMethodImplementationType.javascript,
|
|
8045
|
+
ConnectorMethodImplementationType.notSupported,
|
|
8046
|
+
];
|
|
8047
|
+
|
|
8048
|
+
const DataCollectionMethodCreate = {
|
|
8049
|
+
name: 'Create',
|
|
8050
|
+
description: 'Create a new data record in the collection',
|
|
8051
|
+
getConfigSchema: ({ collectionSpec }) => {
|
|
8052
|
+
var _a, _b;
|
|
8053
|
+
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);
|
|
8054
|
+
return {
|
|
8055
|
+
type: 'object',
|
|
8056
|
+
properties: {
|
|
8057
|
+
fields: {
|
|
8058
|
+
type: 'array',
|
|
8059
|
+
items: { type: 'string', enum: fields },
|
|
8060
|
+
},
|
|
8061
|
+
excludedFields: {
|
|
8062
|
+
type: 'array',
|
|
8063
|
+
items: { type: 'string', enum: fields },
|
|
8064
|
+
},
|
|
8065
|
+
},
|
|
8066
|
+
};
|
|
8067
|
+
},
|
|
8068
|
+
getInputSchema: ({ collectionSpec, method, credentialsSchema }) => {
|
|
8069
|
+
var _a;
|
|
8070
|
+
let fieldsSchema = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema;
|
|
8071
|
+
if (method === null || method === void 0 ? void 0 : method.fields) {
|
|
8072
|
+
fieldsSchema = pickFieldsFromSchema(fieldsSchema, method.fields);
|
|
8073
|
+
}
|
|
8074
|
+
if (method === null || method === void 0 ? void 0 : method.excludedFields) {
|
|
8075
|
+
fieldsSchema = excludeFieldsFromSchema(fieldsSchema, method.excludedFields);
|
|
8076
|
+
}
|
|
8077
|
+
return {
|
|
8078
|
+
type: 'object',
|
|
8079
|
+
properties: nonEmptyObjectProperties({
|
|
8080
|
+
fields: (_a = transformVariablesWith(fieldsSchema, (locator) => `fields.${locatorToField(locator)}`)) !== null && _a !== void 0 ? _a : {
|
|
8081
|
+
type: 'object',
|
|
8082
|
+
},
|
|
8083
|
+
credentials: credentialsSchema,
|
|
8084
|
+
}),
|
|
8085
|
+
};
|
|
8086
|
+
},
|
|
8087
|
+
getOutputSchema: ({}) => ({
|
|
8088
|
+
type: 'object',
|
|
8089
|
+
properties: {
|
|
8090
|
+
id: { type: 'string' },
|
|
8091
|
+
},
|
|
8092
|
+
}),
|
|
8093
|
+
supportedImplementationTypes: DataLocationMethodImplementationTypes,
|
|
8094
|
+
};
|
|
8095
|
+
|
|
8096
|
+
const DataCollectionMethodDelete = {
|
|
8097
|
+
name: 'Delete',
|
|
8098
|
+
description: 'Delete a data record from the collection by id',
|
|
8099
|
+
getInputSchema: ({ collectionHandler, parameters, credentialsSchema }) => {
|
|
8100
|
+
return {
|
|
8101
|
+
type: 'object',
|
|
8102
|
+
properties: nonEmptyObjectProperties({
|
|
8103
|
+
id: {
|
|
8104
|
+
type: 'string',
|
|
8105
|
+
referenceCollection: { key: collectionHandler === null || collectionHandler === void 0 ? void 0 : collectionHandler.key, parameters },
|
|
8106
|
+
},
|
|
8107
|
+
credentials: credentialsSchema,
|
|
8108
|
+
}),
|
|
8109
|
+
};
|
|
8110
|
+
},
|
|
8111
|
+
getOutputSchema: () => null,
|
|
8112
|
+
supportedImplementationTypes: DataLocationMethodImplementationTypes,
|
|
8113
|
+
};
|
|
8114
|
+
|
|
8115
|
+
const DataCollectionMethodFind = {
|
|
8116
|
+
isDeprecated: true,
|
|
8117
|
+
name: 'Find',
|
|
8118
|
+
description: 'Find a list of data records in the collection',
|
|
8119
|
+
getConfigSchema: ({ collectionSpec }) => {
|
|
8120
|
+
var _a, _b;
|
|
8121
|
+
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);
|
|
8122
|
+
return {
|
|
8123
|
+
type: 'object',
|
|
8124
|
+
properties: {
|
|
8125
|
+
queryFields: {
|
|
8126
|
+
type: 'array',
|
|
8127
|
+
items: { type: 'string', enum: fields },
|
|
8128
|
+
},
|
|
8129
|
+
},
|
|
8130
|
+
};
|
|
8131
|
+
},
|
|
8132
|
+
getInputSchema: ({ collectionSpec, method, credentialsSchema }) => {
|
|
8133
|
+
const queryFieldsSchema = pickFieldsFromSchema(collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema, method === null || method === void 0 ? void 0 : method.queryFields);
|
|
8134
|
+
const schema = {
|
|
8135
|
+
type: 'object',
|
|
8136
|
+
properties: nonEmptyObjectProperties({
|
|
8137
|
+
cursor: { type: 'string' },
|
|
8138
|
+
credentials: credentialsSchema,
|
|
8139
|
+
}),
|
|
8140
|
+
};
|
|
8141
|
+
if (queryFieldsSchema === null || queryFieldsSchema === void 0 ? void 0 : queryFieldsSchema.properties) {
|
|
8142
|
+
schema.properties = {
|
|
8143
|
+
...schema.properties,
|
|
8144
|
+
query: transformVariablesWith(queryFieldsSchema, (locator) => `query.${locatorToField(locator)}`),
|
|
8145
|
+
};
|
|
8146
|
+
}
|
|
8147
|
+
return schema;
|
|
8148
|
+
},
|
|
8149
|
+
getOutputSchema: ({ collectionSpec }) => {
|
|
8150
|
+
var _a;
|
|
8151
|
+
return ({
|
|
8152
|
+
type: 'object',
|
|
8153
|
+
properties: {
|
|
8154
|
+
records: {
|
|
8155
|
+
type: 'array',
|
|
8156
|
+
items: (_a = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) !== null && _a !== void 0 ? _a : { type: 'object' },
|
|
8157
|
+
},
|
|
8158
|
+
cursor: {
|
|
8159
|
+
type: 'string',
|
|
8160
|
+
},
|
|
8161
|
+
},
|
|
8162
|
+
});
|
|
8163
|
+
},
|
|
8164
|
+
supportedImplementationTypes: DataLocationMethodImplementationTypes,
|
|
8165
|
+
};
|
|
8166
|
+
|
|
8167
|
+
const DataCollectionMethodFindById = {
|
|
8168
|
+
name: 'Find by ID',
|
|
8169
|
+
description: 'Find a single data record in the collection by its id',
|
|
8170
|
+
getInputSchema: ({ collectionHandler, parameters, credentialsSchema }) => ({
|
|
8171
|
+
type: 'object',
|
|
8172
|
+
properties: nonEmptyObjectProperties({
|
|
8173
|
+
id: {
|
|
8174
|
+
type: 'string',
|
|
8175
|
+
referenceCollection: { key: collectionHandler === null || collectionHandler === void 0 ? void 0 : collectionHandler.key, parameters },
|
|
8176
|
+
},
|
|
8177
|
+
credentials: credentialsSchema,
|
|
8178
|
+
}),
|
|
8179
|
+
}),
|
|
8180
|
+
getOutputSchema: ({ collectionSpec }) => {
|
|
8181
|
+
var _a;
|
|
8182
|
+
return ({
|
|
8183
|
+
type: 'object',
|
|
8184
|
+
properties: {
|
|
8185
|
+
record: (_a = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) !== null && _a !== void 0 ? _a : { type: 'object' },
|
|
8186
|
+
},
|
|
8187
|
+
});
|
|
8188
|
+
},
|
|
8189
|
+
supportedImplementationTypes: DataLocationMethodImplementationTypes,
|
|
8190
|
+
};
|
|
8191
|
+
|
|
8192
|
+
const DataCollectionMethodList = {
|
|
8193
|
+
name: 'List',
|
|
8194
|
+
description: 'Return all data records from the collection',
|
|
8195
|
+
getConfigSchema: ({ collectionSpec }) => {
|
|
8196
|
+
var _a, _b;
|
|
8197
|
+
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);
|
|
8198
|
+
return {
|
|
8199
|
+
type: 'object',
|
|
8200
|
+
properties: {
|
|
8201
|
+
filterFields: {
|
|
8202
|
+
type: 'array',
|
|
8203
|
+
items: { type: 'string', enum: fields },
|
|
8204
|
+
},
|
|
8205
|
+
},
|
|
8206
|
+
};
|
|
8207
|
+
},
|
|
8208
|
+
getInputSchema: ({ method, collectionSpec, credentialsSchema }) => {
|
|
8209
|
+
const fieldsSchema = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema;
|
|
8210
|
+
let filterSchema;
|
|
8211
|
+
if (method === null || method === void 0 ? void 0 : method.filterFields) {
|
|
8212
|
+
filterSchema = pickFieldsFromSchema(fieldsSchema, method.filterFields);
|
|
8213
|
+
}
|
|
8214
|
+
return {
|
|
8215
|
+
type: 'object',
|
|
8216
|
+
properties: nonEmptyObjectProperties({
|
|
8217
|
+
filter: filterSchema,
|
|
8218
|
+
cursor: {
|
|
8219
|
+
type: 'string',
|
|
8220
|
+
description: 'Cursor returned in response to the previous "list" request',
|
|
8221
|
+
},
|
|
8222
|
+
credentials: credentialsSchema,
|
|
8223
|
+
}),
|
|
8224
|
+
};
|
|
8225
|
+
},
|
|
8226
|
+
getOutputSchema: ({ collectionSpec }) => {
|
|
8227
|
+
var _a;
|
|
8228
|
+
return ({
|
|
8229
|
+
type: 'object',
|
|
8230
|
+
properties: {
|
|
8231
|
+
records: {
|
|
8232
|
+
type: 'array',
|
|
8233
|
+
items: (_a = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) !== null && _a !== void 0 ? _a : { type: 'object' },
|
|
8234
|
+
},
|
|
8235
|
+
cursor: {
|
|
8236
|
+
type: 'string',
|
|
8237
|
+
description: 'Cursor to request the next page of results',
|
|
8238
|
+
},
|
|
8239
|
+
},
|
|
8240
|
+
});
|
|
8241
|
+
},
|
|
8242
|
+
supportedImplementationTypes: DataLocationMethodImplementationTypes,
|
|
8243
|
+
};
|
|
8244
|
+
|
|
8245
|
+
const DataCollectionMethodMatch = {
|
|
8246
|
+
name: 'Match',
|
|
8247
|
+
description: 'Find a single matching record in a data collection by a set of fields',
|
|
8248
|
+
getConfigSchema: ({ collectionSpec }) => {
|
|
8249
|
+
var _a, _b;
|
|
8250
|
+
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);
|
|
8251
|
+
return {
|
|
8252
|
+
type: 'object',
|
|
8253
|
+
properties: {
|
|
8254
|
+
fields: {
|
|
8255
|
+
type: 'array',
|
|
8256
|
+
items: { type: 'string', enum: fields },
|
|
8257
|
+
},
|
|
8258
|
+
},
|
|
8250
8259
|
};
|
|
8251
|
-
}
|
|
8252
|
-
|
|
8253
|
-
|
|
8254
|
-
|
|
8255
|
-
|
|
8256
|
-
|
|
8257
|
-
|
|
8258
|
-
|
|
8259
|
-
|
|
8260
|
-
|
|
8261
|
-
|
|
8262
|
-
|
|
8263
|
-
|
|
8264
|
-
|
|
8265
|
-
|
|
8266
|
-
|
|
8267
|
-
|
|
8268
|
-
|
|
8269
|
-
|
|
8270
|
-
|
|
8271
|
-
|
|
8272
|
-
|
|
8273
|
-
}
|
|
8274
|
-
if (!udmSpec.fieldFallbacks) {
|
|
8275
|
-
return fields;
|
|
8276
|
-
}
|
|
8277
|
-
let result = structuredClone$1(fields);
|
|
8278
|
-
for (const fieldKeyWithFallbacks of Object.keys(udmSpec.fieldFallbacks)) {
|
|
8279
|
-
const currentValue = getValueAtLocator(fields, fieldKeyWithFallbacks);
|
|
8280
|
-
if (currentValue !== undefined)
|
|
8281
|
-
continue;
|
|
8282
|
-
for (const fallbackValue of udmSpec.fieldFallbacks[fieldKeyWithFallbacks]) {
|
|
8283
|
-
const varFormulaLocators = getVariableLocators(fallbackValue);
|
|
8284
|
-
const varLocators = [];
|
|
8285
|
-
for (const varFormulaLocator of varFormulaLocators) {
|
|
8286
|
-
const formula = getFormula$1(getValueAtLocator(fallbackValue, varFormulaLocator));
|
|
8287
|
-
varLocators.push(formula.locator);
|
|
8288
|
-
}
|
|
8289
|
-
const fallbackValueHasDependencies = varLocators.some((locator) => getValueAtLocator(fields, locator) !== undefined);
|
|
8290
|
-
if (fallbackValueHasDependencies) {
|
|
8291
|
-
result = setValueAtLocator(result, fieldKeyWithFallbacks, transformVars(fallbackValue, fields));
|
|
8292
|
-
break;
|
|
8293
|
-
}
|
|
8294
|
-
}
|
|
8295
|
-
}
|
|
8296
|
-
return result;
|
|
8297
|
-
}
|
|
8260
|
+
},
|
|
8261
|
+
getInputSchema: ({ collectionSpec, method, credentialsSchema }) => {
|
|
8262
|
+
const fieldsSchema = pickFieldsFromSchema(collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema, method === null || method === void 0 ? void 0 : method.fields);
|
|
8263
|
+
return {
|
|
8264
|
+
type: 'object',
|
|
8265
|
+
properties: nonEmptyObjectProperties({
|
|
8266
|
+
query: transformVariablesWith(fieldsSchema !== null && fieldsSchema !== void 0 ? fieldsSchema : {}, (locator) => `query.${locatorToField(locator)}`),
|
|
8267
|
+
credentials: credentialsSchema,
|
|
8268
|
+
}),
|
|
8269
|
+
};
|
|
8270
|
+
},
|
|
8271
|
+
getOutputSchema: ({ collectionSpec }) => {
|
|
8272
|
+
var _a;
|
|
8273
|
+
return ({
|
|
8274
|
+
type: 'object',
|
|
8275
|
+
properties: {
|
|
8276
|
+
record: (_a = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) !== null && _a !== void 0 ? _a : { type: 'object' },
|
|
8277
|
+
},
|
|
8278
|
+
});
|
|
8279
|
+
},
|
|
8280
|
+
supportedImplementationTypes: DataLocationMethodImplementationTypes,
|
|
8281
|
+
};
|
|
8298
8282
|
|
|
8299
|
-
const
|
|
8300
|
-
|
|
8301
|
-
|
|
8302
|
-
|
|
8303
|
-
|
|
8304
|
-
|
|
8305
|
-
|
|
8306
|
-
type: 'string',
|
|
8307
|
-
|
|
8308
|
-
|
|
8309
|
-
|
|
8310
|
-
|
|
8311
|
-
|
|
8312
|
-
|
|
8313
|
-
type: '
|
|
8314
|
-
|
|
8315
|
-
|
|
8316
|
-
|
|
8317
|
-
|
|
8318
|
-
|
|
8319
|
-
|
|
8320
|
-
|
|
8321
|
-
|
|
8322
|
-
format: 'datetime',
|
|
8323
|
-
},
|
|
8324
|
-
createdById: {
|
|
8325
|
-
type: 'string',
|
|
8326
|
-
},
|
|
8327
|
-
updatedById: {
|
|
8328
|
-
type: 'string',
|
|
8329
|
-
},
|
|
8283
|
+
const DataCollectionMethodSearch = {
|
|
8284
|
+
name: 'Search',
|
|
8285
|
+
description: 'Find data records in a collection by a string query',
|
|
8286
|
+
getInputSchema: ({ credentialsSchema }) => ({
|
|
8287
|
+
type: 'object',
|
|
8288
|
+
properties: nonEmptyObjectProperties({
|
|
8289
|
+
query: { type: 'string' },
|
|
8290
|
+
cursor: { type: 'string' },
|
|
8291
|
+
credentials: credentialsSchema,
|
|
8292
|
+
}),
|
|
8293
|
+
}),
|
|
8294
|
+
getOutputSchema: ({ collectionSpec }) => {
|
|
8295
|
+
var _a;
|
|
8296
|
+
return ({
|
|
8297
|
+
type: 'object',
|
|
8298
|
+
properties: {
|
|
8299
|
+
records: {
|
|
8300
|
+
type: 'array',
|
|
8301
|
+
items: (_a = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema) !== null && _a !== void 0 ? _a : { type: 'object' },
|
|
8302
|
+
},
|
|
8303
|
+
cursor: { type: 'string' },
|
|
8304
|
+
},
|
|
8305
|
+
});
|
|
8330
8306
|
},
|
|
8307
|
+
supportedImplementationTypes: DataLocationMethodImplementationTypes,
|
|
8331
8308
|
};
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
|
|
8344
|
-
|
|
8345
|
-
|
|
8309
|
+
|
|
8310
|
+
const DataCollectionMethodUpdate = {
|
|
8311
|
+
name: 'Update',
|
|
8312
|
+
description: 'Update one data record in the collection by its id',
|
|
8313
|
+
getConfigSchema: ({ collectionSpec }) => {
|
|
8314
|
+
var _a, _b;
|
|
8315
|
+
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);
|
|
8316
|
+
return {
|
|
8317
|
+
type: 'object',
|
|
8318
|
+
properties: {
|
|
8319
|
+
fields: {
|
|
8320
|
+
type: 'array',
|
|
8321
|
+
items: { type: 'string', enum: fields },
|
|
8322
|
+
},
|
|
8323
|
+
excludedFields: {
|
|
8324
|
+
type: 'array',
|
|
8325
|
+
items: { type: 'string', enum: fields },
|
|
8326
|
+
},
|
|
8327
|
+
},
|
|
8328
|
+
};
|
|
8329
|
+
},
|
|
8330
|
+
getInputSchema: ({ collectionSpec, collectionHandler, credentialsSchema, method, parameters }) => {
|
|
8331
|
+
var _a;
|
|
8332
|
+
let fieldsSchema = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema;
|
|
8333
|
+
if (method === null || method === void 0 ? void 0 : method.fields) {
|
|
8334
|
+
fieldsSchema = pickFieldsFromSchema(fieldsSchema, method.fields);
|
|
8346
8335
|
}
|
|
8347
|
-
|
|
8348
|
-
|
|
8349
|
-
|
|
8350
|
-
|
|
8351
|
-
|
|
8336
|
+
if (method === null || method === void 0 ? void 0 : method.excludedFields) {
|
|
8337
|
+
fieldsSchema = excludeFieldsFromSchema(fieldsSchema, method.excludedFields);
|
|
8338
|
+
}
|
|
8339
|
+
return {
|
|
8340
|
+
type: 'object',
|
|
8341
|
+
properties: nonEmptyObjectProperties({
|
|
8342
|
+
id: {
|
|
8343
|
+
type: 'string',
|
|
8344
|
+
referenceCollection: { key: collectionHandler === null || collectionHandler === void 0 ? void 0 : collectionHandler.key, parameters },
|
|
8345
|
+
},
|
|
8346
|
+
fields: (_a = transformVariablesWith(fieldsSchema, (locator) => `fields.${locatorToField(locator)}`)) !== null && _a !== void 0 ? _a : {
|
|
8347
|
+
type: 'object',
|
|
8348
|
+
},
|
|
8349
|
+
credentials: credentialsSchema,
|
|
8350
|
+
}),
|
|
8352
8351
|
};
|
|
8353
|
-
}
|
|
8354
|
-
|
|
8355
|
-
|
|
8352
|
+
},
|
|
8353
|
+
getOutputSchema: ({}) => ({
|
|
8354
|
+
type: 'object',
|
|
8355
|
+
properties: {
|
|
8356
|
+
id: { type: 'string' },
|
|
8357
|
+
},
|
|
8358
|
+
}),
|
|
8359
|
+
supportedImplementationTypes: DataLocationMethodImplementationTypes,
|
|
8360
|
+
};
|
|
8356
8361
|
|
|
8357
8362
|
const GetEventConfig = {
|
|
8358
8363
|
fileKey: 'connector-event-get-event-config',
|
|
@@ -10313,6 +10318,10 @@ const FindConnectionsQuery = PaginationQuery.merge(SearchQuery)
|
|
|
10313
10318
|
.string()
|
|
10314
10319
|
.optional()
|
|
10315
10320
|
.meta({ hidden: true }),
|
|
10321
|
+
externalAppId: z.string().optional().meta({
|
|
10322
|
+
filterTitle: 'External App',
|
|
10323
|
+
referenceElementType: WorkspaceElementType.App,
|
|
10324
|
+
}),
|
|
10316
10325
|
integrationKey: z
|
|
10317
10326
|
.string()
|
|
10318
10327
|
.optional()
|
|
@@ -10323,9 +10332,12 @@ const FindConnectionsQuery = PaginationQuery.merge(SearchQuery)
|
|
|
10323
10332
|
});
|
|
10324
10333
|
const CreateConnectionRequest = ConnectionEditableProperties.extend({
|
|
10325
10334
|
integrationId: z.string().optional(),
|
|
10335
|
+
integrationUuid: z.string().optional(),
|
|
10336
|
+
integrationKey: z.string().optional(),
|
|
10326
10337
|
connectorId: z.string().optional(),
|
|
10338
|
+
connectorUuid: z.string().optional(),
|
|
10339
|
+
connectorKey: z.string().optional(),
|
|
10327
10340
|
connectorVersion: z.string().optional(),
|
|
10328
|
-
externalAppId: z.string().optional(),
|
|
10329
10341
|
});
|
|
10330
10342
|
const UpdateConnectionRequest = ConnectionEditableProperties;
|
|
10331
10343
|
const ConnectionExportProperties = ConnectionEditableProperties.omit({
|
|
@@ -10388,6 +10400,7 @@ const GenerateOptionsRequest = z.object({
|
|
|
10388
10400
|
integrationId: z.string().optional(),
|
|
10389
10401
|
integrationKey: z.string().optional(),
|
|
10390
10402
|
connectorId: z.string().optional(),
|
|
10403
|
+
connectorKey: z.string().optional(),
|
|
10391
10404
|
connectionId: z.string().optional(),
|
|
10392
10405
|
connectorParameters: z.any().optional(),
|
|
10393
10406
|
connectorVersion: z.string().optional(),
|
|
@@ -10397,6 +10410,7 @@ const ConnectPayload = z.object({
|
|
|
10397
10410
|
integrationKey: z.string().optional(),
|
|
10398
10411
|
integrationId: z.string().optional(),
|
|
10399
10412
|
connectorId: z.string().optional(),
|
|
10413
|
+
connectorKey: z.string().optional(),
|
|
10400
10414
|
connectorVersion: z.string().optional(),
|
|
10401
10415
|
connectionId: z.string().optional(),
|
|
10402
10416
|
name: z.string().optional(),
|
|
@@ -11686,6 +11700,7 @@ const WorkspaceElementSpecs = {
|
|
|
11686
11700
|
name: 'App',
|
|
11687
11701
|
namePlural: 'Apps',
|
|
11688
11702
|
hasKey: true,
|
|
11703
|
+
hasPublicLayer: true,
|
|
11689
11704
|
},
|
|
11690
11705
|
[WorkspaceElementType.Integration]: {
|
|
11691
11706
|
type: WorkspaceElementType.Integration,
|
|
@@ -11703,6 +11718,7 @@ const WorkspaceElementSpecs = {
|
|
|
11703
11718
|
namePlural: 'Connectors',
|
|
11704
11719
|
exportPropertiesSchema: ConnectorExportProperties,
|
|
11705
11720
|
hasKey: true,
|
|
11721
|
+
hasPublicLayer: true,
|
|
11706
11722
|
},
|
|
11707
11723
|
[WorkspaceElementType.Connection]: {
|
|
11708
11724
|
type: WorkspaceElementType.Connection,
|
|
@@ -11726,6 +11742,7 @@ const WorkspaceElementSpecs = {
|
|
|
11726
11742
|
isIntegrationLevel: true,
|
|
11727
11743
|
hasKey: true,
|
|
11728
11744
|
hasParentChildRelationship: true,
|
|
11745
|
+
hasPublicLayer: true,
|
|
11729
11746
|
isProOnly: true,
|
|
11730
11747
|
},
|
|
11731
11748
|
[WorkspaceElementType.ActionInstance]: {
|
|
@@ -11752,6 +11769,7 @@ const WorkspaceElementSpecs = {
|
|
|
11752
11769
|
canBeAddedToPackage: true,
|
|
11753
11770
|
hasParentChildRelationship: true,
|
|
11754
11771
|
hasKey: true,
|
|
11772
|
+
hasPublicLayer: true,
|
|
11755
11773
|
},
|
|
11756
11774
|
[WorkspaceElementType.ActionRunLogRecord]: {
|
|
11757
11775
|
type: WorkspaceElementType.ActionRunLogRecord,
|
|
@@ -15454,25 +15472,6 @@ const CreateClusterRequest = z.object({
|
|
|
15454
15472
|
});
|
|
15455
15473
|
const ListClustersQuery = PaginationQuery;
|
|
15456
15474
|
|
|
15457
|
-
class UI {
|
|
15458
|
-
constructor(client) {
|
|
15459
|
-
this.client = client;
|
|
15460
|
-
}
|
|
15461
|
-
async connect(options = {}) {
|
|
15462
|
-
const { url, postData } = await this.client.getScreensPostData('connect', {
|
|
15463
|
-
...options,
|
|
15464
|
-
allowMultipleConnections: options.allowMultipleConnections ? '1' : '',
|
|
15465
|
-
connectorParameters: options.connectorParameters ? JSON.stringify(options.connectorParameters) : undefined,
|
|
15466
|
-
});
|
|
15467
|
-
return new Promise((resolve) => {
|
|
15468
|
-
return openIframeWithPost(url, postData, {
|
|
15469
|
-
onClose: () => resolve(null),
|
|
15470
|
-
onSuccess: (connection) => resolve(connection),
|
|
15471
|
-
});
|
|
15472
|
-
});
|
|
15473
|
-
}
|
|
15474
|
-
}
|
|
15475
|
-
|
|
15476
15475
|
const API_VERSIONS = {
|
|
15477
15476
|
LEGACY: 'legacy',
|
|
15478
15477
|
'2025-10-21': '2025-10-21',
|
|
@@ -15724,6 +15723,25 @@ class MembraneApiClient {
|
|
|
15724
15723
|
}
|
|
15725
15724
|
}
|
|
15726
15725
|
|
|
15726
|
+
class UI {
|
|
15727
|
+
constructor(client) {
|
|
15728
|
+
this.client = client;
|
|
15729
|
+
}
|
|
15730
|
+
async connect(options = {}) {
|
|
15731
|
+
const { url, postData } = await this.client.getScreensPostData('connect', {
|
|
15732
|
+
...options,
|
|
15733
|
+
allowMultipleConnections: options.allowMultipleConnections ? '1' : '',
|
|
15734
|
+
connectorParameters: options.connectorParameters ? JSON.stringify(options.connectorParameters) : undefined,
|
|
15735
|
+
});
|
|
15736
|
+
return new Promise((resolve) => {
|
|
15737
|
+
return openIframeWithPost(url, postData, {
|
|
15738
|
+
onClose: () => resolve(null),
|
|
15739
|
+
onSuccess: (connection) => resolve(connection),
|
|
15740
|
+
});
|
|
15741
|
+
});
|
|
15742
|
+
}
|
|
15743
|
+
}
|
|
15744
|
+
|
|
15727
15745
|
class MembraneClient extends MembraneApiClient {
|
|
15728
15746
|
constructor(options) {
|
|
15729
15747
|
super(options);
|
|
@@ -16068,5 +16086,5 @@ function hasMembraneCredentials(cwd) {
|
|
|
16068
16086
|
return getDefaultMembraneConfigLoader().hasWorkspaceCredentials();
|
|
16069
16087
|
}
|
|
16070
16088
|
|
|
16071
|
-
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, CONFIG_FILE_NAME, 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, MembraneConfigLoader, 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, getDefaultMembraneConfigLoader, 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, hasMembraneCredentials, injectFormulaCatalog, isBlob, isBusinessDay, isDataActionType, isDataLocationMethodSupported, isDeliveryMethodEnabled, isFormula$1 as isFormula, isFormula as isFormula_internalDoNotUse, isMembraneError, isObject, isPathUserEditable, isSameDataLocation, isSchemaEmpty, isStream, isValidAlertType, isValidLocator, jsonPointerToDotPath, lenientParseWithSchema, loadMembraneConfig, locatorToField, locatorToSteps, locatorToString, makeDataLocationOperationPath, makeDataLocationPath, makeDataRecordSchema, makeObjectPropertyLocator, makeSchemaForLocator, membraneConfigSchema, 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 };
|
|
16089
|
+
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, CONFIG_FILE_NAME, 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, MembraneConfigLoader, 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, getDefaultMembraneConfigLoader, 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, hasMembraneCredentials, injectFormulaCatalog, isBlob, isBusinessDay, isDataActionType, isDataLocationMethodSupported, isDeliveryMethodEnabled, isFormula$1 as isFormula, isFormula as isFormula_internalDoNotUse, isMembraneError, isObject, isPathUserEditable, isSameDataLocation, isSchemaEmpty, isStream, isValidAlertType, isValidLocator, jsonPointerToDotPath, lenientParseWithSchema, loadMembraneConfig, locatorToField, locatorToSteps, locatorToString, makeDataLocationOperationPath, makeDataLocationPath, makeDataRecordSchema, makeObjectPropertyLocator, makeSchemaForLocator, membraneConfigSchema, 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 };
|
|
16072
16090
|
//# sourceMappingURL=index.node.mjs.map
|