@salesforce/lds-adapters-cdp-personalization-service 1.354.0-dev1 → 1.355.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.
@@ -8,6 +8,7 @@ import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createRes
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
11
+ const { stringify: JSONStringify$1 } = JSON;
11
12
  const { isArray: ArrayIsArray$1 } = Array;
12
13
  /**
13
14
  * Validates an adapter config is well-formed.
@@ -48,6 +49,61 @@ const snapshotRefreshOptions = {
48
49
  },
49
50
  }
50
51
  };
52
+ /**
53
+ * A deterministic JSON stringify implementation. Heavily adapted from https://github.com/epoberezkin/fast-json-stable-stringify.
54
+ * This is needed because insertion order for JSON.stringify(object) affects output:
55
+ * JSON.stringify({a: 1, b: 2})
56
+ * "{"a":1,"b":2}"
57
+ * JSON.stringify({b: 2, a: 1})
58
+ * "{"b":2,"a":1}"
59
+ * @param data Data to be JSON-stringified.
60
+ * @returns JSON.stringified value with consistent ordering of keys.
61
+ */
62
+ function stableJSONStringify(node) {
63
+ // This is for Date values.
64
+ if (node && node.toJSON && typeof node.toJSON === 'function') {
65
+ // eslint-disable-next-line no-param-reassign
66
+ node = node.toJSON();
67
+ }
68
+ if (node === undefined) {
69
+ return;
70
+ }
71
+ if (typeof node === 'number') {
72
+ return isFinite(node) ? '' + node : 'null';
73
+ }
74
+ if (typeof node !== 'object') {
75
+ return JSONStringify$1(node);
76
+ }
77
+ let i;
78
+ let out;
79
+ if (ArrayIsArray$1(node)) {
80
+ out = '[';
81
+ for (i = 0; i < node.length; i++) {
82
+ if (i) {
83
+ out += ',';
84
+ }
85
+ out += stableJSONStringify(node[i]) || 'null';
86
+ }
87
+ return out + ']';
88
+ }
89
+ if (node === null) {
90
+ return 'null';
91
+ }
92
+ const keys = ObjectKeys(node).sort();
93
+ out = '';
94
+ for (i = 0; i < keys.length; i++) {
95
+ const key = keys[i];
96
+ const value = stableJSONStringify(node[key]);
97
+ if (!value) {
98
+ continue;
99
+ }
100
+ if (out) {
101
+ out += ',';
102
+ }
103
+ out += JSONStringify$1(key) + ':' + value;
104
+ }
105
+ return '{' + out + '}';
106
+ }
51
107
  function generateParamConfigMetadata(name, required, resourceType, typeCheckShape, isArrayShape = false, coerceFn) {
52
108
  return {
53
109
  name,
@@ -92,7 +148,7 @@ function createLink(ref) {
92
148
  };
93
149
  }
94
150
 
95
- function validate$j(obj, path = 'PersonalizationAttributeValueInputRepresentation') {
151
+ function validate$l(obj, path = 'PersonalizationAttributeValueInputRepresentation') {
96
152
  const v_error = (() => {
97
153
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
98
154
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -183,7 +239,7 @@ function validate$j(obj, path = 'PersonalizationAttributeValueInputRepresentatio
183
239
  return v_error === undefined ? null : v_error;
184
240
  }
185
241
 
186
- function validate$i(obj, path = 'PersonalizationDecisionInputRepresentation') {
242
+ function validate$k(obj, path = 'PersonalizationDecisionInputRepresentation') {
187
243
  const v_error = (() => {
188
244
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
189
245
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -197,7 +253,7 @@ function validate$i(obj, path = 'PersonalizationDecisionInputRepresentation') {
197
253
  for (let i = 0; i < obj_attributeValues.length; i++) {
198
254
  const obj_attributeValues_item = obj_attributeValues[i];
199
255
  const path_attributeValues_item = path_attributeValues + '[' + i + ']';
200
- const referencepath_attributeValues_itemValidationError = validate$j(obj_attributeValues_item, path_attributeValues_item);
256
+ const referencepath_attributeValues_itemValidationError = validate$l(obj_attributeValues_item, path_attributeValues_item);
201
257
  if (referencepath_attributeValues_itemValidationError !== null) {
202
258
  let message = 'Object doesn\'t match PersonalizationAttributeValueInputRepresentation (at "' + path_attributeValues_item + '")\n';
203
259
  message += referencepath_attributeValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -371,8 +427,8 @@ function validate$i(obj, path = 'PersonalizationDecisionInputRepresentation') {
371
427
  return v_error === undefined ? null : v_error;
372
428
  }
373
429
 
374
- const VERSION$b = "52ea9c14b7a747a28cedbcff0e7ab169";
375
- function validate$h(obj, path = 'PersonalizationAttributeValueRepresentation') {
430
+ const VERSION$e = "52ea9c14b7a747a28cedbcff0e7ab169";
431
+ function validate$j(obj, path = 'PersonalizationAttributeValueRepresentation') {
376
432
  const v_error = (() => {
377
433
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
378
434
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -458,10 +514,10 @@ function validate$h(obj, path = 'PersonalizationAttributeValueRepresentation') {
458
514
  })();
459
515
  return v_error === undefined ? null : v_error;
460
516
  }
461
- const select$j = function PersonalizationAttributeValueRepresentationSelect() {
517
+ const select$m = function PersonalizationAttributeValueRepresentationSelect() {
462
518
  return {
463
519
  kind: 'Fragment',
464
- version: VERSION$b,
520
+ version: VERSION$e,
465
521
  private: [],
466
522
  selections: [
467
523
  {
@@ -479,7 +535,7 @@ const select$j = function PersonalizationAttributeValueRepresentationSelect() {
479
535
  ]
480
536
  };
481
537
  };
482
- function equals$b(existing, incoming) {
538
+ function equals$e(existing, incoming) {
483
539
  const existing_attributeEnum = existing.attributeEnum;
484
540
  const incoming_attributeEnum = incoming.attributeEnum;
485
541
  if (!(existing_attributeEnum === incoming_attributeEnum)) {
@@ -498,7 +554,7 @@ function equals$b(existing, incoming) {
498
554
  return true;
499
555
  }
500
556
 
501
- function validate$g(obj, path = 'FiltersWrapRepresentation') {
557
+ function validate$i(obj, path = 'FiltersWrapRepresentation') {
502
558
  const v_error = (() => {
503
559
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
504
560
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -577,7 +633,7 @@ function validate$g(obj, path = 'FiltersWrapRepresentation') {
577
633
  return v_error === undefined ? null : v_error;
578
634
  }
579
635
 
580
- function validate$f(obj, path = 'SubjectRepresentation') {
636
+ function validate$h(obj, path = 'SubjectRepresentation') {
581
637
  const v_error = (() => {
582
638
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
583
639
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -696,8 +752,8 @@ function validate$f(obj, path = 'SubjectRepresentation') {
696
752
  return v_error === undefined ? null : v_error;
697
753
  }
698
754
 
699
- const VERSION$a = "089c2877ffa367e376fe74f8d358ffa8";
700
- function validate$e(obj, path = 'FilterRepresentation') {
755
+ const VERSION$d = "089c2877ffa367e376fe74f8d358ffa8";
756
+ function validate$g(obj, path = 'FilterRepresentation') {
701
757
  const v_error = (() => {
702
758
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
703
759
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -735,7 +791,7 @@ function validate$e(obj, path = 'FilterRepresentation') {
735
791
  const path_comparison = path + '.comparison';
736
792
  let obj_comparison_union0 = null;
737
793
  const obj_comparison_union0_error = (() => {
738
- const referencepath_comparisonValidationError = validate$e(obj_comparison, path_comparison);
794
+ const referencepath_comparisonValidationError = validate$g(obj_comparison, path_comparison);
739
795
  if (referencepath_comparisonValidationError !== null) {
740
796
  let message = 'Object doesn\'t match FilterRepresentation (at "' + path_comparison + '")\n';
741
797
  message += referencepath_comparisonValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -766,7 +822,7 @@ function validate$e(obj, path = 'FilterRepresentation') {
766
822
  const path_filter = path + '.filter';
767
823
  let obj_filter_union0 = null;
768
824
  const obj_filter_union0_error = (() => {
769
- const referencepath_filterValidationError = validate$g(obj_filter, path_filter);
825
+ const referencepath_filterValidationError = validate$i(obj_filter, path_filter);
770
826
  if (referencepath_filterValidationError !== null) {
771
827
  let message = 'Object doesn\'t match FiltersWrapRepresentation (at "' + path_filter + '")\n';
772
828
  message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -803,7 +859,7 @@ function validate$e(obj, path = 'FilterRepresentation') {
803
859
  const path_filters_item = path_filters + '[' + i + ']';
804
860
  let obj_filters_item_union0 = null;
805
861
  const obj_filters_item_union0_error = (() => {
806
- const referencepath_filters_itemValidationError = validate$e(obj_filters_item, path_filters_item);
862
+ const referencepath_filters_itemValidationError = validate$g(obj_filters_item, path_filters_item);
807
863
  if (referencepath_filters_itemValidationError !== null) {
808
864
  let message = 'Object doesn\'t match FilterRepresentation (at "' + path_filters_item + '")\n';
809
865
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -863,7 +919,7 @@ function validate$e(obj, path = 'FilterRepresentation') {
863
919
  const path_metric = path + '.metric';
864
920
  let obj_metric_union0 = null;
865
921
  const obj_metric_union0_error = (() => {
866
- const referencepath_metricValidationError = validate$f(obj_metric, path_metric);
922
+ const referencepath_metricValidationError = validate$h(obj_metric, path_metric);
867
923
  if (referencepath_metricValidationError !== null) {
868
924
  let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_metric + '")\n';
869
925
  message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -932,7 +988,7 @@ function validate$e(obj, path = 'FilterRepresentation') {
932
988
  for (let i = 0; i < obj_path_item.length; i++) {
933
989
  const obj_path_item_item = obj_path_item[i];
934
990
  const path_path_item_item = path_path_item + '[' + i + ']';
935
- const referencepath_path_item_itemValidationError = validate$f(obj_path_item_item, path_path_item_item);
991
+ const referencepath_path_item_itemValidationError = validate$h(obj_path_item_item, path_path_item_item);
936
992
  if (referencepath_path_item_itemValidationError !== null) {
937
993
  let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_path_item_item + '")\n';
938
994
  message += referencepath_path_item_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1030,7 +1086,7 @@ function validate$e(obj, path = 'FilterRepresentation') {
1030
1086
  const path_subject = path + '.subject';
1031
1087
  let obj_subject_union0 = null;
1032
1088
  const obj_subject_union0_error = (() => {
1033
- const referencepath_subjectValidationError = validate$f(obj_subject, path_subject);
1089
+ const referencepath_subjectValidationError = validate$h(obj_subject, path_subject);
1034
1090
  if (referencepath_subjectValidationError !== null) {
1035
1091
  let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_subject + '")\n';
1036
1092
  message += referencepath_subjectValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1133,15 +1189,15 @@ const RepresentationType$7 = 'FilterRepresentation';
1133
1189
  function normalize$7(input, existing, path, luvio, store, timestamp) {
1134
1190
  return input;
1135
1191
  }
1136
- const select$i = function FilterRepresentationSelect() {
1192
+ const select$l = function FilterRepresentationSelect() {
1137
1193
  return {
1138
1194
  kind: 'Fragment',
1139
- version: VERSION$a,
1195
+ version: VERSION$d,
1140
1196
  private: [],
1141
1197
  opaque: true
1142
1198
  };
1143
1199
  };
1144
- function equals$a(existing, incoming) {
1200
+ function equals$d(existing, incoming) {
1145
1201
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
1146
1202
  return false;
1147
1203
  }
@@ -1149,14 +1205,14 @@ function equals$a(existing, incoming) {
1149
1205
  }
1150
1206
  const ingest$7 = function FilterRepresentationIngest(input, path, luvio, store, timestamp) {
1151
1207
  if (process.env.NODE_ENV !== 'production') {
1152
- const validateError = validate$e(input);
1208
+ const validateError = validate$g(input);
1153
1209
  if (validateError !== null) {
1154
1210
  throw validateError;
1155
1211
  }
1156
1212
  }
1157
1213
  const key = path.fullPath;
1158
1214
  const ttlToUse = path.ttl;
1159
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "personalization-service", VERSION$a, RepresentationType$7, equals$a);
1215
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "personalization-service", VERSION$d, RepresentationType$7, equals$d);
1160
1216
  return createLink(key);
1161
1217
  };
1162
1218
  function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
@@ -1169,8 +1225,8 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
1169
1225
  });
1170
1226
  }
1171
1227
 
1172
- const VERSION$9 = "ea475f10b4c028f8b97a44af1cf0be14";
1173
- function validate$d(obj, path = 'CriteriaRepresentation') {
1228
+ const VERSION$c = "ea475f10b4c028f8b97a44af1cf0be14";
1229
+ function validate$f(obj, path = 'CriteriaRepresentation') {
1174
1230
  const v_error = (() => {
1175
1231
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1176
1232
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1220,17 +1276,17 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
1220
1276
  }
1221
1277
  return input;
1222
1278
  }
1223
- const select$h = function CriteriaRepresentationSelect() {
1279
+ const select$k = function CriteriaRepresentationSelect() {
1224
1280
  return {
1225
1281
  kind: 'Fragment',
1226
- version: VERSION$9,
1282
+ version: VERSION$c,
1227
1283
  private: [],
1228
1284
  selections: [
1229
1285
  {
1230
1286
  name: 'filters',
1231
1287
  kind: 'Link',
1232
1288
  plural: true,
1233
- fragment: select$i()
1289
+ fragment: select$l()
1234
1290
  },
1235
1291
  {
1236
1292
  name: 'operator',
@@ -1243,7 +1299,7 @@ const select$h = function CriteriaRepresentationSelect() {
1243
1299
  ]
1244
1300
  };
1245
1301
  };
1246
- function equals$9(existing, incoming) {
1302
+ function equals$c(existing, incoming) {
1247
1303
  const existing_operator = existing.operator;
1248
1304
  const incoming_operator = incoming.operator;
1249
1305
  if (!(existing_operator === incoming_operator)) {
@@ -1268,14 +1324,14 @@ function equals$9(existing, incoming) {
1268
1324
  }
1269
1325
  const ingest$6 = function CriteriaRepresentationIngest(input, path, luvio, store, timestamp) {
1270
1326
  if (process.env.NODE_ENV !== 'production') {
1271
- const validateError = validate$d(input);
1327
+ const validateError = validate$f(input);
1272
1328
  if (validateError !== null) {
1273
1329
  throw validateError;
1274
1330
  }
1275
1331
  }
1276
1332
  const key = path.fullPath;
1277
1333
  const ttlToUse = path.ttl;
1278
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "personalization-service", VERSION$9, RepresentationType$6, equals$9);
1334
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "personalization-service", VERSION$c, RepresentationType$6, equals$c);
1279
1335
  return createLink(key);
1280
1336
  };
1281
1337
  function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
@@ -1292,8 +1348,8 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1292
1348
  }
1293
1349
  }
1294
1350
 
1295
- const VERSION$8 = "265767af783b296f5f902d6ed447b168";
1296
- function validate$c(obj, path = 'PersonalizationDecisionRepresentation') {
1351
+ const VERSION$b = "265767af783b296f5f902d6ed447b168";
1352
+ function validate$e(obj, path = 'PersonalizationDecisionRepresentation') {
1297
1353
  const v_error = (() => {
1298
1354
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1299
1355
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1306,7 +1362,7 @@ function validate$c(obj, path = 'PersonalizationDecisionRepresentation') {
1306
1362
  for (let i = 0; i < obj_attributeValues.length; i++) {
1307
1363
  const obj_attributeValues_item = obj_attributeValues[i];
1308
1364
  const path_attributeValues_item = path_attributeValues + '[' + i + ']';
1309
- const referencepath_attributeValues_itemValidationError = validate$h(obj_attributeValues_item, path_attributeValues_item);
1365
+ const referencepath_attributeValues_itemValidationError = validate$j(obj_attributeValues_item, path_attributeValues_item);
1310
1366
  if (referencepath_attributeValues_itemValidationError !== null) {
1311
1367
  let message = 'Object doesn\'t match PersonalizationAttributeValueRepresentation (at "' + path_attributeValues_item + '")\n';
1312
1368
  message += referencepath_attributeValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1646,11 +1702,11 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
1646
1702
  }
1647
1703
  return input;
1648
1704
  }
1649
- const select$g = function PersonalizationDecisionRepresentationSelect() {
1650
- const { selections: PersonalizationAttributeValueRepresentation__selections, opaque: PersonalizationAttributeValueRepresentation__opaque, } = select$j();
1705
+ const select$j = function PersonalizationDecisionRepresentationSelect() {
1706
+ const { selections: PersonalizationAttributeValueRepresentation__selections, opaque: PersonalizationAttributeValueRepresentation__opaque, } = select$m();
1651
1707
  return {
1652
1708
  kind: 'Fragment',
1653
- version: VERSION$8,
1709
+ version: VERSION$b,
1654
1710
  private: [],
1655
1711
  selections: [
1656
1712
  {
@@ -1671,7 +1727,7 @@ const select$g = function PersonalizationDecisionRepresentationSelect() {
1671
1727
  name: 'criteria',
1672
1728
  kind: 'Link',
1673
1729
  nullable: true,
1674
- fragment: select$h()
1730
+ fragment: select$k()
1675
1731
  },
1676
1732
  {
1677
1733
  name: 'description',
@@ -1712,11 +1768,11 @@ const select$g = function PersonalizationDecisionRepresentationSelect() {
1712
1768
  ]
1713
1769
  };
1714
1770
  };
1715
- function equals$8(existing, incoming) {
1771
+ function equals$b(existing, incoming) {
1716
1772
  const existing_attributeValues = existing.attributeValues;
1717
1773
  const incoming_attributeValues = incoming.attributeValues;
1718
1774
  const equals_attributeValues_items = equalsArray(existing_attributeValues, incoming_attributeValues, (existing_attributeValues_item, incoming_attributeValues_item) => {
1719
- if (!(equals$b(existing_attributeValues_item, incoming_attributeValues_item))) {
1775
+ if (!(equals$e(existing_attributeValues_item, incoming_attributeValues_item))) {
1720
1776
  return false;
1721
1777
  }
1722
1778
  });
@@ -1792,14 +1848,14 @@ function equals$8(existing, incoming) {
1792
1848
  }
1793
1849
  const ingest$5 = function PersonalizationDecisionRepresentationIngest(input, path, luvio, store, timestamp) {
1794
1850
  if (process.env.NODE_ENV !== 'production') {
1795
- const validateError = validate$c(input);
1851
+ const validateError = validate$e(input);
1796
1852
  if (validateError !== null) {
1797
1853
  throw validateError;
1798
1854
  }
1799
1855
  }
1800
1856
  const key = path.fullPath;
1801
1857
  const ttlToUse = path.ttl;
1802
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "personalization-service", VERSION$8, RepresentationType$5, equals$8);
1858
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "personalization-service", VERSION$b, RepresentationType$5, equals$b);
1803
1859
  return createLink(key);
1804
1860
  };
1805
1861
  function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
@@ -1816,8 +1872,8 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1816
1872
  }
1817
1873
 
1818
1874
  const TTL$4 = 600;
1819
- const VERSION$7 = "e5643ca13ef54c890c9177275a053de3";
1820
- function validate$b(obj, path = 'PersonalizationPointRepresentation') {
1875
+ const VERSION$a = "e5643ca13ef54c890c9177275a053de3";
1876
+ function validate$d(obj, path = 'PersonalizationPointRepresentation') {
1821
1877
  const v_error = (() => {
1822
1878
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1823
1879
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2323,10 +2379,10 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
2323
2379
  }
2324
2380
  return input;
2325
2381
  }
2326
- const select$f = function PersonalizationPointRepresentationSelect() {
2382
+ const select$i = function PersonalizationPointRepresentationSelect() {
2327
2383
  return {
2328
2384
  kind: 'Fragment',
2329
- version: VERSION$7,
2385
+ version: VERSION$a,
2330
2386
  private: [],
2331
2387
  selections: [
2332
2388
  {
@@ -2349,7 +2405,7 @@ const select$f = function PersonalizationPointRepresentationSelect() {
2349
2405
  name: 'decisions',
2350
2406
  kind: 'Link',
2351
2407
  plural: true,
2352
- fragment: select$g()
2408
+ fragment: select$j()
2353
2409
  },
2354
2410
  {
2355
2411
  name: 'description',
@@ -2418,7 +2474,7 @@ const select$f = function PersonalizationPointRepresentationSelect() {
2418
2474
  ]
2419
2475
  };
2420
2476
  };
2421
- function equals$7(existing, incoming) {
2477
+ function equals$a(existing, incoming) {
2422
2478
  const existing_isAuthenticationRequired = existing.isAuthenticationRequired;
2423
2479
  const incoming_isAuthenticationRequired = incoming.isAuthenticationRequired;
2424
2480
  if (!(existing_isAuthenticationRequired === incoming_isAuthenticationRequired)) {
@@ -2533,14 +2589,14 @@ function equals$7(existing, incoming) {
2533
2589
  }
2534
2590
  const ingest$4 = function PersonalizationPointRepresentationIngest(input, path, luvio, store, timestamp) {
2535
2591
  if (process.env.NODE_ENV !== 'production') {
2536
- const validateError = validate$b(input);
2592
+ const validateError = validate$d(input);
2537
2593
  if (validateError !== null) {
2538
2594
  throw validateError;
2539
2595
  }
2540
2596
  }
2541
2597
  const key = keyBuilderFromType$1(luvio, input);
2542
2598
  const ttlToUse = TTL$4;
2543
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "personalization-service", VERSION$7, RepresentationType$4, equals$7);
2599
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "personalization-service", VERSION$a, RepresentationType$4, equals$a);
2544
2600
  return createLink(key);
2545
2601
  };
2546
2602
  function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
@@ -2557,8 +2613,8 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
2557
2613
  }
2558
2614
  }
2559
2615
 
2560
- function select$e(luvio, params) {
2561
- return select$f();
2616
+ function select$h(luvio, params) {
2617
+ return select$i();
2562
2618
  }
2563
2619
  function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
2564
2620
  getTypeCacheKeys$4(storeKeyMap, luvio, response);
@@ -2569,7 +2625,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
2569
2625
  luvio.storeIngest(key, ingest$4, body);
2570
2626
  const snapshot = luvio.storeLookup({
2571
2627
  recordId: key,
2572
- node: select$e(),
2628
+ node: select$h(),
2573
2629
  variables: {},
2574
2630
  });
2575
2631
  if (process.env.NODE_ENV !== 'production') {
@@ -2656,7 +2712,7 @@ function typeCheckConfig$9(untrustedConfig) {
2656
2712
  const untrustedConfig_decisions_array = [];
2657
2713
  for (let i = 0, arrayLength = untrustedConfig_decisions.length; i < arrayLength; i++) {
2658
2714
  const untrustedConfig_decisions_item = untrustedConfig_decisions[i];
2659
- const referencePersonalizationDecisionInputRepresentationValidationError = validate$i(untrustedConfig_decisions_item);
2715
+ const referencePersonalizationDecisionInputRepresentationValidationError = validate$k(untrustedConfig_decisions_item);
2660
2716
  if (referencePersonalizationDecisionInputRepresentationValidationError === null) {
2661
2717
  untrustedConfig_decisions_array.push(untrustedConfig_decisions_item);
2662
2718
  }
@@ -2833,8 +2889,8 @@ const deletePersonalizationPointAdapterFactory = (luvio) => {
2833
2889
  };
2834
2890
  };
2835
2891
 
2836
- function select$d(luvio, params) {
2837
- return select$f();
2892
+ function select$g(luvio, params) {
2893
+ return select$i();
2838
2894
  }
2839
2895
  function keyBuilder$b(luvio, params) {
2840
2896
  return keyBuilder$d(luvio, {
@@ -2850,7 +2906,7 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
2850
2906
  luvio.storeIngest(key, ingest$4, body);
2851
2907
  const snapshot = luvio.storeLookup({
2852
2908
  recordId: key,
2853
- node: select$d(),
2909
+ node: select$g(),
2854
2910
  variables: {},
2855
2911
  }, snapshotRefresh);
2856
2912
  if (process.env.NODE_ENV !== 'production') {
@@ -2867,7 +2923,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
2867
2923
  const storeMetadataParams = {
2868
2924
  ttl: TTL$4,
2869
2925
  namespace: keyPrefix,
2870
- version: VERSION$7,
2926
+ version: VERSION$a,
2871
2927
  representationName: RepresentationType$4
2872
2928
  };
2873
2929
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -2917,7 +2973,7 @@ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
2917
2973
  }
2918
2974
  function adapterFragment$4(luvio, config) {
2919
2975
  createResourceParams$7(config);
2920
- return select$d();
2976
+ return select$g();
2921
2977
  }
2922
2978
  function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
2923
2979
  const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
@@ -2973,8 +3029,8 @@ const getPersonalizationPointAdapterFactory = (luvio) => function personalizatio
2973
3029
  buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
2974
3030
  };
2975
3031
 
2976
- function select$c(luvio, params) {
2977
- return select$f();
3032
+ function select$f(luvio, params) {
3033
+ return select$i();
2978
3034
  }
2979
3035
  function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
2980
3036
  getTypeCacheKeys$4(storeKeyMap, luvio, response);
@@ -2985,7 +3041,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
2985
3041
  luvio.storeIngest(key, ingest$4, body);
2986
3042
  const snapshot = luvio.storeLookup({
2987
3043
  recordId: key,
2988
- node: select$c(),
3044
+ node: select$f(),
2989
3045
  variables: {},
2990
3046
  });
2991
3047
  if (process.env.NODE_ENV !== 'production') {
@@ -3073,7 +3129,7 @@ function typeCheckConfig$6(untrustedConfig) {
3073
3129
  const untrustedConfig_decisions_array = [];
3074
3130
  for (let i = 0, arrayLength = untrustedConfig_decisions.length; i < arrayLength; i++) {
3075
3131
  const untrustedConfig_decisions_item = untrustedConfig_decisions[i];
3076
- const referencePersonalizationDecisionInputRepresentationValidationError = validate$i(untrustedConfig_decisions_item);
3132
+ const referencePersonalizationDecisionInputRepresentationValidationError = validate$k(untrustedConfig_decisions_item);
3077
3133
  if (referencePersonalizationDecisionInputRepresentationValidationError === null) {
3078
3134
  untrustedConfig_decisions_array.push(untrustedConfig_decisions_item);
3079
3135
  }
@@ -3166,7 +3222,7 @@ const updatePersonalizationPointAdapterFactory = (luvio) => {
3166
3222
  };
3167
3223
  };
3168
3224
 
3169
- function validate$a(obj, path = 'PersonalizationAttributeInputRepresentation') {
3225
+ function validate$c(obj, path = 'PersonalizationAttributeInputRepresentation') {
3170
3226
  const v_error = (() => {
3171
3227
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3172
3228
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3213,8 +3269,8 @@ function validate$a(obj, path = 'PersonalizationAttributeInputRepresentation') {
3213
3269
  return v_error === undefined ? null : v_error;
3214
3270
  }
3215
3271
 
3216
- const VERSION$6 = "014064b188ff923423af6301d64be36a";
3217
- function validate$9(obj, path = 'PersonalizationAttributeRepresentation') {
3272
+ const VERSION$9 = "014064b188ff923423af6301d64be36a";
3273
+ function validate$b(obj, path = 'PersonalizationAttributeRepresentation') {
3218
3274
  const v_error = (() => {
3219
3275
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3220
3276
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3309,10 +3365,10 @@ function validate$9(obj, path = 'PersonalizationAttributeRepresentation') {
3309
3365
  })();
3310
3366
  return v_error === undefined ? null : v_error;
3311
3367
  }
3312
- const select$b = function PersonalizationAttributeRepresentationSelect() {
3368
+ const select$e = function PersonalizationAttributeRepresentationSelect() {
3313
3369
  return {
3314
3370
  kind: 'Fragment',
3315
- version: VERSION$6,
3371
+ version: VERSION$9,
3316
3372
  private: [],
3317
3373
  selections: [
3318
3374
  {
@@ -3354,7 +3410,7 @@ const select$b = function PersonalizationAttributeRepresentationSelect() {
3354
3410
  ]
3355
3411
  };
3356
3412
  };
3357
- function equals$6(existing, incoming) {
3413
+ function equals$9(existing, incoming) {
3358
3414
  const existing_createdById = existing.createdById;
3359
3415
  const incoming_createdById = incoming.createdById;
3360
3416
  if (!(existing_createdById === incoming_createdById)) {
@@ -3404,8 +3460,8 @@ function equals$6(existing, incoming) {
3404
3460
  }
3405
3461
 
3406
3462
  const TTL$3 = 600;
3407
- const VERSION$5 = "25740f87643de6fdae570c77bbec7377";
3408
- function validate$8(obj, path = 'PersonalizationSchemaRepresentation') {
3463
+ const VERSION$8 = "25740f87643de6fdae570c77bbec7377";
3464
+ function validate$a(obj, path = 'PersonalizationSchemaRepresentation') {
3409
3465
  const v_error = (() => {
3410
3466
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3411
3467
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3418,7 +3474,7 @@ function validate$8(obj, path = 'PersonalizationSchemaRepresentation') {
3418
3474
  for (let i = 0; i < obj_attributes.length; i++) {
3419
3475
  const obj_attributes_item = obj_attributes[i];
3420
3476
  const path_attributes_item = path_attributes + '[' + i + ']';
3421
- const referencepath_attributes_itemValidationError = validate$9(obj_attributes_item, path_attributes_item);
3477
+ const referencepath_attributes_itemValidationError = validate$b(obj_attributes_item, path_attributes_item);
3422
3478
  if (referencepath_attributes_itemValidationError !== null) {
3423
3479
  let message = 'Object doesn\'t match PersonalizationAttributeRepresentation (at "' + path_attributes_item + '")\n';
3424
3480
  message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3576,11 +3632,11 @@ function keyBuilderFromType(luvio, object) {
3576
3632
  function normalize$3(input, existing, path, luvio, store, timestamp) {
3577
3633
  return input;
3578
3634
  }
3579
- const select$a = function PersonalizationSchemaRepresentationSelect() {
3580
- const { selections: PersonalizationAttributeRepresentation__selections, opaque: PersonalizationAttributeRepresentation__opaque, } = select$b();
3635
+ const select$d = function PersonalizationSchemaRepresentationSelect() {
3636
+ const { selections: PersonalizationAttributeRepresentation__selections, opaque: PersonalizationAttributeRepresentation__opaque, } = select$e();
3581
3637
  return {
3582
3638
  kind: 'Fragment',
3583
- version: VERSION$5,
3639
+ version: VERSION$8,
3584
3640
  private: [],
3585
3641
  selections: [
3586
3642
  {
@@ -3645,7 +3701,7 @@ const select$a = function PersonalizationSchemaRepresentationSelect() {
3645
3701
  ]
3646
3702
  };
3647
3703
  };
3648
- function equals$5(existing, incoming) {
3704
+ function equals$8(existing, incoming) {
3649
3705
  const existing_createdById = existing.createdById;
3650
3706
  const incoming_createdById = incoming.createdById;
3651
3707
  if (!(existing_createdById === incoming_createdById)) {
@@ -3699,7 +3755,7 @@ function equals$5(existing, incoming) {
3699
3755
  const existing_attributes = existing.attributes;
3700
3756
  const incoming_attributes = incoming.attributes;
3701
3757
  const equals_attributes_items = equalsArray(existing_attributes, incoming_attributes, (existing_attributes_item, incoming_attributes_item) => {
3702
- if (!(equals$6(existing_attributes_item, incoming_attributes_item))) {
3758
+ if (!(equals$9(existing_attributes_item, incoming_attributes_item))) {
3703
3759
  return false;
3704
3760
  }
3705
3761
  });
@@ -3730,14 +3786,14 @@ function equals$5(existing, incoming) {
3730
3786
  }
3731
3787
  const ingest$3 = function PersonalizationSchemaRepresentationIngest(input, path, luvio, store, timestamp) {
3732
3788
  if (process.env.NODE_ENV !== 'production') {
3733
- const validateError = validate$8(input);
3789
+ const validateError = validate$a(input);
3734
3790
  if (validateError !== null) {
3735
3791
  throw validateError;
3736
3792
  }
3737
3793
  }
3738
3794
  const key = keyBuilderFromType(luvio, input);
3739
3795
  const ttlToUse = TTL$3;
3740
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "personalization-service", VERSION$5, RepresentationType$3, equals$5);
3796
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "personalization-service", VERSION$8, RepresentationType$3, equals$8);
3741
3797
  return createLink(key);
3742
3798
  };
3743
3799
  function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
@@ -3750,8 +3806,8 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
3750
3806
  });
3751
3807
  }
3752
3808
 
3753
- function select$9(luvio, params) {
3754
- return select$a();
3809
+ function select$c(luvio, params) {
3810
+ return select$d();
3755
3811
  }
3756
3812
  function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
3757
3813
  getTypeCacheKeys$3(storeKeyMap, luvio, response);
@@ -3762,7 +3818,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
3762
3818
  luvio.storeIngest(key, ingest$3, body);
3763
3819
  const snapshot = luvio.storeLookup({
3764
3820
  recordId: key,
3765
- node: select$9(),
3821
+ node: select$c(),
3766
3822
  variables: {},
3767
3823
  });
3768
3824
  if (process.env.NODE_ENV !== 'production') {
@@ -3829,7 +3885,7 @@ function typeCheckConfig$5(untrustedConfig) {
3829
3885
  const untrustedConfig_attributes_array = [];
3830
3886
  for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
3831
3887
  const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
3832
- const referencePersonalizationAttributeInputRepresentationValidationError = validate$a(untrustedConfig_attributes_item);
3888
+ const referencePersonalizationAttributeInputRepresentationValidationError = validate$c(untrustedConfig_attributes_item);
3833
3889
  if (referencePersonalizationAttributeInputRepresentationValidationError === null) {
3834
3890
  untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
3835
3891
  }
@@ -3985,8 +4041,8 @@ const deletePersonalizationSchemaAdapterFactory = (luvio) => {
3985
4041
  };
3986
4042
  };
3987
4043
 
3988
- function select$8(luvio, params) {
3989
- return select$a();
4044
+ function select$b(luvio, params) {
4045
+ return select$d();
3990
4046
  }
3991
4047
  function keyBuilder$7(luvio, params) {
3992
4048
  return keyBuilder$9(luvio, {
@@ -4002,7 +4058,7 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
4002
4058
  luvio.storeIngest(key, ingest$3, body);
4003
4059
  const snapshot = luvio.storeLookup({
4004
4060
  recordId: key,
4005
- node: select$8(),
4061
+ node: select$b(),
4006
4062
  variables: {},
4007
4063
  }, snapshotRefresh);
4008
4064
  if (process.env.NODE_ENV !== 'production') {
@@ -4019,7 +4075,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
4019
4075
  const storeMetadataParams = {
4020
4076
  ttl: TTL$3,
4021
4077
  namespace: keyPrefix,
4022
- version: VERSION$5,
4078
+ version: VERSION$8,
4023
4079
  representationName: RepresentationType$3
4024
4080
  };
4025
4081
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -4069,7 +4125,7 @@ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
4069
4125
  }
4070
4126
  function adapterFragment$3(luvio, config) {
4071
4127
  createResourceParams$3(config);
4072
- return select$8();
4128
+ return select$b();
4073
4129
  }
4074
4130
  function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
4075
4131
  const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
@@ -4125,8 +4181,8 @@ const getPersonalizationSchemaAdapterFactory = (luvio) => function personalizati
4125
4181
  buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
4126
4182
  };
4127
4183
 
4128
- const VERSION$4 = "4140d8b5bf494d4e8f3ef8713b0ffd7d";
4129
- function validate$7(obj, path = 'PersonalizationRecommenderJobRepresentation') {
4184
+ const VERSION$7 = "4140d8b5bf494d4e8f3ef8713b0ffd7d";
4185
+ function validate$9(obj, path = 'PersonalizationRecommenderJobRepresentation') {
4130
4186
  const v_error = (() => {
4131
4187
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4132
4188
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4176,10 +4232,10 @@ function validate$7(obj, path = 'PersonalizationRecommenderJobRepresentation') {
4176
4232
  })();
4177
4233
  return v_error === undefined ? null : v_error;
4178
4234
  }
4179
- const select$7 = function PersonalizationRecommenderJobRepresentationSelect() {
4235
+ const select$a = function PersonalizationRecommenderJobRepresentationSelect() {
4180
4236
  return {
4181
4237
  kind: 'Fragment',
4182
- version: VERSION$4,
4238
+ version: VERSION$7,
4183
4239
  private: [],
4184
4240
  selections: [
4185
4241
  {
@@ -4215,7 +4271,7 @@ const select$7 = function PersonalizationRecommenderJobRepresentationSelect() {
4215
4271
  ]
4216
4272
  };
4217
4273
  };
4218
- function equals$4(existing, incoming) {
4274
+ function equals$7(existing, incoming) {
4219
4275
  const existing_errorCode = existing.errorCode;
4220
4276
  const incoming_errorCode = incoming.errorCode;
4221
4277
  // if at least one of these optionals is defined
@@ -4298,8 +4354,8 @@ function equals$4(existing, incoming) {
4298
4354
  }
4299
4355
 
4300
4356
  const TTL$2 = 600;
4301
- const VERSION$3 = "2fab2250d4ed5adcbb1a5c19a64cd765";
4302
- function validate$6(obj, path = 'PersonalizationRecommenderJobCollectionRepresentation') {
4357
+ const VERSION$6 = "2fab2250d4ed5adcbb1a5c19a64cd765";
4358
+ function validate$8(obj, path = 'PersonalizationRecommenderJobCollectionRepresentation') {
4303
4359
  const v_error = (() => {
4304
4360
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4305
4361
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4320,7 +4376,7 @@ function validate$6(obj, path = 'PersonalizationRecommenderJobCollectionRepresen
4320
4376
  for (let i = 0; i < obj_jobs.length; i++) {
4321
4377
  const obj_jobs_item = obj_jobs[i];
4322
4378
  const path_jobs_item = path_jobs + '[' + i + ']';
4323
- const referencepath_jobs_itemValidationError = validate$7(obj_jobs_item, path_jobs_item);
4379
+ const referencepath_jobs_itemValidationError = validate$9(obj_jobs_item, path_jobs_item);
4324
4380
  if (referencepath_jobs_itemValidationError !== null) {
4325
4381
  let message = 'Object doesn\'t match PersonalizationRecommenderJobRepresentation (at "' + path_jobs_item + '")\n';
4326
4382
  message += referencepath_jobs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4342,11 +4398,11 @@ const RepresentationType$2 = 'PersonalizationRecommenderJobCollectionRepresentat
4342
4398
  function normalize$2(input, existing, path, luvio, store, timestamp) {
4343
4399
  return input;
4344
4400
  }
4345
- const select$6 = function PersonalizationRecommenderJobCollectionRepresentationSelect() {
4346
- const { selections: PersonalizationRecommenderJobRepresentation__selections, opaque: PersonalizationRecommenderJobRepresentation__opaque, } = select$7();
4401
+ const select$9 = function PersonalizationRecommenderJobCollectionRepresentationSelect() {
4402
+ const { selections: PersonalizationRecommenderJobRepresentation__selections, opaque: PersonalizationRecommenderJobRepresentation__opaque, } = select$a();
4347
4403
  return {
4348
4404
  kind: 'Fragment',
4349
- version: VERSION$3,
4405
+ version: VERSION$6,
4350
4406
  private: [],
4351
4407
  selections: [
4352
4408
  {
@@ -4369,7 +4425,7 @@ const select$6 = function PersonalizationRecommenderJobCollectionRepresentationS
4369
4425
  ]
4370
4426
  };
4371
4427
  };
4372
- function equals$3(existing, incoming) {
4428
+ function equals$6(existing, incoming) {
4373
4429
  const existing_currentPageUrl = existing.currentPageUrl;
4374
4430
  const incoming_currentPageUrl = incoming.currentPageUrl;
4375
4431
  // if at least one of these optionals is defined
@@ -4406,7 +4462,7 @@ function equals$3(existing, incoming) {
4406
4462
  return false;
4407
4463
  }
4408
4464
  const equals_jobs_items = equalsArray(existing_jobs, incoming_jobs, (existing_jobs_item, incoming_jobs_item) => {
4409
- if (!(equals$4(existing_jobs_item, incoming_jobs_item))) {
4465
+ if (!(equals$7(existing_jobs_item, incoming_jobs_item))) {
4410
4466
  return false;
4411
4467
  }
4412
4468
  });
@@ -4418,14 +4474,14 @@ function equals$3(existing, incoming) {
4418
4474
  }
4419
4475
  const ingest$2 = function PersonalizationRecommenderJobCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
4420
4476
  if (process.env.NODE_ENV !== 'production') {
4421
- const validateError = validate$6(input);
4477
+ const validateError = validate$8(input);
4422
4478
  if (validateError !== null) {
4423
4479
  throw validateError;
4424
4480
  }
4425
4481
  }
4426
4482
  const key = path.fullPath;
4427
4483
  const ttlToUse = TTL$2;
4428
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "personalization-service", VERSION$3, RepresentationType$2, equals$3);
4484
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "personalization-service", VERSION$6, RepresentationType$2, equals$6);
4429
4485
  return createLink(key);
4430
4486
  };
4431
4487
  function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
@@ -4438,8 +4494,8 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
4438
4494
  });
4439
4495
  }
4440
4496
 
4441
- function select$5(luvio, params) {
4442
- return select$6();
4497
+ function select$8(luvio, params) {
4498
+ return select$9();
4443
4499
  }
4444
4500
  function keyBuilder$5(luvio, params) {
4445
4501
  return keyPrefix + '::PersonalizationRecommenderJobCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'idOrName:' + params.urlParams.idOrName + ')';
@@ -4453,7 +4509,7 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
4453
4509
  luvio.storeIngest(key, ingest$2, body);
4454
4510
  const snapshot = luvio.storeLookup({
4455
4511
  recordId: key,
4456
- node: select$5(),
4512
+ node: select$8(),
4457
4513
  variables: {},
4458
4514
  }, snapshotRefresh);
4459
4515
  if (process.env.NODE_ENV !== 'production') {
@@ -4470,7 +4526,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
4470
4526
  const storeMetadataParams = {
4471
4527
  ttl: TTL$2,
4472
4528
  namespace: keyPrefix,
4473
- version: VERSION$3,
4529
+ version: VERSION$6,
4474
4530
  representationName: RepresentationType$2
4475
4531
  };
4476
4532
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -4522,7 +4578,7 @@ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
4522
4578
  }
4523
4579
  function adapterFragment$2(luvio, config) {
4524
4580
  createResourceParams$2(config);
4525
- return select$5();
4581
+ return select$8();
4526
4582
  }
4527
4583
  function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
4528
4584
  const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
@@ -4578,7 +4634,7 @@ const getTrainingHistoryAdapterFactory = (luvio) => function personalizationServ
4578
4634
  buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
4579
4635
  };
4580
4636
 
4581
- function validate$5(obj, path = 'AnchorReferenceRepresentation') {
4637
+ function validate$7(obj, path = 'AnchorReferenceRepresentation') {
4582
4638
  const v_error = (() => {
4583
4639
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4584
4640
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4597,33 +4653,7 @@ function validate$5(obj, path = 'AnchorReferenceRepresentation') {
4597
4653
  return v_error === undefined ? null : v_error;
4598
4654
  }
4599
4655
 
4600
- function validate$4(obj, path = 'RuleGroupInputRepresentation2') {
4601
- const v_error = (() => {
4602
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4603
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4604
- }
4605
- const obj_operator = obj.operator;
4606
- const path_operator = path + '.operator';
4607
- if (typeof obj_operator !== 'string') {
4608
- return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
4609
- }
4610
- const obj_rules = obj.rules;
4611
- const path_rules = path + '.rules';
4612
- if (!ArrayIsArray(obj_rules)) {
4613
- return new TypeError('Expected "array" but received "' + typeof obj_rules + '" (at "' + path_rules + '")');
4614
- }
4615
- for (let i = 0; i < obj_rules.length; i++) {
4616
- const obj_rules_item = obj_rules[i];
4617
- const path_rules_item = path_rules + '[' + i + ']';
4618
- if (obj_rules_item === undefined) {
4619
- return new TypeError('Expected "defined" but received "' + typeof obj_rules_item + '" (at "' + path_rules_item + '")');
4620
- }
4621
- }
4622
- })();
4623
- return v_error === undefined ? null : v_error;
4624
- }
4625
-
4626
- function validate$3(obj, path = 'RuleGroupInputRepresentation') {
4656
+ function validate$6(obj, path = 'RuleGroupInputRepresentation') {
4627
4657
  const v_error = (() => {
4628
4658
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4629
4659
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4641,8 +4671,8 @@ function validate$3(obj, path = 'RuleGroupInputRepresentation') {
4641
4671
  for (let i = 0; i < obj_rules.length; i++) {
4642
4672
  const obj_rules_item = obj_rules[i];
4643
4673
  const path_rules_item = path_rules + '[' + i + ']';
4644
- if (obj_rules_item === undefined) {
4645
- return new TypeError('Expected "defined" but received "' + typeof obj_rules_item + '" (at "' + path_rules_item + '")');
4674
+ if (typeof obj_rules_item !== 'object' || ArrayIsArray(obj_rules_item) || obj_rules_item === null) {
4675
+ return new TypeError('Expected "object" but received "' + typeof obj_rules_item + '" (at "' + path_rules_item + '")');
4646
4676
  }
4647
4677
  }
4648
4678
  })();
@@ -4650,8 +4680,8 @@ function validate$3(obj, path = 'RuleGroupInputRepresentation') {
4650
4680
  }
4651
4681
 
4652
4682
  const TTL$1 = 600;
4653
- const VERSION$2 = "03b72d395296cf8da94dcea60a4830e8";
4654
- function validate$2(obj, path = 'PersonalizationRecommenderSimulateActionRepresentation') {
4683
+ const VERSION$5 = "03b72d395296cf8da94dcea60a4830e8";
4684
+ function validate$5(obj, path = 'PersonalizationRecommenderSimulateActionRepresentation') {
4655
4685
  const v_error = (() => {
4656
4686
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4657
4687
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4668,10 +4698,10 @@ const RepresentationType$1 = 'PersonalizationRecommenderSimulateActionRepresenta
4668
4698
  function normalize$1(input, existing, path, luvio, store, timestamp) {
4669
4699
  return input;
4670
4700
  }
4671
- const select$4 = function PersonalizationRecommenderSimulateActionRepresentationSelect() {
4701
+ const select$7 = function PersonalizationRecommenderSimulateActionRepresentationSelect() {
4672
4702
  return {
4673
4703
  kind: 'Fragment',
4674
- version: VERSION$2,
4704
+ version: VERSION$5,
4675
4705
  private: [],
4676
4706
  selections: [
4677
4707
  {
@@ -4682,7 +4712,7 @@ const select$4 = function PersonalizationRecommenderSimulateActionRepresentation
4682
4712
  ]
4683
4713
  };
4684
4714
  };
4685
- function equals$2(existing, incoming) {
4715
+ function equals$5(existing, incoming) {
4686
4716
  const existing_recommendations = existing.recommendations;
4687
4717
  const incoming_recommendations = incoming.recommendations;
4688
4718
  if (JSONStringify(incoming_recommendations) !== JSONStringify(existing_recommendations)) {
@@ -4692,14 +4722,14 @@ function equals$2(existing, incoming) {
4692
4722
  }
4693
4723
  const ingest$1 = function PersonalizationRecommenderSimulateActionRepresentationIngest(input, path, luvio, store, timestamp) {
4694
4724
  if (process.env.NODE_ENV !== 'production') {
4695
- const validateError = validate$2(input);
4725
+ const validateError = validate$5(input);
4696
4726
  if (validateError !== null) {
4697
4727
  throw validateError;
4698
4728
  }
4699
4729
  }
4700
4730
  const key = path.fullPath;
4701
4731
  const ttlToUse = TTL$1;
4702
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "personalization-service", VERSION$2, RepresentationType$1, equals$2);
4732
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "personalization-service", VERSION$5, RepresentationType$1, equals$5);
4703
4733
  return createLink(key);
4704
4734
  };
4705
4735
  function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
@@ -4712,12 +4742,11 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
4712
4742
  });
4713
4743
  }
4714
4744
 
4715
- function select$3(luvio, params) {
4716
- return select$4();
4745
+ function select$6(luvio, params) {
4746
+ return select$7();
4717
4747
  }
4718
4748
  function keyBuilder$3(luvio, params) {
4719
- var _a, _b, _c, _d, _e, _f, _g, _h;
4720
- return keyPrefix + '::PersonalizationRecommenderSimulateActionRepresentation:(' + 'idOrName:' + params.urlParams.idOrName + ',' + (params.body.anchors === undefined ? undefined : ('[' + params.body.anchors.map(element => 'anchors.dmoName:' + element.dmoName + '::' + 'anchors.id:' + element.id).join(',') + ']')) + '::' + (((_a = params.body.excludeFilters) === null || _a === void 0 ? void 0 : _a.operator) === undefined ? 'excludeFilters.operator' : 'excludeFilters.operator:' + ((_b = params.body.excludeFilters) === null || _b === void 0 ? void 0 : _b.operator)) + '::' + (((_c = params.body.excludeFilters) === null || _c === void 0 ? void 0 : _c.rules) === undefined ? 'excludeFilters.rules' : 'excludeFilters.rules:' + ((_d = params.body.excludeFilters) === null || _d === void 0 ? void 0 : _d.rules)) + '::' + (((_e = params.body.includeFilters) === null || _e === void 0 ? void 0 : _e.operator) === undefined ? 'includeFilters.operator' : 'includeFilters.operator:' + ((_f = params.body.includeFilters) === null || _f === void 0 ? void 0 : _f.operator)) + '::' + (((_g = params.body.includeFilters) === null || _g === void 0 ? void 0 : _g.rules) === undefined ? 'includeFilters.rules' : 'includeFilters.rules:' + ((_h = params.body.includeFilters) === null || _h === void 0 ? void 0 : _h.rules)) + '::' + (params.body.individualId === undefined ? 'individualId' : 'individualId:' + params.body.individualId) + ')';
4749
+ return keyPrefix + '::PersonalizationRecommenderSimulateActionRepresentation:(' + 'idOrName:' + params.urlParams.idOrName + ',' + (params.body.anchors === undefined ? undefined : ('[' + params.body.anchors.map(element => 'anchors.dmoName:' + element.dmoName + '::' + 'anchors.id:' + element.id).join(',') + ']')) + '::' + (params.body.excludeFilters === undefined ? undefined : ('[' + params.body.excludeFilters.map(element => 'excludeFilters.operator:' + element.operator + '::' + '[' + element.rules.map(element => stableJSONStringify(element)).join(',') + ']').join(',') + ']')) + '::' + (params.body.includeFilters === undefined ? undefined : ('[' + params.body.includeFilters.map(element => 'includeFilters.operator:' + element.operator + '::' + '[' + element.rules.map(element => stableJSONStringify(element)).join(',') + ']').join(',') + ']')) + '::' + (params.body.individualId === undefined ? 'individualId' : 'individualId:' + params.body.individualId) + ')';
4721
4750
  }
4722
4751
  function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
4723
4752
  getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
@@ -4728,7 +4757,7 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
4728
4757
  luvio.storeIngest(key, ingest$1, body);
4729
4758
  const snapshot = luvio.storeLookup({
4730
4759
  recordId: key,
4731
- node: select$3(),
4760
+ node: select$6(),
4732
4761
  variables: {},
4733
4762
  }, snapshotRefresh);
4734
4763
  if (process.env.NODE_ENV !== 'production') {
@@ -4745,7 +4774,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
4745
4774
  const storeMetadataParams = {
4746
4775
  ttl: TTL$1,
4747
4776
  namespace: keyPrefix,
4748
- version: VERSION$2,
4777
+ version: VERSION$5,
4749
4778
  representationName: RepresentationType$1
4750
4779
  };
4751
4780
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -4769,8 +4798,8 @@ const adapterName$1 = 'postPersonalizationRecommenderSimulateAction';
4769
4798
  const postPersonalizationRecommenderSimulateAction_ConfigPropertyMetadata = [
4770
4799
  generateParamConfigMetadata('idOrName', true, 0 /* UrlParameter */, 0 /* String */),
4771
4800
  generateParamConfigMetadata('anchors', false, 2 /* Body */, 4 /* Unsupported */, true),
4772
- generateParamConfigMetadata('excludeFilters', false, 2 /* Body */, 4 /* Unsupported */),
4773
- generateParamConfigMetadata('includeFilters', false, 2 /* Body */, 4 /* Unsupported */),
4801
+ generateParamConfigMetadata('excludeFilters', false, 2 /* Body */, 4 /* Unsupported */, true),
4802
+ generateParamConfigMetadata('includeFilters', false, 2 /* Body */, 4 /* Unsupported */, true),
4774
4803
  generateParamConfigMetadata('individualId', false, 2 /* Body */, 4 /* Unsupported */),
4775
4804
  ];
4776
4805
  const postPersonalizationRecommenderSimulateAction_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, postPersonalizationRecommenderSimulateAction_ConfigPropertyMetadata);
@@ -4787,7 +4816,7 @@ function typeCheckConfig$1(untrustedConfig) {
4787
4816
  const untrustedConfig_anchors_array = [];
4788
4817
  for (let i = 0, arrayLength = untrustedConfig_anchors.length; i < arrayLength; i++) {
4789
4818
  const untrustedConfig_anchors_item = untrustedConfig_anchors[i];
4790
- const referenceAnchorReferenceRepresentationValidationError = validate$5(untrustedConfig_anchors_item);
4819
+ const referenceAnchorReferenceRepresentationValidationError = validate$7(untrustedConfig_anchors_item);
4791
4820
  if (referenceAnchorReferenceRepresentationValidationError === null) {
4792
4821
  untrustedConfig_anchors_array.push(untrustedConfig_anchors_item);
4793
4822
  }
@@ -4795,14 +4824,28 @@ function typeCheckConfig$1(untrustedConfig) {
4795
4824
  config.anchors = untrustedConfig_anchors_array;
4796
4825
  }
4797
4826
  const untrustedConfig_excludeFilters = untrustedConfig.excludeFilters;
4798
- const referenceRuleGroupInputRepresentation2ValidationError = validate$4(untrustedConfig_excludeFilters);
4799
- if (referenceRuleGroupInputRepresentation2ValidationError === null) {
4800
- config.excludeFilters = untrustedConfig_excludeFilters;
4827
+ if (ArrayIsArray$1(untrustedConfig_excludeFilters)) {
4828
+ const untrustedConfig_excludeFilters_array = [];
4829
+ for (let i = 0, arrayLength = untrustedConfig_excludeFilters.length; i < arrayLength; i++) {
4830
+ const untrustedConfig_excludeFilters_item = untrustedConfig_excludeFilters[i];
4831
+ const referenceRuleGroupInputRepresentationValidationError = validate$6(untrustedConfig_excludeFilters_item);
4832
+ if (referenceRuleGroupInputRepresentationValidationError === null) {
4833
+ untrustedConfig_excludeFilters_array.push(untrustedConfig_excludeFilters_item);
4834
+ }
4835
+ }
4836
+ config.excludeFilters = untrustedConfig_excludeFilters_array;
4801
4837
  }
4802
4838
  const untrustedConfig_includeFilters = untrustedConfig.includeFilters;
4803
- const referenceRuleGroupInputRepresentationValidationError = validate$3(untrustedConfig_includeFilters);
4804
- if (referenceRuleGroupInputRepresentationValidationError === null) {
4805
- config.includeFilters = untrustedConfig_includeFilters;
4839
+ if (ArrayIsArray$1(untrustedConfig_includeFilters)) {
4840
+ const untrustedConfig_includeFilters_array = [];
4841
+ for (let i = 0, arrayLength = untrustedConfig_includeFilters.length; i < arrayLength; i++) {
4842
+ const untrustedConfig_includeFilters_item = untrustedConfig_includeFilters[i];
4843
+ const referenceRuleGroupInputRepresentationValidationError = validate$6(untrustedConfig_includeFilters_item);
4844
+ if (referenceRuleGroupInputRepresentationValidationError === null) {
4845
+ untrustedConfig_includeFilters_array.push(untrustedConfig_includeFilters_item);
4846
+ }
4847
+ }
4848
+ config.includeFilters = untrustedConfig_includeFilters_array;
4806
4849
  }
4807
4850
  const untrustedConfig_individualId = untrustedConfig.individualId;
4808
4851
  if (typeof untrustedConfig_individualId === 'string') {
@@ -4828,7 +4871,7 @@ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
4828
4871
  }
4829
4872
  function adapterFragment$1(luvio, config) {
4830
4873
  createResourceParams$1(config);
4831
- return select$3();
4874
+ return select$6();
4832
4875
  }
4833
4876
  function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
4834
4877
  const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
@@ -4884,7 +4927,250 @@ const postPersonalizationRecommenderSimulateActionAdapterFactory = (luvio) => fu
4884
4927
  buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
4885
4928
  };
4886
4929
 
4887
- const VERSION$1 = "5249bd66216ddaa79d57690fedf0d20b";
4930
+ const VERSION$4 = "d9f3a15c5177c3eb95787555a862549b";
4931
+ function validate$4(obj, path = 'EsModelArtifactBaseFieldRepresentation') {
4932
+ const v_error = (() => {
4933
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4934
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4935
+ }
4936
+ const obj_dataType = obj.dataType;
4937
+ const path_dataType = path + '.dataType';
4938
+ if (typeof obj_dataType !== 'string') {
4939
+ return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
4940
+ }
4941
+ const obj_label = obj.label;
4942
+ const path_label = path + '.label';
4943
+ if (typeof obj_label !== 'string') {
4944
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
4945
+ }
4946
+ const obj_name = obj.name;
4947
+ const path_name = path + '.name';
4948
+ if (typeof obj_name !== 'string') {
4949
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
4950
+ }
4951
+ })();
4952
+ return v_error === undefined ? null : v_error;
4953
+ }
4954
+ const select$5 = function EsModelArtifactBaseFieldRepresentationSelect() {
4955
+ return {
4956
+ kind: 'Fragment',
4957
+ version: VERSION$4,
4958
+ private: [],
4959
+ selections: [
4960
+ {
4961
+ name: 'dataType',
4962
+ kind: 'Scalar'
4963
+ },
4964
+ {
4965
+ name: 'label',
4966
+ kind: 'Scalar'
4967
+ },
4968
+ {
4969
+ name: 'name',
4970
+ kind: 'Scalar'
4971
+ }
4972
+ ]
4973
+ };
4974
+ };
4975
+ function equals$4(existing, incoming) {
4976
+ const existing_dataType = existing.dataType;
4977
+ const incoming_dataType = incoming.dataType;
4978
+ if (!(existing_dataType === incoming_dataType)) {
4979
+ return false;
4980
+ }
4981
+ const existing_label = existing.label;
4982
+ const incoming_label = incoming.label;
4983
+ if (!(existing_label === incoming_label)) {
4984
+ return false;
4985
+ }
4986
+ const existing_name = existing.name;
4987
+ const incoming_name = incoming.name;
4988
+ if (!(existing_name === incoming_name)) {
4989
+ return false;
4990
+ }
4991
+ return true;
4992
+ }
4993
+
4994
+ const VERSION$3 = "79dd6162ffc2c359016bab1d3ceeffab";
4995
+ function validate$3(obj, path = 'EsModelArtifactRepresentation') {
4996
+ const v_error = (() => {
4997
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4998
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4999
+ }
5000
+ const obj_id = obj.id;
5001
+ const path_id = path + '.id';
5002
+ if (typeof obj_id !== 'string') {
5003
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
5004
+ }
5005
+ const obj_label = obj.label;
5006
+ const path_label = path + '.label';
5007
+ if (typeof obj_label !== 'string') {
5008
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
5009
+ }
5010
+ const obj_name = obj.name;
5011
+ const path_name = path + '.name';
5012
+ if (typeof obj_name !== 'string') {
5013
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
5014
+ }
5015
+ const obj_outputFields = obj.outputFields;
5016
+ const path_outputFields = path + '.outputFields';
5017
+ if (!ArrayIsArray(obj_outputFields)) {
5018
+ return new TypeError('Expected "array" but received "' + typeof obj_outputFields + '" (at "' + path_outputFields + '")');
5019
+ }
5020
+ for (let i = 0; i < obj_outputFields.length; i++) {
5021
+ const obj_outputFields_item = obj_outputFields[i];
5022
+ const path_outputFields_item = path_outputFields + '[' + i + ']';
5023
+ const referencepath_outputFields_itemValidationError = validate$4(obj_outputFields_item, path_outputFields_item);
5024
+ if (referencepath_outputFields_itemValidationError !== null) {
5025
+ let message = 'Object doesn\'t match EsModelArtifactBaseFieldRepresentation (at "' + path_outputFields_item + '")\n';
5026
+ message += referencepath_outputFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
5027
+ return new TypeError(message);
5028
+ }
5029
+ }
5030
+ })();
5031
+ return v_error === undefined ? null : v_error;
5032
+ }
5033
+ const select$4 = function EsModelArtifactRepresentationSelect() {
5034
+ const { selections: EsModelArtifactBaseFieldRepresentation__selections, opaque: EsModelArtifactBaseFieldRepresentation__opaque, } = select$5();
5035
+ return {
5036
+ kind: 'Fragment',
5037
+ version: VERSION$3,
5038
+ private: [],
5039
+ selections: [
5040
+ {
5041
+ name: 'id',
5042
+ kind: 'Scalar'
5043
+ },
5044
+ {
5045
+ name: 'label',
5046
+ kind: 'Scalar'
5047
+ },
5048
+ {
5049
+ name: 'name',
5050
+ kind: 'Scalar'
5051
+ },
5052
+ {
5053
+ name: 'outputFields',
5054
+ kind: 'Object',
5055
+ plural: true,
5056
+ selections: EsModelArtifactBaseFieldRepresentation__selections
5057
+ }
5058
+ ]
5059
+ };
5060
+ };
5061
+ function equals$3(existing, incoming) {
5062
+ const existing_id = existing.id;
5063
+ const incoming_id = incoming.id;
5064
+ if (!(existing_id === incoming_id)) {
5065
+ return false;
5066
+ }
5067
+ const existing_label = existing.label;
5068
+ const incoming_label = incoming.label;
5069
+ if (!(existing_label === incoming_label)) {
5070
+ return false;
5071
+ }
5072
+ const existing_name = existing.name;
5073
+ const incoming_name = incoming.name;
5074
+ if (!(existing_name === incoming_name)) {
5075
+ return false;
5076
+ }
5077
+ const existing_outputFields = existing.outputFields;
5078
+ const incoming_outputFields = incoming.outputFields;
5079
+ const equals_outputFields_items = equalsArray(existing_outputFields, incoming_outputFields, (existing_outputFields_item, incoming_outputFields_item) => {
5080
+ if (!(equals$4(existing_outputFields_item, incoming_outputFields_item))) {
5081
+ return false;
5082
+ }
5083
+ });
5084
+ if (equals_outputFields_items === false) {
5085
+ return false;
5086
+ }
5087
+ return true;
5088
+ }
5089
+
5090
+ const VERSION$2 = "99ea196b2ab9f99656157ebd55e6cc5f";
5091
+ function validate$2(obj, path = 'PersonalizationDataMlModelInputRepresentation') {
5092
+ const v_error = (() => {
5093
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5094
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
5095
+ }
5096
+ const obj_esModelInputFeatureId = obj.esModelInputFeatureId;
5097
+ const path_esModelInputFeatureId = path + '.esModelInputFeatureId';
5098
+ if (typeof obj_esModelInputFeatureId !== 'string') {
5099
+ return new TypeError('Expected "string" but received "' + typeof obj_esModelInputFeatureId + '" (at "' + path_esModelInputFeatureId + '")');
5100
+ }
5101
+ const obj_id = obj.id;
5102
+ const path_id = path + '.id';
5103
+ if (typeof obj_id !== 'string') {
5104
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
5105
+ }
5106
+ const obj_inputField = obj.inputField;
5107
+ const path_inputField = path + '.inputField';
5108
+ const referencepath_inputFieldValidationError = validate$4(obj_inputField, path_inputField);
5109
+ if (referencepath_inputFieldValidationError !== null) {
5110
+ let message = 'Object doesn\'t match EsModelArtifactBaseFieldRepresentation (at "' + path_inputField + '")\n';
5111
+ message += referencepath_inputFieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
5112
+ return new TypeError(message);
5113
+ }
5114
+ const obj_personalisationField = obj.personalisationField;
5115
+ const path_personalisationField = path + '.personalisationField';
5116
+ if (typeof obj_personalisationField !== 'string') {
5117
+ return new TypeError('Expected "string" but received "' + typeof obj_personalisationField + '" (at "' + path_personalisationField + '")');
5118
+ }
5119
+ })();
5120
+ return v_error === undefined ? null : v_error;
5121
+ }
5122
+ const select$3 = function PersonalizationDataMlModelInputRepresentationSelect() {
5123
+ const { selections: EsModelArtifactBaseFieldRepresentation__selections, opaque: EsModelArtifactBaseFieldRepresentation__opaque, } = select$5();
5124
+ return {
5125
+ kind: 'Fragment',
5126
+ version: VERSION$2,
5127
+ private: [],
5128
+ selections: [
5129
+ {
5130
+ name: 'esModelInputFeatureId',
5131
+ kind: 'Scalar'
5132
+ },
5133
+ {
5134
+ name: 'id',
5135
+ kind: 'Scalar'
5136
+ },
5137
+ {
5138
+ name: 'inputField',
5139
+ kind: 'Object',
5140
+ selections: EsModelArtifactBaseFieldRepresentation__selections
5141
+ },
5142
+ {
5143
+ name: 'personalisationField',
5144
+ kind: 'Scalar'
5145
+ }
5146
+ ]
5147
+ };
5148
+ };
5149
+ function equals$2(existing, incoming) {
5150
+ const existing_esModelInputFeatureId = existing.esModelInputFeatureId;
5151
+ const incoming_esModelInputFeatureId = incoming.esModelInputFeatureId;
5152
+ if (!(existing_esModelInputFeatureId === incoming_esModelInputFeatureId)) {
5153
+ return false;
5154
+ }
5155
+ const existing_id = existing.id;
5156
+ const incoming_id = incoming.id;
5157
+ if (!(existing_id === incoming_id)) {
5158
+ return false;
5159
+ }
5160
+ const existing_personalisationField = existing.personalisationField;
5161
+ const incoming_personalisationField = incoming.personalisationField;
5162
+ if (!(existing_personalisationField === incoming_personalisationField)) {
5163
+ return false;
5164
+ }
5165
+ const existing_inputField = existing.inputField;
5166
+ const incoming_inputField = incoming.inputField;
5167
+ if (!(equals$4(existing_inputField, incoming_inputField))) {
5168
+ return false;
5169
+ }
5170
+ return true;
5171
+ }
5172
+
5173
+ const VERSION$1 = "cb759c82eb75de0d3fc203fc331385ce";
4888
5174
  function validate$1(obj, path = 'PersonalizationDataMlModelRepresentation') {
4889
5175
  const v_error = (() => {
4890
5176
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -4895,21 +5181,42 @@ function validate$1(obj, path = 'PersonalizationDataMlModelRepresentation') {
4895
5181
  if (typeof obj_dataSpaceId !== 'string') {
4896
5182
  return new TypeError('Expected "string" but received "' + typeof obj_dataSpaceId + '" (at "' + path_dataSpaceId + '")');
4897
5183
  }
4898
- const obj_esModelDefinitionId = obj.esModelDefinitionId;
4899
- const path_esModelDefinitionId = path + '.esModelDefinitionId';
4900
- if (typeof obj_esModelDefinitionId !== 'string') {
4901
- return new TypeError('Expected "string" but received "' + typeof obj_esModelDefinitionId + '" (at "' + path_esModelDefinitionId + '")');
5184
+ const obj_esModelDefinition = obj.esModelDefinition;
5185
+ const path_esModelDefinition = path + '.esModelDefinition';
5186
+ const referencepath_esModelDefinitionValidationError = validate$3(obj_esModelDefinition, path_esModelDefinition);
5187
+ if (referencepath_esModelDefinitionValidationError !== null) {
5188
+ let message = 'Object doesn\'t match EsModelArtifactRepresentation (at "' + path_esModelDefinition + '")\n';
5189
+ message += referencepath_esModelDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
5190
+ return new TypeError(message);
4902
5191
  }
4903
- const obj_personalizationDataMlModelInputList = obj.personalizationDataMlModelInputList;
4904
- const path_personalizationDataMlModelInputList = path + '.personalizationDataMlModelInputList';
4905
- if (!ArrayIsArray(obj_personalizationDataMlModelInputList)) {
4906
- return new TypeError('Expected "array" but received "' + typeof obj_personalizationDataMlModelInputList + '" (at "' + path_personalizationDataMlModelInputList + '")');
5192
+ const obj_id = obj.id;
5193
+ const path_id = path + '.id';
5194
+ if (typeof obj_id !== 'string') {
5195
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
4907
5196
  }
4908
- for (let i = 0; i < obj_personalizationDataMlModelInputList.length; i++) {
4909
- const obj_personalizationDataMlModelInputList_item = obj_personalizationDataMlModelInputList[i];
4910
- const path_personalizationDataMlModelInputList_item = path_personalizationDataMlModelInputList + '[' + i + ']';
4911
- if (obj_personalizationDataMlModelInputList_item === undefined) {
4912
- return new TypeError('Expected "defined" but received "' + typeof obj_personalizationDataMlModelInputList_item + '" (at "' + path_personalizationDataMlModelInputList_item + '")');
5197
+ const obj_label = obj.label;
5198
+ const path_label = path + '.label';
5199
+ if (typeof obj_label !== 'string') {
5200
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
5201
+ }
5202
+ const obj_name = obj.name;
5203
+ const path_name = path + '.name';
5204
+ if (typeof obj_name !== 'string') {
5205
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
5206
+ }
5207
+ const obj_personalizationInputs = obj.personalizationInputs;
5208
+ const path_personalizationInputs = path + '.personalizationInputs';
5209
+ if (!ArrayIsArray(obj_personalizationInputs)) {
5210
+ return new TypeError('Expected "array" but received "' + typeof obj_personalizationInputs + '" (at "' + path_personalizationInputs + '")');
5211
+ }
5212
+ for (let i = 0; i < obj_personalizationInputs.length; i++) {
5213
+ const obj_personalizationInputs_item = obj_personalizationInputs[i];
5214
+ const path_personalizationInputs_item = path_personalizationInputs + '[' + i + ']';
5215
+ const referencepath_personalizationInputs_itemValidationError = validate$2(obj_personalizationInputs_item, path_personalizationInputs_item);
5216
+ if (referencepath_personalizationInputs_itemValidationError !== null) {
5217
+ let message = 'Object doesn\'t match PersonalizationDataMlModelInputRepresentation (at "' + path_personalizationInputs_item + '")\n';
5218
+ message += referencepath_personalizationInputs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
5219
+ return new TypeError(message);
4913
5220
  }
4914
5221
  }
4915
5222
  const obj_profileDataGraphId = obj.profileDataGraphId;
@@ -4921,6 +5228,8 @@ function validate$1(obj, path = 'PersonalizationDataMlModelRepresentation') {
4921
5228
  return v_error === undefined ? null : v_error;
4922
5229
  }
4923
5230
  const select$2 = function PersonalizationDataMlModelRepresentationSelect() {
5231
+ const { selections: EsModelArtifactRepresentation__selections, opaque: EsModelArtifactRepresentation__opaque, } = select$4();
5232
+ const { selections: PersonalizationDataMlModelInputRepresentation__selections, opaque: PersonalizationDataMlModelInputRepresentation__opaque, } = select$3();
4924
5233
  return {
4925
5234
  kind: 'Fragment',
4926
5235
  version: VERSION$1,
@@ -4931,13 +5240,27 @@ const select$2 = function PersonalizationDataMlModelRepresentationSelect() {
4931
5240
  kind: 'Scalar'
4932
5241
  },
4933
5242
  {
4934
- name: 'esModelDefinitionId',
5243
+ name: 'esModelDefinition',
5244
+ kind: 'Object',
5245
+ selections: EsModelArtifactRepresentation__selections
5246
+ },
5247
+ {
5248
+ name: 'id',
5249
+ kind: 'Scalar'
5250
+ },
5251
+ {
5252
+ name: 'label',
5253
+ kind: 'Scalar'
5254
+ },
5255
+ {
5256
+ name: 'name',
4935
5257
  kind: 'Scalar'
4936
5258
  },
4937
5259
  {
4938
- name: 'personalizationDataMlModelInputList',
5260
+ name: 'personalizationInputs',
4939
5261
  kind: 'Object',
4940
- // any
5262
+ plural: true,
5263
+ selections: PersonalizationDataMlModelInputRepresentation__selections
4941
5264
  },
4942
5265
  {
4943
5266
  name: 'profileDataGraphId',
@@ -4952,9 +5275,19 @@ function equals$1(existing, incoming) {
4952
5275
  if (!(existing_dataSpaceId === incoming_dataSpaceId)) {
4953
5276
  return false;
4954
5277
  }
4955
- const existing_esModelDefinitionId = existing.esModelDefinitionId;
4956
- const incoming_esModelDefinitionId = incoming.esModelDefinitionId;
4957
- if (!(existing_esModelDefinitionId === incoming_esModelDefinitionId)) {
5278
+ const existing_id = existing.id;
5279
+ const incoming_id = incoming.id;
5280
+ if (!(existing_id === incoming_id)) {
5281
+ return false;
5282
+ }
5283
+ const existing_label = existing.label;
5284
+ const incoming_label = incoming.label;
5285
+ if (!(existing_label === incoming_label)) {
5286
+ return false;
5287
+ }
5288
+ const existing_name = existing.name;
5289
+ const incoming_name = incoming.name;
5290
+ if (!(existing_name === incoming_name)) {
4958
5291
  return false;
4959
5292
  }
4960
5293
  const existing_profileDataGraphId = existing.profileDataGraphId;
@@ -4962,14 +5295,19 @@ function equals$1(existing, incoming) {
4962
5295
  if (!(existing_profileDataGraphId === incoming_profileDataGraphId)) {
4963
5296
  return false;
4964
5297
  }
4965
- const existing_personalizationDataMlModelInputList = existing.personalizationDataMlModelInputList;
4966
- const incoming_personalizationDataMlModelInputList = incoming.personalizationDataMlModelInputList;
4967
- const equals_personalizationDataMlModelInputList_items = equalsArray(existing_personalizationDataMlModelInputList, incoming_personalizationDataMlModelInputList, (existing_personalizationDataMlModelInputList_item, incoming_personalizationDataMlModelInputList_item) => {
4968
- if (JSONStringify(incoming_personalizationDataMlModelInputList_item) !== JSONStringify(existing_personalizationDataMlModelInputList_item)) {
5298
+ const existing_esModelDefinition = existing.esModelDefinition;
5299
+ const incoming_esModelDefinition = incoming.esModelDefinition;
5300
+ if (!(equals$3(existing_esModelDefinition, incoming_esModelDefinition))) {
5301
+ return false;
5302
+ }
5303
+ const existing_personalizationInputs = existing.personalizationInputs;
5304
+ const incoming_personalizationInputs = incoming.personalizationInputs;
5305
+ const equals_personalizationInputs_items = equalsArray(existing_personalizationInputs, incoming_personalizationInputs, (existing_personalizationInputs_item, incoming_personalizationInputs_item) => {
5306
+ if (!(equals$2(existing_personalizationInputs_item, incoming_personalizationInputs_item))) {
4969
5307
  return false;
4970
5308
  }
4971
5309
  });
4972
- if (equals_personalizationDataMlModelInputList_items === false) {
5310
+ if (equals_personalizationInputs_items === false) {
4973
5311
  return false;
4974
5312
  }
4975
5313
  return true;