@salesforce/lds-adapters-platform-cdp-machine-learning 1.271.0 → 1.273.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/platform-cdp-machine-learning.js +1538 -293
- 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 +19 -19
- package/dist/es/es2018/types/src/generated/types/CdpMlModelArtifactCollectionRepresentation.d.ts +3 -3
- 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/dist/es/es2018/types/src/generated/types/CdpPaginatedResponseBaseRepresentation.d.ts +3 -3
- package/package.json +3 -3
- package/sfdc/index.js +1473 -228
- package/src/raml/api.raml +132 -78
- 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,36 +385,84 @@ 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 + '")');
|
|
267
393
|
}
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
394
|
+
if (obj.createdBy !== undefined) {
|
|
395
|
+
const obj_createdBy = obj.createdBy;
|
|
396
|
+
const path_createdBy = path + '.createdBy';
|
|
397
|
+
const referencepath_createdByValidationError = validate$s(obj_createdBy, path_createdBy);
|
|
398
|
+
if (referencepath_createdByValidationError !== null) {
|
|
399
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
400
|
+
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
401
|
+
return new TypeError(message);
|
|
402
|
+
}
|
|
275
403
|
}
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
404
|
+
if (obj.createdDate !== undefined) {
|
|
405
|
+
const obj_createdDate = obj.createdDate;
|
|
406
|
+
const path_createdDate = path + '.createdDate';
|
|
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);
|
|
430
|
+
}
|
|
280
431
|
}
|
|
281
432
|
if (obj.description !== undefined) {
|
|
282
433
|
const obj_description = obj.description;
|
|
283
434
|
const path_description = path + '.description';
|
|
284
|
-
|
|
285
|
-
|
|
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);
|
|
286
458
|
}
|
|
287
459
|
}
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
460
|
+
if (obj.id !== undefined) {
|
|
461
|
+
const obj_id = obj.id;
|
|
462
|
+
const path_id = path + '.id';
|
|
463
|
+
if (typeof obj_id !== 'string') {
|
|
464
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
465
|
+
}
|
|
292
466
|
}
|
|
293
467
|
const obj_inputFields = obj.inputFields;
|
|
294
468
|
const path_inputFields = path + '.inputFields';
|
|
@@ -298,7 +472,7 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
298
472
|
for (let i = 0; i < obj_inputFields.length; i++) {
|
|
299
473
|
const obj_inputFields_item = obj_inputFields[i];
|
|
300
474
|
const path_inputFields_item = path_inputFields + '[' + i + ']';
|
|
301
|
-
const referencepath_inputFields_itemValidationError = validate$
|
|
475
|
+
const referencepath_inputFields_itemValidationError = validate$r(obj_inputFields_item, path_inputFields_item);
|
|
302
476
|
if (referencepath_inputFields_itemValidationError !== null) {
|
|
303
477
|
let message = 'Object doesn\'t match CdpMlModelInputFieldBaseRepresentation (at "' + path_inputFields_item + '")\n';
|
|
304
478
|
message += referencepath_inputFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -308,22 +482,68 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
308
482
|
if (obj.label !== undefined) {
|
|
309
483
|
const obj_label = obj.label;
|
|
310
484
|
const path_label = path + '.label';
|
|
311
|
-
|
|
312
|
-
|
|
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);
|
|
313
508
|
}
|
|
314
509
|
}
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
510
|
+
if (obj.lastModifiedBy !== undefined) {
|
|
511
|
+
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
512
|
+
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
513
|
+
const referencepath_lastModifiedByValidationError = validate$s(obj_lastModifiedBy, path_lastModifiedBy);
|
|
514
|
+
if (referencepath_lastModifiedByValidationError !== null) {
|
|
515
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
516
|
+
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
517
|
+
return new TypeError(message);
|
|
518
|
+
}
|
|
322
519
|
}
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
520
|
+
if (obj.lastModifiedDate !== undefined) {
|
|
521
|
+
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
522
|
+
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
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);
|
|
546
|
+
}
|
|
327
547
|
}
|
|
328
548
|
const obj_modelType = obj.modelType;
|
|
329
549
|
const path_modelType = path + '.modelType';
|
|
@@ -338,8 +558,29 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
338
558
|
if (obj.namespace !== undefined) {
|
|
339
559
|
const obj_namespace = obj.namespace;
|
|
340
560
|
const path_namespace = path + '.namespace';
|
|
341
|
-
|
|
342
|
-
|
|
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);
|
|
343
584
|
}
|
|
344
585
|
}
|
|
345
586
|
const obj_outputFields = obj.outputFields;
|
|
@@ -350,7 +591,7 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
350
591
|
for (let i = 0; i < obj_outputFields.length; i++) {
|
|
351
592
|
const obj_outputFields_item = obj_outputFields[i];
|
|
352
593
|
const path_outputFields_item = path_outputFields + '[' + i + ']';
|
|
353
|
-
const referencepath_outputFields_itemValidationError = validate$
|
|
594
|
+
const referencepath_outputFields_itemValidationError = validate$q(obj_outputFields_item, path_outputFields_item);
|
|
354
595
|
if (referencepath_outputFields_itemValidationError !== null) {
|
|
355
596
|
let message = 'Object doesn\'t match CdpMlModelOutputFieldRepresentation (at "' + path_outputFields_item + '")\n';
|
|
356
597
|
message += referencepath_outputFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -365,7 +606,7 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
365
606
|
for (let i = 0; i < obj_parameters.length; i++) {
|
|
366
607
|
const obj_parameters_item = obj_parameters[i];
|
|
367
608
|
const path_parameters_item = path_parameters + '[' + i + ']';
|
|
368
|
-
const referencepath_parameters_itemValidationError = validate$
|
|
609
|
+
const referencepath_parameters_itemValidationError = validate$p(obj_parameters_item, path_parameters_item);
|
|
369
610
|
if (referencepath_parameters_itemValidationError !== null) {
|
|
370
611
|
let message = 'Object doesn\'t match CdpMlModelParameterDefinitionBaseRepresentation (at "' + path_parameters_item + '")\n';
|
|
371
612
|
message += referencepath_parameters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -377,13 +618,15 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
377
618
|
if (typeof obj_runtimeType !== 'string') {
|
|
378
619
|
return new TypeError('Expected "string" but received "' + typeof obj_runtimeType + '" (at "' + path_runtimeType + '")');
|
|
379
620
|
}
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
621
|
+
if (obj.source !== undefined) {
|
|
622
|
+
const obj_source = obj.source;
|
|
623
|
+
const path_source = path + '.source';
|
|
624
|
+
const referencepath_sourceValidationError = validate$o(obj_source, path_source);
|
|
625
|
+
if (referencepath_sourceValidationError !== null) {
|
|
626
|
+
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_source + '")\n';
|
|
627
|
+
message += referencepath_sourceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
628
|
+
return new TypeError(message);
|
|
629
|
+
}
|
|
387
630
|
}
|
|
388
631
|
const obj_sourceType = obj.sourceType;
|
|
389
632
|
const path_sourceType = path + '.sourceType';
|
|
@@ -418,7 +661,7 @@ function equals$5(existing, incoming) {
|
|
|
418
661
|
}
|
|
419
662
|
const ingest$5 = function CdpMlModelArtifactBaseRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
420
663
|
if (process.env.NODE_ENV !== 'production') {
|
|
421
|
-
const validateError = validate$
|
|
664
|
+
const validateError = validate$n(input);
|
|
422
665
|
if (validateError !== null) {
|
|
423
666
|
throw validateError;
|
|
424
667
|
}
|
|
@@ -439,8 +682,8 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
439
682
|
}
|
|
440
683
|
|
|
441
684
|
const TTL$4 = 1000;
|
|
442
|
-
const VERSION$4 = "
|
|
443
|
-
function validate$
|
|
685
|
+
const VERSION$4 = "31baba639dc891173a7ce2db82dae35f";
|
|
686
|
+
function validate$m(obj, path = 'CdpMlModelArtifactCollectionRepresentation') {
|
|
444
687
|
const v_error = (() => {
|
|
445
688
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
446
689
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -458,7 +701,7 @@ function validate$i(obj, path = 'CdpMlModelArtifactCollectionRepresentation') {
|
|
|
458
701
|
for (let i = 0; i < obj_modelArtifacts.length; i++) {
|
|
459
702
|
const obj_modelArtifacts_item = obj_modelArtifacts[i];
|
|
460
703
|
const path_modelArtifacts_item = path_modelArtifacts + '[' + i + ']';
|
|
461
|
-
const referencepath_modelArtifacts_itemValidationError = validate$
|
|
704
|
+
const referencepath_modelArtifacts_itemValidationError = validate$n(obj_modelArtifacts_item, path_modelArtifacts_item);
|
|
462
705
|
if (referencepath_modelArtifacts_itemValidationError !== null) {
|
|
463
706
|
let message = 'Object doesn\'t match CdpMlModelArtifactBaseRepresentation (at "' + path_modelArtifacts_item + '")\n';
|
|
464
707
|
message += referencepath_modelArtifacts_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -467,8 +710,29 @@ function validate$i(obj, path = 'CdpMlModelArtifactCollectionRepresentation') {
|
|
|
467
710
|
}
|
|
468
711
|
const obj_nextPageUrl = obj.nextPageUrl;
|
|
469
712
|
const path_nextPageUrl = path + '.nextPageUrl';
|
|
470
|
-
|
|
471
|
-
|
|
713
|
+
let obj_nextPageUrl_union0 = null;
|
|
714
|
+
const obj_nextPageUrl_union0_error = (() => {
|
|
715
|
+
if (typeof obj_nextPageUrl !== 'string') {
|
|
716
|
+
return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
|
|
717
|
+
}
|
|
718
|
+
})();
|
|
719
|
+
if (obj_nextPageUrl_union0_error != null) {
|
|
720
|
+
obj_nextPageUrl_union0 = obj_nextPageUrl_union0_error.message;
|
|
721
|
+
}
|
|
722
|
+
let obj_nextPageUrl_union1 = null;
|
|
723
|
+
const obj_nextPageUrl_union1_error = (() => {
|
|
724
|
+
if (obj_nextPageUrl !== null) {
|
|
725
|
+
return new TypeError('Expected "null" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
|
|
726
|
+
}
|
|
727
|
+
})();
|
|
728
|
+
if (obj_nextPageUrl_union1_error != null) {
|
|
729
|
+
obj_nextPageUrl_union1 = obj_nextPageUrl_union1_error.message;
|
|
730
|
+
}
|
|
731
|
+
if (obj_nextPageUrl_union0 && obj_nextPageUrl_union1) {
|
|
732
|
+
let message = 'Object doesn\'t match union (at "' + path_nextPageUrl + '")';
|
|
733
|
+
message += '\n' + obj_nextPageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
734
|
+
message += '\n' + obj_nextPageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
735
|
+
return new TypeError(message);
|
|
472
736
|
}
|
|
473
737
|
const obj_totalSize = obj.totalSize;
|
|
474
738
|
const path_totalSize = path + '.totalSize';
|
|
@@ -498,7 +762,7 @@ function equals$4(existing, incoming) {
|
|
|
498
762
|
}
|
|
499
763
|
const ingest$4 = function CdpMlModelArtifactCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
500
764
|
if (process.env.NODE_ENV !== 'production') {
|
|
501
|
-
const validateError = validate$
|
|
765
|
+
const validateError = validate$m(input);
|
|
502
766
|
if (validateError !== null) {
|
|
503
767
|
throw validateError;
|
|
504
768
|
}
|
|
@@ -797,7 +1061,7 @@ const getCdpMlModelArtifactAdapterFactory = (luvio) => function cdpMachineLearni
|
|
|
797
1061
|
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
798
1062
|
};
|
|
799
1063
|
|
|
800
|
-
function validate$
|
|
1064
|
+
function validate$l(obj, path = 'CdpMlModelTypeRepresentation') {
|
|
801
1065
|
const v_error = (() => {
|
|
802
1066
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
803
1067
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -805,25 +1069,92 @@ function validate$h(obj, path = 'CdpMlModelTypeRepresentation') {
|
|
|
805
1069
|
if (obj.connectorType !== undefined) {
|
|
806
1070
|
const obj_connectorType = obj.connectorType;
|
|
807
1071
|
const path_connectorType = path + '.connectorType';
|
|
808
|
-
|
|
809
|
-
|
|
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);
|
|
810
1095
|
}
|
|
811
1096
|
}
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
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
|
+
}
|
|
816
1124
|
}
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
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
|
+
}
|
|
821
1152
|
}
|
|
822
1153
|
})();
|
|
823
1154
|
return v_error === undefined ? null : v_error;
|
|
824
1155
|
}
|
|
825
1156
|
|
|
826
|
-
function validate$
|
|
1157
|
+
function validate$k(obj, path = 'CdpMlModelOutcomeDefinitionRepresentation') {
|
|
827
1158
|
const v_error = (() => {
|
|
828
1159
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
829
1160
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -836,7 +1167,7 @@ function validate$g(obj, path = 'CdpMlModelOutcomeDefinitionRepresentation') {
|
|
|
836
1167
|
for (let i = 0; i < obj_fields.length; i++) {
|
|
837
1168
|
const obj_fields_item = obj_fields[i];
|
|
838
1169
|
const path_fields_item = path_fields + '[' + i + ']';
|
|
839
|
-
const referencepath_fields_itemValidationError = validate$
|
|
1170
|
+
const referencepath_fields_itemValidationError = validate$q(obj_fields_item, path_fields_item);
|
|
840
1171
|
if (referencepath_fields_itemValidationError !== null) {
|
|
841
1172
|
let message = 'Object doesn\'t match CdpMlModelOutputFieldRepresentation (at "' + path_fields_item + '")\n';
|
|
842
1173
|
message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -852,7 +1183,7 @@ function validate$g(obj, path = 'CdpMlModelOutcomeDefinitionRepresentation') {
|
|
|
852
1183
|
return v_error === undefined ? null : v_error;
|
|
853
1184
|
}
|
|
854
1185
|
|
|
855
|
-
function validate$
|
|
1186
|
+
function validate$j(obj, path = 'CdpMlModelRefreshRecipientRepresentation') {
|
|
856
1187
|
const v_error = (() => {
|
|
857
1188
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
858
1189
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -876,7 +1207,7 @@ function validate$f(obj, path = 'CdpMlModelRefreshRecipientRepresentation') {
|
|
|
876
1207
|
return v_error === undefined ? null : v_error;
|
|
877
1208
|
}
|
|
878
1209
|
|
|
879
|
-
function validate$
|
|
1210
|
+
function validate$i(obj, path = 'CdpTimeZoneRepresentation') {
|
|
880
1211
|
const v_error = (() => {
|
|
881
1212
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
882
1213
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -896,7 +1227,7 @@ function validate$e(obj, path = 'CdpTimeZoneRepresentation') {
|
|
|
896
1227
|
return v_error === undefined ? null : v_error;
|
|
897
1228
|
}
|
|
898
1229
|
|
|
899
|
-
function validate$
|
|
1230
|
+
function validate$h(obj, path = 'CdpTimeRepresentation') {
|
|
900
1231
|
const v_error = (() => {
|
|
901
1232
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
902
1233
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -913,7 +1244,7 @@ function validate$d(obj, path = 'CdpTimeRepresentation') {
|
|
|
913
1244
|
}
|
|
914
1245
|
const obj_timezone = obj.timezone;
|
|
915
1246
|
const path_timezone = path + '.timezone';
|
|
916
|
-
const referencepath_timezoneValidationError = validate$
|
|
1247
|
+
const referencepath_timezoneValidationError = validate$i(obj_timezone, path_timezone);
|
|
917
1248
|
if (referencepath_timezoneValidationError !== null) {
|
|
918
1249
|
let message = 'Object doesn\'t match CdpTimeZoneRepresentation (at "' + path_timezone + '")\n';
|
|
919
1250
|
message += referencepath_timezoneValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -923,7 +1254,7 @@ function validate$d(obj, path = 'CdpTimeRepresentation') {
|
|
|
923
1254
|
return v_error === undefined ? null : v_error;
|
|
924
1255
|
}
|
|
925
1256
|
|
|
926
|
-
function validate$
|
|
1257
|
+
function validate$g(obj, path = 'CdpScheduleRepresentation') {
|
|
927
1258
|
const v_error = (() => {
|
|
928
1259
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
929
1260
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -940,7 +1271,7 @@ function validate$c(obj, path = 'CdpScheduleRepresentation') {
|
|
|
940
1271
|
}
|
|
941
1272
|
const obj_time = obj.time;
|
|
942
1273
|
const path_time = path + '.time';
|
|
943
|
-
const referencepath_timeValidationError = validate$
|
|
1274
|
+
const referencepath_timeValidationError = validate$h(obj_time, path_time);
|
|
944
1275
|
if (referencepath_timeValidationError !== null) {
|
|
945
1276
|
let message = 'Object doesn\'t match CdpTimeRepresentation (at "' + path_time + '")\n';
|
|
946
1277
|
message += referencepath_timeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -950,7 +1281,7 @@ function validate$c(obj, path = 'CdpScheduleRepresentation') {
|
|
|
950
1281
|
return v_error === undefined ? null : v_error;
|
|
951
1282
|
}
|
|
952
1283
|
|
|
953
|
-
function validate$
|
|
1284
|
+
function validate$f(obj, path = 'CdpMlModelRefreshConfigRepresentation') {
|
|
954
1285
|
const v_error = (() => {
|
|
955
1286
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
956
1287
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -968,7 +1299,7 @@ function validate$b(obj, path = 'CdpMlModelRefreshConfigRepresentation') {
|
|
|
968
1299
|
for (let i = 0; i < obj_recipients.length; i++) {
|
|
969
1300
|
const obj_recipients_item = obj_recipients[i];
|
|
970
1301
|
const path_recipients_item = path_recipients + '[' + i + ']';
|
|
971
|
-
const referencepath_recipients_itemValidationError = validate$
|
|
1302
|
+
const referencepath_recipients_itemValidationError = validate$j(obj_recipients_item, path_recipients_item);
|
|
972
1303
|
if (referencepath_recipients_itemValidationError !== null) {
|
|
973
1304
|
let message = 'Object doesn\'t match CdpMlModelRefreshRecipientRepresentation (at "' + path_recipients_item + '")\n';
|
|
974
1305
|
message += referencepath_recipients_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -977,7 +1308,7 @@ function validate$b(obj, path = 'CdpMlModelRefreshConfigRepresentation') {
|
|
|
977
1308
|
}
|
|
978
1309
|
const obj_schedule = obj.schedule;
|
|
979
1310
|
const path_schedule = path + '.schedule';
|
|
980
|
-
const referencepath_scheduleValidationError = validate$
|
|
1311
|
+
const referencepath_scheduleValidationError = validate$g(obj_schedule, path_schedule);
|
|
981
1312
|
if (referencepath_scheduleValidationError !== null) {
|
|
982
1313
|
let message = 'Object doesn\'t match CdpScheduleRepresentation (at "' + path_schedule + '")\n';
|
|
983
1314
|
message += referencepath_scheduleValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -987,7 +1318,7 @@ function validate$b(obj, path = 'CdpMlModelRefreshConfigRepresentation') {
|
|
|
987
1318
|
return v_error === undefined ? null : v_error;
|
|
988
1319
|
}
|
|
989
1320
|
|
|
990
|
-
function validate$
|
|
1321
|
+
function validate$e(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
991
1322
|
const v_error = (() => {
|
|
992
1323
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
993
1324
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -995,7 +1326,7 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
995
1326
|
if (obj.activeSetup !== undefined) {
|
|
996
1327
|
const obj_activeSetup = obj.activeSetup;
|
|
997
1328
|
const path_activeSetup = path + '.activeSetup';
|
|
998
|
-
const referencepath_activeSetupValidationError = validate$
|
|
1329
|
+
const referencepath_activeSetupValidationError = validate$o(obj_activeSetup, path_activeSetup);
|
|
999
1330
|
if (referencepath_activeSetupValidationError !== null) {
|
|
1000
1331
|
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_activeSetup + '")\n';
|
|
1001
1332
|
message += referencepath_activeSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1005,14 +1336,35 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
1005
1336
|
if (obj.activeSetupVersionNumber !== undefined) {
|
|
1006
1337
|
const obj_activeSetupVersionNumber = obj.activeSetupVersionNumber;
|
|
1007
1338
|
const path_activeSetupVersionNumber = path + '.activeSetupVersionNumber';
|
|
1008
|
-
|
|
1009
|
-
|
|
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);
|
|
1010
1362
|
}
|
|
1011
1363
|
}
|
|
1012
1364
|
if (obj.createdBy !== undefined) {
|
|
1013
1365
|
const obj_createdBy = obj.createdBy;
|
|
1014
1366
|
const path_createdBy = path + '.createdBy';
|
|
1015
|
-
const referencepath_createdByValidationError = validate$
|
|
1367
|
+
const referencepath_createdByValidationError = validate$s(obj_createdBy, path_createdBy);
|
|
1016
1368
|
if (referencepath_createdByValidationError !== null) {
|
|
1017
1369
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
1018
1370
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1022,22 +1374,85 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
1022
1374
|
if (obj.createdDate !== undefined) {
|
|
1023
1375
|
const obj_createdDate = obj.createdDate;
|
|
1024
1376
|
const path_createdDate = path + '.createdDate';
|
|
1025
|
-
|
|
1026
|
-
|
|
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);
|
|
1027
1400
|
}
|
|
1028
1401
|
}
|
|
1029
1402
|
if (obj.description !== undefined) {
|
|
1030
1403
|
const obj_description = obj.description;
|
|
1031
1404
|
const path_description = path + '.description';
|
|
1032
|
-
|
|
1033
|
-
|
|
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);
|
|
1034
1428
|
}
|
|
1035
1429
|
}
|
|
1036
1430
|
if (obj.historiesUrl !== undefined) {
|
|
1037
1431
|
const obj_historiesUrl = obj.historiesUrl;
|
|
1038
1432
|
const path_historiesUrl = path + '.historiesUrl';
|
|
1039
|
-
|
|
1040
|
-
|
|
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);
|
|
1041
1456
|
}
|
|
1042
1457
|
}
|
|
1043
1458
|
if (obj.id !== undefined) {
|
|
@@ -1050,14 +1465,35 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
1050
1465
|
if (obj.label !== undefined) {
|
|
1051
1466
|
const obj_label = obj.label;
|
|
1052
1467
|
const path_label = path + '.label';
|
|
1053
|
-
|
|
1054
|
-
|
|
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);
|
|
1055
1491
|
}
|
|
1056
1492
|
}
|
|
1057
1493
|
if (obj.lastModifiedBy !== undefined) {
|
|
1058
1494
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
1059
1495
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
1060
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
1496
|
+
const referencepath_lastModifiedByValidationError = validate$s(obj_lastModifiedBy, path_lastModifiedBy);
|
|
1061
1497
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
1062
1498
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
1063
1499
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1067,14 +1503,35 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
1067
1503
|
if (obj.lastModifiedDate !== undefined) {
|
|
1068
1504
|
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
1069
1505
|
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
1070
|
-
|
|
1071
|
-
|
|
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);
|
|
1072
1529
|
}
|
|
1073
1530
|
}
|
|
1074
1531
|
if (obj.latestSetup !== undefined) {
|
|
1075
1532
|
const obj_latestSetup = obj.latestSetup;
|
|
1076
1533
|
const path_latestSetup = path + '.latestSetup';
|
|
1077
|
-
const referencepath_latestSetupValidationError = validate$
|
|
1534
|
+
const referencepath_latestSetupValidationError = validate$o(obj_latestSetup, path_latestSetup);
|
|
1078
1535
|
if (referencepath_latestSetupValidationError !== null) {
|
|
1079
1536
|
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_latestSetup + '")\n';
|
|
1080
1537
|
message += referencepath_latestSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1088,7 +1545,7 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
1088
1545
|
}
|
|
1089
1546
|
const obj_modelType = obj.modelType;
|
|
1090
1547
|
const path_modelType = path + '.modelType';
|
|
1091
|
-
const referencepath_modelTypeValidationError = validate$
|
|
1548
|
+
const referencepath_modelTypeValidationError = validate$l(obj_modelType, path_modelType);
|
|
1092
1549
|
if (referencepath_modelTypeValidationError !== null) {
|
|
1093
1550
|
let message = 'Object doesn\'t match CdpMlModelTypeRepresentation (at "' + path_modelType + '")\n';
|
|
1094
1551
|
message += referencepath_modelTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1104,15 +1561,38 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
1104
1561
|
if (typeof obj_name !== 'string') {
|
|
1105
1562
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
1106
1563
|
}
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
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
|
+
}
|
|
1111
1591
|
}
|
|
1112
1592
|
if (obj.outcomeDefinition !== undefined) {
|
|
1113
1593
|
const obj_outcomeDefinition = obj.outcomeDefinition;
|
|
1114
1594
|
const path_outcomeDefinition = path + '.outcomeDefinition';
|
|
1115
|
-
const referencepath_outcomeDefinitionValidationError = validate$
|
|
1595
|
+
const referencepath_outcomeDefinitionValidationError = validate$k(obj_outcomeDefinition, path_outcomeDefinition);
|
|
1116
1596
|
if (referencepath_outcomeDefinitionValidationError !== null) {
|
|
1117
1597
|
let message = 'Object doesn\'t match CdpMlModelOutcomeDefinitionRepresentation (at "' + path_outcomeDefinition + '")\n';
|
|
1118
1598
|
message += referencepath_outcomeDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1122,14 +1602,35 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
1122
1602
|
if (obj.predictionType !== undefined) {
|
|
1123
1603
|
const obj_predictionType = obj.predictionType;
|
|
1124
1604
|
const path_predictionType = path + '.predictionType';
|
|
1125
|
-
|
|
1126
|
-
|
|
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);
|
|
1127
1628
|
}
|
|
1128
1629
|
}
|
|
1129
1630
|
if (obj.refreshConfig !== undefined) {
|
|
1130
1631
|
const obj_refreshConfig = obj.refreshConfig;
|
|
1131
1632
|
const path_refreshConfig = path + '.refreshConfig';
|
|
1132
|
-
const referencepath_refreshConfigValidationError = validate$
|
|
1633
|
+
const referencepath_refreshConfigValidationError = validate$f(obj_refreshConfig, path_refreshConfig);
|
|
1133
1634
|
if (referencepath_refreshConfigValidationError !== null) {
|
|
1134
1635
|
let message = 'Object doesn\'t match CdpMlModelRefreshConfigRepresentation (at "' + path_refreshConfig + '")\n';
|
|
1135
1636
|
message += referencepath_refreshConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1139,8 +1640,29 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
1139
1640
|
if (obj.setupVersionsUrl !== undefined) {
|
|
1140
1641
|
const obj_setupVersionsUrl = obj.setupVersionsUrl;
|
|
1141
1642
|
const path_setupVersionsUrl = path + '.setupVersionsUrl';
|
|
1142
|
-
|
|
1143
|
-
|
|
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);
|
|
1144
1666
|
}
|
|
1145
1667
|
}
|
|
1146
1668
|
const obj_status = obj.status;
|
|
@@ -1151,15 +1673,57 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
1151
1673
|
if (obj.totalInferenceCount !== undefined) {
|
|
1152
1674
|
const obj_totalInferenceCount = obj.totalInferenceCount;
|
|
1153
1675
|
const path_totalInferenceCount = path + '.totalInferenceCount';
|
|
1154
|
-
|
|
1155
|
-
|
|
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);
|
|
1156
1699
|
}
|
|
1157
1700
|
}
|
|
1158
1701
|
if (obj.totalWarningsCount !== undefined) {
|
|
1159
1702
|
const obj_totalWarningsCount = obj.totalWarningsCount;
|
|
1160
1703
|
const path_totalWarningsCount = path + '.totalWarningsCount';
|
|
1161
|
-
|
|
1162
|
-
|
|
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);
|
|
1163
1727
|
}
|
|
1164
1728
|
}
|
|
1165
1729
|
const obj_url = obj.url;
|
|
@@ -1172,21 +1736,67 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
1172
1736
|
}
|
|
1173
1737
|
|
|
1174
1738
|
const TTL$3 = 1000;
|
|
1175
|
-
const VERSION$3 = "
|
|
1176
|
-
function validate$
|
|
1739
|
+
const VERSION$3 = "e6a8612718f37385e9d7622527f26c5c";
|
|
1740
|
+
function validate$d(obj, path = 'CdpMlWorkspaceCollectionRepresentation') {
|
|
1177
1741
|
const v_error = (() => {
|
|
1178
1742
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1179
1743
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1180
1744
|
}
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
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);
|
|
1771
|
+
}
|
|
1185
1772
|
}
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
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);
|
|
1799
|
+
}
|
|
1190
1800
|
}
|
|
1191
1801
|
const obj_totalSize = obj.totalSize;
|
|
1192
1802
|
const path_totalSize = path + '.totalSize';
|
|
@@ -1201,7 +1811,7 @@ function validate$9(obj, path = 'CdpMlWorkspaceCollectionRepresentation') {
|
|
|
1201
1811
|
for (let i = 0; i < obj_workspaces.length; i++) {
|
|
1202
1812
|
const obj_workspaces_item = obj_workspaces[i];
|
|
1203
1813
|
const path_workspaces_item = path_workspaces + '[' + i + ']';
|
|
1204
|
-
const referencepath_workspaces_itemValidationError = validate$
|
|
1814
|
+
const referencepath_workspaces_itemValidationError = validate$e(obj_workspaces_item, path_workspaces_item);
|
|
1205
1815
|
if (referencepath_workspaces_itemValidationError !== null) {
|
|
1206
1816
|
let message = 'Object doesn\'t match CdpMlWorkspaceRepresentation (at "' + path_workspaces_item + '")\n';
|
|
1207
1817
|
message += referencepath_workspaces_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1231,7 +1841,7 @@ function equals$3(existing, incoming) {
|
|
|
1231
1841
|
}
|
|
1232
1842
|
const ingest$3 = function CdpMlWorkspaceCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1233
1843
|
if (process.env.NODE_ENV !== 'production') {
|
|
1234
|
-
const validateError = validate$
|
|
1844
|
+
const validateError = validate$d(input);
|
|
1235
1845
|
if (validateError !== null) {
|
|
1236
1846
|
throw validateError;
|
|
1237
1847
|
}
|
|
@@ -1404,8 +2014,8 @@ function keyBuilderFromType$1(luvio, object) {
|
|
|
1404
2014
|
}
|
|
1405
2015
|
|
|
1406
2016
|
const TTL$2 = 1000;
|
|
1407
|
-
const VERSION$2 = "
|
|
1408
|
-
function validate$
|
|
2017
|
+
const VERSION$2 = "1cb47dd9b0cc811f1ad3318c7245d465";
|
|
2018
|
+
function validate$c(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
1409
2019
|
const v_error = (() => {
|
|
1410
2020
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1411
2021
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1425,7 +2035,7 @@ function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
1425
2035
|
if (obj.activeSetup !== undefined) {
|
|
1426
2036
|
const obj_activeSetup = obj.activeSetup;
|
|
1427
2037
|
const path_activeSetup = path + '.activeSetup';
|
|
1428
|
-
const referencepath_activeSetupValidationError = validate$
|
|
2038
|
+
const referencepath_activeSetupValidationError = validate$o(obj_activeSetup, path_activeSetup);
|
|
1429
2039
|
if (referencepath_activeSetupValidationError !== null) {
|
|
1430
2040
|
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_activeSetup + '")\n';
|
|
1431
2041
|
message += referencepath_activeSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1435,14 +2045,35 @@ function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
1435
2045
|
if (obj.activeSetupVersionNumber !== undefined) {
|
|
1436
2046
|
const obj_activeSetupVersionNumber = obj.activeSetupVersionNumber;
|
|
1437
2047
|
const path_activeSetupVersionNumber = path + '.activeSetupVersionNumber';
|
|
1438
|
-
|
|
1439
|
-
|
|
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);
|
|
1440
2071
|
}
|
|
1441
2072
|
}
|
|
1442
2073
|
if (obj.createdBy !== undefined) {
|
|
1443
2074
|
const obj_createdBy = obj.createdBy;
|
|
1444
2075
|
const path_createdBy = path + '.createdBy';
|
|
1445
|
-
const referencepath_createdByValidationError = validate$
|
|
2076
|
+
const referencepath_createdByValidationError = validate$s(obj_createdBy, path_createdBy);
|
|
1446
2077
|
if (referencepath_createdByValidationError !== null) {
|
|
1447
2078
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
1448
2079
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1452,22 +2083,85 @@ function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
1452
2083
|
if (obj.createdDate !== undefined) {
|
|
1453
2084
|
const obj_createdDate = obj.createdDate;
|
|
1454
2085
|
const path_createdDate = path + '.createdDate';
|
|
1455
|
-
|
|
1456
|
-
|
|
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);
|
|
1457
2109
|
}
|
|
1458
2110
|
}
|
|
1459
2111
|
if (obj.description !== undefined) {
|
|
1460
2112
|
const obj_description = obj.description;
|
|
1461
2113
|
const path_description = path + '.description';
|
|
1462
|
-
|
|
1463
|
-
|
|
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);
|
|
1464
2137
|
}
|
|
1465
2138
|
}
|
|
1466
2139
|
if (obj.historiesUrl !== undefined) {
|
|
1467
2140
|
const obj_historiesUrl = obj.historiesUrl;
|
|
1468
2141
|
const path_historiesUrl = path + '.historiesUrl';
|
|
1469
|
-
|
|
1470
|
-
|
|
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);
|
|
1471
2165
|
}
|
|
1472
2166
|
}
|
|
1473
2167
|
if (obj.id !== undefined) {
|
|
@@ -1480,14 +2174,35 @@ function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
1480
2174
|
if (obj.label !== undefined) {
|
|
1481
2175
|
const obj_label = obj.label;
|
|
1482
2176
|
const path_label = path + '.label';
|
|
1483
|
-
|
|
1484
|
-
|
|
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);
|
|
1485
2200
|
}
|
|
1486
2201
|
}
|
|
1487
2202
|
if (obj.lastModifiedBy !== undefined) {
|
|
1488
2203
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
1489
2204
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
1490
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
2205
|
+
const referencepath_lastModifiedByValidationError = validate$s(obj_lastModifiedBy, path_lastModifiedBy);
|
|
1491
2206
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
1492
2207
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
1493
2208
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1497,14 +2212,35 @@ function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
1497
2212
|
if (obj.lastModifiedDate !== undefined) {
|
|
1498
2213
|
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
1499
2214
|
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
1500
|
-
|
|
1501
|
-
|
|
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);
|
|
1502
2238
|
}
|
|
1503
2239
|
}
|
|
1504
2240
|
if (obj.latestSetup !== undefined) {
|
|
1505
2241
|
const obj_latestSetup = obj.latestSetup;
|
|
1506
2242
|
const path_latestSetup = path + '.latestSetup';
|
|
1507
|
-
const referencepath_latestSetupValidationError = validate$
|
|
2243
|
+
const referencepath_latestSetupValidationError = validate$o(obj_latestSetup, path_latestSetup);
|
|
1508
2244
|
if (referencepath_latestSetupValidationError !== null) {
|
|
1509
2245
|
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_latestSetup + '")\n';
|
|
1510
2246
|
message += referencepath_latestSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1516,19 +2252,42 @@ function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
1516
2252
|
if (typeof obj_modelCount !== 'number' || (typeof obj_modelCount === 'number' && Math.floor(obj_modelCount) !== obj_modelCount)) {
|
|
1517
2253
|
return new TypeError('Expected "integer" but received "' + typeof obj_modelCount + '" (at "' + path_modelCount + '")');
|
|
1518
2254
|
}
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
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
|
+
}
|
|
1526
2264
|
}
|
|
1527
2265
|
if (obj.modelsUrl !== undefined) {
|
|
1528
2266
|
const obj_modelsUrl = obj.modelsUrl;
|
|
1529
2267
|
const path_modelsUrl = path + '.modelsUrl';
|
|
1530
|
-
|
|
1531
|
-
|
|
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);
|
|
1532
2291
|
}
|
|
1533
2292
|
}
|
|
1534
2293
|
const obj_name = obj.name;
|
|
@@ -1539,14 +2298,35 @@ function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
1539
2298
|
if (obj.namespace !== undefined) {
|
|
1540
2299
|
const obj_namespace = obj.namespace;
|
|
1541
2300
|
const path_namespace = path + '.namespace';
|
|
1542
|
-
|
|
1543
|
-
|
|
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);
|
|
1544
2324
|
}
|
|
1545
2325
|
}
|
|
1546
2326
|
if (obj.outcomeDefinition !== undefined) {
|
|
1547
2327
|
const obj_outcomeDefinition = obj.outcomeDefinition;
|
|
1548
2328
|
const path_outcomeDefinition = path + '.outcomeDefinition';
|
|
1549
|
-
const referencepath_outcomeDefinitionValidationError = validate$
|
|
2329
|
+
const referencepath_outcomeDefinitionValidationError = validate$k(obj_outcomeDefinition, path_outcomeDefinition);
|
|
1550
2330
|
if (referencepath_outcomeDefinitionValidationError !== null) {
|
|
1551
2331
|
let message = 'Object doesn\'t match CdpMlModelOutcomeDefinitionRepresentation (at "' + path_outcomeDefinition + '")\n';
|
|
1552
2332
|
message += referencepath_outcomeDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1556,14 +2336,35 @@ function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
1556
2336
|
if (obj.predictionType !== undefined) {
|
|
1557
2337
|
const obj_predictionType = obj.predictionType;
|
|
1558
2338
|
const path_predictionType = path + '.predictionType';
|
|
1559
|
-
|
|
1560
|
-
|
|
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);
|
|
1561
2362
|
}
|
|
1562
2363
|
}
|
|
1563
2364
|
if (obj.refreshConfig !== undefined) {
|
|
1564
2365
|
const obj_refreshConfig = obj.refreshConfig;
|
|
1565
2366
|
const path_refreshConfig = path + '.refreshConfig';
|
|
1566
|
-
const referencepath_refreshConfigValidationError = validate$
|
|
2367
|
+
const referencepath_refreshConfigValidationError = validate$f(obj_refreshConfig, path_refreshConfig);
|
|
1567
2368
|
if (referencepath_refreshConfigValidationError !== null) {
|
|
1568
2369
|
let message = 'Object doesn\'t match CdpMlModelRefreshConfigRepresentation (at "' + path_refreshConfig + '")\n';
|
|
1569
2370
|
message += referencepath_refreshConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1573,8 +2374,29 @@ function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
1573
2374
|
if (obj.setupVersionsUrl !== undefined) {
|
|
1574
2375
|
const obj_setupVersionsUrl = obj.setupVersionsUrl;
|
|
1575
2376
|
const path_setupVersionsUrl = path + '.setupVersionsUrl';
|
|
1576
|
-
|
|
1577
|
-
|
|
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);
|
|
1578
2400
|
}
|
|
1579
2401
|
}
|
|
1580
2402
|
const obj_status = obj.status;
|
|
@@ -1585,15 +2407,57 @@ function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
1585
2407
|
if (obj.totalInferenceCount !== undefined) {
|
|
1586
2408
|
const obj_totalInferenceCount = obj.totalInferenceCount;
|
|
1587
2409
|
const path_totalInferenceCount = path + '.totalInferenceCount';
|
|
1588
|
-
|
|
1589
|
-
|
|
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);
|
|
1590
2433
|
}
|
|
1591
2434
|
}
|
|
1592
2435
|
if (obj.totalWarningsCount !== undefined) {
|
|
1593
2436
|
const obj_totalWarningsCount = obj.totalWarningsCount;
|
|
1594
2437
|
const path_totalWarningsCount = path + '.totalWarningsCount';
|
|
1595
|
-
|
|
1596
|
-
|
|
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);
|
|
1597
2461
|
}
|
|
1598
2462
|
}
|
|
1599
2463
|
const obj_url = obj.url;
|
|
@@ -1624,7 +2488,7 @@ function equals$2(existing, incoming) {
|
|
|
1624
2488
|
}
|
|
1625
2489
|
const ingest$2 = function CdpMlWorkspaceDetailRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1626
2490
|
if (process.env.NODE_ENV !== 'production') {
|
|
1627
|
-
const validateError = validate$
|
|
2491
|
+
const validateError = validate$c(input);
|
|
1628
2492
|
if (validateError !== null) {
|
|
1629
2493
|
throw validateError;
|
|
1630
2494
|
}
|
|
@@ -1792,7 +2656,7 @@ const getCdpMlWorkspaceAdapterFactory = (luvio) => function cdpMachineLearning__
|
|
|
1792
2656
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
1793
2657
|
};
|
|
1794
2658
|
|
|
1795
|
-
function validate$
|
|
2659
|
+
function validate$b(obj, path = 'CdpMlFilterValueRepresentation') {
|
|
1796
2660
|
const v_error = (() => {
|
|
1797
2661
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1798
2662
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1811,7 +2675,7 @@ function validate$7(obj, path = 'CdpMlFilterValueRepresentation') {
|
|
|
1811
2675
|
return v_error === undefined ? null : v_error;
|
|
1812
2676
|
}
|
|
1813
2677
|
|
|
1814
|
-
function validate$
|
|
2678
|
+
function validate$a(obj, path = 'CdpMlFilterCriterionBaseRepresentation') {
|
|
1815
2679
|
const v_error = (() => {
|
|
1816
2680
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1817
2681
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1834,7 +2698,7 @@ function validate$6(obj, path = 'CdpMlFilterCriterionBaseRepresentation') {
|
|
|
1834
2698
|
for (let i = 0; i < obj_values.length; i++) {
|
|
1835
2699
|
const obj_values_item = obj_values[i];
|
|
1836
2700
|
const path_values_item = path_values + '[' + i + ']';
|
|
1837
|
-
const referencepath_values_itemValidationError = validate$
|
|
2701
|
+
const referencepath_values_itemValidationError = validate$b(obj_values_item, path_values_item);
|
|
1838
2702
|
if (referencepath_values_itemValidationError !== null) {
|
|
1839
2703
|
let message = 'Object doesn\'t match CdpMlFilterValueRepresentation (at "' + path_values_item + '")\n';
|
|
1840
2704
|
message += referencepath_values_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1845,7 +2709,7 @@ function validate$6(obj, path = 'CdpMlFilterCriterionBaseRepresentation') {
|
|
|
1845
2709
|
return v_error === undefined ? null : v_error;
|
|
1846
2710
|
}
|
|
1847
2711
|
|
|
1848
|
-
function validate$
|
|
2712
|
+
function validate$9(obj, path = 'CdpMlFilterRepresentation') {
|
|
1849
2713
|
const v_error = (() => {
|
|
1850
2714
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1851
2715
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1858,7 +2722,7 @@ function validate$5(obj, path = 'CdpMlFilterRepresentation') {
|
|
|
1858
2722
|
for (let i = 0; i < obj_criteria.length; i++) {
|
|
1859
2723
|
const obj_criteria_item = obj_criteria[i];
|
|
1860
2724
|
const path_criteria_item = path_criteria + '[' + i + ']';
|
|
1861
|
-
const referencepath_criteria_itemValidationError = validate$
|
|
2725
|
+
const referencepath_criteria_itemValidationError = validate$a(obj_criteria_item, path_criteria_item);
|
|
1862
2726
|
if (referencepath_criteria_itemValidationError !== null) {
|
|
1863
2727
|
let message = 'Object doesn\'t match CdpMlFilterCriterionBaseRepresentation (at "' + path_criteria_item + '")\n';
|
|
1864
2728
|
message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1869,14 +2733,14 @@ function validate$5(obj, path = 'CdpMlFilterRepresentation') {
|
|
|
1869
2733
|
return v_error === undefined ? null : v_error;
|
|
1870
2734
|
}
|
|
1871
2735
|
|
|
1872
|
-
function validate$
|
|
2736
|
+
function validate$8(obj, path = 'CdpMlCustomizableFieldDefinitionRepresentation') {
|
|
1873
2737
|
const v_error = (() => {
|
|
1874
2738
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1875
2739
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1876
2740
|
}
|
|
1877
2741
|
const obj_filter = obj.filter;
|
|
1878
2742
|
const path_filter = path + '.filter';
|
|
1879
|
-
const referencepath_filterValidationError = validate$
|
|
2743
|
+
const referencepath_filterValidationError = validate$9(obj_filter, path_filter);
|
|
1880
2744
|
if (referencepath_filterValidationError !== null) {
|
|
1881
2745
|
let message = 'Object doesn\'t match CdpMlFilterRepresentation (at "' + path_filter + '")\n';
|
|
1882
2746
|
message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1891,7 +2755,7 @@ function validate$4(obj, path = 'CdpMlCustomizableFieldDefinitionRepresentation'
|
|
|
1891
2755
|
return v_error === undefined ? null : v_error;
|
|
1892
2756
|
}
|
|
1893
2757
|
|
|
1894
|
-
function validate$
|
|
2758
|
+
function validate$7(obj, path = 'CdpMlCustomizableFieldRepresentation') {
|
|
1895
2759
|
const v_error = (() => {
|
|
1896
2760
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1897
2761
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1904,7 +2768,7 @@ function validate$3(obj, path = 'CdpMlCustomizableFieldRepresentation') {
|
|
|
1904
2768
|
for (let i = 0; i < obj_customDefinitions.length; i++) {
|
|
1905
2769
|
const obj_customDefinitions_item = obj_customDefinitions[i];
|
|
1906
2770
|
const path_customDefinitions_item = path_customDefinitions + '[' + i + ']';
|
|
1907
|
-
const referencepath_customDefinitions_itemValidationError = validate$
|
|
2771
|
+
const referencepath_customDefinitions_itemValidationError = validate$8(obj_customDefinitions_item, path_customDefinitions_item);
|
|
1908
2772
|
if (referencepath_customDefinitions_itemValidationError !== null) {
|
|
1909
2773
|
let message = 'Object doesn\'t match CdpMlCustomizableFieldDefinitionRepresentation (at "' + path_customDefinitions_item + '")\n';
|
|
1910
2774
|
message += referencepath_customDefinitions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1913,7 +2777,7 @@ function validate$3(obj, path = 'CdpMlCustomizableFieldRepresentation') {
|
|
|
1913
2777
|
}
|
|
1914
2778
|
const obj_field = obj.field;
|
|
1915
2779
|
const path_field = path + '.field';
|
|
1916
|
-
const referencepath_fieldValidationError = validate$
|
|
2780
|
+
const referencepath_fieldValidationError = validate$r(obj_field, path_field);
|
|
1917
2781
|
if (referencepath_fieldValidationError !== null) {
|
|
1918
2782
|
let message = 'Object doesn\'t match CdpMlModelInputFieldBaseRepresentation (at "' + path_field + '")\n';
|
|
1919
2783
|
message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1928,7 +2792,7 @@ function validate$3(obj, path = 'CdpMlCustomizableFieldRepresentation') {
|
|
|
1928
2792
|
return v_error === undefined ? null : v_error;
|
|
1929
2793
|
}
|
|
1930
2794
|
|
|
1931
|
-
function validate$
|
|
2795
|
+
function validate$6(obj, path = 'CdpMlModelParameterOverrideBaseRepresentation') {
|
|
1932
2796
|
const v_error = (() => {
|
|
1933
2797
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1934
2798
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1956,30 +2820,32 @@ function keyBuilderFromType(luvio, object) {
|
|
|
1956
2820
|
}
|
|
1957
2821
|
|
|
1958
2822
|
const TTL$1 = 1000;
|
|
1959
|
-
const VERSION$1 = "
|
|
1960
|
-
function validate$
|
|
2823
|
+
const VERSION$1 = "f9608bc4ae3825a8da2fc0992ae87b6e";
|
|
2824
|
+
function validate$5(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
1961
2825
|
const v_error = (() => {
|
|
1962
2826
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1963
2827
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1964
2828
|
}
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
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
|
+
}
|
|
1978
2844
|
}
|
|
1979
2845
|
}
|
|
1980
2846
|
const obj_artifact = obj.artifact;
|
|
1981
2847
|
const path_artifact = path + '.artifact';
|
|
1982
|
-
const referencepath_artifactValidationError = validate$
|
|
2848
|
+
const referencepath_artifactValidationError = validate$o(obj_artifact, path_artifact);
|
|
1983
2849
|
if (referencepath_artifactValidationError !== null) {
|
|
1984
2850
|
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_artifact + '")\n';
|
|
1985
2851
|
message += referencepath_artifactValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1993,7 +2859,7 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
1993
2859
|
if (obj.createdBy !== undefined) {
|
|
1994
2860
|
const obj_createdBy = obj.createdBy;
|
|
1995
2861
|
const path_createdBy = path + '.createdBy';
|
|
1996
|
-
const referencepath_createdByValidationError = validate$
|
|
2862
|
+
const referencepath_createdByValidationError = validate$s(obj_createdBy, path_createdBy);
|
|
1997
2863
|
if (referencepath_createdByValidationError !== null) {
|
|
1998
2864
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
1999
2865
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2003,8 +2869,29 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
2003
2869
|
if (obj.createdDate !== undefined) {
|
|
2004
2870
|
const obj_createdDate = obj.createdDate;
|
|
2005
2871
|
const path_createdDate = path + '.createdDate';
|
|
2006
|
-
|
|
2007
|
-
|
|
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);
|
|
2008
2895
|
}
|
|
2009
2896
|
}
|
|
2010
2897
|
const obj_customizableFields = obj.customizableFields;
|
|
@@ -2015,7 +2902,7 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
2015
2902
|
for (let i = 0; i < obj_customizableFields.length; i++) {
|
|
2016
2903
|
const obj_customizableFields_item = obj_customizableFields[i];
|
|
2017
2904
|
const path_customizableFields_item = path_customizableFields + '[' + i + ']';
|
|
2018
|
-
const referencepath_customizableFields_itemValidationError = validate$
|
|
2905
|
+
const referencepath_customizableFields_itemValidationError = validate$7(obj_customizableFields_item, path_customizableFields_item);
|
|
2019
2906
|
if (referencepath_customizableFields_itemValidationError !== null) {
|
|
2020
2907
|
let message = 'Object doesn\'t match CdpMlCustomizableFieldRepresentation (at "' + path_customizableFields_item + '")\n';
|
|
2021
2908
|
message += referencepath_customizableFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2025,13 +2912,34 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
2025
2912
|
if (obj.description !== undefined) {
|
|
2026
2913
|
const obj_description = obj.description;
|
|
2027
2914
|
const path_description = path + '.description';
|
|
2028
|
-
|
|
2029
|
-
|
|
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);
|
|
2030
2938
|
}
|
|
2031
2939
|
}
|
|
2032
2940
|
const obj_filter = obj.filter;
|
|
2033
2941
|
const path_filter = path + '.filter';
|
|
2034
|
-
const referencepath_filterValidationError = validate$
|
|
2942
|
+
const referencepath_filterValidationError = validate$9(obj_filter, path_filter);
|
|
2035
2943
|
if (referencepath_filterValidationError !== null) {
|
|
2036
2944
|
let message = 'Object doesn\'t match CdpMlFilterRepresentation (at "' + path_filter + '")\n';
|
|
2037
2945
|
message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2047,14 +2955,35 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
2047
2955
|
if (obj.label !== undefined) {
|
|
2048
2956
|
const obj_label = obj.label;
|
|
2049
2957
|
const path_label = path + '.label';
|
|
2050
|
-
|
|
2051
|
-
|
|
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);
|
|
2052
2981
|
}
|
|
2053
2982
|
}
|
|
2054
2983
|
if (obj.lastActivatedBy !== undefined) {
|
|
2055
2984
|
const obj_lastActivatedBy = obj.lastActivatedBy;
|
|
2056
2985
|
const path_lastActivatedBy = path + '.lastActivatedBy';
|
|
2057
|
-
const referencepath_lastActivatedByValidationError = validate$
|
|
2986
|
+
const referencepath_lastActivatedByValidationError = validate$s(obj_lastActivatedBy, path_lastActivatedBy);
|
|
2058
2987
|
if (referencepath_lastActivatedByValidationError !== null) {
|
|
2059
2988
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastActivatedBy + '")\n';
|
|
2060
2989
|
message += referencepath_lastActivatedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2071,7 +3000,7 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
2071
3000
|
if (obj.lastModifiedBy !== undefined) {
|
|
2072
3001
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
2073
3002
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
2074
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
3003
|
+
const referencepath_lastModifiedByValidationError = validate$s(obj_lastModifiedBy, path_lastModifiedBy);
|
|
2075
3004
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
2076
3005
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
2077
3006
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2081,15 +3010,57 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
2081
3010
|
if (obj.lastModifiedDate !== undefined) {
|
|
2082
3011
|
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
2083
3012
|
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
2084
|
-
|
|
2085
|
-
|
|
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);
|
|
2086
3036
|
}
|
|
2087
3037
|
}
|
|
2088
3038
|
if (obj.metricsUrl !== undefined) {
|
|
2089
3039
|
const obj_metricsUrl = obj.metricsUrl;
|
|
2090
3040
|
const path_metricsUrl = path + '.metricsUrl';
|
|
2091
|
-
|
|
2092
|
-
|
|
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);
|
|
2093
3064
|
}
|
|
2094
3065
|
}
|
|
2095
3066
|
const obj_name = obj.name;
|
|
@@ -2097,10 +3068,33 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
2097
3068
|
if (typeof obj_name !== 'string') {
|
|
2098
3069
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
2099
3070
|
}
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
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
|
+
}
|
|
2104
3098
|
}
|
|
2105
3099
|
const obj_parameterOverrides = obj.parameterOverrides;
|
|
2106
3100
|
const path_parameterOverrides = path + '.parameterOverrides';
|
|
@@ -2110,7 +3104,7 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
2110
3104
|
for (let i = 0; i < obj_parameterOverrides.length; i++) {
|
|
2111
3105
|
const obj_parameterOverrides_item = obj_parameterOverrides[i];
|
|
2112
3106
|
const path_parameterOverrides_item = path_parameterOverrides + '[' + i + ']';
|
|
2113
|
-
const referencepath_parameterOverrides_itemValidationError = validate$
|
|
3107
|
+
const referencepath_parameterOverrides_itemValidationError = validate$6(obj_parameterOverrides_item, path_parameterOverrides_item);
|
|
2114
3108
|
if (referencepath_parameterOverrides_itemValidationError !== null) {
|
|
2115
3109
|
let message = 'Object doesn\'t match CdpMlModelParameterOverrideBaseRepresentation (at "' + path_parameterOverrides_item + '")\n';
|
|
2116
3110
|
message += referencepath_parameterOverrides_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2155,7 +3149,7 @@ function equals$1(existing, incoming) {
|
|
|
2155
3149
|
}
|
|
2156
3150
|
const ingest$1 = function CdpMlConfiguredModelRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2157
3151
|
if (process.env.NODE_ENV !== 'production') {
|
|
2158
|
-
const validateError = validate$
|
|
3152
|
+
const validateError = validate$5(input);
|
|
2159
3153
|
if (validateError !== null) {
|
|
2160
3154
|
throw validateError;
|
|
2161
3155
|
}
|
|
@@ -2177,7 +3171,7 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2177
3171
|
|
|
2178
3172
|
const TTL = 1000;
|
|
2179
3173
|
const VERSION = "2b3092c57f5f0a17513ae28d59875559";
|
|
2180
|
-
function validate(obj, path = 'CdpMlConfiguredModelCollectionRepresentation') {
|
|
3174
|
+
function validate$4(obj, path = 'CdpMlConfiguredModelCollectionRepresentation') {
|
|
2181
3175
|
const v_error = (() => {
|
|
2182
3176
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2183
3177
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2191,7 +3185,7 @@ function validate(obj, path = 'CdpMlConfiguredModelCollectionRepresentation') {
|
|
|
2191
3185
|
for (let i = 0; i < obj_models.length; i++) {
|
|
2192
3186
|
const obj_models_item = obj_models[i];
|
|
2193
3187
|
const path_models_item = path_models + '[' + i + ']';
|
|
2194
|
-
const referencepath_models_itemValidationError = validate$
|
|
3188
|
+
const referencepath_models_itemValidationError = validate$5(obj_models_item, path_models_item);
|
|
2195
3189
|
if (referencepath_models_itemValidationError !== null) {
|
|
2196
3190
|
let message = 'Object doesn\'t match CdpMlConfiguredModelRepresentation (at "' + path_models_item + '")\n';
|
|
2197
3191
|
message += referencepath_models_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2232,7 +3226,7 @@ function equals(existing, incoming) {
|
|
|
2232
3226
|
}
|
|
2233
3227
|
const ingest = function CdpMlConfiguredModelCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2234
3228
|
if (process.env.NODE_ENV !== 'production') {
|
|
2235
|
-
const validateError = validate(input);
|
|
3229
|
+
const validateError = validate$4(input);
|
|
2236
3230
|
if (validateError !== null) {
|
|
2237
3231
|
throw validateError;
|
|
2238
3232
|
}
|
|
@@ -2390,6 +3384,245 @@ const getCdpMlConfiguredModelCollectionAdapterFactory = (luvio) => function cdpM
|
|
|
2390
3384
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
2391
3385
|
};
|
|
2392
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
|
+
|
|
2393
3626
|
function select$2(luvio, params) {
|
|
2394
3627
|
return select$5();
|
|
2395
3628
|
}
|
|
@@ -2427,60 +3660,61 @@ function createResourceRequest$2(config) {
|
|
|
2427
3660
|
};
|
|
2428
3661
|
}
|
|
2429
3662
|
|
|
2430
|
-
const adapterName$2 = '
|
|
2431
|
-
const
|
|
3663
|
+
const adapterName$2 = 'createCdpMlConfiguredModel';
|
|
3664
|
+
const createCdpMlConfiguredModel_ConfigPropertyMetadata = [
|
|
2432
3665
|
generateParamConfigMetadata('workspaceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2433
|
-
generateParamConfigMetadata('actionableFields',
|
|
3666
|
+
generateParamConfigMetadata('actionableFields', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
2434
3667
|
generateParamConfigMetadata('artifact', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2435
|
-
generateParamConfigMetadata('capability',
|
|
2436
|
-
generateParamConfigMetadata('customizableFields',
|
|
2437
|
-
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 */),
|
|
2438
3671
|
generateParamConfigMetadata('filter', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2439
|
-
generateParamConfigMetadata('label', false, 2 /* Body */,
|
|
2440
|
-
generateParamConfigMetadata('parameterOverrides',
|
|
2441
|
-
generateParamConfigMetadata('position',
|
|
2442
|
-
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 */),
|
|
2443
3676
|
];
|
|
2444
|
-
const
|
|
2445
|
-
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);
|
|
2446
3679
|
function typeCheckConfig$2(untrustedConfig) {
|
|
2447
3680
|
const config = {};
|
|
2448
|
-
typeCheckConfig$8(untrustedConfig, config,
|
|
3681
|
+
typeCheckConfig$8(untrustedConfig, config, createCdpMlConfiguredModel_ConfigPropertyMetadata);
|
|
2449
3682
|
const untrustedConfig_actionableFields = untrustedConfig.actionableFields;
|
|
2450
3683
|
if (ArrayIsArray$1(untrustedConfig_actionableFields)) {
|
|
2451
3684
|
const untrustedConfig_actionableFields_array = [];
|
|
2452
3685
|
for (let i = 0, arrayLength = untrustedConfig_actionableFields.length; i < arrayLength; i++) {
|
|
2453
3686
|
const untrustedConfig_actionableFields_item = untrustedConfig_actionableFields[i];
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
untrustedConfig_actionableFields_array.push(untrustedConfig_actionableFields_item_object);
|
|
2458
|
-
}
|
|
3687
|
+
const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$2(untrustedConfig_actionableFields_item);
|
|
3688
|
+
if (referenceCdpMlCustomizableFieldInputRepresentationValidationError === null) {
|
|
3689
|
+
untrustedConfig_actionableFields_array.push(untrustedConfig_actionableFields_item);
|
|
2459
3690
|
}
|
|
2460
3691
|
}
|
|
2461
3692
|
config.actionableFields = untrustedConfig_actionableFields_array;
|
|
2462
3693
|
}
|
|
2463
3694
|
const untrustedConfig_artifact = untrustedConfig.artifact;
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
config.artifact = untrustedConfig_artifact_object;
|
|
2468
|
-
}
|
|
3695
|
+
const referenceCdpAssetReferenceInputRepresentationValidationError = validate$1(untrustedConfig_artifact);
|
|
3696
|
+
if (referenceCdpAssetReferenceInputRepresentationValidationError === null) {
|
|
3697
|
+
config.artifact = untrustedConfig_artifact;
|
|
2469
3698
|
}
|
|
2470
3699
|
const untrustedConfig_customizableFields = untrustedConfig.customizableFields;
|
|
2471
3700
|
if (ArrayIsArray$1(untrustedConfig_customizableFields)) {
|
|
2472
3701
|
const untrustedConfig_customizableFields_array = [];
|
|
2473
3702
|
for (let i = 0, arrayLength = untrustedConfig_customizableFields.length; i < arrayLength; i++) {
|
|
2474
3703
|
const untrustedConfig_customizableFields_item = untrustedConfig_customizableFields[i];
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
untrustedConfig_customizableFields_array.push(untrustedConfig_customizableFields_item_object);
|
|
2479
|
-
}
|
|
3704
|
+
const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$2(untrustedConfig_customizableFields_item);
|
|
3705
|
+
if (referenceCdpMlCustomizableFieldInputRepresentationValidationError === null) {
|
|
3706
|
+
untrustedConfig_customizableFields_array.push(untrustedConfig_customizableFields_item);
|
|
2480
3707
|
}
|
|
2481
3708
|
}
|
|
2482
3709
|
config.customizableFields = untrustedConfig_customizableFields_array;
|
|
2483
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
|
+
}
|
|
2484
3718
|
const untrustedConfig_filter = untrustedConfig.filter;
|
|
2485
3719
|
if (untrustedIsObject(untrustedConfig_filter)) {
|
|
2486
3720
|
const untrustedConfig_filter_object = {};
|
|
@@ -2488,16 +3722,21 @@ function typeCheckConfig$2(untrustedConfig) {
|
|
|
2488
3722
|
config.filter = untrustedConfig_filter_object;
|
|
2489
3723
|
}
|
|
2490
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
|
+
}
|
|
2491
3732
|
const untrustedConfig_parameterOverrides = untrustedConfig.parameterOverrides;
|
|
2492
3733
|
if (ArrayIsArray$1(untrustedConfig_parameterOverrides)) {
|
|
2493
3734
|
const untrustedConfig_parameterOverrides_array = [];
|
|
2494
3735
|
for (let i = 0, arrayLength = untrustedConfig_parameterOverrides.length; i < arrayLength; i++) {
|
|
2495
3736
|
const untrustedConfig_parameterOverrides_item = untrustedConfig_parameterOverrides[i];
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
untrustedConfig_parameterOverrides_array.push(untrustedConfig_parameterOverrides_item_object);
|
|
2500
|
-
}
|
|
3737
|
+
const referenceCdpMlModelParameterOverrideInputRepresentationValidationError = validate(untrustedConfig_parameterOverrides_item);
|
|
3738
|
+
if (referenceCdpMlModelParameterOverrideInputRepresentationValidationError === null) {
|
|
3739
|
+
untrustedConfig_parameterOverrides_array.push(untrustedConfig_parameterOverrides_item);
|
|
2501
3740
|
}
|
|
2502
3741
|
}
|
|
2503
3742
|
config.parameterOverrides = untrustedConfig_parameterOverrides_array;
|
|
@@ -2535,12 +3774,12 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
2535
3774
|
throw response;
|
|
2536
3775
|
});
|
|
2537
3776
|
}
|
|
2538
|
-
const
|
|
2539
|
-
return function
|
|
2540
|
-
const config = validateAdapterConfig$2(untrustedConfig,
|
|
3777
|
+
const createCdpMlConfiguredModelAdapterFactory = (luvio) => {
|
|
3778
|
+
return function createCdpMlConfiguredModel(untrustedConfig) {
|
|
3779
|
+
const config = validateAdapterConfig$2(untrustedConfig, createCdpMlConfiguredModel_ConfigPropertyNames);
|
|
2541
3780
|
// Invalid or incomplete config
|
|
2542
3781
|
if (config === null) {
|
|
2543
|
-
throw new Error('Invalid config for "
|
|
3782
|
+
throw new Error('Invalid config for "createCdpMlConfiguredModel"');
|
|
2544
3783
|
}
|
|
2545
3784
|
return buildNetworkSnapshot$2(luvio, config);
|
|
2546
3785
|
};
|
|
@@ -2729,16 +3968,16 @@ const adapterName = 'updateCdpMlConfiguredModel';
|
|
|
2729
3968
|
const updateCdpMlConfiguredModel_ConfigPropertyMetadata = [
|
|
2730
3969
|
generateParamConfigMetadata('modelIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2731
3970
|
generateParamConfigMetadata('workspaceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2732
|
-
generateParamConfigMetadata('actionableFields',
|
|
3971
|
+
generateParamConfigMetadata('actionableFields', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
2733
3972
|
generateParamConfigMetadata('artifact', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2734
|
-
generateParamConfigMetadata('capability',
|
|
2735
|
-
generateParamConfigMetadata('customizableFields',
|
|
2736
|
-
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 */),
|
|
2737
3976
|
generateParamConfigMetadata('filter', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2738
|
-
generateParamConfigMetadata('label', false, 2 /* Body */,
|
|
2739
|
-
generateParamConfigMetadata('parameterOverrides',
|
|
2740
|
-
generateParamConfigMetadata('position',
|
|
2741
|
-
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 */),
|
|
2742
3981
|
];
|
|
2743
3982
|
const updateCdpMlConfiguredModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateCdpMlConfiguredModel_ConfigPropertyMetadata);
|
|
2744
3983
|
const createResourceParams = /*#__PURE__*/ createResourceParams$8(updateCdpMlConfiguredModel_ConfigPropertyMetadata);
|
|
@@ -2750,36 +3989,37 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
2750
3989
|
const untrustedConfig_actionableFields_array = [];
|
|
2751
3990
|
for (let i = 0, arrayLength = untrustedConfig_actionableFields.length; i < arrayLength; i++) {
|
|
2752
3991
|
const untrustedConfig_actionableFields_item = untrustedConfig_actionableFields[i];
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
untrustedConfig_actionableFields_array.push(untrustedConfig_actionableFields_item_object);
|
|
2757
|
-
}
|
|
3992
|
+
const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$2(untrustedConfig_actionableFields_item);
|
|
3993
|
+
if (referenceCdpMlCustomizableFieldInputRepresentationValidationError === null) {
|
|
3994
|
+
untrustedConfig_actionableFields_array.push(untrustedConfig_actionableFields_item);
|
|
2758
3995
|
}
|
|
2759
3996
|
}
|
|
2760
3997
|
config.actionableFields = untrustedConfig_actionableFields_array;
|
|
2761
3998
|
}
|
|
2762
3999
|
const untrustedConfig_artifact = untrustedConfig.artifact;
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
config.artifact = untrustedConfig_artifact_object;
|
|
2767
|
-
}
|
|
4000
|
+
const referenceCdpAssetReferenceInputRepresentationValidationError = validate$1(untrustedConfig_artifact);
|
|
4001
|
+
if (referenceCdpAssetReferenceInputRepresentationValidationError === null) {
|
|
4002
|
+
config.artifact = untrustedConfig_artifact;
|
|
2768
4003
|
}
|
|
2769
4004
|
const untrustedConfig_customizableFields = untrustedConfig.customizableFields;
|
|
2770
4005
|
if (ArrayIsArray$1(untrustedConfig_customizableFields)) {
|
|
2771
4006
|
const untrustedConfig_customizableFields_array = [];
|
|
2772
4007
|
for (let i = 0, arrayLength = untrustedConfig_customizableFields.length; i < arrayLength; i++) {
|
|
2773
4008
|
const untrustedConfig_customizableFields_item = untrustedConfig_customizableFields[i];
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
untrustedConfig_customizableFields_array.push(untrustedConfig_customizableFields_item_object);
|
|
2778
|
-
}
|
|
4009
|
+
const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$2(untrustedConfig_customizableFields_item);
|
|
4010
|
+
if (referenceCdpMlCustomizableFieldInputRepresentationValidationError === null) {
|
|
4011
|
+
untrustedConfig_customizableFields_array.push(untrustedConfig_customizableFields_item);
|
|
2779
4012
|
}
|
|
2780
4013
|
}
|
|
2781
4014
|
config.customizableFields = untrustedConfig_customizableFields_array;
|
|
2782
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
|
+
}
|
|
2783
4023
|
const untrustedConfig_filter = untrustedConfig.filter;
|
|
2784
4024
|
if (untrustedIsObject(untrustedConfig_filter)) {
|
|
2785
4025
|
const untrustedConfig_filter_object = {};
|
|
@@ -2787,16 +4027,21 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
2787
4027
|
config.filter = untrustedConfig_filter_object;
|
|
2788
4028
|
}
|
|
2789
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
|
+
}
|
|
2790
4037
|
const untrustedConfig_parameterOverrides = untrustedConfig.parameterOverrides;
|
|
2791
4038
|
if (ArrayIsArray$1(untrustedConfig_parameterOverrides)) {
|
|
2792
4039
|
const untrustedConfig_parameterOverrides_array = [];
|
|
2793
4040
|
for (let i = 0, arrayLength = untrustedConfig_parameterOverrides.length; i < arrayLength; i++) {
|
|
2794
4041
|
const untrustedConfig_parameterOverrides_item = untrustedConfig_parameterOverrides[i];
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
untrustedConfig_parameterOverrides_array.push(untrustedConfig_parameterOverrides_item_object);
|
|
2799
|
-
}
|
|
4042
|
+
const referenceCdpMlModelParameterOverrideInputRepresentationValidationError = validate(untrustedConfig_parameterOverrides_item);
|
|
4043
|
+
if (referenceCdpMlModelParameterOverrideInputRepresentationValidationError === null) {
|
|
4044
|
+
untrustedConfig_parameterOverrides_array.push(untrustedConfig_parameterOverrides_item);
|
|
2800
4045
|
}
|
|
2801
4046
|
}
|
|
2802
4047
|
config.parameterOverrides = untrustedConfig_parameterOverrides_array;
|
|
@@ -2845,4 +4090,4 @@ const updateCdpMlConfiguredModelAdapterFactory = (luvio) => {
|
|
|
2845
4090
|
};
|
|
2846
4091
|
};
|
|
2847
4092
|
|
|
2848
|
-
export {
|
|
4093
|
+
export { createCdpMlConfiguredModelAdapterFactory, getCdpMlConfiguredModelAdapterFactory, getCdpMlConfiguredModelCollectionAdapterFactory, getCdpMlModelArtifactAdapterFactory, getCdpMlModelArtifactCollectionAdapterFactory, getCdpMlWorkspaceAdapterFactory, getCdpMlWorkspaceCollectionAdapterFactory, updateCdpMlConfiguredModelAdapterFactory };
|