@salesforce/lds-adapters-platform-cdp-machine-learning 1.266.0-dev6 → 1.266.0-dev7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/platform-cdp-machine-learning.js +1474 -283
- package/dist/es/es2018/types/src/generated/adapters/createCdpMlConfiguredModel.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/updateCdpMlConfiguredModel.d.ts +12 -9
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/resources/patchSsotMachineLearningWorkspacesModelsByModelIdOrNameAndWorkspaceIdOrName.d.ts +12 -9
- package/dist/es/es2018/types/src/generated/resources/postSsotMachineLearningWorkspacesModelsByWorkspaceIdOrName.d.ts +12 -9
- package/dist/es/es2018/types/src/generated/types/CdpAssetBaseRepresentation.d.ts +7 -7
- package/dist/es/es2018/types/src/generated/types/CdpAssetReferenceInputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/CdpAssetReferenceRepresentation.d.ts +13 -13
- package/dist/es/es2018/types/src/generated/types/CdpMlConfiguredModelInputRepresentation.d.ts +22 -19
- package/dist/es/es2018/types/src/generated/types/CdpMlConfiguredModelRepresentation.d.ts +15 -15
- package/dist/es/es2018/types/src/generated/types/CdpMlCustomizableFieldDefinitionInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/CdpMlCustomizableFieldInputRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/CdpMlModelArtifactBaseRepresentation.d.ts +11 -11
- package/dist/es/es2018/types/src/generated/types/CdpMlModelParameterOverrideInputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/CdpMlModelTypeRepresentation.d.ts +7 -7
- package/dist/es/es2018/types/src/generated/types/CdpMlWorkspaceCollectionRepresentation.d.ts +5 -5
- package/dist/es/es2018/types/src/generated/types/CdpMlWorkspaceDetailRepresentation.d.ts +27 -27
- package/dist/es/es2018/types/src/generated/types/CdpMlWorkspaceRepresentation.d.ts +23 -23
- package/package.json +3 -3
- package/sfdc/index.js +1406 -215
- package/src/raml/api.raml +131 -77
- package/src/raml/luvio.raml +1 -1
- package/dist/es/es2018/types/src/generated/adapters/createCdpMlConfiguredModelCollection.d.ts +0 -25
|
@@ -79,7 +79,7 @@ function createLink(ref) {
|
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
function validate$
|
|
82
|
+
function validate$s(obj, path = 'CdpUserRepresentation') {
|
|
83
83
|
const v_error = (() => {
|
|
84
84
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
85
85
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -103,7 +103,7 @@ function validate$o(obj, path = 'CdpUserRepresentation') {
|
|
|
103
103
|
return v_error === undefined ? null : v_error;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
function validate$
|
|
106
|
+
function validate$r(obj, path = 'CdpMlModelInputFieldBaseRepresentation') {
|
|
107
107
|
const v_error = (() => {
|
|
108
108
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
109
109
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -137,7 +137,7 @@ function validate$n(obj, path = 'CdpMlModelInputFieldBaseRepresentation') {
|
|
|
137
137
|
return v_error === undefined ? null : v_error;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
function validate$
|
|
140
|
+
function validate$q(obj, path = 'CdpMlModelOutputFieldRepresentation') {
|
|
141
141
|
const v_error = (() => {
|
|
142
142
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
143
143
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -156,7 +156,7 @@ function validate$m(obj, path = 'CdpMlModelOutputFieldRepresentation') {
|
|
|
156
156
|
return v_error === undefined ? null : v_error;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
function validate$
|
|
159
|
+
function validate$p(obj, path = 'CdpMlModelParameterDefinitionBaseRepresentation') {
|
|
160
160
|
const v_error = (() => {
|
|
161
161
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
162
162
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -180,7 +180,7 @@ function validate$l(obj, path = 'CdpMlModelParameterDefinitionBaseRepresentation
|
|
|
180
180
|
return v_error === undefined ? null : v_error;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
function validate$
|
|
183
|
+
function validate$o(obj, path = 'CdpAssetReferenceRepresentation') {
|
|
184
184
|
const v_error = (() => {
|
|
185
185
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
186
186
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -188,7 +188,7 @@ function validate$k(obj, path = 'CdpAssetReferenceRepresentation') {
|
|
|
188
188
|
if (obj.createdBy !== undefined) {
|
|
189
189
|
const obj_createdBy = obj.createdBy;
|
|
190
190
|
const path_createdBy = path + '.createdBy';
|
|
191
|
-
const referencepath_createdByValidationError = validate$
|
|
191
|
+
const referencepath_createdByValidationError = validate$s(obj_createdBy, path_createdBy);
|
|
192
192
|
if (referencepath_createdByValidationError !== null) {
|
|
193
193
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
194
194
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -198,8 +198,29 @@ function validate$k(obj, path = 'CdpAssetReferenceRepresentation') {
|
|
|
198
198
|
if (obj.createdDate !== undefined) {
|
|
199
199
|
const obj_createdDate = obj.createdDate;
|
|
200
200
|
const path_createdDate = path + '.createdDate';
|
|
201
|
-
|
|
202
|
-
|
|
201
|
+
let obj_createdDate_union0 = null;
|
|
202
|
+
const obj_createdDate_union0_error = (() => {
|
|
203
|
+
if (typeof obj_createdDate !== 'string') {
|
|
204
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
205
|
+
}
|
|
206
|
+
})();
|
|
207
|
+
if (obj_createdDate_union0_error != null) {
|
|
208
|
+
obj_createdDate_union0 = obj_createdDate_union0_error.message;
|
|
209
|
+
}
|
|
210
|
+
let obj_createdDate_union1 = null;
|
|
211
|
+
const obj_createdDate_union1_error = (() => {
|
|
212
|
+
if (obj_createdDate !== null) {
|
|
213
|
+
return new TypeError('Expected "null" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
214
|
+
}
|
|
215
|
+
})();
|
|
216
|
+
if (obj_createdDate_union1_error != null) {
|
|
217
|
+
obj_createdDate_union1 = obj_createdDate_union1_error.message;
|
|
218
|
+
}
|
|
219
|
+
if (obj_createdDate_union0 && obj_createdDate_union1) {
|
|
220
|
+
let message = 'Object doesn\'t match union (at "' + path_createdDate + '")';
|
|
221
|
+
message += '\n' + obj_createdDate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
222
|
+
message += '\n' + obj_createdDate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
223
|
+
return new TypeError(message);
|
|
203
224
|
}
|
|
204
225
|
}
|
|
205
226
|
if (obj.id !== undefined) {
|
|
@@ -212,14 +233,35 @@ function validate$k(obj, path = 'CdpAssetReferenceRepresentation') {
|
|
|
212
233
|
if (obj.label !== undefined) {
|
|
213
234
|
const obj_label = obj.label;
|
|
214
235
|
const path_label = path + '.label';
|
|
215
|
-
|
|
216
|
-
|
|
236
|
+
let obj_label_union0 = null;
|
|
237
|
+
const obj_label_union0_error = (() => {
|
|
238
|
+
if (typeof obj_label !== 'string') {
|
|
239
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
240
|
+
}
|
|
241
|
+
})();
|
|
242
|
+
if (obj_label_union0_error != null) {
|
|
243
|
+
obj_label_union0 = obj_label_union0_error.message;
|
|
244
|
+
}
|
|
245
|
+
let obj_label_union1 = null;
|
|
246
|
+
const obj_label_union1_error = (() => {
|
|
247
|
+
if (obj_label !== null) {
|
|
248
|
+
return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
249
|
+
}
|
|
250
|
+
})();
|
|
251
|
+
if (obj_label_union1_error != null) {
|
|
252
|
+
obj_label_union1 = obj_label_union1_error.message;
|
|
253
|
+
}
|
|
254
|
+
if (obj_label_union0 && obj_label_union1) {
|
|
255
|
+
let message = 'Object doesn\'t match union (at "' + path_label + '")';
|
|
256
|
+
message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
257
|
+
message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
258
|
+
return new TypeError(message);
|
|
217
259
|
}
|
|
218
260
|
}
|
|
219
261
|
if (obj.lastModifiedBy !== undefined) {
|
|
220
262
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
221
263
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
222
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
264
|
+
const referencepath_lastModifiedByValidationError = validate$s(obj_lastModifiedBy, path_lastModifiedBy);
|
|
223
265
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
224
266
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
225
267
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -229,29 +271,113 @@ function validate$k(obj, path = 'CdpAssetReferenceRepresentation') {
|
|
|
229
271
|
if (obj.lastModifiedDate !== undefined) {
|
|
230
272
|
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
231
273
|
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
232
|
-
|
|
233
|
-
|
|
274
|
+
let obj_lastModifiedDate_union0 = null;
|
|
275
|
+
const obj_lastModifiedDate_union0_error = (() => {
|
|
276
|
+
if (typeof obj_lastModifiedDate !== 'string') {
|
|
277
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
278
|
+
}
|
|
279
|
+
})();
|
|
280
|
+
if (obj_lastModifiedDate_union0_error != null) {
|
|
281
|
+
obj_lastModifiedDate_union0 = obj_lastModifiedDate_union0_error.message;
|
|
282
|
+
}
|
|
283
|
+
let obj_lastModifiedDate_union1 = null;
|
|
284
|
+
const obj_lastModifiedDate_union1_error = (() => {
|
|
285
|
+
if (obj_lastModifiedDate !== null) {
|
|
286
|
+
return new TypeError('Expected "null" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
287
|
+
}
|
|
288
|
+
})();
|
|
289
|
+
if (obj_lastModifiedDate_union1_error != null) {
|
|
290
|
+
obj_lastModifiedDate_union1 = obj_lastModifiedDate_union1_error.message;
|
|
291
|
+
}
|
|
292
|
+
if (obj_lastModifiedDate_union0 && obj_lastModifiedDate_union1) {
|
|
293
|
+
let message = 'Object doesn\'t match union (at "' + path_lastModifiedDate + '")';
|
|
294
|
+
message += '\n' + obj_lastModifiedDate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
295
|
+
message += '\n' + obj_lastModifiedDate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
296
|
+
return new TypeError(message);
|
|
234
297
|
}
|
|
235
298
|
}
|
|
236
299
|
if (obj.name !== undefined) {
|
|
237
300
|
const obj_name = obj.name;
|
|
238
301
|
const path_name = path + '.name';
|
|
239
|
-
|
|
240
|
-
|
|
302
|
+
let obj_name_union0 = null;
|
|
303
|
+
const obj_name_union0_error = (() => {
|
|
304
|
+
if (typeof obj_name !== 'string') {
|
|
305
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
306
|
+
}
|
|
307
|
+
})();
|
|
308
|
+
if (obj_name_union0_error != null) {
|
|
309
|
+
obj_name_union0 = obj_name_union0_error.message;
|
|
310
|
+
}
|
|
311
|
+
let obj_name_union1 = null;
|
|
312
|
+
const obj_name_union1_error = (() => {
|
|
313
|
+
if (obj_name !== null) {
|
|
314
|
+
return new TypeError('Expected "null" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
315
|
+
}
|
|
316
|
+
})();
|
|
317
|
+
if (obj_name_union1_error != null) {
|
|
318
|
+
obj_name_union1 = obj_name_union1_error.message;
|
|
319
|
+
}
|
|
320
|
+
if (obj_name_union0 && obj_name_union1) {
|
|
321
|
+
let message = 'Object doesn\'t match union (at "' + path_name + '")';
|
|
322
|
+
message += '\n' + obj_name_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
323
|
+
message += '\n' + obj_name_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
324
|
+
return new TypeError(message);
|
|
241
325
|
}
|
|
242
326
|
}
|
|
243
327
|
if (obj.namespace !== undefined) {
|
|
244
328
|
const obj_namespace = obj.namespace;
|
|
245
329
|
const path_namespace = path + '.namespace';
|
|
246
|
-
|
|
247
|
-
|
|
330
|
+
let obj_namespace_union0 = null;
|
|
331
|
+
const obj_namespace_union0_error = (() => {
|
|
332
|
+
if (typeof obj_namespace !== 'string') {
|
|
333
|
+
return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
334
|
+
}
|
|
335
|
+
})();
|
|
336
|
+
if (obj_namespace_union0_error != null) {
|
|
337
|
+
obj_namespace_union0 = obj_namespace_union0_error.message;
|
|
338
|
+
}
|
|
339
|
+
let obj_namespace_union1 = null;
|
|
340
|
+
const obj_namespace_union1_error = (() => {
|
|
341
|
+
if (obj_namespace !== null) {
|
|
342
|
+
return new TypeError('Expected "null" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
343
|
+
}
|
|
344
|
+
})();
|
|
345
|
+
if (obj_namespace_union1_error != null) {
|
|
346
|
+
obj_namespace_union1 = obj_namespace_union1_error.message;
|
|
347
|
+
}
|
|
348
|
+
if (obj_namespace_union0 && obj_namespace_union1) {
|
|
349
|
+
let message = 'Object doesn\'t match union (at "' + path_namespace + '")';
|
|
350
|
+
message += '\n' + obj_namespace_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
351
|
+
message += '\n' + obj_namespace_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
352
|
+
return new TypeError(message);
|
|
248
353
|
}
|
|
249
354
|
}
|
|
250
355
|
if (obj.url !== undefined) {
|
|
251
356
|
const obj_url = obj.url;
|
|
252
357
|
const path_url = path + '.url';
|
|
253
|
-
|
|
254
|
-
|
|
358
|
+
let obj_url_union0 = null;
|
|
359
|
+
const obj_url_union0_error = (() => {
|
|
360
|
+
if (typeof obj_url !== 'string') {
|
|
361
|
+
return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
362
|
+
}
|
|
363
|
+
})();
|
|
364
|
+
if (obj_url_union0_error != null) {
|
|
365
|
+
obj_url_union0 = obj_url_union0_error.message;
|
|
366
|
+
}
|
|
367
|
+
let obj_url_union1 = null;
|
|
368
|
+
const obj_url_union1_error = (() => {
|
|
369
|
+
if (obj_url !== null) {
|
|
370
|
+
return new TypeError('Expected "null" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
371
|
+
}
|
|
372
|
+
})();
|
|
373
|
+
if (obj_url_union1_error != null) {
|
|
374
|
+
obj_url_union1 = obj_url_union1_error.message;
|
|
375
|
+
}
|
|
376
|
+
if (obj_url_union0 && obj_url_union1) {
|
|
377
|
+
let message = 'Object doesn\'t match union (at "' + path_url + '")';
|
|
378
|
+
message += '\n' + obj_url_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
379
|
+
message += '\n' + obj_url_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
380
|
+
return new TypeError(message);
|
|
255
381
|
}
|
|
256
382
|
}
|
|
257
383
|
})();
|
|
@@ -259,8 +385,8 @@ function validate$k(obj, path = 'CdpAssetReferenceRepresentation') {
|
|
|
259
385
|
}
|
|
260
386
|
|
|
261
387
|
const TTL$5 = 1000;
|
|
262
|
-
const VERSION$5 = "
|
|
263
|
-
function validate$
|
|
388
|
+
const VERSION$5 = "6d28f4bb028ba6cba885d3f305c117f4";
|
|
389
|
+
function validate$n(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
264
390
|
const v_error = (() => {
|
|
265
391
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
266
392
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -268,7 +394,7 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
268
394
|
if (obj.createdBy !== undefined) {
|
|
269
395
|
const obj_createdBy = obj.createdBy;
|
|
270
396
|
const path_createdBy = path + '.createdBy';
|
|
271
|
-
const referencepath_createdByValidationError = validate$
|
|
397
|
+
const referencepath_createdByValidationError = validate$s(obj_createdBy, path_createdBy);
|
|
272
398
|
if (referencepath_createdByValidationError !== null) {
|
|
273
399
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
274
400
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -278,15 +404,57 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
278
404
|
if (obj.createdDate !== undefined) {
|
|
279
405
|
const obj_createdDate = obj.createdDate;
|
|
280
406
|
const path_createdDate = path + '.createdDate';
|
|
281
|
-
|
|
282
|
-
|
|
407
|
+
let obj_createdDate_union0 = null;
|
|
408
|
+
const obj_createdDate_union0_error = (() => {
|
|
409
|
+
if (typeof obj_createdDate !== 'string') {
|
|
410
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
411
|
+
}
|
|
412
|
+
})();
|
|
413
|
+
if (obj_createdDate_union0_error != null) {
|
|
414
|
+
obj_createdDate_union0 = obj_createdDate_union0_error.message;
|
|
415
|
+
}
|
|
416
|
+
let obj_createdDate_union1 = null;
|
|
417
|
+
const obj_createdDate_union1_error = (() => {
|
|
418
|
+
if (obj_createdDate !== null) {
|
|
419
|
+
return new TypeError('Expected "null" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
420
|
+
}
|
|
421
|
+
})();
|
|
422
|
+
if (obj_createdDate_union1_error != null) {
|
|
423
|
+
obj_createdDate_union1 = obj_createdDate_union1_error.message;
|
|
424
|
+
}
|
|
425
|
+
if (obj_createdDate_union0 && obj_createdDate_union1) {
|
|
426
|
+
let message = 'Object doesn\'t match union (at "' + path_createdDate + '")';
|
|
427
|
+
message += '\n' + obj_createdDate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
428
|
+
message += '\n' + obj_createdDate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
429
|
+
return new TypeError(message);
|
|
283
430
|
}
|
|
284
431
|
}
|
|
285
432
|
if (obj.description !== undefined) {
|
|
286
433
|
const obj_description = obj.description;
|
|
287
434
|
const path_description = path + '.description';
|
|
288
|
-
|
|
289
|
-
|
|
435
|
+
let obj_description_union0 = null;
|
|
436
|
+
const obj_description_union0_error = (() => {
|
|
437
|
+
if (typeof obj_description !== 'string') {
|
|
438
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
439
|
+
}
|
|
440
|
+
})();
|
|
441
|
+
if (obj_description_union0_error != null) {
|
|
442
|
+
obj_description_union0 = obj_description_union0_error.message;
|
|
443
|
+
}
|
|
444
|
+
let obj_description_union1 = null;
|
|
445
|
+
const obj_description_union1_error = (() => {
|
|
446
|
+
if (obj_description !== null) {
|
|
447
|
+
return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
448
|
+
}
|
|
449
|
+
})();
|
|
450
|
+
if (obj_description_union1_error != null) {
|
|
451
|
+
obj_description_union1 = obj_description_union1_error.message;
|
|
452
|
+
}
|
|
453
|
+
if (obj_description_union0 && obj_description_union1) {
|
|
454
|
+
let message = 'Object doesn\'t match union (at "' + path_description + '")';
|
|
455
|
+
message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
456
|
+
message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
457
|
+
return new TypeError(message);
|
|
290
458
|
}
|
|
291
459
|
}
|
|
292
460
|
if (obj.id !== undefined) {
|
|
@@ -304,7 +472,7 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
304
472
|
for (let i = 0; i < obj_inputFields.length; i++) {
|
|
305
473
|
const obj_inputFields_item = obj_inputFields[i];
|
|
306
474
|
const path_inputFields_item = path_inputFields + '[' + i + ']';
|
|
307
|
-
const referencepath_inputFields_itemValidationError = validate$
|
|
475
|
+
const referencepath_inputFields_itemValidationError = validate$r(obj_inputFields_item, path_inputFields_item);
|
|
308
476
|
if (referencepath_inputFields_itemValidationError !== null) {
|
|
309
477
|
let message = 'Object doesn\'t match CdpMlModelInputFieldBaseRepresentation (at "' + path_inputFields_item + '")\n';
|
|
310
478
|
message += referencepath_inputFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -314,14 +482,35 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
314
482
|
if (obj.label !== undefined) {
|
|
315
483
|
const obj_label = obj.label;
|
|
316
484
|
const path_label = path + '.label';
|
|
317
|
-
|
|
318
|
-
|
|
485
|
+
let obj_label_union0 = null;
|
|
486
|
+
const obj_label_union0_error = (() => {
|
|
487
|
+
if (typeof obj_label !== 'string') {
|
|
488
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
489
|
+
}
|
|
490
|
+
})();
|
|
491
|
+
if (obj_label_union0_error != null) {
|
|
492
|
+
obj_label_union0 = obj_label_union0_error.message;
|
|
493
|
+
}
|
|
494
|
+
let obj_label_union1 = null;
|
|
495
|
+
const obj_label_union1_error = (() => {
|
|
496
|
+
if (obj_label !== null) {
|
|
497
|
+
return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
498
|
+
}
|
|
499
|
+
})();
|
|
500
|
+
if (obj_label_union1_error != null) {
|
|
501
|
+
obj_label_union1 = obj_label_union1_error.message;
|
|
502
|
+
}
|
|
503
|
+
if (obj_label_union0 && obj_label_union1) {
|
|
504
|
+
let message = 'Object doesn\'t match union (at "' + path_label + '")';
|
|
505
|
+
message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
506
|
+
message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
507
|
+
return new TypeError(message);
|
|
319
508
|
}
|
|
320
509
|
}
|
|
321
510
|
if (obj.lastModifiedBy !== undefined) {
|
|
322
511
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
323
512
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
324
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
513
|
+
const referencepath_lastModifiedByValidationError = validate$s(obj_lastModifiedBy, path_lastModifiedBy);
|
|
325
514
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
326
515
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
327
516
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -331,8 +520,29 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
331
520
|
if (obj.lastModifiedDate !== undefined) {
|
|
332
521
|
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
333
522
|
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
334
|
-
|
|
335
|
-
|
|
523
|
+
let obj_lastModifiedDate_union0 = null;
|
|
524
|
+
const obj_lastModifiedDate_union0_error = (() => {
|
|
525
|
+
if (typeof obj_lastModifiedDate !== 'string') {
|
|
526
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
527
|
+
}
|
|
528
|
+
})();
|
|
529
|
+
if (obj_lastModifiedDate_union0_error != null) {
|
|
530
|
+
obj_lastModifiedDate_union0 = obj_lastModifiedDate_union0_error.message;
|
|
531
|
+
}
|
|
532
|
+
let obj_lastModifiedDate_union1 = null;
|
|
533
|
+
const obj_lastModifiedDate_union1_error = (() => {
|
|
534
|
+
if (obj_lastModifiedDate !== null) {
|
|
535
|
+
return new TypeError('Expected "null" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
536
|
+
}
|
|
537
|
+
})();
|
|
538
|
+
if (obj_lastModifiedDate_union1_error != null) {
|
|
539
|
+
obj_lastModifiedDate_union1 = obj_lastModifiedDate_union1_error.message;
|
|
540
|
+
}
|
|
541
|
+
if (obj_lastModifiedDate_union0 && obj_lastModifiedDate_union1) {
|
|
542
|
+
let message = 'Object doesn\'t match union (at "' + path_lastModifiedDate + '")';
|
|
543
|
+
message += '\n' + obj_lastModifiedDate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
544
|
+
message += '\n' + obj_lastModifiedDate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
545
|
+
return new TypeError(message);
|
|
336
546
|
}
|
|
337
547
|
}
|
|
338
548
|
const obj_modelType = obj.modelType;
|
|
@@ -348,8 +558,29 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
348
558
|
if (obj.namespace !== undefined) {
|
|
349
559
|
const obj_namespace = obj.namespace;
|
|
350
560
|
const path_namespace = path + '.namespace';
|
|
351
|
-
|
|
352
|
-
|
|
561
|
+
let obj_namespace_union0 = null;
|
|
562
|
+
const obj_namespace_union0_error = (() => {
|
|
563
|
+
if (typeof obj_namespace !== 'string') {
|
|
564
|
+
return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
565
|
+
}
|
|
566
|
+
})();
|
|
567
|
+
if (obj_namespace_union0_error != null) {
|
|
568
|
+
obj_namespace_union0 = obj_namespace_union0_error.message;
|
|
569
|
+
}
|
|
570
|
+
let obj_namespace_union1 = null;
|
|
571
|
+
const obj_namespace_union1_error = (() => {
|
|
572
|
+
if (obj_namespace !== null) {
|
|
573
|
+
return new TypeError('Expected "null" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
574
|
+
}
|
|
575
|
+
})();
|
|
576
|
+
if (obj_namespace_union1_error != null) {
|
|
577
|
+
obj_namespace_union1 = obj_namespace_union1_error.message;
|
|
578
|
+
}
|
|
579
|
+
if (obj_namespace_union0 && obj_namespace_union1) {
|
|
580
|
+
let message = 'Object doesn\'t match union (at "' + path_namespace + '")';
|
|
581
|
+
message += '\n' + obj_namespace_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
582
|
+
message += '\n' + obj_namespace_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
583
|
+
return new TypeError(message);
|
|
353
584
|
}
|
|
354
585
|
}
|
|
355
586
|
const obj_outputFields = obj.outputFields;
|
|
@@ -360,7 +591,7 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
360
591
|
for (let i = 0; i < obj_outputFields.length; i++) {
|
|
361
592
|
const obj_outputFields_item = obj_outputFields[i];
|
|
362
593
|
const path_outputFields_item = path_outputFields + '[' + i + ']';
|
|
363
|
-
const referencepath_outputFields_itemValidationError = validate$
|
|
594
|
+
const referencepath_outputFields_itemValidationError = validate$q(obj_outputFields_item, path_outputFields_item);
|
|
364
595
|
if (referencepath_outputFields_itemValidationError !== null) {
|
|
365
596
|
let message = 'Object doesn\'t match CdpMlModelOutputFieldRepresentation (at "' + path_outputFields_item + '")\n';
|
|
366
597
|
message += referencepath_outputFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -375,7 +606,7 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
375
606
|
for (let i = 0; i < obj_parameters.length; i++) {
|
|
376
607
|
const obj_parameters_item = obj_parameters[i];
|
|
377
608
|
const path_parameters_item = path_parameters + '[' + i + ']';
|
|
378
|
-
const referencepath_parameters_itemValidationError = validate$
|
|
609
|
+
const referencepath_parameters_itemValidationError = validate$p(obj_parameters_item, path_parameters_item);
|
|
379
610
|
if (referencepath_parameters_itemValidationError !== null) {
|
|
380
611
|
let message = 'Object doesn\'t match CdpMlModelParameterDefinitionBaseRepresentation (at "' + path_parameters_item + '")\n';
|
|
381
612
|
message += referencepath_parameters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -390,7 +621,7 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
390
621
|
if (obj.source !== undefined) {
|
|
391
622
|
const obj_source = obj.source;
|
|
392
623
|
const path_source = path + '.source';
|
|
393
|
-
const referencepath_sourceValidationError = validate$
|
|
624
|
+
const referencepath_sourceValidationError = validate$o(obj_source, path_source);
|
|
394
625
|
if (referencepath_sourceValidationError !== null) {
|
|
395
626
|
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_source + '")\n';
|
|
396
627
|
message += referencepath_sourceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -430,7 +661,7 @@ function equals$5(existing, incoming) {
|
|
|
430
661
|
}
|
|
431
662
|
const ingest$5 = function CdpMlModelArtifactBaseRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
432
663
|
if (process.env.NODE_ENV !== 'production') {
|
|
433
|
-
const validateError = validate$
|
|
664
|
+
const validateError = validate$n(input);
|
|
434
665
|
if (validateError !== null) {
|
|
435
666
|
throw validateError;
|
|
436
667
|
}
|
|
@@ -452,7 +683,7 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
452
683
|
|
|
453
684
|
const TTL$4 = 1000;
|
|
454
685
|
const VERSION$4 = "31baba639dc891173a7ce2db82dae35f";
|
|
455
|
-
function validate$
|
|
686
|
+
function validate$m(obj, path = 'CdpMlModelArtifactCollectionRepresentation') {
|
|
456
687
|
const v_error = (() => {
|
|
457
688
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
458
689
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -470,7 +701,7 @@ function validate$i(obj, path = 'CdpMlModelArtifactCollectionRepresentation') {
|
|
|
470
701
|
for (let i = 0; i < obj_modelArtifacts.length; i++) {
|
|
471
702
|
const obj_modelArtifacts_item = obj_modelArtifacts[i];
|
|
472
703
|
const path_modelArtifacts_item = path_modelArtifacts + '[' + i + ']';
|
|
473
|
-
const referencepath_modelArtifacts_itemValidationError = validate$
|
|
704
|
+
const referencepath_modelArtifacts_itemValidationError = validate$n(obj_modelArtifacts_item, path_modelArtifacts_item);
|
|
474
705
|
if (referencepath_modelArtifacts_itemValidationError !== null) {
|
|
475
706
|
let message = 'Object doesn\'t match CdpMlModelArtifactBaseRepresentation (at "' + path_modelArtifacts_item + '")\n';
|
|
476
707
|
message += referencepath_modelArtifacts_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -531,7 +762,7 @@ function equals$4(existing, incoming) {
|
|
|
531
762
|
}
|
|
532
763
|
const ingest$4 = function CdpMlModelArtifactCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
533
764
|
if (process.env.NODE_ENV !== 'production') {
|
|
534
|
-
const validateError = validate$
|
|
765
|
+
const validateError = validate$m(input);
|
|
535
766
|
if (validateError !== null) {
|
|
536
767
|
throw validateError;
|
|
537
768
|
}
|
|
@@ -830,7 +1061,7 @@ const getCdpMlModelArtifactAdapterFactory = (luvio) => function cdpMachineLearni
|
|
|
830
1061
|
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
831
1062
|
};
|
|
832
1063
|
|
|
833
|
-
function validate$
|
|
1064
|
+
function validate$l(obj, path = 'CdpMlModelTypeRepresentation') {
|
|
834
1065
|
const v_error = (() => {
|
|
835
1066
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
836
1067
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -838,25 +1069,92 @@ function validate$h(obj, path = 'CdpMlModelTypeRepresentation') {
|
|
|
838
1069
|
if (obj.connectorType !== undefined) {
|
|
839
1070
|
const obj_connectorType = obj.connectorType;
|
|
840
1071
|
const path_connectorType = path + '.connectorType';
|
|
841
|
-
|
|
842
|
-
|
|
1072
|
+
let obj_connectorType_union0 = null;
|
|
1073
|
+
const obj_connectorType_union0_error = (() => {
|
|
1074
|
+
if (typeof obj_connectorType !== 'string') {
|
|
1075
|
+
return new TypeError('Expected "string" but received "' + typeof obj_connectorType + '" (at "' + path_connectorType + '")');
|
|
1076
|
+
}
|
|
1077
|
+
})();
|
|
1078
|
+
if (obj_connectorType_union0_error != null) {
|
|
1079
|
+
obj_connectorType_union0 = obj_connectorType_union0_error.message;
|
|
1080
|
+
}
|
|
1081
|
+
let obj_connectorType_union1 = null;
|
|
1082
|
+
const obj_connectorType_union1_error = (() => {
|
|
1083
|
+
if (obj_connectorType !== null) {
|
|
1084
|
+
return new TypeError('Expected "null" but received "' + typeof obj_connectorType + '" (at "' + path_connectorType + '")');
|
|
1085
|
+
}
|
|
1086
|
+
})();
|
|
1087
|
+
if (obj_connectorType_union1_error != null) {
|
|
1088
|
+
obj_connectorType_union1 = obj_connectorType_union1_error.message;
|
|
1089
|
+
}
|
|
1090
|
+
if (obj_connectorType_union0 && obj_connectorType_union1) {
|
|
1091
|
+
let message = 'Object doesn\'t match union (at "' + path_connectorType + '")';
|
|
1092
|
+
message += '\n' + obj_connectorType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1093
|
+
message += '\n' + obj_connectorType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1094
|
+
return new TypeError(message);
|
|
843
1095
|
}
|
|
844
1096
|
}
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
1097
|
+
if (obj.modelType !== undefined) {
|
|
1098
|
+
const obj_modelType = obj.modelType;
|
|
1099
|
+
const path_modelType = path + '.modelType';
|
|
1100
|
+
let obj_modelType_union0 = null;
|
|
1101
|
+
const obj_modelType_union0_error = (() => {
|
|
1102
|
+
if (typeof obj_modelType !== 'string') {
|
|
1103
|
+
return new TypeError('Expected "string" but received "' + typeof obj_modelType + '" (at "' + path_modelType + '")');
|
|
1104
|
+
}
|
|
1105
|
+
})();
|
|
1106
|
+
if (obj_modelType_union0_error != null) {
|
|
1107
|
+
obj_modelType_union0 = obj_modelType_union0_error.message;
|
|
1108
|
+
}
|
|
1109
|
+
let obj_modelType_union1 = null;
|
|
1110
|
+
const obj_modelType_union1_error = (() => {
|
|
1111
|
+
if (obj_modelType !== null) {
|
|
1112
|
+
return new TypeError('Expected "null" but received "' + typeof obj_modelType + '" (at "' + path_modelType + '")');
|
|
1113
|
+
}
|
|
1114
|
+
})();
|
|
1115
|
+
if (obj_modelType_union1_error != null) {
|
|
1116
|
+
obj_modelType_union1 = obj_modelType_union1_error.message;
|
|
1117
|
+
}
|
|
1118
|
+
if (obj_modelType_union0 && obj_modelType_union1) {
|
|
1119
|
+
let message = 'Object doesn\'t match union (at "' + path_modelType + '")';
|
|
1120
|
+
message += '\n' + obj_modelType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1121
|
+
message += '\n' + obj_modelType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1122
|
+
return new TypeError(message);
|
|
1123
|
+
}
|
|
849
1124
|
}
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
1125
|
+
if (obj.sourceType !== undefined) {
|
|
1126
|
+
const obj_sourceType = obj.sourceType;
|
|
1127
|
+
const path_sourceType = path + '.sourceType';
|
|
1128
|
+
let obj_sourceType_union0 = null;
|
|
1129
|
+
const obj_sourceType_union0_error = (() => {
|
|
1130
|
+
if (typeof obj_sourceType !== 'string') {
|
|
1131
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sourceType + '" (at "' + path_sourceType + '")');
|
|
1132
|
+
}
|
|
1133
|
+
})();
|
|
1134
|
+
if (obj_sourceType_union0_error != null) {
|
|
1135
|
+
obj_sourceType_union0 = obj_sourceType_union0_error.message;
|
|
1136
|
+
}
|
|
1137
|
+
let obj_sourceType_union1 = null;
|
|
1138
|
+
const obj_sourceType_union1_error = (() => {
|
|
1139
|
+
if (obj_sourceType !== null) {
|
|
1140
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sourceType + '" (at "' + path_sourceType + '")');
|
|
1141
|
+
}
|
|
1142
|
+
})();
|
|
1143
|
+
if (obj_sourceType_union1_error != null) {
|
|
1144
|
+
obj_sourceType_union1 = obj_sourceType_union1_error.message;
|
|
1145
|
+
}
|
|
1146
|
+
if (obj_sourceType_union0 && obj_sourceType_union1) {
|
|
1147
|
+
let message = 'Object doesn\'t match union (at "' + path_sourceType + '")';
|
|
1148
|
+
message += '\n' + obj_sourceType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1149
|
+
message += '\n' + obj_sourceType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1150
|
+
return new TypeError(message);
|
|
1151
|
+
}
|
|
854
1152
|
}
|
|
855
1153
|
})();
|
|
856
1154
|
return v_error === undefined ? null : v_error;
|
|
857
1155
|
}
|
|
858
1156
|
|
|
859
|
-
function validate$
|
|
1157
|
+
function validate$k(obj, path = 'CdpMlModelOutcomeDefinitionRepresentation') {
|
|
860
1158
|
const v_error = (() => {
|
|
861
1159
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
862
1160
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -869,7 +1167,7 @@ function validate$g(obj, path = 'CdpMlModelOutcomeDefinitionRepresentation') {
|
|
|
869
1167
|
for (let i = 0; i < obj_fields.length; i++) {
|
|
870
1168
|
const obj_fields_item = obj_fields[i];
|
|
871
1169
|
const path_fields_item = path_fields + '[' + i + ']';
|
|
872
|
-
const referencepath_fields_itemValidationError = validate$
|
|
1170
|
+
const referencepath_fields_itemValidationError = validate$q(obj_fields_item, path_fields_item);
|
|
873
1171
|
if (referencepath_fields_itemValidationError !== null) {
|
|
874
1172
|
let message = 'Object doesn\'t match CdpMlModelOutputFieldRepresentation (at "' + path_fields_item + '")\n';
|
|
875
1173
|
message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -885,7 +1183,7 @@ function validate$g(obj, path = 'CdpMlModelOutcomeDefinitionRepresentation') {
|
|
|
885
1183
|
return v_error === undefined ? null : v_error;
|
|
886
1184
|
}
|
|
887
1185
|
|
|
888
|
-
function validate$
|
|
1186
|
+
function validate$j(obj, path = 'CdpMlModelRefreshRecipientRepresentation') {
|
|
889
1187
|
const v_error = (() => {
|
|
890
1188
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
891
1189
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -909,7 +1207,7 @@ function validate$f(obj, path = 'CdpMlModelRefreshRecipientRepresentation') {
|
|
|
909
1207
|
return v_error === undefined ? null : v_error;
|
|
910
1208
|
}
|
|
911
1209
|
|
|
912
|
-
function validate$
|
|
1210
|
+
function validate$i(obj, path = 'CdpTimeZoneRepresentation') {
|
|
913
1211
|
const v_error = (() => {
|
|
914
1212
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
915
1213
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -929,7 +1227,7 @@ function validate$e(obj, path = 'CdpTimeZoneRepresentation') {
|
|
|
929
1227
|
return v_error === undefined ? null : v_error;
|
|
930
1228
|
}
|
|
931
1229
|
|
|
932
|
-
function validate$
|
|
1230
|
+
function validate$h(obj, path = 'CdpTimeRepresentation') {
|
|
933
1231
|
const v_error = (() => {
|
|
934
1232
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
935
1233
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -946,7 +1244,7 @@ function validate$d(obj, path = 'CdpTimeRepresentation') {
|
|
|
946
1244
|
}
|
|
947
1245
|
const obj_timezone = obj.timezone;
|
|
948
1246
|
const path_timezone = path + '.timezone';
|
|
949
|
-
const referencepath_timezoneValidationError = validate$
|
|
1247
|
+
const referencepath_timezoneValidationError = validate$i(obj_timezone, path_timezone);
|
|
950
1248
|
if (referencepath_timezoneValidationError !== null) {
|
|
951
1249
|
let message = 'Object doesn\'t match CdpTimeZoneRepresentation (at "' + path_timezone + '")\n';
|
|
952
1250
|
message += referencepath_timezoneValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -956,7 +1254,7 @@ function validate$d(obj, path = 'CdpTimeRepresentation') {
|
|
|
956
1254
|
return v_error === undefined ? null : v_error;
|
|
957
1255
|
}
|
|
958
1256
|
|
|
959
|
-
function validate$
|
|
1257
|
+
function validate$g(obj, path = 'CdpScheduleRepresentation') {
|
|
960
1258
|
const v_error = (() => {
|
|
961
1259
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
962
1260
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -973,7 +1271,7 @@ function validate$c(obj, path = 'CdpScheduleRepresentation') {
|
|
|
973
1271
|
}
|
|
974
1272
|
const obj_time = obj.time;
|
|
975
1273
|
const path_time = path + '.time';
|
|
976
|
-
const referencepath_timeValidationError = validate$
|
|
1274
|
+
const referencepath_timeValidationError = validate$h(obj_time, path_time);
|
|
977
1275
|
if (referencepath_timeValidationError !== null) {
|
|
978
1276
|
let message = 'Object doesn\'t match CdpTimeRepresentation (at "' + path_time + '")\n';
|
|
979
1277
|
message += referencepath_timeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -983,7 +1281,7 @@ function validate$c(obj, path = 'CdpScheduleRepresentation') {
|
|
|
983
1281
|
return v_error === undefined ? null : v_error;
|
|
984
1282
|
}
|
|
985
1283
|
|
|
986
|
-
function validate$
|
|
1284
|
+
function validate$f(obj, path = 'CdpMlModelRefreshConfigRepresentation') {
|
|
987
1285
|
const v_error = (() => {
|
|
988
1286
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
989
1287
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1001,7 +1299,7 @@ function validate$b(obj, path = 'CdpMlModelRefreshConfigRepresentation') {
|
|
|
1001
1299
|
for (let i = 0; i < obj_recipients.length; i++) {
|
|
1002
1300
|
const obj_recipients_item = obj_recipients[i];
|
|
1003
1301
|
const path_recipients_item = path_recipients + '[' + i + ']';
|
|
1004
|
-
const referencepath_recipients_itemValidationError = validate$
|
|
1302
|
+
const referencepath_recipients_itemValidationError = validate$j(obj_recipients_item, path_recipients_item);
|
|
1005
1303
|
if (referencepath_recipients_itemValidationError !== null) {
|
|
1006
1304
|
let message = 'Object doesn\'t match CdpMlModelRefreshRecipientRepresentation (at "' + path_recipients_item + '")\n';
|
|
1007
1305
|
message += referencepath_recipients_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1010,7 +1308,7 @@ function validate$b(obj, path = 'CdpMlModelRefreshConfigRepresentation') {
|
|
|
1010
1308
|
}
|
|
1011
1309
|
const obj_schedule = obj.schedule;
|
|
1012
1310
|
const path_schedule = path + '.schedule';
|
|
1013
|
-
const referencepath_scheduleValidationError = validate$
|
|
1311
|
+
const referencepath_scheduleValidationError = validate$g(obj_schedule, path_schedule);
|
|
1014
1312
|
if (referencepath_scheduleValidationError !== null) {
|
|
1015
1313
|
let message = 'Object doesn\'t match CdpScheduleRepresentation (at "' + path_schedule + '")\n';
|
|
1016
1314
|
message += referencepath_scheduleValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1020,7 +1318,7 @@ function validate$b(obj, path = 'CdpMlModelRefreshConfigRepresentation') {
|
|
|
1020
1318
|
return v_error === undefined ? null : v_error;
|
|
1021
1319
|
}
|
|
1022
1320
|
|
|
1023
|
-
function validate$
|
|
1321
|
+
function validate$e(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
1024
1322
|
const v_error = (() => {
|
|
1025
1323
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1026
1324
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1028,7 +1326,7 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
1028
1326
|
if (obj.activeSetup !== undefined) {
|
|
1029
1327
|
const obj_activeSetup = obj.activeSetup;
|
|
1030
1328
|
const path_activeSetup = path + '.activeSetup';
|
|
1031
|
-
const referencepath_activeSetupValidationError = validate$
|
|
1329
|
+
const referencepath_activeSetupValidationError = validate$o(obj_activeSetup, path_activeSetup);
|
|
1032
1330
|
if (referencepath_activeSetupValidationError !== null) {
|
|
1033
1331
|
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_activeSetup + '")\n';
|
|
1034
1332
|
message += referencepath_activeSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1038,14 +1336,35 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
1038
1336
|
if (obj.activeSetupVersionNumber !== undefined) {
|
|
1039
1337
|
const obj_activeSetupVersionNumber = obj.activeSetupVersionNumber;
|
|
1040
1338
|
const path_activeSetupVersionNumber = path + '.activeSetupVersionNumber';
|
|
1041
|
-
|
|
1042
|
-
|
|
1339
|
+
let obj_activeSetupVersionNumber_union0 = null;
|
|
1340
|
+
const obj_activeSetupVersionNumber_union0_error = (() => {
|
|
1341
|
+
if (typeof obj_activeSetupVersionNumber !== 'number' || (typeof obj_activeSetupVersionNumber === 'number' && Math.floor(obj_activeSetupVersionNumber) !== obj_activeSetupVersionNumber)) {
|
|
1342
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
|
|
1343
|
+
}
|
|
1344
|
+
})();
|
|
1345
|
+
if (obj_activeSetupVersionNumber_union0_error != null) {
|
|
1346
|
+
obj_activeSetupVersionNumber_union0 = obj_activeSetupVersionNumber_union0_error.message;
|
|
1347
|
+
}
|
|
1348
|
+
let obj_activeSetupVersionNumber_union1 = null;
|
|
1349
|
+
const obj_activeSetupVersionNumber_union1_error = (() => {
|
|
1350
|
+
if (obj_activeSetupVersionNumber !== null) {
|
|
1351
|
+
return new TypeError('Expected "null" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
|
|
1352
|
+
}
|
|
1353
|
+
})();
|
|
1354
|
+
if (obj_activeSetupVersionNumber_union1_error != null) {
|
|
1355
|
+
obj_activeSetupVersionNumber_union1 = obj_activeSetupVersionNumber_union1_error.message;
|
|
1356
|
+
}
|
|
1357
|
+
if (obj_activeSetupVersionNumber_union0 && obj_activeSetupVersionNumber_union1) {
|
|
1358
|
+
let message = 'Object doesn\'t match union (at "' + path_activeSetupVersionNumber + '")';
|
|
1359
|
+
message += '\n' + obj_activeSetupVersionNumber_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1360
|
+
message += '\n' + obj_activeSetupVersionNumber_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1361
|
+
return new TypeError(message);
|
|
1043
1362
|
}
|
|
1044
1363
|
}
|
|
1045
1364
|
if (obj.createdBy !== undefined) {
|
|
1046
1365
|
const obj_createdBy = obj.createdBy;
|
|
1047
1366
|
const path_createdBy = path + '.createdBy';
|
|
1048
|
-
const referencepath_createdByValidationError = validate$
|
|
1367
|
+
const referencepath_createdByValidationError = validate$s(obj_createdBy, path_createdBy);
|
|
1049
1368
|
if (referencepath_createdByValidationError !== null) {
|
|
1050
1369
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
1051
1370
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1055,22 +1374,85 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
1055
1374
|
if (obj.createdDate !== undefined) {
|
|
1056
1375
|
const obj_createdDate = obj.createdDate;
|
|
1057
1376
|
const path_createdDate = path + '.createdDate';
|
|
1058
|
-
|
|
1059
|
-
|
|
1377
|
+
let obj_createdDate_union0 = null;
|
|
1378
|
+
const obj_createdDate_union0_error = (() => {
|
|
1379
|
+
if (typeof obj_createdDate !== 'string') {
|
|
1380
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
1381
|
+
}
|
|
1382
|
+
})();
|
|
1383
|
+
if (obj_createdDate_union0_error != null) {
|
|
1384
|
+
obj_createdDate_union0 = obj_createdDate_union0_error.message;
|
|
1385
|
+
}
|
|
1386
|
+
let obj_createdDate_union1 = null;
|
|
1387
|
+
const obj_createdDate_union1_error = (() => {
|
|
1388
|
+
if (obj_createdDate !== null) {
|
|
1389
|
+
return new TypeError('Expected "null" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
1390
|
+
}
|
|
1391
|
+
})();
|
|
1392
|
+
if (obj_createdDate_union1_error != null) {
|
|
1393
|
+
obj_createdDate_union1 = obj_createdDate_union1_error.message;
|
|
1394
|
+
}
|
|
1395
|
+
if (obj_createdDate_union0 && obj_createdDate_union1) {
|
|
1396
|
+
let message = 'Object doesn\'t match union (at "' + path_createdDate + '")';
|
|
1397
|
+
message += '\n' + obj_createdDate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1398
|
+
message += '\n' + obj_createdDate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1399
|
+
return new TypeError(message);
|
|
1060
1400
|
}
|
|
1061
1401
|
}
|
|
1062
1402
|
if (obj.description !== undefined) {
|
|
1063
1403
|
const obj_description = obj.description;
|
|
1064
1404
|
const path_description = path + '.description';
|
|
1065
|
-
|
|
1066
|
-
|
|
1405
|
+
let obj_description_union0 = null;
|
|
1406
|
+
const obj_description_union0_error = (() => {
|
|
1407
|
+
if (typeof obj_description !== 'string') {
|
|
1408
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
1409
|
+
}
|
|
1410
|
+
})();
|
|
1411
|
+
if (obj_description_union0_error != null) {
|
|
1412
|
+
obj_description_union0 = obj_description_union0_error.message;
|
|
1413
|
+
}
|
|
1414
|
+
let obj_description_union1 = null;
|
|
1415
|
+
const obj_description_union1_error = (() => {
|
|
1416
|
+
if (obj_description !== null) {
|
|
1417
|
+
return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
1418
|
+
}
|
|
1419
|
+
})();
|
|
1420
|
+
if (obj_description_union1_error != null) {
|
|
1421
|
+
obj_description_union1 = obj_description_union1_error.message;
|
|
1422
|
+
}
|
|
1423
|
+
if (obj_description_union0 && obj_description_union1) {
|
|
1424
|
+
let message = 'Object doesn\'t match union (at "' + path_description + '")';
|
|
1425
|
+
message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1426
|
+
message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1427
|
+
return new TypeError(message);
|
|
1067
1428
|
}
|
|
1068
1429
|
}
|
|
1069
1430
|
if (obj.historiesUrl !== undefined) {
|
|
1070
1431
|
const obj_historiesUrl = obj.historiesUrl;
|
|
1071
1432
|
const path_historiesUrl = path + '.historiesUrl';
|
|
1072
|
-
|
|
1073
|
-
|
|
1433
|
+
let obj_historiesUrl_union0 = null;
|
|
1434
|
+
const obj_historiesUrl_union0_error = (() => {
|
|
1435
|
+
if (typeof obj_historiesUrl !== 'string') {
|
|
1436
|
+
return new TypeError('Expected "string" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
|
|
1437
|
+
}
|
|
1438
|
+
})();
|
|
1439
|
+
if (obj_historiesUrl_union0_error != null) {
|
|
1440
|
+
obj_historiesUrl_union0 = obj_historiesUrl_union0_error.message;
|
|
1441
|
+
}
|
|
1442
|
+
let obj_historiesUrl_union1 = null;
|
|
1443
|
+
const obj_historiesUrl_union1_error = (() => {
|
|
1444
|
+
if (obj_historiesUrl !== null) {
|
|
1445
|
+
return new TypeError('Expected "null" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
|
|
1446
|
+
}
|
|
1447
|
+
})();
|
|
1448
|
+
if (obj_historiesUrl_union1_error != null) {
|
|
1449
|
+
obj_historiesUrl_union1 = obj_historiesUrl_union1_error.message;
|
|
1450
|
+
}
|
|
1451
|
+
if (obj_historiesUrl_union0 && obj_historiesUrl_union1) {
|
|
1452
|
+
let message = 'Object doesn\'t match union (at "' + path_historiesUrl + '")';
|
|
1453
|
+
message += '\n' + obj_historiesUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1454
|
+
message += '\n' + obj_historiesUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1455
|
+
return new TypeError(message);
|
|
1074
1456
|
}
|
|
1075
1457
|
}
|
|
1076
1458
|
if (obj.id !== undefined) {
|
|
@@ -1083,14 +1465,35 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
1083
1465
|
if (obj.label !== undefined) {
|
|
1084
1466
|
const obj_label = obj.label;
|
|
1085
1467
|
const path_label = path + '.label';
|
|
1086
|
-
|
|
1087
|
-
|
|
1468
|
+
let obj_label_union0 = null;
|
|
1469
|
+
const obj_label_union0_error = (() => {
|
|
1470
|
+
if (typeof obj_label !== 'string') {
|
|
1471
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
1472
|
+
}
|
|
1473
|
+
})();
|
|
1474
|
+
if (obj_label_union0_error != null) {
|
|
1475
|
+
obj_label_union0 = obj_label_union0_error.message;
|
|
1476
|
+
}
|
|
1477
|
+
let obj_label_union1 = null;
|
|
1478
|
+
const obj_label_union1_error = (() => {
|
|
1479
|
+
if (obj_label !== null) {
|
|
1480
|
+
return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
1481
|
+
}
|
|
1482
|
+
})();
|
|
1483
|
+
if (obj_label_union1_error != null) {
|
|
1484
|
+
obj_label_union1 = obj_label_union1_error.message;
|
|
1485
|
+
}
|
|
1486
|
+
if (obj_label_union0 && obj_label_union1) {
|
|
1487
|
+
let message = 'Object doesn\'t match union (at "' + path_label + '")';
|
|
1488
|
+
message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1489
|
+
message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1490
|
+
return new TypeError(message);
|
|
1088
1491
|
}
|
|
1089
1492
|
}
|
|
1090
1493
|
if (obj.lastModifiedBy !== undefined) {
|
|
1091
1494
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
1092
1495
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
1093
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
1496
|
+
const referencepath_lastModifiedByValidationError = validate$s(obj_lastModifiedBy, path_lastModifiedBy);
|
|
1094
1497
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
1095
1498
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
1096
1499
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1100,14 +1503,35 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
1100
1503
|
if (obj.lastModifiedDate !== undefined) {
|
|
1101
1504
|
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
1102
1505
|
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
1103
|
-
|
|
1104
|
-
|
|
1506
|
+
let obj_lastModifiedDate_union0 = null;
|
|
1507
|
+
const obj_lastModifiedDate_union0_error = (() => {
|
|
1508
|
+
if (typeof obj_lastModifiedDate !== 'string') {
|
|
1509
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
1510
|
+
}
|
|
1511
|
+
})();
|
|
1512
|
+
if (obj_lastModifiedDate_union0_error != null) {
|
|
1513
|
+
obj_lastModifiedDate_union0 = obj_lastModifiedDate_union0_error.message;
|
|
1514
|
+
}
|
|
1515
|
+
let obj_lastModifiedDate_union1 = null;
|
|
1516
|
+
const obj_lastModifiedDate_union1_error = (() => {
|
|
1517
|
+
if (obj_lastModifiedDate !== null) {
|
|
1518
|
+
return new TypeError('Expected "null" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
1519
|
+
}
|
|
1520
|
+
})();
|
|
1521
|
+
if (obj_lastModifiedDate_union1_error != null) {
|
|
1522
|
+
obj_lastModifiedDate_union1 = obj_lastModifiedDate_union1_error.message;
|
|
1523
|
+
}
|
|
1524
|
+
if (obj_lastModifiedDate_union0 && obj_lastModifiedDate_union1) {
|
|
1525
|
+
let message = 'Object doesn\'t match union (at "' + path_lastModifiedDate + '")';
|
|
1526
|
+
message += '\n' + obj_lastModifiedDate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1527
|
+
message += '\n' + obj_lastModifiedDate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1528
|
+
return new TypeError(message);
|
|
1105
1529
|
}
|
|
1106
1530
|
}
|
|
1107
1531
|
if (obj.latestSetup !== undefined) {
|
|
1108
1532
|
const obj_latestSetup = obj.latestSetup;
|
|
1109
1533
|
const path_latestSetup = path + '.latestSetup';
|
|
1110
|
-
const referencepath_latestSetupValidationError = validate$
|
|
1534
|
+
const referencepath_latestSetupValidationError = validate$o(obj_latestSetup, path_latestSetup);
|
|
1111
1535
|
if (referencepath_latestSetupValidationError !== null) {
|
|
1112
1536
|
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_latestSetup + '")\n';
|
|
1113
1537
|
message += referencepath_latestSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1121,7 +1545,7 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
1121
1545
|
}
|
|
1122
1546
|
const obj_modelType = obj.modelType;
|
|
1123
1547
|
const path_modelType = path + '.modelType';
|
|
1124
|
-
const referencepath_modelTypeValidationError = validate$
|
|
1548
|
+
const referencepath_modelTypeValidationError = validate$l(obj_modelType, path_modelType);
|
|
1125
1549
|
if (referencepath_modelTypeValidationError !== null) {
|
|
1126
1550
|
let message = 'Object doesn\'t match CdpMlModelTypeRepresentation (at "' + path_modelType + '")\n';
|
|
1127
1551
|
message += referencepath_modelTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1137,15 +1561,38 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
1137
1561
|
if (typeof obj_name !== 'string') {
|
|
1138
1562
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
1139
1563
|
}
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1564
|
+
if (obj.namespace !== undefined) {
|
|
1565
|
+
const obj_namespace = obj.namespace;
|
|
1566
|
+
const path_namespace = path + '.namespace';
|
|
1567
|
+
let obj_namespace_union0 = null;
|
|
1568
|
+
const obj_namespace_union0_error = (() => {
|
|
1569
|
+
if (typeof obj_namespace !== 'string') {
|
|
1570
|
+
return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
1571
|
+
}
|
|
1572
|
+
})();
|
|
1573
|
+
if (obj_namespace_union0_error != null) {
|
|
1574
|
+
obj_namespace_union0 = obj_namespace_union0_error.message;
|
|
1575
|
+
}
|
|
1576
|
+
let obj_namespace_union1 = null;
|
|
1577
|
+
const obj_namespace_union1_error = (() => {
|
|
1578
|
+
if (obj_namespace !== null) {
|
|
1579
|
+
return new TypeError('Expected "null" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
1580
|
+
}
|
|
1581
|
+
})();
|
|
1582
|
+
if (obj_namespace_union1_error != null) {
|
|
1583
|
+
obj_namespace_union1 = obj_namespace_union1_error.message;
|
|
1584
|
+
}
|
|
1585
|
+
if (obj_namespace_union0 && obj_namespace_union1) {
|
|
1586
|
+
let message = 'Object doesn\'t match union (at "' + path_namespace + '")';
|
|
1587
|
+
message += '\n' + obj_namespace_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1588
|
+
message += '\n' + obj_namespace_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1589
|
+
return new TypeError(message);
|
|
1590
|
+
}
|
|
1144
1591
|
}
|
|
1145
1592
|
if (obj.outcomeDefinition !== undefined) {
|
|
1146
1593
|
const obj_outcomeDefinition = obj.outcomeDefinition;
|
|
1147
1594
|
const path_outcomeDefinition = path + '.outcomeDefinition';
|
|
1148
|
-
const referencepath_outcomeDefinitionValidationError = validate$
|
|
1595
|
+
const referencepath_outcomeDefinitionValidationError = validate$k(obj_outcomeDefinition, path_outcomeDefinition);
|
|
1149
1596
|
if (referencepath_outcomeDefinitionValidationError !== null) {
|
|
1150
1597
|
let message = 'Object doesn\'t match CdpMlModelOutcomeDefinitionRepresentation (at "' + path_outcomeDefinition + '")\n';
|
|
1151
1598
|
message += referencepath_outcomeDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1155,14 +1602,35 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
1155
1602
|
if (obj.predictionType !== undefined) {
|
|
1156
1603
|
const obj_predictionType = obj.predictionType;
|
|
1157
1604
|
const path_predictionType = path + '.predictionType';
|
|
1158
|
-
|
|
1159
|
-
|
|
1605
|
+
let obj_predictionType_union0 = null;
|
|
1606
|
+
const obj_predictionType_union0_error = (() => {
|
|
1607
|
+
if (typeof obj_predictionType !== 'string') {
|
|
1608
|
+
return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
|
|
1609
|
+
}
|
|
1610
|
+
})();
|
|
1611
|
+
if (obj_predictionType_union0_error != null) {
|
|
1612
|
+
obj_predictionType_union0 = obj_predictionType_union0_error.message;
|
|
1613
|
+
}
|
|
1614
|
+
let obj_predictionType_union1 = null;
|
|
1615
|
+
const obj_predictionType_union1_error = (() => {
|
|
1616
|
+
if (obj_predictionType !== null) {
|
|
1617
|
+
return new TypeError('Expected "null" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
|
|
1618
|
+
}
|
|
1619
|
+
})();
|
|
1620
|
+
if (obj_predictionType_union1_error != null) {
|
|
1621
|
+
obj_predictionType_union1 = obj_predictionType_union1_error.message;
|
|
1622
|
+
}
|
|
1623
|
+
if (obj_predictionType_union0 && obj_predictionType_union1) {
|
|
1624
|
+
let message = 'Object doesn\'t match union (at "' + path_predictionType + '")';
|
|
1625
|
+
message += '\n' + obj_predictionType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1626
|
+
message += '\n' + obj_predictionType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1627
|
+
return new TypeError(message);
|
|
1160
1628
|
}
|
|
1161
1629
|
}
|
|
1162
1630
|
if (obj.refreshConfig !== undefined) {
|
|
1163
1631
|
const obj_refreshConfig = obj.refreshConfig;
|
|
1164
1632
|
const path_refreshConfig = path + '.refreshConfig';
|
|
1165
|
-
const referencepath_refreshConfigValidationError = validate$
|
|
1633
|
+
const referencepath_refreshConfigValidationError = validate$f(obj_refreshConfig, path_refreshConfig);
|
|
1166
1634
|
if (referencepath_refreshConfigValidationError !== null) {
|
|
1167
1635
|
let message = 'Object doesn\'t match CdpMlModelRefreshConfigRepresentation (at "' + path_refreshConfig + '")\n';
|
|
1168
1636
|
message += referencepath_refreshConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1172,8 +1640,29 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
1172
1640
|
if (obj.setupVersionsUrl !== undefined) {
|
|
1173
1641
|
const obj_setupVersionsUrl = obj.setupVersionsUrl;
|
|
1174
1642
|
const path_setupVersionsUrl = path + '.setupVersionsUrl';
|
|
1175
|
-
|
|
1176
|
-
|
|
1643
|
+
let obj_setupVersionsUrl_union0 = null;
|
|
1644
|
+
const obj_setupVersionsUrl_union0_error = (() => {
|
|
1645
|
+
if (typeof obj_setupVersionsUrl !== 'string') {
|
|
1646
|
+
return new TypeError('Expected "string" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
|
|
1647
|
+
}
|
|
1648
|
+
})();
|
|
1649
|
+
if (obj_setupVersionsUrl_union0_error != null) {
|
|
1650
|
+
obj_setupVersionsUrl_union0 = obj_setupVersionsUrl_union0_error.message;
|
|
1651
|
+
}
|
|
1652
|
+
let obj_setupVersionsUrl_union1 = null;
|
|
1653
|
+
const obj_setupVersionsUrl_union1_error = (() => {
|
|
1654
|
+
if (obj_setupVersionsUrl !== null) {
|
|
1655
|
+
return new TypeError('Expected "null" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
|
|
1656
|
+
}
|
|
1657
|
+
})();
|
|
1658
|
+
if (obj_setupVersionsUrl_union1_error != null) {
|
|
1659
|
+
obj_setupVersionsUrl_union1 = obj_setupVersionsUrl_union1_error.message;
|
|
1660
|
+
}
|
|
1661
|
+
if (obj_setupVersionsUrl_union0 && obj_setupVersionsUrl_union1) {
|
|
1662
|
+
let message = 'Object doesn\'t match union (at "' + path_setupVersionsUrl + '")';
|
|
1663
|
+
message += '\n' + obj_setupVersionsUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1664
|
+
message += '\n' + obj_setupVersionsUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1665
|
+
return new TypeError(message);
|
|
1177
1666
|
}
|
|
1178
1667
|
}
|
|
1179
1668
|
const obj_status = obj.status;
|
|
@@ -1184,15 +1673,57 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
1184
1673
|
if (obj.totalInferenceCount !== undefined) {
|
|
1185
1674
|
const obj_totalInferenceCount = obj.totalInferenceCount;
|
|
1186
1675
|
const path_totalInferenceCount = path + '.totalInferenceCount';
|
|
1187
|
-
|
|
1188
|
-
|
|
1676
|
+
let obj_totalInferenceCount_union0 = null;
|
|
1677
|
+
const obj_totalInferenceCount_union0_error = (() => {
|
|
1678
|
+
if (typeof obj_totalInferenceCount !== 'number' || (typeof obj_totalInferenceCount === 'number' && Math.floor(obj_totalInferenceCount) !== obj_totalInferenceCount)) {
|
|
1679
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
|
|
1680
|
+
}
|
|
1681
|
+
})();
|
|
1682
|
+
if (obj_totalInferenceCount_union0_error != null) {
|
|
1683
|
+
obj_totalInferenceCount_union0 = obj_totalInferenceCount_union0_error.message;
|
|
1684
|
+
}
|
|
1685
|
+
let obj_totalInferenceCount_union1 = null;
|
|
1686
|
+
const obj_totalInferenceCount_union1_error = (() => {
|
|
1687
|
+
if (obj_totalInferenceCount !== null) {
|
|
1688
|
+
return new TypeError('Expected "null" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
|
|
1689
|
+
}
|
|
1690
|
+
})();
|
|
1691
|
+
if (obj_totalInferenceCount_union1_error != null) {
|
|
1692
|
+
obj_totalInferenceCount_union1 = obj_totalInferenceCount_union1_error.message;
|
|
1693
|
+
}
|
|
1694
|
+
if (obj_totalInferenceCount_union0 && obj_totalInferenceCount_union1) {
|
|
1695
|
+
let message = 'Object doesn\'t match union (at "' + path_totalInferenceCount + '")';
|
|
1696
|
+
message += '\n' + obj_totalInferenceCount_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1697
|
+
message += '\n' + obj_totalInferenceCount_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1698
|
+
return new TypeError(message);
|
|
1189
1699
|
}
|
|
1190
1700
|
}
|
|
1191
1701
|
if (obj.totalWarningsCount !== undefined) {
|
|
1192
1702
|
const obj_totalWarningsCount = obj.totalWarningsCount;
|
|
1193
1703
|
const path_totalWarningsCount = path + '.totalWarningsCount';
|
|
1194
|
-
|
|
1195
|
-
|
|
1704
|
+
let obj_totalWarningsCount_union0 = null;
|
|
1705
|
+
const obj_totalWarningsCount_union0_error = (() => {
|
|
1706
|
+
if (typeof obj_totalWarningsCount !== 'number' || (typeof obj_totalWarningsCount === 'number' && Math.floor(obj_totalWarningsCount) !== obj_totalWarningsCount)) {
|
|
1707
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
|
|
1708
|
+
}
|
|
1709
|
+
})();
|
|
1710
|
+
if (obj_totalWarningsCount_union0_error != null) {
|
|
1711
|
+
obj_totalWarningsCount_union0 = obj_totalWarningsCount_union0_error.message;
|
|
1712
|
+
}
|
|
1713
|
+
let obj_totalWarningsCount_union1 = null;
|
|
1714
|
+
const obj_totalWarningsCount_union1_error = (() => {
|
|
1715
|
+
if (obj_totalWarningsCount !== null) {
|
|
1716
|
+
return new TypeError('Expected "null" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
|
|
1717
|
+
}
|
|
1718
|
+
})();
|
|
1719
|
+
if (obj_totalWarningsCount_union1_error != null) {
|
|
1720
|
+
obj_totalWarningsCount_union1 = obj_totalWarningsCount_union1_error.message;
|
|
1721
|
+
}
|
|
1722
|
+
if (obj_totalWarningsCount_union0 && obj_totalWarningsCount_union1) {
|
|
1723
|
+
let message = 'Object doesn\'t match union (at "' + path_totalWarningsCount + '")';
|
|
1724
|
+
message += '\n' + obj_totalWarningsCount_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1725
|
+
message += '\n' + obj_totalWarningsCount_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1726
|
+
return new TypeError(message);
|
|
1196
1727
|
}
|
|
1197
1728
|
}
|
|
1198
1729
|
const obj_url = obj.url;
|
|
@@ -1205,42 +1736,67 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
1205
1736
|
}
|
|
1206
1737
|
|
|
1207
1738
|
const TTL$3 = 1000;
|
|
1208
|
-
const VERSION$3 = "
|
|
1209
|
-
function validate$
|
|
1739
|
+
const VERSION$3 = "e6a8612718f37385e9d7622527f26c5c";
|
|
1740
|
+
function validate$d(obj, path = 'CdpMlWorkspaceCollectionRepresentation') {
|
|
1210
1741
|
const v_error = (() => {
|
|
1211
1742
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1212
1743
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1213
1744
|
}
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
if (
|
|
1224
|
-
|
|
1745
|
+
if (obj.currentPageUrl !== undefined) {
|
|
1746
|
+
const obj_currentPageUrl = obj.currentPageUrl;
|
|
1747
|
+
const path_currentPageUrl = path + '.currentPageUrl';
|
|
1748
|
+
let obj_currentPageUrl_union0 = null;
|
|
1749
|
+
const obj_currentPageUrl_union0_error = (() => {
|
|
1750
|
+
if (typeof obj_currentPageUrl !== 'string') {
|
|
1751
|
+
return new TypeError('Expected "string" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
|
|
1752
|
+
}
|
|
1753
|
+
})();
|
|
1754
|
+
if (obj_currentPageUrl_union0_error != null) {
|
|
1755
|
+
obj_currentPageUrl_union0 = obj_currentPageUrl_union0_error.message;
|
|
1756
|
+
}
|
|
1757
|
+
let obj_currentPageUrl_union1 = null;
|
|
1758
|
+
const obj_currentPageUrl_union1_error = (() => {
|
|
1759
|
+
if (obj_currentPageUrl !== null) {
|
|
1760
|
+
return new TypeError('Expected "null" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
|
|
1761
|
+
}
|
|
1762
|
+
})();
|
|
1763
|
+
if (obj_currentPageUrl_union1_error != null) {
|
|
1764
|
+
obj_currentPageUrl_union1 = obj_currentPageUrl_union1_error.message;
|
|
1765
|
+
}
|
|
1766
|
+
if (obj_currentPageUrl_union0 && obj_currentPageUrl_union1) {
|
|
1767
|
+
let message = 'Object doesn\'t match union (at "' + path_currentPageUrl + '")';
|
|
1768
|
+
message += '\n' + obj_currentPageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1769
|
+
message += '\n' + obj_currentPageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1770
|
+
return new TypeError(message);
|
|
1225
1771
|
}
|
|
1226
|
-
})();
|
|
1227
|
-
if (obj_nextPageUrl_union0_error != null) {
|
|
1228
|
-
obj_nextPageUrl_union0 = obj_nextPageUrl_union0_error.message;
|
|
1229
1772
|
}
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1773
|
+
if (obj.nextPageUrl !== undefined) {
|
|
1774
|
+
const obj_nextPageUrl = obj.nextPageUrl;
|
|
1775
|
+
const path_nextPageUrl = path + '.nextPageUrl';
|
|
1776
|
+
let obj_nextPageUrl_union0 = null;
|
|
1777
|
+
const obj_nextPageUrl_union0_error = (() => {
|
|
1778
|
+
if (typeof obj_nextPageUrl !== 'string') {
|
|
1779
|
+
return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
|
|
1780
|
+
}
|
|
1781
|
+
})();
|
|
1782
|
+
if (obj_nextPageUrl_union0_error != null) {
|
|
1783
|
+
obj_nextPageUrl_union0 = obj_nextPageUrl_union0_error.message;
|
|
1784
|
+
}
|
|
1785
|
+
let obj_nextPageUrl_union1 = null;
|
|
1786
|
+
const obj_nextPageUrl_union1_error = (() => {
|
|
1787
|
+
if (obj_nextPageUrl !== null) {
|
|
1788
|
+
return new TypeError('Expected "null" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
|
|
1789
|
+
}
|
|
1790
|
+
})();
|
|
1791
|
+
if (obj_nextPageUrl_union1_error != null) {
|
|
1792
|
+
obj_nextPageUrl_union1 = obj_nextPageUrl_union1_error.message;
|
|
1793
|
+
}
|
|
1794
|
+
if (obj_nextPageUrl_union0 && obj_nextPageUrl_union1) {
|
|
1795
|
+
let message = 'Object doesn\'t match union (at "' + path_nextPageUrl + '")';
|
|
1796
|
+
message += '\n' + obj_nextPageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1797
|
+
message += '\n' + obj_nextPageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1798
|
+
return new TypeError(message);
|
|
1234
1799
|
}
|
|
1235
|
-
})();
|
|
1236
|
-
if (obj_nextPageUrl_union1_error != null) {
|
|
1237
|
-
obj_nextPageUrl_union1 = obj_nextPageUrl_union1_error.message;
|
|
1238
|
-
}
|
|
1239
|
-
if (obj_nextPageUrl_union0 && obj_nextPageUrl_union1) {
|
|
1240
|
-
let message = 'Object doesn\'t match union (at "' + path_nextPageUrl + '")';
|
|
1241
|
-
message += '\n' + obj_nextPageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1242
|
-
message += '\n' + obj_nextPageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1243
|
-
return new TypeError(message);
|
|
1244
1800
|
}
|
|
1245
1801
|
const obj_totalSize = obj.totalSize;
|
|
1246
1802
|
const path_totalSize = path + '.totalSize';
|
|
@@ -1255,7 +1811,7 @@ function validate$9(obj, path = 'CdpMlWorkspaceCollectionRepresentation') {
|
|
|
1255
1811
|
for (let i = 0; i < obj_workspaces.length; i++) {
|
|
1256
1812
|
const obj_workspaces_item = obj_workspaces[i];
|
|
1257
1813
|
const path_workspaces_item = path_workspaces + '[' + i + ']';
|
|
1258
|
-
const referencepath_workspaces_itemValidationError = validate$
|
|
1814
|
+
const referencepath_workspaces_itemValidationError = validate$e(obj_workspaces_item, path_workspaces_item);
|
|
1259
1815
|
if (referencepath_workspaces_itemValidationError !== null) {
|
|
1260
1816
|
let message = 'Object doesn\'t match CdpMlWorkspaceRepresentation (at "' + path_workspaces_item + '")\n';
|
|
1261
1817
|
message += referencepath_workspaces_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1285,7 +1841,7 @@ function equals$3(existing, incoming) {
|
|
|
1285
1841
|
}
|
|
1286
1842
|
const ingest$3 = function CdpMlWorkspaceCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1287
1843
|
if (process.env.NODE_ENV !== 'production') {
|
|
1288
|
-
const validateError = validate$
|
|
1844
|
+
const validateError = validate$d(input);
|
|
1289
1845
|
if (validateError !== null) {
|
|
1290
1846
|
throw validateError;
|
|
1291
1847
|
}
|
|
@@ -1458,8 +2014,8 @@ function keyBuilderFromType$1(luvio, object) {
|
|
|
1458
2014
|
}
|
|
1459
2015
|
|
|
1460
2016
|
const TTL$2 = 1000;
|
|
1461
|
-
const VERSION$2 = "
|
|
1462
|
-
function validate$
|
|
2017
|
+
const VERSION$2 = "1cb47dd9b0cc811f1ad3318c7245d465";
|
|
2018
|
+
function validate$c(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
1463
2019
|
const v_error = (() => {
|
|
1464
2020
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1465
2021
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1479,7 +2035,7 @@ function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
1479
2035
|
if (obj.activeSetup !== undefined) {
|
|
1480
2036
|
const obj_activeSetup = obj.activeSetup;
|
|
1481
2037
|
const path_activeSetup = path + '.activeSetup';
|
|
1482
|
-
const referencepath_activeSetupValidationError = validate$
|
|
2038
|
+
const referencepath_activeSetupValidationError = validate$o(obj_activeSetup, path_activeSetup);
|
|
1483
2039
|
if (referencepath_activeSetupValidationError !== null) {
|
|
1484
2040
|
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_activeSetup + '")\n';
|
|
1485
2041
|
message += referencepath_activeSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1489,14 +2045,35 @@ function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
1489
2045
|
if (obj.activeSetupVersionNumber !== undefined) {
|
|
1490
2046
|
const obj_activeSetupVersionNumber = obj.activeSetupVersionNumber;
|
|
1491
2047
|
const path_activeSetupVersionNumber = path + '.activeSetupVersionNumber';
|
|
1492
|
-
|
|
1493
|
-
|
|
2048
|
+
let obj_activeSetupVersionNumber_union0 = null;
|
|
2049
|
+
const obj_activeSetupVersionNumber_union0_error = (() => {
|
|
2050
|
+
if (typeof obj_activeSetupVersionNumber !== 'number' || (typeof obj_activeSetupVersionNumber === 'number' && Math.floor(obj_activeSetupVersionNumber) !== obj_activeSetupVersionNumber)) {
|
|
2051
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
|
|
2052
|
+
}
|
|
2053
|
+
})();
|
|
2054
|
+
if (obj_activeSetupVersionNumber_union0_error != null) {
|
|
2055
|
+
obj_activeSetupVersionNumber_union0 = obj_activeSetupVersionNumber_union0_error.message;
|
|
2056
|
+
}
|
|
2057
|
+
let obj_activeSetupVersionNumber_union1 = null;
|
|
2058
|
+
const obj_activeSetupVersionNumber_union1_error = (() => {
|
|
2059
|
+
if (obj_activeSetupVersionNumber !== null) {
|
|
2060
|
+
return new TypeError('Expected "null" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
|
|
2061
|
+
}
|
|
2062
|
+
})();
|
|
2063
|
+
if (obj_activeSetupVersionNumber_union1_error != null) {
|
|
2064
|
+
obj_activeSetupVersionNumber_union1 = obj_activeSetupVersionNumber_union1_error.message;
|
|
2065
|
+
}
|
|
2066
|
+
if (obj_activeSetupVersionNumber_union0 && obj_activeSetupVersionNumber_union1) {
|
|
2067
|
+
let message = 'Object doesn\'t match union (at "' + path_activeSetupVersionNumber + '")';
|
|
2068
|
+
message += '\n' + obj_activeSetupVersionNumber_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2069
|
+
message += '\n' + obj_activeSetupVersionNumber_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2070
|
+
return new TypeError(message);
|
|
1494
2071
|
}
|
|
1495
2072
|
}
|
|
1496
2073
|
if (obj.createdBy !== undefined) {
|
|
1497
2074
|
const obj_createdBy = obj.createdBy;
|
|
1498
2075
|
const path_createdBy = path + '.createdBy';
|
|
1499
|
-
const referencepath_createdByValidationError = validate$
|
|
2076
|
+
const referencepath_createdByValidationError = validate$s(obj_createdBy, path_createdBy);
|
|
1500
2077
|
if (referencepath_createdByValidationError !== null) {
|
|
1501
2078
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
1502
2079
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1506,22 +2083,85 @@ function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
1506
2083
|
if (obj.createdDate !== undefined) {
|
|
1507
2084
|
const obj_createdDate = obj.createdDate;
|
|
1508
2085
|
const path_createdDate = path + '.createdDate';
|
|
1509
|
-
|
|
1510
|
-
|
|
2086
|
+
let obj_createdDate_union0 = null;
|
|
2087
|
+
const obj_createdDate_union0_error = (() => {
|
|
2088
|
+
if (typeof obj_createdDate !== 'string') {
|
|
2089
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
2090
|
+
}
|
|
2091
|
+
})();
|
|
2092
|
+
if (obj_createdDate_union0_error != null) {
|
|
2093
|
+
obj_createdDate_union0 = obj_createdDate_union0_error.message;
|
|
2094
|
+
}
|
|
2095
|
+
let obj_createdDate_union1 = null;
|
|
2096
|
+
const obj_createdDate_union1_error = (() => {
|
|
2097
|
+
if (obj_createdDate !== null) {
|
|
2098
|
+
return new TypeError('Expected "null" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
2099
|
+
}
|
|
2100
|
+
})();
|
|
2101
|
+
if (obj_createdDate_union1_error != null) {
|
|
2102
|
+
obj_createdDate_union1 = obj_createdDate_union1_error.message;
|
|
2103
|
+
}
|
|
2104
|
+
if (obj_createdDate_union0 && obj_createdDate_union1) {
|
|
2105
|
+
let message = 'Object doesn\'t match union (at "' + path_createdDate + '")';
|
|
2106
|
+
message += '\n' + obj_createdDate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2107
|
+
message += '\n' + obj_createdDate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2108
|
+
return new TypeError(message);
|
|
1511
2109
|
}
|
|
1512
2110
|
}
|
|
1513
2111
|
if (obj.description !== undefined) {
|
|
1514
2112
|
const obj_description = obj.description;
|
|
1515
2113
|
const path_description = path + '.description';
|
|
1516
|
-
|
|
1517
|
-
|
|
2114
|
+
let obj_description_union0 = null;
|
|
2115
|
+
const obj_description_union0_error = (() => {
|
|
2116
|
+
if (typeof obj_description !== 'string') {
|
|
2117
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
2118
|
+
}
|
|
2119
|
+
})();
|
|
2120
|
+
if (obj_description_union0_error != null) {
|
|
2121
|
+
obj_description_union0 = obj_description_union0_error.message;
|
|
2122
|
+
}
|
|
2123
|
+
let obj_description_union1 = null;
|
|
2124
|
+
const obj_description_union1_error = (() => {
|
|
2125
|
+
if (obj_description !== null) {
|
|
2126
|
+
return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
2127
|
+
}
|
|
2128
|
+
})();
|
|
2129
|
+
if (obj_description_union1_error != null) {
|
|
2130
|
+
obj_description_union1 = obj_description_union1_error.message;
|
|
2131
|
+
}
|
|
2132
|
+
if (obj_description_union0 && obj_description_union1) {
|
|
2133
|
+
let message = 'Object doesn\'t match union (at "' + path_description + '")';
|
|
2134
|
+
message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2135
|
+
message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2136
|
+
return new TypeError(message);
|
|
1518
2137
|
}
|
|
1519
2138
|
}
|
|
1520
2139
|
if (obj.historiesUrl !== undefined) {
|
|
1521
2140
|
const obj_historiesUrl = obj.historiesUrl;
|
|
1522
2141
|
const path_historiesUrl = path + '.historiesUrl';
|
|
1523
|
-
|
|
1524
|
-
|
|
2142
|
+
let obj_historiesUrl_union0 = null;
|
|
2143
|
+
const obj_historiesUrl_union0_error = (() => {
|
|
2144
|
+
if (typeof obj_historiesUrl !== 'string') {
|
|
2145
|
+
return new TypeError('Expected "string" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
|
|
2146
|
+
}
|
|
2147
|
+
})();
|
|
2148
|
+
if (obj_historiesUrl_union0_error != null) {
|
|
2149
|
+
obj_historiesUrl_union0 = obj_historiesUrl_union0_error.message;
|
|
2150
|
+
}
|
|
2151
|
+
let obj_historiesUrl_union1 = null;
|
|
2152
|
+
const obj_historiesUrl_union1_error = (() => {
|
|
2153
|
+
if (obj_historiesUrl !== null) {
|
|
2154
|
+
return new TypeError('Expected "null" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
|
|
2155
|
+
}
|
|
2156
|
+
})();
|
|
2157
|
+
if (obj_historiesUrl_union1_error != null) {
|
|
2158
|
+
obj_historiesUrl_union1 = obj_historiesUrl_union1_error.message;
|
|
2159
|
+
}
|
|
2160
|
+
if (obj_historiesUrl_union0 && obj_historiesUrl_union1) {
|
|
2161
|
+
let message = 'Object doesn\'t match union (at "' + path_historiesUrl + '")';
|
|
2162
|
+
message += '\n' + obj_historiesUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2163
|
+
message += '\n' + obj_historiesUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2164
|
+
return new TypeError(message);
|
|
1525
2165
|
}
|
|
1526
2166
|
}
|
|
1527
2167
|
if (obj.id !== undefined) {
|
|
@@ -1534,14 +2174,35 @@ function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
1534
2174
|
if (obj.label !== undefined) {
|
|
1535
2175
|
const obj_label = obj.label;
|
|
1536
2176
|
const path_label = path + '.label';
|
|
1537
|
-
|
|
1538
|
-
|
|
2177
|
+
let obj_label_union0 = null;
|
|
2178
|
+
const obj_label_union0_error = (() => {
|
|
2179
|
+
if (typeof obj_label !== 'string') {
|
|
2180
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
2181
|
+
}
|
|
2182
|
+
})();
|
|
2183
|
+
if (obj_label_union0_error != null) {
|
|
2184
|
+
obj_label_union0 = obj_label_union0_error.message;
|
|
2185
|
+
}
|
|
2186
|
+
let obj_label_union1 = null;
|
|
2187
|
+
const obj_label_union1_error = (() => {
|
|
2188
|
+
if (obj_label !== null) {
|
|
2189
|
+
return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
2190
|
+
}
|
|
2191
|
+
})();
|
|
2192
|
+
if (obj_label_union1_error != null) {
|
|
2193
|
+
obj_label_union1 = obj_label_union1_error.message;
|
|
2194
|
+
}
|
|
2195
|
+
if (obj_label_union0 && obj_label_union1) {
|
|
2196
|
+
let message = 'Object doesn\'t match union (at "' + path_label + '")';
|
|
2197
|
+
message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2198
|
+
message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2199
|
+
return new TypeError(message);
|
|
1539
2200
|
}
|
|
1540
2201
|
}
|
|
1541
2202
|
if (obj.lastModifiedBy !== undefined) {
|
|
1542
2203
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
1543
2204
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
1544
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
2205
|
+
const referencepath_lastModifiedByValidationError = validate$s(obj_lastModifiedBy, path_lastModifiedBy);
|
|
1545
2206
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
1546
2207
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
1547
2208
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1551,14 +2212,35 @@ function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
1551
2212
|
if (obj.lastModifiedDate !== undefined) {
|
|
1552
2213
|
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
1553
2214
|
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
1554
|
-
|
|
1555
|
-
|
|
2215
|
+
let obj_lastModifiedDate_union0 = null;
|
|
2216
|
+
const obj_lastModifiedDate_union0_error = (() => {
|
|
2217
|
+
if (typeof obj_lastModifiedDate !== 'string') {
|
|
2218
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
2219
|
+
}
|
|
2220
|
+
})();
|
|
2221
|
+
if (obj_lastModifiedDate_union0_error != null) {
|
|
2222
|
+
obj_lastModifiedDate_union0 = obj_lastModifiedDate_union0_error.message;
|
|
2223
|
+
}
|
|
2224
|
+
let obj_lastModifiedDate_union1 = null;
|
|
2225
|
+
const obj_lastModifiedDate_union1_error = (() => {
|
|
2226
|
+
if (obj_lastModifiedDate !== null) {
|
|
2227
|
+
return new TypeError('Expected "null" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
2228
|
+
}
|
|
2229
|
+
})();
|
|
2230
|
+
if (obj_lastModifiedDate_union1_error != null) {
|
|
2231
|
+
obj_lastModifiedDate_union1 = obj_lastModifiedDate_union1_error.message;
|
|
2232
|
+
}
|
|
2233
|
+
if (obj_lastModifiedDate_union0 && obj_lastModifiedDate_union1) {
|
|
2234
|
+
let message = 'Object doesn\'t match union (at "' + path_lastModifiedDate + '")';
|
|
2235
|
+
message += '\n' + obj_lastModifiedDate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2236
|
+
message += '\n' + obj_lastModifiedDate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2237
|
+
return new TypeError(message);
|
|
1556
2238
|
}
|
|
1557
2239
|
}
|
|
1558
2240
|
if (obj.latestSetup !== undefined) {
|
|
1559
2241
|
const obj_latestSetup = obj.latestSetup;
|
|
1560
2242
|
const path_latestSetup = path + '.latestSetup';
|
|
1561
|
-
const referencepath_latestSetupValidationError = validate$
|
|
2243
|
+
const referencepath_latestSetupValidationError = validate$o(obj_latestSetup, path_latestSetup);
|
|
1562
2244
|
if (referencepath_latestSetupValidationError !== null) {
|
|
1563
2245
|
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_latestSetup + '")\n';
|
|
1564
2246
|
message += referencepath_latestSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1570,19 +2252,42 @@ function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
1570
2252
|
if (typeof obj_modelCount !== 'number' || (typeof obj_modelCount === 'number' && Math.floor(obj_modelCount) !== obj_modelCount)) {
|
|
1571
2253
|
return new TypeError('Expected "integer" but received "' + typeof obj_modelCount + '" (at "' + path_modelCount + '")');
|
|
1572
2254
|
}
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
2255
|
+
if (obj.modelType !== undefined) {
|
|
2256
|
+
const obj_modelType = obj.modelType;
|
|
2257
|
+
const path_modelType = path + '.modelType';
|
|
2258
|
+
const referencepath_modelTypeValidationError = validate$l(obj_modelType, path_modelType);
|
|
2259
|
+
if (referencepath_modelTypeValidationError !== null) {
|
|
2260
|
+
let message = 'Object doesn\'t match CdpMlModelTypeRepresentation (at "' + path_modelType + '")\n';
|
|
2261
|
+
message += referencepath_modelTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2262
|
+
return new TypeError(message);
|
|
2263
|
+
}
|
|
1580
2264
|
}
|
|
1581
2265
|
if (obj.modelsUrl !== undefined) {
|
|
1582
2266
|
const obj_modelsUrl = obj.modelsUrl;
|
|
1583
2267
|
const path_modelsUrl = path + '.modelsUrl';
|
|
1584
|
-
|
|
1585
|
-
|
|
2268
|
+
let obj_modelsUrl_union0 = null;
|
|
2269
|
+
const obj_modelsUrl_union0_error = (() => {
|
|
2270
|
+
if (typeof obj_modelsUrl !== 'string') {
|
|
2271
|
+
return new TypeError('Expected "string" but received "' + typeof obj_modelsUrl + '" (at "' + path_modelsUrl + '")');
|
|
2272
|
+
}
|
|
2273
|
+
})();
|
|
2274
|
+
if (obj_modelsUrl_union0_error != null) {
|
|
2275
|
+
obj_modelsUrl_union0 = obj_modelsUrl_union0_error.message;
|
|
2276
|
+
}
|
|
2277
|
+
let obj_modelsUrl_union1 = null;
|
|
2278
|
+
const obj_modelsUrl_union1_error = (() => {
|
|
2279
|
+
if (obj_modelsUrl !== null) {
|
|
2280
|
+
return new TypeError('Expected "null" but received "' + typeof obj_modelsUrl + '" (at "' + path_modelsUrl + '")');
|
|
2281
|
+
}
|
|
2282
|
+
})();
|
|
2283
|
+
if (obj_modelsUrl_union1_error != null) {
|
|
2284
|
+
obj_modelsUrl_union1 = obj_modelsUrl_union1_error.message;
|
|
2285
|
+
}
|
|
2286
|
+
if (obj_modelsUrl_union0 && obj_modelsUrl_union1) {
|
|
2287
|
+
let message = 'Object doesn\'t match union (at "' + path_modelsUrl + '")';
|
|
2288
|
+
message += '\n' + obj_modelsUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2289
|
+
message += '\n' + obj_modelsUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2290
|
+
return new TypeError(message);
|
|
1586
2291
|
}
|
|
1587
2292
|
}
|
|
1588
2293
|
const obj_name = obj.name;
|
|
@@ -1593,14 +2298,35 @@ function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
1593
2298
|
if (obj.namespace !== undefined) {
|
|
1594
2299
|
const obj_namespace = obj.namespace;
|
|
1595
2300
|
const path_namespace = path + '.namespace';
|
|
1596
|
-
|
|
1597
|
-
|
|
2301
|
+
let obj_namespace_union0 = null;
|
|
2302
|
+
const obj_namespace_union0_error = (() => {
|
|
2303
|
+
if (typeof obj_namespace !== 'string') {
|
|
2304
|
+
return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
2305
|
+
}
|
|
2306
|
+
})();
|
|
2307
|
+
if (obj_namespace_union0_error != null) {
|
|
2308
|
+
obj_namespace_union0 = obj_namespace_union0_error.message;
|
|
2309
|
+
}
|
|
2310
|
+
let obj_namespace_union1 = null;
|
|
2311
|
+
const obj_namespace_union1_error = (() => {
|
|
2312
|
+
if (obj_namespace !== null) {
|
|
2313
|
+
return new TypeError('Expected "null" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
2314
|
+
}
|
|
2315
|
+
})();
|
|
2316
|
+
if (obj_namespace_union1_error != null) {
|
|
2317
|
+
obj_namespace_union1 = obj_namespace_union1_error.message;
|
|
2318
|
+
}
|
|
2319
|
+
if (obj_namespace_union0 && obj_namespace_union1) {
|
|
2320
|
+
let message = 'Object doesn\'t match union (at "' + path_namespace + '")';
|
|
2321
|
+
message += '\n' + obj_namespace_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2322
|
+
message += '\n' + obj_namespace_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2323
|
+
return new TypeError(message);
|
|
1598
2324
|
}
|
|
1599
2325
|
}
|
|
1600
2326
|
if (obj.outcomeDefinition !== undefined) {
|
|
1601
2327
|
const obj_outcomeDefinition = obj.outcomeDefinition;
|
|
1602
2328
|
const path_outcomeDefinition = path + '.outcomeDefinition';
|
|
1603
|
-
const referencepath_outcomeDefinitionValidationError = validate$
|
|
2329
|
+
const referencepath_outcomeDefinitionValidationError = validate$k(obj_outcomeDefinition, path_outcomeDefinition);
|
|
1604
2330
|
if (referencepath_outcomeDefinitionValidationError !== null) {
|
|
1605
2331
|
let message = 'Object doesn\'t match CdpMlModelOutcomeDefinitionRepresentation (at "' + path_outcomeDefinition + '")\n';
|
|
1606
2332
|
message += referencepath_outcomeDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1610,14 +2336,35 @@ function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
1610
2336
|
if (obj.predictionType !== undefined) {
|
|
1611
2337
|
const obj_predictionType = obj.predictionType;
|
|
1612
2338
|
const path_predictionType = path + '.predictionType';
|
|
1613
|
-
|
|
1614
|
-
|
|
2339
|
+
let obj_predictionType_union0 = null;
|
|
2340
|
+
const obj_predictionType_union0_error = (() => {
|
|
2341
|
+
if (typeof obj_predictionType !== 'string') {
|
|
2342
|
+
return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
|
|
2343
|
+
}
|
|
2344
|
+
})();
|
|
2345
|
+
if (obj_predictionType_union0_error != null) {
|
|
2346
|
+
obj_predictionType_union0 = obj_predictionType_union0_error.message;
|
|
2347
|
+
}
|
|
2348
|
+
let obj_predictionType_union1 = null;
|
|
2349
|
+
const obj_predictionType_union1_error = (() => {
|
|
2350
|
+
if (obj_predictionType !== null) {
|
|
2351
|
+
return new TypeError('Expected "null" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
|
|
2352
|
+
}
|
|
2353
|
+
})();
|
|
2354
|
+
if (obj_predictionType_union1_error != null) {
|
|
2355
|
+
obj_predictionType_union1 = obj_predictionType_union1_error.message;
|
|
2356
|
+
}
|
|
2357
|
+
if (obj_predictionType_union0 && obj_predictionType_union1) {
|
|
2358
|
+
let message = 'Object doesn\'t match union (at "' + path_predictionType + '")';
|
|
2359
|
+
message += '\n' + obj_predictionType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2360
|
+
message += '\n' + obj_predictionType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2361
|
+
return new TypeError(message);
|
|
1615
2362
|
}
|
|
1616
2363
|
}
|
|
1617
2364
|
if (obj.refreshConfig !== undefined) {
|
|
1618
2365
|
const obj_refreshConfig = obj.refreshConfig;
|
|
1619
2366
|
const path_refreshConfig = path + '.refreshConfig';
|
|
1620
|
-
const referencepath_refreshConfigValidationError = validate$
|
|
2367
|
+
const referencepath_refreshConfigValidationError = validate$f(obj_refreshConfig, path_refreshConfig);
|
|
1621
2368
|
if (referencepath_refreshConfigValidationError !== null) {
|
|
1622
2369
|
let message = 'Object doesn\'t match CdpMlModelRefreshConfigRepresentation (at "' + path_refreshConfig + '")\n';
|
|
1623
2370
|
message += referencepath_refreshConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1627,8 +2374,29 @@ function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
1627
2374
|
if (obj.setupVersionsUrl !== undefined) {
|
|
1628
2375
|
const obj_setupVersionsUrl = obj.setupVersionsUrl;
|
|
1629
2376
|
const path_setupVersionsUrl = path + '.setupVersionsUrl';
|
|
1630
|
-
|
|
1631
|
-
|
|
2377
|
+
let obj_setupVersionsUrl_union0 = null;
|
|
2378
|
+
const obj_setupVersionsUrl_union0_error = (() => {
|
|
2379
|
+
if (typeof obj_setupVersionsUrl !== 'string') {
|
|
2380
|
+
return new TypeError('Expected "string" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
|
|
2381
|
+
}
|
|
2382
|
+
})();
|
|
2383
|
+
if (obj_setupVersionsUrl_union0_error != null) {
|
|
2384
|
+
obj_setupVersionsUrl_union0 = obj_setupVersionsUrl_union0_error.message;
|
|
2385
|
+
}
|
|
2386
|
+
let obj_setupVersionsUrl_union1 = null;
|
|
2387
|
+
const obj_setupVersionsUrl_union1_error = (() => {
|
|
2388
|
+
if (obj_setupVersionsUrl !== null) {
|
|
2389
|
+
return new TypeError('Expected "null" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
|
|
2390
|
+
}
|
|
2391
|
+
})();
|
|
2392
|
+
if (obj_setupVersionsUrl_union1_error != null) {
|
|
2393
|
+
obj_setupVersionsUrl_union1 = obj_setupVersionsUrl_union1_error.message;
|
|
2394
|
+
}
|
|
2395
|
+
if (obj_setupVersionsUrl_union0 && obj_setupVersionsUrl_union1) {
|
|
2396
|
+
let message = 'Object doesn\'t match union (at "' + path_setupVersionsUrl + '")';
|
|
2397
|
+
message += '\n' + obj_setupVersionsUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2398
|
+
message += '\n' + obj_setupVersionsUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2399
|
+
return new TypeError(message);
|
|
1632
2400
|
}
|
|
1633
2401
|
}
|
|
1634
2402
|
const obj_status = obj.status;
|
|
@@ -1639,15 +2407,57 @@ function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
1639
2407
|
if (obj.totalInferenceCount !== undefined) {
|
|
1640
2408
|
const obj_totalInferenceCount = obj.totalInferenceCount;
|
|
1641
2409
|
const path_totalInferenceCount = path + '.totalInferenceCount';
|
|
1642
|
-
|
|
1643
|
-
|
|
2410
|
+
let obj_totalInferenceCount_union0 = null;
|
|
2411
|
+
const obj_totalInferenceCount_union0_error = (() => {
|
|
2412
|
+
if (typeof obj_totalInferenceCount !== 'number' || (typeof obj_totalInferenceCount === 'number' && Math.floor(obj_totalInferenceCount) !== obj_totalInferenceCount)) {
|
|
2413
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
|
|
2414
|
+
}
|
|
2415
|
+
})();
|
|
2416
|
+
if (obj_totalInferenceCount_union0_error != null) {
|
|
2417
|
+
obj_totalInferenceCount_union0 = obj_totalInferenceCount_union0_error.message;
|
|
2418
|
+
}
|
|
2419
|
+
let obj_totalInferenceCount_union1 = null;
|
|
2420
|
+
const obj_totalInferenceCount_union1_error = (() => {
|
|
2421
|
+
if (obj_totalInferenceCount !== null) {
|
|
2422
|
+
return new TypeError('Expected "null" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
|
|
2423
|
+
}
|
|
2424
|
+
})();
|
|
2425
|
+
if (obj_totalInferenceCount_union1_error != null) {
|
|
2426
|
+
obj_totalInferenceCount_union1 = obj_totalInferenceCount_union1_error.message;
|
|
2427
|
+
}
|
|
2428
|
+
if (obj_totalInferenceCount_union0 && obj_totalInferenceCount_union1) {
|
|
2429
|
+
let message = 'Object doesn\'t match union (at "' + path_totalInferenceCount + '")';
|
|
2430
|
+
message += '\n' + obj_totalInferenceCount_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2431
|
+
message += '\n' + obj_totalInferenceCount_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2432
|
+
return new TypeError(message);
|
|
1644
2433
|
}
|
|
1645
2434
|
}
|
|
1646
2435
|
if (obj.totalWarningsCount !== undefined) {
|
|
1647
2436
|
const obj_totalWarningsCount = obj.totalWarningsCount;
|
|
1648
2437
|
const path_totalWarningsCount = path + '.totalWarningsCount';
|
|
1649
|
-
|
|
1650
|
-
|
|
2438
|
+
let obj_totalWarningsCount_union0 = null;
|
|
2439
|
+
const obj_totalWarningsCount_union0_error = (() => {
|
|
2440
|
+
if (typeof obj_totalWarningsCount !== 'number' || (typeof obj_totalWarningsCount === 'number' && Math.floor(obj_totalWarningsCount) !== obj_totalWarningsCount)) {
|
|
2441
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
|
|
2442
|
+
}
|
|
2443
|
+
})();
|
|
2444
|
+
if (obj_totalWarningsCount_union0_error != null) {
|
|
2445
|
+
obj_totalWarningsCount_union0 = obj_totalWarningsCount_union0_error.message;
|
|
2446
|
+
}
|
|
2447
|
+
let obj_totalWarningsCount_union1 = null;
|
|
2448
|
+
const obj_totalWarningsCount_union1_error = (() => {
|
|
2449
|
+
if (obj_totalWarningsCount !== null) {
|
|
2450
|
+
return new TypeError('Expected "null" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
|
|
2451
|
+
}
|
|
2452
|
+
})();
|
|
2453
|
+
if (obj_totalWarningsCount_union1_error != null) {
|
|
2454
|
+
obj_totalWarningsCount_union1 = obj_totalWarningsCount_union1_error.message;
|
|
2455
|
+
}
|
|
2456
|
+
if (obj_totalWarningsCount_union0 && obj_totalWarningsCount_union1) {
|
|
2457
|
+
let message = 'Object doesn\'t match union (at "' + path_totalWarningsCount + '")';
|
|
2458
|
+
message += '\n' + obj_totalWarningsCount_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2459
|
+
message += '\n' + obj_totalWarningsCount_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2460
|
+
return new TypeError(message);
|
|
1651
2461
|
}
|
|
1652
2462
|
}
|
|
1653
2463
|
const obj_url = obj.url;
|
|
@@ -1678,7 +2488,7 @@ function equals$2(existing, incoming) {
|
|
|
1678
2488
|
}
|
|
1679
2489
|
const ingest$2 = function CdpMlWorkspaceDetailRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1680
2490
|
if (process.env.NODE_ENV !== 'production') {
|
|
1681
|
-
const validateError = validate$
|
|
2491
|
+
const validateError = validate$c(input);
|
|
1682
2492
|
if (validateError !== null) {
|
|
1683
2493
|
throw validateError;
|
|
1684
2494
|
}
|
|
@@ -1846,7 +2656,7 @@ const getCdpMlWorkspaceAdapterFactory = (luvio) => function cdpMachineLearning__
|
|
|
1846
2656
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
1847
2657
|
};
|
|
1848
2658
|
|
|
1849
|
-
function validate$
|
|
2659
|
+
function validate$b(obj, path = 'CdpMlFilterValueRepresentation') {
|
|
1850
2660
|
const v_error = (() => {
|
|
1851
2661
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1852
2662
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1865,7 +2675,7 @@ function validate$7(obj, path = 'CdpMlFilterValueRepresentation') {
|
|
|
1865
2675
|
return v_error === undefined ? null : v_error;
|
|
1866
2676
|
}
|
|
1867
2677
|
|
|
1868
|
-
function validate$
|
|
2678
|
+
function validate$a(obj, path = 'CdpMlFilterCriterionBaseRepresentation') {
|
|
1869
2679
|
const v_error = (() => {
|
|
1870
2680
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1871
2681
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1888,7 +2698,7 @@ function validate$6(obj, path = 'CdpMlFilterCriterionBaseRepresentation') {
|
|
|
1888
2698
|
for (let i = 0; i < obj_values.length; i++) {
|
|
1889
2699
|
const obj_values_item = obj_values[i];
|
|
1890
2700
|
const path_values_item = path_values + '[' + i + ']';
|
|
1891
|
-
const referencepath_values_itemValidationError = validate$
|
|
2701
|
+
const referencepath_values_itemValidationError = validate$b(obj_values_item, path_values_item);
|
|
1892
2702
|
if (referencepath_values_itemValidationError !== null) {
|
|
1893
2703
|
let message = 'Object doesn\'t match CdpMlFilterValueRepresentation (at "' + path_values_item + '")\n';
|
|
1894
2704
|
message += referencepath_values_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1899,7 +2709,7 @@ function validate$6(obj, path = 'CdpMlFilterCriterionBaseRepresentation') {
|
|
|
1899
2709
|
return v_error === undefined ? null : v_error;
|
|
1900
2710
|
}
|
|
1901
2711
|
|
|
1902
|
-
function validate$
|
|
2712
|
+
function validate$9(obj, path = 'CdpMlFilterRepresentation') {
|
|
1903
2713
|
const v_error = (() => {
|
|
1904
2714
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1905
2715
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1912,7 +2722,7 @@ function validate$5(obj, path = 'CdpMlFilterRepresentation') {
|
|
|
1912
2722
|
for (let i = 0; i < obj_criteria.length; i++) {
|
|
1913
2723
|
const obj_criteria_item = obj_criteria[i];
|
|
1914
2724
|
const path_criteria_item = path_criteria + '[' + i + ']';
|
|
1915
|
-
const referencepath_criteria_itemValidationError = validate$
|
|
2725
|
+
const referencepath_criteria_itemValidationError = validate$a(obj_criteria_item, path_criteria_item);
|
|
1916
2726
|
if (referencepath_criteria_itemValidationError !== null) {
|
|
1917
2727
|
let message = 'Object doesn\'t match CdpMlFilterCriterionBaseRepresentation (at "' + path_criteria_item + '")\n';
|
|
1918
2728
|
message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1923,14 +2733,14 @@ function validate$5(obj, path = 'CdpMlFilterRepresentation') {
|
|
|
1923
2733
|
return v_error === undefined ? null : v_error;
|
|
1924
2734
|
}
|
|
1925
2735
|
|
|
1926
|
-
function validate$
|
|
2736
|
+
function validate$8(obj, path = 'CdpMlCustomizableFieldDefinitionRepresentation') {
|
|
1927
2737
|
const v_error = (() => {
|
|
1928
2738
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1929
2739
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1930
2740
|
}
|
|
1931
2741
|
const obj_filter = obj.filter;
|
|
1932
2742
|
const path_filter = path + '.filter';
|
|
1933
|
-
const referencepath_filterValidationError = validate$
|
|
2743
|
+
const referencepath_filterValidationError = validate$9(obj_filter, path_filter);
|
|
1934
2744
|
if (referencepath_filterValidationError !== null) {
|
|
1935
2745
|
let message = 'Object doesn\'t match CdpMlFilterRepresentation (at "' + path_filter + '")\n';
|
|
1936
2746
|
message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1945,7 +2755,7 @@ function validate$4(obj, path = 'CdpMlCustomizableFieldDefinitionRepresentation'
|
|
|
1945
2755
|
return v_error === undefined ? null : v_error;
|
|
1946
2756
|
}
|
|
1947
2757
|
|
|
1948
|
-
function validate$
|
|
2758
|
+
function validate$7(obj, path = 'CdpMlCustomizableFieldRepresentation') {
|
|
1949
2759
|
const v_error = (() => {
|
|
1950
2760
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1951
2761
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1958,7 +2768,7 @@ function validate$3(obj, path = 'CdpMlCustomizableFieldRepresentation') {
|
|
|
1958
2768
|
for (let i = 0; i < obj_customDefinitions.length; i++) {
|
|
1959
2769
|
const obj_customDefinitions_item = obj_customDefinitions[i];
|
|
1960
2770
|
const path_customDefinitions_item = path_customDefinitions + '[' + i + ']';
|
|
1961
|
-
const referencepath_customDefinitions_itemValidationError = validate$
|
|
2771
|
+
const referencepath_customDefinitions_itemValidationError = validate$8(obj_customDefinitions_item, path_customDefinitions_item);
|
|
1962
2772
|
if (referencepath_customDefinitions_itemValidationError !== null) {
|
|
1963
2773
|
let message = 'Object doesn\'t match CdpMlCustomizableFieldDefinitionRepresentation (at "' + path_customDefinitions_item + '")\n';
|
|
1964
2774
|
message += referencepath_customDefinitions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1967,7 +2777,7 @@ function validate$3(obj, path = 'CdpMlCustomizableFieldRepresentation') {
|
|
|
1967
2777
|
}
|
|
1968
2778
|
const obj_field = obj.field;
|
|
1969
2779
|
const path_field = path + '.field';
|
|
1970
|
-
const referencepath_fieldValidationError = validate$
|
|
2780
|
+
const referencepath_fieldValidationError = validate$r(obj_field, path_field);
|
|
1971
2781
|
if (referencepath_fieldValidationError !== null) {
|
|
1972
2782
|
let message = 'Object doesn\'t match CdpMlModelInputFieldBaseRepresentation (at "' + path_field + '")\n';
|
|
1973
2783
|
message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1982,7 +2792,7 @@ function validate$3(obj, path = 'CdpMlCustomizableFieldRepresentation') {
|
|
|
1982
2792
|
return v_error === undefined ? null : v_error;
|
|
1983
2793
|
}
|
|
1984
2794
|
|
|
1985
|
-
function validate$
|
|
2795
|
+
function validate$6(obj, path = 'CdpMlModelParameterOverrideBaseRepresentation') {
|
|
1986
2796
|
const v_error = (() => {
|
|
1987
2797
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1988
2798
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2010,30 +2820,32 @@ function keyBuilderFromType(luvio, object) {
|
|
|
2010
2820
|
}
|
|
2011
2821
|
|
|
2012
2822
|
const TTL$1 = 1000;
|
|
2013
|
-
const VERSION$1 = "
|
|
2014
|
-
function validate$
|
|
2823
|
+
const VERSION$1 = "f9608bc4ae3825a8da2fc0992ae87b6e";
|
|
2824
|
+
function validate$5(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
2015
2825
|
const v_error = (() => {
|
|
2016
2826
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2017
2827
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2018
2828
|
}
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2829
|
+
if (obj.actionableFields !== undefined) {
|
|
2830
|
+
const obj_actionableFields = obj.actionableFields;
|
|
2831
|
+
const path_actionableFields = path + '.actionableFields';
|
|
2832
|
+
if (!ArrayIsArray(obj_actionableFields)) {
|
|
2833
|
+
return new TypeError('Expected "array" but received "' + typeof obj_actionableFields + '" (at "' + path_actionableFields + '")');
|
|
2834
|
+
}
|
|
2835
|
+
for (let i = 0; i < obj_actionableFields.length; i++) {
|
|
2836
|
+
const obj_actionableFields_item = obj_actionableFields[i];
|
|
2837
|
+
const path_actionableFields_item = path_actionableFields + '[' + i + ']';
|
|
2838
|
+
const referencepath_actionableFields_itemValidationError = validate$7(obj_actionableFields_item, path_actionableFields_item);
|
|
2839
|
+
if (referencepath_actionableFields_itemValidationError !== null) {
|
|
2840
|
+
let message = 'Object doesn\'t match CdpMlCustomizableFieldRepresentation (at "' + path_actionableFields_item + '")\n';
|
|
2841
|
+
message += referencepath_actionableFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2842
|
+
return new TypeError(message);
|
|
2843
|
+
}
|
|
2032
2844
|
}
|
|
2033
2845
|
}
|
|
2034
2846
|
const obj_artifact = obj.artifact;
|
|
2035
2847
|
const path_artifact = path + '.artifact';
|
|
2036
|
-
const referencepath_artifactValidationError = validate$
|
|
2848
|
+
const referencepath_artifactValidationError = validate$o(obj_artifact, path_artifact);
|
|
2037
2849
|
if (referencepath_artifactValidationError !== null) {
|
|
2038
2850
|
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_artifact + '")\n';
|
|
2039
2851
|
message += referencepath_artifactValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2047,7 +2859,7 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
2047
2859
|
if (obj.createdBy !== undefined) {
|
|
2048
2860
|
const obj_createdBy = obj.createdBy;
|
|
2049
2861
|
const path_createdBy = path + '.createdBy';
|
|
2050
|
-
const referencepath_createdByValidationError = validate$
|
|
2862
|
+
const referencepath_createdByValidationError = validate$s(obj_createdBy, path_createdBy);
|
|
2051
2863
|
if (referencepath_createdByValidationError !== null) {
|
|
2052
2864
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
2053
2865
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2057,8 +2869,29 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
2057
2869
|
if (obj.createdDate !== undefined) {
|
|
2058
2870
|
const obj_createdDate = obj.createdDate;
|
|
2059
2871
|
const path_createdDate = path + '.createdDate';
|
|
2060
|
-
|
|
2061
|
-
|
|
2872
|
+
let obj_createdDate_union0 = null;
|
|
2873
|
+
const obj_createdDate_union0_error = (() => {
|
|
2874
|
+
if (typeof obj_createdDate !== 'string') {
|
|
2875
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
2876
|
+
}
|
|
2877
|
+
})();
|
|
2878
|
+
if (obj_createdDate_union0_error != null) {
|
|
2879
|
+
obj_createdDate_union0 = obj_createdDate_union0_error.message;
|
|
2880
|
+
}
|
|
2881
|
+
let obj_createdDate_union1 = null;
|
|
2882
|
+
const obj_createdDate_union1_error = (() => {
|
|
2883
|
+
if (obj_createdDate !== null) {
|
|
2884
|
+
return new TypeError('Expected "null" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
2885
|
+
}
|
|
2886
|
+
})();
|
|
2887
|
+
if (obj_createdDate_union1_error != null) {
|
|
2888
|
+
obj_createdDate_union1 = obj_createdDate_union1_error.message;
|
|
2889
|
+
}
|
|
2890
|
+
if (obj_createdDate_union0 && obj_createdDate_union1) {
|
|
2891
|
+
let message = 'Object doesn\'t match union (at "' + path_createdDate + '")';
|
|
2892
|
+
message += '\n' + obj_createdDate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2893
|
+
message += '\n' + obj_createdDate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2894
|
+
return new TypeError(message);
|
|
2062
2895
|
}
|
|
2063
2896
|
}
|
|
2064
2897
|
const obj_customizableFields = obj.customizableFields;
|
|
@@ -2069,7 +2902,7 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
2069
2902
|
for (let i = 0; i < obj_customizableFields.length; i++) {
|
|
2070
2903
|
const obj_customizableFields_item = obj_customizableFields[i];
|
|
2071
2904
|
const path_customizableFields_item = path_customizableFields + '[' + i + ']';
|
|
2072
|
-
const referencepath_customizableFields_itemValidationError = validate$
|
|
2905
|
+
const referencepath_customizableFields_itemValidationError = validate$7(obj_customizableFields_item, path_customizableFields_item);
|
|
2073
2906
|
if (referencepath_customizableFields_itemValidationError !== null) {
|
|
2074
2907
|
let message = 'Object doesn\'t match CdpMlCustomizableFieldRepresentation (at "' + path_customizableFields_item + '")\n';
|
|
2075
2908
|
message += referencepath_customizableFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2079,13 +2912,34 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
2079
2912
|
if (obj.description !== undefined) {
|
|
2080
2913
|
const obj_description = obj.description;
|
|
2081
2914
|
const path_description = path + '.description';
|
|
2082
|
-
|
|
2083
|
-
|
|
2915
|
+
let obj_description_union0 = null;
|
|
2916
|
+
const obj_description_union0_error = (() => {
|
|
2917
|
+
if (typeof obj_description !== 'string') {
|
|
2918
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
2919
|
+
}
|
|
2920
|
+
})();
|
|
2921
|
+
if (obj_description_union0_error != null) {
|
|
2922
|
+
obj_description_union0 = obj_description_union0_error.message;
|
|
2923
|
+
}
|
|
2924
|
+
let obj_description_union1 = null;
|
|
2925
|
+
const obj_description_union1_error = (() => {
|
|
2926
|
+
if (obj_description !== null) {
|
|
2927
|
+
return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
2928
|
+
}
|
|
2929
|
+
})();
|
|
2930
|
+
if (obj_description_union1_error != null) {
|
|
2931
|
+
obj_description_union1 = obj_description_union1_error.message;
|
|
2932
|
+
}
|
|
2933
|
+
if (obj_description_union0 && obj_description_union1) {
|
|
2934
|
+
let message = 'Object doesn\'t match union (at "' + path_description + '")';
|
|
2935
|
+
message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2936
|
+
message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2937
|
+
return new TypeError(message);
|
|
2084
2938
|
}
|
|
2085
2939
|
}
|
|
2086
2940
|
const obj_filter = obj.filter;
|
|
2087
2941
|
const path_filter = path + '.filter';
|
|
2088
|
-
const referencepath_filterValidationError = validate$
|
|
2942
|
+
const referencepath_filterValidationError = validate$9(obj_filter, path_filter);
|
|
2089
2943
|
if (referencepath_filterValidationError !== null) {
|
|
2090
2944
|
let message = 'Object doesn\'t match CdpMlFilterRepresentation (at "' + path_filter + '")\n';
|
|
2091
2945
|
message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2101,14 +2955,35 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
2101
2955
|
if (obj.label !== undefined) {
|
|
2102
2956
|
const obj_label = obj.label;
|
|
2103
2957
|
const path_label = path + '.label';
|
|
2104
|
-
|
|
2105
|
-
|
|
2958
|
+
let obj_label_union0 = null;
|
|
2959
|
+
const obj_label_union0_error = (() => {
|
|
2960
|
+
if (typeof obj_label !== 'string') {
|
|
2961
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
2962
|
+
}
|
|
2963
|
+
})();
|
|
2964
|
+
if (obj_label_union0_error != null) {
|
|
2965
|
+
obj_label_union0 = obj_label_union0_error.message;
|
|
2966
|
+
}
|
|
2967
|
+
let obj_label_union1 = null;
|
|
2968
|
+
const obj_label_union1_error = (() => {
|
|
2969
|
+
if (obj_label !== null) {
|
|
2970
|
+
return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
2971
|
+
}
|
|
2972
|
+
})();
|
|
2973
|
+
if (obj_label_union1_error != null) {
|
|
2974
|
+
obj_label_union1 = obj_label_union1_error.message;
|
|
2975
|
+
}
|
|
2976
|
+
if (obj_label_union0 && obj_label_union1) {
|
|
2977
|
+
let message = 'Object doesn\'t match union (at "' + path_label + '")';
|
|
2978
|
+
message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2979
|
+
message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2980
|
+
return new TypeError(message);
|
|
2106
2981
|
}
|
|
2107
2982
|
}
|
|
2108
2983
|
if (obj.lastActivatedBy !== undefined) {
|
|
2109
2984
|
const obj_lastActivatedBy = obj.lastActivatedBy;
|
|
2110
2985
|
const path_lastActivatedBy = path + '.lastActivatedBy';
|
|
2111
|
-
const referencepath_lastActivatedByValidationError = validate$
|
|
2986
|
+
const referencepath_lastActivatedByValidationError = validate$s(obj_lastActivatedBy, path_lastActivatedBy);
|
|
2112
2987
|
if (referencepath_lastActivatedByValidationError !== null) {
|
|
2113
2988
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastActivatedBy + '")\n';
|
|
2114
2989
|
message += referencepath_lastActivatedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2125,7 +3000,7 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
2125
3000
|
if (obj.lastModifiedBy !== undefined) {
|
|
2126
3001
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
2127
3002
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
2128
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
3003
|
+
const referencepath_lastModifiedByValidationError = validate$s(obj_lastModifiedBy, path_lastModifiedBy);
|
|
2129
3004
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
2130
3005
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
2131
3006
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2135,15 +3010,57 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
2135
3010
|
if (obj.lastModifiedDate !== undefined) {
|
|
2136
3011
|
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
2137
3012
|
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
2138
|
-
|
|
2139
|
-
|
|
3013
|
+
let obj_lastModifiedDate_union0 = null;
|
|
3014
|
+
const obj_lastModifiedDate_union0_error = (() => {
|
|
3015
|
+
if (typeof obj_lastModifiedDate !== 'string') {
|
|
3016
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
3017
|
+
}
|
|
3018
|
+
})();
|
|
3019
|
+
if (obj_lastModifiedDate_union0_error != null) {
|
|
3020
|
+
obj_lastModifiedDate_union0 = obj_lastModifiedDate_union0_error.message;
|
|
3021
|
+
}
|
|
3022
|
+
let obj_lastModifiedDate_union1 = null;
|
|
3023
|
+
const obj_lastModifiedDate_union1_error = (() => {
|
|
3024
|
+
if (obj_lastModifiedDate !== null) {
|
|
3025
|
+
return new TypeError('Expected "null" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
3026
|
+
}
|
|
3027
|
+
})();
|
|
3028
|
+
if (obj_lastModifiedDate_union1_error != null) {
|
|
3029
|
+
obj_lastModifiedDate_union1 = obj_lastModifiedDate_union1_error.message;
|
|
3030
|
+
}
|
|
3031
|
+
if (obj_lastModifiedDate_union0 && obj_lastModifiedDate_union1) {
|
|
3032
|
+
let message = 'Object doesn\'t match union (at "' + path_lastModifiedDate + '")';
|
|
3033
|
+
message += '\n' + obj_lastModifiedDate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3034
|
+
message += '\n' + obj_lastModifiedDate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3035
|
+
return new TypeError(message);
|
|
2140
3036
|
}
|
|
2141
3037
|
}
|
|
2142
3038
|
if (obj.metricsUrl !== undefined) {
|
|
2143
3039
|
const obj_metricsUrl = obj.metricsUrl;
|
|
2144
3040
|
const path_metricsUrl = path + '.metricsUrl';
|
|
2145
|
-
|
|
2146
|
-
|
|
3041
|
+
let obj_metricsUrl_union0 = null;
|
|
3042
|
+
const obj_metricsUrl_union0_error = (() => {
|
|
3043
|
+
if (typeof obj_metricsUrl !== 'string') {
|
|
3044
|
+
return new TypeError('Expected "string" but received "' + typeof obj_metricsUrl + '" (at "' + path_metricsUrl + '")');
|
|
3045
|
+
}
|
|
3046
|
+
})();
|
|
3047
|
+
if (obj_metricsUrl_union0_error != null) {
|
|
3048
|
+
obj_metricsUrl_union0 = obj_metricsUrl_union0_error.message;
|
|
3049
|
+
}
|
|
3050
|
+
let obj_metricsUrl_union1 = null;
|
|
3051
|
+
const obj_metricsUrl_union1_error = (() => {
|
|
3052
|
+
if (obj_metricsUrl !== null) {
|
|
3053
|
+
return new TypeError('Expected "null" but received "' + typeof obj_metricsUrl + '" (at "' + path_metricsUrl + '")');
|
|
3054
|
+
}
|
|
3055
|
+
})();
|
|
3056
|
+
if (obj_metricsUrl_union1_error != null) {
|
|
3057
|
+
obj_metricsUrl_union1 = obj_metricsUrl_union1_error.message;
|
|
3058
|
+
}
|
|
3059
|
+
if (obj_metricsUrl_union0 && obj_metricsUrl_union1) {
|
|
3060
|
+
let message = 'Object doesn\'t match union (at "' + path_metricsUrl + '")';
|
|
3061
|
+
message += '\n' + obj_metricsUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3062
|
+
message += '\n' + obj_metricsUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3063
|
+
return new TypeError(message);
|
|
2147
3064
|
}
|
|
2148
3065
|
}
|
|
2149
3066
|
const obj_name = obj.name;
|
|
@@ -2151,10 +3068,33 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
2151
3068
|
if (typeof obj_name !== 'string') {
|
|
2152
3069
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
2153
3070
|
}
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
3071
|
+
if (obj.namespace !== undefined) {
|
|
3072
|
+
const obj_namespace = obj.namespace;
|
|
3073
|
+
const path_namespace = path + '.namespace';
|
|
3074
|
+
let obj_namespace_union0 = null;
|
|
3075
|
+
const obj_namespace_union0_error = (() => {
|
|
3076
|
+
if (typeof obj_namespace !== 'string') {
|
|
3077
|
+
return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
3078
|
+
}
|
|
3079
|
+
})();
|
|
3080
|
+
if (obj_namespace_union0_error != null) {
|
|
3081
|
+
obj_namespace_union0 = obj_namespace_union0_error.message;
|
|
3082
|
+
}
|
|
3083
|
+
let obj_namespace_union1 = null;
|
|
3084
|
+
const obj_namespace_union1_error = (() => {
|
|
3085
|
+
if (obj_namespace !== null) {
|
|
3086
|
+
return new TypeError('Expected "null" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
3087
|
+
}
|
|
3088
|
+
})();
|
|
3089
|
+
if (obj_namespace_union1_error != null) {
|
|
3090
|
+
obj_namespace_union1 = obj_namespace_union1_error.message;
|
|
3091
|
+
}
|
|
3092
|
+
if (obj_namespace_union0 && obj_namespace_union1) {
|
|
3093
|
+
let message = 'Object doesn\'t match union (at "' + path_namespace + '")';
|
|
3094
|
+
message += '\n' + obj_namespace_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3095
|
+
message += '\n' + obj_namespace_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3096
|
+
return new TypeError(message);
|
|
3097
|
+
}
|
|
2158
3098
|
}
|
|
2159
3099
|
const obj_parameterOverrides = obj.parameterOverrides;
|
|
2160
3100
|
const path_parameterOverrides = path + '.parameterOverrides';
|
|
@@ -2164,7 +3104,7 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
2164
3104
|
for (let i = 0; i < obj_parameterOverrides.length; i++) {
|
|
2165
3105
|
const obj_parameterOverrides_item = obj_parameterOverrides[i];
|
|
2166
3106
|
const path_parameterOverrides_item = path_parameterOverrides + '[' + i + ']';
|
|
2167
|
-
const referencepath_parameterOverrides_itemValidationError = validate$
|
|
3107
|
+
const referencepath_parameterOverrides_itemValidationError = validate$6(obj_parameterOverrides_item, path_parameterOverrides_item);
|
|
2168
3108
|
if (referencepath_parameterOverrides_itemValidationError !== null) {
|
|
2169
3109
|
let message = 'Object doesn\'t match CdpMlModelParameterOverrideBaseRepresentation (at "' + path_parameterOverrides_item + '")\n';
|
|
2170
3110
|
message += referencepath_parameterOverrides_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2209,7 +3149,7 @@ function equals$1(existing, incoming) {
|
|
|
2209
3149
|
}
|
|
2210
3150
|
const ingest$1 = function CdpMlConfiguredModelRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2211
3151
|
if (process.env.NODE_ENV !== 'production') {
|
|
2212
|
-
const validateError = validate$
|
|
3152
|
+
const validateError = validate$5(input);
|
|
2213
3153
|
if (validateError !== null) {
|
|
2214
3154
|
throw validateError;
|
|
2215
3155
|
}
|
|
@@ -2231,7 +3171,7 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2231
3171
|
|
|
2232
3172
|
const TTL = 1000;
|
|
2233
3173
|
const VERSION = "2b3092c57f5f0a17513ae28d59875559";
|
|
2234
|
-
function validate(obj, path = 'CdpMlConfiguredModelCollectionRepresentation') {
|
|
3174
|
+
function validate$4(obj, path = 'CdpMlConfiguredModelCollectionRepresentation') {
|
|
2235
3175
|
const v_error = (() => {
|
|
2236
3176
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2237
3177
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2245,7 +3185,7 @@ function validate(obj, path = 'CdpMlConfiguredModelCollectionRepresentation') {
|
|
|
2245
3185
|
for (let i = 0; i < obj_models.length; i++) {
|
|
2246
3186
|
const obj_models_item = obj_models[i];
|
|
2247
3187
|
const path_models_item = path_models + '[' + i + ']';
|
|
2248
|
-
const referencepath_models_itemValidationError = validate$
|
|
3188
|
+
const referencepath_models_itemValidationError = validate$5(obj_models_item, path_models_item);
|
|
2249
3189
|
if (referencepath_models_itemValidationError !== null) {
|
|
2250
3190
|
let message = 'Object doesn\'t match CdpMlConfiguredModelRepresentation (at "' + path_models_item + '")\n';
|
|
2251
3191
|
message += referencepath_models_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2286,7 +3226,7 @@ function equals(existing, incoming) {
|
|
|
2286
3226
|
}
|
|
2287
3227
|
const ingest = function CdpMlConfiguredModelCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2288
3228
|
if (process.env.NODE_ENV !== 'production') {
|
|
2289
|
-
const validateError = validate(input);
|
|
3229
|
+
const validateError = validate$4(input);
|
|
2290
3230
|
if (validateError !== null) {
|
|
2291
3231
|
throw validateError;
|
|
2292
3232
|
}
|
|
@@ -2444,6 +3384,245 @@ const getCdpMlConfiguredModelCollectionAdapterFactory = (luvio) => function cdpM
|
|
|
2444
3384
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
2445
3385
|
};
|
|
2446
3386
|
|
|
3387
|
+
function validate$3(obj, path = 'CdpMlCustomizableFieldDefinitionInputRepresentation') {
|
|
3388
|
+
const v_error = (() => {
|
|
3389
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3390
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3391
|
+
}
|
|
3392
|
+
const obj_filter = obj.filter;
|
|
3393
|
+
const path_filter = path + '.filter';
|
|
3394
|
+
if (typeof obj_filter !== 'object' || ArrayIsArray(obj_filter) || obj_filter === null) {
|
|
3395
|
+
return new TypeError('Expected "object" but received "' + typeof obj_filter + '" (at "' + path_filter + '")');
|
|
3396
|
+
}
|
|
3397
|
+
const obj_templateText = obj.templateText;
|
|
3398
|
+
const path_templateText = path + '.templateText';
|
|
3399
|
+
if (typeof obj_templateText !== 'string') {
|
|
3400
|
+
return new TypeError('Expected "string" but received "' + typeof obj_templateText + '" (at "' + path_templateText + '")');
|
|
3401
|
+
}
|
|
3402
|
+
})();
|
|
3403
|
+
return v_error === undefined ? null : v_error;
|
|
3404
|
+
}
|
|
3405
|
+
|
|
3406
|
+
function validate$2(obj, path = 'CdpMlCustomizableFieldInputRepresentation') {
|
|
3407
|
+
const v_error = (() => {
|
|
3408
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3409
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3410
|
+
}
|
|
3411
|
+
const obj_customDefinitions = obj.customDefinitions;
|
|
3412
|
+
const path_customDefinitions = path + '.customDefinitions';
|
|
3413
|
+
if (!ArrayIsArray(obj_customDefinitions)) {
|
|
3414
|
+
return new TypeError('Expected "array" but received "' + typeof obj_customDefinitions + '" (at "' + path_customDefinitions + '")');
|
|
3415
|
+
}
|
|
3416
|
+
for (let i = 0; i < obj_customDefinitions.length; i++) {
|
|
3417
|
+
const obj_customDefinitions_item = obj_customDefinitions[i];
|
|
3418
|
+
const path_customDefinitions_item = path_customDefinitions + '[' + i + ']';
|
|
3419
|
+
const referencepath_customDefinitions_itemValidationError = validate$3(obj_customDefinitions_item, path_customDefinitions_item);
|
|
3420
|
+
if (referencepath_customDefinitions_itemValidationError !== null) {
|
|
3421
|
+
let message = 'Object doesn\'t match CdpMlCustomizableFieldDefinitionInputRepresentation (at "' + path_customDefinitions_item + '")\n';
|
|
3422
|
+
message += referencepath_customDefinitions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3423
|
+
return new TypeError(message);
|
|
3424
|
+
}
|
|
3425
|
+
}
|
|
3426
|
+
const obj_name = obj.name;
|
|
3427
|
+
const path_name = path + '.name';
|
|
3428
|
+
if (typeof obj_name !== 'string') {
|
|
3429
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
3430
|
+
}
|
|
3431
|
+
const obj_type = obj.type;
|
|
3432
|
+
const path_type = path + '.type';
|
|
3433
|
+
if (typeof obj_type !== 'string') {
|
|
3434
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
3435
|
+
}
|
|
3436
|
+
})();
|
|
3437
|
+
return v_error === undefined ? null : v_error;
|
|
3438
|
+
}
|
|
3439
|
+
|
|
3440
|
+
function validate$1(obj, path = 'CdpAssetReferenceInputRepresentation') {
|
|
3441
|
+
const v_error = (() => {
|
|
3442
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3443
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3444
|
+
}
|
|
3445
|
+
if (obj.id !== undefined) {
|
|
3446
|
+
const obj_id = obj.id;
|
|
3447
|
+
const path_id = path + '.id';
|
|
3448
|
+
let obj_id_union0 = null;
|
|
3449
|
+
const obj_id_union0_error = (() => {
|
|
3450
|
+
if (typeof obj_id !== 'string') {
|
|
3451
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
3452
|
+
}
|
|
3453
|
+
})();
|
|
3454
|
+
if (obj_id_union0_error != null) {
|
|
3455
|
+
obj_id_union0 = obj_id_union0_error.message;
|
|
3456
|
+
}
|
|
3457
|
+
let obj_id_union1 = null;
|
|
3458
|
+
const obj_id_union1_error = (() => {
|
|
3459
|
+
if (obj_id !== null) {
|
|
3460
|
+
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
3461
|
+
}
|
|
3462
|
+
})();
|
|
3463
|
+
if (obj_id_union1_error != null) {
|
|
3464
|
+
obj_id_union1 = obj_id_union1_error.message;
|
|
3465
|
+
}
|
|
3466
|
+
if (obj_id_union0 && obj_id_union1) {
|
|
3467
|
+
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
3468
|
+
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3469
|
+
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3470
|
+
return new TypeError(message);
|
|
3471
|
+
}
|
|
3472
|
+
}
|
|
3473
|
+
if (obj.name !== undefined) {
|
|
3474
|
+
const obj_name = obj.name;
|
|
3475
|
+
const path_name = path + '.name';
|
|
3476
|
+
let obj_name_union0 = null;
|
|
3477
|
+
const obj_name_union0_error = (() => {
|
|
3478
|
+
if (typeof obj_name !== 'string') {
|
|
3479
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
3480
|
+
}
|
|
3481
|
+
})();
|
|
3482
|
+
if (obj_name_union0_error != null) {
|
|
3483
|
+
obj_name_union0 = obj_name_union0_error.message;
|
|
3484
|
+
}
|
|
3485
|
+
let obj_name_union1 = null;
|
|
3486
|
+
const obj_name_union1_error = (() => {
|
|
3487
|
+
if (obj_name !== null) {
|
|
3488
|
+
return new TypeError('Expected "null" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
3489
|
+
}
|
|
3490
|
+
})();
|
|
3491
|
+
if (obj_name_union1_error != null) {
|
|
3492
|
+
obj_name_union1 = obj_name_union1_error.message;
|
|
3493
|
+
}
|
|
3494
|
+
if (obj_name_union0 && obj_name_union1) {
|
|
3495
|
+
let message = 'Object doesn\'t match union (at "' + path_name + '")';
|
|
3496
|
+
message += '\n' + obj_name_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3497
|
+
message += '\n' + obj_name_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3498
|
+
return new TypeError(message);
|
|
3499
|
+
}
|
|
3500
|
+
}
|
|
3501
|
+
if (obj.namespace !== undefined) {
|
|
3502
|
+
const obj_namespace = obj.namespace;
|
|
3503
|
+
const path_namespace = path + '.namespace';
|
|
3504
|
+
let obj_namespace_union0 = null;
|
|
3505
|
+
const obj_namespace_union0_error = (() => {
|
|
3506
|
+
if (typeof obj_namespace !== 'string') {
|
|
3507
|
+
return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
3508
|
+
}
|
|
3509
|
+
})();
|
|
3510
|
+
if (obj_namespace_union0_error != null) {
|
|
3511
|
+
obj_namespace_union0 = obj_namespace_union0_error.message;
|
|
3512
|
+
}
|
|
3513
|
+
let obj_namespace_union1 = null;
|
|
3514
|
+
const obj_namespace_union1_error = (() => {
|
|
3515
|
+
if (obj_namespace !== null) {
|
|
3516
|
+
return new TypeError('Expected "null" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
3517
|
+
}
|
|
3518
|
+
})();
|
|
3519
|
+
if (obj_namespace_union1_error != null) {
|
|
3520
|
+
obj_namespace_union1 = obj_namespace_union1_error.message;
|
|
3521
|
+
}
|
|
3522
|
+
if (obj_namespace_union0 && obj_namespace_union1) {
|
|
3523
|
+
let message = 'Object doesn\'t match union (at "' + path_namespace + '")';
|
|
3524
|
+
message += '\n' + obj_namespace_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3525
|
+
message += '\n' + obj_namespace_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3526
|
+
return new TypeError(message);
|
|
3527
|
+
}
|
|
3528
|
+
}
|
|
3529
|
+
})();
|
|
3530
|
+
return v_error === undefined ? null : v_error;
|
|
3531
|
+
}
|
|
3532
|
+
|
|
3533
|
+
function validate(obj, path = 'CdpMlModelParameterOverrideInputRepresentation') {
|
|
3534
|
+
const v_error = (() => {
|
|
3535
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3536
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3537
|
+
}
|
|
3538
|
+
if (obj.continuousValue !== undefined) {
|
|
3539
|
+
const obj_continuousValue = obj.continuousValue;
|
|
3540
|
+
const path_continuousValue = path + '.continuousValue';
|
|
3541
|
+
let obj_continuousValue_union0 = null;
|
|
3542
|
+
const obj_continuousValue_union0_error = (() => {
|
|
3543
|
+
if (typeof obj_continuousValue !== 'number') {
|
|
3544
|
+
return new TypeError('Expected "number" but received "' + typeof obj_continuousValue + '" (at "' + path_continuousValue + '")');
|
|
3545
|
+
}
|
|
3546
|
+
})();
|
|
3547
|
+
if (obj_continuousValue_union0_error != null) {
|
|
3548
|
+
obj_continuousValue_union0 = obj_continuousValue_union0_error.message;
|
|
3549
|
+
}
|
|
3550
|
+
let obj_continuousValue_union1 = null;
|
|
3551
|
+
const obj_continuousValue_union1_error = (() => {
|
|
3552
|
+
if (obj_continuousValue !== null) {
|
|
3553
|
+
return new TypeError('Expected "null" but received "' + typeof obj_continuousValue + '" (at "' + path_continuousValue + '")');
|
|
3554
|
+
}
|
|
3555
|
+
})();
|
|
3556
|
+
if (obj_continuousValue_union1_error != null) {
|
|
3557
|
+
obj_continuousValue_union1 = obj_continuousValue_union1_error.message;
|
|
3558
|
+
}
|
|
3559
|
+
if (obj_continuousValue_union0 && obj_continuousValue_union1) {
|
|
3560
|
+
let message = 'Object doesn\'t match union (at "' + path_continuousValue + '")';
|
|
3561
|
+
message += '\n' + obj_continuousValue_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3562
|
+
message += '\n' + obj_continuousValue_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3563
|
+
return new TypeError(message);
|
|
3564
|
+
}
|
|
3565
|
+
}
|
|
3566
|
+
if (obj.discreteValue !== undefined) {
|
|
3567
|
+
const obj_discreteValue = obj.discreteValue;
|
|
3568
|
+
const path_discreteValue = path + '.discreteValue';
|
|
3569
|
+
let obj_discreteValue_union0 = null;
|
|
3570
|
+
const obj_discreteValue_union0_error = (() => {
|
|
3571
|
+
if (typeof obj_discreteValue !== 'string') {
|
|
3572
|
+
return new TypeError('Expected "string" but received "' + typeof obj_discreteValue + '" (at "' + path_discreteValue + '")');
|
|
3573
|
+
}
|
|
3574
|
+
})();
|
|
3575
|
+
if (obj_discreteValue_union0_error != null) {
|
|
3576
|
+
obj_discreteValue_union0 = obj_discreteValue_union0_error.message;
|
|
3577
|
+
}
|
|
3578
|
+
let obj_discreteValue_union1 = null;
|
|
3579
|
+
const obj_discreteValue_union1_error = (() => {
|
|
3580
|
+
if (obj_discreteValue !== null) {
|
|
3581
|
+
return new TypeError('Expected "null" but received "' + typeof obj_discreteValue + '" (at "' + path_discreteValue + '")');
|
|
3582
|
+
}
|
|
3583
|
+
})();
|
|
3584
|
+
if (obj_discreteValue_union1_error != null) {
|
|
3585
|
+
obj_discreteValue_union1 = obj_discreteValue_union1_error.message;
|
|
3586
|
+
}
|
|
3587
|
+
if (obj_discreteValue_union0 && obj_discreteValue_union1) {
|
|
3588
|
+
let message = 'Object doesn\'t match union (at "' + path_discreteValue + '")';
|
|
3589
|
+
message += '\n' + obj_discreteValue_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3590
|
+
message += '\n' + obj_discreteValue_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3591
|
+
return new TypeError(message);
|
|
3592
|
+
}
|
|
3593
|
+
}
|
|
3594
|
+
if (obj.parameterName !== undefined) {
|
|
3595
|
+
const obj_parameterName = obj.parameterName;
|
|
3596
|
+
const path_parameterName = path + '.parameterName';
|
|
3597
|
+
let obj_parameterName_union0 = null;
|
|
3598
|
+
const obj_parameterName_union0_error = (() => {
|
|
3599
|
+
if (typeof obj_parameterName !== 'string') {
|
|
3600
|
+
return new TypeError('Expected "string" but received "' + typeof obj_parameterName + '" (at "' + path_parameterName + '")');
|
|
3601
|
+
}
|
|
3602
|
+
})();
|
|
3603
|
+
if (obj_parameterName_union0_error != null) {
|
|
3604
|
+
obj_parameterName_union0 = obj_parameterName_union0_error.message;
|
|
3605
|
+
}
|
|
3606
|
+
let obj_parameterName_union1 = null;
|
|
3607
|
+
const obj_parameterName_union1_error = (() => {
|
|
3608
|
+
if (obj_parameterName !== null) {
|
|
3609
|
+
return new TypeError('Expected "null" but received "' + typeof obj_parameterName + '" (at "' + path_parameterName + '")');
|
|
3610
|
+
}
|
|
3611
|
+
})();
|
|
3612
|
+
if (obj_parameterName_union1_error != null) {
|
|
3613
|
+
obj_parameterName_union1 = obj_parameterName_union1_error.message;
|
|
3614
|
+
}
|
|
3615
|
+
if (obj_parameterName_union0 && obj_parameterName_union1) {
|
|
3616
|
+
let message = 'Object doesn\'t match union (at "' + path_parameterName + '")';
|
|
3617
|
+
message += '\n' + obj_parameterName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3618
|
+
message += '\n' + obj_parameterName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3619
|
+
return new TypeError(message);
|
|
3620
|
+
}
|
|
3621
|
+
}
|
|
3622
|
+
})();
|
|
3623
|
+
return v_error === undefined ? null : v_error;
|
|
3624
|
+
}
|
|
3625
|
+
|
|
2447
3626
|
function select$2(luvio, params) {
|
|
2448
3627
|
return select$5();
|
|
2449
3628
|
}
|
|
@@ -2481,60 +3660,61 @@ function createResourceRequest$2(config) {
|
|
|
2481
3660
|
};
|
|
2482
3661
|
}
|
|
2483
3662
|
|
|
2484
|
-
const adapterName$2 = '
|
|
2485
|
-
const
|
|
3663
|
+
const adapterName$2 = 'createCdpMlConfiguredModel';
|
|
3664
|
+
const createCdpMlConfiguredModel_ConfigPropertyMetadata = [
|
|
2486
3665
|
generateParamConfigMetadata('workspaceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2487
|
-
generateParamConfigMetadata('actionableFields',
|
|
3666
|
+
generateParamConfigMetadata('actionableFields', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
2488
3667
|
generateParamConfigMetadata('artifact', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2489
|
-
generateParamConfigMetadata('capability',
|
|
2490
|
-
generateParamConfigMetadata('customizableFields',
|
|
2491
|
-
generateParamConfigMetadata('description', false, 2 /* Body */,
|
|
3668
|
+
generateParamConfigMetadata('capability', false, 2 /* Body */, 0 /* String */),
|
|
3669
|
+
generateParamConfigMetadata('customizableFields', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
3670
|
+
generateParamConfigMetadata('description', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2492
3671
|
generateParamConfigMetadata('filter', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2493
|
-
generateParamConfigMetadata('label', false, 2 /* Body */,
|
|
2494
|
-
generateParamConfigMetadata('parameterOverrides',
|
|
2495
|
-
generateParamConfigMetadata('position',
|
|
2496
|
-
generateParamConfigMetadata('status',
|
|
3672
|
+
generateParamConfigMetadata('label', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3673
|
+
generateParamConfigMetadata('parameterOverrides', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
3674
|
+
generateParamConfigMetadata('position', false, 2 /* Body */, 3 /* Integer */),
|
|
3675
|
+
generateParamConfigMetadata('status', false, 2 /* Body */, 0 /* String */),
|
|
2497
3676
|
];
|
|
2498
|
-
const
|
|
2499
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$8(
|
|
3677
|
+
const createCdpMlConfiguredModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, createCdpMlConfiguredModel_ConfigPropertyMetadata);
|
|
3678
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$8(createCdpMlConfiguredModel_ConfigPropertyMetadata);
|
|
2500
3679
|
function typeCheckConfig$2(untrustedConfig) {
|
|
2501
3680
|
const config = {};
|
|
2502
|
-
typeCheckConfig$8(untrustedConfig, config,
|
|
3681
|
+
typeCheckConfig$8(untrustedConfig, config, createCdpMlConfiguredModel_ConfigPropertyMetadata);
|
|
2503
3682
|
const untrustedConfig_actionableFields = untrustedConfig.actionableFields;
|
|
2504
3683
|
if (ArrayIsArray$1(untrustedConfig_actionableFields)) {
|
|
2505
3684
|
const untrustedConfig_actionableFields_array = [];
|
|
2506
3685
|
for (let i = 0, arrayLength = untrustedConfig_actionableFields.length; i < arrayLength; i++) {
|
|
2507
3686
|
const untrustedConfig_actionableFields_item = untrustedConfig_actionableFields[i];
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
untrustedConfig_actionableFields_array.push(untrustedConfig_actionableFields_item_object);
|
|
2512
|
-
}
|
|
3687
|
+
const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$2(untrustedConfig_actionableFields_item);
|
|
3688
|
+
if (referenceCdpMlCustomizableFieldInputRepresentationValidationError === null) {
|
|
3689
|
+
untrustedConfig_actionableFields_array.push(untrustedConfig_actionableFields_item);
|
|
2513
3690
|
}
|
|
2514
3691
|
}
|
|
2515
3692
|
config.actionableFields = untrustedConfig_actionableFields_array;
|
|
2516
3693
|
}
|
|
2517
3694
|
const untrustedConfig_artifact = untrustedConfig.artifact;
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
config.artifact = untrustedConfig_artifact_object;
|
|
2522
|
-
}
|
|
3695
|
+
const referenceCdpAssetReferenceInputRepresentationValidationError = validate$1(untrustedConfig_artifact);
|
|
3696
|
+
if (referenceCdpAssetReferenceInputRepresentationValidationError === null) {
|
|
3697
|
+
config.artifact = untrustedConfig_artifact;
|
|
2523
3698
|
}
|
|
2524
3699
|
const untrustedConfig_customizableFields = untrustedConfig.customizableFields;
|
|
2525
3700
|
if (ArrayIsArray$1(untrustedConfig_customizableFields)) {
|
|
2526
3701
|
const untrustedConfig_customizableFields_array = [];
|
|
2527
3702
|
for (let i = 0, arrayLength = untrustedConfig_customizableFields.length; i < arrayLength; i++) {
|
|
2528
3703
|
const untrustedConfig_customizableFields_item = untrustedConfig_customizableFields[i];
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
untrustedConfig_customizableFields_array.push(untrustedConfig_customizableFields_item_object);
|
|
2533
|
-
}
|
|
3704
|
+
const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$2(untrustedConfig_customizableFields_item);
|
|
3705
|
+
if (referenceCdpMlCustomizableFieldInputRepresentationValidationError === null) {
|
|
3706
|
+
untrustedConfig_customizableFields_array.push(untrustedConfig_customizableFields_item);
|
|
2534
3707
|
}
|
|
2535
3708
|
}
|
|
2536
3709
|
config.customizableFields = untrustedConfig_customizableFields_array;
|
|
2537
3710
|
}
|
|
3711
|
+
const untrustedConfig_description = untrustedConfig.description;
|
|
3712
|
+
if (typeof untrustedConfig_description === 'string') {
|
|
3713
|
+
config.description = untrustedConfig_description;
|
|
3714
|
+
}
|
|
3715
|
+
if (untrustedConfig_description === null) {
|
|
3716
|
+
config.description = untrustedConfig_description;
|
|
3717
|
+
}
|
|
2538
3718
|
const untrustedConfig_filter = untrustedConfig.filter;
|
|
2539
3719
|
if (untrustedIsObject(untrustedConfig_filter)) {
|
|
2540
3720
|
const untrustedConfig_filter_object = {};
|
|
@@ -2542,16 +3722,21 @@ function typeCheckConfig$2(untrustedConfig) {
|
|
|
2542
3722
|
config.filter = untrustedConfig_filter_object;
|
|
2543
3723
|
}
|
|
2544
3724
|
}
|
|
3725
|
+
const untrustedConfig_label = untrustedConfig.label;
|
|
3726
|
+
if (typeof untrustedConfig_label === 'string') {
|
|
3727
|
+
config.label = untrustedConfig_label;
|
|
3728
|
+
}
|
|
3729
|
+
if (untrustedConfig_label === null) {
|
|
3730
|
+
config.label = untrustedConfig_label;
|
|
3731
|
+
}
|
|
2545
3732
|
const untrustedConfig_parameterOverrides = untrustedConfig.parameterOverrides;
|
|
2546
3733
|
if (ArrayIsArray$1(untrustedConfig_parameterOverrides)) {
|
|
2547
3734
|
const untrustedConfig_parameterOverrides_array = [];
|
|
2548
3735
|
for (let i = 0, arrayLength = untrustedConfig_parameterOverrides.length; i < arrayLength; i++) {
|
|
2549
3736
|
const untrustedConfig_parameterOverrides_item = untrustedConfig_parameterOverrides[i];
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
untrustedConfig_parameterOverrides_array.push(untrustedConfig_parameterOverrides_item_object);
|
|
2554
|
-
}
|
|
3737
|
+
const referenceCdpMlModelParameterOverrideInputRepresentationValidationError = validate(untrustedConfig_parameterOverrides_item);
|
|
3738
|
+
if (referenceCdpMlModelParameterOverrideInputRepresentationValidationError === null) {
|
|
3739
|
+
untrustedConfig_parameterOverrides_array.push(untrustedConfig_parameterOverrides_item);
|
|
2555
3740
|
}
|
|
2556
3741
|
}
|
|
2557
3742
|
config.parameterOverrides = untrustedConfig_parameterOverrides_array;
|
|
@@ -2589,12 +3774,12 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
2589
3774
|
throw response;
|
|
2590
3775
|
});
|
|
2591
3776
|
}
|
|
2592
|
-
const
|
|
2593
|
-
return function
|
|
2594
|
-
const config = validateAdapterConfig$2(untrustedConfig,
|
|
3777
|
+
const createCdpMlConfiguredModelAdapterFactory = (luvio) => {
|
|
3778
|
+
return function createCdpMlConfiguredModel(untrustedConfig) {
|
|
3779
|
+
const config = validateAdapterConfig$2(untrustedConfig, createCdpMlConfiguredModel_ConfigPropertyNames);
|
|
2595
3780
|
// Invalid or incomplete config
|
|
2596
3781
|
if (config === null) {
|
|
2597
|
-
throw new Error('Invalid config for "
|
|
3782
|
+
throw new Error('Invalid config for "createCdpMlConfiguredModel"');
|
|
2598
3783
|
}
|
|
2599
3784
|
return buildNetworkSnapshot$2(luvio, config);
|
|
2600
3785
|
};
|
|
@@ -2783,16 +3968,16 @@ const adapterName = 'updateCdpMlConfiguredModel';
|
|
|
2783
3968
|
const updateCdpMlConfiguredModel_ConfigPropertyMetadata = [
|
|
2784
3969
|
generateParamConfigMetadata('modelIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2785
3970
|
generateParamConfigMetadata('workspaceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2786
|
-
generateParamConfigMetadata('actionableFields',
|
|
3971
|
+
generateParamConfigMetadata('actionableFields', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
2787
3972
|
generateParamConfigMetadata('artifact', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2788
|
-
generateParamConfigMetadata('capability',
|
|
2789
|
-
generateParamConfigMetadata('customizableFields',
|
|
2790
|
-
generateParamConfigMetadata('description', false, 2 /* Body */,
|
|
3973
|
+
generateParamConfigMetadata('capability', false, 2 /* Body */, 0 /* String */),
|
|
3974
|
+
generateParamConfigMetadata('customizableFields', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
3975
|
+
generateParamConfigMetadata('description', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2791
3976
|
generateParamConfigMetadata('filter', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2792
|
-
generateParamConfigMetadata('label', false, 2 /* Body */,
|
|
2793
|
-
generateParamConfigMetadata('parameterOverrides',
|
|
2794
|
-
generateParamConfigMetadata('position',
|
|
2795
|
-
generateParamConfigMetadata('status',
|
|
3977
|
+
generateParamConfigMetadata('label', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3978
|
+
generateParamConfigMetadata('parameterOverrides', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
3979
|
+
generateParamConfigMetadata('position', false, 2 /* Body */, 3 /* Integer */),
|
|
3980
|
+
generateParamConfigMetadata('status', false, 2 /* Body */, 0 /* String */),
|
|
2796
3981
|
];
|
|
2797
3982
|
const updateCdpMlConfiguredModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateCdpMlConfiguredModel_ConfigPropertyMetadata);
|
|
2798
3983
|
const createResourceParams = /*#__PURE__*/ createResourceParams$8(updateCdpMlConfiguredModel_ConfigPropertyMetadata);
|
|
@@ -2804,36 +3989,37 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
2804
3989
|
const untrustedConfig_actionableFields_array = [];
|
|
2805
3990
|
for (let i = 0, arrayLength = untrustedConfig_actionableFields.length; i < arrayLength; i++) {
|
|
2806
3991
|
const untrustedConfig_actionableFields_item = untrustedConfig_actionableFields[i];
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
untrustedConfig_actionableFields_array.push(untrustedConfig_actionableFields_item_object);
|
|
2811
|
-
}
|
|
3992
|
+
const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$2(untrustedConfig_actionableFields_item);
|
|
3993
|
+
if (referenceCdpMlCustomizableFieldInputRepresentationValidationError === null) {
|
|
3994
|
+
untrustedConfig_actionableFields_array.push(untrustedConfig_actionableFields_item);
|
|
2812
3995
|
}
|
|
2813
3996
|
}
|
|
2814
3997
|
config.actionableFields = untrustedConfig_actionableFields_array;
|
|
2815
3998
|
}
|
|
2816
3999
|
const untrustedConfig_artifact = untrustedConfig.artifact;
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
config.artifact = untrustedConfig_artifact_object;
|
|
2821
|
-
}
|
|
4000
|
+
const referenceCdpAssetReferenceInputRepresentationValidationError = validate$1(untrustedConfig_artifact);
|
|
4001
|
+
if (referenceCdpAssetReferenceInputRepresentationValidationError === null) {
|
|
4002
|
+
config.artifact = untrustedConfig_artifact;
|
|
2822
4003
|
}
|
|
2823
4004
|
const untrustedConfig_customizableFields = untrustedConfig.customizableFields;
|
|
2824
4005
|
if (ArrayIsArray$1(untrustedConfig_customizableFields)) {
|
|
2825
4006
|
const untrustedConfig_customizableFields_array = [];
|
|
2826
4007
|
for (let i = 0, arrayLength = untrustedConfig_customizableFields.length; i < arrayLength; i++) {
|
|
2827
4008
|
const untrustedConfig_customizableFields_item = untrustedConfig_customizableFields[i];
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
untrustedConfig_customizableFields_array.push(untrustedConfig_customizableFields_item_object);
|
|
2832
|
-
}
|
|
4009
|
+
const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$2(untrustedConfig_customizableFields_item);
|
|
4010
|
+
if (referenceCdpMlCustomizableFieldInputRepresentationValidationError === null) {
|
|
4011
|
+
untrustedConfig_customizableFields_array.push(untrustedConfig_customizableFields_item);
|
|
2833
4012
|
}
|
|
2834
4013
|
}
|
|
2835
4014
|
config.customizableFields = untrustedConfig_customizableFields_array;
|
|
2836
4015
|
}
|
|
4016
|
+
const untrustedConfig_description = untrustedConfig.description;
|
|
4017
|
+
if (typeof untrustedConfig_description === 'string') {
|
|
4018
|
+
config.description = untrustedConfig_description;
|
|
4019
|
+
}
|
|
4020
|
+
if (untrustedConfig_description === null) {
|
|
4021
|
+
config.description = untrustedConfig_description;
|
|
4022
|
+
}
|
|
2837
4023
|
const untrustedConfig_filter = untrustedConfig.filter;
|
|
2838
4024
|
if (untrustedIsObject(untrustedConfig_filter)) {
|
|
2839
4025
|
const untrustedConfig_filter_object = {};
|
|
@@ -2841,16 +4027,21 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
2841
4027
|
config.filter = untrustedConfig_filter_object;
|
|
2842
4028
|
}
|
|
2843
4029
|
}
|
|
4030
|
+
const untrustedConfig_label = untrustedConfig.label;
|
|
4031
|
+
if (typeof untrustedConfig_label === 'string') {
|
|
4032
|
+
config.label = untrustedConfig_label;
|
|
4033
|
+
}
|
|
4034
|
+
if (untrustedConfig_label === null) {
|
|
4035
|
+
config.label = untrustedConfig_label;
|
|
4036
|
+
}
|
|
2844
4037
|
const untrustedConfig_parameterOverrides = untrustedConfig.parameterOverrides;
|
|
2845
4038
|
if (ArrayIsArray$1(untrustedConfig_parameterOverrides)) {
|
|
2846
4039
|
const untrustedConfig_parameterOverrides_array = [];
|
|
2847
4040
|
for (let i = 0, arrayLength = untrustedConfig_parameterOverrides.length; i < arrayLength; i++) {
|
|
2848
4041
|
const untrustedConfig_parameterOverrides_item = untrustedConfig_parameterOverrides[i];
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
untrustedConfig_parameterOverrides_array.push(untrustedConfig_parameterOverrides_item_object);
|
|
2853
|
-
}
|
|
4042
|
+
const referenceCdpMlModelParameterOverrideInputRepresentationValidationError = validate(untrustedConfig_parameterOverrides_item);
|
|
4043
|
+
if (referenceCdpMlModelParameterOverrideInputRepresentationValidationError === null) {
|
|
4044
|
+
untrustedConfig_parameterOverrides_array.push(untrustedConfig_parameterOverrides_item);
|
|
2854
4045
|
}
|
|
2855
4046
|
}
|
|
2856
4047
|
config.parameterOverrides = untrustedConfig_parameterOverrides_array;
|
|
@@ -2899,4 +4090,4 @@ const updateCdpMlConfiguredModelAdapterFactory = (luvio) => {
|
|
|
2899
4090
|
};
|
|
2900
4091
|
};
|
|
2901
4092
|
|
|
2902
|
-
export {
|
|
4093
|
+
export { createCdpMlConfiguredModelAdapterFactory, getCdpMlConfiguredModelAdapterFactory, getCdpMlConfiguredModelCollectionAdapterFactory, getCdpMlModelArtifactAdapterFactory, getCdpMlModelArtifactCollectionAdapterFactory, getCdpMlWorkspaceAdapterFactory, getCdpMlWorkspaceCollectionAdapterFactory, updateCdpMlConfiguredModelAdapterFactory };
|