@salesforce/lds-adapters-cdp-personalization-service 1.347.1 → 1.348.1

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.
Files changed (28) hide show
  1. package/dist/es/es2018/cdp-personalization-service.js +702 -353
  2. package/dist/es/es2018/types/src/generated/adapters/postPersonalizationRecommenderSimulateAction.d.ts +33 -0
  3. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
  4. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
  5. package/dist/es/es2018/types/src/generated/resources/postPersonalizationPersonalizationRecommendersActionsSimulateByIdOrName.d.ts +23 -0
  6. package/dist/es/es2018/types/src/generated/types/AbstractFieldPredicateInputRepresentation.d.ts +34 -0
  7. package/dist/es/es2018/types/src/generated/types/AbstractFieldRuleInputRepresentation.d.ts +31 -0
  8. package/dist/es/es2018/types/src/generated/types/AnchorReferenceRepresentation.d.ts +31 -0
  9. package/dist/es/es2018/types/src/generated/types/BasePredicateInputRepresentation.d.ts +25 -0
  10. package/dist/es/es2018/types/src/generated/types/BaseRuleInputRepresentation.d.ts +25 -0
  11. package/dist/es/es2018/types/src/generated/types/CalculatedInsightPredicateInputRepresentation.d.ts +40 -0
  12. package/dist/es/es2018/types/src/generated/types/CalculatedInsightRuleInputRepresentation.d.ts +40 -0
  13. package/dist/es/es2018/types/src/generated/types/DateOnlyPredicateInputRepresentation.d.ts +31 -0
  14. package/dist/es/es2018/types/src/generated/types/FieldPredicateInputRepresentation.d.ts +34 -0
  15. package/dist/es/es2018/types/src/generated/types/FieldRuleInputRepresentation.d.ts +31 -0
  16. package/dist/es/es2018/types/src/generated/types/NumberPredicateInputRepresentation.d.ts +31 -0
  17. package/dist/es/es2018/types/src/generated/types/PersonalizationRecommenderSimulateActionInputRepresentation.d.ts +39 -0
  18. package/dist/es/es2018/types/src/generated/types/PersonalizationRecommenderSimulateActionRepresentation.d.ts +29 -0
  19. package/dist/es/es2018/types/src/generated/types/RelatedFieldPredicateInputRepresentation.d.ts +40 -0
  20. package/dist/es/es2018/types/src/generated/types/RelatedFieldRuleInputRepresentation.d.ts +37 -0
  21. package/dist/es/es2018/types/src/generated/types/RuleGroupInputRepresentation.d.ts +31 -0
  22. package/dist/es/es2018/types/src/generated/types/SegmentMembershipPredicateInputRepresentation.d.ts +28 -0
  23. package/dist/es/es2018/types/src/generated/types/SortCriteriaInputRepresentation.d.ts +34 -0
  24. package/dist/es/es2018/types/src/generated/types/TextPredicateInputRepresentation.d.ts +31 -0
  25. package/package.json +3 -3
  26. package/sfdc/index.js +774 -413
  27. package/src/raml/api.raml +392 -22
  28. package/src/raml/luvio.raml +13 -4
@@ -4,10 +4,11 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$9, typeCheckConfig as typeCheckConfig$9, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$4 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$a, typeCheckConfig as typeCheckConfig$a, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5 } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
11
+ const { stringify: JSONStringify$1 } = JSON;
11
12
  const { isArray: ArrayIsArray$1 } = Array;
