@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.
package/sfdc/index.js CHANGED
@@ -18,6 +18,7 @@ import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createRes
18
18
 
19
19
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
20
20
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
21
+ const { stringify: JSONStringify$1 } = JSON;
21
22
  const { isArray: ArrayIsArray$1 } = Array;
22
23
  /**
23
24
  * Validates an adapter config is well-formed.
@@ -58,6 +59,61 @@ const snapshotRefreshOptions = {
58
59
  },
59
60
  }
60
61
  };
62
+ /**
63
+ * A deterministic JSON stringify implementation. Heavily adapted from https://github.com/epoberezkin/fast-json-stable-stringify.
64
+ * This is needed because insertion order for JSON.stringify(object) affects output:
65
+ * JSON.stringify({a: 1, b: 2})
66
+ * "{"a":1,"b":2}"
67
+ * JSON.stringify({b: 2, a: 1})
68
+ * "{"b":2,"a":1}"
69
+ * @param data Data to be JSON-stringified.
70
+ * @returns JSON.stringified value with consistent ordering of keys.
71
+ */
72
+ function stableJSONStringify(node) {
73
+ // This is for Date values.
74
+ if (node && node.toJSON && typeof node.toJSON === 'function') {
75
+ // eslint-disable-next-line no-param-reassign
76
+ node = node.toJSON();
77
+ }
78
+ if (node === undefined) {
79
+ return;
80
+ }
81
+ if (typeof node === 'number') {
82
+ return isFinite(node) ? '' + node : 'null';
83
+ }
84
+ if (typeof node !== 'object') {
85
+ return JSONStringify$1(node);
86
+ }
87
+ let i;
88
+ let out;
89
+ if (ArrayIsArray$1(node)) {
90
+ out = '[';
91
+ for (i = 0; i < node.length; i++) {
92
+ if (i) {
93
+ out += ',';
94
+ }
95
+ out += stableJSONStringify(node[i]) || 'null';
96
+ }
97
+ return out + ']';
98
+ }
99
+ if (node === null) {
100
+ return 'null';
101
+ }
102
+ const keys = ObjectKeys(node).sort();
103
+ out = '';
104
+ for (i = 0; i < keys.length; i++) {
105
+ const key = keys[i];
106
+ const value = stableJSONStringify(node[key]);
107
+ if (!value) {
108
+ continue;
109
+ }
110
+ if (out) {
111
+ out += ',';
112
+ }
113
+ out += JSONStringify$1(key) + ':' + value;
114
+ }
115
+ return '{' + out + '}';
116
+ }
61
117
  function generateParamConfigMetadata(name, required, resourceType, typeCheckShape, isArrayShape = false, coerceFn) {
62
118
  return {
63
119
  name,
@@ -102,7 +158,7 @@ function createLink(ref) {
102
158
  };
103
159
  }
104
160
 
105
- function validate$j(obj, path = 'PersonalizationAttributeValueInputRepresentation') {
161
+ function validate$l(obj, path = 'PersonalizationAttributeValueInputRepresentation') {
106
162
  const v_error = (() => {
107
163
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
108
164
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -193,7 +249,7 @@ function validate$j(obj, path = 'PersonalizationAttributeValueInputRepresentatio
193
249
  return v_error === undefined ? null : v_error;
194
250
  }
195
251
 
196
- function validate$i(obj, path = 'PersonalizationDecisionInputRepresentation') {
252
+ function validate$k(obj, path = 'PersonalizationDecisionInputRepresentation') {
197
253
  const v_error = (() => {
198
254
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
199
255
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -207,7 +263,7 @@ function validate$i(obj, path = 'PersonalizationDecisionInputRepresentation') {
207
263
  for (let i = 0; i < obj_attributeValues.length; i++) {
208
264
  const obj_attributeValues_item = obj_attributeValues[i];
209
265
  const path_attributeValues_item = path_attributeValues + '[' + i + ']';
210
- const referencepath_attributeValues_itemValidationError = validate$j(obj_attributeValues_item, path_attributeValues_item);
266
+ const referencepath_attributeValues_itemValidationError = validate$l(obj_attributeValues_item, path_attributeValues_item);
211
267
  if (referencepath_attributeValues_itemValidationError !== null) {
212
268
  let message = 'Object doesn\'t match PersonalizationAttributeValueInputRepresentation (at "' + path_attributeValues_item + '")\n';
213
269
  message += referencepath_attributeValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -381,8 +437,8 @@ function validate$i(obj, path = 'PersonalizationDecisionInputRepresentation') {
381
437
  return v_error === undefined ? null : v_error;
382
438
  }
383
439
 
384
- const VERSION$b = "52ea9c14b7a747a28cedbcff0e7ab169";
385
- function validate$h(obj, path = 'PersonalizationAttributeValueRepresentation') {
440
+ const VERSION$e = "52ea9c14b7a747a28cedbcff0e7ab169";
441
+ function validate$j(obj, path = 'PersonalizationAttributeValueRepresentation') {
386
442
  const v_error = (() => {
387
443
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
388
444
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -468,10 +524,10 @@ function validate$h(obj, path = 'PersonalizationAttributeValueRepresentation') {
468
524
  })();
469
525
  return v_error === undefined ? null : v_error;
470
526
  }
471
- const select$j = function PersonalizationAttributeValueRepresentationSelect() {
527
+ const select$m = function PersonalizationAttributeValueRepresentationSelect() {
472
528
  return {
473
529
  kind: 'Fragment',
474
- version: VERSION$b,
530
+ version: VERSION$e,
475
531
  private: [],
476
532
  selections: [
477
533
  {
@@ -489,7 +545,7 @@ const select$j = function PersonalizationAttributeValueRepresentationSelect() {
489
545
  ]
490
546
  };
491
547
  };
492
- function equals$b(existing, incoming) {
548
+ function equals$e(existing, incoming) {
493
549
  const existing_attributeEnum = existing.attributeEnum;
494
550
  const incoming_attributeEnum = incoming.attributeEnum;
495
551
  if (!(existing_attributeEnum === incoming_attributeEnum)) {
@@ -508,7 +564,7 @@ function equals$b(existing, incoming) {
508
564
  return true;
509
565
  }
510
566
 
511
- function validate$g(obj, path = 'FiltersWrapRepresentation') {
567
+ function validate$i(obj, path = 'FiltersWrapRepresentation') {
512
568
  const v_error = (() => {
513
569
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
514
570
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -587,7 +643,7 @@ function validate$g(obj, path = 'FiltersWrapRepresentation') {
587
643
  return v_error === undefined ? null : v_error;
588
644
  }
589
645
 
590
- function validate$f(obj, path = 'SubjectRepresentation') {
646
+ function validate$h(obj, path = 'SubjectRepresentation') {
591
647
  const v_error = (() => {
592
648
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
593
649
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -706,8 +762,8 @@ function validate$f(obj, path = 'SubjectRepresentation') {
706
762
  return v_error === undefined ? null : v_error;
707
763
  }
708
764
 
709
- const VERSION$a = "089c2877ffa367e376fe74f8d358ffa8";
710
- function validate$e(obj, path = 'FilterRepresentation') {
765
+ const VERSION$d = "089c2877ffa367e376fe74f8d358ffa8";
766
+ function validate$g(obj, path = 'FilterRepresentation') {
711
767
  const v_error = (() => {
712
768
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
713
769
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -745,7 +801,7 @@ function validate$e(obj, path = 'FilterRepresentation') {
745
801
  const path_comparison = path + '.comparison';
746
802
  let obj_comparison_union0 = null;
747
803
  const obj_comparison_union0_error = (() => {
748
- const referencepath_comparisonValidationError = validate$e(obj_comparison, path_comparison);
804
+ const referencepath_comparisonValidationError = validate$g(obj_comparison, path_comparison);
749
805
  if (referencepath_comparisonValidationError !== null) {
750
806
  let message = 'Object doesn\'t match FilterRepresentation (at "' + path_comparison + '")\n';
751
807
  message += referencepath_comparisonValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -776,7 +832,7 @@ function validate$e(obj, path = 'FilterRepresentation') {
776
832
  const path_filter = path + '.filter';
777
833
  let obj_filter_union0 = null;
778
834
  const obj_filter_union0_error = (() => {
779
- const referencepath_filterValidationError = validate$g(obj_filter, path_filter);
835
+ const referencepath_filterValidationError = validate$i(obj_filter, path_filter);
780
836
  if (referencepath_filterValidationError !== null) {
781
837
  let message = 'Object doesn\'t match FiltersWrapRepresentation (at "' + path_filter + '")\n';
782
838
  message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -813,7 +869,7 @@ function validate$e(obj, path = 'FilterRepresentation') {
813
869
  const path_filters_item = path_filters + '[' + i + ']';
814
870
  let obj_filters_item_union0 = null;
815
871
  const obj_filters_item_union0_error = (() => {
816
- const referencepath_filters_itemValidationError = validate$e(obj_filters_item, path_filters_item);
872
+ const referencepath_filters_itemValidationError = validate$g(obj_filters_item, path_filters_item);
817
873
  if (referencepath_filters_itemValidationError !== null) {
818
874
  let message = 'Object doesn\'t match FilterRepresentation (at "' + path_filters_item + '")\n';
819
875
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -873,7 +929,7 @@ function validate$e(obj, path = 'FilterRepresentation') {
873
929
  const path_metric = path + '.metric';
874
930
  let obj_metric_union0 = null;
875
931
  const obj_metric_union0_error = (() => {
876
- const referencepath_metricValidationError = validate$f(obj_metric, path_metric);
932
+ const referencepath_metricValidationError = validate$h(obj_metric, path_metric);
877
933
  if (referencepath_metricValidationError !== null) {
878
934
  let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_metric + '")\n';
879
935
  message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -942,7 +998,7 @@ function validate$e(obj, path = 'FilterRepresentation') {
942
998
  for (let i = 0; i < obj_path_item.length; i++) {
943
999
  const obj_path_item_item = obj_path_item[i];
944
1000
  const path_path_item_item = path_path_item + '[' + i + ']';
945
- const referencepath_path_item_itemValidationError = validate$f(obj_path_item_item, path_path_item_item);
1001
+ const referencepath_path_item_itemValidationError = validate$h(obj_path_item_item, path_path_item_item);
946
1002
  if (referencepath_path_item_itemValidationError !== null) {
947
1003
  let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_path_item_item + '")\n';
948
1004
  message += referencepath_path_item_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1040,7 +1096,7 @@ function validate$e(obj, path = 'FilterRepresentation') {
1040
1096
  const path_subject = path + '.subject';
1041
1097
  let obj_subject_union0 = null;
1042
1098
  const obj_subject_union0_error = (() => {
1043
- const referencepath_subjectValidationError = validate$f(obj_subject, path_subject);
1099
+ const referencepath_subjectValidationError = validate$h(obj_subject, path_subject);
1044
1100
  if (referencepath_subjectValidationError !== null) {
1045
1101
  let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_subject + '")\n';
1046
1102
  message += referencepath_subjectValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1143,15 +1199,15 @@ const RepresentationType$7 = 'FilterRepresentation';
1143
1199
  function normalize$7(input, existing, path, luvio, store, timestamp) {
1144
1200
  return input;
1145
1201
  }
1146
- const select$i = function FilterRepresentationSelect() {
1202
+ const select$l = function FilterRepresentationSelect() {
1147
1203
  return {
1148
1204
  kind: 'Fragment',
1149
- version: VERSION$a,
1205
+ version: VERSION$d,
1150
1206
  private: [],
1151
1207
  opaque: true
1152
1208
  };
1153
1209
  };
1154
- function equals$a(existing, incoming) {
1210
+ function equals$d(existing, incoming) {
1155
1211
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
1156
1212
  return false;
1157
1213
  }
@@ -1159,14 +1215,14 @@ function equals$a(existing, incoming) {
1159
1215
  }
1160
1216
  const ingest$7 = function FilterRepresentationIngest(input, path, luvio, store, timestamp) {
1161
1217
  if (process.env.NODE_ENV !== 'production') {
1162
- const validateError = validate$e(input);
1218
+ const validateError = validate$g(input);
1163
1219
  if (validateError !== null) {
1164
1220
  throw validateError;
1165
1221
  }
1166
1222
  }
1167
1223
  const key = path.fullPath;
1168
1224
  const ttlToUse = path.ttl;
1169
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "personalization-service", VERSION$a, RepresentationType$7, equals$a);
1225
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "personalization-service", VERSION$d, RepresentationType$7, equals$d);
1170
1226
  return createLink(key);
1171
1227
  };
1172
1228
  function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
@@ -1179,8 +1235,8 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
1179
1235
  });
1180
1236
  }
1181
1237
 
1182
- const VERSION$9 = "ea475f10b4c028f8b97a44af1cf0be14";
1183
- function validate$d(obj, path = 'CriteriaRepresentation') {
1238
+ const VERSION$c = "ea475f10b4c028f8b97a44af1cf0be14";
1239
+ function validate$f(obj, path = 'CriteriaRepresentation') {
1184
1240
  const v_error = (() => {
1185
1241
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1186
1242
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1230,17 +1286,17 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
1230
1286
  }
1231
1287
  return input;
1232
1288
  }
1233
- const select$h = function CriteriaRepresentationSelect() {
1289
+ const select$k = function CriteriaRepresentationSelect() {
1234
1290
  return {
1235
1291
  kind: 'Fragment',
1236
- version: VERSION$9,
1292
+ version: VERSION$c,
1237
1293
  private: [],
1238
1294
  selections: [
1239
1295
  {
1240
1296
  name: 'filters',
1241
1297
  kind: 'Link',
1242
1298
  plural: true,
1243
- fragment: select$i()
1299
+ fragment: select$l()
1244
1300
  },
1245
1301
  {
1246
1302
  name: 'operator',
@@ -1253,7 +1309,7 @@ const select$h = function CriteriaRepresentationSelect() {
1253
1309
  ]
1254
1310
  };
1255
1311
  };
1256
- function equals$9(existing, incoming) {
1312
+ function equals$c(existing, incoming) {
1257
1313
  const existing_operator = existing.operator;
1258
1314
  const incoming_operator = incoming.operator;
1259
1315
  if (!(existing_operator === incoming_operator)) {
@@ -1278,14 +1334,14 @@ function equals$9(existing, incoming) {
1278
1334
  }
1279
1335
  const ingest$6 = function CriteriaRepresentationIngest(input, path, luvio, store, timestamp) {
1280
1336
  if (process.env.NODE_ENV !== 'production') {
1281
- const validateError = validate$d(input);
1337
+ const validateError = validate$f(input);
1282
1338
  if (validateError !== null) {
1283
1339
  throw validateError;
1284
1340
  }
1285
1341
  }
1286
1342
  const key = path.fullPath;
1287
1343
  const ttlToUse = path.ttl;
1288
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "personalization-service", VERSION$9, RepresentationType$6, equals$9);
1344
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "personalization-service", VERSION$c, RepresentationType$6, equals$c);
1289
1345
  return createLink(key);
1290
1346
  };
1291
1347
  function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
@@ -1302,8 +1358,8 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1302
1358
  }
1303
1359
  }
1304
1360
 
1305
- const VERSION$8 = "265767af783b296f5f902d6ed447b168";
1306
- function validate$c(obj, path = 'PersonalizationDecisionRepresentation') {
1361
+ const VERSION$b = "265767af783b296f5f902d6ed447b168";
1362
+ function validate$e(obj, path = 'PersonalizationDecisionRepresentation') {
1307
1363
  const v_error = (() => {
1308
1364
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1309
1365
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1316,7 +1372,7 @@ function validate$c(obj, path = 'PersonalizationDecisionRepresentation') {
1316
1372
  for (let i = 0; i < obj_attributeValues.length; i++) {
1317
1373
  const obj_attributeValues_item = obj_attributeValues[i];
1318
1374
  const path_attributeValues_item = path_attributeValues + '[' + i + ']';
1319
- const referencepath_attributeValues_itemValidationError = validate$h(obj_attributeValues_item, path_attributeValues_item);
1375
+ const referencepath_attributeValues_itemValidationError = validate$j(obj_attributeValues_item, path_attributeValues_item);
1320
1376
  if (referencepath_attributeValues_itemValidationError !== null) {
1321
1377
  let message = 'Object doesn\'t match PersonalizationAttributeValueRepresentation (at "' + path_attributeValues_item + '")\n';
1322
1378
  message += referencepath_attributeValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1656,11 +1712,11 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
1656
1712
  }
1657
1713
  return input;
1658
1714
  }
1659
- const select$g = function PersonalizationDecisionRepresentationSelect() {
1660
- const { selections: PersonalizationAttributeValueRepresentation__selections, opaque: PersonalizationAttributeValueRepresentation__opaque, } = select$j();
1715
+ const select$j = function PersonalizationDecisionRepresentationSelect() {
1716
+ const { selections: PersonalizationAttributeValueRepresentation__selections, opaque: PersonalizationAttributeValueRepresentation__opaque, } = select$m();
1661
1717
  return {
1662
1718
  kind: 'Fragment',
1663
- version: VERSION$8,
1719
+ version: VERSION$b,
1664
1720
  private: [],
1665
1721
  selections: [
1666
1722
  {
@@ -1681,7 +1737,7 @@ const select$g = function PersonalizationDecisionRepresentationSelect() {
1681
1737
  name: 'criteria',
1682
1738
  kind: 'Link',
1683
1739
  nullable: true,
1684
- fragment: select$h()
1740
+ fragment: select$k()
1685
1741
  },
1686
1742
  {
1687
1743
  name: 'description',
@@ -1722,11 +1778,11 @@ const select$g = function PersonalizationDecisionRepresentationSelect() {
1722
1778
  ]
1723
1779
  };
1724
1780
  };
1725
- function equals$8(existing, incoming) {
1781
+ function equals$b(existing, incoming) {
1726
1782
  const existing_attributeValues = existing.attributeValues;
1727
1783
  const incoming_attributeValues = incoming.attributeValues;
1728
1784
  const equals_attributeValues_items = equalsArray(existing_attributeValues, incoming_attributeValues, (existing_attributeValues_item, incoming_attributeValues_item) => {
1729
- if (!(equals$b(existing_attributeValues_item, incoming_attributeValues_item))) {
1785
+ if (!(equals$e(existing_attributeValues_item, incoming_attributeValues_item))) {
1730
1786
  return false;
1731
1787
  }
1732
1788
  });
@@ -1802,14 +1858,14 @@ function equals$8(existing, incoming) {
1802
1858
  }
1803
1859
  const ingest$5 = function PersonalizationDecisionRepresentationIngest(input, path, luvio, store, timestamp) {
1804
1860
  if (process.env.NODE_ENV !== 'production') {
1805
- const validateError = validate$c(input);
1861
+ const validateError = validate$e(input);
1806
1862
  if (validateError !== null) {
1807
1863
  throw validateError;
1808
1864
  }
1809
1865
  }
1810
1866
  const key = path.fullPath;
1811
1867
  const ttlToUse = path.ttl;
1812
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "personalization-service", VERSION$8, RepresentationType$5, equals$8);
1868
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "personalization-service", VERSION$b, RepresentationType$5, equals$b);
1813
1869
  return createLink(key);
1814
1870
  };
1815
1871
  function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
@@ -1826,8 +1882,8 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1826
1882
  }
1827
1883
 
1828
1884
  const TTL$4 = 600;
1829
- const VERSION$7 = "e5643ca13ef54c890c9177275a053de3";
1830
- function validate$b(obj, path = 'PersonalizationPointRepresentation') {
1885
+ const VERSION$a = "e5643ca13ef54c890c9177275a053de3";
1886
+ function validate$d(obj, path = 'PersonalizationPointRepresentation') {
1831
1887
  const v_error = (() => {
1832
1888
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1833
1889
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2333,10 +2389,10 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
2333
2389
  }
2334
2390
  return input;
2335
2391
  }
2336
- const select$f = function PersonalizationPointRepresentationSelect() {
2392
+ const select$i = function PersonalizationPointRepresentationSelect() {
2337
2393
  return {
2338
2394
  kind: 'Fragment',
2339
- version: VERSION$7,
2395
+ version: VERSION$a,
2340
2396
  private: [],
2341
2397
  selections: [
2342
2398
  {
@@ -2359,7 +2415,7 @@ const select$f = function PersonalizationPointRepresentationSelect() {
2359
2415
  name: 'decisions',
2360
2416
  kind: 'Link',
2361
2417
  plural: true,
2362
- fragment: select$g()
2418
+ fragment: select$j()
2363
2419
  },
2364
2420
  {
2365
2421
  name: 'description',
@@ -2428,7 +2484,7 @@ const select$f = function PersonalizationPointRepresentationSelect() {
2428
2484
  ]
2429
2485
  };
2430
2486
  };
2431
- function equals$7(existing, incoming) {
2487
+ function equals$a(existing, incoming) {
2432
2488
  const existing_isAuthenticationRequired = existing.isAuthenticationRequired;
2433
2489
  const incoming_isAuthenticationRequired = incoming.isAuthenticationRequired;
2434
2490
  if (!(existing_isAuthenticationRequired === incoming_isAuthenticationRequired)) {
@@ -2543,14 +2599,14 @@ function equals$7(existing, incoming) {
2543
2599
  }
2544
2600
  const ingest$4 = function PersonalizationPointRepresentationIngest(input, path, luvio, store, timestamp) {
2545
2601
  if (process.env.NODE_ENV !== 'production') {
2546
- const validateError = validate$b(input);
2602
+ const validateError = validate$d(input);
2547
2603
  if (validateError !== null) {
2548
2604
  throw validateError;
2549
2605
  }
2550
2606
  }
2551
2607
  const key = keyBuilderFromType$1(luvio, input);
2552
2608
  const ttlToUse = TTL$4;
2553
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "personalization-service", VERSION$7, RepresentationType$4, equals$7);
2609
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "personalization-service", VERSION$a, RepresentationType$4, equals$a);
2554
2610
  return createLink(key);
2555
2611
  };
2556
2612
  function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
@@ -2567,8 +2623,8 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
2567
2623
  }
2568
2624
  }
2569
2625
 
2570
- function select$e(luvio, params) {
2571
- return select$f();
2626
+ function select$h(luvio, params) {
2627
+ return select$i();
2572
2628
  }
2573
2629
  function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
2574
2630
  getTypeCacheKeys$4(storeKeyMap, luvio, response);
@@ -2579,7 +2635,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
2579
2635
  luvio.storeIngest(key, ingest$4, body);
2580
2636
  const snapshot = luvio.storeLookup({
2581
2637
  recordId: key,
2582
- node: select$e(),
2638
+ node: select$h(),
2583
2639
  variables: {},
2584
2640
  });
2585
2641
  if (process.env.NODE_ENV !== 'production') {
@@ -2666,7 +2722,7 @@ function typeCheckConfig$9(untrustedConfig) {
2666
2722
  const untrustedConfig_decisions_array = [];
2667
2723
  for (let i = 0, arrayLength = untrustedConfig_decisions.length; i < arrayLength; i++) {
2668
2724
  const untrustedConfig_decisions_item = untrustedConfig_decisions[i];
2669
- const referencePersonalizationDecisionInputRepresentationValidationError = validate$i(untrustedConfig_decisions_item);
2725
+ const referencePersonalizationDecisionInputRepresentationValidationError = validate$k(untrustedConfig_decisions_item);
2670
2726
  if (referencePersonalizationDecisionInputRepresentationValidationError === null) {
2671
2727
  untrustedConfig_decisions_array.push(untrustedConfig_decisions_item);
2672
2728
  }
@@ -2759,7 +2815,7 @@ const createPersonalizationPointAdapterFactory = (luvio) => {
2759
2815
  };
2760
2816
  };
2761
2817
 
2762
- function validate$a(obj, path = 'PersonalizationAttributeInputRepresentation') {
2818
+ function validate$c(obj, path = 'PersonalizationAttributeInputRepresentation') {
2763
2819
  const v_error = (() => {
2764
2820
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2765
2821
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2806,8 +2862,8 @@ function validate$a(obj, path = 'PersonalizationAttributeInputRepresentation') {
2806
2862
  return v_error === undefined ? null : v_error;
2807
2863
  }
2808
2864
 
2809
- const VERSION$6 = "014064b188ff923423af6301d64be36a";
2810
- function validate$9(obj, path = 'PersonalizationAttributeRepresentation') {
2865
+ const VERSION$9 = "014064b188ff923423af6301d64be36a";
2866
+ function validate$b(obj, path = 'PersonalizationAttributeRepresentation') {
2811
2867
  const v_error = (() => {
2812
2868
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2813
2869
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2902,10 +2958,10 @@ function validate$9(obj, path = 'PersonalizationAttributeRepresentation') {
2902
2958
  })();
2903
2959
  return v_error === undefined ? null : v_error;
2904
2960
  }
2905
- const select$d = function PersonalizationAttributeRepresentationSelect() {
2961
+ const select$g = function PersonalizationAttributeRepresentationSelect() {
2906
2962
  return {
2907
2963
  kind: 'Fragment',
2908
- version: VERSION$6,
2964
+ version: VERSION$9,
2909
2965
  private: [],
2910
2966
  selections: [
2911
2967
  {
@@ -2947,7 +3003,7 @@ const select$d = function PersonalizationAttributeRepresentationSelect() {
2947
3003
  ]
2948
3004
  };
2949
3005
  };
2950
- function equals$6(existing, incoming) {
3006
+ function equals$9(existing, incoming) {
2951
3007
  const existing_createdById = existing.createdById;
2952
3008
  const incoming_createdById = incoming.createdById;
2953
3009
  if (!(existing_createdById === incoming_createdById)) {
@@ -2997,8 +3053,8 @@ function equals$6(existing, incoming) {
2997
3053
  }
2998
3054
 
2999
3055
  const TTL$3 = 600;
3000
- const VERSION$5 = "25740f87643de6fdae570c77bbec7377";
3001
- function validate$8(obj, path = 'PersonalizationSchemaRepresentation') {
3056
+ const VERSION$8 = "25740f87643de6fdae570c77bbec7377";
3057
+ function validate$a(obj, path = 'PersonalizationSchemaRepresentation') {
3002
3058
  const v_error = (() => {
3003
3059
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3004
3060
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3011,7 +3067,7 @@ function validate$8(obj, path = 'PersonalizationSchemaRepresentation') {
3011
3067
  for (let i = 0; i < obj_attributes.length; i++) {
3012
3068
  const obj_attributes_item = obj_attributes[i];
3013
3069
  const path_attributes_item = path_attributes + '[' + i + ']';
3014
- const referencepath_attributes_itemValidationError = validate$9(obj_attributes_item, path_attributes_item);
3070
+ const referencepath_attributes_itemValidationError = validate$b(obj_attributes_item, path_attributes_item);
3015
3071
  if (referencepath_attributes_itemValidationError !== null) {
3016
3072
  let message = 'Object doesn\'t match PersonalizationAttributeRepresentation (at "' + path_attributes_item + '")\n';
3017
3073
  message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3169,11 +3225,11 @@ function keyBuilderFromType(luvio, object) {
3169
3225
  function normalize$3(input, existing, path, luvio, store, timestamp) {
3170
3226
  return input;
3171
3227
  }
3172
- const select$c = function PersonalizationSchemaRepresentationSelect() {
3173
- const { selections: PersonalizationAttributeRepresentation__selections, opaque: PersonalizationAttributeRepresentation__opaque, } = select$d();
3228
+ const select$f = function PersonalizationSchemaRepresentationSelect() {
3229
+ const { selections: PersonalizationAttributeRepresentation__selections, opaque: PersonalizationAttributeRepresentation__opaque, } = select$g();
3174
3230
  return {
3175
3231
  kind: 'Fragment',
3176
- version: VERSION$5,
3232
+ version: VERSION$8,
3177
3233
  private: [],
3178
3234
  selections: [
3179
3235
  {
@@ -3238,7 +3294,7 @@ const select$c = function PersonalizationSchemaRepresentationSelect() {
3238
3294
  ]
3239
3295
  };
3240
3296
  };
3241
- function equals$5(existing, incoming) {
3297
+ function equals$8(existing, incoming) {
3242
3298
  const existing_createdById = existing.createdById;
3243
3299
  const incoming_createdById = incoming.createdById;
3244
3300
  if (!(existing_createdById === incoming_createdById)) {
@@ -3292,7 +3348,7 @@ function equals$5(existing, incoming) {
3292
3348
  const existing_attributes = existing.attributes;
3293
3349
  const incoming_attributes = incoming.attributes;
3294
3350
  const equals_attributes_items = equalsArray(existing_attributes, incoming_attributes, (existing_attributes_item, incoming_attributes_item) => {
3295
- if (!(equals$6(existing_attributes_item, incoming_attributes_item))) {
3351
+ if (!(equals$9(existing_attributes_item, incoming_attributes_item))) {
3296
3352
  return false;
3297
3353
  }
3298
3354
  });
@@ -3323,14 +3379,14 @@ function equals$5(existing, incoming) {
3323
3379
  }
3324
3380
  const ingest$3 = function PersonalizationSchemaRepresentationIngest(input, path, luvio, store, timestamp) {
3325
3381
  if (process.env.NODE_ENV !== 'production') {
3326
- const validateError = validate$8(input);
3382
+ const validateError = validate$a(input);
3327
3383
  if (validateError !== null) {
3328
3384
  throw validateError;
3329
3385
  }
3330
3386
  }
3331
3387
  const key = keyBuilderFromType(luvio, input);
3332
3388
  const ttlToUse = TTL$3;
3333
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "personalization-service", VERSION$5, RepresentationType$3, equals$5);
3389
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "personalization-service", VERSION$8, RepresentationType$3, equals$8);
3334
3390
  return createLink(key);
3335
3391
  };
3336
3392
  function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
@@ -3343,8 +3399,8 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
3343
3399
  });
3344
3400
  }
3345
3401
 
3346
- function select$b(luvio, params) {
3347
- return select$c();
3402
+ function select$e(luvio, params) {
3403
+ return select$f();
3348
3404
  }
3349
3405
  function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
3350
3406
  getTypeCacheKeys$3(storeKeyMap, luvio, response);
@@ -3355,7 +3411,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
3355
3411
  luvio.storeIngest(key, ingest$3, body);
3356
3412
  const snapshot = luvio.storeLookup({
3357
3413
  recordId: key,
3358
- node: select$b(),
3414
+ node: select$e(),
3359
3415
  variables: {},
3360
3416
  });
3361
3417
  if (process.env.NODE_ENV !== 'production') {
@@ -3422,7 +3478,7 @@ function typeCheckConfig$8(untrustedConfig) {
3422
3478
  const untrustedConfig_attributes_array = [];
3423
3479
  for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
3424
3480
  const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
3425
- const referencePersonalizationAttributeInputRepresentationValidationError = validate$a(untrustedConfig_attributes_item);
3481
+ const referencePersonalizationAttributeInputRepresentationValidationError = validate$c(untrustedConfig_attributes_item);
3426
3482
  if (referencePersonalizationAttributeInputRepresentationValidationError === null) {
3427
3483
  untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
3428
3484
  }
@@ -3662,8 +3718,251 @@ const deletePersonalizationSchemaAdapterFactory = (luvio) => {
3662
3718
  };
3663
3719
  };
3664
3720
 
3665
- const VERSION$4 = "5249bd66216ddaa79d57690fedf0d20b";
3666
- function validate$7(obj, path = 'PersonalizationDataMlModelRepresentation') {
3721
+ const VERSION$7 = "d9f3a15c5177c3eb95787555a862549b";
3722
+ function validate$9(obj, path = 'EsModelArtifactBaseFieldRepresentation') {
3723
+ const v_error = (() => {
3724
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3725
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3726
+ }
3727
+ const obj_dataType = obj.dataType;
3728
+ const path_dataType = path + '.dataType';
3729
+ if (typeof obj_dataType !== 'string') {
3730
+ return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
3731
+ }
3732
+ const obj_label = obj.label;
3733
+ const path_label = path + '.label';
3734
+ if (typeof obj_label !== 'string') {
3735
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
3736
+ }
3737
+ const obj_name = obj.name;
3738
+ const path_name = path + '.name';
3739
+ if (typeof obj_name !== 'string') {
3740
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
3741
+ }
3742
+ })();
3743
+ return v_error === undefined ? null : v_error;
3744
+ }
3745
+ const select$d = function EsModelArtifactBaseFieldRepresentationSelect() {
3746
+ return {
3747
+ kind: 'Fragment',
3748
+ version: VERSION$7,
3749
+ private: [],
3750
+ selections: [
3751
+ {
3752
+ name: 'dataType',
3753
+ kind: 'Scalar'
3754
+ },
3755
+ {
3756
+ name: 'label',
3757
+ kind: 'Scalar'
3758
+ },
3759
+ {
3760
+ name: 'name',
3761
+ kind: 'Scalar'
3762
+ }
3763
+ ]
3764
+ };
3765
+ };
3766
+ function equals$7(existing, incoming) {
3767
+ const existing_dataType = existing.dataType;
3768
+ const incoming_dataType = incoming.dataType;
3769
+ if (!(existing_dataType === incoming_dataType)) {
3770
+ return false;
3771
+ }
3772
+ const existing_label = existing.label;
3773
+ const incoming_label = incoming.label;
3774
+ if (!(existing_label === incoming_label)) {
3775
+ return false;
3776
+ }
3777
+ const existing_name = existing.name;
3778
+ const incoming_name = incoming.name;
3779
+ if (!(existing_name === incoming_name)) {
3780
+ return false;
3781
+ }
3782
+ return true;
3783
+ }
3784
+
3785
+ const VERSION$6 = "79dd6162ffc2c359016bab1d3ceeffab";
3786
+ function validate$8(obj, path = 'EsModelArtifactRepresentation') {
3787
+ const v_error = (() => {
3788
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3789
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3790
+ }
3791
+ const obj_id = obj.id;
3792
+ const path_id = path + '.id';
3793
+ if (typeof obj_id !== 'string') {
3794
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
3795
+ }
3796
+ const obj_label = obj.label;
3797
+ const path_label = path + '.label';
3798
+ if (typeof obj_label !== 'string') {
3799
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
3800
+ }
3801
+ const obj_name = obj.name;
3802
+ const path_name = path + '.name';
3803
+ if (typeof obj_name !== 'string') {
3804
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
3805
+ }
3806
+ const obj_outputFields = obj.outputFields;
3807
+ const path_outputFields = path + '.outputFields';
3808
+ if (!ArrayIsArray(obj_outputFields)) {
3809
+ return new TypeError('Expected "array" but received "' + typeof obj_outputFields + '" (at "' + path_outputFields + '")');
3810
+ }
3811
+ for (let i = 0; i < obj_outputFields.length; i++) {
3812
+ const obj_outputFields_item = obj_outputFields[i];
3813
+ const path_outputFields_item = path_outputFields + '[' + i + ']';
3814
+ const referencepath_outputFields_itemValidationError = validate$9(obj_outputFields_item, path_outputFields_item);
3815
+ if (referencepath_outputFields_itemValidationError !== null) {
3816
+ let message = 'Object doesn\'t match EsModelArtifactBaseFieldRepresentation (at "' + path_outputFields_item + '")\n';
3817
+ message += referencepath_outputFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3818
+ return new TypeError(message);
3819
+ }
3820
+ }
3821
+ })();
3822
+ return v_error === undefined ? null : v_error;
3823
+ }
3824
+ const select$c = function EsModelArtifactRepresentationSelect() {
3825
+ const { selections: EsModelArtifactBaseFieldRepresentation__selections, opaque: EsModelArtifactBaseFieldRepresentation__opaque, } = select$d();
3826
+ return {
3827
+ kind: 'Fragment',
3828
+ version: VERSION$6,
3829
+ private: [],
3830
+ selections: [
3831
+ {
3832
+ name: 'id',
3833
+ kind: 'Scalar'
3834
+ },
3835
+ {
3836
+ name: 'label',
3837
+ kind: 'Scalar'
3838
+ },
3839
+ {
3840
+ name: 'name',
3841
+ kind: 'Scalar'
3842
+ },
3843
+ {
3844
+ name: 'outputFields',
3845
+ kind: 'Object',
3846
+ plural: true,
3847
+ selections: EsModelArtifactBaseFieldRepresentation__selections
3848
+ }
3849
+ ]
3850
+ };
3851
+ };
3852
+ function equals$6(existing, incoming) {
3853
+ const existing_id = existing.id;
3854
+ const incoming_id = incoming.id;
3855
+ if (!(existing_id === incoming_id)) {
3856
+ return false;
3857
+ }
3858
+ const existing_label = existing.label;
3859
+ const incoming_label = incoming.label;
3860
+ if (!(existing_label === incoming_label)) {
3861
+ return false;
3862
+ }
3863
+ const existing_name = existing.name;
3864
+ const incoming_name = incoming.name;
3865
+ if (!(existing_name === incoming_name)) {
3866
+ return false;
3867
+ }
3868
+ const existing_outputFields = existing.outputFields;
3869
+ const incoming_outputFields = incoming.outputFields;
3870
+ const equals_outputFields_items = equalsArray(existing_outputFields, incoming_outputFields, (existing_outputFields_item, incoming_outputFields_item) => {
3871
+ if (!(equals$7(existing_outputFields_item, incoming_outputFields_item))) {
3872
+ return false;
3873
+ }
3874
+ });
3875
+ if (equals_outputFields_items === false) {
3876
+ return false;
3877
+ }
3878
+ return true;
3879
+ }
3880
+
3881
+ const VERSION$5 = "99ea196b2ab9f99656157ebd55e6cc5f";
3882
+ function validate$7(obj, path = 'PersonalizationDataMlModelInputRepresentation') {
3883
+ const v_error = (() => {
3884
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3885
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3886
+ }
3887
+ const obj_esModelInputFeatureId = obj.esModelInputFeatureId;
3888
+ const path_esModelInputFeatureId = path + '.esModelInputFeatureId';
3889
+ if (typeof obj_esModelInputFeatureId !== 'string') {
3890
+ return new TypeError('Expected "string" but received "' + typeof obj_esModelInputFeatureId + '" (at "' + path_esModelInputFeatureId + '")');
3891
+ }
3892
+ const obj_id = obj.id;
3893
+ const path_id = path + '.id';
3894
+ if (typeof obj_id !== 'string') {
3895
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
3896
+ }
3897
+ const obj_inputField = obj.inputField;
3898
+ const path_inputField = path + '.inputField';
3899
+ const referencepath_inputFieldValidationError = validate$9(obj_inputField, path_inputField);
3900
+ if (referencepath_inputFieldValidationError !== null) {
3901
+ let message = 'Object doesn\'t match EsModelArtifactBaseFieldRepresentation (at "' + path_inputField + '")\n';
3902
+ message += referencepath_inputFieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3903
+ return new TypeError(message);
3904
+ }
3905
+ const obj_personalisationField = obj.personalisationField;
3906
+ const path_personalisationField = path + '.personalisationField';
3907
+ if (typeof obj_personalisationField !== 'string') {
3908
+ return new TypeError('Expected "string" but received "' + typeof obj_personalisationField + '" (at "' + path_personalisationField + '")');
3909
+ }
3910
+ })();
3911
+ return v_error === undefined ? null : v_error;
3912
+ }
3913
+ const select$b = function PersonalizationDataMlModelInputRepresentationSelect() {
3914
+ const { selections: EsModelArtifactBaseFieldRepresentation__selections, opaque: EsModelArtifactBaseFieldRepresentation__opaque, } = select$d();
3915
+ return {
3916
+ kind: 'Fragment',
3917
+ version: VERSION$5,
3918
+ private: [],
3919
+ selections: [
3920
+ {
3921
+ name: 'esModelInputFeatureId',
3922
+ kind: 'Scalar'
3923
+ },
3924
+ {
3925
+ name: 'id',
3926
+ kind: 'Scalar'
3927
+ },
3928
+ {
3929
+ name: 'inputField',
3930
+ kind: 'Object',
3931
+ selections: EsModelArtifactBaseFieldRepresentation__selections
3932
+ },
3933
+ {
3934
+ name: 'personalisationField',
3935
+ kind: 'Scalar'
3936
+ }
3937
+ ]
3938
+ };
3939
+ };
3940
+ function equals$5(existing, incoming) {
3941
+ const existing_esModelInputFeatureId = existing.esModelInputFeatureId;
3942
+ const incoming_esModelInputFeatureId = incoming.esModelInputFeatureId;
3943
+ if (!(existing_esModelInputFeatureId === incoming_esModelInputFeatureId)) {
3944
+ return false;
3945
+ }
3946
+ const existing_id = existing.id;
3947
+ const incoming_id = incoming.id;
3948
+ if (!(existing_id === incoming_id)) {
3949
+ return false;
3950
+ }
3951
+ const existing_personalisationField = existing.personalisationField;
3952
+ const incoming_personalisationField = incoming.personalisationField;
3953
+ if (!(existing_personalisationField === incoming_personalisationField)) {
3954
+ return false;
3955
+ }
3956
+ const existing_inputField = existing.inputField;
3957
+ const incoming_inputField = incoming.inputField;
3958
+ if (!(equals$7(existing_inputField, incoming_inputField))) {
3959
+ return false;
3960
+ }
3961
+ return true;
3962
+ }
3963
+
3964
+ const VERSION$4 = "cb759c82eb75de0d3fc203fc331385ce";
3965
+ function validate$6(obj, path = 'PersonalizationDataMlModelRepresentation') {
3667
3966
  const v_error = (() => {
3668
3967
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3669
3968
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3673,21 +3972,42 @@ function validate$7(obj, path = 'PersonalizationDataMlModelRepresentation') {
3673
3972
  if (typeof obj_dataSpaceId !== 'string') {
3674
3973
  return new TypeError('Expected "string" but received "' + typeof obj_dataSpaceId + '" (at "' + path_dataSpaceId + '")');
3675
3974
  }
3676
- const obj_esModelDefinitionId = obj.esModelDefinitionId;
3677
- const path_esModelDefinitionId = path + '.esModelDefinitionId';
3678
- if (typeof obj_esModelDefinitionId !== 'string') {
3679
- return new TypeError('Expected "string" but received "' + typeof obj_esModelDefinitionId + '" (at "' + path_esModelDefinitionId + '")');
3975
+ const obj_esModelDefinition = obj.esModelDefinition;
3976
+ const path_esModelDefinition = path + '.esModelDefinition';
3977
+ const referencepath_esModelDefinitionValidationError = validate$8(obj_esModelDefinition, path_esModelDefinition);
3978
+ if (referencepath_esModelDefinitionValidationError !== null) {
3979
+ let message = 'Object doesn\'t match EsModelArtifactRepresentation (at "' + path_esModelDefinition + '")\n';
3980
+ message += referencepath_esModelDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3981
+ return new TypeError(message);
3680
3982
  }
3681
- const obj_personalizationDataMlModelInputList = obj.personalizationDataMlModelInputList;
3682
- const path_personalizationDataMlModelInputList = path + '.personalizationDataMlModelInputList';
3683
- if (!ArrayIsArray(obj_personalizationDataMlModelInputList)) {
3684
- return new TypeError('Expected "array" but received "' + typeof obj_personalizationDataMlModelInputList + '" (at "' + path_personalizationDataMlModelInputList + '")');
3983
+ const obj_id = obj.id;
3984
+ const path_id = path + '.id';
3985
+ if (typeof obj_id !== 'string') {
3986
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
3987
+ }
3988
+ const obj_label = obj.label;
3989
+ const path_label = path + '.label';
3990
+ if (typeof obj_label !== 'string') {
3991
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
3685
3992
  }
3686
- for (let i = 0; i < obj_personalizationDataMlModelInputList.length; i++) {
3687
- const obj_personalizationDataMlModelInputList_item = obj_personalizationDataMlModelInputList[i];
3688
- const path_personalizationDataMlModelInputList_item = path_personalizationDataMlModelInputList + '[' + i + ']';
3689
- if (obj_personalizationDataMlModelInputList_item === undefined) {
3690
- return new TypeError('Expected "defined" but received "' + typeof obj_personalizationDataMlModelInputList_item + '" (at "' + path_personalizationDataMlModelInputList_item + '")');
3993
+ const obj_name = obj.name;
3994
+ const path_name = path + '.name';
3995
+ if (typeof obj_name !== 'string') {
3996
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
3997
+ }
3998
+ const obj_personalizationInputs = obj.personalizationInputs;
3999
+ const path_personalizationInputs = path + '.personalizationInputs';
4000
+ if (!ArrayIsArray(obj_personalizationInputs)) {
4001
+ return new TypeError('Expected "array" but received "' + typeof obj_personalizationInputs + '" (at "' + path_personalizationInputs + '")');
4002
+ }
4003
+ for (let i = 0; i < obj_personalizationInputs.length; i++) {
4004
+ const obj_personalizationInputs_item = obj_personalizationInputs[i];
4005
+ const path_personalizationInputs_item = path_personalizationInputs + '[' + i + ']';
4006
+ const referencepath_personalizationInputs_itemValidationError = validate$7(obj_personalizationInputs_item, path_personalizationInputs_item);
4007
+ if (referencepath_personalizationInputs_itemValidationError !== null) {
4008
+ let message = 'Object doesn\'t match PersonalizationDataMlModelInputRepresentation (at "' + path_personalizationInputs_item + '")\n';
4009
+ message += referencepath_personalizationInputs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
4010
+ return new TypeError(message);
3691
4011
  }
3692
4012
  }
3693
4013
  const obj_profileDataGraphId = obj.profileDataGraphId;
@@ -3699,6 +4019,8 @@ function validate$7(obj, path = 'PersonalizationDataMlModelRepresentation') {
3699
4019
  return v_error === undefined ? null : v_error;
3700
4020
  }
3701
4021
  const select$a = function PersonalizationDataMlModelRepresentationSelect() {
4022
+ const { selections: EsModelArtifactRepresentation__selections, opaque: EsModelArtifactRepresentation__opaque, } = select$c();
4023
+ const { selections: PersonalizationDataMlModelInputRepresentation__selections, opaque: PersonalizationDataMlModelInputRepresentation__opaque, } = select$b();
3702
4024
  return {
3703
4025
  kind: 'Fragment',
3704
4026
  version: VERSION$4,
@@ -3709,13 +4031,27 @@ const select$a = function PersonalizationDataMlModelRepresentationSelect() {
3709
4031
  kind: 'Scalar'
3710
4032
  },
3711
4033
  {
3712
- name: 'esModelDefinitionId',
4034
+ name: 'esModelDefinition',
4035
+ kind: 'Object',
4036
+ selections: EsModelArtifactRepresentation__selections
4037
+ },
4038
+ {
4039
+ name: 'id',
4040
+ kind: 'Scalar'
4041
+ },
4042
+ {
4043
+ name: 'label',
4044
+ kind: 'Scalar'
4045
+ },
4046
+ {
4047
+ name: 'name',
3713
4048
  kind: 'Scalar'
3714
4049
  },
3715
4050
  {
3716
- name: 'personalizationDataMlModelInputList',
4051
+ name: 'personalizationInputs',
3717
4052
  kind: 'Object',
3718
- // any
4053
+ plural: true,
4054
+ selections: PersonalizationDataMlModelInputRepresentation__selections
3719
4055
  },
3720
4056
  {
3721
4057
  name: 'profileDataGraphId',
@@ -3730,9 +4066,19 @@ function equals$4(existing, incoming) {
3730
4066
  if (!(existing_dataSpaceId === incoming_dataSpaceId)) {
3731
4067
  return false;
3732
4068
  }
3733
- const existing_esModelDefinitionId = existing.esModelDefinitionId;
3734
- const incoming_esModelDefinitionId = incoming.esModelDefinitionId;
3735
- if (!(existing_esModelDefinitionId === incoming_esModelDefinitionId)) {
4069
+ const existing_id = existing.id;
4070
+ const incoming_id = incoming.id;
4071
+ if (!(existing_id === incoming_id)) {
4072
+ return false;
4073
+ }
4074
+ const existing_label = existing.label;
4075
+ const incoming_label = incoming.label;
4076
+ if (!(existing_label === incoming_label)) {
4077
+ return false;
4078
+ }
4079
+ const existing_name = existing.name;
4080
+ const incoming_name = incoming.name;
4081
+ if (!(existing_name === incoming_name)) {
3736
4082
  return false;
3737
4083
  }
3738
4084
  const existing_profileDataGraphId = existing.profileDataGraphId;
@@ -3740,14 +4086,19 @@ function equals$4(existing, incoming) {
3740
4086
  if (!(existing_profileDataGraphId === incoming_profileDataGraphId)) {
3741
4087
  return false;
3742
4088
  }
3743
- const existing_personalizationDataMlModelInputList = existing.personalizationDataMlModelInputList;
3744
- const incoming_personalizationDataMlModelInputList = incoming.personalizationDataMlModelInputList;
3745
- const equals_personalizationDataMlModelInputList_items = equalsArray(existing_personalizationDataMlModelInputList, incoming_personalizationDataMlModelInputList, (existing_personalizationDataMlModelInputList_item, incoming_personalizationDataMlModelInputList_item) => {
3746
- if (JSONStringify(incoming_personalizationDataMlModelInputList_item) !== JSONStringify(existing_personalizationDataMlModelInputList_item)) {
4089
+ const existing_esModelDefinition = existing.esModelDefinition;
4090
+ const incoming_esModelDefinition = incoming.esModelDefinition;
4091
+ if (!(equals$6(existing_esModelDefinition, incoming_esModelDefinition))) {
4092
+ return false;
4093
+ }
4094
+ const existing_personalizationInputs = existing.personalizationInputs;
4095
+ const incoming_personalizationInputs = incoming.personalizationInputs;
4096
+ const equals_personalizationInputs_items = equalsArray(existing_personalizationInputs, incoming_personalizationInputs, (existing_personalizationInputs_item, incoming_personalizationInputs_item) => {
4097
+ if (!(equals$5(existing_personalizationInputs_item, incoming_personalizationInputs_item))) {
3747
4098
  return false;
3748
4099
  }
3749
4100
  });
3750
- if (equals_personalizationDataMlModelInputList_items === false) {
4101
+ if (equals_personalizationInputs_items === false) {
3751
4102
  return false;
3752
4103
  }
3753
4104
  return true;
@@ -3755,7 +4106,7 @@ function equals$4(existing, incoming) {
3755
4106
 
3756
4107
  const TTL$2 = 600;
3757
4108
  const VERSION$3 = "9dbc0875b97dc0f9ec2f23b3481be0b8";
3758
- function validate$6(obj, path = 'PersonalizationDataMlModelCollectionRepresentation') {
4109
+ function validate$5(obj, path = 'PersonalizationDataMlModelCollectionRepresentation') {
3759
4110
  const v_error = (() => {
3760
4111
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3761
4112
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3768,7 +4119,7 @@ function validate$6(obj, path = 'PersonalizationDataMlModelCollectionRepresentat
3768
4119
  for (let i = 0; i < obj_personalizationDataMlModels.length; i++) {
3769
4120
  const obj_personalizationDataMlModels_item = obj_personalizationDataMlModels[i];
3770
4121
  const path_personalizationDataMlModels_item = path_personalizationDataMlModels + '[' + i + ']';
3771
- const referencepath_personalizationDataMlModels_itemValidationError = validate$7(obj_personalizationDataMlModels_item, path_personalizationDataMlModels_item);
4122
+ const referencepath_personalizationDataMlModels_itemValidationError = validate$6(obj_personalizationDataMlModels_item, path_personalizationDataMlModels_item);
3772
4123
  if (referencepath_personalizationDataMlModels_itemValidationError !== null) {
3773
4124
  let message = 'Object doesn\'t match PersonalizationDataMlModelRepresentation (at "' + path_personalizationDataMlModels_item + '")\n';
3774
4125
  message += referencepath_personalizationDataMlModels_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3813,7 +4164,7 @@ function equals$3(existing, incoming) {
3813
4164
  }
3814
4165
  const ingest$2 = function PersonalizationDataMlModelCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
3815
4166
  if (process.env.NODE_ENV !== 'production') {
3816
- const validateError = validate$6(input);
4167
+ const validateError = validate$5(input);
3817
4168
  if (validateError !== null) {
3818
4169
  throw validateError;
3819
4170
  }
@@ -3975,7 +4326,7 @@ const getPersonalizationEsModelMappingAdapterFactory = (luvio) => function perso
3975
4326
  };
3976
4327
 
3977
4328
  function select$7(luvio, params) {
3978
- return select$f();
4329
+ return select$i();
3979
4330
  }
3980
4331
  function keyBuilder$7(luvio, params) {
3981
4332
  return keyBuilder$d(luvio, {
@@ -4008,7 +4359,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
4008
4359
  const storeMetadataParams = {
4009
4360
  ttl: TTL$4,
4010
4361
  namespace: keyPrefix,
4011
- version: VERSION$7,
4362
+ version: VERSION$a,
4012
4363
  representationName: RepresentationType$4
4013
4364
  };
4014
4365
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -4115,7 +4466,7 @@ const getPersonalizationPointAdapterFactory = (luvio) => function personalizatio
4115
4466
  };
4116
4467
 
4117
4468
  function select$6(luvio, params) {
4118
- return select$c();
4469
+ return select$f();
4119
4470
  }
4120
4471
  function keyBuilder$5(luvio, params) {
4121
4472
  return keyBuilder$c(luvio, {
@@ -4148,7 +4499,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
4148
4499
  const storeMetadataParams = {
4149
4500
  ttl: TTL$3,
4150
4501
  namespace: keyPrefix,
4151
- version: VERSION$5,
4502
+ version: VERSION$8,
4152
4503
  representationName: RepresentationType$3
4153
4504
  };
4154
4505
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -4284,7 +4635,7 @@ const notifyChangeFactory = (luvio, options) => {
4284
4635
  luvio.storeIngestError(key, errorSnapshot, {
4285
4636
  ttl: TTL$3,
4286
4637
  namespace: keyPrefix,
4287
- version: VERSION$5,
4638
+ version: VERSION$8,
4288
4639
  representationName: RepresentationType$3
4289
4640
  });
4290
4641
  return luvio.storeBroadcast().then(() => errorSnapshot);
@@ -4296,7 +4647,7 @@ const notifyChangeFactory = (luvio, options) => {
4296
4647
  };
4297
4648
 
4298
4649
  const VERSION$2 = "4140d8b5bf494d4e8f3ef8713b0ffd7d";
4299
- function validate$5(obj, path = 'PersonalizationRecommenderJobRepresentation') {
4650
+ function validate$4(obj, path = 'PersonalizationRecommenderJobRepresentation') {
4300
4651
  const v_error = (() => {
4301
4652
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4302
4653
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4469,7 +4820,7 @@ function equals$2(existing, incoming) {
4469
4820
 
4470
4821
  const TTL$1 = 600;
4471
4822
  const VERSION$1 = "2fab2250d4ed5adcbb1a5c19a64cd765";
4472
- function validate$4(obj, path = 'PersonalizationRecommenderJobCollectionRepresentation') {
4823
+ function validate$3(obj, path = 'PersonalizationRecommenderJobCollectionRepresentation') {
4473
4824
  const v_error = (() => {
4474
4825
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4475
4826
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4490,7 +4841,7 @@ function validate$4(obj, path = 'PersonalizationRecommenderJobCollectionRepresen
4490
4841
  for (let i = 0; i < obj_jobs.length; i++) {
4491
4842
  const obj_jobs_item = obj_jobs[i];
4492
4843
  const path_jobs_item = path_jobs + '[' + i + ']';
4493
- const referencepath_jobs_itemValidationError = validate$5(obj_jobs_item, path_jobs_item);
4844
+ const referencepath_jobs_itemValidationError = validate$4(obj_jobs_item, path_jobs_item);
4494
4845
  if (referencepath_jobs_itemValidationError !== null) {
4495
4846
  let message = 'Object doesn\'t match PersonalizationRecommenderJobRepresentation (at "' + path_jobs_item + '")\n';
4496
4847
  message += referencepath_jobs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4588,7 +4939,7 @@ function equals$1(existing, incoming) {
4588
4939
  }
4589
4940
  const ingest$1 = function PersonalizationRecommenderJobCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
4590
4941
  if (process.env.NODE_ENV !== 'production') {
4591
- const validateError = validate$4(input);
4942
+ const validateError = validate$3(input);
4592
4943
  if (validateError !== null) {
4593
4944
  throw validateError;
4594
4945
  }
@@ -4748,7 +5099,7 @@ const getTrainingHistoryAdapterFactory = (luvio) => function personalizationServ
4748
5099
  buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
4749
5100
  };
4750
5101
 
4751
- function validate$3(obj, path = 'AnchorReferenceRepresentation') {
5102
+ function validate$2(obj, path = 'AnchorReferenceRepresentation') {
4752
5103
  const v_error = (() => {
4753
5104
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4754
5105
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4767,32 +5118,6 @@ function validate$3(obj, path = 'AnchorReferenceRepresentation') {
4767
5118
  return v_error === undefined ? null : v_error;
4768
5119
  }
4769
5120
 
4770
- function validate$2(obj, path = 'RuleGroupInputRepresentation2') {
4771
- const v_error = (() => {
4772
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4773
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4774
- }
4775
- const obj_operator = obj.operator;
4776
- const path_operator = path + '.operator';
4777
- if (typeof obj_operator !== 'string') {
4778
- return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
4779
- }
4780
- const obj_rules = obj.rules;
4781
- const path_rules = path + '.rules';
4782
- if (!ArrayIsArray(obj_rules)) {
4783
- return new TypeError('Expected "array" but received "' + typeof obj_rules + '" (at "' + path_rules + '")');
4784
- }
4785
- for (let i = 0; i < obj_rules.length; i++) {
4786
- const obj_rules_item = obj_rules[i];
4787
- const path_rules_item = path_rules + '[' + i + ']';
4788
- if (obj_rules_item === undefined) {
4789
- return new TypeError('Expected "defined" but received "' + typeof obj_rules_item + '" (at "' + path_rules_item + '")');
4790
- }
4791
- }
4792
- })();
4793
- return v_error === undefined ? null : v_error;
4794
- }
4795
-
4796
5121
  function validate$1(obj, path = 'RuleGroupInputRepresentation') {
4797
5122
  const v_error = (() => {
4798
5123
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -4811,8 +5136,8 @@ function validate$1(obj, path = 'RuleGroupInputRepresentation') {
4811
5136
  for (let i = 0; i < obj_rules.length; i++) {
4812
5137
  const obj_rules_item = obj_rules[i];
4813
5138
  const path_rules_item = path_rules + '[' + i + ']';
4814
- if (obj_rules_item === undefined) {
4815
- return new TypeError('Expected "defined" but received "' + typeof obj_rules_item + '" (at "' + path_rules_item + '")');
5139
+ if (typeof obj_rules_item !== 'object' || ArrayIsArray(obj_rules_item) || obj_rules_item === null) {
5140
+ return new TypeError('Expected "object" but received "' + typeof obj_rules_item + '" (at "' + path_rules_item + '")');
4816
5141
  }
4817
5142
  }
4818
5143
  })();
@@ -4886,7 +5211,7 @@ function select$1(luvio, params) {
4886
5211
  return select$2();
4887
5212
  }
4888
5213
  function keyBuilder$1(luvio, params) {
4889
- 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?.operator === undefined ? 'excludeFilters.operator' : 'excludeFilters.operator:' + params.body.excludeFilters?.operator) + '::' + (params.body.excludeFilters?.rules === undefined ? 'excludeFilters.rules' : 'excludeFilters.rules:' + params.body.excludeFilters?.rules) + '::' + (params.body.includeFilters?.operator === undefined ? 'includeFilters.operator' : 'includeFilters.operator:' + params.body.includeFilters?.operator) + '::' + (params.body.includeFilters?.rules === undefined ? 'includeFilters.rules' : 'includeFilters.rules:' + params.body.includeFilters?.rules) + '::' + (params.body.individualId === undefined ? 'individualId' : 'individualId:' + params.body.individualId) + ')';
5214
+ 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) + ')';
4890
5215
  }
4891
5216
  function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
4892
5217
  getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
@@ -4938,8 +5263,8 @@ const adapterName$1 = 'postPersonalizationRecommenderSimulateAction';
4938
5263
  const postPersonalizationRecommenderSimulateAction_ConfigPropertyMetadata = [
4939
5264
  generateParamConfigMetadata('idOrName', true, 0 /* UrlParameter */, 0 /* String */),
4940
5265
  generateParamConfigMetadata('anchors', false, 2 /* Body */, 4 /* Unsupported */, true),
4941
- generateParamConfigMetadata('excludeFilters', false, 2 /* Body */, 4 /* Unsupported */),
4942
- generateParamConfigMetadata('includeFilters', false, 2 /* Body */, 4 /* Unsupported */),
5266
+ generateParamConfigMetadata('excludeFilters', false, 2 /* Body */, 4 /* Unsupported */, true),
5267
+ generateParamConfigMetadata('includeFilters', false, 2 /* Body */, 4 /* Unsupported */, true),
4943
5268
  generateParamConfigMetadata('individualId', false, 2 /* Body */, 4 /* Unsupported */),
4944
5269
  ];
4945
5270
  const postPersonalizationRecommenderSimulateAction_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, postPersonalizationRecommenderSimulateAction_ConfigPropertyMetadata);
@@ -4956,7 +5281,7 @@ function typeCheckConfig$1(untrustedConfig) {
4956
5281
  const untrustedConfig_anchors_array = [];
4957
5282
  for (let i = 0, arrayLength = untrustedConfig_anchors.length; i < arrayLength; i++) {
4958
5283
  const untrustedConfig_anchors_item = untrustedConfig_anchors[i];
4959
- const referenceAnchorReferenceRepresentationValidationError = validate$3(untrustedConfig_anchors_item);
5284
+ const referenceAnchorReferenceRepresentationValidationError = validate$2(untrustedConfig_anchors_item);
4960
5285
  if (referenceAnchorReferenceRepresentationValidationError === null) {
4961
5286
  untrustedConfig_anchors_array.push(untrustedConfig_anchors_item);
4962
5287
  }
@@ -4964,14 +5289,28 @@ function typeCheckConfig$1(untrustedConfig) {
4964
5289
  config.anchors = untrustedConfig_anchors_array;
4965
5290
  }
4966
5291
  const untrustedConfig_excludeFilters = untrustedConfig.excludeFilters;
4967
- const referenceRuleGroupInputRepresentation2ValidationError = validate$2(untrustedConfig_excludeFilters);
4968
- if (referenceRuleGroupInputRepresentation2ValidationError === null) {
4969
- config.excludeFilters = untrustedConfig_excludeFilters;
5292
+ if (ArrayIsArray$1(untrustedConfig_excludeFilters)) {
5293
+ const untrustedConfig_excludeFilters_array = [];
5294
+ for (let i = 0, arrayLength = untrustedConfig_excludeFilters.length; i < arrayLength; i++) {
5295
+ const untrustedConfig_excludeFilters_item = untrustedConfig_excludeFilters[i];
5296
+ const referenceRuleGroupInputRepresentationValidationError = validate$1(untrustedConfig_excludeFilters_item);
5297
+ if (referenceRuleGroupInputRepresentationValidationError === null) {
5298
+ untrustedConfig_excludeFilters_array.push(untrustedConfig_excludeFilters_item);
5299
+ }
5300
+ }
5301
+ config.excludeFilters = untrustedConfig_excludeFilters_array;
4970
5302
  }
4971
5303
  const untrustedConfig_includeFilters = untrustedConfig.includeFilters;
4972
- const referenceRuleGroupInputRepresentationValidationError = validate$1(untrustedConfig_includeFilters);
4973
- if (referenceRuleGroupInputRepresentationValidationError === null) {
4974
- config.includeFilters = untrustedConfig_includeFilters;
5304
+ if (ArrayIsArray$1(untrustedConfig_includeFilters)) {
5305
+ const untrustedConfig_includeFilters_array = [];
5306
+ for (let i = 0, arrayLength = untrustedConfig_includeFilters.length; i < arrayLength; i++) {
5307
+ const untrustedConfig_includeFilters_item = untrustedConfig_includeFilters[i];
5308
+ const referenceRuleGroupInputRepresentationValidationError = validate$1(untrustedConfig_includeFilters_item);
5309
+ if (referenceRuleGroupInputRepresentationValidationError === null) {
5310
+ untrustedConfig_includeFilters_array.push(untrustedConfig_includeFilters_item);
5311
+ }
5312
+ }
5313
+ config.includeFilters = untrustedConfig_includeFilters_array;
4975
5314
  }
4976
5315
  const untrustedConfig_individualId = untrustedConfig.individualId;
4977
5316
  if (typeof untrustedConfig_individualId === 'string') {
@@ -5054,7 +5393,7 @@ const postPersonalizationRecommenderSimulateActionAdapterFactory = (luvio) => fu
5054
5393
  };
5055
5394
 
5056
5395
  function select(luvio, params) {
5057
- return select$f();
5396
+ return select$i();
5058
5397
  }
5059
5398
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
5060
5399
  getTypeCacheKeys$4(storeKeyMap, luvio, response);
@@ -5153,7 +5492,7 @@ function typeCheckConfig(untrustedConfig) {
5153
5492
  const untrustedConfig_decisions_array = [];
5154
5493
  for (let i = 0, arrayLength = untrustedConfig_decisions.length; i < arrayLength; i++) {
5155
5494
  const untrustedConfig_decisions_item = untrustedConfig_decisions[i];
5156
- const referencePersonalizationDecisionInputRepresentationValidationError = validate$i(untrustedConfig_decisions_item);
5495
+ const referencePersonalizationDecisionInputRepresentationValidationError = validate$k(untrustedConfig_decisions_item);
5157
5496
  if (referencePersonalizationDecisionInputRepresentationValidationError === null) {
5158
5497
  untrustedConfig_decisions_array.push(untrustedConfig_decisions_item);
5159
5498
  }
@@ -5343,4 +5682,4 @@ withDefaultLuvio((luvio) => {
5343
5682
  });
5344
5683
 
5345
5684
  export { createPersonalizationPoint, createPersonalizationSchema, deletePersonalizationPoint, deletePersonalizationSchema, getPersonalizationEsModelMapping, getPersonalizationEsModelMapping_imperative, getPersonalizationPoint, getPersonalizationPoint_imperative, getPersonalizationSchema, getPersonalizationSchemaNotifyChange, getPersonalizationSchema_imperative, getTrainingHistory, getTrainingHistory_imperative, postPersonalizationRecommenderSimulateAction, postPersonalizationRecommenderSimulateAction_imperative, updatePersonalizationPoint };
5346
- // version: 1.354.0-dev1-3890a35d35
5685
+ // version: 1.355.0-df8576becd