@salesforce/lds-adapters-platform-cdp-machine-learning 1.308.0 → 1.309.0-dev11
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/platform-cdp-machine-learning.js +187 -64
- package/dist/es/es2018/types/src/generated/types/CdpMlModelArtifactBaseRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/MlConfiguredModelRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/MlDeprecationConfigurationRepresentation.d.ts +38 -0
- package/package.json +3 -3
- package/sfdc/index.js +190 -67
- package/src/raml/api.raml +32 -3
package/sfdc/index.js
CHANGED
|
@@ -89,7 +89,7 @@ function createLink(ref) {
|
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
function validate$
|
|
92
|
+
function validate$w(obj, path = 'CdpMlCustomizableFieldDefinitionInputRepresentation') {
|
|
93
93
|
const v_error = (() => {
|
|
94
94
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
95
95
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -108,7 +108,7 @@ function validate$v(obj, path = 'CdpMlCustomizableFieldDefinitionInputRepresenta
|
|
|
108
108
|
return v_error === undefined ? null : v_error;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
function validate$
|
|
111
|
+
function validate$v(obj, path = 'CdpMlCustomizableFieldInputRepresentation') {
|
|
112
112
|
const v_error = (() => {
|
|
113
113
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
114
114
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -121,7 +121,7 @@ function validate$u(obj, path = 'CdpMlCustomizableFieldInputRepresentation') {
|
|
|
121
121
|
for (let i = 0; i < obj_customDefinitions.length; i++) {
|
|
122
122
|
const obj_customDefinitions_item = obj_customDefinitions[i];
|
|
123
123
|
const path_customDefinitions_item = path_customDefinitions + '[' + i + ']';
|
|
124
|
-
const referencepath_customDefinitions_itemValidationError = validate$
|
|
124
|
+
const referencepath_customDefinitions_itemValidationError = validate$w(obj_customDefinitions_item, path_customDefinitions_item);
|
|
125
125
|
if (referencepath_customDefinitions_itemValidationError !== null) {
|
|
126
126
|
let message = 'Object doesn\'t match CdpMlCustomizableFieldDefinitionInputRepresentation (at "' + path_customDefinitions_item + '")\n';
|
|
127
127
|
message += referencepath_customDefinitions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -142,7 +142,7 @@ function validate$u(obj, path = 'CdpMlCustomizableFieldInputRepresentation') {
|
|
|
142
142
|
return v_error === undefined ? null : v_error;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
function validate$
|
|
145
|
+
function validate$u(obj, path = 'CdpAssetReferenceInputRepresentation') {
|
|
146
146
|
const v_error = (() => {
|
|
147
147
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
148
148
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -235,7 +235,7 @@ function validate$t(obj, path = 'CdpAssetReferenceInputRepresentation') {
|
|
|
235
235
|
return v_error === undefined ? null : v_error;
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
function validate$
|
|
238
|
+
function validate$t(obj, path = 'CdpMlModelParameterOverrideInputRepresentation') {
|
|
239
239
|
const v_error = (() => {
|
|
240
240
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
241
241
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -328,7 +328,7 @@ function validate$s(obj, path = 'CdpMlModelParameterOverrideInputRepresentation'
|
|
|
328
328
|
return v_error === undefined ? null : v_error;
|
|
329
329
|
}
|
|
330
330
|
|
|
331
|
-
function validate$
|
|
331
|
+
function validate$s(obj, path = 'CdpMlFilterValueRepresentation') {
|
|
332
332
|
const v_error = (() => {
|
|
333
333
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
334
334
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -347,7 +347,7 @@ function validate$r(obj, path = 'CdpMlFilterValueRepresentation') {
|
|
|
347
347
|
return v_error === undefined ? null : v_error;
|
|
348
348
|
}
|
|
349
349
|
|
|
350
|
-
function validate$
|
|
350
|
+
function validate$r(obj, path = 'CdpMlFilterCriterionBaseRepresentation') {
|
|
351
351
|
const v_error = (() => {
|
|
352
352
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
353
353
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -370,7 +370,7 @@ function validate$q(obj, path = 'CdpMlFilterCriterionBaseRepresentation') {
|
|
|
370
370
|
for (let i = 0; i < obj_values.length; i++) {
|
|
371
371
|
const obj_values_item = obj_values[i];
|
|
372
372
|
const path_values_item = path_values + '[' + i + ']';
|
|
373
|
-
const referencepath_values_itemValidationError = validate$
|
|
373
|
+
const referencepath_values_itemValidationError = validate$s(obj_values_item, path_values_item);
|
|
374
374
|
if (referencepath_values_itemValidationError !== null) {
|
|
375
375
|
let message = 'Object doesn\'t match CdpMlFilterValueRepresentation (at "' + path_values_item + '")\n';
|
|
376
376
|
message += referencepath_values_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -381,7 +381,7 @@ function validate$q(obj, path = 'CdpMlFilterCriterionBaseRepresentation') {
|
|
|
381
381
|
return v_error === undefined ? null : v_error;
|
|
382
382
|
}
|
|
383
383
|
|
|
384
|
-
function validate$
|
|
384
|
+
function validate$q(obj, path = 'CdpMlFilterRepresentation') {
|
|
385
385
|
const v_error = (() => {
|
|
386
386
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
387
387
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -394,7 +394,7 @@ function validate$p(obj, path = 'CdpMlFilterRepresentation') {
|
|
|
394
394
|
for (let i = 0; i < obj_criteria.length; i++) {
|
|
395
395
|
const obj_criteria_item = obj_criteria[i];
|
|
396
396
|
const path_criteria_item = path_criteria + '[' + i + ']';
|
|
397
|
-
const referencepath_criteria_itemValidationError = validate$
|
|
397
|
+
const referencepath_criteria_itemValidationError = validate$r(obj_criteria_item, path_criteria_item);
|
|
398
398
|
if (referencepath_criteria_itemValidationError !== null) {
|
|
399
399
|
let message = 'Object doesn\'t match CdpMlFilterCriterionBaseRepresentation (at "' + path_criteria_item + '")\n';
|
|
400
400
|
message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -405,14 +405,14 @@ function validate$p(obj, path = 'CdpMlFilterRepresentation') {
|
|
|
405
405
|
return v_error === undefined ? null : v_error;
|
|
406
406
|
}
|
|
407
407
|
|
|
408
|
-
function validate$
|
|
408
|
+
function validate$p(obj, path = 'CdpMlCustomizableFieldDefinitionRepresentation') {
|
|
409
409
|
const v_error = (() => {
|
|
410
410
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
411
411
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
412
412
|
}
|
|
413
413
|
const obj_filter = obj.filter;
|
|
414
414
|
const path_filter = path + '.filter';
|
|
415
|
-
const referencepath_filterValidationError = validate$
|
|
415
|
+
const referencepath_filterValidationError = validate$q(obj_filter, path_filter);
|
|
416
416
|
if (referencepath_filterValidationError !== null) {
|
|
417
417
|
let message = 'Object doesn\'t match CdpMlFilterRepresentation (at "' + path_filter + '")\n';
|
|
418
418
|
message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -427,7 +427,7 @@ function validate$o(obj, path = 'CdpMlCustomizableFieldDefinitionRepresentation'
|
|
|
427
427
|
return v_error === undefined ? null : v_error;
|
|
428
428
|
}
|
|
429
429
|
|
|
430
|
-
function validate$
|
|
430
|
+
function validate$o(obj, path = 'CdpMlModelInputFieldBaseRepresentation') {
|
|
431
431
|
const v_error = (() => {
|
|
432
432
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
433
433
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -461,7 +461,7 @@ function validate$n(obj, path = 'CdpMlModelInputFieldBaseRepresentation') {
|
|
|
461
461
|
return v_error === undefined ? null : v_error;
|
|
462
462
|
}
|
|
463
463
|
|
|
464
|
-
function validate$
|
|
464
|
+
function validate$n(obj, path = 'CdpMlCustomizableFieldRepresentation') {
|
|
465
465
|
const v_error = (() => {
|
|
466
466
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
467
467
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -474,7 +474,7 @@ function validate$m(obj, path = 'CdpMlCustomizableFieldRepresentation') {
|
|
|
474
474
|
for (let i = 0; i < obj_customDefinitions.length; i++) {
|
|
475
475
|
const obj_customDefinitions_item = obj_customDefinitions[i];
|
|
476
476
|
const path_customDefinitions_item = path_customDefinitions + '[' + i + ']';
|
|
477
|
-
const referencepath_customDefinitions_itemValidationError = validate$
|
|
477
|
+
const referencepath_customDefinitions_itemValidationError = validate$p(obj_customDefinitions_item, path_customDefinitions_item);
|
|
478
478
|
if (referencepath_customDefinitions_itemValidationError !== null) {
|
|
479
479
|
let message = 'Object doesn\'t match CdpMlCustomizableFieldDefinitionRepresentation (at "' + path_customDefinitions_item + '")\n';
|
|
480
480
|
message += referencepath_customDefinitions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -483,7 +483,7 @@ function validate$m(obj, path = 'CdpMlCustomizableFieldRepresentation') {
|
|
|
483
483
|
}
|
|
484
484
|
const obj_field = obj.field;
|
|
485
485
|
const path_field = path + '.field';
|
|
486
|
-
const referencepath_fieldValidationError = validate$
|
|
486
|
+
const referencepath_fieldValidationError = validate$o(obj_field, path_field);
|
|
487
487
|
if (referencepath_fieldValidationError !== null) {
|
|
488
488
|
let message = 'Object doesn\'t match CdpMlModelInputFieldBaseRepresentation (at "' + path_field + '")\n';
|
|
489
489
|
message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -498,7 +498,7 @@ function validate$m(obj, path = 'CdpMlCustomizableFieldRepresentation') {
|
|
|
498
498
|
return v_error === undefined ? null : v_error;
|
|
499
499
|
}
|
|
500
500
|
|
|
501
|
-
function validate$
|
|
501
|
+
function validate$m(obj, path = 'CdpUserRepresentation') {
|
|
502
502
|
const v_error = (() => {
|
|
503
503
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
504
504
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -522,7 +522,7 @@ function validate$l(obj, path = 'CdpUserRepresentation') {
|
|
|
522
522
|
return v_error === undefined ? null : v_error;
|
|
523
523
|
}
|
|
524
524
|
|
|
525
|
-
function validate$
|
|
525
|
+
function validate$l(obj, path = 'CdpAssetReferenceRepresentation') {
|
|
526
526
|
const v_error = (() => {
|
|
527
527
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
528
528
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -530,7 +530,7 @@ function validate$k(obj, path = 'CdpAssetReferenceRepresentation') {
|
|
|
530
530
|
if (obj.createdBy !== undefined) {
|
|
531
531
|
const obj_createdBy = obj.createdBy;
|
|
532
532
|
const path_createdBy = path + '.createdBy';
|
|
533
|
-
const referencepath_createdByValidationError = validate$
|
|
533
|
+
const referencepath_createdByValidationError = validate$m(obj_createdBy, path_createdBy);
|
|
534
534
|
if (referencepath_createdByValidationError !== null) {
|
|
535
535
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
536
536
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -603,7 +603,7 @@ function validate$k(obj, path = 'CdpAssetReferenceRepresentation') {
|
|
|
603
603
|
if (obj.lastModifiedBy !== undefined) {
|
|
604
604
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
605
605
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
606
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
606
|
+
const referencepath_lastModifiedByValidationError = validate$m(obj_lastModifiedBy, path_lastModifiedBy);
|
|
607
607
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
608
608
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
609
609
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -726,7 +726,7 @@ function validate$k(obj, path = 'CdpAssetReferenceRepresentation') {
|
|
|
726
726
|
return v_error === undefined ? null : v_error;
|
|
727
727
|
}
|
|
728
728
|
|
|
729
|
-
function validate$
|
|
729
|
+
function validate$k(obj, path = 'CdpMlModelParameterOverrideBaseRepresentation') {
|
|
730
730
|
const v_error = (() => {
|
|
731
731
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
732
732
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -755,7 +755,7 @@ function keyBuilderFromType$2(luvio, object) {
|
|
|
755
755
|
|
|
756
756
|
const TTL$7 = 1000;
|
|
757
757
|
const VERSION$7 = "f9608bc4ae3825a8da2fc0992ae87b6e";
|
|
758
|
-
function validate$
|
|
758
|
+
function validate$j(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
759
759
|
const v_error = (() => {
|
|
760
760
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
761
761
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -769,7 +769,7 @@ function validate$i(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
769
769
|
for (let i = 0; i < obj_actionableFields.length; i++) {
|
|
770
770
|
const obj_actionableFields_item = obj_actionableFields[i];
|
|
771
771
|
const path_actionableFields_item = path_actionableFields + '[' + i + ']';
|
|
772
|
-
const referencepath_actionableFields_itemValidationError = validate$
|
|
772
|
+
const referencepath_actionableFields_itemValidationError = validate$n(obj_actionableFields_item, path_actionableFields_item);
|
|
773
773
|
if (referencepath_actionableFields_itemValidationError !== null) {
|
|
774
774
|
let message = 'Object doesn\'t match CdpMlCustomizableFieldRepresentation (at "' + path_actionableFields_item + '")\n';
|
|
775
775
|
message += referencepath_actionableFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -779,7 +779,7 @@ function validate$i(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
779
779
|
}
|
|
780
780
|
const obj_artifact = obj.artifact;
|
|
781
781
|
const path_artifact = path + '.artifact';
|
|
782
|
-
const referencepath_artifactValidationError = validate$
|
|
782
|
+
const referencepath_artifactValidationError = validate$l(obj_artifact, path_artifact);
|
|
783
783
|
if (referencepath_artifactValidationError !== null) {
|
|
784
784
|
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_artifact + '")\n';
|
|
785
785
|
message += referencepath_artifactValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -793,7 +793,7 @@ function validate$i(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
793
793
|
if (obj.createdBy !== undefined) {
|
|
794
794
|
const obj_createdBy = obj.createdBy;
|
|
795
795
|
const path_createdBy = path + '.createdBy';
|
|
796
|
-
const referencepath_createdByValidationError = validate$
|
|
796
|
+
const referencepath_createdByValidationError = validate$m(obj_createdBy, path_createdBy);
|
|
797
797
|
if (referencepath_createdByValidationError !== null) {
|
|
798
798
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
799
799
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -836,7 +836,7 @@ function validate$i(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
836
836
|
for (let i = 0; i < obj_customizableFields.length; i++) {
|
|
837
837
|
const obj_customizableFields_item = obj_customizableFields[i];
|
|
838
838
|
const path_customizableFields_item = path_customizableFields + '[' + i + ']';
|
|
839
|
-
const referencepath_customizableFields_itemValidationError = validate$
|
|
839
|
+
const referencepath_customizableFields_itemValidationError = validate$n(obj_customizableFields_item, path_customizableFields_item);
|
|
840
840
|
if (referencepath_customizableFields_itemValidationError !== null) {
|
|
841
841
|
let message = 'Object doesn\'t match CdpMlCustomizableFieldRepresentation (at "' + path_customizableFields_item + '")\n';
|
|
842
842
|
message += referencepath_customizableFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -873,7 +873,7 @@ function validate$i(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
873
873
|
}
|
|
874
874
|
const obj_filter = obj.filter;
|
|
875
875
|
const path_filter = path + '.filter';
|
|
876
|
-
const referencepath_filterValidationError = validate$
|
|
876
|
+
const referencepath_filterValidationError = validate$q(obj_filter, path_filter);
|
|
877
877
|
if (referencepath_filterValidationError !== null) {
|
|
878
878
|
let message = 'Object doesn\'t match CdpMlFilterRepresentation (at "' + path_filter + '")\n';
|
|
879
879
|
message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -917,7 +917,7 @@ function validate$i(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
917
917
|
if (obj.lastActivatedBy !== undefined) {
|
|
918
918
|
const obj_lastActivatedBy = obj.lastActivatedBy;
|
|
919
919
|
const path_lastActivatedBy = path + '.lastActivatedBy';
|
|
920
|
-
const referencepath_lastActivatedByValidationError = validate$
|
|
920
|
+
const referencepath_lastActivatedByValidationError = validate$m(obj_lastActivatedBy, path_lastActivatedBy);
|
|
921
921
|
if (referencepath_lastActivatedByValidationError !== null) {
|
|
922
922
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastActivatedBy + '")\n';
|
|
923
923
|
message += referencepath_lastActivatedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -934,7 +934,7 @@ function validate$i(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
934
934
|
if (obj.lastModifiedBy !== undefined) {
|
|
935
935
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
936
936
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
937
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
937
|
+
const referencepath_lastModifiedByValidationError = validate$m(obj_lastModifiedBy, path_lastModifiedBy);
|
|
938
938
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
939
939
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
940
940
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1038,7 +1038,7 @@ function validate$i(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
1038
1038
|
for (let i = 0; i < obj_parameterOverrides.length; i++) {
|
|
1039
1039
|
const obj_parameterOverrides_item = obj_parameterOverrides[i];
|
|
1040
1040
|
const path_parameterOverrides_item = path_parameterOverrides + '[' + i + ']';
|
|
1041
|
-
const referencepath_parameterOverrides_itemValidationError = validate$
|
|
1041
|
+
const referencepath_parameterOverrides_itemValidationError = validate$k(obj_parameterOverrides_item, path_parameterOverrides_item);
|
|
1042
1042
|
if (referencepath_parameterOverrides_itemValidationError !== null) {
|
|
1043
1043
|
let message = 'Object doesn\'t match CdpMlModelParameterOverrideBaseRepresentation (at "' + path_parameterOverrides_item + '")\n';
|
|
1044
1044
|
message += referencepath_parameterOverrides_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1083,7 +1083,7 @@ function equals$7(existing, incoming) {
|
|
|
1083
1083
|
}
|
|
1084
1084
|
const ingest$7 = function CdpMlConfiguredModelRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1085
1085
|
if (process.env.NODE_ENV !== 'production') {
|
|
1086
|
-
const validateError = validate$
|
|
1086
|
+
const validateError = validate$j(input);
|
|
1087
1087
|
if (validateError !== null) {
|
|
1088
1088
|
throw validateError;
|
|
1089
1089
|
}
|
|
@@ -1164,7 +1164,7 @@ function typeCheckConfig$b(untrustedConfig) {
|
|
|
1164
1164
|
const untrustedConfig_actionableFields_array = [];
|
|
1165
1165
|
for (let i = 0, arrayLength = untrustedConfig_actionableFields.length; i < arrayLength; i++) {
|
|
1166
1166
|
const untrustedConfig_actionableFields_item = untrustedConfig_actionableFields[i];
|
|
1167
|
-
const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$
|
|
1167
|
+
const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$v(untrustedConfig_actionableFields_item);
|
|
1168
1168
|
if (referenceCdpMlCustomizableFieldInputRepresentationValidationError === null) {
|
|
1169
1169
|
untrustedConfig_actionableFields_array.push(untrustedConfig_actionableFields_item);
|
|
1170
1170
|
}
|
|
@@ -1172,7 +1172,7 @@ function typeCheckConfig$b(untrustedConfig) {
|
|
|
1172
1172
|
config.actionableFields = untrustedConfig_actionableFields_array;
|
|
1173
1173
|
}
|
|
1174
1174
|
const untrustedConfig_artifact = untrustedConfig.artifact;
|
|
1175
|
-
const referenceCdpAssetReferenceInputRepresentationValidationError = validate$
|
|
1175
|
+
const referenceCdpAssetReferenceInputRepresentationValidationError = validate$u(untrustedConfig_artifact);
|
|
1176
1176
|
if (referenceCdpAssetReferenceInputRepresentationValidationError === null) {
|
|
1177
1177
|
config.artifact = untrustedConfig_artifact;
|
|
1178
1178
|
}
|
|
@@ -1181,7 +1181,7 @@ function typeCheckConfig$b(untrustedConfig) {
|
|
|
1181
1181
|
const untrustedConfig_customizableFields_array = [];
|
|
1182
1182
|
for (let i = 0, arrayLength = untrustedConfig_customizableFields.length; i < arrayLength; i++) {
|
|
1183
1183
|
const untrustedConfig_customizableFields_item = untrustedConfig_customizableFields[i];
|
|
1184
|
-
const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$
|
|
1184
|
+
const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$v(untrustedConfig_customizableFields_item);
|
|
1185
1185
|
if (referenceCdpMlCustomizableFieldInputRepresentationValidationError === null) {
|
|
1186
1186
|
untrustedConfig_customizableFields_array.push(untrustedConfig_customizableFields_item);
|
|
1187
1187
|
}
|
|
@@ -1214,7 +1214,7 @@ function typeCheckConfig$b(untrustedConfig) {
|
|
|
1214
1214
|
const untrustedConfig_parameterOverrides_array = [];
|
|
1215
1215
|
for (let i = 0, arrayLength = untrustedConfig_parameterOverrides.length; i < arrayLength; i++) {
|
|
1216
1216
|
const untrustedConfig_parameterOverrides_item = untrustedConfig_parameterOverrides[i];
|
|
1217
|
-
const referenceCdpMlModelParameterOverrideInputRepresentationValidationError = validate$
|
|
1217
|
+
const referenceCdpMlModelParameterOverrideInputRepresentationValidationError = validate$t(untrustedConfig_parameterOverrides_item);
|
|
1218
1218
|
if (referenceCdpMlModelParameterOverrideInputRepresentationValidationError === null) {
|
|
1219
1219
|
untrustedConfig_parameterOverrides_array.push(untrustedConfig_parameterOverrides_item);
|
|
1220
1220
|
}
|
|
@@ -1265,6 +1265,109 @@ const createCdpMlConfiguredModelAdapterFactory = (luvio) => {
|
|
|
1265
1265
|
};
|
|
1266
1266
|
};
|
|
1267
1267
|
|
|
1268
|
+
function validate$i(obj, path = 'MlDeprecationConfigurationRepresentation') {
|
|
1269
|
+
const v_error = (() => {
|
|
1270
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1271
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1272
|
+
}
|
|
1273
|
+
if (obj.deprecationDate !== undefined) {
|
|
1274
|
+
const obj_deprecationDate = obj.deprecationDate;
|
|
1275
|
+
const path_deprecationDate = path + '.deprecationDate';
|
|
1276
|
+
let obj_deprecationDate_union0 = null;
|
|
1277
|
+
const obj_deprecationDate_union0_error = (() => {
|
|
1278
|
+
if (typeof obj_deprecationDate !== 'string') {
|
|
1279
|
+
return new TypeError('Expected "string" but received "' + typeof obj_deprecationDate + '" (at "' + path_deprecationDate + '")');
|
|
1280
|
+
}
|
|
1281
|
+
})();
|
|
1282
|
+
if (obj_deprecationDate_union0_error != null) {
|
|
1283
|
+
obj_deprecationDate_union0 = obj_deprecationDate_union0_error.message;
|
|
1284
|
+
}
|
|
1285
|
+
let obj_deprecationDate_union1 = null;
|
|
1286
|
+
const obj_deprecationDate_union1_error = (() => {
|
|
1287
|
+
if (obj_deprecationDate !== null) {
|
|
1288
|
+
return new TypeError('Expected "null" but received "' + typeof obj_deprecationDate + '" (at "' + path_deprecationDate + '")');
|
|
1289
|
+
}
|
|
1290
|
+
})();
|
|
1291
|
+
if (obj_deprecationDate_union1_error != null) {
|
|
1292
|
+
obj_deprecationDate_union1 = obj_deprecationDate_union1_error.message;
|
|
1293
|
+
}
|
|
1294
|
+
if (obj_deprecationDate_union0 && obj_deprecationDate_union1) {
|
|
1295
|
+
let message = 'Object doesn\'t match union (at "' + path_deprecationDate + '")';
|
|
1296
|
+
message += '\n' + obj_deprecationDate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1297
|
+
message += '\n' + obj_deprecationDate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1298
|
+
return new TypeError(message);
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
if (obj.endOfLifeDate !== undefined) {
|
|
1302
|
+
const obj_endOfLifeDate = obj.endOfLifeDate;
|
|
1303
|
+
const path_endOfLifeDate = path + '.endOfLifeDate';
|
|
1304
|
+
let obj_endOfLifeDate_union0 = null;
|
|
1305
|
+
const obj_endOfLifeDate_union0_error = (() => {
|
|
1306
|
+
if (typeof obj_endOfLifeDate !== 'string') {
|
|
1307
|
+
return new TypeError('Expected "string" but received "' + typeof obj_endOfLifeDate + '" (at "' + path_endOfLifeDate + '")');
|
|
1308
|
+
}
|
|
1309
|
+
})();
|
|
1310
|
+
if (obj_endOfLifeDate_union0_error != null) {
|
|
1311
|
+
obj_endOfLifeDate_union0 = obj_endOfLifeDate_union0_error.message;
|
|
1312
|
+
}
|
|
1313
|
+
let obj_endOfLifeDate_union1 = null;
|
|
1314
|
+
const obj_endOfLifeDate_union1_error = (() => {
|
|
1315
|
+
if (obj_endOfLifeDate !== null) {
|
|
1316
|
+
return new TypeError('Expected "null" but received "' + typeof obj_endOfLifeDate + '" (at "' + path_endOfLifeDate + '")');
|
|
1317
|
+
}
|
|
1318
|
+
})();
|
|
1319
|
+
if (obj_endOfLifeDate_union1_error != null) {
|
|
1320
|
+
obj_endOfLifeDate_union1 = obj_endOfLifeDate_union1_error.message;
|
|
1321
|
+
}
|
|
1322
|
+
if (obj_endOfLifeDate_union0 && obj_endOfLifeDate_union1) {
|
|
1323
|
+
let message = 'Object doesn\'t match union (at "' + path_endOfLifeDate + '")';
|
|
1324
|
+
message += '\n' + obj_endOfLifeDate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1325
|
+
message += '\n' + obj_endOfLifeDate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1326
|
+
return new TypeError(message);
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
if (obj.endOfLifePolicy !== undefined) {
|
|
1330
|
+
const obj_endOfLifePolicy = obj.endOfLifePolicy;
|
|
1331
|
+
const path_endOfLifePolicy = path + '.endOfLifePolicy';
|
|
1332
|
+
let obj_endOfLifePolicy_union0 = null;
|
|
1333
|
+
const obj_endOfLifePolicy_union0_error = (() => {
|
|
1334
|
+
if (typeof obj_endOfLifePolicy !== 'string') {
|
|
1335
|
+
return new TypeError('Expected "string" but received "' + typeof obj_endOfLifePolicy + '" (at "' + path_endOfLifePolicy + '")');
|
|
1336
|
+
}
|
|
1337
|
+
})();
|
|
1338
|
+
if (obj_endOfLifePolicy_union0_error != null) {
|
|
1339
|
+
obj_endOfLifePolicy_union0 = obj_endOfLifePolicy_union0_error.message;
|
|
1340
|
+
}
|
|
1341
|
+
let obj_endOfLifePolicy_union1 = null;
|
|
1342
|
+
const obj_endOfLifePolicy_union1_error = (() => {
|
|
1343
|
+
if (obj_endOfLifePolicy !== null) {
|
|
1344
|
+
return new TypeError('Expected "null" but received "' + typeof obj_endOfLifePolicy + '" (at "' + path_endOfLifePolicy + '")');
|
|
1345
|
+
}
|
|
1346
|
+
})();
|
|
1347
|
+
if (obj_endOfLifePolicy_union1_error != null) {
|
|
1348
|
+
obj_endOfLifePolicy_union1 = obj_endOfLifePolicy_union1_error.message;
|
|
1349
|
+
}
|
|
1350
|
+
if (obj_endOfLifePolicy_union0 && obj_endOfLifePolicy_union1) {
|
|
1351
|
+
let message = 'Object doesn\'t match union (at "' + path_endOfLifePolicy + '")';
|
|
1352
|
+
message += '\n' + obj_endOfLifePolicy_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1353
|
+
message += '\n' + obj_endOfLifePolicy_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1354
|
+
return new TypeError(message);
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
if (obj.rollOverModelArtifactReference !== undefined) {
|
|
1358
|
+
const obj_rollOverModelArtifactReference = obj.rollOverModelArtifactReference;
|
|
1359
|
+
const path_rollOverModelArtifactReference = path + '.rollOverModelArtifactReference';
|
|
1360
|
+
const referencepath_rollOverModelArtifactReferenceValidationError = validate$l(obj_rollOverModelArtifactReference, path_rollOverModelArtifactReference);
|
|
1361
|
+
if (referencepath_rollOverModelArtifactReferenceValidationError !== null) {
|
|
1362
|
+
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_rollOverModelArtifactReference + '")\n';
|
|
1363
|
+
message += referencepath_rollOverModelArtifactReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1364
|
+
return new TypeError(message);
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
})();
|
|
1368
|
+
return v_error === undefined ? null : v_error;
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1268
1371
|
// Should match with keyBuilder
|
|
1269
1372
|
function keyBuilderFromType$1(luvio, object) {
|
|
1270
1373
|
const type = object.url.indexOf(object.name) > -1 ? 'name' : 'id';
|
|
@@ -1274,7 +1377,7 @@ function keyBuilderFromType$1(luvio, object) {
|
|
|
1274
1377
|
}
|
|
1275
1378
|
|
|
1276
1379
|
const TTL$6 = 1000;
|
|
1277
|
-
const VERSION$6 = "
|
|
1380
|
+
const VERSION$6 = "ed85e2fecdef33e09a8ef668124d844b";
|
|
1278
1381
|
function validate$h(obj, path = 'MlConfiguredModelRepresentation') {
|
|
1279
1382
|
const v_error = (() => {
|
|
1280
1383
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1296,7 +1399,7 @@ function validate$h(obj, path = 'MlConfiguredModelRepresentation') {
|
|
|
1296
1399
|
}
|
|
1297
1400
|
const obj_artifact = obj.artifact;
|
|
1298
1401
|
const path_artifact = path + '.artifact';
|
|
1299
|
-
const referencepath_artifactValidationError = validate$
|
|
1402
|
+
const referencepath_artifactValidationError = validate$l(obj_artifact, path_artifact);
|
|
1300
1403
|
if (referencepath_artifactValidationError !== null) {
|
|
1301
1404
|
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_artifact + '")\n';
|
|
1302
1405
|
message += referencepath_artifactValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1338,7 +1441,7 @@ function validate$h(obj, path = 'MlConfiguredModelRepresentation') {
|
|
|
1338
1441
|
if (obj.createdBy !== undefined) {
|
|
1339
1442
|
const obj_createdBy = obj.createdBy;
|
|
1340
1443
|
const path_createdBy = path + '.createdBy';
|
|
1341
|
-
const referencepath_createdByValidationError = validate$
|
|
1444
|
+
const referencepath_createdByValidationError = validate$m(obj_createdBy, path_createdBy);
|
|
1342
1445
|
if (referencepath_createdByValidationError !== null) {
|
|
1343
1446
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
1344
1447
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1373,6 +1476,16 @@ function validate$h(obj, path = 'MlConfiguredModelRepresentation') {
|
|
|
1373
1476
|
return new TypeError(message);
|
|
1374
1477
|
}
|
|
1375
1478
|
}
|
|
1479
|
+
if (obj.deprecationConfiguration !== undefined) {
|
|
1480
|
+
const obj_deprecationConfiguration = obj.deprecationConfiguration;
|
|
1481
|
+
const path_deprecationConfiguration = path + '.deprecationConfiguration';
|
|
1482
|
+
const referencepath_deprecationConfigurationValidationError = validate$i(obj_deprecationConfiguration, path_deprecationConfiguration);
|
|
1483
|
+
if (referencepath_deprecationConfigurationValidationError !== null) {
|
|
1484
|
+
let message = 'Object doesn\'t match MlDeprecationConfigurationRepresentation (at "' + path_deprecationConfiguration + '")\n';
|
|
1485
|
+
message += referencepath_deprecationConfigurationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1486
|
+
return new TypeError(message);
|
|
1487
|
+
}
|
|
1488
|
+
}
|
|
1376
1489
|
if (obj.description !== undefined) {
|
|
1377
1490
|
const obj_description = obj.description;
|
|
1378
1491
|
const path_description = path + '.description';
|
|
@@ -1418,7 +1531,7 @@ function validate$h(obj, path = 'MlConfiguredModelRepresentation') {
|
|
|
1418
1531
|
if (obj.lastActivatedBy !== undefined) {
|
|
1419
1532
|
const obj_lastActivatedBy = obj.lastActivatedBy;
|
|
1420
1533
|
const path_lastActivatedBy = path + '.lastActivatedBy';
|
|
1421
|
-
const referencepath_lastActivatedByValidationError = validate$
|
|
1534
|
+
const referencepath_lastActivatedByValidationError = validate$m(obj_lastActivatedBy, path_lastActivatedBy);
|
|
1422
1535
|
if (referencepath_lastActivatedByValidationError !== null) {
|
|
1423
1536
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastActivatedBy + '")\n';
|
|
1424
1537
|
message += referencepath_lastActivatedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1435,7 +1548,7 @@ function validate$h(obj, path = 'MlConfiguredModelRepresentation') {
|
|
|
1435
1548
|
if (obj.lastModifiedBy !== undefined) {
|
|
1436
1549
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
1437
1550
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
1438
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
1551
|
+
const referencepath_lastModifiedByValidationError = validate$m(obj_lastModifiedBy, path_lastModifiedBy);
|
|
1439
1552
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
1440
1553
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
1441
1554
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1519,7 +1632,7 @@ function validate$h(obj, path = 'MlConfiguredModelRepresentation') {
|
|
|
1519
1632
|
for (let i = 0; i < obj_parameterOverrides.length; i++) {
|
|
1520
1633
|
const obj_parameterOverrides_item = obj_parameterOverrides[i];
|
|
1521
1634
|
const path_parameterOverrides_item = path_parameterOverrides + '[' + i + ']';
|
|
1522
|
-
const referencepath_parameterOverrides_itemValidationError = validate$
|
|
1635
|
+
const referencepath_parameterOverrides_itemValidationError = validate$k(obj_parameterOverrides_item, path_parameterOverrides_item);
|
|
1523
1636
|
if (referencepath_parameterOverrides_itemValidationError !== null) {
|
|
1524
1637
|
let message = 'Object doesn\'t match CdpMlModelParameterOverrideBaseRepresentation (at "' + path_parameterOverrides_item + '")\n';
|
|
1525
1638
|
message += referencepath_parameterOverrides_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1651,7 +1764,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
1651
1764
|
const config = {};
|
|
1652
1765
|
typeCheckConfig$c(untrustedConfig, config, createMlConfiguredModel_ConfigPropertyMetadata);
|
|
1653
1766
|
const untrustedConfig_artifact = untrustedConfig.artifact;
|
|
1654
|
-
const referenceCdpAssetReferenceInputRepresentationValidationError = validate$
|
|
1767
|
+
const referenceCdpAssetReferenceInputRepresentationValidationError = validate$u(untrustedConfig_artifact);
|
|
1655
1768
|
if (referenceCdpAssetReferenceInputRepresentationValidationError === null) {
|
|
1656
1769
|
config.artifact = untrustedConfig_artifact;
|
|
1657
1770
|
}
|
|
@@ -1660,7 +1773,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
1660
1773
|
const untrustedConfig_parameterOverrides_array = [];
|
|
1661
1774
|
for (let i = 0, arrayLength = untrustedConfig_parameterOverrides.length; i < arrayLength; i++) {
|
|
1662
1775
|
const untrustedConfig_parameterOverrides_item = untrustedConfig_parameterOverrides[i];
|
|
1663
|
-
const referenceCdpMlModelParameterOverrideInputRepresentationValidationError = validate$
|
|
1776
|
+
const referenceCdpMlModelParameterOverrideInputRepresentationValidationError = validate$t(untrustedConfig_parameterOverrides_item);
|
|
1664
1777
|
if (referenceCdpMlModelParameterOverrideInputRepresentationValidationError === null) {
|
|
1665
1778
|
untrustedConfig_parameterOverrides_array.push(untrustedConfig_parameterOverrides_item);
|
|
1666
1779
|
}
|
|
@@ -1879,7 +1992,7 @@ function validate$g(obj, path = 'CdpMlConfiguredModelCollectionRepresentation')
|
|
|
1879
1992
|
for (let i = 0; i < obj_models.length; i++) {
|
|
1880
1993
|
const obj_models_item = obj_models[i];
|
|
1881
1994
|
const path_models_item = path_models + '[' + i + ']';
|
|
1882
|
-
const referencepath_models_itemValidationError = validate$
|
|
1995
|
+
const referencepath_models_itemValidationError = validate$j(obj_models_item, path_models_item);
|
|
1883
1996
|
if (referencepath_models_itemValidationError !== null) {
|
|
1884
1997
|
let message = 'Object doesn\'t match CdpMlConfiguredModelRepresentation (at "' + path_models_item + '")\n';
|
|
1885
1998
|
message += referencepath_models_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2136,7 +2249,7 @@ function validate$f(obj, path = 'MlConnectorEndpointRepresentation') {
|
|
|
2136
2249
|
if (obj.namedCredential !== undefined) {
|
|
2137
2250
|
const obj_namedCredential = obj.namedCredential;
|
|
2138
2251
|
const path_namedCredential = path + '.namedCredential';
|
|
2139
|
-
const referencepath_namedCredentialValidationError = validate$
|
|
2252
|
+
const referencepath_namedCredentialValidationError = validate$l(obj_namedCredential, path_namedCredential);
|
|
2140
2253
|
if (referencepath_namedCredentialValidationError !== null) {
|
|
2141
2254
|
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_namedCredential + '")\n';
|
|
2142
2255
|
message += referencepath_namedCredentialValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2233,7 +2346,7 @@ function validate$d(obj, path = 'CdpMlModelParameterDefinitionBaseRepresentation
|
|
|
2233
2346
|
}
|
|
2234
2347
|
|
|
2235
2348
|
const TTL$4 = 1000;
|
|
2236
|
-
const VERSION$4 = "
|
|
2349
|
+
const VERSION$4 = "ae56a591d51de237bc7e4d4f66b7505e";
|
|
2237
2350
|
function validate$c(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
2238
2351
|
const v_error = (() => {
|
|
2239
2352
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -2242,7 +2355,7 @@ function validate$c(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
2242
2355
|
if (obj.createdBy !== undefined) {
|
|
2243
2356
|
const obj_createdBy = obj.createdBy;
|
|
2244
2357
|
const path_createdBy = path + '.createdBy';
|
|
2245
|
-
const referencepath_createdByValidationError = validate$
|
|
2358
|
+
const referencepath_createdByValidationError = validate$m(obj_createdBy, path_createdBy);
|
|
2246
2359
|
if (referencepath_createdByValidationError !== null) {
|
|
2247
2360
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
2248
2361
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2277,6 +2390,16 @@ function validate$c(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
2277
2390
|
return new TypeError(message);
|
|
2278
2391
|
}
|
|
2279
2392
|
}
|
|
2393
|
+
if (obj.deprecationConfiguration !== undefined) {
|
|
2394
|
+
const obj_deprecationConfiguration = obj.deprecationConfiguration;
|
|
2395
|
+
const path_deprecationConfiguration = path + '.deprecationConfiguration';
|
|
2396
|
+
const referencepath_deprecationConfigurationValidationError = validate$i(obj_deprecationConfiguration, path_deprecationConfiguration);
|
|
2397
|
+
if (referencepath_deprecationConfigurationValidationError !== null) {
|
|
2398
|
+
let message = 'Object doesn\'t match MlDeprecationConfigurationRepresentation (at "' + path_deprecationConfiguration + '")\n';
|
|
2399
|
+
message += referencepath_deprecationConfigurationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2400
|
+
return new TypeError(message);
|
|
2401
|
+
}
|
|
2402
|
+
}
|
|
2280
2403
|
if (obj.description !== undefined) {
|
|
2281
2404
|
const obj_description = obj.description;
|
|
2282
2405
|
const path_description = path + '.description';
|
|
@@ -2320,7 +2443,7 @@ function validate$c(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
2320
2443
|
for (let i = 0; i < obj_inputFields.length; i++) {
|
|
2321
2444
|
const obj_inputFields_item = obj_inputFields[i];
|
|
2322
2445
|
const path_inputFields_item = path_inputFields + '[' + i + ']';
|
|
2323
|
-
const referencepath_inputFields_itemValidationError = validate$
|
|
2446
|
+
const referencepath_inputFields_itemValidationError = validate$o(obj_inputFields_item, path_inputFields_item);
|
|
2324
2447
|
if (referencepath_inputFields_itemValidationError !== null) {
|
|
2325
2448
|
let message = 'Object doesn\'t match CdpMlModelInputFieldBaseRepresentation (at "' + path_inputFields_item + '")\n';
|
|
2326
2449
|
message += referencepath_inputFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2358,7 +2481,7 @@ function validate$c(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
2358
2481
|
if (obj.lastModifiedBy !== undefined) {
|
|
2359
2482
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
2360
2483
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
2361
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
2484
|
+
const referencepath_lastModifiedByValidationError = validate$m(obj_lastModifiedBy, path_lastModifiedBy);
|
|
2362
2485
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
2363
2486
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
2364
2487
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2486,7 +2609,7 @@ function validate$c(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
2486
2609
|
if (obj.setupContainer !== undefined) {
|
|
2487
2610
|
const obj_setupContainer = obj.setupContainer;
|
|
2488
2611
|
const path_setupContainer = path + '.setupContainer';
|
|
2489
|
-
const referencepath_setupContainerValidationError = validate$
|
|
2612
|
+
const referencepath_setupContainerValidationError = validate$l(obj_setupContainer, path_setupContainer);
|
|
2490
2613
|
if (referencepath_setupContainerValidationError !== null) {
|
|
2491
2614
|
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_setupContainer + '")\n';
|
|
2492
2615
|
message += referencepath_setupContainerValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2496,7 +2619,7 @@ function validate$c(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
2496
2619
|
if (obj.source !== undefined) {
|
|
2497
2620
|
const obj_source = obj.source;
|
|
2498
2621
|
const path_source = path + '.source';
|
|
2499
|
-
const referencepath_sourceValidationError = validate$
|
|
2622
|
+
const referencepath_sourceValidationError = validate$l(obj_source, path_source);
|
|
2500
2623
|
if (referencepath_sourceValidationError !== null) {
|
|
2501
2624
|
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_source + '")\n';
|
|
2502
2625
|
message += referencepath_sourceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2506,7 +2629,7 @@ function validate$c(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
2506
2629
|
if (obj.sourceContainer !== undefined) {
|
|
2507
2630
|
const obj_sourceContainer = obj.sourceContainer;
|
|
2508
2631
|
const path_sourceContainer = path + '.sourceContainer';
|
|
2509
|
-
const referencepath_sourceContainerValidationError = validate$
|
|
2632
|
+
const referencepath_sourceContainerValidationError = validate$l(obj_sourceContainer, path_sourceContainer);
|
|
2510
2633
|
if (referencepath_sourceContainerValidationError !== null) {
|
|
2511
2634
|
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_sourceContainer + '")\n';
|
|
2512
2635
|
message += referencepath_sourceContainerValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3247,7 +3370,7 @@ function validate$3(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
3247
3370
|
if (obj.activeSetup !== undefined) {
|
|
3248
3371
|
const obj_activeSetup = obj.activeSetup;
|
|
3249
3372
|
const path_activeSetup = path + '.activeSetup';
|
|
3250
|
-
const referencepath_activeSetupValidationError = validate$
|
|
3373
|
+
const referencepath_activeSetupValidationError = validate$l(obj_activeSetup, path_activeSetup);
|
|
3251
3374
|
if (referencepath_activeSetupValidationError !== null) {
|
|
3252
3375
|
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_activeSetup + '")\n';
|
|
3253
3376
|
message += referencepath_activeSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3285,7 +3408,7 @@ function validate$3(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
3285
3408
|
if (obj.createdBy !== undefined) {
|
|
3286
3409
|
const obj_createdBy = obj.createdBy;
|
|
3287
3410
|
const path_createdBy = path + '.createdBy';
|
|
3288
|
-
const referencepath_createdByValidationError = validate$
|
|
3411
|
+
const referencepath_createdByValidationError = validate$m(obj_createdBy, path_createdBy);
|
|
3289
3412
|
if (referencepath_createdByValidationError !== null) {
|
|
3290
3413
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
3291
3414
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3414,7 +3537,7 @@ function validate$3(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
3414
3537
|
if (obj.lastModifiedBy !== undefined) {
|
|
3415
3538
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
3416
3539
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
3417
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
3540
|
+
const referencepath_lastModifiedByValidationError = validate$m(obj_lastModifiedBy, path_lastModifiedBy);
|
|
3418
3541
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
3419
3542
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
3420
3543
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3452,7 +3575,7 @@ function validate$3(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
3452
3575
|
if (obj.latestSetup !== undefined) {
|
|
3453
3576
|
const obj_latestSetup = obj.latestSetup;
|
|
3454
3577
|
const path_latestSetup = path + '.latestSetup';
|
|
3455
|
-
const referencepath_latestSetupValidationError = validate$
|
|
3578
|
+
const referencepath_latestSetupValidationError = validate$l(obj_latestSetup, path_latestSetup);
|
|
3456
3579
|
if (referencepath_latestSetupValidationError !== null) {
|
|
3457
3580
|
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_latestSetup + '")\n';
|
|
3458
3581
|
message += referencepath_latestSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3913,7 +4036,7 @@ function validate$2(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
3913
4036
|
if (obj.activeSetup !== undefined) {
|
|
3914
4037
|
const obj_activeSetup = obj.activeSetup;
|
|
3915
4038
|
const path_activeSetup = path + '.activeSetup';
|
|
3916
|
-
const referencepath_activeSetupValidationError = validate$
|
|
4039
|
+
const referencepath_activeSetupValidationError = validate$l(obj_activeSetup, path_activeSetup);
|
|
3917
4040
|
if (referencepath_activeSetupValidationError !== null) {
|
|
3918
4041
|
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_activeSetup + '")\n';
|
|
3919
4042
|
message += referencepath_activeSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3951,7 +4074,7 @@ function validate$2(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
3951
4074
|
if (obj.createdBy !== undefined) {
|
|
3952
4075
|
const obj_createdBy = obj.createdBy;
|
|
3953
4076
|
const path_createdBy = path + '.createdBy';
|
|
3954
|
-
const referencepath_createdByValidationError = validate$
|
|
4077
|
+
const referencepath_createdByValidationError = validate$m(obj_createdBy, path_createdBy);
|
|
3955
4078
|
if (referencepath_createdByValidationError !== null) {
|
|
3956
4079
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
3957
4080
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4080,7 +4203,7 @@ function validate$2(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
4080
4203
|
if (obj.lastModifiedBy !== undefined) {
|
|
4081
4204
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
4082
4205
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
4083
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
4206
|
+
const referencepath_lastModifiedByValidationError = validate$m(obj_lastModifiedBy, path_lastModifiedBy);
|
|
4084
4207
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
4085
4208
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
4086
4209
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4118,7 +4241,7 @@ function validate$2(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
4118
4241
|
if (obj.latestSetup !== undefined) {
|
|
4119
4242
|
const obj_latestSetup = obj.latestSetup;
|
|
4120
4243
|
const path_latestSetup = path + '.latestSetup';
|
|
4121
|
-
const referencepath_latestSetupValidationError = validate$
|
|
4244
|
+
const referencepath_latestSetupValidationError = validate$l(obj_latestSetup, path_latestSetup);
|
|
4122
4245
|
if (referencepath_latestSetupValidationError !== null) {
|
|
4123
4246
|
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_latestSetup + '")\n';
|
|
4124
4247
|
message += referencepath_latestSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5092,7 +5215,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
5092
5215
|
const untrustedConfig_actionableFields_array = [];
|
|
5093
5216
|
for (let i = 0, arrayLength = untrustedConfig_actionableFields.length; i < arrayLength; i++) {
|
|
5094
5217
|
const untrustedConfig_actionableFields_item = untrustedConfig_actionableFields[i];
|
|
5095
|
-
const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$
|
|
5218
|
+
const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$v(untrustedConfig_actionableFields_item);
|
|
5096
5219
|
if (referenceCdpMlCustomizableFieldInputRepresentationValidationError === null) {
|
|
5097
5220
|
untrustedConfig_actionableFields_array.push(untrustedConfig_actionableFields_item);
|
|
5098
5221
|
}
|
|
@@ -5100,7 +5223,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
5100
5223
|
config.actionableFields = untrustedConfig_actionableFields_array;
|
|
5101
5224
|
}
|
|
5102
5225
|
const untrustedConfig_artifact = untrustedConfig.artifact;
|
|
5103
|
-
const referenceCdpAssetReferenceInputRepresentationValidationError = validate$
|
|
5226
|
+
const referenceCdpAssetReferenceInputRepresentationValidationError = validate$u(untrustedConfig_artifact);
|
|
5104
5227
|
if (referenceCdpAssetReferenceInputRepresentationValidationError === null) {
|
|
5105
5228
|
config.artifact = untrustedConfig_artifact;
|
|
5106
5229
|
}
|
|
@@ -5109,7 +5232,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
5109
5232
|
const untrustedConfig_customizableFields_array = [];
|
|
5110
5233
|
for (let i = 0, arrayLength = untrustedConfig_customizableFields.length; i < arrayLength; i++) {
|
|
5111
5234
|
const untrustedConfig_customizableFields_item = untrustedConfig_customizableFields[i];
|
|
5112
|
-
const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$
|
|
5235
|
+
const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$v(untrustedConfig_customizableFields_item);
|
|
5113
5236
|
if (referenceCdpMlCustomizableFieldInputRepresentationValidationError === null) {
|
|
5114
5237
|
untrustedConfig_customizableFields_array.push(untrustedConfig_customizableFields_item);
|
|
5115
5238
|
}
|
|
@@ -5142,7 +5265,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
5142
5265
|
const untrustedConfig_parameterOverrides_array = [];
|
|
5143
5266
|
for (let i = 0, arrayLength = untrustedConfig_parameterOverrides.length; i < arrayLength; i++) {
|
|
5144
5267
|
const untrustedConfig_parameterOverrides_item = untrustedConfig_parameterOverrides[i];
|
|
5145
|
-
const referenceCdpMlModelParameterOverrideInputRepresentationValidationError = validate$
|
|
5268
|
+
const referenceCdpMlModelParameterOverrideInputRepresentationValidationError = validate$t(untrustedConfig_parameterOverrides_item);
|
|
5146
5269
|
if (referenceCdpMlModelParameterOverrideInputRepresentationValidationError === null) {
|
|
5147
5270
|
untrustedConfig_parameterOverrides_array.push(untrustedConfig_parameterOverrides_item);
|
|
5148
5271
|
}
|
|
@@ -5246,7 +5369,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
5246
5369
|
const config = {};
|
|
5247
5370
|
typeCheckConfig$c(untrustedConfig, config, updateMlConfiguredModel_ConfigPropertyMetadata);
|
|
5248
5371
|
const untrustedConfig_artifact = untrustedConfig.artifact;
|
|
5249
|
-
const referenceCdpAssetReferenceInputRepresentationValidationError = validate$
|
|
5372
|
+
const referenceCdpAssetReferenceInputRepresentationValidationError = validate$u(untrustedConfig_artifact);
|
|
5250
5373
|
if (referenceCdpAssetReferenceInputRepresentationValidationError === null) {
|
|
5251
5374
|
config.artifact = untrustedConfig_artifact;
|
|
5252
5375
|
}
|
|
@@ -5255,7 +5378,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
5255
5378
|
const untrustedConfig_parameterOverrides_array = [];
|
|
5256
5379
|
for (let i = 0, arrayLength = untrustedConfig_parameterOverrides.length; i < arrayLength; i++) {
|
|
5257
5380
|
const untrustedConfig_parameterOverrides_item = untrustedConfig_parameterOverrides[i];
|
|
5258
|
-
const referenceCdpMlModelParameterOverrideInputRepresentationValidationError = validate$
|
|
5381
|
+
const referenceCdpMlModelParameterOverrideInputRepresentationValidationError = validate$t(untrustedConfig_parameterOverrides_item);
|
|
5259
5382
|
if (referenceCdpMlModelParameterOverrideInputRepresentationValidationError === null) {
|
|
5260
5383
|
untrustedConfig_parameterOverrides_array.push(untrustedConfig_parameterOverrides_item);
|
|
5261
5384
|
}
|
|
@@ -5439,4 +5562,4 @@ withDefaultLuvio((luvio) => {
|
|
|
5439
5562
|
});
|
|
5440
5563
|
|
|
5441
5564
|
export { createCdpMlConfiguredModel, createMlConfiguredModel, getCdpMlConfiguredModel, getCdpMlConfiguredModelCollection, getCdpMlConfiguredModelCollection_imperative, getCdpMlConfiguredModel_imperative, getCdpMlModelArtifact, getCdpMlModelArtifactCollection, getCdpMlModelArtifactCollection_imperative, getCdpMlModelArtifact_imperative, getCdpMlWorkspace, getCdpMlWorkspaceCollection, getCdpMlWorkspaceCollection_imperative, getCdpMlWorkspaceNotifyChange, getCdpMlWorkspace_imperative, getMlConfiguredModel, getMlConfiguredModelCollection, getMlConfiguredModelCollection_imperative, getMlConfiguredModelNotifyChange, getMlConfiguredModel_imperative, updateCdpMlConfiguredModel, updateMlConfiguredModel };
|
|
5442
|
-
// version: 1.
|
|
5565
|
+
// version: 1.309.0-dev11-e18434ec95
|