@salesforce/lds-adapters-platform-cdp-machine-learning 1.264.0 → 1.266.0-dev1

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.
@@ -241,34 +241,40 @@ function validate$k(obj, path = 'CdpAssetReferenceRepresentation') {
241
241
  }
242
242
 
243
243
  const TTL$5 = 1000;
244
- const VERSION$5 = "00d91a5e9670906e48ab7002bbc53044";
244
+ const VERSION$5 = "9ed2828bcb548d3096bd7f51010ee720";
245
245
  function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
246
246
  const v_error = (() => {
247
247
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
248
248
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
249
249
  }
250
- const obj_createdBy = obj.createdBy;
251
- const path_createdBy = path + '.createdBy';
252
- const referencepath_createdByValidationError = validate$o(obj_createdBy, path_createdBy);
253
- if (referencepath_createdByValidationError !== null) {
254
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
255
- message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
256
- return new TypeError(message);
250
+ if (obj.createdBy !== undefined) {
251
+ const obj_createdBy = obj.createdBy;
252
+ const path_createdBy = path + '.createdBy';
253
+ const referencepath_createdByValidationError = validate$o(obj_createdBy, path_createdBy);
254
+ if (referencepath_createdByValidationError !== null) {
255
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
256
+ message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
257
+ return new TypeError(message);
258
+ }
257
259
  }
258
- const obj_createdDate = obj.createdDate;
259
- const path_createdDate = path + '.createdDate';
260
- if (typeof obj_createdDate !== 'string') {
261
- return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
260
+ if (obj.createdDate !== undefined) {
261
+ const obj_createdDate = obj.createdDate;
262
+ const path_createdDate = path + '.createdDate';
263
+ if (typeof obj_createdDate !== 'string') {
264
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
265
+ }
262
266
  }
263
267
  const obj_description = obj.description;
264
268
  const path_description = path + '.description';
265
269
  if (typeof obj_description !== 'string') {
266
270
  return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
267
271
  }
268
- const obj_id = obj.id;
269
- const path_id = path + '.id';
270
- if (typeof obj_id !== 'string') {
271
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
272
+ if (obj.id !== undefined) {
273
+ const obj_id = obj.id;
274
+ const path_id = path + '.id';
275
+ if (typeof obj_id !== 'string') {
276
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
277
+ }
272
278
  }
273
279
  const obj_inputFields = obj.inputFields;
274
280
  const path_inputFields = path + '.inputFields';
@@ -290,18 +296,22 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
290
296
  if (typeof obj_label !== 'string') {
291
297
  return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
292
298
  }
293
- const obj_lastModifiedBy = obj.lastModifiedBy;
294
- const path_lastModifiedBy = path + '.lastModifiedBy';
295
- const referencepath_lastModifiedByValidationError = validate$o(obj_lastModifiedBy, path_lastModifiedBy);
296
- if (referencepath_lastModifiedByValidationError !== null) {
297
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
298
- message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
299
- return new TypeError(message);
299
+ if (obj.lastModifiedBy !== undefined) {
300
+ const obj_lastModifiedBy = obj.lastModifiedBy;
301
+ const path_lastModifiedBy = path + '.lastModifiedBy';
302
+ const referencepath_lastModifiedByValidationError = validate$o(obj_lastModifiedBy, path_lastModifiedBy);
303
+ if (referencepath_lastModifiedByValidationError !== null) {
304
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
305
+ message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
306
+ return new TypeError(message);
307
+ }
300
308
  }
301
- const obj_lastModifiedDate = obj.lastModifiedDate;
302
- const path_lastModifiedDate = path + '.lastModifiedDate';
303
- if (typeof obj_lastModifiedDate !== 'string') {
304
- return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
309
+ if (obj.lastModifiedDate !== undefined) {
310
+ const obj_lastModifiedDate = obj.lastModifiedDate;
311
+ const path_lastModifiedDate = path + '.lastModifiedDate';
312
+ if (typeof obj_lastModifiedDate !== 'string') {
313
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
314
+ }
305
315
  }
306
316
  const obj_modelType = obj.modelType;
307
317
  const path_modelType = path + '.modelType';
@@ -353,13 +363,15 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
353
363
  if (typeof obj_runtimeType !== 'string') {
354
364
  return new TypeError('Expected "string" but received "' + typeof obj_runtimeType + '" (at "' + path_runtimeType + '")');
355
365
  }
356
- const obj_source = obj.source;
357
- const path_source = path + '.source';
358
- const referencepath_sourceValidationError = validate$k(obj_source, path_source);
359
- if (referencepath_sourceValidationError !== null) {
360
- let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_source + '")\n';
361
- message += referencepath_sourceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
362
- return new TypeError(message);
366
+ if (obj.source !== undefined) {
367
+ const obj_source = obj.source;
368
+ const path_source = path + '.source';
369
+ const referencepath_sourceValidationError = validate$k(obj_source, path_source);
370
+ if (referencepath_sourceValidationError !== null) {
371
+ let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_source + '")\n';
372
+ message += referencepath_sourceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
373
+ return new TypeError(message);
374
+ }
363
375
  }
364
376
  const obj_sourceType = obj.sourceType;
365
377
  const path_sourceType = path + '.sourceType';
@@ -415,7 +427,7 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
415
427
  }
416
428
 
417
429
  const TTL$4 = 1000;
418
- const VERSION$4 = "11ef38d7d5daa2448f4bcad3c1a85425";
430
+ const VERSION$4 = "31baba639dc891173a7ce2db82dae35f";
419
431
  function validate$i(obj, path = 'CdpMlModelArtifactCollectionRepresentation') {
420
432
  const v_error = (() => {
421
433
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -443,8 +455,29 @@ function validate$i(obj, path = 'CdpMlModelArtifactCollectionRepresentation') {
443
455
  }
444
456
  const obj_nextPageUrl = obj.nextPageUrl;
445
457
  const path_nextPageUrl = path + '.nextPageUrl';
446
- if (typeof obj_nextPageUrl !== 'string') {
447
- return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
458
+ let obj_nextPageUrl_union0 = null;
459
+ const obj_nextPageUrl_union0_error = (() => {
460
+ if (typeof obj_nextPageUrl !== 'string') {
461
+ return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
462
+ }
463
+ })();
464
+ if (obj_nextPageUrl_union0_error != null) {
465
+ obj_nextPageUrl_union0 = obj_nextPageUrl_union0_error.message;
466
+ }
467
+ let obj_nextPageUrl_union1 = null;
468
+ const obj_nextPageUrl_union1_error = (() => {
469
+ if (obj_nextPageUrl !== null) {
470
+ return new TypeError('Expected "null" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
471
+ }
472
+ })();
473
+ if (obj_nextPageUrl_union1_error != null) {
474
+ obj_nextPageUrl_union1 = obj_nextPageUrl_union1_error.message;
475
+ }
476
+ if (obj_nextPageUrl_union0 && obj_nextPageUrl_union1) {
477
+ let message = 'Object doesn\'t match union (at "' + path_nextPageUrl + '")';
478
+ message += '\n' + obj_nextPageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
479
+ message += '\n' + obj_nextPageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
480
+ return new TypeError(message);
448
481
  }
449
482
  const obj_totalSize = obj.totalSize;
450
483
  const path_totalSize = path + '.totalSize';
@@ -1112,7 +1145,7 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
1112
1145
  }
1113
1146
 
1114
1147
  const TTL$3 = 1000;
1115
- const VERSION$3 = "6f430e4ccb178c06b2e6b7450e3010c2";
1148
+ const VERSION$3 = "26d1c35f9633e3491b79dec55637990a";
1116
1149
  function validate$9(obj, path = 'CdpMlWorkspaceCollectionRepresentation') {
1117
1150
  const v_error = (() => {
1118
1151
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1125,8 +1158,29 @@ function validate$9(obj, path = 'CdpMlWorkspaceCollectionRepresentation') {
1125
1158
  }
1126
1159
  const obj_nextPageUrl = obj.nextPageUrl;
1127
1160
  const path_nextPageUrl = path + '.nextPageUrl';
1128
- if (typeof obj_nextPageUrl !== 'string') {
1129
- return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
1161
+ let obj_nextPageUrl_union0 = null;
1162
+ const obj_nextPageUrl_union0_error = (() => {
1163
+ if (typeof obj_nextPageUrl !== 'string') {
1164
+ return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
1165
+ }
1166
+ })();
1167
+ if (obj_nextPageUrl_union0_error != null) {
1168
+ obj_nextPageUrl_union0 = obj_nextPageUrl_union0_error.message;
1169
+ }
1170
+ let obj_nextPageUrl_union1 = null;
1171
+ const obj_nextPageUrl_union1_error = (() => {
1172
+ if (obj_nextPageUrl !== null) {
1173
+ return new TypeError('Expected "null" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
1174
+ }
1175
+ })();
1176
+ if (obj_nextPageUrl_union1_error != null) {
1177
+ obj_nextPageUrl_union1 = obj_nextPageUrl_union1_error.message;
1178
+ }
1179
+ if (obj_nextPageUrl_union0 && obj_nextPageUrl_union1) {
1180
+ let message = 'Object doesn\'t match union (at "' + path_nextPageUrl + '")';
1181
+ message += '\n' + obj_nextPageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
1182
+ message += '\n' + obj_nextPageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
1183
+ return new TypeError(message);
1130
1184
  }
1131
1185
  const obj_totalSize = obj.totalSize;
1132
1186
  const path_totalSize = path + '.totalSize';
@@ -5,7 +5,7 @@ import { CdpMlModelParameterDefinitionBaseRepresentation as CdpMlModelParameterD
5
5
  import { CdpAssetReferenceRepresentation as CdpAssetReferenceRepresentation_CdpAssetReferenceRepresentation } from './CdpAssetReferenceRepresentation';
6
6
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
7
7
  export declare const TTL = 1000;
8
- export declare const VERSION = "00d91a5e9670906e48ab7002bbc53044";
8
+ export declare const VERSION = "9ed2828bcb548d3096bd7f51010ee720";
9
9
  export declare function validate(obj: any, path?: string): TypeError | null;
10
10
  export declare const RepresentationType: string;
11
11
  export declare function normalize(input: CdpMlModelArtifactBaseRepresentation, existing: CdpMlModelArtifactBaseRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlModelArtifactBaseRepresentationNormalized;
@@ -21,21 +21,21 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
21
21
  */
22
22
  export interface CdpMlModelArtifactBaseRepresentationNormalized {
23
23
  /** Created by */
24
- createdBy: CdpUserRepresentation_CdpUserRepresentation;
24
+ createdBy?: CdpUserRepresentation_CdpUserRepresentation;
25
25
  /** Created date */
26
- createdDate: string;
26
+ createdDate?: string;
27
27
  /** Description */
28
28
  description: string;
29
29
  /** The 18 character ID of the asset */
30
- id: string;
30
+ id?: string;
31
31
  /** Input Fields */
32
32
  inputFields: Array<CdpMlModelInputFieldBaseRepresentation_CdpMlModelInputFieldBaseRepresentation>;
33
33
  /** Label of the asset */
34
34
  label: string;
35
35
  /** Last modified by */
36
- lastModifiedBy: CdpUserRepresentation_CdpUserRepresentation;
36
+ lastModifiedBy?: CdpUserRepresentation_CdpUserRepresentation;
37
37
  /** Last modified date */
38
- lastModifiedDate: string;
38
+ lastModifiedDate?: string;
39
39
  /** Model Type */
40
40
  modelType: string;
41
41
  /** Name of the asset */
@@ -49,7 +49,7 @@ export interface CdpMlModelArtifactBaseRepresentationNormalized {
49
49
  /** Runtime Type */
50
50
  runtimeType: string;
51
51
  /** Source */
52
- source: CdpAssetReferenceRepresentation_CdpAssetReferenceRepresentation;
52
+ source?: CdpAssetReferenceRepresentation_CdpAssetReferenceRepresentation;
53
53
  /** SourceType */
54
54
  sourceType: string;
55
55
  /** Url */
@@ -62,21 +62,21 @@ export interface CdpMlModelArtifactBaseRepresentationNormalized {
62
62
  * (none)
63
63
  */
64
64
  export interface CdpMlModelArtifactBaseRepresentation {
65
- createdBy: CdpUserRepresentation_CdpUserRepresentation;
66
- createdDate: string;
65
+ createdBy?: CdpUserRepresentation_CdpUserRepresentation;
66
+ createdDate?: string;
67
67
  description: string;
68
- id: string;
68
+ id?: string;
69
69
  inputFields: Array<CdpMlModelInputFieldBaseRepresentation_CdpMlModelInputFieldBaseRepresentation>;
70
70
  label: string;
71
- lastModifiedBy: CdpUserRepresentation_CdpUserRepresentation;
72
- lastModifiedDate: string;
71
+ lastModifiedBy?: CdpUserRepresentation_CdpUserRepresentation;
72
+ lastModifiedDate?: string;
73
73
  modelType: string;
74
74
  name: string;
75
75
  namespace: string;
76
76
  outputFields: Array<CdpMlModelOutputFieldRepresentation_CdpMlModelOutputFieldRepresentation>;
77
77
  parameters: Array<CdpMlModelParameterDefinitionBaseRepresentation_CdpMlModelParameterDefinitionBaseRepresentation>;
78
78
  runtimeType: string;
79
- source: CdpAssetReferenceRepresentation_CdpAssetReferenceRepresentation;
79
+ source?: CdpAssetReferenceRepresentation_CdpAssetReferenceRepresentation;
80
80
  sourceType: string;
81
81
  url: string;
82
82
  }
@@ -1,7 +1,7 @@
1
1
  import { CdpMlModelArtifactBaseRepresentation as CdpMlModelArtifactBaseRepresentation_CdpMlModelArtifactBaseRepresentation } from './CdpMlModelArtifactBaseRepresentation';
2
2
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
3
  export declare const TTL = 1000;
4
- export declare const VERSION = "11ef38d7d5daa2448f4bcad3c1a85425";
4
+ export declare const VERSION = "31baba639dc891173a7ce2db82dae35f";
5
5
  export declare function validate(obj: any, path?: string): TypeError | null;
6
6
  export declare const RepresentationType: string;
7
7
  export declare function normalize(input: CdpMlModelArtifactCollectionRepresentation, existing: CdpMlModelArtifactCollectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlModelArtifactCollectionRepresentationNormalized;
@@ -21,7 +21,7 @@ export interface CdpMlModelArtifactCollectionRepresentationNormalized {
21
21
  /** List of model artifacts */
22
22
  modelArtifacts: Array<$64$luvio_engine_StoreLink>;
23
23
  /** Next page url if it exists */
24
- nextPageUrl: string;
24
+ nextPageUrl: string | null;
25
25
  /** Total size of collection */
26
26
  totalSize: number;
27
27
  }
@@ -34,6 +34,6 @@ export interface CdpMlModelArtifactCollectionRepresentationNormalized {
34
34
  export interface CdpMlModelArtifactCollectionRepresentation {
35
35
  currentPageUrl: string;
36
36
  modelArtifacts: Array<CdpMlModelArtifactBaseRepresentation_CdpMlModelArtifactBaseRepresentation>;
37
- nextPageUrl: string;
37
+ nextPageUrl: string | null;
38
38
  totalSize: number;
39
39
  }
@@ -1,7 +1,7 @@
1
1
  import { CdpMlWorkspaceRepresentation as CdpMlWorkspaceRepresentation_CdpMlWorkspaceRepresentation } from './CdpMlWorkspaceRepresentation';
2
2
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
3
  export declare const TTL = 1000;
4
- export declare const VERSION = "6f430e4ccb178c06b2e6b7450e3010c2";
4
+ export declare const VERSION = "26d1c35f9633e3491b79dec55637990a";
5
5
  export declare function validate(obj: any, path?: string): TypeError | null;
6
6
  export declare const RepresentationType: string;
7
7
  export declare function normalize(input: CdpMlWorkspaceCollectionRepresentation, existing: CdpMlWorkspaceCollectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlWorkspaceCollectionRepresentationNormalized;
@@ -19,7 +19,7 @@ export interface CdpMlWorkspaceCollectionRepresentationNormalized {
19
19
  /** Current page url */
20
20
  currentPageUrl: string;
21
21
  /** Next page url if it exists */
22
- nextPageUrl: string;
22
+ nextPageUrl: string | null;
23
23
  /** Total size of collection */
24
24
  totalSize: number;
25
25
  /** List of workspaces */
@@ -33,7 +33,7 @@ export interface CdpMlWorkspaceCollectionRepresentationNormalized {
33
33
  */
34
34
  export interface CdpMlWorkspaceCollectionRepresentation {
35
35
  currentPageUrl: string;
36
- nextPageUrl: string;
36
+ nextPageUrl: string | null;
37
37
  totalSize: number;
38
38
  workspaces: Array<CdpMlWorkspaceRepresentation_CdpMlWorkspaceRepresentation>;
39
39
  }
@@ -1,5 +1,5 @@
1
1
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
- export declare const VERSION = "96f850f626e6a00a5ea473f459f8f5a8";
2
+ export declare const VERSION = "3d82aa53dc46f972bda23be1d696f9bc";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
5
5
  export declare function normalize(input: CdpPaginatedResponseBaseRepresentation, existing: CdpPaginatedResponseBaseRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpPaginatedResponseBaseRepresentationNormalized;
@@ -17,7 +17,7 @@ export interface CdpPaginatedResponseBaseRepresentationNormalized {
17
17
  /** Current page url */
18
18
  currentPageUrl: string;
19
19
  /** Next page url if it exists */
20
- nextPageUrl: string;
20
+ nextPageUrl: string | null;
21
21
  /** Total size of collection */
22
22
  totalSize: number;
23
23
  }
@@ -29,6 +29,6 @@ export interface CdpPaginatedResponseBaseRepresentationNormalized {
29
29
  */
30
30
  export interface CdpPaginatedResponseBaseRepresentation {
31
31
  currentPageUrl: string;
32
- nextPageUrl: string;
32
+ nextPageUrl: string | null;
33
33
  totalSize: number;
34
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-cdp-machine-learning",
3
- "version": "1.264.0",
3
+ "version": "1.266.0-dev1",
4
4
  "description": "machine learning for data cloud",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/platform-cdp-machine-learning.js",
@@ -40,10 +40,10 @@
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.264.0"
43
+ "@salesforce/lds-bindings": "^1.266.0-dev1"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.264.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.266.0-dev1"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -1126,34 +1126,40 @@ function validate$c(obj, path = 'CdpMlModelParameterDefinitionBaseRepresentation
1126
1126
  }
1127
1127
 
1128
1128
  const TTL$3 = 1000;
1129
- const VERSION$3 = "00d91a5e9670906e48ab7002bbc53044";
1129
+ const VERSION$3 = "9ed2828bcb548d3096bd7f51010ee720";
1130
1130
  function validate$b(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
1131
1131
  const v_error = (() => {
1132
1132
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1133
1133
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1134
1134
  }
1135
- const obj_createdBy = obj.createdBy;
1136
- const path_createdBy = path + '.createdBy';
1137
- const referencepath_createdByValidationError = validate$i(obj_createdBy, path_createdBy);
1138
- if (referencepath_createdByValidationError !== null) {
1139
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
1140
- message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1141
- return new TypeError(message);
1135
+ if (obj.createdBy !== undefined) {
1136
+ const obj_createdBy = obj.createdBy;
1137
+ const path_createdBy = path + '.createdBy';
1138
+ const referencepath_createdByValidationError = validate$i(obj_createdBy, path_createdBy);
1139
+ if (referencepath_createdByValidationError !== null) {
1140
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
1141
+ message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1142
+ return new TypeError(message);
1143
+ }
1142
1144
  }
1143
- const obj_createdDate = obj.createdDate;
1144
- const path_createdDate = path + '.createdDate';
1145
- if (typeof obj_createdDate !== 'string') {
1146
- return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
1145
+ if (obj.createdDate !== undefined) {
1146
+ const obj_createdDate = obj.createdDate;
1147
+ const path_createdDate = path + '.createdDate';
1148
+ if (typeof obj_createdDate !== 'string') {
1149
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
1150
+ }
1147
1151
  }
1148
1152
  const obj_description = obj.description;
1149
1153
  const path_description = path + '.description';
1150
1154
  if (typeof obj_description !== 'string') {
1151
1155
  return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1152
1156
  }
1153
- const obj_id = obj.id;
1154
- const path_id = path + '.id';
1155
- if (typeof obj_id !== 'string') {
1156
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1157
+ if (obj.id !== undefined) {
1158
+ const obj_id = obj.id;
1159
+ const path_id = path + '.id';
1160
+ if (typeof obj_id !== 'string') {
1161
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1162
+ }
1157
1163
  }
1158
1164
  const obj_inputFields = obj.inputFields;
1159
1165
  const path_inputFields = path + '.inputFields';
@@ -1175,18 +1181,22 @@ function validate$b(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
1175
1181
  if (typeof obj_label !== 'string') {
1176
1182
  return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1177
1183
  }
1178
- const obj_lastModifiedBy = obj.lastModifiedBy;
1179
- const path_lastModifiedBy = path + '.lastModifiedBy';
1180
- const referencepath_lastModifiedByValidationError = validate$i(obj_lastModifiedBy, path_lastModifiedBy);
1181
- if (referencepath_lastModifiedByValidationError !== null) {
1182
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
1183
- message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1184
- return new TypeError(message);
1184
+ if (obj.lastModifiedBy !== undefined) {
1185
+ const obj_lastModifiedBy = obj.lastModifiedBy;
1186
+ const path_lastModifiedBy = path + '.lastModifiedBy';
1187
+ const referencepath_lastModifiedByValidationError = validate$i(obj_lastModifiedBy, path_lastModifiedBy);
1188
+ if (referencepath_lastModifiedByValidationError !== null) {
1189
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
1190
+ message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1191
+ return new TypeError(message);
1192
+ }
1185
1193
  }
1186
- const obj_lastModifiedDate = obj.lastModifiedDate;
1187
- const path_lastModifiedDate = path + '.lastModifiedDate';
1188
- if (typeof obj_lastModifiedDate !== 'string') {
1189
- return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
1194
+ if (obj.lastModifiedDate !== undefined) {
1195
+ const obj_lastModifiedDate = obj.lastModifiedDate;
1196
+ const path_lastModifiedDate = path + '.lastModifiedDate';
1197
+ if (typeof obj_lastModifiedDate !== 'string') {
1198
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
1199
+ }
1190
1200
  }
1191
1201
  const obj_modelType = obj.modelType;
1192
1202
  const path_modelType = path + '.modelType';
@@ -1238,13 +1248,15 @@ function validate$b(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
1238
1248
  if (typeof obj_runtimeType !== 'string') {
1239
1249
  return new TypeError('Expected "string" but received "' + typeof obj_runtimeType + '" (at "' + path_runtimeType + '")');
1240
1250
  }
1241
- const obj_source = obj.source;
1242
- const path_source = path + '.source';
1243
- const referencepath_sourceValidationError = validate$h(obj_source, path_source);
1244
- if (referencepath_sourceValidationError !== null) {
1245
- let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_source + '")\n';
1246
- message += referencepath_sourceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1247
- return new TypeError(message);
1251
+ if (obj.source !== undefined) {
1252
+ const obj_source = obj.source;
1253
+ const path_source = path + '.source';
1254
+ const referencepath_sourceValidationError = validate$h(obj_source, path_source);
1255
+ if (referencepath_sourceValidationError !== null) {
1256
+ let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_source + '")\n';
1257
+ message += referencepath_sourceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1258
+ return new TypeError(message);
1259
+ }
1248
1260
  }
1249
1261
  const obj_sourceType = obj.sourceType;
1250
1262
  const path_sourceType = path + '.sourceType';
@@ -1438,7 +1450,7 @@ const getCdpMlModelArtifactAdapterFactory = (luvio) => function cdpMachineLearni
1438
1450
  };
1439
1451
 
1440
1452
  const TTL$2 = 1000;
1441
- const VERSION$2 = "11ef38d7d5daa2448f4bcad3c1a85425";
1453
+ const VERSION$2 = "31baba639dc891173a7ce2db82dae35f";
1442
1454
  function validate$a(obj, path = 'CdpMlModelArtifactCollectionRepresentation') {
1443
1455
  const v_error = (() => {
1444
1456
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1466,8 +1478,29 @@ function validate$a(obj, path = 'CdpMlModelArtifactCollectionRepresentation') {
1466
1478
  }
1467
1479
  const obj_nextPageUrl = obj.nextPageUrl;
1468
1480
  const path_nextPageUrl = path + '.nextPageUrl';
1469
- if (typeof obj_nextPageUrl !== 'string') {
1470
- return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
1481
+ let obj_nextPageUrl_union0 = null;
1482
+ const obj_nextPageUrl_union0_error = (() => {
1483
+ if (typeof obj_nextPageUrl !== 'string') {
1484
+ return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
1485
+ }
1486
+ })();
1487
+ if (obj_nextPageUrl_union0_error != null) {
1488
+ obj_nextPageUrl_union0 = obj_nextPageUrl_union0_error.message;
1489
+ }
1490
+ let obj_nextPageUrl_union1 = null;
1491
+ const obj_nextPageUrl_union1_error = (() => {
1492
+ if (obj_nextPageUrl !== null) {
1493
+ return new TypeError('Expected "null" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
1494
+ }
1495
+ })();
1496
+ if (obj_nextPageUrl_union1_error != null) {
1497
+ obj_nextPageUrl_union1 = obj_nextPageUrl_union1_error.message;
1498
+ }
1499
+ if (obj_nextPageUrl_union0 && obj_nextPageUrl_union1) {
1500
+ let message = 'Object doesn\'t match union (at "' + path_nextPageUrl + '")';
1501
+ message += '\n' + obj_nextPageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
1502
+ message += '\n' + obj_nextPageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
1503
+ return new TypeError(message);
1471
1504
  }
1472
1505
  const obj_totalSize = obj.totalSize;
1473
1506
  const path_totalSize = path + '.totalSize';
@@ -2390,7 +2423,7 @@ function validate$1(obj, path = 'CdpMlWorkspaceRepresentation') {
2390
2423
  }
2391
2424
 
2392
2425
  const TTL = 1000;
2393
- const VERSION = "6f430e4ccb178c06b2e6b7450e3010c2";
2426
+ const VERSION = "26d1c35f9633e3491b79dec55637990a";
2394
2427
  function validate(obj, path = 'CdpMlWorkspaceCollectionRepresentation') {
2395
2428
  const v_error = (() => {
2396
2429
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -2403,8 +2436,29 @@ function validate(obj, path = 'CdpMlWorkspaceCollectionRepresentation') {
2403
2436
  }
2404
2437
  const obj_nextPageUrl = obj.nextPageUrl;
2405
2438
  const path_nextPageUrl = path + '.nextPageUrl';
2406
- if (typeof obj_nextPageUrl !== 'string') {
2407
- return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
2439
+ let obj_nextPageUrl_union0 = null;
2440
+ const obj_nextPageUrl_union0_error = (() => {
2441
+ if (typeof obj_nextPageUrl !== 'string') {
2442
+ return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
2443
+ }
2444
+ })();
2445
+ if (obj_nextPageUrl_union0_error != null) {
2446
+ obj_nextPageUrl_union0 = obj_nextPageUrl_union0_error.message;
2447
+ }
2448
+ let obj_nextPageUrl_union1 = null;
2449
+ const obj_nextPageUrl_union1_error = (() => {
2450
+ if (obj_nextPageUrl !== null) {
2451
+ return new TypeError('Expected "null" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
2452
+ }
2453
+ })();
2454
+ if (obj_nextPageUrl_union1_error != null) {
2455
+ obj_nextPageUrl_union1 = obj_nextPageUrl_union1_error.message;
2456
+ }
2457
+ if (obj_nextPageUrl_union0 && obj_nextPageUrl_union1) {
2458
+ let message = 'Object doesn\'t match union (at "' + path_nextPageUrl + '")';
2459
+ message += '\n' + obj_nextPageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
2460
+ message += '\n' + obj_nextPageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
2461
+ return new TypeError(message);
2408
2462
  }
2409
2463
  const obj_totalSize = obj.totalSize;
2410
2464
  const path_totalSize = path + '.totalSize';
@@ -2870,4 +2924,4 @@ withDefaultLuvio((luvio) => {
2870
2924
  });
2871
2925
 
2872
2926
  export { createCdpMlConfiguredModelCollection, getCdpMlConfiguredModel, getCdpMlConfiguredModelCollection, getCdpMlConfiguredModelCollection_imperative, getCdpMlConfiguredModel_imperative, getCdpMlModelArtifact, getCdpMlModelArtifactCollection, getCdpMlModelArtifactCollection_imperative, getCdpMlModelArtifact_imperative, getCdpMlWorkspace, getCdpMlWorkspaceCollection, getCdpMlWorkspaceCollection_imperative, getCdpMlWorkspaceNotifyChange, getCdpMlWorkspace_imperative, updateCdpMlConfiguredModel };
2873
- // version: 1.264.0-76ebb1758
2927
+ // version: 1.266.0-dev1-0affa7d84
package/src/raml/api.raml CHANGED
@@ -164,7 +164,7 @@ types:
164
164
  enum:
165
165
  - External
166
166
  - Internal
167
- source:
167
+ source?: # TODO hand rolled. W-14560715
168
168
  description: Source
169
169
  type: CdpAssetReferenceRepresentation
170
170
  sourceType:
@@ -174,22 +174,22 @@ types:
174
174
  - EdcNoCode
175
175
  - ModelConnector
176
176
  - OutOfTheBox
177
- createdBy:
177
+ createdBy?: # TODO hand rolled. W-14560715
178
178
  description: Created by
179
179
  type: CdpUserRepresentation
180
- createdDate:
180
+ createdDate?: # TODO hand rolled. W-14560715
181
181
  description: Created date
182
182
  type: string
183
- id:
183
+ id?: # TODO hand rolled. W-14560715
184
184
  description: The 18 character ID of the asset
185
185
  type: string
186
186
  label:
187
187
  description: Label of the asset
188
188
  type: string
189
- lastModifiedBy:
189
+ lastModifiedBy?: # TODO hand rolled. W-14560715
190
190
  description: Last modified by
191
191
  type: CdpUserRepresentation
192
- lastModifiedDate:
192
+ lastModifiedDate?: # TODO hand rolled. W-14560715
193
193
  description: Last modified date
194
194
  type: string
195
195
  name:
@@ -462,7 +462,7 @@ types:
462
462
  type: string
463
463
  nextPageUrl:
464
464
  description: Next page url if it exists
465
- type: string
465
+ type: string | nil # TODO hand rolled. W-14560715
466
466
  totalSize:
467
467
  description: Total size of collection
468
468
  type: integer
@@ -480,7 +480,7 @@ types:
480
480
  type: string
481
481
  nextPageUrl:
482
482
  description: Next page url if it exists
483
- type: string
483
+ type: string | nil # TODO hand rolled. W-14560715
484
484
  totalSize:
485
485
  description: Total size of collection
486
486
  type: integer
@@ -871,7 +871,7 @@ types:
871
871
  type: string
872
872
  nextPageUrl:
873
873
  description: Next page url if it exists
874
- type: string
874
+ type: string | nil # TODO hand rolled. W-14560715
875
875
  totalSize:
876
876
  description: Total size of collection
877
877
  type: integer