@salesforce/lds-adapters-industries-einstein-aiaccelerator 1.308.0-dev1 → 1.308.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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$2 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$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$q(obj, path = 'WrappedList') {
76
+ function validate$y(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$q(obj, path = 'WrappedList') {
115
115
  return v_error === undefined ? null : v_error;
116
116
  }
117
117
 
118
- function validate$p(obj, path = 'NullableColumnMap') {
118
+ function validate$x(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$p(obj, path = 'NullableColumnMap') {
154
154
  return v_error === undefined ? null : v_error;
155
155
  }
156
156
 
157
- function validate$o(obj, path = 'ColumnMapWrap') {
157
+ function validate$w(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$o(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$p(obj_columnMap, path_columnMap);
166
+ const referencepath_columnMapValidationError = validate$x(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$o(obj, path = 'ColumnMapWrap') {
192
192
  return v_error === undefined ? null : v_error;
193
193
  }
194
194
 
195
- function validate$n(obj, path = 'NullableFeatureExtractionParametersMapValue') {
195
+ function validate$v(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$n(obj, path = 'NullableFeatureExtractionParametersMapValue') {
201
201
  return v_error === undefined ? null : v_error;
202
202
  }
203
203
 
204
- function validate$m(obj, path = 'FeatureExtractionParametersMapValue') {
204
+ function validate$u(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$m(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$n(obj_featureExtractionParametersMapValue, path_featureExtractionParametersMapValue);
214
+ const referencepath_featureExtractionParametersMapValueValidationError = validate$v(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$m(obj, path = 'FeatureExtractionParametersMapValue') {
241
241
  return v_error === undefined ? null : v_error;
242
242
  }
243
243
 
244
- function validate$l(obj, path = 'FeatureExtractionParametersList') {
244
+ function validate$t(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$l(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$m(obj_featureExtractionParameters_item, path_featureExtractionParameters_item);
260
+ const referencepath_featureExtractionParameters_itemValidationError = validate$u(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$l(obj, path = 'FeatureExtractionParametersList') {
288
288
  return v_error === undefined ? null : v_error;
289
289
  }
290
290
 
291
- function validate$k(obj, path = 'NullableInsightsSettingsMap') {
291
+ function validate$s(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$k(obj, path = 'NullableInsightsSettingsMap') {
327
327
  return v_error === undefined ? null : v_error;
328
328
  }
329
329
 
330
- function validate$j(obj, path = 'InsightsSettingsMap') {
330
+ function validate$r(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$j(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$k(obj_insightsSettings, path_insightsSettings);
340
+ const referencepath_insightsSettingsValidationError = validate$s(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$j(obj, path = 'InsightsSettingsMap') {
367
367
  return v_error === undefined ? null : v_error;
368
368
  }
369
369
 
370
- function validate$i(obj, path = 'RawDataInputRepresentation') {
370
+ function validate$q(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$i(obj, path = 'RawDataInputRepresentation') {
409
409
  return v_error === undefined ? null : v_error;
410
410
  }
411
411
 
412
- function validate$h(obj, path = 'RawDataInputWrap') {
412
+ function validate$p(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$h(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$i(obj_rawDataInputWrap, path_rawDataInputWrap);
421
+ const referencepath_rawDataInputWrapValidationError = validate$q(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$h(obj, path = 'RawDataInputWrap') {
447
447
  return v_error === undefined ? null : v_error;
448
448
  }
449
449
 
450
- function validate$g(obj, path = 'RawDataList') {
450
+ function validate$o(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$g(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$h(obj_rawData_item, path_rawData_item);
465
+ const referencepath_rawData_itemValidationError = validate$p(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$g(obj, path = 'RawDataList') {
492
492
  return v_error === undefined ? null : v_error;
493
493
  }
494
494
 
495
- function validate$f(obj, path = 'PredictionInputRepresentation') {
495
+ function validate$n(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$f(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$q(obj_columnNames, path_columnNames);
533
+ const referencepath_columnNamesValidationError = validate$y(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$f(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$o(obj_featureColumnMap, path_featureColumnMap);
760
+ const referencepath_featureColumnMapValidationError = validate$w(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$f(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$l(obj_featureExtractionParameters, path_featureExtractionParameters);
791
+ const referencepath_featureExtractionParametersValidationError = validate$t(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$f(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$o(obj_insightColumnMap, path_insightColumnMap);
890
+ const referencepath_insightColumnMapValidationError = validate$w(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$f(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$j(obj_insightsSettings, path_insightsSettings);
921
+ const referencepath_insightsSettingsValidationError = validate$r(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$f(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$g(obj_rawData, path_rawData);
957
+ const referencepath_rawDataValidationError = validate$o(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$f(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$q(obj_records, path_records);
988
+ const referencepath_recordsValidationError = validate$y(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$f(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$o(obj_suggestionColumnMap, path_suggestionColumnMap);
1075
+ const referencepath_suggestionColumnMapValidationError = validate$w(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$f(obj, path = 'PredictionInputRepresentation') {
1116
1116
  return v_error === undefined ? null : v_error;
1117
1117
  }
1118
1118
 
1119
- function validate$e(obj, path = 'ModelFeature') {
1119
+ function validate$m(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$e(obj, path = 'ModelFeature') {
1209
1209
  return v_error === undefined ? null : v_error;
1210
1210
  }
1211
1211
 
1212
- function validate$d(obj, path = 'NullableModel') {
1212
+ function validate$l(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$d(obj, path = 'NullableModel') {
1248
1248
  return v_error === undefined ? null : v_error;
1249
1249
  }
1250
1250
 
1251
- function validate$c(obj, path = 'Column') {
1251
+ function validate$k(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$c(obj, path = 'Column') {
1369
1369
  return v_error === undefined ? null : v_error;
1370
1370
  }
1371
1371
 
1372
- function validate$b(obj, path = 'Insight') {
1372
+ function validate$j(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$b(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$c(obj_columns_item, path_columns_item);
1388
+ const referencepath_columns_itemValidationError = validate$k(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$b(obj, path = 'Insight') {
1419
1419
  return v_error === undefined ? null : v_error;
1420
1420
  }
1421
1421
 
1422
- function validate$a(obj, path = 'Prediction') {
1422
+ function validate$i(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$a(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$b(obj_insights_item, path_insights_item);
1441
+ const referencepath_insights_itemValidationError = validate$j(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$a(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$c(obj_outOfBoundsColumns_item, path_outOfBoundsColumns_item);
1514
+ const referencepath_outOfBoundsColumns_itemValidationError = validate$k(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$a(obj, path = 'Prediction') {
1545
1545
  return v_error === undefined ? null : v_error;
1546
1546
  }
1547
1547
 
1548
- function validate$9(obj, path = 'Suggestion') {
1548
+ function validate$h(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$9(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$c(obj_columns_item, path_columns_item);
1564
+ const referencepath_columns_itemValidationError = validate$k(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$9(obj, path = 'Suggestion') {
1595
1595
  return v_error === undefined ? null : v_error;
1596
1596
  }
1597
1597
 
1598
- function validate$8(obj, path = 'PredictionObject') {
1598
+ function validate$g(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$8(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$d(obj_model, path_model);
1608
+ const referencepath_modelValidationError = validate$l(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$8(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$a(obj_prediction, path_prediction);
1639
+ const referencepath_predictionValidationError = validate$i(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$8(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$9(obj_suggestions_item, path_suggestions_item);
1702
+ const referencepath_suggestions_itemValidationError = validate$h(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$8(obj, path = 'PredictionObject') {
1730
1730
  return v_error === undefined ? null : v_error;
1731
1731
  }
1732
1732
 
1733
- function validate$7(obj, path = 'Status') {
1733
+ function validate$f(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 + '")');
@@ -1749,9 +1749,9 @@ function validate$7(obj, path = 'Status') {
1749
1749
  return v_error === undefined ? null : v_error;
1750
1750
  }
1751
1751
 
1752
- const TTL$1 = 1000;
1753
- const VERSION$1 = "f32ecc98b5cd30fb5680de162a64308a";
1754
- function validate$6(obj, path = 'PredictionOutputRepresentation') {
1752
+ const TTL$2 = 1000;
1753
+ const VERSION$2 = "f32ecc98b5cd30fb5680de162a64308a";
1754
+ function validate$e(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$6(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$e(obj_modelFeatures_item, path_modelFeatures_item);
1929
+ const referencepath_modelFeatures_itemValidationError = validate$m(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$6(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$8(obj_predictions_item, path_predictions_item);
2135
+ const referencepath_predictions_itemValidationError = validate$g(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$6(obj, path = 'PredictionOutputRepresentation') {
2259
2259
  }
2260
2260
  const obj_status = obj.status;
2261
2261
  const path_status = path + '.status';
2262
- const referencepath_statusValidationError = validate$7(obj_status, path_status);
2262
+ const referencepath_statusValidationError = validate$f(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');
@@ -2268,68 +2268,68 @@ function validate$6(obj, path = 'PredictionOutputRepresentation') {
2268
2268
  })();
2269
2269
  return v_error === undefined ? null : v_error;
2270
2270
  }
2271
- const RepresentationType$1 = 'PredictionOutputRepresentation';
2272
- function keyBuilder$1(luvio, config) {
2273
- return keyPrefix + '::' + RepresentationType$1 + ':' + config.status;
2271
+ const RepresentationType$2 = 'PredictionOutputRepresentation';
2272
+ function keyBuilder$2(luvio, config) {
2273
+ return keyPrefix + '::' + RepresentationType$2 + ':' + config.status;
2274
2274
  }
2275
- function keyBuilderFromType$1(luvio, object) {
2275
+ function keyBuilderFromType$2(luvio, object) {
2276
2276
  const keyParams = {
2277
2277
  status: object.status.message
2278
2278
  };
2279
- return keyBuilder$1(luvio, keyParams);
2279
+ return keyBuilder$2(luvio, keyParams);
2280
2280
  }
2281
- function normalize$1(input, existing, path, luvio, store, timestamp) {
2281
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
2282
2282
  return input;
2283
2283
  }
2284
- const select$3 = function PredictionOutputRepresentationSelect() {
2284
+ const select$5 = function PredictionOutputRepresentationSelect() {
2285
2285
  return {
2286
2286
  kind: 'Fragment',
2287
- version: VERSION$1,
2287
+ version: VERSION$2,
2288
2288
  private: [],
2289
2289
  opaque: true
2290
2290
  };
2291
2291
  };
2292
- function equals$1(existing, incoming) {
2292
+ function equals$2(existing, incoming) {
2293
2293
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
2294
2294
  return false;
2295
2295
  }
2296
2296
  return true;
2297
2297
  }
2298
- const ingest$1 = function PredictionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2298
+ const ingest$2 = function PredictionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2299
2299
  if (process.env.NODE_ENV !== 'production') {
2300
- const validateError = validate$6(input);
2300
+ const validateError = validate$e(input);
2301
2301
  if (validateError !== null) {
2302
2302
  throw validateError;
2303
2303
  }
2304
2304
  }
2305
- const key = keyBuilderFromType$1(luvio, input);
2306
- const ttlToUse = TTL$1;
2307
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "Einstein-AIAccelerator", VERSION$1, RepresentationType$1, equals$1);
2305
+ const key = keyBuilderFromType$2(luvio, input);
2306
+ const ttlToUse = TTL$2;
2307
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "Einstein-AIAccelerator", VERSION$2, RepresentationType$2, equals$2);
2308
2308
  return createLink(key);
2309
2309
  };
2310
- function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
2310
+ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
2311
2311
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2312
- const rootKey = keyBuilderFromType$1(luvio, input);
2312
+ const rootKey = keyBuilderFromType$2(luvio, input);
2313
2313
  rootKeySet.set(rootKey, {
2314
2314
  namespace: keyPrefix,
2315
- representationName: RepresentationType$1,
2315
+ representationName: RepresentationType$2,
2316
2316
  mergeable: false
2317
2317
  });
2318
2318
  }
2319
2319
 
2320
- function select$2(luvio, params) {
2321
- return select$3();
2320
+ function select$4(luvio, params) {
2321
+ return select$5();
2322
2322
  }
2323
- function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
2324
- getTypeCacheKeys$1(storeKeyMap, luvio, response);
2323
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
2324
+ getTypeCacheKeys$2(storeKeyMap, luvio, response);
2325
2325
  }
2326
- function ingestSuccess$1(luvio, resourceParams, response) {
2326
+ function ingestSuccess$2(luvio, resourceParams, response) {
2327
2327
  const { body } = response;
2328
- const key = keyBuilderFromType$1(luvio, body);
2329
- luvio.storeIngest(key, ingest$1, body);
2328
+ const key = keyBuilderFromType$2(luvio, body);
2329
+ luvio.storeIngest(key, ingest$2, body);
2330
2330
  const snapshot = luvio.storeLookup({
2331
2331
  recordId: key,
2332
- node: select$2(),
2332
+ node: select$4(),
2333
2333
  variables: {},
2334
2334
  });
2335
2335
  if (process.env.NODE_ENV !== 'production') {
@@ -2340,7 +2340,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
2340
2340
  deepFreeze(snapshot.data);
2341
2341
  return snapshot;
2342
2342
  }
2343
- function createResourceRequest$1(config) {
2343
+ function createResourceRequest$2(config) {
2344
2344
  const headers = {};
2345
2345
  return {
2346
2346
  baseUri: '/services/data/v62.0',
@@ -2354,45 +2354,45 @@ function createResourceRequest$1(config) {
2354
2354
  };
2355
2355
  }
2356
2356
 
2357
- const adapterName$1 = 'predictions';
2357
+ const adapterName$2 = 'predictions';
2358
2358
  const predictions_ConfigPropertyMetadata = [
2359
2359
  generateParamConfigMetadata('predictionInput', true, 2 /* Body */, 4 /* Unsupported */),
2360
2360
  ];
2361
- const predictions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, predictions_ConfigPropertyMetadata);
2362
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$2(predictions_ConfigPropertyMetadata);
2363
- function typeCheckConfig$1(untrustedConfig) {
2361
+ const predictions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, predictions_ConfigPropertyMetadata);
2362
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$3(predictions_ConfigPropertyMetadata);
2363
+ function typeCheckConfig$2(untrustedConfig) {
2364
2364
  const config = {};
2365
2365
  const untrustedConfig_predictionInput = untrustedConfig.predictionInput;
2366
- const referencePredictionInputRepresentationValidationError = validate$f(untrustedConfig_predictionInput);
2366
+ const referencePredictionInputRepresentationValidationError = validate$n(untrustedConfig_predictionInput);
2367
2367
  if (referencePredictionInputRepresentationValidationError === null) {
2368
2368
  config.predictionInput = untrustedConfig_predictionInput;
2369
2369
  }
2370
2370
  return config;
2371
2371
  }
2372
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
2372
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
2373
2373
  if (!untrustedIsObject(untrustedConfig)) {
2374
2374
  return null;
2375
2375
  }
2376
2376
  if (process.env.NODE_ENV !== 'production') {
2377
2377
  validateConfig(untrustedConfig, configPropertyNames);
2378
2378
  }
2379
- const config = typeCheckConfig$1(untrustedConfig);
2379
+ const config = typeCheckConfig$2(untrustedConfig);
2380
2380
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2381
2381
  return null;
2382
2382
  }
2383
2383
  return config;
2384
2384
  }
2385
- function buildNetworkSnapshot$1(luvio, config, options) {
2386
- const resourceParams = createResourceParams$1(config);
2387
- const request = createResourceRequest$1(resourceParams);
2385
+ function buildNetworkSnapshot$2(luvio, config, options) {
2386
+ const resourceParams = createResourceParams$2(config);
2387
+ const request = createResourceRequest$2(resourceParams);
2388
2388
  return luvio.dispatchResourceRequest(request, options)
2389
2389
  .then((response) => {
2390
2390
  return luvio.handleSuccessResponse(() => {
2391
- const snapshot = ingestSuccess$1(luvio, resourceParams, response);
2391
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response);
2392
2392
  return luvio.storeBroadcast().then(() => snapshot);
2393
2393
  }, () => {
2394
2394
  const cache = new StoreKeyMap();
2395
- getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
2395
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
2396
2396
  return cache;
2397
2397
  });
2398
2398
  }, (response) => {
@@ -2402,16 +2402,16 @@ function buildNetworkSnapshot$1(luvio, config, options) {
2402
2402
  }
2403
2403
  const predictionsAdapterFactory = (luvio) => {
2404
2404
  return function predictions(untrustedConfig) {
2405
- const config = validateAdapterConfig$1(untrustedConfig, predictions_ConfigPropertyNames);
2405
+ const config = validateAdapterConfig$2(untrustedConfig, predictions_ConfigPropertyNames);
2406
2406
  // Invalid or incomplete config
2407
2407
  if (config === null) {
2408
2408
  throw new Error('Invalid config for "predictions"');
2409
2409
  }
2410
- return buildNetworkSnapshot$1(luvio, config);
2410
+ return buildNetworkSnapshot$2(luvio, config);
2411
2411
  };
2412
2412
  };
2413
2413
 
2414
- function validate$5(obj, path = 'RecommendationInputRepresentation') {
2414
+ function validate$d(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$5(obj, path = 'RecommendationInputRepresentation') {
2637
2637
  return v_error === undefined ? null : v_error;
2638
2638
  }
2639
2639
 
2640
- function validate$4(obj, path = 'Error') {
2640
+ function validate$c(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$4(obj, path = 'Error') {
2702
2702
  return v_error === undefined ? null : v_error;
2703
2703
  }
2704
2704
 
2705
- function validate$3(obj, path = 'RecommendationActionParam') {
2705
+ function validate$b(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$3(obj, path = 'RecommendationActionParam') {
2774
2774
  return v_error === undefined ? null : v_error;
2775
2775
  }
2776
2776
 
2777
- function validate$2(obj, path = 'Recommendation') {
2777
+ function validate$a(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$2(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$3(obj_actionStrategyParameters_item, path_actionStrategyParameters_item);
2905
+ const referencepath_actionStrategyParameters_itemValidationError = validate$b(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$2(obj, path = 'Recommendation') {
3101
3101
  return v_error === undefined ? null : v_error;
3102
3102
  }
3103
3103
 
3104
- function validate$1(obj, path = 'RcmdStrategyResult') {
3104
+ function validate$9(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$1(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$4(obj_errors_item, path_errors_item);
3120
+ const referencepath_errors_itemValidationError = validate$c(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$1(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$2(obj_recommendations_item, path_recommendations_item);
3215
+ const referencepath_recommendations_itemValidationError = validate$a(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');
@@ -3271,9 +3271,9 @@ function validate$1(obj, path = 'RcmdStrategyResult') {
3271
3271
  return v_error === undefined ? null : v_error;
3272
3272
  }
3273
3273
 
3274
- const TTL = 1000;
3275
- const VERSION = "aaf9d28bb6dd45e46359c8fa29159989";
3276
- function validate(obj, path = 'RecommendationOutputRepresentation') {
3274
+ const TTL$1 = 1000;
3275
+ const VERSION$1 = "aaf9d28bb6dd45e46359c8fa29159989";
3276
+ function validate$8(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(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$1(obj_recommendationStrategyResult_item, path_recommendationStrategyResult_item);
3383
+ const referencepath_recommendationStrategyResult_itemValidationError = validate$9(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(obj, path = 'RecommendationOutputRepresentation') {
3437
3437
  }
3438
3438
  const obj_status = obj.status;
3439
3439
  const path_status = path + '.status';
3440
- const referencepath_statusValidationError = validate$7(obj_status, path_status);
3440
+ const referencepath_statusValidationError = validate$f(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');
@@ -3502,7 +3502,539 @@ function validate(obj, path = 'RecommendationOutputRepresentation') {
3502
3502
  })();
3503
3503
  return v_error === undefined ? null : v_error;
3504
3504
  }
3505
- const RepresentationType = 'RecommendationOutputRepresentation';
3505
+ const RepresentationType$1 = 'RecommendationOutputRepresentation';
3506
+ function keyBuilder$1(luvio, config) {
3507
+ return keyPrefix + '::' + RepresentationType$1 + ':' + config.status;
3508
+ }
3509
+ function keyBuilderFromType$1(luvio, object) {
3510
+ const keyParams = {
3511
+ status: object.status.message
3512
+ };
3513
+ return keyBuilder$1(luvio, keyParams);
3514
+ }
3515
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
3516
+ return input;
3517
+ }
3518
+ const select$3 = function RecommendationOutputRepresentationSelect() {
3519
+ return {
3520
+ kind: 'Fragment',
3521
+ version: VERSION$1,
3522
+ private: [],
3523
+ opaque: true
3524
+ };
3525
+ };
3526
+ function equals$1(existing, incoming) {
3527
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
3528
+ return false;
3529
+ }
3530
+ return true;
3531
+ }
3532
+ const ingest$1 = function RecommendationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
3533
+ if (process.env.NODE_ENV !== 'production') {
3534
+ const validateError = validate$8(input);
3535
+ if (validateError !== null) {
3536
+ throw validateError;
3537
+ }
3538
+ }
3539
+ const key = keyBuilderFromType$1(luvio, input);
3540
+ const ttlToUse = TTL$1;
3541
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "Einstein-AIAccelerator", VERSION$1, RepresentationType$1, equals$1);
3542
+ return createLink(key);
3543
+ };
3544
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
3545
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
3546
+ const rootKey = keyBuilderFromType$1(luvio, input);
3547
+ rootKeySet.set(rootKey, {
3548
+ namespace: keyPrefix,
3549
+ representationName: RepresentationType$1,
3550
+ mergeable: false
3551
+ });
3552
+ }
3553
+
3554
+ function select$2(luvio, params) {
3555
+ return select$3();
3556
+ }
3557
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
3558
+ getTypeCacheKeys$1(storeKeyMap, luvio, response);
3559
+ }
3560
+ function ingestSuccess$1(luvio, resourceParams, response) {
3561
+ const { body } = response;
3562
+ const key = keyBuilderFromType$1(luvio, body);
3563
+ luvio.storeIngest(key, ingest$1, body);
3564
+ const snapshot = luvio.storeLookup({
3565
+ recordId: key,
3566
+ node: select$2(),
3567
+ variables: {},
3568
+ });
3569
+ if (process.env.NODE_ENV !== 'production') {
3570
+ if (snapshot.state !== 'Fulfilled') {
3571
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
3572
+ }
3573
+ }
3574
+ deepFreeze(snapshot.data);
3575
+ return snapshot;
3576
+ }
3577
+ function createResourceRequest$1(config) {
3578
+ const headers = {};
3579
+ return {
3580
+ baseUri: '/services/data/v62.0',
3581
+ basePath: '/connect/aiaccelerator/recommendations',
3582
+ method: 'post',
3583
+ body: config.body,
3584
+ urlParams: {},
3585
+ queryParams: {},
3586
+ headers,
3587
+ priority: 'normal',
3588
+ };
3589
+ }
3590
+
3591
+ const adapterName$1 = 'fetchRecommendations';
3592
+ const fetchRecommendations_ConfigPropertyMetadata = [
3593
+ generateParamConfigMetadata('recommendationInput', true, 2 /* Body */, 4 /* Unsupported */),
3594
+ ];
3595
+ const fetchRecommendations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, fetchRecommendations_ConfigPropertyMetadata);
3596
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$3(fetchRecommendations_ConfigPropertyMetadata);
3597
+ function typeCheckConfig$1(untrustedConfig) {
3598
+ const config = {};
3599
+ const untrustedConfig_recommendationInput = untrustedConfig.recommendationInput;
3600
+ const referenceRecommendationInputRepresentationValidationError = validate$d(untrustedConfig_recommendationInput);
3601
+ if (referenceRecommendationInputRepresentationValidationError === null) {
3602
+ config.recommendationInput = untrustedConfig_recommendationInput;
3603
+ }
3604
+ return config;
3605
+ }
3606
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
3607
+ if (!untrustedIsObject(untrustedConfig)) {
3608
+ return null;
3609
+ }
3610
+ if (process.env.NODE_ENV !== 'production') {
3611
+ validateConfig(untrustedConfig, configPropertyNames);
3612
+ }
3613
+ const config = typeCheckConfig$1(untrustedConfig);
3614
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
3615
+ return null;
3616
+ }
3617
+ return config;
3618
+ }
3619
+ function buildNetworkSnapshot$1(luvio, config, options) {
3620
+ const resourceParams = createResourceParams$1(config);
3621
+ const request = createResourceRequest$1(resourceParams);
3622
+ return luvio.dispatchResourceRequest(request, options)
3623
+ .then((response) => {
3624
+ return luvio.handleSuccessResponse(() => {
3625
+ const snapshot = ingestSuccess$1(luvio, resourceParams, response);
3626
+ return luvio.storeBroadcast().then(() => snapshot);
3627
+ }, () => {
3628
+ const cache = new StoreKeyMap();
3629
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
3630
+ return cache;
3631
+ });
3632
+ }, (response) => {
3633
+ deepFreeze(response);
3634
+ throw response;
3635
+ });
3636
+ }
3637
+ const fetchRecommendationsAdapterFactory = (luvio) => {
3638
+ return function fetchRecommendations(untrustedConfig) {
3639
+ const config = validateAdapterConfig$1(untrustedConfig, fetchRecommendations_ConfigPropertyNames);
3640
+ // Invalid or incomplete config
3641
+ if (config === null) {
3642
+ throw new Error('Invalid config for "fetchRecommendations"');
3643
+ }
3644
+ return buildNetworkSnapshot$1(luvio, config);
3645
+ };
3646
+ };
3647
+
3648
+ function validate$7(obj, path = 'PredictionRequestRepresentation') {
3649
+ const v_error = (() => {
3650
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3651
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3652
+ }
3653
+ if (obj.maxInsights !== undefined) {
3654
+ const obj_maxInsights = obj.maxInsights;
3655
+ const path_maxInsights = path + '.maxInsights';
3656
+ if (typeof obj_maxInsights !== 'number' || (typeof obj_maxInsights === 'number' && Math.floor(obj_maxInsights) !== obj_maxInsights)) {
3657
+ return new TypeError('Expected "integer" but received "' + typeof obj_maxInsights + '" (at "' + path_maxInsights + '")');
3658
+ }
3659
+ }
3660
+ if (obj.predictionModel !== undefined) {
3661
+ const obj_predictionModel = obj.predictionModel;
3662
+ const path_predictionModel = path + '.predictionModel';
3663
+ if (typeof obj_predictionModel !== 'string') {
3664
+ return new TypeError('Expected "string" but received "' + typeof obj_predictionModel + '" (at "' + path_predictionModel + '")');
3665
+ }
3666
+ }
3667
+ if (obj.predictionPlatform !== undefined) {
3668
+ const obj_predictionPlatform = obj.predictionPlatform;
3669
+ const path_predictionPlatform = path + '.predictionPlatform';
3670
+ if (typeof obj_predictionPlatform !== 'string') {
3671
+ return new TypeError('Expected "string" but received "' + typeof obj_predictionPlatform + '" (at "' + path_predictionPlatform + '")');
3672
+ }
3673
+ }
3674
+ const obj_records = obj.records;
3675
+ const path_records = path + '.records';
3676
+ let obj_records_union0 = null;
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');
3682
+ return new TypeError(message);
3683
+ }
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
+ }
3697
+ if (obj_records_union0 && obj_records_union1) {
3698
+ let message = 'Object doesn\'t match union (at "' + path_records + '")';
3699
+ message += '\n' + obj_records_union0.split('\n').map((line) => '\t' + line).join('\n');
3700
+ message += '\n' + obj_records_union1.split('\n').map((line) => '\t' + line).join('\n');
3701
+ return new TypeError(message);
3702
+ }
3703
+ if (obj.scoreFilterCriteria !== undefined) {
3704
+ const obj_scoreFilterCriteria = obj.scoreFilterCriteria;
3705
+ const path_scoreFilterCriteria = path + '.scoreFilterCriteria';
3706
+ if (typeof obj_scoreFilterCriteria !== 'string') {
3707
+ return new TypeError('Expected "string" but received "' + typeof obj_scoreFilterCriteria + '" (at "' + path_scoreFilterCriteria + '")');
3708
+ }
3709
+ }
3710
+ if (obj.scoringThreshold !== undefined) {
3711
+ const obj_scoringThreshold = obj.scoringThreshold;
3712
+ const path_scoringThreshold = path + '.scoringThreshold';
3713
+ if (typeof obj_scoringThreshold !== 'number') {
3714
+ return new TypeError('Expected "number" but received "' + typeof obj_scoringThreshold + '" (at "' + path_scoringThreshold + '")');
3715
+ }
3716
+ }
3717
+ if (obj.sortingOrder !== undefined) {
3718
+ const obj_sortingOrder = obj.sortingOrder;
3719
+ const path_sortingOrder = path + '.sortingOrder';
3720
+ if (typeof obj_sortingOrder !== 'string') {
3721
+ return new TypeError('Expected "string" but received "' + typeof obj_sortingOrder + '" (at "' + path_sortingOrder + '")');
3722
+ }
3723
+ }
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
+ })();
3730
+ return v_error === undefined ? null : v_error;
3731
+ }
3732
+
3733
+ function validate$6(obj, path = 'PredictorField') {
3734
+ const v_error = (() => {
3735
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3736
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3737
+ }
3738
+ if (obj.customText !== undefined) {
3739
+ const obj_customText = obj.customText;
3740
+ const path_customText = path + '.customText';
3741
+ if (typeof obj_customText !== 'string') {
3742
+ return new TypeError('Expected "string" but received "' + typeof obj_customText + '" (at "' + path_customText + '")');
3743
+ }
3744
+ }
3745
+ if (obj.label !== undefined) {
3746
+ const obj_label = obj.label;
3747
+ const path_label = path + '.label';
3748
+ if (typeof obj_label !== 'string') {
3749
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
3750
+ }
3751
+ }
3752
+ if (obj.name !== undefined) {
3753
+ const obj_name = obj.name;
3754
+ const path_name = path + '.name';
3755
+ if (typeof obj_name !== 'string') {
3756
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
3757
+ }
3758
+ }
3759
+ if (obj.prescribedValue !== undefined) {
3760
+ const obj_prescribedValue = obj.prescribedValue;
3761
+ const path_prescribedValue = path + '.prescribedValue';
3762
+ if (typeof obj_prescribedValue !== 'string') {
3763
+ return new TypeError('Expected "string" but received "' + typeof obj_prescribedValue + '" (at "' + path_prescribedValue + '")');
3764
+ }
3765
+ }
3766
+ if (obj.value !== undefined) {
3767
+ const obj_value = obj.value;
3768
+ const path_value = path + '.value';
3769
+ if (typeof obj_value !== 'string') {
3770
+ return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
3771
+ }
3772
+ }
3773
+ })();
3774
+ return v_error === undefined ? null : v_error;
3775
+ }
3776
+
3777
+ function validate$5(obj, path = 'Predictor') {
3778
+ const v_error = (() => {
3779
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3780
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3781
+ }
3782
+ if (obj.contributionValue !== undefined) {
3783
+ const obj_contributionValue = obj.contributionValue;
3784
+ const path_contributionValue = path + '.contributionValue';
3785
+ if (typeof obj_contributionValue !== 'number') {
3786
+ return new TypeError('Expected "number" but received "' + typeof obj_contributionValue + '" (at "' + path_contributionValue + '")');
3787
+ }
3788
+ }
3789
+ if (obj.predictorFields !== undefined) {
3790
+ const obj_predictorFields = obj.predictorFields;
3791
+ const path_predictorFields = path + '.predictorFields';
3792
+ if (!ArrayIsArray(obj_predictorFields)) {
3793
+ return new TypeError('Expected "array" but received "' + typeof obj_predictorFields + '" (at "' + path_predictorFields + '")');
3794
+ }
3795
+ for (let i = 0; i < obj_predictorFields.length; i++) {
3796
+ const obj_predictorFields_item = obj_predictorFields[i];
3797
+ const path_predictorFields_item = path_predictorFields + '[' + i + ']';
3798
+ const referencepath_predictorFields_itemValidationError = validate$6(obj_predictorFields_item, path_predictorFields_item);
3799
+ if (referencepath_predictorFields_itemValidationError !== null) {
3800
+ let message = 'Object doesn\'t match PredictorField (at "' + path_predictorFields_item + '")\n';
3801
+ message += referencepath_predictorFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3802
+ return new TypeError(message);
3803
+ }
3804
+ }
3805
+ }
3806
+ })();
3807
+ return v_error === undefined ? null : v_error;
3808
+ }
3809
+
3810
+ function validate$4(obj, path = 'PredictionOutput') {
3811
+ const v_error = (() => {
3812
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3813
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3814
+ }
3815
+ if (obj.predictionScore !== undefined) {
3816
+ const obj_predictionScore = obj.predictionScore;
3817
+ const path_predictionScore = path + '.predictionScore';
3818
+ if (typeof obj_predictionScore !== 'number') {
3819
+ return new TypeError('Expected "number" but received "' + typeof obj_predictionScore + '" (at "' + path_predictionScore + '")');
3820
+ }
3821
+ }
3822
+ if (obj.topPredictors !== undefined) {
3823
+ const obj_topPredictors = obj.topPredictors;
3824
+ const path_topPredictors = path + '.topPredictors';
3825
+ if (!ArrayIsArray(obj_topPredictors)) {
3826
+ return new TypeError('Expected "array" but received "' + typeof obj_topPredictors + '" (at "' + path_topPredictors + '")');
3827
+ }
3828
+ for (let i = 0; i < obj_topPredictors.length; i++) {
3829
+ const obj_topPredictors_item = obj_topPredictors[i];
3830
+ const path_topPredictors_item = path_topPredictors + '[' + i + ']';
3831
+ const referencepath_topPredictors_itemValidationError = validate$5(obj_topPredictors_item, path_topPredictors_item);
3832
+ if (referencepath_topPredictors_itemValidationError !== null) {
3833
+ let message = 'Object doesn\'t match Predictor (at "' + path_topPredictors_item + '")\n';
3834
+ message += referencepath_topPredictors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3835
+ return new TypeError(message);
3836
+ }
3837
+ }
3838
+ }
3839
+ })();
3840
+ return v_error === undefined ? null : v_error;
3841
+ }
3842
+
3843
+ function validate$3(obj, path = 'FieldCount') {
3844
+ const v_error = (() => {
3845
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3846
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3847
+ }
3848
+ if (obj.count !== undefined) {
3849
+ const obj_count = obj.count;
3850
+ const path_count = path + '.count';
3851
+ if (typeof obj_count !== 'number' || (typeof obj_count === 'number' && Math.floor(obj_count) !== obj_count)) {
3852
+ return new TypeError('Expected "integer" but received "' + typeof obj_count + '" (at "' + path_count + '")');
3853
+ }
3854
+ }
3855
+ if (obj.fieldValue !== undefined) {
3856
+ const obj_fieldValue = obj.fieldValue;
3857
+ const path_fieldValue = path + '.fieldValue';
3858
+ if (typeof obj_fieldValue !== 'string') {
3859
+ return new TypeError('Expected "string" but received "' + typeof obj_fieldValue + '" (at "' + path_fieldValue + '")');
3860
+ }
3861
+ }
3862
+ })();
3863
+ return v_error === undefined ? null : v_error;
3864
+ }
3865
+
3866
+ function validate$2(obj, path = 'PredictionWarning') {
3867
+ const v_error = (() => {
3868
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3869
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3870
+ }
3871
+ if (obj.missingFieldNames !== undefined) {
3872
+ const obj_missingFieldNames = obj.missingFieldNames;
3873
+ const path_missingFieldNames = path + '.missingFieldNames';
3874
+ if (!ArrayIsArray(obj_missingFieldNames)) {
3875
+ return new TypeError('Expected "array" but received "' + typeof obj_missingFieldNames + '" (at "' + path_missingFieldNames + '")');
3876
+ }
3877
+ for (let i = 0; i < obj_missingFieldNames.length; i++) {
3878
+ const obj_missingFieldNames_item = obj_missingFieldNames[i];
3879
+ const path_missingFieldNames_item = path_missingFieldNames + '[' + i + ']';
3880
+ if (typeof obj_missingFieldNames_item !== 'string') {
3881
+ return new TypeError('Expected "string" but received "' + typeof obj_missingFieldNames_item + '" (at "' + path_missingFieldNames_item + '")');
3882
+ }
3883
+ }
3884
+ }
3885
+ if (obj.outOfBoundFields !== undefined) {
3886
+ const obj_outOfBoundFields = obj.outOfBoundFields;
3887
+ const path_outOfBoundFields = path + '.outOfBoundFields';
3888
+ if (!ArrayIsArray(obj_outOfBoundFields)) {
3889
+ return new TypeError('Expected "array" but received "' + typeof obj_outOfBoundFields + '" (at "' + path_outOfBoundFields + '")');
3890
+ }
3891
+ for (let i = 0; i < obj_outOfBoundFields.length; i++) {
3892
+ const obj_outOfBoundFields_item = obj_outOfBoundFields[i];
3893
+ const path_outOfBoundFields_item = path_outOfBoundFields + '[' + i + ']';
3894
+ const referencepath_outOfBoundFields_itemValidationError = validate$3(obj_outOfBoundFields_item, path_outOfBoundFields_item);
3895
+ if (referencepath_outOfBoundFields_itemValidationError !== null) {
3896
+ let message = 'Object doesn\'t match FieldCount (at "' + path_outOfBoundFields_item + '")\n';
3897
+ message += referencepath_outOfBoundFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3898
+ return new TypeError(message);
3899
+ }
3900
+ }
3901
+ }
3902
+ })();
3903
+ return v_error === undefined ? null : v_error;
3904
+ }
3905
+
3906
+ function validate$1(obj, path = 'PredictionOutputObject') {
3907
+ const v_error = (() => {
3908
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3909
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3910
+ }
3911
+ if (obj.errors !== undefined) {
3912
+ const obj_errors = obj.errors;
3913
+ const path_errors = path + '.errors';
3914
+ if (!ArrayIsArray(obj_errors)) {
3915
+ return new TypeError('Expected "array" but received "' + typeof obj_errors + '" (at "' + path_errors + '")');
3916
+ }
3917
+ for (let i = 0; i < obj_errors.length; i++) {
3918
+ const obj_errors_item = obj_errors[i];
3919
+ const path_errors_item = path_errors + '[' + i + ']';
3920
+ const referencepath_errors_itemValidationError = validate$c(obj_errors_item, path_errors_item);
3921
+ if (referencepath_errors_itemValidationError !== null) {
3922
+ let message = 'Object doesn\'t match Error (at "' + path_errors_item + '")\n';
3923
+ message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3924
+ return new TypeError(message);
3925
+ }
3926
+ }
3927
+ }
3928
+ const obj_isSuccess = obj.isSuccess;
3929
+ const path_isSuccess = path + '.isSuccess';
3930
+ if (typeof obj_isSuccess !== 'string') {
3931
+ return new TypeError('Expected "string" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
3932
+ }
3933
+ if (obj.predictionOutput !== undefined) {
3934
+ const obj_predictionOutput = obj.predictionOutput;
3935
+ const path_predictionOutput = path + '.predictionOutput';
3936
+ if (!ArrayIsArray(obj_predictionOutput)) {
3937
+ return new TypeError('Expected "array" but received "' + typeof obj_predictionOutput + '" (at "' + path_predictionOutput + '")');
3938
+ }
3939
+ for (let i = 0; i < obj_predictionOutput.length; i++) {
3940
+ const obj_predictionOutput_item = obj_predictionOutput[i];
3941
+ const path_predictionOutput_item = path_predictionOutput + '[' + i + ']';
3942
+ const referencepath_predictionOutput_itemValidationError = validate$4(obj_predictionOutput_item, path_predictionOutput_item);
3943
+ if (referencepath_predictionOutput_itemValidationError !== null) {
3944
+ let message = 'Object doesn\'t match PredictionOutput (at "' + path_predictionOutput_item + '")\n';
3945
+ message += referencepath_predictionOutput_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3946
+ return new TypeError(message);
3947
+ }
3948
+ }
3949
+ }
3950
+ if (obj.predictionWarning !== undefined) {
3951
+ const obj_predictionWarning = obj.predictionWarning;
3952
+ const path_predictionWarning = path + '.predictionWarning';
3953
+ const referencepath_predictionWarningValidationError = validate$2(obj_predictionWarning, path_predictionWarning);
3954
+ if (referencepath_predictionWarningValidationError !== null) {
3955
+ let message = 'Object doesn\'t match PredictionWarning (at "' + path_predictionWarning + '")\n';
3956
+ message += referencepath_predictionWarningValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3957
+ return new TypeError(message);
3958
+ }
3959
+ }
3960
+ const obj_recordId = obj.recordId;
3961
+ const path_recordId = path + '.recordId';
3962
+ if (typeof obj_recordId !== 'string') {
3963
+ return new TypeError('Expected "string" but received "' + typeof obj_recordId + '" (at "' + path_recordId + '")');
3964
+ }
3965
+ })();
3966
+ return v_error === undefined ? null : v_error;
3967
+ }
3968
+
3969
+ const TTL = 1000;
3970
+ const VERSION = "b13c8b0381776630589477a43e4eaa6c";
3971
+ function validate(obj, path = 'PredictionResponseRepresentation') {
3972
+ const v_error = (() => {
3973
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3974
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3975
+ }
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
+ if (obj.predictionModel !== undefined) {
3984
+ const obj_predictionModel = obj.predictionModel;
3985
+ const path_predictionModel = path + '.predictionModel';
3986
+ if (typeof obj_predictionModel !== 'string') {
3987
+ return new TypeError('Expected "string" but received "' + typeof obj_predictionModel + '" (at "' + path_predictionModel + '")');
3988
+ }
3989
+ }
3990
+ if (obj.predictionOutputObjects !== undefined) {
3991
+ const obj_predictionOutputObjects = obj.predictionOutputObjects;
3992
+ const path_predictionOutputObjects = path + '.predictionOutputObjects';
3993
+ if (!ArrayIsArray(obj_predictionOutputObjects)) {
3994
+ return new TypeError('Expected "array" but received "' + typeof obj_predictionOutputObjects + '" (at "' + path_predictionOutputObjects + '")');
3995
+ }
3996
+ for (let i = 0; i < obj_predictionOutputObjects.length; i++) {
3997
+ const obj_predictionOutputObjects_item = obj_predictionOutputObjects[i];
3998
+ const path_predictionOutputObjects_item = path_predictionOutputObjects + '[' + i + ']';
3999
+ const referencepath_predictionOutputObjects_itemValidationError = validate$1(obj_predictionOutputObjects_item, path_predictionOutputObjects_item);
4000
+ if (referencepath_predictionOutputObjects_itemValidationError !== null) {
4001
+ let message = 'Object doesn\'t match PredictionOutputObject (at "' + path_predictionOutputObjects_item + '")\n';
4002
+ message += referencepath_predictionOutputObjects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
4003
+ return new TypeError(message);
4004
+ }
4005
+ }
4006
+ }
4007
+ if (obj.predictionPlatform !== undefined) {
4008
+ const obj_predictionPlatform = obj.predictionPlatform;
4009
+ const path_predictionPlatform = path + '.predictionPlatform';
4010
+ if (typeof obj_predictionPlatform !== 'string') {
4011
+ return new TypeError('Expected "string" but received "' + typeof obj_predictionPlatform + '" (at "' + path_predictionPlatform + '")');
4012
+ }
4013
+ }
4014
+ if (obj.predictionType !== undefined) {
4015
+ const obj_predictionType = obj.predictionType;
4016
+ const path_predictionType = path + '.predictionType';
4017
+ if (typeof obj_predictionType !== 'string') {
4018
+ return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
4019
+ }
4020
+ }
4021
+ const obj_status = obj.status;
4022
+ const path_status = path + '.status';
4023
+ const referencepath_statusValidationError = validate$f(obj_status, path_status);
4024
+ if (referencepath_statusValidationError !== null) {
4025
+ let message = 'Object doesn\'t match Status (at "' + path_status + '")\n';
4026
+ message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
4027
+ return new TypeError(message);
4028
+ }
4029
+ const obj_usecaseName = obj.usecaseName;
4030
+ const path_usecaseName = path + '.usecaseName';
4031
+ if (typeof obj_usecaseName !== 'string') {
4032
+ return new TypeError('Expected "string" but received "' + typeof obj_usecaseName + '" (at "' + path_usecaseName + '")');
4033
+ }
4034
+ })();
4035
+ return v_error === undefined ? null : v_error;
4036
+ }
4037
+ const RepresentationType = 'PredictionResponseRepresentation';
3506
4038
  function keyBuilder(luvio, config) {
3507
4039
  return keyPrefix + '::' + RepresentationType + ':' + config.status;
3508
4040
  }
@@ -3515,7 +4047,7 @@ function keyBuilderFromType(luvio, object) {
3515
4047
  function normalize(input, existing, path, luvio, store, timestamp) {
3516
4048
  return input;
3517
4049
  }
3518
- const select$1 = function RecommendationOutputRepresentationSelect() {
4050
+ const select$1 = function PredictionResponseRepresentationSelect() {
3519
4051
  return {
3520
4052
  kind: 'Fragment',
3521
4053
  version: VERSION,
@@ -3529,7 +4061,7 @@ function equals(existing, incoming) {
3529
4061
  }
3530
4062
  return true;
3531
4063
  }
3532
- const ingest = function RecommendationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
4064
+ const ingest = function PredictionResponseRepresentationIngest(input, path, luvio, store, timestamp) {
3533
4065
  if (process.env.NODE_ENV !== 'production') {
3534
4066
  const validateError = validate(input);
3535
4067
  if (validateError !== null) {
@@ -3578,7 +4110,7 @@ function createResourceRequest(config) {
3578
4110
  const headers = {};
3579
4111
  return {
3580
4112
  baseUri: '/services/data/v62.0',
3581
- basePath: '/connect/aiaccelerator/recommendations',
4113
+ basePath: '/connect/aiaccelerator/v2/predictions',
3582
4114
  method: 'post',
3583
4115
  body: config.body,
3584
4116
  urlParams: {},
@@ -3588,18 +4120,18 @@ function createResourceRequest(config) {
3588
4120
  };
3589
4121
  }
3590
4122
 
3591
- const adapterName = 'fetchRecommendations';
3592
- const fetchRecommendations_ConfigPropertyMetadata = [
3593
- generateParamConfigMetadata('recommendationInput', true, 2 /* Body */, 4 /* Unsupported */),
4123
+ const adapterName = 'getPredictions';
4124
+ const getPredictions_ConfigPropertyMetadata = [
4125
+ generateParamConfigMetadata('predictionRequest', true, 2 /* Body */, 4 /* Unsupported */),
3594
4126
  ];
3595
- const fetchRecommendations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, fetchRecommendations_ConfigPropertyMetadata);
3596
- const createResourceParams = /*#__PURE__*/ createResourceParams$2(fetchRecommendations_ConfigPropertyMetadata);
4127
+ const getPredictions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getPredictions_ConfigPropertyMetadata);
4128
+ const createResourceParams = /*#__PURE__*/ createResourceParams$3(getPredictions_ConfigPropertyMetadata);
3597
4129
  function typeCheckConfig(untrustedConfig) {
3598
4130
  const config = {};
3599
- const untrustedConfig_recommendationInput = untrustedConfig.recommendationInput;
3600
- const referenceRecommendationInputRepresentationValidationError = validate$5(untrustedConfig_recommendationInput);
3601
- if (referenceRecommendationInputRepresentationValidationError === null) {
3602
- config.recommendationInput = untrustedConfig_recommendationInput;
4131
+ const untrustedConfig_predictionRequest = untrustedConfig.predictionRequest;
4132
+ const referencePredictionRequestRepresentationValidationError = validate$7(untrustedConfig_predictionRequest);
4133
+ if (referencePredictionRequestRepresentationValidationError === null) {
4134
+ config.predictionRequest = untrustedConfig_predictionRequest;
3603
4135
  }
3604
4136
  return config;
3605
4137
  }
@@ -3634,15 +4166,15 @@ function buildNetworkSnapshot(luvio, config, options) {
3634
4166
  throw response;
3635
4167
  });
3636
4168
  }
3637
- const fetchRecommendationsAdapterFactory = (luvio) => {
3638
- return function fetchRecommendations(untrustedConfig) {
3639
- const config = validateAdapterConfig(untrustedConfig, fetchRecommendations_ConfigPropertyNames);
4169
+ const getPredictionsAdapterFactory = (luvio) => {
4170
+ return function getPredictions(untrustedConfig) {
4171
+ const config = validateAdapterConfig(untrustedConfig, getPredictions_ConfigPropertyNames);
3640
4172
  // Invalid or incomplete config
3641
4173
  if (config === null) {
3642
- throw new Error('Invalid config for "fetchRecommendations"');
4174
+ throw new Error('Invalid config for "getPredictions"');
3643
4175
  }
3644
4176
  return buildNetworkSnapshot(luvio, config);
3645
4177
  };
3646
4178
  };
3647
4179
 
3648
- export { fetchRecommendationsAdapterFactory, predictionsAdapterFactory };
4180
+ export { fetchRecommendationsAdapterFactory, getPredictionsAdapterFactory, predictionsAdapterFactory };