@salesforce/lds-adapters-platform-cdp-machine-learning 1.266.0-dev4 → 1.266.0-dev6

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.
Files changed (25) hide show
  1. package/dist/es/es2018/platform-cdp-machine-learning.js +508 -382
  2. package/dist/es/es2018/types/src/generated/adapters/createCdpMlConfiguredModelCollection.d.ts +4 -4
  3. package/dist/es/es2018/types/src/generated/adapters/getCdpMlConfiguredModel.d.ts +5 -5
  4. package/dist/es/es2018/types/src/generated/adapters/updateCdpMlConfiguredModel.d.ts +7 -7
  5. package/dist/es/es2018/types/src/generated/resources/{getSsotMachineLearningWorkspacesModelsByModelIdAndWorkspaceIdOrName.d.ts → getSsotMachineLearningWorkspacesModelsByModelIdOrNameAndWorkspaceIdOrName.d.ts} +1 -1
  6. package/dist/es/es2018/types/src/generated/resources/{patchSsotMachineLearningWorkspacesModelsByModelIdAndWorkspaceIdOrName.d.ts → patchSsotMachineLearningWorkspacesModelsByModelIdOrNameAndWorkspaceIdOrName.d.ts} +5 -5
  7. package/dist/es/es2018/types/src/generated/resources/postSsotMachineLearningWorkspacesModelsByWorkspaceIdOrName.d.ts +4 -4
  8. package/dist/es/es2018/types/src/generated/types/CdpAssetBaseRepresentation.d.ts +11 -11
  9. package/dist/es/es2018/types/src/generated/types/CdpAssetReferenceRepresentation.d.ts +19 -19
  10. package/dist/es/es2018/types/src/generated/types/CdpMlConfiguredModelCollectionRepresentation.d.ts +3 -3
  11. package/dist/es/es2018/types/src/generated/types/CdpMlConfiguredModelInputRepresentation.d.ts +9 -9
  12. package/dist/es/es2018/types/src/generated/types/CdpMlConfiguredModelRepresentation.d.ts +24 -24
  13. package/dist/es/es2018/types/src/generated/types/CdpMlModelArtifactBaseRepresentation.d.ts +7 -7
  14. package/dist/es/es2018/types/src/generated/types/CdpMlModelTypeRepresentation.d.ts +3 -3
  15. package/dist/es/es2018/types/src/generated/types/CdpMlWorkspaceDetailRepresentation.d.ts +41 -41
  16. package/dist/es/es2018/types/src/generated/types/CdpMlWorkspaceRepresentation.d.ts +35 -35
  17. package/dist/es/es2018/types/src/raml-artifacts/resources/getSsotMachineLearningWorkspacesByWorkspaceIdOrName/keyBuilder.d.ts +3 -0
  18. package/dist/es/es2018/types/src/raml-artifacts/resources/getSsotMachineLearningWorkspacesModelsByModelIdOrNameAndWorkspaceIdOrName/keyBuilder.d.ts +3 -0
  19. package/dist/es/es2018/types/src/raml-artifacts/types/CdpMlConfiguredModelRepresentation/keyBuilderFromType.d.ts +3 -0
  20. package/dist/es/es2018/types/src/raml-artifacts/types/CdpMlWorkspaceDetailRepresentation/keyBuilderFromType.d.ts +3 -0
  21. package/dist/es/es2018/types/src/raml-artifacts/utils/nameOrId.d.ts +3 -0
  22. package/package.json +16 -5
  23. package/sfdc/index.js +484 -355
  24. package/src/raml/api.raml +71 -71
  25. 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
- const obj_createdBy = obj.createdBy;
189
- const path_createdBy = path + '.createdBy';
190
- const referencepath_createdByValidationError = validate$o(obj_createdBy, path_createdBy);
191
- if (referencepath_createdByValidationError !== null) {
192
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
193
- message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
194
- return new TypeError(message);
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
- const obj_createdDate = obj.createdDate;
197
- const path_createdDate = path + '.createdDate';
198
- if (typeof obj_createdDate !== 'string') {
199
- return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
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
- const obj_id = obj.id;
202
- const path_id = path + '.id';
203
- if (typeof obj_id !== 'string') {
204
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
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
- const obj_label = obj.label;
207
- const path_label = path + '.label';
208
- if (typeof obj_label !== 'string') {
209
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
210
- }
211
- const obj_lastModifiedBy = obj.lastModifiedBy;
212
- const path_lastModifiedBy = path + '.lastModifiedBy';
213
- const referencepath_lastModifiedByValidationError = validate$o(obj_lastModifiedBy, path_lastModifiedBy);
214
- if (referencepath_lastModifiedByValidationError !== null) {
215
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
216
- message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
217
- return new TypeError(message);
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
+ }
218
218
  }
219
- const obj_lastModifiedDate = obj.lastModifiedDate;
220
- const path_lastModifiedDate = path + '.lastModifiedDate';
221
- if (typeof obj_lastModifiedDate !== 'string') {
222
- return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
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
+ }
223
228
  }
224
- const obj_name = obj.name;
225
- const path_name = path + '.name';
226
- if (typeof obj_name !== 'string') {
227
- return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
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
+ }
228
235
  }
229
- const obj_namespace = obj.namespace;
230
- const path_namespace = path + '.namespace';
231
- if (typeof obj_namespace !== 'string') {
232
- return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
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
+ }
233
242
  }
234
- const obj_url = obj.url;
235
- const path_url = path + '.url';
236
- if (typeof obj_url !== 'string') {
237
- return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
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
+ }
249
+ }
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 = "9ed2828bcb548d3096bd7f51010ee720";
262
+ const VERSION$5 = "77ba1b67b026afced29c97c46e76d4c2";
245
263
  function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
246
264
  const v_error = (() => {
247
265
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -264,10 +282,12 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
264
282
  return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
265
283
  }
266
284
  }
267
- const obj_description = obj.description;
268
- const path_description = path + '.description';
269
- if (typeof obj_description !== 'string') {
270
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
285
+ if (obj.description !== undefined) {
286
+ const obj_description = obj.description;
287
+ const path_description = path + '.description';
288
+ if (typeof obj_description !== 'string') {
289
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
290
+ }
271
291
  }
272
292
  if (obj.id !== undefined) {
273
293
  const obj_id = obj.id;
@@ -291,10 +311,12 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
291
311
  return new TypeError(message);
292
312
  }
293
313
  }
