@salesforce/lds-adapters-platform-cdp-machine-learning 1.269.0 → 1.270.1
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 +500 -374
- package/dist/es/es2018/types/src/generated/adapters/createCdpMlConfiguredModelCollection.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/adapters/getCdpMlConfiguredModel.d.ts +5 -5
- package/dist/es/es2018/types/src/generated/adapters/updateCdpMlConfiguredModel.d.ts +7 -7
- package/dist/es/es2018/types/src/generated/resources/{getSsotMachineLearningWorkspacesModelsByModelIdAndWorkspaceIdOrName.d.ts → getSsotMachineLearningWorkspacesModelsByModelIdOrNameAndWorkspaceIdOrName.d.ts} +1 -1
- package/dist/es/es2018/types/src/generated/resources/{patchSsotMachineLearningWorkspacesModelsByModelIdAndWorkspaceIdOrName.d.ts → patchSsotMachineLearningWorkspacesModelsByModelIdOrNameAndWorkspaceIdOrName.d.ts} +5 -5
- package/dist/es/es2018/types/src/generated/resources/postSsotMachineLearningWorkspacesModelsByWorkspaceIdOrName.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/types/CdpAssetBaseRepresentation.d.ts +11 -11
- package/dist/es/es2018/types/src/generated/types/CdpAssetReferenceRepresentation.d.ts +19 -19
- package/dist/es/es2018/types/src/generated/types/CdpMlConfiguredModelCollectionRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/CdpMlConfiguredModelInputRepresentation.d.ts +9 -9
- package/dist/es/es2018/types/src/generated/types/CdpMlConfiguredModelRepresentation.d.ts +24 -24
- package/dist/es/es2018/types/src/generated/types/CdpMlModelArtifactBaseRepresentation.d.ts +7 -7
- package/dist/es/es2018/types/src/generated/types/CdpMlModelTypeRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/CdpMlWorkspaceDetailRepresentation.d.ts +41 -41
- package/dist/es/es2018/types/src/generated/types/CdpMlWorkspaceRepresentation.d.ts +35 -35
- package/dist/es/es2018/types/src/raml-artifacts/resources/getSsotMachineLearningWorkspacesByWorkspaceIdOrName/keyBuilder.d.ts +3 -0
- package/dist/es/es2018/types/src/raml-artifacts/resources/getSsotMachineLearningWorkspacesModelsByModelIdOrNameAndWorkspaceIdOrName/keyBuilder.d.ts +3 -0
- package/dist/es/es2018/types/src/raml-artifacts/types/CdpMlConfiguredModelRepresentation/keyBuilderFromType.d.ts +3 -0
- package/dist/es/es2018/types/src/raml-artifacts/types/CdpMlWorkspaceDetailRepresentation/keyBuilderFromType.d.ts +3 -0
- package/dist/es/es2018/types/src/raml-artifacts/utils/nameOrId.d.ts +3 -0
- package/package.json +16 -5
- package/sfdc/index.js +476 -347
- package/src/raml/api.raml +71 -71
- package/src/raml/luvio.raml +5 -5
|
@@ -185,63 +185,81 @@ function validate$k(obj, path = 'CdpAssetReferenceRepresentation') {
|
|
|
185
185
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
186
186
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
187
187
|
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
188
|
+
if (obj.createdBy !== undefined) {
|
|
189
|
+
const obj_createdBy = obj.createdBy;
|
|
190
|
+
const path_createdBy = path + '.createdBy';
|
|
191
|
+
const referencepath_createdByValidationError = validate$o(obj_createdBy, path_createdBy);
|
|
192
|
+
if (referencepath_createdByValidationError !== null) {
|
|
193
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
194
|
+
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
195
|
+
return new TypeError(message);
|
|
196
|
+
}
|
|
195
197
|
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
if (obj.createdDate !== undefined) {
|
|
199
|
+
const obj_createdDate = obj.createdDate;
|
|
200
|
+
const path_createdDate = path + '.createdDate';
|
|
201
|
+
if (typeof obj_createdDate !== 'string') {
|
|
202
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
203
|
+
}
|
|
200
204
|
}
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
+
if (obj.id !== undefined) {
|
|
206
|
+
const obj_id = obj.id;
|
|
207
|
+
const path_id = path + '.id';
|
|
208
|
+
if (typeof obj_id !== 'string') {
|
|
209
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
210
|
+
}
|
|
205
211
|
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
212
|
+
if (obj.label !== undefined) {
|
|
213
|
+
const obj_label = obj.label;
|
|
214
|
+
const path_label = path + '.label';
|
|
215
|
+
if (typeof obj_label !== 'string') {
|
|
216
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
217
|
+
}
|
|
210
218
|
}
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
219
|
+
if (obj.lastModifiedBy !== undefined) {
|
|
220
|
+
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
221
|
+
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
222
|
+
const referencepath_lastModifiedByValidationError = validate$o(obj_lastModifiedBy, path_lastModifiedBy);
|
|
223
|
+
if (referencepath_lastModifiedByValidationError !== null) {
|
|
224
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
225
|
+
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
226
|
+
return new TypeError(message);
|
|
227
|
+
}
|
|
218
228
|
}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
229
|
+
if (obj.lastModifiedDate !== undefined) {
|
|
230
|
+
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
231
|
+
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
232
|
+
if (typeof obj_lastModifiedDate !== 'string') {
|
|
233
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
234
|
+
}
|
|
223
235
|
}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
236
|
+
if (obj.name !== undefined) {
|
|
237
|
+
const obj_name = obj.name;
|
|
238
|
+
const path_name = path + '.name';
|
|
239
|
+
if (typeof obj_name !== 'string') {
|
|
240
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
241
|
+
}
|
|
228
242
|
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
243
|
+
if (obj.namespace !== undefined) {
|
|
244
|
+
const obj_namespace = obj.namespace;
|
|
245
|
+
const path_namespace = path + '.namespace';
|
|
246
|
+
if (typeof obj_namespace !== 'string') {
|
|
247
|
+
return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
248
|
+
}
|
|
233
249
|
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
250
|
+
if (obj.url !== undefined) {
|
|
251
|
+
const obj_url = obj.url;
|
|
252
|
+
const path_url = path + '.url';
|
|
253
|
+
if (typeof obj_url !== 'string') {
|
|
254
|
+
return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
255
|
+
}
|
|
238
256
|
}
|
|
239
257
|
})();
|
|
240
258
|
return v_error === undefined ? null : v_error;
|
|
241
259
|
}
|
|
242
260
|
|
|
243
261
|
const TTL$5 = 1000;
|
|
244
|
-
const VERSION$5 = "
|
|
262
|
+
const VERSION$5 = "6367fbb84e5d44f20b66ff347cdd5487";
|
|
245
263
|
function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
246
264
|
const v_error = (() => {
|
|
247
265
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -260,10 +278,12 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
260
278
|
if (typeof obj_createdDate !== 'string') {
|
|
261
279
|
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
262
280
|
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
281
|
+
if (obj.description !== undefined) {
|
|
282
|
+
const obj_description = obj.description;
|
|
283
|
+
const path_description = path + '.description';
|
|
284
|
+
if (typeof obj_description !== 'string') {
|
|
285
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
286
|
+
}
|
|
267
287
|
}
|
|
268
288
|
const obj_id = obj.id;
|
|
269
289
|
const path_id = path + '.id';
|
|
@@ -285,10 +305,12 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
285
305
|
return new TypeError(message);
|
|
286
306
|
}
|
|
287
307
|
}
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
308
|
+
if (obj.label !== undefined) {
|
|
309
|
+
const obj_label = obj.label;
|
|
310
|
+
const path_label = path + '.label';
|
|
311
|
+
if (typeof obj_label !== 'string') {
|
|
312
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
313
|
+
}
|
|
292
314
|
}
|
|
293
315
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
294
316
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
@@ -313,10 +335,12 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
313
335
|
if (typeof obj_name !== 'string') {
|
|
314
336
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
315
337
|
}
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
338
|
+
if (obj.namespace !== undefined) {
|
|
339
|
+
const obj_namespace = obj.namespace;
|
|
340
|
+
const path_namespace = path + '.namespace';
|
|
341
|
+
if (typeof obj_namespace !== 'string') {
|
|
342
|
+
return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
343
|
+
}
|
|
320
344
|
}
|
|
321
345
|
const obj_outputFields = obj.outputFields;
|
|
322
346
|
const path_outputFields = path + '.outputFields';
|
|
@@ -497,15 +521,15 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
497
521
|
function select$b(luvio, params) {
|
|
498
522
|
return select$c();
|
|
499
523
|
}
|
|
500
|
-
function keyBuilder$
|
|
524
|
+
function keyBuilder$b(luvio, params) {
|
|
501
525
|
return keyPrefix + '::CdpMlModelArtifactCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'modelType:' + params.queryParams.modelType + ',' + 'offset:' + params.queryParams.offset + ',' + 'sourceType:' + params.queryParams.sourceType + ')';
|
|
502
526
|
}
|
|
503
527
|
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
504
|
-
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$
|
|
528
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
|
|
505
529
|
}
|
|
506
530
|
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
507
531
|
const { body } = response;
|
|
508
|
-
const key = keyBuilder$
|
|
532
|
+
const key = keyBuilder$b(luvio, resourceParams);
|
|
509
533
|
luvio.storeIngest(key, ingest$4, body);
|
|
510
534
|
const snapshot = luvio.storeLookup({
|
|
511
535
|
recordId: key,
|
|
@@ -521,7 +545,7 @@ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
521
545
|
return snapshot;
|
|
522
546
|
}
|
|
523
547
|
function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
524
|
-
const key = keyBuilder$
|
|
548
|
+
const key = keyBuilder$b(luvio, params);
|
|
525
549
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
526
550
|
const storeMetadataParams = {
|
|
527
551
|
ttl: TTL$4,
|
|
@@ -555,9 +579,9 @@ const getCdpMlModelArtifactCollection_ConfigPropertyMetadata = [
|
|
|
555
579
|
];
|
|
556
580
|
const getCdpMlModelArtifactCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getCdpMlModelArtifactCollection_ConfigPropertyMetadata);
|
|
557
581
|
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$8(getCdpMlModelArtifactCollection_ConfigPropertyMetadata);
|
|
558
|
-
function keyBuilder$
|
|
582
|
+
function keyBuilder$a(luvio, config) {
|
|
559
583
|
const resourceParams = createResourceParams$7(config);
|
|
560
|
-
return keyBuilder$
|
|
584
|
+
return keyBuilder$b(luvio, resourceParams);
|
|
561
585
|
}
|
|
562
586
|
function typeCheckConfig$7(untrustedConfig) {
|
|
563
587
|
const config = {};
|
|
@@ -615,7 +639,7 @@ function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext
|
|
|
615
639
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
616
640
|
const { luvio, config } = context;
|
|
617
641
|
const selector = {
|
|
618
|
-
recordId: keyBuilder$
|
|
642
|
+
recordId: keyBuilder$a(luvio, config),
|
|
619
643
|
node: adapterFragment$5(luvio, config),
|
|
620
644
|
variables: {},
|
|
621
645
|
};
|
|
@@ -638,15 +662,15 @@ const getCdpMlModelArtifactCollectionAdapterFactory = (luvio) => function cdpMac
|
|
|
638
662
|
function select$a(luvio, params) {
|
|
639
663
|
return select$d();
|
|
640
664
|
}
|
|
641
|
-
function keyBuilder$
|
|
665
|
+
function keyBuilder$9(luvio, params) {
|
|
642
666
|
return keyPrefix + '::CdpMlModelArtifactBaseRepresentation:(' + 'modelArtifactIdOrName:' + params.urlParams.modelArtifactIdOrName + ')';
|
|
643
667
|
}
|
|
644
668
|
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
645
|
-
getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$
|
|
669
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
|
|
646
670
|
}
|
|
647
671
|
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
648
672
|
const { body } = response;
|
|
649
|
-
const key = keyBuilder$
|
|
673
|
+
const key = keyBuilder$9(luvio, resourceParams);
|
|
650
674
|
luvio.storeIngest(key, ingest$5, body);
|
|
651
675
|
const snapshot = luvio.storeLookup({
|
|
652
676
|
recordId: key,
|
|
@@ -662,7 +686,7 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
662
686
|
return snapshot;
|
|
663
687
|
}
|
|
664
688
|
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
665
|
-
const key = keyBuilder$
|
|
689
|
+
const key = keyBuilder$9(luvio, params);
|
|
666
690
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
667
691
|
const storeMetadataParams = {
|
|
668
692
|
ttl: TTL$5,
|
|
@@ -693,9 +717,9 @@ const getCdpMlModelArtifact_ConfigPropertyMetadata = [
|
|
|
693
717
|
];
|
|
694
718
|
const getCdpMlModelArtifact_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getCdpMlModelArtifact_ConfigPropertyMetadata);
|
|
695
719
|
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$8(getCdpMlModelArtifact_ConfigPropertyMetadata);
|
|
696
|
-
function keyBuilder$
|
|
720
|
+
function keyBuilder$8(luvio, config) {
|
|
697
721
|
const resourceParams = createResourceParams$6(config);
|
|
698
|
-
return keyBuilder$
|
|
722
|
+
return keyBuilder$9(luvio, resourceParams);
|
|
699
723
|
}
|
|
700
724
|
function typeCheckConfig$6(untrustedConfig) {
|
|
701
725
|
const config = {};
|
|
@@ -753,7 +777,7 @@ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext
|
|
|
753
777
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
754
778
|
const { luvio, config } = context;
|
|
755
779
|
const selector = {
|
|
756
|
-
recordId: keyBuilder$
|
|
780
|
+
recordId: keyBuilder$8(luvio, config),
|
|
757
781
|
node: adapterFragment$4(luvio, config),
|
|
758
782
|
variables: {},
|
|
759
783
|
};
|
|
@@ -778,10 +802,12 @@ function validate$h(obj, path = 'CdpMlModelTypeRepresentation') {
|
|
|
778
802
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
779
803
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
780
804
|
}
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
805
|
+
if (obj.connectorType !== undefined) {
|
|
806
|
+
const obj_connectorType = obj.connectorType;
|
|
807
|
+
const path_connectorType = path + '.connectorType';
|
|
808
|
+
if (typeof obj_connectorType !== 'string') {
|
|
809
|
+
return new TypeError('Expected "string" but received "' + typeof obj_connectorType + '" (at "' + path_connectorType + '")');
|
|
810
|
+
}
|
|
785
811
|
}
|
|
786
812
|
const obj_modelType = obj.modelType;
|
|
787
813
|
const path_modelType = path + '.modelType';
|
|
@@ -966,72 +992,94 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
966
992
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
967
993
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
968
994
|
}
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
995
|
+
if (obj.activeSetup !== undefined) {
|
|
996
|
+
const obj_activeSetup = obj.activeSetup;
|
|
997
|
+
const path_activeSetup = path + '.activeSetup';
|
|
998
|
+
const referencepath_activeSetupValidationError = validate$k(obj_activeSetup, path_activeSetup);
|
|
999
|
+
if (referencepath_activeSetupValidationError !== null) {
|
|
1000
|
+
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_activeSetup + '")\n';
|
|
1001
|
+
message += referencepath_activeSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1002
|
+
return new TypeError(message);
|
|
1003
|
+
}
|
|
976
1004
|
}
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
1005
|
+
if (obj.activeSetupVersionNumber !== undefined) {
|
|
1006
|
+
const obj_activeSetupVersionNumber = obj.activeSetupVersionNumber;
|
|
1007
|
+
const path_activeSetupVersionNumber = path + '.activeSetupVersionNumber';
|
|
1008
|
+
if (typeof obj_activeSetupVersionNumber !== 'number' || (typeof obj_activeSetupVersionNumber === 'number' && Math.floor(obj_activeSetupVersionNumber) !== obj_activeSetupVersionNumber)) {
|
|
1009
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
|
|
1010
|
+
}
|
|
981
1011
|
}
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
1012
|
+
if (obj.createdBy !== undefined) {
|
|
1013
|
+
const obj_createdBy = obj.createdBy;
|
|
1014
|
+
const path_createdBy = path + '.createdBy';
|
|
1015
|
+
const referencepath_createdByValidationError = validate$o(obj_createdBy, path_createdBy);
|
|
1016
|
+
if (referencepath_createdByValidationError !== null) {
|
|
1017
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
1018
|
+
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1019
|
+
return new TypeError(message);
|
|
1020
|
+
}
|
|
989
1021
|
}
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
1022
|
+
if (obj.createdDate !== undefined) {
|
|
1023
|
+
const obj_createdDate = obj.createdDate;
|
|
1024
|
+
const path_createdDate = path + '.createdDate';
|
|
1025
|
+
if (typeof obj_createdDate !== 'string') {
|
|
1026
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
1027
|
+
}
|
|
994
1028
|
}
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
1029
|
+
if (obj.description !== undefined) {
|
|
1030
|
+
const obj_description = obj.description;
|
|
1031
|
+
const path_description = path + '.description';
|
|
1032
|
+
if (typeof obj_description !== 'string') {
|
|
1033
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
1034
|
+
}
|
|
999
1035
|
}
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1036
|
+
if (obj.historiesUrl !== undefined) {
|
|
1037
|
+
const obj_historiesUrl = obj.historiesUrl;
|
|
1038
|
+
const path_historiesUrl = path + '.historiesUrl';
|
|
1039
|
+
if (typeof obj_historiesUrl !== 'string') {
|
|
1040
|
+
return new TypeError('Expected "string" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
|
|
1041
|
+
}
|
|
1004
1042
|
}
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1043
|
+
if (obj.id !== undefined) {
|
|
1044
|
+
const obj_id = obj.id;
|
|
1045
|
+
const path_id = path + '.id';
|
|
1046
|
+
if (typeof obj_id !== 'string') {
|
|
1047
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1048
|
+
}
|
|
1009
1049
|
}
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1050
|
+
if (obj.label !== undefined) {
|
|
1051
|
+
const obj_label = obj.label;
|
|
1052
|
+
const path_label = path + '.label';
|
|
1053
|
+
if (typeof obj_label !== 'string') {
|
|
1054
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
1055
|
+
}
|
|
1014
1056
|
}
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1057
|
+
if (obj.lastModifiedBy !== undefined) {
|
|
1058
|
+
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
1059
|
+
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
1060
|
+
const referencepath_lastModifiedByValidationError = validate$o(obj_lastModifiedBy, path_lastModifiedBy);
|
|
1061
|
+
if (referencepath_lastModifiedByValidationError !== null) {
|
|
1062
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
1063
|
+
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1064
|
+
return new TypeError(message);
|
|
1065
|
+
}
|
|
1022
1066
|
}
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1067
|
+
if (obj.lastModifiedDate !== undefined) {
|
|
1068
|
+
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
1069
|
+
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
1070
|
+
if (typeof obj_lastModifiedDate !== 'string') {
|
|
1071
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
1072
|
+
}
|
|
1027
1073
|
}
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1074
|
+
if (obj.latestSetup !== undefined) {
|
|
1075
|
+
const obj_latestSetup = obj.latestSetup;
|
|
1076
|
+
const path_latestSetup = path + '.latestSetup';
|
|
1077
|
+
const referencepath_latestSetupValidationError = validate$k(obj_latestSetup, path_latestSetup);
|
|
1078
|
+
if (referencepath_latestSetupValidationError !== null) {
|
|
1079
|
+
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_latestSetup + '")\n';
|
|
1080
|
+
message += referencepath_latestSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1081
|
+
return new TypeError(message);
|
|
1082
|
+
}
|
|
1035
1083
|
}
|
|
1036
1084
|
const obj_modelCount = obj.modelCount;
|
|
1037
1085
|
const path_modelCount = path + '.modelCount';
|
|
@@ -1061,46 +1109,58 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
1061
1109
|
if (typeof obj_namespace !== 'string') {
|
|
1062
1110
|
return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
1063
1111
|
}
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1112
|
+
if (obj.outcomeDefinition !== undefined) {
|
|
1113
|
+
const obj_outcomeDefinition = obj.outcomeDefinition;
|
|
1114
|
+
const path_outcomeDefinition = path + '.outcomeDefinition';
|
|
1115
|
+
const referencepath_outcomeDefinitionValidationError = validate$g(obj_outcomeDefinition, path_outcomeDefinition);
|
|
1116
|
+
if (referencepath_outcomeDefinitionValidationError !== null) {
|
|
1117
|
+
let message = 'Object doesn\'t match CdpMlModelOutcomeDefinitionRepresentation (at "' + path_outcomeDefinition + '")\n';
|
|
1118
|
+
message += referencepath_outcomeDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1119
|
+
return new TypeError(message);
|
|
1120
|
+
}
|
|
1071
1121
|
}
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
const path_refreshConfig = path + '.refreshConfig';
|
|
1079
|
-
const referencepath_refreshConfigValidationError = validate$b(obj_refreshConfig, path_refreshConfig);
|
|
1080
|
-
if (referencepath_refreshConfigValidationError !== null) {
|
|
1081
|
-
let message = 'Object doesn\'t match CdpMlModelRefreshConfigRepresentation (at "' + path_refreshConfig + '")\n';
|
|
1082
|
-
message += referencepath_refreshConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1083
|
-
return new TypeError(message);
|
|
1122
|
+
if (obj.predictionType !== undefined) {
|
|
1123
|
+
const obj_predictionType = obj.predictionType;
|
|
1124
|
+
const path_predictionType = path + '.predictionType';
|
|
1125
|
+
if (typeof obj_predictionType !== 'string') {
|
|
1126
|
+
return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
|
|
1127
|
+
}
|
|
1084
1128
|
}
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1129
|
+
if (obj.refreshConfig !== undefined) {
|
|
1130
|
+
const obj_refreshConfig = obj.refreshConfig;
|
|
1131
|
+
const path_refreshConfig = path + '.refreshConfig';
|
|
1132
|
+
const referencepath_refreshConfigValidationError = validate$b(obj_refreshConfig, path_refreshConfig);
|
|
1133
|
+
if (referencepath_refreshConfigValidationError !== null) {
|
|
1134
|
+
let message = 'Object doesn\'t match CdpMlModelRefreshConfigRepresentation (at "' + path_refreshConfig + '")\n';
|
|
1135
|
+
message += referencepath_refreshConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1136
|
+
return new TypeError(message);
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
if (obj.setupVersionsUrl !== undefined) {
|
|
1140
|
+
const obj_setupVersionsUrl = obj.setupVersionsUrl;
|
|
1141
|
+
const path_setupVersionsUrl = path + '.setupVersionsUrl';
|
|
1142
|
+
if (typeof obj_setupVersionsUrl !== 'string') {
|
|
1143
|
+
return new TypeError('Expected "string" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
|
|
1144
|
+
}
|
|
1089
1145
|
}
|
|
1090
1146
|
const obj_status = obj.status;
|
|
1091
1147
|
const path_status = path + '.status';
|
|
1092
1148
|
if (typeof obj_status !== 'string') {
|
|
1093
1149
|
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
1094
1150
|
}
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1151
|
+
if (obj.totalInferenceCount !== undefined) {
|
|
1152
|
+
const obj_totalInferenceCount = obj.totalInferenceCount;
|
|
1153
|
+
const path_totalInferenceCount = path + '.totalInferenceCount';
|
|
1154
|
+
if (typeof obj_totalInferenceCount !== 'number' || (typeof obj_totalInferenceCount === 'number' && Math.floor(obj_totalInferenceCount) !== obj_totalInferenceCount)) {
|
|
1155
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
|
|
1156
|
+
}
|
|
1099
1157
|
}
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1158
|
+
if (obj.totalWarningsCount !== undefined) {
|
|
1159
|
+
const obj_totalWarningsCount = obj.totalWarningsCount;
|
|
1160
|
+
const path_totalWarningsCount = path + '.totalWarningsCount';
|
|
1161
|
+
if (typeof obj_totalWarningsCount !== 'number' || (typeof obj_totalWarningsCount === 'number' && Math.floor(obj_totalWarningsCount) !== obj_totalWarningsCount)) {
|
|
1162
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
|
|
1163
|
+
}
|
|
1104
1164
|
}
|
|
1105
1165
|
const obj_url = obj.url;
|
|
1106
1166
|
const path_url = path + '.url';
|
|
@@ -1194,15 +1254,15 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1194
1254
|
function select$8(luvio, params) {
|
|
1195
1255
|
return select$9();
|
|
1196
1256
|
}
|
|
1197
|
-
function keyBuilder$
|
|
1257
|
+
function keyBuilder$7(luvio, params) {
|
|
1198
1258
|
return keyPrefix + '::CdpMlWorkspaceCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'modelType:' + params.queryParams.modelType + ',' + 'offset:' + params.queryParams.offset + ',' + 'predictionType:' + params.queryParams.predictionType + ',' + 'search:' + params.queryParams.search + ',' + 'sourceType:' + params.queryParams.sourceType + ',' + 'status:' + params.queryParams.status + ')';
|
|
1199
1259
|
}
|
|
1200
1260
|
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
1201
|
-
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$
|
|
1261
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
1202
1262
|
}
|
|
1203
1263
|
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
1204
1264
|
const { body } = response;
|
|
1205
|
-
const key = keyBuilder$
|
|
1265
|
+
const key = keyBuilder$7(luvio, resourceParams);
|
|
1206
1266
|
luvio.storeIngest(key, ingest$3, body);
|
|
1207
1267
|
const snapshot = luvio.storeLookup({
|
|
1208
1268
|
recordId: key,
|
|
@@ -1218,7 +1278,7 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1218
1278
|
return snapshot;
|
|
1219
1279
|
}
|
|
1220
1280
|
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
1221
|
-
const key = keyBuilder$
|
|
1281
|
+
const key = keyBuilder$7(luvio, params);
|
|
1222
1282
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1223
1283
|
const storeMetadataParams = {
|
|
1224
1284
|
ttl: TTL$3,
|
|
@@ -1255,9 +1315,9 @@ const getCdpMlWorkspaceCollection_ConfigPropertyMetadata = [
|
|
|
1255
1315
|
];
|
|
1256
1316
|
const getCdpMlWorkspaceCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getCdpMlWorkspaceCollection_ConfigPropertyMetadata);
|
|
1257
1317
|
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$8(getCdpMlWorkspaceCollection_ConfigPropertyMetadata);
|
|
1258
|
-
function keyBuilder$
|
|
1318
|
+
function keyBuilder$6(luvio, config) {
|
|
1259
1319
|
const resourceParams = createResourceParams$5(config);
|
|
1260
|
-
return keyBuilder$
|
|
1320
|
+
return keyBuilder$7(luvio, resourceParams);
|
|
1261
1321
|
}
|
|
1262
1322
|
function typeCheckConfig$5(untrustedConfig) {
|
|
1263
1323
|
const config = {};
|
|
@@ -1315,7 +1375,7 @@ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext
|
|
|
1315
1375
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
1316
1376
|
const { luvio, config } = context;
|
|
1317
1377
|
const selector = {
|
|
1318
|
-
recordId: keyBuilder$
|
|
1378
|
+
recordId: keyBuilder$6(luvio, config),
|
|
1319
1379
|
node: adapterFragment$3(luvio, config),
|
|
1320
1380
|
variables: {},
|
|
1321
1381
|
};
|
|
@@ -1335,8 +1395,16 @@ const getCdpMlWorkspaceCollectionAdapterFactory = (luvio) => function cdpMachine
|
|
|
1335
1395
|
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
1336
1396
|
};
|
|
1337
1397
|
|
|
1398
|
+
// Should match with keyBuilder
|
|
1399
|
+
function keyBuilderFromType$1(luvio, object) {
|
|
1400
|
+
const type = object.url.indexOf(object.name) > -1 ? 'name' : 'id';
|
|
1401
|
+
const urlArray = object.url.split('/');
|
|
1402
|
+
const idOrName = urlArray[urlArray.length - 1];
|
|
1403
|
+
return `${keyPrefix}::${RepresentationType$2}:(id:${idOrName},type:${type})`;
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1338
1406
|
const TTL$2 = 1000;
|
|
1339
|
-
const VERSION$2 = "
|
|
1407
|
+
const VERSION$2 = "1b661a85ba4e745b802d9861a883d1b6";
|
|
1340
1408
|
function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
1341
1409
|
const v_error = (() => {
|
|
1342
1410
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1354,72 +1422,94 @@ function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
1354
1422
|
return new TypeError('Expected "string" but received "' + typeof obj_activations_item + '" (at "' + path_activations_item + '")');
|
|
1355
1423
|
}
|
|
1356
1424
|
}
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1425
|
+
if (obj.activeSetup !== undefined) {
|
|
1426
|
+
const obj_activeSetup = obj.activeSetup;
|
|
1427
|
+
const path_activeSetup = path + '.activeSetup';
|
|
1428
|
+
const referencepath_activeSetupValidationError = validate$k(obj_activeSetup, path_activeSetup);
|
|
1429
|
+
if (referencepath_activeSetupValidationError !== null) {
|
|
1430
|
+
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_activeSetup + '")\n';
|
|
1431
|
+
message += referencepath_activeSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1432
|
+
return new TypeError(message);
|
|
1433
|
+
}
|
|
1364
1434
|
}
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1435
|
+
if (obj.activeSetupVersionNumber !== undefined) {
|
|
1436
|
+
const obj_activeSetupVersionNumber = obj.activeSetupVersionNumber;
|
|
1437
|
+
const path_activeSetupVersionNumber = path + '.activeSetupVersionNumber';
|
|
1438
|
+
if (typeof obj_activeSetupVersionNumber !== 'number' || (typeof obj_activeSetupVersionNumber === 'number' && Math.floor(obj_activeSetupVersionNumber) !== obj_activeSetupVersionNumber)) {
|
|
1439
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
|
|
1440
|
+
}
|
|
1369
1441
|
}
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1442
|
+
if (obj.createdBy !== undefined) {
|
|
1443
|
+
const obj_createdBy = obj.createdBy;
|
|
1444
|
+
const path_createdBy = path + '.createdBy';
|
|
1445
|
+
const referencepath_createdByValidationError = validate$o(obj_createdBy, path_createdBy);
|
|
1446
|
+
if (referencepath_createdByValidationError !== null) {
|
|
1447
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
1448
|
+
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1449
|
+
return new TypeError(message);
|
|
1450
|
+
}
|
|
1377
1451
|
}
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1452
|
+
if (obj.createdDate !== undefined) {
|
|
1453
|
+
const obj_createdDate = obj.createdDate;
|
|
1454
|
+
const path_createdDate = path + '.createdDate';
|
|
1455
|
+
if (typeof obj_createdDate !== 'string') {
|
|
1456
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
1457
|
+
}
|
|
1382
1458
|
}
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1459
|
+
if (obj.description !== undefined) {
|
|
1460
|
+
const obj_description = obj.description;
|
|
1461
|
+
const path_description = path + '.description';
|
|
1462
|
+
if (typeof obj_description !== 'string') {
|
|
1463
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
1464
|
+
}
|
|
1387
1465
|
}
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1466
|
+
if (obj.historiesUrl !== undefined) {
|
|
1467
|
+
const obj_historiesUrl = obj.historiesUrl;
|
|
1468
|
+
const path_historiesUrl = path + '.historiesUrl';
|
|
1469
|
+
if (typeof obj_historiesUrl !== 'string') {
|
|
1470
|
+
return new TypeError('Expected "string" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
|
|
1471
|
+
}
|
|
1392
1472
|
}
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1473
|
+
if (obj.id !== undefined) {
|
|
1474
|
+
const obj_id = obj.id;
|
|
1475
|
+
const path_id = path + '.id';
|
|
1476
|
+
if (typeof obj_id !== 'string') {
|
|
1477
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1478
|
+
}
|
|
1397
1479
|
}
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1480
|
+
if (obj.label !== undefined) {
|
|
1481
|
+
const obj_label = obj.label;
|
|
1482
|
+
const path_label = path + '.label';
|
|
1483
|
+
if (typeof obj_label !== 'string') {
|
|
1484
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
1485
|
+
}
|
|
1402
1486
|
}
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1487
|
+
if (obj.lastModifiedBy !== undefined) {
|
|
1488
|
+
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
1489
|
+
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
1490
|
+
const referencepath_lastModifiedByValidationError = validate$o(obj_lastModifiedBy, path_lastModifiedBy);
|
|
1491
|
+
if (referencepath_lastModifiedByValidationError !== null) {
|
|
1492
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
1493
|
+
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1494
|
+
return new TypeError(message);
|
|
1495
|
+
}
|
|
1410
1496
|
}
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1497
|
+
if (obj.lastModifiedDate !== undefined) {
|
|
1498
|
+
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
1499
|
+
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
1500
|
+
if (typeof obj_lastModifiedDate !== 'string') {
|
|
1501
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
1502
|
+
}
|
|
1415
1503
|
}
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1504
|
+
if (obj.latestSetup !== undefined) {
|
|
1505
|
+
const obj_latestSetup = obj.latestSetup;
|
|
1506
|
+
const path_latestSetup = path + '.latestSetup';
|
|
1507
|
+
const referencepath_latestSetupValidationError = validate$k(obj_latestSetup, path_latestSetup);
|
|
1508
|
+
if (referencepath_latestSetupValidationError !== null) {
|
|
1509
|
+
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_latestSetup + '")\n';
|
|
1510
|
+
message += referencepath_latestSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1511
|
+
return new TypeError(message);
|
|
1512
|
+
}
|
|
1423
1513
|
}
|
|
1424
1514
|
const obj_modelCount = obj.modelCount;
|
|
1425
1515
|
const path_modelCount = path + '.modelCount';
|
|
@@ -1434,61 +1524,77 @@ function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
1434
1524
|
message += referencepath_modelTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1435
1525
|
return new TypeError(message);
|
|
1436
1526
|
}
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1527
|
+
if (obj.modelsUrl !== undefined) {
|
|
1528
|
+
const obj_modelsUrl = obj.modelsUrl;
|
|
1529
|
+
const path_modelsUrl = path + '.modelsUrl';
|
|
1530
|
+
if (typeof obj_modelsUrl !== 'string') {
|
|
1531
|
+
return new TypeError('Expected "string" but received "' + typeof obj_modelsUrl + '" (at "' + path_modelsUrl + '")');
|
|
1532
|
+
}
|
|
1441
1533
|
}
|
|
1442
1534
|
const obj_name = obj.name;
|
|
1443
1535
|
const path_name = path + '.name';
|
|
1444
1536
|
if (typeof obj_name !== 'string') {
|
|
1445
1537
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
1446
1538
|
}
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1539
|
+
if (obj.namespace !== undefined) {
|
|
1540
|
+
const obj_namespace = obj.namespace;
|
|
1541
|
+
const path_namespace = path + '.namespace';
|
|
1542
|
+
if (typeof obj_namespace !== 'string') {
|
|
1543
|
+
return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
1544
|
+
}
|
|
1451
1545
|
}
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1546
|
+
if (obj.outcomeDefinition !== undefined) {
|
|
1547
|
+
const obj_outcomeDefinition = obj.outcomeDefinition;
|
|
1548
|
+
const path_outcomeDefinition = path + '.outcomeDefinition';
|
|
1549
|
+
const referencepath_outcomeDefinitionValidationError = validate$g(obj_outcomeDefinition, path_outcomeDefinition);
|
|
1550
|
+
if (referencepath_outcomeDefinitionValidationError !== null) {
|
|
1551
|
+
let message = 'Object doesn\'t match CdpMlModelOutcomeDefinitionRepresentation (at "' + path_outcomeDefinition + '")\n';
|
|
1552
|
+
message += referencepath_outcomeDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1553
|
+
return new TypeError(message);
|
|
1554
|
+
}
|
|
1459
1555
|
}
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
const path_refreshConfig = path + '.refreshConfig';
|
|
1467
|
-
const referencepath_refreshConfigValidationError = validate$b(obj_refreshConfig, path_refreshConfig);
|
|
1468
|
-
if (referencepath_refreshConfigValidationError !== null) {
|
|
1469
|
-
let message = 'Object doesn\'t match CdpMlModelRefreshConfigRepresentation (at "' + path_refreshConfig + '")\n';
|
|
1470
|
-
message += referencepath_refreshConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1471
|
-
return new TypeError(message);
|
|
1556
|
+
if (obj.predictionType !== undefined) {
|
|
1557
|
+
const obj_predictionType = obj.predictionType;
|
|
1558
|
+
const path_predictionType = path + '.predictionType';
|
|
1559
|
+
if (typeof obj_predictionType !== 'string') {
|
|
1560
|
+
return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
|
|
1561
|
+
}
|
|
1472
1562
|
}
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1563
|
+
if (obj.refreshConfig !== undefined) {
|
|
1564
|
+
const obj_refreshConfig = obj.refreshConfig;
|
|
1565
|
+
const path_refreshConfig = path + '.refreshConfig';
|
|
1566
|
+
const referencepath_refreshConfigValidationError = validate$b(obj_refreshConfig, path_refreshConfig);
|
|
1567
|
+
if (referencepath_refreshConfigValidationError !== null) {
|
|
1568
|
+
let message = 'Object doesn\'t match CdpMlModelRefreshConfigRepresentation (at "' + path_refreshConfig + '")\n';
|
|
1569
|
+
message += referencepath_refreshConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1570
|
+
return new TypeError(message);
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1573
|
+
if (obj.setupVersionsUrl !== undefined) {
|
|
1574
|
+
const obj_setupVersionsUrl = obj.setupVersionsUrl;
|
|
1575
|
+
const path_setupVersionsUrl = path + '.setupVersionsUrl';
|
|
1576
|
+
if (typeof obj_setupVersionsUrl !== 'string') {
|
|
1577
|
+
return new TypeError('Expected "string" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
|
|
1578
|
+
}
|
|
1477
1579
|
}
|
|
1478
1580
|
const obj_status = obj.status;
|
|
1479
1581
|
const path_status = path + '.status';
|
|
1480
1582
|
if (typeof obj_status !== 'string') {
|
|
1481
1583
|
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
1482
1584
|
}
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1585
|
+
if (obj.totalInferenceCount !== undefined) {
|
|
1586
|
+
const obj_totalInferenceCount = obj.totalInferenceCount;
|
|
1587
|
+
const path_totalInferenceCount = path + '.totalInferenceCount';
|
|
1588
|
+
if (typeof obj_totalInferenceCount !== 'number' || (typeof obj_totalInferenceCount === 'number' && Math.floor(obj_totalInferenceCount) !== obj_totalInferenceCount)) {
|
|
1589
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
|
|
1590
|
+
}
|
|
1487
1591
|
}
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1592
|
+
if (obj.totalWarningsCount !== undefined) {
|
|
1593
|
+
const obj_totalWarningsCount = obj.totalWarningsCount;
|
|
1594
|
+
const path_totalWarningsCount = path + '.totalWarningsCount';
|
|
1595
|
+
if (typeof obj_totalWarningsCount !== 'number' || (typeof obj_totalWarningsCount === 'number' && Math.floor(obj_totalWarningsCount) !== obj_totalWarningsCount)) {
|
|
1596
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
|
|
1597
|
+
}
|
|
1492
1598
|
}
|
|
1493
1599
|
const obj_url = obj.url;
|
|
1494
1600
|
const path_url = path + '.url';
|
|
@@ -1499,15 +1605,6 @@ function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
1499
1605
|
return v_error === undefined ? null : v_error;
|
|
1500
1606
|
}
|
|
1501
1607
|
const RepresentationType$2 = 'CdpMlWorkspaceDetailRepresentation';
|
|
1502
|
-
function keyBuilder$7(luvio, config) {
|
|
1503
|
-
return keyPrefix + '::' + RepresentationType$2 + ':' + config.workspaceIdOrName;
|
|
1504
|
-
}
|
|
1505
|
-
function keyBuilderFromType$1(luvio, object) {
|
|
1506
|
-
const keyParams = {
|
|
1507
|
-
workspaceIdOrName: object.id
|
|
1508
|
-
};
|
|
1509
|
-
return keyBuilder$7(luvio, keyParams);
|
|
1510
|
-
}
|
|
1511
1608
|
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
1512
1609
|
return input;
|
|
1513
1610
|
}
|
|
@@ -1547,20 +1644,28 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1547
1644
|
});
|
|
1548
1645
|
}
|
|
1549
1646
|
|
|
1647
|
+
function IsWorkspaceId(workspaceIdOrName) {
|
|
1648
|
+
return workspaceIdOrName.indexOf('__') === -1 || workspaceIdOrName.startsWith('12s');
|
|
1649
|
+
}
|
|
1650
|
+
function IsModelId(modelIdOrName) {
|
|
1651
|
+
return modelIdOrName.startsWith('12r');
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
function keyBuilder$5(luvio, params) {
|
|
1655
|
+
const idOrName = params.urlParams.workspaceIdOrName;
|
|
1656
|
+
const type = IsWorkspaceId(idOrName) ? 'id' : 'name';
|
|
1657
|
+
return `${keyPrefix}::${RepresentationType$2}:(id:${params.urlParams.workspaceIdOrName},type:${type})`;
|
|
1658
|
+
}
|
|
1659
|
+
|
|
1550
1660
|
function select$6(luvio, params) {
|
|
1551
1661
|
return select$7();
|
|
1552
1662
|
}
|
|
1553
|
-
function keyBuilder$6(luvio, params) {
|
|
1554
|
-
return keyBuilder$7(luvio, {
|
|
1555
|
-
workspaceIdOrName: params.urlParams.workspaceIdOrName
|
|
1556
|
-
});
|
|
1557
|
-
}
|
|
1558
1663
|
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
1559
1664
|
getTypeCacheKeys$2(storeKeyMap, luvio, response);
|
|
1560
1665
|
}
|
|
1561
1666
|
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
1562
1667
|
const { body } = response;
|
|
1563
|
-
const key = keyBuilder$
|
|
1668
|
+
const key = keyBuilder$5(luvio, resourceParams);
|
|
1564
1669
|
luvio.storeIngest(key, ingest$2, body);
|
|
1565
1670
|
const snapshot = luvio.storeLookup({
|
|
1566
1671
|
recordId: key,
|
|
@@ -1576,7 +1681,7 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1576
1681
|
return snapshot;
|
|
1577
1682
|
}
|
|
1578
1683
|
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
1579
|
-
const key = keyBuilder$
|
|
1684
|
+
const key = keyBuilder$5(luvio, params);
|
|
1580
1685
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1581
1686
|
const storeMetadataParams = {
|
|
1582
1687
|
ttl: TTL$2,
|
|
@@ -1607,9 +1712,9 @@ const getCdpMlWorkspace_ConfigPropertyMetadata = [
|
|
|
1607
1712
|
];
|
|
1608
1713
|
const getCdpMlWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getCdpMlWorkspace_ConfigPropertyMetadata);
|
|
1609
1714
|
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$8(getCdpMlWorkspace_ConfigPropertyMetadata);
|
|
1610
|
-
function keyBuilder$
|
|
1715
|
+
function keyBuilder$4(luvio, config) {
|
|
1611
1716
|
const resourceParams = createResourceParams$4(config);
|
|
1612
|
-
return keyBuilder$
|
|
1717
|
+
return keyBuilder$5(luvio, resourceParams);
|
|
1613
1718
|
}
|
|
1614
1719
|
function typeCheckConfig$4(untrustedConfig) {
|
|
1615
1720
|
const config = {};
|
|
@@ -1667,7 +1772,7 @@ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext
|
|
|
1667
1772
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
1668
1773
|
const { luvio, config } = context;
|
|
1669
1774
|
const selector = {
|
|
1670
|
-
recordId: keyBuilder$
|
|
1775
|
+
recordId: keyBuilder$4(luvio, config),
|
|
1671
1776
|
node: adapterFragment$2(luvio, config),
|
|
1672
1777
|
variables: {},
|
|
1673
1778
|
};
|
|
@@ -1842,8 +1947,16 @@ function validate$2(obj, path = 'CdpMlModelParameterOverrideBaseRepresentation')
|
|
|
1842
1947
|
return v_error === undefined ? null : v_error;
|
|
1843
1948
|
}
|
|
1844
1949
|
|
|
1950
|
+
// Should match with keyBuilder
|
|
1951
|
+
function keyBuilderFromType(luvio, object) {
|
|
1952
|
+
const type = object.url.indexOf(object.name) > -1 ? 'name' : 'id';
|
|
1953
|
+
const urlArray = object.url.split('/');
|
|
1954
|
+
const idOrName = urlArray[urlArray.length - 1];
|
|
1955
|
+
return `${keyPrefix}::${RepresentationType$1}:(id:${idOrName},type:${type})`;
|
|
1956
|
+
}
|
|
1957
|
+
|
|
1845
1958
|
const TTL$1 = 1000;
|
|
1846
|
-
const VERSION$1 = "
|
|
1959
|
+
const VERSION$1 = "8cbcca9da420023a34b1f2bef797cf75";
|
|
1847
1960
|
function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
1848
1961
|
const v_error = (() => {
|
|
1849
1962
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1877,18 +1990,22 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
1877
1990
|
if (typeof obj_capability !== 'string') {
|
|
1878
1991
|
return new TypeError('Expected "string" but received "' + typeof obj_capability + '" (at "' + path_capability + '")');
|
|
1879
1992
|
}
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1993
|
+
if (obj.createdBy !== undefined) {
|
|
1994
|
+
const obj_createdBy = obj.createdBy;
|
|
1995
|
+
const path_createdBy = path + '.createdBy';
|
|
1996
|
+
const referencepath_createdByValidationError = validate$o(obj_createdBy, path_createdBy);
|
|
1997
|
+
if (referencepath_createdByValidationError !== null) {
|
|
1998
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
1999
|
+
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2000
|
+
return new TypeError(message);
|
|
2001
|
+
}
|
|
1887
2002
|
}
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
2003
|
+
if (obj.createdDate !== undefined) {
|
|
2004
|
+
const obj_createdDate = obj.createdDate;
|
|
2005
|
+
const path_createdDate = path + '.createdDate';
|
|
2006
|
+
if (typeof obj_createdDate !== 'string') {
|
|
2007
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
2008
|
+
}
|
|
1892
2009
|
}
|
|
1893
2010
|
const obj_customizableFields = obj.customizableFields;
|
|
1894
2011
|
const path_customizableFields = path + '.customizableFields';
|
|
@@ -1905,10 +2022,12 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
1905
2022
|
return new TypeError(message);
|
|
1906
2023
|
}
|
|
1907
2024
|
}
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
2025
|
+
if (obj.description !== undefined) {
|
|
2026
|
+
const obj_description = obj.description;
|
|
2027
|
+
const path_description = path + '.description';
|
|
2028
|
+
if (typeof obj_description !== 'string') {
|
|
2029
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
2030
|
+
}
|
|
1912
2031
|
}
|
|
1913
2032
|
const obj_filter = obj.filter;
|
|
1914
2033
|
const path_filter = path + '.filter';
|
|
@@ -1918,46 +2037,60 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
1918
2037
|
message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1919
2038
|
return new TypeError(message);
|
|
1920
2039
|
}
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
2040
|
+
if (obj.id !== undefined) {
|
|
2041
|
+
const obj_id = obj.id;
|
|
2042
|
+
const path_id = path + '.id';
|
|
2043
|
+
if (typeof obj_id !== 'string') {
|
|
2044
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
2045
|
+
}
|
|
1925
2046
|
}
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
const path_lastActivatedBy = path + '.lastActivatedBy';
|
|
1933
|
-
const referencepath_lastActivatedByValidationError = validate$o(obj_lastActivatedBy, path_lastActivatedBy);
|
|
1934
|
-
if (referencepath_lastActivatedByValidationError !== null) {
|
|
1935
|
-
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastActivatedBy + '")\n';
|
|
1936
|
-
message += referencepath_lastActivatedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1937
|
-
return new TypeError(message);
|
|
2047
|
+
if (obj.label !== undefined) {
|
|
2048
|
+
const obj_label = obj.label;
|
|
2049
|
+
const path_label = path + '.label';
|
|
2050
|
+
if (typeof obj_label !== 'string') {
|
|
2051
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
2052
|
+
}
|
|
1938
2053
|
}
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
2054
|
+
if (obj.lastActivatedBy !== undefined) {
|
|
2055
|
+
const obj_lastActivatedBy = obj.lastActivatedBy;
|
|
2056
|
+
const path_lastActivatedBy = path + '.lastActivatedBy';
|
|
2057
|
+
const referencepath_lastActivatedByValidationError = validate$o(obj_lastActivatedBy, path_lastActivatedBy);
|
|
2058
|
+
if (referencepath_lastActivatedByValidationError !== null) {
|
|
2059
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastActivatedBy + '")\n';
|
|
2060
|
+
message += referencepath_lastActivatedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2061
|
+
return new TypeError(message);
|
|
2062
|
+
}
|
|
1943
2063
|
}
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
return new TypeError(message);
|
|
2064
|
+
if (obj.lastActivatedDate !== undefined) {
|
|
2065
|
+
const obj_lastActivatedDate = obj.lastActivatedDate;
|
|
2066
|
+
const path_lastActivatedDate = path + '.lastActivatedDate';
|
|
2067
|
+
if (typeof obj_lastActivatedDate !== 'string') {
|
|
2068
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastActivatedDate + '" (at "' + path_lastActivatedDate + '")');
|
|
2069
|
+
}
|
|
1951
2070
|
}
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
2071
|
+
if (obj.lastModifiedBy !== undefined) {
|
|
2072
|
+
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
2073
|
+
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
2074
|
+
const referencepath_lastModifiedByValidationError = validate$o(obj_lastModifiedBy, path_lastModifiedBy);
|
|
2075
|
+
if (referencepath_lastModifiedByValidationError !== null) {
|
|
2076
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
2077
|
+
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2078
|
+
return new TypeError(message);
|
|
2079
|
+
}
|
|
1956
2080
|
}
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
2081
|
+
if (obj.lastModifiedDate !== undefined) {
|
|
2082
|
+
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
2083
|
+
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
2084
|
+
if (typeof obj_lastModifiedDate !== 'string') {
|
|
2085
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
2086
|
+
}
|
|
2087
|
+
}
|
|
2088
|
+
if (obj.metricsUrl !== undefined) {
|
|
2089
|
+
const obj_metricsUrl = obj.metricsUrl;
|
|
2090
|
+
const path_metricsUrl = path + '.metricsUrl';
|
|
2091
|
+
if (typeof obj_metricsUrl !== 'string') {
|
|
2092
|
+
return new TypeError('Expected "string" but received "' + typeof obj_metricsUrl + '" (at "' + path_metricsUrl + '")');
|
|
2093
|
+
}
|
|
1961
2094
|
}
|
|
1962
2095
|
const obj_name = obj.name;
|
|
1963
2096
|
const path_name = path + '.name';
|
|
@@ -2003,15 +2136,6 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
2003
2136
|
return v_error === undefined ? null : v_error;
|
|
2004
2137
|
}
|
|
2005
2138
|
const RepresentationType$1 = 'CdpMlConfiguredModelRepresentation';
|
|
2006
|
-
function keyBuilder$4(luvio, config) {
|
|
2007
|
-
return keyPrefix + '::' + RepresentationType$1 + ':' + config.modelId;
|
|
2008
|
-
}
|
|
2009
|
-
function keyBuilderFromType(luvio, object) {
|
|
2010
|
-
const keyParams = {
|
|
2011
|
-
modelId: object.id
|
|
2012
|
-
};
|
|
2013
|
-
return keyBuilder$4(luvio, keyParams);
|
|
2014
|
-
}
|
|
2015
2139
|
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
2016
2140
|
return input;
|
|
2017
2141
|
}
|
|
@@ -2052,25 +2176,27 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2052
2176
|
}
|
|
2053
2177
|
|
|
2054
2178
|
const TTL = 1000;
|
|
2055
|
-
const VERSION = "
|
|
2179
|
+
const VERSION = "2b3092c57f5f0a17513ae28d59875559";
|
|
2056
2180
|
function validate(obj, path = 'CdpMlConfiguredModelCollectionRepresentation') {
|
|
2057
2181
|
const v_error = (() => {
|
|
2058
2182
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2059
2183
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2060
2184
|
}
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2185
|
+
if (obj.models !== undefined) {
|
|
2186
|
+
const obj_models = obj.models;
|
|
2187
|
+
const path_models = path + '.models';
|
|
2188
|
+
if (!ArrayIsArray(obj_models)) {
|
|
2189
|
+
return new TypeError('Expected "array" but received "' + typeof obj_models + '" (at "' + path_models + '")');
|
|
2190
|
+
}
|
|
2191
|
+
for (let i = 0; i < obj_models.length; i++) {
|
|
2192
|
+
const obj_models_item = obj_models[i];
|
|
2193
|
+
const path_models_item = path_models + '[' + i + ']';
|
|
2194
|
+
const referencepath_models_itemValidationError = validate$1(obj_models_item, path_models_item);
|
|
2195
|
+
if (referencepath_models_itemValidationError !== null) {
|
|
2196
|
+
let message = 'Object doesn\'t match CdpMlConfiguredModelRepresentation (at "' + path_models_item + '")\n';
|
|
2197
|
+
message += referencepath_models_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2198
|
+
return new TypeError(message);
|
|
2199
|
+
}
|
|
2074
2200
|
}
|
|
2075
2201
|
}
|
|
2076
2202
|
const obj_totalSize = obj.totalSize;
|
|
@@ -2305,12 +2431,12 @@ const adapterName$2 = 'createCdpMlConfiguredModelCollection';
|
|
|
2305
2431
|
const createCdpMlConfiguredModelCollection_ConfigPropertyMetadata = [
|
|
2306
2432
|
generateParamConfigMetadata('workspaceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2307
2433
|
generateParamConfigMetadata('actionableFields', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
2308
|
-
generateParamConfigMetadata('artifact',
|
|
2434
|
+
generateParamConfigMetadata('artifact', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2309
2435
|
generateParamConfigMetadata('capability', true, 2 /* Body */, 0 /* String */),
|
|
2310
2436
|
generateParamConfigMetadata('customizableFields', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
2311
|
-
generateParamConfigMetadata('description',
|
|
2312
|
-
generateParamConfigMetadata('filter',
|
|
2313
|
-
generateParamConfigMetadata('label',
|
|
2437
|
+
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
2438
|
+
generateParamConfigMetadata('filter', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2439
|
+
generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
|
|
2314
2440
|
generateParamConfigMetadata('parameterOverrides', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
2315
2441
|
generateParamConfigMetadata('position', true, 2 /* Body */, 3 /* Integer */),
|
|
2316
2442
|
generateParamConfigMetadata('status', true, 2 /* Body */, 0 /* String */),
|
|
@@ -2420,15 +2546,15 @@ const createCdpMlConfiguredModelCollectionAdapterFactory = (luvio) => {
|
|
|
2420
2546
|
};
|
|
2421
2547
|
};
|
|
2422
2548
|
|
|
2549
|
+
function keyBuilder$1(luvio, params) {
|
|
2550
|
+
const modelIdOrName = params.urlParams.modelIdOrName;
|
|
2551
|
+
const type = IsModelId(modelIdOrName) ? 'id' : 'name';
|
|
2552
|
+
return `${keyPrefix}::${RepresentationType$1}:(id:${params.urlParams.modelIdOrName},type:${type})`;
|
|
2553
|
+
}
|
|
2554
|
+
|
|
2423
2555
|
function select$1(luvio, params) {
|
|
2424
2556
|
return select$5();
|
|
2425
2557
|
}
|
|
2426
|
-
function keyBuilder$1(luvio, params) {
|
|
2427
|
-
return keyBuilder$4(luvio, {
|
|
2428
|
-
modelId: params.urlParams.modelId,
|
|
2429
|
-
workspaceIdOrName: params.urlParams.workspaceIdOrName
|
|
2430
|
-
});
|
|
2431
|
-
}
|
|
2432
2558
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
2433
2559
|
getTypeCacheKeys$1(storeKeyMap, luvio, response);
|
|
2434
2560
|
}
|
|
@@ -2465,7 +2591,7 @@ function createResourceRequest$1(config) {
|
|
|
2465
2591
|
const headers = {};
|
|
2466
2592
|
return {
|
|
2467
2593
|
baseUri: '/services/data/v61.0',
|
|
2468
|
-
basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models/' + config.urlParams.
|
|
2594
|
+
basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models/' + config.urlParams.modelIdOrName + '',
|
|
2469
2595
|
method: 'get',
|
|
2470
2596
|
body: null,
|
|
2471
2597
|
urlParams: config.urlParams,
|
|
@@ -2477,7 +2603,7 @@ function createResourceRequest$1(config) {
|
|
|
2477
2603
|
|
|
2478
2604
|
const adapterName$1 = 'getCdpMlConfiguredModel';
|
|
2479
2605
|
const getCdpMlConfiguredModel_ConfigPropertyMetadata = [
|
|
2480
|
-
generateParamConfigMetadata('
|
|
2606
|
+
generateParamConfigMetadata('modelIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2481
2607
|
generateParamConfigMetadata('workspaceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2482
2608
|
];
|
|
2483
2609
|
const getCdpMlConfiguredModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getCdpMlConfiguredModel_ConfigPropertyMetadata);
|
|
@@ -2589,7 +2715,7 @@ function createResourceRequest(config) {
|
|
|
2589
2715
|
const headers = {};
|
|
2590
2716
|
return {
|
|
2591
2717
|
baseUri: '/services/data/v61.0',
|
|
2592
|
-
basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models/' + config.urlParams.
|
|
2718
|
+
basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models/' + config.urlParams.modelIdOrName + '',
|
|
2593
2719
|
method: 'patch',
|
|
2594
2720
|
body: config.body,
|
|
2595
2721
|
urlParams: config.urlParams,
|
|
@@ -2601,15 +2727,15 @@ function createResourceRequest(config) {
|
|
|
2601
2727
|
|
|
2602
2728
|
const adapterName = 'updateCdpMlConfiguredModel';
|
|
2603
2729
|
const updateCdpMlConfiguredModel_ConfigPropertyMetadata = [
|
|
2604
|
-
generateParamConfigMetadata('
|
|
2730
|
+
generateParamConfigMetadata('modelIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2605
2731
|
generateParamConfigMetadata('workspaceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2606
2732
|
generateParamConfigMetadata('actionableFields', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
2607
|
-
generateParamConfigMetadata('artifact',
|
|
2733
|
+
generateParamConfigMetadata('artifact', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2608
2734
|
generateParamConfigMetadata('capability', true, 2 /* Body */, 0 /* String */),
|
|
2609
2735
|
generateParamConfigMetadata('customizableFields', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
2610
|
-
generateParamConfigMetadata('description',
|
|
2611
|
-
generateParamConfigMetadata('filter',
|
|
2612
|
-
generateParamConfigMetadata('label',
|
|
2736
|
+
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
2737
|
+
generateParamConfigMetadata('filter', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2738
|
+
generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
|
|
2613
2739
|
generateParamConfigMetadata('parameterOverrides', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
2614
2740
|
generateParamConfigMetadata('position', true, 2 /* Body */, 3 /* Integer */),
|
|
2615
2741
|
generateParamConfigMetadata('status', true, 2 /* Body */, 0 /* String */),
|