@salesforce/lds-adapters-cdp-data-clean-room 1.404.0-dev2 → 1.404.0-dev20
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 +616 -90
- package/dist/es/es2018/types/src/generated/adapters/acceptDataCleanRoomInvitation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/adapters/createProvider.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/resources/postSsotDataCleanRoomCollaborationsActionsAcceptInvitationByCollaborationIdOrApiName.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/resources/postSsotDataCleanRoomProviders.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/types/CustomUseCaseTemplateColumnRepresentation.d.ts +4 -1
- 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 +9 -3
- 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/DataCleanRoomMemberConfigRepresentation.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomMemberRepresentation.d.ts +8 -1
- 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/DataCleanRoomProviderInputRepresentation.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomProviderRepresentation.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomSnowflakeConnectionAttributesRepresentation.d.ts +43 -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 +601 -75
- package/src/raml/api.raml +497 -6
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$6, typeCheckConfig as typeCheckConfig$c, StoreKeyMap, createResourceParams as createResourceParams$c } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
|
-
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
10
|
+
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
11
11
|
const { isArray: ArrayIsArray$1 } = Array;
|
|
12
12
|
/**
|
|
13
13
|
* Validates an adapter config is well-formed.
|
|
@@ -31,7 +31,7 @@ function validateConfig(config, adapter, oneOf) {
|
|
|
31
31
|
throw new TypeError(`adapter ${displayName} does not yet support ${unsupported.sort().join(', ')}`);
|
|
32
32
|
}
|
|
33
33
|
const supported = required.concat(optional);
|
|
34
|
-
if (ObjectKeys(config).some(key => !supported.includes(key))) {
|
|
34
|
+
if (ObjectKeys$1(config).some(key => !supported.includes(key))) {
|
|
35
35
|
throw new TypeError(`adapter ${displayName} configuration supports only ${supported.sort().join(', ')}`);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -71,6 +71,7 @@ function buildAdapterValidationConfig(displayName, paramsMeta) {
|
|
|
71
71
|
}
|
|
72
72
|
const keyPrefix = 'data-clean-room';
|
|
73
73
|
|
|
74
|
+
const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
74
75
|
const { isArray: ArrayIsArray } = Array;
|
|
75
76
|
const { stringify: JSONStringify } = JSON;
|
|
76
77
|
function equalsArray(a, b, equalsItem) {
|
|
@@ -92,7 +93,7 @@ function createLink(ref) {
|
|
|
92
93
|
};
|
|
93
94
|
}
|
|
94
95
|
|
|
95
|
-
function validate$
|
|
96
|
+
function validate$C(obj, path = 'CdpUserRepresentation') {
|
|
96
97
|
const v_error = (() => {
|
|
97
98
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
98
99
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -122,7 +123,7 @@ function validate$r(obj, path = 'CdpUserRepresentation') {
|
|
|
122
123
|
return v_error === undefined ? null : v_error;
|
|
123
124
|
}
|
|
124
125
|
|
|
125
|
-
function validate$
|
|
126
|
+
function validate$B(obj, path = 'DataCleanRoomUseCaseTypeRepresentation') {
|
|
126
127
|
const v_error = (() => {
|
|
127
128
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
128
129
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -145,8 +146,8 @@ function validate$q(obj, path = 'DataCleanRoomUseCaseTypeRepresentation') {
|
|
|
145
146
|
return v_error === undefined ? null : v_error;
|
|
146
147
|
}
|
|
147
148
|
|
|
148
|
-
const VERSION$9 = "
|
|
149
|
-
function validate$
|
|
149
|
+
const VERSION$9 = "164dc6669e5d3d9cf4de1e0546eb0476";
|
|
150
|
+
function validate$A(obj, path = 'DataCleanRoomProviderRepresentation') {
|
|
150
151
|
const v_error = (() => {
|
|
151
152
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
152
153
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -154,7 +155,7 @@ function validate$p(obj, path = 'DataCleanRoomProviderRepresentation') {
|
|
|
154
155
|
if (obj.createdBy !== undefined) {
|
|
155
156
|
const obj_createdBy = obj.createdBy;
|
|
156
157
|
const path_createdBy = path + '.createdBy';
|
|
157
|
-
const referencepath_createdByValidationError = validate$
|
|
158
|
+
const referencepath_createdByValidationError = validate$C(obj_createdBy, path_createdBy);
|
|
158
159
|
if (referencepath_createdByValidationError !== null) {
|
|
159
160
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
160
161
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -211,7 +212,7 @@ function validate$p(obj, path = 'DataCleanRoomProviderRepresentation') {
|
|
|
211
212
|
if (obj.lastModifiedBy !== undefined) {
|
|
212
213
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
213
214
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
214
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
215
|
+
const referencepath_lastModifiedByValidationError = validate$C(obj_lastModifiedBy, path_lastModifiedBy);
|
|
215
216
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
216
217
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
217
218
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -253,6 +254,20 @@ function validate$p(obj, path = 'DataCleanRoomProviderRepresentation') {
|
|
|
253
254
|
return new TypeError('Expected "string" but received "' + typeof obj_offCoreTenantId + '" (at "' + path_offCoreTenantId + '")');
|
|
254
255
|
}
|
|
255
256
|
}
|
|
257
|
+
if (obj.packageType !== undefined) {
|
|
258
|
+
const obj_packageType = obj.packageType;
|
|
259
|
+
const path_packageType = path + '.packageType';
|
|
260
|
+
if (typeof obj_packageType !== 'string') {
|
|
261
|
+
return new TypeError('Expected "string" but received "' + typeof obj_packageType + '" (at "' + path_packageType + '")');
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
if (obj.providerDataSource !== undefined) {
|
|
265
|
+
const obj_providerDataSource = obj.providerDataSource;
|
|
266
|
+
const path_providerDataSource = path + '.providerDataSource';
|
|
267
|
+
if (typeof obj_providerDataSource !== 'string') {
|
|
268
|
+
return new TypeError('Expected "string" but received "' + typeof obj_providerDataSource + '" (at "' + path_providerDataSource + '")');
|
|
269
|
+
}
|
|
270
|
+
}
|
|
256
271
|
if (obj.providerName !== undefined) {
|
|
257
272
|
const obj_providerName = obj.providerName;
|
|
258
273
|
const path_providerName = path + '.providerName';
|
|
@@ -298,7 +313,7 @@ function validate$p(obj, path = 'DataCleanRoomProviderRepresentation') {
|
|
|
298
313
|
if (obj.useCaseTypeConfig !== undefined) {
|
|
299
314
|
const obj_useCaseTypeConfig = obj.useCaseTypeConfig;
|
|
300
315
|
const path_useCaseTypeConfig = path + '.useCaseTypeConfig';
|
|
301
|
-
const referencepath_useCaseTypeConfigValidationError = validate$
|
|
316
|
+
const referencepath_useCaseTypeConfigValidationError = validate$B(obj_useCaseTypeConfig, path_useCaseTypeConfig);
|
|
302
317
|
if (referencepath_useCaseTypeConfigValidationError !== null) {
|
|
303
318
|
let message = 'Object doesn\'t match DataCleanRoomUseCaseTypeRepresentation (at "' + path_useCaseTypeConfig + '")\n';
|
|
304
319
|
message += referencepath_useCaseTypeConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -337,7 +352,7 @@ function equals$9(existing, incoming) {
|
|
|
337
352
|
}
|
|
338
353
|
const ingest$9 = function DataCleanRoomProviderRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
339
354
|
if (process.env.NODE_ENV !== 'production') {
|
|
340
|
-
const validateError = validate$
|
|
355
|
+
const validateError = validate$A(input);
|
|
341
356
|
if (validateError !== null) {
|
|
342
357
|
throw validateError;
|
|
343
358
|
}
|
|
@@ -358,7 +373,7 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
358
373
|
}
|
|
359
374
|
|
|
360
375
|
const VERSION$8 = "52237eeecd4f8f11ae22e265d9abe5ca";
|
|
361
|
-
function validate$
|
|
376
|
+
function validate$z(obj, path = 'DataCleanRoomProviderCollectionRepresentation') {
|
|
362
377
|
const v_error = (() => {
|
|
363
378
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
364
379
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -574,7 +589,7 @@ function equals$8(existing, incoming) {
|
|
|
574
589
|
}
|
|
575
590
|
const ingest$8 = function DataCleanRoomProviderCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
576
591
|
if (process.env.NODE_ENV !== 'production') {
|
|
577
|
-
const validateError = validate$
|
|
592
|
+
const validateError = validate$z(input);
|
|
578
593
|
if (validateError !== null) {
|
|
579
594
|
throw validateError;
|
|
580
595
|
}
|
|
@@ -733,7 +748,7 @@ const getDataCleanRoomProvidersPaginatedAdapterFactory = (luvio) => function dat
|
|
|
733
748
|
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
734
749
|
};
|
|
735
750
|
|
|
736
|
-
function validate$
|
|
751
|
+
function validate$y(obj, path = 'CustomUseCaseTemplateAnalysisConfigRepresentation') {
|
|
737
752
|
const v_error = (() => {
|
|
738
753
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
739
754
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -749,7 +764,7 @@ function validate$n(obj, path = 'CustomUseCaseTemplateAnalysisConfigRepresentati
|
|
|
749
764
|
return v_error === undefined ? null : v_error;
|
|
750
765
|
}
|
|
751
766
|
|
|
752
|
-
function validate$
|
|
767
|
+
function validate$x(obj, path = 'CustomUseCaseTemplateQueryParamConfig') {
|
|
753
768
|
const v_error = (() => {
|
|
754
769
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
755
770
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -773,7 +788,7 @@ function validate$m(obj, path = 'CustomUseCaseTemplateQueryParamConfig') {
|
|
|
773
788
|
return v_error === undefined ? null : v_error;
|
|
774
789
|
}
|
|
775
790
|
|
|
776
|
-
function validate$
|
|
791
|
+
function validate$w(obj, path = 'CustomUseCaseTemplateQueryParamRepresentation') {
|
|
777
792
|
const v_error = (() => {
|
|
778
793
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
779
794
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -786,7 +801,7 @@ function validate$l(obj, path = 'CustomUseCaseTemplateQueryParamRepresentation')
|
|
|
786
801
|
for (let i = 0; i < obj_queryParamConfigs.length; i++) {
|
|
787
802
|
const obj_queryParamConfigs_item = obj_queryParamConfigs[i];
|
|
788
803
|
const path_queryParamConfigs_item = path_queryParamConfigs + '[' + i + ']';
|
|
789
|
-
const referencepath_queryParamConfigs_itemValidationError = validate$
|
|
804
|
+
const referencepath_queryParamConfigs_itemValidationError = validate$x(obj_queryParamConfigs_item, path_queryParamConfigs_item);
|
|
790
805
|
if (referencepath_queryParamConfigs_itemValidationError !== null) {
|
|
791
806
|
let message = 'Object doesn\'t match CustomUseCaseTemplateQueryParamConfig (at "' + path_queryParamConfigs_item + '")\n';
|
|
792
807
|
message += referencepath_queryParamConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -797,7 +812,7 @@ function validate$l(obj, path = 'CustomUseCaseTemplateQueryParamRepresentation')
|
|
|
797
812
|
return v_error === undefined ? null : v_error;
|
|
798
813
|
}
|
|
799
814
|
|
|
800
|
-
function validate$
|
|
815
|
+
function validate$v(obj, path = 'CustomUseCaseTemplateQueryConfig') {
|
|
801
816
|
const v_error = (() => {
|
|
802
817
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
803
818
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -805,7 +820,7 @@ function validate$k(obj, path = 'CustomUseCaseTemplateQueryConfig') {
|
|
|
805
820
|
if (obj.analysisConfigs !== undefined) {
|
|
806
821
|
const obj_analysisConfigs = obj.analysisConfigs;
|
|
807
822
|
const path_analysisConfigs = path + '.analysisConfigs';
|
|
808
|
-
const referencepath_analysisConfigsValidationError = validate$
|
|
823
|
+
const referencepath_analysisConfigsValidationError = validate$y(obj_analysisConfigs, path_analysisConfigs);
|
|
809
824
|
if (referencepath_analysisConfigsValidationError !== null) {
|
|
810
825
|
let message = 'Object doesn\'t match CustomUseCaseTemplateAnalysisConfigRepresentation (at "' + path_analysisConfigs + '")\n';
|
|
811
826
|
message += referencepath_analysisConfigsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -825,10 +840,31 @@ function validate$k(obj, path = 'CustomUseCaseTemplateQueryConfig') {
|
|
|
825
840
|
if (obj.queryParameters !== undefined) {
|
|
826
841
|
const obj_queryParameters = obj.queryParameters;
|
|
827
842
|
const path_queryParameters = path + '.queryParameters';
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
843
|
+
let obj_queryParameters_union0 = null;
|
|
844
|
+
const obj_queryParameters_union0_error = (() => {
|
|
845
|
+
const referencepath_queryParametersValidationError = validate$w(obj_queryParameters, path_queryParameters);
|
|
846
|
+
if (referencepath_queryParametersValidationError !== null) {
|
|
847
|
+
let message = 'Object doesn\'t match CustomUseCaseTemplateQueryParamRepresentation (at "' + path_queryParameters + '")\n';
|
|
848
|
+
message += referencepath_queryParametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
849
|
+
return new TypeError(message);
|
|
850
|
+
}
|
|
851
|
+
})();
|
|
852
|
+
if (obj_queryParameters_union0_error != null) {
|
|
853
|
+
obj_queryParameters_union0 = obj_queryParameters_union0_error.message;
|
|
854
|
+
}
|
|
855
|
+
let obj_queryParameters_union1 = null;
|
|
856
|
+
const obj_queryParameters_union1_error = (() => {
|
|
857
|
+
if (obj_queryParameters !== null) {
|
|
858
|
+
return new TypeError('Expected "null" but received "' + typeof obj_queryParameters + '" (at "' + path_queryParameters + '")');
|
|
859
|
+
}
|
|
860
|
+
})();
|
|
861
|
+
if (obj_queryParameters_union1_error != null) {
|
|
862
|
+
obj_queryParameters_union1 = obj_queryParameters_union1_error.message;
|
|
863
|
+
}
|
|
864
|
+
if (obj_queryParameters_union0 && obj_queryParameters_union1) {
|
|
865
|
+
let message = 'Object doesn\'t match union (at "' + path_queryParameters + '")';
|
|
866
|
+
message += '\n' + obj_queryParameters_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
867
|
+
message += '\n' + obj_queryParameters_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
832
868
|
return new TypeError(message);
|
|
833
869
|
}
|
|
834
870
|
}
|
|
@@ -844,15 +880,61 @@ function validate$k(obj, path = 'CustomUseCaseTemplateQueryConfig') {
|
|
|
844
880
|
return new TypeError('Expected "string" but received "' + typeof obj_referencedTables_item + '" (at "' + path_referencedTables_item + '")');
|
|
845
881
|
}
|
|
846
882
|
}
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
883
|
+
if (obj.source !== undefined) {
|
|
884
|
+
const obj_source = obj.source;
|
|
885
|
+
const path_source = path + '.source';
|
|
886
|
+
let obj_source_union0 = null;
|
|
887
|
+
const obj_source_union0_error = (() => {
|
|
888
|
+
if (typeof obj_source !== 'string') {
|
|
889
|
+
return new TypeError('Expected "string" but received "' + typeof obj_source + '" (at "' + path_source + '")');
|
|
890
|
+
}
|
|
891
|
+
})();
|
|
892
|
+
if (obj_source_union0_error != null) {
|
|
893
|
+
obj_source_union0 = obj_source_union0_error.message;
|
|
894
|
+
}
|
|
895
|
+
let obj_source_union1 = null;
|
|
896
|
+
const obj_source_union1_error = (() => {
|
|
897
|
+
if (obj_source !== null) {
|
|
898
|
+
return new TypeError('Expected "null" but received "' + typeof obj_source + '" (at "' + path_source + '")');
|
|
899
|
+
}
|
|
900
|
+
})();
|
|
901
|
+
if (obj_source_union1_error != null) {
|
|
902
|
+
obj_source_union1 = obj_source_union1_error.message;
|
|
903
|
+
}
|
|
904
|
+
if (obj_source_union0 && obj_source_union1) {
|
|
905
|
+
let message = 'Object doesn\'t match union (at "' + path_source + '")';
|
|
906
|
+
message += '\n' + obj_source_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
907
|
+
message += '\n' + obj_source_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
908
|
+
return new TypeError(message);
|
|
909
|
+
}
|
|
851
910
|
}
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
911
|
+
if (obj.type !== undefined) {
|
|
912
|
+
const obj_type = obj.type;
|
|
913
|
+
const path_type = path + '.type';
|
|
914
|
+
let obj_type_union0 = null;
|
|
915
|
+
const obj_type_union0_error = (() => {
|
|
916
|
+
if (typeof obj_type !== 'string') {
|
|
917
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
918
|
+
}
|
|
919
|
+
})();
|
|
920
|
+
if (obj_type_union0_error != null) {
|
|
921
|
+
obj_type_union0 = obj_type_union0_error.message;
|
|
922
|
+
}
|
|
923
|
+
let obj_type_union1 = null;
|
|
924
|
+
const obj_type_union1_error = (() => {
|
|
925
|
+
if (obj_type !== null) {
|
|
926
|
+
return new TypeError('Expected "null" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
927
|
+
}
|
|
928
|
+
})();
|
|
929
|
+
if (obj_type_union1_error != null) {
|
|
930
|
+
obj_type_union1 = obj_type_union1_error.message;
|
|
931
|
+
}
|
|
932
|
+
if (obj_type_union0 && obj_type_union1) {
|
|
933
|
+
let message = 'Object doesn\'t match union (at "' + path_type + '")';
|
|
934
|
+
message += '\n' + obj_type_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
935
|
+
message += '\n' + obj_type_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
936
|
+
return new TypeError(message);
|
|
937
|
+
}
|
|
856
938
|
}
|
|
857
939
|
if (obj.usecase !== undefined) {
|
|
858
940
|
const obj_usecase = obj.usecase;
|
|
@@ -865,7 +947,7 @@ function validate$k(obj, path = 'CustomUseCaseTemplateQueryConfig') {
|
|
|
865
947
|
return v_error === undefined ? null : v_error;
|
|
866
948
|
}
|
|
867
949
|
|
|
868
|
-
function validate$
|
|
950
|
+
function validate$u(obj, path = 'CustomUseCaseTemplateQueryInputRepresentation') {
|
|
869
951
|
const v_error = (() => {
|
|
870
952
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
871
953
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -878,7 +960,7 @@ function validate$j(obj, path = 'CustomUseCaseTemplateQueryInputRepresentation')
|
|
|
878
960
|
for (let i = 0; i < obj_queryConfigs.length; i++) {
|
|
879
961
|
const obj_queryConfigs_item = obj_queryConfigs[i];
|
|
880
962
|
const path_queryConfigs_item = path_queryConfigs + '[' + i + ']';
|
|
881
|
-
const referencepath_queryConfigs_itemValidationError = validate$
|
|
963
|
+
const referencepath_queryConfigs_itemValidationError = validate$v(obj_queryConfigs_item, path_queryConfigs_item);
|
|
882
964
|
if (referencepath_queryConfigs_itemValidationError !== null) {
|
|
883
965
|
let message = 'Object doesn\'t match CustomUseCaseTemplateQueryConfig (at "' + path_queryConfigs_item + '")\n';
|
|
884
966
|
message += referencepath_queryConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -889,7 +971,7 @@ function validate$j(obj, path = 'CustomUseCaseTemplateQueryInputRepresentation')
|
|
|
889
971
|
return v_error === undefined ? null : v_error;
|
|
890
972
|
}
|
|
891
973
|
|
|
892
|
-
function validate$
|
|
974
|
+
function validate$t(obj, path = 'CustomUseCaseTemplateColumnRepresentation') {
|
|
893
975
|
const v_error = (() => {
|
|
894
976
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
895
977
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -911,6 +993,13 @@ function validate$i(obj, path = 'CustomUseCaseTemplateColumnRepresentation') {
|
|
|
911
993
|
if (typeof obj_name !== 'string') {
|
|
912
994
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
913
995
|
}
|
|
996
|
+
if (obj.tooltip !== undefined) {
|
|
997
|
+
const obj_tooltip = obj.tooltip;
|
|
998
|
+
const path_tooltip = path + '.tooltip';
|
|
999
|
+
if (typeof obj_tooltip !== 'string') {
|
|
1000
|
+
return new TypeError('Expected "string" but received "' + typeof obj_tooltip + '" (at "' + path_tooltip + '")');
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
914
1003
|
const obj_type = obj.type;
|
|
915
1004
|
const path_type = path + '.type';
|
|
916
1005
|
if (typeof obj_type !== 'string') {
|
|
@@ -920,7 +1009,7 @@ function validate$i(obj, path = 'CustomUseCaseTemplateColumnRepresentation') {
|
|
|
920
1009
|
return v_error === undefined ? null : v_error;
|
|
921
1010
|
}
|
|
922
1011
|
|
|
923
|
-
function validate$
|
|
1012
|
+
function validate$s(obj, path = 'CustomUseCaseTemplateTableConfig') {
|
|
924
1013
|
const v_error = (() => {
|
|
925
1014
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
926
1015
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -933,7 +1022,7 @@ function validate$h(obj, path = 'CustomUseCaseTemplateTableConfig') {
|
|
|
933
1022
|
for (let i = 0; i < obj_columns.length; i++) {
|
|
934
1023
|
const obj_columns_item = obj_columns[i];
|
|
935
1024
|
const path_columns_item = path_columns + '[' + i + ']';
|
|
936
|
-
const referencepath_columns_itemValidationError = validate$
|
|
1025
|
+
const referencepath_columns_itemValidationError = validate$t(obj_columns_item, path_columns_item);
|
|
937
1026
|
if (referencepath_columns_itemValidationError !== null) {
|
|
938
1027
|
let message = 'Object doesn\'t match CustomUseCaseTemplateColumnRepresentation (at "' + path_columns_item + '")\n';
|
|
939
1028
|
message += referencepath_columns_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -959,7 +1048,7 @@ function validate$h(obj, path = 'CustomUseCaseTemplateTableConfig') {
|
|
|
959
1048
|
return v_error === undefined ? null : v_error;
|
|
960
1049
|
}
|
|
961
1050
|
|
|
962
|
-
function validate$
|
|
1051
|
+
function validate$r(obj, path = 'CustomUseCaseTemplateTableInputRepresentation') {
|
|
963
1052
|
const v_error = (() => {
|
|
964
1053
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
965
1054
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -972,7 +1061,7 @@ function validate$g(obj, path = 'CustomUseCaseTemplateTableInputRepresentation')
|
|
|
972
1061
|
for (let i = 0; i < obj_tableConfigs.length; i++) {
|
|
973
1062
|
const obj_tableConfigs_item = obj_tableConfigs[i];
|
|
974
1063
|
const path_tableConfigs_item = path_tableConfigs + '[' + i + ']';
|
|
975
|
-
const referencepath_tableConfigs_itemValidationError = validate$
|
|
1064
|
+
const referencepath_tableConfigs_itemValidationError = validate$s(obj_tableConfigs_item, path_tableConfigs_item);
|
|
976
1065
|
if (referencepath_tableConfigs_itemValidationError !== null) {
|
|
977
1066
|
let message = 'Object doesn\'t match CustomUseCaseTemplateTableConfig (at "' + path_tableConfigs_item + '")\n';
|
|
978
1067
|
message += referencepath_tableConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -983,7 +1072,21 @@ function validate$g(obj, path = 'CustomUseCaseTemplateTableInputRepresentation')
|
|
|
983
1072
|
return v_error === undefined ? null : v_error;
|
|
984
1073
|
}
|
|
985
1074
|
|
|
986
|
-
function validate$
|
|
1075
|
+
function validate$q(obj, path = 'DataCleanRoomUsecaseConfigInputRepresentation') {
|
|
1076
|
+
const v_error = (() => {
|
|
1077
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1078
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1079
|
+
}
|
|
1080
|
+
const obj_useCaseType = obj.useCaseType;
|
|
1081
|
+
const path_useCaseType = path + '.useCaseType';
|
|
1082
|
+
if (typeof obj_useCaseType !== 'string') {
|
|
1083
|
+
return new TypeError('Expected "string" but received "' + typeof obj_useCaseType + '" (at "' + path_useCaseType + '")');
|
|
1084
|
+
}
|
|
1085
|
+
})();
|
|
1086
|
+
return v_error === undefined ? null : v_error;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
function validate$p(obj, path = 'CustomUseCaseTemplateInputRepresentation') {
|
|
987
1090
|
const v_error = (() => {
|
|
988
1091
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
989
1092
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1000,7 +1103,7 @@ function validate$f(obj, path = 'CustomUseCaseTemplateInputRepresentation') {
|
|
|
1000
1103
|
}
|
|
1001
1104
|
const obj_queries = obj.queries;
|
|
1002
1105
|
const path_queries = path + '.queries';
|
|
1003
|
-
const referencepath_queriesValidationError = validate$
|
|
1106
|
+
const referencepath_queriesValidationError = validate$u(obj_queries, path_queries);
|
|
1004
1107
|
if (referencepath_queriesValidationError !== null) {
|
|
1005
1108
|
let message = 'Object doesn\'t match CustomUseCaseTemplateQueryInputRepresentation (at "' + path_queries + '")\n';
|
|
1006
1109
|
message += referencepath_queriesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1008,12 +1111,31 @@ function validate$f(obj, path = 'CustomUseCaseTemplateInputRepresentation') {
|
|
|
1008
1111
|
}
|
|
1009
1112
|
const obj_tables = obj.tables;
|
|
1010
1113
|
const path_tables = path + '.tables';
|
|
1011
|
-
const referencepath_tablesValidationError = validate$
|
|
1114
|
+
const referencepath_tablesValidationError = validate$r(obj_tables, path_tables);
|
|
1012
1115
|
if (referencepath_tablesValidationError !== null) {
|
|
1013
1116
|
let message = 'Object doesn\'t match CustomUseCaseTemplateTableInputRepresentation (at "' + path_tables + '")\n';
|
|
1014
1117
|
message += referencepath_tablesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1015
1118
|
return new TypeError(message);
|
|
1016
1119
|
}
|
|
1120
|
+
if (obj.useCaseConfigs !== undefined) {
|
|
1121
|
+
const obj_useCaseConfigs = obj.useCaseConfigs;
|
|
1122
|
+
const path_useCaseConfigs = path + '.useCaseConfigs';
|
|
1123
|
+
if (typeof obj_useCaseConfigs !== 'object' || ArrayIsArray(obj_useCaseConfigs) || obj_useCaseConfigs === null) {
|
|
1124
|
+
return new TypeError('Expected "object" but received "' + typeof obj_useCaseConfigs + '" (at "' + path_useCaseConfigs + '")');
|
|
1125
|
+
}
|
|
1126
|
+
const obj_useCaseConfigs_keys = ObjectKeys(obj_useCaseConfigs);
|
|
1127
|
+
for (let i = 0; i < obj_useCaseConfigs_keys.length; i++) {
|
|
1128
|
+
const key = obj_useCaseConfigs_keys[i];
|
|
1129
|
+
const obj_useCaseConfigs_prop = obj_useCaseConfigs[key];
|
|
1130
|
+
const path_useCaseConfigs_prop = path_useCaseConfigs + '["' + key + '"]';
|
|
1131
|
+
const referencepath_useCaseConfigs_propValidationError = validate$q(obj_useCaseConfigs_prop, path_useCaseConfigs_prop);
|
|
1132
|
+
if (referencepath_useCaseConfigs_propValidationError !== null) {
|
|
1133
|
+
let message = 'Object doesn\'t match DataCleanRoomUsecaseConfigInputRepresentation (at "' + path_useCaseConfigs_prop + '")\n';
|
|
1134
|
+
message += referencepath_useCaseConfigs_propValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1135
|
+
return new TypeError(message);
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1017
1139
|
if (obj.version !== undefined) {
|
|
1018
1140
|
const obj_version = obj.version;
|
|
1019
1141
|
const path_version = path + '.version';
|
|
@@ -1025,7 +1147,7 @@ function validate$f(obj, path = 'CustomUseCaseTemplateInputRepresentation') {
|
|
|
1025
1147
|
return v_error === undefined ? null : v_error;
|
|
1026
1148
|
}
|
|
1027
1149
|
|
|
1028
|
-
function validate$
|
|
1150
|
+
function validate$o(obj, path = 'DataCleanRoomUseCaseTypeInputRepresentation') {
|
|
1029
1151
|
const v_error = (() => {
|
|
1030
1152
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1031
1153
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1102,6 +1224,8 @@ const createProvider_ConfigPropertyMetadata = [
|
|
|
1102
1224
|
generateParamConfigMetadata('useCaseTypeConfig', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1103
1225
|
generateParamConfigMetadata('providerName', false, 2 /* Body */, 0 /* String */),
|
|
1104
1226
|
generateParamConfigMetadata('sourceConfiguration', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1227
|
+
generateParamConfigMetadata('packageType', false, 2 /* Body */, 0 /* String */),
|
|
1228
|
+
generateParamConfigMetadata('providerDataSource', false, 2 /* Body */, 0 /* String */),
|
|
1105
1229
|
];
|
|
1106
1230
|
const createProvider_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, createProvider_ConfigPropertyMetadata);
|
|
1107
1231
|
const createResourceParams$a = /*#__PURE__*/ createResourceParams$c(createProvider_ConfigPropertyMetadata);
|
|
@@ -1109,12 +1233,12 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
1109
1233
|
const config = {};
|
|
1110
1234
|
typeCheckConfig$c(untrustedConfig, config, createProvider_ConfigPropertyMetadata);
|
|
1111
1235
|
const untrustedConfig_templateJson = untrustedConfig.templateJson;
|
|
1112
|
-
const referenceCustomUseCaseTemplateInputRepresentationValidationError = validate$
|
|
1236
|
+
const referenceCustomUseCaseTemplateInputRepresentationValidationError = validate$p(untrustedConfig_templateJson);
|
|
1113
1237
|
if (referenceCustomUseCaseTemplateInputRepresentationValidationError === null) {
|
|
1114
1238
|
config.templateJson = untrustedConfig_templateJson;
|
|
1115
1239
|
}
|
|
1116
1240
|
const untrustedConfig_useCaseTypeConfig = untrustedConfig.useCaseTypeConfig;
|
|
1117
|
-
const referenceDataCleanRoomUseCaseTypeInputRepresentationValidationError = validate$
|
|
1241
|
+
const referenceDataCleanRoomUseCaseTypeInputRepresentationValidationError = validate$o(untrustedConfig_useCaseTypeConfig);
|
|
1118
1242
|
if (referenceDataCleanRoomUseCaseTypeInputRepresentationValidationError === null) {
|
|
1119
1243
|
config.useCaseTypeConfig = untrustedConfig_useCaseTypeConfig;
|
|
1120
1244
|
}
|
|
@@ -1164,7 +1288,7 @@ const createProviderAdapterFactory = (luvio) => {
|
|
|
1164
1288
|
};
|
|
1165
1289
|
};
|
|
1166
1290
|
|
|
1167
|
-
function validate$
|
|
1291
|
+
function validate$n(obj, path = 'UseCaseTemplateMappingAttributeFilterOptionRepresentation') {
|
|
1168
1292
|
const v_error = (() => {
|
|
1169
1293
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1170
1294
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1190,7 +1314,7 @@ function validate$d(obj, path = 'UseCaseTemplateMappingAttributeFilterOptionRepr
|
|
|
1190
1314
|
return v_error === undefined ? null : v_error;
|
|
1191
1315
|
}
|
|
1192
1316
|
|
|
1193
|
-
function validate$
|
|
1317
|
+
function validate$m(obj, path = 'UseCaseTemplateMappingPathAttributeRepresentation') {
|
|
1194
1318
|
const v_error = (() => {
|
|
1195
1319
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1196
1320
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1209,7 +1333,7 @@ function validate$c(obj, path = 'UseCaseTemplateMappingPathAttributeRepresentati
|
|
|
1209
1333
|
return v_error === undefined ? null : v_error;
|
|
1210
1334
|
}
|
|
1211
1335
|
|
|
1212
|
-
function validate$
|
|
1336
|
+
function validate$l(obj, path = 'UseCaseTemplateMappingSubjectAttributeRepresentation') {
|
|
1213
1337
|
const v_error = (() => {
|
|
1214
1338
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1215
1339
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1238,7 +1362,7 @@ function validate$b(obj, path = 'UseCaseTemplateMappingSubjectAttributeRepresent
|
|
|
1238
1362
|
return v_error === undefined ? null : v_error;
|
|
1239
1363
|
}
|
|
1240
1364
|
|
|
1241
|
-
function validate$
|
|
1365
|
+
function validate$k(obj, path = 'UseCaseTemplateMappingAttributeRepresentation') {
|
|
1242
1366
|
const v_error = (() => {
|
|
1243
1367
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1244
1368
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1258,7 +1382,7 @@ function validate$a(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
|
|
|
1258
1382
|
if (obj.createdBy !== undefined) {
|
|
1259
1383
|
const obj_createdBy = obj.createdBy;
|
|
1260
1384
|
const path_createdBy = path + '.createdBy';
|
|
1261
|
-
const referencepath_createdByValidationError = validate$
|
|
1385
|
+
const referencepath_createdByValidationError = validate$C(obj_createdBy, path_createdBy);
|
|
1262
1386
|
if (referencepath_createdByValidationError !== null) {
|
|
1263
1387
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
1264
1388
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1275,7 +1399,7 @@ function validate$a(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
|
|
|
1275
1399
|
if (obj.dataMapping !== undefined) {
|
|
1276
1400
|
const obj_dataMapping = obj.dataMapping;
|
|
1277
1401
|
const path_dataMapping = path + '.dataMapping';
|
|
1278
|
-
const referencepath_dataMappingValidationError = validate$
|
|
1402
|
+
const referencepath_dataMappingValidationError = validate$j(obj_dataMapping, path_dataMapping);
|
|
1279
1403
|
if (referencepath_dataMappingValidationError !== null) {
|
|
1280
1404
|
let message = 'Object doesn\'t match UseCaseTemplateMappingRepresentation (at "' + path_dataMapping + '")\n';
|
|
1281
1405
|
message += referencepath_dataMappingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1285,7 +1409,7 @@ function validate$a(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
|
|
|
1285
1409
|
if (obj.filterOptions !== undefined) {
|
|
1286
1410
|
const obj_filterOptions = obj.filterOptions;
|
|
1287
1411
|
const path_filterOptions = path + '.filterOptions';
|
|
1288
|
-
const referencepath_filterOptionsValidationError = validate$
|
|
1412
|
+
const referencepath_filterOptionsValidationError = validate$n(obj_filterOptions, path_filterOptions);
|
|
1289
1413
|
if (referencepath_filterOptionsValidationError !== null) {
|
|
1290
1414
|
let message = 'Object doesn\'t match UseCaseTemplateMappingAttributeFilterOptionRepresentation (at "' + path_filterOptions + '")\n';
|
|
1291
1415
|
message += referencepath_filterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1309,7 +1433,7 @@ function validate$a(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
|
|
|
1309
1433
|
if (obj.lastModifiedBy !== undefined) {
|
|
1310
1434
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
1311
1435
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
1312
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
1436
|
+
const referencepath_lastModifiedByValidationError = validate$C(obj_lastModifiedBy, path_lastModifiedBy);
|
|
1313
1437
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
1314
1438
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
1315
1439
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1345,7 +1469,7 @@ function validate$a(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
|
|
|
1345
1469
|
for (let i = 0; i < obj_path.length; i++) {
|
|
1346
1470
|
const obj_path_item = obj_path[i];
|
|
1347
1471
|
const path_path_item = path_path + '[' + i + ']';
|
|
1348
|
-
const referencepath_path_itemValidationError = validate$
|
|
1472
|
+
const referencepath_path_itemValidationError = validate$m(obj_path_item, path_path_item);
|
|
1349
1473
|
if (referencepath_path_itemValidationError !== null) {
|
|
1350
1474
|
let message = 'Object doesn\'t match UseCaseTemplateMappingPathAttributeRepresentation (at "' + path_path_item + '")\n';
|
|
1351
1475
|
message += referencepath_path_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1354,7 +1478,7 @@ function validate$a(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
|
|
|
1354
1478
|
}
|
|
1355
1479
|
const obj_subjectAttribute = obj.subjectAttribute;
|
|
1356
1480
|
const path_subjectAttribute = path + '.subjectAttribute';
|
|
1357
|
-
const referencepath_subjectAttributeValidationError = validate$
|
|
1481
|
+
const referencepath_subjectAttributeValidationError = validate$l(obj_subjectAttribute, path_subjectAttribute);
|
|
1358
1482
|
if (referencepath_subjectAttributeValidationError !== null) {
|
|
1359
1483
|
let message = 'Object doesn\'t match UseCaseTemplateMappingSubjectAttributeRepresentation (at "' + path_subjectAttribute + '")\n';
|
|
1360
1484
|
message += referencepath_subjectAttributeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1371,7 +1495,7 @@ function validate$a(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
|
|
|
1371
1495
|
return v_error === undefined ? null : v_error;
|
|
1372
1496
|
}
|
|
1373
1497
|
|
|
1374
|
-
function validate$
|
|
1498
|
+
function validate$j(obj, path = 'UseCaseTemplateMappingRepresentation') {
|
|
1375
1499
|
const v_error = (() => {
|
|
1376
1500
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1377
1501
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1384,7 +1508,7 @@ function validate$9(obj, path = 'UseCaseTemplateMappingRepresentation') {
|
|
|
1384
1508
|
for (let i = 0; i < obj_attributes.length; i++) {
|
|
1385
1509
|
const obj_attributes_item = obj_attributes[i];
|
|
1386
1510
|
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
1387
|
-
const referencepath_attributes_itemValidationError = validate$
|
|
1511
|
+
const referencepath_attributes_itemValidationError = validate$k(obj_attributes_item, path_attributes_item);
|
|
1388
1512
|
if (referencepath_attributes_itemValidationError !== null) {
|
|
1389
1513
|
let message = 'Object doesn\'t match UseCaseTemplateMappingAttributeRepresentation (at "' + path_attributes_item + '")\n';
|
|
1390
1514
|
message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1399,7 +1523,7 @@ function validate$9(obj, path = 'UseCaseTemplateMappingRepresentation') {
|
|
|
1399
1523
|
if (obj.createdBy !== undefined) {
|
|
1400
1524
|
const obj_createdBy = obj.createdBy;
|
|
1401
1525
|
const path_createdBy = path + '.createdBy';
|
|
1402
|
-
const referencepath_createdByValidationError = validate$
|
|
1526
|
+
const referencepath_createdByValidationError = validate$C(obj_createdBy, path_createdBy);
|
|
1403
1527
|
if (referencepath_createdByValidationError !== null) {
|
|
1404
1528
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
1405
1529
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1430,7 +1554,7 @@ function validate$9(obj, path = 'UseCaseTemplateMappingRepresentation') {
|
|
|
1430
1554
|
if (obj.lastModifiedBy !== undefined) {
|
|
1431
1555
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
1432
1556
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
1433
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
1557
|
+
const referencepath_lastModifiedByValidationError = validate$C(obj_lastModifiedBy, path_lastModifiedBy);
|
|
1434
1558
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
1435
1559
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
1436
1560
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1469,20 +1593,285 @@ function validate$9(obj, path = 'UseCaseTemplateMappingRepresentation') {
|
|
|
1469
1593
|
return v_error === undefined ? null : v_error;
|
|
1470
1594
|
}
|
|
1471
1595
|
|
|
1472
|
-
function validate$
|
|
1596
|
+
function validate$i(obj, path = 'UseCaseTemplateAttributeConfigRepresentation') {
|
|
1473
1597
|
const v_error = (() => {
|
|
1474
1598
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1475
1599
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1476
1600
|
}
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1601
|
+
if (obj.alias !== undefined) {
|
|
1602
|
+
const obj_alias = obj.alias;
|
|
1603
|
+
const path_alias = path + '.alias';
|
|
1604
|
+
if (typeof obj_alias !== 'string') {
|
|
1605
|
+
return new TypeError('Expected "string" but received "' + typeof obj_alias + '" (at "' + path_alias + '")');
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
if (obj.defaultValue !== undefined) {
|
|
1609
|
+
const obj_defaultValue = obj.defaultValue;
|
|
1610
|
+
const path_defaultValue = path + '.defaultValue';
|
|
1611
|
+
if (typeof obj_defaultValue !== 'string') {
|
|
1612
|
+
return new TypeError('Expected "string" but received "' + typeof obj_defaultValue + '" (at "' + path_defaultValue + '")');
|
|
1613
|
+
}
|
|
1614
|
+
}
|
|
1615
|
+
if (obj.description !== undefined) {
|
|
1616
|
+
const obj_description = obj.description;
|
|
1617
|
+
const path_description = path + '.description';
|
|
1618
|
+
if (typeof obj_description !== 'string') {
|
|
1619
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
1620
|
+
}
|
|
1621
|
+
}
|
|
1622
|
+
if (obj.id !== undefined) {
|
|
1623
|
+
const obj_id = obj.id;
|
|
1624
|
+
const path_id = path + '.id';
|
|
1625
|
+
if (typeof obj_id !== 'string') {
|
|
1626
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1627
|
+
}
|
|
1628
|
+
}
|
|
1629
|
+
if (obj.label !== undefined) {
|
|
1630
|
+
const obj_label = obj.label;
|
|
1631
|
+
const path_label = path + '.label';
|
|
1632
|
+
if (typeof obj_label !== 'string') {
|
|
1633
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
if (obj.queryOptions !== undefined) {
|
|
1637
|
+
const obj_queryOptions = obj.queryOptions;
|
|
1638
|
+
const path_queryOptions = path + '.queryOptions';
|
|
1639
|
+
if (obj_queryOptions === undefined) {
|
|
1640
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_queryOptions + '" (at "' + path_queryOptions + '")');
|
|
1641
|
+
}
|
|
1642
|
+
}
|
|
1643
|
+
if (obj.required !== undefined) {
|
|
1644
|
+
const obj_required = obj.required;
|
|
1645
|
+
const path_required = path + '.required';
|
|
1646
|
+
if (typeof obj_required !== 'boolean') {
|
|
1647
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_required + '" (at "' + path_required + '")');
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
if (obj.tableName !== undefined) {
|
|
1651
|
+
const obj_tableName = obj.tableName;
|
|
1652
|
+
const path_tableName = path + '.tableName';
|
|
1653
|
+
if (typeof obj_tableName !== 'string') {
|
|
1654
|
+
return new TypeError('Expected "string" but received "' + typeof obj_tableName + '" (at "' + path_tableName + '")');
|
|
1655
|
+
}
|
|
1656
|
+
}
|
|
1657
|
+
if (obj.tooltip !== undefined) {
|
|
1658
|
+
const obj_tooltip = obj.tooltip;
|
|
1659
|
+
const path_tooltip = path + '.tooltip';
|
|
1660
|
+
if (typeof obj_tooltip !== 'string') {
|
|
1661
|
+
return new TypeError('Expected "string" but received "' + typeof obj_tooltip + '" (at "' + path_tooltip + '")');
|
|
1662
|
+
}
|
|
1663
|
+
}
|
|
1664
|
+
})();
|
|
1665
|
+
return v_error === undefined ? null : v_error;
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
function validate$h(obj, path = 'UseCaseTemplateMemberConfigRepresentation') {
|
|
1669
|
+
const v_error = (() => {
|
|
1670
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1671
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1672
|
+
}
|
|
1673
|
+
if (obj.attributeConfigs !== undefined) {
|
|
1674
|
+
const obj_attributeConfigs = obj.attributeConfigs;
|
|
1675
|
+
const path_attributeConfigs = path + '.attributeConfigs';
|
|
1676
|
+
if (!ArrayIsArray(obj_attributeConfigs)) {
|
|
1677
|
+
return new TypeError('Expected "array" but received "' + typeof obj_attributeConfigs + '" (at "' + path_attributeConfigs + '")');
|
|
1678
|
+
}
|
|
1679
|
+
for (let i = 0; i < obj_attributeConfigs.length; i++) {
|
|
1680
|
+
const obj_attributeConfigs_item = obj_attributeConfigs[i];
|
|
1681
|
+
const path_attributeConfigs_item = path_attributeConfigs + '[' + i + ']';
|
|
1682
|
+
const referencepath_attributeConfigs_itemValidationError = validate$i(obj_attributeConfigs_item, path_attributeConfigs_item);
|
|
1683
|
+
if (referencepath_attributeConfigs_itemValidationError !== null) {
|
|
1684
|
+
let message = 'Object doesn\'t match UseCaseTemplateAttributeConfigRepresentation (at "' + path_attributeConfigs_item + '")\n';
|
|
1685
|
+
message += referencepath_attributeConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1686
|
+
return new TypeError(message);
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
}
|
|
1690
|
+
if (obj.memberType !== undefined) {
|
|
1691
|
+
const obj_memberType = obj.memberType;
|
|
1692
|
+
const path_memberType = path + '.memberType';
|
|
1693
|
+
if (obj_memberType === undefined) {
|
|
1694
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_memberType + '" (at "' + path_memberType + '")');
|
|
1695
|
+
}
|
|
1696
|
+
}
|
|
1697
|
+
})();
|
|
1698
|
+
return v_error === undefined ? null : v_error;
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
function validate$g(obj, path = 'UseCaseTemplateConfigRepresentation') {
|
|
1702
|
+
const v_error = (() => {
|
|
1703
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1704
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1705
|
+
}
|
|
1706
|
+
if (obj.memberConfigs !== undefined) {
|
|
1707
|
+
const obj_memberConfigs = obj.memberConfigs;
|
|
1708
|
+
const path_memberConfigs = path + '.memberConfigs';
|
|
1709
|
+
if (!ArrayIsArray(obj_memberConfigs)) {
|
|
1710
|
+
return new TypeError('Expected "array" but received "' + typeof obj_memberConfigs + '" (at "' + path_memberConfigs + '")');
|
|
1711
|
+
}
|
|
1712
|
+
for (let i = 0; i < obj_memberConfigs.length; i++) {
|
|
1713
|
+
const obj_memberConfigs_item = obj_memberConfigs[i];
|
|
1714
|
+
const path_memberConfigs_item = path_memberConfigs + '[' + i + ']';
|
|
1715
|
+
const referencepath_memberConfigs_itemValidationError = validate$h(obj_memberConfigs_item, path_memberConfigs_item);
|
|
1716
|
+
if (referencepath_memberConfigs_itemValidationError !== null) {
|
|
1717
|
+
let message = 'Object doesn\'t match UseCaseTemplateMemberConfigRepresentation (at "' + path_memberConfigs_item + '")\n';
|
|
1718
|
+
message += referencepath_memberConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1719
|
+
return new TypeError(message);
|
|
1720
|
+
}
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1723
|
+
})();
|
|
1724
|
+
return v_error === undefined ? null : v_error;
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1727
|
+
function validate$f(obj, path = 'DataCleanRoomMetadataOutputConfigRepresentation') {
|
|
1728
|
+
const v_error = (() => {
|
|
1729
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1730
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1731
|
+
}
|
|
1732
|
+
if (obj.connectorType !== undefined) {
|
|
1733
|
+
const obj_connectorType = obj.connectorType;
|
|
1734
|
+
const path_connectorType = path + '.connectorType';
|
|
1735
|
+
if (obj_connectorType === undefined) {
|
|
1736
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_connectorType + '" (at "' + path_connectorType + '")');
|
|
1737
|
+
}
|
|
1738
|
+
}
|
|
1739
|
+
if (obj.destinationType !== undefined) {
|
|
1740
|
+
const obj_destinationType = obj.destinationType;
|
|
1741
|
+
const path_destinationType = path + '.destinationType';
|
|
1742
|
+
if (obj_destinationType === undefined) {
|
|
1743
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_destinationType + '" (at "' + path_destinationType + '")');
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
})();
|
|
1747
|
+
return v_error === undefined ? null : v_error;
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1750
|
+
function validate$e(obj, path = 'DataCleanRoomMetadataMemberConfigRepresentation') {
|
|
1751
|
+
const v_error = (() => {
|
|
1752
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1753
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1754
|
+
}
|
|
1755
|
+
if (obj.canReceiveResult !== undefined) {
|
|
1756
|
+
const obj_canReceiveResult = obj.canReceiveResult;
|
|
1757
|
+
const path_canReceiveResult = path + '.canReceiveResult';
|
|
1758
|
+
if (typeof obj_canReceiveResult !== 'boolean') {
|
|
1759
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_canReceiveResult + '" (at "' + path_canReceiveResult + '")');
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
if (obj.canTriggerQuery !== undefined) {
|
|
1763
|
+
const obj_canTriggerQuery = obj.canTriggerQuery;
|
|
1764
|
+
const path_canTriggerQuery = path + '.canTriggerQuery';
|
|
1765
|
+
if (typeof obj_canTriggerQuery !== 'boolean') {
|
|
1766
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_canTriggerQuery + '" (at "' + path_canTriggerQuery + '")');
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1769
|
+
if (obj.contributesData !== undefined) {
|
|
1770
|
+
const obj_contributesData = obj.contributesData;
|
|
1771
|
+
const path_contributesData = path + '.contributesData';
|
|
1772
|
+
if (typeof obj_contributesData !== 'boolean') {
|
|
1773
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_contributesData + '" (at "' + path_contributesData + '")');
|
|
1774
|
+
}
|
|
1775
|
+
}
|
|
1776
|
+
if (obj.outputConfig !== undefined) {
|
|
1777
|
+
const obj_outputConfig = obj.outputConfig;
|
|
1778
|
+
const path_outputConfig = path + '.outputConfig';
|
|
1779
|
+
const referencepath_outputConfigValidationError = validate$f(obj_outputConfig, path_outputConfig);
|
|
1780
|
+
if (referencepath_outputConfigValidationError !== null) {
|
|
1781
|
+
let message = 'Object doesn\'t match DataCleanRoomMetadataOutputConfigRepresentation (at "' + path_outputConfig + '")\n';
|
|
1782
|
+
message += referencepath_outputConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1783
|
+
return new TypeError(message);
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1786
|
+
if (obj.paysForQueries !== undefined) {
|
|
1787
|
+
const obj_paysForQueries = obj.paysForQueries;
|
|
1788
|
+
const path_paysForQueries = path + '.paysForQueries';
|
|
1789
|
+
if (typeof obj_paysForQueries !== 'boolean') {
|
|
1790
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_paysForQueries + '" (at "' + path_paysForQueries + '")');
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1793
|
+
if (obj.type !== undefined) {
|
|
1794
|
+
const obj_type = obj.type;
|
|
1795
|
+
const path_type = path + '.type';
|
|
1796
|
+
if (typeof obj_type !== 'string') {
|
|
1797
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
1798
|
+
}
|
|
1799
|
+
}
|
|
1800
|
+
})();
|
|
1801
|
+
return v_error === undefined ? null : v_error;
|
|
1802
|
+
}
|
|
1803
|
+
|
|
1804
|
+
function validate$d(obj, path = 'DataCleanRoomUsecaseConfigRepresentation') {
|
|
1805
|
+
const v_error = (() => {
|
|
1806
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1807
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1808
|
+
}
|
|
1809
|
+
if (obj.useCaseType !== undefined) {
|
|
1810
|
+
const obj_useCaseType = obj.useCaseType;
|
|
1811
|
+
const path_useCaseType = path + '.useCaseType';
|
|
1812
|
+
if (obj_useCaseType === undefined) {
|
|
1813
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_useCaseType + '" (at "' + path_useCaseType + '")');
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1816
|
+
})();
|
|
1817
|
+
return v_error === undefined ? null : v_error;
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
function validate$c(obj, path = 'DataCleanRoomMetadataConfigurationRepresentation') {
|
|
1821
|
+
const v_error = (() => {
|
|
1822
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1823
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1824
|
+
}
|
|
1825
|
+
if (obj.memberConfig !== undefined) {
|
|
1826
|
+
const obj_memberConfig = obj.memberConfig;
|
|
1827
|
+
const path_memberConfig = path + '.memberConfig';
|
|
1828
|
+
if (!ArrayIsArray(obj_memberConfig)) {
|
|
1829
|
+
return new TypeError('Expected "array" but received "' + typeof obj_memberConfig + '" (at "' + path_memberConfig + '")');
|
|
1830
|
+
}
|
|
1831
|
+
for (let i = 0; i < obj_memberConfig.length; i++) {
|
|
1832
|
+
const obj_memberConfig_item = obj_memberConfig[i];
|
|
1833
|
+
const path_memberConfig_item = path_memberConfig + '[' + i + ']';
|
|
1834
|
+
const referencepath_memberConfig_itemValidationError = validate$e(obj_memberConfig_item, path_memberConfig_item);
|
|
1835
|
+
if (referencepath_memberConfig_itemValidationError !== null) {
|
|
1836
|
+
let message = 'Object doesn\'t match DataCleanRoomMetadataMemberConfigRepresentation (at "' + path_memberConfig_item + '")\n';
|
|
1837
|
+
message += referencepath_memberConfig_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1838
|
+
return new TypeError(message);
|
|
1839
|
+
}
|
|
1840
|
+
}
|
|
1841
|
+
}
|
|
1842
|
+
if (obj.usecaseConfig !== undefined) {
|
|
1843
|
+
const obj_usecaseConfig = obj.usecaseConfig;
|
|
1844
|
+
const path_usecaseConfig = path + '.usecaseConfig';
|
|
1845
|
+
const referencepath_usecaseConfigValidationError = validate$d(obj_usecaseConfig, path_usecaseConfig);
|
|
1846
|
+
if (referencepath_usecaseConfigValidationError !== null) {
|
|
1847
|
+
let message = 'Object doesn\'t match DataCleanRoomUsecaseConfigRepresentation (at "' + path_usecaseConfig + '")\n';
|
|
1848
|
+
message += referencepath_usecaseConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1849
|
+
return new TypeError(message);
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1852
|
+
})();
|
|
1853
|
+
return v_error === undefined ? null : v_error;
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1856
|
+
function validate$b(obj, path = 'DataCleanRoomTemplateRepresentation') {
|
|
1857
|
+
const v_error = (() => {
|
|
1858
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1859
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1860
|
+
}
|
|
1861
|
+
if (obj.configuration !== undefined) {
|
|
1862
|
+
const obj_configuration = obj.configuration;
|
|
1863
|
+
const path_configuration = path + '.configuration';
|
|
1864
|
+
const referencepath_configurationValidationError = validate$g(obj_configuration, path_configuration);
|
|
1865
|
+
if (referencepath_configurationValidationError !== null) {
|
|
1866
|
+
let message = 'Object doesn\'t match UseCaseTemplateConfigRepresentation (at "' + path_configuration + '")\n';
|
|
1867
|
+
message += referencepath_configurationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1868
|
+
return new TypeError(message);
|
|
1869
|
+
}
|
|
1481
1870
|
}
|
|
1482
1871
|
if (obj.createdBy !== undefined) {
|
|
1483
1872
|
const obj_createdBy = obj.createdBy;
|
|
1484
1873
|
const path_createdBy = path + '.createdBy';
|
|
1485
|
-
const referencepath_createdByValidationError = validate$
|
|
1874
|
+
const referencepath_createdByValidationError = validate$C(obj_createdBy, path_createdBy);
|
|
1486
1875
|
if (referencepath_createdByValidationError !== null) {
|
|
1487
1876
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
1488
1877
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1518,7 +1907,7 @@ function validate$8(obj, path = 'DataCleanRoomTemplateRepresentation') {
|
|
|
1518
1907
|
if (obj.lastModifiedBy !== undefined) {
|
|
1519
1908
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
1520
1909
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
1521
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
1910
|
+
const referencepath_lastModifiedByValidationError = validate$C(obj_lastModifiedBy, path_lastModifiedBy);
|
|
1522
1911
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
1523
1912
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
1524
1913
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1532,6 +1921,16 @@ function validate$8(obj, path = 'DataCleanRoomTemplateRepresentation') {
|
|
|
1532
1921
|
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
1533
1922
|
}
|
|
1534
1923
|
}
|
|
1924
|
+
if (obj.metadataConfiguration !== undefined) {
|
|
1925
|
+
const obj_metadataConfiguration = obj.metadataConfiguration;
|
|
1926
|
+
const path_metadataConfiguration = path + '.metadataConfiguration';
|
|
1927
|
+
const referencepath_metadataConfigurationValidationError = validate$c(obj_metadataConfiguration, path_metadataConfiguration);
|
|
1928
|
+
if (referencepath_metadataConfigurationValidationError !== null) {
|
|
1929
|
+
let message = 'Object doesn\'t match DataCleanRoomMetadataConfigurationRepresentation (at "' + path_metadataConfiguration + '")\n';
|
|
1930
|
+
message += referencepath_metadataConfigurationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1931
|
+
return new TypeError(message);
|
|
1932
|
+
}
|
|
1933
|
+
}
|
|
1535
1934
|
if (obj.name !== undefined) {
|
|
1536
1935
|
const obj_name = obj.name;
|
|
1537
1936
|
const path_name = path + '.name';
|
|
@@ -1591,7 +1990,7 @@ function validate$8(obj, path = 'DataCleanRoomTemplateRepresentation') {
|
|
|
1591
1990
|
}
|
|
1592
1991
|
|
|
1593
1992
|
const VERSION$7 = "838a38ab153e1dd3331fe38ec216c0ae";
|
|
1594
|
-
function validate$
|
|
1993
|
+
function validate$a(obj, path = 'DataCleanRoomDataSpecificationRepresentation') {
|
|
1595
1994
|
const v_error = (() => {
|
|
1596
1995
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1597
1996
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1599,7 +1998,7 @@ function validate$7(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
|
|
|
1599
1998
|
if (obj.createdBy !== undefined) {
|
|
1600
1999
|
const obj_createdBy = obj.createdBy;
|
|
1601
2000
|
const path_createdBy = path + '.createdBy';
|
|
1602
|
-
const referencepath_createdByValidationError = validate$
|
|
2001
|
+
const referencepath_createdByValidationError = validate$C(obj_createdBy, path_createdBy);
|
|
1603
2002
|
if (referencepath_createdByValidationError !== null) {
|
|
1604
2003
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
1605
2004
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1615,7 +2014,7 @@ function validate$7(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
|
|
|
1615
2014
|
}
|
|
1616
2015
|
const obj_dataMapping = obj.dataMapping;
|
|
1617
2016
|
const path_dataMapping = path + '.dataMapping';
|
|
1618
|
-
const referencepath_dataMappingValidationError = validate$
|
|
2017
|
+
const referencepath_dataMappingValidationError = validate$j(obj_dataMapping, path_dataMapping);
|
|
1619
2018
|
if (referencepath_dataMappingValidationError !== null) {
|
|
1620
2019
|
let message = 'Object doesn\'t match UseCaseTemplateMappingRepresentation (at "' + path_dataMapping + '")\n';
|
|
1621
2020
|
message += referencepath_dataMappingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1648,7 +2047,7 @@ function validate$7(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
|
|
|
1648
2047
|
if (obj.lastModifiedBy !== undefined) {
|
|
1649
2048
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
1650
2049
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
1651
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
2050
|
+
const referencepath_lastModifiedByValidationError = validate$C(obj_lastModifiedBy, path_lastModifiedBy);
|
|
1652
2051
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
1653
2052
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
1654
2053
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1703,7 +2102,7 @@ function validate$7(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
|
|
|
1703
2102
|
if (obj.templateVersion !== undefined) {
|
|
1704
2103
|
const obj_templateVersion = obj.templateVersion;
|
|
1705
2104
|
const path_templateVersion = path + '.templateVersion';
|
|
1706
|
-
const referencepath_templateVersionValidationError = validate$
|
|
2105
|
+
const referencepath_templateVersionValidationError = validate$b(obj_templateVersion, path_templateVersion);
|
|
1707
2106
|
if (referencepath_templateVersionValidationError !== null) {
|
|
1708
2107
|
let message = 'Object doesn\'t match DataCleanRoomTemplateRepresentation (at "' + path_templateVersion + '")\n';
|
|
1709
2108
|
message += referencepath_templateVersionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1749,7 +2148,7 @@ function equals$7(existing, incoming) {
|
|
|
1749
2148
|
}
|
|
1750
2149
|
const ingest$7 = function DataCleanRoomDataSpecificationRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1751
2150
|
if (process.env.NODE_ENV !== 'production') {
|
|
1752
|
-
const validateError = validate$
|
|
2151
|
+
const validateError = validate$a(input);
|
|
1753
2152
|
if (validateError !== null) {
|
|
1754
2153
|
throw validateError;
|
|
1755
2154
|
}
|
|
@@ -1770,7 +2169,7 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1770
2169
|
}
|
|
1771
2170
|
|
|
1772
2171
|
const VERSION$6 = "6fb37e337652e88218f2171d1e56647b";
|
|
1773
|
-
function validate$
|
|
2172
|
+
function validate$9(obj, path = 'DataCleanRoomSpecificationCollectionRepresentation') {
|
|
1774
2173
|
const v_error = (() => {
|
|
1775
2174
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1776
2175
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1964,7 +2363,7 @@ function equals$6(existing, incoming) {
|
|
|
1964
2363
|
}
|
|
1965
2364
|
const ingest$6 = function DataCleanRoomSpecificationCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1966
2365
|
if (process.env.NODE_ENV !== 'production') {
|
|
1967
|
-
const validateError = validate$
|
|
2366
|
+
const validateError = validate$9(input);
|
|
1968
2367
|
if (validateError !== null) {
|
|
1969
2368
|
throw validateError;
|
|
1970
2369
|
}
|
|
@@ -2225,8 +2624,52 @@ const createDataCleanRoomSpecificationAdapterFactory = (luvio) => {
|
|
|
2225
2624
|
};
|
|
2226
2625
|
};
|
|
2227
2626
|
|
|
2228
|
-
|
|
2229
|
-
|
|
2627
|
+
function validate$8(obj, path = 'DataCleanRoomMemberConfigRepresentation') {
|
|
2628
|
+
const v_error = (() => {
|
|
2629
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2630
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2631
|
+
}
|
|
2632
|
+
if (obj.externalId !== undefined) {
|
|
2633
|
+
const obj_externalId = obj.externalId;
|
|
2634
|
+
const path_externalId = path + '.externalId';
|
|
2635
|
+
if (typeof obj_externalId !== 'string') {
|
|
2636
|
+
return new TypeError('Expected "string" but received "' + typeof obj_externalId + '" (at "' + path_externalId + '")');
|
|
2637
|
+
}
|
|
2638
|
+
}
|
|
2639
|
+
if (obj.id !== undefined) {
|
|
2640
|
+
const obj_id = obj.id;
|
|
2641
|
+
const path_id = path + '.id';
|
|
2642
|
+
if (typeof obj_id !== 'string') {
|
|
2643
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
2644
|
+
}
|
|
2645
|
+
}
|
|
2646
|
+
if (obj.outputDestinationId !== undefined) {
|
|
2647
|
+
const obj_outputDestinationId = obj.outputDestinationId;
|
|
2648
|
+
const path_outputDestinationId = path + '.outputDestinationId';
|
|
2649
|
+
if (typeof obj_outputDestinationId !== 'string') {
|
|
2650
|
+
return new TypeError('Expected "string" but received "' + typeof obj_outputDestinationId + '" (at "' + path_outputDestinationId + '")');
|
|
2651
|
+
}
|
|
2652
|
+
}
|
|
2653
|
+
if (obj.outputDestinationType !== undefined) {
|
|
2654
|
+
const obj_outputDestinationType = obj.outputDestinationType;
|
|
2655
|
+
const path_outputDestinationType = path + '.outputDestinationType';
|
|
2656
|
+
if (typeof obj_outputDestinationType !== 'string') {
|
|
2657
|
+
return new TypeError('Expected "string" but received "' + typeof obj_outputDestinationType + '" (at "' + path_outputDestinationType + '")');
|
|
2658
|
+
}
|
|
2659
|
+
}
|
|
2660
|
+
if (obj.templateVersionId !== undefined) {
|
|
2661
|
+
const obj_templateVersionId = obj.templateVersionId;
|
|
2662
|
+
const path_templateVersionId = path + '.templateVersionId';
|
|
2663
|
+
if (typeof obj_templateVersionId !== 'string') {
|
|
2664
|
+
return new TypeError('Expected "string" but received "' + typeof obj_templateVersionId + '" (at "' + path_templateVersionId + '")');
|
|
2665
|
+
}
|
|
2666
|
+
}
|
|
2667
|
+
})();
|
|
2668
|
+
return v_error === undefined ? null : v_error;
|
|
2669
|
+
}
|
|
2670
|
+
|
|
2671
|
+
const VERSION$5 = "cc5736f976c7c58026dd19879ac57f5c";
|
|
2672
|
+
function validate$7(obj, path = 'DataCleanRoomMemberRepresentation') {
|
|
2230
2673
|
const v_error = (() => {
|
|
2231
2674
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2232
2675
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2241,6 +2684,30 @@ function validate$5(obj, path = 'DataCleanRoomMemberRepresentation') {
|
|
|
2241
2684
|
if (typeof obj_invitationStatus !== 'string') {
|
|
2242
2685
|
return new TypeError('Expected "string" but received "' + typeof obj_invitationStatus + '" (at "' + path_invitationStatus + '")');
|
|
2243
2686
|
}
|
|
2687
|
+
if (obj.memberConfigs !== undefined) {
|
|
2688
|
+
const obj_memberConfigs = obj.memberConfigs;
|
|
2689
|
+
const path_memberConfigs = path + '.memberConfigs';
|
|
2690
|
+
if (!ArrayIsArray(obj_memberConfigs)) {
|
|
2691
|
+
return new TypeError('Expected "array" but received "' + typeof obj_memberConfigs + '" (at "' + path_memberConfigs + '")');
|
|
2692
|
+
}
|
|
2693
|
+
for (let i = 0; i < obj_memberConfigs.length; i++) {
|
|
2694
|
+
const obj_memberConfigs_item = obj_memberConfigs[i];
|
|
2695
|
+
const path_memberConfigs_item = path_memberConfigs + '[' + i + ']';
|
|
2696
|
+
const referencepath_memberConfigs_itemValidationError = validate$8(obj_memberConfigs_item, path_memberConfigs_item);
|
|
2697
|
+
if (referencepath_memberConfigs_itemValidationError !== null) {
|
|
2698
|
+
let message = 'Object doesn\'t match DataCleanRoomMemberConfigRepresentation (at "' + path_memberConfigs_item + '")\n';
|
|
2699
|
+
message += referencepath_memberConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2700
|
+
return new TypeError(message);
|
|
2701
|
+
}
|
|
2702
|
+
}
|
|
2703
|
+
}
|
|
2704
|
+
if (obj.memberDomainUrl !== undefined) {
|
|
2705
|
+
const obj_memberDomainUrl = obj.memberDomainUrl;
|
|
2706
|
+
const path_memberDomainUrl = path + '.memberDomainUrl';
|
|
2707
|
+
if (typeof obj_memberDomainUrl !== 'string') {
|
|
2708
|
+
return new TypeError('Expected "string" but received "' + typeof obj_memberDomainUrl + '" (at "' + path_memberDomainUrl + '")');
|
|
2709
|
+
}
|
|
2710
|
+
}
|
|
2244
2711
|
const obj_memberId = obj.memberId;
|
|
2245
2712
|
const path_memberId = path + '.memberId';
|
|
2246
2713
|
if (typeof obj_memberId !== 'string') {
|
|
@@ -2307,7 +2774,7 @@ function equals$5(existing, incoming) {
|
|
|
2307
2774
|
}
|
|
2308
2775
|
const ingest$5 = function DataCleanRoomMemberRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2309
2776
|
if (process.env.NODE_ENV !== 'production') {
|
|
2310
|
-
const validateError = validate$
|
|
2777
|
+
const validateError = validate$7(input);
|
|
2311
2778
|
if (validateError !== null) {
|
|
2312
2779
|
throw validateError;
|
|
2313
2780
|
}
|
|
@@ -2328,7 +2795,7 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2328
2795
|
}
|
|
2329
2796
|
|
|
2330
2797
|
const VERSION$4 = "11bd9b71debcc363b339183bc8d65735";
|
|
2331
|
-
function validate$
|
|
2798
|
+
function validate$6(obj, path = 'DataCleanRoomCollaborationRepresentation') {
|
|
2332
2799
|
const v_error = (() => {
|
|
2333
2800
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2334
2801
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2343,7 +2810,7 @@ function validate$4(obj, path = 'DataCleanRoomCollaborationRepresentation') {
|
|
|
2343
2810
|
if (obj.createdBy !== undefined) {
|
|
2344
2811
|
const obj_createdBy = obj.createdBy;
|
|
2345
2812
|
const path_createdBy = path + '.createdBy';
|
|
2346
|
-
const referencepath_createdByValidationError = validate$
|
|
2813
|
+
const referencepath_createdByValidationError = validate$C(obj_createdBy, path_createdBy);
|
|
2347
2814
|
if (referencepath_createdByValidationError !== null) {
|
|
2348
2815
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
2349
2816
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2386,7 +2853,7 @@ function validate$4(obj, path = 'DataCleanRoomCollaborationRepresentation') {
|
|
|
2386
2853
|
if (obj.lastModifiedBy !== undefined) {
|
|
2387
2854
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
2388
2855
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
2389
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
2856
|
+
const referencepath_lastModifiedByValidationError = validate$C(obj_lastModifiedBy, path_lastModifiedBy);
|
|
2390
2857
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
2391
2858
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
2392
2859
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2408,7 +2875,7 @@ function validate$4(obj, path = 'DataCleanRoomCollaborationRepresentation') {
|
|
|
2408
2875
|
for (let i = 0; i < obj_members.length; i++) {
|
|
2409
2876
|
const obj_members_item = obj_members[i];
|
|
2410
2877
|
const path_members_item = path_members + '[' + i + ']';
|
|
2411
|
-
const referencepath_members_itemValidationError = validate$
|
|
2878
|
+
const referencepath_members_itemValidationError = validate$7(obj_members_item, path_members_item);
|
|
2412
2879
|
if (referencepath_members_itemValidationError !== null) {
|
|
2413
2880
|
let message = 'Object doesn\'t match DataCleanRoomMemberRepresentation (at "' + path_members_item + '")\n';
|
|
2414
2881
|
message += referencepath_members_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2436,7 +2903,7 @@ function validate$4(obj, path = 'DataCleanRoomCollaborationRepresentation') {
|
|
|
2436
2903
|
}
|
|
2437
2904
|
const obj_templateVersion = obj.templateVersion;
|
|
2438
2905
|
const path_templateVersion = path + '.templateVersion';
|
|
2439
|
-
const referencepath_templateVersionValidationError = validate$
|
|
2906
|
+
const referencepath_templateVersionValidationError = validate$b(obj_templateVersion, path_templateVersion);
|
|
2440
2907
|
if (referencepath_templateVersionValidationError !== null) {
|
|
2441
2908
|
let message = 'Object doesn\'t match DataCleanRoomTemplateRepresentation (at "' + path_templateVersion + '")\n';
|
|
2442
2909
|
message += referencepath_templateVersionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2481,7 +2948,7 @@ function equals$4(existing, incoming) {
|
|
|
2481
2948
|
}
|
|
2482
2949
|
const ingest$4 = function DataCleanRoomCollaborationRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2483
2950
|
if (process.env.NODE_ENV !== 'production') {
|
|
2484
|
-
const validateError = validate$
|
|
2951
|
+
const validateError = validate$6(input);
|
|
2485
2952
|
if (validateError !== null) {
|
|
2486
2953
|
throw validateError;
|
|
2487
2954
|
}
|
|
@@ -2502,7 +2969,7 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2502
2969
|
}
|
|
2503
2970
|
|
|
2504
2971
|
const VERSION$3 = "9e5eddaaa3330278c7aa483af5dc8d74";
|
|
2505
|
-
function validate$
|
|
2972
|
+
function validate$5(obj, path = 'DataCleanRoomCollaborationCollectionRepresentation') {
|
|
2506
2973
|
const v_error = (() => {
|
|
2507
2974
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2508
2975
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2515,7 +2982,7 @@ function validate$3(obj, path = 'DataCleanRoomCollaborationCollectionRepresentat
|
|
|
2515
2982
|
for (let i = 0; i < obj_collaborations.length; i++) {
|
|
2516
2983
|
const obj_collaborations_item = obj_collaborations[i];
|
|
2517
2984
|
const path_collaborations_item = path_collaborations + '[' + i + ']';
|
|
2518
|
-
const referencepath_collaborations_itemValidationError = validate$
|
|
2985
|
+
const referencepath_collaborations_itemValidationError = validate$6(obj_collaborations_item, path_collaborations_item);
|
|
2519
2986
|
if (referencepath_collaborations_itemValidationError !== null) {
|
|
2520
2987
|
let message = 'Object doesn\'t match DataCleanRoomCollaborationRepresentation (at "' + path_collaborations_item + '")\n';
|
|
2521
2988
|
message += referencepath_collaborations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2597,7 +3064,7 @@ function equals$3(existing, incoming) {
|
|
|
2597
3064
|
}
|
|
2598
3065
|
const ingest$3 = function DataCleanRoomCollaborationCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2599
3066
|
if (process.env.NODE_ENV !== 'production') {
|
|
2600
|
-
const validateError = validate$
|
|
3067
|
+
const validateError = validate$5(input);
|
|
2601
3068
|
if (validateError !== null) {
|
|
2602
3069
|
throw validateError;
|
|
2603
3070
|
}
|
|
@@ -2851,7 +3318,7 @@ const createDataCleanRoomCollaborationAdapterFactory = (luvio) => {
|
|
|
2851
3318
|
};
|
|
2852
3319
|
|
|
2853
3320
|
const VERSION$2 = "779ba86cca8510319a6e95a736d88189";
|
|
2854
|
-
function validate$
|
|
3321
|
+
function validate$4(obj, path = 'DataCleanRoomTemplateCollectionRepresentation') {
|
|
2855
3322
|
const v_error = (() => {
|
|
2856
3323
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2857
3324
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2909,7 +3376,7 @@ function validate$2(obj, path = 'DataCleanRoomTemplateCollectionRepresentation')
|
|
|
2909
3376
|
for (let i = 0; i < obj_templates.length; i++) {
|
|
2910
3377
|
const obj_templates_item = obj_templates[i];
|
|
2911
3378
|
const path_templates_item = path_templates + '[' + i + ']';
|
|
2912
|
-
const referencepath_templates_itemValidationError = validate$
|
|
3379
|
+
const referencepath_templates_itemValidationError = validate$b(obj_templates_item, path_templates_item);
|
|
2913
3380
|
if (referencepath_templates_itemValidationError !== null) {
|
|
2914
3381
|
let message = 'Object doesn\'t match DataCleanRoomTemplateRepresentation (at "' + path_templates_item + '")\n';
|
|
2915
3382
|
message += referencepath_templates_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2946,7 +3413,7 @@ function equals$2(existing, incoming) {
|
|
|
2946
3413
|
}
|
|
2947
3414
|
const ingest$2 = function DataCleanRoomTemplateCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2948
3415
|
if (process.env.NODE_ENV !== 'production') {
|
|
2949
|
-
const validateError = validate$
|
|
3416
|
+
const validateError = validate$4(input);
|
|
2950
3417
|
if (validateError !== null) {
|
|
2951
3418
|
throw validateError;
|
|
2952
3419
|
}
|
|
@@ -3101,6 +3568,51 @@ const getDataCleanRoomTemplatePaginatedAdapterFactory = (luvio) => function data
|
|
|
3101
3568
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
3102
3569
|
};
|
|
3103
3570
|
|
|
3571
|
+
function validate$3(obj, path = 'DataCleanRoomConnectionAttributesRepresentation') {
|
|
3572
|
+
const v_error = (() => {
|
|
3573
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3574
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3575
|
+
}
|
|
3576
|
+
const obj_connectorType = obj.connectorType;
|
|
3577
|
+
const path_connectorType = path + '.connectorType';
|
|
3578
|
+
if (typeof obj_connectorType !== 'string') {
|
|
3579
|
+
return new TypeError('Expected "string" but received "' + typeof obj_connectorType + '" (at "' + path_connectorType + '")');
|
|
3580
|
+
}
|
|
3581
|
+
})();
|
|
3582
|
+
return v_error === undefined ? null : v_error;
|
|
3583
|
+
}
|
|
3584
|
+
|
|
3585
|
+
function validate$2(obj, path = 'DataCleanRoomOutputConfigurationRepresentation') {
|
|
3586
|
+
const v_error = (() => {
|
|
3587
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3588
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3589
|
+
}
|
|
3590
|
+
if (obj.connectionAttributes !== undefined) {
|
|
3591
|
+
const obj_connectionAttributes = obj.connectionAttributes;
|
|
3592
|
+
const path_connectionAttributes = path + '.connectionAttributes';
|
|
3593
|
+
const referencepath_connectionAttributesValidationError = validate$3(obj_connectionAttributes, path_connectionAttributes);
|
|
3594
|
+
if (referencepath_connectionAttributesValidationError !== null) {
|
|
3595
|
+
let message = 'Object doesn\'t match DataCleanRoomConnectionAttributesRepresentation (at "' + path_connectionAttributes + '")\n';
|
|
3596
|
+
message += referencepath_connectionAttributesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3597
|
+
return new TypeError(message);
|
|
3598
|
+
}
|
|
3599
|
+
}
|
|
3600
|
+
if (obj.externalId !== undefined) {
|
|
3601
|
+
const obj_externalId = obj.externalId;
|
|
3602
|
+
const path_externalId = path + '.externalId';
|
|
3603
|
+
if (typeof obj_externalId !== 'string') {
|
|
3604
|
+
return new TypeError('Expected "string" but received "' + typeof obj_externalId + '" (at "' + path_externalId + '")');
|
|
3605
|
+
}
|
|
3606
|
+
}
|
|
3607
|
+
const obj_outputDestinationType = obj.outputDestinationType;
|
|
3608
|
+
const path_outputDestinationType = path + '.outputDestinationType';
|
|
3609
|
+
if (typeof obj_outputDestinationType !== 'string') {
|
|
3610
|
+
return new TypeError('Expected "string" but received "' + typeof obj_outputDestinationType + '" (at "' + path_outputDestinationType + '")');
|
|
3611
|
+
}
|
|
3612
|
+
})();
|
|
3613
|
+
return v_error === undefined ? null : v_error;
|
|
3614
|
+
}
|
|
3615
|
+
|
|
3104
3616
|
function select$6(luvio, params) {
|
|
3105
3617
|
return select$d();
|
|
3106
3618
|
}
|
|
@@ -3142,13 +3654,27 @@ const adapterName$4 = 'acceptDataCleanRoomInvitation';
|
|
|
3142
3654
|
const acceptDataCleanRoomInvitation_ConfigPropertyMetadata = [
|
|
3143
3655
|
generateParamConfigMetadata('collaborationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3144
3656
|
generateParamConfigMetadata('invitationId', true, 2 /* Body */, 0 /* String */),
|
|
3145
|
-
generateParamConfigMetadata('specificationId',
|
|
3657
|
+
generateParamConfigMetadata('specificationId', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3658
|
+
generateParamConfigMetadata('outputConfiguration', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3659
|
+
generateParamConfigMetadata('dataSpaceName', false, 2 /* Body */, 0 /* String */),
|
|
3146
3660
|
];
|
|
3147
3661
|
const acceptDataCleanRoomInvitation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, acceptDataCleanRoomInvitation_ConfigPropertyMetadata);
|
|
3148
3662
|
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$c(acceptDataCleanRoomInvitation_ConfigPropertyMetadata);
|
|
3149
3663
|
function typeCheckConfig$4(untrustedConfig) {
|
|
3150
3664
|
const config = {};
|
|
3151
3665
|
typeCheckConfig$c(untrustedConfig, config, acceptDataCleanRoomInvitation_ConfigPropertyMetadata);
|
|
3666
|
+
const untrustedConfig_specificationId = untrustedConfig.specificationId;
|
|
3667
|
+
if (typeof untrustedConfig_specificationId === 'string') {
|
|
3668
|
+
config.specificationId = untrustedConfig_specificationId;
|
|
3669
|
+
}
|
|
3670
|
+
if (untrustedConfig_specificationId === null) {
|
|
3671
|
+
config.specificationId = untrustedConfig_specificationId;
|
|
3672
|
+
}
|
|
3673
|
+
const untrustedConfig_outputConfiguration = untrustedConfig.outputConfiguration;
|
|
3674
|
+
const referenceDataCleanRoomOutputConfigurationRepresentationValidationError = validate$2(untrustedConfig_outputConfiguration);
|
|
3675
|
+
if (referenceDataCleanRoomOutputConfigurationRepresentationValidationError === null) {
|
|
3676
|
+
config.outputConfiguration = untrustedConfig_outputConfiguration;
|
|
3677
|
+
}
|
|
3152
3678
|
return config;
|
|
3153
3679
|
}
|
|
3154
3680
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -3300,7 +3826,7 @@ function validate$1(obj, path = 'DataCleanRoomQueryJobRepresentation') {
|
|
|
3300
3826
|
if (obj.createdBy !== undefined) {
|
|
3301
3827
|
const obj_createdBy = obj.createdBy;
|
|
3302
3828
|
const path_createdBy = path + '.createdBy';
|
|
3303
|
-
const referencepath_createdByValidationError = validate$
|
|
3829
|
+
const referencepath_createdByValidationError = validate$C(obj_createdBy, path_createdBy);
|
|
3304
3830
|
if (referencepath_createdByValidationError !== null) {
|
|
3305
3831
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
3306
3832
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3350,7 +3876,7 @@ function validate$1(obj, path = 'DataCleanRoomQueryJobRepresentation') {
|
|
|
3350
3876
|
if (obj.lastModifiedBy !== undefined) {
|
|
3351
3877
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
3352
3878
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
3353
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
3879
|
+
const referencepath_lastModifiedByValidationError = validate$C(obj_lastModifiedBy, path_lastModifiedBy);
|
|
3354
3880
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
3355
3881
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
3356
3882
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|