@salesforce/lds-adapters-platform-cdp-machine-learning 1.265.0 → 1.266.0-dev10
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 +1949 -578
- package/dist/es/es2018/types/src/generated/adapters/createCdpMlConfiguredModel.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getCdpMlConfiguredModel.d.ts +5 -5
- package/dist/es/es2018/types/src/generated/adapters/updateCdpMlConfiguredModel.d.ts +16 -13
- 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/{getSsotMachineLearningWorkspacesModelsByModelIdAndWorkspaceIdOrName.d.ts → getSsotMachineLearningWorkspacesModelsByModelIdOrNameAndWorkspaceIdOrName.d.ts} +1 -1
- package/dist/es/es2018/types/src/generated/resources/{patchSsotMachineLearningWorkspacesModelsByModelIdAndWorkspaceIdOrName.d.ts → patchSsotMachineLearningWorkspacesModelsByModelIdOrNameAndWorkspaceIdOrName.d.ts} +14 -11
- package/dist/es/es2018/types/src/generated/resources/postSsotMachineLearningWorkspacesModelsByWorkspaceIdOrName.d.ts +13 -10
- package/dist/es/es2018/types/src/generated/types/CdpAssetBaseRepresentation.d.ts +11 -11
- package/dist/es/es2018/types/src/generated/types/CdpAssetReferenceInputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/CdpAssetReferenceRepresentation.d.ts +19 -19
- package/dist/es/es2018/types/src/generated/types/CdpMlConfiguredModelCollectionRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/CdpMlConfiguredModelInputRepresentation.d.ts +24 -21
- package/dist/es/es2018/types/src/generated/types/CdpMlConfiguredModelRepresentation.d.ts +28 -28
- 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 +43 -43
- package/dist/es/es2018/types/src/generated/types/CdpMlWorkspaceRepresentation.d.ts +37 -37
- package/dist/es/es2018/types/src/generated/types/CdpPaginatedResponseBaseRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/raml-artifacts/resources/getSsotMachineLearningWorkspacesByWorkspaceIdOrName/keyBuilder.d.ts +3 -0
- package/dist/es/es2018/types/src/raml-artifacts/resources/getSsotMachineLearningWorkspacesModelsByModelIdOrNameAndWorkspaceIdOrName/keyBuilder.d.ts +3 -0
- package/dist/es/es2018/types/src/raml-artifacts/types/CdpMlConfiguredModelRepresentation/keyBuilderFromType.d.ts +3 -0
- package/dist/es/es2018/types/src/raml-artifacts/types/CdpMlWorkspaceDetailRepresentation/keyBuilderFromType.d.ts +3 -0
- package/dist/es/es2018/types/src/raml-artifacts/utils/nameOrId.d.ts +3 -0
- package/package.json +16 -5
- package/sfdc/index.js +1878 -504
- package/src/raml/api.raml +202 -148
- package/src/raml/luvio.raml +6 -6
- 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,95 +180,289 @@ 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 + '")');
|
|
187
187
|
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
188
|
+
if (obj.createdBy !== undefined) {
|
|
189
|
+
const obj_createdBy = obj.createdBy;
|
|
190
|
+
const path_createdBy = path + '.createdBy';
|
|
191
|
+
const referencepath_createdByValidationError = validate$s(obj_createdBy, path_createdBy);
|
|
192
|
+
if (referencepath_createdByValidationError !== null) {
|
|
193
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
194
|
+
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
195
|
+
return new TypeError(message);
|
|
196
|
+
}
|
|
195
197
|
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
if (obj.createdDate !== undefined) {
|
|
199
|
+
const obj_createdDate = obj.createdDate;
|
|
200
|
+
const path_createdDate = path + '.createdDate';
|
|
201
|
+
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);
|
|
224
|
+
}
|
|
200
225
|
}
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
226
|
+
if (obj.id !== undefined) {
|
|
227
|
+
const obj_id = obj.id;
|
|
228
|
+
const path_id = path + '.id';
|
|
229
|
+
if (typeof obj_id !== 'string') {
|
|
230
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
231
|
+
}
|
|
205
232
|
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
233
|
+
if (obj.label !== undefined) {
|
|
234
|
+
const obj_label = obj.label;
|
|
235
|
+
const path_label = path + '.label';
|
|
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);
|
|
259
|
+
}
|
|
218
260
|
}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
261
|
+
if (obj.lastModifiedBy !== undefined) {
|
|
262
|
+
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
263
|
+
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
264
|
+
const referencepath_lastModifiedByValidationError = validate$s(obj_lastModifiedBy, path_lastModifiedBy);
|
|
265
|
+
if (referencepath_lastModifiedByValidationError !== null) {
|
|
266
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
267
|
+
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
268
|
+
return new TypeError(message);
|
|
269
|
+
}
|
|
223
270
|
}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
271
|
+
if (obj.lastModifiedDate !== undefined) {
|
|
272
|
+
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
273
|
+
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
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);
|
|
297
|
+
}
|
|
228
298
|
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
299
|
+
if (obj.name !== undefined) {
|
|
300
|
+
const obj_name = obj.name;
|
|
301
|
+
const path_name = path + '.name';
|
|
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);
|
|
325
|
+
}
|
|
233
326
|
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
327
|
+
if (obj.namespace !== undefined) {
|
|
328
|
+
const obj_namespace = obj.namespace;
|
|
329
|
+
const path_namespace = path + '.namespace';
|
|
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);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
if (obj.url !== undefined) {
|
|
356
|
+
const obj_url = obj.url;
|
|
357
|
+
const path_url = path + '.url';
|
|
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);
|
|
381
|
+
}
|
|
238
382
|
}
|
|
239
383
|
})();
|
|
240
384
|
return v_error === undefined ? null : v_error;
|
|
241
385
|
}
|
|
242
386
|
|
|
243
387
|
const TTL$5 = 1000;
|
|
244
|
-
const VERSION$5 = "
|
|
245
|
-
function validate$
|
|
388
|
+
const VERSION$5 = "6d28f4bb028ba6cba885d3f305c117f4";
|
|
389
|
+
function validate$n(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
246
390
|
const v_error = (() => {
|
|
247
391
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
248
392
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
249
393
|
}
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
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
|
+
}
|
|
257
403
|
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
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
|
+
}
|
|
262
431
|
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
432
|
+
if (obj.description !== undefined) {
|
|
433
|
+
const obj_description = obj.description;
|
|
434
|
+
const path_description = path + '.description';
|
|
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);
|
|
458
|
+
}
|
|
267
459
|
}
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
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
|
+
}
|
|
272
466
|
}
|
|
273
467
|
const obj_inputFields = obj.inputFields;
|
|
274
468
|
const path_inputFields = path + '.inputFields';
|
|
@@ -278,30 +472,78 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
278
472
|
for (let i = 0; i < obj_inputFields.length; i++) {
|
|
279
473
|
const obj_inputFields_item = obj_inputFields[i];
|
|
280
474
|
const path_inputFields_item = path_inputFields + '[' + i + ']';
|
|
281
|
-
const referencepath_inputFields_itemValidationError = validate$
|
|
475
|
+
const referencepath_inputFields_itemValidationError = validate$r(obj_inputFields_item, path_inputFields_item);
|
|
282
476
|
if (referencepath_inputFields_itemValidationError !== null) {
|
|
283
477
|
let message = 'Object doesn\'t match CdpMlModelInputFieldBaseRepresentation (at "' + path_inputFields_item + '")\n';
|
|
284
478
|
message += referencepath_inputFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
285
479
|
return new TypeError(message);
|
|
286
480
|
}
|
|
287
481
|
}
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
482
|
+
if (obj.label !== undefined) {
|
|
483
|
+
const obj_label = obj.label;
|
|
484
|
+
const path_label = path + '.label';
|
|
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);
|
|
508
|
+
}
|
|
292
509
|
}
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
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
|
+
}
|
|
300
519
|
}
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
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
|
+
}
|
|
305
547
|
}
|
|
306
548
|
const obj_modelType = obj.modelType;
|
|
307
549
|
const path_modelType = path + '.modelType';
|
|
@@ -313,10 +555,33 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
313
555
|
if (typeof obj_name !== 'string') {
|
|
314
556
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
315
557
|
}
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
558
|
+
if (obj.namespace !== undefined) {
|
|
559
|
+
const obj_namespace = obj.namespace;
|
|
560
|
+
const path_namespace = path + '.namespace';
|
|
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);
|
|
584
|
+
}
|
|
320
585
|
}
|
|
321
586
|
const obj_outputFields = obj.outputFields;
|
|
322
587
|
const path_outputFields = path + '.outputFields';
|
|
@@ -326,7 +591,7 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
326
591
|
for (let i = 0; i < obj_outputFields.length; i++) {
|
|
327
592
|
const obj_outputFields_item = obj_outputFields[i];
|
|
328
593
|
const path_outputFields_item = path_outputFields + '[' + i + ']';
|
|
329
|
-
const referencepath_outputFields_itemValidationError = validate$
|
|
594
|
+
const referencepath_outputFields_itemValidationError = validate$q(obj_outputFields_item, path_outputFields_item);
|
|
330
595
|
if (referencepath_outputFields_itemValidationError !== null) {
|
|
331
596
|
let message = 'Object doesn\'t match CdpMlModelOutputFieldRepresentation (at "' + path_outputFields_item + '")\n';
|
|
332
597
|
message += referencepath_outputFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -341,7 +606,7 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
341
606
|
for (let i = 0; i < obj_parameters.length; i++) {
|
|
342
607
|
const obj_parameters_item = obj_parameters[i];
|
|
343
608
|
const path_parameters_item = path_parameters + '[' + i + ']';
|
|
344
|
-
const referencepath_parameters_itemValidationError = validate$
|
|
609
|
+
const referencepath_parameters_itemValidationError = validate$p(obj_parameters_item, path_parameters_item);
|
|
345
610
|
if (referencepath_parameters_itemValidationError !== null) {
|
|
346
611
|
let message = 'Object doesn\'t match CdpMlModelParameterDefinitionBaseRepresentation (at "' + path_parameters_item + '")\n';
|
|
347
612
|
message += referencepath_parameters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -353,13 +618,15 @@ function validate$j(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
353
618
|
if (typeof obj_runtimeType !== 'string') {
|
|
354
619
|
return new TypeError('Expected "string" but received "' + typeof obj_runtimeType + '" (at "' + path_runtimeType + '")');
|
|
355
620
|
}
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
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
|
+
}
|
|
363
630
|
}
|
|
364
631
|
const obj_sourceType = obj.sourceType;
|
|
365
632
|
const path_sourceType = path + '.sourceType';
|
|
@@ -394,7 +661,7 @@ function equals$5(existing, incoming) {
|
|
|
394
661
|
}
|
|
395
662
|
const ingest$5 = function CdpMlModelArtifactBaseRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
396
663
|
if (process.env.NODE_ENV !== 'production') {
|
|
397
|
-
const validateError = validate$
|
|
664
|
+
const validateError = validate$n(input);
|
|
398
665
|
if (validateError !== null) {
|
|
399
666
|
throw validateError;
|
|
400
667
|
}
|
|
@@ -415,8 +682,8 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
415
682
|
}
|
|
416
683
|
|
|
417
684
|
const TTL$4 = 1000;
|
|
418
|
-
const VERSION$4 = "
|
|
419
|
-
function validate$
|
|
685
|
+
const VERSION$4 = "31baba639dc891173a7ce2db82dae35f";
|
|
686
|
+
function validate$m(obj, path = 'CdpMlModelArtifactCollectionRepresentation') {
|
|
420
687
|
const v_error = (() => {
|
|
421
688
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
422
689
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -434,7 +701,7 @@ function validate$i(obj, path = 'CdpMlModelArtifactCollectionRepresentation') {
|
|
|
434
701
|
for (let i = 0; i < obj_modelArtifacts.length; i++) {
|
|
435
702
|
const obj_modelArtifacts_item = obj_modelArtifacts[i];
|
|
436
703
|
const path_modelArtifacts_item = path_modelArtifacts + '[' + i + ']';
|
|
437
|
-
const referencepath_modelArtifacts_itemValidationError = validate$
|
|
704
|
+
const referencepath_modelArtifacts_itemValidationError = validate$n(obj_modelArtifacts_item, path_modelArtifacts_item);
|
|
438
705
|
if (referencepath_modelArtifacts_itemValidationError !== null) {
|
|
439
706
|
let message = 'Object doesn\'t match CdpMlModelArtifactBaseRepresentation (at "' + path_modelArtifacts_item + '")\n';
|
|
440
707
|
message += referencepath_modelArtifacts_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -443,8 +710,29 @@ function validate$i(obj, path = 'CdpMlModelArtifactCollectionRepresentation') {
|
|
|
443
710
|
}
|
|
444
711
|
const obj_nextPageUrl = obj.nextPageUrl;
|
|
445
712
|
const path_nextPageUrl = path + '.nextPageUrl';
|
|
446
|
-
|
|
447
|
-
|
|
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);
|
|
448
736
|
}
|
|
449
737
|
const obj_totalSize = obj.totalSize;
|
|
450
738
|
const path_totalSize = path + '.totalSize';
|
|
@@ -474,7 +762,7 @@ function equals$4(existing, incoming) {
|
|
|
474
762
|
}
|
|
475
763
|
const ingest$4 = function CdpMlModelArtifactCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
476
764
|
if (process.env.NODE_ENV !== 'production') {
|
|
477
|
-
const validateError = validate$
|
|
765
|
+
const validateError = validate$m(input);
|
|
478
766
|
if (validateError !== null) {
|
|
479
767
|
throw validateError;
|
|
480
768
|
}
|
|
@@ -497,15 +785,15 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
497
785
|
function select$b(luvio, params) {
|
|
498
786
|
return select$c();
|
|
499
787
|
}
|
|
500
|
-
function keyBuilder$
|
|
788
|
+
function keyBuilder$b(luvio, params) {
|
|
501
789
|
return keyPrefix + '::CdpMlModelArtifactCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'modelType:' + params.queryParams.modelType + ',' + 'offset:' + params.queryParams.offset + ',' + 'sourceType:' + params.queryParams.sourceType + ')';
|
|
502
790
|
}
|
|
503
791
|
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
504
|
-
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$
|
|
792
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
|
|
505
793
|
}
|
|
506
794
|
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
507
795
|
const { body } = response;
|
|
508
|
-
const key = keyBuilder$
|
|
796
|
+
const key = keyBuilder$b(luvio, resourceParams);
|
|
509
797
|
luvio.storeIngest(key, ingest$4, body);
|
|
510
798
|
const snapshot = luvio.storeLookup({
|
|
511
799
|
recordId: key,
|
|
@@ -521,7 +809,7 @@ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
521
809
|
return snapshot;
|
|
522
810
|
}
|
|
523
811
|
function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
524
|
-
const key = keyBuilder$
|
|
812
|
+
const key = keyBuilder$b(luvio, params);
|
|
525
813
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
526
814
|
const storeMetadataParams = {
|
|
527
815
|
ttl: TTL$4,
|
|
@@ -555,9 +843,9 @@ const getCdpMlModelArtifactCollection_ConfigPropertyMetadata = [
|
|
|
555
843
|
];
|
|
556
844
|
const getCdpMlModelArtifactCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getCdpMlModelArtifactCollection_ConfigPropertyMetadata);
|
|
557
845
|
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$8(getCdpMlModelArtifactCollection_ConfigPropertyMetadata);
|
|
558
|
-
function keyBuilder$
|
|
846
|
+
function keyBuilder$a(luvio, config) {
|
|
559
847
|
const resourceParams = createResourceParams$7(config);
|
|
560
|
-
return keyBuilder$
|
|
848
|
+
return keyBuilder$b(luvio, resourceParams);
|
|
561
849
|
}
|
|
562
850
|
function typeCheckConfig$7(untrustedConfig) {
|
|
563
851
|
const config = {};
|
|
@@ -615,7 +903,7 @@ function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext
|
|
|
615
903
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
616
904
|
const { luvio, config } = context;
|
|
617
905
|
const selector = {
|
|
618
|
-
recordId: keyBuilder$
|
|
906
|
+
recordId: keyBuilder$a(luvio, config),
|
|
619
907
|
node: adapterFragment$5(luvio, config),
|
|
620
908
|
variables: {},
|
|
621
909
|
};
|
|
@@ -638,15 +926,15 @@ const getCdpMlModelArtifactCollectionAdapterFactory = (luvio) => function cdpMac
|
|
|
638
926
|
function select$a(luvio, params) {
|
|
639
927
|
return select$d();
|
|
640
928
|
}
|
|
641
|
-
function keyBuilder$
|
|
929
|
+
function keyBuilder$9(luvio, params) {
|
|
642
930
|
return keyPrefix + '::CdpMlModelArtifactBaseRepresentation:(' + 'modelArtifactIdOrName:' + params.urlParams.modelArtifactIdOrName + ')';
|
|
643
931
|
}
|
|
644
932
|
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
645
|
-
getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$
|
|
933
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
|
|
646
934
|
}
|
|
647
935
|
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
648
936
|
const { body } = response;
|
|
649
|
-
const key = keyBuilder$
|
|
937
|
+
const key = keyBuilder$9(luvio, resourceParams);
|
|
650
938
|
luvio.storeIngest(key, ingest$5, body);
|
|
651
939
|
const snapshot = luvio.storeLookup({
|
|
652
940
|
recordId: key,
|
|
@@ -662,7 +950,7 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
662
950
|
return snapshot;
|
|
663
951
|
}
|
|
664
952
|
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
665
|
-
const key = keyBuilder$
|
|
953
|
+
const key = keyBuilder$9(luvio, params);
|
|
666
954
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
667
955
|
const storeMetadataParams = {
|
|
668
956
|
ttl: TTL$5,
|
|
@@ -693,9 +981,9 @@ const getCdpMlModelArtifact_ConfigPropertyMetadata = [
|
|
|
693
981
|
];
|
|
694
982
|
const getCdpMlModelArtifact_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getCdpMlModelArtifact_ConfigPropertyMetadata);
|
|
695
983
|
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$8(getCdpMlModelArtifact_ConfigPropertyMetadata);
|
|
696
|
-
function keyBuilder$
|
|
984
|
+
function keyBuilder$8(luvio, config) {
|
|
697
985
|
const resourceParams = createResourceParams$6(config);
|
|
698
|
-
return keyBuilder$
|
|
986
|
+
return keyBuilder$9(luvio, resourceParams);
|
|
699
987
|
}
|
|
700
988
|
function typeCheckConfig$6(untrustedConfig) {
|
|
701
989
|
const config = {};
|
|
@@ -753,7 +1041,7 @@ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext
|
|
|
753
1041
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
754
1042
|
const { luvio, config } = context;
|
|
755
1043
|
const selector = {
|
|
756
|
-
recordId: keyBuilder$
|
|
1044
|
+
recordId: keyBuilder$8(luvio, config),
|
|
757
1045
|
node: adapterFragment$4(luvio, config),
|
|
758
1046
|
variables: {},
|
|
759
1047
|
};
|
|
@@ -773,31 +1061,100 @@ const getCdpMlModelArtifactAdapterFactory = (luvio) => function cdpMachineLearni
|
|
|
773
1061
|
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
774
1062
|
};
|
|
775
1063
|
|
|
776
|
-
function validate$
|
|
1064
|
+
function validate$l(obj, path = 'CdpMlModelTypeRepresentation') {
|
|
777
1065
|
const v_error = (() => {
|
|
778
1066
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
779
1067
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
780
1068
|
}
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
1069
|
+
if (obj.connectorType !== undefined) {
|
|
1070
|
+
const obj_connectorType = obj.connectorType;
|
|
1071
|
+
const path_connectorType = path + '.connectorType';
|
|
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);
|
|
1095
|
+
}
|
|
785
1096
|
}
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
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
|
+
}
|
|
790
1124
|
}
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
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
|
+
}
|
|
795
1152
|
}
|
|
796
1153
|
})();
|
|
797
1154
|
return v_error === undefined ? null : v_error;
|
|
798
1155
|
}
|
|
799
1156
|
|
|
800
|
-
function validate$
|
|
1157
|
+
function validate$k(obj, path = 'CdpMlModelOutcomeDefinitionRepresentation') {
|
|
801
1158
|
const v_error = (() => {
|
|
802
1159
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
803
1160
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -810,7 +1167,7 @@ function validate$g(obj, path = 'CdpMlModelOutcomeDefinitionRepresentation') {
|
|
|
810
1167
|
for (let i = 0; i < obj_fields.length; i++) {
|
|
811
1168
|
const obj_fields_item = obj_fields[i];
|
|
812
1169
|
const path_fields_item = path_fields + '[' + i + ']';
|
|
813
|
-
const referencepath_fields_itemValidationError = validate$
|
|
1170
|
+
const referencepath_fields_itemValidationError = validate$q(obj_fields_item, path_fields_item);
|
|
814
1171
|
if (referencepath_fields_itemValidationError !== null) {
|
|
815
1172
|
let message = 'Object doesn\'t match CdpMlModelOutputFieldRepresentation (at "' + path_fields_item + '")\n';
|
|
816
1173
|
message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -826,7 +1183,7 @@ function validate$g(obj, path = 'CdpMlModelOutcomeDefinitionRepresentation') {
|
|
|
826
1183
|
return v_error === undefined ? null : v_error;
|
|
827
1184
|
}
|
|
828
1185
|
|
|
829
|
-
function validate$
|
|
1186
|
+
function validate$j(obj, path = 'CdpMlModelRefreshRecipientRepresentation') {
|
|
830
1187
|
const v_error = (() => {
|
|
831
1188
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
832
1189
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -850,7 +1207,7 @@ function validate$f(obj, path = 'CdpMlModelRefreshRecipientRepresentation') {
|
|
|
850
1207
|
return v_error === undefined ? null : v_error;
|
|
851
1208
|
}
|
|
852
1209
|
|
|
853
|
-
function validate$
|
|
1210
|
+
function validate$i(obj, path = 'CdpTimeZoneRepresentation') {
|
|
854
1211
|
const v_error = (() => {
|
|
855
1212
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
856
1213
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -870,7 +1227,7 @@ function validate$e(obj, path = 'CdpTimeZoneRepresentation') {
|
|
|
870
1227
|
return v_error === undefined ? null : v_error;
|
|
871
1228
|
}
|
|
872
1229
|
|
|
873
|
-
function validate$
|
|
1230
|
+
function validate$h(obj, path = 'CdpTimeRepresentation') {
|
|
874
1231
|
const v_error = (() => {
|
|
875
1232
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
876
1233
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -887,7 +1244,7 @@ function validate$d(obj, path = 'CdpTimeRepresentation') {
|
|
|
887
1244
|
}
|
|
888
1245
|
const obj_timezone = obj.timezone;
|
|
889
1246
|
const path_timezone = path + '.timezone';
|
|
890
|
-
const referencepath_timezoneValidationError = validate$
|
|
1247
|
+
const referencepath_timezoneValidationError = validate$i(obj_timezone, path_timezone);
|
|
891
1248
|
if (referencepath_timezoneValidationError !== null) {
|
|
892
1249
|
let message = 'Object doesn\'t match CdpTimeZoneRepresentation (at "' + path_timezone + '")\n';
|
|
893
1250
|
message += referencepath_timezoneValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -897,7 +1254,7 @@ function validate$d(obj, path = 'CdpTimeRepresentation') {
|
|
|
897
1254
|
return v_error === undefined ? null : v_error;
|
|
898
1255
|
}
|
|
899
1256
|
|
|
900
|
-
function validate$
|
|
1257
|
+
function validate$g(obj, path = 'CdpScheduleRepresentation') {
|
|
901
1258
|
const v_error = (() => {
|
|
902
1259
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
903
1260
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -914,7 +1271,7 @@ function validate$c(obj, path = 'CdpScheduleRepresentation') {
|
|
|
914
1271
|
}
|
|
915
1272
|
const obj_time = obj.time;
|
|
916
1273
|
const path_time = path + '.time';
|
|
917
|
-
const referencepath_timeValidationError = validate$
|
|
1274
|
+
const referencepath_timeValidationError = validate$h(obj_time, path_time);
|
|
918
1275
|
if (referencepath_timeValidationError !== null) {
|
|
919
1276
|
let message = 'Object doesn\'t match CdpTimeRepresentation (at "' + path_time + '")\n';
|
|
920
1277
|
message += referencepath_timeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -924,7 +1281,7 @@ function validate$c(obj, path = 'CdpScheduleRepresentation') {
|
|
|
924
1281
|
return v_error === undefined ? null : v_error;
|
|
925
1282
|
}
|
|
926
1283
|
|
|
927
|
-
function validate$
|
|
1284
|
+
function validate$f(obj, path = 'CdpMlModelRefreshConfigRepresentation') {
|
|
928
1285
|
const v_error = (() => {
|
|
929
1286
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
930
1287
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -942,7 +1299,7 @@ function validate$b(obj, path = 'CdpMlModelRefreshConfigRepresentation') {
|
|
|
942
1299
|
for (let i = 0; i < obj_recipients.length; i++) {
|
|
943
1300
|
const obj_recipients_item = obj_recipients[i];
|
|
944
1301
|
const path_recipients_item = path_recipients + '[' + i + ']';
|
|
945
|
-
const referencepath_recipients_itemValidationError = validate$
|
|
1302
|
+
const referencepath_recipients_itemValidationError = validate$j(obj_recipients_item, path_recipients_item);
|
|
946
1303
|
if (referencepath_recipients_itemValidationError !== null) {
|
|
947
1304
|
let message = 'Object doesn\'t match CdpMlModelRefreshRecipientRepresentation (at "' + path_recipients_item + '")\n';
|
|
948
1305
|
message += referencepath_recipients_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -951,7 +1308,7 @@ function validate$b(obj, path = 'CdpMlModelRefreshConfigRepresentation') {
|
|
|
951
1308
|
}
|
|
952
1309
|
const obj_schedule = obj.schedule;
|
|
953
1310
|
const path_schedule = path + '.schedule';
|
|
954
|
-
const referencepath_scheduleValidationError = validate$
|
|
1311
|
+
const referencepath_scheduleValidationError = validate$g(obj_schedule, path_schedule);
|
|
955
1312
|
if (referencepath_scheduleValidationError !== null) {
|
|
956
1313
|
let message = 'Object doesn\'t match CdpScheduleRepresentation (at "' + path_schedule + '")\n';
|
|
957
1314
|
message += referencepath_scheduleValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -961,77 +1318,225 @@ function validate$b(obj, path = 'CdpMlModelRefreshConfigRepresentation') {
|
|
|
961
1318
|
return v_error === undefined ? null : v_error;
|
|
962
1319
|
}
|
|
963
1320
|
|
|
964
|
-
function validate$
|
|
1321
|
+
function validate$e(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
965
1322
|
const v_error = (() => {
|
|
966
1323
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
967
1324
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
968
1325
|
}
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
1326
|
+
if (obj.activeSetup !== undefined) {
|
|
1327
|
+
const obj_activeSetup = obj.activeSetup;
|
|
1328
|
+
const path_activeSetup = path + '.activeSetup';
|
|
1329
|
+
const referencepath_activeSetupValidationError = validate$o(obj_activeSetup, path_activeSetup);
|
|
1330
|
+
if (referencepath_activeSetupValidationError !== null) {
|
|
1331
|
+
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_activeSetup + '")\n';
|
|
1332
|
+
message += referencepath_activeSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1333
|
+
return new TypeError(message);
|
|
1334
|
+
}
|
|
976
1335
|
}
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
1336
|
+
if (obj.activeSetupVersionNumber !== undefined) {
|
|
1337
|
+
const obj_activeSetupVersionNumber = obj.activeSetupVersionNumber;
|
|
1338
|
+
const path_activeSetupVersionNumber = path + '.activeSetupVersionNumber';
|
|
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);
|
|
1362
|
+
}
|
|
989
1363
|
}
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
1364
|
+
if (obj.createdBy !== undefined) {
|
|
1365
|
+
const obj_createdBy = obj.createdBy;
|
|
1366
|
+
const path_createdBy = path + '.createdBy';
|
|
1367
|
+
const referencepath_createdByValidationError = validate$s(obj_createdBy, path_createdBy);
|
|
1368
|
+
if (referencepath_createdByValidationError !== null) {
|
|
1369
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
1370
|
+
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1371
|
+
return new TypeError(message);
|
|
1372
|
+
}
|
|
994
1373
|
}
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
1374
|
+
if (obj.createdDate !== undefined) {
|
|
1375
|
+
const obj_createdDate = obj.createdDate;
|
|
1376
|
+
const path_createdDate = path + '.createdDate';
|
|
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);
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1402
|
+
if (obj.description !== undefined) {
|
|
1403
|
+
const obj_description = obj.description;
|
|
1404
|
+
const path_description = path + '.description';
|
|
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);
|
|
1428
|
+
}
|
|
999
1429
|
}
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1430
|
+
if (obj.historiesUrl !== undefined) {
|
|
1431
|
+
const obj_historiesUrl = obj.historiesUrl;
|
|
1432
|
+
const path_historiesUrl = path + '.historiesUrl';
|
|
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);
|
|
1456
|
+
}
|
|
1004
1457
|
}
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1458
|
+
if (obj.id !== undefined) {
|
|
1459
|
+
const obj_id = obj.id;
|
|
1460
|
+
const path_id = path + '.id';
|
|
1461
|
+
if (typeof obj_id !== 'string') {
|
|
1462
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1463
|
+
}
|
|
1009
1464
|
}
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1465
|
+
if (obj.label !== undefined) {
|
|
1466
|
+
const obj_label = obj.label;
|
|
1467
|
+
const path_label = path + '.label';
|
|
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);
|
|
1491
|
+
}
|
|
1022
1492
|
}
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1493
|
+
if (obj.lastModifiedBy !== undefined) {
|
|
1494
|
+
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
1495
|
+
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
1496
|
+
const referencepath_lastModifiedByValidationError = validate$s(obj_lastModifiedBy, path_lastModifiedBy);
|
|
1497
|
+
if (referencepath_lastModifiedByValidationError !== null) {
|
|
1498
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
1499
|
+
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1500
|
+
return new TypeError(message);
|
|
1501
|
+
}
|
|
1502
|
+
}
|
|
1503
|
+
if (obj.lastModifiedDate !== undefined) {
|
|
1504
|
+
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
1505
|
+
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
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);
|
|
1529
|
+
}
|
|
1530
|
+
}
|
|
1531
|
+
if (obj.latestSetup !== undefined) {
|
|
1532
|
+
const obj_latestSetup = obj.latestSetup;
|
|
1533
|
+
const path_latestSetup = path + '.latestSetup';
|
|
1534
|
+
const referencepath_latestSetupValidationError = validate$o(obj_latestSetup, path_latestSetup);
|
|
1535
|
+
if (referencepath_latestSetupValidationError !== null) {
|
|
1536
|
+
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_latestSetup + '")\n';
|
|
1537
|
+
message += referencepath_latestSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1538
|
+
return new TypeError(message);
|
|
1539
|
+
}
|
|
1035
1540
|
}
|
|
1036
1541
|
const obj_modelCount = obj.modelCount;
|
|
1037
1542
|
const path_modelCount = path + '.modelCount';
|
|
@@ -1040,7 +1545,7 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
1040
1545
|
}
|
|
1041
1546
|
const obj_modelType = obj.modelType;
|
|
1042
1547
|
const path_modelType = path + '.modelType';
|
|
1043
|
-
const referencepath_modelTypeValidationError = validate$
|
|
1548
|
+
const referencepath_modelTypeValidationError = validate$l(obj_modelType, path_modelType);
|
|
1044
1549
|
if (referencepath_modelTypeValidationError !== null) {
|
|
1045
1550
|
let message = 'Object doesn\'t match CdpMlModelTypeRepresentation (at "' + path_modelType + '")\n';
|
|
1046
1551
|
message += referencepath_modelTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1056,51 +1561,170 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
1056
1561
|
if (typeof obj_name !== 'string') {
|
|
1057
1562
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
1058
1563
|
}
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
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
|
+
}
|
|
1071
1591
|
}
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1592
|
+
if (obj.outcomeDefinition !== undefined) {
|
|
1593
|
+
const obj_outcomeDefinition = obj.outcomeDefinition;
|
|
1594
|
+
const path_outcomeDefinition = path + '.outcomeDefinition';
|
|
1595
|
+
const referencepath_outcomeDefinitionValidationError = validate$k(obj_outcomeDefinition, path_outcomeDefinition);
|
|
1596
|
+
if (referencepath_outcomeDefinitionValidationError !== null) {
|
|
1597
|
+
let message = 'Object doesn\'t match CdpMlModelOutcomeDefinitionRepresentation (at "' + path_outcomeDefinition + '")\n';
|
|
1598
|
+
message += referencepath_outcomeDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1599
|
+
return new TypeError(message);
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
if (obj.predictionType !== undefined) {
|
|
1603
|
+
const obj_predictionType = obj.predictionType;
|
|
1604
|
+
const path_predictionType = path + '.predictionType';
|
|
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);
|
|
1628
|
+
}
|
|
1629
|
+
}
|
|
1630
|
+
if (obj.refreshConfig !== undefined) {
|
|
1631
|
+
const obj_refreshConfig = obj.refreshConfig;
|
|
1632
|
+
const path_refreshConfig = path + '.refreshConfig';
|
|
1633
|
+
const referencepath_refreshConfigValidationError = validate$f(obj_refreshConfig, path_refreshConfig);
|
|
1634
|
+
if (referencepath_refreshConfigValidationError !== null) {
|
|
1635
|
+
let message = 'Object doesn\'t match CdpMlModelRefreshConfigRepresentation (at "' + path_refreshConfig + '")\n';
|
|
1636
|
+
message += referencepath_refreshConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1637
|
+
return new TypeError(message);
|
|
1638
|
+
}
|
|
1084
1639
|
}
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1640
|
+
if (obj.setupVersionsUrl !== undefined) {
|
|
1641
|
+
const obj_setupVersionsUrl = obj.setupVersionsUrl;
|
|
1642
|
+
const path_setupVersionsUrl = path + '.setupVersionsUrl';
|
|
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);
|
|
1666
|
+
}
|
|
1089
1667
|
}
|
|
1090
1668
|
const obj_status = obj.status;
|
|
1091
1669
|
const path_status = path + '.status';
|
|
1092
1670
|
if (typeof obj_status !== 'string') {
|
|
1093
1671
|
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
1094
1672
|
}
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1673
|
+
if (obj.totalInferenceCount !== undefined) {
|
|
1674
|
+
const obj_totalInferenceCount = obj.totalInferenceCount;
|
|
1675
|
+
const path_totalInferenceCount = path + '.totalInferenceCount';
|
|
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);
|
|
1699
|
+
}
|
|
1099
1700
|
}
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1701
|
+
if (obj.totalWarningsCount !== undefined) {
|
|
1702
|
+
const obj_totalWarningsCount = obj.totalWarningsCount;
|
|
1703
|
+
const path_totalWarningsCount = path + '.totalWarningsCount';
|
|
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);
|
|
1727
|
+
}
|
|
1104
1728
|
}
|
|
1105
1729
|
const obj_url = obj.url;
|
|
1106
1730
|
const path_url = path + '.url';
|
|
@@ -1112,21 +1736,67 @@ function validate$a(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
1112
1736
|
}
|
|
1113
1737
|
|
|
1114
1738
|
const TTL$3 = 1000;
|
|
1115
|
-
const VERSION$3 = "
|
|
1116
|
-
function validate$
|
|
1739
|
+
const VERSION$3 = "e6a8612718f37385e9d7622527f26c5c";
|
|
1740
|
+
function validate$d(obj, path = 'CdpMlWorkspaceCollectionRepresentation') {
|
|
1117
1741
|
const v_error = (() => {
|
|
1118
1742
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1119
1743
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1120
1744
|
}
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
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
|
+
}
|
|
1125
1772
|
}
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
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
|
+
}
|
|
1130
1800
|
}
|
|
1131
1801
|
const obj_totalSize = obj.totalSize;
|
|
1132
1802
|
const path_totalSize = path + '.totalSize';
|
|
@@ -1141,7 +1811,7 @@ function validate$9(obj, path = 'CdpMlWorkspaceCollectionRepresentation') {
|
|
|
1141
1811
|
for (let i = 0; i < obj_workspaces.length; i++) {
|
|
1142
1812
|
const obj_workspaces_item = obj_workspaces[i];
|
|
1143
1813
|
const path_workspaces_item = path_workspaces + '[' + i + ']';
|
|
1144
|
-
const referencepath_workspaces_itemValidationError = validate$
|
|
1814
|
+
const referencepath_workspaces_itemValidationError = validate$e(obj_workspaces_item, path_workspaces_item);
|
|
1145
1815
|
if (referencepath_workspaces_itemValidationError !== null) {
|
|
1146
1816
|
let message = 'Object doesn\'t match CdpMlWorkspaceRepresentation (at "' + path_workspaces_item + '")\n';
|
|
1147
1817
|
message += referencepath_workspaces_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1171,7 +1841,7 @@ function equals$3(existing, incoming) {
|
|
|
1171
1841
|
}
|
|
1172
1842
|
const ingest$3 = function CdpMlWorkspaceCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1173
1843
|
if (process.env.NODE_ENV !== 'production') {
|
|
1174
|
-
const validateError = validate$
|
|
1844
|
+
const validateError = validate$d(input);
|
|
1175
1845
|
if (validateError !== null) {
|
|
1176
1846
|
throw validateError;
|
|
1177
1847
|
}
|
|
@@ -1194,15 +1864,15 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1194
1864
|
function select$8(luvio, params) {
|
|
1195
1865
|
return select$9();
|
|
1196
1866
|
}
|
|
1197
|
-
function keyBuilder$
|
|
1867
|
+
function keyBuilder$7(luvio, params) {
|
|
1198
1868
|
return keyPrefix + '::CdpMlWorkspaceCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'modelType:' + params.queryParams.modelType + ',' + 'offset:' + params.queryParams.offset + ',' + 'predictionType:' + params.queryParams.predictionType + ',' + 'search:' + params.queryParams.search + ',' + 'sourceType:' + params.queryParams.sourceType + ',' + 'status:' + params.queryParams.status + ')';
|
|
1199
1869
|
}
|
|
1200
1870
|
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
1201
|
-
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$
|
|
1871
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
1202
1872
|
}
|
|
1203
1873
|
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
1204
1874
|
const { body } = response;
|
|
1205
|
-
const key = keyBuilder$
|
|
1875
|
+
const key = keyBuilder$7(luvio, resourceParams);
|
|
1206
1876
|
luvio.storeIngest(key, ingest$3, body);
|
|
1207
1877
|
const snapshot = luvio.storeLookup({
|
|
1208
1878
|
recordId: key,
|
|
@@ -1218,7 +1888,7 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1218
1888
|
return snapshot;
|
|
1219
1889
|
}
|
|
1220
1890
|
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
1221
|
-
const key = keyBuilder$
|
|
1891
|
+
const key = keyBuilder$7(luvio, params);
|
|
1222
1892
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1223
1893
|
const storeMetadataParams = {
|
|
1224
1894
|
ttl: TTL$3,
|
|
@@ -1255,9 +1925,9 @@ const getCdpMlWorkspaceCollection_ConfigPropertyMetadata = [
|
|
|
1255
1925
|
];
|
|
1256
1926
|
const getCdpMlWorkspaceCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getCdpMlWorkspaceCollection_ConfigPropertyMetadata);
|
|
1257
1927
|
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$8(getCdpMlWorkspaceCollection_ConfigPropertyMetadata);
|
|
1258
|
-
function keyBuilder$
|
|
1928
|
+
function keyBuilder$6(luvio, config) {
|
|
1259
1929
|
const resourceParams = createResourceParams$5(config);
|
|
1260
|
-
return keyBuilder$
|
|
1930
|
+
return keyBuilder$7(luvio, resourceParams);
|
|
1261
1931
|
}
|
|
1262
1932
|
function typeCheckConfig$5(untrustedConfig) {
|
|
1263
1933
|
const config = {};
|
|
@@ -1315,7 +1985,7 @@ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext
|
|
|
1315
1985
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
1316
1986
|
const { luvio, config } = context;
|
|
1317
1987
|
const selector = {
|
|
1318
|
-
recordId: keyBuilder$
|
|
1988
|
+
recordId: keyBuilder$6(luvio, config),
|
|
1319
1989
|
node: adapterFragment$3(luvio, config),
|
|
1320
1990
|
variables: {},
|
|
1321
1991
|
};
|
|
@@ -1335,9 +2005,17 @@ const getCdpMlWorkspaceCollectionAdapterFactory = (luvio) => function cdpMachine
|
|
|
1335
2005
|
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
1336
2006
|
};
|
|
1337
2007
|
|
|
2008
|
+
// Should match with keyBuilder
|
|
2009
|
+
function keyBuilderFromType$1(luvio, object) {
|
|
2010
|
+
const type = object.url.indexOf(object.name) > -1 ? 'name' : 'id';
|
|
2011
|
+
const urlArray = object.url.split('/');
|
|
2012
|
+
const idOrName = urlArray[urlArray.length - 1];
|
|
2013
|
+
return `${keyPrefix}::${RepresentationType$2}:(id:${idOrName},type:${type})`;
|
|
2014
|
+
}
|
|
2015
|
+
|
|
1338
2016
|
const TTL$2 = 1000;
|
|
1339
|
-
const VERSION$2 = "
|
|
1340
|
-
function validate$
|
|
2017
|
+
const VERSION$2 = "1cb47dd9b0cc811f1ad3318c7245d465";
|
|
2018
|
+
function validate$c(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
1341
2019
|
const v_error = (() => {
|
|
1342
2020
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1343
2021
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1354,141 +2032,433 @@ function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
1354
2032
|
return new TypeError('Expected "string" but received "' + typeof obj_activations_item + '" (at "' + path_activations_item + '")');
|
|
1355
2033
|
}
|
|
1356
2034
|
}
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
2035
|
+
if (obj.activeSetup !== undefined) {
|
|
2036
|
+
const obj_activeSetup = obj.activeSetup;
|
|
2037
|
+
const path_activeSetup = path + '.activeSetup';
|
|
2038
|
+
const referencepath_activeSetupValidationError = validate$o(obj_activeSetup, path_activeSetup);
|
|
2039
|
+
if (referencepath_activeSetupValidationError !== null) {
|
|
2040
|
+
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_activeSetup + '")\n';
|
|
2041
|
+
message += referencepath_activeSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2042
|
+
return new TypeError(message);
|
|
2043
|
+
}
|
|
1364
2044
|
}
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
2045
|
+
if (obj.activeSetupVersionNumber !== undefined) {
|
|
2046
|
+
const obj_activeSetupVersionNumber = obj.activeSetupVersionNumber;
|
|
2047
|
+
const path_activeSetupVersionNumber = path + '.activeSetupVersionNumber';
|
|
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);
|
|
2071
|
+
}
|
|
1377
2072
|
}
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
2073
|
+
if (obj.createdBy !== undefined) {
|
|
2074
|
+
const obj_createdBy = obj.createdBy;
|
|
2075
|
+
const path_createdBy = path + '.createdBy';
|
|
2076
|
+
const referencepath_createdByValidationError = validate$s(obj_createdBy, path_createdBy);
|
|
2077
|
+
if (referencepath_createdByValidationError !== null) {
|
|
2078
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
2079
|
+
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2080
|
+
return new TypeError(message);
|
|
2081
|
+
}
|
|
1382
2082
|
}
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
2083
|
+
if (obj.createdDate !== undefined) {
|
|
2084
|
+
const obj_createdDate = obj.createdDate;
|
|
2085
|
+
const path_createdDate = path + '.createdDate';
|
|
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);
|
|
2109
|
+
}
|
|
1387
2110
|
}
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
2111
|
+
if (obj.description !== undefined) {
|
|
2112
|
+
const obj_description = obj.description;
|
|
2113
|
+
const path_description = path + '.description';
|
|
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);
|
|
2137
|
+
}
|
|
1392
2138
|
}
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
2139
|
+
if (obj.historiesUrl !== undefined) {
|
|
2140
|
+
const obj_historiesUrl = obj.historiesUrl;
|
|
2141
|
+
const path_historiesUrl = path + '.historiesUrl';
|
|
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);
|
|
2165
|
+
}
|
|
1397
2166
|
}
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
1405
|
-
const referencepath_lastModifiedByValidationError = validate$o(obj_lastModifiedBy, path_lastModifiedBy);
|
|
1406
|
-
if (referencepath_lastModifiedByValidationError !== null) {
|
|
1407
|
-
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
1408
|
-
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1409
|
-
return new TypeError(message);
|
|
2167
|
+
if (obj.id !== undefined) {
|
|
2168
|
+
const obj_id = obj.id;
|
|
2169
|
+
const path_id = path + '.id';
|
|
2170
|
+
if (typeof obj_id !== 'string') {
|
|
2171
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
2172
|
+
}
|
|
1410
2173
|
}
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
2174
|
+
if (obj.label !== undefined) {
|
|
2175
|
+
const obj_label = obj.label;
|
|
2176
|
+
const path_label = path + '.label';
|
|
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);
|
|
2200
|
+
}
|
|
2201
|
+
}
|
|
2202
|
+
if (obj.lastModifiedBy !== undefined) {
|
|
2203
|
+
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
2204
|
+
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
2205
|
+
const referencepath_lastModifiedByValidationError = validate$s(obj_lastModifiedBy, path_lastModifiedBy);
|
|
2206
|
+
if (referencepath_lastModifiedByValidationError !== null) {
|
|
2207
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
2208
|
+
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2209
|
+
return new TypeError(message);
|
|
2210
|
+
}
|
|
2211
|
+
}
|
|
2212
|
+
if (obj.lastModifiedDate !== undefined) {
|
|
2213
|
+
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
2214
|
+
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
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);
|
|
2238
|
+
}
|
|
2239
|
+
}
|
|
2240
|
+
if (obj.latestSetup !== undefined) {
|
|
2241
|
+
const obj_latestSetup = obj.latestSetup;
|
|
2242
|
+
const path_latestSetup = path + '.latestSetup';
|
|
2243
|
+
const referencepath_latestSetupValidationError = validate$o(obj_latestSetup, path_latestSetup);
|
|
2244
|
+
if (referencepath_latestSetupValidationError !== null) {
|
|
2245
|
+
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_latestSetup + '")\n';
|
|
2246
|
+
message += referencepath_latestSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2247
|
+
return new TypeError(message);
|
|
2248
|
+
}
|
|
1423
2249
|
}
|
|
1424
2250
|
const obj_modelCount = obj.modelCount;
|
|
1425
2251
|
const path_modelCount = path + '.modelCount';
|
|
1426
2252
|
if (typeof obj_modelCount !== 'number' || (typeof obj_modelCount === 'number' && Math.floor(obj_modelCount) !== obj_modelCount)) {
|
|
1427
2253
|
return new TypeError('Expected "integer" but received "' + typeof obj_modelCount + '" (at "' + path_modelCount + '")');
|
|
1428
2254
|
}
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
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
|
+
}
|
|
1436
2264
|
}
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
2265
|
+
if (obj.modelsUrl !== undefined) {
|
|
2266
|
+
const obj_modelsUrl = obj.modelsUrl;
|
|
2267
|
+
const path_modelsUrl = path + '.modelsUrl';
|
|
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);
|
|
2291
|
+
}
|
|
1441
2292
|
}
|
|
1442
2293
|
const obj_name = obj.name;
|
|
1443
2294
|
const path_name = path + '.name';
|
|
1444
2295
|
if (typeof obj_name !== 'string') {
|
|
1445
2296
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
1446
2297
|
}
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
2298
|
+
if (obj.namespace !== undefined) {
|
|
2299
|
+
const obj_namespace = obj.namespace;
|
|
2300
|
+
const path_namespace = path + '.namespace';
|
|
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);
|
|
2324
|
+
}
|
|
1459
2325
|
}
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
let message = 'Object doesn\'t match CdpMlModelRefreshConfigRepresentation (at "' + path_refreshConfig + '")\n';
|
|
1470
|
-
message += referencepath_refreshConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1471
|
-
return new TypeError(message);
|
|
2326
|
+
if (obj.outcomeDefinition !== undefined) {
|
|
2327
|
+
const obj_outcomeDefinition = obj.outcomeDefinition;
|
|
2328
|
+
const path_outcomeDefinition = path + '.outcomeDefinition';
|
|
2329
|
+
const referencepath_outcomeDefinitionValidationError = validate$k(obj_outcomeDefinition, path_outcomeDefinition);
|
|
2330
|
+
if (referencepath_outcomeDefinitionValidationError !== null) {
|
|
2331
|
+
let message = 'Object doesn\'t match CdpMlModelOutcomeDefinitionRepresentation (at "' + path_outcomeDefinition + '")\n';
|
|
2332
|
+
message += referencepath_outcomeDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2333
|
+
return new TypeError(message);
|
|
2334
|
+
}
|
|
1472
2335
|
}
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
2336
|
+
if (obj.predictionType !== undefined) {
|
|
2337
|
+
const obj_predictionType = obj.predictionType;
|
|
2338
|
+
const path_predictionType = path + '.predictionType';
|
|
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);
|
|
2362
|
+
}
|
|
2363
|
+
}
|
|
2364
|
+
if (obj.refreshConfig !== undefined) {
|
|
2365
|
+
const obj_refreshConfig = obj.refreshConfig;
|
|
2366
|
+
const path_refreshConfig = path + '.refreshConfig';
|
|
2367
|
+
const referencepath_refreshConfigValidationError = validate$f(obj_refreshConfig, path_refreshConfig);
|
|
2368
|
+
if (referencepath_refreshConfigValidationError !== null) {
|
|
2369
|
+
let message = 'Object doesn\'t match CdpMlModelRefreshConfigRepresentation (at "' + path_refreshConfig + '")\n';
|
|
2370
|
+
message += referencepath_refreshConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2371
|
+
return new TypeError(message);
|
|
2372
|
+
}
|
|
2373
|
+
}
|
|
2374
|
+
if (obj.setupVersionsUrl !== undefined) {
|
|
2375
|
+
const obj_setupVersionsUrl = obj.setupVersionsUrl;
|
|
2376
|
+
const path_setupVersionsUrl = path + '.setupVersionsUrl';
|
|
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);
|
|
2400
|
+
}
|
|
1477
2401
|
}
|
|
1478
2402
|
const obj_status = obj.status;
|
|
1479
2403
|
const path_status = path + '.status';
|
|
1480
2404
|
if (typeof obj_status !== 'string') {
|
|
1481
2405
|
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
1482
2406
|
}
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
2407
|
+
if (obj.totalInferenceCount !== undefined) {
|
|
2408
|
+
const obj_totalInferenceCount = obj.totalInferenceCount;
|
|
2409
|
+
const path_totalInferenceCount = path + '.totalInferenceCount';
|
|
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);
|
|
2433
|
+
}
|
|
1487
2434
|
}
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
2435
|
+
if (obj.totalWarningsCount !== undefined) {
|
|
2436
|
+
const obj_totalWarningsCount = obj.totalWarningsCount;
|
|
2437
|
+
const path_totalWarningsCount = path + '.totalWarningsCount';
|
|
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);
|
|
2461
|
+
}
|
|
1492
2462
|
}
|
|
1493
2463
|
const obj_url = obj.url;
|
|
1494
2464
|
const path_url = path + '.url';
|
|
@@ -1499,15 +2469,6 @@ function validate$8(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
1499
2469
|
return v_error === undefined ? null : v_error;
|
|
1500
2470
|
}
|
|
1501
2471
|
const RepresentationType$2 = 'CdpMlWorkspaceDetailRepresentation';
|
|
1502
|
-
function keyBuilder$7(luvio, config) {
|
|
1503
|
-
return keyPrefix + '::' + RepresentationType$2 + ':' + config.workspaceIdOrName;
|
|
1504
|
-
}
|
|
1505
|
-
function keyBuilderFromType$1(luvio, object) {
|
|
1506
|
-
const keyParams = {
|
|
1507
|
-
workspaceIdOrName: object.id
|
|
1508
|
-
};
|
|
1509
|
-
return keyBuilder$7(luvio, keyParams);
|
|
1510
|
-
}
|
|
1511
2472
|
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
1512
2473
|
return input;
|
|
1513
2474
|
}
|
|
@@ -1527,7 +2488,7 @@ function equals$2(existing, incoming) {
|
|
|
1527
2488
|
}
|
|
1528
2489
|
const ingest$2 = function CdpMlWorkspaceDetailRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1529
2490
|
if (process.env.NODE_ENV !== 'production') {
|
|
1530
|
-
const validateError = validate$
|
|
2491
|
+
const validateError = validate$c(input);
|
|
1531
2492
|
if (validateError !== null) {
|
|
1532
2493
|
throw validateError;
|
|
1533
2494
|
}
|
|
@@ -1547,20 +2508,28 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1547
2508
|
});
|
|
1548
2509
|
}
|
|
1549
2510
|
|
|
2511
|
+
function IsWorkspaceId(workspaceIdOrName) {
|
|
2512
|
+
return workspaceIdOrName.indexOf('__') === -1 || workspaceIdOrName.startsWith('12s');
|
|
2513
|
+
}
|
|
2514
|
+
function IsModelId(modelIdOrName) {
|
|
2515
|
+
return modelIdOrName.startsWith('12r');
|
|
2516
|
+
}
|
|
2517
|
+
|
|
2518
|
+
function keyBuilder$5(luvio, params) {
|
|
2519
|
+
const idOrName = params.urlParams.workspaceIdOrName;
|
|
2520
|
+
const type = IsWorkspaceId(idOrName) ? 'id' : 'name';
|
|
2521
|
+
return `${keyPrefix}::${RepresentationType$2}:(id:${params.urlParams.workspaceIdOrName},type:${type})`;
|
|
2522
|
+
}
|
|
2523
|
+
|
|
1550
2524
|
function select$6(luvio, params) {
|
|
1551
2525
|
return select$7();
|
|
1552
2526
|
}
|
|
1553
|
-
function keyBuilder$6(luvio, params) {
|
|
1554
|
-
return keyBuilder$7(luvio, {
|
|
1555
|
-
workspaceIdOrName: params.urlParams.workspaceIdOrName
|
|
1556
|
-
});
|
|
1557
|
-
}
|
|
1558
2527
|
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
1559
2528
|
getTypeCacheKeys$2(storeKeyMap, luvio, response);
|
|
1560
2529
|
}
|
|
1561
2530
|
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
1562
2531
|
const { body } = response;
|
|
1563
|
-
const key = keyBuilder$
|
|
2532
|
+
const key = keyBuilder$5(luvio, resourceParams);
|
|
1564
2533
|
luvio.storeIngest(key, ingest$2, body);
|
|
1565
2534
|
const snapshot = luvio.storeLookup({
|
|
1566
2535
|
recordId: key,
|
|
@@ -1576,7 +2545,7 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1576
2545
|
return snapshot;
|
|
1577
2546
|
}
|
|
1578
2547
|
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
1579
|
-
const key = keyBuilder$
|
|
2548
|
+
const key = keyBuilder$5(luvio, params);
|
|
1580
2549
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1581
2550
|
const storeMetadataParams = {
|
|
1582
2551
|
ttl: TTL$2,
|
|
@@ -1607,9 +2576,9 @@ const getCdpMlWorkspace_ConfigPropertyMetadata = [
|
|
|
1607
2576
|
];
|
|
1608
2577
|
const getCdpMlWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getCdpMlWorkspace_ConfigPropertyMetadata);
|
|
1609
2578
|
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$8(getCdpMlWorkspace_ConfigPropertyMetadata);
|
|
1610
|
-
function keyBuilder$
|
|
2579
|
+
function keyBuilder$4(luvio, config) {
|
|
1611
2580
|
const resourceParams = createResourceParams$4(config);
|
|
1612
|
-
return keyBuilder$
|
|
2581
|
+
return keyBuilder$5(luvio, resourceParams);
|
|
1613
2582
|
}
|
|
1614
2583
|
function typeCheckConfig$4(untrustedConfig) {
|
|
1615
2584
|
const config = {};
|
|
@@ -1667,7 +2636,7 @@ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext
|
|
|
1667
2636
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
1668
2637
|
const { luvio, config } = context;
|
|
1669
2638
|
const selector = {
|
|
1670
|
-
recordId: keyBuilder$
|
|
2639
|
+
recordId: keyBuilder$4(luvio, config),
|
|
1671
2640
|
node: adapterFragment$2(luvio, config),
|
|
1672
2641
|
variables: {},
|
|
1673
2642
|
};
|
|
@@ -1687,7 +2656,7 @@ const getCdpMlWorkspaceAdapterFactory = (luvio) => function cdpMachineLearning__
|
|
|
1687
2656
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
1688
2657
|
};
|
|
1689
2658
|
|
|
1690
|
-
function validate$
|
|
2659
|
+
function validate$b(obj, path = 'CdpMlFilterValueRepresentation') {
|
|
1691
2660
|
const v_error = (() => {
|
|
1692
2661
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1693
2662
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1706,7 +2675,7 @@ function validate$7(obj, path = 'CdpMlFilterValueRepresentation') {
|
|
|
1706
2675
|
return v_error === undefined ? null : v_error;
|
|
1707
2676
|
}
|
|
1708
2677
|
|
|
1709
|
-
function validate$
|
|
2678
|
+
function validate$a(obj, path = 'CdpMlFilterCriterionBaseRepresentation') {
|
|
1710
2679
|
const v_error = (() => {
|
|
1711
2680
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1712
2681
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1729,7 +2698,7 @@ function validate$6(obj, path = 'CdpMlFilterCriterionBaseRepresentation') {
|
|
|
1729
2698
|
for (let i = 0; i < obj_values.length; i++) {
|
|
1730
2699
|
const obj_values_item = obj_values[i];
|
|
1731
2700
|
const path_values_item = path_values + '[' + i + ']';
|
|
1732
|
-
const referencepath_values_itemValidationError = validate$
|
|
2701
|
+
const referencepath_values_itemValidationError = validate$b(obj_values_item, path_values_item);
|
|
1733
2702
|
if (referencepath_values_itemValidationError !== null) {
|
|
1734
2703
|
let message = 'Object doesn\'t match CdpMlFilterValueRepresentation (at "' + path_values_item + '")\n';
|
|
1735
2704
|
message += referencepath_values_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1740,7 +2709,7 @@ function validate$6(obj, path = 'CdpMlFilterCriterionBaseRepresentation') {
|
|
|
1740
2709
|
return v_error === undefined ? null : v_error;
|
|
1741
2710
|
}
|
|
1742
2711
|
|
|
1743
|
-
function validate$
|
|
2712
|
+
function validate$9(obj, path = 'CdpMlFilterRepresentation') {
|
|
1744
2713
|
const v_error = (() => {
|
|
1745
2714
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1746
2715
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1753,7 +2722,7 @@ function validate$5(obj, path = 'CdpMlFilterRepresentation') {
|
|
|
1753
2722
|
for (let i = 0; i < obj_criteria.length; i++) {
|
|
1754
2723
|
const obj_criteria_item = obj_criteria[i];
|
|
1755
2724
|
const path_criteria_item = path_criteria + '[' + i + ']';
|
|
1756
|
-
const referencepath_criteria_itemValidationError = validate$
|
|
2725
|
+
const referencepath_criteria_itemValidationError = validate$a(obj_criteria_item, path_criteria_item);
|
|
1757
2726
|
if (referencepath_criteria_itemValidationError !== null) {
|
|
1758
2727
|
let message = 'Object doesn\'t match CdpMlFilterCriterionBaseRepresentation (at "' + path_criteria_item + '")\n';
|
|
1759
2728
|
message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1764,14 +2733,14 @@ function validate$5(obj, path = 'CdpMlFilterRepresentation') {
|
|
|
1764
2733
|
return v_error === undefined ? null : v_error;
|
|
1765
2734
|
}
|
|
1766
2735
|
|
|
1767
|
-
function validate$
|
|
2736
|
+
function validate$8(obj, path = 'CdpMlCustomizableFieldDefinitionRepresentation') {
|
|
1768
2737
|
const v_error = (() => {
|
|
1769
2738
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1770
2739
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1771
2740
|
}
|
|
1772
2741
|
const obj_filter = obj.filter;
|
|
1773
2742
|
const path_filter = path + '.filter';
|
|
1774
|
-
const referencepath_filterValidationError = validate$
|
|
2743
|
+
const referencepath_filterValidationError = validate$9(obj_filter, path_filter);
|
|
1775
2744
|
if (referencepath_filterValidationError !== null) {
|
|
1776
2745
|
let message = 'Object doesn\'t match CdpMlFilterRepresentation (at "' + path_filter + '")\n';
|
|
1777
2746
|
message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1786,7 +2755,7 @@ function validate$4(obj, path = 'CdpMlCustomizableFieldDefinitionRepresentation'
|
|
|
1786
2755
|
return v_error === undefined ? null : v_error;
|
|
1787
2756
|
}
|
|
1788
2757
|
|
|
1789
|
-
function validate$
|
|
2758
|
+
function validate$7(obj, path = 'CdpMlCustomizableFieldRepresentation') {
|
|
1790
2759
|
const v_error = (() => {
|
|
1791
2760
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1792
2761
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1799,7 +2768,7 @@ function validate$3(obj, path = 'CdpMlCustomizableFieldRepresentation') {
|
|
|
1799
2768
|
for (let i = 0; i < obj_customDefinitions.length; i++) {
|
|
1800
2769
|
const obj_customDefinitions_item = obj_customDefinitions[i];
|
|
1801
2770
|
const path_customDefinitions_item = path_customDefinitions + '[' + i + ']';
|
|
1802
|
-
const referencepath_customDefinitions_itemValidationError = validate$
|
|
2771
|
+
const referencepath_customDefinitions_itemValidationError = validate$8(obj_customDefinitions_item, path_customDefinitions_item);
|
|
1803
2772
|
if (referencepath_customDefinitions_itemValidationError !== null) {
|
|
1804
2773
|
let message = 'Object doesn\'t match CdpMlCustomizableFieldDefinitionRepresentation (at "' + path_customDefinitions_item + '")\n';
|
|
1805
2774
|
message += referencepath_customDefinitions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1808,7 +2777,7 @@ function validate$3(obj, path = 'CdpMlCustomizableFieldRepresentation') {
|
|
|
1808
2777
|
}
|
|
1809
2778
|
const obj_field = obj.field;
|
|
1810
2779
|
const path_field = path + '.field';
|
|
1811
|
-
const referencepath_fieldValidationError = validate$
|
|
2780
|
+
const referencepath_fieldValidationError = validate$r(obj_field, path_field);
|
|
1812
2781
|
if (referencepath_fieldValidationError !== null) {
|
|
1813
2782
|
let message = 'Object doesn\'t match CdpMlModelInputFieldBaseRepresentation (at "' + path_field + '")\n';
|
|
1814
2783
|
message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1823,7 +2792,7 @@ function validate$3(obj, path = 'CdpMlCustomizableFieldRepresentation') {
|
|
|
1823
2792
|
return v_error === undefined ? null : v_error;
|
|
1824
2793
|
}
|
|
1825
2794
|
|
|
1826
|
-
function validate$
|
|
2795
|
+
function validate$6(obj, path = 'CdpMlModelParameterOverrideBaseRepresentation') {
|
|
1827
2796
|
const v_error = (() => {
|
|
1828
2797
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1829
2798
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1842,31 +2811,41 @@ function validate$2(obj, path = 'CdpMlModelParameterOverrideBaseRepresentation')
|
|
|
1842
2811
|
return v_error === undefined ? null : v_error;
|
|
1843
2812
|
}
|
|
1844
2813
|
|
|
2814
|
+
// Should match with keyBuilder
|
|
2815
|
+
function keyBuilderFromType(luvio, object) {
|
|
2816
|
+
const type = object.url.indexOf(object.name) > -1 ? 'name' : 'id';
|
|
2817
|
+
const urlArray = object.url.split('/');
|
|
2818
|
+
const idOrName = urlArray[urlArray.length - 1];
|
|
2819
|
+
return `${keyPrefix}::${RepresentationType$1}:(id:${idOrName},type:${type})`;
|
|
2820
|
+
}
|
|
2821
|
+
|
|
1845
2822
|
const TTL$1 = 1000;
|
|
1846
|
-
const VERSION$1 = "
|
|
1847
|
-
function validate$
|
|
2823
|
+
const VERSION$1 = "f9608bc4ae3825a8da2fc0992ae87b6e";
|
|
2824
|
+
function validate$5(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
1848
2825
|
const v_error = (() => {
|
|
1849
2826
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1850
2827
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1851
2828
|
}
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
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
|
+
}
|
|
1865
2844
|
}
|
|
1866
2845
|
}
|
|
1867
2846
|
const obj_artifact = obj.artifact;
|
|
1868
2847
|
const path_artifact = path + '.artifact';
|
|
1869
|
-
const referencepath_artifactValidationError = validate$
|
|
2848
|
+
const referencepath_artifactValidationError = validate$o(obj_artifact, path_artifact);
|
|
1870
2849
|
if (referencepath_artifactValidationError !== null) {
|
|
1871
2850
|
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_artifact + '")\n';
|
|
1872
2851
|
message += referencepath_artifactValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1877,18 +2856,43 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
1877
2856
|
if (typeof obj_capability !== 'string') {
|
|
1878
2857
|
return new TypeError('Expected "string" but received "' + typeof obj_capability + '" (at "' + path_capability + '")');
|
|
1879
2858
|
}
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
2859
|
+
if (obj.createdBy !== undefined) {
|
|
2860
|
+
const obj_createdBy = obj.createdBy;
|
|
2861
|
+
const path_createdBy = path + '.createdBy';
|
|
2862
|
+
const referencepath_createdByValidationError = validate$s(obj_createdBy, path_createdBy);
|
|
2863
|
+
if (referencepath_createdByValidationError !== null) {
|
|
2864
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
2865
|
+
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2866
|
+
return new TypeError(message);
|
|
2867
|
+
}
|
|
1887
2868
|
}
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
2869
|
+
if (obj.createdDate !== undefined) {
|
|
2870
|
+
const obj_createdDate = obj.createdDate;
|
|
2871
|
+
const path_createdDate = path + '.createdDate';
|
|
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);
|
|
2895
|
+
}
|
|
1892
2896
|
}
|
|
1893
2897
|
const obj_customizableFields = obj.customizableFields;
|
|
1894
2898
|
const path_customizableFields = path + '.customizableFields';
|
|
@@ -1898,76 +2902,199 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
1898
2902
|
for (let i = 0; i < obj_customizableFields.length; i++) {
|
|
1899
2903
|
const obj_customizableFields_item = obj_customizableFields[i];
|
|
1900
2904
|
const path_customizableFields_item = path_customizableFields + '[' + i + ']';
|
|
1901
|
-
const referencepath_customizableFields_itemValidationError = validate$
|
|
2905
|
+
const referencepath_customizableFields_itemValidationError = validate$7(obj_customizableFields_item, path_customizableFields_item);
|
|
1902
2906
|
if (referencepath_customizableFields_itemValidationError !== null) {
|
|
1903
2907
|
let message = 'Object doesn\'t match CdpMlCustomizableFieldRepresentation (at "' + path_customizableFields_item + '")\n';
|
|
1904
2908
|
message += referencepath_customizableFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1905
2909
|
return new TypeError(message);
|
|
1906
2910
|
}
|
|
1907
2911
|
}
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
2912
|
+
if (obj.description !== undefined) {
|
|
2913
|
+
const obj_description = obj.description;
|
|
2914
|
+
const path_description = path + '.description';
|
|
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);
|
|
2938
|
+
}
|
|
1912
2939
|
}
|
|
1913
2940
|
const obj_filter = obj.filter;
|
|
1914
2941
|
const path_filter = path + '.filter';
|
|
1915
|
-
const referencepath_filterValidationError = validate$
|
|
2942
|
+
const referencepath_filterValidationError = validate$9(obj_filter, path_filter);
|
|
1916
2943
|
if (referencepath_filterValidationError !== null) {
|
|
1917
2944
|
let message = 'Object doesn\'t match CdpMlFilterRepresentation (at "' + path_filter + '")\n';
|
|
1918
2945
|
message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1919
2946
|
return new TypeError(message);
|
|
1920
2947
|
}
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
2948
|
+
if (obj.id !== undefined) {
|
|
2949
|
+
const obj_id = obj.id;
|
|
2950
|
+
const path_id = path + '.id';
|
|
2951
|
+
if (typeof obj_id !== 'string') {
|
|
2952
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
2953
|
+
}
|
|
1925
2954
|
}
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
2955
|
+
if (obj.label !== undefined) {
|
|
2956
|
+
const obj_label = obj.label;
|
|
2957
|
+
const path_label = path + '.label';
|
|
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);
|
|
2981
|
+
}
|
|
1938
2982
|
}
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
2983
|
+
if (obj.lastActivatedBy !== undefined) {
|
|
2984
|
+
const obj_lastActivatedBy = obj.lastActivatedBy;
|
|
2985
|
+
const path_lastActivatedBy = path + '.lastActivatedBy';
|
|
2986
|
+
const referencepath_lastActivatedByValidationError = validate$s(obj_lastActivatedBy, path_lastActivatedBy);
|
|
2987
|
+
if (referencepath_lastActivatedByValidationError !== null) {
|
|
2988
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastActivatedBy + '")\n';
|
|
2989
|
+
message += referencepath_lastActivatedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2990
|
+
return new TypeError(message);
|
|
2991
|
+
}
|
|
2992
|
+
}
|
|
2993
|
+
if (obj.lastActivatedDate !== undefined) {
|
|
2994
|
+
const obj_lastActivatedDate = obj.lastActivatedDate;
|
|
2995
|
+
const path_lastActivatedDate = path + '.lastActivatedDate';
|
|
2996
|
+
if (typeof obj_lastActivatedDate !== 'string') {
|
|
2997
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastActivatedDate + '" (at "' + path_lastActivatedDate + '")');
|
|
2998
|
+
}
|
|
2999
|
+
}
|
|
3000
|
+
if (obj.lastModifiedBy !== undefined) {
|
|
3001
|
+
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
3002
|
+
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
3003
|
+
const referencepath_lastModifiedByValidationError = validate$s(obj_lastModifiedBy, path_lastModifiedBy);
|
|
3004
|
+
if (referencepath_lastModifiedByValidationError !== null) {
|
|
3005
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
3006
|
+
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3007
|
+
return new TypeError(message);
|
|
3008
|
+
}
|
|
1951
3009
|
}
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
3010
|
+
if (obj.lastModifiedDate !== undefined) {
|
|
3011
|
+
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
3012
|
+
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
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);
|
|
3036
|
+
}
|
|
1956
3037
|
}
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
3038
|
+
if (obj.metricsUrl !== undefined) {
|
|
3039
|
+
const obj_metricsUrl = obj.metricsUrl;
|
|
3040
|
+
const path_metricsUrl = path + '.metricsUrl';
|
|
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);
|
|
3064
|
+
}
|
|
1961
3065
|
}
|
|
1962
3066
|
const obj_name = obj.name;
|
|
1963
3067
|
const path_name = path + '.name';
|
|
1964
3068
|
if (typeof obj_name !== 'string') {
|
|
1965
3069
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
1966
3070
|
}
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
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
|
+
}
|
|
1971
3098
|
}
|
|
1972
3099
|
const obj_parameterOverrides = obj.parameterOverrides;
|
|
1973
3100
|
const path_parameterOverrides = path + '.parameterOverrides';
|
|
@@ -1977,7 +3104,7 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
1977
3104
|
for (let i = 0; i < obj_parameterOverrides.length; i++) {
|
|
1978
3105
|
const obj_parameterOverrides_item = obj_parameterOverrides[i];
|
|
1979
3106
|
const path_parameterOverrides_item = path_parameterOverrides + '[' + i + ']';
|
|
1980
|
-
const referencepath_parameterOverrides_itemValidationError = validate$
|
|
3107
|
+
const referencepath_parameterOverrides_itemValidationError = validate$6(obj_parameterOverrides_item, path_parameterOverrides_item);
|
|
1981
3108
|
if (referencepath_parameterOverrides_itemValidationError !== null) {
|
|
1982
3109
|
let message = 'Object doesn\'t match CdpMlModelParameterOverrideBaseRepresentation (at "' + path_parameterOverrides_item + '")\n';
|
|
1983
3110
|
message += referencepath_parameterOverrides_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2003,15 +3130,6 @@ function validate$1(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
2003
3130
|
return v_error === undefined ? null : v_error;
|
|
2004
3131
|
}
|
|
2005
3132
|
const RepresentationType$1 = 'CdpMlConfiguredModelRepresentation';
|
|
2006
|
-
function keyBuilder$4(luvio, config) {
|
|
2007
|
-
return keyPrefix + '::' + RepresentationType$1 + ':' + config.modelId;
|
|
2008
|
-
}
|
|
2009
|
-
function keyBuilderFromType(luvio, object) {
|
|
2010
|
-
const keyParams = {
|
|
2011
|
-
modelId: object.id
|
|
2012
|
-
};
|
|
2013
|
-
return keyBuilder$4(luvio, keyParams);
|
|
2014
|
-
}
|
|
2015
3133
|
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
2016
3134
|
return input;
|
|
2017
3135
|
}
|
|
@@ -2031,7 +3149,7 @@ function equals$1(existing, incoming) {
|
|
|
2031
3149
|
}
|
|
2032
3150
|
const ingest$1 = function CdpMlConfiguredModelRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2033
3151
|
if (process.env.NODE_ENV !== 'production') {
|
|
2034
|
-
const validateError = validate$
|
|
3152
|
+
const validateError = validate$5(input);
|
|
2035
3153
|
if (validateError !== null) {
|
|
2036
3154
|
throw validateError;
|
|
2037
3155
|
}
|
|
@@ -2052,25 +3170,27 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2052
3170
|
}
|
|
2053
3171
|
|
|
2054
3172
|
const TTL = 1000;
|
|
2055
|
-
const VERSION = "
|
|
2056
|
-
function validate(obj, path = 'CdpMlConfiguredModelCollectionRepresentation') {
|
|
3173
|
+
const VERSION = "2b3092c57f5f0a17513ae28d59875559";
|
|
3174
|
+
function validate$4(obj, path = 'CdpMlConfiguredModelCollectionRepresentation') {
|
|
2057
3175
|
const v_error = (() => {
|
|
2058
3176
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2059
3177
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2060
3178
|
}
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
3179
|
+
if (obj.models !== undefined) {
|
|
3180
|
+
const obj_models = obj.models;
|
|
3181
|
+
const path_models = path + '.models';
|
|
3182
|
+
if (!ArrayIsArray(obj_models)) {
|
|
3183
|
+
return new TypeError('Expected "array" but received "' + typeof obj_models + '" (at "' + path_models + '")');
|
|
3184
|
+
}
|
|
3185
|
+
for (let i = 0; i < obj_models.length; i++) {
|
|
3186
|
+
const obj_models_item = obj_models[i];
|
|
3187
|
+
const path_models_item = path_models + '[' + i + ']';
|
|
3188
|
+
const referencepath_models_itemValidationError = validate$5(obj_models_item, path_models_item);
|
|
3189
|
+
if (referencepath_models_itemValidationError !== null) {
|
|
3190
|
+
let message = 'Object doesn\'t match CdpMlConfiguredModelRepresentation (at "' + path_models_item + '")\n';
|
|
3191
|
+
message += referencepath_models_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3192
|
+
return new TypeError(message);
|
|
3193
|
+
}
|
|
2074
3194
|
}
|
|
2075
3195
|
}
|
|
2076
3196
|
const obj_totalSize = obj.totalSize;
|
|
@@ -2106,7 +3226,7 @@ function equals(existing, incoming) {
|
|
|
2106
3226
|
}
|
|
2107
3227
|
const ingest = function CdpMlConfiguredModelCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2108
3228
|
if (process.env.NODE_ENV !== 'production') {
|
|
2109
|
-
const validateError = validate(input);
|
|
3229
|
+
const validateError = validate$4(input);
|
|
2110
3230
|
if (validateError !== null) {
|
|
2111
3231
|
throw validateError;
|
|
2112
3232
|
}
|
|
@@ -2264,6 +3384,245 @@ const getCdpMlConfiguredModelCollectionAdapterFactory = (luvio) => function cdpM
|
|
|
2264
3384
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
2265
3385
|
};
|
|
2266
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
|
+
|
|
2267
3626
|
function select$2(luvio, params) {
|
|
2268
3627
|
return select$5();
|
|
2269
3628
|
}
|
|
@@ -2301,60 +3660,61 @@ function createResourceRequest$2(config) {
|
|
|
2301
3660
|
};
|
|
2302
3661
|
}
|
|
2303
3662
|
|
|
2304
|
-
const adapterName$2 = '
|
|
2305
|
-
const
|
|
3663
|
+
const adapterName$2 = 'createCdpMlConfiguredModel';
|
|
3664
|
+
const createCdpMlConfiguredModel_ConfigPropertyMetadata = [
|
|
2306
3665
|
generateParamConfigMetadata('workspaceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2307
|
-
generateParamConfigMetadata('actionableFields',
|
|
2308
|
-
generateParamConfigMetadata('artifact',
|
|
2309
|
-
generateParamConfigMetadata('capability',
|
|
2310
|
-
generateParamConfigMetadata('customizableFields',
|
|
2311
|
-
generateParamConfigMetadata('description',
|
|
2312
|
-
generateParamConfigMetadata('filter',
|
|
2313
|
-
generateParamConfigMetadata('label',
|
|
2314
|
-
generateParamConfigMetadata('parameterOverrides',
|
|
2315
|
-
generateParamConfigMetadata('position',
|
|
2316
|
-
generateParamConfigMetadata('status',
|
|
3666
|
+
generateParamConfigMetadata('actionableFields', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
3667
|
+
generateParamConfigMetadata('artifact', false, 2 /* Body */, 4 /* Unsupported */),
|
|
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 */),
|
|
3671
|
+
generateParamConfigMetadata('filter', false, 2 /* Body */, 4 /* Unsupported */),
|
|
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 */),
|
|
2317
3676
|
];
|
|
2318
|
-
const
|
|
2319
|
-
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);
|
|
2320
3679
|
function typeCheckConfig$2(untrustedConfig) {
|
|
2321
3680
|
const config = {};
|
|
2322
|
-
typeCheckConfig$8(untrustedConfig, config,
|
|
3681
|
+
typeCheckConfig$8(untrustedConfig, config, createCdpMlConfiguredModel_ConfigPropertyMetadata);
|
|
2323
3682
|
const untrustedConfig_actionableFields = untrustedConfig.actionableFields;
|
|
2324
3683
|
if (ArrayIsArray$1(untrustedConfig_actionableFields)) {
|
|
2325
3684
|
const untrustedConfig_actionableFields_array = [];
|
|
2326
3685
|
for (let i = 0, arrayLength = untrustedConfig_actionableFields.length; i < arrayLength; i++) {
|
|
2327
3686
|
const untrustedConfig_actionableFields_item = untrustedConfig_actionableFields[i];
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
untrustedConfig_actionableFields_array.push(untrustedConfig_actionableFields_item_object);
|
|
2332
|
-
}
|
|
3687
|
+
const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$2(untrustedConfig_actionableFields_item);
|
|
3688
|
+
if (referenceCdpMlCustomizableFieldInputRepresentationValidationError === null) {
|
|
3689
|
+
untrustedConfig_actionableFields_array.push(untrustedConfig_actionableFields_item);
|
|
2333
3690
|
}
|
|
2334
3691
|
}
|
|
2335
3692
|
config.actionableFields = untrustedConfig_actionableFields_array;
|
|
2336
3693
|
}
|
|
2337
3694
|
const untrustedConfig_artifact = untrustedConfig.artifact;
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
config.artifact = untrustedConfig_artifact_object;
|
|
2342
|
-
}
|
|
3695
|
+
const referenceCdpAssetReferenceInputRepresentationValidationError = validate$1(untrustedConfig_artifact);
|
|
3696
|
+
if (referenceCdpAssetReferenceInputRepresentationValidationError === null) {
|
|
3697
|
+
config.artifact = untrustedConfig_artifact;
|
|
2343
3698
|
}
|
|
2344
3699
|
const untrustedConfig_customizableFields = untrustedConfig.customizableFields;
|
|
2345
3700
|
if (ArrayIsArray$1(untrustedConfig_customizableFields)) {
|
|
2346
3701
|
const untrustedConfig_customizableFields_array = [];
|
|
2347
3702
|
for (let i = 0, arrayLength = untrustedConfig_customizableFields.length; i < arrayLength; i++) {
|
|
2348
3703
|
const untrustedConfig_customizableFields_item = untrustedConfig_customizableFields[i];
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
untrustedConfig_customizableFields_array.push(untrustedConfig_customizableFields_item_object);
|
|
2353
|
-
}
|
|
3704
|
+
const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$2(untrustedConfig_customizableFields_item);
|
|
3705
|
+
if (referenceCdpMlCustomizableFieldInputRepresentationValidationError === null) {
|
|
3706
|
+
untrustedConfig_customizableFields_array.push(untrustedConfig_customizableFields_item);
|
|
2354
3707
|
}
|
|
2355
3708
|
}
|
|
2356
3709
|
config.customizableFields = untrustedConfig_customizableFields_array;
|
|
2357
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
|
+
}
|
|
2358
3718
|
const untrustedConfig_filter = untrustedConfig.filter;
|
|
2359
3719
|
if (untrustedIsObject(untrustedConfig_filter)) {
|
|
2360
3720
|
const untrustedConfig_filter_object = {};
|
|
@@ -2362,16 +3722,21 @@ function typeCheckConfig$2(untrustedConfig) {
|
|
|
2362
3722
|
config.filter = untrustedConfig_filter_object;
|
|
2363
3723
|
}
|
|
2364
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
|
+
}
|
|
2365
3732
|
const untrustedConfig_parameterOverrides = untrustedConfig.parameterOverrides;
|
|
2366
3733
|
if (ArrayIsArray$1(untrustedConfig_parameterOverrides)) {
|
|
2367
3734
|
const untrustedConfig_parameterOverrides_array = [];
|
|
2368
3735
|
for (let i = 0, arrayLength = untrustedConfig_parameterOverrides.length; i < arrayLength; i++) {
|
|
2369
3736
|
const untrustedConfig_parameterOverrides_item = untrustedConfig_parameterOverrides[i];
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
untrustedConfig_parameterOverrides_array.push(untrustedConfig_parameterOverrides_item_object);
|
|
2374
|
-
}
|
|
3737
|
+
const referenceCdpMlModelParameterOverrideInputRepresentationValidationError = validate(untrustedConfig_parameterOverrides_item);
|
|
3738
|
+
if (referenceCdpMlModelParameterOverrideInputRepresentationValidationError === null) {
|
|
3739
|
+
untrustedConfig_parameterOverrides_array.push(untrustedConfig_parameterOverrides_item);
|
|
2375
3740
|
}
|
|
2376
3741
|
}
|
|
2377
3742
|
config.parameterOverrides = untrustedConfig_parameterOverrides_array;
|
|
@@ -2409,26 +3774,26 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
2409
3774
|
throw response;
|
|
2410
3775
|
});
|
|
2411
3776
|
}
|
|
2412
|
-
const
|
|
2413
|
-
return function
|
|
2414
|
-
const config = validateAdapterConfig$2(untrustedConfig,
|
|
3777
|
+
const createCdpMlConfiguredModelAdapterFactory = (luvio) => {
|
|
3778
|
+
return function createCdpMlConfiguredModel(untrustedConfig) {
|
|
3779
|
+
const config = validateAdapterConfig$2(untrustedConfig, createCdpMlConfiguredModel_ConfigPropertyNames);
|
|
2415
3780
|
// Invalid or incomplete config
|
|
2416
3781
|
if (config === null) {
|
|
2417
|
-
throw new Error('Invalid config for "
|
|
3782
|
+
throw new Error('Invalid config for "createCdpMlConfiguredModel"');
|
|
2418
3783
|
}
|
|
2419
3784
|
return buildNetworkSnapshot$2(luvio, config);
|
|
2420
3785
|
};
|
|
2421
3786
|
};
|
|
2422
3787
|
|
|
3788
|
+
function keyBuilder$1(luvio, params) {
|
|
3789
|
+
const modelIdOrName = params.urlParams.modelIdOrName;
|
|
3790
|
+
const type = IsModelId(modelIdOrName) ? 'id' : 'name';
|
|
3791
|
+
return `${keyPrefix}::${RepresentationType$1}:(id:${params.urlParams.modelIdOrName},type:${type})`;
|
|
3792
|
+
}
|
|
3793
|
+
|
|
2423
3794
|
function select$1(luvio, params) {
|
|
2424
3795
|
return select$5();
|
|
2425
3796
|
}
|
|
2426
|
-
function keyBuilder$1(luvio, params) {
|
|
2427
|
-
return keyBuilder$4(luvio, {
|
|
2428
|
-
modelId: params.urlParams.modelId,
|
|
2429
|
-
workspaceIdOrName: params.urlParams.workspaceIdOrName
|
|
2430
|
-
});
|
|
2431
|
-
}
|
|
2432
3797
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
2433
3798
|
getTypeCacheKeys$1(storeKeyMap, luvio, response);
|
|
2434
3799
|
}
|
|
@@ -2465,7 +3830,7 @@ function createResourceRequest$1(config) {
|
|
|
2465
3830
|
const headers = {};
|
|
2466
3831
|
return {
|
|
2467
3832
|
baseUri: '/services/data/v60.0',
|
|
2468
|
-
basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models/' + config.urlParams.
|
|
3833
|
+
basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models/' + config.urlParams.modelIdOrName + '',
|
|
2469
3834
|
method: 'get',
|
|
2470
3835
|
body: null,
|
|
2471
3836
|
urlParams: config.urlParams,
|
|
@@ -2477,7 +3842,7 @@ function createResourceRequest$1(config) {
|
|
|
2477
3842
|
|
|
2478
3843
|
const adapterName$1 = 'getCdpMlConfiguredModel';
|
|
2479
3844
|
const getCdpMlConfiguredModel_ConfigPropertyMetadata = [
|
|
2480
|
-
generateParamConfigMetadata('
|
|
3845
|
+
generateParamConfigMetadata('modelIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2481
3846
|
generateParamConfigMetadata('workspaceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2482
3847
|
];
|
|
2483
3848
|
const getCdpMlConfiguredModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getCdpMlConfiguredModel_ConfigPropertyMetadata);
|
|
@@ -2589,7 +3954,7 @@ function createResourceRequest(config) {
|
|
|
2589
3954
|
const headers = {};
|
|
2590
3955
|
return {
|
|
2591
3956
|
baseUri: '/services/data/v60.0',
|
|
2592
|
-
basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models/' + config.urlParams.
|
|
3957
|
+
basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models/' + config.urlParams.modelIdOrName + '',
|
|
2593
3958
|
method: 'patch',
|
|
2594
3959
|
body: config.body,
|
|
2595
3960
|
urlParams: config.urlParams,
|
|
@@ -2601,18 +3966,18 @@ function createResourceRequest(config) {
|
|
|
2601
3966
|
|
|
2602
3967
|
const adapterName = 'updateCdpMlConfiguredModel';
|
|
2603
3968
|
const updateCdpMlConfiguredModel_ConfigPropertyMetadata = [
|
|
2604
|
-
generateParamConfigMetadata('
|
|
3969
|
+
generateParamConfigMetadata('modelIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2605
3970
|
generateParamConfigMetadata('workspaceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2606
|
-
generateParamConfigMetadata('actionableFields',
|
|
2607
|
-
generateParamConfigMetadata('artifact',
|
|
2608
|
-
generateParamConfigMetadata('capability',
|
|
2609
|
-
generateParamConfigMetadata('customizableFields',
|
|
2610
|
-
generateParamConfigMetadata('description',
|
|
2611
|
-
generateParamConfigMetadata('filter',
|
|
2612
|
-
generateParamConfigMetadata('label',
|
|
2613
|
-
generateParamConfigMetadata('parameterOverrides',
|
|
2614
|
-
generateParamConfigMetadata('position',
|
|
2615
|
-
generateParamConfigMetadata('status',
|
|
3971
|
+
generateParamConfigMetadata('actionableFields', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
3972
|
+
generateParamConfigMetadata('artifact', false, 2 /* Body */, 4 /* Unsupported */),
|
|
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 */),
|
|
3976
|
+
generateParamConfigMetadata('filter', false, 2 /* Body */, 4 /* Unsupported */),
|
|
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 */),
|
|
2616
3981
|
];
|
|
2617
3982
|
const updateCdpMlConfiguredModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateCdpMlConfiguredModel_ConfigPropertyMetadata);
|
|
2618
3983
|
const createResourceParams = /*#__PURE__*/ createResourceParams$8(updateCdpMlConfiguredModel_ConfigPropertyMetadata);
|
|
@@ -2624,36 +3989,37 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
2624
3989
|
const untrustedConfig_actionableFields_array = [];
|
|
2625
3990
|
for (let i = 0, arrayLength = untrustedConfig_actionableFields.length; i < arrayLength; i++) {
|
|
2626
3991
|
const untrustedConfig_actionableFields_item = untrustedConfig_actionableFields[i];
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
untrustedConfig_actionableFields_array.push(untrustedConfig_actionableFields_item_object);
|
|
2631
|
-
}
|
|
3992
|
+
const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$2(untrustedConfig_actionableFields_item);
|
|
3993
|
+
if (referenceCdpMlCustomizableFieldInputRepresentationValidationError === null) {
|
|
3994
|
+
untrustedConfig_actionableFields_array.push(untrustedConfig_actionableFields_item);
|
|
2632
3995
|
}
|
|
2633
3996
|
}
|
|
2634
3997
|
config.actionableFields = untrustedConfig_actionableFields_array;
|
|
2635
3998
|
}
|
|
2636
3999
|
const untrustedConfig_artifact = untrustedConfig.artifact;
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
config.artifact = untrustedConfig_artifact_object;
|
|
2641
|
-
}
|
|
4000
|
+
const referenceCdpAssetReferenceInputRepresentationValidationError = validate$1(untrustedConfig_artifact);
|
|
4001
|
+
if (referenceCdpAssetReferenceInputRepresentationValidationError === null) {
|
|
4002
|
+
config.artifact = untrustedConfig_artifact;
|
|
2642
4003
|
}
|
|
2643
4004
|
const untrustedConfig_customizableFields = untrustedConfig.customizableFields;
|
|
2644
4005
|
if (ArrayIsArray$1(untrustedConfig_customizableFields)) {
|
|
2645
4006
|
const untrustedConfig_customizableFields_array = [];
|
|
2646
4007
|
for (let i = 0, arrayLength = untrustedConfig_customizableFields.length; i < arrayLength; i++) {
|
|
2647
4008
|
const untrustedConfig_customizableFields_item = untrustedConfig_customizableFields[i];
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
untrustedConfig_customizableFields_array.push(untrustedConfig_customizableFields_item_object);
|
|
2652
|
-
}
|
|
4009
|
+
const referenceCdpMlCustomizableFieldInputRepresentationValidationError = validate$2(untrustedConfig_customizableFields_item);
|
|
4010
|
+
if (referenceCdpMlCustomizableFieldInputRepresentationValidationError === null) {
|
|
4011
|
+
untrustedConfig_customizableFields_array.push(untrustedConfig_customizableFields_item);
|
|
2653
4012
|
}
|
|
2654
4013
|
}
|
|
2655
4014
|
config.customizableFields = untrustedConfig_customizableFields_array;
|
|
2656
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
|
+
}
|
|
2657
4023
|
const untrustedConfig_filter = untrustedConfig.filter;
|
|
2658
4024
|
if (untrustedIsObject(untrustedConfig_filter)) {
|
|
2659
4025
|
const untrustedConfig_filter_object = {};
|
|
@@ -2661,16 +4027,21 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
2661
4027
|
config.filter = untrustedConfig_filter_object;
|
|
2662
4028
|
}
|
|
2663
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
|
+
}
|
|
2664
4037
|
const untrustedConfig_parameterOverrides = untrustedConfig.parameterOverrides;
|
|
2665
4038
|
if (ArrayIsArray$1(untrustedConfig_parameterOverrides)) {
|
|
2666
4039
|
const untrustedConfig_parameterOverrides_array = [];
|
|
2667
4040
|
for (let i = 0, arrayLength = untrustedConfig_parameterOverrides.length; i < arrayLength; i++) {
|
|
2668
4041
|
const untrustedConfig_parameterOverrides_item = untrustedConfig_parameterOverrides[i];
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
untrustedConfig_parameterOverrides_array.push(untrustedConfig_parameterOverrides_item_object);
|
|
2673
|
-
}
|
|
4042
|
+
const referenceCdpMlModelParameterOverrideInputRepresentationValidationError = validate(untrustedConfig_parameterOverrides_item);
|
|
4043
|
+
if (referenceCdpMlModelParameterOverrideInputRepresentationValidationError === null) {
|
|
4044
|
+
untrustedConfig_parameterOverrides_array.push(untrustedConfig_parameterOverrides_item);
|
|
2674
4045
|
}
|
|
2675
4046
|
}
|
|
2676
4047
|
config.parameterOverrides = untrustedConfig_parameterOverrides_array;
|
|
@@ -2719,4 +4090,4 @@ const updateCdpMlConfiguredModelAdapterFactory = (luvio) => {
|
|
|
2719
4090
|
};
|
|
2720
4091
|
};
|
|
2721
4092
|
|
|
2722
|
-
export {
|
|
4093
|
+
export { createCdpMlConfiguredModelAdapterFactory, getCdpMlConfiguredModelAdapterFactory, getCdpMlConfiguredModelCollectionAdapterFactory, getCdpMlModelArtifactAdapterFactory, getCdpMlModelArtifactCollectionAdapterFactory, getCdpMlWorkspaceAdapterFactory, getCdpMlWorkspaceCollectionAdapterFactory, updateCdpMlConfiguredModelAdapterFactory };
|