12
13
  /**
13
14
  * Validates an adapter config is well-formed.
@@ -48,6 +49,61 @@ const snapshotRefreshOptions = {
48
49
  },
49
50
  }
50
51
  };
52
+ /**
53
+ * A deterministic JSON stringify implementation. Heavily adapted from https://github.com/epoberezkin/fast-json-stable-stringify.
54
+ * This is needed because insertion order for JSON.stringify(object) affects output:
55
+ * JSON.stringify({a: 1, b: 2})
56
+ * "{"a":1,"b":2}"
57
+ * JSON.stringify({b: 2, a: 1})
58
+ * "{"b":2,"a":1}"
59
+ * @param data Data to be JSON-stringified.
60
+ * @returns JSON.stringified value with consistent ordering of keys.
61
+ */
62
+ function stableJSONStringify(node) {
63
+ // This is for Date values.
64
+ if (node && node.toJSON && typeof node.toJSON === 'function') {
65
+ // eslint-disable-next-line no-param-reassign
66
+ node = node.toJSON();
67
+ }
68
+ if (node === undefined) {
69
+ return;
70
+ }
71
+ if (typeof node === 'number') {
72
+ return isFinite(node) ? '' + node : 'null';
73
+ }
74
+ if (typeof node !== 'object') {
75
+ return JSONStringify$1(node);
76
+ }
77
+ let i;
78
+ let out;
79
+ if (ArrayIsArray$1(node)) {
80
+ out = '[';
81
+ for (i = 0; i < node.length; i++) {
82
+ if (i) {
83
+ out += ',';
84
+ }
85
+ out += stableJSONStringify(node[i]) || 'null';
86
+ }
87
+ return out + ']';
88
+ }
89
+ if (node === null) {
90
+ return 'null';
91
+ }
92
+ const keys = ObjectKeys(node).sort();
93
+ out = '';
94
+ for (i = 0; i < keys.length; i++) {
95
+ const key = keys[i];
96
+ const value = stableJSONStringify(node[key]);
97
+ if (!value) {
98
+ continue;
99
+ }
100
+ if (out) {
101
+ out += ',';
102
+ }
103
+ out += JSONStringify$1(key) + ':' + value;
104
+ }
105
+ return '{' + out + '}';
106
+ }
51
107
  function generateParamConfigMetadata(name, required, resourceType, typeCheckShape, isArrayShape = false, coerceFn) {
52
108
  return {
53
109
  name,
@@ -92,7 +148,7 @@ function createLink(ref) {
92
148
  };
93
149
  }
94
150
 
95
- function validate$f(obj, path = 'PersonalizationAttributeValueInputRepresentation') {
151
+ function validate$i(obj, path = 'PersonalizationAttributeValueInputRepresentation') {
96
152
  const v_error = (() => {
97
153
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
98
154
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -183,7 +239,7 @@ function validate$f(obj, path = 'PersonalizationAttributeValueInputRepresentatio
183
239
  return v_error === undefined ? null : v_error;
184
240
  }
185
241
 
186
- function validate$e(obj, path = 'PersonalizationDecisionInputRepresentation') {
242
+ function validate$h(obj, path = 'PersonalizationDecisionInputRepresentation') {
187
243
  const v_error = (() => {
188
244
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
189
245
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -197,7 +253,7 @@ function validate$e(obj, path = 'PersonalizationDecisionInputRepresentation') {
197
253
  for (let i = 0; i < obj_attributeValues.length; i++) {
198
254
  const obj_attributeValues_item = obj_attributeValues[i];
199
255
  const path_attributeValues_item = path_attributeValues + '[' + i + ']';
200
- const referencepath_attributeValues_itemValidationError = validate$f(obj_attributeValues_item, path_attributeValues_item);
256
+ const referencepath_attributeValues_itemValidationError = validate$i(obj_attributeValues_item, path_attributeValues_item);
201
257
  if (referencepath_attributeValues_itemValidationError !== null) {
202
258
  let message = 'Object doesn\'t match PersonalizationAttributeValueInputRepresentation (at "' + path_attributeValues_item + '")\n';
203
259
  message += referencepath_attributeValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -371,8 +427,8 @@ function validate$e(obj, path = 'PersonalizationDecisionInputRepresentation') {
371
427
  return v_error === undefined ? null : v_error;
372
428
  }
373
429
 
374
- const VERSION$a = "52ea9c14b7a747a28cedbcff0e7ab169";
375
- function validate$d(obj, path = 'PersonalizationAttributeValueRepresentation') {
430
+ const VERSION$b = "52ea9c14b7a747a28cedbcff0e7ab169";
431
+ function validate$g(obj, path = 'PersonalizationAttributeValueRepresentation') {
376
432
  const v_error = (() => {
377
433
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
378
434
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -458,10 +514,10 @@ function validate$d(obj, path = 'PersonalizationAttributeValueRepresentation') {
458
514
  })();
459
515
  return v_error === undefined ? null : v_error;
460
516
  }
461
- const select$h = function PersonalizationAttributeValueRepresentationSelect() {
517
+ const select$j = function PersonalizationAttributeValueRepresentationSelect() {
462
518
  return {
463
519
  kind: 'Fragment',
464
- version: VERSION$a,
520
+ version: VERSION$b,
465
521
  private: [],
466
522
  selections: [
467
523
  {
@@ -479,7 +535,7 @@ const select$h = function PersonalizationAttributeValueRepresentationSelect() {
479
535
  ]
480
536
  };
481
537
  };
482
- function equals$a(existing, incoming) {
538
+ function equals$b(existing, incoming) {
483
539
  const existing_attributeEnum = existing.attributeEnum;
484
540
  const incoming_attributeEnum = incoming.attributeEnum;
485
541
  if (!(existing_attributeEnum === incoming_attributeEnum)) {
@@ -498,7 +554,7 @@ function equals$a(existing, incoming) {
498
554
  return true;
499
555
  }
500
556
 
501
- function validate$c(obj, path = 'FiltersWrapRepresentation') {
557
+ function validate$f(obj, path = 'FiltersWrapRepresentation') {
502
558
  const v_error = (() => {
503
559
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
504
560
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -577,7 +633,7 @@ function validate$c(obj, path = 'FiltersWrapRepresentation') {
577
633
  return v_error === undefined ? null : v_error;
578
634
  }
579
635
 
580
- function validate$b(obj, path = 'SubjectRepresentation') {
636
+ function validate$e(obj, path = 'SubjectRepresentation') {
581
637
  const v_error = (() => {
582
638
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
583
639
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -696,8 +752,8 @@ function validate$b(obj, path = 'SubjectRepresentation') {
696
752
  return v_error === undefined ? null : v_error;
697
753
  }
698
754
 
699
- const VERSION$9 = "089c2877ffa367e376fe74f8d358ffa8";
700
- function validate$a(obj, path = 'FilterRepresentation') {
755
+ const VERSION$a = "089c2877ffa367e376fe74f8d358ffa8";
756
+ function validate$d(obj, path = 'FilterRepresentation') {
701
757
  const v_error = (() => {
702
758
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
703
759
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -735,7 +791,7 @@ function validate$a(obj, path = 'FilterRepresentation') {
735
791
  const path_comparison = path + '.comparison';
736
792
  let obj_comparison_union0 = null;
737
793
  const obj_comparison_union0_error = (() => {
738
- const referencepath_comparisonValidationError = validate$a(obj_comparison, path_comparison);
794
+ const referencepath_comparisonValidationError = validate$d(obj_comparison, path_comparison);
739
795
  if (referencepath_comparisonValidationError !== null) {
740
796
  let message = 'Object doesn\'t match FilterRepresentation (at "' + path_comparison + '")\n';
741
797
  message += referencepath_comparisonValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -766,7 +822,7 @@ function validate$a(obj, path = 'FilterRepresentation') {
766
822
  const path_filter = path + '.filter';
767
823
  let obj_filter_union0 = null;
768
824
  const obj_filter_union0_error = (() => {
769
- const referencepath_filterValidationError = validate$c(obj_filter, path_filter);
825
+ const referencepath_filterValidationError = validate$f(obj_filter, path_filter);
770
826
  if (referencepath_filterValidationError !== null) {
771
827
  let message = 'Object doesn\'t match FiltersWrapRepresentation (at "' + path_filter + '")\n';
772
828
  message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -803,7 +859,7 @@ function validate$a(obj, path = 'FilterRepresentation') {
803
859
  const path_filters_item = path_filters + '[' + i + ']';
804
860
  let obj_filters_item_union0 = null;
805
861
  const obj_filters_item_union0_error = (() => {
806
- const referencepath_filters_itemValidationError = validate$a(obj_filters_item, path_filters_item);
862
+ const referencepath_filters_itemValidationError = validate$d(obj_filters_item, path_filters_item);
807
863
  if (referencepath_filters_itemValidationError !== null) {
808
864
  let message = 'Object doesn\'t match FilterRepresentation (at "' + path_filters_item + '")\n';
809
865
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -863,7 +919,7 @@ function validate$a(obj, path = 'FilterRepresentation') {
863
919
  const path_metric = path + '.metric';
864
920
  let obj_metric_union0 = null;
865
921
  const obj_metric_union0_error = (() => {
866
- const referencepath_metricValidationError = validate$b(obj_metric, path_metric);
922
+ const referencepath_metricValidationError = validate$e(obj_metric, path_metric);
867
923
  if (referencepath_metricValidationError !== null) {
868
924
  let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_metric + '")\n';
869
925
  message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -932,7 +988,7 @@ function validate$a(obj, path = 'FilterRepresentation') {
932
988
  for (let i = 0; i < obj_path_item.length; i++) {
933
989
  const obj_path_item_item = obj_path_item[i];
934
990
  const path_path_item_item = path_path_item + '[' + i + ']';
935
- const referencepath_path_item_itemValidationError = validate$b(obj_path_item_item, path_path_item_item);
991
+ const referencepath_path_item_itemValidationError = validate$e(obj_path_item_item, path_path_item_item);
936
992
  if (referencepath_path_item_itemValidationError !== null) {
937
993
  let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_path_item_item + '")\n';
938
994
  message += referencepath_path_item_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1030,7 +1086,7 @@ function validate$a(obj, path = 'FilterRepresentation') {
1030
1086
  const path_subject = path + '.subject';
1031
1087
  let obj_subject_union0 = null;
1032
1088
  const obj_subject_union0_error = (() => {
1033
- const referencepath_subjectValidationError = validate$b(obj_subject, path_subject);
1089
+ const referencepath_subjectValidationError = validate$e(obj_subject, path_subject);
1034
1090
  if (referencepath_subjectValidationError !== null) {
1035
1091
  let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_subject + '")\n';
1036
1092
  message += referencepath_subjectValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1129,48 +1185,48 @@ function validate$a(obj, path = 'FilterRepresentation') {
1129
1185
  })();
1130
1186
  return v_error === undefined ? null : v_error;
1131
1187
  }
1132
- const RepresentationType$6 = 'FilterRepresentation';
1133
- function normalize$6(input, existing, path, luvio, store, timestamp) {
1188
+ const RepresentationType$7 = 'FilterRepresentation';
1189
+ function normalize$7(input, existing, path, luvio, store, timestamp) {
1134
1190
  return input;
1135
1191
  }
1136
- const select$g = function FilterRepresentationSelect() {
1192
+ const select$i = function FilterRepresentationSelect() {
1137
1193
  return {
1138
1194
  kind: 'Fragment',
1139
- version: VERSION$9,
1195
+ version: VERSION$a,
1140
1196
  private: [],
1141
1197
  opaque: true
1142
1198
  };
1143
1199
  };
1144
- function equals$9(existing, incoming) {
1200
+ function equals$a(existing, incoming) {
1145
1201
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
1146
1202
  return false;
1147
1203
  }
1148
1204
  return true;
1149
1205
  }
1150
- const ingest$6 = function FilterRepresentationIngest(input, path, luvio, store, timestamp) {
1206
+ const ingest$7 = function FilterRepresentationIngest(input, path, luvio, store, timestamp) {
1151
1207
  if (process.env.NODE_ENV !== 'production') {
1152
- const validateError = validate$a(input);
1208
+ const validateError = validate$d(input);
1153
1209
  if (validateError !== null) {
1154
1210
  throw validateError;
1155
1211
  }
1156
1212
  }
1157
1213
  const key = path.fullPath;
1158
1214
  const ttlToUse = path.ttl;
1159
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "personalization-service", VERSION$9, RepresentationType$6, equals$9);
1215
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "personalization-service", VERSION$a, RepresentationType$7, equals$a);
1160
1216
  return createLink(key);
1161
1217
  };
1162
- function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1218
+ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
1163
1219
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1164
1220
  const rootKey = fullPathFactory();
1165
1221
  rootKeySet.set(rootKey, {
1166
1222
  namespace: keyPrefix,
1167
- representationName: RepresentationType$6,
1223
+ representationName: RepresentationType$7,
1168
1224
  mergeable: false
1169
1225
  });
1170
1226
  }
1171
1227
 
1172
- const VERSION$8 = "ea475f10b4c028f8b97a44af1cf0be14";
1173
- function validate$9(obj, path = 'CriteriaRepresentation') {
1228
+ const VERSION$9 = "ea475f10b4c028f8b97a44af1cf0be14";
1229
+ function validate$c(obj, path = 'CriteriaRepresentation') {
1174
1230
  const v_error = (() => {
1175
1231
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1176
1232
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1200,14 +1256,14 @@ function validate$9(obj, path = 'CriteriaRepresentation') {
1200
1256
  })();
1201
1257
  return v_error === undefined ? null : v_error;
1202
1258
  }
1203
- const RepresentationType$5 = 'CriteriaRepresentation';
1204
- function normalize$5(input, existing, path, luvio, store, timestamp) {
1259
+ const RepresentationType$6 = 'CriteriaRepresentation';
1260
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
1205
1261
  const input_filters = input.filters;
1206
1262
  const input_filters_id = path.fullPath + '__filters';
1207
1263
  for (let i = 0; i < input_filters.length; i++) {
1208
1264
  const input_filters_item = input_filters[i];
1209
1265
  let input_filters_item_id = input_filters_id + '__' + i;
1210
- input_filters[i] = ingest$6(input_filters_item, {
1266
+ input_filters[i] = ingest$7(input_filters_item, {
1211
1267
  fullPath: input_filters_item_id,
1212
1268
  propertyName: i,
1213
1269
  parent: {
@@ -1220,17 +1276,17 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
1220
1276
  }
1221
1277
  return input;
1222
1278
  }
1223
- const select$f = function CriteriaRepresentationSelect() {
1279
+ const select$h = function CriteriaRepresentationSelect() {
1224
1280
  return {
1225
1281
  kind: 'Fragment',
1226
- version: VERSION$8,
1282
+ version: VERSION$9,
1227
1283
  private: [],
1228
1284
  selections: [
1229
1285
  {
1230
1286
  name: 'filters',
1231
1287
  kind: 'Link',
1232
1288
  plural: true,
1233
- fragment: select$g()
1289
+ fragment: select$i()
1234
1290
  },
1235
1291
  {
1236
1292
  name: 'operator',
@@ -1243,7 +1299,7 @@ const select$f = function CriteriaRepresentationSelect() {
1243
1299
  ]
1244
1300
  };
1245
1301
  };
1246
- function equals$8(existing, incoming) {
1302
+ function equals$9(existing, incoming) {
1247
1303
  const existing_operator = existing.operator;
1248
1304
  const incoming_operator = incoming.operator;
1249
1305
  if (!(existing_operator === incoming_operator)) {
@@ -1266,34 +1322,34 @@ function equals$8(existing, incoming) {
1266
1322
  }
1267
1323
  return true;
1268
1324
  }
1269
- const ingest$5 = function CriteriaRepresentationIngest(input, path, luvio, store, timestamp) {
1325
+ const ingest$6 = function CriteriaRepresentationIngest(input, path, luvio, store, timestamp) {
1270
1326
  if (process.env.NODE_ENV !== 'production') {
1271
- const validateError = validate$9(input);
1327
+ const validateError = validate$c(input);
1272
1328
  if (validateError !== null) {
1273
1329
  throw validateError;
1274
1330
  }
1275
1331
  }
1276
1332
  const key = path.fullPath;
1277
1333
  const ttlToUse = path.ttl;
1278
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "personalization-service", VERSION$8, RepresentationType$5, equals$8);
1334
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "personalization-service", VERSION$9, RepresentationType$6, equals$9);
1279
1335
  return createLink(key);
1280
1336
  };
1281
- function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1337
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1282
1338
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1283
1339
  const rootKey = fullPathFactory();
1284
1340
  rootKeySet.set(rootKey, {
1285
1341
  namespace: keyPrefix,
1286
- representationName: RepresentationType$5,
1342
+ representationName: RepresentationType$6,
1287
1343
  mergeable: false
1288
1344
  });
1289
1345
  const input_filters_length = input.filters.length;
1290
1346
  for (let i = 0; i < input_filters_length; i++) {
1291
- getTypeCacheKeys$6(rootKeySet, luvio, input.filters[i], () => '');
1347
+ getTypeCacheKeys$7(rootKeySet, luvio, input.filters[i], () => '');
1292
1348
  }
1293
1349
  }
1294
1350
 
1295
- const VERSION$7 = "265767af783b296f5f902d6ed447b168";
1296
- function validate$8(obj, path = 'PersonalizationDecisionRepresentation') {
1351
+ const VERSION$8 = "265767af783b296f5f902d6ed447b168";
1352
+ function validate$b(obj, path = 'PersonalizationDecisionRepresentation') {
1297
1353
  const v_error = (() => {
1298
1354
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1299
1355
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1306,7 +1362,7 @@ function validate$8(obj, path = 'PersonalizationDecisionRepresentation') {
1306
1362
  for (let i = 0; i < obj_attributeValues.length; i++) {
1307
1363
  const obj_attributeValues_item = obj_attributeValues[i];
1308
1364
  const path_attributeValues_item = path_attributeValues + '[' + i + ']';
1309
- const referencepath_attributeValues_itemValidationError = validate$d(obj_attributeValues_item, path_attributeValues_item);
1365
+ const referencepath_attributeValues_itemValidationError = validate$g(obj_attributeValues_item, path_attributeValues_item);
1310
1366
  if (referencepath_attributeValues_itemValidationError !== null) {
1311
1367
  let message = 'Object doesn\'t match PersonalizationAttributeValueRepresentation (at "' + path_attributeValues_item + '")\n';
1312
1368
  message += referencepath_attributeValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1628,12 +1684,12 @@ function validate$8(obj, path = 'PersonalizationDecisionRepresentation') {
1628
1684
  })();
1629
1685
  return v_error === undefined ? null : v_error;
1630
1686
  }
1631
- const RepresentationType$4 = 'PersonalizationDecisionRepresentation';
1632
- function normalize$4(input, existing, path, luvio, store, timestamp) {
1687
+ const RepresentationType$5 = 'PersonalizationDecisionRepresentation';
1688
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
1633
1689
  const input_criteria = input.criteria;
1634
1690
  const input_criteria_id = path.fullPath + '__criteria';
1635
1691
  if (input_criteria !== null && typeof input_criteria === 'object') {
1636
- input.criteria = ingest$5(input_criteria, {
1692
+ input.criteria = ingest$6(input_criteria, {
1637
1693
  fullPath: input_criteria_id,
1638
1694
  propertyName: 'criteria',
1639
1695
  parent: {
@@ -1646,11 +1702,11 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
1646
1702
  }
1647
1703
  return input;
1648
1704
  }
1649
- const select$e = function PersonalizationDecisionRepresentationSelect() {
1650
- const { selections: PersonalizationAttributeValueRepresentation__selections, opaque: PersonalizationAttributeValueRepresentation__opaque, } = select$h();
1705
+ const select$g = function PersonalizationDecisionRepresentationSelect() {
1706
+ const { selections: PersonalizationAttributeValueRepresentation__selections, opaque: PersonalizationAttributeValueRepresentation__opaque, } = select$j();
1651
1707
  return {
1652
1708
  kind: 'Fragment',
1653
- version: VERSION$7,
1709
+ version: VERSION$8,
1654
1710
  private: [],
1655
1711
  selections: [
1656
1712
  {
@@ -1671,7 +1727,7 @@ const select$e = function PersonalizationDecisionRepresentationSelect() {
1671
1727
  name: 'criteria',
1672
1728
  kind: 'Link',
1673
1729
  nullable: true,
1674
- fragment: select$f()
1730
+ fragment: select$h()
1675
1731
  },
1676
1732
  {
1677
1733
  name: 'description',
@@ -1712,11 +1768,11 @@ const select$e = function PersonalizationDecisionRepresentationSelect() {
1712
1768
  ]
1713
1769
  };
1714
1770
  };
1715
- function equals$7(existing, incoming) {
1771
+ function equals$8(existing, incoming) {
1716
1772
  const existing_attributeValues = existing.attributeValues;
1717
1773
  const incoming_attributeValues = incoming.attributeValues;
1718
1774
  const equals_attributeValues_items = equalsArray(existing_attributeValues, incoming_attributeValues, (existing_attributeValues_item, incoming_attributeValues_item) => {
1719
- if (!(equals$a(existing_attributeValues_item, incoming_attributeValues_item))) {
1775
+ if (!(equals$b(existing_attributeValues_item, incoming_attributeValues_item))) {
1720
1776
  return false;
1721
1777
  }
1722
1778
  });
@@ -1790,34 +1846,34 @@ function equals$7(existing, incoming) {
1790
1846
  }
1791
1847
  return true;
1792
1848
  }
1793
- const ingest$4 = function PersonalizationDecisionRepresentationIngest(input, path, luvio, store, timestamp) {
1849
+ const ingest$5 = function PersonalizationDecisionRepresentationIngest(input, path, luvio, store, timestamp) {
1794
1850
  if (process.env.NODE_ENV !== 'production') {
1795
- const validateError = validate$8(input);
1851
+ const validateError = validate$b(input);
1796
1852
  if (validateError !== null) {
1797
1853
  throw validateError;
1798
1854
  }
1799
1855
  }
1800
1856
  const key = path.fullPath;
1801
1857
  const ttlToUse = path.ttl;
1802
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "personalization-service", VERSION$7, RepresentationType$4, equals$7);
1858
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "personalization-service", VERSION$8, RepresentationType$5, equals$8);
1803
1859
  return createLink(key);
1804
1860
  };
1805
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
1861
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1806
1862
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1807
1863
  const rootKey = fullPathFactory();
1808
1864
  rootKeySet.set(rootKey, {
1809
1865
  namespace: keyPrefix,
1810
- representationName: RepresentationType$4,
1866
+ representationName: RepresentationType$5,
1811
1867
  mergeable: false
1812
1868
  });
1813
1869
  if (input.criteria !== null && typeof input.criteria === 'object') {
1814
- getTypeCacheKeys$5(rootKeySet, luvio, input.criteria, () => rootKey + "__" + "criteria");
1870
+ getTypeCacheKeys$6(rootKeySet, luvio, input.criteria, () => rootKey + "__" + "criteria");
1815
1871
  }
1816
1872
  }
1817
1873
 
1818
- const TTL$3 = 600;
1819
- const VERSION$6 = "e5643ca13ef54c890c9177275a053de3";
1820
- function validate$7(obj, path = 'PersonalizationPointRepresentation') {
1874
+ const TTL$4 = 600;
1875
+ const VERSION$7 = "e5643ca13ef54c890c9177275a053de3";
1876
+ function validate$a(obj, path = 'PersonalizationPointRepresentation') {
1821
1877
  const v_error = (() => {
1822
1878
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1823
1879
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2294,23 +2350,23 @@ function validate$7(obj, path = 'PersonalizationPointRepresentation') {
2294
2350
  })();
2295
2351
  return v_error === undefined ? null : v_error;
2296
2352
  }
2297
- const RepresentationType$3 = 'PersonalizationPointRepresentation';
2298
- function keyBuilder$b(luvio, config) {
2299
- return keyPrefix + '::' + RepresentationType$3 + ':' + (config.id === null ? '' : config.id);
2353
+ const RepresentationType$4 = 'PersonalizationPointRepresentation';
2354
+ function keyBuilder$d(luvio, config) {
2355
+ return keyPrefix + '::' + RepresentationType$4 + ':' + (config.id === null ? '' : config.id);
2300
2356
  }
2301
2357
  function keyBuilderFromType$1(luvio, object) {
2302
2358
  const keyParams = {
2303
2359
  id: object.name
2304
2360
  };
2305
- return keyBuilder$b(luvio, keyParams);
2361
+ return keyBuilder$d(luvio, keyParams);
2306
2362
  }
2307
- function normalize$3(input, existing, path, luvio, store, timestamp) {
2363
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
2308
2364
  const input_decisions = input.decisions;
2309
2365
  const input_decisions_id = path.fullPath + '__decisions';
2310
2366
  for (let i = 0; i < input_decisions.length; i++) {
2311
2367
  const input_decisions_item = input_decisions[i];
2312
2368
  let input_decisions_item_id = input_decisions_id + '__' + i;
2313
- input_decisions[i] = ingest$4(input_decisions_item, {
2369
+ input_decisions[i] = ingest$5(input_decisions_item, {
2314
2370
  fullPath: input_decisions_item_id,
2315
2371
  propertyName: i,
2316
2372
  parent: {
@@ -2323,10 +2379,10 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
2323
2379
  }
2324
2380
  return input;
2325
2381
  }
2326
- const select$d = function PersonalizationPointRepresentationSelect() {
2382
+ const select$f = function PersonalizationPointRepresentationSelect() {
2327
2383
  return {
2328
2384
  kind: 'Fragment',
2329
- version: VERSION$6,
2385
+ version: VERSION$7,
2330
2386
  private: [],
2331
2387
  selections: [
2332
2388
  {
@@ -2349,7 +2405,7 @@ const select$d = function PersonalizationPointRepresentationSelect() {
2349
2405
  name: 'decisions',
2350
2406
  kind: 'Link',
2351
2407
  plural: true,
2352
- fragment: select$e()
2408
+ fragment: select$g()
2353
2409
  },
2354
2410
  {
2355
2411
  name: 'description',
@@ -2418,7 +2474,7 @@ const select$d = function PersonalizationPointRepresentationSelect() {
2418
2474
  ]
2419
2475
  };
2420
2476
  };
2421
- function equals$6(existing, incoming) {
2477
+ function equals$7(existing, incoming) {
2422
2478
  const existing_isAuthenticationRequired = existing.isAuthenticationRequired;
2423
2479
  const incoming_isAuthenticationRequired = incoming.isAuthenticationRequired;
2424
2480
  if (!(existing_isAuthenticationRequired === incoming_isAuthenticationRequired)) {
@@ -2531,45 +2587,45 @@ function equals$6(existing, incoming) {
2531
2587
  }
2532
2588
  return true;
2533
2589
  }
2534
- const ingest$3 = function PersonalizationPointRepresentationIngest(input, path, luvio, store, timestamp) {
2590
+ const ingest$4 = function PersonalizationPointRepresentationIngest(input, path, luvio, store, timestamp) {
2535
2591
  if (process.env.NODE_ENV !== 'production') {
2536
- const validateError = validate$7(input);
2592
+ const validateError = validate$a(input);
2537
2593
  if (validateError !== null) {
2538
2594
  throw validateError;
2539
2595
  }
2540
2596
  }
2541
2597
  const key = keyBuilderFromType$1(luvio, input);
2542
- const ttlToUse = TTL$3;
2543
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "personalization-service", VERSION$6, RepresentationType$3, equals$6);
2598
+ const ttlToUse = TTL$4;
2599
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "personalization-service", VERSION$7, RepresentationType$4, equals$7);
2544
2600
  return createLink(key);
2545
2601
  };
2546
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
2602
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
2547
2603
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2548
2604
  const rootKey = keyBuilderFromType$1(luvio, input);
2549
2605
  rootKeySet.set(rootKey, {
2550
2606
  namespace: keyPrefix,
2551
- representationName: RepresentationType$3,
2607
+ representationName: RepresentationType$4,
2552
2608
  mergeable: false
2553
2609
  });
2554
2610
  const input_decisions_length = input.decisions.length;
2555
2611
  for (let i = 0; i < input_decisions_length; i++) {
2556
- getTypeCacheKeys$4(rootKeySet, luvio, input.decisions[i], () => '');
2612
+ getTypeCacheKeys$5(rootKeySet, luvio, input.decisions[i], () => '');
2557
2613
  }
2558
2614
  }
2559
2615
 
2560
- function select$c(luvio, params) {
2561
- return select$d();
2616
+ function select$e(luvio, params) {
2617
+ return select$f();
2562
2618
  }
2563
- function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
2564
- getTypeCacheKeys$3(storeKeyMap, luvio, response);
2619
+ function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
2620
+ getTypeCacheKeys$4(storeKeyMap, luvio, response);
2565
2621
  }
2566
- function ingestSuccess$6(luvio, resourceParams, response) {
2622
+ function ingestSuccess$7(luvio, resourceParams, response) {
2567
2623
  const { body } = response;
2568
2624
  const key = keyBuilderFromType$1(luvio, body);
2569
- luvio.storeIngest(key, ingest$3, body);
2625
+ luvio.storeIngest(key, ingest$4, body);
2570
2626
  const snapshot = luvio.storeLookup({
2571
2627
  recordId: key,
2572
- node: select$c(),
2628
+ node: select$e(),
2573
2629
  variables: {},
2574
2630
  });
2575
2631
  if (process.env.NODE_ENV !== 'production') {
@@ -2580,7 +2636,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
2580
2636
  deepFreeze(snapshot.data);
2581
2637
  return snapshot;
2582
2638
  }
2583
- function createResourceRequest$8(config) {
2639
+ function createResourceRequest$9(config) {
2584
2640
  const headers = {};
2585
2641
  return {
2586
2642
  baseUri: '/services/data/v64.0',
@@ -2594,7 +2650,7 @@ function createResourceRequest$8(config) {
2594
2650
  };
2595
2651
  }
2596
2652
 
2597
- const adapterName$8 = 'createPersonalizationPoint';
2653
+ const adapterName$9 = 'createPersonalizationPoint';
2598
2654
  const createPersonalizationPoint_ConfigPropertyMetadata = [
2599
2655
  generateParamConfigMetadata('description', false, 2 /* Body */, 4 /* Unsupported */),
2600
2656
  generateParamConfigMetadata('label', true, 2 /* Body */, 4 /* Unsupported */),
@@ -2611,11 +2667,11 @@ const createPersonalizationPoint_ConfigPropertyMetadata = [
2611
2667
  generateParamConfigMetadata('isAuthenticationRequired', true, 2 /* Body */, 1 /* Boolean */),
2612
2668
  generateParamConfigMetadata('sourceRecordId', false, 2 /* Body */, 4 /* Unsupported */),
2613
2669
  ];
2614
- const createPersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, createPersonalizationPoint_ConfigPropertyMetadata);
2615
- const createResourceParams$8 = /*#__PURE__*/ createResourceParams$9(createPersonalizationPoint_ConfigPropertyMetadata);
2616
- function typeCheckConfig$8(untrustedConfig) {
2670
+ const createPersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, createPersonalizationPoint_ConfigPropertyMetadata);
2671
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$a(createPersonalizationPoint_ConfigPropertyMetadata);
2672
+ function typeCheckConfig$9(untrustedConfig) {
2617
2673
  const config = {};
2618
- typeCheckConfig$9(untrustedConfig, config, createPersonalizationPoint_ConfigPropertyMetadata);
2674
+ typeCheckConfig$a(untrustedConfig, config, createPersonalizationPoint_ConfigPropertyMetadata);
2619
2675
  const untrustedConfig_description = untrustedConfig.description;
2620
2676
  if (typeof untrustedConfig_description === 'string') {
2621
2677
  config.description = untrustedConfig_description;
@@ -2656,7 +2712,7 @@ function typeCheckConfig$8(untrustedConfig) {
2656
2712
  const untrustedConfig_decisions_array = [];
2657
2713
  for (let i = 0, arrayLength = untrustedConfig_decisions.length; i < arrayLength; i++) {
2658
2714
  const untrustedConfig_decisions_item = untrustedConfig_decisions[i];
2659
- const referencePersonalizationDecisionInputRepresentationValidationError = validate$e(untrustedConfig_decisions_item);
2715
+ const referencePersonalizationDecisionInputRepresentationValidationError = validate$h(untrustedConfig_decisions_item);
2660
2716
  if (referencePersonalizationDecisionInputRepresentationValidationError === null) {
2661
2717
  untrustedConfig_decisions_array.push(untrustedConfig_decisions_item);
2662
2718
  }
@@ -2707,30 +2763,30 @@ function typeCheckConfig$8(untrustedConfig) {
2707
2763
  }
2708
2764
  return config;
2709
2765
  }
2710
- function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
2766
+ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
2711
2767
  if (!untrustedIsObject(untrustedConfig)) {
2712
2768
  return null;
2713
2769
  }
2714
2770
  if (process.env.NODE_ENV !== 'production') {
2715
2771
  validateConfig(untrustedConfig, configPropertyNames);
2716
2772
  }
2717
- const config = typeCheckConfig$8(untrustedConfig);
2773
+ const config = typeCheckConfig$9(untrustedConfig);
2718
2774
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2719
2775
  return null;
2720
2776
  }
2721
2777
  return config;
2722
2778
  }
2723
- function buildNetworkSnapshot$8(luvio, config, options) {
2724
- const resourceParams = createResourceParams$8(config);
2725
- const request = createResourceRequest$8(resourceParams);
2779
+ function buildNetworkSnapshot$9(luvio, config, options) {
2780
+ const resourceParams = createResourceParams$9(config);
2781
+ const request = createResourceRequest$9(resourceParams);
2726
2782
  return luvio.dispatchResourceRequest(request, options)
2727
2783
  .then((response) => {
2728
2784
  return luvio.handleSuccessResponse(() => {
2729
- const snapshot = ingestSuccess$6(luvio, resourceParams, response);
2785
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response);
2730
2786
  return luvio.storeBroadcast().then(() => snapshot);
2731
2787
  }, () => {
2732
2788
  const cache = new StoreKeyMap();
2733
- getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
2789
+ getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
2734
2790
  return cache;
2735
2791
  });
2736
2792
  }, (response) => {
@@ -2740,33 +2796,33 @@ function buildNetworkSnapshot$8(luvio, config, options) {
2740
2796
  }
2741
2797
  const createPersonalizationPointAdapterFactory = (luvio) => {
2742
2798
  return function createPersonalizationPoint(untrustedConfig) {
2743
- const config = validateAdapterConfig$8(untrustedConfig, createPersonalizationPoint_ConfigPropertyNames);
2799
+ const config = validateAdapterConfig$9(untrustedConfig, createPersonalizationPoint_ConfigPropertyNames);
2744
2800
  // Invalid or incomplete config
2745
2801
  if (config === null) {
2746
2802
  throw new Error('Invalid config for "createPersonalizationPoint"');
2747
2803
  }
2748
- return buildNetworkSnapshot$8(luvio, config);
2804
+ return buildNetworkSnapshot$9(luvio, config);
2749
2805
  };
2750
2806
  };
2751
2807
 
2752
- function keyBuilder$a(luvio, params) {
2753
- return keyBuilder$b(luvio, {
2808
+ function keyBuilder$c(luvio, params) {
2809
+ return keyBuilder$d(luvio, {
2754
2810
  id: params.urlParams.idOrName
2755
2811
  });
2756
2812
  }
2757
- function getResponseCacheKeys$7(cacheKeyMap, luvio, resourceParams) {
2758
- const key = keyBuilder$a(luvio, resourceParams);
2813
+ function getResponseCacheKeys$8(cacheKeyMap, luvio, resourceParams) {
2814
+ const key = keyBuilder$c(luvio, resourceParams);
2759
2815
  cacheKeyMap.set(key, {
2760
2816
  namespace: keyPrefix,
2761
- representationName: RepresentationType$3,
2817
+ representationName: RepresentationType$4,
2762
2818
  mergeable: false
2763
2819
  });
2764
2820
  }
2765
2821
  function evictSuccess$1(luvio, resourceParams) {
2766
- const key = keyBuilder$a(luvio, resourceParams);
2822
+ const key = keyBuilder$c(luvio, resourceParams);
2767
2823
  luvio.storeEvict(key);
2768
2824
  }
2769
- function createResourceRequest$7(config) {
2825
+ function createResourceRequest$8(config) {
2770
2826
  const headers = {};
2771
2827
  return {
2772
2828
  baseUri: '/services/data/v64.0',
@@ -2780,33 +2836,33 @@ function createResourceRequest$7(config) {
2780
2836
  };
2781
2837
  }
2782
2838
 
2783
- const adapterName$7 = 'deletePersonalizationPoint';
2839
+ const adapterName$8 = 'deletePersonalizationPoint';
2784
2840
  const deletePersonalizationPoint_ConfigPropertyMetadata = [
2785
2841
  generateParamConfigMetadata('idOrName', true, 0 /* UrlParameter */, 0 /* String */),
2786
2842
  ];
2787
- const deletePersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, deletePersonalizationPoint_ConfigPropertyMetadata);
2788
- const createResourceParams$7 = /*#__PURE__*/ createResourceParams$9(deletePersonalizationPoint_ConfigPropertyMetadata);
2789
- function typeCheckConfig$7(untrustedConfig) {
2843
+ const deletePersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, deletePersonalizationPoint_ConfigPropertyMetadata);
2844
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$a(deletePersonalizationPoint_ConfigPropertyMetadata);
2845
+ function typeCheckConfig$8(untrustedConfig) {
2790
2846
  const config = {};
2791
- typeCheckConfig$9(untrustedConfig, config, deletePersonalizationPoint_ConfigPropertyMetadata);
2847
+ typeCheckConfig$a(untrustedConfig, config, deletePersonalizationPoint_ConfigPropertyMetadata);
2792
2848
  return config;
2793
2849
  }
2794
- function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
2850
+ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
2795
2851
  if (!untrustedIsObject(untrustedConfig)) {
2796
2852
  return null;
2797
2853
  }
2798
2854
  if (process.env.NODE_ENV !== 'production') {
2799
2855
  validateConfig(untrustedConfig, configPropertyNames);
2800
2856
  }
2801
- const config = typeCheckConfig$7(untrustedConfig);
2857
+ const config = typeCheckConfig$8(untrustedConfig);
2802
2858
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2803
2859
  return null;
2804
2860
  }
2805
2861
  return config;
2806
2862
  }
2807
- function buildNetworkSnapshot$7(luvio, config, options) {
2808
- const resourceParams = createResourceParams$7(config);
2809
- const request = createResourceRequest$7(resourceParams);
2863
+ function buildNetworkSnapshot$8(luvio, config, options) {
2864
+ const resourceParams = createResourceParams$8(config);
2865
+ const request = createResourceRequest$8(resourceParams);
2810
2866
  return luvio.dispatchResourceRequest(request, options)
2811
2867
  .then(() => {
2812
2868
  return luvio.handleSuccessResponse(() => {
@@ -2814,7 +2870,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
2814
2870
  return luvio.storeBroadcast();
2815
2871
  }, () => {
2816
2872
  const cache = new StoreKeyMap();
2817
- getResponseCacheKeys$7(cache, luvio, resourceParams);
2873
+ getResponseCacheKeys$8(cache, luvio, resourceParams);
2818
2874
  return cache;
2819
2875
  });
2820
2876
  }, (response) => {
@@ -2824,33 +2880,33 @@ function buildNetworkSnapshot$7(luvio, config, options) {
2824
2880
  }
2825
2881
  const deletePersonalizationPointAdapterFactory = (luvio) => {
2826
2882
  return function personalizationServicedeletePersonalizationPoint(untrustedConfig) {
2827
- const config = validateAdapterConfig$7(untrustedConfig, deletePersonalizationPoint_ConfigPropertyNames);
2883
+ const config = validateAdapterConfig$8(untrustedConfig, deletePersonalizationPoint_ConfigPropertyNames);
2828
2884
  // Invalid or incomplete config
2829
2885
  if (config === null) {
2830
- throw new Error(`Invalid config for "${adapterName$7}"`);
2886
+ throw new Error(`Invalid config for "${adapterName$8}"`);
2831
2887
  }
2832
- return buildNetworkSnapshot$7(luvio, config);
2888
+ return buildNetworkSnapshot$8(luvio, config);
2833
2889
  };
2834
2890
  };
2835
2891
 
2836
- function select$b(luvio, params) {
2837
- return select$d();
2892
+ function select$d(luvio, params) {
2893
+ return select$f();
2838
2894
  }
2839
- function keyBuilder$9(luvio, params) {
2840
- return keyBuilder$b(luvio, {
2895
+ function keyBuilder$b(luvio, params) {
2896
+ return keyBuilder$d(luvio, {
2841
2897
  id: params.urlParams.idOrName
2842
2898
  });
2843
2899
  }
2844
- function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
2845
- getTypeCacheKeys$3(storeKeyMap, luvio, response);
2900
+ function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
2901
+ getTypeCacheKeys$4(storeKeyMap, luvio, response);
2846
2902
  }
2847
- function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
2903
+ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
2848
2904
  const { body } = response;
2849
- const key = keyBuilder$9(luvio, resourceParams);
2850
- luvio.storeIngest(key, ingest$3, body);
2905
+ const key = keyBuilder$b(luvio, resourceParams);
2906
+ luvio.storeIngest(key, ingest$4, body);
2851
2907
  const snapshot = luvio.storeLookup({
2852
2908
  recordId: key,
2853
- node: select$b(),
2909
+ node: select$d(),
2854
2910
  variables: {},
2855
2911
  }, snapshotRefresh);
2856
2912
  if (process.env.NODE_ENV !== 'production') {
@@ -2861,19 +2917,19 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
2861
2917
  deepFreeze(snapshot.data);
2862
2918
  return snapshot;
2863
2919
  }
2864
- function ingestError$3(luvio, params, error, snapshotRefresh) {
2865
- const key = keyBuilder$9(luvio, params);
2920
+ function ingestError$4(luvio, params, error, snapshotRefresh) {
2921
+ const key = keyBuilder$b(luvio, params);
2866
2922
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2867
2923
  const storeMetadataParams = {
2868
- ttl: TTL$3,
2924
+ ttl: TTL$4,
2869
2925
  namespace: keyPrefix,
2870
- version: VERSION$6,
2871
- representationName: RepresentationType$3
2926
+ version: VERSION$7,
2927
+ representationName: RepresentationType$4
2872
2928
  };
2873
2929
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2874
2930
  return errorSnapshot;
2875
2931
  }
2876
- function createResourceRequest$6(config) {
2932
+ function createResourceRequest$7(config) {
2877
2933
  const headers = {};
2878
2934
  return {
2879
2935
  baseUri: '/services/data/v64.0',
@@ -2887,105 +2943,105 @@ function createResourceRequest$6(config) {
2887
2943
  };
2888
2944
  }
2889
2945
 
2890
- const adapterName$6 = 'getPersonalizationPoint';
2946
+ const adapterName$7 = 'getPersonalizationPoint';
2891
2947
  const getPersonalizationPoint_ConfigPropertyMetadata = [
2892
2948
  generateParamConfigMetadata('idOrName', true, 0 /* UrlParameter */, 0 /* String */),
2893
2949
  ];
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);
2950
+ const getPersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getPersonalizationPoint_ConfigPropertyMetadata);
2951
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$a(getPersonalizationPoint_ConfigPropertyMetadata);
2952
+ function keyBuilder$a(luvio, config) {
2953
+ const resourceParams = createResourceParams$7(config);
2954
+ return keyBuilder$b(luvio, resourceParams);
2899
2955
  }
2900
- function typeCheckConfig$6(untrustedConfig) {
2956
+ function typeCheckConfig$7(untrustedConfig) {
2901
2957
  const config = {};
2902
- typeCheckConfig$9(untrustedConfig, config, getPersonalizationPoint_ConfigPropertyMetadata);
2958
+ typeCheckConfig$a(untrustedConfig, config, getPersonalizationPoint_ConfigPropertyMetadata);
2903
2959
  return config;
2904
2960
  }
2905
- function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
2961
+ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
2906
2962
  if (!untrustedIsObject(untrustedConfig)) {
2907
2963
  return null;
2908
2964
  }
2909
2965
  if (process.env.NODE_ENV !== 'production') {
2910
2966
  validateConfig(untrustedConfig, configPropertyNames);
2911
2967
  }
2912
- const config = typeCheckConfig$6(untrustedConfig);
2968
+ const config = typeCheckConfig$7(untrustedConfig);
2913
2969
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2914
2970
  return null;
2915
2971
  }
2916
2972
  return config;
2917
2973
  }
2918
- function adapterFragment$3(luvio, config) {
2919
- createResourceParams$6(config);
2920
- return select$b();
2974
+ function adapterFragment$4(luvio, config) {
2975
+ createResourceParams$7(config);
2976
+ return select$d();
2921
2977
  }
2922
- function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
2923
- const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
2978
+ function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
2979
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
2924
2980
  config,
2925
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
2981
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
2926
2982
  });
2927
2983
  return luvio.storeBroadcast().then(() => snapshot);
2928
2984
  }
2929
- function onFetchResponseError$3(luvio, config, resourceParams, response) {
2930
- const snapshot = ingestError$3(luvio, resourceParams, response, {
2985
+ function onFetchResponseError$4(luvio, config, resourceParams, response) {
2986
+ const snapshot = ingestError$4(luvio, resourceParams, response, {
2931
2987
  config,
2932
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
2988
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
2933
2989
  });
2934
2990
  return luvio.storeBroadcast().then(() => snapshot);
2935
2991
  }
2936
- function buildNetworkSnapshot$6(luvio, config, options) {
2937
- const resourceParams = createResourceParams$6(config);
2938
- const request = createResourceRequest$6(resourceParams);
2992
+ function buildNetworkSnapshot$7(luvio, config, options) {
2993
+ const resourceParams = createResourceParams$7(config);
2994
+ const request = createResourceRequest$7(resourceParams);
2939
2995
  return luvio.dispatchResourceRequest(request, options)
2940
2996
  .then((response) => {
2941
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
2997
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
2942
2998
  const cache = new StoreKeyMap();
2943
- getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
2999
+ getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
2944
3000
  return cache;
2945
3001
  });
2946
3002
  }, (response) => {
2947
- return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
3003
+ return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
2948
3004
  });
2949
3005
  }
2950
- function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
2951
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
3006
+ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
3007
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
2952
3008
  }
2953
- function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
3009
+ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
2954
3010
  const { luvio, config } = context;
2955
3011
  const selector = {
2956
- recordId: keyBuilder$8(luvio, config),
2957
- node: adapterFragment$3(luvio, config),
3012
+ recordId: keyBuilder$a(luvio, config),
3013
+ node: adapterFragment$4(luvio, config),
2958
3014
  variables: {},
2959
3015
  };
2960
3016
  const cacheSnapshot = storeLookup(selector, {
2961
3017
  config,
2962
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
3018
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
2963
3019
  });
2964
3020
  return cacheSnapshot;
2965
3021
  }
2966
3022
  const getPersonalizationPointAdapterFactory = (luvio) => function personalizationService__getPersonalizationPoint(untrustedConfig, requestContext) {
2967
- const config = validateAdapterConfig$6(untrustedConfig, getPersonalizationPoint_ConfigPropertyNames);
3023
+ const config = validateAdapterConfig$7(untrustedConfig, getPersonalizationPoint_ConfigPropertyNames);
2968
3024
  // Invalid or incomplete config
2969
3025
  if (config === null) {
2970
3026
  return null;
2971
3027
  }
2972
3028
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2973
- buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
3029
+ buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
2974
3030
  };
2975
3031
 
2976
- function select$a(luvio, params) {
2977
- return select$d();
3032
+ function select$c(luvio, params) {
3033
+ return select$f();
2978
3034
  }
2979
- function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
2980
- getTypeCacheKeys$3(storeKeyMap, luvio, response);
3035
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
3036
+ getTypeCacheKeys$4(storeKeyMap, luvio, response);
2981
3037
  }
2982
- function ingestSuccess$4(luvio, resourceParams, response) {
3038
+ function ingestSuccess$5(luvio, resourceParams, response) {
2983
3039
  const { body } = response;
2984
3040
  const key = keyBuilderFromType$1(luvio, body);
2985
- luvio.storeIngest(key, ingest$3, body);
3041
+ luvio.storeIngest(key, ingest$4, body);
2986
3042
  const snapshot = luvio.storeLookup({
2987
3043
  recordId: key,
2988
- node: select$a(),
3044
+ node: select$c(),
2989
3045
  variables: {},
2990
3046
  });
2991
3047
  if (process.env.NODE_ENV !== 'production') {
@@ -2996,7 +3052,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
2996
3052
  deepFreeze(snapshot.data);
2997
3053
  return snapshot;
2998
3054
  }
2999
- function createResourceRequest$5(config) {
3055
+ function createResourceRequest$6(config) {
3000
3056
  const headers = {};
3001
3057
  return {
3002
3058
  baseUri: '/services/data/v64.0',
@@ -3010,7 +3066,7 @@ function createResourceRequest$5(config) {
3010
3066
  };
3011
3067
  }
3012
3068
 
3013
- const adapterName$5 = 'updatePersonalizationPoint';
3069
+ const adapterName$6 = 'updatePersonalizationPoint';
3014
3070
  const updatePersonalizationPoint_ConfigPropertyMetadata = [
3015
3071
  generateParamConfigMetadata('idOrName', true, 0 /* UrlParameter */, 0 /* String */),
3016
3072
  generateParamConfigMetadata('description', false, 2 /* Body */, 4 /* Unsupported */),
@@ -3028,11 +3084,11 @@ const updatePersonalizationPoint_ConfigPropertyMetadata = [
3028
3084
  generateParamConfigMetadata('isAuthenticationRequired', true, 2 /* Body */, 1 /* Boolean */),
3029
3085
  generateParamConfigMetadata('sourceRecordId', false, 2 /* Body */, 4 /* Unsupported */),
3030
3086
  ];
3031
- const updatePersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, updatePersonalizationPoint_ConfigPropertyMetadata);
3032
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$9(updatePersonalizationPoint_ConfigPropertyMetadata);
3033
- function typeCheckConfig$5(untrustedConfig) {
3087
+ const updatePersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, updatePersonalizationPoint_ConfigPropertyMetadata);
3088
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$a(updatePersonalizationPoint_ConfigPropertyMetadata);
3089
+ function typeCheckConfig$6(untrustedConfig) {
3034
3090
  const config = {};
3035
- typeCheckConfig$9(untrustedConfig, config, updatePersonalizationPoint_ConfigPropertyMetadata);
3091
+ typeCheckConfig$a(untrustedConfig, config, updatePersonalizationPoint_ConfigPropertyMetadata);
3036
3092
  const untrustedConfig_description = untrustedConfig.description;
3037
3093
  if (typeof untrustedConfig_description === 'string') {
3038
3094
  config.description = untrustedConfig_description;
@@ -3073,7 +3129,7 @@ function typeCheckConfig$5(untrustedConfig) {
3073
3129
  const untrustedConfig_decisions_array = [];
3074
3130
  for (let i = 0, arrayLength = untrustedConfig_decisions.length; i < arrayLength; i++) {
3075
3131
  const untrustedConfig_decisions_item = untrustedConfig_decisions[i];
3076
- const referencePersonalizationDecisionInputRepresentationValidationError = validate$e(untrustedConfig_decisions_item);
3132
+ const referencePersonalizationDecisionInputRepresentationValidationError = validate$h(untrustedConfig_decisions_item);
3077
3133
  if (referencePersonalizationDecisionInputRepresentationValidationError === null) {
3078
3134
  untrustedConfig_decisions_array.push(untrustedConfig_decisions_item);
3079
3135
  }
@@ -3124,30 +3180,30 @@ function typeCheckConfig$5(untrustedConfig) {
3124
3180
  }
3125
3181
  return config;
3126
3182
  }
3127
- function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
3183
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
3128
3184
  if (!untrustedIsObject(untrustedConfig)) {
3129
3185
  return null;
3130
3186
  }
3131
3187
  if (process.env.NODE_ENV !== 'production') {
3132
3188
  validateConfig(untrustedConfig, configPropertyNames);
3133
3189
  }
3134
- const config = typeCheckConfig$5(untrustedConfig);
3190
+ const config = typeCheckConfig$6(untrustedConfig);
3135
3191
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3136
3192
  return null;
3137
3193
  }
3138
3194
  return config;
3139
3195
  }
3140
- function buildNetworkSnapshot$5(luvio, config, options) {
3141
- const resourceParams = createResourceParams$5(config);
3142
- const request = createResourceRequest$5(resourceParams);
3196
+ function buildNetworkSnapshot$6(luvio, config, options) {
3197
+ const resourceParams = createResourceParams$6(config);
3198
+ const request = createResourceRequest$6(resourceParams);
3143
3199
  return luvio.dispatchResourceRequest(request, options)
3144
3200
  .then((response) => {
3145
3201
  return luvio.handleSuccessResponse(() => {
3146
- const snapshot = ingestSuccess$4(luvio, resourceParams, response);
3202
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response);
3147
3203
  return luvio.storeBroadcast().then(() => snapshot);
3148
3204
  }, () => {
3149
3205
  const cache = new StoreKeyMap();
3150
- getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
3206
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
3151
3207
  return cache;
3152
3208
  });
3153
3209
  }, (response) => {
@@ -3157,16 +3213,16 @@ function buildNetworkSnapshot$5(luvio, config, options) {
3157
3213
  }
3158
3214
  const updatePersonalizationPointAdapterFactory = (luvio) => {
3159
3215
  return function updatePersonalizationPoint(untrustedConfig) {
3160
- const config = validateAdapterConfig$5(untrustedConfig, updatePersonalizationPoint_ConfigPropertyNames);
3216
+ const config = validateAdapterConfig$6(untrustedConfig, updatePersonalizationPoint_ConfigPropertyNames);
3161
3217
  // Invalid or incomplete config
3162
3218
  if (config === null) {
3163
3219
  throw new Error('Invalid config for "updatePersonalizationPoint"');
3164
3220
  }
3165
- return buildNetworkSnapshot$5(luvio, config);
3221
+ return buildNetworkSnapshot$6(luvio, config);
3166
3222
  };
3167
3223
  };
3168
3224
 
3169
- function validate$6(obj, path = 'PersonalizationAttributeInputRepresentation') {
3225
+ function validate$9(obj, path = 'PersonalizationAttributeInputRepresentation') {
3170
3226
  const v_error = (() => {
3171
3227
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3172
3228
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3213,8 +3269,8 @@ function validate$6(obj, path = 'PersonalizationAttributeInputRepresentation') {
3213
3269
  return v_error === undefined ? null : v_error;
3214
3270
  }
3215
3271
 
3216
- const VERSION$5 = "014064b188ff923423af6301d64be36a";
3217
- function validate$5(obj, path = 'PersonalizationAttributeRepresentation') {
3272
+ const VERSION$6 = "014064b188ff923423af6301d64be36a";
3273
+ function validate$8(obj, path = 'PersonalizationAttributeRepresentation') {
3218
3274
  const v_error = (() => {
3219
3275
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3220
3276
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3309,10 +3365,10 @@ function validate$5(obj, path = 'PersonalizationAttributeRepresentation') {
3309
3365
  })();
3310
3366
  return v_error === undefined ? null : v_error;
3311
3367
  }
3312
- const select$9 = function PersonalizationAttributeRepresentationSelect() {
3368
+ const select$b = function PersonalizationAttributeRepresentationSelect() {
3313
3369
  return {
3314
3370
  kind: 'Fragment',
3315
- version: VERSION$5,
3371
+ version: VERSION$6,
3316
3372
  private: [],
3317
3373
  selections: [
3318
3374
  {
@@ -3354,7 +3410,7 @@ const select$9 = function PersonalizationAttributeRepresentationSelect() {
3354
3410
  ]
3355
3411
  };
3356
3412
  };
3357
- function equals$5(existing, incoming) {
3413
+ function equals$6(existing, incoming) {
3358
3414
  const existing_createdById = existing.createdById;
3359
3415
  const incoming_createdById = incoming.createdById;
3360
3416
  if (!(existing_createdById === incoming_createdById)) {
@@ -3403,9 +3459,9 @@ function equals$5(existing, incoming) {
3403
3459
  return true;
3404
3460
  }
3405
3461
 
3406
- const TTL$2 = 600;
3407
- const VERSION$4 = "25740f87643de6fdae570c77bbec7377";
3408
- function validate$4(obj, path = 'PersonalizationSchemaRepresentation') {
3462
+ const TTL$3 = 600;
3463
+ const VERSION$5 = "25740f87643de6fdae570c77bbec7377";
3464
+ function validate$7(obj, path = 'PersonalizationSchemaRepresentation') {
3409
3465
  const v_error = (() => {
3410
3466
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3411
3467
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3418,7 +3474,7 @@ function validate$4(obj, path = 'PersonalizationSchemaRepresentation') {
3418
3474
  for (let i = 0; i < obj_attributes.length; i++) {
3419
3475
  const obj_attributes_item = obj_attributes[i];
3420
3476
  const path_attributes_item = path_attributes + '[' + i + ']';
3421
- const referencepath_attributes_itemValidationError = validate$5(obj_attributes_item, path_attributes_item);
3477
+ const referencepath_attributes_itemValidationError = validate$8(obj_attributes_item, path_attributes_item);
3422
3478
  if (referencepath_attributes_itemValidationError !== null) {
3423
3479
  let message = 'Object doesn\'t match PersonalizationAttributeRepresentation (at "' + path_attributes_item + '")\n';
3424
3480
  message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3563,24 +3619,24 @@ function validate$4(obj, path = 'PersonalizationSchemaRepresentation') {
3563
3619
  })();
3564
3620
  return v_error === undefined ? null : v_error;
3565
3621
  }
3566
- const RepresentationType$2 = 'PersonalizationSchemaRepresentation';
3567
- function keyBuilder$7(luvio, config) {
3568
- return keyPrefix + '::' + RepresentationType$2 + ':' + config.id;
3622
+ const RepresentationType$3 = 'PersonalizationSchemaRepresentation';
3623
+ function keyBuilder$9(luvio, config) {
3624
+ return keyPrefix + '::' + RepresentationType$3 + ':' + config.id;
3569
3625
  }
3570
3626
  function keyBuilderFromType(luvio, object) {
3571
3627
  const keyParams = {
3572
3628
  id: object.name
3573
3629
  };
3574
- return keyBuilder$7(luvio, keyParams);
3630
+ return keyBuilder$9(luvio, keyParams);
3575
3631
  }
3576
- function normalize$2(input, existing, path, luvio, store, timestamp) {
3632
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
3577
3633
  return input;
3578
3634
  }
3579
- const select$8 = function PersonalizationSchemaRepresentationSelect() {
3580
- const { selections: PersonalizationAttributeRepresentation__selections, opaque: PersonalizationAttributeRepresentation__opaque, } = select$9();
3635
+ const select$a = function PersonalizationSchemaRepresentationSelect() {
3636
+ const { selections: PersonalizationAttributeRepresentation__selections, opaque: PersonalizationAttributeRepresentation__opaque, } = select$b();
3581
3637
  return {
3582
3638
  kind: 'Fragment',
3583
- version: VERSION$4,
3639
+ version: VERSION$5,
3584
3640
  private: [],
3585
3641
  selections: [
3586
3642
  {
@@ -3645,7 +3701,7 @@ const select$8 = function PersonalizationSchemaRepresentationSelect() {
3645
3701
  ]
3646
3702
  };
3647
3703
  };
3648
- function equals$4(existing, incoming) {
3704
+ function equals$5(existing, incoming) {
3649
3705
  const existing_createdById = existing.createdById;
3650
3706
  const incoming_createdById = incoming.createdById;
3651
3707
  if (!(existing_createdById === incoming_createdById)) {
@@ -3699,7 +3755,7 @@ function equals$4(existing, incoming) {
3699
3755
  const existing_attributes = existing.attributes;
3700
3756
  const incoming_attributes = incoming.attributes;
3701
3757
  const equals_attributes_items = equalsArray(existing_attributes, incoming_attributes, (existing_attributes_item, incoming_attributes_item) => {
3702
- if (!(equals$5(existing_attributes_item, incoming_attributes_item))) {
3758
+ if (!(equals$6(existing_attributes_item, incoming_attributes_item))) {
3703
3759
  return false;
3704
3760
  }
3705
3761
  });
@@ -3728,41 +3784,41 @@ function equals$4(existing, incoming) {
3728
3784
  }
3729
3785
  return true;
3730
3786
  }
3731
- const ingest$2 = function PersonalizationSchemaRepresentationIngest(input, path, luvio, store, timestamp) {
3787
+ const ingest$3 = function PersonalizationSchemaRepresentationIngest(input, path, luvio, store, timestamp) {
3732
3788
  if (process.env.NODE_ENV !== 'production') {
3733
- const validateError = validate$4(input);
3789
+ const validateError = validate$7(input);
3734
3790
  if (validateError !== null) {
3735
3791
  throw validateError;
3736
3792
  }
3737
3793
  }
3738
3794
  const key = keyBuilderFromType(luvio, input);
3739
- const ttlToUse = TTL$2;
3740
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "personalization-service", VERSION$4, RepresentationType$2, equals$4);
3795
+ const ttlToUse = TTL$3;
3796
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "personalization-service", VERSION$5, RepresentationType$3, equals$5);
3741
3797
  return createLink(key);
3742
3798
  };
3743
- function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
3799
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
3744
3800
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
3745
3801
  const rootKey = keyBuilderFromType(luvio, input);
3746
3802
  rootKeySet.set(rootKey, {
3747
3803
  namespace: keyPrefix,
3748
- representationName: RepresentationType$2,
3804
+ representationName: RepresentationType$3,
3749
3805
  mergeable: false
3750
3806
  });
3751
3807
  }
3752
3808
 
3753
- function select$7(luvio, params) {
3754
- return select$8();
3809
+ function select$9(luvio, params) {
3810
+ return select$a();
3755
3811
  }
3756
- function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
3757
- getTypeCacheKeys$2(storeKeyMap, luvio, response);
3812
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
3813
+ getTypeCacheKeys$3(storeKeyMap, luvio, response);
3758
3814
  }
3759
- function ingestSuccess$3(luvio, resourceParams, response) {
3815
+ function ingestSuccess$4(luvio, resourceParams, response) {
3760
3816
  const { body } = response;
3761
3817
  const key = keyBuilderFromType(luvio, body);
3762
- luvio.storeIngest(key, ingest$2, body);
3818
+ luvio.storeIngest(key, ingest$3, body);
3763
3819
  const snapshot = luvio.storeLookup({
3764
3820
  recordId: key,
3765
- node: select$7(),
3821
+ node: select$9(),
3766
3822
  variables: {},
3767
3823
  });
3768
3824
  if (process.env.NODE_ENV !== 'production') {
@@ -3773,7 +3829,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
3773
3829
  deepFreeze(snapshot.data);
3774
3830
  return snapshot;
3775
3831
  }
3776
- function createResourceRequest$4(config) {
3832
+ function createResourceRequest$5(config) {
3777
3833
  const headers = {};
3778
3834
  return {
3779
3835
  baseUri: '/services/data/v64.0',
@@ -3787,7 +3843,7 @@ function createResourceRequest$4(config) {
3787
3843
  };
3788
3844
  }
3789
3845
 
3790
- const adapterName$4 = 'createPersonalizationSchema';
3846
+ const adapterName$5 = 'createPersonalizationSchema';
3791
3847
  const createPersonalizationSchema_ConfigPropertyMetadata = [
3792
3848
  generateParamConfigMetadata('description', true, 2 /* Body */, 4 /* Unsupported */),
3793
3849
  generateParamConfigMetadata('label', true, 2 /* Body */, 4 /* Unsupported */),
@@ -3798,11 +3854,11 @@ const createPersonalizationSchema_ConfigPropertyMetadata = [
3798
3854
  generateParamConfigMetadata('dataSpaceName', true, 2 /* Body */, 0 /* String */),
3799
3855
  generateParamConfigMetadata('personalizationType', true, 2 /* Body */, 0 /* String */),
3800
3856
  ];
3801
- const createPersonalizationSchema_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createPersonalizationSchema_ConfigPropertyMetadata);
3802
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$9(createPersonalizationSchema_ConfigPropertyMetadata);
3803
- function typeCheckConfig$4(untrustedConfig) {
3857
+ const createPersonalizationSchema_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createPersonalizationSchema_ConfigPropertyMetadata);
3858
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$a(createPersonalizationSchema_ConfigPropertyMetadata);
3859
+ function typeCheckConfig$5(untrustedConfig) {
3804
3860
  const config = {};
3805
- typeCheckConfig$9(untrustedConfig, config, createPersonalizationSchema_ConfigPropertyMetadata);
3861
+ typeCheckConfig$a(untrustedConfig, config, createPersonalizationSchema_ConfigPropertyMetadata);
3806
3862
  const untrustedConfig_description = untrustedConfig.description;
3807
3863
  if (typeof untrustedConfig_description === 'string') {
3808
3864
  config.description = untrustedConfig_description;
@@ -3829,7 +3885,7 @@ function typeCheckConfig$4(untrustedConfig) {
3829
3885
  const untrustedConfig_attributes_array = [];
3830
3886
  for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
3831
3887
  const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
3832
- const referencePersonalizationAttributeInputRepresentationValidationError = validate$6(untrustedConfig_attributes_item);
3888
+ const referencePersonalizationAttributeInputRepresentationValidationError = validate$9(untrustedConfig_attributes_item);
3833
3889
  if (referencePersonalizationAttributeInputRepresentationValidationError === null) {
3834
3890
  untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
3835
3891
  }
@@ -3859,30 +3915,30 @@ function typeCheckConfig$4(untrustedConfig) {
3859
3915
  }
3860
3916
  return config;
3861
3917
  }
3862
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
3918
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
3863
3919
  if (!untrustedIsObject(untrustedConfig)) {
3864
3920
  return null;
3865
3921
  }
3866
3922
  if (process.env.NODE_ENV !== 'production') {
3867
3923
  validateConfig(untrustedConfig, configPropertyNames);
3868
3924
  }
3869
- const config = typeCheckConfig$4(untrustedConfig);
3925
+ const config = typeCheckConfig$5(untrustedConfig);
3870
3926
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3871
3927
  return null;
3872
3928
  }
3873
3929
  return config;
3874
3930
  }
3875
- function buildNetworkSnapshot$4(luvio, config, options) {
3876
- const resourceParams = createResourceParams$4(config);
3877
- const request = createResourceRequest$4(resourceParams);
3931
+ function buildNetworkSnapshot$5(luvio, config, options) {
3932
+ const resourceParams = createResourceParams$5(config);
3933
+ const request = createResourceRequest$5(resourceParams);
3878
3934
  return luvio.dispatchResourceRequest(request, options)
3879
3935
  .then((response) => {
3880
3936
  return luvio.handleSuccessResponse(() => {
3881
- const snapshot = ingestSuccess$3(luvio, resourceParams, response);
3937
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response);
3882
3938
  return luvio.storeBroadcast().then(() => snapshot);
3883
3939
  }, () => {
3884
3940
  const cache = new StoreKeyMap();
3885
- getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
3941
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
3886
3942
  return cache;
3887
3943
  });
3888
3944
  }, (response) => {
@@ -3892,33 +3948,33 @@ function buildNetworkSnapshot$4(luvio, config, options) {
3892
3948
  }
3893
3949
  const createPersonalizationSchemaAdapterFactory = (luvio) => {
3894
3950
  return function createPersonalizationSchema(untrustedConfig) {
3895
- const config = validateAdapterConfig$4(untrustedConfig, createPersonalizationSchema_ConfigPropertyNames);
3951
+ const config = validateAdapterConfig$5(untrustedConfig, createPersonalizationSchema_ConfigPropertyNames);
3896
3952
  // Invalid or incomplete config
3897
3953
  if (config === null) {
3898
3954
  throw new Error('Invalid config for "createPersonalizationSchema"');
3899
3955
  }
3900
- return buildNetworkSnapshot$4(luvio, config);
3956
+ return buildNetworkSnapshot$5(luvio, config);
3901
3957
  };
3902
3958
  };
3903
3959
 
3904
- function keyBuilder$6(luvio, params) {
3905
- return keyBuilder$7(luvio, {
3960
+ function keyBuilder$8(luvio, params) {
3961
+ return keyBuilder$9(luvio, {
3906
3962
  id: params.urlParams.idOrName
3907
3963
  });
3908
3964
  }
3909
- function getResponseCacheKeys$3(cacheKeyMap, luvio, resourceParams) {
3910
- const key = keyBuilder$6(luvio, resourceParams);
3965
+ function getResponseCacheKeys$4(cacheKeyMap, luvio, resourceParams) {
3966
+ const key = keyBuilder$8(luvio, resourceParams);
3911
3967
  cacheKeyMap.set(key, {
3912
3968
  namespace: keyPrefix,
3913
- representationName: RepresentationType$2,
3969
+ representationName: RepresentationType$3,
3914
3970
  mergeable: false
3915
3971
  });
3916
3972
  }
3917
3973
  function evictSuccess(luvio, resourceParams) {
3918
- const key = keyBuilder$6(luvio, resourceParams);
3974
+ const key = keyBuilder$8(luvio, resourceParams);
3919
3975
  luvio.storeEvict(key);
3920
3976
  }
3921
- function createResourceRequest$3(config) {
3977
+ function createResourceRequest$4(config) {
3922
3978
  const headers = {};
3923
3979
  return {
3924
3980
  baseUri: '/services/data/v64.0',
@@ -3932,33 +3988,33 @@ function createResourceRequest$3(config) {
3932
3988
  };
3933
3989
  }
3934
3990
 
3935
- const adapterName$3 = 'deletePersonalizationSchema';
3991
+ const adapterName$4 = 'deletePersonalizationSchema';
3936
3992
  const deletePersonalizationSchema_ConfigPropertyMetadata = [
3937
3993
  generateParamConfigMetadata('idOrName', true, 0 /* UrlParameter */, 0 /* String */),
3938
3994
  ];
3939
- const deletePersonalizationSchema_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, deletePersonalizationSchema_ConfigPropertyMetadata);
3940
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$9(deletePersonalizationSchema_ConfigPropertyMetadata);
3941
- function typeCheckConfig$3(untrustedConfig) {
3995
+ const deletePersonalizationSchema_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, deletePersonalizationSchema_ConfigPropertyMetadata);
3996
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$a(deletePersonalizationSchema_ConfigPropertyMetadata);
3997
+ function typeCheckConfig$4(untrustedConfig) {
3942
3998
  const config = {};
3943
- typeCheckConfig$9(untrustedConfig, config, deletePersonalizationSchema_ConfigPropertyMetadata);
3999
+ typeCheckConfig$a(untrustedConfig, config, deletePersonalizationSchema_ConfigPropertyMetadata);
3944
4000
  return config;
3945
4001
  }
3946
- function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
4002
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
3947
4003
  if (!untrustedIsObject(untrustedConfig)) {
3948
4004
  return null;
3949
4005
  }
3950
4006
  if (process.env.NODE_ENV !== 'production') {
3951
4007
  validateConfig(untrustedConfig, configPropertyNames);
3952
4008
  }
3953
- const config = typeCheckConfig$3(untrustedConfig);
4009
+ const config = typeCheckConfig$4(untrustedConfig);
3954
4010
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3955
4011
  return null;
3956
4012
  }
3957
4013
  return config;
3958
4014
  }
3959
- function buildNetworkSnapshot$3(luvio, config, options) {
3960
- const resourceParams = createResourceParams$3(config);
3961
- const request = createResourceRequest$3(resourceParams);
4015
+ function buildNetworkSnapshot$4(luvio, config, options) {
4016
+ const resourceParams = createResourceParams$4(config);
4017
+ const request = createResourceRequest$4(resourceParams);
3962
4018
  return luvio.dispatchResourceRequest(request, options)
3963
4019
  .then(() => {
3964
4020
  return luvio.handleSuccessResponse(() => {
@@ -3966,7 +4022,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
3966
4022
  return luvio.storeBroadcast();
3967
4023
  }, () => {
3968
4024
  const cache = new StoreKeyMap();
3969
- getResponseCacheKeys$3(cache, luvio, resourceParams);
4025
+ getResponseCacheKeys$4(cache, luvio, resourceParams);
3970
4026
  return cache;
3971
4027
  });
3972
4028
  }, (response) => {
@@ -3976,33 +4032,33 @@ function buildNetworkSnapshot$3(luvio, config, options) {
3976
4032
  }
3977
4033
  const deletePersonalizationSchemaAdapterFactory = (luvio) => {
3978
4034
  return function personalizationServicedeletePersonalizationSchema(untrustedConfig) {
3979
- const config = validateAdapterConfig$3(untrustedConfig, deletePersonalizationSchema_ConfigPropertyNames);
4035
+ const config = validateAdapterConfig$4(untrustedConfig, deletePersonalizationSchema_ConfigPropertyNames);
3980
4036
  // Invalid or incomplete config
3981
4037
  if (config === null) {
3982
- throw new Error(`Invalid config for "${adapterName$3}"`);
4038
+ throw new Error(`Invalid config for "${adapterName$4}"`);
3983
4039
  }
3984
- return buildNetworkSnapshot$3(luvio, config);
4040
+ return buildNetworkSnapshot$4(luvio, config);
3985
4041
  };
3986
4042
  };
3987
4043
 
3988
- function select$6(luvio, params) {
3989
- return select$8();
4044
+ function select$8(luvio, params) {
4045
+ return select$a();
3990
4046
  }
3991
- function keyBuilder$5(luvio, params) {
3992
- return keyBuilder$7(luvio, {
4047
+ function keyBuilder$7(luvio, params) {
4048
+ return keyBuilder$9(luvio, {
3993
4049
  id: params.urlParams.idOrName
3994
4050
  });
3995
4051
  }
3996
- function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
3997
- getTypeCacheKeys$2(storeKeyMap, luvio, response);
4052
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
4053
+ getTypeCacheKeys$3(storeKeyMap, luvio, response);
3998
4054
  }
3999
- function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
4055
+ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
4000
4056
  const { body } = response;
4001
- const key = keyBuilder$5(luvio, resourceParams);
4002
- luvio.storeIngest(key, ingest$2, body);
4057
+ const key = keyBuilder$7(luvio, resourceParams);
4058
+ luvio.storeIngest(key, ingest$3, body);
4003
4059
  const snapshot = luvio.storeLookup({
4004
4060
  recordId: key,
4005
- node: select$6(),
4061
+ node: select$8(),
4006
4062
  variables: {},
4007
4063
  }, snapshotRefresh);
4008
4064
  if (process.env.NODE_ENV !== 'production') {
@@ -4013,19 +4069,19 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
4013
4069
  deepFreeze(snapshot.data);
4014
4070
  return snapshot;
4015
4071
  }
4016
- function ingestError$2(luvio, params, error, snapshotRefresh) {
4017
- const key = keyBuilder$5(luvio, params);
4072
+ function ingestError$3(luvio, params, error, snapshotRefresh) {
4073
+ const key = keyBuilder$7(luvio, params);
4018
4074
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
4019
4075
  const storeMetadataParams = {
4020
- ttl: TTL$2,
4076
+ ttl: TTL$3,
4021
4077
  namespace: keyPrefix,
4022
- version: VERSION$4,
4023
- representationName: RepresentationType$2
4078
+ version: VERSION$5,
4079
+ representationName: RepresentationType$3
4024
4080
  };
4025
4081
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
4026
4082
  return errorSnapshot;
4027
4083
  }
4028
- function createResourceRequest$2(config) {
4084
+ function createResourceRequest$3(config) {
4029
4085
  const headers = {};
4030
4086
  return {
4031
4087
  baseUri: '/services/data/v64.0',
@@ -4039,94 +4095,94 @@ function createResourceRequest$2(config) {
4039
4095
  };
4040
4096
  }
4041
4097
 
4042
- const adapterName$2 = 'getPersonalizationSchema';
4098
+ const adapterName$3 = 'getPersonalizationSchema';
4043
4099
  const getPersonalizationSchema_ConfigPropertyMetadata = [
4044
4100
  generateParamConfigMetadata('idOrName', true, 0 /* UrlParameter */, 0 /* String */),
4045
4101
  ];
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);
4102
+ const getPersonalizationSchema_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getPersonalizationSchema_ConfigPropertyMetadata);
4103
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$a(getPersonalizationSchema_ConfigPropertyMetadata);
4104
+ function keyBuilder$6(luvio, config) {
4105
+ const resourceParams = createResourceParams$3(config);
4106
+ return keyBuilder$7(luvio, resourceParams);
4051
4107
  }
4052
- function typeCheckConfig$2(untrustedConfig) {
4108
+ function typeCheckConfig$3(untrustedConfig) {
4053
4109
  const config = {};
4054
- typeCheckConfig$9(untrustedConfig, config, getPersonalizationSchema_ConfigPropertyMetadata);
4110
+ typeCheckConfig$a(untrustedConfig, config, getPersonalizationSchema_ConfigPropertyMetadata);
4055
4111
  return config;
4056
4112
  }
4057
- function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
4113
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
4058
4114
  if (!untrustedIsObject(untrustedConfig)) {
4059
4115
  return null;
4060
4116
  }
4061
4117
  if (process.env.NODE_ENV !== 'production') {
4062
4118
  validateConfig(untrustedConfig, configPropertyNames);
4063
4119
  }
4064
- const config = typeCheckConfig$2(untrustedConfig);
4120
+ const config = typeCheckConfig$3(untrustedConfig);
4065
4121
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
4066
4122
  return null;
4067
4123
  }
4068
4124
  return config;
4069
4125
  }
4070
- function adapterFragment$2(luvio, config) {
4071
- createResourceParams$2(config);
4072
- return select$6();
4126
+ function adapterFragment$3(luvio, config) {
4127
+ createResourceParams$3(config);
4128
+ return select$8();
4073
4129
  }
4074
- function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
4075
- const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
4130
+ function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
4131
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
4076
4132
  config,
4077
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
4133
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
4078
4134
  });
4079
4135
  return luvio.storeBroadcast().then(() => snapshot);
4080
4136
  }
4081
- function onFetchResponseError$2(luvio, config, resourceParams, response) {
4082
- const snapshot = ingestError$2(luvio, resourceParams, response, {
4137
+ function onFetchResponseError$3(luvio, config, resourceParams, response) {
4138
+ const snapshot = ingestError$3(luvio, resourceParams, response, {
4083
4139
  config,
4084
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
4140
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
4085
4141
  });
4086
4142
  return luvio.storeBroadcast().then(() => snapshot);
4087
4143
  }
4088
- function buildNetworkSnapshot$2(luvio, config, options) {
4089
- const resourceParams = createResourceParams$2(config);
4090
- const request = createResourceRequest$2(resourceParams);
4144
+ function buildNetworkSnapshot$3(luvio, config, options) {
4145
+ const resourceParams = createResourceParams$3(config);
4146
+ const request = createResourceRequest$3(resourceParams);
4091
4147
  return luvio.dispatchResourceRequest(request, options)
4092
4148
  .then((response) => {
4093
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
4149
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
4094
4150
  const cache = new StoreKeyMap();
4095
- getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
4151
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
4096
4152
  return cache;
4097
4153
  });
4098
4154
  }, (response) => {
4099
- return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
4155
+ return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
4100
4156
  });
4101
4157
  }
4102
- function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
4103
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
4158
+ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
4159
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
4104
4160
  }
4105
- function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
4161
+ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
4106
4162
  const { luvio, config } = context;
4107
4163
  const selector = {
4108
- recordId: keyBuilder$4(luvio, config),
4109
- node: adapterFragment$2(luvio, config),
4164
+ recordId: keyBuilder$6(luvio, config),
4165
+ node: adapterFragment$3(luvio, config),
4110
4166
  variables: {},
4111
4167
  };
4112
4168
  const cacheSnapshot = storeLookup(selector, {
4113
4169
  config,
4114
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
4170
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
4115
4171
  });
4116
4172
  return cacheSnapshot;
4117
4173
  }
4118
4174
  const getPersonalizationSchemaAdapterFactory = (luvio) => function personalizationService__getPersonalizationSchema(untrustedConfig, requestContext) {
4119
- const config = validateAdapterConfig$2(untrustedConfig, getPersonalizationSchema_ConfigPropertyNames);
4175
+ const config = validateAdapterConfig$3(untrustedConfig, getPersonalizationSchema_ConfigPropertyNames);
4120
4176
  // Invalid or incomplete config
4121
4177
  if (config === null) {
4122
4178
  return null;
4123
4179
  }
4124
4180
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
4125
- buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
4181
+ buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
4126
4182
  };
4127
4183
 
4128
- const VERSION$3 = "4140d8b5bf494d4e8f3ef8713b0ffd7d";
4129
- function validate$3(obj, path = 'PersonalizationRecommenderJobRepresentation') {
4184
+ const VERSION$4 = "4140d8b5bf494d4e8f3ef8713b0ffd7d";
4185
+ function validate$6(obj, path = 'PersonalizationRecommenderJobRepresentation') {
4130
4186
  const v_error = (() => {
4131
4187
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4132
4188
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4176,10 +4232,10 @@ function validate$3(obj, path = 'PersonalizationRecommenderJobRepresentation') {
4176
4232
  })();
4177
4233
  return v_error === undefined ? null : v_error;
4178
4234
  }
4179
- const select$5 = function PersonalizationRecommenderJobRepresentationSelect() {
4235
+ const select$7 = function PersonalizationRecommenderJobRepresentationSelect() {
4180
4236
  return {
4181
4237
  kind: 'Fragment',
4182
- version: VERSION$3,
4238
+ version: VERSION$4,
4183
4239
  private: [],
4184
4240
  selections: [
4185
4241
  {
@@ -4215,7 +4271,7 @@ const select$5 = function PersonalizationRecommenderJobRepresentationSelect() {
4215
4271
  ]
4216
4272
  };
4217
4273
  };
4218
- function equals$3(existing, incoming) {
4274
+ function equals$4(existing, incoming) {
4219
4275
  const existing_errorCode = existing.errorCode;
4220
4276
  const incoming_errorCode = incoming.errorCode;
4221
4277
  // if at least one of these optionals is defined
@@ -4297,9 +4353,9 @@ function equals$3(existing, incoming) {
4297
4353
  return true;
4298
4354
  }
4299
4355
 
4300
- const TTL$1 = 600;
4301
- const VERSION$2 = "2fab2250d4ed5adcbb1a5c19a64cd765";
4302
- function validate$2(obj, path = 'PersonalizationRecommenderJobCollectionRepresentation') {
4356
+ const TTL$2 = 600;
4357
+ const VERSION$3 = "2fab2250d4ed5adcbb1a5c19a64cd765";
4358
+ function validate$5(obj, path = 'PersonalizationRecommenderJobCollectionRepresentation') {
4303
4359
  const v_error = (() => {
4304
4360
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4305
4361
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4320,7 +4376,7 @@ function validate$2(obj, path = 'PersonalizationRecommenderJobCollectionRepresen
4320
4376
  for (let i = 0; i < obj_jobs.length; i++) {
4321
4377
  const obj_jobs_item = obj_jobs[i];
4322
4378
  const path_jobs_item = path_jobs + '[' + i + ']';
4323
- const referencepath_jobs_itemValidationError = validate$3(obj_jobs_item, path_jobs_item);
4379
+ const referencepath_jobs_itemValidationError = validate$6(obj_jobs_item, path_jobs_item);
4324
4380
  if (referencepath_jobs_itemValidationError !== null) {
4325
4381
  let message = 'Object doesn\'t match PersonalizationRecommenderJobRepresentation (at "' + path_jobs_item + '")\n';
4326
4382
  message += referencepath_jobs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4338,15 +4394,15 @@ function validate$2(obj, path = 'PersonalizationRecommenderJobCollectionRepresen
4338
4394
  })();
4339
4395
  return v_error === undefined ? null : v_error;
4340
4396
  }
4341
- const RepresentationType$1 = 'PersonalizationRecommenderJobCollectionRepresentation';
4342
- function normalize$1(input, existing, path, luvio, store, timestamp) {
4397
+ const RepresentationType$2 = 'PersonalizationRecommenderJobCollectionRepresentation';
4398
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
4343
4399
  return input;
4344
4400
  }
4345
- const select$4 = function PersonalizationRecommenderJobCollectionRepresentationSelect() {
4346
- const { selections: PersonalizationRecommenderJobRepresentation__selections, opaque: PersonalizationRecommenderJobRepresentation__opaque, } = select$5();
4401
+ const select$6 = function PersonalizationRecommenderJobCollectionRepresentationSelect() {
4402
+ const { selections: PersonalizationRecommenderJobRepresentation__selections, opaque: PersonalizationRecommenderJobRepresentation__opaque, } = select$7();
4347
4403
  return {
4348
4404
  kind: 'Fragment',
4349
- version: VERSION$2,
4405
+ version: VERSION$3,
4350
4406
  private: [],
4351
4407
  selections: [
4352
4408
  {
@@ -4369,7 +4425,7 @@ const select$4 = function PersonalizationRecommenderJobCollectionRepresentationS
4369
4425
  ]
4370
4426
  };
4371
4427
  };
4372
- function equals$2(existing, incoming) {
4428
+ function equals$3(existing, incoming) {
4373
4429
  const existing_currentPageUrl = existing.currentPageUrl;
4374
4430
  const incoming_currentPageUrl = incoming.currentPageUrl;
4375
4431
  // if at least one of these optionals is defined
@@ -4406,7 +4462,7 @@ function equals$2(existing, incoming) {
4406
4462
  return false;
4407
4463
  }
4408
4464
  const equals_jobs_items = equalsArray(existing_jobs, incoming_jobs, (existing_jobs_item, incoming_jobs_item) => {
4409
- if (!(equals$3(existing_jobs_item, incoming_jobs_item))) {
4465
+ if (!(equals$4(existing_jobs_item, incoming_jobs_item))) {
4410
4466
  return false;
4411
4467
  }
4412
4468
  });
@@ -4416,7 +4472,255 @@ function equals$2(existing, incoming) {
4416
4472
  }
4417
4473
  return true;
4418
4474
  }
4419
- const ingest$1 = function PersonalizationRecommenderJobCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
4475
+ const ingest$2 = function PersonalizationRecommenderJobCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
4476
+ if (process.env.NODE_ENV !== 'production') {
4477
+ const validateError = validate$5(input);
4478
+ if (validateError !== null) {
4479
+ throw validateError;
4480
+ }
4481
+ }
4482
+ const key = path.fullPath;
4483
+ const ttlToUse = TTL$2;
4484
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "personalization-service", VERSION$3, RepresentationType$2, equals$3);
4485
+ return createLink(key);
4486
+ };
4487
+ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
4488
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
4489
+ const rootKey = fullPathFactory();
4490
+ rootKeySet.set(rootKey, {
4491
+ namespace: keyPrefix,
4492
+ representationName: RepresentationType$2,
4493
+ mergeable: false
4494
+ });
4495
+ }
4496
+
4497
+ function select$5(luvio, params) {
4498
+ return select$6();
4499
+ }
4500
+ function keyBuilder$5(luvio, params) {
4501
+ return keyPrefix + '::PersonalizationRecommenderJobCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'idOrName:' + params.urlParams.idOrName + ')';
4502
+ }
4503
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
4504
+ getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
4505
+ }
4506
+ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
4507
+ const { body } = response;
4508
+ const key = keyBuilder$5(luvio, resourceParams);
4509
+ luvio.storeIngest(key, ingest$2, body);
4510
+ const snapshot = luvio.storeLookup({
4511
+ recordId: key,
4512
+ node: select$5(),
4513
+ variables: {},
4514
+ }, snapshotRefresh);
4515
+ if (process.env.NODE_ENV !== 'production') {
4516
+ if (snapshot.state !== 'Fulfilled') {
4517
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
4518
+ }
4519
+ }
4520
+ deepFreeze(snapshot.data);
4521
+ return snapshot;
4522
+ }
4523
+ function ingestError$2(luvio, params, error, snapshotRefresh) {
4524
+ const key = keyBuilder$5(luvio, params);
4525
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
4526
+ const storeMetadataParams = {
4527
+ ttl: TTL$2,
4528
+ namespace: keyPrefix,
4529
+ version: VERSION$3,
4530
+ representationName: RepresentationType$2
4531
+ };
4532
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
4533
+ return errorSnapshot;
4534
+ }
4535
+ function createResourceRequest$2(config) {
4536
+ const headers = {};
4537
+ return {
4538
+ baseUri: '/services/data/v64.0',
4539
+ basePath: '/personalization/personalization-recommenders/' + config.urlParams.idOrName + '/jobs',
4540
+ method: 'get',
4541
+ body: null,
4542
+ urlParams: config.urlParams,
4543
+ queryParams: config.queryParams,
4544
+ headers,
4545
+ priority: 'normal',
4546
+ };
4547
+ }
4548
+
4549
+ const adapterName$2 = 'getTrainingHistory';
4550
+ const getTrainingHistory_ConfigPropertyMetadata = [
4551
+ generateParamConfigMetadata('idOrName', true, 0 /* UrlParameter */, 0 /* String */),
4552
+ generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
4553
+ generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
4554
+ ];
4555
+ const getTrainingHistory_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getTrainingHistory_ConfigPropertyMetadata);
4556
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$a(getTrainingHistory_ConfigPropertyMetadata);
4557
+ function keyBuilder$4(luvio, config) {
4558
+ const resourceParams = createResourceParams$2(config);
4559
+ return keyBuilder$5(luvio, resourceParams);
4560
+ }
4561
+ function typeCheckConfig$2(untrustedConfig) {
4562
+ const config = {};
4563
+ typeCheckConfig$a(untrustedConfig, config, getTrainingHistory_ConfigPropertyMetadata);
4564
+ return config;
4565
+ }
4566
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
4567
+ if (!untrustedIsObject(untrustedConfig)) {
4568
+ return null;
4569
+ }
4570
+ if (process.env.NODE_ENV !== 'production') {
4571
+ validateConfig(untrustedConfig, configPropertyNames);
4572
+ }
4573
+ const config = typeCheckConfig$2(untrustedConfig);
4574
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
4575
+ return null;
4576
+ }
4577
+ return config;
4578
+ }
4579
+ function adapterFragment$2(luvio, config) {
4580
+ createResourceParams$2(config);
4581
+ return select$5();
4582
+ }
4583
+ function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
4584
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
4585
+ config,
4586
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
4587
+ });
4588
+ return luvio.storeBroadcast().then(() => snapshot);
4589
+ }
4590
+ function onFetchResponseError$2(luvio, config, resourceParams, response) {
4591
+ const snapshot = ingestError$2(luvio, resourceParams, response, {
4592
+ config,
4593
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
4594
+ });
4595
+ return luvio.storeBroadcast().then(() => snapshot);
4596
+ }
4597
+ function buildNetworkSnapshot$2(luvio, config, options) {
4598
+ const resourceParams = createResourceParams$2(config);
4599
+ const request = createResourceRequest$2(resourceParams);
4600
+ return luvio.dispatchResourceRequest(request, options)
4601
+ .then((response) => {
4602
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
4603
+ const cache = new StoreKeyMap();
4604
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
4605
+ return cache;
4606
+ });
4607
+ }, (response) => {
4608
+ return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
4609
+ });
4610
+ }
4611
+ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
4612
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
4613
+ }
4614
+ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
4615
+ const { luvio, config } = context;
4616
+ const selector = {
4617
+ recordId: keyBuilder$4(luvio, config),
4618
+ node: adapterFragment$2(luvio, config),
4619
+ variables: {},
4620
+ };
4621
+ const cacheSnapshot = storeLookup(selector, {
4622
+ config,
4623
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
4624
+ });
4625
+ return cacheSnapshot;
4626
+ }
4627
+ const getTrainingHistoryAdapterFactory = (luvio) => function personalizationService__getTrainingHistory(untrustedConfig, requestContext) {
4628
+ const config = validateAdapterConfig$2(untrustedConfig, getTrainingHistory_ConfigPropertyNames);
4629
+ // Invalid or incomplete config
4630
+ if (config === null) {
4631
+ return null;
4632
+ }
4633
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
4634
+ buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
4635
+ };
4636
+
4637
+ function validate$4(obj, path = 'AnchorReferenceRepresentation') {
4638
+ const v_error = (() => {
4639
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4640
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4641
+ }
4642
+ const obj_dmoName = obj.dmoName;
4643
+ const path_dmoName = path + '.dmoName';
4644
+ if (typeof obj_dmoName !== 'string') {
4645
+ return new TypeError('Expected "string" but received "' + typeof obj_dmoName + '" (at "' + path_dmoName + '")');
4646
+ }
4647
+ const obj_id = obj.id;
4648
+ const path_id = path + '.id';
4649
+ if (typeof obj_id !== 'string') {
4650
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
4651
+ }
4652
+ })();
4653
+ return v_error === undefined ? null : v_error;
4654
+ }
4655
+
4656
+ function validate$3(obj, path = 'RuleGroupInputRepresentation') {
4657
+ const v_error = (() => {
4658
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4659
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4660
+ }
4661
+ const obj_operator = obj.operator;
4662
+ const path_operator = path + '.operator';
4663
+ if (typeof obj_operator !== 'string') {
4664
+ return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
4665
+ }
4666
+ const obj_rules = obj.rules;
4667
+ const path_rules = path + '.rules';
4668
+ if (!ArrayIsArray(obj_rules)) {
4669
+ return new TypeError('Expected "array" but received "' + typeof obj_rules + '" (at "' + path_rules + '")');
4670
+ }
4671
+ for (let i = 0; i < obj_rules.length; i++) {
4672
+ const obj_rules_item = obj_rules[i];
4673
+ const path_rules_item = path_rules + '[' + i + ']';
4674
+ if (typeof obj_rules_item !== 'object' || ArrayIsArray(obj_rules_item) || obj_rules_item === null) {
4675
+ return new TypeError('Expected "object" but received "' + typeof obj_rules_item + '" (at "' + path_rules_item + '")');
4676
+ }
4677
+ }
4678
+ })();
4679
+ return v_error === undefined ? null : v_error;
4680
+ }
4681
+
4682
+ const TTL$1 = 600;
4683
+ const VERSION$2 = "03b72d395296cf8da94dcea60a4830e8";
4684
+ function validate$2(obj, path = 'PersonalizationRecommenderSimulateActionRepresentation') {
4685
+ const v_error = (() => {
4686
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4687
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4688
+ }
4689
+ const obj_recommendations = obj.recommendations;
4690
+ const path_recommendations = path + '.recommendations';
4691
+ if (obj_recommendations === undefined) {
4692
+ return new TypeError('Expected "defined" but received "' + typeof obj_recommendations + '" (at "' + path_recommendations + '")');
4693
+ }
4694
+ })();
4695
+ return v_error === undefined ? null : v_error;
4696
+ }
4697
+ const RepresentationType$1 = 'PersonalizationRecommenderSimulateActionRepresentation';
4698
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
4699
+ return input;
4700
+ }
4701
+ const select$4 = function PersonalizationRecommenderSimulateActionRepresentationSelect() {
4702
+ return {
4703
+ kind: 'Fragment',
4704
+ version: VERSION$2,
4705
+ private: [],
4706
+ selections: [
4707
+ {
4708
+ name: 'recommendations',
4709
+ kind: 'Object',
4710
+ // any
4711
+ }
4712
+ ]
4713
+ };
4714
+ };
4715
+ function equals$2(existing, incoming) {
4716
+ const existing_recommendations = existing.recommendations;
4717
+ const incoming_recommendations = incoming.recommendations;
4718
+ if (JSONStringify(incoming_recommendations) !== JSONStringify(existing_recommendations)) {
4719
+ return false;
4720
+ }
4721
+ return true;
4722
+ }
4723
+ const ingest$1 = function PersonalizationRecommenderSimulateActionRepresentationIngest(input, path, luvio, store, timestamp) {
4420
4724
  if (process.env.NODE_ENV !== 'production') {
4421
4725
  const validateError = validate$2(input);
4422
4726
  if (validateError !== null) {
@@ -4442,7 +4746,7 @@ function select$3(luvio, params) {
4442
4746
  return select$4();
4443
4747
  }
4444
4748
  function keyBuilder$3(luvio, params) {
4445
- return keyPrefix + '::PersonalizationRecommenderJobCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'idOrName:' + params.urlParams.idOrName + ')';
4749
+ return keyPrefix + '::PersonalizationRecommenderSimulateActionRepresentation:(' + 'idOrName:' + params.urlParams.idOrName + ',' + (params.body.anchors === undefined ? undefined : ('[' + params.body.anchors.map(element => 'anchors.dmoName:' + element.dmoName + '::' + 'anchors.id:' + element.id).join(',') + ']')) + '::' + (params.body.excludeFilters === undefined ? undefined : ('[' + params.body.excludeFilters.map(element => 'excludeFilters.operator:' + element.operator + '::' + '[' + element.rules.map(element => stableJSONStringify(element)).join(',') + ']').join(',') + ']')) + '::' + (params.body.includeFilters === undefined ? undefined : ('[' + params.body.includeFilters.map(element => 'includeFilters.operator:' + element.operator + '::' + '[' + element.rules.map(element => stableJSONStringify(element)).join(',') + ']').join(',') + ']')) + '::' + (params.body.individualId === undefined ? 'individualId' : 'individualId:' + params.body.individualId) + ')';
4446
4750
  }
4447
4751
  function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
4448
4752
  getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
@@ -4480,31 +4784,76 @@ function createResourceRequest$1(config) {
4480
4784
  const headers = {};
4481
4785
  return {
4482
4786
  baseUri: '/services/data/v64.0',
4483
- basePath: '/personalization/personalization-recommenders/' + config.urlParams.idOrName + '/jobs',
4484
- method: 'get',
4485
- body: null,
4787
+ basePath: '/personalization/personalization-recommenders/' + config.urlParams.idOrName + '/actions/simulate',
4788
+ method: 'post',
4789
+ body: config.body,
4486
4790
  urlParams: config.urlParams,
4487
- queryParams: config.queryParams,
4791
+ queryParams: {},
4488
4792
  headers,
4489
4793
  priority: 'normal',
4490
4794
  };
4491
4795
  }
4492
4796
 
4493
- const adapterName$1 = 'getTrainingHistory';
4494
- const getTrainingHistory_ConfigPropertyMetadata = [
4797
+ const adapterName$1 = 'postPersonalizationRecommenderSimulateAction';
4798
+ const postPersonalizationRecommenderSimulateAction_ConfigPropertyMetadata = [
4495
4799
  generateParamConfigMetadata('idOrName', true, 0 /* UrlParameter */, 0 /* String */),
4496
- generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
4497
- generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
4800
+ generateParamConfigMetadata('anchors', false, 2 /* Body */, 4 /* Unsupported */, true),
4801
+ generateParamConfigMetadata('excludeFilters', false, 2 /* Body */, 4 /* Unsupported */, true),
4802
+ generateParamConfigMetadata('includeFilters', false, 2 /* Body */, 4 /* Unsupported */, true),
4803
+ generateParamConfigMetadata('individualId', false, 2 /* Body */, 4 /* Unsupported */),
4498
4804
  ];
4499
- const getTrainingHistory_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getTrainingHistory_ConfigPropertyMetadata);
4500
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$9(getTrainingHistory_ConfigPropertyMetadata);
4805
+ const postPersonalizationRecommenderSimulateAction_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, postPersonalizationRecommenderSimulateAction_ConfigPropertyMetadata);
4806
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$a(postPersonalizationRecommenderSimulateAction_ConfigPropertyMetadata);
4501
4807
  function keyBuilder$2(luvio, config) {
4502
4808
  const resourceParams = createResourceParams$1(config);
4503
4809
  return keyBuilder$3(luvio, resourceParams);
4504
4810
  }
4505
4811
  function typeCheckConfig$1(untrustedConfig) {
4506
4812
  const config = {};
4507
- typeCheckConfig$9(untrustedConfig, config, getTrainingHistory_ConfigPropertyMetadata);
4813
+ typeCheckConfig$a(untrustedConfig, config, postPersonalizationRecommenderSimulateAction_ConfigPropertyMetadata);
4814
+ const untrustedConfig_anchors = untrustedConfig.anchors;
4815
+ if (ArrayIsArray$1(untrustedConfig_anchors)) {
4816
+ const untrustedConfig_anchors_array = [];
4817
+ for (let i = 0, arrayLength = untrustedConfig_anchors.length; i < arrayLength; i++) {
4818
+ const untrustedConfig_anchors_item = untrustedConfig_anchors[i];
4819
+ const referenceAnchorReferenceRepresentationValidationError = validate$4(untrustedConfig_anchors_item);
4820
+ if (referenceAnchorReferenceRepresentationValidationError === null) {
4821
+ untrustedConfig_anchors_array.push(untrustedConfig_anchors_item);
4822
+ }
4823
+ }
4824
+ config.anchors = untrustedConfig_anchors_array;
4825
+ }
4826
+ const untrustedConfig_excludeFilters = untrustedConfig.excludeFilters;
4827
+ if (ArrayIsArray$1(untrustedConfig_excludeFilters)) {
4828
+ const untrustedConfig_excludeFilters_array = [];
4829
+ for (let i = 0, arrayLength = untrustedConfig_excludeFilters.length; i < arrayLength; i++) {
4830
+ const untrustedConfig_excludeFilters_item = untrustedConfig_excludeFilters[i];
4831
+ const referenceRuleGroupInputRepresentationValidationError = validate$3(untrustedConfig_excludeFilters_item);
4832
+ if (referenceRuleGroupInputRepresentationValidationError === null) {
4833
+ untrustedConfig_excludeFilters_array.push(untrustedConfig_excludeFilters_item);
4834
+ }
4835
+ }
4836
+ config.excludeFilters = untrustedConfig_excludeFilters_array;
4837
+ }
4838
+ const untrustedConfig_includeFilters = untrustedConfig.includeFilters;
4839
+ if (ArrayIsArray$1(untrustedConfig_includeFilters)) {
4840
+ const untrustedConfig_includeFilters_array = [];
4841
+ for (let i = 0, arrayLength = untrustedConfig_includeFilters.length; i < arrayLength; i++) {
4842
+ const untrustedConfig_includeFilters_item = untrustedConfig_includeFilters[i];
4843
+ const referenceRuleGroupInputRepresentationValidationError = validate$3(untrustedConfig_includeFilters_item);
4844
+ if (referenceRuleGroupInputRepresentationValidationError === null) {
4845
+ untrustedConfig_includeFilters_array.push(untrustedConfig_includeFilters_item);
4846
+ }
4847
+ }
4848
+ config.includeFilters = untrustedConfig_includeFilters_array;
4849
+ }
4850
+ const untrustedConfig_individualId = untrustedConfig.individualId;
4851
+ if (typeof untrustedConfig_individualId === 'string') {
4852
+ config.individualId = untrustedConfig_individualId;
4853
+ }
4854
+ if (untrustedConfig_individualId === null) {
4855
+ config.individualId = untrustedConfig_individualId;
4856
+ }
4508
4857
  return config;
4509
4858
  }
4510
4859
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -4553,7 +4902,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
4553
4902
  });
4554
4903
  }
4555
4904
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
4556
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
4905
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, 'get', false);
4557
4906
  }
4558
4907
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
4559
4908
  const { luvio, config } = context;
@@ -4568,8 +4917,8 @@ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
4568
4917
  });
4569
4918
  return cacheSnapshot;
4570
4919
  }
4571
- const getTrainingHistoryAdapterFactory = (luvio) => function personalizationService__getTrainingHistory(untrustedConfig, requestContext) {
4572
- const config = validateAdapterConfig$1(untrustedConfig, getTrainingHistory_ConfigPropertyNames);
4920
+ const postPersonalizationRecommenderSimulateActionAdapterFactory = (luvio) => function personalizationService__postPersonalizationRecommenderSimulateAction(untrustedConfig, requestContext) {
4921
+ const config = validateAdapterConfig$1(untrustedConfig, postPersonalizationRecommenderSimulateAction_ConfigPropertyNames);
4573
4922
  // Invalid or incomplete config
4574
4923
  if (config === null) {
4575
4924
  return null;
@@ -4809,14 +5158,14 @@ const getPersonalizationEsModelMapping_ConfigPropertyMetadata = [
4809
5158
  generateParamConfigMetadata('profileDataGraphIdOrName', false, 1 /* QueryParameter */, 0 /* String */),
4810
5159
  ];
4811
5160
  const getPersonalizationEsModelMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getPersonalizationEsModelMapping_ConfigPropertyMetadata);
4812
- const createResourceParams = /*#__PURE__*/ createResourceParams$9(getPersonalizationEsModelMapping_ConfigPropertyMetadata);
5161
+ const createResourceParams = /*#__PURE__*/ createResourceParams$a(getPersonalizationEsModelMapping_ConfigPropertyMetadata);
4813
5162
  function keyBuilder(luvio, config) {
4814
5163
  const resourceParams = createResourceParams(config);
4815
5164
  return keyBuilder$1(luvio, resourceParams);
4816
5165
  }
4817
5166
  function typeCheckConfig(untrustedConfig) {
4818
5167
  const config = {};
4819
- typeCheckConfig$9(untrustedConfig, config, getPersonalizationEsModelMapping_ConfigPropertyMetadata);
5168
+ typeCheckConfig$a(untrustedConfig, config, getPersonalizationEsModelMapping_ConfigPropertyMetadata);
4820
5169
  return config;
4821
5170
  }
4822
5171
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -4865,7 +5214,7 @@ function buildNetworkSnapshot(luvio, config, options) {
4865
5214
  });
4866
5215
  }
4867
5216
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
4868
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
5217
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
4869
5218
  }
4870
5219
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
4871
5220
  const { luvio, config } = context;
@@ -4890,4 +5239,4 @@ const getPersonalizationEsModelMappingAdapterFactory = (luvio) => function perso
4890
5239
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
4891
5240
  };
4892
5241
 
4893
- export { createPersonalizationPointAdapterFactory, createPersonalizationSchemaAdapterFactory, deletePersonalizationPointAdapterFactory, deletePersonalizationSchemaAdapterFactory, getPersonalizationEsModelMappingAdapterFactory, getPersonalizationPointAdapterFactory, getPersonalizationSchemaAdapterFactory, getTrainingHistoryAdapterFactory, updatePersonalizationPointAdapterFactory };
5242
+ export { createPersonalizationPointAdapterFactory, createPersonalizationSchemaAdapterFactory, deletePersonalizationPointAdapterFactory, deletePersonalizationSchemaAdapterFactory, getPersonalizationEsModelMappingAdapterFactory, getPersonalizationPointAdapterFactory, getPersonalizationSchemaAdapterFactory, getTrainingHistoryAdapterFactory, postPersonalizationRecommenderSimulateActionAdapterFactory, updatePersonalizationPointAdapterFactory };