@salesforce/lds-adapters-industries-einstein-aiaccelerator 1.308.0 → 1.309.0-dev8
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/industries-einstein-aiaccelerator.js +202 -145
- package/dist/es/es2018/types/src/generated/adapters/getPredictions.d.ts +9 -2
- package/dist/es/es2018/types/src/generated/resources/postConnectAiacceleratorV2Predictions.d.ts +9 -2
- package/dist/es/es2018/types/src/generated/types/CustomAttributesMap.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/NullableCustomAttributesMap.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/types/PredictionOutput.d.ts +8 -1
- package/dist/es/es2018/types/src/generated/types/PredictionOutputObject.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/PredictionRequestRepresentation.d.ts +5 -5
- package/dist/es/es2018/types/src/generated/types/PredictionResponseRepresentation.d.ts +1 -4
- package/package.json +6 -5
- package/sfdc/index.js +161 -104
- package/src/raml/api.raml +26 -8
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$3 } from '@luvio/engine';
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$3, typeCheckConfig as typeCheckConfig$3 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -73,7 +73,7 @@ function createLink(ref) {
|
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
function validate$
|
|
76
|
+
function validate$z(obj, path = 'WrappedList') {
|
|
77
77
|
const v_error = (() => {
|
|
78
78
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
79
79
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -115,7 +115,7 @@ function validate$y(obj, path = 'WrappedList') {
|
|
|
115
115
|
return v_error === undefined ? null : v_error;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
function validate$
|
|
118
|
+
function validate$y(obj, path = 'NullableColumnMap') {
|
|
119
119
|
const v_error = (() => {
|
|
120
120
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
121
121
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -154,7 +154,7 @@ function validate$x(obj, path = 'NullableColumnMap') {
|
|
|
154
154
|
return v_error === undefined ? null : v_error;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
function validate$
|
|
157
|
+
function validate$x(obj, path = 'ColumnMapWrap') {
|
|
158
158
|
const v_error = (() => {
|
|
159
159
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
160
160
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -163,7 +163,7 @@ function validate$w(obj, path = 'ColumnMapWrap') {
|
|
|
163
163
|
const path_columnMap = path + '.columnMap';
|
|
164
164
|
let obj_columnMap_union0 = null;
|
|
165
165
|
const obj_columnMap_union0_error = (() => {
|
|
166
|
-
const referencepath_columnMapValidationError = validate$
|
|
166
|
+
const referencepath_columnMapValidationError = validate$y(obj_columnMap, path_columnMap);
|
|
167
167
|
if (referencepath_columnMapValidationError !== null) {
|
|
168
168
|
let message = 'Object doesn\'t match NullableColumnMap (at "' + path_columnMap + '")\n';
|
|
169
169
|
message += referencepath_columnMapValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -192,7 +192,7 @@ function validate$w(obj, path = 'ColumnMapWrap') {
|
|
|
192
192
|
return v_error === undefined ? null : v_error;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
-
function validate$
|
|
195
|
+
function validate$w(obj, path = 'NullableFeatureExtractionParametersMapValue') {
|
|
196
196
|
const v_error = (() => {
|
|
197
197
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
198
198
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -201,7 +201,7 @@ function validate$v(obj, path = 'NullableFeatureExtractionParametersMapValue') {
|
|
|
201
201
|
return v_error === undefined ? null : v_error;
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
function validate$
|
|
204
|
+
function validate$v(obj, path = 'FeatureExtractionParametersMapValue') {
|
|
205
205
|
const v_error = (() => {
|
|
206
206
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
207
207
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -211,7 +211,7 @@ function validate$u(obj, path = 'FeatureExtractionParametersMapValue') {
|
|
|
211
211
|
const path_featureExtractionParametersMapValue = path + '.featureExtractionParametersMapValue';
|
|
212
212
|
let obj_featureExtractionParametersMapValue_union0 = null;
|
|
213
213
|
const obj_featureExtractionParametersMapValue_union0_error = (() => {
|
|
214
|
-
const referencepath_featureExtractionParametersMapValueValidationError = validate$
|
|
214
|
+
const referencepath_featureExtractionParametersMapValueValidationError = validate$w(obj_featureExtractionParametersMapValue, path_featureExtractionParametersMapValue);
|
|
215
215
|
if (referencepath_featureExtractionParametersMapValueValidationError !== null) {
|
|
216
216
|
let message = 'Object doesn\'t match NullableFeatureExtractionParametersMapValue (at "' + path_featureExtractionParametersMapValue + '")\n';
|
|
217
217
|
message += referencepath_featureExtractionParametersMapValueValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -241,7 +241,7 @@ function validate$u(obj, path = 'FeatureExtractionParametersMapValue') {
|
|
|
241
241
|
return v_error === undefined ? null : v_error;
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
-
function validate$
|
|
244
|
+
function validate$u(obj, path = 'FeatureExtractionParametersList') {
|
|
245
245
|
const v_error = (() => {
|
|
246
246
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
247
247
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -257,7 +257,7 @@ function validate$t(obj, path = 'FeatureExtractionParametersList') {
|
|
|
257
257
|
const path_featureExtractionParameters_item = path_featureExtractionParameters + '[' + i + ']';
|
|
258
258
|
let obj_featureExtractionParameters_item_union0 = null;
|
|
259
259
|
const obj_featureExtractionParameters_item_union0_error = (() => {
|
|
260
|
-
const referencepath_featureExtractionParameters_itemValidationError = validate$
|
|
260
|
+
const referencepath_featureExtractionParameters_itemValidationError = validate$v(obj_featureExtractionParameters_item, path_featureExtractionParameters_item);
|
|
261
261
|
if (referencepath_featureExtractionParameters_itemValidationError !== null) {
|
|
262
262
|
let message = 'Object doesn\'t match FeatureExtractionParametersMapValue (at "' + path_featureExtractionParameters_item + '")\n';
|
|
263
263
|
message += referencepath_featureExtractionParameters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -288,7 +288,7 @@ function validate$t(obj, path = 'FeatureExtractionParametersList') {
|
|
|
288
288
|
return v_error === undefined ? null : v_error;
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
function validate$
|
|
291
|
+
function validate$t(obj, path = 'NullableInsightsSettingsMap') {
|
|
292
292
|
const v_error = (() => {
|
|
293
293
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
294
294
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -327,7 +327,7 @@ function validate$s(obj, path = 'NullableInsightsSettingsMap') {
|
|
|
327
327
|
return v_error === undefined ? null : v_error;
|
|
328
328
|
}
|
|
329
329
|
|
|
330
|
-
function validate$
|
|
330
|
+
function validate$s(obj, path = 'InsightsSettingsMap') {
|
|
331
331
|
const v_error = (() => {
|
|
332
332
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
333
333
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -337,7 +337,7 @@ function validate$r(obj, path = 'InsightsSettingsMap') {
|
|
|
337
337
|
const path_insightsSettings = path + '.insightsSettings';
|
|
338
338
|
let obj_insightsSettings_union0 = null;
|
|
339
339
|
const obj_insightsSettings_union0_error = (() => {
|
|
340
|
-
const referencepath_insightsSettingsValidationError = validate$
|
|
340
|
+
const referencepath_insightsSettingsValidationError = validate$t(obj_insightsSettings, path_insightsSettings);
|
|
341
341
|
if (referencepath_insightsSettingsValidationError !== null) {
|
|
342
342
|
let message = 'Object doesn\'t match NullableInsightsSettingsMap (at "' + path_insightsSettings + '")\n';
|
|
343
343
|
message += referencepath_insightsSettingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -367,7 +367,7 @@ function validate$r(obj, path = 'InsightsSettingsMap') {
|
|
|
367
367
|
return v_error === undefined ? null : v_error;
|
|
368
368
|
}
|
|
369
369
|
|
|
370
|
-
function validate$
|
|
370
|
+
function validate$r(obj, path = 'RawDataInputRepresentation') {
|
|
371
371
|
const v_error = (() => {
|
|
372
372
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
373
373
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -409,7 +409,7 @@ function validate$q(obj, path = 'RawDataInputRepresentation') {
|
|
|
409
409
|
return v_error === undefined ? null : v_error;
|
|
410
410
|
}
|
|
411
411
|
|
|
412
|
-
function validate$
|
|
412
|
+
function validate$q(obj, path = 'RawDataInputWrap') {
|
|
413
413
|
const v_error = (() => {
|
|
414
414
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
415
415
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -418,7 +418,7 @@ function validate$p(obj, path = 'RawDataInputWrap') {
|
|
|
418
418
|
const path_rawDataInputWrap = path + '.rawDataInputWrap';
|
|
419
419
|
let obj_rawDataInputWrap_union0 = null;
|
|
420
420
|
const obj_rawDataInputWrap_union0_error = (() => {
|
|
421
|
-
const referencepath_rawDataInputWrapValidationError = validate$
|
|
421
|
+
const referencepath_rawDataInputWrapValidationError = validate$r(obj_rawDataInputWrap, path_rawDataInputWrap);
|
|
422
422
|
if (referencepath_rawDataInputWrapValidationError !== null) {
|
|
423
423
|
let message = 'Object doesn\'t match RawDataInputRepresentation (at "' + path_rawDataInputWrap + '")\n';
|
|
424
424
|
message += referencepath_rawDataInputWrapValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -447,7 +447,7 @@ function validate$p(obj, path = 'RawDataInputWrap') {
|
|
|
447
447
|
return v_error === undefined ? null : v_error;
|
|
448
448
|
}
|
|
449
449
|
|
|
450
|
-
function validate$
|
|
450
|
+
function validate$p(obj, path = 'RawDataList') {
|
|
451
451
|
const v_error = (() => {
|
|
452
452
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
453
453
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -462,7 +462,7 @@ function validate$o(obj, path = 'RawDataList') {
|
|
|
462
462
|
const path_rawData_item = path_rawData + '[' + i + ']';
|
|
463
463
|
let obj_rawData_item_union0 = null;
|
|
464
464
|
const obj_rawData_item_union0_error = (() => {
|
|
465
|
-
const referencepath_rawData_itemValidationError = validate$
|
|
465
|
+
const referencepath_rawData_itemValidationError = validate$q(obj_rawData_item, path_rawData_item);
|
|
466
466
|
if (referencepath_rawData_itemValidationError !== null) {
|
|
467
467
|
let message = 'Object doesn\'t match RawDataInputWrap (at "' + path_rawData_item + '")\n';
|
|
468
468
|
message += referencepath_rawData_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -492,7 +492,7 @@ function validate$o(obj, path = 'RawDataList') {
|
|
|
492
492
|
return v_error === undefined ? null : v_error;
|
|
493
493
|
}
|
|
494
494
|
|
|
495
|
-
function validate$
|
|
495
|
+
function validate$o(obj, path = 'PredictionInputRepresentation') {
|
|
496
496
|
const v_error = (() => {
|
|
497
497
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
498
498
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -530,7 +530,7 @@ function validate$n(obj, path = 'PredictionInputRepresentation') {
|
|
|
530
530
|
const path_columnNames = path + '.columnNames';
|
|
531
531
|
let obj_columnNames_union0 = null;
|
|
532
532
|
const obj_columnNames_union0_error = (() => {
|
|
533
|
-
const referencepath_columnNamesValidationError = validate$
|
|
533
|
+
const referencepath_columnNamesValidationError = validate$z(obj_columnNames, path_columnNames);
|
|
534
534
|
if (referencepath_columnNamesValidationError !== null) {
|
|
535
535
|
let message = 'Object doesn\'t match WrappedList (at "' + path_columnNames + '")\n';
|
|
536
536
|
message += referencepath_columnNamesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -757,7 +757,7 @@ function validate$n(obj, path = 'PredictionInputRepresentation') {
|
|
|
757
757
|
const path_featureColumnMap = path + '.featureColumnMap';
|
|
758
758
|
let obj_featureColumnMap_union0 = null;
|
|
759
759
|
const obj_featureColumnMap_union0_error = (() => {
|
|
760
|
-
const referencepath_featureColumnMapValidationError = validate$
|
|
760
|
+
const referencepath_featureColumnMapValidationError = validate$x(obj_featureColumnMap, path_featureColumnMap);
|
|
761
761
|
if (referencepath_featureColumnMapValidationError !== null) {
|
|
762
762
|
let message = 'Object doesn\'t match ColumnMapWrap (at "' + path_featureColumnMap + '")\n';
|
|
763
763
|
message += referencepath_featureColumnMapValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -788,7 +788,7 @@ function validate$n(obj, path = 'PredictionInputRepresentation') {
|
|
|
788
788
|
const path_featureExtractionParameters = path + '.featureExtractionParameters';
|
|
789
789
|
let obj_featureExtractionParameters_union0 = null;
|
|
790
790
|
const obj_featureExtractionParameters_union0_error = (() => {
|
|
791
|
-
const referencepath_featureExtractionParametersValidationError = validate$
|
|
791
|
+
const referencepath_featureExtractionParametersValidationError = validate$u(obj_featureExtractionParameters, path_featureExtractionParameters);
|
|
792
792
|
if (referencepath_featureExtractionParametersValidationError !== null) {
|
|
793
793
|
let message = 'Object doesn\'t match FeatureExtractionParametersList (at "' + path_featureExtractionParameters + '")\n';
|
|
794
794
|
message += referencepath_featureExtractionParametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -887,7 +887,7 @@ function validate$n(obj, path = 'PredictionInputRepresentation') {
|
|
|
887
887
|
const path_insightColumnMap = path + '.insightColumnMap';
|
|
888
888
|
let obj_insightColumnMap_union0 = null;
|
|
889
889
|
const obj_insightColumnMap_union0_error = (() => {
|
|
890
|
-
const referencepath_insightColumnMapValidationError = validate$
|
|
890
|
+
const referencepath_insightColumnMapValidationError = validate$x(obj_insightColumnMap, path_insightColumnMap);
|
|
891
891
|
if (referencepath_insightColumnMapValidationError !== null) {
|
|
892
892
|
let message = 'Object doesn\'t match ColumnMapWrap (at "' + path_insightColumnMap + '")\n';
|
|
893
893
|
message += referencepath_insightColumnMapValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -918,7 +918,7 @@ function validate$n(obj, path = 'PredictionInputRepresentation') {
|
|
|
918
918
|
const path_insightsSettings = path + '.insightsSettings';
|
|
919
919
|
let obj_insightsSettings_union0 = null;
|
|
920
920
|
const obj_insightsSettings_union0_error = (() => {
|
|
921
|
-
const referencepath_insightsSettingsValidationError = validate$
|
|
921
|
+
const referencepath_insightsSettingsValidationError = validate$s(obj_insightsSettings, path_insightsSettings);
|
|
922
922
|
if (referencepath_insightsSettingsValidationError !== null) {
|
|
923
923
|
let message = 'Object doesn\'t match InsightsSettingsMap (at "' + path_insightsSettings + '")\n';
|
|
924
924
|
message += referencepath_insightsSettingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -954,7 +954,7 @@ function validate$n(obj, path = 'PredictionInputRepresentation') {
|
|
|
954
954
|
const path_rawData = path + '.rawData';
|
|
955
955
|
let obj_rawData_union0 = null;
|
|
956
956
|
const obj_rawData_union0_error = (() => {
|
|
957
|
-
const referencepath_rawDataValidationError = validate$
|
|
957
|
+
const referencepath_rawDataValidationError = validate$p(obj_rawData, path_rawData);
|
|
958
958
|
if (referencepath_rawDataValidationError !== null) {
|
|
959
959
|
let message = 'Object doesn\'t match RawDataList (at "' + path_rawData + '")\n';
|
|
960
960
|
message += referencepath_rawDataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -985,7 +985,7 @@ function validate$n(obj, path = 'PredictionInputRepresentation') {
|
|
|
985
985
|
const path_records = path + '.records';
|
|
986
986
|
let obj_records_union0 = null;
|
|
987
987
|
const obj_records_union0_error = (() => {
|
|
988
|
-
const referencepath_recordsValidationError = validate$
|
|
988
|
+
const referencepath_recordsValidationError = validate$z(obj_records, path_records);
|
|
989
989
|
if (referencepath_recordsValidationError !== null) {
|
|
990
990
|
let message = 'Object doesn\'t match WrappedList (at "' + path_records + '")\n';
|
|
991
991
|
message += referencepath_recordsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1072,7 +1072,7 @@ function validate$n(obj, path = 'PredictionInputRepresentation') {
|
|
|
1072
1072
|
const path_suggestionColumnMap = path + '.suggestionColumnMap';
|
|
1073
1073
|
let obj_suggestionColumnMap_union0 = null;
|
|
1074
1074
|
const obj_suggestionColumnMap_union0_error = (() => {
|
|
1075
|
-
const referencepath_suggestionColumnMapValidationError = validate$
|
|
1075
|
+
const referencepath_suggestionColumnMapValidationError = validate$x(obj_suggestionColumnMap, path_suggestionColumnMap);
|
|
1076
1076
|
if (referencepath_suggestionColumnMapValidationError !== null) {
|
|
1077
1077
|
let message = 'Object doesn\'t match ColumnMapWrap (at "' + path_suggestionColumnMap + '")\n';
|
|
1078
1078
|
message += referencepath_suggestionColumnMapValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1116,7 +1116,7 @@ function validate$n(obj, path = 'PredictionInputRepresentation') {
|
|
|
1116
1116
|
return v_error === undefined ? null : v_error;
|
|
1117
1117
|
}
|
|
1118
1118
|
|
|
1119
|
-
function validate$
|
|
1119
|
+
function validate$n(obj, path = 'ModelFeature') {
|
|
1120
1120
|
const v_error = (() => {
|
|
1121
1121
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1122
1122
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1209,7 +1209,7 @@ function validate$m(obj, path = 'ModelFeature') {
|
|
|
1209
1209
|
return v_error === undefined ? null : v_error;
|
|
1210
1210
|
}
|
|
1211
1211
|
|
|
1212
|
-
function validate$
|
|
1212
|
+
function validate$m(obj, path = 'NullableModel') {
|
|
1213
1213
|
const v_error = (() => {
|
|
1214
1214
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1215
1215
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1248,7 +1248,7 @@ function validate$l(obj, path = 'NullableModel') {
|
|
|
1248
1248
|
return v_error === undefined ? null : v_error;
|
|
1249
1249
|
}
|
|
1250
1250
|
|
|
1251
|
-
function validate$
|
|
1251
|
+
function validate$l(obj, path = 'Column') {
|
|
1252
1252
|
const v_error = (() => {
|
|
1253
1253
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1254
1254
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1369,7 +1369,7 @@ function validate$k(obj, path = 'Column') {
|
|
|
1369
1369
|
return v_error === undefined ? null : v_error;
|
|
1370
1370
|
}
|
|
1371
1371
|
|
|
1372
|
-
function validate$
|
|
1372
|
+
function validate$k(obj, path = 'Insight') {
|
|
1373
1373
|
const v_error = (() => {
|
|
1374
1374
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1375
1375
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1385,7 +1385,7 @@ function validate$j(obj, path = 'Insight') {
|
|
|
1385
1385
|
const path_columns_item = path_columns + '[' + i + ']';
|
|
1386
1386
|
let obj_columns_item_union0 = null;
|
|
1387
1387
|
const obj_columns_item_union0_error = (() => {
|
|
1388
|
-
const referencepath_columns_itemValidationError = validate$
|
|
1388
|
+
const referencepath_columns_itemValidationError = validate$l(obj_columns_item, path_columns_item);
|
|
1389
1389
|
if (referencepath_columns_itemValidationError !== null) {
|
|
1390
1390
|
let message = 'Object doesn\'t match Column (at "' + path_columns_item + '")\n';
|
|
1391
1391
|
message += referencepath_columns_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1419,7 +1419,7 @@ function validate$j(obj, path = 'Insight') {
|
|
|
1419
1419
|
return v_error === undefined ? null : v_error;
|
|
1420
1420
|
}
|
|
1421
1421
|
|
|
1422
|
-
function validate$
|
|
1422
|
+
function validate$j(obj, path = 'Prediction') {
|
|
1423
1423
|
const v_error = (() => {
|
|
1424
1424
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1425
1425
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1438,7 +1438,7 @@ function validate$i(obj, path = 'Prediction') {
|
|
|
1438
1438
|
const path_insights_item = path_insights + '[' + i + ']';
|
|
1439
1439
|
let obj_insights_item_union0 = null;
|
|
1440
1440
|
const obj_insights_item_union0_error = (() => {
|
|
1441
|
-
const referencepath_insights_itemValidationError = validate$
|
|
1441
|
+
const referencepath_insights_itemValidationError = validate$k(obj_insights_item, path_insights_item);
|
|
1442
1442
|
if (referencepath_insights_itemValidationError !== null) {
|
|
1443
1443
|
let message = 'Object doesn\'t match Insight (at "' + path_insights_item + '")\n';
|
|
1444
1444
|
message += referencepath_insights_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1511,7 +1511,7 @@ function validate$i(obj, path = 'Prediction') {
|
|
|
1511
1511
|
const path_outOfBoundsColumns_item = path_outOfBoundsColumns + '[' + i + ']';
|
|
1512
1512
|
let obj_outOfBoundsColumns_item_union0 = null;
|
|
1513
1513
|
const obj_outOfBoundsColumns_item_union0_error = (() => {
|
|
1514
|
-
const referencepath_outOfBoundsColumns_itemValidationError = validate$
|
|
1514
|
+
const referencepath_outOfBoundsColumns_itemValidationError = validate$l(obj_outOfBoundsColumns_item, path_outOfBoundsColumns_item);
|
|
1515
1515
|
if (referencepath_outOfBoundsColumns_itemValidationError !== null) {
|
|
1516
1516
|
let message = 'Object doesn\'t match Column (at "' + path_outOfBoundsColumns_item + '")\n';
|
|
1517
1517
|
message += referencepath_outOfBoundsColumns_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1545,7 +1545,7 @@ function validate$i(obj, path = 'Prediction') {
|
|
|
1545
1545
|
return v_error === undefined ? null : v_error;
|
|
1546
1546
|
}
|
|
1547
1547
|
|
|
1548
|
-
function validate$
|
|
1548
|
+
function validate$i(obj, path = 'Suggestion') {
|
|
1549
1549
|
const v_error = (() => {
|
|
1550
1550
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1551
1551
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1561,7 +1561,7 @@ function validate$h(obj, path = 'Suggestion') {
|
|
|
1561
1561
|
const path_columns_item = path_columns + '[' + i + ']';
|
|
1562
1562
|
let obj_columns_item_union0 = null;
|
|
1563
1563
|
const obj_columns_item_union0_error = (() => {
|
|
1564
|
-
const referencepath_columns_itemValidationError = validate$
|
|
1564
|
+
const referencepath_columns_itemValidationError = validate$l(obj_columns_item, path_columns_item);
|
|
1565
1565
|
if (referencepath_columns_itemValidationError !== null) {
|
|
1566
1566
|
let message = 'Object doesn\'t match Column (at "' + path_columns_item + '")\n';
|
|
1567
1567
|
message += referencepath_columns_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1595,7 +1595,7 @@ function validate$h(obj, path = 'Suggestion') {
|
|
|
1595
1595
|
return v_error === undefined ? null : v_error;
|
|
1596
1596
|
}
|
|
1597
1597
|
|
|
1598
|
-
function validate$
|
|
1598
|
+
function validate$h(obj, path = 'PredictionObject') {
|
|
1599
1599
|
const v_error = (() => {
|
|
1600
1600
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1601
1601
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1605,7 +1605,7 @@ function validate$g(obj, path = 'PredictionObject') {
|
|
|
1605
1605
|
const path_model = path + '.model';
|
|
1606
1606
|
let obj_model_union0 = null;
|
|
1607
1607
|
const obj_model_union0_error = (() => {
|
|
1608
|
-
const referencepath_modelValidationError = validate$
|
|
1608
|
+
const referencepath_modelValidationError = validate$m(obj_model, path_model);
|
|
1609
1609
|
if (referencepath_modelValidationError !== null) {
|
|
1610
1610
|
let message = 'Object doesn\'t match NullableModel (at "' + path_model + '")\n';
|
|
1611
1611
|
message += referencepath_modelValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1636,7 +1636,7 @@ function validate$g(obj, path = 'PredictionObject') {
|
|
|
1636
1636
|
const path_prediction = path + '.prediction';
|
|
1637
1637
|
let obj_prediction_union0 = null;
|
|
1638
1638
|
const obj_prediction_union0_error = (() => {
|
|
1639
|
-
const referencepath_predictionValidationError = validate$
|
|
1639
|
+
const referencepath_predictionValidationError = validate$j(obj_prediction, path_prediction);
|
|
1640
1640
|
if (referencepath_predictionValidationError !== null) {
|
|
1641
1641
|
let message = 'Object doesn\'t match Prediction (at "' + path_prediction + '")\n';
|
|
1642
1642
|
message += referencepath_predictionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1699,7 +1699,7 @@ function validate$g(obj, path = 'PredictionObject') {
|
|
|
1699
1699
|
const path_suggestions_item = path_suggestions + '[' + i + ']';
|
|
1700
1700
|
let obj_suggestions_item_union0 = null;
|
|
1701
1701
|
const obj_suggestions_item_union0_error = (() => {
|
|
1702
|
-
const referencepath_suggestions_itemValidationError = validate$
|
|
1702
|
+
const referencepath_suggestions_itemValidationError = validate$i(obj_suggestions_item, path_suggestions_item);
|
|
1703
1703
|
if (referencepath_suggestions_itemValidationError !== null) {
|
|
1704
1704
|
let message = 'Object doesn\'t match Suggestion (at "' + path_suggestions_item + '")\n';
|
|
1705
1705
|
message += referencepath_suggestions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1730,7 +1730,7 @@ function validate$g(obj, path = 'PredictionObject') {
|
|
|
1730
1730
|
return v_error === undefined ? null : v_error;
|
|
1731
1731
|
}
|
|
1732
1732
|
|
|
1733
|
-
function validate$
|
|
1733
|
+
function validate$g(obj, path = 'Status') {
|
|
1734
1734
|
const v_error = (() => {
|
|
1735
1735
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1736
1736
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1751,7 +1751,7 @@ function validate$f(obj, path = 'Status') {
|
|
|
1751
1751
|
|
|
1752
1752
|
const TTL$2 = 1000;
|
|
1753
1753
|
const VERSION$2 = "f32ecc98b5cd30fb5680de162a64308a";
|
|
1754
|
-
function validate$
|
|
1754
|
+
function validate$f(obj, path = 'PredictionOutputRepresentation') {
|
|
1755
1755
|
const v_error = (() => {
|
|
1756
1756
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1757
1757
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1926,7 +1926,7 @@ function validate$e(obj, path = 'PredictionOutputRepresentation') {
|
|
|
1926
1926
|
const path_modelFeatures_item = path_modelFeatures + '[' + i + ']';
|
|
1927
1927
|
let obj_modelFeatures_item_union0 = null;
|
|
1928
1928
|
const obj_modelFeatures_item_union0_error = (() => {
|
|
1929
|
-
const referencepath_modelFeatures_itemValidationError = validate$
|
|
1929
|
+
const referencepath_modelFeatures_itemValidationError = validate$n(obj_modelFeatures_item, path_modelFeatures_item);
|
|
1930
1930
|
if (referencepath_modelFeatures_itemValidationError !== null) {
|
|
1931
1931
|
let message = 'Object doesn\'t match ModelFeature (at "' + path_modelFeatures_item + '")\n';
|
|
1932
1932
|
message += referencepath_modelFeatures_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2132,7 +2132,7 @@ function validate$e(obj, path = 'PredictionOutputRepresentation') {
|
|
|
2132
2132
|
const path_predictions_item = path_predictions + '[' + i + ']';
|
|
2133
2133
|
let obj_predictions_item_union0 = null;
|
|
2134
2134
|
const obj_predictions_item_union0_error = (() => {
|
|
2135
|
-
const referencepath_predictions_itemValidationError = validate$
|
|
2135
|
+
const referencepath_predictions_itemValidationError = validate$h(obj_predictions_item, path_predictions_item);
|
|
2136
2136
|
if (referencepath_predictions_itemValidationError !== null) {
|
|
2137
2137
|
let message = 'Object doesn\'t match PredictionObject (at "' + path_predictions_item + '")\n';
|
|
2138
2138
|
message += referencepath_predictions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2259,7 +2259,7 @@ function validate$e(obj, path = 'PredictionOutputRepresentation') {
|
|
|
2259
2259
|
}
|
|
2260
2260
|
const obj_status = obj.status;
|
|
2261
2261
|
const path_status = path + '.status';
|
|
2262
|
-
const referencepath_statusValidationError = validate$
|
|
2262
|
+
const referencepath_statusValidationError = validate$g(obj_status, path_status);
|
|
2263
2263
|
if (referencepath_statusValidationError !== null) {
|
|
2264
2264
|
let message = 'Object doesn\'t match Status (at "' + path_status + '")\n';
|
|
2265
2265
|
message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2297,7 +2297,7 @@ function equals$2(existing, incoming) {
|
|
|
2297
2297
|
}
|
|
2298
2298
|
const ingest$2 = function PredictionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2299
2299
|
if (process.env.NODE_ENV !== 'production') {
|
|
2300
|
-
const validateError = validate$
|
|
2300
|
+
const validateError = validate$f(input);
|
|
2301
2301
|
if (validateError !== null) {
|
|
2302
2302
|
throw validateError;
|
|
2303
2303
|
}
|
|
@@ -2363,7 +2363,7 @@ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$3(predictions_
|
|
|
2363
2363
|
function typeCheckConfig$2(untrustedConfig) {
|
|
2364
2364
|
const config = {};
|
|
2365
2365
|
const untrustedConfig_predictionInput = untrustedConfig.predictionInput;
|
|
2366
|
-
const referencePredictionInputRepresentationValidationError = validate$
|
|
2366
|
+
const referencePredictionInputRepresentationValidationError = validate$o(untrustedConfig_predictionInput);
|
|
2367
2367
|
if (referencePredictionInputRepresentationValidationError === null) {
|
|
2368
2368
|
config.predictionInput = untrustedConfig_predictionInput;
|
|
2369
2369
|
}
|
|
@@ -2411,7 +2411,7 @@ const predictionsAdapterFactory = (luvio) => {
|
|
|
2411
2411
|
};
|
|
2412
2412
|
};
|
|
2413
2413
|
|
|
2414
|
-
function validate$
|
|
2414
|
+
function validate$e(obj, path = 'RecommendationInputRepresentation') {
|
|
2415
2415
|
const v_error = (() => {
|
|
2416
2416
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2417
2417
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2637,7 +2637,7 @@ function validate$d(obj, path = 'RecommendationInputRepresentation') {
|
|
|
2637
2637
|
return v_error === undefined ? null : v_error;
|
|
2638
2638
|
}
|
|
2639
2639
|
|
|
2640
|
-
function validate$
|
|
2640
|
+
function validate$d(obj, path = 'Error') {
|
|
2641
2641
|
const v_error = (() => {
|
|
2642
2642
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2643
2643
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2702,7 +2702,7 @@ function validate$c(obj, path = 'Error') {
|
|
|
2702
2702
|
return v_error === undefined ? null : v_error;
|
|
2703
2703
|
}
|
|
2704
2704
|
|
|
2705
|
-
function validate$
|
|
2705
|
+
function validate$c(obj, path = 'RecommendationActionParam') {
|
|
2706
2706
|
const v_error = (() => {
|
|
2707
2707
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2708
2708
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2774,7 +2774,7 @@ function validate$b(obj, path = 'RecommendationActionParam') {
|
|
|
2774
2774
|
return v_error === undefined ? null : v_error;
|
|
2775
2775
|
}
|
|
2776
2776
|
|
|
2777
|
-
function validate$
|
|
2777
|
+
function validate$b(obj, path = 'Recommendation') {
|
|
2778
2778
|
const v_error = (() => {
|
|
2779
2779
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2780
2780
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2902,7 +2902,7 @@ function validate$a(obj, path = 'Recommendation') {
|
|
|
2902
2902
|
const path_actionStrategyParameters_item = path_actionStrategyParameters + '[' + i + ']';
|
|
2903
2903
|
let obj_actionStrategyParameters_item_union0 = null;
|
|
2904
2904
|
const obj_actionStrategyParameters_item_union0_error = (() => {
|
|
2905
|
-
const referencepath_actionStrategyParameters_itemValidationError = validate$
|
|
2905
|
+
const referencepath_actionStrategyParameters_itemValidationError = validate$c(obj_actionStrategyParameters_item, path_actionStrategyParameters_item);
|
|
2906
2906
|
if (referencepath_actionStrategyParameters_itemValidationError !== null) {
|
|
2907
2907
|
let message = 'Object doesn\'t match RecommendationActionParam (at "' + path_actionStrategyParameters_item + '")\n';
|
|
2908
2908
|
message += referencepath_actionStrategyParameters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3101,7 +3101,7 @@ function validate$a(obj, path = 'Recommendation') {
|
|
|
3101
3101
|
return v_error === undefined ? null : v_error;
|
|
3102
3102
|
}
|
|
3103
3103
|
|
|
3104
|
-
function validate$
|
|
3104
|
+
function validate$a(obj, path = 'RcmdStrategyResult') {
|
|
3105
3105
|
const v_error = (() => {
|
|
3106
3106
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3107
3107
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3117,7 +3117,7 @@ function validate$9(obj, path = 'RcmdStrategyResult') {
|
|
|
3117
3117
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
3118
3118
|
let obj_errors_item_union0 = null;
|
|
3119
3119
|
const obj_errors_item_union0_error = (() => {
|
|
3120
|
-
const referencepath_errors_itemValidationError = validate$
|
|
3120
|
+
const referencepath_errors_itemValidationError = validate$d(obj_errors_item, path_errors_item);
|
|
3121
3121
|
if (referencepath_errors_itemValidationError !== null) {
|
|
3122
3122
|
let message = 'Object doesn\'t match Error (at "' + path_errors_item + '")\n';
|
|
3123
3123
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3212,7 +3212,7 @@ function validate$9(obj, path = 'RcmdStrategyResult') {
|
|
|
3212
3212
|
const path_recommendations_item = path_recommendations + '[' + i + ']';
|
|
3213
3213
|
let obj_recommendations_item_union0 = null;
|
|
3214
3214
|
const obj_recommendations_item_union0_error = (() => {
|
|
3215
|
-
const referencepath_recommendations_itemValidationError = validate$
|
|
3215
|
+
const referencepath_recommendations_itemValidationError = validate$b(obj_recommendations_item, path_recommendations_item);
|
|
3216
3216
|
if (referencepath_recommendations_itemValidationError !== null) {
|
|
3217
3217
|
let message = 'Object doesn\'t match Recommendation (at "' + path_recommendations_item + '")\n';
|
|
3218
3218
|
message += referencepath_recommendations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3273,7 +3273,7 @@ function validate$9(obj, path = 'RcmdStrategyResult') {
|
|
|
3273
3273
|
|
|
3274
3274
|
const TTL$1 = 1000;
|
|
3275
3275
|
const VERSION$1 = "aaf9d28bb6dd45e46359c8fa29159989";
|
|
3276
|
-
function validate$
|
|
3276
|
+
function validate$9(obj, path = 'RecommendationOutputRepresentation') {
|
|
3277
3277
|
const v_error = (() => {
|
|
3278
3278
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3279
3279
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3380,7 +3380,7 @@ function validate$8(obj, path = 'RecommendationOutputRepresentation') {
|
|
|
3380
3380
|
const path_recommendationStrategyResult_item = path_recommendationStrategyResult + '[' + i + ']';
|
|
3381
3381
|
let obj_recommendationStrategyResult_item_union0 = null;
|
|
3382
3382
|
const obj_recommendationStrategyResult_item_union0_error = (() => {
|
|
3383
|
-
const referencepath_recommendationStrategyResult_itemValidationError = validate$
|
|
3383
|
+
const referencepath_recommendationStrategyResult_itemValidationError = validate$a(obj_recommendationStrategyResult_item, path_recommendationStrategyResult_item);
|
|
3384
3384
|
if (referencepath_recommendationStrategyResult_itemValidationError !== null) {
|
|
3385
3385
|
let message = 'Object doesn\'t match RcmdStrategyResult (at "' + path_recommendationStrategyResult_item + '")\n';
|
|
3386
3386
|
message += referencepath_recommendationStrategyResult_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3437,7 +3437,7 @@ function validate$8(obj, path = 'RecommendationOutputRepresentation') {
|
|
|
3437
3437
|
}
|
|
3438
3438
|
const obj_status = obj.status;
|
|
3439
3439
|
const path_status = path + '.status';
|
|
3440
|
-
const referencepath_statusValidationError = validate$
|
|
3440
|
+
const referencepath_statusValidationError = validate$g(obj_status, path_status);
|
|
3441
3441
|
if (referencepath_statusValidationError !== null) {
|
|
3442
3442
|
let message = 'Object doesn\'t match Status (at "' + path_status + '")\n';
|
|
3443
3443
|
message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3531,7 +3531,7 @@ function equals$1(existing, incoming) {
|
|
|
3531
3531
|
}
|
|
3532
3532
|
const ingest$1 = function RecommendationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3533
3533
|
if (process.env.NODE_ENV !== 'production') {
|
|
3534
|
-
const validateError = validate$
|
|
3534
|
+
const validateError = validate$9(input);
|
|
3535
3535
|
if (validateError !== null) {
|
|
3536
3536
|
throw validateError;
|
|
3537
3537
|
}
|
|
@@ -3597,7 +3597,7 @@ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$3(fetchRecomme
|
|
|
3597
3597
|
function typeCheckConfig$1(untrustedConfig) {
|
|
3598
3598
|
const config = {};
|
|
3599
3599
|
const untrustedConfig_recommendationInput = untrustedConfig.recommendationInput;
|
|
3600
|
-
const referenceRecommendationInputRepresentationValidationError = validate$
|
|
3600
|
+
const referenceRecommendationInputRepresentationValidationError = validate$e(untrustedConfig_recommendationInput);
|
|
3601
3601
|
if (referenceRecommendationInputRepresentationValidationError === null) {
|
|
3602
3602
|
config.recommendationInput = untrustedConfig_recommendationInput;
|
|
3603
3603
|
}
|
|
@@ -3645,87 +3645,81 @@ const fetchRecommendationsAdapterFactory = (luvio) => {
|
|
|
3645
3645
|
};
|
|
3646
3646
|
};
|
|
3647
3647
|
|
|
3648
|
-
function validate$
|
|
3648
|
+
function validate$8(obj, path = 'NullableCustomAttributesMap') {
|
|
3649
3649
|
const v_error = (() => {
|
|
3650
3650
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3651
3651
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3652
3652
|
}
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
const
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3653
|
+
const obj_keys = ObjectKeys(obj);
|
|
3654
|
+
for (let i = 0; i < obj_keys.length; i++) {
|
|
3655
|
+
const key = obj_keys[i];
|
|
3656
|
+
const obj_prop = obj[key];
|
|
3657
|
+
const path_prop = path + '["' + key + '"]';
|
|
3658
|
+
let obj_prop_union0 = null;
|
|
3659
|
+
const obj_prop_union0_error = (() => {
|
|
3660
|
+
if (typeof obj_prop !== 'string') {
|
|
3661
|
+
return new TypeError('Expected "string" but received "' + typeof obj_prop + '" (at "' + path_prop + '")');
|
|
3662
|
+
}
|
|
3663
|
+
})();
|
|
3664
|
+
if (obj_prop_union0_error != null) {
|
|
3665
|
+
obj_prop_union0 = obj_prop_union0_error.message;
|
|
3665
3666
|
}
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3667
|
+
let obj_prop_union1 = null;
|
|
3668
|
+
const obj_prop_union1_error = (() => {
|
|
3669
|
+
if (obj_prop !== null) {
|
|
3670
|
+
return new TypeError('Expected "null" but received "' + typeof obj_prop + '" (at "' + path_prop + '")');
|
|
3671
|
+
}
|
|
3672
|
+
})();
|
|
3673
|
+
if (obj_prop_union1_error != null) {
|
|
3674
|
+
obj_prop_union1 = obj_prop_union1_error.message;
|
|
3672
3675
|
}
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
const obj_records_union0_error = (() => {
|
|
3678
|
-
const referencepath_recordsValidationError = validate$y(obj_records, path_records);
|
|
3679
|
-
if (referencepath_recordsValidationError !== null) {
|
|
3680
|
-
let message = 'Object doesn\'t match WrappedList (at "' + path_records + '")\n';
|
|
3681
|
-
message += referencepath_recordsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3676
|
+
if (obj_prop_union0 && obj_prop_union1) {
|
|
3677
|
+
let message = 'Object doesn\'t match union (at "' + path_prop + '")';
|
|
3678
|
+
message += '\n' + obj_prop_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3679
|
+
message += '\n' + obj_prop_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3682
3680
|
return new TypeError(message);
|
|
3683
3681
|
}
|
|
3684
|
-
})();
|
|
3685
|
-
if (obj_records_union0_error != null) {
|
|
3686
|
-
obj_records_union0 = obj_records_union0_error.message;
|
|
3687
|
-
}
|
|
3688
|
-
let obj_records_union1 = null;
|
|
3689
|
-
const obj_records_union1_error = (() => {
|
|
3690
|
-
if (obj_records !== null) {
|
|
3691
|
-
return new TypeError('Expected "null" but received "' + typeof obj_records + '" (at "' + path_records + '")');
|
|
3692
|
-
}
|
|
3693
|
-
})();
|
|
3694
|
-
if (obj_records_union1_error != null) {
|
|
3695
|
-
obj_records_union1 = obj_records_union1_error.message;
|
|
3696
3682
|
}
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3683
|
+
})();
|
|
3684
|
+
return v_error === undefined ? null : v_error;
|
|
3685
|
+
}
|
|
3686
|
+
|
|
3687
|
+
function validate$7(obj, path = 'CustomAttributesMap') {
|
|
3688
|
+
const v_error = (() => {
|
|
3689
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3690
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3702
3691
|
}
|
|
3703
|
-
if (obj.
|
|
3704
|
-
const
|
|
3705
|
-
const
|
|
3706
|
-
|
|
3707
|
-
|
|
3692
|
+
if (obj.customAttributes !== undefined) {
|
|
3693
|
+
const obj_customAttributes = obj.customAttributes;
|
|
3694
|
+
const path_customAttributes = path + '.customAttributes';
|
|
3695
|
+
let obj_customAttributes_union0 = null;
|
|
3696
|
+
const obj_customAttributes_union0_error = (() => {
|
|
3697
|
+
const referencepath_customAttributesValidationError = validate$8(obj_customAttributes, path_customAttributes);
|
|
3698
|
+
if (referencepath_customAttributesValidationError !== null) {
|
|
3699
|
+
let message = 'Object doesn\'t match NullableCustomAttributesMap (at "' + path_customAttributes + '")\n';
|
|
3700
|
+
message += referencepath_customAttributesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3701
|
+
return new TypeError(message);
|
|
3702
|
+
}
|
|
3703
|
+
})();
|
|
3704
|
+
if (obj_customAttributes_union0_error != null) {
|
|
3705
|
+
obj_customAttributes_union0 = obj_customAttributes_union0_error.message;
|
|
3708
3706
|
}
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3707
|
+
let obj_customAttributes_union1 = null;
|
|
3708
|
+
const obj_customAttributes_union1_error = (() => {
|
|
3709
|
+
if (obj_customAttributes !== null) {
|
|
3710
|
+
return new TypeError('Expected "null" but received "' + typeof obj_customAttributes + '" (at "' + path_customAttributes + '")');
|
|
3711
|
+
}
|
|
3712
|
+
})();
|
|
3713
|
+
if (obj_customAttributes_union1_error != null) {
|
|
3714
|
+
obj_customAttributes_union1 = obj_customAttributes_union1_error.message;
|
|
3715
3715
|
}
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
return new TypeError('Expected "string" but received "' + typeof obj_sortingOrder + '" (at "' + path_sortingOrder + '")');
|
|
3716
|
+
if (obj_customAttributes_union0 && obj_customAttributes_union1) {
|
|
3717
|
+
let message = 'Object doesn\'t match union (at "' + path_customAttributes + '")';
|
|
3718
|
+
message += '\n' + obj_customAttributes_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3719
|
+
message += '\n' + obj_customAttributes_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3720
|
+
return new TypeError(message);
|
|
3722
3721
|
}
|
|
3723
3722
|
}
|
|
3724
|
-
const obj_usecaseName = obj.usecaseName;
|
|
3725
|
-
const path_usecaseName = path + '.usecaseName';
|
|
3726
|
-
if (typeof obj_usecaseName !== 'string') {
|
|
3727
|
-
return new TypeError('Expected "string" but received "' + typeof obj_usecaseName + '" (at "' + path_usecaseName + '")');
|
|
3728
|
-
}
|
|
3729
3723
|
})();
|
|
3730
3724
|
return v_error === undefined ? null : v_error;
|
|
3731
3725
|
}
|
|
@@ -3812,6 +3806,44 @@ function validate$4(obj, path = 'PredictionOutput') {
|
|
|
3812
3806
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3813
3807
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3814
3808
|
}
|
|
3809
|
+
if (obj.customAttributes !== undefined) {
|
|
3810
|
+
const obj_customAttributes = obj.customAttributes;
|
|
3811
|
+
const path_customAttributes = path + '.customAttributes';
|
|
3812
|
+
let obj_customAttributes_union0 = null;
|
|
3813
|
+
const obj_customAttributes_union0_error = (() => {
|
|
3814
|
+
const referencepath_customAttributesValidationError = validate$7(obj_customAttributes, path_customAttributes);
|
|
3815
|
+
if (referencepath_customAttributesValidationError !== null) {
|
|
3816
|
+
let message = 'Object doesn\'t match CustomAttributesMap (at "' + path_customAttributes + '")\n';
|
|
3817
|
+
message += referencepath_customAttributesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3818
|
+
return new TypeError(message);
|
|
3819
|
+
}
|
|
3820
|
+
})();
|
|
3821
|
+
if (obj_customAttributes_union0_error != null) {
|
|
3822
|
+
obj_customAttributes_union0 = obj_customAttributes_union0_error.message;
|
|
3823
|
+
}
|
|
3824
|
+
let obj_customAttributes_union1 = null;
|
|
3825
|
+
const obj_customAttributes_union1_error = (() => {
|
|
3826
|
+
if (obj_customAttributes !== null) {
|
|
3827
|
+
return new TypeError('Expected "null" but received "' + typeof obj_customAttributes + '" (at "' + path_customAttributes + '")');
|
|
3828
|
+
}
|
|
3829
|
+
})();
|
|
3830
|
+
if (obj_customAttributes_union1_error != null) {
|
|
3831
|
+
obj_customAttributes_union1 = obj_customAttributes_union1_error.message;
|
|
3832
|
+
}
|
|
3833
|
+
if (obj_customAttributes_union0 && obj_customAttributes_union1) {
|
|
3834
|
+
let message = 'Object doesn\'t match union (at "' + path_customAttributes + '")';
|
|
3835
|
+
message += '\n' + obj_customAttributes_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3836
|
+
message += '\n' + obj_customAttributes_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3837
|
+
return new TypeError(message);
|
|
3838
|
+
}
|
|
3839
|
+
}
|
|
3840
|
+
if (obj.customPredictionLabel !== undefined) {
|
|
3841
|
+
const obj_customPredictionLabel = obj.customPredictionLabel;
|
|
3842
|
+
const path_customPredictionLabel = path + '.customPredictionLabel';
|
|
3843
|
+
if (typeof obj_customPredictionLabel !== 'string') {
|
|
3844
|
+
return new TypeError('Expected "string" but received "' + typeof obj_customPredictionLabel + '" (at "' + path_customPredictionLabel + '")');
|
|
3845
|
+
}
|
|
3846
|
+
}
|
|
3815
3847
|
if (obj.predictionScore !== undefined) {
|
|
3816
3848
|
const obj_predictionScore = obj.predictionScore;
|
|
3817
3849
|
const path_predictionScore = path + '.predictionScore';
|
|
@@ -3917,7 +3949,7 @@ function validate$1(obj, path = 'PredictionOutputObject') {
|
|
|
3917
3949
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
3918
3950
|
const obj_errors_item = obj_errors[i];
|
|
3919
3951
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
3920
|
-
const referencepath_errors_itemValidationError = validate$
|
|
3952
|
+
const referencepath_errors_itemValidationError = validate$d(obj_errors_item, path_errors_item);
|
|
3921
3953
|
if (referencepath_errors_itemValidationError !== null) {
|
|
3922
3954
|
let message = 'Object doesn\'t match Error (at "' + path_errors_item + '")\n';
|
|
3923
3955
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3927,8 +3959,29 @@ function validate$1(obj, path = 'PredictionOutputObject') {
|
|
|
3927
3959
|
}
|
|
3928
3960
|
const obj_isSuccess = obj.isSuccess;
|
|
3929
3961
|
const path_isSuccess = path + '.isSuccess';
|
|
3930
|
-
|
|
3931
|
-
|
|
3962
|
+
let obj_isSuccess_union0 = null;
|
|
3963
|
+
const obj_isSuccess_union0_error = (() => {
|
|
3964
|
+
if (typeof obj_isSuccess !== 'boolean') {
|
|
3965
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
|
|
3966
|
+
}
|
|
3967
|
+
})();
|
|
3968
|
+
if (obj_isSuccess_union0_error != null) {
|
|
3969
|
+
obj_isSuccess_union0 = obj_isSuccess_union0_error.message;
|
|
3970
|
+
}
|
|
3971
|
+
let obj_isSuccess_union1 = null;
|
|
3972
|
+
const obj_isSuccess_union1_error = (() => {
|
|
3973
|
+
if (obj_isSuccess !== null) {
|
|
3974
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
|
|
3975
|
+
}
|
|
3976
|
+
})();
|
|
3977
|
+
if (obj_isSuccess_union1_error != null) {
|
|
3978
|
+
obj_isSuccess_union1 = obj_isSuccess_union1_error.message;
|
|
3979
|
+
}
|
|
3980
|
+
if (obj_isSuccess_union0 && obj_isSuccess_union1) {
|
|
3981
|
+
let message = 'Object doesn\'t match union (at "' + path_isSuccess + '")';
|
|
3982
|
+
message += '\n' + obj_isSuccess_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3983
|
+
message += '\n' + obj_isSuccess_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3984
|
+
return new TypeError(message);
|
|
3932
3985
|
}
|
|
3933
3986
|
if (obj.predictionOutput !== undefined) {
|
|
3934
3987
|
const obj_predictionOutput = obj.predictionOutput;
|
|
@@ -3967,19 +4020,12 @@ function validate$1(obj, path = 'PredictionOutputObject') {
|
|
|
3967
4020
|
}
|
|
3968
4021
|
|
|
3969
4022
|
const TTL = 1000;
|
|
3970
|
-
const VERSION = "
|
|
4023
|
+
const VERSION = "c1431b6652fb0e211a1e2149b42f10f4";
|
|
3971
4024
|
function validate(obj, path = 'PredictionResponseRepresentation') {
|
|
3972
4025
|
const v_error = (() => {
|
|
3973
4026
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3974
4027
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3975
4028
|
}
|
|
3976
|
-
if (obj.customPredictionLabel !== undefined) {
|
|
3977
|
-
const obj_customPredictionLabel = obj.customPredictionLabel;
|
|
3978
|
-
const path_customPredictionLabel = path + '.customPredictionLabel';
|
|
3979
|
-
if (typeof obj_customPredictionLabel !== 'string') {
|
|
3980
|
-
return new TypeError('Expected "string" but received "' + typeof obj_customPredictionLabel + '" (at "' + path_customPredictionLabel + '")');
|
|
3981
|
-
}
|
|
3982
|
-
}
|
|
3983
4029
|
if (obj.predictionModel !== undefined) {
|
|
3984
4030
|
const obj_predictionModel = obj.predictionModel;
|
|
3985
4031
|
const path_predictionModel = path + '.predictionModel';
|
|
@@ -4020,7 +4066,7 @@ function validate(obj, path = 'PredictionResponseRepresentation') {
|
|
|
4020
4066
|
}
|
|
4021
4067
|
const obj_status = obj.status;
|
|
4022
4068
|
const path_status = path + '.status';
|
|
4023
|
-
const referencepath_statusValidationError = validate$
|
|
4069
|
+
const referencepath_statusValidationError = validate$g(obj_status, path_status);
|
|
4024
4070
|
if (referencepath_statusValidationError !== null) {
|
|
4025
4071
|
let message = 'Object doesn\'t match Status (at "' + path_status + '")\n';
|
|
4026
4072
|
message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4122,16 +4168,27 @@ function createResourceRequest(config) {
|
|
|
4122
4168
|
|
|
4123
4169
|
const adapterName = 'getPredictions';
|
|
4124
4170
|
const getPredictions_ConfigPropertyMetadata = [
|
|
4125
|
-
generateParamConfigMetadata('
|
|
4171
|
+
generateParamConfigMetadata('maxInsights', false, 2 /* Body */, 3 /* Integer */),
|
|
4172
|
+
generateParamConfigMetadata('predictionModel', true, 2 /* Body */, 0 /* String */),
|
|
4173
|
+
generateParamConfigMetadata('predictionPlatform', false, 2 /* Body */, 0 /* String */),
|
|
4174
|
+
generateParamConfigMetadata('records', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4175
|
+
generateParamConfigMetadata('scoreFilterCriteria', false, 2 /* Body */, 0 /* String */),
|
|
4176
|
+
generateParamConfigMetadata('scoringThreshold', false, 2 /* Body */, 2 /* Number */),
|
|
4177
|
+
generateParamConfigMetadata('sortingOrder', false, 2 /* Body */, 0 /* String */),
|
|
4178
|
+
generateParamConfigMetadata('usecaseName', true, 2 /* Body */, 0 /* String */),
|
|
4126
4179
|
];
|
|
4127
4180
|
const getPredictions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getPredictions_ConfigPropertyMetadata);
|
|
4128
4181
|
const createResourceParams = /*#__PURE__*/ createResourceParams$3(getPredictions_ConfigPropertyMetadata);
|
|
4129
4182
|
function typeCheckConfig(untrustedConfig) {
|
|
4130
4183
|
const config = {};
|
|
4131
|
-
|
|
4132
|
-
const
|
|
4133
|
-
|
|
4134
|
-
|
|
4184
|
+
typeCheckConfig$3(untrustedConfig, config, getPredictions_ConfigPropertyMetadata);
|
|
4185
|
+
const untrustedConfig_records = untrustedConfig.records;
|
|
4186
|
+
const referenceWrappedListValidationError = validate$z(untrustedConfig_records);
|
|
4187
|
+
if (referenceWrappedListValidationError === null) {
|
|
4188
|
+
config.records = untrustedConfig_records;
|
|
4189
|
+
}
|
|
4190
|
+
if (untrustedConfig_records === null) {
|
|
4191
|
+
config.records = untrustedConfig_records;
|
|
4135
4192
|
}
|
|
4136
4193
|
return config;
|
|
4137
4194
|
}
|