@salesforce/lds-adapters-platform-cdp-machine-learning 1.310.0 → 1.311.0
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 +1054 -602
- package/dist/es/es2018/types/src/generated/adapters/createCdpMlPredictResult.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/resources/postSsotMachineLearningPredict.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/types/CdpMlAggregatePredictConditionRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/CdpMlAggregatePredictionRepresentation.d.ts +42 -0
- package/dist/es/es2018/types/src/generated/types/CdpMlPredictRawDataInputRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/CdpMlPredictResultRepresentation.d.ts +54 -0
- package/dist/es/es2018/types/src/generated/types/CdpMlPredictSettingsInputRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/CdpMlPredictionBaseRepresentation.d.ts +29 -0
- package/package.json +3 -3
- package/sfdc/index.js +589 -134
- package/src/raml/api.raml +134 -0
- package/src/raml/luvio.raml +21 -1
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$d, typeCheckConfig as typeCheckConfig$d, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$8 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -89,7 +89,7 @@ function createLink(ref) {
|
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
function validate$
|
|
92
|
+
function validate$A(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$z(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$A(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$y(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$x(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$w(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$v(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$w(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$u(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$v(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$t(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$u(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$s(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$r(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$t(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$s(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$q(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$p(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$q(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$q(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$o(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 + '")');
|
|
@@ -746,16 +746,16 @@ function validate$j(obj, path = 'CdpMlModelParameterOverrideBaseRepresentation')
|
|
|
746
746
|
}
|
|
747
747
|
|
|
748
748
|
// Should match with keyBuilder
|
|
749
|
-
function keyBuilderFromType$
|
|
749
|
+
function keyBuilderFromType$3(luvio, object) {
|
|
750
750
|
const type = object.url.indexOf(object.name) > -1 ? 'name' : 'id';
|
|
751
751
|
const urlArray = object.url.split('/');
|
|
752
752
|
const idOrName = urlArray[urlArray.length - 1];
|
|
753
|
-
return `${keyPrefix}::${RepresentationType$
|
|
753
|
+
return `${keyPrefix}::${RepresentationType$8}:(id:${idOrName},type:${type})`;
|
|
754
754
|
}
|
|
755
755
|
|
|
756
|
-
const TTL$
|
|
757
|
-
const VERSION$
|
|
758
|
-
function validate$
|
|
756
|
+
const TTL$8 = 1000;
|
|
757
|
+
const VERSION$8 = "f9608bc4ae3825a8da2fc0992ae87b6e";
|
|
758
|
+
function validate$n(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$r(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$p(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$q(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$r(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$u(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$q(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$q(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$o(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');
|
|
@@ -1063,59 +1063,59 @@ function validate$i(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
1063
1063
|
})();
|
|
1064
1064
|
return v_error === undefined ? null : v_error;
|
|
1065
1065
|
}
|
|
1066
|
-
const RepresentationType$
|
|
1067
|
-
function normalize$
|
|
1066
|
+
const RepresentationType$8 = 'CdpMlConfiguredModelRepresentation';
|
|
1067
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
1068
1068
|
return input;
|
|
1069
1069
|
}
|
|
1070
|
-
const select$
|
|
1070
|
+
const select$l = function CdpMlConfiguredModelRepresentationSelect() {
|
|
1071
1071
|
return {
|
|
1072
1072
|
kind: 'Fragment',
|
|
1073
|
-
version: VERSION$
|
|
1073
|
+
version: VERSION$8,
|
|
1074
1074
|
private: [],
|
|
1075
1075
|
opaque: true
|
|
1076
1076
|
};
|
|
1077
1077
|
};
|
|
1078
|
-
function equals$
|
|
1078
|
+
function equals$8(existing, incoming) {
|
|
1079
1079
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1080
1080
|
return false;
|
|
1081
1081
|
}
|
|
1082
1082
|
return true;
|
|
1083
1083
|
}
|
|
1084
|
-
const ingest$
|
|
1084
|
+
const ingest$8 = function CdpMlConfiguredModelRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1085
1085
|
if (process.env.NODE_ENV !== 'production') {
|
|
1086
|
-
const validateError = validate$
|
|
1086
|
+
const validateError = validate$n(input);
|
|
1087
1087
|
if (validateError !== null) {
|
|
1088
1088
|
throw validateError;
|
|
1089
1089
|
}
|
|
1090
1090
|
}
|
|
1091
|
-
const key = keyBuilderFromType$
|
|
1092
|
-
const ttlToUse = TTL$
|
|
1093
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1091
|
+
const key = keyBuilderFromType$3(luvio, input);
|
|
1092
|
+
const ttlToUse = TTL$8;
|
|
1093
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "cdp-machine-learning", VERSION$8, RepresentationType$8, equals$8);
|
|
1094
1094
|
return createLink(key);
|
|
1095
1095
|
};
|
|
1096
|
-
function getTypeCacheKeys$
|
|
1096
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
1097
1097
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1098
|
-
const rootKey = keyBuilderFromType$
|
|
1098
|
+
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
1099
1099
|
rootKeySet.set(rootKey, {
|
|
1100
1100
|
namespace: keyPrefix,
|
|
1101
|
-
representationName: RepresentationType$
|
|
1101
|
+
representationName: RepresentationType$8,
|
|
1102
1102
|
mergeable: false
|
|
1103
1103
|
});
|
|
1104
1104
|
}
|
|
1105
1105
|
|
|
1106
|
-
function select$
|
|
1107
|
-
return select$
|
|
1106
|
+
function select$k(luvio, params) {
|
|
1107
|
+
return select$l();
|
|
1108
1108
|
}
|
|
1109
|
-
function getResponseCacheKeys$
|
|
1110
|
-
getTypeCacheKeys$
|
|
1109
|
+
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
1110
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
1111
1111
|
}
|
|
1112
|
-
function ingestSuccess$
|
|
1112
|
+
function ingestSuccess$c(luvio, resourceParams, response) {
|
|
1113
1113
|
const { body } = response;
|
|
1114
|
-
const key = keyBuilderFromType$
|
|
1115
|
-
luvio.storeIngest(key, ingest$
|
|
1114
|
+
const key = keyBuilderFromType$3(luvio, body);
|
|
1115
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
1116
1116
|
const snapshot = luvio.storeLookup({
|
|
1117
1117
|
recordId: key,
|
|
1118
|
-
node: select$
|
|
1118
|
+
node: select$k(),
|
|
1119
1119
|
variables: {},
|
|
1120
1120
|
});
|
|
1121
1121
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1126,7 +1126,7 @@ function ingestSuccess$b(luvio, resourceParams, response) {
|
|
|
1126
1126
|
deepFreeze(snapshot.data);
|
|
1127
1127
|
return snapshot;
|
|
1128
1128
|
}
|
|
1129
|
-
function createResourceRequest$
|
|
1129
|
+
function createResourceRequest$c(config) {
|
|
1130
1130
|
const headers = {};
|
|
1131
1131
|
return {
|
|
1132
1132
|
baseUri: '/services/data/v62.0',
|
|
@@ -1140,7 +1140,7 @@ function createResourceRequest$b(config) {
|
|
|
1140
1140
|
};
|
|
1141
1141
|
}
|
|
1142
1142
|
|
|
1143
|
-
const adapterName$
|
|
1143
|
+
const adapterName$c = 'createCdpMlConfiguredModel';
|
|
1144
1144
|
const createCdpMlConfiguredModel_ConfigPropertyMetadata = [
|
|
1145
1145
|
generateParamConfigMetadata('workspaceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1146
1146
|
generateParamConfigMetadata('actionableFields', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
@@ -1154,17 +1154,17 @@ const createCdpMlConfiguredModel_ConfigPropertyMetadata = [
|
|
|
1154
1154
|
generateParamConfigMetadata('position', false, 2 /* Body */, 3 /* Integer */),
|
|
1155
1155
|
generateParamConfigMetadata('status', false, 2 /* Body */, 0 /* String */),
|
|
1156
1156
|
];
|
|
1157
|
-
const createCdpMlConfiguredModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1158
|
-
const createResourceParams$
|
|
1159
|
-
function typeCheckConfig$
|
|
1157
|
+
const createCdpMlConfiguredModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, createCdpMlConfiguredModel_ConfigPropertyMetadata);
|
|
1158
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$d(createCdpMlConfiguredModel_ConfigPropertyMetadata);
|
|
1159
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
1160
1160
|
const config = {};
|
|
1161
|
-
typeCheckConfig$
|
|
1161
|
+
typeCheckConfig$d(untrustedConfig, config, createCdpMlConfiguredModel_ConfigPropertyMetadata);
|
|
1162
1162
|
const untrustedConfig_actionableFields = untrustedConfig.actionableFields;
|
|
1163
1163
|
if (ArrayIsArray$1(untrustedConfig_actionableFields)) {
|
|
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$z(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$y(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$z(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$x(untrustedConfig_parameterOverrides_item);
|
|
1218
1218
|
if (referenceCdpMlModelParameterOverrideInputRepresentationValidationError === null) {
|
|
1219
1219
|
untrustedConfig_parameterOverrides_array.push(untrustedConfig_parameterOverrides_item);
|
|
1220
1220
|
}
|
|
@@ -1223,6 +1223,458 @@ function typeCheckConfig$b(untrustedConfig) {
|
|
|
1223
1223
|
}
|
|
1224
1224
|
return config;
|
|
1225
1225
|
}
|
|
1226
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
1227
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1228
|
+
return null;
|
|
1229
|
+
}
|
|
1230
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1231
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1232
|
+
}
|
|
1233
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
1234
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1235
|
+
return null;
|
|
1236
|
+
}
|
|
1237
|
+
return config;
|
|
1238
|
+
}
|
|
1239
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
1240
|
+
const resourceParams = createResourceParams$c(config);
|
|
1241
|
+
const request = createResourceRequest$c(resourceParams);
|
|
1242
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1243
|
+
.then((response) => {
|
|
1244
|
+
return luvio.handleSuccessResponse(() => {
|
|
1245
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response);
|
|
1246
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1247
|
+
}, () => {
|
|
1248
|
+
const cache = new StoreKeyMap();
|
|
1249
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
|
|
1250
|
+
return cache;
|
|
1251
|
+
});
|
|
1252
|
+
}, (response) => {
|
|
1253
|
+
deepFreeze(response);
|
|
1254
|
+
throw response;
|
|
1255
|
+
});
|
|
1256
|
+
}
|
|
1257
|
+
const createCdpMlConfiguredModelAdapterFactory = (luvio) => {
|
|
1258
|
+
return function createCdpMlConfiguredModel(untrustedConfig) {
|
|
1259
|
+
const config = validateAdapterConfig$c(untrustedConfig, createCdpMlConfiguredModel_ConfigPropertyNames);
|
|
1260
|
+
// Invalid or incomplete config
|
|
1261
|
+
if (config === null) {
|
|
1262
|
+
throw new Error('Invalid config for "createCdpMlConfiguredModel"');
|
|
1263
|
+
}
|
|
1264
|
+
return buildNetworkSnapshot$c(luvio, config);
|
|
1265
|
+
};
|
|
1266
|
+
};
|
|
1267
|
+
|
|
1268
|
+
function validate$m(obj, path = 'CdpMlAggregatePredictConditionRepresentation') {
|
|
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.count !== undefined) {
|
|
1274
|
+
const obj_count = obj.count;
|
|
1275
|
+
const path_count = path + '.count';
|
|
1276
|
+
if (typeof obj_count !== 'number' || (typeof obj_count === 'number' && Math.floor(obj_count) !== obj_count)) {
|
|
1277
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_count + '" (at "' + path_count + '")');
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
})();
|
|
1281
|
+
return v_error === undefined ? null : v_error;
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
function validate$l(obj, path = 'CdpMlAggregatePredictionRepresentation') {
|
|
1285
|
+
const v_error = (() => {
|
|
1286
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1287
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1288
|
+
}
|
|
1289
|
+
if (obj.factors !== undefined) {
|
|
1290
|
+
const obj_factors = obj.factors;
|
|
1291
|
+
const path_factors = path + '.factors';
|
|
1292
|
+
if (!ArrayIsArray(obj_factors)) {
|
|
1293
|
+
return new TypeError('Expected "array" but received "' + typeof obj_factors + '" (at "' + path_factors + '")');
|
|
1294
|
+
}
|
|
1295
|
+
for (let i = 0; i < obj_factors.length; i++) {
|
|
1296
|
+
const obj_factors_item = obj_factors[i];
|
|
1297
|
+
const path_factors_item = path_factors + '[' + i + ']';
|
|
1298
|
+
const referencepath_factors_itemValidationError = validate$m(obj_factors_item, path_factors_item);
|
|
1299
|
+
if (referencepath_factors_itemValidationError !== null) {
|
|
1300
|
+
let message = 'Object doesn\'t match CdpMlAggregatePredictConditionRepresentation (at "' + path_factors_item + '")\n';
|
|
1301
|
+
message += referencepath_factors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1302
|
+
return new TypeError(message);
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
if (obj.prescriptions !== undefined) {
|
|
1307
|
+
const obj_prescriptions = obj.prescriptions;
|
|
1308
|
+
const path_prescriptions = path + '.prescriptions';
|
|
1309
|
+
if (!ArrayIsArray(obj_prescriptions)) {
|
|
1310
|
+
return new TypeError('Expected "array" but received "' + typeof obj_prescriptions + '" (at "' + path_prescriptions + '")');
|
|
1311
|
+
}
|
|
1312
|
+
for (let i = 0; i < obj_prescriptions.length; i++) {
|
|
1313
|
+
const obj_prescriptions_item = obj_prescriptions[i];
|
|
1314
|
+
const path_prescriptions_item = path_prescriptions + '[' + i + ']';
|
|
1315
|
+
const referencepath_prescriptions_itemValidationError = validate$m(obj_prescriptions_item, path_prescriptions_item);
|
|
1316
|
+
if (referencepath_prescriptions_itemValidationError !== null) {
|
|
1317
|
+
let message = 'Object doesn\'t match CdpMlAggregatePredictConditionRepresentation (at "' + path_prescriptions_item + '")\n';
|
|
1318
|
+
message += referencepath_prescriptions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1319
|
+
return new TypeError(message);
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
if (obj.status !== undefined) {
|
|
1324
|
+
const obj_status = obj.status;
|
|
1325
|
+
const path_status = path + '.status';
|
|
1326
|
+
let obj_status_union0 = null;
|
|
1327
|
+
const obj_status_union0_error = (() => {
|
|
1328
|
+
if (typeof obj_status !== 'string') {
|
|
1329
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
1330
|
+
}
|
|
1331
|
+
})();
|
|
1332
|
+
if (obj_status_union0_error != null) {
|
|
1333
|
+
obj_status_union0 = obj_status_union0_error.message;
|
|
1334
|
+
}
|
|
1335
|
+
let obj_status_union1 = null;
|
|
1336
|
+
const obj_status_union1_error = (() => {
|
|
1337
|
+
if (obj_status !== null) {
|
|
1338
|
+
return new TypeError('Expected "null" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
1339
|
+
}
|
|
1340
|
+
})();
|
|
1341
|
+
if (obj_status_union1_error != null) {
|
|
1342
|
+
obj_status_union1 = obj_status_union1_error.message;
|
|
1343
|
+
}
|
|
1344
|
+
if (obj_status_union0 && obj_status_union1) {
|
|
1345
|
+
let message = 'Object doesn\'t match union (at "' + path_status + '")';
|
|
1346
|
+
message += '\n' + obj_status_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1347
|
+
message += '\n' + obj_status_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1348
|
+
return new TypeError(message);
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
if (obj.type !== undefined) {
|
|
1352
|
+
const obj_type = obj.type;
|
|
1353
|
+
const path_type = path + '.type';
|
|
1354
|
+
let obj_type_union0 = null;
|
|
1355
|
+
const obj_type_union0_error = (() => {
|
|
1356
|
+
if (typeof obj_type !== 'string') {
|
|
1357
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
1358
|
+
}
|
|
1359
|
+
})();
|
|
1360
|
+
if (obj_type_union0_error != null) {
|
|
1361
|
+
obj_type_union0 = obj_type_union0_error.message;
|
|
1362
|
+
}
|
|
1363
|
+
let obj_type_union1 = null;
|
|
1364
|
+
const obj_type_union1_error = (() => {
|
|
1365
|
+
if (obj_type !== null) {
|
|
1366
|
+
return new TypeError('Expected "null" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
1367
|
+
}
|
|
1368
|
+
})();
|
|
1369
|
+
if (obj_type_union1_error != null) {
|
|
1370
|
+
obj_type_union1 = obj_type_union1_error.message;
|
|
1371
|
+
}
|
|
1372
|
+
if (obj_type_union0 && obj_type_union1) {
|
|
1373
|
+
let message = 'Object doesn\'t match union (at "' + path_type + '")';
|
|
1374
|
+
message += '\n' + obj_type_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1375
|
+
message += '\n' + obj_type_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1376
|
+
return new TypeError(message);
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
if (obj.value !== undefined) {
|
|
1380
|
+
obj.value;
|
|
1381
|
+
}
|
|
1382
|
+
})();
|
|
1383
|
+
return v_error === undefined ? null : v_error;
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
function validate$k(obj, path = 'CdpMlPredictionBaseRepresentation') {
|
|
1387
|
+
const v_error = (() => {
|
|
1388
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1389
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1390
|
+
}
|
|
1391
|
+
if (obj.status !== undefined) {
|
|
1392
|
+
const obj_status = obj.status;
|
|
1393
|
+
const path_status = path + '.status';
|
|
1394
|
+
let obj_status_union0 = null;
|
|
1395
|
+
const obj_status_union0_error = (() => {
|
|
1396
|
+
if (typeof obj_status !== 'string') {
|
|
1397
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
1398
|
+
}
|
|
1399
|
+
})();
|
|
1400
|
+
if (obj_status_union0_error != null) {
|
|
1401
|
+
obj_status_union0 = obj_status_union0_error.message;
|
|
1402
|
+
}
|
|
1403
|
+
let obj_status_union1 = null;
|
|
1404
|
+
const obj_status_union1_error = (() => {
|
|
1405
|
+
if (obj_status !== null) {
|
|
1406
|
+
return new TypeError('Expected "null" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
1407
|
+
}
|
|
1408
|
+
})();
|
|
1409
|
+
if (obj_status_union1_error != null) {
|
|
1410
|
+
obj_status_union1 = obj_status_union1_error.message;
|
|
1411
|
+
}
|
|
1412
|
+
if (obj_status_union0 && obj_status_union1) {
|
|
1413
|
+
let message = 'Object doesn\'t match union (at "' + path_status + '")';
|
|
1414
|
+
message += '\n' + obj_status_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1415
|
+
message += '\n' + obj_status_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1416
|
+
return new TypeError(message);
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
})();
|
|
1420
|
+
return v_error === undefined ? null : v_error;
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
function validate$j(obj, path = 'CdpMlPredictSettingsInputRepresentation') {
|
|
1424
|
+
const v_error = (() => {
|
|
1425
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1426
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1427
|
+
}
|
|
1428
|
+
if (obj.aggregateFunctions !== undefined) {
|
|
1429
|
+
const obj_aggregateFunctions = obj.aggregateFunctions;
|
|
1430
|
+
const path_aggregateFunctions = path + '.aggregateFunctions';
|
|
1431
|
+
if (!ArrayIsArray(obj_aggregateFunctions)) {
|
|
1432
|
+
return new TypeError('Expected "array" but received "' + typeof obj_aggregateFunctions + '" (at "' + path_aggregateFunctions + '")');
|
|
1433
|
+
}
|
|
1434
|
+
for (let i = 0; i < obj_aggregateFunctions.length; i++) {
|
|
1435
|
+
const obj_aggregateFunctions_item = obj_aggregateFunctions[i];
|
|
1436
|
+
const path_aggregateFunctions_item = path_aggregateFunctions + '[' + i + ']';
|
|
1437
|
+
let obj_aggregateFunctions_item_union0 = null;
|
|
1438
|
+
const obj_aggregateFunctions_item_union0_error = (() => {
|
|
1439
|
+
if (typeof obj_aggregateFunctions_item !== 'string') {
|
|
1440
|
+
return new TypeError('Expected "string" but received "' + typeof obj_aggregateFunctions_item + '" (at "' + path_aggregateFunctions_item + '")');
|
|
1441
|
+
}
|
|
1442
|
+
})();
|
|
1443
|
+
if (obj_aggregateFunctions_item_union0_error != null) {
|
|
1444
|
+
obj_aggregateFunctions_item_union0 = obj_aggregateFunctions_item_union0_error.message;
|
|
1445
|
+
}
|
|
1446
|
+
let obj_aggregateFunctions_item_union1 = null;
|
|
1447
|
+
const obj_aggregateFunctions_item_union1_error = (() => {
|
|
1448
|
+
if (obj_aggregateFunctions_item !== null) {
|
|
1449
|
+
return new TypeError('Expected "null" but received "' + typeof obj_aggregateFunctions_item + '" (at "' + path_aggregateFunctions_item + '")');
|
|
1450
|
+
}
|
|
1451
|
+
})();
|
|
1452
|
+
if (obj_aggregateFunctions_item_union1_error != null) {
|
|
1453
|
+
obj_aggregateFunctions_item_union1 = obj_aggregateFunctions_item_union1_error.message;
|
|
1454
|
+
}
|
|
1455
|
+
if (obj_aggregateFunctions_item_union0 && obj_aggregateFunctions_item_union1) {
|
|
1456
|
+
let message = 'Object doesn\'t match union (at "' + path_aggregateFunctions_item + '")';
|
|
1457
|
+
message += '\n' + obj_aggregateFunctions_item_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1458
|
+
message += '\n' + obj_aggregateFunctions_item_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1459
|
+
return new TypeError(message);
|
|
1460
|
+
}
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
if (obj.maxPrescriptions !== undefined) {
|
|
1464
|
+
const obj_maxPrescriptions = obj.maxPrescriptions;
|
|
1465
|
+
const path_maxPrescriptions = path + '.maxPrescriptions';
|
|
1466
|
+
if (typeof obj_maxPrescriptions !== 'number' || (typeof obj_maxPrescriptions === 'number' && Math.floor(obj_maxPrescriptions) !== obj_maxPrescriptions)) {
|
|
1467
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_maxPrescriptions + '" (at "' + path_maxPrescriptions + '")');
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
if (obj.maxTopFactors !== undefined) {
|
|
1471
|
+
const obj_maxTopFactors = obj.maxTopFactors;
|
|
1472
|
+
const path_maxTopFactors = path + '.maxTopFactors';
|
|
1473
|
+
if (typeof obj_maxTopFactors !== 'number' || (typeof obj_maxTopFactors === 'number' && Math.floor(obj_maxTopFactors) !== obj_maxTopFactors)) {
|
|
1474
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_maxTopFactors + '" (at "' + path_maxTopFactors + '")');
|
|
1475
|
+
}
|
|
1476
|
+
}
|
|
1477
|
+
if (obj.prescriptionImpactPercentage !== undefined) {
|
|
1478
|
+
const obj_prescriptionImpactPercentage = obj.prescriptionImpactPercentage;
|
|
1479
|
+
const path_prescriptionImpactPercentage = path + '.prescriptionImpactPercentage';
|
|
1480
|
+
if (typeof obj_prescriptionImpactPercentage !== 'number' || (typeof obj_prescriptionImpactPercentage === 'number' && Math.floor(obj_prescriptionImpactPercentage) !== obj_prescriptionImpactPercentage)) {
|
|
1481
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_prescriptionImpactPercentage + '" (at "' + path_prescriptionImpactPercentage + '")');
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
})();
|
|
1485
|
+
return v_error === undefined ? null : v_error;
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
const TTL$7 = 1000;
|
|
1489
|
+
const VERSION$7 = "53acf0a695382123e58156e703232cb5";
|
|
1490
|
+
function validate$i(obj, path = 'CdpMlPredictResultRepresentation') {
|
|
1491
|
+
const v_error = (() => {
|
|
1492
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1493
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1494
|
+
}
|
|
1495
|
+
if (obj.aggregatePredictions !== undefined) {
|
|
1496
|
+
const obj_aggregatePredictions = obj.aggregatePredictions;
|
|
1497
|
+
const path_aggregatePredictions = path + '.aggregatePredictions';
|
|
1498
|
+
if (!ArrayIsArray(obj_aggregatePredictions)) {
|
|
1499
|
+
return new TypeError('Expected "array" but received "' + typeof obj_aggregatePredictions + '" (at "' + path_aggregatePredictions + '")');
|
|
1500
|
+
}
|
|
1501
|
+
for (let i = 0; i < obj_aggregatePredictions.length; i++) {
|
|
1502
|
+
const obj_aggregatePredictions_item = obj_aggregatePredictions[i];
|
|
1503
|
+
const path_aggregatePredictions_item = path_aggregatePredictions + '[' + i + ']';
|
|
1504
|
+
const referencepath_aggregatePredictions_itemValidationError = validate$l(obj_aggregatePredictions_item, path_aggregatePredictions_item);
|
|
1505
|
+
if (referencepath_aggregatePredictions_itemValidationError !== null) {
|
|
1506
|
+
let message = 'Object doesn\'t match CdpMlAggregatePredictionRepresentation (at "' + path_aggregatePredictions_item + '")\n';
|
|
1507
|
+
message += referencepath_aggregatePredictions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1508
|
+
return new TypeError(message);
|
|
1509
|
+
}
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
const obj_model = obj.model;
|
|
1513
|
+
const path_model = path + '.model';
|
|
1514
|
+
const referencepath_modelValidationError = validate$p(obj_model, path_model);
|
|
1515
|
+
if (referencepath_modelValidationError !== null) {
|
|
1516
|
+
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_model + '")\n';
|
|
1517
|
+
message += referencepath_modelValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1518
|
+
return new TypeError(message);
|
|
1519
|
+
}
|
|
1520
|
+
const obj_predictionType = obj.predictionType;
|
|
1521
|
+
const path_predictionType = path + '.predictionType';
|
|
1522
|
+
if (typeof obj_predictionType !== 'string') {
|
|
1523
|
+
return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
|
|
1524
|
+
}
|
|
1525
|
+
if (obj.predictions !== undefined) {
|
|
1526
|
+
const obj_predictions = obj.predictions;
|
|
1527
|
+
const path_predictions = path + '.predictions';
|
|
1528
|
+
if (!ArrayIsArray(obj_predictions)) {
|
|
1529
|
+
return new TypeError('Expected "array" but received "' + typeof obj_predictions + '" (at "' + path_predictions + '")');
|
|
1530
|
+
}
|
|
1531
|
+
for (let i = 0; i < obj_predictions.length; i++) {
|
|
1532
|
+
const obj_predictions_item = obj_predictions[i];
|
|
1533
|
+
const path_predictions_item = path_predictions + '[' + i + ']';
|
|
1534
|
+
const referencepath_predictions_itemValidationError = validate$k(obj_predictions_item, path_predictions_item);
|
|
1535
|
+
if (referencepath_predictions_itemValidationError !== null) {
|
|
1536
|
+
let message = 'Object doesn\'t match CdpMlPredictionBaseRepresentation (at "' + path_predictions_item + '")\n';
|
|
1537
|
+
message += referencepath_predictions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1538
|
+
return new TypeError(message);
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
if (obj.settings !== undefined) {
|
|
1543
|
+
const obj_settings = obj.settings;
|
|
1544
|
+
const path_settings = path + '.settings';
|
|
1545
|
+
const referencepath_settingsValidationError = validate$j(obj_settings, path_settings);
|
|
1546
|
+
if (referencepath_settingsValidationError !== null) {
|
|
1547
|
+
let message = 'Object doesn\'t match CdpMlPredictSettingsInputRepresentation (at "' + path_settings + '")\n';
|
|
1548
|
+
message += referencepath_settingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1549
|
+
return new TypeError(message);
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
})();
|
|
1553
|
+
return v_error === undefined ? null : v_error;
|
|
1554
|
+
}
|
|
1555
|
+
const RepresentationType$7 = 'CdpMlPredictResultRepresentation';
|
|
1556
|
+
function keyBuilder$i(luvio, config) {
|
|
1557
|
+
return keyPrefix + '::' + RepresentationType$7 + ':' + config.predictionType;
|
|
1558
|
+
}
|
|
1559
|
+
function keyBuilderFromType$2(luvio, object) {
|
|
1560
|
+
const keyParams = {
|
|
1561
|
+
predictionType: object.predictionType
|
|
1562
|
+
};
|
|
1563
|
+
return keyBuilder$i(luvio, keyParams);
|
|
1564
|
+
}
|
|
1565
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
1566
|
+
return input;
|
|
1567
|
+
}
|
|
1568
|
+
const select$j = function CdpMlPredictResultRepresentationSelect() {
|
|
1569
|
+
return {
|
|
1570
|
+
kind: 'Fragment',
|
|
1571
|
+
version: VERSION$7,
|
|
1572
|
+
private: [],
|
|
1573
|
+
opaque: true
|
|
1574
|
+
};
|
|
1575
|
+
};
|
|
1576
|
+
function equals$7(existing, incoming) {
|
|
1577
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1578
|
+
return false;
|
|
1579
|
+
}
|
|
1580
|
+
return true;
|
|
1581
|
+
}
|
|
1582
|
+
const ingest$7 = function CdpMlPredictResultRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1583
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1584
|
+
const validateError = validate$i(input);
|
|
1585
|
+
if (validateError !== null) {
|
|
1586
|
+
throw validateError;
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1589
|
+
const key = keyBuilderFromType$2(luvio, input);
|
|
1590
|
+
const ttlToUse = TTL$7;
|
|
1591
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "cdp-machine-learning", VERSION$7, RepresentationType$7, equals$7);
|
|
1592
|
+
return createLink(key);
|
|
1593
|
+
};
|
|
1594
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
1595
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1596
|
+
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
1597
|
+
rootKeySet.set(rootKey, {
|
|
1598
|
+
namespace: keyPrefix,
|
|
1599
|
+
representationName: RepresentationType$7,
|
|
1600
|
+
mergeable: false
|
|
1601
|
+
});
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
function select$i(luvio, params) {
|
|
1605
|
+
return select$j();
|
|
1606
|
+
}
|
|
1607
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
1608
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
1609
|
+
}
|
|
1610
|
+
function ingestSuccess$b(luvio, resourceParams, response) {
|
|
1611
|
+
const { body } = response;
|
|
1612
|
+
const key = keyBuilderFromType$2(luvio, body);
|
|
1613
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
1614
|
+
const snapshot = luvio.storeLookup({
|
|
1615
|
+
recordId: key,
|
|
1616
|
+
node: select$i(),
|
|
1617
|
+
variables: {},
|
|
1618
|
+
});
|
|
1619
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1620
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1621
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1622
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
deepFreeze(snapshot.data);
|
|
1625
|
+
return snapshot;
|
|
1626
|
+
}
|
|
1627
|
+
function createResourceRequest$b(config) {
|
|
1628
|
+
const headers = {};
|
|
1629
|
+
return {
|
|
1630
|
+
baseUri: '/services/data/v62.0',
|
|
1631
|
+
basePath: '/ssot/machine-learning/predict',
|
|
1632
|
+
method: 'post',
|
|
1633
|
+
body: config.body,
|
|
1634
|
+
urlParams: {},
|
|
1635
|
+
queryParams: {},
|
|
1636
|
+
headers,
|
|
1637
|
+
priority: 'normal',
|
|
1638
|
+
};
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
const adapterName$b = 'createCdpMlPredictResult';
|
|
1642
|
+
const createCdpMlPredictResult_ConfigPropertyMetadata = [
|
|
1643
|
+
generateParamConfigMetadata('type', true, 2 /* Body */, 0 /* String */),
|
|
1644
|
+
generateParamConfigMetadata('model', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1645
|
+
generateParamConfigMetadata('fieldNames', true, 2 /* Body */, 0 /* String */, true),
|
|
1646
|
+
generateParamConfigMetadata('rows', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
1647
|
+
];
|
|
1648
|
+
const createCdpMlPredictResult_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, createCdpMlPredictResult_ConfigPropertyMetadata);
|
|
1649
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$d(createCdpMlPredictResult_ConfigPropertyMetadata);
|
|
1650
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
1651
|
+
const config = {};
|
|
1652
|
+
typeCheckConfig$d(untrustedConfig, config, createCdpMlPredictResult_ConfigPropertyMetadata);
|
|
1653
|
+
const untrustedConfig_model = untrustedConfig.model;
|
|
1654
|
+
const referenceCdpAssetReferenceInputRepresentationValidationError = validate$y(untrustedConfig_model);
|
|
1655
|
+
if (referenceCdpAssetReferenceInputRepresentationValidationError === null) {
|
|
1656
|
+
config.model = untrustedConfig_model;
|
|
1657
|
+
}
|
|
1658
|
+
const untrustedConfig_rows = untrustedConfig.rows;
|
|
1659
|
+
if (ArrayIsArray$1(untrustedConfig_rows)) {
|
|
1660
|
+
const untrustedConfig_rows_array = [];
|
|
1661
|
+
for (let i = 0, arrayLength = untrustedConfig_rows.length; i < arrayLength; i++) {
|
|
1662
|
+
const untrustedConfig_rows_item = untrustedConfig_rows[i];
|
|
1663
|
+
if (ArrayIsArray$1(untrustedConfig_rows_item)) {
|
|
1664
|
+
const untrustedConfig_rows_item_array = [];
|
|
1665
|
+
for (let i = 0, arrayLength = untrustedConfig_rows_item.length; i < arrayLength; i++) {
|
|
1666
|
+
const untrustedConfig_rows_item_item = untrustedConfig_rows_item[i];
|
|
1667
|
+
if (typeof untrustedConfig_rows_item_item === 'string') {
|
|
1668
|
+
untrustedConfig_rows_item_array.push(untrustedConfig_rows_item_item);
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1671
|
+
untrustedConfig_rows_array.push(untrustedConfig_rows_item_array);
|
|
1672
|
+
}
|
|
1673
|
+
}
|
|
1674
|
+
config.rows = untrustedConfig_rows_array;
|
|
1675
|
+
}
|
|
1676
|
+
return config;
|
|
1677
|
+
}
|
|
1226
1678
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
1227
1679
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1228
1680
|
return null;
|
|
@@ -1254,12 +1706,12 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
1254
1706
|
throw response;
|
|
1255
1707
|
});
|
|
1256
1708
|
}
|
|
1257
|
-
const
|
|
1258
|
-
return function
|
|
1259
|
-
const config = validateAdapterConfig$b(untrustedConfig,
|
|
1709
|
+
const createCdpMlPredictResultAdapterFactory = (luvio) => {
|
|
1710
|
+
return function createCdpMlPredictResult(untrustedConfig) {
|
|
1711
|
+
const config = validateAdapterConfig$b(untrustedConfig, createCdpMlPredictResult_ConfigPropertyNames);
|
|
1260
1712
|
// Invalid or incomplete config
|
|
1261
1713
|
if (config === null) {
|
|
1262
|
-
throw new Error('Invalid config for "
|
|
1714
|
+
throw new Error('Invalid config for "createCdpMlPredictResult"');
|
|
1263
1715
|
}
|
|
1264
1716
|
return buildNetworkSnapshot$b(luvio, config);
|
|
1265
1717
|
};
|
|
@@ -1296,7 +1748,7 @@ function validate$h(obj, path = 'MlConfiguredModelRepresentation') {
|
|
|
1296
1748
|
}
|
|
1297
1749
|
const obj_artifact = obj.artifact;
|
|
1298
1750
|
const path_artifact = path + '.artifact';
|
|
1299
|
-
const referencepath_artifactValidationError = validate$
|
|
1751
|
+
const referencepath_artifactValidationError = validate$p(obj_artifact, path_artifact);
|
|
1300
1752
|
if (referencepath_artifactValidationError !== null) {
|
|
1301
1753
|
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_artifact + '")\n';
|
|
1302
1754
|
message += referencepath_artifactValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1338,7 +1790,7 @@ function validate$h(obj, path = 'MlConfiguredModelRepresentation') {
|
|
|
1338
1790
|
if (obj.createdBy !== undefined) {
|
|
1339
1791
|
const obj_createdBy = obj.createdBy;
|
|
1340
1792
|
const path_createdBy = path + '.createdBy';
|
|
1341
|
-
const referencepath_createdByValidationError = validate$
|
|
1793
|
+
const referencepath_createdByValidationError = validate$q(obj_createdBy, path_createdBy);
|
|
1342
1794
|
if (referencepath_createdByValidationError !== null) {
|
|
1343
1795
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
1344
1796
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1418,7 +1870,7 @@ function validate$h(obj, path = 'MlConfiguredModelRepresentation') {
|
|
|
1418
1870
|
if (obj.lastActivatedBy !== undefined) {
|
|
1419
1871
|
const obj_lastActivatedBy = obj.lastActivatedBy;
|
|
1420
1872
|
const path_lastActivatedBy = path + '.lastActivatedBy';
|
|
1421
|
-
const referencepath_lastActivatedByValidationError = validate$
|
|
1873
|
+
const referencepath_lastActivatedByValidationError = validate$q(obj_lastActivatedBy, path_lastActivatedBy);
|
|
1422
1874
|
if (referencepath_lastActivatedByValidationError !== null) {
|
|
1423
1875
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastActivatedBy + '")\n';
|
|
1424
1876
|
message += referencepath_lastActivatedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1435,7 +1887,7 @@ function validate$h(obj, path = 'MlConfiguredModelRepresentation') {
|
|
|
1435
1887
|
if (obj.lastModifiedBy !== undefined) {
|
|
1436
1888
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
1437
1889
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
1438
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
1890
|
+
const referencepath_lastModifiedByValidationError = validate$q(obj_lastModifiedBy, path_lastModifiedBy);
|
|
1439
1891
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
1440
1892
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
1441
1893
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1519,7 +1971,7 @@ function validate$h(obj, path = 'MlConfiguredModelRepresentation') {
|
|
|
1519
1971
|
for (let i = 0; i < obj_parameterOverrides.length; i++) {
|
|
1520
1972
|
const obj_parameterOverrides_item = obj_parameterOverrides[i];
|
|
1521
1973
|
const path_parameterOverrides_item = path_parameterOverrides + '[' + i + ']';
|
|
1522
|
-
const referencepath_parameterOverrides_itemValidationError = validate$
|
|
1974
|
+
const referencepath_parameterOverrides_itemValidationError = validate$o(obj_parameterOverrides_item, path_parameterOverrides_item);
|
|
1523
1975
|
if (referencepath_parameterOverrides_itemValidationError !== null) {
|
|
1524
1976
|
let message = 'Object doesn\'t match CdpMlModelParameterOverrideBaseRepresentation (at "' + path_parameterOverrides_item + '")\n';
|
|
1525
1977
|
message += referencepath_parameterOverrides_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1646,12 +2098,12 @@ const createMlConfiguredModel_ConfigPropertyMetadata = [
|
|
|
1646
2098
|
generateParamConfigMetadata('status', false, 2 /* Body */, 0 /* String */),
|
|
1647
2099
|
];
|
|
1648
2100
|
const createMlConfiguredModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, createMlConfiguredModel_ConfigPropertyMetadata);
|
|
1649
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
2101
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$d(createMlConfiguredModel_ConfigPropertyMetadata);
|
|
1650
2102
|
function typeCheckConfig$a(untrustedConfig) {
|
|
1651
2103
|
const config = {};
|
|
1652
|
-
typeCheckConfig$
|
|
2104
|
+
typeCheckConfig$d(untrustedConfig, config, createMlConfiguredModel_ConfigPropertyMetadata);
|
|
1653
2105
|
const untrustedConfig_artifact = untrustedConfig.artifact;
|
|
1654
|
-
const referenceCdpAssetReferenceInputRepresentationValidationError = validate$
|
|
2106
|
+
const referenceCdpAssetReferenceInputRepresentationValidationError = validate$y(untrustedConfig_artifact);
|
|
1655
2107
|
if (referenceCdpAssetReferenceInputRepresentationValidationError === null) {
|
|
1656
2108
|
config.artifact = untrustedConfig_artifact;
|
|
1657
2109
|
}
|
|
@@ -1660,7 +2112,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
1660
2112
|
const untrustedConfig_parameterOverrides_array = [];
|
|
1661
2113
|
for (let i = 0, arrayLength = untrustedConfig_parameterOverrides.length; i < arrayLength; i++) {
|
|
1662
2114
|
const untrustedConfig_parameterOverrides_item = untrustedConfig_parameterOverrides[i];
|
|
1663
|
-
const referenceCdpMlModelParameterOverrideInputRepresentationValidationError = validate$
|
|
2115
|
+
const referenceCdpMlModelParameterOverrideInputRepresentationValidationError = validate$x(untrustedConfig_parameterOverrides_item);
|
|
1664
2116
|
if (referenceCdpMlModelParameterOverrideInputRepresentationValidationError === null) {
|
|
1665
2117
|
untrustedConfig_parameterOverrides_array.push(untrustedConfig_parameterOverrides_item);
|
|
1666
2118
|
}
|
|
@@ -1724,19 +2176,19 @@ function IsConfiguredModelId(configuredModelIdOrName) {
|
|
|
1724
2176
|
function keyBuilder$g(luvio, params) {
|
|
1725
2177
|
const modelIdOrName = params.urlParams.modelIdOrName;
|
|
1726
2178
|
const type = IsModelId(modelIdOrName) ? 'id' : 'name';
|
|
1727
|
-
return `${keyPrefix}::${RepresentationType$
|
|
2179
|
+
return `${keyPrefix}::${RepresentationType$8}:(id:${params.urlParams.modelIdOrName},type:${type})`;
|
|
1728
2180
|
}
|
|
1729
2181
|
|
|
1730
2182
|
function select$f(luvio, params) {
|
|
1731
|
-
return select$
|
|
2183
|
+
return select$l();
|
|
1732
2184
|
}
|
|
1733
2185
|
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
1734
|
-
getTypeCacheKeys$
|
|
2186
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
1735
2187
|
}
|
|
1736
2188
|
function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
1737
2189
|
const { body } = response;
|
|
1738
2190
|
const key = keyBuilder$g(luvio, resourceParams);
|
|
1739
|
-
luvio.storeIngest(key, ingest$
|
|
2191
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
1740
2192
|
const snapshot = luvio.storeLookup({
|
|
1741
2193
|
recordId: key,
|
|
1742
2194
|
node: select$f(),
|
|
@@ -1754,10 +2206,10 @@ function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
|
1754
2206
|
const key = keyBuilder$g(luvio, params);
|
|
1755
2207
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1756
2208
|
const storeMetadataParams = {
|
|
1757
|
-
ttl: TTL$
|
|
2209
|
+
ttl: TTL$8,
|
|
1758
2210
|
namespace: keyPrefix,
|
|
1759
|
-
version: VERSION$
|
|
1760
|
-
representationName: RepresentationType$
|
|
2211
|
+
version: VERSION$8,
|
|
2212
|
+
representationName: RepresentationType$8
|
|
1761
2213
|
};
|
|
1762
2214
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1763
2215
|
return errorSnapshot;
|
|
@@ -1782,14 +2234,14 @@ const getCdpMlConfiguredModel_ConfigPropertyMetadata = [
|
|
|
1782
2234
|
generateParamConfigMetadata('workspaceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1783
2235
|
];
|
|
1784
2236
|
const getCdpMlConfiguredModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getCdpMlConfiguredModel_ConfigPropertyMetadata);
|
|
1785
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
2237
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$d(getCdpMlConfiguredModel_ConfigPropertyMetadata);
|
|
1786
2238
|
function keyBuilder$f(luvio, config) {
|
|
1787
2239
|
const resourceParams = createResourceParams$9(config);
|
|
1788
2240
|
return keyBuilder$g(luvio, resourceParams);
|
|
1789
2241
|
}
|
|
1790
2242
|
function typeCheckConfig$9(untrustedConfig) {
|
|
1791
2243
|
const config = {};
|
|
1792
|
-
typeCheckConfig$
|
|
2244
|
+
typeCheckConfig$d(untrustedConfig, config, getCdpMlConfiguredModel_ConfigPropertyMetadata);
|
|
1793
2245
|
return config;
|
|
1794
2246
|
}
|
|
1795
2247
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -1879,7 +2331,7 @@ function validate$g(obj, path = 'CdpMlConfiguredModelCollectionRepresentation')
|
|
|
1879
2331
|
for (let i = 0; i < obj_models.length; i++) {
|
|
1880
2332
|
const obj_models_item = obj_models[i];
|
|
1881
2333
|
const path_models_item = path_models + '[' + i + ']';
|
|
1882
|
-
const referencepath_models_itemValidationError = validate$
|
|
2334
|
+
const referencepath_models_itemValidationError = validate$n(obj_models_item, path_models_item);
|
|
1883
2335
|
if (referencepath_models_itemValidationError !== null) {
|
|
1884
2336
|
let message = 'Object doesn\'t match CdpMlConfiguredModelRepresentation (at "' + path_models_item + '")\n';
|
|
1885
2337
|
message += referencepath_models_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1998,14 +2450,14 @@ const getCdpMlConfiguredModelCollection_ConfigPropertyMetadata = [
|
|
|
1998
2450
|
generateParamConfigMetadata('capabilities', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
1999
2451
|
];
|
|
2000
2452
|
const getCdpMlConfiguredModelCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getCdpMlConfiguredModelCollection_ConfigPropertyMetadata);
|
|
2001
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
2453
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$d(getCdpMlConfiguredModelCollection_ConfigPropertyMetadata);
|
|
2002
2454
|
function keyBuilder$d(luvio, config) {
|
|
2003
2455
|
const resourceParams = createResourceParams$8(config);
|
|
2004
2456
|
return keyBuilder$e(luvio, resourceParams);
|
|
2005
2457
|
}
|
|
2006
2458
|
function typeCheckConfig$8(untrustedConfig) {
|
|
2007
2459
|
const config = {};
|
|
2008
|
-
typeCheckConfig$
|
|
2460
|
+
typeCheckConfig$d(untrustedConfig, config, getCdpMlConfiguredModelCollection_ConfigPropertyMetadata);
|
|
2009
2461
|
return config;
|
|
2010
2462
|
}
|
|
2011
2463
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -2136,7 +2588,7 @@ function validate$f(obj, path = 'MlConnectorEndpointRepresentation') {
|
|
|
2136
2588
|
if (obj.namedCredential !== undefined) {
|
|
2137
2589
|
const obj_namedCredential = obj.namedCredential;
|
|
2138
2590
|
const path_namedCredential = path + '.namedCredential';
|
|
2139
|
-
const referencepath_namedCredentialValidationError = validate$
|
|
2591
|
+
const referencepath_namedCredentialValidationError = validate$p(obj_namedCredential, path_namedCredential);
|
|
2140
2592
|
if (referencepath_namedCredentialValidationError !== null) {
|
|
2141
2593
|
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_namedCredential + '")\n';
|
|
2142
2594
|
message += referencepath_namedCredentialValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2242,7 +2694,7 @@ function validate$c(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
2242
2694
|
if (obj.createdBy !== undefined) {
|
|
2243
2695
|
const obj_createdBy = obj.createdBy;
|
|
2244
2696
|
const path_createdBy = path + '.createdBy';
|
|
2245
|
-
const referencepath_createdByValidationError = validate$
|
|
2697
|
+
const referencepath_createdByValidationError = validate$q(obj_createdBy, path_createdBy);
|
|
2246
2698
|
if (referencepath_createdByValidationError !== null) {
|
|
2247
2699
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
2248
2700
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2320,7 +2772,7 @@ function validate$c(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
2320
2772
|
for (let i = 0; i < obj_inputFields.length; i++) {
|
|
2321
2773
|
const obj_inputFields_item = obj_inputFields[i];
|
|
2322
2774
|
const path_inputFields_item = path_inputFields + '[' + i + ']';
|
|
2323
|
-
const referencepath_inputFields_itemValidationError = validate$
|
|
2775
|
+
const referencepath_inputFields_itemValidationError = validate$s(obj_inputFields_item, path_inputFields_item);
|
|
2324
2776
|
if (referencepath_inputFields_itemValidationError !== null) {
|
|
2325
2777
|
let message = 'Object doesn\'t match CdpMlModelInputFieldBaseRepresentation (at "' + path_inputFields_item + '")\n';
|
|
2326
2778
|
message += referencepath_inputFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2358,7 +2810,7 @@ function validate$c(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
2358
2810
|
if (obj.lastModifiedBy !== undefined) {
|
|
2359
2811
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
2360
2812
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
2361
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
2813
|
+
const referencepath_lastModifiedByValidationError = validate$q(obj_lastModifiedBy, path_lastModifiedBy);
|
|
2362
2814
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
2363
2815
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
2364
2816
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2486,7 +2938,7 @@ function validate$c(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
2486
2938
|
if (obj.setupContainer !== undefined) {
|
|
2487
2939
|
const obj_setupContainer = obj.setupContainer;
|
|
2488
2940
|
const path_setupContainer = path + '.setupContainer';
|
|
2489
|
-
const referencepath_setupContainerValidationError = validate$
|
|
2941
|
+
const referencepath_setupContainerValidationError = validate$p(obj_setupContainer, path_setupContainer);
|
|
2490
2942
|
if (referencepath_setupContainerValidationError !== null) {
|
|
2491
2943
|
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_setupContainer + '")\n';
|
|
2492
2944
|
message += referencepath_setupContainerValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2496,7 +2948,7 @@ function validate$c(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
2496
2948
|
if (obj.source !== undefined) {
|
|
2497
2949
|
const obj_source = obj.source;
|
|
2498
2950
|
const path_source = path + '.source';
|
|
2499
|
-
const referencepath_sourceValidationError = validate$
|
|
2951
|
+
const referencepath_sourceValidationError = validate$p(obj_source, path_source);
|
|
2500
2952
|
if (referencepath_sourceValidationError !== null) {
|
|
2501
2953
|
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_source + '")\n';
|
|
2502
2954
|
message += referencepath_sourceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2506,7 +2958,7 @@ function validate$c(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
2506
2958
|
if (obj.sourceContainer !== undefined) {
|
|
2507
2959
|
const obj_sourceContainer = obj.sourceContainer;
|
|
2508
2960
|
const path_sourceContainer = path + '.sourceContainer';
|
|
2509
|
-
const referencepath_sourceContainerValidationError = validate$
|
|
2961
|
+
const referencepath_sourceContainerValidationError = validate$p(obj_sourceContainer, path_sourceContainer);
|
|
2510
2962
|
if (referencepath_sourceContainerValidationError !== null) {
|
|
2511
2963
|
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_sourceContainer + '")\n';
|
|
2512
2964
|
message += referencepath_sourceContainerValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2637,14 +3089,14 @@ const getCdpMlModelArtifact_ConfigPropertyMetadata = [
|
|
|
2637
3089
|
generateParamConfigMetadata('modelArtifactIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2638
3090
|
];
|
|
2639
3091
|
const getCdpMlModelArtifact_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getCdpMlModelArtifact_ConfigPropertyMetadata);
|
|
2640
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
3092
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$d(getCdpMlModelArtifact_ConfigPropertyMetadata);
|
|
2641
3093
|
function keyBuilder$b(luvio, config) {
|
|
2642
3094
|
const resourceParams = createResourceParams$7(config);
|
|
2643
3095
|
return keyBuilder$c(luvio, resourceParams);
|
|
2644
3096
|
}
|
|
2645
3097
|
function typeCheckConfig$7(untrustedConfig) {
|
|
2646
3098
|
const config = {};
|
|
2647
|
-
typeCheckConfig$
|
|
3099
|
+
typeCheckConfig$d(untrustedConfig, config, getCdpMlModelArtifact_ConfigPropertyMetadata);
|
|
2648
3100
|
return config;
|
|
2649
3101
|
}
|
|
2650
3102
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -2879,14 +3331,14 @@ const getCdpMlModelArtifactCollection_ConfigPropertyMetadata = [
|
|
|
2879
3331
|
generateParamConfigMetadata('sourceType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2880
3332
|
];
|
|
2881
3333
|
const getCdpMlModelArtifactCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getCdpMlModelArtifactCollection_ConfigPropertyMetadata);
|
|
2882
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
3334
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$d(getCdpMlModelArtifactCollection_ConfigPropertyMetadata);
|
|
2883
3335
|
function keyBuilder$9(luvio, config) {
|
|
2884
3336
|
const resourceParams = createResourceParams$6(config);
|
|
2885
3337
|
return keyBuilder$a(luvio, resourceParams);
|
|
2886
3338
|
}
|
|
2887
3339
|
function typeCheckConfig$6(untrustedConfig) {
|
|
2888
3340
|
const config = {};
|
|
2889
|
-
typeCheckConfig$
|
|
3341
|
+
typeCheckConfig$d(untrustedConfig, config, getCdpMlModelArtifactCollection_ConfigPropertyMetadata);
|
|
2890
3342
|
return config;
|
|
2891
3343
|
}
|
|
2892
3344
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -3247,7 +3699,7 @@ function validate$3(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
3247
3699
|
if (obj.activeSetup !== undefined) {
|
|
3248
3700
|
const obj_activeSetup = obj.activeSetup;
|
|
3249
3701
|
const path_activeSetup = path + '.activeSetup';
|
|
3250
|
-
const referencepath_activeSetupValidationError = validate$
|
|
3702
|
+
const referencepath_activeSetupValidationError = validate$p(obj_activeSetup, path_activeSetup);
|
|
3251
3703
|
if (referencepath_activeSetupValidationError !== null) {
|
|
3252
3704
|
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_activeSetup + '")\n';
|
|
3253
3705
|
message += referencepath_activeSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3285,7 +3737,7 @@ function validate$3(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
3285
3737
|
if (obj.createdBy !== undefined) {
|
|
3286
3738
|
const obj_createdBy = obj.createdBy;
|
|
3287
3739
|
const path_createdBy = path + '.createdBy';
|
|
3288
|
-
const referencepath_createdByValidationError = validate$
|
|
3740
|
+
const referencepath_createdByValidationError = validate$q(obj_createdBy, path_createdBy);
|
|
3289
3741
|
if (referencepath_createdByValidationError !== null) {
|
|
3290
3742
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
3291
3743
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3414,7 +3866,7 @@ function validate$3(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
3414
3866
|
if (obj.lastModifiedBy !== undefined) {
|
|
3415
3867
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
3416
3868
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
3417
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
3869
|
+
const referencepath_lastModifiedByValidationError = validate$q(obj_lastModifiedBy, path_lastModifiedBy);
|
|
3418
3870
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
3419
3871
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
3420
3872
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3452,7 +3904,7 @@ function validate$3(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
3452
3904
|
if (obj.latestSetup !== undefined) {
|
|
3453
3905
|
const obj_latestSetup = obj.latestSetup;
|
|
3454
3906
|
const path_latestSetup = path + '.latestSetup';
|
|
3455
|
-
const referencepath_latestSetupValidationError = validate$
|
|
3907
|
+
const referencepath_latestSetupValidationError = validate$p(obj_latestSetup, path_latestSetup);
|
|
3456
3908
|
if (referencepath_latestSetupValidationError !== null) {
|
|
3457
3909
|
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_latestSetup + '")\n';
|
|
3458
3910
|
message += referencepath_latestSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3790,14 +4242,14 @@ const getCdpMlWorkspace_ConfigPropertyMetadata = [
|
|
|
3790
4242
|
generateParamConfigMetadata('workspaceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3791
4243
|
];
|
|
3792
4244
|
const getCdpMlWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getCdpMlWorkspace_ConfigPropertyMetadata);
|
|
3793
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
4245
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$d(getCdpMlWorkspace_ConfigPropertyMetadata);
|
|
3794
4246
|
function keyBuilder$6(luvio, config) {
|
|
3795
4247
|
const resourceParams = createResourceParams$5(config);
|
|
3796
4248
|
return keyBuilder$7(luvio, resourceParams);
|
|
3797
4249
|
}
|
|
3798
4250
|
function typeCheckConfig$5(untrustedConfig) {
|
|
3799
4251
|
const config = {};
|
|
3800
|
-
typeCheckConfig$
|
|
4252
|
+
typeCheckConfig$d(untrustedConfig, config, getCdpMlWorkspace_ConfigPropertyMetadata);
|
|
3801
4253
|
return config;
|
|
3802
4254
|
}
|
|
3803
4255
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -3913,7 +4365,7 @@ function validate$2(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
3913
4365
|
if (obj.activeSetup !== undefined) {
|
|
3914
4366
|
const obj_activeSetup = obj.activeSetup;
|
|
3915
4367
|
const path_activeSetup = path + '.activeSetup';
|
|
3916
|
-
const referencepath_activeSetupValidationError = validate$
|
|
4368
|
+
const referencepath_activeSetupValidationError = validate$p(obj_activeSetup, path_activeSetup);
|
|
3917
4369
|
if (referencepath_activeSetupValidationError !== null) {
|
|
3918
4370
|
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_activeSetup + '")\n';
|
|
3919
4371
|
message += referencepath_activeSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3951,7 +4403,7 @@ function validate$2(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
3951
4403
|
if (obj.createdBy !== undefined) {
|
|
3952
4404
|
const obj_createdBy = obj.createdBy;
|
|
3953
4405
|
const path_createdBy = path + '.createdBy';
|
|
3954
|
-
const referencepath_createdByValidationError = validate$
|
|
4406
|
+
const referencepath_createdByValidationError = validate$q(obj_createdBy, path_createdBy);
|
|
3955
4407
|
if (referencepath_createdByValidationError !== null) {
|
|
3956
4408
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
3957
4409
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4080,7 +4532,7 @@ function validate$2(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
4080
4532
|
if (obj.lastModifiedBy !== undefined) {
|
|
4081
4533
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
4082
4534
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
4083
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
4535
|
+
const referencepath_lastModifiedByValidationError = validate$q(obj_lastModifiedBy, path_lastModifiedBy);
|
|
4084
4536
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
4085
4537
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
4086
4538
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4118,7 +4570,7 @@ function validate$2(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
4118
4570
|
if (obj.latestSetup !== undefined) {
|
|
4119
4571
|
const obj_latestSetup = obj.latestSetup;
|
|
4120
4572
|
const path_latestSetup = path + '.latestSetup';
|
|
4121
|
-
const referencepath_latestSetupValidationError = validate$
|
|
4573
|
+
const referencepath_latestSetupValidationError = validate$p(obj_latestSetup, path_latestSetup);
|
|
4122
4574
|
if (referencepath_latestSetupValidationError !== null) {
|
|
4123
4575
|
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_latestSetup + '")\n';
|
|
4124
4576
|
message += referencepath_latestSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4511,14 +4963,14 @@ const getCdpMlWorkspaceCollection_ConfigPropertyMetadata = [
|
|
|
4511
4963
|
generateParamConfigMetadata('status', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4512
4964
|
];
|
|
4513
4965
|
const getCdpMlWorkspaceCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getCdpMlWorkspaceCollection_ConfigPropertyMetadata);
|
|
4514
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
4966
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$d(getCdpMlWorkspaceCollection_ConfigPropertyMetadata);
|
|
4515
4967
|
function keyBuilder$4(luvio, config) {
|
|
4516
4968
|
const resourceParams = createResourceParams$4(config);
|
|
4517
4969
|
return keyBuilder$5(luvio, resourceParams);
|
|
4518
4970
|
}
|
|
4519
4971
|
function typeCheckConfig$4(untrustedConfig) {
|
|
4520
4972
|
const config = {};
|
|
4521
|
-
typeCheckConfig$
|
|
4973
|
+
typeCheckConfig$d(untrustedConfig, config, getCdpMlWorkspaceCollection_ConfigPropertyMetadata);
|
|
4522
4974
|
return config;
|
|
4523
4975
|
}
|
|
4524
4976
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -4661,14 +5113,14 @@ const getMlConfiguredModel_ConfigPropertyMetadata = [
|
|
|
4661
5113
|
generateParamConfigMetadata('filterGroup', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4662
5114
|
];
|
|
4663
5115
|
const getMlConfiguredModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getMlConfiguredModel_ConfigPropertyMetadata);
|
|
4664
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
5116
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$d(getMlConfiguredModel_ConfigPropertyMetadata);
|
|
4665
5117
|
function keyBuilder$2(luvio, config) {
|
|
4666
5118
|
const resourceParams = createResourceParams$3(config);
|
|
4667
5119
|
return keyBuilder$3(luvio, resourceParams);
|
|
4668
5120
|
}
|
|
4669
5121
|
function typeCheckConfig$3(untrustedConfig) {
|
|
4670
5122
|
const config = {};
|
|
4671
|
-
typeCheckConfig$
|
|
5123
|
+
typeCheckConfig$d(untrustedConfig, config, getMlConfiguredModel_ConfigPropertyMetadata);
|
|
4672
5124
|
return config;
|
|
4673
5125
|
}
|
|
4674
5126
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -4949,14 +5401,14 @@ const getMlConfiguredModelCollection_ConfigPropertyMetadata = [
|
|
|
4949
5401
|
generateParamConfigMetadata('sourceType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4950
5402
|
];
|
|
4951
5403
|
const getMlConfiguredModelCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getMlConfiguredModelCollection_ConfigPropertyMetadata);
|
|
4952
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
5404
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$d(getMlConfiguredModelCollection_ConfigPropertyMetadata);
|
|
4953
5405
|
function keyBuilder(luvio, config) {
|
|
4954
5406
|
const resourceParams = createResourceParams$2(config);
|
|
4955
5407
|
return keyBuilder$1(luvio, resourceParams);
|
|
4956
5408
|
}
|
|
4957
5409
|
function typeCheckConfig$2(untrustedConfig) {
|
|
4958
5410
|
const config = {};
|
|
4959
|
-
typeCheckConfig$
|
|
5411
|
+
typeCheckConfig$d(untrustedConfig, config, getMlConfiguredModelCollection_ConfigPropertyMetadata);
|
|
4960
5412
|
return config;
|
|
4961
5413
|
}
|
|
4962
5414
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -5031,15 +5483,15 @@ const getMlConfiguredModelCollectionAdapterFactory = (luvio) => function cdpMach
|
|
|
5031
5483
|
};
|
|
5032
5484
|
|
|
5033
5485
|
function select$1(luvio, params) {
|
|
5034
|
-
return select$
|
|
5486
|
+
return select$l();
|
|
5035
5487
|
}
|
|
5036
5488
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
5037
|
-
getTypeCacheKeys$
|
|
5489
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
5038
5490
|
}
|
|
5039
5491
|
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
5040
5492
|
const { body } = response;
|
|
5041
|
-
const key = keyBuilderFromType$
|
|
5042
|
-
luvio.storeIngest(key, ingest$
|
|
5493
|
+
const key = keyBuilderFromType$3(luvio, body);
|
|
5494
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
5043
5495
|
const snapshot = luvio.storeLookup({
|
|
5044
5496
|
recordId: key,
|
|
5045
5497
|
node: select$1(),
|
|
@@ -5083,16 +5535,16 @@ const updateCdpMlConfiguredModel_ConfigPropertyMetadata = [
|
|
|
5083
5535
|
generateParamConfigMetadata('status', false, 2 /* Body */, 0 /* String */),
|
|
5084
5536
|
];
|
|
5085
5537
|
const updateCdpMlConfiguredModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, updateCdpMlConfiguredModel_ConfigPropertyMetadata);
|
|
5086
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
5538
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$d(updateCdpMlConfiguredModel_ConfigPropertyMetadata);
|
|
5087
5539
|
function typeCheckConfig$1(untrustedConfig) {
|
|
5088
5540
|
const config = {};
|
|
5089
|
-
typeCheckConfig$
|
|
5541
|
+
typeCheckConfig$d(untrustedConfig, config, updateCdpMlConfiguredModel_ConfigPropertyMetadata);
|
|
5090
5542
|
const untrustedConfig_actionableFields = untrustedConfig.actionableFields;
|
|
5091
5543
|
if (ArrayIsArray$1(untrustedConfig_actionableFields)) {
|
|
5092
5544
|
const untrustedConfig_actionableFields_array = [];
|
|
5093
5545
|
for (let i = 0, arrayLength = untrustedConfig_actionableFields.length; i < arrayLength; i++) {
|
|
5094
5546
|
const untrustedConfig_actionableFields_item = untrustedConfig_actionableFields[i];
|
|
5095
|
-
const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$
|
|
5547
|
+
const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$z(untrustedConfig_actionableFields_item);
|
|
5096
5548
|
if (referenceCdpMlCustomizableFieldInputRepresentationValidationError === null) {
|
|
5097
5549
|
untrustedConfig_actionableFields_array.push(untrustedConfig_actionableFields_item);
|
|
5098
5550
|
}
|
|
@@ -5100,7 +5552,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
5100
5552
|
config.actionableFields = untrustedConfig_actionableFields_array;
|
|
5101
5553
|
}
|
|
5102
5554
|
const untrustedConfig_artifact = untrustedConfig.artifact;
|
|
5103
|
-
const referenceCdpAssetReferenceInputRepresentationValidationError = validate$
|
|
5555
|
+
const referenceCdpAssetReferenceInputRepresentationValidationError = validate$y(untrustedConfig_artifact);
|
|
5104
5556
|
if (referenceCdpAssetReferenceInputRepresentationValidationError === null) {
|
|
5105
5557
|
config.artifact = untrustedConfig_artifact;
|
|
5106
5558
|
}
|
|
@@ -5109,7 +5561,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
5109
5561
|
const untrustedConfig_customizableFields_array = [];
|
|
5110
5562
|
for (let i = 0, arrayLength = untrustedConfig_customizableFields.length; i < arrayLength; i++) {
|
|
5111
5563
|
const untrustedConfig_customizableFields_item = untrustedConfig_customizableFields[i];
|
|
5112
|
-
const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$
|
|
5564
|
+
const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$z(untrustedConfig_customizableFields_item);
|
|
5113
5565
|
if (referenceCdpMlCustomizableFieldInputRepresentationValidationError === null) {
|
|
5114
5566
|
untrustedConfig_customizableFields_array.push(untrustedConfig_customizableFields_item);
|
|
5115
5567
|
}
|
|
@@ -5142,7 +5594,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
5142
5594
|
const untrustedConfig_parameterOverrides_array = [];
|
|
5143
5595
|
for (let i = 0, arrayLength = untrustedConfig_parameterOverrides.length; i < arrayLength; i++) {
|
|
5144
5596
|
const untrustedConfig_parameterOverrides_item = untrustedConfig_parameterOverrides[i];
|
|
5145
|
-
const referenceCdpMlModelParameterOverrideInputRepresentationValidationError = validate$
|
|
5597
|
+
const referenceCdpMlModelParameterOverrideInputRepresentationValidationError = validate$x(untrustedConfig_parameterOverrides_item);
|
|
5146
5598
|
if (referenceCdpMlModelParameterOverrideInputRepresentationValidationError === null) {
|
|
5147
5599
|
untrustedConfig_parameterOverrides_array.push(untrustedConfig_parameterOverrides_item);
|
|
5148
5600
|
}
|
|
@@ -5241,12 +5693,12 @@ const updateMlConfiguredModel_ConfigPropertyMetadata = [
|
|
|
5241
5693
|
generateParamConfigMetadata('status', false, 2 /* Body */, 0 /* String */),
|
|
5242
5694
|
];
|
|
5243
5695
|
const updateMlConfiguredModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateMlConfiguredModel_ConfigPropertyMetadata);
|
|
5244
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
5696
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$d(updateMlConfiguredModel_ConfigPropertyMetadata);
|
|
5245
5697
|
function typeCheckConfig(untrustedConfig) {
|
|
5246
5698
|
const config = {};
|
|
5247
|
-
typeCheckConfig$
|
|
5699
|
+
typeCheckConfig$d(untrustedConfig, config, updateMlConfiguredModel_ConfigPropertyMetadata);
|
|
5248
5700
|
const untrustedConfig_artifact = untrustedConfig.artifact;
|
|
5249
|
-
const referenceCdpAssetReferenceInputRepresentationValidationError = validate$
|
|
5701
|
+
const referenceCdpAssetReferenceInputRepresentationValidationError = validate$y(untrustedConfig_artifact);
|
|
5250
5702
|
if (referenceCdpAssetReferenceInputRepresentationValidationError === null) {
|
|
5251
5703
|
config.artifact = untrustedConfig_artifact;
|
|
5252
5704
|
}
|
|
@@ -5255,7 +5707,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
5255
5707
|
const untrustedConfig_parameterOverrides_array = [];
|
|
5256
5708
|
for (let i = 0, arrayLength = untrustedConfig_parameterOverrides.length; i < arrayLength; i++) {
|
|
5257
5709
|
const untrustedConfig_parameterOverrides_item = untrustedConfig_parameterOverrides[i];
|
|
5258
|
-
const referenceCdpMlModelParameterOverrideInputRepresentationValidationError = validate$
|
|
5710
|
+
const referenceCdpMlModelParameterOverrideInputRepresentationValidationError = validate$x(untrustedConfig_parameterOverrides_item);
|
|
5259
5711
|
if (referenceCdpMlModelParameterOverrideInputRepresentationValidationError === null) {
|
|
5260
5712
|
untrustedConfig_parameterOverrides_array.push(untrustedConfig_parameterOverrides_item);
|
|
5261
5713
|
}
|
|
@@ -5307,6 +5759,7 @@ const updateMlConfiguredModelAdapterFactory = (luvio) => {
|
|
|
5307
5759
|
};
|
|
5308
5760
|
|
|
5309
5761
|
let createCdpMlConfiguredModel;
|
|
5762
|
+
let createCdpMlPredictResult;
|
|
5310
5763
|
let createMlConfiguredModel;
|
|
5311
5764
|
let getCdpMlConfiguredModel;
|
|
5312
5765
|
let getCdpMlConfiguredModelCollection;
|
|
@@ -5386,6 +5839,7 @@ function bindExportsTo(luvio) {
|
|
|
5386
5839
|
}
|
|
5387
5840
|
return {
|
|
5388
5841
|
createCdpMlConfiguredModel: unwrapSnapshotData(createCdpMlConfiguredModelAdapterFactory),
|
|
5842
|
+
createCdpMlPredictResult: unwrapSnapshotData(createCdpMlPredictResultAdapterFactory),
|
|
5389
5843
|
createMlConfiguredModel: unwrapSnapshotData(createMlConfiguredModelAdapterFactory),
|
|
5390
5844
|
getCdpMlConfiguredModel: createWireAdapterConstructor(luvio, getCdpMlConfiguredModel_ldsAdapter, getCdpMlConfiguredModelMetadata),
|
|
5391
5845
|
getCdpMlConfiguredModelCollection: createWireAdapterConstructor(luvio, getCdpMlConfiguredModelCollection_ldsAdapter, getCdpMlConfiguredModelCollectionMetadata),
|
|
@@ -5414,6 +5868,7 @@ function bindExportsTo(luvio) {
|
|
|
5414
5868
|
withDefaultLuvio((luvio) => {
|
|
5415
5869
|
({
|
|
5416
5870
|
createCdpMlConfiguredModel,
|
|
5871
|
+
createCdpMlPredictResult,
|
|
5417
5872
|
createMlConfiguredModel,
|
|
5418
5873
|
getCdpMlConfiguredModel,
|
|
5419
5874
|
getCdpMlConfiguredModelCollection,
|
|
@@ -5438,5 +5893,5 @@ withDefaultLuvio((luvio) => {
|
|
|
5438
5893
|
} = bindExportsTo(luvio));
|
|
5439
5894
|
});
|
|
5440
5895
|
|
|
5441
|
-
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.
|
|
5896
|
+
export { createCdpMlConfiguredModel, createCdpMlPredictResult, 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 };
|
|
5897
|
+
// version: 1.311.0-5f03b383b7
|