@salesforce/lds-adapters-cdp-personalization-service 1.366.0 → 1.368.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.
@@ -148,7 +148,7 @@ function createLink(ref) {
148
148
  };
149
149
  }
150
150
 
151
- function validate$m(obj, path = 'PersonalizationAttributeValueInputRepresentation') {
151
+ function validate$k(obj, path = 'PersonalizationAttributeValueInputRepresentation') {
152
152
  const v_error = (() => {
153
153
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
154
154
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -239,7 +239,7 @@ function validate$m(obj, path = 'PersonalizationAttributeValueInputRepresentatio
239
239
  return v_error === undefined ? null : v_error;
240
240
  }
241
241
 
242
- function validate$l(obj, path = 'PersonalizationDecisionInputRepresentation') {
242
+ function validate$j(obj, path = 'PersonalizationDecisionInputRepresentation') {
243
243
  const v_error = (() => {
244
244
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
245
245
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -253,7 +253,7 @@ function validate$l(obj, path = 'PersonalizationDecisionInputRepresentation') {
253
253
  for (let i = 0; i < obj_attributeValues.length; i++) {
254
254
  const obj_attributeValues_item = obj_attributeValues[i];
255
255
  const path_attributeValues_item = path_attributeValues + '[' + i + ']';
256
- const referencepath_attributeValues_itemValidationError = validate$m(obj_attributeValues_item, path_attributeValues_item);
256
+ const referencepath_attributeValues_itemValidationError = validate$k(obj_attributeValues_item, path_attributeValues_item);
257
257
  if (referencepath_attributeValues_itemValidationError !== null) {
258
258
  let message = 'Object doesn\'t match PersonalizationAttributeValueInputRepresentation (at "' + path_attributeValues_item + '")\n';
259
259
  message += referencepath_attributeValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -427,8 +427,8 @@ function validate$l(obj, path = 'PersonalizationDecisionInputRepresentation') {
427
427
  return v_error === undefined ? null : v_error;
428
428
  }
429
429
 
430
- const VERSION$e = "52ea9c14b7a747a28cedbcff0e7ab169";
431
- function validate$k(obj, path = 'PersonalizationAttributeValueRepresentation') {
430
+ const VERSION$c = "52ea9c14b7a747a28cedbcff0e7ab169";
431
+ function validate$i(obj, path = 'PersonalizationAttributeValueRepresentation') {
432
432
  const v_error = (() => {
433
433
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
434
434
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -514,10 +514,10 @@ function validate$k(obj, path = 'PersonalizationAttributeValueRepresentation') {
514
514
  })();
515
515
  return v_error === undefined ? null : v_error;
516
516
  }
517
- const select$m = function PersonalizationAttributeValueRepresentationSelect() {
517
+ const select$k = function PersonalizationAttributeValueRepresentationSelect() {
518
518
  return {
519
519
  kind: 'Fragment',
520
- version: VERSION$e,
520
+ version: VERSION$c,
521
521
  private: [],
522
522
  selections: [
523
523
  {
@@ -535,7 +535,7 @@ const select$m = function PersonalizationAttributeValueRepresentationSelect() {
535
535
  ]
536
536
  };
537
537
  };
538
- function equals$e(existing, incoming) {
538
+ function equals$c(existing, incoming) {
539
539
  const existing_attributeEnum = existing.attributeEnum;
540
540
  const incoming_attributeEnum = incoming.attributeEnum;
541
541
  if (!(existing_attributeEnum === incoming_attributeEnum)) {
@@ -554,7 +554,7 @@ function equals$e(existing, incoming) {
554
554
  return true;
555
555
  }
556
556
 
557
- function validate$j(obj, path = 'FiltersWrapRepresentation') {
557
+ function validate$h(obj, path = 'FiltersWrapRepresentation') {
558
558
  const v_error = (() => {
559
559
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
560
560
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -633,7 +633,7 @@ function validate$j(obj, path = 'FiltersWrapRepresentation') {
633
633
  return v_error === undefined ? null : v_error;
634
634
  }
635
635
 
636
- function validate$i(obj, path = 'SubjectRepresentation') {
636
+ function validate$g(obj, path = 'SubjectRepresentation') {
637
637
  const v_error = (() => {
638
638
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
639
639
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -752,8 +752,8 @@ function validate$i(obj, path = 'SubjectRepresentation') {
752
752
  return v_error === undefined ? null : v_error;
753
753
  }
754
754
 
755
- const VERSION$d = "089c2877ffa367e376fe74f8d358ffa8";
756
- function validate$h(obj, path = 'FilterRepresentation') {
755
+ const VERSION$b = "089c2877ffa367e376fe74f8d358ffa8";
756
+ function validate$f(obj, path = 'FilterRepresentation') {
757
757
  const v_error = (() => {
758
758
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
759
759
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -791,7 +791,7 @@ function validate$h(obj, path = 'FilterRepresentation') {
791
791
  const path_comparison = path + '.comparison';
792
792
  let obj_comparison_union0 = null;
793
793
  const obj_comparison_union0_error = (() => {
794
- const referencepath_comparisonValidationError = validate$h(obj_comparison, path_comparison);
794
+ const referencepath_comparisonValidationError = validate$f(obj_comparison, path_comparison);
795
795
  if (referencepath_comparisonValidationError !== null) {
796
796
  let message = 'Object doesn\'t match FilterRepresentation (at "' + path_comparison + '")\n';
797
797
  message += referencepath_comparisonValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -822,7 +822,7 @@ function validate$h(obj, path = 'FilterRepresentation') {
822
822
  const path_filter = path + '.filter';
823
823
  let obj_filter_union0 = null;
824
824
  const obj_filter_union0_error = (() => {
825
- const referencepath_filterValidationError = validate$j(obj_filter, path_filter);
825
+ const referencepath_filterValidationError = validate$h(obj_filter, path_filter);
826
826
  if (referencepath_filterValidationError !== null) {
827
827
  let message = 'Object doesn\'t match FiltersWrapRepresentation (at "' + path_filter + '")\n';
828
828
  message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -859,7 +859,7 @@ function validate$h(obj, path = 'FilterRepresentation') {
859
859
  const path_filters_item = path_filters + '[' + i + ']';
860
860
  let obj_filters_item_union0 = null;
861
861
  const obj_filters_item_union0_error = (() => {
862
- const referencepath_filters_itemValidationError = validate$h(obj_filters_item, path_filters_item);
862
+ const referencepath_filters_itemValidationError = validate$f(obj_filters_item, path_filters_item);
863
863
  if (referencepath_filters_itemValidationError !== null) {
864
864
  let message = 'Object doesn\'t match FilterRepresentation (at "' + path_filters_item + '")\n';
865
865
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -919,7 +919,7 @@ function validate$h(obj, path = 'FilterRepresentation') {
919
919
  const path_metric = path + '.metric';
920
920
  let obj_metric_union0 = null;
921
921
  const obj_metric_union0_error = (() => {
922
- const referencepath_metricValidationError = validate$i(obj_metric, path_metric);
922
+ const referencepath_metricValidationError = validate$g(obj_metric, path_metric);
923
923
  if (referencepath_metricValidationError !== null) {
924
924
  let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_metric + '")\n';
925
925
  message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -988,7 +988,7 @@ function validate$h(obj, path = 'FilterRepresentation') {
988
988
  for (let i = 0; i < obj_path_item.length; i++) {
989
989
  const obj_path_item_item = obj_path_item[i];
990
990
  const path_path_item_item = path_path_item + '[' + i + ']';
991
- const referencepath_path_item_itemValidationError = validate$i(obj_path_item_item, path_path_item_item);
991
+ const referencepath_path_item_itemValidationError = validate$g(obj_path_item_item, path_path_item_item);
992
992
  if (referencepath_path_item_itemValidationError !== null) {
993
993
  let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_path_item_item + '")\n';
994
994
  message += referencepath_path_item_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1086,7 +1086,7 @@ function validate$h(obj, path = 'FilterRepresentation') {
1086
1086
  const path_subject = path + '.subject';
1087
1087
  let obj_subject_union0 = null;
1088
1088
  const obj_subject_union0_error = (() => {
1089
- const referencepath_subjectValidationError = validate$i(obj_subject, path_subject);
1089
+ const referencepath_subjectValidationError = validate$g(obj_subject, path_subject);
1090
1090
  if (referencepath_subjectValidationError !== null) {
1091
1091
  let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_subject + '")\n';
1092
1092
  message += referencepath_subjectValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1189,15 +1189,15 @@ const RepresentationType$7 = 'FilterRepresentation';
1189
1189
  function normalize$7(input, existing, path, luvio, store, timestamp) {
1190
1190
  return input;
1191
1191
  }
1192
- const select$l = function FilterRepresentationSelect() {
1192
+ const select$j = function FilterRepresentationSelect() {
1193
1193
  return {
1194
1194
  kind: 'Fragment',
1195
- version: VERSION$d,
1195
+ version: VERSION$b,
1196
1196
  private: [],
1197
1197
  opaque: true
1198
1198
  };
1199
1199
  };
1200
- function equals$d(existing, incoming) {
1200
+ function equals$b(existing, incoming) {
1201
1201
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
1202
1202
  return false;
1203
1203
  }
@@ -1205,14 +1205,14 @@ function equals$d(existing, incoming) {
1205
1205
  }
1206
1206
  const ingest$7 = function FilterRepresentationIngest(input, path, luvio, store, timestamp) {
1207
1207
  if (process.env.NODE_ENV !== 'production') {
1208
- const validateError = validate$h(input);
1208
+ const validateError = validate$f(input);
1209
1209
  if (validateError !== null) {
1210
1210
  throw validateError;
1211
1211
  }
1212
1212
  }
1213
1213
  const key = path.fullPath;
1214
1214
  const ttlToUse = path.ttl;
1215
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "personalization-service", VERSION$d, RepresentationType$7, equals$d);
1215
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "personalization-service", VERSION$b, RepresentationType$7, equals$b);
1216
1216
  return createLink(key);
1217
1217
  };
1218
1218
  function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
@@ -1225,8 +1225,8 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
1225
1225
  });
1226
1226
  }
1227
1227
 
1228
- const VERSION$c = "ea475f10b4c028f8b97a44af1cf0be14";
1229
- function validate$g(obj, path = 'CriteriaRepresentation') {
1228
+ const VERSION$a = "ea475f10b4c028f8b97a44af1cf0be14";
1229
+ function validate$e(obj, path = 'CriteriaRepresentation') {
1230
1230
  const v_error = (() => {
1231
1231
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1232
1232
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1276,17 +1276,17 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
1276
1276
  }
1277
1277
  return input;
1278
1278
  }
1279
- const select$k = function CriteriaRepresentationSelect() {
1279
+ const select$i = function CriteriaRepresentationSelect() {
1280
1280
  return {
1281
1281
  kind: 'Fragment',
1282
- version: VERSION$c,
1282
+ version: VERSION$a,
1283
1283
  private: [],
1284
1284
  selections: [
1285
1285
  {
1286
1286
  name: 'filters',
1287
1287
  kind: 'Link',
1288
1288
  plural: true,
1289
- fragment: select$l()
1289
+ fragment: select$j()
1290
1290
  },
1291
1291
  {
1292
1292
  name: 'operator',
@@ -1299,7 +1299,7 @@ const select$k = function CriteriaRepresentationSelect() {
1299
1299
  ]
1300
1300
  };
1301
1301
  };
1302
- function equals$c(existing, incoming) {
1302
+ function equals$a(existing, incoming) {
1303
1303
  const existing_operator = existing.operator;
1304
1304
  const incoming_operator = incoming.operator;
1305
1305
  if (!(existing_operator === incoming_operator)) {
@@ -1324,14 +1324,14 @@ function equals$c(existing, incoming) {
1324
1324
  }
1325
1325
  const ingest$6 = function CriteriaRepresentationIngest(input, path, luvio, store, timestamp) {
1326
1326
  if (process.env.NODE_ENV !== 'production') {
1327
- const validateError = validate$g(input);
1327
+ const validateError = validate$e(input);
1328
1328
  if (validateError !== null) {
1329
1329
  throw validateError;
1330
1330
  }
1331
1331
  }
1332
1332
  const key = path.fullPath;
1333
1333
  const ttlToUse = path.ttl;
1334
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "personalization-service", VERSION$c, RepresentationType$6, equals$c);
1334
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "personalization-service", VERSION$a, RepresentationType$6, equals$a);
1335
1335
  return createLink(key);
1336
1336
  };
1337
1337
  function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
@@ -1348,8 +1348,8 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1348
1348
  }
1349
1349
  }
1350
1350
 
1351
- const VERSION$b = "265767af783b296f5f902d6ed447b168";
1352
- function validate$f(obj, path = 'PersonalizationDecisionRepresentation') {
1351
+ const VERSION$9 = "265767af783b296f5f902d6ed447b168";
1352
+ function validate$d(obj, path = 'PersonalizationDecisionRepresentation') {
1353
1353
  const v_error = (() => {
1354
1354
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1355
1355
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1362,7 +1362,7 @@ function validate$f(obj, path = 'PersonalizationDecisionRepresentation') {
1362
1362
  for (let i = 0; i < obj_attributeValues.length; i++) {
1363
1363
  const obj_attributeValues_item = obj_attributeValues[i];
1364
1364
  const path_attributeValues_item = path_attributeValues + '[' + i + ']';
1365
- const referencepath_attributeValues_itemValidationError = validate$k(obj_attributeValues_item, path_attributeValues_item);
1365
+ const referencepath_attributeValues_itemValidationError = validate$i(obj_attributeValues_item, path_attributeValues_item);
1366
1366
  if (referencepath_attributeValues_itemValidationError !== null) {
1367
1367
  let message = 'Object doesn\'t match PersonalizationAttributeValueRepresentation (at "' + path_attributeValues_item + '")\n';
1368
1368
  message += referencepath_attributeValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1702,11 +1702,11 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
1702
1702
  }
1703
1703
  return input;
1704
1704
  }
1705
- const select$j = function PersonalizationDecisionRepresentationSelect() {
1706
- const { selections: PersonalizationAttributeValueRepresentation__selections, opaque: PersonalizationAttributeValueRepresentation__opaque, } = select$m();
1705
+ const select$h = function PersonalizationDecisionRepresentationSelect() {
1706
+ const { selections: PersonalizationAttributeValueRepresentation__selections, opaque: PersonalizationAttributeValueRepresentation__opaque, } = select$k();
1707
1707
  return {
1708
1708
  kind: 'Fragment',
1709
- version: VERSION$b,
1709
+ version: VERSION$9,
1710
1710
  private: [],
1711
1711
  selections: [
1712
1712
  {
@@ -1727,7 +1727,7 @@ const select$j = function PersonalizationDecisionRepresentationSelect() {
1727
1727
  name: 'criteria',
1728
1728
  kind: 'Link',
1729
1729
  nullable: true,
1730
- fragment: select$k()
1730
+ fragment: select$i()
1731
1731
  },
1732
1732
  {
1733
1733
  name: 'description',
@@ -1768,11 +1768,11 @@ const select$j = function PersonalizationDecisionRepresentationSelect() {
1768
1768
  ]
1769
1769
  };
1770
1770
  };
1771
- function equals$b(existing, incoming) {
1771
+ function equals$9(existing, incoming) {
1772
1772
  const existing_attributeValues = existing.attributeValues;
1773
1773
  const incoming_attributeValues = incoming.attributeValues;
1774
1774
  const equals_attributeValues_items = equalsArray(existing_attributeValues, incoming_attributeValues, (existing_attributeValues_item, incoming_attributeValues_item) => {
1775
- if (!(equals$e(existing_attributeValues_item, incoming_attributeValues_item))) {
1775
+ if (!(equals$c(existing_attributeValues_item, incoming_attributeValues_item))) {
1776
1776
  return false;
1777
1777
  }
1778
1778
  });
@@ -1848,14 +1848,14 @@ function equals$b(existing, incoming) {
1848
1848
  }
1849
1849
  const ingest$5 = function PersonalizationDecisionRepresentationIngest(input, path, luvio, store, timestamp) {
1850
1850
  if (process.env.NODE_ENV !== 'production') {
1851
- const validateError = validate$f(input);
1851
+ const validateError = validate$d(input);
1852
1852
  if (validateError !== null) {
1853
1853
  throw validateError;
1854
1854
  }
1855
1855
  }
1856
1856
  const key = path.fullPath;
1857
1857
  const ttlToUse = path.ttl;
1858
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "personalization-service", VERSION$b, RepresentationType$5, equals$b);
1858
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "personalization-service", VERSION$9, RepresentationType$5, equals$9);
1859
1859
  return createLink(key);
1860
1860
  };
1861
1861
  function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
@@ -1872,8 +1872,8 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1872
1872
  }
1873
1873
 
1874
1874
  const TTL$4 = 600;
1875
- const VERSION$a = "e5643ca13ef54c890c9177275a053de3";
1876
- function validate$e(obj, path = 'PersonalizationPointRepresentation') {
1875
+ const VERSION$8 = "e5643ca13ef54c890c9177275a053de3";
1876
+ function validate$c(obj, path = 'PersonalizationPointRepresentation') {
1877
1877
  const v_error = (() => {
1878
1878
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1879
1879
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2379,10 +2379,10 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
2379
2379
  }
2380
2380
  return input;
2381
2381
  }
2382
- const select$i = function PersonalizationPointRepresentationSelect() {
2382
+ const select$g = function PersonalizationPointRepresentationSelect() {
2383
2383
  return {
2384
2384
  kind: 'Fragment',
2385
- version: VERSION$a,
2385
+ version: VERSION$8,
2386
2386
  private: [],
2387
2387
  selections: [
2388
2388
  {
@@ -2405,7 +2405,7 @@ const select$i = function PersonalizationPointRepresentationSelect() {
2405
2405
  name: 'decisions',
2406
2406
  kind: 'Link',
2407
2407
  plural: true,
2408
- fragment: select$j()
2408
+ fragment: select$h()
2409
2409
  },
2410
2410
  {
2411
2411
  name: 'description',
@@ -2474,7 +2474,7 @@ const select$i = function PersonalizationPointRepresentationSelect() {
2474
2474
  ]
2475
2475
  };
2476
2476
  };
2477
- function equals$a(existing, incoming) {
2477
+ function equals$8(existing, incoming) {
2478
2478
  const existing_isAuthenticationRequired = existing.isAuthenticationRequired;
2479
2479
  const incoming_isAuthenticationRequired = incoming.isAuthenticationRequired;
2480
2480
  if (!(existing_isAuthenticationRequired === incoming_isAuthenticationRequired)) {
@@ -2589,14 +2589,14 @@ function equals$a(existing, incoming) {
2589
2589
  }
2590
2590
  const ingest$4 = function PersonalizationPointRepresentationIngest(input, path, luvio, store, timestamp) {
2591
2591
  if (process.env.NODE_ENV !== 'production') {
2592
- const validateError = validate$e(input);
2592
+ const validateError = validate$c(input);
2593
2593
  if (validateError !== null) {
2594
2594
  throw validateError;
2595
2595
  }
2596
2596
  }
2597
2597
  const key = keyBuilderFromType$1(luvio, input);
2598
2598
  const ttlToUse = TTL$4;
2599
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "personalization-service", VERSION$a, RepresentationType$4, equals$a);
2599
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "personalization-service", VERSION$8, RepresentationType$4, equals$8);
2600
2600
  return createLink(key);
2601
2601
  };
2602
2602
  function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
@@ -2613,8 +2613,8 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
2613
2613
  }
2614
2614
  }
2615
2615
 
2616
- function select$h(luvio, params) {
2617
- return select$i();
2616
+ function select$f(luvio, params) {
2617
+ return select$g();
2618
2618
  }
2619
2619
  function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
2620
2620
  getTypeCacheKeys$4(storeKeyMap, luvio, response);
@@ -2625,7 +2625,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
2625
2625
  luvio.storeIngest(key, ingest$4, body);
2626
2626
  const snapshot = luvio.storeLookup({
2627
2627
  recordId: key,
2628
- node: select$h(),
2628
+ node: select$f(),
2629
2629
  variables: {},
2630
2630
  });
2631
2631
  if (process.env.NODE_ENV !== 'production') {
@@ -2712,7 +2712,7 @@ function typeCheckConfig$9(untrustedConfig) {
2712
2712
  const untrustedConfig_decisions_array = [];
2713
2713
  for (let i = 0, arrayLength = untrustedConfig_decisions.length; i < arrayLength; i++) {
2714
2714
  const untrustedConfig_decisions_item = untrustedConfig_decisions[i];
2715
- const referencePersonalizationDecisionInputRepresentationValidationError = validate$l(untrustedConfig_decisions_item);
2715
+ const referencePersonalizationDecisionInputRepresentationValidationError = validate$j(untrustedConfig_decisions_item);
2716
2716
  if (referencePersonalizationDecisionInputRepresentationValidationError === null) {
2717
2717
  untrustedConfig_decisions_array.push(untrustedConfig_decisions_item);
2718
2718
  }
@@ -2889,8 +2889,8 @@ const deletePersonalizationPointAdapterFactory = (luvio) => {
2889
2889
  };
2890
2890
  };
2891
2891
 
2892
- function select$g(luvio, params) {
2893
- return select$i();
2892
+ function select$e(luvio, params) {
2893
+ return select$g();
2894
2894
  }
2895
2895
  function keyBuilder$b(luvio, params) {
2896
2896
  return keyBuilder$d(luvio, {
@@ -2906,7 +2906,7 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
2906
2906
  luvio.storeIngest(key, ingest$4, body);
2907
2907
  const snapshot = luvio.storeLookup({
2908
2908
  recordId: key,
2909
- node: select$g(),
2909
+ node: select$e(),
2910
2910
  variables: {},
2911
2911
  }, snapshotRefresh);
2912
2912
  if (process.env.NODE_ENV !== 'production') {
@@ -2923,7 +2923,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
2923
2923
  const storeMetadataParams = {
2924
2924
  ttl: TTL$4,
2925
2925
  namespace: keyPrefix,
2926
- version: VERSION$a,
2926
+ version: VERSION$8,
2927
2927
  representationName: RepresentationType$4
2928
2928
  };
2929
2929
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -2973,7 +2973,7 @@ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
2973
2973
  }
2974
2974
  function adapterFragment$4(luvio, config) {
2975
2975
  createResourceParams$7(config);
2976
- return select$g();
2976
+ return select$e();
2977
2977
  }
2978
2978
  function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
2979
2979
  const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
@@ -3029,8 +3029,8 @@ const getPersonalizationPointAdapterFactory = (luvio) => function personalizatio
3029
3029
  buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
3030
3030
  };
3031
3031
 
3032
- function select$f(luvio, params) {
3033
- return select$i();
3032
+ function select$d(luvio, params) {
3033
+ return select$g();
3034
3034
  }
3035
3035
  function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
3036
3036
  getTypeCacheKeys$4(storeKeyMap, luvio, response);
@@ -3041,7 +3041,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
3041
3041
  luvio.storeIngest(key, ingest$4, body);
3042
3042
  const snapshot = luvio.storeLookup({
3043
3043
  recordId: key,
3044
- node: select$f(),
3044
+ node: select$d(),
3045
3045
  variables: {},
3046
3046
  });
3047
3047
  if (process.env.NODE_ENV !== 'production') {
@@ -3129,7 +3129,7 @@ function typeCheckConfig$6(untrustedConfig) {
3129
3129
  const untrustedConfig_decisions_array = [];
3130
3130
  for (let i = 0, arrayLength = untrustedConfig_decisions.length; i < arrayLength; i++) {
3131
3131
  const untrustedConfig_decisions_item = untrustedConfig_decisions[i];
3132
- const referencePersonalizationDecisionInputRepresentationValidationError = validate$l(untrustedConfig_decisions_item);
3132
+ const referencePersonalizationDecisionInputRepresentationValidationError = validate$j(untrustedConfig_decisions_item);
3133
3133
  if (referencePersonalizationDecisionInputRepresentationValidationError === null) {
3134
3134
  untrustedConfig_decisions_array.push(untrustedConfig_decisions_item);
3135
3135
  }
@@ -3222,7 +3222,7 @@ const updatePersonalizationPointAdapterFactory = (luvio) => {
3222
3222
  };
3223
3223
  };
3224
3224
 
3225
- function validate$d(obj, path = 'PersonalizationAttributeInputRepresentation') {
3225
+ function validate$b(obj, path = 'PersonalizationAttributeInputRepresentation') {
3226
3226
  const v_error = (() => {
3227
3227
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3228
3228
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3269,8 +3269,8 @@ function validate$d(obj, path = 'PersonalizationAttributeInputRepresentation') {
3269
3269
  return v_error === undefined ? null : v_error;
3270
3270
  }
3271
3271
 
3272
- const VERSION$9 = "014064b188ff923423af6301d64be36a";
3273
- function validate$c(obj, path = 'PersonalizationAttributeRepresentation') {
3272
+ const VERSION$7 = "014064b188ff923423af6301d64be36a";
3273
+ function validate$a(obj, path = 'PersonalizationAttributeRepresentation') {
3274
3274
  const v_error = (() => {
3275
3275
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3276
3276
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3365,10 +3365,10 @@ function validate$c(obj, path = 'PersonalizationAttributeRepresentation') {
3365
3365
  })();
3366
3366
  return v_error === undefined ? null : v_error;
3367
3367
  }
3368
- const select$e = function PersonalizationAttributeRepresentationSelect() {
3368
+ const select$c = function PersonalizationAttributeRepresentationSelect() {
3369
3369
  return {
3370
3370
  kind: 'Fragment',
3371
- version: VERSION$9,
3371
+ version: VERSION$7,
3372
3372
  private: [],
3373
3373
  selections: [
3374
3374
  {
@@ -3410,7 +3410,7 @@ const select$e = function PersonalizationAttributeRepresentationSelect() {
3410
3410
  ]
3411
3411
  };
3412
3412
  };
3413
- function equals$9(existing, incoming) {
3413
+ function equals$7(existing, incoming) {
3414
3414
  const existing_createdById = existing.createdById;
3415
3415
  const incoming_createdById = incoming.createdById;
3416
3416
  if (!(existing_createdById === incoming_createdById)) {
@@ -3460,8 +3460,8 @@ function equals$9(existing, incoming) {
3460
3460
  }
3461
3461
 
3462
3462
  const TTL$3 = 600;
3463
- const VERSION$8 = "25740f87643de6fdae570c77bbec7377";
3464
- function validate$b(obj, path = 'PersonalizationSchemaRepresentation') {
3463
+ const VERSION$6 = "25740f87643de6fdae570c77bbec7377";
3464
+ function validate$9(obj, path = 'PersonalizationSchemaRepresentation') {
3465
3465
  const v_error = (() => {
3466
3466
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3467
3467
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3474,7 +3474,7 @@ function validate$b(obj, path = 'PersonalizationSchemaRepresentation') {
3474
3474
  for (let i = 0; i < obj_attributes.length; i++) {
3475
3475
  const obj_attributes_item = obj_attributes[i];
3476
3476
  const path_attributes_item = path_attributes + '[' + i + ']';
3477
- const referencepath_attributes_itemValidationError = validate$c(obj_attributes_item, path_attributes_item);
3477
+ const referencepath_attributes_itemValidationError = validate$a(obj_attributes_item, path_attributes_item);
3478
3478
  if (referencepath_attributes_itemValidationError !== null) {
3479
3479
  let message = 'Object doesn\'t match PersonalizationAttributeRepresentation (at "' + path_attributes_item + '")\n';
3480
3480
  message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3632,11 +3632,11 @@ function keyBuilderFromType(luvio, object) {
3632
3632
  function normalize$3(input, existing, path, luvio, store, timestamp) {
3633
3633
  return input;
3634
3634
  }
3635
- const select$d = function PersonalizationSchemaRepresentationSelect() {
3636
- const { selections: PersonalizationAttributeRepresentation__selections, opaque: PersonalizationAttributeRepresentation__opaque, } = select$e();
3635
+ const select$b = function PersonalizationSchemaRepresentationSelect() {
3636
+ const { selections: PersonalizationAttributeRepresentation__selections, opaque: PersonalizationAttributeRepresentation__opaque, } = select$c();
3637
3637
  return {
3638
3638
  kind: 'Fragment',
3639
- version: VERSION$8,
3639
+ version: VERSION$6,
3640
3640
  private: [],
3641
3641
  selections: [
3642
3642
  {
@@ -3701,7 +3701,7 @@ const select$d = function PersonalizationSchemaRepresentationSelect() {
3701
3701
  ]
3702
3702
  };
3703
3703
  };
3704
- function equals$8(existing, incoming) {
3704
+ function equals$6(existing, incoming) {
3705
3705
  const existing_createdById = existing.createdById;
3706
3706
  const incoming_createdById = incoming.createdById;
3707
3707
  if (!(existing_createdById === incoming_createdById)) {
@@ -3755,7 +3755,7 @@ function equals$8(existing, incoming) {
3755
3755
  const existing_attributes = existing.attributes;
3756
3756
  const incoming_attributes = incoming.attributes;
3757
3757
  const equals_attributes_items = equalsArray(existing_attributes, incoming_attributes, (existing_attributes_item, incoming_attributes_item) => {
3758
- if (!(equals$9(existing_attributes_item, incoming_attributes_item))) {
3758
+ if (!(equals$7(existing_attributes_item, incoming_attributes_item))) {
3759
3759
  return false;
3760
3760
  }
3761
3761
  });
@@ -3786,14 +3786,14 @@ function equals$8(existing, incoming) {
3786
3786
  }
3787
3787
  const ingest$3 = function PersonalizationSchemaRepresentationIngest(input, path, luvio, store, timestamp) {
3788
3788
  if (process.env.NODE_ENV !== 'production') {
3789
- const validateError = validate$b(input);
3789
+ const validateError = validate$9(input);
3790
3790
  if (validateError !== null) {
3791
3791
  throw validateError;
3792
3792
  }
3793
3793
  }
3794
3794
  const key = keyBuilderFromType(luvio, input);
3795
3795
  const ttlToUse = TTL$3;
3796
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "personalization-service", VERSION$8, RepresentationType$3, equals$8);
3796
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "personalization-service", VERSION$6, RepresentationType$3, equals$6);
3797
3797
  return createLink(key);
3798
3798
  };
3799
3799
  function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
@@ -3806,8 +3806,8 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
3806
3806
  });
3807
3807
  }
3808
3808
 
3809
- function select$c(luvio, params) {
3810
- return select$d();
3809
+ function select$a(luvio, params) {
3810
+ return select$b();
3811
3811
  }
3812
3812
  function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
3813
3813
  getTypeCacheKeys$3(storeKeyMap, luvio, response);
@@ -3818,7 +3818,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
3818
3818
  luvio.storeIngest(key, ingest$3, body);
3819
3819
  const snapshot = luvio.storeLookup({
3820
3820
  recordId: key,
3821
- node: select$c(),
3821
+ node: select$a(),
3822
3822
  variables: {},
3823
3823
  });
3824
3824
  if (process.env.NODE_ENV !== 'production') {
@@ -3885,7 +3885,7 @@ function typeCheckConfig$5(untrustedConfig) {
3885
3885
  const untrustedConfig_attributes_array = [];
3886
3886
  for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
3887
3887
  const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
3888
- const referencePersonalizationAttributeInputRepresentationValidationError = validate$d(untrustedConfig_attributes_item);
3888
+ const referencePersonalizationAttributeInputRepresentationValidationError = validate$b(untrustedConfig_attributes_item);
3889
3889
  if (referencePersonalizationAttributeInputRepresentationValidationError === null) {
3890
3890
  untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
3891
3891
  }
@@ -4041,8 +4041,8 @@ const deletePersonalizationSchemaAdapterFactory = (luvio) => {
4041
4041
  };
4042
4042
  };
4043
4043
 
4044
- function select$b(luvio, params) {
4045
- return select$d();
4044
+ function select$9(luvio, params) {
4045
+ return select$b();
4046
4046
  }
4047
4047
  function keyBuilder$7(luvio, params) {
4048
4048
  return keyBuilder$9(luvio, {
@@ -4058,7 +4058,7 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
4058
4058
  luvio.storeIngest(key, ingest$3, body);
4059
4059
  const snapshot = luvio.storeLookup({
4060
4060
  recordId: key,
4061
- node: select$b(),
4061
+ node: select$9(),
4062
4062
  variables: {},
4063
4063
  }, snapshotRefresh);
4064
4064
  if (process.env.NODE_ENV !== 'production') {
@@ -4075,7 +4075,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
4075
4075
  const storeMetadataParams = {
4076
4076
  ttl: TTL$3,
4077
4077
  namespace: keyPrefix,
4078
- version: VERSION$8,
4078
+ version: VERSION$6,
4079
4079
  representationName: RepresentationType$3
4080
4080
  };
4081
4081
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -4125,7 +4125,7 @@ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
4125
4125
  }
4126
4126
  function adapterFragment$3(luvio, config) {
4127
4127
  createResourceParams$3(config);
4128
- return select$b();
4128
+ return select$9();
4129
4129
  }
4130
4130
  function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
4131
4131
  const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
@@ -4181,8 +4181,8 @@ const getPersonalizationSchemaAdapterFactory = (luvio) => function personalizati
4181
4181
  buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
4182
4182
  };
4183
4183
 
4184
- const VERSION$7 = "4140d8b5bf494d4e8f3ef8713b0ffd7d";
4185
- function validate$a(obj, path = 'PersonalizationRecommenderJobRepresentation') {
4184
+ const VERSION$5 = "4140d8b5bf494d4e8f3ef8713b0ffd7d";
4185
+ function validate$8(obj, path = 'PersonalizationRecommenderJobRepresentation') {
4186
4186
  const v_error = (() => {
4187
4187
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4188
4188
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4232,10 +4232,10 @@ function validate$a(obj, path = 'PersonalizationRecommenderJobRepresentation') {
4232
4232
  })();
4233
4233
  return v_error === undefined ? null : v_error;
4234
4234
  }
4235
- const select$a = function PersonalizationRecommenderJobRepresentationSelect() {
4235
+ const select$8 = function PersonalizationRecommenderJobRepresentationSelect() {
4236
4236
  return {
4237
4237
  kind: 'Fragment',
4238
- version: VERSION$7,
4238
+ version: VERSION$5,
4239
4239
  private: [],
4240
4240
  selections: [
4241
4241
  {
@@ -4271,7 +4271,7 @@ const select$a = function PersonalizationRecommenderJobRepresentationSelect() {
4271
4271
  ]
4272
4272
  };
4273
4273
  };
4274
- function equals$7(existing, incoming) {
4274
+ function equals$5(existing, incoming) {
4275
4275
  const existing_errorCode = existing.errorCode;
4276
4276
  const incoming_errorCode = incoming.errorCode;
4277
4277
  // if at least one of these optionals is defined
@@ -4354,8 +4354,8 @@ function equals$7(existing, incoming) {
4354
4354
  }
4355
4355
 
4356
4356
  const TTL$2 = 600;
4357
- const VERSION$6 = "2fab2250d4ed5adcbb1a5c19a64cd765";
4358
- function validate$9(obj, path = 'PersonalizationRecommenderJobCollectionRepresentation') {
4357
+ const VERSION$4 = "2fab2250d4ed5adcbb1a5c19a64cd765";
4358
+ function validate$7(obj, path = 'PersonalizationRecommenderJobCollectionRepresentation') {
4359
4359
  const v_error = (() => {
4360
4360
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4361
4361
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4376,7 +4376,7 @@ function validate$9(obj, path = 'PersonalizationRecommenderJobCollectionRepresen
4376
4376
  for (let i = 0; i < obj_jobs.length; i++) {
4377
4377
  const obj_jobs_item = obj_jobs[i];
4378
4378
  const path_jobs_item = path_jobs + '[' + i + ']';
4379
- const referencepath_jobs_itemValidationError = validate$a(obj_jobs_item, path_jobs_item);
4379
+ const referencepath_jobs_itemValidationError = validate$8(obj_jobs_item, path_jobs_item);
4380
4380
  if (referencepath_jobs_itemValidationError !== null) {
4381
4381
  let message = 'Object doesn\'t match PersonalizationRecommenderJobRepresentation (at "' + path_jobs_item + '")\n';
4382
4382
  message += referencepath_jobs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4398,11 +4398,11 @@ const RepresentationType$2 = 'PersonalizationRecommenderJobCollectionRepresentat
4398
4398
  function normalize$2(input, existing, path, luvio, store, timestamp) {
4399
4399
  return input;
4400
4400
  }
4401
- const select$9 = function PersonalizationRecommenderJobCollectionRepresentationSelect() {
4402
- const { selections: PersonalizationRecommenderJobRepresentation__selections, opaque: PersonalizationRecommenderJobRepresentation__opaque, } = select$a();
4401
+ const select$7 = function PersonalizationRecommenderJobCollectionRepresentationSelect() {
4402
+ const { selections: PersonalizationRecommenderJobRepresentation__selections, opaque: PersonalizationRecommenderJobRepresentation__opaque, } = select$8();
4403
4403
  return {
4404
4404
  kind: 'Fragment',
4405
- version: VERSION$6,
4405
+ version: VERSION$4,
4406
4406
  private: [],
4407
4407
  selections: [
4408
4408
  {
@@ -4425,7 +4425,7 @@ const select$9 = function PersonalizationRecommenderJobCollectionRepresentationS
4425
4425
  ]
4426
4426
  };
4427
4427
  };
4428
- function equals$6(existing, incoming) {
4428
+ function equals$4(existing, incoming) {
4429
4429
  const existing_currentPageUrl = existing.currentPageUrl;
4430
4430
  const incoming_currentPageUrl = incoming.currentPageUrl;
4431
4431
  // if at least one of these optionals is defined
@@ -4462,7 +4462,7 @@ function equals$6(existing, incoming) {
4462
4462
  return false;
4463
4463
  }
4464
4464
  const equals_jobs_items = equalsArray(existing_jobs, incoming_jobs, (existing_jobs_item, incoming_jobs_item) => {
4465
- if (!(equals$7(existing_jobs_item, incoming_jobs_item))) {
4465
+ if (!(equals$5(existing_jobs_item, incoming_jobs_item))) {
4466
4466
  return false;
4467
4467
  }
4468
4468
  });
@@ -4474,14 +4474,14 @@ function equals$6(existing, incoming) {
4474
4474
  }
4475
4475
  const ingest$2 = function PersonalizationRecommenderJobCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
4476
4476
  if (process.env.NODE_ENV !== 'production') {
4477
- const validateError = validate$9(input);
4477
+ const validateError = validate$7(input);
4478
4478
  if (validateError !== null) {
4479
4479
  throw validateError;
4480
4480
  }
4481
4481
  }
4482
4482
  const key = path.fullPath;
4483
4483
  const ttlToUse = TTL$2;
4484
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "personalization-service", VERSION$6, RepresentationType$2, equals$6);
4484
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "personalization-service", VERSION$4, RepresentationType$2, equals$4);
4485
4485
  return createLink(key);
4486
4486
  };
4487
4487
  function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
@@ -4494,8 +4494,8 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
4494
4494
  });
4495
4495
  }
4496
4496
 
4497
- function select$8(luvio, params) {
4498
- return select$9();
4497
+ function select$6(luvio, params) {
4498
+ return select$7();
4499
4499
  }
4500
4500
  function keyBuilder$5(luvio, params) {
4501
4501
  return keyPrefix + '::PersonalizationRecommenderJobCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'idOrName:' + params.urlParams.idOrName + ')';
@@ -4509,7 +4509,7 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
4509
4509
  luvio.storeIngest(key, ingest$2, body);
4510
4510
  const snapshot = luvio.storeLookup({
4511
4511
  recordId: key,
4512
- node: select$8(),
4512
+ node: select$6(),
4513
4513
  variables: {},
4514
4514
  }, snapshotRefresh);
4515
4515
  if (process.env.NODE_ENV !== 'production') {
@@ -4526,7 +4526,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
4526
4526
  const storeMetadataParams = {
4527
4527
  ttl: TTL$2,
4528
4528
  namespace: keyPrefix,
4529
- version: VERSION$6,
4529
+ version: VERSION$4,
4530
4530
  representationName: RepresentationType$2
4531
4531
  };
4532
4532
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -4578,7 +4578,7 @@ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
4578
4578
  }
4579
4579
  function adapterFragment$2(luvio, config) {
4580
4580
  createResourceParams$2(config);
4581
- return select$8();
4581
+ return select$6();
4582
4582
  }
4583
4583
  function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
4584
4584
  const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
@@ -4634,7 +4634,7 @@ const getTrainingHistoryAdapterFactory = (luvio) => function personalizationServ
4634
4634
  buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
4635
4635
  };
4636
4636
 
4637
- function validate$8(obj, path = 'AnchorReferenceRepresentation') {
4637
+ function validate$6(obj, path = 'AnchorReferenceRepresentation') {
4638
4638
  const v_error = (() => {
4639
4639
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4640
4640
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4653,7 +4653,7 @@ function validate$8(obj, path = 'AnchorReferenceRepresentation') {
4653
4653
  return v_error === undefined ? null : v_error;
4654
4654
  }
4655
4655
 
4656
- function validate$7(obj, path = 'RuleGroupInputRepresentation2') {
4656
+ function validate$5(obj, path = 'RuleGroupInputRepresentation2') {
4657
4657
  const v_error = (() => {
4658
4658
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4659
4659
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4679,7 +4679,7 @@ function validate$7(obj, path = 'RuleGroupInputRepresentation2') {
4679
4679
  return v_error === undefined ? null : v_error;
4680
4680
  }
4681
4681
 
4682
- function validate$6(obj, path = 'RuleGroupInputRepresentation') {
4682
+ function validate$4(obj, path = 'RuleGroupInputRepresentation') {
4683
4683
  const v_error = (() => {
4684
4684
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4685
4685
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4706,8 +4706,8 @@ function validate$6(obj, path = 'RuleGroupInputRepresentation') {
4706
4706
  }
4707
4707
 
4708
4708
  const TTL$1 = 600;
4709
- const VERSION$5 = "03b72d395296cf8da94dcea60a4830e8";
4710
- function validate$5(obj, path = 'PersonalizationRecommenderSimulateActionRepresentation') {
4709
+ const VERSION$3 = "03b72d395296cf8da94dcea60a4830e8";
4710
+ function validate$3(obj, path = 'PersonalizationRecommenderSimulateActionRepresentation') {
4711
4711
  const v_error = (() => {
4712
4712
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4713
4713
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4724,10 +4724,10 @@ const RepresentationType$1 = 'PersonalizationRecommenderSimulateActionRepresenta
4724
4724
  function normalize$1(input, existing, path, luvio, store, timestamp) {
4725
4725
  return input;
4726
4726
  }
4727
- const select$7 = function PersonalizationRecommenderSimulateActionRepresentationSelect() {
4727
+ const select$5 = function PersonalizationRecommenderSimulateActionRepresentationSelect() {
4728
4728
  return {
4729
4729
  kind: 'Fragment',
4730
- version: VERSION$5,
4730
+ version: VERSION$3,
4731
4731
  private: [],
4732
4732
  selections: [
4733
4733
  {
@@ -4738,7 +4738,7 @@ const select$7 = function PersonalizationRecommenderSimulateActionRepresentation
4738
4738
  ]
4739
4739
  };
4740
4740
  };
4741
- function equals$5(existing, incoming) {
4741
+ function equals$3(existing, incoming) {
4742
4742
  const existing_recommendations = existing.recommendations;
4743
4743
  const incoming_recommendations = incoming.recommendations;
4744
4744
  if (JSONStringify(incoming_recommendations) !== JSONStringify(existing_recommendations)) {
@@ -4748,14 +4748,14 @@ function equals$5(existing, incoming) {
4748
4748
  }
4749
4749
  const ingest$1 = function PersonalizationRecommenderSimulateActionRepresentationIngest(input, path, luvio, store, timestamp) {
4750
4750
  if (process.env.NODE_ENV !== 'production') {
4751
- const validateError = validate$5(input);
4751
+ const validateError = validate$3(input);
4752
4752
  if (validateError !== null) {
4753
4753
  throw validateError;
4754
4754
  }
4755
4755
  }
4756
4756
  const key = path.fullPath;
4757
4757
  const ttlToUse = TTL$1;
4758
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "personalization-service", VERSION$5, RepresentationType$1, equals$5);
4758
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "personalization-service", VERSION$3, RepresentationType$1, equals$3);
4759
4759
  return createLink(key);
4760
4760
  };
4761
4761
  function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
@@ -4768,8 +4768,8 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
4768
4768
  });
4769
4769
  }
4770
4770
 
4771
- function select$6(luvio, params) {
4772
- return select$7();
4771
+ function select$4(luvio, params) {
4772
+ return select$5();
4773
4773
  }
4774
4774
  function keyBuilder$3(luvio, params) {
4775
4775
  var _a, _b, _c, _d, _e, _f;
@@ -4784,7 +4784,7 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
4784
4784
  luvio.storeIngest(key, ingest$1, body);
4785
4785
  const snapshot = luvio.storeLookup({
4786
4786
  recordId: key,
4787
- node: select$6(),
4787
+ node: select$4(),
4788
4788
  variables: {},
4789
4789
  }, snapshotRefresh);
4790
4790
  if (process.env.NODE_ENV !== 'production') {
@@ -4801,7 +4801,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
4801
4801
  const storeMetadataParams = {
4802
4802
  ttl: TTL$1,
4803
4803
  namespace: keyPrefix,
4804
- version: VERSION$5,
4804
+ version: VERSION$3,
4805
4805
  representationName: RepresentationType$1
4806
4806
  };
4807
4807
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -4843,7 +4843,7 @@ function typeCheckConfig$1(untrustedConfig) {
4843
4843
  const untrustedConfig_anchors_array = [];
4844
4844
  for (let i = 0, arrayLength = untrustedConfig_anchors.length; i < arrayLength; i++) {
4845
4845
  const untrustedConfig_anchors_item = untrustedConfig_anchors[i];
4846
- const referenceAnchorReferenceRepresentationValidationError = validate$8(untrustedConfig_anchors_item);
4846
+ const referenceAnchorReferenceRepresentationValidationError = validate$6(untrustedConfig_anchors_item);
4847
4847
  if (referenceAnchorReferenceRepresentationValidationError === null) {
4848
4848
  untrustedConfig_anchors_array.push(untrustedConfig_anchors_item);
4849
4849
  }
@@ -4851,12 +4851,12 @@ function typeCheckConfig$1(untrustedConfig) {
4851
4851
  config.anchors = untrustedConfig_anchors_array;
4852
4852
  }
4853
4853
  const untrustedConfig_excludeFilters = untrustedConfig.excludeFilters;
4854
- const referenceRuleGroupInputRepresentation2ValidationError = validate$7(untrustedConfig_excludeFilters);
4854
+ const referenceRuleGroupInputRepresentation2ValidationError = validate$5(untrustedConfig_excludeFilters);
4855
4855
  if (referenceRuleGroupInputRepresentation2ValidationError === null) {
4856
4856
  config.excludeFilters = untrustedConfig_excludeFilters;
4857
4857
  }
4858
4858
  const untrustedConfig_includeFilters = untrustedConfig.includeFilters;
4859
- const referenceRuleGroupInputRepresentationValidationError = validate$6(untrustedConfig_includeFilters);
4859
+ const referenceRuleGroupInputRepresentationValidationError = validate$4(untrustedConfig_includeFilters);
4860
4860
  if (referenceRuleGroupInputRepresentationValidationError === null) {
4861
4861
  config.includeFilters = untrustedConfig_includeFilters;
4862
4862
  }
@@ -4884,7 +4884,7 @@ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
4884
4884
  }
4885
4885
  function adapterFragment$1(luvio, config) {
4886
4886
  createResourceParams$1(config);
4887
- return select$6();
4887
+ return select$4();
4888
4888
  }
4889
4889
  function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
4890
4890
  const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
@@ -4940,267 +4940,97 @@ const postPersonalizationRecommenderSimulateActionAdapterFactory = (luvio) => fu
4940
4940
  buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
4941
4941
  };
4942
4942
 
4943
- const VERSION$4 = "d9f3a15c5177c3eb95787555a862549b";
4944
- function validate$4(obj, path = 'EsModelArtifactBaseFieldRepresentation') {
4943
+ const VERSION$2 = "e68c48ce57702a3f1e8ca445bbbcbbcf";
4944
+ function validate$2(obj, path = 'PersonalizationDataMlModelInputFeatureRepresentation') {
4945
4945
  const v_error = (() => {
4946
4946
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4947
4947
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4948
4948
  }
4949
- const obj_dataType = obj.dataType;
4950
- const path_dataType = path + '.dataType';
4951
- if (typeof obj_dataType !== 'string') {
4952
- return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
4953
- }
4954
- const obj_label = obj.label;
4955
- const path_label = path + '.label';
4956
- if (typeof obj_label !== 'string') {
4957
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
4958
- }
4959
- const obj_name = obj.name;
4960
- const path_name = path + '.name';
4961
- if (typeof obj_name !== 'string') {
4962
- return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
4963
- }
4964
- })();
4965
- return v_error === undefined ? null : v_error;
4966
- }
4967
- const select$5 = function EsModelArtifactBaseFieldRepresentationSelect() {
4968
- return {
4969
- kind: 'Fragment',
4970
- version: VERSION$4,
4971
- private: [],
4972
- selections: [
4973
- {
4974
- name: 'dataType',
4975
- kind: 'Scalar'
4976
- },
4977
- {
4978
- name: 'label',
4979
- kind: 'Scalar'
4980
- },
4981
- {
4982
- name: 'name',
4983
- kind: 'Scalar'
4984
- }
4985
- ]
4986
- };
4987
- };
4988
- function equals$4(existing, incoming) {
4989
- const existing_dataType = existing.dataType;
4990
- const incoming_dataType = incoming.dataType;
4991
- if (!(existing_dataType === incoming_dataType)) {
4992
- return false;
4993
- }
4994
- const existing_label = existing.label;
4995
- const incoming_label = incoming.label;
4996
- if (!(existing_label === incoming_label)) {
4997
- return false;
4998
- }
4999
- const existing_name = existing.name;
5000
- const incoming_name = incoming.name;
5001
- if (!(existing_name === incoming_name)) {
5002
- return false;
5003
- }
5004
- return true;
5005
- }
5006
-
5007
- const VERSION$3 = "79dd6162ffc2c359016bab1d3ceeffab";
5008
- function validate$3(obj, path = 'EsModelArtifactRepresentation') {
5009
- const v_error = (() => {
5010
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5011
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
5012
- }
5013
- const obj_id = obj.id;
5014
- const path_id = path + '.id';
5015
- if (typeof obj_id !== 'string') {
5016
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
5017
- }
5018
- const obj_label = obj.label;
5019
- const path_label = path + '.label';
5020
- if (typeof obj_label !== 'string') {
5021
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
5022
- }
5023
- const obj_name = obj.name;
5024
- const path_name = path + '.name';
5025
- if (typeof obj_name !== 'string') {
5026
- return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
5027
- }
5028
- const obj_outputFields = obj.outputFields;
5029
- const path_outputFields = path + '.outputFields';
5030
- if (!ArrayIsArray(obj_outputFields)) {
5031
- return new TypeError('Expected "array" but received "' + typeof obj_outputFields + '" (at "' + path_outputFields + '")');
5032
- }
5033
- for (let i = 0; i < obj_outputFields.length; i++) {
5034
- const obj_outputFields_item = obj_outputFields[i];
5035
- const path_outputFields_item = path_outputFields + '[' + i + ']';
5036
- const referencepath_outputFields_itemValidationError = validate$4(obj_outputFields_item, path_outputFields_item);
5037
- if (referencepath_outputFields_itemValidationError !== null) {
5038
- let message = 'Object doesn\'t match EsModelArtifactBaseFieldRepresentation (at "' + path_outputFields_item + '")\n';
5039
- message += referencepath_outputFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
5040
- return new TypeError(message);
5041
- }
5042
- }
5043
- })();
5044
- return v_error === undefined ? null : v_error;
5045
- }
5046
- const select$4 = function EsModelArtifactRepresentationSelect() {
5047
- const { selections: EsModelArtifactBaseFieldRepresentation__selections, opaque: EsModelArtifactBaseFieldRepresentation__opaque, } = select$5();
5048
- return {
5049
- kind: 'Fragment',
5050
- version: VERSION$3,
5051
- private: [],
5052
- selections: [
5053
- {
5054
- name: 'id',
5055
- kind: 'Scalar'
5056
- },
5057
- {
5058
- name: 'label',
5059
- kind: 'Scalar'
5060
- },
5061
- {
5062
- name: 'name',
5063
- kind: 'Scalar'
5064
- },
5065
- {
5066
- name: 'outputFields',
5067
- kind: 'Object',
5068
- plural: true,
5069
- selections: EsModelArtifactBaseFieldRepresentation__selections
5070
- }
5071
- ]
5072
- };
5073
- };
5074
- function equals$3(existing, incoming) {
5075
- const existing_id = existing.id;
5076
- const incoming_id = incoming.id;
5077
- if (!(existing_id === incoming_id)) {
5078
- return false;
5079
- }
5080
- const existing_label = existing.label;
5081
- const incoming_label = incoming.label;
5082
- if (!(existing_label === incoming_label)) {
5083
- return false;
5084
- }
5085
- const existing_name = existing.name;
5086
- const incoming_name = incoming.name;
5087
- if (!(existing_name === incoming_name)) {
5088
- return false;
5089
- }
5090
- const existing_outputFields = existing.outputFields;
5091
- const incoming_outputFields = incoming.outputFields;
5092
- const equals_outputFields_items = equalsArray(existing_outputFields, incoming_outputFields, (existing_outputFields_item, incoming_outputFields_item) => {
5093
- if (!(equals$4(existing_outputFields_item, incoming_outputFields_item))) {
5094
- return false;
5095
- }
5096
- });
5097
- if (equals_outputFields_items === false) {
5098
- return false;
5099
- }
5100
- return true;
5101
- }
5102
-
5103
- const VERSION$2 = "99ea196b2ab9f99656157ebd55e6cc5f";
5104
- function validate$2(obj, path = 'PersonalizationDataMlModelInputRepresentation') {
5105
- const v_error = (() => {
5106
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5107
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
5108
- }
5109
- const obj_esModelInputFeatureId = obj.esModelInputFeatureId;
5110
- const path_esModelInputFeatureId = path + '.esModelInputFeatureId';
5111
- if (typeof obj_esModelInputFeatureId !== 'string') {
5112
- return new TypeError('Expected "string" but received "' + typeof obj_esModelInputFeatureId + '" (at "' + path_esModelInputFeatureId + '")');
5113
- }
5114
- const obj_id = obj.id;
5115
- const path_id = path + '.id';
5116
- if (typeof obj_id !== 'string') {
5117
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
5118
- }
5119
4949
  const obj_inputField = obj.inputField;
5120
4950
  const path_inputField = path + '.inputField';
5121
- const referencepath_inputFieldValidationError = validate$4(obj_inputField, path_inputField);
5122
- if (referencepath_inputFieldValidationError !== null) {
5123
- let message = 'Object doesn\'t match EsModelArtifactBaseFieldRepresentation (at "' + path_inputField + '")\n';
5124
- message += referencepath_inputFieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
5125
- return new TypeError(message);
4951
+ if (obj_inputField === undefined) {
4952
+ return new TypeError('Expected "defined" but received "' + typeof obj_inputField + '" (at "' + path_inputField + '")');
5126
4953
  }
5127
- const obj_personalisationField = obj.personalisationField;
5128
- const path_personalisationField = path + '.personalisationField';
5129
- if (typeof obj_personalisationField !== 'string') {
5130
- return new TypeError('Expected "string" but received "' + typeof obj_personalisationField + '" (at "' + path_personalisationField + '")');
4954
+ const obj_personalizationField = obj.personalizationField;
4955
+ const path_personalizationField = path + '.personalizationField';
4956
+ if (obj_personalizationField === undefined) {
4957
+ return new TypeError('Expected "defined" but received "' + typeof obj_personalizationField + '" (at "' + path_personalizationField + '")');
4958
+ }
4959
+ const obj_type = obj.type;
4960
+ const path_type = path + '.type';
4961
+ if (typeof obj_type !== 'string') {
4962
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
5131
4963
  }
5132
4964
  })();
5133
4965
  return v_error === undefined ? null : v_error;
5134
4966
  }
5135
- const select$3 = function PersonalizationDataMlModelInputRepresentationSelect() {
5136
- const { selections: EsModelArtifactBaseFieldRepresentation__selections, opaque: EsModelArtifactBaseFieldRepresentation__opaque, } = select$5();
4967
+ const select$3 = function PersonalizationDataMlModelInputFeatureRepresentationSelect() {
5137
4968
  return {
5138
4969
  kind: 'Fragment',
5139
4970
  version: VERSION$2,
5140
4971
  private: [],
5141
4972
  selections: [
5142
4973
  {
5143
- name: 'esModelInputFeatureId',
5144
- kind: 'Scalar'
5145
- },
5146
- {
5147
- name: 'id',
5148
- kind: 'Scalar'
4974
+ name: 'inputField',
4975
+ kind: 'Object',
4976
+ // any
5149
4977
  },
5150
4978
  {
5151
- name: 'inputField',
4979
+ name: 'personalizationField',
5152
4980
  kind: 'Object',
5153
- selections: EsModelArtifactBaseFieldRepresentation__selections
4981
+ // any
5154
4982
  },
5155
4983
  {
5156
- name: 'personalisationField',
4984
+ name: 'type',
5157
4985
  kind: 'Scalar'
5158
4986
  }
5159
4987
  ]
5160
4988
  };
5161
4989
  };
5162
4990
  function equals$2(existing, incoming) {
5163
- const existing_esModelInputFeatureId = existing.esModelInputFeatureId;
5164
- const incoming_esModelInputFeatureId = incoming.esModelInputFeatureId;
5165
- if (!(existing_esModelInputFeatureId === incoming_esModelInputFeatureId)) {
5166
- return false;
5167
- }
5168
- const existing_id = existing.id;
5169
- const incoming_id = incoming.id;
5170
- if (!(existing_id === incoming_id)) {
5171
- return false;
5172
- }
5173
- const existing_personalisationField = existing.personalisationField;
5174
- const incoming_personalisationField = incoming.personalisationField;
5175
- if (!(existing_personalisationField === incoming_personalisationField)) {
4991
+ const existing_type = existing.type;
4992
+ const incoming_type = incoming.type;
4993
+ if (!(existing_type === incoming_type)) {
5176
4994
  return false;
5177
4995
  }
5178
4996
  const existing_inputField = existing.inputField;
5179
4997
  const incoming_inputField = incoming.inputField;
5180
- if (!(equals$4(existing_inputField, incoming_inputField))) {
4998
+ if (JSONStringify(incoming_inputField) !== JSONStringify(existing_inputField)) {
4999
+ return false;
5000
+ }
5001
+ const existing_personalizationField = existing.personalizationField;
5002
+ const incoming_personalizationField = incoming.personalizationField;
5003
+ if (JSONStringify(incoming_personalizationField) !== JSONStringify(existing_personalizationField)) {
5181
5004
  return false;
5182
5005
  }
5183
5006
  return true;
5184
5007
  }
5185
5008
 
5186
- const VERSION$1 = "cb759c82eb75de0d3fc203fc331385ce";
5009
+ const VERSION$1 = "eb7b70de2adf54962bc3f5d15a259ca4";
5187
5010
  function validate$1(obj, path = 'PersonalizationDataMlModelRepresentation') {
5188
5011
  const v_error = (() => {
5189
5012
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5190
5013
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
5191
5014
  }
5192
- const obj_dataSpaceId = obj.dataSpaceId;
5193
- const path_dataSpaceId = path + '.dataSpaceId';
5194
- if (typeof obj_dataSpaceId !== 'string') {
5195
- return new TypeError('Expected "string" but received "' + typeof obj_dataSpaceId + '" (at "' + path_dataSpaceId + '")');
5196
- }
5197
- const obj_esModelDefinition = obj.esModelDefinition;
5198
- const path_esModelDefinition = path + '.esModelDefinition';
5199
- const referencepath_esModelDefinitionValidationError = validate$3(obj_esModelDefinition, path_esModelDefinition);
5200
- if (referencepath_esModelDefinitionValidationError !== null) {
5201
- let message = 'Object doesn\'t match EsModelArtifactRepresentation (at "' + path_esModelDefinition + '")\n';
5202
- message += referencepath_esModelDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
5203
- return new TypeError(message);
5015
+ const obj_dataMlModelInputs = obj.dataMlModelInputs;
5016
+ const path_dataMlModelInputs = path + '.dataMlModelInputs';
5017
+ if (!ArrayIsArray(obj_dataMlModelInputs)) {
5018
+ return new TypeError('Expected "array" but received "' + typeof obj_dataMlModelInputs + '" (at "' + path_dataMlModelInputs + '")');
5019
+ }
5020
+ for (let i = 0; i < obj_dataMlModelInputs.length; i++) {
5021
+ const obj_dataMlModelInputs_item = obj_dataMlModelInputs[i];
5022
+ const path_dataMlModelInputs_item = path_dataMlModelInputs + '[' + i + ']';
5023
+ const referencepath_dataMlModelInputs_itemValidationError = validate$2(obj_dataMlModelInputs_item, path_dataMlModelInputs_item);
5024
+ if (referencepath_dataMlModelInputs_itemValidationError !== null) {
5025
+ let message = 'Object doesn\'t match PersonalizationDataMlModelInputFeatureRepresentation (at "' + path_dataMlModelInputs_item + '")\n';
5026
+ message += referencepath_dataMlModelInputs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
5027
+ return new TypeError(message);
5028
+ }
5029
+ }
5030
+ const obj_dataSpaceName = obj.dataSpaceName;
5031
+ const path_dataSpaceName = path + '.dataSpaceName';
5032
+ if (typeof obj_dataSpaceName !== 'string') {
5033
+ return new TypeError('Expected "string" but received "' + typeof obj_dataSpaceName + '" (at "' + path_dataSpaceName + '")');
5204
5034
  }
5205
5035
  const obj_id = obj.id;
5206
5036
  const path_id = path + '.id';
@@ -5212,50 +5042,45 @@ function validate$1(obj, path = 'PersonalizationDataMlModelRepresentation') {
5212
5042
  if (typeof obj_label !== 'string') {
5213
5043
  return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
5214
5044
  }
5045
+ const obj_mlConfiguredModel = obj.mlConfiguredModel;
5046
+ const path_mlConfiguredModel = path + '.mlConfiguredModel';
5047
+ if (obj_mlConfiguredModel === undefined) {
5048
+ return new TypeError('Expected "defined" but received "' + typeof obj_mlConfiguredModel + '" (at "' + path_mlConfiguredModel + '")');
5049
+ }
5215
5050
  const obj_name = obj.name;
5216
5051
  const path_name = path + '.name';
5217
5052
  if (typeof obj_name !== 'string') {
5218
5053
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
5219
5054
  }
5220
- const obj_personalizationInputs = obj.personalizationInputs;
5221
- const path_personalizationInputs = path + '.personalizationInputs';
5222
- if (!ArrayIsArray(obj_personalizationInputs)) {
5223
- return new TypeError('Expected "array" but received "' + typeof obj_personalizationInputs + '" (at "' + path_personalizationInputs + '")');
5224
- }
5225
- for (let i = 0; i < obj_personalizationInputs.length; i++) {
5226
- const obj_personalizationInputs_item = obj_personalizationInputs[i];
5227
- const path_personalizationInputs_item = path_personalizationInputs + '[' + i + ']';
5228
- const referencepath_personalizationInputs_itemValidationError = validate$2(obj_personalizationInputs_item, path_personalizationInputs_item);
5229
- if (referencepath_personalizationInputs_itemValidationError !== null) {
5230
- let message = 'Object doesn\'t match PersonalizationDataMlModelInputRepresentation (at "' + path_personalizationInputs_item + '")\n';
5231
- message += referencepath_personalizationInputs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
5232
- return new TypeError(message);
5233
- }
5055
+ const obj_profileDataGraphName = obj.profileDataGraphName;
5056
+ const path_profileDataGraphName = path + '.profileDataGraphName';
5057
+ if (typeof obj_profileDataGraphName !== 'string') {
5058
+ return new TypeError('Expected "string" but received "' + typeof obj_profileDataGraphName + '" (at "' + path_profileDataGraphName + '")');
5234
5059
  }
5235
- const obj_profileDataGraphId = obj.profileDataGraphId;
5236
- const path_profileDataGraphId = path + '.profileDataGraphId';
5237
- if (typeof obj_profileDataGraphId !== 'string') {
5238
- return new TypeError('Expected "string" but received "' + typeof obj_profileDataGraphId + '" (at "' + path_profileDataGraphId + '")');
5060
+ const obj_status = obj.status;
5061
+ const path_status = path + '.status';
5062
+ if (typeof obj_status !== 'string') {
5063
+ return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
5239
5064
  }
5240
5065
  })();
5241
5066
  return v_error === undefined ? null : v_error;
5242
5067
  }
5243
5068
  const select$2 = function PersonalizationDataMlModelRepresentationSelect() {
5244
- const { selections: EsModelArtifactRepresentation__selections, opaque: EsModelArtifactRepresentation__opaque, } = select$4();
5245
- const { selections: PersonalizationDataMlModelInputRepresentation__selections, opaque: PersonalizationDataMlModelInputRepresentation__opaque, } = select$3();
5069
+ const { selections: PersonalizationDataMlModelInputFeatureRepresentation__selections, opaque: PersonalizationDataMlModelInputFeatureRepresentation__opaque, } = select$3();
5246
5070
  return {
5247
5071
  kind: 'Fragment',
5248
5072
  version: VERSION$1,
5249
5073
  private: [],
5250
5074
  selections: [
5251
5075
  {
5252
- name: 'dataSpaceId',
5253
- kind: 'Scalar'
5076
+ name: 'dataMlModelInputs',
5077
+ kind: 'Object',
5078
+ plural: true,
5079
+ selections: PersonalizationDataMlModelInputFeatureRepresentation__selections
5254
5080
  },
5255
5081
  {
5256
- name: 'esModelDefinition',
5257
- kind: 'Object',
5258
- selections: EsModelArtifactRepresentation__selections
5082
+ name: 'dataSpaceName',
5083
+ kind: 'Scalar'
5259
5084
  },
5260
5085
  {
5261
5086
  name: 'id',
@@ -5265,27 +5090,30 @@ const select$2 = function PersonalizationDataMlModelRepresentationSelect() {
5265
5090
  name: 'label',
5266
5091
  kind: 'Scalar'
5267
5092
  },
5093
+ {
5094
+ name: 'mlConfiguredModel',
5095
+ kind: 'Object',
5096
+ // any
5097
+ },
5268
5098
  {
5269
5099
  name: 'name',
5270
5100
  kind: 'Scalar'
5271
5101
  },
5272
5102
  {
5273
- name: 'personalizationInputs',
5274
- kind: 'Object',
5275
- plural: true,
5276
- selections: PersonalizationDataMlModelInputRepresentation__selections
5103
+ name: 'profileDataGraphName',
5104
+ kind: 'Scalar'
5277
5105
  },
5278
5106
  {
5279
- name: 'profileDataGraphId',
5107
+ name: 'status',
5280
5108
  kind: 'Scalar'
5281
5109
  }
5282
5110
  ]
5283
5111
  };
5284
5112
  };
5285
5113
  function equals$1(existing, incoming) {
5286
- const existing_dataSpaceId = existing.dataSpaceId;
5287
- const incoming_dataSpaceId = incoming.dataSpaceId;
5288
- if (!(existing_dataSpaceId === incoming_dataSpaceId)) {
5114
+ const existing_dataSpaceName = existing.dataSpaceName;
5115
+ const incoming_dataSpaceName = incoming.dataSpaceName;
5116
+ if (!(existing_dataSpaceName === incoming_dataSpaceName)) {
5289
5117
  return false;
5290
5118
  }
5291
5119
  const existing_id = existing.id;
@@ -5303,24 +5131,29 @@ function equals$1(existing, incoming) {
5303
5131
  if (!(existing_name === incoming_name)) {
5304
5132
  return false;
5305
5133
  }
5306
- const existing_profileDataGraphId = existing.profileDataGraphId;
5307
- const incoming_profileDataGraphId = incoming.profileDataGraphId;
5308
- if (!(existing_profileDataGraphId === incoming_profileDataGraphId)) {
5134
+ const existing_profileDataGraphName = existing.profileDataGraphName;
5135
+ const incoming_profileDataGraphName = incoming.profileDataGraphName;
5136
+ if (!(existing_profileDataGraphName === incoming_profileDataGraphName)) {
5309
5137
  return false;
5310
5138
  }
5311
- const existing_esModelDefinition = existing.esModelDefinition;
5312
- const incoming_esModelDefinition = incoming.esModelDefinition;
5313
- if (!(equals$3(existing_esModelDefinition, incoming_esModelDefinition))) {
5139
+ const existing_status = existing.status;
5140
+ const incoming_status = incoming.status;
5141
+ if (!(existing_status === incoming_status)) {
5314
5142
  return false;
5315
5143
  }
5316
- const existing_personalizationInputs = existing.personalizationInputs;
5317
- const incoming_personalizationInputs = incoming.personalizationInputs;
5318
- const equals_personalizationInputs_items = equalsArray(existing_personalizationInputs, incoming_personalizationInputs, (existing_personalizationInputs_item, incoming_personalizationInputs_item) => {
5319
- if (!(equals$2(existing_personalizationInputs_item, incoming_personalizationInputs_item))) {
5144
+ const existing_dataMlModelInputs = existing.dataMlModelInputs;
5145
+ const incoming_dataMlModelInputs = incoming.dataMlModelInputs;
5146
+ const equals_dataMlModelInputs_items = equalsArray(existing_dataMlModelInputs, incoming_dataMlModelInputs, (existing_dataMlModelInputs_item, incoming_dataMlModelInputs_item) => {
5147
+ if (!(equals$2(existing_dataMlModelInputs_item, incoming_dataMlModelInputs_item))) {
5320
5148
  return false;
5321
5149
  }
5322
5150
  });
5323
- if (equals_personalizationInputs_items === false) {
5151
+ if (equals_dataMlModelInputs_items === false) {
5152
+ return false;
5153
+ }
5154
+ const existing_mlConfiguredModel = existing.mlConfiguredModel;
5155
+ const incoming_mlConfiguredModel = incoming.mlConfiguredModel;
5156
+ if (JSONStringify(incoming_mlConfiguredModel) !== JSONStringify(existing_mlConfiguredModel)) {
5324
5157
  return false;
5325
5158
  }
5326
5159
  return true;
@@ -5410,7 +5243,7 @@ function select(luvio, params) {
5410
5243
  return select$1();
5411
5244
  }
5412
5245
  function keyBuilder$1(luvio, params) {
5413
- return keyPrefix + '::PersonalizationDataMlModelCollectionRepresentation:(' + 'dataspaceIdOrName:' + params.queryParams.dataspaceIdOrName + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'profileDataGraphIdOrName:' + params.queryParams.profileDataGraphIdOrName + ')';
5246
+ return keyPrefix + '::PersonalizationDataMlModelCollectionRepresentation:(' + 'dataSpaceName:' + params.queryParams.dataSpaceName + ',' + 'limit:' + params.queryParams.limit + ',' + 'mlConfiguredModelName:' + params.queryParams.mlConfiguredModelName + ',' + 'offset:' + params.queryParams.offset + ',' + 'profileDataGraphName:' + params.queryParams.profileDataGraphName + ',' + 'status:' + params.queryParams.status + ')';
5414
5247
  }
5415
5248
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
5416
5249
  getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
@@ -5448,7 +5281,7 @@ function createResourceRequest(config) {
5448
5281
  const headers = {};
5449
5282
  return {
5450
5283
  baseUri: '/services/data/v65.0',
5451
- basePath: '/personalization/einstein-studio/model-mapping',
5284
+ basePath: '/personalization/data-ml-models',
5452
5285
  method: 'get',
5453
5286
  body: null,
5454
5287
  urlParams: {},
@@ -5460,10 +5293,12 @@ function createResourceRequest(config) {
5460
5293
 
5461
5294
  const adapterName = 'getPersonalizationEsModelMapping';
5462
5295
  const getPersonalizationEsModelMapping_ConfigPropertyMetadata = [
5463
- generateParamConfigMetadata('dataspaceIdOrName', false, 1 /* QueryParameter */, 0 /* String */),
5296
+ generateParamConfigMetadata('dataSpaceName', false, 1 /* QueryParameter */, 0 /* String */),
5464
5297
  generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
5298
+ generateParamConfigMetadata('mlConfiguredModelName', false, 1 /* QueryParameter */, 0 /* String */),
5465
5299
  generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
5466
- generateParamConfigMetadata('profileDataGraphIdOrName', false, 1 /* QueryParameter */, 0 /* String */),
5300
+ generateParamConfigMetadata('profileDataGraphName', false, 1 /* QueryParameter */, 0 /* String */),
5301
+ generateParamConfigMetadata('status', false, 1 /* QueryParameter */, 0 /* String */),
5467
5302
  ];
5468
5303
  const getPersonalizationEsModelMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getPersonalizationEsModelMapping_ConfigPropertyMetadata);
5469
5304
  const createResourceParams = /*#__PURE__*/ createResourceParams$a(getPersonalizationEsModelMapping_ConfigPropertyMetadata);