294
- const obj_label = obj.label;
295
- const path_label = path + '.label';
296
- if (typeof obj_label !== 'string') {
297
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
314
+ if (obj.label !== undefined) {
315
+ const obj_label = obj.label;
316
+ const path_label = path + '.label';
317
+ if (typeof obj_label !== 'string') {
318
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
319
+ }
298
320
  }
299
321
  if (obj.lastModifiedBy !== undefined) {
300
322
  const obj_lastModifiedBy = obj.lastModifiedBy;
@@ -323,10 +345,12 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
323
345
  if (typeof obj_name !== 'string') {
324
346
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
325
347
  }
326
- const obj_namespace = obj.namespace;
327
- const path_namespace = path + '.namespace';
328
- if (typeof obj_namespace !== 'string') {
329
- return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
348
+ if (obj.namespace !== undefined) {
349
+ const obj_namespace = obj.namespace;
350
+ const path_namespace = path + '.namespace';
351
+ if (typeof obj_namespace !== 'string') {
352
+ return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
353
+ }
330
354
  }
331
355
  const obj_outputFields = obj.outputFields;
332
356
  const path_outputFields = path + '.outputFields';
@@ -530,15 +554,15 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
530
554
  function select$b(luvio, params) {
531
555
  return select$c();
532
556
  }
533
- function keyBuilder$d(luvio, params) {
557
+ function keyBuilder$b(luvio, params) {
534
558
  return keyPrefix + '::CdpMlModelArtifactCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'modelType:' + params.queryParams.modelType + ',' + 'offset:' + params.queryParams.offset + ',' + 'sourceType:' + params.queryParams.sourceType + ')';
535
559
  }
536
560
  function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
537
- getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$d(luvio, resourceParams));
561
+ getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
538
562
  }
539
563
  function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
540
564
  const { body } = response;
541
- const key = keyBuilder$d(luvio, resourceParams);
565
+ const key = keyBuilder$b(luvio, resourceParams);
542
566
  luvio.storeIngest(key, ingest$4, body);
543
567
  const snapshot = luvio.storeLookup({
544
568
  recordId: key,
@@ -554,7 +578,7 @@ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
554
578
  return snapshot;
555
579
  }
556
580
  function ingestError$5(luvio, params, error, snapshotRefresh) {
557
- const key = keyBuilder$d(luvio, params);
581
+ const key = keyBuilder$b(luvio, params);
558
582
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
559
583
  const storeMetadataParams = {
560
584
  ttl: TTL$4,
@@ -588,9 +612,9 @@ const getCdpMlModelArtifactCollection_ConfigPropertyMetadata = [
588
612
  ];
589
613
  const getCdpMlModelArtifactCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getCdpMlModelArtifactCollection_ConfigPropertyMetadata);
590
614
  const createResourceParams$7 = /*#__PURE__*/ createResourceParams$8(getCdpMlModelArtifactCollection_ConfigPropertyMetadata);
591
- function keyBuilder$c(luvio, config) {
615
+ function keyBuilder$a(luvio, config) {
592
616
  const resourceParams = createResourceParams$7(config);
593
- return keyBuilder$d(luvio, resourceParams);
617
+ return keyBuilder$b(luvio, resourceParams);
594
618
  }
595
619
  function typeCheckConfig$7(untrustedConfig) {
596
620
  const config = {};
@@ -648,7 +672,7 @@ function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext
648
672
  function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
649
673
  const { luvio, config } = context;
650
674
  const selector = {
651
- recordId: keyBuilder$c(luvio, config),
675
+ recordId: keyBuilder$a(luvio, config),
652
676
  node: adapterFragment$5(luvio, config),
653
677
  variables: {},
654
678
  };
@@ -671,15 +695,15 @@ const getCdpMlModelArtifactCollectionAdapterFactory = (luvio) => function cdpMac
671
695
  function select$a(luvio, params) {
672
696
  return select$d();
673
697
  }
674
- function keyBuilder$b(luvio, params) {
698
+ function keyBuilder$9(luvio, params) {
675
699
  return keyPrefix + '::CdpMlModelArtifactBaseRepresentation:(' + 'modelArtifactIdOrName:' + params.urlParams.modelArtifactIdOrName + ')';
676
700
  }
677
701
  function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
678
- getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
702
+ getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
679
703
  }
680
704
  function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
681
705
  const { body } = response;
682
- const key = keyBuilder$b(luvio, resourceParams);
706
+ const key = keyBuilder$9(luvio, resourceParams);
683
707
  luvio.storeIngest(key, ingest$5, body);
684
708
  const snapshot = luvio.storeLookup({
685
709
  recordId: key,
@@ -695,7 +719,7 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
695
719
  return snapshot;
696
720
  }
697
721
  function ingestError$4(luvio, params, error, snapshotRefresh) {
698
- const key = keyBuilder$b(luvio, params);
722
+ const key = keyBuilder$9(luvio, params);
699
723
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
700
724
  const storeMetadataParams = {
701
725
  ttl: TTL$5,
@@ -726,9 +750,9 @@ const getCdpMlModelArtifact_ConfigPropertyMetadata = [
726
750
  ];
727
751
  const getCdpMlModelArtifact_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getCdpMlModelArtifact_ConfigPropertyMetadata);
728
752
  const createResourceParams$6 = /*#__PURE__*/ createResourceParams$8(getCdpMlModelArtifact_ConfigPropertyMetadata);
729
- function keyBuilder$a(luvio, config) {
753
+ function keyBuilder$8(luvio, config) {
730
754
  const resourceParams = createResourceParams$6(config);
731
- return keyBuilder$b(luvio, resourceParams);
755
+ return keyBuilder$9(luvio, resourceParams);
732
756
  }
733
757
  function typeCheckConfig$6(untrustedConfig) {
734
758
  const config = {};
@@ -786,7 +810,7 @@ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext
786
810
  function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
787
811
  const { luvio, config } = context;
788
812
  const selector = {
789
- recordId: keyBuilder$a(luvio, config),
813
+ recordId: keyBuilder$8(luvio, config),
790
814
  node: adapterFragment$4(luvio, config),
791
815
  variables: {},
792
816
  };
@@ -811,10 +835,12 @@ function validate$h(obj, path = 'CdpMlModelTypeRepresentation') {
811
835
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
812
836
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
813
837
  }
814
- const obj_connectorType = obj.connectorType;
815
- const path_connectorType = path + '.connectorType';
816
- if (typeof obj_connectorType !== 'string') {
817
- return new TypeError('Expected "string" but received "' + typeof obj_connectorType + '" (at "' + path_connectorType + '")');
838
+ if (obj.connectorType !== undefined) {
839
+ const obj_connectorType = obj.connectorType;
840
+ const path_connectorType = path + '.connectorType';
841
+ if (typeof obj_connectorType !== 'string') {
842
+ return new TypeError('Expected "string" but received "' + typeof obj_connectorType + '" (at "' + path_connectorType + '")');
843
+ }
818
844
  }
819
845
  const obj_modelType = obj.modelType;
820
846
  const path_modelType = path + '.modelType';
@@ -999,72 +1025,94 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
999
1025
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1000
1026
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1001
1027
  }
1002
- const obj_activeSetup = obj.activeSetup;
1003
- const path_activeSetup = path + '.activeSetup';
1004
- const referencepath_activeSetupValidationError = validate$k(obj_activeSetup, path_activeSetup);
1005
- if (referencepath_activeSetupValidationError !== null) {
1006
- let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_activeSetup + '")\n';
1007
- message += referencepath_activeSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1008
- return new TypeError(message);
1028
+ if (obj.activeSetup !== undefined) {
1029
+ const obj_activeSetup = obj.activeSetup;
1030
+ const path_activeSetup = path + '.activeSetup';
1031
+ const referencepath_activeSetupValidationError = validate$k(obj_activeSetup, path_activeSetup);
1032
+ if (referencepath_activeSetupValidationError !== null) {
1033
+ let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_activeSetup + '")\n';
1034
+ message += referencepath_activeSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1035
+ return new TypeError(message);
1036
+ }
1009
1037
  }
1010
- const obj_activeSetupVersionNumber = obj.activeSetupVersionNumber;
1011
- const path_activeSetupVersionNumber = path + '.activeSetupVersionNumber';
1012
- if (typeof obj_activeSetupVersionNumber !== 'number' || (typeof obj_activeSetupVersionNumber === 'number' && Math.floor(obj_activeSetupVersionNumber) !== obj_activeSetupVersionNumber)) {
1013
- return new TypeError('Expected "integer" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
1014
- }
1015
- const obj_createdBy = obj.createdBy;
1016
- const path_createdBy = path + '.createdBy';
1017
- const referencepath_createdByValidationError = validate$o(obj_createdBy, path_createdBy);
1018
- if (referencepath_createdByValidationError !== null) {
1019
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
1020
- message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1021
- return new TypeError(message);
1038
+ if (obj.activeSetupVersionNumber !== undefined) {
1039
+ const obj_activeSetupVersionNumber = obj.activeSetupVersionNumber;
1040
+ const path_activeSetupVersionNumber = path + '.activeSetupVersionNumber';
1041
+ if (typeof obj_activeSetupVersionNumber !== 'number' || (typeof obj_activeSetupVersionNumber === 'number' && Math.floor(obj_activeSetupVersionNumber) !== obj_activeSetupVersionNumber)) {
1042
+ return new TypeError('Expected "integer" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
1043
+ }
1022
1044
  }
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 + '")');
1045
+ if (obj.createdBy !== undefined) {
1046
+ const obj_createdBy = obj.createdBy;
1047
+ const path_createdBy = path + '.createdBy';
1048
+ const referencepath_createdByValidationError = validate$o(obj_createdBy, path_createdBy);
1049
+ if (referencepath_createdByValidationError !== null) {
1050
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
1051
+ message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1052
+ return new TypeError(message);
1053
+ }
1027
1054
  }
1028
- const obj_description = obj.description;
1029
- const path_description = path + '.description';
1030
- if (typeof obj_description !== 'string') {
1031
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1055
+ if (obj.createdDate !== undefined) {
1056
+ const obj_createdDate = obj.createdDate;
1057
+ const path_createdDate = path + '.createdDate';
1058
+ if (typeof obj_createdDate !== 'string') {
1059
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
1060
+ }
1032
1061
  }
1033
- const obj_historiesUrl = obj.historiesUrl;
1034
- const path_historiesUrl = path + '.historiesUrl';
1035
- if (typeof obj_historiesUrl !== 'string') {
1036
- return new TypeError('Expected "string" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
1062
+ if (obj.description !== undefined) {
1063
+ const obj_description = obj.description;
1064
+ const path_description = path + '.description';
1065
+ if (typeof obj_description !== 'string') {
1066
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1067
+ }
1037
1068
  }
1038
- const obj_id = obj.id;
1039
- const path_id = path + '.id';
1040
- if (typeof obj_id !== 'string') {
1041
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1069
+ if (obj.historiesUrl !== undefined) {
1070
+ const obj_historiesUrl = obj.historiesUrl;
1071
+ const path_historiesUrl = path + '.historiesUrl';
1072
+ if (typeof obj_historiesUrl !== 'string') {
1073
+ return new TypeError('Expected "string" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
1074
+ }
1042
1075
  }
1043
- const obj_label = obj.label;
1044
- const path_label = path + '.label';
1045
- if (typeof obj_label !== 'string') {
1046
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1047
- }
1048
- const obj_lastModifiedBy = obj.lastModifiedBy;
1049
- const path_lastModifiedBy = path + '.lastModifiedBy';
1050
- const referencepath_lastModifiedByValidationError = validate$o(obj_lastModifiedBy, path_lastModifiedBy);
1051
- if (referencepath_lastModifiedByValidationError !== null) {
1052
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
1053
- message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1054
- return new TypeError(message);
1076
+ if (obj.id !== undefined) {
1077
+ const obj_id = obj.id;
1078
+ const path_id = path + '.id';
1079
+ if (typeof obj_id !== 'string') {
1080
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1081
+ }
1055
1082
  }
1056
- const obj_lastModifiedDate = obj.lastModifiedDate;
1057
- const path_lastModifiedDate = path + '.lastModifiedDate';
1058
- if (typeof obj_lastModifiedDate !== 'string') {
1059
- return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
1060
- }
1061
- const obj_latestSetup = obj.latestSetup;
1062
- const path_latestSetup = path + '.latestSetup';
1063
- const referencepath_latestSetupValidationError = validate$k(obj_latestSetup, path_latestSetup);
1064
- if (referencepath_latestSetupValidationError !== null) {
1065
- let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_latestSetup + '")\n';
1066
- message += referencepath_latestSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1067
- return new TypeError(message);
1083
+ if (obj.label !== undefined) {
1084
+ const obj_label = obj.label;
1085
+ const path_label = path + '.label';
1086
+ if (typeof obj_label !== 'string') {
1087
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1088
+ }
1089
+ }
1090
+ if (obj.lastModifiedBy !== undefined) {
1091
+ const obj_lastModifiedBy = obj.lastModifiedBy;
1092
+ const path_lastModifiedBy = path + '.lastModifiedBy';
1093
+ const referencepath_lastModifiedByValidationError = validate$o(obj_lastModifiedBy, path_lastModifiedBy);
1094
+ if (referencepath_lastModifiedByValidationError !== null) {
1095
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
1096
+ message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1097
+ return new TypeError(message);
1098
+ }
1099
+ }
1100
+ if (obj.lastModifiedDate !== undefined) {
1101
+ const obj_lastModifiedDate = obj.lastModifiedDate;
1102
+ const path_lastModifiedDate = path + '.lastModifiedDate';
1103
+ if (typeof obj_lastModifiedDate !== 'string') {
1104
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
1105
+ }
1106
+ }
1107
+ if (obj.latestSetup !== undefined) {
1108
+ const obj_latestSetup = obj.latestSetup;
1109
+ const path_latestSetup = path + '.latestSetup';
1110
+ const referencepath_latestSetupValidationError = validate$k(obj_latestSetup, path_latestSetup);
1111
+ if (referencepath_latestSetupValidationError !== null) {
1112
+ let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_latestSetup + '")\n';
1113
+ message += referencepath_latestSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1114
+ return new TypeError(message);
1115
+ }
1068
1116
  }
1069
1117
  const obj_modelCount = obj.modelCount;
1070
1118
  const path_modelCount = path + '.modelCount';
@@ -1094,46 +1142,58 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
1094
1142
  if (typeof obj_namespace !== 'string') {
1095
1143
  return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
1096
1144
  }
1097
- const obj_outcomeDefinition = obj.outcomeDefinition;
1098
- const path_outcomeDefinition = path + '.outcomeDefinition';
1099
- const referencepath_outcomeDefinitionValidationError = validate$g(obj_outcomeDefinition, path_outcomeDefinition);
1100
- if (referencepath_outcomeDefinitionValidationError !== null) {
1101
- let message = 'Object doesn\'t match CdpMlModelOutcomeDefinitionRepresentation (at "' + path_outcomeDefinition + '")\n';
1102
- message += referencepath_outcomeDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1103
- return new TypeError(message);
1145
+ if (obj.outcomeDefinition !== undefined) {
1146
+ const obj_outcomeDefinition = obj.outcomeDefinition;
1147
+ const path_outcomeDefinition = path + '.outcomeDefinition';
1148
+ const referencepath_outcomeDefinitionValidationError = validate$g(obj_outcomeDefinition, path_outcomeDefinition);
1149
+ if (referencepath_outcomeDefinitionValidationError !== null) {
1150
+ let message = 'Object doesn\'t match CdpMlModelOutcomeDefinitionRepresentation (at "' + path_outcomeDefinition + '")\n';
1151
+ message += referencepath_outcomeDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1152
+ return new TypeError(message);
1153
+ }
1104
1154
  }
1105
- const obj_predictionType = obj.predictionType;
1106
- const path_predictionType = path + '.predictionType';
1107
- if (typeof obj_predictionType !== 'string') {
1108
- return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
1109
- }
1110
- const obj_refreshConfig = obj.refreshConfig;
1111
- const path_refreshConfig = path + '.refreshConfig';
1112
- const referencepath_refreshConfigValidationError = validate$b(obj_refreshConfig, path_refreshConfig);
1113
- if (referencepath_refreshConfigValidationError !== null) {
1114
- let message = 'Object doesn\'t match CdpMlModelRefreshConfigRepresentation (at "' + path_refreshConfig + '")\n';
1115
- message += referencepath_refreshConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1116
- return new TypeError(message);
1155
+ if (obj.predictionType !== undefined) {
1156
+ const obj_predictionType = obj.predictionType;
1157
+ const path_predictionType = path + '.predictionType';
1158
+ if (typeof obj_predictionType !== 'string') {
1159
+ return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
1160
+ }
1161
+ }
1162
+ if (obj.refreshConfig !== undefined) {
1163
+ const obj_refreshConfig = obj.refreshConfig;
1164
+ const path_refreshConfig = path + '.refreshConfig';
1165
+ const referencepath_refreshConfigValidationError = validate$b(obj_refreshConfig, path_refreshConfig);
1166
+ if (referencepath_refreshConfigValidationError !== null) {
1167
+ let message = 'Object doesn\'t match CdpMlModelRefreshConfigRepresentation (at "' + path_refreshConfig + '")\n';
1168
+ message += referencepath_refreshConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1169
+ return new TypeError(message);
1170
+ }
1117
1171
  }
1118
- const obj_setupVersionsUrl = obj.setupVersionsUrl;
1119
- const path_setupVersionsUrl = path + '.setupVersionsUrl';
1120
- if (typeof obj_setupVersionsUrl !== 'string') {
1121
- return new TypeError('Expected "string" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
1172
+ if (obj.setupVersionsUrl !== undefined) {
1173
+ const obj_setupVersionsUrl = obj.setupVersionsUrl;
1174
+ const path_setupVersionsUrl = path + '.setupVersionsUrl';
1175
+ if (typeof obj_setupVersionsUrl !== 'string') {
1176
+ return new TypeError('Expected "string" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
1177
+ }
1122
1178
  }
1123
1179
  const obj_status = obj.status;
1124
1180
  const path_status = path + '.status';
1125
1181
  if (typeof obj_status !== 'string') {
1126
1182
  return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
1127
1183
  }
1128
- const obj_totalInferenceCount = obj.totalInferenceCount;
1129
- const path_totalInferenceCount = path + '.totalInferenceCount';
1130
- if (typeof obj_totalInferenceCount !== 'number' || (typeof obj_totalInferenceCount === 'number' && Math.floor(obj_totalInferenceCount) !== obj_totalInferenceCount)) {
1131
- return new TypeError('Expected "integer" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
1184
+ if (obj.totalInferenceCount !== undefined) {
1185
+ const obj_totalInferenceCount = obj.totalInferenceCount;
1186
+ const path_totalInferenceCount = path + '.totalInferenceCount';
1187
+ if (typeof obj_totalInferenceCount !== 'number' || (typeof obj_totalInferenceCount === 'number' && Math.floor(obj_totalInferenceCount) !== obj_totalInferenceCount)) {
1188
+ return new TypeError('Expected "integer" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
1189
+ }
1132
1190
  }
1133
- const obj_totalWarningsCount = obj.totalWarningsCount;
1134
- const path_totalWarningsCount = path + '.totalWarningsCount';
1135
- if (typeof obj_totalWarningsCount !== 'number' || (typeof obj_totalWarningsCount === 'number' && Math.floor(obj_totalWarningsCount) !== obj_totalWarningsCount)) {
1136
- return new TypeError('Expected "integer" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
1191
+ if (obj.totalWarningsCount !== undefined) {
1192
+ const obj_totalWarningsCount = obj.totalWarningsCount;
1193
+ const path_totalWarningsCount = path + '.totalWarningsCount';
1194
+ if (typeof obj_totalWarningsCount !== 'number' || (typeof obj_totalWarningsCount === 'number' && Math.floor(obj_totalWarningsCount) !== obj_totalWarningsCount)) {
1195
+ return new TypeError('Expected "integer" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
1196
+ }
1137
1197
  }
1138
1198
  const obj_url = obj.url;
1139
1199
  const path_url = path + '.url';
@@ -1248,15 +1308,15 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
1248
1308
  function select$8(luvio, params) {
1249
1309
  return select$9();
1250
1310
  }
1251
- function keyBuilder$9(luvio, params) {
1311
+ function keyBuilder$7(luvio, params) {
1252
1312
  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 + ')';
1253
1313
  }
1254
1314
  function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
1255
- getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
1315
+ getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
1256
1316
  }
1257
1317
  function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
1258
1318
  const { body } = response;
1259
- const key = keyBuilder$9(luvio, resourceParams);
1319
+ const key = keyBuilder$7(luvio, resourceParams);
1260
1320
  luvio.storeIngest(key, ingest$3, body);
1261
1321
  const snapshot = luvio.storeLookup({
1262
1322
  recordId: key,
@@ -1272,7 +1332,7 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
1272
1332
  return snapshot;
1273
1333
  }
1274
1334
  function ingestError$3(luvio, params, error, snapshotRefresh) {
1275
- const key = keyBuilder$9(luvio, params);
1335
+ const key = keyBuilder$7(luvio, params);
1276
1336
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1277
1337
  const storeMetadataParams = {
1278
1338
  ttl: TTL$3,
@@ -1309,9 +1369,9 @@ const getCdpMlWorkspaceCollection_ConfigPropertyMetadata = [
1309
1369
  ];
1310
1370
  const getCdpMlWorkspaceCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getCdpMlWorkspaceCollection_ConfigPropertyMetadata);
1311
1371
  const createResourceParams$5 = /*#__PURE__*/ createResourceParams$8(getCdpMlWorkspaceCollection_ConfigPropertyMetadata);
1312
- function keyBuilder$8(luvio, config) {
1372
+ function keyBuilder$6(luvio, config) {
1313
1373
  const resourceParams = createResourceParams$5(config);
1314
- return keyBuilder$9(luvio, resourceParams);
1374
+ return keyBuilder$7(luvio, resourceParams);
1315
1375
  }
1316
1376
  function typeCheckConfig$5(untrustedConfig) {
1317
1377
  const config = {};
@@ -1369,7 +1429,7 @@ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext
1369
1429
  function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
1370
1430
  const { luvio, config } = context;
1371
1431
  const selector = {
1372
- recordId: keyBuilder$8(luvio, config),
1432
+ recordId: keyBuilder$6(luvio, config),
1373
1433
  node: adapterFragment$3(luvio, config),
1374
1434
  variables: {},
1375
1435
  };
@@ -1389,8 +1449,16 @@ const getCdpMlWorkspaceCollectionAdapterFactory = (luvio) => function cdpMachine
1389
1449
  buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
1390
1450
  };
1391
1451
 
1452
+ // Should match with keyBuilder
1453
+ function keyBuilderFromType$1(luvio, object) {
1454
+ const type = object.url.indexOf(object.name) > -1 ? 'name' : 'id';
1455
+ const urlArray = object.url.split('/');
1456
+ const idOrName = urlArray[urlArray.length - 1];
1457
+ return `${keyPrefix}::${RepresentationType$2}:(id:${idOrName},type:${type})`;
1458
+ }
1459
+
1392
1460
  const TTL$2 = 1000;
1393
- const VERSION$2 = "b700ad4033c4cc1a2f1373d916e31c4d";
1461
+ const VERSION$2 = "1b661a85ba4e745b802d9861a883d1b6";
1394
1462
  function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
1395
1463
  const v_error = (() => {
1396
1464
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1408,72 +1476,94 @@ function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
1408
1476
  return new TypeError('Expected "string" but received "' + typeof obj_activations_item + '" (at "' + path_activations_item + '")');
1409
1477
  }
1410
1478
  }
1411
- const obj_activeSetup = obj.activeSetup;
1412
- const path_activeSetup = path + '.activeSetup';
1413
- const referencepath_activeSetupValidationError = validate$k(obj_activeSetup, path_activeSetup);
1414
- if (referencepath_activeSetupValidationError !== null) {
1415
- let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_activeSetup + '")\n';
1416
- message += referencepath_activeSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1417
- return new TypeError(message);
1479
+ if (obj.activeSetup !== undefined) {
1480
+ const obj_activeSetup = obj.activeSetup;
1481
+ const path_activeSetup = path + '.activeSetup';
1482
+ const referencepath_activeSetupValidationError = validate$k(obj_activeSetup, path_activeSetup);
1483
+ if (referencepath_activeSetupValidationError !== null) {
1484
+ let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_activeSetup + '")\n';
1485
+ message += referencepath_activeSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1486
+ return new TypeError(message);
1487
+ }
1418
1488
  }
1419
- const obj_activeSetupVersionNumber = obj.activeSetupVersionNumber;
1420
- const path_activeSetupVersionNumber = path + '.activeSetupVersionNumber';
1421
- if (typeof obj_activeSetupVersionNumber !== 'number' || (typeof obj_activeSetupVersionNumber === 'number' && Math.floor(obj_activeSetupVersionNumber) !== obj_activeSetupVersionNumber)) {
1422
- return new TypeError('Expected "integer" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
1423
- }
1424
- const obj_createdBy = obj.createdBy;
1425
- const path_createdBy = path + '.createdBy';
1426
- const referencepath_createdByValidationError = validate$o(obj_createdBy, path_createdBy);
1427
- if (referencepath_createdByValidationError !== null) {
1428
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
1429
- message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1430
- return new TypeError(message);
1489
+ if (obj.activeSetupVersionNumber !== undefined) {
1490
+ const obj_activeSetupVersionNumber = obj.activeSetupVersionNumber;
1491
+ const path_activeSetupVersionNumber = path + '.activeSetupVersionNumber';
1492
+ if (typeof obj_activeSetupVersionNumber !== 'number' || (typeof obj_activeSetupVersionNumber === 'number' && Math.floor(obj_activeSetupVersionNumber) !== obj_activeSetupVersionNumber)) {
1493
+ return new TypeError('Expected "integer" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
1494
+ }
1431
1495
  }
1432
- const obj_createdDate = obj.createdDate;
1433
- const path_createdDate = path + '.createdDate';
1434
- if (typeof obj_createdDate !== 'string') {
1435
- return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
1496
+ if (obj.createdBy !== undefined) {
1497
+ const obj_createdBy = obj.createdBy;
1498
+ const path_createdBy = path + '.createdBy';
1499
+ const referencepath_createdByValidationError = validate$o(obj_createdBy, path_createdBy);
1500
+ if (referencepath_createdByValidationError !== null) {
1501
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
1502
+ message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1503
+ return new TypeError(message);
1504
+ }
1436
1505
  }
1437
- const obj_description = obj.description;
1438
- const path_description = path + '.description';
1439
- if (typeof obj_description !== 'string') {
1440
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1506
+ if (obj.createdDate !== undefined) {
1507
+ const obj_createdDate = obj.createdDate;
1508
+ const path_createdDate = path + '.createdDate';
1509
+ if (typeof obj_createdDate !== 'string') {
1510
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
1511
+ }
1441
1512
  }
1442
- const obj_historiesUrl = obj.historiesUrl;
1443
- const path_historiesUrl = path + '.historiesUrl';
1444
- if (typeof obj_historiesUrl !== 'string') {
1445
- return new TypeError('Expected "string" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
1513
+ if (obj.description !== undefined) {
1514
+ const obj_description = obj.description;
1515
+ const path_description = path + '.description';
1516
+ if (typeof obj_description !== 'string') {
1517
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1518
+ }
1446
1519
  }
1447
- const obj_id = obj.id;
1448
- const path_id = path + '.id';
1449
- if (typeof obj_id !== 'string') {
1450
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1520
+ if (obj.historiesUrl !== undefined) {
1521
+ const obj_historiesUrl = obj.historiesUrl;
1522
+ const path_historiesUrl = path + '.historiesUrl';
1523
+ if (typeof obj_historiesUrl !== 'string') {
1524
+ return new TypeError('Expected "string" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
1525
+ }
1451
1526
  }
1452
- const obj_label = obj.label;
1453
- const path_label = path + '.label';
1454
- if (typeof obj_label !== 'string') {
1455
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1456
- }
1457
- const obj_lastModifiedBy = obj.lastModifiedBy;
1458
- const path_lastModifiedBy = path + '.lastModifiedBy';
1459
- const referencepath_lastModifiedByValidationError = validate$o(obj_lastModifiedBy, path_lastModifiedBy);
1460
- if (referencepath_lastModifiedByValidationError !== null) {
1461
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
1462
- message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1463
- return new TypeError(message);
1527
+ if (obj.id !== undefined) {
1528
+ const obj_id = obj.id;
1529
+ const path_id = path + '.id';
1530
+ if (typeof obj_id !== 'string') {
1531
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1532
+ }
1464
1533
  }
1465
- const obj_lastModifiedDate = obj.lastModifiedDate;
1466
- const path_lastModifiedDate = path + '.lastModifiedDate';
1467
- if (typeof obj_lastModifiedDate !== 'string') {
1468
- return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
1469
- }
1470
- const obj_latestSetup = obj.latestSetup;
1471
- const path_latestSetup = path + '.latestSetup';
1472
- const referencepath_latestSetupValidationError = validate$k(obj_latestSetup, path_latestSetup);
1473
- if (referencepath_latestSetupValidationError !== null) {
1474
- let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_latestSetup + '")\n';
1475
- message += referencepath_latestSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1476
- return new TypeError(message);
1534
+ if (obj.label !== undefined) {
1535
+ const obj_label = obj.label;
1536
+ const path_label = path + '.label';
1537
+ if (typeof obj_label !== 'string') {
1538
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1539
+ }
1540
+ }
1541
+ if (obj.lastModifiedBy !== undefined) {
1542
+ const obj_lastModifiedBy = obj.lastModifiedBy;
1543
+ const path_lastModifiedBy = path + '.lastModifiedBy';
1544
+ const referencepath_lastModifiedByValidationError = validate$o(obj_lastModifiedBy, path_lastModifiedBy);
1545
+ if (referencepath_lastModifiedByValidationError !== null) {
1546
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
1547
+ message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1548
+ return new TypeError(message);
1549
+ }
1550
+ }
1551
+ if (obj.lastModifiedDate !== undefined) {
1552
+ const obj_lastModifiedDate = obj.lastModifiedDate;
1553
+ const path_lastModifiedDate = path + '.lastModifiedDate';
1554
+ if (typeof obj_lastModifiedDate !== 'string') {
1555
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
1556
+ }
1557
+ }
1558
+ if (obj.latestSetup !== undefined) {
1559
+ const obj_latestSetup = obj.latestSetup;
1560
+ const path_latestSetup = path + '.latestSetup';
1561
+ const referencepath_latestSetupValidationError = validate$k(obj_latestSetup, path_latestSetup);
1562
+ if (referencepath_latestSetupValidationError !== null) {
1563
+ let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_latestSetup + '")\n';
1564
+ message += referencepath_latestSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1565
+ return new TypeError(message);
1566
+ }
1477
1567
  }
1478
1568
  const obj_modelCount = obj.modelCount;
1479
1569
  const path_modelCount = path + '.modelCount';
@@ -1488,61 +1578,77 @@ function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
1488
1578
  message += referencepath_modelTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1489
1579
  return new TypeError(message);
1490
1580
  }
1491
- const obj_modelsUrl = obj.modelsUrl;
1492
- const path_modelsUrl = path + '.modelsUrl';
1493
- if (typeof obj_modelsUrl !== 'string') {
1494
- return new TypeError('Expected "string" but received "' + typeof obj_modelsUrl + '" (at "' + path_modelsUrl + '")');
1581
+ if (obj.modelsUrl !== undefined) {
1582
+ const obj_modelsUrl = obj.modelsUrl;
1583
+ const path_modelsUrl = path + '.modelsUrl';
1584
+ if (typeof obj_modelsUrl !== 'string') {
1585
+ return new TypeError('Expected "string" but received "' + typeof obj_modelsUrl + '" (at "' + path_modelsUrl + '")');
1586
+ }
1495
1587
  }
1496
1588
  const obj_name = obj.name;
1497
1589
  const path_name = path + '.name';
1498
1590
  if (typeof obj_name !== 'string') {
1499
1591
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
1500
1592
  }
1501
- const obj_namespace = obj.namespace;
1502
- const path_namespace = path + '.namespace';
1503
- if (typeof obj_namespace !== 'string') {
1504
- return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
1593
+ if (obj.namespace !== undefined) {
1594
+ const obj_namespace = obj.namespace;
1595
+ const path_namespace = path + '.namespace';
1596
+ if (typeof obj_namespace !== 'string') {
1597
+ return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
1598
+ }
1505
1599
  }
1506
- const obj_outcomeDefinition = obj.outcomeDefinition;
1507
- const path_outcomeDefinition = path + '.outcomeDefinition';
1508
- const referencepath_outcomeDefinitionValidationError = validate$g(obj_outcomeDefinition, path_outcomeDefinition);
1509
- if (referencepath_outcomeDefinitionValidationError !== null) {
1510
- let message = 'Object doesn\'t match CdpMlModelOutcomeDefinitionRepresentation (at "' + path_outcomeDefinition + '")\n';
1511
- message += referencepath_outcomeDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1512
- return new TypeError(message);
1600
+ if (obj.outcomeDefinition !== undefined) {
1601
+ const obj_outcomeDefinition = obj.outcomeDefinition;
1602
+ const path_outcomeDefinition = path + '.outcomeDefinition';
1603
+ const referencepath_outcomeDefinitionValidationError = validate$g(obj_outcomeDefinition, path_outcomeDefinition);
1604
+ if (referencepath_outcomeDefinitionValidationError !== null) {
1605
+ let message = 'Object doesn\'t match CdpMlModelOutcomeDefinitionRepresentation (at "' + path_outcomeDefinition + '")\n';
1606
+ message += referencepath_outcomeDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1607
+ return new TypeError(message);
1608
+ }
1513
1609
  }
1514
- const obj_predictionType = obj.predictionType;
1515
- const path_predictionType = path + '.predictionType';
1516
- if (typeof obj_predictionType !== 'string') {
1517
- return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
1518
- }
1519
- const obj_refreshConfig = obj.refreshConfig;
1520
- const path_refreshConfig = path + '.refreshConfig';
1521
- const referencepath_refreshConfigValidationError = validate$b(obj_refreshConfig, path_refreshConfig);
1522
- if (referencepath_refreshConfigValidationError !== null) {
1523
- let message = 'Object doesn\'t match CdpMlModelRefreshConfigRepresentation (at "' + path_refreshConfig + '")\n';
1524
- message += referencepath_refreshConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1525
- return new TypeError(message);
1610
+ if (obj.predictionType !== undefined) {
1611
+ const obj_predictionType = obj.predictionType;
1612
+ const path_predictionType = path + '.predictionType';
1613
+ if (typeof obj_predictionType !== 'string') {
1614
+ return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
1615
+ }
1616
+ }
1617
+ if (obj.refreshConfig !== undefined) {
1618
+ const obj_refreshConfig = obj.refreshConfig;
1619
+ const path_refreshConfig = path + '.refreshConfig';
1620
+ const referencepath_refreshConfigValidationError = validate$b(obj_refreshConfig, path_refreshConfig);
1621
+ if (referencepath_refreshConfigValidationError !== null) {
1622
+ let message = 'Object doesn\'t match CdpMlModelRefreshConfigRepresentation (at "' + path_refreshConfig + '")\n';
1623
+ message += referencepath_refreshConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1624
+ return new TypeError(message);
1625
+ }
1526
1626
  }
1527
- const obj_setupVersionsUrl = obj.setupVersionsUrl;
1528
- const path_setupVersionsUrl = path + '.setupVersionsUrl';
1529
- if (typeof obj_setupVersionsUrl !== 'string') {
1530
- return new TypeError('Expected "string" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
1627
+ if (obj.setupVersionsUrl !== undefined) {
1628
+ const obj_setupVersionsUrl = obj.setupVersionsUrl;
1629
+ const path_setupVersionsUrl = path + '.setupVersionsUrl';
1630
+ if (typeof obj_setupVersionsUrl !== 'string') {
1631
+ return new TypeError('Expected "string" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
1632
+ }
1531
1633
  }
1532
1634
  const obj_status = obj.status;
1533
1635
  const path_status = path + '.status';
1534
1636
  if (typeof obj_status !== 'string') {
1535
1637
  return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
1536
1638
  }
1537
- const obj_totalInferenceCount = obj.totalInferenceCount;
1538
- const path_totalInferenceCount = path + '.totalInferenceCount';
1539
- if (typeof obj_totalInferenceCount !== 'number' || (typeof obj_totalInferenceCount === 'number' && Math.floor(obj_totalInferenceCount) !== obj_totalInferenceCount)) {
1540
- return new TypeError('Expected "integer" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
1639
+ if (obj.totalInferenceCount !== undefined) {
1640
+ const obj_totalInferenceCount = obj.totalInferenceCount;
1641
+ const path_totalInferenceCount = path + '.totalInferenceCount';
1642
+ if (typeof obj_totalInferenceCount !== 'number' || (typeof obj_totalInferenceCount === 'number' && Math.floor(obj_totalInferenceCount) !== obj_totalInferenceCount)) {
1643
+ return new TypeError('Expected "integer" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
1644
+ }
1541
1645
  }
1542
- const obj_totalWarningsCount = obj.totalWarningsCount;
1543
- const path_totalWarningsCount = path + '.totalWarningsCount';
1544
- if (typeof obj_totalWarningsCount !== 'number' || (typeof obj_totalWarningsCount === 'number' && Math.floor(obj_totalWarningsCount) !== obj_totalWarningsCount)) {
1545
- return new TypeError('Expected "integer" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
1646
+ if (obj.totalWarningsCount !== undefined) {
1647
+ const obj_totalWarningsCount = obj.totalWarningsCount;
1648
+ const path_totalWarningsCount = path + '.totalWarningsCount';
1649
+ if (typeof obj_totalWarningsCount !== 'number' || (typeof obj_totalWarningsCount === 'number' && Math.floor(obj_totalWarningsCount) !== obj_totalWarningsCount)) {
1650
+ return new TypeError('Expected "integer" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
1651
+ }
1546
1652
  }
1547
1653
  const obj_url = obj.url;
1548
1654
  const path_url = path + '.url';
@@ -1553,15 +1659,6 @@ function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
1553
1659
  return v_error === undefined ? null : v_error;
1554
1660
  }
1555
1661
  const RepresentationType$2 = 'CdpMlWorkspaceDetailRepresentation';
1556
- function keyBuilder$7(luvio, config) {
1557
- return keyPrefix + '::' + RepresentationType$2 + ':' + config.workspaceIdOrName;
1558
- }
1559
- function keyBuilderFromType$1(luvio, object) {
1560
- const keyParams = {
1561
- workspaceIdOrName: object.id
1562
- };
1563
- return keyBuilder$7(luvio, keyParams);
1564
- }
1565
1662
  function normalize$2(input, existing, path, luvio, store, timestamp) {
1566
1663
  return input;
1567
1664
  }
@@ -1601,20 +1698,28 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
1601
1698
  });
1602
1699
  }
1603
1700
 
1701
+ function IsWorkspaceId(workspaceIdOrName) {
1702
+ return workspaceIdOrName.indexOf('__') === -1 || workspaceIdOrName.startsWith('12s');
1703
+ }
1704
+ function IsModelId(modelIdOrName) {
1705
+ return modelIdOrName.startsWith('12r');
1706
+ }
1707
+
1708
+ function keyBuilder$5(luvio, params) {
1709
+ const idOrName = params.urlParams.workspaceIdOrName;
1710
+ const type = IsWorkspaceId(idOrName) ? 'id' : 'name';
1711
+ return `${keyPrefix}::${RepresentationType$2}:(id:${params.urlParams.workspaceIdOrName},type:${type})`;
1712
+ }
1713
+
1604
1714
  function select$6(luvio, params) {
1605
1715
  return select$7();
1606
1716
  }
1607
- function keyBuilder$6(luvio, params) {
1608
- return keyBuilder$7(luvio, {
1609
- workspaceIdOrName: params.urlParams.workspaceIdOrName
1610
- });
1611
- }
1612
1717
  function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
1613
1718
  getTypeCacheKeys$2(storeKeyMap, luvio, response);
1614
1719
  }
1615
1720
  function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
1616
1721
  const { body } = response;
1617
- const key = keyBuilder$6(luvio, resourceParams);
1722
+ const key = keyBuilder$5(luvio, resourceParams);
1618
1723
  luvio.storeIngest(key, ingest$2, body);
1619
1724
  const snapshot = luvio.storeLookup({
1620
1725
  recordId: key,
@@ -1630,7 +1735,7 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
1630
1735
  return snapshot;
1631
1736
  }
1632
1737
  function ingestError$2(luvio, params, error, snapshotRefresh) {
1633
- const key = keyBuilder$6(luvio, params);
1738
+ const key = keyBuilder$5(luvio, params);
1634
1739
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1635
1740
  const storeMetadataParams = {
1636
1741
  ttl: TTL$2,
@@ -1661,9 +1766,9 @@ const getCdpMlWorkspace_ConfigPropertyMetadata = [
1661
1766
  ];
1662
1767
  const getCdpMlWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getCdpMlWorkspace_ConfigPropertyMetadata);
1663
1768
  const createResourceParams$4 = /*#__PURE__*/ createResourceParams$8(getCdpMlWorkspace_ConfigPropertyMetadata);
1664
- function keyBuilder$5(luvio, config) {
1769
+ function keyBuilder$4(luvio, config) {
1665
1770
  const resourceParams = createResourceParams$4(config);
1666
- return keyBuilder$6(luvio, resourceParams);
1771
+ return keyBuilder$5(luvio, resourceParams);
1667
1772
  }
1668
1773
  function typeCheckConfig$4(untrustedConfig) {
1669
1774
  const config = {};
@@ -1721,7 +1826,7 @@ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext
1721
1826
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
1722
1827
  const { luvio, config } = context;
1723
1828
  const selector = {
1724
- recordId: keyBuilder$5(luvio, config),
1829
+ recordId: keyBuilder$4(luvio, config),
1725
1830
  node: adapterFragment$2(luvio, config),
1726
1831
  variables: {},
1727
1832
  };
@@ -1896,8 +2001,16 @@ function validate$2(obj, path = 'CdpMlModelParameterOverrideBaseRepresentation')
1896
2001
  return v_error === undefined ? null : v_error;
1897
2002
  }
1898
2003
 
2004
+ // Should match with keyBuilder
2005
+ function keyBuilderFromType(luvio, object) {
2006
+ const type = object.url.indexOf(object.name) > -1 ? 'name' : 'id';
2007
+ const urlArray = object.url.split('/');
2008
+ const idOrName = urlArray[urlArray.length - 1];
2009
+ return `${keyPrefix}::${RepresentationType$1}:(id:${idOrName},type:${type})`;
2010
+ }
2011
+
1899
2012
  const TTL$1 = 1000;
1900
- const VERSION$1 = "fd6be4e2373b9db208417a21b7500f5f";
2013
+ const VERSION$1 = "8cbcca9da420023a34b1f2bef797cf75";
1901
2014
  function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
1902
2015
  const v_error = (() => {
1903
2016
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1931,18 +2044,22 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
1931
2044
  if (typeof obj_capability !== 'string') {
1932
2045
  return new TypeError('Expected "string" but received "' + typeof obj_capability + '" (at "' + path_capability + '")');
1933
2046
  }
1934
- const obj_createdBy = obj.createdBy;
1935
- const path_createdBy = path + '.createdBy';
1936
- const referencepath_createdByValidationError = validate$o(obj_createdBy, path_createdBy);
1937
- if (referencepath_createdByValidationError !== null) {
1938
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
1939
- message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1940
- return new TypeError(message);
2047
+ if (obj.createdBy !== undefined) {
2048
+ const obj_createdBy = obj.createdBy;
2049
+ const path_createdBy = path + '.createdBy';
2050
+ const referencepath_createdByValidationError = validate$o(obj_createdBy, path_createdBy);
2051
+ if (referencepath_createdByValidationError !== null) {
2052
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
2053
+ message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2054
+ return new TypeError(message);
2055
+ }
1941
2056
  }
1942
- const obj_createdDate = obj.createdDate;
1943
- const path_createdDate = path + '.createdDate';
1944
- if (typeof obj_createdDate !== 'string') {
1945
- return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
2057
+ if (obj.createdDate !== undefined) {
2058
+ const obj_createdDate = obj.createdDate;
2059
+ const path_createdDate = path + '.createdDate';
2060
+ if (typeof obj_createdDate !== 'string') {
2061
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
2062
+ }
1946
2063
  }
1947
2064
  const obj_customizableFields = obj.customizableFields;
1948
2065
  const path_customizableFields = path + '.customizableFields';
@@ -1959,10 +2076,12 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
1959
2076
  return new TypeError(message);
1960
2077
  }
1961
2078
  }
1962
- const obj_description = obj.description;
1963
- const path_description = path + '.description';
1964
- if (typeof obj_description !== 'string') {
1965
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
2079
+ if (obj.description !== undefined) {
2080
+ const obj_description = obj.description;
2081
+ const path_description = path + '.description';
2082
+ if (typeof obj_description !== 'string') {
2083
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
2084
+ }
1966
2085
  }
1967
2086
  const obj_filter = obj.filter;
1968
2087
  const path_filter = path + '.filter';
@@ -1972,46 +2091,60 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
1972
2091
  message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1973
2092
  return new TypeError(message);
1974
2093
  }
1975
- const obj_id = obj.id;
1976
- const path_id = path + '.id';
1977
- if (typeof obj_id !== 'string') {
1978
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
2094
+ if (obj.id !== undefined) {
2095
+ const obj_id = obj.id;
2096
+ const path_id = path + '.id';
2097
+ if (typeof obj_id !== 'string') {
2098
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
2099
+ }
1979
2100
  }
1980
- const obj_label = obj.label;
1981
- const path_label = path + '.label';
1982
- if (typeof obj_label !== 'string') {
1983
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1984
- }
1985
- const obj_lastActivatedBy = obj.lastActivatedBy;
1986
- const path_lastActivatedBy = path + '.lastActivatedBy';
1987
- const referencepath_lastActivatedByValidationError = validate$o(obj_lastActivatedBy, path_lastActivatedBy);
1988
- if (referencepath_lastActivatedByValidationError !== null) {
1989
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastActivatedBy + '")\n';
1990
- message += referencepath_lastActivatedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1991
- return new TypeError(message);
2101
+ if (obj.label !== undefined) {
2102
+ const obj_label = obj.label;
2103
+ const path_label = path + '.label';
2104
+ if (typeof obj_label !== 'string') {
2105
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
2106
+ }
1992
2107
  }
1993
- const obj_lastActivatedDate = obj.lastActivatedDate;
1994
- const path_lastActivatedDate = path + '.lastActivatedDate';
1995
- if (typeof obj_lastActivatedDate !== 'string') {
1996
- return new TypeError('Expected "string" but received "' + typeof obj_lastActivatedDate + '" (at "' + path_lastActivatedDate + '")');
1997
- }
1998
- const obj_lastModifiedBy = obj.lastModifiedBy;
1999
- const path_lastModifiedBy = path + '.lastModifiedBy';
2000
- const referencepath_lastModifiedByValidationError = validate$o(obj_lastModifiedBy, path_lastModifiedBy);
2001
- if (referencepath_lastModifiedByValidationError !== null) {
2002
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
2003
- message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2004
- return new TypeError(message);
2108
+ if (obj.lastActivatedBy !== undefined) {
2109
+ const obj_lastActivatedBy = obj.lastActivatedBy;
2110
+ const path_lastActivatedBy = path + '.lastActivatedBy';
2111
+ const referencepath_lastActivatedByValidationError = validate$o(obj_lastActivatedBy, path_lastActivatedBy);
2112
+ if (referencepath_lastActivatedByValidationError !== null) {
2113
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastActivatedBy + '")\n';
2114
+ message += referencepath_lastActivatedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2115
+ return new TypeError(message);
2116
+ }
2005
2117
  }
2006
- const obj_lastModifiedDate = obj.lastModifiedDate;
2007
- const path_lastModifiedDate = path + '.lastModifiedDate';
2008
- if (typeof obj_lastModifiedDate !== 'string') {
2009
- return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
2118
+ if (obj.lastActivatedDate !== undefined) {
2119
+ const obj_lastActivatedDate = obj.lastActivatedDate;
2120
+ const path_lastActivatedDate = path + '.lastActivatedDate';
2121
+ if (typeof obj_lastActivatedDate !== 'string') {
2122
+ return new TypeError('Expected "string" but received "' + typeof obj_lastActivatedDate + '" (at "' + path_lastActivatedDate + '")');
2123
+ }
2010
2124
  }
2011
- const obj_metricsUrl = obj.metricsUrl;
2012
- const path_metricsUrl = path + '.metricsUrl';
2013
- if (typeof obj_metricsUrl !== 'string') {
2014
- return new TypeError('Expected "string" but received "' + typeof obj_metricsUrl + '" (at "' + path_metricsUrl + '")');
2125
+ if (obj.lastModifiedBy !== undefined) {
2126
+ const obj_lastModifiedBy = obj.lastModifiedBy;
2127
+ const path_lastModifiedBy = path + '.lastModifiedBy';
2128
+ const referencepath_lastModifiedByValidationError = validate$o(obj_lastModifiedBy, path_lastModifiedBy);
2129
+ if (referencepath_lastModifiedByValidationError !== null) {
2130
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
2131
+ message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2132
+ return new TypeError(message);
2133
+ }
2134
+ }
2135
+ if (obj.lastModifiedDate !== undefined) {
2136
+ const obj_lastModifiedDate = obj.lastModifiedDate;
2137
+ const path_lastModifiedDate = path + '.lastModifiedDate';
2138
+ if (typeof obj_lastModifiedDate !== 'string') {
2139
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
2140
+ }
2141
+ }
2142
+ if (obj.metricsUrl !== undefined) {
2143
+ const obj_metricsUrl = obj.metricsUrl;
2144
+ const path_metricsUrl = path + '.metricsUrl';
2145
+ if (typeof obj_metricsUrl !== 'string') {
2146
+ return new TypeError('Expected "string" but received "' + typeof obj_metricsUrl + '" (at "' + path_metricsUrl + '")');
2147
+ }
2015
2148
  }
2016
2149
  const obj_name = obj.name;
2017
2150
  const path_name = path + '.name';
@@ -2057,15 +2190,6 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
2057
2190
  return v_error === undefined ? null : v_error;
2058
2191
  }
2059
2192
  const RepresentationType$1 = 'CdpMlConfiguredModelRepresentation';
2060
- function keyBuilder$4(luvio, config) {
2061
- return keyPrefix + '::' + RepresentationType$1 + ':' + config.modelId;
2062
- }
2063
- function keyBuilderFromType(luvio, object) {
2064
- const keyParams = {
2065
- modelId: object.id
2066
- };
2067
- return keyBuilder$4(luvio, keyParams);
2068
- }
2069
2193
  function normalize$1(input, existing, path, luvio, store, timestamp) {
2070
2194
  return input;
2071
2195
  }
@@ -2106,25 +2230,27 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
2106
2230
  }
2107
2231
 
2108
2232
  const TTL = 1000;
2109
- const VERSION = "06a9e2678743ed66dde7a06f3c7a39c6";
2233
+ const VERSION = "2b3092c57f5f0a17513ae28d59875559";
2110
2234
  function validate(obj, path = 'CdpMlConfiguredModelCollectionRepresentation') {
2111
2235
  const v_error = (() => {
2112
2236
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2113
2237
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2114
2238
  }
2115
- const obj_models = obj.models;
2116
- const path_models = path + '.models';
2117
- if (!ArrayIsArray(obj_models)) {
2118
- return new TypeError('Expected "array" but received "' + typeof obj_models + '" (at "' + path_models + '")');
2119
- }
2120
- for (let i = 0; i < obj_models.length; i++) {
2121
- const obj_models_item = obj_models[i];
2122
- const path_models_item = path_models + '[' + i + ']';
2123
- const referencepath_models_itemValidationError = validate$1(obj_models_item, path_models_item);
2124
- if (referencepath_models_itemValidationError !== null) {
2125
- let message = 'Object doesn\'t match CdpMlConfiguredModelRepresentation (at "' + path_models_item + '")\n';
2126
- message += referencepath_models_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2127
- return new TypeError(message);
2239
+ if (obj.models !== undefined) {
2240
+ const obj_models = obj.models;
2241
+ const path_models = path + '.models';
2242
+ if (!ArrayIsArray(obj_models)) {
2243
+ return new TypeError('Expected "array" but received "' + typeof obj_models + '" (at "' + path_models + '")');
2244
+ }
2245
+ for (let i = 0; i < obj_models.length; i++) {
2246
+ const obj_models_item = obj_models[i];
2247
+ const path_models_item = path_models + '[' + i + ']';
2248
+ const referencepath_models_itemValidationError = validate$1(obj_models_item, path_models_item);
2249
+ if (referencepath_models_itemValidationError !== null) {
2250
+ let message = 'Object doesn\'t match CdpMlConfiguredModelRepresentation (at "' + path_models_item + '")\n';
2251
+ message += referencepath_models_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2252
+ return new TypeError(message);
2253
+ }
2128
2254
  }
2129
2255
  }
2130
2256
  const obj_totalSize = obj.totalSize;
@@ -2359,12 +2485,12 @@ const adapterName$2 = 'createCdpMlConfiguredModelCollection';
2359
2485
  const createCdpMlConfiguredModelCollection_ConfigPropertyMetadata = [
2360
2486
  generateParamConfigMetadata('workspaceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
2361
2487
  generateParamConfigMetadata('actionableFields', true, 2 /* Body */, 4 /* Unsupported */, true),
2362
- generateParamConfigMetadata('artifact', true, 2 /* Body */, 4 /* Unsupported */),
2488
+ generateParamConfigMetadata('artifact', false, 2 /* Body */, 4 /* Unsupported */),
2363
2489
  generateParamConfigMetadata('capability', true, 2 /* Body */, 0 /* String */),
2364
2490
  generateParamConfigMetadata('customizableFields', true, 2 /* Body */, 4 /* Unsupported */, true),
2365
- generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
2366
- generateParamConfigMetadata('filter', true, 2 /* Body */, 4 /* Unsupported */),
2367
- generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
2491
+ generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
2492
+ generateParamConfigMetadata('filter', false, 2 /* Body */, 4 /* Unsupported */),
2493
+ generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
2368
2494
  generateParamConfigMetadata('parameterOverrides', true, 2 /* Body */, 4 /* Unsupported */, true),
2369
2495
  generateParamConfigMetadata('position', true, 2 /* Body */, 3 /* Integer */),
2370
2496
  generateParamConfigMetadata('status', true, 2 /* Body */, 0 /* String */),
@@ -2474,15 +2600,15 @@ const createCdpMlConfiguredModelCollectionAdapterFactory = (luvio) => {
2474
2600
  };
2475
2601
  };
2476
2602
 
2603
+ function keyBuilder$1(luvio, params) {
2604
+ const modelIdOrName = params.urlParams.modelIdOrName;
2605
+ const type = IsModelId(modelIdOrName) ? 'id' : 'name';
2606
+ return `${keyPrefix}::${RepresentationType$1}:(id:${params.urlParams.modelIdOrName},type:${type})`;
2607
+ }
2608
+
2477
2609
  function select$1(luvio, params) {
2478
2610
  return select$5();
2479
2611
  }
2480
- function keyBuilder$1(luvio, params) {
2481
- return keyBuilder$4(luvio, {
2482
- modelId: params.urlParams.modelId,
2483
- workspaceIdOrName: params.urlParams.workspaceIdOrName
2484
- });
2485
- }
2486
2612
  function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
2487
2613
  getTypeCacheKeys$1(storeKeyMap, luvio, response);
2488
2614
  }
@@ -2519,7 +2645,7 @@ function createResourceRequest$1(config) {
2519
2645
  const headers = {};
2520
2646
  return {
2521
2647
  baseUri: '/services/data/v60.0',
2522
- basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models/' + config.urlParams.modelId + '',
2648
+ basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models/' + config.urlParams.modelIdOrName + '',
2523
2649
  method: 'get',
2524
2650
  body: null,
2525
2651
  urlParams: config.urlParams,
@@ -2531,7 +2657,7 @@ function createResourceRequest$1(config) {
2531
2657
 
2532
2658
  const adapterName$1 = 'getCdpMlConfiguredModel';
2533
2659
  const getCdpMlConfiguredModel_ConfigPropertyMetadata = [
2534
- generateParamConfigMetadata('modelId', true, 0 /* UrlParameter */, 0 /* String */),
2660
+ generateParamConfigMetadata('modelIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
2535
2661
  generateParamConfigMetadata('workspaceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
2536
2662
  ];
2537
2663
  const getCdpMlConfiguredModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getCdpMlConfiguredModel_ConfigPropertyMetadata);
@@ -2643,7 +2769,7 @@ function createResourceRequest(config) {
2643
2769
  const headers = {};
2644
2770
  return {
2645
2771
  baseUri: '/services/data/v60.0',
2646
- basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models/' + config.urlParams.modelId + '',
2772
+ basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models/' + config.urlParams.modelIdOrName + '',
2647
2773
  method: 'patch',
2648
2774
  body: config.body,
2649
2775
  urlParams: config.urlParams,
@@ -2655,15 +2781,15 @@ function createResourceRequest(config) {
2655
2781
 
2656
2782
  const adapterName = 'updateCdpMlConfiguredModel';
2657
2783
  const updateCdpMlConfiguredModel_ConfigPropertyMetadata = [
2658
- generateParamConfigMetadata('modelId', true, 0 /* UrlParameter */, 0 /* String */),
2784
+ generateParamConfigMetadata('modelIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
2659
2785
  generateParamConfigMetadata('workspaceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
2660
2786
  generateParamConfigMetadata('actionableFields', true, 2 /* Body */, 4 /* Unsupported */, true),
2661
- generateParamConfigMetadata('artifact', true, 2 /* Body */, 4 /* Unsupported */),
2787
+ generateParamConfigMetadata('artifact', false, 2 /* Body */, 4 /* Unsupported */),
2662
2788
  generateParamConfigMetadata('capability', true, 2 /* Body */, 0 /* String */),
2663
2789
  generateParamConfigMetadata('customizableFields', true, 2 /* Body */, 4 /* Unsupported */, true),
2664
- generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
2665
- generateParamConfigMetadata('filter', true, 2 /* Body */, 4 /* Unsupported */),
2666
- generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
2790
+ generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
2791
+ generateParamConfigMetadata('filter', false, 2 /* Body */, 4 /* Unsupported */),
2792
+ generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
2667
2793
  generateParamConfigMetadata('parameterOverrides', true, 2 /* Body */, 4 /* Unsupported */, true),
2668
2794
  generateParamConfigMetadata('position', true, 2 /* Body */, 3 /* Integer */),
2669
2795
  generateParamConfigMetadata('status', true, 2 /* Body */, 0 /* String */),