@salesforce/lds-adapters-cdp-data-clean-room 1.404.0-dev13 → 1.404.0-dev15
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/es/es2018/cdp-data-clean-room.js +516 -89
- package/dist/es/es2018/types/src/generated/adapters/acceptDataCleanRoomInvitation.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/resources/postSsotDataCleanRoomCollaborationsActionsAcceptInvitationByCollaborationIdOrApiName.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/types/CustomUseCaseTemplateInputRepresentation.d.ts +9 -1
- package/dist/es/es2018/types/src/generated/types/CustomUseCaseTemplateQueryConfig.d.ts +8 -7
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomAcceptInvitationInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomAwsS3ConnectionAttributesRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomConnectionAttributesRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomMatchBoostOutputBridgeTablePathAttributeRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomMatchBoostOutputBridgeTablePathRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomMatchBoostOutputBridgeTableRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomMatchBoostOutputObjectConfigRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomMatchBoostOutputObjectRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomMatchBoostOutputRelatedTableRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomMatchBoostUsecaseConfigRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomMetadataConfigurationRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomMetadataMemberConfigRepresentation.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomMetadataOutputConfigRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomOutputConfigurationRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomSnowflakeConnectionAttributesRepresentation.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomTemplateRepresentation.d.ts +7 -4
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomUsecaseConfigInputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomUsecaseConfigRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/MatchBoostOutputBridgeTableInputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/MatchBoostOutputBridgeTablePathAttributeInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/MatchBoostOutputBridgeTablePathInputRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/MatchBoostOutputObjectConfigRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/MatchBoostOutputObjectInputRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/MatchBoostOutputRelatedTableInputRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/MatchBoostUsecaseConfigInputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/UseCaseTemplateAttributeConfigRepresentation.d.ts +52 -0
- package/dist/es/es2018/types/src/generated/types/UseCaseTemplateConfigRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/UseCaseTemplateMemberConfigRepresentation.d.ts +32 -0
- package/package.json +3 -3
- package/sfdc/index.js +501 -74
- package/src/raml/api.raml +433 -6
package/sfdc/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import { withDefaultLuvio } from 'force/ldsEngine';
|
|
|
17
17
|
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$c, typeCheckConfig as typeCheckConfig$c, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$6 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
|
-
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
20
|
+
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
21
21
|
const { isArray: ArrayIsArray$1 } = Array;
|
|
22
22
|
/**
|
|
23
23
|
* Validates an adapter config is well-formed.
|
|
@@ -41,7 +41,7 @@ function validateConfig(config, adapter, oneOf) {
|
|
|
41
41
|
throw new TypeError(`adapter ${displayName} does not yet support ${unsupported.sort().join(', ')}`);
|
|
42
42
|
}
|
|
43
43
|
const supported = required.concat(optional);
|
|
44
|
-
if (ObjectKeys(config).some(key => !supported.includes(key))) {
|
|
44
|
+
if (ObjectKeys$1(config).some(key => !supported.includes(key))) {
|
|
45
45
|
throw new TypeError(`adapter ${displayName} configuration supports only ${supported.sort().join(', ')}`);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -81,6 +81,7 @@ function buildAdapterValidationConfig(displayName, paramsMeta) {
|
|
|
81
81
|
}
|
|
82
82
|
const keyPrefix = 'data-clean-room';
|
|
83
83
|
|
|
84
|
+
const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
84
85
|
const { isArray: ArrayIsArray } = Array;
|
|
85
86
|
const { stringify: JSONStringify } = JSON;
|
|
86
87
|
function equalsArray(a, b, equalsItem) {
|
|
@@ -102,7 +103,52 @@ function createLink(ref) {
|
|
|
102
103
|
};
|
|
103
104
|
}
|
|
104
105
|
|
|
105
|
-
function validate$
|
|
106
|
+
function validate$C(obj, path = 'DataCleanRoomConnectionAttributesRepresentation') {
|
|
107
|
+
const v_error = (() => {
|
|
108
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
109
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
110
|
+
}
|
|
111
|
+
const obj_connectorType = obj.connectorType;
|
|
112
|
+
const path_connectorType = path + '.connectorType';
|
|
113
|
+
if (typeof obj_connectorType !== 'string') {
|
|
114
|
+
return new TypeError('Expected "string" but received "' + typeof obj_connectorType + '" (at "' + path_connectorType + '")');
|
|
115
|
+
}
|
|
116
|
+
})();
|
|
117
|
+
return v_error === undefined ? null : v_error;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
function validate$B(obj, path = 'DataCleanRoomOutputConfigurationRepresentation') {
|
|
121
|
+
const v_error = (() => {
|
|
122
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
123
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
124
|
+
}
|
|
125
|
+
if (obj.connectionAttributes !== undefined) {
|
|
126
|
+
const obj_connectionAttributes = obj.connectionAttributes;
|
|
127
|
+
const path_connectionAttributes = path + '.connectionAttributes';
|
|
128
|
+
const referencepath_connectionAttributesValidationError = validate$C(obj_connectionAttributes, path_connectionAttributes);
|
|
129
|
+
if (referencepath_connectionAttributesValidationError !== null) {
|
|
130
|
+
let message = 'Object doesn\'t match DataCleanRoomConnectionAttributesRepresentation (at "' + path_connectionAttributes + '")\n';
|
|
131
|
+
message += referencepath_connectionAttributesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
132
|
+
return new TypeError(message);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
if (obj.externalId !== undefined) {
|
|
136
|
+
const obj_externalId = obj.externalId;
|
|
137
|
+
const path_externalId = path + '.externalId';
|
|
138
|
+
if (typeof obj_externalId !== 'string') {
|
|
139
|
+
return new TypeError('Expected "string" but received "' + typeof obj_externalId + '" (at "' + path_externalId + '")');
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
const obj_outputDestinationType = obj.outputDestinationType;
|
|
143
|
+
const path_outputDestinationType = path + '.outputDestinationType';
|
|
144
|
+
if (typeof obj_outputDestinationType !== 'string') {
|
|
145
|
+
return new TypeError('Expected "string" but received "' + typeof obj_outputDestinationType + '" (at "' + path_outputDestinationType + '")');
|
|
146
|
+
}
|
|
147
|
+
})();
|
|
148
|
+
return v_error === undefined ? null : v_error;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
function validate$A(obj, path = 'DataCleanRoomMemberConfigRepresentation') {
|
|
106
152
|
const v_error = (() => {
|
|
107
153
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
108
154
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -147,7 +193,7 @@ function validate$s(obj, path = 'DataCleanRoomMemberConfigRepresentation') {
|
|
|
147
193
|
}
|
|
148
194
|
|
|
149
195
|
const VERSION$9 = "cc5736f976c7c58026dd19879ac57f5c";
|
|
150
|
-
function validate$
|
|
196
|
+
function validate$z(obj, path = 'DataCleanRoomMemberRepresentation') {
|
|
151
197
|
const v_error = (() => {
|
|
152
198
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
153
199
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -171,7 +217,7 @@ function validate$r(obj, path = 'DataCleanRoomMemberRepresentation') {
|
|
|
171
217
|
for (let i = 0; i < obj_memberConfigs.length; i++) {
|
|
172
218
|
const obj_memberConfigs_item = obj_memberConfigs[i];
|
|
173
219
|
const path_memberConfigs_item = path_memberConfigs + '[' + i + ']';
|
|
174
|
-
const referencepath_memberConfigs_itemValidationError = validate$
|
|
220
|
+
const referencepath_memberConfigs_itemValidationError = validate$A(obj_memberConfigs_item, path_memberConfigs_item);
|
|
175
221
|
if (referencepath_memberConfigs_itemValidationError !== null) {
|
|
176
222
|
let message = 'Object doesn\'t match DataCleanRoomMemberConfigRepresentation (at "' + path_memberConfigs_item + '")\n';
|
|
177
223
|
message += referencepath_memberConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -252,7 +298,7 @@ function equals$9(existing, incoming) {
|
|
|
252
298
|
}
|
|
253
299
|
const ingest$9 = function DataCleanRoomMemberRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
254
300
|
if (process.env.NODE_ENV !== 'production') {
|
|
255
|
-
const validateError = validate$
|
|
301
|
+
const validateError = validate$z(input);
|
|
256
302
|
if (validateError !== null) {
|
|
257
303
|
throw validateError;
|
|
258
304
|
}
|
|
@@ -314,12 +360,18 @@ const acceptDataCleanRoomInvitation_ConfigPropertyMetadata = [
|
|
|
314
360
|
generateParamConfigMetadata('collaborationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
315
361
|
generateParamConfigMetadata('invitationId', true, 2 /* Body */, 0 /* String */),
|
|
316
362
|
generateParamConfigMetadata('specificationId', true, 2 /* Body */, 0 /* String */),
|
|
363
|
+
generateParamConfigMetadata('outputConfiguration', false, 2 /* Body */, 4 /* Unsupported */),
|
|
317
364
|
];
|
|
318
365
|
const acceptDataCleanRoomInvitation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, acceptDataCleanRoomInvitation_ConfigPropertyMetadata);
|
|
319
366
|
const createResourceParams$b = /*#__PURE__*/ createResourceParams$c(acceptDataCleanRoomInvitation_ConfigPropertyMetadata);
|
|
320
367
|
function typeCheckConfig$b(untrustedConfig) {
|
|
321
368
|
const config = {};
|
|
322
369
|
typeCheckConfig$c(untrustedConfig, config, acceptDataCleanRoomInvitation_ConfigPropertyMetadata);
|
|
370
|
+
const untrustedConfig_outputConfiguration = untrustedConfig.outputConfiguration;
|
|
371
|
+
const referenceDataCleanRoomOutputConfigurationRepresentationValidationError = validate$B(untrustedConfig_outputConfiguration);
|
|
372
|
+
if (referenceDataCleanRoomOutputConfigurationRepresentationValidationError === null) {
|
|
373
|
+
config.outputConfiguration = untrustedConfig_outputConfiguration;
|
|
374
|
+
}
|
|
323
375
|
return config;
|
|
324
376
|
}
|
|
325
377
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -364,7 +416,7 @@ const acceptDataCleanRoomInvitationAdapterFactory = (luvio) => {
|
|
|
364
416
|
};
|
|
365
417
|
};
|
|
366
418
|
|
|
367
|
-
function validate$
|
|
419
|
+
function validate$y(obj, path = 'CdpUserRepresentation') {
|
|
368
420
|
const v_error = (() => {
|
|
369
421
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
370
422
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -394,20 +446,285 @@ function validate$q(obj, path = 'CdpUserRepresentation') {
|
|
|
394
446
|
return v_error === undefined ? null : v_error;
|
|
395
447
|
}
|
|
396
448
|
|
|
397
|
-
function validate$
|
|
449
|
+
function validate$x(obj, path = 'UseCaseTemplateAttributeConfigRepresentation') {
|
|
450
|
+
const v_error = (() => {
|
|
451
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
452
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
453
|
+
}
|
|
454
|
+
if (obj.alias !== undefined) {
|
|
455
|
+
const obj_alias = obj.alias;
|
|
456
|
+
const path_alias = path + '.alias';
|
|
457
|
+
if (typeof obj_alias !== 'string') {
|
|
458
|
+
return new TypeError('Expected "string" but received "' + typeof obj_alias + '" (at "' + path_alias + '")');
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
if (obj.defaultValue !== undefined) {
|
|
462
|
+
const obj_defaultValue = obj.defaultValue;
|
|
463
|
+
const path_defaultValue = path + '.defaultValue';
|
|
464
|
+
if (typeof obj_defaultValue !== 'string') {
|
|
465
|
+
return new TypeError('Expected "string" but received "' + typeof obj_defaultValue + '" (at "' + path_defaultValue + '")');
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
if (obj.description !== undefined) {
|
|
469
|
+
const obj_description = obj.description;
|
|
470
|
+
const path_description = path + '.description';
|
|
471
|
+
if (typeof obj_description !== 'string') {
|
|
472
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
if (obj.id !== undefined) {
|
|
476
|
+
const obj_id = obj.id;
|
|
477
|
+
const path_id = path + '.id';
|
|
478
|
+
if (typeof obj_id !== 'string') {
|
|
479
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
if (obj.label !== undefined) {
|
|
483
|
+
const obj_label = obj.label;
|
|
484
|
+
const path_label = path + '.label';
|
|
485
|
+
if (typeof obj_label !== 'string') {
|
|
486
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
if (obj.queryOptions !== undefined) {
|
|
490
|
+
const obj_queryOptions = obj.queryOptions;
|
|
491
|
+
const path_queryOptions = path + '.queryOptions';
|
|
492
|
+
if (obj_queryOptions === undefined) {
|
|
493
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_queryOptions + '" (at "' + path_queryOptions + '")');
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
if (obj.required !== undefined) {
|
|
497
|
+
const obj_required = obj.required;
|
|
498
|
+
const path_required = path + '.required';
|
|
499
|
+
if (typeof obj_required !== 'boolean') {
|
|
500
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_required + '" (at "' + path_required + '")');
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
if (obj.tableName !== undefined) {
|
|
504
|
+
const obj_tableName = obj.tableName;
|
|
505
|
+
const path_tableName = path + '.tableName';
|
|
506
|
+
if (typeof obj_tableName !== 'string') {
|
|
507
|
+
return new TypeError('Expected "string" but received "' + typeof obj_tableName + '" (at "' + path_tableName + '")');
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
if (obj.tooltip !== undefined) {
|
|
511
|
+
const obj_tooltip = obj.tooltip;
|
|
512
|
+
const path_tooltip = path + '.tooltip';
|
|
513
|
+
if (typeof obj_tooltip !== 'string') {
|
|
514
|
+
return new TypeError('Expected "string" but received "' + typeof obj_tooltip + '" (at "' + path_tooltip + '")');
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
})();
|
|
518
|
+
return v_error === undefined ? null : v_error;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
function validate$w(obj, path = 'UseCaseTemplateMemberConfigRepresentation') {
|
|
522
|
+
const v_error = (() => {
|
|
523
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
524
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
525
|
+
}
|
|
526
|
+
if (obj.attributeConfigs !== undefined) {
|
|
527
|
+
const obj_attributeConfigs = obj.attributeConfigs;
|
|
528
|
+
const path_attributeConfigs = path + '.attributeConfigs';
|
|
529
|
+
if (!ArrayIsArray(obj_attributeConfigs)) {
|
|
530
|
+
return new TypeError('Expected "array" but received "' + typeof obj_attributeConfigs + '" (at "' + path_attributeConfigs + '")');
|
|
531
|
+
}
|
|
532
|
+
for (let i = 0; i < obj_attributeConfigs.length; i++) {
|
|
533
|
+
const obj_attributeConfigs_item = obj_attributeConfigs[i];
|
|
534
|
+
const path_attributeConfigs_item = path_attributeConfigs + '[' + i + ']';
|
|
535
|
+
const referencepath_attributeConfigs_itemValidationError = validate$x(obj_attributeConfigs_item, path_attributeConfigs_item);
|
|
536
|
+
if (referencepath_attributeConfigs_itemValidationError !== null) {
|
|
537
|
+
let message = 'Object doesn\'t match UseCaseTemplateAttributeConfigRepresentation (at "' + path_attributeConfigs_item + '")\n';
|
|
538
|
+
message += referencepath_attributeConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
539
|
+
return new TypeError(message);
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
if (obj.memberType !== undefined) {
|
|
544
|
+
const obj_memberType = obj.memberType;
|
|
545
|
+
const path_memberType = path + '.memberType';
|
|
546
|
+
if (obj_memberType === undefined) {
|
|
547
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_memberType + '" (at "' + path_memberType + '")');
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
})();
|
|
551
|
+
return v_error === undefined ? null : v_error;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
function validate$v(obj, path = 'UseCaseTemplateConfigRepresentation') {
|
|
555
|
+
const v_error = (() => {
|
|
556
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
557
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
558
|
+
}
|
|
559
|
+
if (obj.memberConfigs !== undefined) {
|
|
560
|
+
const obj_memberConfigs = obj.memberConfigs;
|
|
561
|
+
const path_memberConfigs = path + '.memberConfigs';
|
|
562
|
+
if (!ArrayIsArray(obj_memberConfigs)) {
|
|
563
|
+
return new TypeError('Expected "array" but received "' + typeof obj_memberConfigs + '" (at "' + path_memberConfigs + '")');
|
|
564
|
+
}
|
|
565
|
+
for (let i = 0; i < obj_memberConfigs.length; i++) {
|
|
566
|
+
const obj_memberConfigs_item = obj_memberConfigs[i];
|
|
567
|
+
const path_memberConfigs_item = path_memberConfigs + '[' + i + ']';
|
|
568
|
+
const referencepath_memberConfigs_itemValidationError = validate$w(obj_memberConfigs_item, path_memberConfigs_item);
|
|
569
|
+
if (referencepath_memberConfigs_itemValidationError !== null) {
|
|
570
|
+
let message = 'Object doesn\'t match UseCaseTemplateMemberConfigRepresentation (at "' + path_memberConfigs_item + '")\n';
|
|
571
|
+
message += referencepath_memberConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
572
|
+
return new TypeError(message);
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
})();
|
|
577
|
+
return v_error === undefined ? null : v_error;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
function validate$u(obj, path = 'DataCleanRoomMetadataOutputConfigRepresentation') {
|
|
398
581
|
const v_error = (() => {
|
|
399
582
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
400
583
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
401
584
|
}
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
585
|
+
if (obj.connectorType !== undefined) {
|
|
586
|
+
const obj_connectorType = obj.connectorType;
|
|
587
|
+
const path_connectorType = path + '.connectorType';
|
|
588
|
+
if (obj_connectorType === undefined) {
|
|
589
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_connectorType + '" (at "' + path_connectorType + '")');
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
if (obj.destinationType !== undefined) {
|
|
593
|
+
const obj_destinationType = obj.destinationType;
|
|
594
|
+
const path_destinationType = path + '.destinationType';
|
|
595
|
+
if (obj_destinationType === undefined) {
|
|
596
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_destinationType + '" (at "' + path_destinationType + '")');
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
})();
|
|
600
|
+
return v_error === undefined ? null : v_error;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
function validate$t(obj, path = 'DataCleanRoomMetadataMemberConfigRepresentation') {
|
|
604
|
+
const v_error = (() => {
|
|
605
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
606
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
607
|
+
}
|
|
608
|
+
if (obj.canReceiveResult !== undefined) {
|
|
609
|
+
const obj_canReceiveResult = obj.canReceiveResult;
|
|
610
|
+
const path_canReceiveResult = path + '.canReceiveResult';
|
|
611
|
+
if (typeof obj_canReceiveResult !== 'boolean') {
|
|
612
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_canReceiveResult + '" (at "' + path_canReceiveResult + '")');
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
if (obj.canTriggerQuery !== undefined) {
|
|
616
|
+
const obj_canTriggerQuery = obj.canTriggerQuery;
|
|
617
|
+
const path_canTriggerQuery = path + '.canTriggerQuery';
|
|
618
|
+
if (typeof obj_canTriggerQuery !== 'boolean') {
|
|
619
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_canTriggerQuery + '" (at "' + path_canTriggerQuery + '")');
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
if (obj.contributesData !== undefined) {
|
|
623
|
+
const obj_contributesData = obj.contributesData;
|
|
624
|
+
const path_contributesData = path + '.contributesData';
|
|
625
|
+
if (typeof obj_contributesData !== 'boolean') {
|
|
626
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_contributesData + '" (at "' + path_contributesData + '")');
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
if (obj.outputConfig !== undefined) {
|
|
630
|
+
const obj_outputConfig = obj.outputConfig;
|
|
631
|
+
const path_outputConfig = path + '.outputConfig';
|
|
632
|
+
const referencepath_outputConfigValidationError = validate$u(obj_outputConfig, path_outputConfig);
|
|
633
|
+
if (referencepath_outputConfigValidationError !== null) {
|
|
634
|
+
let message = 'Object doesn\'t match DataCleanRoomMetadataOutputConfigRepresentation (at "' + path_outputConfig + '")\n';
|
|
635
|
+
message += referencepath_outputConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
636
|
+
return new TypeError(message);
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
if (obj.paysForQueries !== undefined) {
|
|
640
|
+
const obj_paysForQueries = obj.paysForQueries;
|
|
641
|
+
const path_paysForQueries = path + '.paysForQueries';
|
|
642
|
+
if (typeof obj_paysForQueries !== 'boolean') {
|
|
643
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_paysForQueries + '" (at "' + path_paysForQueries + '")');
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
if (obj.type !== undefined) {
|
|
647
|
+
const obj_type = obj.type;
|
|
648
|
+
const path_type = path + '.type';
|
|
649
|
+
if (typeof obj_type !== 'string') {
|
|
650
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
})();
|
|
654
|
+
return v_error === undefined ? null : v_error;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
function validate$s(obj, path = 'DataCleanRoomUsecaseConfigRepresentation') {
|
|
658
|
+
const v_error = (() => {
|
|
659
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
660
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
661
|
+
}
|
|
662
|
+
if (obj.useCaseType !== undefined) {
|
|
663
|
+
const obj_useCaseType = obj.useCaseType;
|
|
664
|
+
const path_useCaseType = path + '.useCaseType';
|
|
665
|
+
if (obj_useCaseType === undefined) {
|
|
666
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_useCaseType + '" (at "' + path_useCaseType + '")');
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
})();
|
|
670
|
+
return v_error === undefined ? null : v_error;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
function validate$r(obj, path = 'DataCleanRoomMetadataConfigurationRepresentation') {
|
|
674
|
+
const v_error = (() => {
|
|
675
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
676
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
677
|
+
}
|
|
678
|
+
if (obj.memberConfig !== undefined) {
|
|
679
|
+
const obj_memberConfig = obj.memberConfig;
|
|
680
|
+
const path_memberConfig = path + '.memberConfig';
|
|
681
|
+
if (!ArrayIsArray(obj_memberConfig)) {
|
|
682
|
+
return new TypeError('Expected "array" but received "' + typeof obj_memberConfig + '" (at "' + path_memberConfig + '")');
|
|
683
|
+
}
|
|
684
|
+
for (let i = 0; i < obj_memberConfig.length; i++) {
|
|
685
|
+
const obj_memberConfig_item = obj_memberConfig[i];
|
|
686
|
+
const path_memberConfig_item = path_memberConfig + '[' + i + ']';
|
|
687
|
+
const referencepath_memberConfig_itemValidationError = validate$t(obj_memberConfig_item, path_memberConfig_item);
|
|
688
|
+
if (referencepath_memberConfig_itemValidationError !== null) {
|
|
689
|
+
let message = 'Object doesn\'t match DataCleanRoomMetadataMemberConfigRepresentation (at "' + path_memberConfig_item + '")\n';
|
|
690
|
+
message += referencepath_memberConfig_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
691
|
+
return new TypeError(message);
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
if (obj.usecaseConfig !== undefined) {
|
|
696
|
+
const obj_usecaseConfig = obj.usecaseConfig;
|
|
697
|
+
const path_usecaseConfig = path + '.usecaseConfig';
|
|
698
|
+
const referencepath_usecaseConfigValidationError = validate$s(obj_usecaseConfig, path_usecaseConfig);
|
|
699
|
+
if (referencepath_usecaseConfigValidationError !== null) {
|
|
700
|
+
let message = 'Object doesn\'t match DataCleanRoomUsecaseConfigRepresentation (at "' + path_usecaseConfig + '")\n';
|
|
701
|
+
message += referencepath_usecaseConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
702
|
+
return new TypeError(message);
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
})();
|
|
706
|
+
return v_error === undefined ? null : v_error;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
function validate$q(obj, path = 'DataCleanRoomTemplateRepresentation') {
|
|
710
|
+
const v_error = (() => {
|
|
711
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
712
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
713
|
+
}
|
|
714
|
+
if (obj.configuration !== undefined) {
|
|
715
|
+
const obj_configuration = obj.configuration;
|
|
716
|
+
const path_configuration = path + '.configuration';
|
|
717
|
+
const referencepath_configurationValidationError = validate$v(obj_configuration, path_configuration);
|
|
718
|
+
if (referencepath_configurationValidationError !== null) {
|
|
719
|
+
let message = 'Object doesn\'t match UseCaseTemplateConfigRepresentation (at "' + path_configuration + '")\n';
|
|
720
|
+
message += referencepath_configurationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
721
|
+
return new TypeError(message);
|
|
722
|
+
}
|
|
406
723
|
}
|
|
407
724
|
if (obj.createdBy !== undefined) {
|
|
408
725
|
const obj_createdBy = obj.createdBy;
|
|
409
726
|
const path_createdBy = path + '.createdBy';
|
|
410
|
-
const referencepath_createdByValidationError = validate$
|
|
727
|
+
const referencepath_createdByValidationError = validate$y(obj_createdBy, path_createdBy);
|
|
411
728
|
if (referencepath_createdByValidationError !== null) {
|
|
412
729
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
413
730
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -443,7 +760,7 @@ function validate$p(obj, path = 'DataCleanRoomTemplateRepresentation') {
|
|
|
443
760
|
if (obj.lastModifiedBy !== undefined) {
|
|
444
761
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
445
762
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
446
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
763
|
+
const referencepath_lastModifiedByValidationError = validate$y(obj_lastModifiedBy, path_lastModifiedBy);
|
|
447
764
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
448
765
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
449
766
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -457,6 +774,16 @@ function validate$p(obj, path = 'DataCleanRoomTemplateRepresentation') {
|
|
|
457
774
|
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
458
775
|
}
|
|
459
776
|
}
|
|
777
|
+
if (obj.metadataConfiguration !== undefined) {
|
|
778
|
+
const obj_metadataConfiguration = obj.metadataConfiguration;
|
|
779
|
+
const path_metadataConfiguration = path + '.metadataConfiguration';
|
|
780
|
+
const referencepath_metadataConfigurationValidationError = validate$r(obj_metadataConfiguration, path_metadataConfiguration);
|
|
781
|
+
if (referencepath_metadataConfigurationValidationError !== null) {
|
|
782
|
+
let message = 'Object doesn\'t match DataCleanRoomMetadataConfigurationRepresentation (at "' + path_metadataConfiguration + '")\n';
|
|
783
|
+
message += referencepath_metadataConfigurationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
784
|
+
return new TypeError(message);
|
|
785
|
+
}
|
|
786
|
+
}
|
|
460
787
|
if (obj.name !== undefined) {
|
|
461
788
|
const obj_name = obj.name;
|
|
462
789
|
const path_name = path + '.name';
|
|
@@ -516,7 +843,7 @@ function validate$p(obj, path = 'DataCleanRoomTemplateRepresentation') {
|
|
|
516
843
|
}
|
|
517
844
|
|
|
518
845
|
const VERSION$8 = "11bd9b71debcc363b339183bc8d65735";
|
|
519
|
-
function validate$
|
|
846
|
+
function validate$p(obj, path = 'DataCleanRoomCollaborationRepresentation') {
|
|
520
847
|
const v_error = (() => {
|
|
521
848
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
522
849
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -531,7 +858,7 @@ function validate$o(obj, path = 'DataCleanRoomCollaborationRepresentation') {
|
|
|
531
858
|
if (obj.createdBy !== undefined) {
|
|
532
859
|
const obj_createdBy = obj.createdBy;
|
|
533
860
|
const path_createdBy = path + '.createdBy';
|
|
534
|
-
const referencepath_createdByValidationError = validate$
|
|
861
|
+
const referencepath_createdByValidationError = validate$y(obj_createdBy, path_createdBy);
|
|
535
862
|
if (referencepath_createdByValidationError !== null) {
|
|
536
863
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
537
864
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -574,7 +901,7 @@ function validate$o(obj, path = 'DataCleanRoomCollaborationRepresentation') {
|
|
|
574
901
|
if (obj.lastModifiedBy !== undefined) {
|
|
575
902
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
576
903
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
577
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
904
|
+
const referencepath_lastModifiedByValidationError = validate$y(obj_lastModifiedBy, path_lastModifiedBy);
|
|
578
905
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
579
906
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
580
907
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -596,7 +923,7 @@ function validate$o(obj, path = 'DataCleanRoomCollaborationRepresentation') {
|
|
|
596
923
|
for (let i = 0; i < obj_members.length; i++) {
|
|
597
924
|
const obj_members_item = obj_members[i];
|
|
598
925
|
const path_members_item = path_members + '[' + i + ']';
|
|
599
|
-
const referencepath_members_itemValidationError = validate$
|
|
926
|
+
const referencepath_members_itemValidationError = validate$z(obj_members_item, path_members_item);
|
|
600
927
|
if (referencepath_members_itemValidationError !== null) {
|
|
601
928
|
let message = 'Object doesn\'t match DataCleanRoomMemberRepresentation (at "' + path_members_item + '")\n';
|
|
602
929
|
message += referencepath_members_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -624,7 +951,7 @@ function validate$o(obj, path = 'DataCleanRoomCollaborationRepresentation') {
|
|
|
624
951
|
}
|
|
625
952
|
const obj_templateVersion = obj.templateVersion;
|
|
626
953
|
const path_templateVersion = path + '.templateVersion';
|
|
627
|
-
const referencepath_templateVersionValidationError = validate$
|
|
954
|
+
const referencepath_templateVersionValidationError = validate$q(obj_templateVersion, path_templateVersion);
|
|
628
955
|
if (referencepath_templateVersionValidationError !== null) {
|
|
629
956
|
let message = 'Object doesn\'t match DataCleanRoomTemplateRepresentation (at "' + path_templateVersion + '")\n';
|
|
630
957
|
message += referencepath_templateVersionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -669,7 +996,7 @@ function equals$8(existing, incoming) {
|
|
|
669
996
|
}
|
|
670
997
|
const ingest$8 = function DataCleanRoomCollaborationRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
671
998
|
if (process.env.NODE_ENV !== 'production') {
|
|
672
|
-
const validateError = validate$
|
|
999
|
+
const validateError = validate$p(input);
|
|
673
1000
|
if (validateError !== null) {
|
|
674
1001
|
throw validateError;
|
|
675
1002
|
}
|
|
@@ -787,7 +1114,7 @@ const createDataCleanRoomCollaborationAdapterFactory = (luvio) => {
|
|
|
787
1114
|
};
|
|
788
1115
|
};
|
|
789
1116
|
|
|
790
|
-
function validate$
|
|
1117
|
+
function validate$o(obj, path = 'UseCaseTemplateMappingAttributeFilterOptionRepresentation') {
|
|
791
1118
|
const v_error = (() => {
|
|
792
1119
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
793
1120
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -813,7 +1140,7 @@ function validate$n(obj, path = 'UseCaseTemplateMappingAttributeFilterOptionRepr
|
|
|
813
1140
|
return v_error === undefined ? null : v_error;
|
|
814
1141
|
}
|
|
815
1142
|
|
|
816
|
-
function validate$
|
|
1143
|
+
function validate$n(obj, path = 'UseCaseTemplateMappingPathAttributeRepresentation') {
|
|
817
1144
|
const v_error = (() => {
|
|
818
1145
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
819
1146
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -832,7 +1159,7 @@ function validate$m(obj, path = 'UseCaseTemplateMappingPathAttributeRepresentati
|
|
|
832
1159
|
return v_error === undefined ? null : v_error;
|
|
833
1160
|
}
|
|
834
1161
|
|
|
835
|
-
function validate$
|
|
1162
|
+
function validate$m(obj, path = 'UseCaseTemplateMappingSubjectAttributeRepresentation') {
|
|
836
1163
|
const v_error = (() => {
|
|
837
1164
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
838
1165
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -861,7 +1188,7 @@ function validate$l(obj, path = 'UseCaseTemplateMappingSubjectAttributeRepresent
|
|
|
861
1188
|
return v_error === undefined ? null : v_error;
|
|
862
1189
|
}
|
|
863
1190
|
|
|
864
|
-
function validate$
|
|
1191
|
+
function validate$l(obj, path = 'UseCaseTemplateMappingAttributeRepresentation') {
|
|
865
1192
|
const v_error = (() => {
|
|
866
1193
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
867
1194
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -881,7 +1208,7 @@ function validate$k(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
|
|
|
881
1208
|
if (obj.createdBy !== undefined) {
|
|
882
1209
|
const obj_createdBy = obj.createdBy;
|
|
883
1210
|
const path_createdBy = path + '.createdBy';
|
|
884
|
-
const referencepath_createdByValidationError = validate$
|
|
1211
|
+
const referencepath_createdByValidationError = validate$y(obj_createdBy, path_createdBy);
|
|
885
1212
|
if (referencepath_createdByValidationError !== null) {
|
|
886
1213
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
887
1214
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -898,7 +1225,7 @@ function validate$k(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
|
|
|
898
1225
|
if (obj.dataMapping !== undefined) {
|
|
899
1226
|
const obj_dataMapping = obj.dataMapping;
|
|
900
1227
|
const path_dataMapping = path + '.dataMapping';
|
|
901
|
-
const referencepath_dataMappingValidationError = validate$
|
|
1228
|
+
const referencepath_dataMappingValidationError = validate$k(obj_dataMapping, path_dataMapping);
|
|
902
1229
|
if (referencepath_dataMappingValidationError !== null) {
|
|
903
1230
|
let message = 'Object doesn\'t match UseCaseTemplateMappingRepresentation (at "' + path_dataMapping + '")\n';
|
|
904
1231
|
message += referencepath_dataMappingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -908,7 +1235,7 @@ function validate$k(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
|
|
|
908
1235
|
if (obj.filterOptions !== undefined) {
|
|
909
1236
|
const obj_filterOptions = obj.filterOptions;
|
|
910
1237
|
const path_filterOptions = path + '.filterOptions';
|
|
911
|
-
const referencepath_filterOptionsValidationError = validate$
|
|
1238
|
+
const referencepath_filterOptionsValidationError = validate$o(obj_filterOptions, path_filterOptions);
|
|
912
1239
|
if (referencepath_filterOptionsValidationError !== null) {
|
|
913
1240
|
let message = 'Object doesn\'t match UseCaseTemplateMappingAttributeFilterOptionRepresentation (at "' + path_filterOptions + '")\n';
|
|
914
1241
|
message += referencepath_filterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -932,7 +1259,7 @@ function validate$k(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
|
|
|
932
1259
|
if (obj.lastModifiedBy !== undefined) {
|
|
933
1260
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
934
1261
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
935
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
1262
|
+
const referencepath_lastModifiedByValidationError = validate$y(obj_lastModifiedBy, path_lastModifiedBy);
|
|
936
1263
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
937
1264
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
938
1265
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -968,7 +1295,7 @@ function validate$k(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
|
|
|
968
1295
|
for (let i = 0; i < obj_path.length; i++) {
|
|
969
1296
|
const obj_path_item = obj_path[i];
|
|
970
1297
|
const path_path_item = path_path + '[' + i + ']';
|
|
971
|
-
const referencepath_path_itemValidationError = validate$
|
|
1298
|
+
const referencepath_path_itemValidationError = validate$n(obj_path_item, path_path_item);
|
|
972
1299
|
if (referencepath_path_itemValidationError !== null) {
|
|
973
1300
|
let message = 'Object doesn\'t match UseCaseTemplateMappingPathAttributeRepresentation (at "' + path_path_item + '")\n';
|
|
974
1301
|
message += referencepath_path_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -977,7 +1304,7 @@ function validate$k(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
|
|
|
977
1304
|
}
|
|
978
1305
|
const obj_subjectAttribute = obj.subjectAttribute;
|
|
979
1306
|
const path_subjectAttribute = path + '.subjectAttribute';
|
|
980
|
-
const referencepath_subjectAttributeValidationError = validate$
|
|
1307
|
+
const referencepath_subjectAttributeValidationError = validate$m(obj_subjectAttribute, path_subjectAttribute);
|
|
981
1308
|
if (referencepath_subjectAttributeValidationError !== null) {
|
|
982
1309
|
let message = 'Object doesn\'t match UseCaseTemplateMappingSubjectAttributeRepresentation (at "' + path_subjectAttribute + '")\n';
|
|
983
1310
|
message += referencepath_subjectAttributeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -994,7 +1321,7 @@ function validate$k(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
|
|
|
994
1321
|
return v_error === undefined ? null : v_error;
|
|
995
1322
|
}
|
|
996
1323
|
|
|
997
|
-
function validate$
|
|
1324
|
+
function validate$k(obj, path = 'UseCaseTemplateMappingRepresentation') {
|
|
998
1325
|
const v_error = (() => {
|
|
999
1326
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1000
1327
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1007,7 +1334,7 @@ function validate$j(obj, path = 'UseCaseTemplateMappingRepresentation') {
|
|
|
1007
1334
|
for (let i = 0; i < obj_attributes.length; i++) {
|
|
1008
1335
|
const obj_attributes_item = obj_attributes[i];
|
|
1009
1336
|
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
1010
|
-
const referencepath_attributes_itemValidationError = validate$
|
|
1337
|
+
const referencepath_attributes_itemValidationError = validate$l(obj_attributes_item, path_attributes_item);
|
|
1011
1338
|
if (referencepath_attributes_itemValidationError !== null) {
|
|
1012
1339
|
let message = 'Object doesn\'t match UseCaseTemplateMappingAttributeRepresentation (at "' + path_attributes_item + '")\n';
|
|
1013
1340
|
message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1022,7 +1349,7 @@ function validate$j(obj, path = 'UseCaseTemplateMappingRepresentation') {
|
|
|
1022
1349
|
if (obj.createdBy !== undefined) {
|
|
1023
1350
|
const obj_createdBy = obj.createdBy;
|
|
1024
1351
|
const path_createdBy = path + '.createdBy';
|
|
1025
|
-
const referencepath_createdByValidationError = validate$
|
|
1352
|
+
const referencepath_createdByValidationError = validate$y(obj_createdBy, path_createdBy);
|
|
1026
1353
|
if (referencepath_createdByValidationError !== null) {
|
|
1027
1354
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
1028
1355
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1053,7 +1380,7 @@ function validate$j(obj, path = 'UseCaseTemplateMappingRepresentation') {
|
|
|
1053
1380
|
if (obj.lastModifiedBy !== undefined) {
|
|
1054
1381
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
1055
1382
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
1056
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
1383
|
+
const referencepath_lastModifiedByValidationError = validate$y(obj_lastModifiedBy, path_lastModifiedBy);
|
|
1057
1384
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
1058
1385
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
1059
1386
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1093,7 +1420,7 @@ function validate$j(obj, path = 'UseCaseTemplateMappingRepresentation') {
|
|
|
1093
1420
|
}
|
|
1094
1421
|
|
|
1095
1422
|
const VERSION$7 = "838a38ab153e1dd3331fe38ec216c0ae";
|
|
1096
|
-
function validate$
|
|
1423
|
+
function validate$j(obj, path = 'DataCleanRoomDataSpecificationRepresentation') {
|
|
1097
1424
|
const v_error = (() => {
|
|
1098
1425
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1099
1426
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1101,7 +1428,7 @@ function validate$i(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
|
|
|
1101
1428
|
if (obj.createdBy !== undefined) {
|
|
1102
1429
|
const obj_createdBy = obj.createdBy;
|
|
1103
1430
|
const path_createdBy = path + '.createdBy';
|
|
1104
|
-
const referencepath_createdByValidationError = validate$
|
|
1431
|
+
const referencepath_createdByValidationError = validate$y(obj_createdBy, path_createdBy);
|
|
1105
1432
|
if (referencepath_createdByValidationError !== null) {
|
|
1106
1433
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
1107
1434
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1117,7 +1444,7 @@ function validate$i(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
|
|
|
1117
1444
|
}
|
|
1118
1445
|
const obj_dataMapping = obj.dataMapping;
|
|
1119
1446
|
const path_dataMapping = path + '.dataMapping';
|
|
1120
|
-
const referencepath_dataMappingValidationError = validate$
|
|
1447
|
+
const referencepath_dataMappingValidationError = validate$k(obj_dataMapping, path_dataMapping);
|
|
1121
1448
|
if (referencepath_dataMappingValidationError !== null) {
|
|
1122
1449
|
let message = 'Object doesn\'t match UseCaseTemplateMappingRepresentation (at "' + path_dataMapping + '")\n';
|
|
1123
1450
|
message += referencepath_dataMappingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1150,7 +1477,7 @@ function validate$i(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
|
|
|
1150
1477
|
if (obj.lastModifiedBy !== undefined) {
|
|
1151
1478
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
1152
1479
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
1153
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
1480
|
+
const referencepath_lastModifiedByValidationError = validate$y(obj_lastModifiedBy, path_lastModifiedBy);
|
|
1154
1481
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
1155
1482
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
1156
1483
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1205,7 +1532,7 @@ function validate$i(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
|
|
|
1205
1532
|
if (obj.templateVersion !== undefined) {
|
|
1206
1533
|
const obj_templateVersion = obj.templateVersion;
|
|
1207
1534
|
const path_templateVersion = path + '.templateVersion';
|
|
1208
|
-
const referencepath_templateVersionValidationError = validate$
|
|
1535
|
+
const referencepath_templateVersionValidationError = validate$q(obj_templateVersion, path_templateVersion);
|
|
1209
1536
|
if (referencepath_templateVersionValidationError !== null) {
|
|
1210
1537
|
let message = 'Object doesn\'t match DataCleanRoomTemplateRepresentation (at "' + path_templateVersion + '")\n';
|
|
1211
1538
|
message += referencepath_templateVersionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1251,7 +1578,7 @@ function equals$7(existing, incoming) {
|
|
|
1251
1578
|
}
|
|
1252
1579
|
const ingest$7 = function DataCleanRoomDataSpecificationRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1253
1580
|
if (process.env.NODE_ENV !== 'production') {
|
|
1254
|
-
const validateError = validate$
|
|
1581
|
+
const validateError = validate$j(input);
|
|
1255
1582
|
if (validateError !== null) {
|
|
1256
1583
|
throw validateError;
|
|
1257
1584
|
}
|
|
@@ -1373,7 +1700,7 @@ const createDataCleanRoomSpecificationAdapterFactory = (luvio) => {
|
|
|
1373
1700
|
};
|
|
1374
1701
|
};
|
|
1375
1702
|
|
|
1376
|
-
function validate$
|
|
1703
|
+
function validate$i(obj, path = 'CustomUseCaseTemplateAnalysisConfigRepresentation') {
|
|
1377
1704
|
const v_error = (() => {
|
|
1378
1705
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1379
1706
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1389,7 +1716,7 @@ function validate$h(obj, path = 'CustomUseCaseTemplateAnalysisConfigRepresentati
|
|
|
1389
1716
|
return v_error === undefined ? null : v_error;
|
|
1390
1717
|
}
|
|
1391
1718
|
|
|
1392
|
-
function validate$
|
|
1719
|
+
function validate$h(obj, path = 'CustomUseCaseTemplateQueryParamConfig') {
|
|
1393
1720
|
const v_error = (() => {
|
|
1394
1721
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1395
1722
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1413,7 +1740,7 @@ function validate$g(obj, path = 'CustomUseCaseTemplateQueryParamConfig') {
|
|
|
1413
1740
|
return v_error === undefined ? null : v_error;
|
|
1414
1741
|
}
|
|
1415
1742
|
|
|
1416
|
-
function validate$
|
|
1743
|
+
function validate$g(obj, path = 'CustomUseCaseTemplateQueryParamRepresentation') {
|
|
1417
1744
|
const v_error = (() => {
|
|
1418
1745
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1419
1746
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1426,7 +1753,7 @@ function validate$f(obj, path = 'CustomUseCaseTemplateQueryParamRepresentation')
|
|
|
1426
1753
|
for (let i = 0; i < obj_queryParamConfigs.length; i++) {
|
|
1427
1754
|
const obj_queryParamConfigs_item = obj_queryParamConfigs[i];
|
|
1428
1755
|
const path_queryParamConfigs_item = path_queryParamConfigs + '[' + i + ']';
|
|
1429
|
-
const referencepath_queryParamConfigs_itemValidationError = validate$
|
|
1756
|
+
const referencepath_queryParamConfigs_itemValidationError = validate$h(obj_queryParamConfigs_item, path_queryParamConfigs_item);
|
|
1430
1757
|
if (referencepath_queryParamConfigs_itemValidationError !== null) {
|
|
1431
1758
|
let message = 'Object doesn\'t match CustomUseCaseTemplateQueryParamConfig (at "' + path_queryParamConfigs_item + '")\n';
|
|
1432
1759
|
message += referencepath_queryParamConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1437,7 +1764,7 @@ function validate$f(obj, path = 'CustomUseCaseTemplateQueryParamRepresentation')
|
|
|
1437
1764
|
return v_error === undefined ? null : v_error;
|
|
1438
1765
|
}
|
|
1439
1766
|
|
|
1440
|
-
function validate$
|
|
1767
|
+
function validate$f(obj, path = 'CustomUseCaseTemplateQueryConfig') {
|
|
1441
1768
|
const v_error = (() => {
|
|
1442
1769
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1443
1770
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1445,7 +1772,7 @@ function validate$e(obj, path = 'CustomUseCaseTemplateQueryConfig') {
|
|
|
1445
1772
|
if (obj.analysisConfigs !== undefined) {
|
|
1446
1773
|
const obj_analysisConfigs = obj.analysisConfigs;
|
|
1447
1774
|
const path_analysisConfigs = path + '.analysisConfigs';
|
|
1448
|
-
const referencepath_analysisConfigsValidationError = validate$
|
|
1775
|
+
const referencepath_analysisConfigsValidationError = validate$i(obj_analysisConfigs, path_analysisConfigs);
|
|
1449
1776
|
if (referencepath_analysisConfigsValidationError !== null) {
|
|
1450
1777
|
let message = 'Object doesn\'t match CustomUseCaseTemplateAnalysisConfigRepresentation (at "' + path_analysisConfigs + '")\n';
|
|
1451
1778
|
message += referencepath_analysisConfigsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1465,10 +1792,31 @@ function validate$e(obj, path = 'CustomUseCaseTemplateQueryConfig') {
|
|
|
1465
1792
|
if (obj.queryParameters !== undefined) {
|
|
1466
1793
|
const obj_queryParameters = obj.queryParameters;
|
|
1467
1794
|
const path_queryParameters = path + '.queryParameters';
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1795
|
+
let obj_queryParameters_union0 = null;
|
|
1796
|
+
const obj_queryParameters_union0_error = (() => {
|
|
1797
|
+
const referencepath_queryParametersValidationError = validate$g(obj_queryParameters, path_queryParameters);
|
|
1798
|
+
if (referencepath_queryParametersValidationError !== null) {
|
|
1799
|
+
let message = 'Object doesn\'t match CustomUseCaseTemplateQueryParamRepresentation (at "' + path_queryParameters + '")\n';
|
|
1800
|
+
message += referencepath_queryParametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1801
|
+
return new TypeError(message);
|
|
1802
|
+
}
|
|
1803
|
+
})();
|
|
1804
|
+
if (obj_queryParameters_union0_error != null) {
|
|
1805
|
+
obj_queryParameters_union0 = obj_queryParameters_union0_error.message;
|
|
1806
|
+
}
|
|
1807
|
+
let obj_queryParameters_union1 = null;
|
|
1808
|
+
const obj_queryParameters_union1_error = (() => {
|
|
1809
|
+
if (obj_queryParameters !== null) {
|
|
1810
|
+
return new TypeError('Expected "null" but received "' + typeof obj_queryParameters + '" (at "' + path_queryParameters + '")');
|
|
1811
|
+
}
|
|
1812
|
+
})();
|
|
1813
|
+
if (obj_queryParameters_union1_error != null) {
|
|
1814
|
+
obj_queryParameters_union1 = obj_queryParameters_union1_error.message;
|
|
1815
|
+
}
|
|
1816
|
+
if (obj_queryParameters_union0 && obj_queryParameters_union1) {
|
|
1817
|
+
let message = 'Object doesn\'t match union (at "' + path_queryParameters + '")';
|
|
1818
|
+
message += '\n' + obj_queryParameters_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1819
|
+
message += '\n' + obj_queryParameters_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1472
1820
|
return new TypeError(message);
|
|
1473
1821
|
}
|
|
1474
1822
|
}
|
|
@@ -1484,15 +1832,61 @@ function validate$e(obj, path = 'CustomUseCaseTemplateQueryConfig') {
|
|
|
1484
1832
|
return new TypeError('Expected "string" but received "' + typeof obj_referencedTables_item + '" (at "' + path_referencedTables_item + '")');
|
|
1485
1833
|
}
|
|
1486
1834
|
}
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1835
|
+
if (obj.source !== undefined) {
|
|
1836
|
+
const obj_source = obj.source;
|
|
1837
|
+
const path_source = path + '.source';
|
|
1838
|
+
let obj_source_union0 = null;
|
|
1839
|
+
const obj_source_union0_error = (() => {
|
|
1840
|
+
if (typeof obj_source !== 'string') {
|
|
1841
|
+
return new TypeError('Expected "string" but received "' + typeof obj_source + '" (at "' + path_source + '")');
|
|
1842
|
+
}
|
|
1843
|
+
})();
|
|
1844
|
+
if (obj_source_union0_error != null) {
|
|
1845
|
+
obj_source_union0 = obj_source_union0_error.message;
|
|
1846
|
+
}
|
|
1847
|
+
let obj_source_union1 = null;
|
|
1848
|
+
const obj_source_union1_error = (() => {
|
|
1849
|
+
if (obj_source !== null) {
|
|
1850
|
+
return new TypeError('Expected "null" but received "' + typeof obj_source + '" (at "' + path_source + '")');
|
|
1851
|
+
}
|
|
1852
|
+
})();
|
|
1853
|
+
if (obj_source_union1_error != null) {
|
|
1854
|
+
obj_source_union1 = obj_source_union1_error.message;
|
|
1855
|
+
}
|
|
1856
|
+
if (obj_source_union0 && obj_source_union1) {
|
|
1857
|
+
let message = 'Object doesn\'t match union (at "' + path_source + '")';
|
|
1858
|
+
message += '\n' + obj_source_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1859
|
+
message += '\n' + obj_source_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1860
|
+
return new TypeError(message);
|
|
1861
|
+
}
|
|
1491
1862
|
}
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1863
|
+
if (obj.type !== undefined) {
|
|
1864
|
+
const obj_type = obj.type;
|
|
1865
|
+
const path_type = path + '.type';
|
|
1866
|
+
let obj_type_union0 = null;
|
|
1867
|
+
const obj_type_union0_error = (() => {
|
|
1868
|
+
if (typeof obj_type !== 'string') {
|
|
1869
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
1870
|
+
}
|
|
1871
|
+
})();
|
|
1872
|
+
if (obj_type_union0_error != null) {
|
|
1873
|
+
obj_type_union0 = obj_type_union0_error.message;
|
|
1874
|
+
}
|
|
1875
|
+
let obj_type_union1 = null;
|
|
1876
|
+
const obj_type_union1_error = (() => {
|
|
1877
|
+
if (obj_type !== null) {
|
|
1878
|
+
return new TypeError('Expected "null" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
1879
|
+
}
|
|
1880
|
+
})();
|
|
1881
|
+
if (obj_type_union1_error != null) {
|
|
1882
|
+
obj_type_union1 = obj_type_union1_error.message;
|
|
1883
|
+
}
|
|
1884
|
+
if (obj_type_union0 && obj_type_union1) {
|
|
1885
|
+
let message = 'Object doesn\'t match union (at "' + path_type + '")';
|
|
1886
|
+
message += '\n' + obj_type_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1887
|
+
message += '\n' + obj_type_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1888
|
+
return new TypeError(message);
|
|
1889
|
+
}
|
|
1496
1890
|
}
|
|
1497
1891
|
if (obj.usecase !== undefined) {
|
|
1498
1892
|
const obj_usecase = obj.usecase;
|
|
@@ -1505,7 +1899,7 @@ function validate$e(obj, path = 'CustomUseCaseTemplateQueryConfig') {
|
|
|
1505
1899
|
return v_error === undefined ? null : v_error;
|
|
1506
1900
|
}
|
|
1507
1901
|
|
|
1508
|
-
function validate$
|
|
1902
|
+
function validate$e(obj, path = 'CustomUseCaseTemplateQueryInputRepresentation') {
|
|
1509
1903
|
const v_error = (() => {
|
|
1510
1904
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1511
1905
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1518,7 +1912,7 @@ function validate$d(obj, path = 'CustomUseCaseTemplateQueryInputRepresentation')
|
|
|
1518
1912
|
for (let i = 0; i < obj_queryConfigs.length; i++) {
|
|
1519
1913
|
const obj_queryConfigs_item = obj_queryConfigs[i];
|
|
1520
1914
|
const path_queryConfigs_item = path_queryConfigs + '[' + i + ']';
|
|
1521
|
-
const referencepath_queryConfigs_itemValidationError = validate$
|
|
1915
|
+
const referencepath_queryConfigs_itemValidationError = validate$f(obj_queryConfigs_item, path_queryConfigs_item);
|
|
1522
1916
|
if (referencepath_queryConfigs_itemValidationError !== null) {
|
|
1523
1917
|
let message = 'Object doesn\'t match CustomUseCaseTemplateQueryConfig (at "' + path_queryConfigs_item + '")\n';
|
|
1524
1918
|
message += referencepath_queryConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1529,7 +1923,7 @@ function validate$d(obj, path = 'CustomUseCaseTemplateQueryInputRepresentation')
|
|
|
1529
1923
|
return v_error === undefined ? null : v_error;
|
|
1530
1924
|
}
|
|
1531
1925
|
|
|
1532
|
-
function validate$
|
|
1926
|
+
function validate$d(obj, path = 'CustomUseCaseTemplateColumnRepresentation') {
|
|
1533
1927
|
const v_error = (() => {
|
|
1534
1928
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1535
1929
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1567,7 +1961,7 @@ function validate$c(obj, path = 'CustomUseCaseTemplateColumnRepresentation') {
|
|
|
1567
1961
|
return v_error === undefined ? null : v_error;
|
|
1568
1962
|
}
|
|
1569
1963
|
|
|
1570
|
-
function validate$
|
|
1964
|
+
function validate$c(obj, path = 'CustomUseCaseTemplateTableConfig') {
|
|
1571
1965
|
const v_error = (() => {
|
|
1572
1966
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1573
1967
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1580,7 +1974,7 @@ function validate$b(obj, path = 'CustomUseCaseTemplateTableConfig') {
|
|
|
1580
1974
|
for (let i = 0; i < obj_columns.length; i++) {
|
|
1581
1975
|
const obj_columns_item = obj_columns[i];
|
|
1582
1976
|
const path_columns_item = path_columns + '[' + i + ']';
|
|
1583
|
-
const referencepath_columns_itemValidationError = validate$
|
|
1977
|
+
const referencepath_columns_itemValidationError = validate$d(obj_columns_item, path_columns_item);
|
|
1584
1978
|
if (referencepath_columns_itemValidationError !== null) {
|
|
1585
1979
|
let message = 'Object doesn\'t match CustomUseCaseTemplateColumnRepresentation (at "' + path_columns_item + '")\n';
|
|
1586
1980
|
message += referencepath_columns_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1606,7 +2000,7 @@ function validate$b(obj, path = 'CustomUseCaseTemplateTableConfig') {
|
|
|
1606
2000
|
return v_error === undefined ? null : v_error;
|
|
1607
2001
|
}
|
|
1608
2002
|
|
|
1609
|
-
function validate$
|
|
2003
|
+
function validate$b(obj, path = 'CustomUseCaseTemplateTableInputRepresentation') {
|
|
1610
2004
|
const v_error = (() => {
|
|
1611
2005
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1612
2006
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1619,7 +2013,7 @@ function validate$a(obj, path = 'CustomUseCaseTemplateTableInputRepresentation')
|
|
|
1619
2013
|
for (let i = 0; i < obj_tableConfigs.length; i++) {
|
|
1620
2014
|
const obj_tableConfigs_item = obj_tableConfigs[i];
|
|
1621
2015
|
const path_tableConfigs_item = path_tableConfigs + '[' + i + ']';
|
|
1622
|
-
const referencepath_tableConfigs_itemValidationError = validate$
|
|
2016
|
+
const referencepath_tableConfigs_itemValidationError = validate$c(obj_tableConfigs_item, path_tableConfigs_item);
|
|
1623
2017
|
if (referencepath_tableConfigs_itemValidationError !== null) {
|
|
1624
2018
|
let message = 'Object doesn\'t match CustomUseCaseTemplateTableConfig (at "' + path_tableConfigs_item + '")\n';
|
|
1625
2019
|
message += referencepath_tableConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1630,6 +2024,20 @@ function validate$a(obj, path = 'CustomUseCaseTemplateTableInputRepresentation')
|
|
|
1630
2024
|
return v_error === undefined ? null : v_error;
|
|
1631
2025
|
}
|
|
1632
2026
|
|
|
2027
|
+
function validate$a(obj, path = 'DataCleanRoomUsecaseConfigInputRepresentation') {
|
|
2028
|
+
const v_error = (() => {
|
|
2029
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2030
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2031
|
+
}
|
|
2032
|
+
const obj_useCaseType = obj.useCaseType;
|
|
2033
|
+
const path_useCaseType = path + '.useCaseType';
|
|
2034
|
+
if (typeof obj_useCaseType !== 'string') {
|
|
2035
|
+
return new TypeError('Expected "string" but received "' + typeof obj_useCaseType + '" (at "' + path_useCaseType + '")');
|
|
2036
|
+
}
|
|
2037
|
+
})();
|
|
2038
|
+
return v_error === undefined ? null : v_error;
|
|
2039
|
+
}
|
|
2040
|
+
|
|
1633
2041
|
function validate$9(obj, path = 'CustomUseCaseTemplateInputRepresentation') {
|
|
1634
2042
|
const v_error = (() => {
|
|
1635
2043
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1647,7 +2055,7 @@ function validate$9(obj, path = 'CustomUseCaseTemplateInputRepresentation') {
|
|
|
1647
2055
|
}
|
|
1648
2056
|
const obj_queries = obj.queries;
|
|
1649
2057
|
const path_queries = path + '.queries';
|
|
1650
|
-
const referencepath_queriesValidationError = validate$
|
|
2058
|
+
const referencepath_queriesValidationError = validate$e(obj_queries, path_queries);
|
|
1651
2059
|
if (referencepath_queriesValidationError !== null) {
|
|
1652
2060
|
let message = 'Object doesn\'t match CustomUseCaseTemplateQueryInputRepresentation (at "' + path_queries + '")\n';
|
|
1653
2061
|
message += referencepath_queriesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1655,12 +2063,31 @@ function validate$9(obj, path = 'CustomUseCaseTemplateInputRepresentation') {
|
|
|
1655
2063
|
}
|
|
1656
2064
|
const obj_tables = obj.tables;
|
|
1657
2065
|
const path_tables = path + '.tables';
|
|
1658
|
-
const referencepath_tablesValidationError = validate$
|
|
2066
|
+
const referencepath_tablesValidationError = validate$b(obj_tables, path_tables);
|
|
1659
2067
|
if (referencepath_tablesValidationError !== null) {
|
|
1660
2068
|
let message = 'Object doesn\'t match CustomUseCaseTemplateTableInputRepresentation (at "' + path_tables + '")\n';
|
|
1661
2069
|
message += referencepath_tablesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1662
2070
|
return new TypeError(message);
|
|
1663
2071
|
}
|
|
2072
|
+
if (obj.useCaseConfigs !== undefined) {
|
|
2073
|
+
const obj_useCaseConfigs = obj.useCaseConfigs;
|
|
2074
|
+
const path_useCaseConfigs = path + '.useCaseConfigs';
|
|
2075
|
+
if (typeof obj_useCaseConfigs !== 'object' || ArrayIsArray(obj_useCaseConfigs) || obj_useCaseConfigs === null) {
|
|
2076
|
+
return new TypeError('Expected "object" but received "' + typeof obj_useCaseConfigs + '" (at "' + path_useCaseConfigs + '")');
|
|
2077
|
+
}
|
|
2078
|
+
const obj_useCaseConfigs_keys = ObjectKeys(obj_useCaseConfigs);
|
|
2079
|
+
for (let i = 0; i < obj_useCaseConfigs_keys.length; i++) {
|
|
2080
|
+
const key = obj_useCaseConfigs_keys[i];
|
|
2081
|
+
const obj_useCaseConfigs_prop = obj_useCaseConfigs[key];
|
|
2082
|
+
const path_useCaseConfigs_prop = path_useCaseConfigs + '["' + key + '"]';
|
|
2083
|
+
const referencepath_useCaseConfigs_propValidationError = validate$a(obj_useCaseConfigs_prop, path_useCaseConfigs_prop);
|
|
2084
|
+
if (referencepath_useCaseConfigs_propValidationError !== null) {
|
|
2085
|
+
let message = 'Object doesn\'t match DataCleanRoomUsecaseConfigInputRepresentation (at "' + path_useCaseConfigs_prop + '")\n';
|
|
2086
|
+
message += referencepath_useCaseConfigs_propValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2087
|
+
return new TypeError(message);
|
|
2088
|
+
}
|
|
2089
|
+
}
|
|
2090
|
+
}
|
|
1664
2091
|
if (obj.version !== undefined) {
|
|
1665
2092
|
const obj_version = obj.version;
|
|
1666
2093
|
const path_version = path + '.version';
|
|
@@ -1727,7 +2154,7 @@ function validate$6(obj, path = 'DataCleanRoomProviderRepresentation') {
|
|
|
1727
2154
|
if (obj.createdBy !== undefined) {
|
|
1728
2155
|
const obj_createdBy = obj.createdBy;
|
|
1729
2156
|
const path_createdBy = path + '.createdBy';
|
|
1730
|
-
const referencepath_createdByValidationError = validate$
|
|
2157
|
+
const referencepath_createdByValidationError = validate$y(obj_createdBy, path_createdBy);
|
|
1731
2158
|
if (referencepath_createdByValidationError !== null) {
|
|
1732
2159
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
1733
2160
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1784,7 +2211,7 @@ function validate$6(obj, path = 'DataCleanRoomProviderRepresentation') {
|
|
|
1784
2211
|
if (obj.lastModifiedBy !== undefined) {
|
|
1785
2212
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
1786
2213
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
1787
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
2214
|
+
const referencepath_lastModifiedByValidationError = validate$y(obj_lastModifiedBy, path_lastModifiedBy);
|
|
1788
2215
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
1789
2216
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
1790
2217
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2078,7 +2505,7 @@ function validate$5(obj, path = 'DataCleanRoomQueryJobRepresentation') {
|
|
|
2078
2505
|
if (obj.createdBy !== undefined) {
|
|
2079
2506
|
const obj_createdBy = obj.createdBy;
|
|
2080
2507
|
const path_createdBy = path + '.createdBy';
|
|
2081
|
-
const referencepath_createdByValidationError = validate$
|
|
2508
|
+
const referencepath_createdByValidationError = validate$y(obj_createdBy, path_createdBy);
|
|
2082
2509
|
if (referencepath_createdByValidationError !== null) {
|
|
2083
2510
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
2084
2511
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2128,7 +2555,7 @@ function validate$5(obj, path = 'DataCleanRoomQueryJobRepresentation') {
|
|
|
2128
2555
|
if (obj.lastModifiedBy !== undefined) {
|
|
2129
2556
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
2130
2557
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
2131
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
2558
|
+
const referencepath_lastModifiedByValidationError = validate$y(obj_lastModifiedBy, path_lastModifiedBy);
|
|
2132
2559
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
2133
2560
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
2134
2561
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2616,7 +3043,7 @@ function validate$3(obj, path = 'DataCleanRoomCollaborationCollectionRepresentat
|
|
|
2616
3043
|
for (let i = 0; i < obj_collaborations.length; i++) {
|
|
2617
3044
|
const obj_collaborations_item = obj_collaborations[i];
|
|
2618
3045
|
const path_collaborations_item = path_collaborations + '[' + i + ']';
|
|
2619
|
-
const referencepath_collaborations_itemValidationError = validate$
|
|
3046
|
+
const referencepath_collaborations_itemValidationError = validate$p(obj_collaborations_item, path_collaborations_item);
|
|
2620
3047
|
if (referencepath_collaborations_itemValidationError !== null) {
|
|
2621
3048
|
let message = 'Object doesn\'t match DataCleanRoomCollaborationRepresentation (at "' + path_collaborations_item + '")\n';
|
|
2622
3049
|
message += referencepath_collaborations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3642,7 +4069,7 @@ function validate(obj, path = 'DataCleanRoomTemplateCollectionRepresentation') {
|
|
|
3642
4069
|
for (let i = 0; i < obj_templates.length; i++) {
|
|
3643
4070
|
const obj_templates_item = obj_templates[i];
|
|
3644
4071
|
const path_templates_item = path_templates + '[' + i + ']';
|
|
3645
|
-
const referencepath_templates_itemValidationError = validate$
|
|
4072
|
+
const referencepath_templates_itemValidationError = validate$q(obj_templates_item, path_templates_item);
|
|
3646
4073
|
if (referencepath_templates_itemValidationError !== null) {
|
|
3647
4074
|
let message = 'Object doesn\'t match DataCleanRoomTemplateRepresentation (at "' + path_templates_item + '")\n';
|
|
3648
4075
|
message += referencepath_templates_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4164,4 +4591,4 @@ withDefaultLuvio((luvio) => {
|
|
|
4164
4591
|
});
|
|
4165
4592
|
|
|
4166
4593
|
export { acceptDataCleanRoomInvitation, createDataCleanRoomCollaboration, createDataCleanRoomSpecification, createProvider, executeDataCleanRoomQuery, getAllDataCleanRoomQueryPaginated, getAllDataCleanRoomQueryPaginated_imperative, getAllDataCleanRoomsPaginated, getAllDataCleanRoomsPaginated_imperative, getDataCleanRoomProvidersPaginated, getDataCleanRoomProvidersPaginated_imperative, getDataCleanRoomSpecificationsPaginated, getDataCleanRoomSpecificationsPaginated_imperative, getDataCleanRoomTemplatePaginated, getDataCleanRoomTemplatePaginated_imperative, getDataCleanRoomTemplatesByProviderIdPaginated, getDataCleanRoomTemplatesByProviderIdPaginated_imperative, rejectDataCleanRoomInvitation };
|
|
4167
|
-
// version: 1.404.0-
|
|
4594
|
+
// version: 1.404.0-dev15-dc5e3db6b2
|