@salesforce/lds-adapters-cdp-personalization-service 1.324.0 → 1.326.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$7, typeCheckConfig as typeCheckConfig$7, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$2 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$8, typeCheckConfig as typeCheckConfig$8, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3 } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
@@ -92,7 +92,7 @@ function createLink(ref) {
92
92
  };
93
93
  }
94
94
 
95
- function validate$b(obj, path = 'PersonalizationAttributeValueInputRepresentation') {
95
+ function validate$d(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$b(obj, path = 'PersonalizationAttributeValueInputRepresentatio
183
183
  return v_error === undefined ? null : v_error;
184
184
  }
185
185
 
186
- function validate$a(obj, path = 'PersonalizationDecisionInputRepresentation') {
186
+ function validate$c(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$a(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$b(obj_attributeValues_item, path_attributeValues_item);
200
+ const referencepath_attributeValues_itemValidationError = validate$d(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$a(obj, path = 'PersonalizationDecisionInputRepresentation') {
371
371
  return v_error === undefined ? null : v_error;
372
372
  }
373
373
 
374
- const VERSION$6 = "52ea9c14b7a747a28cedbcff0e7ab169";
375
- function validate$9(obj, path = 'PersonalizationAttributeValueRepresentation') {
374
+ const VERSION$8 = "52ea9c14b7a747a28cedbcff0e7ab169";
375
+ function validate$b(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$9(obj, path = 'PersonalizationAttributeValueRepresentation') {
458
458
  })();
459
459
  return v_error === undefined ? null : v_error;
460
460
  }
461
- const select$b = function PersonalizationAttributeValueRepresentationSelect() {
461
+ const select$e = function PersonalizationAttributeValueRepresentationSelect() {
462
462
  return {
463
463
  kind: 'Fragment',
464
- version: VERSION$6,
464
+ version: VERSION$8,
465
465
  private: [],
466
466
  selections: [
467
467
  {
@@ -479,7 +479,7 @@ const select$b = function PersonalizationAttributeValueRepresentationSelect() {
479
479
  ]
480
480
  };
481
481
  };
482
- function equals$6(existing, incoming) {
482
+ function equals$8(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$6(existing, incoming) {
498
498
  return true;
499
499
  }
500
500
 
501
- function validate$8(obj, path = 'FiltersWrapRepresentation') {
501
+ function validate$a(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$8(obj, path = 'FiltersWrapRepresentation') {
577
577
  return v_error === undefined ? null : v_error;
578
578
  }
579
579
 
580
- function validate$7(obj, path = 'SubjectRepresentation') {
580
+ function validate$9(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$7(obj, path = 'SubjectRepresentation') {
696
696
  return v_error === undefined ? null : v_error;
697
697
  }
698
698
 
699
- const VERSION$5 = "089c2877ffa367e376fe74f8d358ffa8";
700
- function validate$6(obj, path = 'FilterRepresentation') {
699
+ const VERSION$7 = "089c2877ffa367e376fe74f8d358ffa8";
700
+ function validate$8(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$6(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$6(obj_comparison, path_comparison);
738
+ const referencepath_comparisonValidationError = validate$8(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$6(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$8(obj_filter, path_filter);
769
+ const referencepath_filterValidationError = validate$a(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$6(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$6(obj_filters_item, path_filters_item);
806
+ const referencepath_filters_itemValidationError = validate$8(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$6(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$7(obj_metric, path_metric);
866
+ const referencepath_metricValidationError = validate$9(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$6(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$7(obj_path_item_item, path_path_item_item);
935
+ const referencepath_path_item_itemValidationError = validate$9(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$6(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$7(obj_subject, path_subject);
1033
+ const referencepath_subjectValidationError = validate$9(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');
@@ -1129,48 +1129,48 @@ function validate$6(obj, path = 'FilterRepresentation') {
1129
1129
  })();
1130
1130
  return v_error === undefined ? null : v_error;
1131
1131
  }
1132
- const RepresentationType$4 = 'FilterRepresentation';
1133
- function normalize$4(input, existing, path, luvio, store, timestamp) {
1132
+ const RepresentationType$5 = 'FilterRepresentation';
1133
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
1134
1134
  return input;
1135
1135
  }
1136
- const select$a = function FilterRepresentationSelect() {
1136
+ const select$d = function FilterRepresentationSelect() {
1137
1137
  return {
1138
1138
  kind: 'Fragment',
1139
- version: VERSION$5,
1139
+ version: VERSION$7,
1140
1140
  private: [],
1141
1141
  opaque: true
1142
1142
  };
1143
1143
  };
1144
- function equals$5(existing, incoming) {
1144
+ function equals$7(existing, incoming) {
1145
1145
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
1146
1146
  return false;
1147
1147
  }
1148
1148
  return true;
1149
1149
  }
1150
- const ingest$4 = function FilterRepresentationIngest(input, path, luvio, store, timestamp) {
1150
+ const ingest$5 = function FilterRepresentationIngest(input, path, luvio, store, timestamp) {
1151
1151
  if (process.env.NODE_ENV !== 'production') {
1152
- const validateError = validate$6(input);
1152
+ const validateError = validate$8(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$4, "personalization-service", VERSION$5, RepresentationType$4, equals$5);
1159
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "personalization-service", VERSION$7, RepresentationType$5, equals$7);
1160
1160
  return createLink(key);
1161
1161
  };
1162
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
1162
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1163
1163
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1164
1164
  const rootKey = fullPathFactory();
1165
1165
  rootKeySet.set(rootKey, {
1166
1166
  namespace: keyPrefix,
1167
- representationName: RepresentationType$4,
1167
+ representationName: RepresentationType$5,
1168
1168
  mergeable: false
1169
1169
  });
1170
1170
  }
1171
1171
 
1172
- const VERSION$4 = "ea475f10b4c028f8b97a44af1cf0be14";
1173
- function validate$5(obj, path = 'CriteriaRepresentation') {
1172
+ const VERSION$6 = "ea475f10b4c028f8b97a44af1cf0be14";
1173
+ function validate$7(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 + '")');
@@ -1200,14 +1200,14 @@ function validate$5(obj, path = 'CriteriaRepresentation') {
1200
1200
  })();
1201
1201
  return v_error === undefined ? null : v_error;
1202
1202
  }
1203
- const RepresentationType$3 = 'CriteriaRepresentation';
1204
- function normalize$3(input, existing, path, luvio, store, timestamp) {
1203
+ const RepresentationType$4 = 'CriteriaRepresentation';
1204
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
1205
1205
  const input_filters = input.filters;
1206
1206
  const input_filters_id = path.fullPath + '__filters';
1207
1207
  for (let i = 0; i < input_filters.length; i++) {
1208
1208
  const input_filters_item = input_filters[i];
1209
1209
  let input_filters_item_id = input_filters_id + '__' + i;
1210
- input_filters[i] = ingest$4(input_filters_item, {
1210
+ input_filters[i] = ingest$5(input_filters_item, {
1211
1211
  fullPath: input_filters_item_id,
1212
1212
  propertyName: i,
1213
1213
  parent: {
@@ -1220,17 +1220,17 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
1220
1220
  }
1221
1221
  return input;
1222
1222
  }
1223
- const select$9 = function CriteriaRepresentationSelect() {
1223
+ const select$c = function CriteriaRepresentationSelect() {
1224
1224
  return {
1225
1225
  kind: 'Fragment',
1226
- version: VERSION$4,
1226
+ version: VERSION$6,
1227
1227
  private: [],
1228
1228
  selections: [
1229
1229
  {
1230
1230
  name: 'filters',
1231
1231
  kind: 'Link',
1232
1232
  plural: true,
1233
- fragment: select$a()
1233
+ fragment: select$d()
1234
1234
  },
1235
1235
  {
1236
1236
  name: 'operator',
@@ -1243,7 +1243,7 @@ const select$9 = function CriteriaRepresentationSelect() {
1243
1243
  ]
1244
1244
  };
1245
1245
  };
1246
- function equals$4(existing, incoming) {
1246
+ function equals$6(existing, incoming) {
1247
1247
  const existing_operator = existing.operator;
1248
1248
  const incoming_operator = incoming.operator;
1249
1249
  if (!(existing_operator === incoming_operator)) {
@@ -1266,34 +1266,34 @@ function equals$4(existing, incoming) {
1266
1266
  }
1267
1267
  return true;
1268
1268
  }
1269
- const ingest$3 = function CriteriaRepresentationIngest(input, path, luvio, store, timestamp) {
1269
+ const ingest$4 = function CriteriaRepresentationIngest(input, path, luvio, store, timestamp) {
1270
1270
  if (process.env.NODE_ENV !== 'production') {
1271
- const validateError = validate$5(input);
1271
+ const validateError = validate$7(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$3, "personalization-service", VERSION$4, RepresentationType$3, equals$4);
1278
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "personalization-service", VERSION$6, RepresentationType$4, equals$6);
1279
1279
  return createLink(key);
1280
1280
  };
1281
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
1281
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
1282
1282
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1283
1283
  const rootKey = fullPathFactory();
1284
1284
  rootKeySet.set(rootKey, {
1285
1285
  namespace: keyPrefix,
1286
- representationName: RepresentationType$3,
1286
+ representationName: RepresentationType$4,
1287
1287
  mergeable: false
1288
1288
  });
1289
1289
  const input_filters_length = input.filters.length;
1290
1290
  for (let i = 0; i < input_filters_length; i++) {
1291
- getTypeCacheKeys$4(rootKeySet, luvio, input.filters[i], () => '');
1291
+ getTypeCacheKeys$5(rootKeySet, luvio, input.filters[i], () => '');
1292
1292
  }
1293
1293
  }
1294
1294
 
1295
- const VERSION$3 = "265767af783b296f5f902d6ed447b168";
1296
- function validate$4(obj, path = 'PersonalizationDecisionRepresentation') {
1295
+ const VERSION$5 = "265767af783b296f5f902d6ed447b168";
1296
+ function validate$6(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$4(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$9(obj_attributeValues_item, path_attributeValues_item);
1309
+ const referencepath_attributeValues_itemValidationError = validate$b(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');
@@ -1628,12 +1628,12 @@ function validate$4(obj, path = 'PersonalizationDecisionRepresentation') {
1628
1628
  })();
1629
1629
  return v_error === undefined ? null : v_error;
1630
1630
  }
1631
- const RepresentationType$2 = 'PersonalizationDecisionRepresentation';
1632
- function normalize$2(input, existing, path, luvio, store, timestamp) {
1631
+ const RepresentationType$3 = 'PersonalizationDecisionRepresentation';
1632
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
1633
1633
  const input_criteria = input.criteria;
1634
1634
  const input_criteria_id = path.fullPath + '__criteria';
1635
1635
  if (input_criteria !== null && typeof input_criteria === 'object') {
1636
- input.criteria = ingest$3(input_criteria, {
1636
+ input.criteria = ingest$4(input_criteria, {
1637
1637
  fullPath: input_criteria_id,
1638
1638
  propertyName: 'criteria',
1639
1639
  parent: {
@@ -1646,11 +1646,11 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
1646
1646
  }
1647
1647
  return input;
1648
1648
  }
1649
- const select$8 = function PersonalizationDecisionRepresentationSelect() {
1650
- const { selections: PersonalizationAttributeValueRepresentation__selections, opaque: PersonalizationAttributeValueRepresentation__opaque, } = select$b();
1649
+ const select$b = function PersonalizationDecisionRepresentationSelect() {
1650
+ const { selections: PersonalizationAttributeValueRepresentation__selections, opaque: PersonalizationAttributeValueRepresentation__opaque, } = select$e();
1651
1651
  return {
1652
1652
  kind: 'Fragment',
1653
- version: VERSION$3,
1653
+ version: VERSION$5,
1654
1654
  private: [],
1655
1655
  selections: [
1656
1656
  {
@@ -1671,7 +1671,7 @@ const select$8 = function PersonalizationDecisionRepresentationSelect() {
1671
1671
  name: 'criteria',
1672
1672
  kind: 'Link',
1673
1673
  nullable: true,
1674
- fragment: select$9()
1674
+ fragment: select$c()
1675
1675
  },
1676
1676
  {
1677
1677
  name: 'description',
@@ -1712,11 +1712,11 @@ const select$8 = function PersonalizationDecisionRepresentationSelect() {
1712
1712
  ]
1713
1713
  };
1714
1714
  };
1715
- function equals$3(existing, incoming) {
1715
+ function equals$5(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$6(existing_attributeValues_item, incoming_attributeValues_item))) {
1719
+ if (!(equals$8(existing_attributeValues_item, incoming_attributeValues_item))) {
1720
1720
  return false;
1721
1721
  }
1722
1722
  });
@@ -1790,34 +1790,34 @@ function equals$3(existing, incoming) {
1790
1790
  }
1791
1791
  return true;
1792
1792
  }
1793
- const ingest$2 = function PersonalizationDecisionRepresentationIngest(input, path, luvio, store, timestamp) {
1793
+ const ingest$3 = function PersonalizationDecisionRepresentationIngest(input, path, luvio, store, timestamp) {
1794
1794
  if (process.env.NODE_ENV !== 'production') {
1795
- const validateError = validate$4(input);
1795
+ const validateError = validate$6(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$2, "personalization-service", VERSION$3, RepresentationType$2, equals$3);
1802
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "personalization-service", VERSION$5, RepresentationType$3, equals$5);
1803
1803
  return createLink(key);
1804
1804
  };
1805
- function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
1805
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
1806
1806
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1807
1807
  const rootKey = fullPathFactory();
1808
1808
  rootKeySet.set(rootKey, {
1809
1809
  namespace: keyPrefix,
1810
- representationName: RepresentationType$2,
1810
+ representationName: RepresentationType$3,
1811
1811
  mergeable: false
1812
1812
  });
1813
1813
  if (input.criteria !== null && typeof input.criteria === 'object') {
1814
- getTypeCacheKeys$3(rootKeySet, luvio, input.criteria, () => rootKey + "__" + "criteria");
1814
+ getTypeCacheKeys$4(rootKeySet, luvio, input.criteria, () => rootKey + "__" + "criteria");
1815
1815
  }
1816
1816
  }
1817
1817
 
1818
- const TTL$1 = 600;
1819
- const VERSION$2 = "e5643ca13ef54c890c9177275a053de3";
1820
- function validate$3(obj, path = 'PersonalizationPointRepresentation') {
1818
+ const TTL$2 = 600;
1819
+ const VERSION$4 = "e5643ca13ef54c890c9177275a053de3";
1820
+ function validate$5(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 + '")');
@@ -2294,23 +2294,23 @@ function validate$3(obj, path = 'PersonalizationPointRepresentation') {
2294
2294
  })();
2295
2295
  return v_error === undefined ? null : v_error;
2296
2296
  }
2297
- const RepresentationType$1 = 'PersonalizationPointRepresentation';
2298
- function keyBuilder$7(luvio, config) {
2299
- return keyPrefix + '::' + RepresentationType$1 + ':' + (config.id === null ? '' : config.id);
2297
+ const RepresentationType$2 = 'PersonalizationPointRepresentation';
2298
+ function keyBuilder$9(luvio, config) {
2299
+ return keyPrefix + '::' + RepresentationType$2 + ':' + (config.id === null ? '' : config.id);
2300
2300
  }
2301
2301
  function keyBuilderFromType$1(luvio, object) {
2302
2302
  const keyParams = {
2303
2303
  id: object.name
2304
2304
  };
2305
- return keyBuilder$7(luvio, keyParams);
2305
+ return keyBuilder$9(luvio, keyParams);
2306
2306
  }
2307
- function normalize$1(input, existing, path, luvio, store, timestamp) {
2307
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
2308
2308
  const input_decisions = input.decisions;
2309
2309
  const input_decisions_id = path.fullPath + '__decisions';
2310
2310
  for (let i = 0; i < input_decisions.length; i++) {
2311
2311
  const input_decisions_item = input_decisions[i];
2312
2312
  let input_decisions_item_id = input_decisions_id + '__' + i;
2313
- input_decisions[i] = ingest$2(input_decisions_item, {
2313
+ input_decisions[i] = ingest$3(input_decisions_item, {
2314
2314
  fullPath: input_decisions_item_id,
2315
2315
  propertyName: i,
2316
2316
  parent: {
@@ -2323,10 +2323,10 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
2323
2323
  }
2324
2324
  return input;
2325
2325
  }
2326
- const select$7 = function PersonalizationPointRepresentationSelect() {
2326
+ const select$a = function PersonalizationPointRepresentationSelect() {
2327
2327
  return {
2328
2328
  kind: 'Fragment',
2329
- version: VERSION$2,
2329
+ version: VERSION$4,
2330
2330
  private: [],
2331
2331
  selections: [
2332
2332
  {
@@ -2349,7 +2349,7 @@ const select$7 = function PersonalizationPointRepresentationSelect() {
2349
2349
  name: 'decisions',
2350
2350
  kind: 'Link',
2351
2351
  plural: true,
2352
- fragment: select$8()
2352
+ fragment: select$b()
2353
2353
  },
2354
2354
  {
2355
2355
  name: 'description',
@@ -2418,7 +2418,7 @@ const select$7 = function PersonalizationPointRepresentationSelect() {
2418
2418
  ]
2419
2419
  };
2420
2420
  };
2421
- function equals$2(existing, incoming) {
2421
+ function equals$4(existing, incoming) {
2422
2422
  const existing_isAuthenticationRequired = existing.isAuthenticationRequired;
2423
2423
  const incoming_isAuthenticationRequired = incoming.isAuthenticationRequired;
2424
2424
  if (!(existing_isAuthenticationRequired === incoming_isAuthenticationRequired)) {
@@ -2531,45 +2531,45 @@ function equals$2(existing, incoming) {
2531
2531
  }
2532
2532
  return true;
2533
2533
  }
2534
- const ingest$1 = function PersonalizationPointRepresentationIngest(input, path, luvio, store, timestamp) {
2534
+ const ingest$2 = function PersonalizationPointRepresentationIngest(input, path, luvio, store, timestamp) {
2535
2535
  if (process.env.NODE_ENV !== 'production') {
2536
- const validateError = validate$3(input);
2536
+ const validateError = validate$5(input);
2537
2537
  if (validateError !== null) {
2538
2538
  throw validateError;
2539
2539
  }
2540
2540
  }
2541
2541
  const key = keyBuilderFromType$1(luvio, input);
2542
- const ttlToUse = TTL$1;
2543
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "personalization-service", VERSION$2, RepresentationType$1, equals$2);
2542
+ const ttlToUse = TTL$2;
2543
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "personalization-service", VERSION$4, RepresentationType$2, equals$4);
2544
2544
  return createLink(key);
2545
2545
  };
2546
- function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
2546
+ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
2547
2547
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2548
2548
  const rootKey = keyBuilderFromType$1(luvio, input);
2549
2549
  rootKeySet.set(rootKey, {
2550
2550
  namespace: keyPrefix,
2551
- representationName: RepresentationType$1,
2551
+ representationName: RepresentationType$2,
2552
2552
  mergeable: false
2553
2553
  });
2554
2554
  const input_decisions_length = input.decisions.length;
2555
2555
  for (let i = 0; i < input_decisions_length; i++) {
2556
- getTypeCacheKeys$2(rootKeySet, luvio, input.decisions[i], () => '');
2556
+ getTypeCacheKeys$3(rootKeySet, luvio, input.decisions[i], () => '');
2557
2557
  }
2558
2558
  }
2559
2559
 
2560
- function select$6(luvio, params) {
2561
- return select$7();
2560
+ function select$9(luvio, params) {
2561
+ return select$a();
2562
2562
  }
2563
- function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
2564
- getTypeCacheKeys$1(storeKeyMap, luvio, response);
2563
+ function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
2564
+ getTypeCacheKeys$2(storeKeyMap, luvio, response);
2565
2565
  }
2566
- function ingestSuccess$4(luvio, resourceParams, response) {
2566
+ function ingestSuccess$5(luvio, resourceParams, response) {
2567
2567
  const { body } = response;
2568
2568
  const key = keyBuilderFromType$1(luvio, body);
2569
- luvio.storeIngest(key, ingest$1, body);
2569
+ luvio.storeIngest(key, ingest$2, body);
2570
2570
  const snapshot = luvio.storeLookup({
2571
2571
  recordId: key,
2572
- node: select$6(),
2572
+ node: select$9(),
2573
2573
  variables: {},
2574
2574
  });
2575
2575
  if (process.env.NODE_ENV !== 'production') {
@@ -2580,7 +2580,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
2580
2580
  deepFreeze(snapshot.data);
2581
2581
  return snapshot;
2582
2582
  }
2583
- function createResourceRequest$6(config) {
2583
+ function createResourceRequest$7(config) {
2584
2584
  const headers = {};
2585
2585
  return {
2586
2586
  baseUri: '/services/data/v63.0',
@@ -2594,7 +2594,7 @@ function createResourceRequest$6(config) {
2594
2594
  };
2595
2595
  }
2596
2596
 
2597
- const adapterName$6 = 'createPersonalizationPoint';
2597
+ const adapterName$7 = 'createPersonalizationPoint';
2598
2598
  const createPersonalizationPoint_ConfigPropertyMetadata = [
2599
2599
  generateParamConfigMetadata('description', false, 2 /* Body */, 4 /* Unsupported */),
2600
2600
  generateParamConfigMetadata('label', true, 2 /* Body */, 4 /* Unsupported */),
@@ -2611,11 +2611,11 @@ const createPersonalizationPoint_ConfigPropertyMetadata = [
2611
2611
  generateParamConfigMetadata('isAuthenticationRequired', true, 2 /* Body */, 1 /* Boolean */),
2612
2612
  generateParamConfigMetadata('sourceRecordId', false, 2 /* Body */, 4 /* Unsupported */),
2613
2613
  ];
2614
- const createPersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createPersonalizationPoint_ConfigPropertyMetadata);
2615
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$7(createPersonalizationPoint_ConfigPropertyMetadata);
2616
- function typeCheckConfig$6(untrustedConfig) {
2614
+ const createPersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, createPersonalizationPoint_ConfigPropertyMetadata);
2615
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$8(createPersonalizationPoint_ConfigPropertyMetadata);
2616
+ function typeCheckConfig$7(untrustedConfig) {
2617
2617
  const config = {};
2618
- typeCheckConfig$7(untrustedConfig, config, createPersonalizationPoint_ConfigPropertyMetadata);
2618
+ typeCheckConfig$8(untrustedConfig, config, createPersonalizationPoint_ConfigPropertyMetadata);
2619
2619
  const untrustedConfig_description = untrustedConfig.description;
2620
2620
  if (typeof untrustedConfig_description === 'string') {
2621
2621
  config.description = untrustedConfig_description;
@@ -2656,7 +2656,7 @@ function typeCheckConfig$6(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$a(untrustedConfig_decisions_item);
2659
+ const referencePersonalizationDecisionInputRepresentationValidationError = validate$c(untrustedConfig_decisions_item);
2660
2660
  if (referencePersonalizationDecisionInputRepresentationValidationError === null) {
2661
2661
  untrustedConfig_decisions_array.push(untrustedConfig_decisions_item);
2662
2662
  }
@@ -2707,30 +2707,30 @@ function typeCheckConfig$6(untrustedConfig) {
2707
2707
  }
2708
2708
  return config;
2709
2709
  }
2710
- function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
2710
+ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
2711
2711
  if (!untrustedIsObject(untrustedConfig)) {
2712
2712
  return null;
2713
2713
  }
2714
2714
  if (process.env.NODE_ENV !== 'production') {
2715
2715
  validateConfig(untrustedConfig, configPropertyNames);
2716
2716
  }
2717
- const config = typeCheckConfig$6(untrustedConfig);
2717
+ const config = typeCheckConfig$7(untrustedConfig);
2718
2718
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2719
2719
  return null;
2720
2720
  }
2721
2721
  return config;
2722
2722
  }
2723
- function buildNetworkSnapshot$6(luvio, config, options) {
2724
- const resourceParams = createResourceParams$6(config);
2725
- const request = createResourceRequest$6(resourceParams);
2723
+ function buildNetworkSnapshot$7(luvio, config, options) {
2724
+ const resourceParams = createResourceParams$7(config);
2725
+ const request = createResourceRequest$7(resourceParams);
2726
2726
  return luvio.dispatchResourceRequest(request, options)
2727
2727
  .then((response) => {
2728
2728
  return luvio.handleSuccessResponse(() => {
2729
- const snapshot = ingestSuccess$4(luvio, resourceParams, response);
2729
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response);
2730
2730
  return luvio.storeBroadcast().then(() => snapshot);
2731
2731
  }, () => {
2732
2732
  const cache = new StoreKeyMap();
2733
- getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
2733
+ getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
2734
2734
  return cache;
2735
2735
  });
2736
2736
  }, (response) => {
@@ -2740,33 +2740,33 @@ function buildNetworkSnapshot$6(luvio, config, options) {
2740
2740
  }
2741
2741
  const createPersonalizationPointAdapterFactory = (luvio) => {
2742
2742
  return function createPersonalizationPoint(untrustedConfig) {
2743
- const config = validateAdapterConfig$6(untrustedConfig, createPersonalizationPoint_ConfigPropertyNames);
2743
+ const config = validateAdapterConfig$7(untrustedConfig, createPersonalizationPoint_ConfigPropertyNames);
2744
2744
  // Invalid or incomplete config
2745
2745
  if (config === null) {
2746
2746
  throw new Error('Invalid config for "createPersonalizationPoint"');
2747
2747
  }
2748
- return buildNetworkSnapshot$6(luvio, config);
2748
+ return buildNetworkSnapshot$7(luvio, config);
2749
2749
  };
2750
2750
  };
2751
2751
 
2752
- function keyBuilder$6(luvio, params) {
2753
- return keyBuilder$7(luvio, {
2752
+ function keyBuilder$8(luvio, params) {
2753
+ return keyBuilder$9(luvio, {
2754
2754
  id: params.urlParams.idOrName
2755
2755
  });
2756
2756
  }
2757
- function getResponseCacheKeys$5(cacheKeyMap, luvio, resourceParams) {
2758
- const key = keyBuilder$6(luvio, resourceParams);
2757
+ function getResponseCacheKeys$6(cacheKeyMap, luvio, resourceParams) {
2758
+ const key = keyBuilder$8(luvio, resourceParams);
2759
2759
  cacheKeyMap.set(key, {
2760
2760
  namespace: keyPrefix,
2761
- representationName: RepresentationType$1,
2761
+ representationName: RepresentationType$2,
2762
2762
  mergeable: false
2763
2763
  });
2764
2764
  }
2765
2765
  function evictSuccess$1(luvio, resourceParams) {
2766
- const key = keyBuilder$6(luvio, resourceParams);
2766
+ const key = keyBuilder$8(luvio, resourceParams);
2767
2767
  luvio.storeEvict(key);
2768
2768
  }
2769
- function createResourceRequest$5(config) {
2769
+ function createResourceRequest$6(config) {
2770
2770
  const headers = {};
2771
2771
  return {
2772
2772
  baseUri: '/services/data/v63.0',
@@ -2780,33 +2780,33 @@ function createResourceRequest$5(config) {
2780
2780
  };
2781
2781
  }
2782
2782
 
2783
- const adapterName$5 = 'deletePersonalizationPoint';
2783
+ const adapterName$6 = 'deletePersonalizationPoint';
2784
2784
  const deletePersonalizationPoint_ConfigPropertyMetadata = [
2785
2785
  generateParamConfigMetadata('idOrName', true, 0 /* UrlParameter */, 0 /* String */),
2786
2786
  ];
2787
- const deletePersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, deletePersonalizationPoint_ConfigPropertyMetadata);
2788
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$7(deletePersonalizationPoint_ConfigPropertyMetadata);
2789
- function typeCheckConfig$5(untrustedConfig) {
2787
+ const deletePersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, deletePersonalizationPoint_ConfigPropertyMetadata);
2788
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$8(deletePersonalizationPoint_ConfigPropertyMetadata);
2789
+ function typeCheckConfig$6(untrustedConfig) {
2790
2790
  const config = {};
2791
- typeCheckConfig$7(untrustedConfig, config, deletePersonalizationPoint_ConfigPropertyMetadata);
2791
+ typeCheckConfig$8(untrustedConfig, config, deletePersonalizationPoint_ConfigPropertyMetadata);
2792
2792
  return config;
2793
2793
  }
2794
- function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
2794
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
2795
2795
  if (!untrustedIsObject(untrustedConfig)) {
2796
2796
  return null;
2797
2797
  }
2798
2798
  if (process.env.NODE_ENV !== 'production') {
2799
2799
  validateConfig(untrustedConfig, configPropertyNames);
2800
2800
  }
2801
- const config = typeCheckConfig$5(untrustedConfig);
2801
+ const config = typeCheckConfig$6(untrustedConfig);
2802
2802
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2803
2803
  return null;
2804
2804
  }
2805
2805
  return config;
2806
2806
  }
2807
- function buildNetworkSnapshot$5(luvio, config, options) {
2808
- const resourceParams = createResourceParams$5(config);
2809
- const request = createResourceRequest$5(resourceParams);
2807
+ function buildNetworkSnapshot$6(luvio, config, options) {
2808
+ const resourceParams = createResourceParams$6(config);
2809
+ const request = createResourceRequest$6(resourceParams);
2810
2810
  return luvio.dispatchResourceRequest(request, options)
2811
2811
  .then(() => {
2812
2812
  return luvio.handleSuccessResponse(() => {
@@ -2814,7 +2814,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
2814
2814
  return luvio.storeBroadcast();
2815
2815
  }, () => {
2816
2816
  const cache = new StoreKeyMap();
2817
- getResponseCacheKeys$5(cache, luvio, resourceParams);
2817
+ getResponseCacheKeys$6(cache, luvio, resourceParams);
2818
2818
  return cache;
2819
2819
  });
2820
2820
  }, (response) => {
@@ -2824,33 +2824,33 @@ function buildNetworkSnapshot$5(luvio, config, options) {
2824
2824
  }
2825
2825
  const deletePersonalizationPointAdapterFactory = (luvio) => {
2826
2826
  return function personalizationServicedeletePersonalizationPoint(untrustedConfig) {
2827
- const config = validateAdapterConfig$5(untrustedConfig, deletePersonalizationPoint_ConfigPropertyNames);
2827
+ const config = validateAdapterConfig$6(untrustedConfig, deletePersonalizationPoint_ConfigPropertyNames);
2828
2828
  // Invalid or incomplete config
2829
2829
  if (config === null) {
2830
- throw new Error(`Invalid config for "${adapterName$5}"`);
2830
+ throw new Error(`Invalid config for "${adapterName$6}"`);
2831
2831
  }
2832
- return buildNetworkSnapshot$5(luvio, config);
2832
+ return buildNetworkSnapshot$6(luvio, config);
2833
2833
  };
2834
2834
  };
2835
2835
 
2836
- function select$5(luvio, params) {
2837
- return select$7();
2836
+ function select$8(luvio, params) {
2837
+ return select$a();
2838
2838
  }
2839
- function keyBuilder$5(luvio, params) {
2840
- return keyBuilder$7(luvio, {
2839
+ function keyBuilder$7(luvio, params) {
2840
+ return keyBuilder$9(luvio, {
2841
2841
  id: params.urlParams.idOrName
2842
2842
  });
2843
2843
  }
2844
- function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
2845
- getTypeCacheKeys$1(storeKeyMap, luvio, response);
2844
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
2845
+ getTypeCacheKeys$2(storeKeyMap, luvio, response);
2846
2846
  }
2847
- function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
2847
+ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
2848
2848
  const { body } = response;
2849
- const key = keyBuilder$5(luvio, resourceParams);
2850
- luvio.storeIngest(key, ingest$1, body);
2849
+ const key = keyBuilder$7(luvio, resourceParams);
2850
+ luvio.storeIngest(key, ingest$2, body);
2851
2851
  const snapshot = luvio.storeLookup({
2852
2852
  recordId: key,
2853
- node: select$5(),
2853
+ node: select$8(),
2854
2854
  variables: {},
2855
2855
  }, snapshotRefresh);
2856
2856
  if (process.env.NODE_ENV !== 'production') {
@@ -2861,19 +2861,19 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
2861
2861
  deepFreeze(snapshot.data);
2862
2862
  return snapshot;
2863
2863
  }
2864
- function ingestError$1(luvio, params, error, snapshotRefresh) {
2865
- const key = keyBuilder$5(luvio, params);
2864
+ function ingestError$2(luvio, params, error, snapshotRefresh) {
2865
+ const key = keyBuilder$7(luvio, params);
2866
2866
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2867
2867
  const storeMetadataParams = {
2868
- ttl: TTL$1,
2868
+ ttl: TTL$2,
2869
2869
  namespace: keyPrefix,
2870
- version: VERSION$2,
2871
- representationName: RepresentationType$1
2870
+ version: VERSION$4,
2871
+ representationName: RepresentationType$2
2872
2872
  };
2873
2873
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2874
2874
  return errorSnapshot;
2875
2875
  }
2876
- function createResourceRequest$4(config) {
2876
+ function createResourceRequest$5(config) {
2877
2877
  const headers = {};
2878
2878
  return {
2879
2879
  baseUri: '/services/data/v63.0',
@@ -2887,105 +2887,105 @@ function createResourceRequest$4(config) {
2887
2887
  };
2888
2888
  }
2889
2889
 
2890
- const adapterName$4 = 'getPersonalizationPoint';
2890
+ const adapterName$5 = 'getPersonalizationPoint';
2891
2891
  const getPersonalizationPoint_ConfigPropertyMetadata = [
2892
2892
  generateParamConfigMetadata('idOrName', true, 0 /* UrlParameter */, 0 /* String */),
2893
2893
  ];
2894
- const getPersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getPersonalizationPoint_ConfigPropertyMetadata);
2895
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$7(getPersonalizationPoint_ConfigPropertyMetadata);
2896
- function keyBuilder$4(luvio, config) {
2897
- const resourceParams = createResourceParams$4(config);
2898
- return keyBuilder$5(luvio, resourceParams);
2894
+ const getPersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getPersonalizationPoint_ConfigPropertyMetadata);
2895
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$8(getPersonalizationPoint_ConfigPropertyMetadata);
2896
+ function keyBuilder$6(luvio, config) {
2897
+ const resourceParams = createResourceParams$5(config);
2898
+ return keyBuilder$7(luvio, resourceParams);
2899
2899
  }
2900
- function typeCheckConfig$4(untrustedConfig) {
2900
+ function typeCheckConfig$5(untrustedConfig) {
2901
2901
  const config = {};
2902
- typeCheckConfig$7(untrustedConfig, config, getPersonalizationPoint_ConfigPropertyMetadata);
2902
+ typeCheckConfig$8(untrustedConfig, config, getPersonalizationPoint_ConfigPropertyMetadata);
2903
2903
  return config;
2904
2904
  }
2905
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
2905
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
2906
2906
  if (!untrustedIsObject(untrustedConfig)) {
2907
2907
  return null;
2908
2908
  }
2909
2909
  if (process.env.NODE_ENV !== 'production') {
2910
2910
  validateConfig(untrustedConfig, configPropertyNames);
2911
2911
  }
2912
- const config = typeCheckConfig$4(untrustedConfig);
2912
+ const config = typeCheckConfig$5(untrustedConfig);
2913
2913
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2914
2914
  return null;
2915
2915
  }
2916
2916
  return config;
2917
2917
  }
2918
- function adapterFragment$1(luvio, config) {
2919
- createResourceParams$4(config);
2920
- return select$5();
2918
+ function adapterFragment$2(luvio, config) {
2919
+ createResourceParams$5(config);
2920
+ return select$8();
2921
2921
  }
2922
- function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
2923
- const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
2922
+ function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
2923
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
2924
2924
  config,
2925
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2925
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2926
2926
  });
2927
2927
  return luvio.storeBroadcast().then(() => snapshot);
2928
2928
  }
2929
- function onFetchResponseError$1(luvio, config, resourceParams, response) {
2930
- const snapshot = ingestError$1(luvio, resourceParams, response, {
2929
+ function onFetchResponseError$2(luvio, config, resourceParams, response) {
2930
+ const snapshot = ingestError$2(luvio, resourceParams, response, {
2931
2931
  config,
2932
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2932
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2933
2933
  });
2934
2934
  return luvio.storeBroadcast().then(() => snapshot);
2935
2935
  }
2936
- function buildNetworkSnapshot$4(luvio, config, options) {
2937
- const resourceParams = createResourceParams$4(config);
2938
- const request = createResourceRequest$4(resourceParams);
2936
+ function buildNetworkSnapshot$5(luvio, config, options) {
2937
+ const resourceParams = createResourceParams$5(config);
2938
+ const request = createResourceRequest$5(resourceParams);
2939
2939
  return luvio.dispatchResourceRequest(request, options)
2940
2940
  .then((response) => {
2941
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
2941
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
2942
2942
  const cache = new StoreKeyMap();
2943
- getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
2943
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
2944
2944
  return cache;
2945
2945
  });
2946
2946
  }, (response) => {
2947
- return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
2947
+ return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
2948
2948
  });
2949
2949
  }
2950
- function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
2951
- return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
2950
+ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
2951
+ return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
2952
2952
  }
2953
- function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
2953
+ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
2954
2954
  const { luvio, config } = context;
2955
2955
  const selector = {
2956
- recordId: keyBuilder$4(luvio, config),
2957
- node: adapterFragment$1(luvio, config),
2956
+ recordId: keyBuilder$6(luvio, config),
2957
+ node: adapterFragment$2(luvio, config),
2958
2958
  variables: {},
2959
2959
  };
2960
2960
  const cacheSnapshot = storeLookup(selector, {
2961
2961
  config,
2962
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2962
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2963
2963
  });
2964
2964
  return cacheSnapshot;
2965
2965
  }
2966
2966
  const getPersonalizationPointAdapterFactory = (luvio) => function personalizationService__getPersonalizationPoint(untrustedConfig, requestContext) {
2967
- const config = validateAdapterConfig$4(untrustedConfig, getPersonalizationPoint_ConfigPropertyNames);
2967
+ const config = validateAdapterConfig$5(untrustedConfig, getPersonalizationPoint_ConfigPropertyNames);
2968
2968
  // Invalid or incomplete config
2969
2969
  if (config === null) {
2970
2970
  return null;
2971
2971
  }
2972
2972
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2973
- buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
2973
+ buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
2974
2974
  };
2975
2975
 
2976
- function select$4(luvio, params) {
2977
- return select$7();
2976
+ function select$7(luvio, params) {
2977
+ return select$a();
2978
2978
  }
2979
- function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
2980
- getTypeCacheKeys$1(storeKeyMap, luvio, response);
2979
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
2980
+ getTypeCacheKeys$2(storeKeyMap, luvio, response);
2981
2981
  }
2982
- function ingestSuccess$2(luvio, resourceParams, response) {
2982
+ function ingestSuccess$3(luvio, resourceParams, response) {
2983
2983
  const { body } = response;
2984
2984
  const key = keyBuilderFromType$1(luvio, body);
2985
- luvio.storeIngest(key, ingest$1, body);
2985
+ luvio.storeIngest(key, ingest$2, body);
2986
2986
  const snapshot = luvio.storeLookup({
2987
2987
  recordId: key,
2988
- node: select$4(),
2988
+ node: select$7(),
2989
2989
  variables: {},
2990
2990
  });
2991
2991
  if (process.env.NODE_ENV !== 'production') {
@@ -2996,7 +2996,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
2996
2996
  deepFreeze(snapshot.data);
2997
2997
  return snapshot;
2998
2998
  }
2999
- function createResourceRequest$3(config) {
2999
+ function createResourceRequest$4(config) {
3000
3000
  const headers = {};
3001
3001
  return {
3002
3002
  baseUri: '/services/data/v63.0',
@@ -3010,7 +3010,7 @@ function createResourceRequest$3(config) {
3010
3010
  };
3011
3011
  }
3012
3012
 
3013
- const adapterName$3 = 'updatePersonalizationPoint';
3013
+ const adapterName$4 = 'updatePersonalizationPoint';
3014
3014
  const updatePersonalizationPoint_ConfigPropertyMetadata = [
3015
3015
  generateParamConfigMetadata('idOrName', true, 0 /* UrlParameter */, 0 /* String */),
3016
3016
  generateParamConfigMetadata('description', false, 2 /* Body */, 4 /* Unsupported */),
@@ -3028,11 +3028,11 @@ const updatePersonalizationPoint_ConfigPropertyMetadata = [
3028
3028
  generateParamConfigMetadata('isAuthenticationRequired', true, 2 /* Body */, 1 /* Boolean */),
3029
3029
  generateParamConfigMetadata('sourceRecordId', false, 2 /* Body */, 4 /* Unsupported */),
3030
3030
  ];
3031
- const updatePersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, updatePersonalizationPoint_ConfigPropertyMetadata);
3032
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$7(updatePersonalizationPoint_ConfigPropertyMetadata);
3033
- function typeCheckConfig$3(untrustedConfig) {
3031
+ const updatePersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, updatePersonalizationPoint_ConfigPropertyMetadata);
3032
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$8(updatePersonalizationPoint_ConfigPropertyMetadata);
3033
+ function typeCheckConfig$4(untrustedConfig) {
3034
3034
  const config = {};
3035
- typeCheckConfig$7(untrustedConfig, config, updatePersonalizationPoint_ConfigPropertyMetadata);
3035
+ typeCheckConfig$8(untrustedConfig, config, updatePersonalizationPoint_ConfigPropertyMetadata);
3036
3036
  const untrustedConfig_description = untrustedConfig.description;
3037
3037
  if (typeof untrustedConfig_description === 'string') {
3038
3038
  config.description = untrustedConfig_description;
@@ -3073,7 +3073,7 @@ function typeCheckConfig$3(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$a(untrustedConfig_decisions_item);
3076
+ const referencePersonalizationDecisionInputRepresentationValidationError = validate$c(untrustedConfig_decisions_item);
3077
3077
  if (referencePersonalizationDecisionInputRepresentationValidationError === null) {
3078
3078
  untrustedConfig_decisions_array.push(untrustedConfig_decisions_item);
3079
3079
  }
@@ -3124,30 +3124,30 @@ function typeCheckConfig$3(untrustedConfig) {
3124
3124
  }
3125
3125
  return config;
3126
3126
  }
3127
- function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
3127
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
3128
3128
  if (!untrustedIsObject(untrustedConfig)) {
3129
3129
  return null;
3130
3130
  }
3131
3131
  if (process.env.NODE_ENV !== 'production') {
3132
3132
  validateConfig(untrustedConfig, configPropertyNames);
3133
3133
  }
3134
- const config = typeCheckConfig$3(untrustedConfig);
3134
+ const config = typeCheckConfig$4(untrustedConfig);
3135
3135
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3136
3136
  return null;
3137
3137
  }
3138
3138
  return config;
3139
3139
  }
3140
- function buildNetworkSnapshot$3(luvio, config, options) {
3141
- const resourceParams = createResourceParams$3(config);
3142
- const request = createResourceRequest$3(resourceParams);
3140
+ function buildNetworkSnapshot$4(luvio, config, options) {
3141
+ const resourceParams = createResourceParams$4(config);
3142
+ const request = createResourceRequest$4(resourceParams);
3143
3143
  return luvio.dispatchResourceRequest(request, options)
3144
3144
  .then((response) => {
3145
3145
  return luvio.handleSuccessResponse(() => {
3146
- const snapshot = ingestSuccess$2(luvio, resourceParams, response);
3146
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response);
3147
3147
  return luvio.storeBroadcast().then(() => snapshot);
3148
3148
  }, () => {
3149
3149
  const cache = new StoreKeyMap();
3150
- getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
3150
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
3151
3151
  return cache;
3152
3152
  });
3153
3153
  }, (response) => {
@@ -3157,16 +3157,16 @@ function buildNetworkSnapshot$3(luvio, config, options) {
3157
3157
  }
3158
3158
  const updatePersonalizationPointAdapterFactory = (luvio) => {
3159
3159
  return function updatePersonalizationPoint(untrustedConfig) {
3160
- const config = validateAdapterConfig$3(untrustedConfig, updatePersonalizationPoint_ConfigPropertyNames);
3160
+ const config = validateAdapterConfig$4(untrustedConfig, updatePersonalizationPoint_ConfigPropertyNames);
3161
3161
  // Invalid or incomplete config
3162
3162
  if (config === null) {
3163
3163
  throw new Error('Invalid config for "updatePersonalizationPoint"');
3164
3164
  }
3165
- return buildNetworkSnapshot$3(luvio, config);
3165
+ return buildNetworkSnapshot$4(luvio, config);
3166
3166
  };
3167
3167
  };
3168
3168
 
3169
- function validate$2(obj, path = 'PersonalizationAttributeInputRepresentation') {
3169
+ function validate$4(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$2(obj, path = 'PersonalizationAttributeInputRepresentation') {
3213
3213
  return v_error === undefined ? null : v_error;
3214
3214
  }
3215
3215
 
3216
- const VERSION$1 = "014064b188ff923423af6301d64be36a";
3217
- function validate$1(obj, path = 'PersonalizationAttributeRepresentation') {
3216
+ const VERSION$3 = "014064b188ff923423af6301d64be36a";
3217
+ function validate$3(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$1(obj, path = 'PersonalizationAttributeRepresentation') {
3309
3309
  })();
3310
3310
  return v_error === undefined ? null : v_error;
3311
3311
  }
3312
- const select$3 = function PersonalizationAttributeRepresentationSelect() {
3312
+ const select$6 = function PersonalizationAttributeRepresentationSelect() {
3313
3313
  return {
3314
3314
  kind: 'Fragment',
3315
- version: VERSION$1,
3315
+ version: VERSION$3,
3316
3316
  private: [],
3317
3317
  selections: [
3318
3318
  {
@@ -3354,7 +3354,7 @@ const select$3 = function PersonalizationAttributeRepresentationSelect() {
3354
3354
  ]
3355
3355
  };
3356
3356
  };
3357
- function equals$1(existing, incoming) {
3357
+ function equals$3(existing, incoming) {
3358
3358
  const existing_createdById = existing.createdById;
3359
3359
  const incoming_createdById = incoming.createdById;
3360
3360
  if (!(existing_createdById === incoming_createdById)) {
@@ -3403,9 +3403,9 @@ function equals$1(existing, incoming) {
3403
3403
  return true;
3404
3404
  }
3405
3405
 
3406
- const TTL = 600;
3407
- const VERSION = "25740f87643de6fdae570c77bbec7377";
3408
- function validate(obj, path = 'PersonalizationSchemaRepresentation') {
3406
+ const TTL$1 = 600;
3407
+ const VERSION$2 = "25740f87643de6fdae570c77bbec7377";
3408
+ function validate$2(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(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$1(obj_attributes_item, path_attributes_item);
3421
+ const referencepath_attributes_itemValidationError = validate$3(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');
@@ -3563,24 +3563,24 @@ function validate(obj, path = 'PersonalizationSchemaRepresentation') {
3563
3563
  })();
3564
3564
  return v_error === undefined ? null : v_error;
3565
3565
  }
3566
- const RepresentationType = 'PersonalizationSchemaRepresentation';
3567
- function keyBuilder$3(luvio, config) {
3568
- return keyPrefix + '::' + RepresentationType + ':' + config.id;
3566
+ const RepresentationType$1 = 'PersonalizationSchemaRepresentation';
3567
+ function keyBuilder$5(luvio, config) {
3568
+ return keyPrefix + '::' + RepresentationType$1 + ':' + config.id;
3569
3569
  }
3570
3570
  function keyBuilderFromType(luvio, object) {
3571
3571
  const keyParams = {
3572
3572
  id: object.name
3573
3573
  };
3574
- return keyBuilder$3(luvio, keyParams);
3574
+ return keyBuilder$5(luvio, keyParams);
3575
3575
  }
3576
- function normalize(input, existing, path, luvio, store, timestamp) {
3576
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
3577
3577
  return input;
3578
3578
  }
3579
- const select$2 = function PersonalizationSchemaRepresentationSelect() {
3580
- const { selections: PersonalizationAttributeRepresentation__selections, opaque: PersonalizationAttributeRepresentation__opaque, } = select$3();
3579
+ const select$5 = function PersonalizationSchemaRepresentationSelect() {
3580
+ const { selections: PersonalizationAttributeRepresentation__selections, opaque: PersonalizationAttributeRepresentation__opaque, } = select$6();
3581
3581
  return {
3582
3582
  kind: 'Fragment',
3583
- version: VERSION,
3583
+ version: VERSION$2,
3584
3584
  private: [],
3585
3585
  selections: [
3586
3586
  {
@@ -3645,7 +3645,7 @@ const select$2 = function PersonalizationSchemaRepresentationSelect() {
3645
3645
  ]
3646
3646
  };
3647
3647
  };
3648
- function equals(existing, incoming) {
3648
+ function equals$2(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(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$1(existing_attributes_item, incoming_attributes_item))) {
3702
+ if (!(equals$3(existing_attributes_item, incoming_attributes_item))) {
3703
3703
  return false;
3704
3704
  }
3705
3705
  });
@@ -3728,41 +3728,41 @@ function equals(existing, incoming) {
3728
3728
  }
3729
3729
  return true;
3730
3730
  }
3731
- const ingest = function PersonalizationSchemaRepresentationIngest(input, path, luvio, store, timestamp) {
3731
+ const ingest$1 = function PersonalizationSchemaRepresentationIngest(input, path, luvio, store, timestamp) {
3732
3732
  if (process.env.NODE_ENV !== 'production') {
3733
- const validateError = validate(input);
3733
+ const validateError = validate$2(input);
3734
3734
  if (validateError !== null) {
3735
3735
  throw validateError;
3736
3736
  }
3737
3737
  }
3738
3738
  const key = keyBuilderFromType(luvio, input);
3739
- const ttlToUse = TTL;
3740
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "personalization-service", VERSION, RepresentationType, equals);
3739
+ const ttlToUse = TTL$1;
3740
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "personalization-service", VERSION$2, RepresentationType$1, equals$2);
3741
3741
  return createLink(key);
3742
3742
  };
3743
- function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
3743
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
3744
3744
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
3745
3745
  const rootKey = keyBuilderFromType(luvio, input);
3746
3746
  rootKeySet.set(rootKey, {
3747
3747
  namespace: keyPrefix,
3748
- representationName: RepresentationType,
3748
+ representationName: RepresentationType$1,
3749
3749
  mergeable: false
3750
3750
  });
3751
3751
  }
3752
3752
 
3753
- function select$1(luvio, params) {
3754
- return select$2();
3753
+ function select$4(luvio, params) {
3754
+ return select$5();
3755
3755
  }
3756
- function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
3757
- getTypeCacheKeys(storeKeyMap, luvio, response);
3756
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
3757
+ getTypeCacheKeys$1(storeKeyMap, luvio, response);
3758
3758
  }
3759
- function ingestSuccess$1(luvio, resourceParams, response) {
3759
+ function ingestSuccess$2(luvio, resourceParams, response) {
3760
3760
  const { body } = response;
3761
3761
  const key = keyBuilderFromType(luvio, body);
3762
- luvio.storeIngest(key, ingest, body);
3762
+ luvio.storeIngest(key, ingest$1, body);
3763
3763
  const snapshot = luvio.storeLookup({
3764
3764
  recordId: key,
3765
- node: select$1(),
3765
+ node: select$4(),
3766
3766
  variables: {},
3767
3767
  });
3768
3768
  if (process.env.NODE_ENV !== 'production') {
@@ -3773,7 +3773,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
3773
3773
  deepFreeze(snapshot.data);
3774
3774
  return snapshot;
3775
3775
  }
3776
- function createResourceRequest$2(config) {
3776
+ function createResourceRequest$3(config) {
3777
3777
  const headers = {};
3778
3778
  return {
3779
3779
  baseUri: '/services/data/v63.0',
@@ -3787,7 +3787,7 @@ function createResourceRequest$2(config) {
3787
3787
  };
3788
3788
  }
3789
3789
 
3790
- const adapterName$2 = 'createPersonalizationSchema';
3790
+ const adapterName$3 = 'createPersonalizationSchema';
3791
3791
  const createPersonalizationSchema_ConfigPropertyMetadata = [
3792
3792
  generateParamConfigMetadata('description', true, 2 /* Body */, 4 /* Unsupported */),
3793
3793
  generateParamConfigMetadata('label', true, 2 /* Body */, 4 /* Unsupported */),
@@ -3798,11 +3798,11 @@ const createPersonalizationSchema_ConfigPropertyMetadata = [
3798
3798
  generateParamConfigMetadata('dataSpaceName', true, 2 /* Body */, 0 /* String */),
3799
3799
  generateParamConfigMetadata('personalizationType', true, 2 /* Body */, 0 /* String */),
3800
3800
  ];
3801
- const createPersonalizationSchema_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, createPersonalizationSchema_ConfigPropertyMetadata);
3802
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$7(createPersonalizationSchema_ConfigPropertyMetadata);
3803
- function typeCheckConfig$2(untrustedConfig) {
3801
+ const createPersonalizationSchema_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createPersonalizationSchema_ConfigPropertyMetadata);
3802
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$8(createPersonalizationSchema_ConfigPropertyMetadata);
3803
+ function typeCheckConfig$3(untrustedConfig) {
3804
3804
  const config = {};
3805
- typeCheckConfig$7(untrustedConfig, config, createPersonalizationSchema_ConfigPropertyMetadata);
3805
+ typeCheckConfig$8(untrustedConfig, config, createPersonalizationSchema_ConfigPropertyMetadata);
3806
3806
  const untrustedConfig_description = untrustedConfig.description;
3807
3807
  if (typeof untrustedConfig_description === 'string') {
3808
3808
  config.description = untrustedConfig_description;
@@ -3829,7 +3829,7 @@ function typeCheckConfig$2(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$2(untrustedConfig_attributes_item);
3832
+ const referencePersonalizationAttributeInputRepresentationValidationError = validate$4(untrustedConfig_attributes_item);
3833
3833
  if (referencePersonalizationAttributeInputRepresentationValidationError === null) {
3834
3834
  untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
3835
3835
  }
@@ -3859,30 +3859,30 @@ function typeCheckConfig$2(untrustedConfig) {
3859
3859
  }
3860
3860
  return config;
3861
3861
  }
3862
- function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
3862
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
3863
3863
  if (!untrustedIsObject(untrustedConfig)) {
3864
3864
  return null;
3865
3865
  }
3866
3866
  if (process.env.NODE_ENV !== 'production') {
3867
3867
  validateConfig(untrustedConfig, configPropertyNames);
3868
3868
  }
3869
- const config = typeCheckConfig$2(untrustedConfig);
3869
+ const config = typeCheckConfig$3(untrustedConfig);
3870
3870
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3871
3871
  return null;
3872
3872
  }
3873
3873
  return config;
3874
3874
  }
3875
- function buildNetworkSnapshot$2(luvio, config, options) {
3876
- const resourceParams = createResourceParams$2(config);
3877
- const request = createResourceRequest$2(resourceParams);
3875
+ function buildNetworkSnapshot$3(luvio, config, options) {
3876
+ const resourceParams = createResourceParams$3(config);
3877
+ const request = createResourceRequest$3(resourceParams);
3878
3878
  return luvio.dispatchResourceRequest(request, options)
3879
3879
  .then((response) => {
3880
3880
  return luvio.handleSuccessResponse(() => {
3881
- const snapshot = ingestSuccess$1(luvio, resourceParams, response);
3881
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response);
3882
3882
  return luvio.storeBroadcast().then(() => snapshot);
3883
3883
  }, () => {
3884
3884
  const cache = new StoreKeyMap();
3885
- getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
3885
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
3886
3886
  return cache;
3887
3887
  });
3888
3888
  }, (response) => {
@@ -3892,33 +3892,33 @@ function buildNetworkSnapshot$2(luvio, config, options) {
3892
3892
  }
3893
3893
  const createPersonalizationSchemaAdapterFactory = (luvio) => {
3894
3894
  return function createPersonalizationSchema(untrustedConfig) {
3895
- const config = validateAdapterConfig$2(untrustedConfig, createPersonalizationSchema_ConfigPropertyNames);
3895
+ const config = validateAdapterConfig$3(untrustedConfig, createPersonalizationSchema_ConfigPropertyNames);
3896
3896
  // Invalid or incomplete config
3897
3897
  if (config === null) {
3898
3898
  throw new Error('Invalid config for "createPersonalizationSchema"');
3899
3899
  }
3900
- return buildNetworkSnapshot$2(luvio, config);
3900
+ return buildNetworkSnapshot$3(luvio, config);
3901
3901
  };
3902
3902
  };
3903
3903
 
3904
- function keyBuilder$2(luvio, params) {
3905
- return keyBuilder$3(luvio, {
3904
+ function keyBuilder$4(luvio, params) {
3905
+ return keyBuilder$5(luvio, {
3906
3906
  id: params.urlParams.idOrName
3907
3907
  });
3908
3908
  }
3909
- function getResponseCacheKeys$1(cacheKeyMap, luvio, resourceParams) {
3910
- const key = keyBuilder$2(luvio, resourceParams);
3909
+ function getResponseCacheKeys$2(cacheKeyMap, luvio, resourceParams) {
3910
+ const key = keyBuilder$4(luvio, resourceParams);
3911
3911
  cacheKeyMap.set(key, {
3912
3912
  namespace: keyPrefix,
3913
- representationName: RepresentationType,
3913
+ representationName: RepresentationType$1,
3914
3914
  mergeable: false
3915
3915
  });
3916
3916
  }
3917
3917
  function evictSuccess(luvio, resourceParams) {
3918
- const key = keyBuilder$2(luvio, resourceParams);
3918
+ const key = keyBuilder$4(luvio, resourceParams);
3919
3919
  luvio.storeEvict(key);
3920
3920
  }
3921
- function createResourceRequest$1(config) {
3921
+ function createResourceRequest$2(config) {
3922
3922
  const headers = {};
3923
3923
  return {
3924
3924
  baseUri: '/services/data/v63.0',
@@ -3932,33 +3932,33 @@ function createResourceRequest$1(config) {
3932
3932
  };
3933
3933
  }
3934
3934
 
3935
- const adapterName$1 = 'deletePersonalizationSchema';
3935
+ const adapterName$2 = 'deletePersonalizationSchema';
3936
3936
  const deletePersonalizationSchema_ConfigPropertyMetadata = [
3937
3937
  generateParamConfigMetadata('idOrName', true, 0 /* UrlParameter */, 0 /* String */),
3938
3938
  ];
3939
- const deletePersonalizationSchema_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, deletePersonalizationSchema_ConfigPropertyMetadata);
3940
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$7(deletePersonalizationSchema_ConfigPropertyMetadata);
3941
- function typeCheckConfig$1(untrustedConfig) {
3939
+ const deletePersonalizationSchema_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, deletePersonalizationSchema_ConfigPropertyMetadata);
3940
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$8(deletePersonalizationSchema_ConfigPropertyMetadata);
3941
+ function typeCheckConfig$2(untrustedConfig) {
3942
3942
  const config = {};
3943
- typeCheckConfig$7(untrustedConfig, config, deletePersonalizationSchema_ConfigPropertyMetadata);
3943
+ typeCheckConfig$8(untrustedConfig, config, deletePersonalizationSchema_ConfigPropertyMetadata);
3944
3944
  return config;
3945
3945
  }
3946
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
3946
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
3947
3947
  if (!untrustedIsObject(untrustedConfig)) {
3948
3948
  return null;
3949
3949
  }
3950
3950
  if (process.env.NODE_ENV !== 'production') {
3951
3951
  validateConfig(untrustedConfig, configPropertyNames);
3952
3952
  }
3953
- const config = typeCheckConfig$1(untrustedConfig);
3953
+ const config = typeCheckConfig$2(untrustedConfig);
3954
3954
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3955
3955
  return null;
3956
3956
  }
3957
3957
  return config;
3958
3958
  }
3959
- function buildNetworkSnapshot$1(luvio, config, options) {
3960
- const resourceParams = createResourceParams$1(config);
3961
- const request = createResourceRequest$1(resourceParams);
3959
+ function buildNetworkSnapshot$2(luvio, config, options) {
3960
+ const resourceParams = createResourceParams$2(config);
3961
+ const request = createResourceRequest$2(resourceParams);
3962
3962
  return luvio.dispatchResourceRequest(request, options)
3963
3963
  .then(() => {
3964
3964
  return luvio.handleSuccessResponse(() => {
@@ -3966,7 +3966,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
3966
3966
  return luvio.storeBroadcast();
3967
3967
  }, () => {
3968
3968
  const cache = new StoreKeyMap();
3969
- getResponseCacheKeys$1(cache, luvio, resourceParams);
3969
+ getResponseCacheKeys$2(cache, luvio, resourceParams);
3970
3970
  return cache;
3971
3971
  });
3972
3972
  }, (response) => {
@@ -3976,25 +3976,454 @@ function buildNetworkSnapshot$1(luvio, config, options) {
3976
3976
  }
3977
3977
  const deletePersonalizationSchemaAdapterFactory = (luvio) => {
3978
3978
  return function personalizationServicedeletePersonalizationSchema(untrustedConfig) {
3979
- const config = validateAdapterConfig$1(untrustedConfig, deletePersonalizationSchema_ConfigPropertyNames);
3979
+ const config = validateAdapterConfig$2(untrustedConfig, deletePersonalizationSchema_ConfigPropertyNames);
3980
3980
  // Invalid or incomplete config
3981
3981
  if (config === null) {
3982
- throw new Error(`Invalid config for "${adapterName$1}"`);
3982
+ throw new Error(`Invalid config for "${adapterName$2}"`);
3983
3983
  }
3984
- return buildNetworkSnapshot$1(luvio, config);
3984
+ return buildNetworkSnapshot$2(luvio, config);
3985
3985
  };
3986
3986
  };
3987
3987
 
3988
- function select(luvio, params) {
3989
- return select$2();
3988
+ function select$3(luvio, params) {
3989
+ return select$5();
3990
3990
  }
3991
- function keyBuilder$1(luvio, params) {
3992
- return keyBuilder$3(luvio, {
3991
+ function keyBuilder$3(luvio, params) {
3992
+ return keyBuilder$5(luvio, {
3993
3993
  id: params.urlParams.idOrName
3994
3994
  });
3995
3995
  }
3996
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
3997
+ getTypeCacheKeys$1(storeKeyMap, luvio, response);
3998
+ }
3999
+ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
4000
+ const { body } = response;
4001
+ const key = keyBuilder$3(luvio, resourceParams);
4002
+ luvio.storeIngest(key, ingest$1, body);
4003
+ const snapshot = luvio.storeLookup({
4004
+ recordId: key,
4005
+ node: select$3(),
4006
+ variables: {},
4007
+ }, snapshotRefresh);
4008
+ if (process.env.NODE_ENV !== 'production') {
4009
+ if (snapshot.state !== 'Fulfilled') {
4010
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
4011
+ }
4012
+ }
4013
+ deepFreeze(snapshot.data);
4014
+ return snapshot;
4015
+ }
4016
+ function ingestError$1(luvio, params, error, snapshotRefresh) {
4017
+ const key = keyBuilder$3(luvio, params);
4018
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
4019
+ const storeMetadataParams = {
4020
+ ttl: TTL$1,
4021
+ namespace: keyPrefix,
4022
+ version: VERSION$2,
4023
+ representationName: RepresentationType$1
4024
+ };
4025
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
4026
+ return errorSnapshot;
4027
+ }
4028
+ function createResourceRequest$1(config) {
4029
+ const headers = {};
4030
+ return {
4031
+ baseUri: '/services/data/v63.0',
4032
+ basePath: '/personalization/personalization-schemas/' + config.urlParams.idOrName + '',
4033
+ method: 'get',
4034
+ body: null,
4035
+ urlParams: config.urlParams,
4036
+ queryParams: {},
4037
+ headers,
4038
+ priority: 'normal',
4039
+ };
4040
+ }
4041
+
4042
+ const adapterName$1 = 'getPersonalizationSchema';
4043
+ const getPersonalizationSchema_ConfigPropertyMetadata = [
4044
+ generateParamConfigMetadata('idOrName', true, 0 /* UrlParameter */, 0 /* String */),
4045
+ ];
4046
+ const getPersonalizationSchema_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getPersonalizationSchema_ConfigPropertyMetadata);
4047
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$8(getPersonalizationSchema_ConfigPropertyMetadata);
4048
+ function keyBuilder$2(luvio, config) {
4049
+ const resourceParams = createResourceParams$1(config);
4050
+ return keyBuilder$3(luvio, resourceParams);
4051
+ }
4052
+ function typeCheckConfig$1(untrustedConfig) {
4053
+ const config = {};
4054
+ typeCheckConfig$8(untrustedConfig, config, getPersonalizationSchema_ConfigPropertyMetadata);
4055
+ return config;
4056
+ }
4057
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
4058
+ if (!untrustedIsObject(untrustedConfig)) {
4059
+ return null;
4060
+ }
4061
+ if (process.env.NODE_ENV !== 'production') {
4062
+ validateConfig(untrustedConfig, configPropertyNames);
4063
+ }
4064
+ const config = typeCheckConfig$1(untrustedConfig);
4065
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
4066
+ return null;
4067
+ }
4068
+ return config;
4069
+ }
4070
+ function adapterFragment$1(luvio, config) {
4071
+ createResourceParams$1(config);
4072
+ return select$3();
4073
+ }
4074
+ function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
4075
+ const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
4076
+ config,
4077
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
4078
+ });
4079
+ return luvio.storeBroadcast().then(() => snapshot);
4080
+ }
4081
+ function onFetchResponseError$1(luvio, config, resourceParams, response) {
4082
+ const snapshot = ingestError$1(luvio, resourceParams, response, {
4083
+ config,
4084
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
4085
+ });
4086
+ return luvio.storeBroadcast().then(() => snapshot);
4087
+ }
4088
+ function buildNetworkSnapshot$1(luvio, config, options) {
4089
+ const resourceParams = createResourceParams$1(config);
4090
+ const request = createResourceRequest$1(resourceParams);
4091
+ return luvio.dispatchResourceRequest(request, options)
4092
+ .then((response) => {
4093
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
4094
+ const cache = new StoreKeyMap();
4095
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
4096
+ return cache;
4097
+ });
4098
+ }, (response) => {
4099
+ return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
4100
+ });
4101
+ }
4102
+ function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
4103
+ return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
4104
+ }
4105
+ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
4106
+ const { luvio, config } = context;
4107
+ const selector = {
4108
+ recordId: keyBuilder$2(luvio, config),
4109
+ node: adapterFragment$1(luvio, config),
4110
+ variables: {},
4111
+ };
4112
+ const cacheSnapshot = storeLookup(selector, {
4113
+ config,
4114
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
4115
+ });
4116
+ return cacheSnapshot;
4117
+ }
4118
+ const getPersonalizationSchemaAdapterFactory = (luvio) => function personalizationService__getPersonalizationSchema(untrustedConfig, requestContext) {
4119
+ const config = validateAdapterConfig$1(untrustedConfig, getPersonalizationSchema_ConfigPropertyNames);
4120
+ // Invalid or incomplete config
4121
+ if (config === null) {
4122
+ return null;
4123
+ }
4124
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
4125
+ buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
4126
+ };
4127
+
4128
+ const VERSION$1 = "4140d8b5bf494d4e8f3ef8713b0ffd7d";
4129
+ function validate$1(obj, path = 'PersonalizationRecommenderJobRepresentation') {
4130
+ const v_error = (() => {
4131
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4132
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4133
+ }
4134
+ if (obj.errorCode !== undefined) {
4135
+ const obj_errorCode = obj.errorCode;
4136
+ const path_errorCode = path + '.errorCode';
4137
+ if (typeof obj_errorCode !== 'string') {
4138
+ return new TypeError('Expected "string" but received "' + typeof obj_errorCode + '" (at "' + path_errorCode + '")');
4139
+ }
4140
+ }
4141
+ if (obj.errorMessage !== undefined) {
4142
+ const obj_errorMessage = obj.errorMessage;
4143
+ const path_errorMessage = path + '.errorMessage';
4144
+ if (typeof obj_errorMessage !== 'string') {
4145
+ return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
4146
+ }
4147
+ }
4148
+ if (obj.startTime !== undefined) {
4149
+ const obj_startTime = obj.startTime;
4150
+ const path_startTime = path + '.startTime';
4151
+ if (typeof obj_startTime !== 'string') {
4152
+ return new TypeError('Expected "string" but received "' + typeof obj_startTime + '" (at "' + path_startTime + '")');
4153
+ }
4154
+ }
4155
+ if (obj.status !== undefined) {
4156
+ const obj_status = obj.status;
4157
+ const path_status = path + '.status';
4158
+ if (typeof obj_status !== 'string') {
4159
+ return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
4160
+ }
4161
+ }
4162
+ if (obj.updatedTime !== undefined) {
4163
+ const obj_updatedTime = obj.updatedTime;
4164
+ const path_updatedTime = path + '.updatedTime';
4165
+ if (typeof obj_updatedTime !== 'string') {
4166
+ return new TypeError('Expected "string" but received "' + typeof obj_updatedTime + '" (at "' + path_updatedTime + '")');
4167
+ }
4168
+ }
4169
+ if (obj.version !== undefined) {
4170
+ const obj_version = obj.version;
4171
+ const path_version = path + '.version';
4172
+ if (typeof obj_version !== 'string') {
4173
+ return new TypeError('Expected "string" but received "' + typeof obj_version + '" (at "' + path_version + '")');
4174
+ }
4175
+ }
4176
+ })();
4177
+ return v_error === undefined ? null : v_error;
4178
+ }
4179
+ const select$2 = function PersonalizationRecommenderJobRepresentationSelect() {
4180
+ return {
4181
+ kind: 'Fragment',
4182
+ version: VERSION$1,
4183
+ private: [],
4184
+ selections: [
4185
+ {
4186
+ name: 'errorCode',
4187
+ kind: 'Scalar',
4188
+ required: false
4189
+ },
4190
+ {
4191
+ name: 'errorMessage',
4192
+ kind: 'Scalar',
4193
+ required: false
4194
+ },
4195
+ {
4196
+ name: 'startTime',
4197
+ kind: 'Scalar',
4198
+ required: false
4199
+ },
4200
+ {
4201
+ name: 'status',
4202
+ kind: 'Scalar',
4203
+ required: false
4204
+ },
4205
+ {
4206
+ name: 'updatedTime',
4207
+ kind: 'Scalar',
4208
+ required: false
4209
+ },
4210
+ {
4211
+ name: 'version',
4212
+ kind: 'Scalar',
4213
+ required: false
4214
+ }
4215
+ ]
4216
+ };
4217
+ };
4218
+ function equals$1(existing, incoming) {
4219
+ const existing_errorCode = existing.errorCode;
4220
+ const incoming_errorCode = incoming.errorCode;
4221
+ // if at least one of these optionals is defined
4222
+ if (existing_errorCode !== undefined || incoming_errorCode !== undefined) {
4223
+ // if one of these is not defined we know the other is defined and therefore
4224
+ // not equal
4225
+ if (existing_errorCode === undefined || incoming_errorCode === undefined) {
4226
+ return false;
4227
+ }
4228
+ if (!(existing_errorCode === incoming_errorCode)) {
4229
+ return false;
4230
+ }
4231
+ }
4232
+ const existing_errorMessage = existing.errorMessage;
4233
+ const incoming_errorMessage = incoming.errorMessage;
4234
+ // if at least one of these optionals is defined
4235
+ if (existing_errorMessage !== undefined || incoming_errorMessage !== undefined) {
4236
+ // if one of these is not defined we know the other is defined and therefore
4237
+ // not equal
4238
+ if (existing_errorMessage === undefined || incoming_errorMessage === undefined) {
4239
+ return false;
4240
+ }
4241
+ if (!(existing_errorMessage === incoming_errorMessage)) {
4242
+ return false;
4243
+ }
4244
+ }
4245
+ const existing_startTime = existing.startTime;
4246
+ const incoming_startTime = incoming.startTime;
4247
+ // if at least one of these optionals is defined
4248
+ if (existing_startTime !== undefined || incoming_startTime !== undefined) {
4249
+ // if one of these is not defined we know the other is defined and therefore
4250
+ // not equal
4251
+ if (existing_startTime === undefined || incoming_startTime === undefined) {
4252
+ return false;
4253
+ }
4254
+ if (!(existing_startTime === incoming_startTime)) {
4255
+ return false;
4256
+ }
4257
+ }
4258
+ const existing_status = existing.status;
4259
+ const incoming_status = incoming.status;
4260
+ // if at least one of these optionals is defined
4261
+ if (existing_status !== undefined || incoming_status !== undefined) {
4262
+ // if one of these is not defined we know the other is defined and therefore
4263
+ // not equal
4264
+ if (existing_status === undefined || incoming_status === undefined) {
4265
+ return false;
4266
+ }
4267
+ if (!(existing_status === incoming_status)) {
4268
+ return false;
4269
+ }
4270
+ }
4271
+ const existing_updatedTime = existing.updatedTime;
4272
+ const incoming_updatedTime = incoming.updatedTime;
4273
+ // if at least one of these optionals is defined
4274
+ if (existing_updatedTime !== undefined || incoming_updatedTime !== undefined) {
4275
+ // if one of these is not defined we know the other is defined and therefore
4276
+ // not equal
4277
+ if (existing_updatedTime === undefined || incoming_updatedTime === undefined) {
4278
+ return false;
4279
+ }
4280
+ if (!(existing_updatedTime === incoming_updatedTime)) {
4281
+ return false;
4282
+ }
4283
+ }
4284
+ const existing_version = existing.version;
4285
+ const incoming_version = incoming.version;
4286
+ // if at least one of these optionals is defined
4287
+ if (existing_version !== undefined || incoming_version !== undefined) {
4288
+ // if one of these is not defined we know the other is defined and therefore
4289
+ // not equal
4290
+ if (existing_version === undefined || incoming_version === undefined) {
4291
+ return false;
4292
+ }
4293
+ if (!(existing_version === incoming_version)) {
4294
+ return false;
4295
+ }
4296
+ }
4297
+ return true;
4298
+ }
4299
+
4300
+ const TTL = 600;
4301
+ const VERSION = "c49a0f58a0e5e27bc65c198f7a6acf1c";
4302
+ function validate(obj, path = 'PersonalizationRecommenderJobCollectionRepresentation') {
4303
+ const v_error = (() => {
4304
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4305
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
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 + '")');
4311
+ }
4312
+ if (obj.jobs !== undefined) {
4313
+ const obj_jobs = obj.jobs;
4314
+ const path_jobs = path + '.jobs';
4315
+ if (!ArrayIsArray(obj_jobs)) {
4316
+ return new TypeError('Expected "array" but received "' + typeof obj_jobs + '" (at "' + path_jobs + '")');
4317
+ }
4318
+ for (let i = 0; i < obj_jobs.length; i++) {
4319
+ const obj_jobs_item = obj_jobs[i];
4320
+ const path_jobs_item = path_jobs + '[' + i + ']';
4321
+ const referencepath_jobs_itemValidationError = validate$1(obj_jobs_item, path_jobs_item);
4322
+ if (referencepath_jobs_itemValidationError !== null) {
4323
+ let message = 'Object doesn\'t match PersonalizationRecommenderJobRepresentation (at "' + path_jobs_item + '")\n';
4324
+ message += referencepath_jobs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
4325
+ return new TypeError(message);
4326
+ }
4327
+ }
4328
+ }
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 + '")');
4333
+ }
4334
+ })();
4335
+ return v_error === undefined ? null : v_error;
4336
+ }
4337
+ const RepresentationType = 'PersonalizationRecommenderJobCollectionRepresentation';
4338
+ function normalize(input, existing, path, luvio, store, timestamp) {
4339
+ return input;
4340
+ }
4341
+ const select$1 = function PersonalizationRecommenderJobCollectionRepresentationSelect() {
4342
+ const { selections: PersonalizationRecommenderJobRepresentation__selections, opaque: PersonalizationRecommenderJobRepresentation__opaque, } = select$2();
4343
+ return {
4344
+ kind: 'Fragment',
4345
+ version: VERSION,
4346
+ private: [],
4347
+ selections: [
4348
+ {
4349
+ name: 'currentPageUrl',
4350
+ kind: 'Scalar'
4351
+ },
4352
+ {
4353
+ name: 'jobs',
4354
+ kind: 'Object',
4355
+ plural: true,
4356
+ selections: PersonalizationRecommenderJobRepresentation__selections,
4357
+ required: false
4358
+ },
4359
+ {
4360
+ name: 'nextPageUrl',
4361
+ kind: 'Scalar'
4362
+ }
4363
+ ]
4364
+ };
4365
+ };
4366
+ function equals(existing, incoming) {
4367
+ const existing_currentPageUrl = existing.currentPageUrl;
4368
+ const incoming_currentPageUrl = incoming.currentPageUrl;
4369
+ if (!(existing_currentPageUrl === incoming_currentPageUrl)) {
4370
+ return false;
4371
+ }
4372
+ const existing_nextPageUrl = existing.nextPageUrl;
4373
+ const incoming_nextPageUrl = incoming.nextPageUrl;
4374
+ if (!(existing_nextPageUrl === incoming_nextPageUrl)) {
4375
+ return false;
4376
+ }
4377
+ const existing_jobs = existing.jobs;
4378
+ const incoming_jobs = incoming.jobs;
4379
+ // if at least one of these optionals is defined
4380
+ if (existing_jobs !== undefined || incoming_jobs !== undefined) {
4381
+ // if one of these is not defined we know the other is defined and therefore
4382
+ // not equal
4383
+ if (existing_jobs === undefined || incoming_jobs === undefined) {
4384
+ return false;
4385
+ }
4386
+ const equals_jobs_items = equalsArray(existing_jobs, incoming_jobs, (existing_jobs_item, incoming_jobs_item) => {
4387
+ if (!(equals$1(existing_jobs_item, incoming_jobs_item))) {
4388
+ return false;
4389
+ }
4390
+ });
4391
+ if (equals_jobs_items === false) {
4392
+ return false;
4393
+ }
4394
+ }
4395
+ return true;
4396
+ }
4397
+ const ingest = function PersonalizationRecommenderJobCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
4398
+ if (process.env.NODE_ENV !== 'production') {
4399
+ const validateError = validate(input);
4400
+ if (validateError !== null) {
4401
+ throw validateError;
4402
+ }
4403
+ }
4404
+ const key = path.fullPath;
4405
+ const ttlToUse = TTL;
4406
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "personalization-service", VERSION, RepresentationType, equals);
4407
+ return createLink(key);
4408
+ };
4409
+ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
4410
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
4411
+ const rootKey = fullPathFactory();
4412
+ rootKeySet.set(rootKey, {
4413
+ namespace: keyPrefix,
4414
+ representationName: RepresentationType,
4415
+ mergeable: false
4416
+ });
4417
+ }
4418
+
4419
+ function select(luvio, params) {
4420
+ return select$1();
4421
+ }
4422
+ function keyBuilder$1(luvio, params) {
4423
+ return keyPrefix + '::PersonalizationRecommenderJobCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'idOrName:' + params.urlParams.idOrName + ')';
4424
+ }
3996
4425
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
3997
- getTypeCacheKeys(storeKeyMap, luvio, response);
4426
+ getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
3998
4427
  }
3999
4428
  function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
4000
4429
  const { body } = response;
@@ -4029,29 +4458,31 @@ function createResourceRequest(config) {
4029
4458
  const headers = {};
4030
4459
  return {
4031
4460
  baseUri: '/services/data/v63.0',
4032
- basePath: '/personalization/personalization-schemas/' + config.urlParams.idOrName + '',
4461
+ basePath: '/personalization/personalization-recommenders/' + config.urlParams.idOrName + '/jobs',
4033
4462
  method: 'get',
4034
4463
  body: null,
4035
4464
  urlParams: config.urlParams,
4036
- queryParams: {},
4465
+ queryParams: config.queryParams,
4037
4466
  headers,
4038
4467
  priority: 'normal',
4039
4468
  };
4040
4469
  }
4041
4470
 
4042
- const adapterName = 'getPersonalizationSchema';
4043
- const getPersonalizationSchema_ConfigPropertyMetadata = [
4471
+ const adapterName = 'getTrainingHistory';
4472
+ const getTrainingHistory_ConfigPropertyMetadata = [
4044
4473
  generateParamConfigMetadata('idOrName', true, 0 /* UrlParameter */, 0 /* String */),
4474
+ generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
4475
+ generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
4045
4476
  ];
4046
- const getPersonalizationSchema_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getPersonalizationSchema_ConfigPropertyMetadata);
4047
- const createResourceParams = /*#__PURE__*/ createResourceParams$7(getPersonalizationSchema_ConfigPropertyMetadata);
4477
+ const getTrainingHistory_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getTrainingHistory_ConfigPropertyMetadata);
4478
+ const createResourceParams = /*#__PURE__*/ createResourceParams$8(getTrainingHistory_ConfigPropertyMetadata);
4048
4479
  function keyBuilder(luvio, config) {
4049
4480
  const resourceParams = createResourceParams(config);
4050
4481
  return keyBuilder$1(luvio, resourceParams);
4051
4482
  }
4052
4483
  function typeCheckConfig(untrustedConfig) {
4053
4484
  const config = {};
4054
- typeCheckConfig$7(untrustedConfig, config, getPersonalizationSchema_ConfigPropertyMetadata);
4485
+ typeCheckConfig$8(untrustedConfig, config, getTrainingHistory_ConfigPropertyMetadata);
4055
4486
  return config;
4056
4487
  }
4057
4488
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -4100,7 +4531,7 @@ function buildNetworkSnapshot(luvio, config, options) {
4100
4531
  });
4101
4532
  }
4102
4533
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
4103
- return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
4534
+ return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
4104
4535
  }
4105
4536
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
4106
4537
  const { luvio, config } = context;
@@ -4115,8 +4546,8 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
4115
4546
  });
4116
4547
  return cacheSnapshot;
4117
4548
  }
4118
- const getPersonalizationSchemaAdapterFactory = (luvio) => function personalizationService__getPersonalizationSchema(untrustedConfig, requestContext) {
4119
- const config = validateAdapterConfig(untrustedConfig, getPersonalizationSchema_ConfigPropertyNames);
4549
+ const getTrainingHistoryAdapterFactory = (luvio) => function personalizationService__getTrainingHistory(untrustedConfig, requestContext) {
4550
+ const config = validateAdapterConfig(untrustedConfig, getTrainingHistory_ConfigPropertyNames);
4120
4551
  // Invalid or incomplete config
4121
4552
  if (config === null) {
4122
4553
  return null;
@@ -4125,4 +4556,4 @@ const getPersonalizationSchemaAdapterFactory = (luvio) => function personalizati
4125
4556
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
4126
4557
  };
4127
4558
 
4128
- export { createPersonalizationPointAdapterFactory, createPersonalizationSchemaAdapterFactory, deletePersonalizationPointAdapterFactory, deletePersonalizationSchemaAdapterFactory, getPersonalizationPointAdapterFactory, getPersonalizationSchemaAdapterFactory, updatePersonalizationPointAdapterFactory };
4559
+ export { createPersonalizationPointAdapterFactory, createPersonalizationSchemaAdapterFactory, deletePersonalizationPointAdapterFactory, deletePersonalizationSchemaAdapterFactory, getPersonalizationPointAdapterFactory, getPersonalizationSchemaAdapterFactory, getTrainingHistoryAdapterFactory, updatePersonalizationPointAdapterFactory };