@salesforce/lds-adapters-cdp-personalization-service 1.327.0 → 1.329.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$8, typeCheckConfig as typeCheckConfig$8, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$9, typeCheckConfig as typeCheckConfig$9, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$4 } 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$d(obj, path = 'PersonalizationAttributeValueInputRepresentation') {
95
+ function validate$f(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$d(obj, path = 'PersonalizationAttributeValueInputRepresentatio
183
183
  return v_error === undefined ? null : v_error;
184
184
  }
185
185
 
186
- function validate$c(obj, path = 'PersonalizationDecisionInputRepresentation') {
186
+ function validate$e(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$c(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$d(obj_attributeValues_item, path_attributeValues_item);
200
+ const referencepath_attributeValues_itemValidationError = validate$f(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$c(obj, path = 'PersonalizationDecisionInputRepresentation') {
371
371
  return v_error === undefined ? null : v_error;
372
372
  }
373
373
 
374
- const VERSION$8 = "52ea9c14b7a747a28cedbcff0e7ab169";
375
- function validate$b(obj, path = 'PersonalizationAttributeValueRepresentation') {
374
+ const VERSION$a = "52ea9c14b7a747a28cedbcff0e7ab169";
375
+ function validate$d(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$b(obj, path = 'PersonalizationAttributeValueRepresentation') {
458
458
  })();
459
459
  return v_error === undefined ? null : v_error;
460
460
  }
461
- const select$e = function PersonalizationAttributeValueRepresentationSelect() {
461
+ const select$h = function PersonalizationAttributeValueRepresentationSelect() {
462
462
  return {
463
463
  kind: 'Fragment',
464
- version: VERSION$8,
464
+ version: VERSION$a,
465
465
  private: [],
466
466
  selections: [
467
467
  {
@@ -479,7 +479,7 @@ const select$e = function PersonalizationAttributeValueRepresentationSelect() {
479
479
  ]
480
480
  };
481
481
  };
482
- function equals$8(existing, incoming) {
482
+ function equals$a(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$8(existing, incoming) {
498
498
  return true;
499
499
  }
500
500
 
501
- function validate$a(obj, path = 'FiltersWrapRepresentation') {
501
+ function validate$c(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$a(obj, path = 'FiltersWrapRepresentation') {
577
577
  return v_error === undefined ? null : v_error;
578
578
  }
579
579
 
580
- function validate$9(obj, path = 'SubjectRepresentation') {
580
+ function validate$b(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$9(obj, path = 'SubjectRepresentation') {
696
696
  return v_error === undefined ? null : v_error;
697
697
  }
698
698
 
699
- const VERSION$7 = "089c2877ffa367e376fe74f8d358ffa8";
700
- function validate$8(obj, path = 'FilterRepresentation') {
699
+ const VERSION$9 = "089c2877ffa367e376fe74f8d358ffa8";
700
+ function validate$a(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$8(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$8(obj_comparison, path_comparison);
738
+ const referencepath_comparisonValidationError = validate$a(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$8(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$a(obj_filter, path_filter);
769
+ const referencepath_filterValidationError = validate$c(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$8(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$8(obj_filters_item, path_filters_item);
806
+ const referencepath_filters_itemValidationError = validate$a(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$8(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$9(obj_metric, path_metric);
866
+ const referencepath_metricValidationError = validate$b(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$8(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$9(obj_path_item_item, path_path_item_item);
935
+ const referencepath_path_item_itemValidationError = validate$b(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$8(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$9(obj_subject, path_subject);
1033
+ const referencepath_subjectValidationError = validate$b(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$8(obj, path = 'FilterRepresentation') {
1129
1129
  })();
1130
1130
  return v_error === undefined ? null : v_error;
1131
1131
  }
1132
- const RepresentationType$5 = 'FilterRepresentation';
1133
- function normalize$5(input, existing, path, luvio, store, timestamp) {
1132
+ const RepresentationType$6 = 'FilterRepresentation';
1133
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
1134
1134
  return input;
1135
1135
  }
1136
- const select$d = function FilterRepresentationSelect() {
1136
+ const select$g = function FilterRepresentationSelect() {
1137
1137
  return {
1138
1138
  kind: 'Fragment',
1139
- version: VERSION$7,
1139
+ version: VERSION$9,
1140
1140
  private: [],
1141
1141
  opaque: true
1142
1142
  };
1143
1143
  };
1144
- function equals$7(existing, incoming) {
1144
+ function equals$9(existing, incoming) {
1145
1145
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
1146
1146
  return false;
1147
1147
  }
1148
1148
  return true;
1149
1149
  }
1150
- const ingest$5 = function FilterRepresentationIngest(input, path, luvio, store, timestamp) {
1150
+ const ingest$6 = function FilterRepresentationIngest(input, path, luvio, store, timestamp) {
1151
1151
  if (process.env.NODE_ENV !== 'production') {
1152
- const validateError = validate$8(input);
1152
+ const validateError = validate$a(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$5, "personalization-service", VERSION$7, RepresentationType$5, equals$7);
1159
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "personalization-service", VERSION$9, RepresentationType$6, equals$9);
1160
1160
  return createLink(key);
1161
1161
  };
1162
- function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1162
+ function getTypeCacheKeys$6(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$5,
1167
+ representationName: RepresentationType$6,
1168
1168
  mergeable: false
1169
1169
  });
1170
1170
  }
1171
1171
 
1172
- const VERSION$6 = "ea475f10b4c028f8b97a44af1cf0be14";
1173
- function validate$7(obj, path = 'CriteriaRepresentation') {
1172
+ const VERSION$8 = "ea475f10b4c028f8b97a44af1cf0be14";
1173
+ function validate$9(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$7(obj, path = 'CriteriaRepresentation') {
1200
1200
  })();
1201
1201
  return v_error === undefined ? null : v_error;
1202
1202
  }
1203
- const RepresentationType$4 = 'CriteriaRepresentation';
1204
- function normalize$4(input, existing, path, luvio, store, timestamp) {
1203
+ const RepresentationType$5 = 'CriteriaRepresentation';
1204
+ function normalize$5(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$5(input_filters_item, {
1210
+ input_filters[i] = ingest$6(input_filters_item, {
1211
1211
  fullPath: input_filters_item_id,
1212
1212
  propertyName: i,
1213
1213
  parent: {
@@ -1220,17 +1220,17 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
1220
1220
  }
1221
1221
  return input;
1222
1222
  }
1223
- const select$c = function CriteriaRepresentationSelect() {
1223
+ const select$f = function CriteriaRepresentationSelect() {
1224
1224
  return {
1225
1225
  kind: 'Fragment',
1226
- version: VERSION$6,
1226
+ version: VERSION$8,
1227
1227
  private: [],
1228
1228
  selections: [
1229
1229
  {
1230
1230
  name: 'filters',
1231
1231
  kind: 'Link',
1232
1232
  plural: true,
1233
- fragment: select$d()
1233
+ fragment: select$g()
1234
1234
  },
1235
1235
  {
1236
1236
  name: 'operator',
@@ -1243,7 +1243,7 @@ const select$c = function CriteriaRepresentationSelect() {
1243
1243
  ]
1244
1244
  };
1245
1245
  };
1246
- function equals$6(existing, incoming) {
1246
+ function equals$8(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$6(existing, incoming) {
1266
1266
  }
1267
1267
  return true;
1268
1268
  }
1269
- const ingest$4 = function CriteriaRepresentationIngest(input, path, luvio, store, timestamp) {
1269
+ const ingest$5 = function CriteriaRepresentationIngest(input, path, luvio, store, timestamp) {
1270
1270
  if (process.env.NODE_ENV !== 'production') {
1271
- const validateError = validate$7(input);
1271
+ const validateError = validate$9(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$4, "personalization-service", VERSION$6, RepresentationType$4, equals$6);
1278
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "personalization-service", VERSION$8, RepresentationType$5, equals$8);
1279
1279
  return createLink(key);
1280
1280
  };
1281
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
1281
+ function getTypeCacheKeys$5(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$4,
1286
+ representationName: RepresentationType$5,
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$5(rootKeySet, luvio, input.filters[i], () => '');
1291
+ getTypeCacheKeys$6(rootKeySet, luvio, input.filters[i], () => '');
1292
1292
  }
1293
1293
  }
1294
1294
 
1295
- const VERSION$5 = "265767af783b296f5f902d6ed447b168";
1296
- function validate$6(obj, path = 'PersonalizationDecisionRepresentation') {
1295
+ const VERSION$7 = "265767af783b296f5f902d6ed447b168";
1296
+ function validate$8(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$6(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$b(obj_attributeValues_item, path_attributeValues_item);
1309
+ const referencepath_attributeValues_itemValidationError = validate$d(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$6(obj, path = 'PersonalizationDecisionRepresentation') {
1628
1628
  })();
1629
1629
  return v_error === undefined ? null : v_error;
1630
1630
  }
1631
- const RepresentationType$3 = 'PersonalizationDecisionRepresentation';
1632
- function normalize$3(input, existing, path, luvio, store, timestamp) {
1631
+ const RepresentationType$4 = 'PersonalizationDecisionRepresentation';
1632
+ function normalize$4(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$4(input_criteria, {
1636
+ input.criteria = ingest$5(input_criteria, {
1637
1637
  fullPath: input_criteria_id,
1638
1638
  propertyName: 'criteria',
1639
1639
  parent: {
@@ -1646,11 +1646,11 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
1646
1646
  }
1647
1647
  return input;
1648
1648
  }
1649
- const select$b = function PersonalizationDecisionRepresentationSelect() {
1650
- const { selections: PersonalizationAttributeValueRepresentation__selections, opaque: PersonalizationAttributeValueRepresentation__opaque, } = select$e();
1649
+ const select$e = function PersonalizationDecisionRepresentationSelect() {
1650
+ const { selections: PersonalizationAttributeValueRepresentation__selections, opaque: PersonalizationAttributeValueRepresentation__opaque, } = select$h();
1651
1651
  return {
1652
1652
  kind: 'Fragment',
1653
- version: VERSION$5,
1653
+ version: VERSION$7,
1654
1654
  private: [],
1655
1655
  selections: [
1656
1656
  {
@@ -1671,7 +1671,7 @@ const select$b = function PersonalizationDecisionRepresentationSelect() {
1671
1671
  name: 'criteria',
1672
1672
  kind: 'Link',
1673
1673
  nullable: true,
1674
- fragment: select$c()
1674
+ fragment: select$f()
1675
1675
  },
1676
1676
  {
1677
1677
  name: 'description',
@@ -1712,11 +1712,11 @@ const select$b = function PersonalizationDecisionRepresentationSelect() {
1712
1712
  ]
1713
1713
  };
1714
1714
  };
1715
- function equals$5(existing, incoming) {
1715
+ function equals$7(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$8(existing_attributeValues_item, incoming_attributeValues_item))) {
1719
+ if (!(equals$a(existing_attributeValues_item, incoming_attributeValues_item))) {
1720
1720
  return false;
1721
1721
  }
1722
1722
  });
@@ -1790,34 +1790,34 @@ function equals$5(existing, incoming) {
1790
1790
  }
1791
1791
  return true;
1792
1792
  }
1793
- const ingest$3 = function PersonalizationDecisionRepresentationIngest(input, path, luvio, store, timestamp) {
1793
+ const ingest$4 = function PersonalizationDecisionRepresentationIngest(input, path, luvio, store, timestamp) {
1794
1794
  if (process.env.NODE_ENV !== 'production') {
1795
- const validateError = validate$6(input);
1795
+ const validateError = validate$8(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$3, "personalization-service", VERSION$5, RepresentationType$3, equals$5);
1802
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "personalization-service", VERSION$7, RepresentationType$4, equals$7);
1803
1803
  return createLink(key);
1804
1804
  };
1805
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
1805
+ function getTypeCacheKeys$4(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$3,
1810
+ representationName: RepresentationType$4,
1811
1811
  mergeable: false
1812
1812
  });
1813
1813
  if (input.criteria !== null && typeof input.criteria === 'object') {
1814
- getTypeCacheKeys$4(rootKeySet, luvio, input.criteria, () => rootKey + "__" + "criteria");
1814
+ getTypeCacheKeys$5(rootKeySet, luvio, input.criteria, () => rootKey + "__" + "criteria");
1815
1815
  }
1816
1816
  }
1817
1817
 
1818
- const TTL$2 = 600;
1819
- const VERSION$4 = "e5643ca13ef54c890c9177275a053de3";
1820
- function validate$5(obj, path = 'PersonalizationPointRepresentation') {
1818
+ const TTL$3 = 600;
1819
+ const VERSION$6 = "e5643ca13ef54c890c9177275a053de3";
1820
+ function validate$7(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$5(obj, path = 'PersonalizationPointRepresentation') {
2294
2294
  })();
2295
2295
  return v_error === undefined ? null : v_error;
2296
2296
  }
2297
- const RepresentationType$2 = 'PersonalizationPointRepresentation';
2298
- function keyBuilder$9(luvio, config) {
2299
- return keyPrefix + '::' + RepresentationType$2 + ':' + (config.id === null ? '' : config.id);
2297
+ const RepresentationType$3 = 'PersonalizationPointRepresentation';
2298
+ function keyBuilder$b(luvio, config) {
2299
+ return keyPrefix + '::' + RepresentationType$3 + ':' + (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$9(luvio, keyParams);
2305
+ return keyBuilder$b(luvio, keyParams);
2306
2306
  }
2307
- function normalize$2(input, existing, path, luvio, store, timestamp) {
2307
+ function normalize$3(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$3(input_decisions_item, {
2313
+ input_decisions[i] = ingest$4(input_decisions_item, {
2314
2314
  fullPath: input_decisions_item_id,
2315
2315
  propertyName: i,
2316
2316
  parent: {
@@ -2323,10 +2323,10 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
2323
2323
  }
2324
2324
  return input;
2325
2325
  }
2326
- const select$a = function PersonalizationPointRepresentationSelect() {
2326
+ const select$d = function PersonalizationPointRepresentationSelect() {
2327
2327
  return {
2328
2328
  kind: 'Fragment',
2329
- version: VERSION$4,
2329
+ version: VERSION$6,
2330
2330
  private: [],
2331
2331
  selections: [
2332
2332
  {
@@ -2349,7 +2349,7 @@ const select$a = function PersonalizationPointRepresentationSelect() {
2349
2349
  name: 'decisions',
2350
2350
  kind: 'Link',
2351
2351
  plural: true,
2352
- fragment: select$b()
2352
+ fragment: select$e()
2353
2353
  },
2354
2354
  {
2355
2355
  name: 'description',
@@ -2418,7 +2418,7 @@ const select$a = function PersonalizationPointRepresentationSelect() {
2418
2418
  ]
2419
2419
  };
2420
2420
  };
2421
- function equals$4(existing, incoming) {
2421
+ function equals$6(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$4(existing, incoming) {
2531
2531
  }
2532
2532
  return true;
2533
2533
  }
2534
- const ingest$2 = function PersonalizationPointRepresentationIngest(input, path, luvio, store, timestamp) {
2534
+ const ingest$3 = function PersonalizationPointRepresentationIngest(input, path, luvio, store, timestamp) {
2535
2535
  if (process.env.NODE_ENV !== 'production') {
2536
- const validateError = validate$5(input);
2536
+ const validateError = validate$7(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$2;
2543
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "personalization-service", VERSION$4, RepresentationType$2, equals$4);
2542
+ const ttlToUse = TTL$3;
2543
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "personalization-service", VERSION$6, RepresentationType$3, equals$6);
2544
2544
  return createLink(key);
2545
2545
  };
2546
- function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
2546
+ function getTypeCacheKeys$3(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$2,
2551
+ representationName: RepresentationType$3,
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$3(rootKeySet, luvio, input.decisions[i], () => '');
2556
+ getTypeCacheKeys$4(rootKeySet, luvio, input.decisions[i], () => '');
2557
2557
  }
2558
2558
  }
2559
2559
 
2560
- function select$9(luvio, params) {
2561
- return select$a();
2560
+ function select$c(luvio, params) {
2561
+ return select$d();
2562
2562
  }
2563
- function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
2564
- getTypeCacheKeys$2(storeKeyMap, luvio, response);
2563
+ function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
2564
+ getTypeCacheKeys$3(storeKeyMap, luvio, response);
2565
2565
  }
2566
- function ingestSuccess$5(luvio, resourceParams, response) {
2566
+ function ingestSuccess$6(luvio, resourceParams, response) {
2567
2567
  const { body } = response;
2568
2568
  const key = keyBuilderFromType$1(luvio, body);
2569
- luvio.storeIngest(key, ingest$2, body);
2569
+ luvio.storeIngest(key, ingest$3, body);
2570
2570
  const snapshot = luvio.storeLookup({
2571
2571
  recordId: key,
2572
- node: select$9(),
2572
+ node: select$c(),
2573
2573
  variables: {},
2574
2574
  });
2575
2575
  if (process.env.NODE_ENV !== 'production') {
@@ -2580,7 +2580,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
2580
2580
  deepFreeze(snapshot.data);
2581
2581
  return snapshot;
2582
2582
  }
2583
- function createResourceRequest$7(config) {
2583
+ function createResourceRequest$8(config) {
2584
2584
  const headers = {};
2585
2585
  return {
2586
2586
  baseUri: '/services/data/v63.0',
@@ -2594,7 +2594,7 @@ function createResourceRequest$7(config) {
2594
2594
  };
2595
2595
  }
2596
2596
 
2597
- const adapterName$7 = 'createPersonalizationPoint';
2597
+ const adapterName$8 = '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$7, createPersonalizationPoint_ConfigPropertyMetadata);
2615
- const createResourceParams$7 = /*#__PURE__*/ createResourceParams$8(createPersonalizationPoint_ConfigPropertyMetadata);
2616
- function typeCheckConfig$7(untrustedConfig) {
2614
+ const createPersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, createPersonalizationPoint_ConfigPropertyMetadata);
2615
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$9(createPersonalizationPoint_ConfigPropertyMetadata);
2616
+ function typeCheckConfig$8(untrustedConfig) {
2617
2617
  const config = {};
2618
- typeCheckConfig$8(untrustedConfig, config, createPersonalizationPoint_ConfigPropertyMetadata);
2618
+ typeCheckConfig$9(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$7(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$c(untrustedConfig_decisions_item);
2659
+ const referencePersonalizationDecisionInputRepresentationValidationError = validate$e(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$7(untrustedConfig) {
2707
2707
  }
2708
2708
  return config;
2709
2709
  }
2710
- function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
2710
+ function validateAdapterConfig$8(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$7(untrustedConfig);
2717
+ const config = typeCheckConfig$8(untrustedConfig);
2718
2718
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2719
2719
  return null;
2720
2720
  }
2721
2721
  return config;
2722
2722
  }
2723
- function buildNetworkSnapshot$7(luvio, config, options) {
2724
- const resourceParams = createResourceParams$7(config);
2725
- const request = createResourceRequest$7(resourceParams);
2723
+ function buildNetworkSnapshot$8(luvio, config, options) {
2724
+ const resourceParams = createResourceParams$8(config);
2725
+ const request = createResourceRequest$8(resourceParams);
2726
2726
  return luvio.dispatchResourceRequest(request, options)
2727
2727
  .then((response) => {
2728
2728
  return luvio.handleSuccessResponse(() => {
2729
- const snapshot = ingestSuccess$5(luvio, resourceParams, response);
2729
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response);
2730
2730
  return luvio.storeBroadcast().then(() => snapshot);
2731
2731
  }, () => {
2732
2732
  const cache = new StoreKeyMap();
2733
- getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
2733
+ getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
2734
2734
  return cache;
2735
2735
  });
2736
2736
  }, (response) => {
@@ -2740,33 +2740,33 @@ function buildNetworkSnapshot$7(luvio, config, options) {
2740
2740
  }
2741
2741
  const createPersonalizationPointAdapterFactory = (luvio) => {
2742
2742
  return function createPersonalizationPoint(untrustedConfig) {
2743
- const config = validateAdapterConfig$7(untrustedConfig, createPersonalizationPoint_ConfigPropertyNames);
2743
+ const config = validateAdapterConfig$8(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$7(luvio, config);
2748
+ return buildNetworkSnapshot$8(luvio, config);
2749
2749
  };
2750
2750
  };
2751
2751
 
2752
- function keyBuilder$8(luvio, params) {
2753
- return keyBuilder$9(luvio, {
2752
+ function keyBuilder$a(luvio, params) {
2753
+ return keyBuilder$b(luvio, {
2754
2754
  id: params.urlParams.idOrName
2755
2755
  });
2756
2756
  }
2757
- function getResponseCacheKeys$6(cacheKeyMap, luvio, resourceParams) {
2758
- const key = keyBuilder$8(luvio, resourceParams);
2757
+ function getResponseCacheKeys$7(cacheKeyMap, luvio, resourceParams) {
2758
+ const key = keyBuilder$a(luvio, resourceParams);
2759
2759
  cacheKeyMap.set(key, {
2760
2760
  namespace: keyPrefix,
2761
- representationName: RepresentationType$2,
2761
+ representationName: RepresentationType$3,
2762
2762
  mergeable: false
2763
2763
  });
2764
2764
  }
2765
2765
  function evictSuccess$1(luvio, resourceParams) {
2766
- const key = keyBuilder$8(luvio, resourceParams);
2766
+ const key = keyBuilder$a(luvio, resourceParams);
2767
2767
  luvio.storeEvict(key);
2768
2768
  }
2769
- function createResourceRequest$6(config) {
2769
+ function createResourceRequest$7(config) {
2770
2770
  const headers = {};
2771
2771
  return {
2772
2772
  baseUri: '/services/data/v63.0',
@@ -2780,33 +2780,33 @@ function createResourceRequest$6(config) {
2780
2780
  };
2781
2781
  }
2782
2782
 
2783
- const adapterName$6 = 'deletePersonalizationPoint';
2783
+ const adapterName$7 = 'deletePersonalizationPoint';
2784
2784
  const deletePersonalizationPoint_ConfigPropertyMetadata = [
2785
2785
  generateParamConfigMetadata('idOrName', true, 0 /* UrlParameter */, 0 /* String */),
2786
2786
  ];
2787
- const deletePersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, deletePersonalizationPoint_ConfigPropertyMetadata);
2788
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$8(deletePersonalizationPoint_ConfigPropertyMetadata);
2789
- function typeCheckConfig$6(untrustedConfig) {
2787
+ const deletePersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, deletePersonalizationPoint_ConfigPropertyMetadata);
2788
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$9(deletePersonalizationPoint_ConfigPropertyMetadata);
2789
+ function typeCheckConfig$7(untrustedConfig) {
2790
2790
  const config = {};
2791
- typeCheckConfig$8(untrustedConfig, config, deletePersonalizationPoint_ConfigPropertyMetadata);
2791
+ typeCheckConfig$9(untrustedConfig, config, deletePersonalizationPoint_ConfigPropertyMetadata);
2792
2792
  return config;
2793
2793
  }
2794
- function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
2794
+ function validateAdapterConfig$7(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$6(untrustedConfig);
2801
+ const config = typeCheckConfig$7(untrustedConfig);
2802
2802
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2803
2803
  return null;
2804
2804
  }
2805
2805
  return config;
2806
2806
  }
2807
- function buildNetworkSnapshot$6(luvio, config, options) {
2808
- const resourceParams = createResourceParams$6(config);
2809
- const request = createResourceRequest$6(resourceParams);
2807
+ function buildNetworkSnapshot$7(luvio, config, options) {
2808
+ const resourceParams = createResourceParams$7(config);
2809
+ const request = createResourceRequest$7(resourceParams);
2810
2810
  return luvio.dispatchResourceRequest(request, options)
2811
2811
  .then(() => {
2812
2812
  return luvio.handleSuccessResponse(() => {
@@ -2814,7 +2814,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
2814
2814
  return luvio.storeBroadcast();
2815
2815
  }, () => {
2816
2816
  const cache = new StoreKeyMap();
2817
- getResponseCacheKeys$6(cache, luvio, resourceParams);
2817
+ getResponseCacheKeys$7(cache, luvio, resourceParams);
2818
2818
  return cache;
2819
2819
  });
2820
2820
  }, (response) => {
@@ -2824,33 +2824,33 @@ function buildNetworkSnapshot$6(luvio, config, options) {
2824
2824
  }
2825
2825
  const deletePersonalizationPointAdapterFactory = (luvio) => {
2826
2826
  return function personalizationServicedeletePersonalizationPoint(untrustedConfig) {
2827
- const config = validateAdapterConfig$6(untrustedConfig, deletePersonalizationPoint_ConfigPropertyNames);
2827
+ const config = validateAdapterConfig$7(untrustedConfig, deletePersonalizationPoint_ConfigPropertyNames);
2828
2828
  // Invalid or incomplete config
2829
2829
  if (config === null) {
2830
- throw new Error(`Invalid config for "${adapterName$6}"`);
2830
+ throw new Error(`Invalid config for "${adapterName$7}"`);
2831
2831
  }
2832
- return buildNetworkSnapshot$6(luvio, config);
2832
+ return buildNetworkSnapshot$7(luvio, config);
2833
2833
  };
2834
2834
  };
2835
2835
 
2836
- function select$8(luvio, params) {
2837
- return select$a();
2836
+ function select$b(luvio, params) {
2837
+ return select$d();
2838
2838
  }
2839
- function keyBuilder$7(luvio, params) {
2840
- return keyBuilder$9(luvio, {
2839
+ function keyBuilder$9(luvio, params) {
2840
+ return keyBuilder$b(luvio, {
2841
2841
  id: params.urlParams.idOrName
2842
2842
  });
2843
2843
  }
2844
- function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
2845
- getTypeCacheKeys$2(storeKeyMap, luvio, response);
2844
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
2845
+ getTypeCacheKeys$3(storeKeyMap, luvio, response);
2846
2846
  }
2847
- function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
2847
+ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
2848
2848
  const { body } = response;
2849
- const key = keyBuilder$7(luvio, resourceParams);
2850
- luvio.storeIngest(key, ingest$2, body);
2849
+ const key = keyBuilder$9(luvio, resourceParams);
2850
+ luvio.storeIngest(key, ingest$3, body);
2851
2851
  const snapshot = luvio.storeLookup({
2852
2852
  recordId: key,
2853
- node: select$8(),
2853
+ node: select$b(),
2854
2854
  variables: {},
2855
2855
  }, snapshotRefresh);
2856
2856
  if (process.env.NODE_ENV !== 'production') {
@@ -2861,19 +2861,19 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
2861
2861
  deepFreeze(snapshot.data);
2862
2862
  return snapshot;
2863
2863
  }
2864
- function ingestError$2(luvio, params, error, snapshotRefresh) {
2865
- const key = keyBuilder$7(luvio, params);
2864
+ function ingestError$3(luvio, params, error, snapshotRefresh) {
2865
+ const key = keyBuilder$9(luvio, params);
2866
2866
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2867
2867
  const storeMetadataParams = {
2868
- ttl: TTL$2,
2868
+ ttl: TTL$3,
2869
2869
  namespace: keyPrefix,
2870
- version: VERSION$4,
2871
- representationName: RepresentationType$2
2870
+ version: VERSION$6,
2871
+ representationName: RepresentationType$3
2872
2872
  };
2873
2873
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2874
2874
  return errorSnapshot;
2875
2875
  }
2876
- function createResourceRequest$5(config) {
2876
+ function createResourceRequest$6(config) {
2877
2877
  const headers = {};
2878
2878
  return {
2879
2879
  baseUri: '/services/data/v63.0',
@@ -2887,105 +2887,105 @@ function createResourceRequest$5(config) {
2887
2887
  };
2888
2888
  }
2889
2889
 
2890
- const adapterName$5 = 'getPersonalizationPoint';
2890
+ const adapterName$6 = 'getPersonalizationPoint';
2891
2891
  const getPersonalizationPoint_ConfigPropertyMetadata = [
2892
2892
  generateParamConfigMetadata('idOrName', true, 0 /* UrlParameter */, 0 /* String */),
2893
2893
  ];
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);
2894
+ const getPersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getPersonalizationPoint_ConfigPropertyMetadata);
2895
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$9(getPersonalizationPoint_ConfigPropertyMetadata);
2896
+ function keyBuilder$8(luvio, config) {
2897
+ const resourceParams = createResourceParams$6(config);
2898
+ return keyBuilder$9(luvio, resourceParams);
2899
2899
  }
2900
- function typeCheckConfig$5(untrustedConfig) {
2900
+ function typeCheckConfig$6(untrustedConfig) {
2901
2901
  const config = {};
2902
- typeCheckConfig$8(untrustedConfig, config, getPersonalizationPoint_ConfigPropertyMetadata);
2902
+ typeCheckConfig$9(untrustedConfig, config, getPersonalizationPoint_ConfigPropertyMetadata);
2903
2903
  return config;
2904
2904
  }
2905
- function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
2905
+ function validateAdapterConfig$6(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$5(untrustedConfig);
2912
+ const config = typeCheckConfig$6(untrustedConfig);
2913
2913
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2914
2914
  return null;
2915
2915
  }
2916
2916
  return config;
2917
2917
  }
2918
- function adapterFragment$2(luvio, config) {
2919
- createResourceParams$5(config);
2920
- return select$8();
2918
+ function adapterFragment$3(luvio, config) {
2919
+ createResourceParams$6(config);
2920
+ return select$b();
2921
2921
  }
2922
- function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
2923
- const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
2922
+ function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
2923
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
2924
2924
  config,
2925
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2925
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
2926
2926
  });
2927
2927
  return luvio.storeBroadcast().then(() => snapshot);
2928
2928
  }
2929
- function onFetchResponseError$2(luvio, config, resourceParams, response) {
2930
- const snapshot = ingestError$2(luvio, resourceParams, response, {
2929
+ function onFetchResponseError$3(luvio, config, resourceParams, response) {
2930
+ const snapshot = ingestError$3(luvio, resourceParams, response, {
2931
2931
  config,
2932
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2932
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
2933
2933
  });
2934
2934
  return luvio.storeBroadcast().then(() => snapshot);
2935
2935
  }
2936
- function buildNetworkSnapshot$5(luvio, config, options) {
2937
- const resourceParams = createResourceParams$5(config);
2938
- const request = createResourceRequest$5(resourceParams);
2936
+ function buildNetworkSnapshot$6(luvio, config, options) {
2937
+ const resourceParams = createResourceParams$6(config);
2938
+ const request = createResourceRequest$6(resourceParams);
2939
2939
  return luvio.dispatchResourceRequest(request, options)
2940
2940
  .then((response) => {
2941
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
2941
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
2942
2942
  const cache = new StoreKeyMap();
2943
- getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
2943
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
2944
2944
  return cache;
2945
2945
  });
2946
2946
  }, (response) => {
2947
- return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
2947
+ return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
2948
2948
  });
2949
2949
  }
2950
- function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
2951
- return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
2950
+ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
2951
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
2952
2952
  }
2953
- function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
2953
+ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
2954
2954
  const { luvio, config } = context;
2955
2955
  const selector = {
2956
- recordId: keyBuilder$6(luvio, config),
2957
- node: adapterFragment$2(luvio, config),
2956
+ recordId: keyBuilder$8(luvio, config),
2957
+ node: adapterFragment$3(luvio, config),
2958
2958
  variables: {},
2959
2959
  };
2960
2960
  const cacheSnapshot = storeLookup(selector, {
2961
2961
  config,
2962
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2962
+ resolve: () => buildNetworkSnapshot$6(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$5(untrustedConfig, getPersonalizationPoint_ConfigPropertyNames);
2967
+ const config = validateAdapterConfig$6(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$2, buildNetworkSnapshotCachePolicy$2);
2973
+ buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
2974
2974
  };
2975
2975
 
2976
- function select$7(luvio, params) {
2977
- return select$a();
2976
+ function select$a(luvio, params) {
2977
+ return select$d();
2978
2978
  }
2979
- function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
2980
- getTypeCacheKeys$2(storeKeyMap, luvio, response);
2979
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
2980
+ getTypeCacheKeys$3(storeKeyMap, luvio, response);
2981
2981
  }
2982
- function ingestSuccess$3(luvio, resourceParams, response) {
2982
+ function ingestSuccess$4(luvio, resourceParams, response) {
2983
2983
  const { body } = response;
2984
2984
  const key = keyBuilderFromType$1(luvio, body);
2985
- luvio.storeIngest(key, ingest$2, body);
2985
+ luvio.storeIngest(key, ingest$3, body);
2986
2986
  const snapshot = luvio.storeLookup({
2987
2987
  recordId: key,
2988
- node: select$7(),
2988
+ node: select$a(),
2989
2989
  variables: {},
2990
2990
  });
2991
2991
  if (process.env.NODE_ENV !== 'production') {
@@ -2996,7 +2996,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
2996
2996
  deepFreeze(snapshot.data);
2997
2997
  return snapshot;
2998
2998
  }
2999
- function createResourceRequest$4(config) {
2999
+ function createResourceRequest$5(config) {
3000
3000
  const headers = {};
3001
3001
  return {
3002
3002
  baseUri: '/services/data/v63.0',
@@ -3010,7 +3010,7 @@ function createResourceRequest$4(config) {
3010
3010
  };
3011
3011
  }
3012
3012
 
3013
- const adapterName$4 = 'updatePersonalizationPoint';
3013
+ const adapterName$5 = '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$4, updatePersonalizationPoint_ConfigPropertyMetadata);
3032
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$8(updatePersonalizationPoint_ConfigPropertyMetadata);
3033
- function typeCheckConfig$4(untrustedConfig) {
3031
+ const updatePersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, updatePersonalizationPoint_ConfigPropertyMetadata);
3032
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$9(updatePersonalizationPoint_ConfigPropertyMetadata);
3033
+ function typeCheckConfig$5(untrustedConfig) {
3034
3034
  const config = {};
3035
- typeCheckConfig$8(untrustedConfig, config, updatePersonalizationPoint_ConfigPropertyMetadata);
3035
+ typeCheckConfig$9(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$4(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$c(untrustedConfig_decisions_item);
3076
+ const referencePersonalizationDecisionInputRepresentationValidationError = validate$e(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$4(untrustedConfig) {
3124
3124
  }
3125
3125
  return config;
3126
3126
  }
3127
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
3127
+ function validateAdapterConfig$5(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$4(untrustedConfig);
3134
+ const config = typeCheckConfig$5(untrustedConfig);
3135
3135
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3136
3136
  return null;
3137
3137
  }
3138
3138
  return config;
3139
3139
  }
3140
- function buildNetworkSnapshot$4(luvio, config, options) {
3141
- const resourceParams = createResourceParams$4(config);
3142
- const request = createResourceRequest$4(resourceParams);
3140
+ function buildNetworkSnapshot$5(luvio, config, options) {
3141
+ const resourceParams = createResourceParams$5(config);
3142
+ const request = createResourceRequest$5(resourceParams);
3143
3143
  return luvio.dispatchResourceRequest(request, options)
3144
3144
  .then((response) => {
3145
3145
  return luvio.handleSuccessResponse(() => {
3146
- const snapshot = ingestSuccess$3(luvio, resourceParams, response);
3146
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response);
3147
3147
  return luvio.storeBroadcast().then(() => snapshot);
3148
3148
  }, () => {
3149
3149
  const cache = new StoreKeyMap();
3150
- getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
3150
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
3151
3151
  return cache;
3152
3152
  });
3153
3153
  }, (response) => {
@@ -3157,16 +3157,16 @@ function buildNetworkSnapshot$4(luvio, config, options) {
3157
3157
  }
3158
3158
  const updatePersonalizationPointAdapterFactory = (luvio) => {
3159
3159
  return function updatePersonalizationPoint(untrustedConfig) {
3160
- const config = validateAdapterConfig$4(untrustedConfig, updatePersonalizationPoint_ConfigPropertyNames);
3160
+ const config = validateAdapterConfig$5(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$4(luvio, config);
3165
+ return buildNetworkSnapshot$5(luvio, config);
3166
3166
  };
3167
3167
  };
3168
3168
 
3169
- function validate$4(obj, path = 'PersonalizationAttributeInputRepresentation') {
3169
+ function validate$6(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$4(obj, path = 'PersonalizationAttributeInputRepresentation') {
3213
3213
  return v_error === undefined ? null : v_error;
3214
3214
  }
3215
3215
 
3216
- const VERSION$3 = "014064b188ff923423af6301d64be36a";
3217
- function validate$3(obj, path = 'PersonalizationAttributeRepresentation') {
3216
+ const VERSION$5 = "014064b188ff923423af6301d64be36a";
3217
+ function validate$5(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$3(obj, path = 'PersonalizationAttributeRepresentation') {
3309
3309
  })();
3310
3310
  return v_error === undefined ? null : v_error;
3311
3311
  }
3312
- const select$6 = function PersonalizationAttributeRepresentationSelect() {
3312
+ const select$9 = function PersonalizationAttributeRepresentationSelect() {
3313
3313
  return {
3314
3314
  kind: 'Fragment',
3315
- version: VERSION$3,
3315
+ version: VERSION$5,
3316
3316
  private: [],
3317
3317
  selections: [
3318
3318
  {
@@ -3354,7 +3354,7 @@ const select$6 = function PersonalizationAttributeRepresentationSelect() {
3354
3354
  ]
3355
3355
  };
3356
3356
  };
3357
- function equals$3(existing, incoming) {
3357
+ function equals$5(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$3(existing, incoming) {
3403
3403
  return true;
3404
3404
  }
3405
3405
 
3406
- const TTL$1 = 600;
3407
- const VERSION$2 = "25740f87643de6fdae570c77bbec7377";
3408
- function validate$2(obj, path = 'PersonalizationSchemaRepresentation') {
3406
+ const TTL$2 = 600;
3407
+ const VERSION$4 = "25740f87643de6fdae570c77bbec7377";
3408
+ function validate$4(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$2(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$3(obj_attributes_item, path_attributes_item);
3421
+ const referencepath_attributes_itemValidationError = validate$5(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$2(obj, path = 'PersonalizationSchemaRepresentation') {
3563
3563
  })();
3564
3564
  return v_error === undefined ? null : v_error;
3565
3565
  }
3566
- const RepresentationType$1 = 'PersonalizationSchemaRepresentation';
3567
- function keyBuilder$5(luvio, config) {
3568
- return keyPrefix + '::' + RepresentationType$1 + ':' + config.id;
3566
+ const RepresentationType$2 = 'PersonalizationSchemaRepresentation';
3567
+ function keyBuilder$7(luvio, config) {
3568
+ return keyPrefix + '::' + RepresentationType$2 + ':' + config.id;
3569
3569
  }
3570
3570
  function keyBuilderFromType(luvio, object) {
3571
3571
  const keyParams = {
3572
3572
  id: object.name
3573
3573
  };
3574
- return keyBuilder$5(luvio, keyParams);
3574
+ return keyBuilder$7(luvio, keyParams);
3575
3575
  }
3576
- function normalize$1(input, existing, path, luvio, store, timestamp) {
3576
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
3577
3577
  return input;
3578
3578
  }
3579
- const select$5 = function PersonalizationSchemaRepresentationSelect() {
3580
- const { selections: PersonalizationAttributeRepresentation__selections, opaque: PersonalizationAttributeRepresentation__opaque, } = select$6();
3579
+ const select$8 = function PersonalizationSchemaRepresentationSelect() {
3580
+ const { selections: PersonalizationAttributeRepresentation__selections, opaque: PersonalizationAttributeRepresentation__opaque, } = select$9();
3581
3581
  return {
3582
3582
  kind: 'Fragment',
3583
- version: VERSION$2,
3583
+ version: VERSION$4,
3584
3584
  private: [],
3585
3585
  selections: [
3586
3586
  {
@@ -3645,7 +3645,7 @@ const select$5 = function PersonalizationSchemaRepresentationSelect() {
3645
3645
  ]
3646
3646
  };
3647
3647
  };
3648
- function equals$2(existing, incoming) {
3648
+ function equals$4(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$2(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$3(existing_attributes_item, incoming_attributes_item))) {
3702
+ if (!(equals$5(existing_attributes_item, incoming_attributes_item))) {
3703
3703
  return false;
3704
3704
  }
3705
3705
  });
@@ -3728,41 +3728,41 @@ function equals$2(existing, incoming) {
3728
3728
  }
3729
3729
  return true;
3730
3730
  }
3731
- const ingest$1 = function PersonalizationSchemaRepresentationIngest(input, path, luvio, store, timestamp) {
3731
+ const ingest$2 = function PersonalizationSchemaRepresentationIngest(input, path, luvio, store, timestamp) {
3732
3732
  if (process.env.NODE_ENV !== 'production') {
3733
- const validateError = validate$2(input);
3733
+ const validateError = validate$4(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$1;
3740
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "personalization-service", VERSION$2, RepresentationType$1, equals$2);
3739
+ const ttlToUse = TTL$2;
3740
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "personalization-service", VERSION$4, RepresentationType$2, equals$4);
3741
3741
  return createLink(key);
3742
3742
  };
3743
- function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
3743
+ function getTypeCacheKeys$2(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$1,
3748
+ representationName: RepresentationType$2,
3749
3749
  mergeable: false
3750
3750
  });
3751
3751
  }
3752
3752
 
3753
- function select$4(luvio, params) {
3754
- return select$5();
3753
+ function select$7(luvio, params) {
3754
+ return select$8();
3755
3755
  }
3756
- function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
3757
- getTypeCacheKeys$1(storeKeyMap, luvio, response);
3756
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
3757
+ getTypeCacheKeys$2(storeKeyMap, luvio, response);
3758
3758
  }
3759
- function ingestSuccess$2(luvio, resourceParams, response) {
3759
+ function ingestSuccess$3(luvio, resourceParams, response) {
3760
3760
  const { body } = response;
3761
3761
  const key = keyBuilderFromType(luvio, body);
3762
- luvio.storeIngest(key, ingest$1, body);
3762
+ luvio.storeIngest(key, ingest$2, body);
3763
3763
  const snapshot = luvio.storeLookup({
3764
3764
  recordId: key,
3765
- node: select$4(),
3765
+ node: select$7(),
3766
3766
  variables: {},
3767
3767
  });
3768
3768
  if (process.env.NODE_ENV !== 'production') {
@@ -3773,7 +3773,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
3773
3773
  deepFreeze(snapshot.data);
3774
3774
  return snapshot;
3775
3775
  }
3776
- function createResourceRequest$3(config) {
3776
+ function createResourceRequest$4(config) {
3777
3777
  const headers = {};
3778
3778
  return {
3779
3779
  baseUri: '/services/data/v63.0',
@@ -3787,7 +3787,7 @@ function createResourceRequest$3(config) {
3787
3787
  };
3788
3788
  }
3789
3789
 
3790
- const adapterName$3 = 'createPersonalizationSchema';
3790
+ const adapterName$4 = '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$3, createPersonalizationSchema_ConfigPropertyMetadata);
3802
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$8(createPersonalizationSchema_ConfigPropertyMetadata);
3803
- function typeCheckConfig$3(untrustedConfig) {
3801
+ const createPersonalizationSchema_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createPersonalizationSchema_ConfigPropertyMetadata);
3802
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$9(createPersonalizationSchema_ConfigPropertyMetadata);
3803
+ function typeCheckConfig$4(untrustedConfig) {
3804
3804
  const config = {};
3805
- typeCheckConfig$8(untrustedConfig, config, createPersonalizationSchema_ConfigPropertyMetadata);
3805
+ typeCheckConfig$9(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$3(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$4(untrustedConfig_attributes_item);
3832
+ const referencePersonalizationAttributeInputRepresentationValidationError = validate$6(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$3(untrustedConfig) {
3859
3859
  }
3860
3860
  return config;
3861
3861
  }
3862
- function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
3862
+ function validateAdapterConfig$4(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$3(untrustedConfig);
3869
+ const config = typeCheckConfig$4(untrustedConfig);
3870
3870
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3871
3871
  return null;
3872
3872
  }
3873
3873
  return config;
3874
3874
  }
3875
- function buildNetworkSnapshot$3(luvio, config, options) {
3876
- const resourceParams = createResourceParams$3(config);
3877
- const request = createResourceRequest$3(resourceParams);
3875
+ function buildNetworkSnapshot$4(luvio, config, options) {
3876
+ const resourceParams = createResourceParams$4(config);
3877
+ const request = createResourceRequest$4(resourceParams);
3878
3878
  return luvio.dispatchResourceRequest(request, options)
3879
3879
  .then((response) => {
3880
3880
  return luvio.handleSuccessResponse(() => {
3881
- const snapshot = ingestSuccess$2(luvio, resourceParams, response);
3881
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response);
3882
3882
  return luvio.storeBroadcast().then(() => snapshot);
3883
3883
  }, () => {
3884
3884
  const cache = new StoreKeyMap();
3885
- getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
3885
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
3886
3886
  return cache;
3887
3887
  });
3888
3888
  }, (response) => {
@@ -3892,33 +3892,33 @@ function buildNetworkSnapshot$3(luvio, config, options) {
3892
3892
  }
3893
3893
  const createPersonalizationSchemaAdapterFactory = (luvio) => {
3894
3894
  return function createPersonalizationSchema(untrustedConfig) {
3895
- const config = validateAdapterConfig$3(untrustedConfig, createPersonalizationSchema_ConfigPropertyNames);
3895
+ const config = validateAdapterConfig$4(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$3(luvio, config);
3900
+ return buildNetworkSnapshot$4(luvio, config);
3901
3901
  };
3902
3902
  };
3903
3903
 
3904
- function keyBuilder$4(luvio, params) {
3905
- return keyBuilder$5(luvio, {
3904
+ function keyBuilder$6(luvio, params) {
3905
+ return keyBuilder$7(luvio, {
3906
3906
  id: params.urlParams.idOrName
3907
3907
  });
3908
3908
  }
3909
- function getResponseCacheKeys$2(cacheKeyMap, luvio, resourceParams) {
3910
- const key = keyBuilder$4(luvio, resourceParams);
3909
+ function getResponseCacheKeys$3(cacheKeyMap, luvio, resourceParams) {
3910
+ const key = keyBuilder$6(luvio, resourceParams);
3911
3911
  cacheKeyMap.set(key, {
3912
3912
  namespace: keyPrefix,
3913
- representationName: RepresentationType$1,
3913
+ representationName: RepresentationType$2,
3914
3914
  mergeable: false
3915
3915
  });
3916
3916
  }
3917
3917
  function evictSuccess(luvio, resourceParams) {
3918
- const key = keyBuilder$4(luvio, resourceParams);
3918
+ const key = keyBuilder$6(luvio, resourceParams);
3919
3919
  luvio.storeEvict(key);
3920
3920
  }
3921
- function createResourceRequest$2(config) {
3921
+ function createResourceRequest$3(config) {
3922
3922
  const headers = {};
3923
3923
  return {
3924
3924
  baseUri: '/services/data/v63.0',
@@ -3932,33 +3932,33 @@ function createResourceRequest$2(config) {
3932
3932
  };
3933
3933
  }
3934
3934
 
3935
- const adapterName$2 = 'deletePersonalizationSchema';
3935
+ const adapterName$3 = 'deletePersonalizationSchema';
3936
3936
  const deletePersonalizationSchema_ConfigPropertyMetadata = [
3937
3937
  generateParamConfigMetadata('idOrName', true, 0 /* UrlParameter */, 0 /* String */),
3938
3938
  ];
3939
- const deletePersonalizationSchema_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, deletePersonalizationSchema_ConfigPropertyMetadata);
3940
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$8(deletePersonalizationSchema_ConfigPropertyMetadata);
3941
- function typeCheckConfig$2(untrustedConfig) {
3939
+ const deletePersonalizationSchema_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, deletePersonalizationSchema_ConfigPropertyMetadata);
3940
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$9(deletePersonalizationSchema_ConfigPropertyMetadata);
3941
+ function typeCheckConfig$3(untrustedConfig) {
3942
3942
  const config = {};
3943
- typeCheckConfig$8(untrustedConfig, config, deletePersonalizationSchema_ConfigPropertyMetadata);
3943
+ typeCheckConfig$9(untrustedConfig, config, deletePersonalizationSchema_ConfigPropertyMetadata);
3944
3944
  return config;
3945
3945
  }
3946
- function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
3946
+ function validateAdapterConfig$3(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$2(untrustedConfig);
3953
+ const config = typeCheckConfig$3(untrustedConfig);
3954
3954
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3955
3955
  return null;
3956
3956
  }
3957
3957
  return config;
3958
3958
  }
3959
- function buildNetworkSnapshot$2(luvio, config, options) {
3960
- const resourceParams = createResourceParams$2(config);
3961
- const request = createResourceRequest$2(resourceParams);
3959
+ function buildNetworkSnapshot$3(luvio, config, options) {
3960
+ const resourceParams = createResourceParams$3(config);
3961
+ const request = createResourceRequest$3(resourceParams);
3962
3962
  return luvio.dispatchResourceRequest(request, options)
3963
3963
  .then(() => {
3964
3964
  return luvio.handleSuccessResponse(() => {
@@ -3966,7 +3966,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
3966
3966
  return luvio.storeBroadcast();
3967
3967
  }, () => {
3968
3968
  const cache = new StoreKeyMap();
3969
- getResponseCacheKeys$2(cache, luvio, resourceParams);
3969
+ getResponseCacheKeys$3(cache, luvio, resourceParams);
3970
3970
  return cache;
3971
3971
  });
3972
3972
  }, (response) => {
@@ -3976,33 +3976,33 @@ function buildNetworkSnapshot$2(luvio, config, options) {
3976
3976
  }
3977
3977
  const deletePersonalizationSchemaAdapterFactory = (luvio) => {
3978
3978
  return function personalizationServicedeletePersonalizationSchema(untrustedConfig) {
3979
- const config = validateAdapterConfig$2(untrustedConfig, deletePersonalizationSchema_ConfigPropertyNames);
3979
+ const config = validateAdapterConfig$3(untrustedConfig, deletePersonalizationSchema_ConfigPropertyNames);
3980
3980
  // Invalid or incomplete config
3981
3981
  if (config === null) {
3982
- throw new Error(`Invalid config for "${adapterName$2}"`);
3982
+ throw new Error(`Invalid config for "${adapterName$3}"`);
3983
3983
  }
3984
- return buildNetworkSnapshot$2(luvio, config);
3984
+ return buildNetworkSnapshot$3(luvio, config);
3985
3985
  };
3986
3986
  };
3987
3987
 
3988
- function select$3(luvio, params) {
3989
- return select$5();
3988
+ function select$6(luvio, params) {
3989
+ return select$8();
3990
3990
  }
3991
- function keyBuilder$3(luvio, params) {
3992
- return keyBuilder$5(luvio, {
3991
+ function keyBuilder$5(luvio, params) {
3992
+ return keyBuilder$7(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);
3996
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
3997
+ getTypeCacheKeys$2(storeKeyMap, luvio, response);
3998
3998
  }
3999
- function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
3999
+ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
4000
4000
  const { body } = response;
4001
- const key = keyBuilder$3(luvio, resourceParams);
4002
- luvio.storeIngest(key, ingest$1, body);
4001
+ const key = keyBuilder$5(luvio, resourceParams);
4002
+ luvio.storeIngest(key, ingest$2, body);
4003
4003
  const snapshot = luvio.storeLookup({
4004
4004
  recordId: key,
4005
- node: select$3(),
4005
+ node: select$6(),
4006
4006
  variables: {},
4007
4007
  }, snapshotRefresh);
4008
4008
  if (process.env.NODE_ENV !== 'production') {
@@ -4013,19 +4013,19 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
4013
4013
  deepFreeze(snapshot.data);
4014
4014
  return snapshot;
4015
4015
  }
4016
- function ingestError$1(luvio, params, error, snapshotRefresh) {
4017
- const key = keyBuilder$3(luvio, params);
4016
+ function ingestError$2(luvio, params, error, snapshotRefresh) {
4017
+ const key = keyBuilder$5(luvio, params);
4018
4018
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
4019
4019
  const storeMetadataParams = {
4020
- ttl: TTL$1,
4020
+ ttl: TTL$2,
4021
4021
  namespace: keyPrefix,
4022
- version: VERSION$2,
4023
- representationName: RepresentationType$1
4022
+ version: VERSION$4,
4023
+ representationName: RepresentationType$2
4024
4024
  };
4025
4025
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
4026
4026
  return errorSnapshot;
4027
4027
  }
4028
- function createResourceRequest$1(config) {
4028
+ function createResourceRequest$2(config) {
4029
4029
  const headers = {};
4030
4030
  return {
4031
4031
  baseUri: '/services/data/v63.0',
@@ -4039,94 +4039,94 @@ function createResourceRequest$1(config) {
4039
4039
  };
4040
4040
  }
4041
4041
 
4042
- const adapterName$1 = 'getPersonalizationSchema';
4042
+ const adapterName$2 = 'getPersonalizationSchema';
4043
4043
  const getPersonalizationSchema_ConfigPropertyMetadata = [
4044
4044
  generateParamConfigMetadata('idOrName', true, 0 /* UrlParameter */, 0 /* String */),
4045
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);
4046
+ const getPersonalizationSchema_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getPersonalizationSchema_ConfigPropertyMetadata);
4047
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$9(getPersonalizationSchema_ConfigPropertyMetadata);
4048
+ function keyBuilder$4(luvio, config) {
4049
+ const resourceParams = createResourceParams$2(config);
4050
+ return keyBuilder$5(luvio, resourceParams);
4051
4051
  }
4052
- function typeCheckConfig$1(untrustedConfig) {
4052
+ function typeCheckConfig$2(untrustedConfig) {
4053
4053
  const config = {};
4054
- typeCheckConfig$8(untrustedConfig, config, getPersonalizationSchema_ConfigPropertyMetadata);
4054
+ typeCheckConfig$9(untrustedConfig, config, getPersonalizationSchema_ConfigPropertyMetadata);
4055
4055
  return config;
4056
4056
  }
4057
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
4057
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
4058
4058
  if (!untrustedIsObject(untrustedConfig)) {
4059
4059
  return null;
4060
4060
  }
4061
4061
  if (process.env.NODE_ENV !== 'production') {
4062
4062
  validateConfig(untrustedConfig, configPropertyNames);
4063
4063
  }
4064
- const config = typeCheckConfig$1(untrustedConfig);
4064
+ const config = typeCheckConfig$2(untrustedConfig);
4065
4065
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
4066
4066
  return null;
4067
4067
  }
4068
4068
  return config;
4069
4069
  }
4070
- function adapterFragment$1(luvio, config) {
4071
- createResourceParams$1(config);
4072
- return select$3();
4070
+ function adapterFragment$2(luvio, config) {
4071
+ createResourceParams$2(config);
4072
+ return select$6();
4073
4073
  }
4074
- function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
4075
- const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
4074
+ function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
4075
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
4076
4076
  config,
4077
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
4077
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
4078
4078
  });
4079
4079
  return luvio.storeBroadcast().then(() => snapshot);
4080
4080
  }
4081
- function onFetchResponseError$1(luvio, config, resourceParams, response) {
4082
- const snapshot = ingestError$1(luvio, resourceParams, response, {
4081
+ function onFetchResponseError$2(luvio, config, resourceParams, response) {
4082
+ const snapshot = ingestError$2(luvio, resourceParams, response, {
4083
4083
  config,
4084
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
4084
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
4085
4085
  });
4086
4086
  return luvio.storeBroadcast().then(() => snapshot);
4087
4087
  }
4088
- function buildNetworkSnapshot$1(luvio, config, options) {
4089
- const resourceParams = createResourceParams$1(config);
4090
- const request = createResourceRequest$1(resourceParams);
4088
+ function buildNetworkSnapshot$2(luvio, config, options) {
4089
+ const resourceParams = createResourceParams$2(config);
4090
+ const request = createResourceRequest$2(resourceParams);
4091
4091
  return luvio.dispatchResourceRequest(request, options)
4092
4092
  .then((response) => {
4093
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
4093
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
4094
4094
  const cache = new StoreKeyMap();
4095
- getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
4095
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
4096
4096
  return cache;
4097
4097
  });
4098
4098
  }, (response) => {
4099
- return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
4099
+ return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
4100
4100
  });
4101
4101
  }
4102
- function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
4103
- return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
4102
+ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
4103
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
4104
4104
  }
4105
- function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
4105
+ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
4106
4106
  const { luvio, config } = context;
4107
4107
  const selector = {
4108
- recordId: keyBuilder$2(luvio, config),
4109
- node: adapterFragment$1(luvio, config),
4108
+ recordId: keyBuilder$4(luvio, config),
4109
+ node: adapterFragment$2(luvio, config),
4110
4110
  variables: {},
4111
4111
  };
4112
4112
  const cacheSnapshot = storeLookup(selector, {
4113
4113
  config,
4114
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
4114
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
4115
4115
  });
4116
4116
  return cacheSnapshot;
4117
4117
  }
4118
4118
  const getPersonalizationSchemaAdapterFactory = (luvio) => function personalizationService__getPersonalizationSchema(untrustedConfig, requestContext) {
4119
- const config = validateAdapterConfig$1(untrustedConfig, getPersonalizationSchema_ConfigPropertyNames);
4119
+ const config = validateAdapterConfig$2(untrustedConfig, getPersonalizationSchema_ConfigPropertyNames);
4120
4120
  // Invalid or incomplete config
4121
4121
  if (config === null) {
4122
4122
  return null;
4123
4123
  }
4124
4124
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
4125
- buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
4125
+ buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
4126
4126
  };
4127
4127
 
4128
- const VERSION$1 = "4140d8b5bf494d4e8f3ef8713b0ffd7d";
4129
- function validate$1(obj, path = 'PersonalizationRecommenderJobRepresentation') {
4128
+ const VERSION$3 = "4140d8b5bf494d4e8f3ef8713b0ffd7d";
4129
+ function validate$3(obj, path = 'PersonalizationRecommenderJobRepresentation') {
4130
4130
  const v_error = (() => {
4131
4131
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4132
4132
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4176,10 +4176,10 @@ function validate$1(obj, path = 'PersonalizationRecommenderJobRepresentation') {
4176
4176
  })();
4177
4177
  return v_error === undefined ? null : v_error;
4178
4178
  }
4179
- const select$2 = function PersonalizationRecommenderJobRepresentationSelect() {
4179
+ const select$5 = function PersonalizationRecommenderJobRepresentationSelect() {
4180
4180
  return {
4181
4181
  kind: 'Fragment',
4182
- version: VERSION$1,
4182
+ version: VERSION$3,
4183
4183
  private: [],
4184
4184
  selections: [
4185
4185
  {
@@ -4215,7 +4215,7 @@ const select$2 = function PersonalizationRecommenderJobRepresentationSelect() {
4215
4215
  ]
4216
4216
  };
4217
4217
  };
4218
- function equals$1(existing, incoming) {
4218
+ function equals$3(existing, incoming) {
4219
4219
  const existing_errorCode = existing.errorCode;
4220
4220
  const incoming_errorCode = incoming.errorCode;
4221
4221
  // if at least one of these optionals is defined
@@ -4297,9 +4297,9 @@ function equals$1(existing, incoming) {
4297
4297
  return true;
4298
4298
  }
4299
4299
 
4300
- const TTL = 600;
4301
- const VERSION = "c49a0f58a0e5e27bc65c198f7a6acf1c";
4302
- function validate(obj, path = 'PersonalizationRecommenderJobCollectionRepresentation') {
4300
+ const TTL$1 = 600;
4301
+ const VERSION$2 = "c49a0f58a0e5e27bc65c198f7a6acf1c";
4302
+ function validate$2(obj, path = 'PersonalizationRecommenderJobCollectionRepresentation') {
4303
4303
  const v_error = (() => {
4304
4304
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4305
4305
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4318,7 +4318,7 @@ function validate(obj, path = 'PersonalizationRecommenderJobCollectionRepresenta
4318
4318
  for (let i = 0; i < obj_jobs.length; i++) {
4319
4319
  const obj_jobs_item = obj_jobs[i];
4320
4320
  const path_jobs_item = path_jobs + '[' + i + ']';
4321
- const referencepath_jobs_itemValidationError = validate$1(obj_jobs_item, path_jobs_item);
4321
+ const referencepath_jobs_itemValidationError = validate$3(obj_jobs_item, path_jobs_item);
4322
4322
  if (referencepath_jobs_itemValidationError !== null) {
4323
4323
  let message = 'Object doesn\'t match PersonalizationRecommenderJobRepresentation (at "' + path_jobs_item + '")\n';
4324
4324
  message += referencepath_jobs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4334,15 +4334,15 @@ function validate(obj, path = 'PersonalizationRecommenderJobCollectionRepresenta
4334
4334
  })();
4335
4335
  return v_error === undefined ? null : v_error;
4336
4336
  }
4337
- const RepresentationType = 'PersonalizationRecommenderJobCollectionRepresentation';
4338
- function normalize(input, existing, path, luvio, store, timestamp) {
4337
+ const RepresentationType$1 = 'PersonalizationRecommenderJobCollectionRepresentation';
4338
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
4339
4339
  return input;
4340
4340
  }
4341
- const select$1 = function PersonalizationRecommenderJobCollectionRepresentationSelect() {
4342
- const { selections: PersonalizationRecommenderJobRepresentation__selections, opaque: PersonalizationRecommenderJobRepresentation__opaque, } = select$2();
4341
+ const select$4 = function PersonalizationRecommenderJobCollectionRepresentationSelect() {
4342
+ const { selections: PersonalizationRecommenderJobRepresentation__selections, opaque: PersonalizationRecommenderJobRepresentation__opaque, } = select$5();
4343
4343
  return {
4344
4344
  kind: 'Fragment',
4345
- version: VERSION,
4345
+ version: VERSION$2,
4346
4346
  private: [],
4347
4347
  selections: [
4348
4348
  {
@@ -4363,7 +4363,7 @@ const select$1 = function PersonalizationRecommenderJobCollectionRepresentationS
4363
4363
  ]
4364
4364
  };
4365
4365
  };
4366
- function equals(existing, incoming) {
4366
+ function equals$2(existing, incoming) {
4367
4367
  const existing_currentPageUrl = existing.currentPageUrl;
4368
4368
  const incoming_currentPageUrl = incoming.currentPageUrl;
4369
4369
  if (!(existing_currentPageUrl === incoming_currentPageUrl)) {
@@ -4384,7 +4384,7 @@ function equals(existing, incoming) {
4384
4384
  return false;
4385
4385
  }
4386
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))) {
4387
+ if (!(equals$3(existing_jobs_item, incoming_jobs_item))) {
4388
4388
  return false;
4389
4389
  }
4390
4390
  });
@@ -4394,7 +4394,318 @@ function equals(existing, incoming) {
4394
4394
  }
4395
4395
  return true;
4396
4396
  }
4397
- const ingest = function PersonalizationRecommenderJobCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
4397
+ const ingest$1 = function PersonalizationRecommenderJobCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
4398
+ if (process.env.NODE_ENV !== 'production') {
4399
+ const validateError = validate$2(input);
4400
+ if (validateError !== null) {
4401
+ throw validateError;
4402
+ }
4403
+ }
4404
+ const key = path.fullPath;
4405
+ const ttlToUse = TTL$1;
4406
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "personalization-service", VERSION$2, RepresentationType$1, equals$2);
4407
+ return createLink(key);
4408
+ };
4409
+ function getTypeCacheKeys$1(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$1,
4415
+ mergeable: false
4416
+ });
4417
+ }
4418
+
4419
+ function select$3(luvio, params) {
4420
+ return select$4();
4421
+ }
4422
+ function keyBuilder$3(luvio, params) {
4423
+ return keyPrefix + '::PersonalizationRecommenderJobCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'idOrName:' + params.urlParams.idOrName + ')';
4424
+ }
4425
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
4426
+ getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
4427
+ }
4428
+ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
4429
+ const { body } = response;
4430
+ const key = keyBuilder$3(luvio, resourceParams);
4431
+ luvio.storeIngest(key, ingest$1, body);
4432
+ const snapshot = luvio.storeLookup({
4433
+ recordId: key,
4434
+ node: select$3(),
4435
+ variables: {},
4436
+ }, snapshotRefresh);
4437
+ if (process.env.NODE_ENV !== 'production') {
4438
+ if (snapshot.state !== 'Fulfilled') {
4439
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
4440
+ }
4441
+ }
4442
+ deepFreeze(snapshot.data);
4443
+ return snapshot;
4444
+ }
4445
+ function ingestError$1(luvio, params, error, snapshotRefresh) {
4446
+ const key = keyBuilder$3(luvio, params);
4447
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
4448
+ const storeMetadataParams = {
4449
+ ttl: TTL$1,
4450
+ namespace: keyPrefix,
4451
+ version: VERSION$2,
4452
+ representationName: RepresentationType$1
4453
+ };
4454
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
4455
+ return errorSnapshot;
4456
+ }
4457
+ function createResourceRequest$1(config) {
4458
+ const headers = {};
4459
+ return {
4460
+ baseUri: '/services/data/v63.0',
4461
+ basePath: '/personalization/personalization-recommenders/' + config.urlParams.idOrName + '/jobs',
4462
+ method: 'get',
4463
+ body: null,
4464
+ urlParams: config.urlParams,
4465
+ queryParams: config.queryParams,
4466
+ headers,
4467
+ priority: 'normal',
4468
+ };
4469
+ }
4470
+
4471
+ const adapterName$1 = 'getTrainingHistory';
4472
+ const getTrainingHistory_ConfigPropertyMetadata = [
4473
+ generateParamConfigMetadata('idOrName', true, 0 /* UrlParameter */, 0 /* String */),
4474
+ generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
4475
+ generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
4476
+ ];
4477
+ const getTrainingHistory_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getTrainingHistory_ConfigPropertyMetadata);
4478
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$9(getTrainingHistory_ConfigPropertyMetadata);
4479
+ function keyBuilder$2(luvio, config) {
4480
+ const resourceParams = createResourceParams$1(config);
4481
+ return keyBuilder$3(luvio, resourceParams);
4482
+ }
4483
+ function typeCheckConfig$1(untrustedConfig) {
4484
+ const config = {};
4485
+ typeCheckConfig$9(untrustedConfig, config, getTrainingHistory_ConfigPropertyMetadata);
4486
+ return config;
4487
+ }
4488
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
4489
+ if (!untrustedIsObject(untrustedConfig)) {
4490
+ return null;
4491
+ }
4492
+ if (process.env.NODE_ENV !== 'production') {
4493
+ validateConfig(untrustedConfig, configPropertyNames);
4494
+ }
4495
+ const config = typeCheckConfig$1(untrustedConfig);
4496
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
4497
+ return null;
4498
+ }
4499
+ return config;
4500
+ }
4501
+ function adapterFragment$1(luvio, config) {
4502
+ createResourceParams$1(config);
4503
+ return select$3();
4504
+ }
4505
+ function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
4506
+ const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
4507
+ config,
4508
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
4509
+ });
4510
+ return luvio.storeBroadcast().then(() => snapshot);
4511
+ }
4512
+ function onFetchResponseError$1(luvio, config, resourceParams, response) {
4513
+ const snapshot = ingestError$1(luvio, resourceParams, response, {
4514
+ config,
4515
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
4516
+ });
4517
+ return luvio.storeBroadcast().then(() => snapshot);
4518
+ }
4519
+ function buildNetworkSnapshot$1(luvio, config, options) {
4520
+ const resourceParams = createResourceParams$1(config);
4521
+ const request = createResourceRequest$1(resourceParams);
4522
+ return luvio.dispatchResourceRequest(request, options)
4523
+ .then((response) => {
4524
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
4525
+ const cache = new StoreKeyMap();
4526
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
4527
+ return cache;
4528
+ });
4529
+ }, (response) => {
4530
+ return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
4531
+ });
4532
+ }
4533
+ function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
4534
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
4535
+ }
4536
+ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
4537
+ const { luvio, config } = context;
4538
+ const selector = {
4539
+ recordId: keyBuilder$2(luvio, config),
4540
+ node: adapterFragment$1(luvio, config),
4541
+ variables: {},
4542
+ };
4543
+ const cacheSnapshot = storeLookup(selector, {
4544
+ config,
4545
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
4546
+ });
4547
+ return cacheSnapshot;
4548
+ }
4549
+ const getTrainingHistoryAdapterFactory = (luvio) => function personalizationService__getTrainingHistory(untrustedConfig, requestContext) {
4550
+ const config = validateAdapterConfig$1(untrustedConfig, getTrainingHistory_ConfigPropertyNames);
4551
+ // Invalid or incomplete config
4552
+ if (config === null) {
4553
+ return null;
4554
+ }
4555
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
4556
+ buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
4557
+ };
4558
+
4559
+ const VERSION$1 = "5249bd66216ddaa79d57690fedf0d20b";
4560
+ function validate$1(obj, path = 'PersonalizationDataMlModelRepresentation') {
4561
+ const v_error = (() => {
4562
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4563
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4564
+ }
4565
+ const obj_dataSpaceId = obj.dataSpaceId;
4566
+ const path_dataSpaceId = path + '.dataSpaceId';
4567
+ if (typeof obj_dataSpaceId !== 'string') {
4568
+ return new TypeError('Expected "string" but received "' + typeof obj_dataSpaceId + '" (at "' + path_dataSpaceId + '")');
4569
+ }
4570
+ const obj_esModelDefinitionId = obj.esModelDefinitionId;
4571
+ const path_esModelDefinitionId = path + '.esModelDefinitionId';
4572
+ if (typeof obj_esModelDefinitionId !== 'string') {
4573
+ return new TypeError('Expected "string" but received "' + typeof obj_esModelDefinitionId + '" (at "' + path_esModelDefinitionId + '")');
4574
+ }
4575
+ const obj_personalizationDataMlModelInputList = obj.personalizationDataMlModelInputList;
4576
+ const path_personalizationDataMlModelInputList = path + '.personalizationDataMlModelInputList';
4577
+ if (!ArrayIsArray(obj_personalizationDataMlModelInputList)) {
4578
+ return new TypeError('Expected "array" but received "' + typeof obj_personalizationDataMlModelInputList + '" (at "' + path_personalizationDataMlModelInputList + '")');
4579
+ }
4580
+ for (let i = 0; i < obj_personalizationDataMlModelInputList.length; i++) {
4581
+ const obj_personalizationDataMlModelInputList_item = obj_personalizationDataMlModelInputList[i];
4582
+ const path_personalizationDataMlModelInputList_item = path_personalizationDataMlModelInputList + '[' + i + ']';
4583
+ if (obj_personalizationDataMlModelInputList_item === undefined) {
4584
+ return new TypeError('Expected "defined" but received "' + typeof obj_personalizationDataMlModelInputList_item + '" (at "' + path_personalizationDataMlModelInputList_item + '")');
4585
+ }
4586
+ }
4587
+ const obj_profileDataGraphId = obj.profileDataGraphId;
4588
+ const path_profileDataGraphId = path + '.profileDataGraphId';
4589
+ if (typeof obj_profileDataGraphId !== 'string') {
4590
+ return new TypeError('Expected "string" but received "' + typeof obj_profileDataGraphId + '" (at "' + path_profileDataGraphId + '")');
4591
+ }
4592
+ })();
4593
+ return v_error === undefined ? null : v_error;
4594
+ }
4595
+ const select$2 = function PersonalizationDataMlModelRepresentationSelect() {
4596
+ return {
4597
+ kind: 'Fragment',
4598
+ version: VERSION$1,
4599
+ private: [],
4600
+ selections: [
4601
+ {
4602
+ name: 'dataSpaceId',
4603
+ kind: 'Scalar'
4604
+ },
4605
+ {
4606
+ name: 'esModelDefinitionId',
4607
+ kind: 'Scalar'
4608
+ },
4609
+ {
4610
+ name: 'personalizationDataMlModelInputList',
4611
+ kind: 'Object',
4612
+ // any
4613
+ },
4614
+ {
4615
+ name: 'profileDataGraphId',
4616
+ kind: 'Scalar'
4617
+ }
4618
+ ]
4619
+ };
4620
+ };
4621
+ function equals$1(existing, incoming) {
4622
+ const existing_dataSpaceId = existing.dataSpaceId;
4623
+ const incoming_dataSpaceId = incoming.dataSpaceId;
4624
+ if (!(existing_dataSpaceId === incoming_dataSpaceId)) {
4625
+ return false;
4626
+ }
4627
+ const existing_esModelDefinitionId = existing.esModelDefinitionId;
4628
+ const incoming_esModelDefinitionId = incoming.esModelDefinitionId;
4629
+ if (!(existing_esModelDefinitionId === incoming_esModelDefinitionId)) {
4630
+ return false;
4631
+ }
4632
+ const existing_profileDataGraphId = existing.profileDataGraphId;
4633
+ const incoming_profileDataGraphId = incoming.profileDataGraphId;
4634
+ if (!(existing_profileDataGraphId === incoming_profileDataGraphId)) {
4635
+ return false;
4636
+ }
4637
+ const existing_personalizationDataMlModelInputList = existing.personalizationDataMlModelInputList;
4638
+ const incoming_personalizationDataMlModelInputList = incoming.personalizationDataMlModelInputList;
4639
+ const equals_personalizationDataMlModelInputList_items = equalsArray(existing_personalizationDataMlModelInputList, incoming_personalizationDataMlModelInputList, (existing_personalizationDataMlModelInputList_item, incoming_personalizationDataMlModelInputList_item) => {
4640
+ if (JSONStringify(incoming_personalizationDataMlModelInputList_item) !== JSONStringify(existing_personalizationDataMlModelInputList_item)) {
4641
+ return false;
4642
+ }
4643
+ });
4644
+ if (equals_personalizationDataMlModelInputList_items === false) {
4645
+ return false;
4646
+ }
4647
+ return true;
4648
+ }
4649
+
4650
+ const TTL = 600;
4651
+ const VERSION = "9dbc0875b97dc0f9ec2f23b3481be0b8";
4652
+ function validate(obj, path = 'PersonalizationDataMlModelCollectionRepresentation') {
4653
+ const v_error = (() => {
4654
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4655
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4656
+ }
4657
+ const obj_personalizationDataMlModels = obj.personalizationDataMlModels;
4658
+ const path_personalizationDataMlModels = path + '.personalizationDataMlModels';
4659
+ if (!ArrayIsArray(obj_personalizationDataMlModels)) {
4660
+ return new TypeError('Expected "array" but received "' + typeof obj_personalizationDataMlModels + '" (at "' + path_personalizationDataMlModels + '")');
4661
+ }
4662
+ for (let i = 0; i < obj_personalizationDataMlModels.length; i++) {
4663
+ const obj_personalizationDataMlModels_item = obj_personalizationDataMlModels[i];
4664
+ const path_personalizationDataMlModels_item = path_personalizationDataMlModels + '[' + i + ']';
4665
+ const referencepath_personalizationDataMlModels_itemValidationError = validate$1(obj_personalizationDataMlModels_item, path_personalizationDataMlModels_item);
4666
+ if (referencepath_personalizationDataMlModels_itemValidationError !== null) {
4667
+ let message = 'Object doesn\'t match PersonalizationDataMlModelRepresentation (at "' + path_personalizationDataMlModels_item + '")\n';
4668
+ message += referencepath_personalizationDataMlModels_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
4669
+ return new TypeError(message);
4670
+ }
4671
+ }
4672
+ })();
4673
+ return v_error === undefined ? null : v_error;
4674
+ }
4675
+ const RepresentationType = 'PersonalizationDataMlModelCollectionRepresentation';
4676
+ function normalize(input, existing, path, luvio, store, timestamp) {
4677
+ return input;
4678
+ }
4679
+ const select$1 = function PersonalizationDataMlModelCollectionRepresentationSelect() {
4680
+ const { selections: PersonalizationDataMlModelRepresentation__selections, opaque: PersonalizationDataMlModelRepresentation__opaque, } = select$2();
4681
+ return {
4682
+ kind: 'Fragment',
4683
+ version: VERSION,
4684
+ private: [],
4685
+ selections: [
4686
+ {
4687
+ name: 'personalizationDataMlModels',
4688
+ kind: 'Object',
4689
+ plural: true,
4690
+ selections: PersonalizationDataMlModelRepresentation__selections
4691
+ }
4692
+ ]
4693
+ };
4694
+ };
4695
+ function equals(existing, incoming) {
4696
+ const existing_personalizationDataMlModels = existing.personalizationDataMlModels;
4697
+ const incoming_personalizationDataMlModels = incoming.personalizationDataMlModels;
4698
+ const equals_personalizationDataMlModels_items = equalsArray(existing_personalizationDataMlModels, incoming_personalizationDataMlModels, (existing_personalizationDataMlModels_item, incoming_personalizationDataMlModels_item) => {
4699
+ if (!(equals$1(existing_personalizationDataMlModels_item, incoming_personalizationDataMlModels_item))) {
4700
+ return false;
4701
+ }
4702
+ });
4703
+ if (equals_personalizationDataMlModels_items === false) {
4704
+ return false;
4705
+ }
4706
+ return true;
4707
+ }
4708
+ const ingest = function PersonalizationDataMlModelCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
4398
4709
  if (process.env.NODE_ENV !== 'production') {
4399
4710
  const validateError = validate(input);
4400
4711
  if (validateError !== null) {
@@ -4420,7 +4731,7 @@ function select(luvio, params) {
4420
4731
  return select$1();
4421
4732
  }
4422
4733
  function keyBuilder$1(luvio, params) {
4423
- return keyPrefix + '::PersonalizationRecommenderJobCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'idOrName:' + params.urlParams.idOrName + ')';
4734
+ return keyPrefix + '::PersonalizationDataMlModelCollectionRepresentation:(' + 'dataspaceIdOrName:' + params.queryParams.dataspaceIdOrName + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'profileDataGraphIdOrName:' + params.queryParams.profileDataGraphIdOrName + ')';
4424
4735
  }
4425
4736
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
4426
4737
  getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
@@ -4458,31 +4769,32 @@ function createResourceRequest(config) {
4458
4769
  const headers = {};
4459
4770
  return {
4460
4771
  baseUri: '/services/data/v63.0',
4461
- basePath: '/personalization/personalization-recommenders/' + config.urlParams.idOrName + '/jobs',
4772
+ basePath: '/personalization/einstein-studio/model-mapping',
4462
4773
  method: 'get',
4463
4774
  body: null,
4464
- urlParams: config.urlParams,
4775
+ urlParams: {},
4465
4776
  queryParams: config.queryParams,
4466
4777
  headers,
4467
4778
  priority: 'normal',
4468
4779
  };
4469
4780
  }
4470
4781
 
4471
- const adapterName = 'getTrainingHistory';
4472
- const getTrainingHistory_ConfigPropertyMetadata = [
4473
- generateParamConfigMetadata('idOrName', true, 0 /* UrlParameter */, 0 /* String */),
4782
+ const adapterName = 'getPersonalizationEsModelMapping';
4783
+ const getPersonalizationEsModelMapping_ConfigPropertyMetadata = [
4784
+ generateParamConfigMetadata('dataspaceIdOrName', false, 1 /* QueryParameter */, 0 /* String */),
4474
4785
  generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
4475
4786
  generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
4787
+ generateParamConfigMetadata('profileDataGraphIdOrName', false, 1 /* QueryParameter */, 0 /* String */),
4476
4788
  ];
4477
- const getTrainingHistory_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getTrainingHistory_ConfigPropertyMetadata);
4478
- const createResourceParams = /*#__PURE__*/ createResourceParams$8(getTrainingHistory_ConfigPropertyMetadata);
4789
+ const getPersonalizationEsModelMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getPersonalizationEsModelMapping_ConfigPropertyMetadata);
4790
+ const createResourceParams = /*#__PURE__*/ createResourceParams$9(getPersonalizationEsModelMapping_ConfigPropertyMetadata);
4479
4791
  function keyBuilder(luvio, config) {
4480
4792
  const resourceParams = createResourceParams(config);
4481
4793
  return keyBuilder$1(luvio, resourceParams);
4482
4794
  }
4483
4795
  function typeCheckConfig(untrustedConfig) {
4484
4796
  const config = {};
4485
- typeCheckConfig$8(untrustedConfig, config, getTrainingHistory_ConfigPropertyMetadata);
4797
+ typeCheckConfig$9(untrustedConfig, config, getPersonalizationEsModelMapping_ConfigPropertyMetadata);
4486
4798
  return config;
4487
4799
  }
4488
4800
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -4531,7 +4843,7 @@ function buildNetworkSnapshot(luvio, config, options) {
4531
4843
  });
4532
4844
  }
4533
4845
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
4534
- return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
4846
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
4535
4847
  }
4536
4848
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
4537
4849
  const { luvio, config } = context;
@@ -4546,8 +4858,8 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
4546
4858
  });
4547
4859
  return cacheSnapshot;
4548
4860
  }
4549
- const getTrainingHistoryAdapterFactory = (luvio) => function personalizationService__getTrainingHistory(untrustedConfig, requestContext) {
4550
- const config = validateAdapterConfig(untrustedConfig, getTrainingHistory_ConfigPropertyNames);
4861
+ const getPersonalizationEsModelMappingAdapterFactory = (luvio) => function personalizationService__getPersonalizationEsModelMapping(untrustedConfig, requestContext) {
4862
+ const config = validateAdapterConfig(untrustedConfig, getPersonalizationEsModelMapping_ConfigPropertyNames);
4551
4863
  // Invalid or incomplete config
4552
4864
  if (config === null) {
4553
4865
  return null;
@@ -4556,4 +4868,4 @@ const getTrainingHistoryAdapterFactory = (luvio) => function personalizationServ
4556
4868
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
4557
4869
  };
4558
4870
 
4559
- export { createPersonalizationPointAdapterFactory, createPersonalizationSchemaAdapterFactory, deletePersonalizationPointAdapterFactory, deletePersonalizationSchemaAdapterFactory, getPersonalizationPointAdapterFactory, getPersonalizationSchemaAdapterFactory, getTrainingHistoryAdapterFactory, updatePersonalizationPointAdapterFactory };
4871
+ export { createPersonalizationPointAdapterFactory, createPersonalizationSchemaAdapterFactory, deletePersonalizationPointAdapterFactory, deletePersonalizationSchemaAdapterFactory, getPersonalizationEsModelMappingAdapterFactory, getPersonalizationPointAdapterFactory, getPersonalizationSchemaAdapterFactory, getTrainingHistoryAdapterFactory, updatePersonalizationPointAdapterFactory };