@salesforce/lds-adapters-cdp-personalization-service 1.332.0-dev1 → 1.332.0-dev10

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.
@@ -92,7 +92,7 @@ function createLink(ref) {
92
92
  };
93
93
  }
94
94
 
95
- function validate$f(obj, path = 'PersonalizationAttributeValueInputRepresentation') {
95
+ function validate$i(obj, path = 'PersonalizationAttributeValueInputRepresentation') {
96
96
  const v_error = (() => {
97
97
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
98
98
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -183,7 +183,7 @@ function validate$f(obj, path = 'PersonalizationAttributeValueInputRepresentatio
183
183
  return v_error === undefined ? null : v_error;
184
184
  }
185
185
 
186
- function validate$e(obj, path = 'PersonalizationDecisionInputRepresentation') {
186
+ function validate$h(obj, path = 'PersonalizationDecisionInputRepresentation') {
187
187
  const v_error = (() => {
188
188
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
189
189
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -197,7 +197,7 @@ function validate$e(obj, path = 'PersonalizationDecisionInputRepresentation') {
197
197
  for (let i = 0; i < obj_attributeValues.length; i++) {
198
198
  const obj_attributeValues_item = obj_attributeValues[i];
199
199
  const path_attributeValues_item = path_attributeValues + '[' + i + ']';
200
- const referencepath_attributeValues_itemValidationError = validate$f(obj_attributeValues_item, path_attributeValues_item);
200
+ const referencepath_attributeValues_itemValidationError = validate$i(obj_attributeValues_item, path_attributeValues_item);
201
201
  if (referencepath_attributeValues_itemValidationError !== null) {
202
202
  let message = 'Object doesn\'t match PersonalizationAttributeValueInputRepresentation (at "' + path_attributeValues_item + '")\n';
203
203
  message += referencepath_attributeValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -371,8 +371,8 @@ function validate$e(obj, path = 'PersonalizationDecisionInputRepresentation') {
371
371
  return v_error === undefined ? null : v_error;
372
372
  }
373
373
 
374
- const VERSION$a = "52ea9c14b7a747a28cedbcff0e7ab169";
375
- function validate$d(obj, path = 'PersonalizationAttributeValueRepresentation') {
374
+ const VERSION$d = "52ea9c14b7a747a28cedbcff0e7ab169";
375
+ function validate$g(obj, path = 'PersonalizationAttributeValueRepresentation') {
376
376
  const v_error = (() => {
377
377
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
378
378
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -458,10 +458,10 @@ function validate$d(obj, path = 'PersonalizationAttributeValueRepresentation') {
458
458
  })();
459
459
  return v_error === undefined ? null : v_error;
460
460
  }
461
- const select$h = function PersonalizationAttributeValueRepresentationSelect() {
461
+ const select$k = function PersonalizationAttributeValueRepresentationSelect() {
462
462
  return {
463
463
  kind: 'Fragment',
464
- version: VERSION$a,
464
+ version: VERSION$d,
465
465
  private: [],
466
466
  selections: [
467
467
  {
@@ -479,7 +479,7 @@ const select$h = function PersonalizationAttributeValueRepresentationSelect() {
479
479
  ]
480
480
  };
481
481
  };
482
- function equals$a(existing, incoming) {
482
+ function equals$d(existing, incoming) {
483
483
  const existing_attributeEnum = existing.attributeEnum;
484
484
  const incoming_attributeEnum = incoming.attributeEnum;
485
485
  if (!(existing_attributeEnum === incoming_attributeEnum)) {
@@ -498,7 +498,7 @@ function equals$a(existing, incoming) {
498
498
  return true;
499
499
  }
500
500
 
501
- function validate$c(obj, path = 'FiltersWrapRepresentation') {
501
+ function validate$f(obj, path = 'FiltersWrapRepresentation') {
502
502
  const v_error = (() => {
503
503
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
504
504
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -577,7 +577,7 @@ function validate$c(obj, path = 'FiltersWrapRepresentation') {
577
577
  return v_error === undefined ? null : v_error;
578
578
  }
579
579
 
580
- function validate$b(obj, path = 'SubjectRepresentation') {
580
+ function validate$e(obj, path = 'SubjectRepresentation') {
581
581
  const v_error = (() => {
582
582
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
583
583
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -696,8 +696,8 @@ function validate$b(obj, path = 'SubjectRepresentation') {
696
696
  return v_error === undefined ? null : v_error;
697
697
  }
698
698
 
699
- const VERSION$9 = "089c2877ffa367e376fe74f8d358ffa8";
700
- function validate$a(obj, path = 'FilterRepresentation') {
699
+ const VERSION$c = "089c2877ffa367e376fe74f8d358ffa8";
700
+ function validate$d(obj, path = 'FilterRepresentation') {
701
701
  const v_error = (() => {
702
702
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
703
703
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -735,7 +735,7 @@ function validate$a(obj, path = 'FilterRepresentation') {
735
735
  const path_comparison = path + '.comparison';
736
736
  let obj_comparison_union0 = null;
737
737
  const obj_comparison_union0_error = (() => {
738
- const referencepath_comparisonValidationError = validate$a(obj_comparison, path_comparison);
738
+ const referencepath_comparisonValidationError = validate$d(obj_comparison, path_comparison);
739
739
  if (referencepath_comparisonValidationError !== null) {
740
740
  let message = 'Object doesn\'t match FilterRepresentation (at "' + path_comparison + '")\n';
741
741
  message += referencepath_comparisonValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -766,7 +766,7 @@ function validate$a(obj, path = 'FilterRepresentation') {
766
766
  const path_filter = path + '.filter';
767
767
  let obj_filter_union0 = null;
768
768
  const obj_filter_union0_error = (() => {
769
- const referencepath_filterValidationError = validate$c(obj_filter, path_filter);
769
+ const referencepath_filterValidationError = validate$f(obj_filter, path_filter);
770
770
  if (referencepath_filterValidationError !== null) {
771
771
  let message = 'Object doesn\'t match FiltersWrapRepresentation (at "' + path_filter + '")\n';
772
772
  message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -803,7 +803,7 @@ function validate$a(obj, path = 'FilterRepresentation') {
803
803
  const path_filters_item = path_filters + '[' + i + ']';
804
804
  let obj_filters_item_union0 = null;
805
805
  const obj_filters_item_union0_error = (() => {
806
- const referencepath_filters_itemValidationError = validate$a(obj_filters_item, path_filters_item);
806
+ const referencepath_filters_itemValidationError = validate$d(obj_filters_item, path_filters_item);
807
807
  if (referencepath_filters_itemValidationError !== null) {
808
808
  let message = 'Object doesn\'t match FilterRepresentation (at "' + path_filters_item + '")\n';
809
809
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -863,7 +863,7 @@ function validate$a(obj, path = 'FilterRepresentation') {
863
863
  const path_metric = path + '.metric';
864
864
  let obj_metric_union0 = null;
865
865
  const obj_metric_union0_error = (() => {
866
- const referencepath_metricValidationError = validate$b(obj_metric, path_metric);
866
+ const referencepath_metricValidationError = validate$e(obj_metric, path_metric);
867
867
  if (referencepath_metricValidationError !== null) {
868
868
  let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_metric + '")\n';
869
869
  message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -932,7 +932,7 @@ function validate$a(obj, path = 'FilterRepresentation') {
932
932
  for (let i = 0; i < obj_path_item.length; i++) {
933
933
  const obj_path_item_item = obj_path_item[i];
934
934
  const path_path_item_item = path_path_item + '[' + i + ']';
935
- const referencepath_path_item_itemValidationError = validate$b(obj_path_item_item, path_path_item_item);
935
+ const referencepath_path_item_itemValidationError = validate$e(obj_path_item_item, path_path_item_item);
936
936
  if (referencepath_path_item_itemValidationError !== null) {
937
937
  let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_path_item_item + '")\n';
938
938
  message += referencepath_path_item_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1030,7 +1030,7 @@ function validate$a(obj, path = 'FilterRepresentation') {
1030
1030
  const path_subject = path + '.subject';
1031
1031
  let obj_subject_union0 = null;
1032
1032
  const obj_subject_union0_error = (() => {
1033
- const referencepath_subjectValidationError = validate$b(obj_subject, path_subject);
1033
+ const referencepath_subjectValidationError = validate$e(obj_subject, path_subject);
1034
1034
  if (referencepath_subjectValidationError !== null) {
1035
1035
  let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_subject + '")\n';
1036
1036
  message += referencepath_subjectValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1133,15 +1133,15 @@ const RepresentationType$6 = 'FilterRepresentation';
1133
1133
  function normalize$6(input, existing, path, luvio, store, timestamp) {
1134
1134
  return input;
1135
1135
  }
1136
- const select$g = function FilterRepresentationSelect() {
1136
+ const select$j = function FilterRepresentationSelect() {
1137
1137
  return {
1138
1138
  kind: 'Fragment',
1139
- version: VERSION$9,
1139
+ version: VERSION$c,
1140
1140
  private: [],
1141
1141
  opaque: true
1142
1142
  };
1143
1143
  };
1144
- function equals$9(existing, incoming) {
1144
+ function equals$c(existing, incoming) {
1145
1145
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
1146
1146
  return false;
1147
1147
  }
@@ -1149,14 +1149,14 @@ function equals$9(existing, incoming) {
1149
1149
  }
1150
1150
  const ingest$6 = function FilterRepresentationIngest(input, path, luvio, store, timestamp) {
1151
1151
  if (process.env.NODE_ENV !== 'production') {
1152
- const validateError = validate$a(input);
1152
+ const validateError = validate$d(input);
1153
1153
  if (validateError !== null) {
1154
1154
  throw validateError;
1155
1155
  }
1156
1156
  }
1157
1157
  const key = path.fullPath;
1158
1158
  const ttlToUse = path.ttl;
1159
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "personalization-service", VERSION$9, RepresentationType$6, equals$9);
1159
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "personalization-service", VERSION$c, RepresentationType$6, equals$c);
1160
1160
  return createLink(key);
1161
1161
  };
1162
1162
  function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
@@ -1169,8 +1169,8 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1169
1169
  });
1170
1170
  }
1171
1171
 
1172
- const VERSION$8 = "ea475f10b4c028f8b97a44af1cf0be14";
1173
- function validate$9(obj, path = 'CriteriaRepresentation') {
1172
+ const VERSION$b = "ea475f10b4c028f8b97a44af1cf0be14";
1173
+ function validate$c(obj, path = 'CriteriaRepresentation') {
1174
1174
  const v_error = (() => {
1175
1175
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1176
1176
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1220,17 +1220,17 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
1220
1220
  }
1221
1221
  return input;
1222
1222
  }
1223
- const select$f = function CriteriaRepresentationSelect() {
1223
+ const select$i = function CriteriaRepresentationSelect() {
1224
1224
  return {
1225
1225
  kind: 'Fragment',
1226
- version: VERSION$8,
1226
+ version: VERSION$b,
1227
1227
  private: [],
1228
1228
  selections: [
1229
1229
  {
1230
1230
  name: 'filters',
1231
1231
  kind: 'Link',
1232
1232
  plural: true,
1233
- fragment: select$g()
1233
+ fragment: select$j()
1234
1234
  },
1235
1235
  {
1236
1236
  name: 'operator',
@@ -1243,7 +1243,7 @@ const select$f = function CriteriaRepresentationSelect() {
1243
1243
  ]
1244
1244
  };
1245
1245
  };
1246
- function equals$8(existing, incoming) {
1246
+ function equals$b(existing, incoming) {
1247
1247
  const existing_operator = existing.operator;
1248
1248
  const incoming_operator = incoming.operator;
1249
1249
  if (!(existing_operator === incoming_operator)) {
@@ -1268,14 +1268,14 @@ function equals$8(existing, incoming) {
1268
1268
  }
1269
1269
  const ingest$5 = function CriteriaRepresentationIngest(input, path, luvio, store, timestamp) {
1270
1270
  if (process.env.NODE_ENV !== 'production') {
1271
- const validateError = validate$9(input);
1271
+ const validateError = validate$c(input);
1272
1272
  if (validateError !== null) {
1273
1273
  throw validateError;
1274
1274
  }
1275
1275
  }
1276
1276
  const key = path.fullPath;
1277
1277
  const ttlToUse = path.ttl;
1278
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "personalization-service", VERSION$8, RepresentationType$5, equals$8);
1278
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "personalization-service", VERSION$b, RepresentationType$5, equals$b);
1279
1279
  return createLink(key);
1280
1280
  };
1281
1281
  function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
@@ -1292,8 +1292,8 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1292
1292
  }
1293
1293
  }
1294
1294
 
1295
- const VERSION$7 = "265767af783b296f5f902d6ed447b168";
1296
- function validate$8(obj, path = 'PersonalizationDecisionRepresentation') {
1295
+ const VERSION$a = "265767af783b296f5f902d6ed447b168";
1296
+ function validate$b(obj, path = 'PersonalizationDecisionRepresentation') {
1297
1297
  const v_error = (() => {
1298
1298
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1299
1299
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1306,7 +1306,7 @@ function validate$8(obj, path = 'PersonalizationDecisionRepresentation') {
1306
1306
  for (let i = 0; i < obj_attributeValues.length; i++) {
1307
1307
  const obj_attributeValues_item = obj_attributeValues[i];
1308
1308
  const path_attributeValues_item = path_attributeValues + '[' + i + ']';
1309
- const referencepath_attributeValues_itemValidationError = validate$d(obj_attributeValues_item, path_attributeValues_item);
1309
+ const referencepath_attributeValues_itemValidationError = validate$g(obj_attributeValues_item, path_attributeValues_item);
1310
1310
  if (referencepath_attributeValues_itemValidationError !== null) {
1311
1311
  let message = 'Object doesn\'t match PersonalizationAttributeValueRepresentation (at "' + path_attributeValues_item + '")\n';
1312
1312
  message += referencepath_attributeValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1646,11 +1646,11 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
1646
1646
  }
1647
1647
  return input;
1648
1648
  }
1649
- const select$e = function PersonalizationDecisionRepresentationSelect() {
1650
- const { selections: PersonalizationAttributeValueRepresentation__selections, opaque: PersonalizationAttributeValueRepresentation__opaque, } = select$h();
1649
+ const select$h = function PersonalizationDecisionRepresentationSelect() {
1650
+ const { selections: PersonalizationAttributeValueRepresentation__selections, opaque: PersonalizationAttributeValueRepresentation__opaque, } = select$k();
1651
1651
  return {
1652
1652
  kind: 'Fragment',
1653
- version: VERSION$7,
1653
+ version: VERSION$a,
1654
1654
  private: [],
1655
1655
  selections: [
1656
1656
  {
@@ -1671,7 +1671,7 @@ const select$e = function PersonalizationDecisionRepresentationSelect() {
1671
1671
  name: 'criteria',
1672
1672
  kind: 'Link',
1673
1673
  nullable: true,
1674
- fragment: select$f()
1674
+ fragment: select$i()
1675
1675
  },
1676
1676
  {
1677
1677
  name: 'description',
@@ -1712,11 +1712,11 @@ const select$e = function PersonalizationDecisionRepresentationSelect() {
1712
1712
  ]
1713
1713
  };
1714
1714
  };
1715
- function equals$7(existing, incoming) {
1715
+ function equals$a(existing, incoming) {
1716
1716
  const existing_attributeValues = existing.attributeValues;
1717
1717
  const incoming_attributeValues = incoming.attributeValues;
1718
1718
  const equals_attributeValues_items = equalsArray(existing_attributeValues, incoming_attributeValues, (existing_attributeValues_item, incoming_attributeValues_item) => {
1719
- if (!(equals$a(existing_attributeValues_item, incoming_attributeValues_item))) {
1719
+ if (!(equals$d(existing_attributeValues_item, incoming_attributeValues_item))) {
1720
1720
  return false;
1721
1721
  }
1722
1722
  });
@@ -1792,14 +1792,14 @@ function equals$7(existing, incoming) {
1792
1792
  }
1793
1793
  const ingest$4 = function PersonalizationDecisionRepresentationIngest(input, path, luvio, store, timestamp) {
1794
1794
  if (process.env.NODE_ENV !== 'production') {
1795
- const validateError = validate$8(input);
1795
+ const validateError = validate$b(input);
1796
1796
  if (validateError !== null) {
1797
1797
  throw validateError;
1798
1798
  }
1799
1799
  }
1800
1800
  const key = path.fullPath;
1801
1801
  const ttlToUse = path.ttl;
1802
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "personalization-service", VERSION$7, RepresentationType$4, equals$7);
1802
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "personalization-service", VERSION$a, RepresentationType$4, equals$a);
1803
1803
  return createLink(key);
1804
1804
  };
1805
1805
  function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
@@ -1816,8 +1816,8 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
1816
1816
  }
1817
1817
 
1818
1818
  const TTL$3 = 600;
1819
- const VERSION$6 = "e5643ca13ef54c890c9177275a053de3";
1820
- function validate$7(obj, path = 'PersonalizationPointRepresentation') {
1819
+ const VERSION$9 = "e5643ca13ef54c890c9177275a053de3";
1820
+ function validate$a(obj, path = 'PersonalizationPointRepresentation') {
1821
1821
  const v_error = (() => {
1822
1822
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1823
1823
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2323,10 +2323,10 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
2323
2323
  }
2324
2324
  return input;
2325
2325
  }
2326
- const select$d = function PersonalizationPointRepresentationSelect() {
2326
+ const select$g = function PersonalizationPointRepresentationSelect() {
2327
2327
  return {
2328
2328
  kind: 'Fragment',
2329
- version: VERSION$6,
2329
+ version: VERSION$9,
2330
2330
  private: [],
2331
2331
  selections: [
2332
2332
  {
@@ -2349,7 +2349,7 @@ const select$d = function PersonalizationPointRepresentationSelect() {
2349
2349
  name: 'decisions',
2350
2350
  kind: 'Link',
2351
2351
  plural: true,
2352
- fragment: select$e()
2352
+ fragment: select$h()
2353
2353
  },
2354
2354
  {
2355
2355
  name: 'description',
@@ -2418,7 +2418,7 @@ const select$d = function PersonalizationPointRepresentationSelect() {
2418
2418
  ]
2419
2419
  };
2420
2420
  };
2421
- function equals$6(existing, incoming) {
2421
+ function equals$9(existing, incoming) {
2422
2422
  const existing_isAuthenticationRequired = existing.isAuthenticationRequired;
2423
2423
  const incoming_isAuthenticationRequired = incoming.isAuthenticationRequired;
2424
2424
  if (!(existing_isAuthenticationRequired === incoming_isAuthenticationRequired)) {
@@ -2533,14 +2533,14 @@ function equals$6(existing, incoming) {
2533
2533
  }
2534
2534
  const ingest$3 = function PersonalizationPointRepresentationIngest(input, path, luvio, store, timestamp) {
2535
2535
  if (process.env.NODE_ENV !== 'production') {
2536
- const validateError = validate$7(input);
2536
+ const validateError = validate$a(input);
2537
2537
  if (validateError !== null) {
2538
2538
  throw validateError;
2539
2539
  }
2540
2540
  }
2541
2541
  const key = keyBuilderFromType$1(luvio, input);
2542
2542
  const ttlToUse = TTL$3;
2543
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "personalization-service", VERSION$6, RepresentationType$3, equals$6);
2543
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "personalization-service", VERSION$9, RepresentationType$3, equals$9);
2544
2544
  return createLink(key);
2545
2545
  };
2546
2546
  function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
@@ -2557,8 +2557,8 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
2557
2557
  }
2558
2558
  }
2559
2559
 
2560
- function select$c(luvio, params) {
2561
- return select$d();
2560
+ function select$f(luvio, params) {
2561
+ return select$g();
2562
2562
  }
2563
2563
  function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
2564
2564
  getTypeCacheKeys$3(storeKeyMap, luvio, response);
@@ -2569,7 +2569,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
2569
2569
  luvio.storeIngest(key, ingest$3, body);
2570
2570
  const snapshot = luvio.storeLookup({
2571
2571
  recordId: key,
2572
- node: select$c(),
2572
+ node: select$f(),
2573
2573
  variables: {},
2574
2574
  });
2575
2575
  if (process.env.NODE_ENV !== 'production') {
@@ -2656,7 +2656,7 @@ function typeCheckConfig$8(untrustedConfig) {
2656
2656
  const untrustedConfig_decisions_array = [];
2657
2657
  for (let i = 0, arrayLength = untrustedConfig_decisions.length; i < arrayLength; i++) {
2658
2658
  const untrustedConfig_decisions_item = untrustedConfig_decisions[i];
2659
- const referencePersonalizationDecisionInputRepresentationValidationError = validate$e(untrustedConfig_decisions_item);
2659
+ const referencePersonalizationDecisionInputRepresentationValidationError = validate$h(untrustedConfig_decisions_item);
2660
2660
  if (referencePersonalizationDecisionInputRepresentationValidationError === null) {
2661
2661
  untrustedConfig_decisions_array.push(untrustedConfig_decisions_item);
2662
2662
  }
@@ -2833,8 +2833,8 @@ const deletePersonalizationPointAdapterFactory = (luvio) => {
2833
2833
  };
2834
2834
  };
2835
2835
 
2836
- function select$b(luvio, params) {
2837
- return select$d();
2836
+ function select$e(luvio, params) {
2837
+ return select$g();
2838
2838
  }
2839
2839
  function keyBuilder$9(luvio, params) {
2840
2840
  return keyBuilder$b(luvio, {
@@ -2850,7 +2850,7 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
2850
2850
  luvio.storeIngest(key, ingest$3, body);
2851
2851
  const snapshot = luvio.storeLookup({
2852
2852
  recordId: key,
2853
- node: select$b(),
2853
+ node: select$e(),
2854
2854
  variables: {},
2855
2855
  }, snapshotRefresh);
2856
2856
  if (process.env.NODE_ENV !== 'production') {
@@ -2867,7 +2867,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
2867
2867
  const storeMetadataParams = {
2868
2868
  ttl: TTL$3,
2869
2869
  namespace: keyPrefix,
2870
- version: VERSION$6,
2870
+ version: VERSION$9,
2871
2871
  representationName: RepresentationType$3
2872
2872
  };
2873
2873
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -2917,7 +2917,7 @@ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
2917
2917
  }
2918
2918
  function adapterFragment$3(luvio, config) {
2919
2919
  createResourceParams$6(config);
2920
- return select$b();
2920
+ return select$e();
2921
2921
  }
2922
2922
  function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
2923
2923
  const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
@@ -2973,8 +2973,8 @@ const getPersonalizationPointAdapterFactory = (luvio) => function personalizatio
2973
2973
  buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
2974
2974
  };
2975
2975
 
2976
- function select$a(luvio, params) {
2977
- return select$d();
2976
+ function select$d(luvio, params) {
2977
+ return select$g();
2978
2978
  }
2979
2979
  function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
2980
2980
  getTypeCacheKeys$3(storeKeyMap, luvio, response);
@@ -2985,7 +2985,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
2985
2985
  luvio.storeIngest(key, ingest$3, body);
2986
2986
  const snapshot = luvio.storeLookup({
2987
2987
  recordId: key,
2988
- node: select$a(),
2988
+ node: select$d(),
2989
2989
  variables: {},
2990
2990
  });
2991
2991
  if (process.env.NODE_ENV !== 'production') {
@@ -3073,7 +3073,7 @@ function typeCheckConfig$5(untrustedConfig) {
3073
3073
  const untrustedConfig_decisions_array = [];
3074
3074
  for (let i = 0, arrayLength = untrustedConfig_decisions.length; i < arrayLength; i++) {
3075
3075
  const untrustedConfig_decisions_item = untrustedConfig_decisions[i];
3076
- const referencePersonalizationDecisionInputRepresentationValidationError = validate$e(untrustedConfig_decisions_item);
3076
+ const referencePersonalizationDecisionInputRepresentationValidationError = validate$h(untrustedConfig_decisions_item);
3077
3077
  if (referencePersonalizationDecisionInputRepresentationValidationError === null) {
3078
3078
  untrustedConfig_decisions_array.push(untrustedConfig_decisions_item);
3079
3079
  }
@@ -3166,7 +3166,7 @@ const updatePersonalizationPointAdapterFactory = (luvio) => {
3166
3166
  };
3167
3167
  };
3168
3168
 
3169
- function validate$6(obj, path = 'PersonalizationAttributeInputRepresentation') {
3169
+ function validate$9(obj, path = 'PersonalizationAttributeInputRepresentation') {
3170
3170
  const v_error = (() => {
3171
3171
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3172
3172
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3213,8 +3213,8 @@ function validate$6(obj, path = 'PersonalizationAttributeInputRepresentation') {
3213
3213
  return v_error === undefined ? null : v_error;
3214
3214
  }
3215
3215
 
3216
- const VERSION$5 = "014064b188ff923423af6301d64be36a";
3217
- function validate$5(obj, path = 'PersonalizationAttributeRepresentation') {
3216
+ const VERSION$8 = "014064b188ff923423af6301d64be36a";
3217
+ function validate$8(obj, path = 'PersonalizationAttributeRepresentation') {
3218
3218
  const v_error = (() => {
3219
3219
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3220
3220
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3309,10 +3309,10 @@ function validate$5(obj, path = 'PersonalizationAttributeRepresentation') {
3309
3309
  })();
3310
3310
  return v_error === undefined ? null : v_error;
3311
3311
  }
3312
- const select$9 = function PersonalizationAttributeRepresentationSelect() {
3312
+ const select$c = function PersonalizationAttributeRepresentationSelect() {
3313
3313
  return {
3314
3314
  kind: 'Fragment',
3315
- version: VERSION$5,
3315
+ version: VERSION$8,
3316
3316
  private: [],
3317
3317
  selections: [
3318
3318
  {
@@ -3354,7 +3354,7 @@ const select$9 = function PersonalizationAttributeRepresentationSelect() {
3354
3354
  ]
3355
3355
  };
3356
3356
  };
3357
- function equals$5(existing, incoming) {
3357
+ function equals$8(existing, incoming) {
3358
3358
  const existing_createdById = existing.createdById;
3359
3359
  const incoming_createdById = incoming.createdById;
3360
3360
  if (!(existing_createdById === incoming_createdById)) {
@@ -3404,8 +3404,8 @@ function equals$5(existing, incoming) {
3404
3404
  }
3405
3405
 
3406
3406
  const TTL$2 = 600;
3407
- const VERSION$4 = "25740f87643de6fdae570c77bbec7377";
3408
- function validate$4(obj, path = 'PersonalizationSchemaRepresentation') {
3407
+ const VERSION$7 = "25740f87643de6fdae570c77bbec7377";
3408
+ function validate$7(obj, path = 'PersonalizationSchemaRepresentation') {
3409
3409
  const v_error = (() => {
3410
3410
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3411
3411
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3418,7 +3418,7 @@ function validate$4(obj, path = 'PersonalizationSchemaRepresentation') {
3418
3418
  for (let i = 0; i < obj_attributes.length; i++) {
3419
3419
  const obj_attributes_item = obj_attributes[i];
3420
3420
  const path_attributes_item = path_attributes + '[' + i + ']';
3421
- const referencepath_attributes_itemValidationError = validate$5(obj_attributes_item, path_attributes_item);
3421
+ const referencepath_attributes_itemValidationError = validate$8(obj_attributes_item, path_attributes_item);
3422
3422
  if (referencepath_attributes_itemValidationError !== null) {
3423
3423
  let message = 'Object doesn\'t match PersonalizationAttributeRepresentation (at "' + path_attributes_item + '")\n';
3424
3424
  message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3576,11 +3576,11 @@ function keyBuilderFromType(luvio, object) {
3576
3576
  function normalize$2(input, existing, path, luvio, store, timestamp) {
3577
3577
  return input;
3578
3578
  }
3579
- const select$8 = function PersonalizationSchemaRepresentationSelect() {
3580
- const { selections: PersonalizationAttributeRepresentation__selections, opaque: PersonalizationAttributeRepresentation__opaque, } = select$9();
3579
+ const select$b = function PersonalizationSchemaRepresentationSelect() {
3580
+ const { selections: PersonalizationAttributeRepresentation__selections, opaque: PersonalizationAttributeRepresentation__opaque, } = select$c();
3581
3581
  return {
3582
3582
  kind: 'Fragment',
3583
- version: VERSION$4,
3583
+ version: VERSION$7,
3584
3584
  private: [],
3585
3585
  selections: [
3586
3586
  {
@@ -3645,7 +3645,7 @@ const select$8 = function PersonalizationSchemaRepresentationSelect() {
3645
3645
  ]
3646
3646
  };
3647
3647
  };
3648
- function equals$4(existing, incoming) {
3648
+ function equals$7(existing, incoming) {
3649
3649
  const existing_createdById = existing.createdById;
3650
3650
  const incoming_createdById = incoming.createdById;
3651
3651
  if (!(existing_createdById === incoming_createdById)) {
@@ -3699,7 +3699,7 @@ function equals$4(existing, incoming) {
3699
3699
  const existing_attributes = existing.attributes;
3700
3700
  const incoming_attributes = incoming.attributes;
3701
3701
  const equals_attributes_items = equalsArray(existing_attributes, incoming_attributes, (existing_attributes_item, incoming_attributes_item) => {
3702
- if (!(equals$5(existing_attributes_item, incoming_attributes_item))) {
3702
+ if (!(equals$8(existing_attributes_item, incoming_attributes_item))) {
3703
3703
  return false;
3704
3704
  }
3705
3705
  });
@@ -3730,14 +3730,14 @@ function equals$4(existing, incoming) {
3730
3730
  }
3731
3731
  const ingest$2 = function PersonalizationSchemaRepresentationIngest(input, path, luvio, store, timestamp) {
3732
3732
  if (process.env.NODE_ENV !== 'production') {
3733
- const validateError = validate$4(input);
3733
+ const validateError = validate$7(input);
3734
3734
  if (validateError !== null) {
3735
3735
  throw validateError;
3736
3736
  }
3737
3737
  }
3738
3738
  const key = keyBuilderFromType(luvio, input);
3739
3739
  const ttlToUse = TTL$2;
3740
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "personalization-service", VERSION$4, RepresentationType$2, equals$4);
3740
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "personalization-service", VERSION$7, RepresentationType$2, equals$7);
3741
3741
  return createLink(key);
3742
3742
  };
3743
3743
  function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
@@ -3750,8 +3750,8 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
3750
3750
  });
3751
3751
  }
3752
3752
 
3753
- function select$7(luvio, params) {
3754
- return select$8();
3753
+ function select$a(luvio, params) {
3754
+ return select$b();
3755
3755
  }
3756
3756
  function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
3757
3757
  getTypeCacheKeys$2(storeKeyMap, luvio, response);
@@ -3762,7 +3762,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
3762
3762
  luvio.storeIngest(key, ingest$2, body);
3763
3763
  const snapshot = luvio.storeLookup({
3764
3764
  recordId: key,
3765
- node: select$7(),
3765
+ node: select$a(),
3766
3766
  variables: {},
3767
3767
  });
3768
3768
  if (process.env.NODE_ENV !== 'production') {
@@ -3829,7 +3829,7 @@ function typeCheckConfig$4(untrustedConfig) {
3829
3829
  const untrustedConfig_attributes_array = [];
3830
3830
  for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
3831
3831
  const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
3832
- const referencePersonalizationAttributeInputRepresentationValidationError = validate$6(untrustedConfig_attributes_item);
3832
+ const referencePersonalizationAttributeInputRepresentationValidationError = validate$9(untrustedConfig_attributes_item);
3833
3833
  if (referencePersonalizationAttributeInputRepresentationValidationError === null) {
3834
3834
  untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
3835
3835
  }
@@ -3985,8 +3985,8 @@ const deletePersonalizationSchemaAdapterFactory = (luvio) => {
3985
3985
  };
3986
3986
  };
3987
3987
 
3988
- function select$6(luvio, params) {
3989
- return select$8();
3988
+ function select$9(luvio, params) {
3989
+ return select$b();
3990
3990
  }
3991
3991
  function keyBuilder$5(luvio, params) {
3992
3992
  return keyBuilder$7(luvio, {
@@ -4002,7 +4002,7 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
4002
4002
  luvio.storeIngest(key, ingest$2, body);
4003
4003
  const snapshot = luvio.storeLookup({
4004
4004
  recordId: key,
4005
- node: select$6(),
4005
+ node: select$9(),
4006
4006
  variables: {},
4007
4007
  }, snapshotRefresh);
4008
4008
  if (process.env.NODE_ENV !== 'production') {
@@ -4019,7 +4019,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
4019
4019
  const storeMetadataParams = {
4020
4020
  ttl: TTL$2,
4021
4021
  namespace: keyPrefix,
4022
- version: VERSION$4,
4022
+ version: VERSION$7,
4023
4023
  representationName: RepresentationType$2
4024
4024
  };
4025
4025
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -4069,7 +4069,7 @@ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
4069
4069
  }
4070
4070
  function adapterFragment$2(luvio, config) {
4071
4071
  createResourceParams$2(config);
4072
- return select$6();
4072
+ return select$9();
4073
4073
  }
4074
4074
  function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
4075
4075
  const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
@@ -4125,8 +4125,8 @@ const getPersonalizationSchemaAdapterFactory = (luvio) => function personalizati
4125
4125
  buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
4126
4126
  };
4127
4127
 
4128
- const VERSION$3 = "4140d8b5bf494d4e8f3ef8713b0ffd7d";
4129
- function validate$3(obj, path = 'PersonalizationRecommenderJobRepresentation') {
4128
+ const VERSION$6 = "4140d8b5bf494d4e8f3ef8713b0ffd7d";
4129
+ function validate$6(obj, path = 'PersonalizationRecommenderJobRepresentation') {
4130
4130
  const v_error = (() => {
4131
4131
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4132
4132
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4176,10 +4176,10 @@ function validate$3(obj, path = 'PersonalizationRecommenderJobRepresentation') {
4176
4176
  })();
4177
4177
  return v_error === undefined ? null : v_error;
4178
4178
  }
4179
- const select$5 = function PersonalizationRecommenderJobRepresentationSelect() {
4179
+ const select$8 = function PersonalizationRecommenderJobRepresentationSelect() {
4180
4180
  return {
4181
4181
  kind: 'Fragment',
4182
- version: VERSION$3,
4182
+ version: VERSION$6,
4183
4183
  private: [],
4184
4184
  selections: [
4185
4185
  {
@@ -4215,7 +4215,7 @@ const select$5 = function PersonalizationRecommenderJobRepresentationSelect() {
4215
4215
  ]
4216
4216
  };
4217
4217
  };
4218
- function equals$3(existing, incoming) {
4218
+ function equals$6(existing, incoming) {
4219
4219
  const existing_errorCode = existing.errorCode;
4220
4220
  const incoming_errorCode = incoming.errorCode;
4221
4221
  // if at least one of these optionals is defined
@@ -4298,16 +4298,18 @@ function equals$3(existing, incoming) {
4298
4298
  }
4299
4299
 
4300
4300
  const TTL$1 = 600;
4301
- const VERSION$2 = "c49a0f58a0e5e27bc65c198f7a6acf1c";
4302
- function validate$2(obj, path = 'PersonalizationRecommenderJobCollectionRepresentation') {
4301
+ const VERSION$5 = "2fab2250d4ed5adcbb1a5c19a64cd765";
4302
+ function validate$5(obj, path = 'PersonalizationRecommenderJobCollectionRepresentation') {
4303
4303
  const v_error = (() => {
4304
4304
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4305
4305
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4306
4306
  }
4307
- const obj_currentPageUrl = obj.currentPageUrl;
4308
- const path_currentPageUrl = path + '.currentPageUrl';
4309
- if (typeof obj_currentPageUrl !== 'string') {
4310
- return new TypeError('Expected "string" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
4307
+ if (obj.currentPageUrl !== undefined) {
4308
+ const obj_currentPageUrl = obj.currentPageUrl;
4309
+ const path_currentPageUrl = path + '.currentPageUrl';
4310
+ if (typeof obj_currentPageUrl !== 'string') {
4311
+ return new TypeError('Expected "string" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
4312
+ }
4311
4313
  }
4312
4314
  if (obj.jobs !== undefined) {
4313
4315
  const obj_jobs = obj.jobs;
@@ -4318,7 +4320,7 @@ function validate$2(obj, path = 'PersonalizationRecommenderJobCollectionRepresen
4318
4320
  for (let i = 0; i < obj_jobs.length; i++) {
4319
4321
  const obj_jobs_item = obj_jobs[i];
4320
4322
  const path_jobs_item = path_jobs + '[' + i + ']';
4321
- const referencepath_jobs_itemValidationError = validate$3(obj_jobs_item, path_jobs_item);
4323
+ const referencepath_jobs_itemValidationError = validate$6(obj_jobs_item, path_jobs_item);
4322
4324
  if (referencepath_jobs_itemValidationError !== null) {
4323
4325
  let message = 'Object doesn\'t match PersonalizationRecommenderJobRepresentation (at "' + path_jobs_item + '")\n';
4324
4326
  message += referencepath_jobs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4326,10 +4328,12 @@ function validate$2(obj, path = 'PersonalizationRecommenderJobCollectionRepresen
4326
4328
  }
4327
4329
  }
4328
4330
  }
4329
- const obj_nextPageUrl = obj.nextPageUrl;
4330
- const path_nextPageUrl = path + '.nextPageUrl';
4331
- if (typeof obj_nextPageUrl !== 'string') {
4332
- return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
4331
+ if (obj.nextPageUrl !== undefined) {
4332
+ const obj_nextPageUrl = obj.nextPageUrl;
4333
+ const path_nextPageUrl = path + '.nextPageUrl';
4334
+ if (typeof obj_nextPageUrl !== 'string') {
4335
+ return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
4336
+ }
4333
4337
  }
4334
4338
  })();
4335
4339
  return v_error === undefined ? null : v_error;
@@ -4338,16 +4342,17 @@ const RepresentationType$1 = 'PersonalizationRecommenderJobCollectionRepresentat
4338
4342
  function normalize$1(input, existing, path, luvio, store, timestamp) {
4339
4343
  return input;
4340
4344
  }
4341
- const select$4 = function PersonalizationRecommenderJobCollectionRepresentationSelect() {
4342
- const { selections: PersonalizationRecommenderJobRepresentation__selections, opaque: PersonalizationRecommenderJobRepresentation__opaque, } = select$5();
4345
+ const select$7 = function PersonalizationRecommenderJobCollectionRepresentationSelect() {
4346
+ const { selections: PersonalizationRecommenderJobRepresentation__selections, opaque: PersonalizationRecommenderJobRepresentation__opaque, } = select$8();
4343
4347
  return {
4344
4348
  kind: 'Fragment',
4345
- version: VERSION$2,
4349
+ version: VERSION$5,
4346
4350
  private: [],
4347
4351
  selections: [
4348
4352
  {
4349
4353
  name: 'currentPageUrl',
4350
- kind: 'Scalar'
4354
+ kind: 'Scalar',
4355
+ required: false
4351
4356
  },
4352
4357
  {
4353
4358
  name: 'jobs',
@@ -4358,21 +4363,38 @@ const select$4 = function PersonalizationRecommenderJobCollectionRepresentationS
4358
4363
  },
4359
4364
  {
4360
4365
  name: 'nextPageUrl',
4361
- kind: 'Scalar'
4366
+ kind: 'Scalar',
4367
+ required: false
4362
4368
  }
4363
4369
  ]
4364
4370
  };
4365
4371
  };
4366
- function equals$2(existing, incoming) {
4372
+ function equals$5(existing, incoming) {
4367
4373
  const existing_currentPageUrl = existing.currentPageUrl;
4368
4374
  const incoming_currentPageUrl = incoming.currentPageUrl;
4369
- if (!(existing_currentPageUrl === incoming_currentPageUrl)) {
4370
- return false;
4375
+ // if at least one of these optionals is defined
4376
+ if (existing_currentPageUrl !== undefined || incoming_currentPageUrl !== undefined) {
4377
+ // if one of these is not defined we know the other is defined and therefore
4378
+ // not equal
4379
+ if (existing_currentPageUrl === undefined || incoming_currentPageUrl === undefined) {
4380
+ return false;
4381
+ }
4382
+ if (!(existing_currentPageUrl === incoming_currentPageUrl)) {
4383
+ return false;
4384
+ }
4371
4385
  }
4372
4386
  const existing_nextPageUrl = existing.nextPageUrl;
4373
4387
  const incoming_nextPageUrl = incoming.nextPageUrl;
4374
- if (!(existing_nextPageUrl === incoming_nextPageUrl)) {
4375
- return false;
4388
+ // if at least one of these optionals is defined
4389
+ if (existing_nextPageUrl !== undefined || incoming_nextPageUrl !== undefined) {
4390
+ // if one of these is not defined we know the other is defined and therefore
4391
+ // not equal
4392
+ if (existing_nextPageUrl === undefined || incoming_nextPageUrl === undefined) {
4393
+ return false;
4394
+ }
4395
+ if (!(existing_nextPageUrl === incoming_nextPageUrl)) {
4396
+ return false;
4397
+ }
4376
4398
  }
4377
4399
  const existing_jobs = existing.jobs;
4378
4400
  const incoming_jobs = incoming.jobs;
@@ -4384,7 +4406,7 @@ function equals$2(existing, incoming) {
4384
4406
  return false;
4385
4407
  }
4386
4408
  const equals_jobs_items = equalsArray(existing_jobs, incoming_jobs, (existing_jobs_item, incoming_jobs_item) => {
4387
- if (!(equals$3(existing_jobs_item, incoming_jobs_item))) {
4409
+ if (!(equals$6(existing_jobs_item, incoming_jobs_item))) {
4388
4410
  return false;
4389
4411
  }
4390
4412
  });
@@ -4396,14 +4418,14 @@ function equals$2(existing, incoming) {
4396
4418
  }
4397
4419
  const ingest$1 = function PersonalizationRecommenderJobCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
4398
4420
  if (process.env.NODE_ENV !== 'production') {
4399
- const validateError = validate$2(input);
4421
+ const validateError = validate$5(input);
4400
4422
  if (validateError !== null) {
4401
4423
  throw validateError;
4402
4424
  }
4403
4425
  }
4404
4426
  const key = path.fullPath;
4405
4427
  const ttlToUse = TTL$1;
4406
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "personalization-service", VERSION$2, RepresentationType$1, equals$2);
4428
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "personalization-service", VERSION$5, RepresentationType$1, equals$5);
4407
4429
  return createLink(key);
4408
4430
  };
4409
4431
  function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
@@ -4416,8 +4438,8 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
4416
4438
  });
4417
4439
  }
4418
4440
 
4419
- function select$3(luvio, params) {
4420
- return select$4();
4441
+ function select$6(luvio, params) {
4442
+ return select$7();
4421
4443
  }
4422
4444
  function keyBuilder$3(luvio, params) {
4423
4445
  return keyPrefix + '::PersonalizationRecommenderJobCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'idOrName:' + params.urlParams.idOrName + ')';
@@ -4431,7 +4453,7 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
4431
4453
  luvio.storeIngest(key, ingest$1, body);
4432
4454
  const snapshot = luvio.storeLookup({
4433
4455
  recordId: key,
4434
- node: select$3(),
4456
+ node: select$6(),
4435
4457
  variables: {},
4436
4458
  }, snapshotRefresh);
4437
4459
  if (process.env.NODE_ENV !== 'production') {
@@ -4448,7 +4470,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
4448
4470
  const storeMetadataParams = {
4449
4471
  ttl: TTL$1,
4450
4472
  namespace: keyPrefix,
4451
- version: VERSION$2,
4473
+ version: VERSION$5,
4452
4474
  representationName: RepresentationType$1
4453
4475
  };
4454
4476
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -4500,7 +4522,7 @@ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
4500
4522
  }
4501
4523
  function adapterFragment$1(luvio, config) {
4502
4524
  createResourceParams$1(config);
4503
- return select$3();
4525
+ return select$6();
4504
4526
  }
4505
4527
  function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
4506
4528
  const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
@@ -4556,7 +4578,250 @@ const getTrainingHistoryAdapterFactory = (luvio) => function personalizationServ
4556
4578
  buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
4557
4579
  };
4558
4580
 
4559
- const VERSION$1 = "5249bd66216ddaa79d57690fedf0d20b";
4581
+ const VERSION$4 = "d9f3a15c5177c3eb95787555a862549b";
4582
+ function validate$4(obj, path = 'EsModelArtifactBaseFieldRepresentation') {
4583
+ const v_error = (() => {
4584
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4585
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4586
+ }
4587
+ const obj_dataType = obj.dataType;
4588
+ const path_dataType = path + '.dataType';
4589
+ if (typeof obj_dataType !== 'string') {
4590
+ return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
4591
+ }
4592
+ const obj_label = obj.label;
4593
+ const path_label = path + '.label';
4594
+ if (typeof obj_label !== 'string') {
4595
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
4596
+ }
4597
+ const obj_name = obj.name;
4598
+ const path_name = path + '.name';
4599
+ if (typeof obj_name !== 'string') {
4600
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
4601
+ }
4602
+ })();
4603
+ return v_error === undefined ? null : v_error;
4604
+ }
4605
+ const select$5 = function EsModelArtifactBaseFieldRepresentationSelect() {
4606
+ return {
4607
+ kind: 'Fragment',
4608
+ version: VERSION$4,
4609
+ private: [],
4610
+ selections: [
4611
+ {
4612
+ name: 'dataType',
4613
+ kind: 'Scalar'
4614
+ },
4615
+ {
4616
+ name: 'label',
4617
+ kind: 'Scalar'
4618
+ },
4619
+ {
4620
+ name: 'name',
4621
+ kind: 'Scalar'
4622
+ }
4623
+ ]
4624
+ };
4625
+ };
4626
+ function equals$4(existing, incoming) {
4627
+ const existing_dataType = existing.dataType;
4628
+ const incoming_dataType = incoming.dataType;
4629
+ if (!(existing_dataType === incoming_dataType)) {
4630
+ return false;
4631
+ }
4632
+ const existing_label = existing.label;
4633
+ const incoming_label = incoming.label;
4634
+ if (!(existing_label === incoming_label)) {
4635
+ return false;
4636
+ }
4637
+ const existing_name = existing.name;
4638
+ const incoming_name = incoming.name;
4639
+ if (!(existing_name === incoming_name)) {
4640
+ return false;
4641
+ }
4642
+ return true;
4643
+ }
4644
+
4645
+ const VERSION$3 = "79dd6162ffc2c359016bab1d3ceeffab";
4646
+ function validate$3(obj, path = 'EsModelArtifactRepresentation') {
4647
+ const v_error = (() => {
4648
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4649
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4650
+ }
4651
+ const obj_id = obj.id;
4652
+ const path_id = path + '.id';
4653
+ if (typeof obj_id !== 'string') {
4654
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
4655
+ }
4656
+ const obj_label = obj.label;
4657
+ const path_label = path + '.label';
4658
+ if (typeof obj_label !== 'string') {
4659
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
4660
+ }
4661
+ const obj_name = obj.name;
4662
+ const path_name = path + '.name';
4663
+ if (typeof obj_name !== 'string') {
4664
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
4665
+ }
4666
+ const obj_outputFields = obj.outputFields;
4667
+ const path_outputFields = path + '.outputFields';
4668
+ if (!ArrayIsArray(obj_outputFields)) {
4669
+ return new TypeError('Expected "array" but received "' + typeof obj_outputFields + '" (at "' + path_outputFields + '")');
4670
+ }
4671
+ for (let i = 0; i < obj_outputFields.length; i++) {
4672
+ const obj_outputFields_item = obj_outputFields[i];
4673
+ const path_outputFields_item = path_outputFields + '[' + i + ']';
4674
+ const referencepath_outputFields_itemValidationError = validate$4(obj_outputFields_item, path_outputFields_item);
4675
+ if (referencepath_outputFields_itemValidationError !== null) {
4676
+ let message = 'Object doesn\'t match EsModelArtifactBaseFieldRepresentation (at "' + path_outputFields_item + '")\n';
4677
+ message += referencepath_outputFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
4678
+ return new TypeError(message);
4679
+ }
4680
+ }
4681
+ })();
4682
+ return v_error === undefined ? null : v_error;
4683
+ }
4684
+ const select$4 = function EsModelArtifactRepresentationSelect() {
4685
+ const { selections: EsModelArtifactBaseFieldRepresentation__selections, opaque: EsModelArtifactBaseFieldRepresentation__opaque, } = select$5();
4686
+ return {
4687
+ kind: 'Fragment',
4688
+ version: VERSION$3,
4689
+ private: [],
4690
+ selections: [
4691
+ {
4692
+ name: 'id',
4693
+ kind: 'Scalar'
4694
+ },
4695
+ {
4696
+ name: 'label',
4697
+ kind: 'Scalar'
4698
+ },
4699
+ {
4700
+ name: 'name',
4701
+ kind: 'Scalar'
4702
+ },
4703
+ {
4704
+ name: 'outputFields',
4705
+ kind: 'Object',
4706
+ plural: true,
4707
+ selections: EsModelArtifactBaseFieldRepresentation__selections
4708
+ }
4709
+ ]
4710
+ };
4711
+ };
4712
+ function equals$3(existing, incoming) {
4713
+ const existing_id = existing.id;
4714
+ const incoming_id = incoming.id;
4715
+ if (!(existing_id === incoming_id)) {
4716
+ return false;
4717
+ }
4718
+ const existing_label = existing.label;
4719
+ const incoming_label = incoming.label;
4720
+ if (!(existing_label === incoming_label)) {
4721
+ return false;
4722
+ }
4723
+ const existing_name = existing.name;
4724
+ const incoming_name = incoming.name;
4725
+ if (!(existing_name === incoming_name)) {
4726
+ return false;
4727
+ }
4728
+ const existing_outputFields = existing.outputFields;
4729
+ const incoming_outputFields = incoming.outputFields;
4730
+ const equals_outputFields_items = equalsArray(existing_outputFields, incoming_outputFields, (existing_outputFields_item, incoming_outputFields_item) => {
4731
+ if (!(equals$4(existing_outputFields_item, incoming_outputFields_item))) {
4732
+ return false;
4733
+ }
4734
+ });
4735
+ if (equals_outputFields_items === false) {
4736
+ return false;
4737
+ }
4738
+ return true;
4739
+ }
4740
+
4741
+ const VERSION$2 = "99ea196b2ab9f99656157ebd55e6cc5f";
4742
+ function validate$2(obj, path = 'PersonalizationDataMlModelInputRepresentation') {
4743
+ const v_error = (() => {
4744
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4745
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4746
+ }
4747
+ const obj_esModelInputFeatureId = obj.esModelInputFeatureId;
4748
+ const path_esModelInputFeatureId = path + '.esModelInputFeatureId';
4749
+ if (typeof obj_esModelInputFeatureId !== 'string') {
4750
+ return new TypeError('Expected "string" but received "' + typeof obj_esModelInputFeatureId + '" (at "' + path_esModelInputFeatureId + '")');
4751
+ }
4752
+ const obj_id = obj.id;
4753
+ const path_id = path + '.id';
4754
+ if (typeof obj_id !== 'string') {
4755
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
4756
+ }
4757
+ const obj_inputField = obj.inputField;
4758
+ const path_inputField = path + '.inputField';
4759
+ const referencepath_inputFieldValidationError = validate$4(obj_inputField, path_inputField);
4760
+ if (referencepath_inputFieldValidationError !== null) {
4761
+ let message = 'Object doesn\'t match EsModelArtifactBaseFieldRepresentation (at "' + path_inputField + '")\n';
4762
+ message += referencepath_inputFieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
4763
+ return new TypeError(message);
4764
+ }
4765
+ const obj_personalisationField = obj.personalisationField;
4766
+ const path_personalisationField = path + '.personalisationField';
4767
+ if (typeof obj_personalisationField !== 'string') {
4768
+ return new TypeError('Expected "string" but received "' + typeof obj_personalisationField + '" (at "' + path_personalisationField + '")');
4769
+ }
4770
+ })();
4771
+ return v_error === undefined ? null : v_error;
4772
+ }
4773
+ const select$3 = function PersonalizationDataMlModelInputRepresentationSelect() {
4774
+ const { selections: EsModelArtifactBaseFieldRepresentation__selections, opaque: EsModelArtifactBaseFieldRepresentation__opaque, } = select$5();
4775
+ return {
4776
+ kind: 'Fragment',
4777
+ version: VERSION$2,
4778
+ private: [],
4779
+ selections: [
4780
+ {
4781
+ name: 'esModelInputFeatureId',
4782
+ kind: 'Scalar'
4783
+ },
4784
+ {
4785
+ name: 'id',
4786
+ kind: 'Scalar'
4787
+ },
4788
+ {
4789
+ name: 'inputField',
4790
+ kind: 'Object',
4791
+ selections: EsModelArtifactBaseFieldRepresentation__selections
4792
+ },
4793
+ {
4794
+ name: 'personalisationField',
4795
+ kind: 'Scalar'
4796
+ }
4797
+ ]
4798
+ };
4799
+ };
4800
+ function equals$2(existing, incoming) {
4801
+ const existing_esModelInputFeatureId = existing.esModelInputFeatureId;
4802
+ const incoming_esModelInputFeatureId = incoming.esModelInputFeatureId;
4803
+ if (!(existing_esModelInputFeatureId === incoming_esModelInputFeatureId)) {
4804
+ return false;
4805
+ }
4806
+ const existing_id = existing.id;
4807
+ const incoming_id = incoming.id;
4808
+ if (!(existing_id === incoming_id)) {
4809
+ return false;
4810
+ }
4811
+ const existing_personalisationField = existing.personalisationField;
4812
+ const incoming_personalisationField = incoming.personalisationField;
4813
+ if (!(existing_personalisationField === incoming_personalisationField)) {
4814
+ return false;
4815
+ }
4816
+ const existing_inputField = existing.inputField;
4817
+ const incoming_inputField = incoming.inputField;
4818
+ if (!(equals$4(existing_inputField, incoming_inputField))) {
4819
+ return false;
4820
+ }
4821
+ return true;
4822
+ }
4823
+
4824
+ const VERSION$1 = "cb759c82eb75de0d3fc203fc331385ce";
4560
4825
  function validate$1(obj, path = 'PersonalizationDataMlModelRepresentation') {
4561
4826
  const v_error = (() => {
4562
4827
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -4567,21 +4832,42 @@ function validate$1(obj, path = 'PersonalizationDataMlModelRepresentation') {
4567
4832
  if (typeof obj_dataSpaceId !== 'string') {
4568
4833
  return new TypeError('Expected "string" but received "' + typeof obj_dataSpaceId + '" (at "' + path_dataSpaceId + '")');
4569
4834
  }
4570
- const obj_esModelDefinitionId = obj.esModelDefinitionId;
4571
- const path_esModelDefinitionId = path + '.esModelDefinitionId';
4572
- if (typeof obj_esModelDefinitionId !== 'string') {
4573
- return new TypeError('Expected "string" but received "' + typeof obj_esModelDefinitionId + '" (at "' + path_esModelDefinitionId + '")');
4835
+ const obj_esModelDefinition = obj.esModelDefinition;
4836
+ const path_esModelDefinition = path + '.esModelDefinition';
4837
+ const referencepath_esModelDefinitionValidationError = validate$3(obj_esModelDefinition, path_esModelDefinition);
4838
+ if (referencepath_esModelDefinitionValidationError !== null) {
4839
+ let message = 'Object doesn\'t match EsModelArtifactRepresentation (at "' + path_esModelDefinition + '")\n';
4840
+ message += referencepath_esModelDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
4841
+ return new TypeError(message);
4842
+ }
4843
+ const obj_id = obj.id;
4844
+ const path_id = path + '.id';
4845
+ if (typeof obj_id !== 'string') {
4846
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
4847
+ }
4848
+ const obj_label = obj.label;
4849
+ const path_label = path + '.label';
4850
+ if (typeof obj_label !== 'string') {
4851
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
4574
4852
  }
4575
- const obj_personalizationDataMlModelInputList = obj.personalizationDataMlModelInputList;
4576
- const path_personalizationDataMlModelInputList = path + '.personalizationDataMlModelInputList';
4577
- if (!ArrayIsArray(obj_personalizationDataMlModelInputList)) {
4578
- return new TypeError('Expected "array" but received "' + typeof obj_personalizationDataMlModelInputList + '" (at "' + path_personalizationDataMlModelInputList + '")');
4853
+ const obj_name = obj.name;
4854
+ const path_name = path + '.name';
4855
+ if (typeof obj_name !== 'string') {
4856
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
4579
4857
  }
4580
- for (let i = 0; i < obj_personalizationDataMlModelInputList.length; i++) {
4581
- const obj_personalizationDataMlModelInputList_item = obj_personalizationDataMlModelInputList[i];
4582
- const path_personalizationDataMlModelInputList_item = path_personalizationDataMlModelInputList + '[' + i + ']';
4583
- if (obj_personalizationDataMlModelInputList_item === undefined) {
4584
- return new TypeError('Expected "defined" but received "' + typeof obj_personalizationDataMlModelInputList_item + '" (at "' + path_personalizationDataMlModelInputList_item + '")');
4858
+ const obj_personalizationInputs = obj.personalizationInputs;
4859
+ const path_personalizationInputs = path + '.personalizationInputs';
4860
+ if (!ArrayIsArray(obj_personalizationInputs)) {
4861
+ return new TypeError('Expected "array" but received "' + typeof obj_personalizationInputs + '" (at "' + path_personalizationInputs + '")');
4862
+ }
4863
+ for (let i = 0; i < obj_personalizationInputs.length; i++) {
4864
+ const obj_personalizationInputs_item = obj_personalizationInputs[i];
4865
+ const path_personalizationInputs_item = path_personalizationInputs + '[' + i + ']';
4866
+ const referencepath_personalizationInputs_itemValidationError = validate$2(obj_personalizationInputs_item, path_personalizationInputs_item);
4867
+ if (referencepath_personalizationInputs_itemValidationError !== null) {
4868
+ let message = 'Object doesn\'t match PersonalizationDataMlModelInputRepresentation (at "' + path_personalizationInputs_item + '")\n';
4869
+ message += referencepath_personalizationInputs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
4870
+ return new TypeError(message);
4585
4871
  }
4586
4872
  }
4587
4873
  const obj_profileDataGraphId = obj.profileDataGraphId;
@@ -4593,6 +4879,8 @@ function validate$1(obj, path = 'PersonalizationDataMlModelRepresentation') {
4593
4879
  return v_error === undefined ? null : v_error;
4594
4880
  }
4595
4881
  const select$2 = function PersonalizationDataMlModelRepresentationSelect() {
4882
+ const { selections: EsModelArtifactRepresentation__selections, opaque: EsModelArtifactRepresentation__opaque, } = select$4();
4883
+ const { selections: PersonalizationDataMlModelInputRepresentation__selections, opaque: PersonalizationDataMlModelInputRepresentation__opaque, } = select$3();
4596
4884
  return {
4597
4885
  kind: 'Fragment',
4598
4886
  version: VERSION$1,
@@ -4603,13 +4891,27 @@ const select$2 = function PersonalizationDataMlModelRepresentationSelect() {
4603
4891
  kind: 'Scalar'
4604
4892
  },
4605
4893
  {
4606
- name: 'esModelDefinitionId',
4894
+ name: 'esModelDefinition',
4895
+ kind: 'Object',
4896
+ selections: EsModelArtifactRepresentation__selections
4897
+ },
4898
+ {
4899
+ name: 'id',
4607
4900
  kind: 'Scalar'
4608
4901
  },
4609
4902
  {
4610
- name: 'personalizationDataMlModelInputList',
4903
+ name: 'label',
4904
+ kind: 'Scalar'
4905
+ },
4906
+ {
4907
+ name: 'name',
4908
+ kind: 'Scalar'
4909
+ },
4910
+ {
4911
+ name: 'personalizationInputs',
4611
4912
  kind: 'Object',
4612
- // any
4913
+ plural: true,
4914
+ selections: PersonalizationDataMlModelInputRepresentation__selections
4613
4915
  },
4614
4916
  {
4615
4917
  name: 'profileDataGraphId',
@@ -4624,9 +4926,19 @@ function equals$1(existing, incoming) {
4624
4926
  if (!(existing_dataSpaceId === incoming_dataSpaceId)) {
4625
4927
  return false;
4626
4928
  }
4627
- const existing_esModelDefinitionId = existing.esModelDefinitionId;
4628
- const incoming_esModelDefinitionId = incoming.esModelDefinitionId;
4629
- if (!(existing_esModelDefinitionId === incoming_esModelDefinitionId)) {
4929
+ const existing_id = existing.id;
4930
+ const incoming_id = incoming.id;
4931
+ if (!(existing_id === incoming_id)) {
4932
+ return false;
4933
+ }
4934
+ const existing_label = existing.label;
4935
+ const incoming_label = incoming.label;
4936
+ if (!(existing_label === incoming_label)) {
4937
+ return false;
4938
+ }
4939
+ const existing_name = existing.name;
4940
+ const incoming_name = incoming.name;
4941
+ if (!(existing_name === incoming_name)) {
4630
4942
  return false;
4631
4943
  }
4632
4944
  const existing_profileDataGraphId = existing.profileDataGraphId;
@@ -4634,14 +4946,19 @@ function equals$1(existing, incoming) {
4634
4946
  if (!(existing_profileDataGraphId === incoming_profileDataGraphId)) {
4635
4947
  return false;
4636
4948
  }
4637
- const existing_personalizationDataMlModelInputList = existing.personalizationDataMlModelInputList;
4638
- const incoming_personalizationDataMlModelInputList = incoming.personalizationDataMlModelInputList;
4639
- const equals_personalizationDataMlModelInputList_items = equalsArray(existing_personalizationDataMlModelInputList, incoming_personalizationDataMlModelInputList, (existing_personalizationDataMlModelInputList_item, incoming_personalizationDataMlModelInputList_item) => {
4640
- if (JSONStringify(incoming_personalizationDataMlModelInputList_item) !== JSONStringify(existing_personalizationDataMlModelInputList_item)) {
4949
+ const existing_esModelDefinition = existing.esModelDefinition;
4950
+ const incoming_esModelDefinition = incoming.esModelDefinition;
4951
+ if (!(equals$3(existing_esModelDefinition, incoming_esModelDefinition))) {
4952
+ return false;
4953
+ }
4954
+ const existing_personalizationInputs = existing.personalizationInputs;
4955
+ const incoming_personalizationInputs = incoming.personalizationInputs;
4956
+ const equals_personalizationInputs_items = equalsArray(existing_personalizationInputs, incoming_personalizationInputs, (existing_personalizationInputs_item, incoming_personalizationInputs_item) => {
4957
+ if (!(equals$2(existing_personalizationInputs_item, incoming_personalizationInputs_item))) {
4641
4958
  return false;
4642
4959
  }
4643
4960
  });
4644
- if (equals_personalizationDataMlModelInputList_items === false) {
4961
+ if (equals_personalizationInputs_items === false) {
4645
4962
  return false;
4646
4963
  }
4647
4964
  return true;