@salesforce/lds-adapters-cdp-personalization-service 1.354.0-dev2 → 1.354.0-dev20

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 (29) hide show
  1. package/dist/es/es2018/cdp-personalization-service.js +1795 -575
  2. package/dist/es/es2018/types/src/generated/adapters/createPersonalizationExperiencesConfig.d.ts +25 -0
  3. package/dist/es/es2018/types/src/generated/adapters/deletePersonalizationExperienceConfig.d.ts +15 -0
  4. package/dist/es/es2018/types/src/generated/adapters/getPersonalizationEsModelMapping.d.ts +8 -6
  5. package/dist/es/es2018/types/src/generated/adapters/getPersonalizationExperienceConfig.d.ts +29 -0
  6. package/dist/es/es2018/types/src/generated/adapters/getPersonalizationExperiencesConfigs.d.ts +29 -0
  7. package/dist/es/es2018/types/src/generated/adapters/updatePersonalizationExperienceConfig.d.ts +26 -0
  8. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +5 -0
  9. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +9 -1
  10. package/dist/es/es2018/types/src/generated/resources/deletePersonalizationExternalAppsPersonalizationExperienceConfigsByIdOrAppSourceIdOrNameAndNameParam.d.ts +13 -0
  11. package/dist/es/es2018/types/src/generated/resources/{getPersonalizationEinsteinStudioModelMapping.d.ts → getPersonalizationDataMlModels.d.ts} +4 -2
  12. package/dist/es/es2018/types/src/generated/resources/getPersonalizationExternalAppsPersonalizationExperienceConfigsByIdOrAppSourceIdOrName.d.ts +19 -0
  13. package/dist/es/es2018/types/src/generated/resources/getPersonalizationExternalAppsPersonalizationExperienceConfigsByIdOrAppSourceIdOrNameAndNameParam.d.ts +17 -0
  14. package/dist/es/es2018/types/src/generated/resources/postPersonalizationExternalAppsPersonalizationExperienceConfigsByIdOrAppSourceIdOrName.d.ts +24 -0
  15. package/dist/es/es2018/types/src/generated/resources/putPersonalizationExternalAppsPersonalizationExperienceConfigsByIdOrAppSourceIdOrNameAndNameParam.d.ts +25 -0
  16. package/dist/es/es2018/types/src/generated/types/PersonalizationDataMlModelInputFeatureRepresentation.d.ts +34 -0
  17. package/dist/es/es2018/types/src/generated/types/PersonalizationDataMlModelRepresentation.d.ts +28 -15
  18. package/dist/es/es2018/types/src/generated/types/PersonalizationExperienceConfigCollectionInputRepresentation.d.ts +28 -0
  19. package/dist/es/es2018/types/src/generated/types/PersonalizationExperienceConfigCollectionRepresentation.d.ts +31 -0
  20. package/dist/es/es2018/types/src/generated/types/PersonalizationExperienceConfigInputRepresentation.d.ts +56 -0
  21. package/dist/es/es2018/types/src/generated/types/PersonalizationExperienceConfigRepresentation.d.ts +77 -0
  22. package/dist/es/es2018/types/src/generated/types/PersonalizationPaginatedResponseBaseRepresentation.d.ts +35 -0
  23. package/dist/es/es2018/types/src/raml-artifacts/resources/deletePersonalizationExternalAppsPersonalizationExperienceConfigsByIdOrAppSourceIdOrNameAndNameParam/createResourceRequest.d.ts +3 -0
  24. package/dist/es/es2018/types/src/raml-artifacts/resources/getPersonalizationExternalAppsPersonalizationExperienceConfigsByIdOrAppSourceIdOrNameAndNameParam/createResourceRequest.d.ts +3 -0
  25. package/dist/es/es2018/types/src/raml-artifacts/resources/putPersonalizationExternalAppsPersonalizationExperienceConfigsByIdOrAppSourceIdOrNameAndNameParam/createResourceRequest.d.ts +3 -0
  26. package/package.json +15 -4
  27. package/sfdc/index.js +3650 -2353
  28. package/src/raml/api.raml +277 -13
  29. package/src/raml/luvio.raml +36 -1
@@ -4,7 +4,7 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$a, typeCheckConfig as typeCheckConfig$a, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$f, typeCheckConfig as typeCheckConfig$f, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$7 } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
@@ -92,7 +92,7 @@ function createLink(ref) {
92
92
  };
93
93
  }
94
94
 
95
- function validate$j(obj, path = 'PersonalizationAttributeValueInputRepresentation') {
95
+ function validate$n(obj, path = 'PersonalizationAttributeValueInputRepresentation') {
96
96
  const v_error = (() => {
97
97
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
98
98
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -183,7 +183,7 @@ function validate$j(obj, path = 'PersonalizationAttributeValueInputRepresentatio
183
183
  return v_error === undefined ? null : v_error;
184
184
  }
185
185
 
186
- function validate$i(obj, path = 'PersonalizationDecisionInputRepresentation') {
186
+ function validate$m(obj, path = 'PersonalizationDecisionInputRepresentation') {
187
187
  const v_error = (() => {
188
188
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
189
189
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -197,7 +197,7 @@ function validate$i(obj, path = 'PersonalizationDecisionInputRepresentation') {
197
197
  for (let i = 0; i < obj_attributeValues.length; i++) {
198
198
  const obj_attributeValues_item = obj_attributeValues[i];
199
199
  const path_attributeValues_item = path_attributeValues + '[' + i + ']';
200
- const referencepath_attributeValues_itemValidationError = validate$j(obj_attributeValues_item, path_attributeValues_item);
200
+ const referencepath_attributeValues_itemValidationError = validate$n(obj_attributeValues_item, path_attributeValues_item);
201
201
  if (referencepath_attributeValues_itemValidationError !== null) {
202
202
  let message = 'Object doesn\'t match PersonalizationAttributeValueInputRepresentation (at "' + path_attributeValues_item + '")\n';
203
203
  message += referencepath_attributeValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -371,8 +371,8 @@ function validate$i(obj, path = 'PersonalizationDecisionInputRepresentation') {
371
371
  return v_error === undefined ? null : v_error;
372
372
  }
373
373
 
374
- const VERSION$b = "52ea9c14b7a747a28cedbcff0e7ab169";
375
- function validate$h(obj, path = 'PersonalizationAttributeValueRepresentation') {
374
+ const VERSION$e = "52ea9c14b7a747a28cedbcff0e7ab169";
375
+ function validate$l(obj, path = 'PersonalizationAttributeValueRepresentation') {
376
376
  const v_error = (() => {
377
377
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
378
378
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -458,10 +458,10 @@ function validate$h(obj, path = 'PersonalizationAttributeValueRepresentation') {
458
458
  })();
459
459
  return v_error === undefined ? null : v_error;
460
460
  }
461
- const select$j = function PersonalizationAttributeValueRepresentationSelect() {
461
+ const select$q = function PersonalizationAttributeValueRepresentationSelect() {
462
462
  return {
463
463
  kind: 'Fragment',
464
- version: VERSION$b,
464
+ version: VERSION$e,
465
465
  private: [],
466
466
  selections: [
467
467
  {
@@ -479,7 +479,7 @@ const select$j = function PersonalizationAttributeValueRepresentationSelect() {
479
479
  ]
480
480
  };
481
481
  };
482
- function equals$b(existing, incoming) {
482
+ function equals$f(existing, incoming) {
483
483
  const existing_attributeEnum = existing.attributeEnum;
484
484
  const incoming_attributeEnum = incoming.attributeEnum;
485
485
  if (!(existing_attributeEnum === incoming_attributeEnum)) {
@@ -498,7 +498,7 @@ function equals$b(existing, incoming) {
498
498
  return true;
499
499
  }
500
500
 
501
- function validate$g(obj, path = 'FiltersWrapRepresentation') {
501
+ function validate$k(obj, path = 'FiltersWrapRepresentation') {
502
502
  const v_error = (() => {
503
503
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
504
504
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -577,7 +577,7 @@ function validate$g(obj, path = 'FiltersWrapRepresentation') {
577
577
  return v_error === undefined ? null : v_error;
578
578
  }
579
579
 
580
- function validate$f(obj, path = 'SubjectRepresentation') {
580
+ function validate$j(obj, path = 'SubjectRepresentation') {
581
581
  const v_error = (() => {
582
582
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
583
583
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -696,8 +696,8 @@ function validate$f(obj, path = 'SubjectRepresentation') {
696
696
  return v_error === undefined ? null : v_error;
697
697
  }
698
698
 
699
- const VERSION$a = "089c2877ffa367e376fe74f8d358ffa8";
700
- function validate$e(obj, path = 'FilterRepresentation') {
699
+ const VERSION$d = "089c2877ffa367e376fe74f8d358ffa8";
700
+ function validate$i(obj, path = 'FilterRepresentation') {
701
701
  const v_error = (() => {
702
702
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
703
703
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -735,7 +735,7 @@ function validate$e(obj, path = 'FilterRepresentation') {
735
735
  const path_comparison = path + '.comparison';
736
736
  let obj_comparison_union0 = null;
737
737
  const obj_comparison_union0_error = (() => {
738
- const referencepath_comparisonValidationError = validate$e(obj_comparison, path_comparison);
738
+ const referencepath_comparisonValidationError = validate$i(obj_comparison, path_comparison);
739
739
  if (referencepath_comparisonValidationError !== null) {
740
740
  let message = 'Object doesn\'t match FilterRepresentation (at "' + path_comparison + '")\n';
741
741
  message += referencepath_comparisonValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -766,7 +766,7 @@ function validate$e(obj, path = 'FilterRepresentation') {
766
766
  const path_filter = path + '.filter';
767
767
  let obj_filter_union0 = null;
768
768
  const obj_filter_union0_error = (() => {
769
- const referencepath_filterValidationError = validate$g(obj_filter, path_filter);
769
+ const referencepath_filterValidationError = validate$k(obj_filter, path_filter);
770
770
  if (referencepath_filterValidationError !== null) {
771
771
  let message = 'Object doesn\'t match FiltersWrapRepresentation (at "' + path_filter + '")\n';
772
772
  message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -803,7 +803,7 @@ function validate$e(obj, path = 'FilterRepresentation') {
803
803
  const path_filters_item = path_filters + '[' + i + ']';
804
804
  let obj_filters_item_union0 = null;
805
805
  const obj_filters_item_union0_error = (() => {
806
- const referencepath_filters_itemValidationError = validate$e(obj_filters_item, path_filters_item);
806
+ const referencepath_filters_itemValidationError = validate$i(obj_filters_item, path_filters_item);
807
807
  if (referencepath_filters_itemValidationError !== null) {
808
808
  let message = 'Object doesn\'t match FilterRepresentation (at "' + path_filters_item + '")\n';
809
809
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -863,7 +863,7 @@ function validate$e(obj, path = 'FilterRepresentation') {
863
863
  const path_metric = path + '.metric';
864
864
  let obj_metric_union0 = null;
865
865
  const obj_metric_union0_error = (() => {
866
- const referencepath_metricValidationError = validate$f(obj_metric, path_metric);
866
+ const referencepath_metricValidationError = validate$j(obj_metric, path_metric);
867
867
  if (referencepath_metricValidationError !== null) {
868
868
  let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_metric + '")\n';
869
869
  message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -932,7 +932,7 @@ function validate$e(obj, path = 'FilterRepresentation') {
932
932
  for (let i = 0; i < obj_path_item.length; i++) {
933
933
  const obj_path_item_item = obj_path_item[i];
934
934
  const path_path_item_item = path_path_item + '[' + i + ']';
935
- const referencepath_path_item_itemValidationError = validate$f(obj_path_item_item, path_path_item_item);
935
+ const referencepath_path_item_itemValidationError = validate$j(obj_path_item_item, path_path_item_item);
936
936
  if (referencepath_path_item_itemValidationError !== null) {
937
937
  let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_path_item_item + '")\n';
938
938
  message += referencepath_path_item_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1030,7 +1030,7 @@ function validate$e(obj, path = 'FilterRepresentation') {
1030
1030
  const path_subject = path + '.subject';
1031
1031
  let obj_subject_union0 = null;
1032
1032
  const obj_subject_union0_error = (() => {
1033
- const referencepath_subjectValidationError = validate$f(obj_subject, path_subject);
1033
+ const referencepath_subjectValidationError = validate$j(obj_subject, path_subject);
1034
1034
  if (referencepath_subjectValidationError !== null) {
1035
1035
  let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_subject + '")\n';
1036
1036
  message += referencepath_subjectValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1129,48 +1129,48 @@ function validate$e(obj, path = 'FilterRepresentation') {
1129
1129
  })();
1130
1130
  return v_error === undefined ? null : v_error;
1131
1131
  }
1132
- const RepresentationType$7 = 'FilterRepresentation';
1133
- function normalize$7(input, existing, path, luvio, store, timestamp) {
1132
+ const RepresentationType$9 = 'FilterRepresentation';
1133
+ function normalize$9(input, existing, path, luvio, store, timestamp) {
1134
1134
  return input;
1135
1135
  }
1136
- const select$i = function FilterRepresentationSelect() {
1136
+ const select$p = function FilterRepresentationSelect() {
1137
1137
  return {
1138
1138
  kind: 'Fragment',
1139
- version: VERSION$a,
1139
+ version: VERSION$d,
1140
1140
  private: [],
1141
1141
  opaque: true
1142
1142
  };
1143
1143
  };
1144
- function equals$a(existing, incoming) {
1144
+ function equals$e(existing, incoming) {
1145
1145
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
1146
1146
  return false;
1147
1147
  }
1148
1148
  return true;
1149
1149
  }
1150
- const ingest$7 = function FilterRepresentationIngest(input, path, luvio, store, timestamp) {
1150
+ const ingest$9 = function FilterRepresentationIngest(input, path, luvio, store, timestamp) {
1151
1151
  if (process.env.NODE_ENV !== 'production') {
1152
- const validateError = validate$e(input);
1152
+ const validateError = validate$i(input);
1153
1153
  if (validateError !== null) {
1154
1154
  throw validateError;
1155
1155
  }
1156
1156
  }
1157
1157
  const key = path.fullPath;
1158
1158
  const ttlToUse = path.ttl;
1159
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "personalization-service", VERSION$a, RepresentationType$7, equals$a);
1159
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "personalization-service", VERSION$d, RepresentationType$9, equals$e);
1160
1160
  return createLink(key);
1161
1161
  };
1162
- function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
1162
+ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
1163
1163
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1164
1164
  const rootKey = fullPathFactory();
1165
1165
  rootKeySet.set(rootKey, {
1166
1166
  namespace: keyPrefix,
1167
- representationName: RepresentationType$7,
1167
+ representationName: RepresentationType$9,
1168
1168
  mergeable: false
1169
1169
  });
1170
1170
  }
1171
1171
 
1172
- const VERSION$9 = "ea475f10b4c028f8b97a44af1cf0be14";
1173
- function validate$d(obj, path = 'CriteriaRepresentation') {
1172
+ const VERSION$c = "ea475f10b4c028f8b97a44af1cf0be14";
1173
+ function validate$h(obj, path = 'CriteriaRepresentation') {
1174
1174
  const v_error = (() => {
1175
1175
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1176
1176
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1200,14 +1200,14 @@ function validate$d(obj, path = 'CriteriaRepresentation') {
1200
1200
  })();
1201
1201
  return v_error === undefined ? null : v_error;
1202
1202
  }
1203
- const RepresentationType$6 = 'CriteriaRepresentation';
1204
- function normalize$6(input, existing, path, luvio, store, timestamp) {
1203
+ const RepresentationType$8 = 'CriteriaRepresentation';
1204
+ function normalize$8(input, existing, path, luvio, store, timestamp) {
1205
1205
  const input_filters = input.filters;
1206
1206
  const input_filters_id = path.fullPath + '__filters';
1207
1207
  for (let i = 0; i < input_filters.length; i++) {
1208
1208
  const input_filters_item = input_filters[i];
1209
1209
  let input_filters_item_id = input_filters_id + '__' + i;
1210
- input_filters[i] = ingest$7(input_filters_item, {
1210
+ input_filters[i] = ingest$9(input_filters_item, {
1211
1211
  fullPath: input_filters_item_id,
1212
1212
  propertyName: i,
1213
1213
  parent: {
@@ -1220,17 +1220,17 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
1220
1220
  }
1221
1221
  return input;
1222
1222
  }
1223
- const select$h = function CriteriaRepresentationSelect() {
1223
+ const select$o = function CriteriaRepresentationSelect() {
1224
1224
  return {
1225
1225
  kind: 'Fragment',
1226
- version: VERSION$9,
1226
+ version: VERSION$c,
1227
1227
  private: [],
1228
1228
  selections: [
1229
1229
  {
1230
1230
  name: 'filters',
1231
1231
  kind: 'Link',
1232
1232
  plural: true,
1233
- fragment: select$i()
1233
+ fragment: select$p()
1234
1234
  },
1235
1235
  {
1236
1236
  name: 'operator',
@@ -1243,7 +1243,7 @@ const select$h = function CriteriaRepresentationSelect() {
1243
1243
  ]
1244
1244
  };
1245
1245
  };
1246
- function equals$9(existing, incoming) {
1246
+ function equals$d(existing, incoming) {
1247
1247
  const existing_operator = existing.operator;
1248
1248
  const incoming_operator = incoming.operator;
1249
1249
  if (!(existing_operator === incoming_operator)) {
@@ -1266,34 +1266,34 @@ function equals$9(existing, incoming) {
1266
1266
  }
1267
1267
  return true;
1268
1268
  }
1269
- const ingest$6 = function CriteriaRepresentationIngest(input, path, luvio, store, timestamp) {
1269
+ const ingest$8 = function CriteriaRepresentationIngest(input, path, luvio, store, timestamp) {
1270
1270
  if (process.env.NODE_ENV !== 'production') {
1271
- const validateError = validate$d(input);
1271
+ const validateError = validate$h(input);
1272
1272
  if (validateError !== null) {
1273
1273
  throw validateError;
1274
1274
  }
1275
1275
  }
1276
1276
  const key = path.fullPath;
1277
1277
  const ttlToUse = path.ttl;
1278
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "personalization-service", VERSION$9, RepresentationType$6, equals$9);
1278
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "personalization-service", VERSION$c, RepresentationType$8, equals$d);
1279
1279
  return createLink(key);
1280
1280
  };
1281
- function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1281
+ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
1282
1282
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1283
1283
  const rootKey = fullPathFactory();
1284
1284
  rootKeySet.set(rootKey, {
1285
1285
  namespace: keyPrefix,
1286
- representationName: RepresentationType$6,
1286
+ representationName: RepresentationType$8,
1287
1287
  mergeable: false
1288
1288
  });
1289
1289
  const input_filters_length = input.filters.length;
1290
1290
  for (let i = 0; i < input_filters_length; i++) {
1291
- getTypeCacheKeys$7(rootKeySet, luvio, input.filters[i], () => '');
1291
+ getTypeCacheKeys$9(rootKeySet, luvio, input.filters[i], () => '');
1292
1292
  }
1293
1293
  }
1294
1294
 
1295
- const VERSION$8 = "265767af783b296f5f902d6ed447b168";
1296
- function validate$c(obj, path = 'PersonalizationDecisionRepresentation') {
1295
+ const VERSION$b = "265767af783b296f5f902d6ed447b168";
1296
+ function validate$g(obj, path = 'PersonalizationDecisionRepresentation') {
1297
1297
  const v_error = (() => {
1298
1298
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1299
1299
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1306,7 +1306,7 @@ function validate$c(obj, path = 'PersonalizationDecisionRepresentation') {
1306
1306
  for (let i = 0; i < obj_attributeValues.length; i++) {
1307
1307
  const obj_attributeValues_item = obj_attributeValues[i];
1308
1308
  const path_attributeValues_item = path_attributeValues + '[' + i + ']';
1309
- const referencepath_attributeValues_itemValidationError = validate$h(obj_attributeValues_item, path_attributeValues_item);
1309
+ const referencepath_attributeValues_itemValidationError = validate$l(obj_attributeValues_item, path_attributeValues_item);
1310
1310
  if (referencepath_attributeValues_itemValidationError !== null) {
1311
1311
  let message = 'Object doesn\'t match PersonalizationAttributeValueRepresentation (at "' + path_attributeValues_item + '")\n';
1312
1312
  message += referencepath_attributeValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1628,12 +1628,12 @@ function validate$c(obj, path = 'PersonalizationDecisionRepresentation') {
1628
1628
  })();
1629
1629
  return v_error === undefined ? null : v_error;
1630
1630
  }
1631
- const RepresentationType$5 = 'PersonalizationDecisionRepresentation';
1632
- function normalize$5(input, existing, path, luvio, store, timestamp) {
1631
+ const RepresentationType$7 = 'PersonalizationDecisionRepresentation';
1632
+ function normalize$7(input, existing, path, luvio, store, timestamp) {
1633
1633
  const input_criteria = input.criteria;
1634
1634
  const input_criteria_id = path.fullPath + '__criteria';
1635
1635
  if (input_criteria !== null && typeof input_criteria === 'object') {
1636
- input.criteria = ingest$6(input_criteria, {
1636
+ input.criteria = ingest$8(input_criteria, {
1637
1637
  fullPath: input_criteria_id,
1638
1638
  propertyName: 'criteria',
1639
1639
  parent: {
@@ -1646,11 +1646,11 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
1646
1646
  }
1647
1647
  return input;
1648
1648
  }
1649
- const select$g = function PersonalizationDecisionRepresentationSelect() {
1650
- const { selections: PersonalizationAttributeValueRepresentation__selections, opaque: PersonalizationAttributeValueRepresentation__opaque, } = select$j();
1649
+ const select$n = function PersonalizationDecisionRepresentationSelect() {
1650
+ const { selections: PersonalizationAttributeValueRepresentation__selections, opaque: PersonalizationAttributeValueRepresentation__opaque, } = select$q();
1651
1651
  return {
1652
1652
  kind: 'Fragment',
1653
- version: VERSION$8,
1653
+ version: VERSION$b,
1654
1654
  private: [],
1655
1655
  selections: [
1656
1656
  {
@@ -1671,7 +1671,7 @@ const select$g = function PersonalizationDecisionRepresentationSelect() {
1671
1671
  name: 'criteria',
1672
1672
  kind: 'Link',
1673
1673
  nullable: true,
1674
- fragment: select$h()
1674
+ fragment: select$o()
1675
1675
  },
1676
1676
  {
1677
1677
  name: 'description',
@@ -1712,11 +1712,11 @@ const select$g = function PersonalizationDecisionRepresentationSelect() {
1712
1712
  ]
1713
1713
  };
1714
1714
  };
1715
- function equals$8(existing, incoming) {
1715
+ function equals$c(existing, incoming) {
1716
1716
  const existing_attributeValues = existing.attributeValues;
1717
1717
  const incoming_attributeValues = incoming.attributeValues;
1718
1718
  const equals_attributeValues_items = equalsArray(existing_attributeValues, incoming_attributeValues, (existing_attributeValues_item, incoming_attributeValues_item) => {
1719
- if (!(equals$b(existing_attributeValues_item, incoming_attributeValues_item))) {
1719
+ if (!(equals$f(existing_attributeValues_item, incoming_attributeValues_item))) {
1720
1720
  return false;
1721
1721
  }
1722
1722
  });
@@ -1790,34 +1790,34 @@ function equals$8(existing, incoming) {
1790
1790
  }
1791
1791
  return true;
1792
1792
  }
1793
- const ingest$5 = function PersonalizationDecisionRepresentationIngest(input, path, luvio, store, timestamp) {
1793
+ const ingest$7 = function PersonalizationDecisionRepresentationIngest(input, path, luvio, store, timestamp) {
1794
1794
  if (process.env.NODE_ENV !== 'production') {
1795
- const validateError = validate$c(input);
1795
+ const validateError = validate$g(input);
1796
1796
  if (validateError !== null) {
1797
1797
  throw validateError;
1798
1798
  }
1799
1799
  }
1800
1800
  const key = path.fullPath;
1801
1801
  const ttlToUse = path.ttl;
1802
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "personalization-service", VERSION$8, RepresentationType$5, equals$8);
1802
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "personalization-service", VERSION$b, RepresentationType$7, equals$c);
1803
1803
  return createLink(key);
1804
1804
  };
1805
- function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1805
+ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
1806
1806
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1807
1807
  const rootKey = fullPathFactory();
1808
1808
  rootKeySet.set(rootKey, {
1809
1809
  namespace: keyPrefix,
1810
- representationName: RepresentationType$5,
1810
+ representationName: RepresentationType$7,
1811
1811
  mergeable: false
1812
1812
  });
1813
1813
  if (input.criteria !== null && typeof input.criteria === 'object') {
1814
- getTypeCacheKeys$6(rootKeySet, luvio, input.criteria, () => rootKey + "__" + "criteria");
1814
+ getTypeCacheKeys$8(rootKeySet, luvio, input.criteria, () => rootKey + "__" + "criteria");
1815
1815
  }
1816
1816
  }
1817
1817
 
1818
- const TTL$4 = 600;
1819
- const VERSION$7 = "e5643ca13ef54c890c9177275a053de3";
1820
- function validate$b(obj, path = 'PersonalizationPointRepresentation') {
1818
+ const TTL$7 = 600;
1819
+ const VERSION$a = "e5643ca13ef54c890c9177275a053de3";
1820
+ function validate$f(obj, path = 'PersonalizationPointRepresentation') {
1821
1821
  const v_error = (() => {
1822
1822
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1823
1823
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2294,23 +2294,23 @@ function validate$b(obj, path = 'PersonalizationPointRepresentation') {
2294
2294
  })();
2295
2295
  return v_error === undefined ? null : v_error;
2296
2296
  }
2297
- const RepresentationType$4 = 'PersonalizationPointRepresentation';
2298
- function keyBuilder$d(luvio, config) {
2299
- return keyPrefix + '::' + RepresentationType$4 + ':' + (config.id === null ? '' : config.id);
2297
+ const RepresentationType$6 = 'PersonalizationPointRepresentation';
2298
+ function keyBuilder$j(luvio, config) {
2299
+ return keyPrefix + '::' + RepresentationType$6 + ':' + (config.id === null ? '' : config.id);
2300
2300
  }
2301
- function keyBuilderFromType$1(luvio, object) {
2301
+ function keyBuilderFromType$2(luvio, object) {
2302
2302
  const keyParams = {
2303
2303
  id: object.name
2304
2304
  };
2305
- return keyBuilder$d(luvio, keyParams);
2305
+ return keyBuilder$j(luvio, keyParams);
2306
2306
  }
2307
- function normalize$4(input, existing, path, luvio, store, timestamp) {
2307
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
2308
2308
  const input_decisions = input.decisions;
2309
2309
  const input_decisions_id = path.fullPath + '__decisions';
2310
2310
  for (let i = 0; i < input_decisions.length; i++) {
2311
2311
  const input_decisions_item = input_decisions[i];
2312
2312
  let input_decisions_item_id = input_decisions_id + '__' + i;
2313
- input_decisions[i] = ingest$5(input_decisions_item, {
2313
+ input_decisions[i] = ingest$7(input_decisions_item, {
2314
2314
  fullPath: input_decisions_item_id,
2315
2315
  propertyName: i,
2316
2316
  parent: {
@@ -2323,10 +2323,10 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
2323
2323
  }
2324
2324
  return input;
2325
2325
  }
2326
- const select$f = function PersonalizationPointRepresentationSelect() {
2326
+ const select$m = function PersonalizationPointRepresentationSelect() {
2327
2327
  return {
2328
2328
  kind: 'Fragment',
2329
- version: VERSION$7,
2329
+ version: VERSION$a,
2330
2330
  private: [],
2331
2331
  selections: [
2332
2332
  {
@@ -2349,7 +2349,7 @@ const select$f = function PersonalizationPointRepresentationSelect() {
2349
2349
  name: 'decisions',
2350
2350
  kind: 'Link',
2351
2351
  plural: true,
2352
- fragment: select$g()
2352
+ fragment: select$n()
2353
2353
  },
2354
2354
  {
2355
2355
  name: 'description',
@@ -2418,7 +2418,7 @@ const select$f = function PersonalizationPointRepresentationSelect() {
2418
2418
  ]
2419
2419
  };
2420
2420
  };
2421
- function equals$7(existing, incoming) {
2421
+ function equals$b(existing, incoming) {
2422
2422
  const existing_isAuthenticationRequired = existing.isAuthenticationRequired;
2423
2423
  const incoming_isAuthenticationRequired = incoming.isAuthenticationRequired;
2424
2424
  if (!(existing_isAuthenticationRequired === incoming_isAuthenticationRequired)) {
@@ -2531,45 +2531,45 @@ function equals$7(existing, incoming) {
2531
2531
  }
2532
2532
  return true;
2533
2533
  }
2534
- const ingest$4 = function PersonalizationPointRepresentationIngest(input, path, luvio, store, timestamp) {
2534
+ const ingest$6 = function PersonalizationPointRepresentationIngest(input, path, luvio, store, timestamp) {
2535
2535
  if (process.env.NODE_ENV !== 'production') {
2536
- const validateError = validate$b(input);
2536
+ const validateError = validate$f(input);
2537
2537
  if (validateError !== null) {
2538
2538
  throw validateError;
2539
2539
  }
2540
2540
  }
2541
- const key = keyBuilderFromType$1(luvio, input);
2542
- const ttlToUse = TTL$4;
2543
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "personalization-service", VERSION$7, RepresentationType$4, equals$7);
2541
+ const key = keyBuilderFromType$2(luvio, input);
2542
+ const ttlToUse = TTL$7;
2543
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "personalization-service", VERSION$a, RepresentationType$6, equals$b);
2544
2544
  return createLink(key);
2545
2545
  };
2546
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
2546
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
2547
2547
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2548
- const rootKey = keyBuilderFromType$1(luvio, input);
2548
+ const rootKey = keyBuilderFromType$2(luvio, input);
2549
2549
  rootKeySet.set(rootKey, {
2550
2550
  namespace: keyPrefix,
2551
- representationName: RepresentationType$4,
2551
+ representationName: RepresentationType$6,
2552
2552
  mergeable: false
2553
2553
  });
2554
2554
  const input_decisions_length = input.decisions.length;
2555
2555
  for (let i = 0; i < input_decisions_length; i++) {
2556
- getTypeCacheKeys$5(rootKeySet, luvio, input.decisions[i], () => '');
2556
+ getTypeCacheKeys$7(rootKeySet, luvio, input.decisions[i], () => '');
2557
2557
  }
2558
2558
  }
2559
2559
 
2560
- function select$e(luvio, params) {
2561
- return select$f();
2560
+ function select$l(luvio, params) {
2561
+ return select$m();
2562
2562
  }
2563
- function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
2564
- getTypeCacheKeys$4(storeKeyMap, luvio, response);
2563
+ function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
2564
+ getTypeCacheKeys$6(storeKeyMap, luvio, response);
2565
2565
  }
2566
- function ingestSuccess$7(luvio, resourceParams, response) {
2566
+ function ingestSuccess$b(luvio, resourceParams, response) {
2567
2567
  const { body } = response;
2568
- const key = keyBuilderFromType$1(luvio, body);
2569
- luvio.storeIngest(key, ingest$4, body);
2568
+ const key = keyBuilderFromType$2(luvio, body);
2569
+ luvio.storeIngest(key, ingest$6, body);
2570
2570
  const snapshot = luvio.storeLookup({
2571
2571
  recordId: key,
2572
- node: select$e(),
2572
+ node: select$l(),
2573
2573
  variables: {},
2574
2574
  });
2575
2575
  if (process.env.NODE_ENV !== 'production') {
@@ -2580,7 +2580,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
2580
2580
  deepFreeze(snapshot.data);
2581
2581
  return snapshot;
2582
2582
  }
2583
- function createResourceRequest$9(config) {
2583
+ function createResourceRequest$h(config) {
2584
2584
  const headers = {};
2585
2585
  return {
2586
2586
  baseUri: '/services/data/v64.0',
@@ -2594,7 +2594,7 @@ function createResourceRequest$9(config) {
2594
2594
  };
2595
2595
  }
2596
2596
 
2597
- const adapterName$9 = 'createPersonalizationPoint';
2597
+ const adapterName$e = 'createPersonalizationPoint';
2598
2598
  const createPersonalizationPoint_ConfigPropertyMetadata = [
2599
2599
  generateParamConfigMetadata('description', false, 2 /* Body */, 4 /* Unsupported */),
2600
2600
  generateParamConfigMetadata('label', true, 2 /* Body */, 4 /* Unsupported */),
@@ -2611,11 +2611,11 @@ const createPersonalizationPoint_ConfigPropertyMetadata = [
2611
2611
  generateParamConfigMetadata('isAuthenticationRequired', true, 2 /* Body */, 1 /* Boolean */),
2612
2612
  generateParamConfigMetadata('sourceRecordId', false, 2 /* Body */, 4 /* Unsupported */),
2613
2613
  ];
2614
- const createPersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, createPersonalizationPoint_ConfigPropertyMetadata);
2615
- const createResourceParams$9 = /*#__PURE__*/ createResourceParams$a(createPersonalizationPoint_ConfigPropertyMetadata);
2616
- function typeCheckConfig$9(untrustedConfig) {
2614
+ const createPersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, createPersonalizationPoint_ConfigPropertyMetadata);
2615
+ const createResourceParams$e = /*#__PURE__*/ createResourceParams$f(createPersonalizationPoint_ConfigPropertyMetadata);
2616
+ function typeCheckConfig$e(untrustedConfig) {
2617
2617
  const config = {};
2618
- typeCheckConfig$a(untrustedConfig, config, createPersonalizationPoint_ConfigPropertyMetadata);
2618
+ typeCheckConfig$f(untrustedConfig, config, createPersonalizationPoint_ConfigPropertyMetadata);
2619
2619
  const untrustedConfig_description = untrustedConfig.description;
2620
2620
  if (typeof untrustedConfig_description === 'string') {
2621
2621
  config.description = untrustedConfig_description;
@@ -2656,7 +2656,7 @@ function typeCheckConfig$9(untrustedConfig) {
2656
2656
  const untrustedConfig_decisions_array = [];
2657
2657
  for (let i = 0, arrayLength = untrustedConfig_decisions.length; i < arrayLength; i++) {
2658
2658
  const untrustedConfig_decisions_item = untrustedConfig_decisions[i];
2659
- const referencePersonalizationDecisionInputRepresentationValidationError = validate$i(untrustedConfig_decisions_item);
2659
+ const referencePersonalizationDecisionInputRepresentationValidationError = validate$m(untrustedConfig_decisions_item);
2660
2660
  if (referencePersonalizationDecisionInputRepresentationValidationError === null) {
2661
2661
  untrustedConfig_decisions_array.push(untrustedConfig_decisions_item);
2662
2662
  }
@@ -2707,30 +2707,30 @@ function typeCheckConfig$9(untrustedConfig) {
2707
2707
  }
2708
2708
  return config;
2709
2709
  }
2710
- function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
2710
+ function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
2711
2711
  if (!untrustedIsObject(untrustedConfig)) {
2712
2712
  return null;
2713
2713
  }
2714
2714
  if (process.env.NODE_ENV !== 'production') {
2715
2715
  validateConfig(untrustedConfig, configPropertyNames);
2716
2716
  }
2717
- const config = typeCheckConfig$9(untrustedConfig);
2717
+ const config = typeCheckConfig$e(untrustedConfig);
2718
2718
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2719
2719
  return null;
2720
2720
  }
2721
2721
  return config;
2722
2722
  }
2723
- function buildNetworkSnapshot$9(luvio, config, options) {
2724
- const resourceParams = createResourceParams$9(config);
2725
- const request = createResourceRequest$9(resourceParams);
2723
+ function buildNetworkSnapshot$e(luvio, config, options) {
2724
+ const resourceParams = createResourceParams$e(config);
2725
+ const request = createResourceRequest$h(resourceParams);
2726
2726
  return luvio.dispatchResourceRequest(request, options)
2727
2727
  .then((response) => {
2728
2728
  return luvio.handleSuccessResponse(() => {
2729
- const snapshot = ingestSuccess$7(luvio, resourceParams, response);
2729
+ const snapshot = ingestSuccess$b(luvio, resourceParams, response);
2730
2730
  return luvio.storeBroadcast().then(() => snapshot);
2731
2731
  }, () => {
2732
2732
  const cache = new StoreKeyMap();
2733
- getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
2733
+ getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
2734
2734
  return cache;
2735
2735
  });
2736
2736
  }, (response) => {
@@ -2740,33 +2740,33 @@ function buildNetworkSnapshot$9(luvio, config, options) {
2740
2740
  }
2741
2741
  const createPersonalizationPointAdapterFactory = (luvio) => {
2742
2742
  return function createPersonalizationPoint(untrustedConfig) {
2743
- const config = validateAdapterConfig$9(untrustedConfig, createPersonalizationPoint_ConfigPropertyNames);
2743
+ const config = validateAdapterConfig$e(untrustedConfig, createPersonalizationPoint_ConfigPropertyNames);
2744
2744
  // Invalid or incomplete config
2745
2745
  if (config === null) {
2746
2746
  throw new Error('Invalid config for "createPersonalizationPoint"');
2747
2747
  }
2748
- return buildNetworkSnapshot$9(luvio, config);
2748
+ return buildNetworkSnapshot$e(luvio, config);
2749
2749
  };
2750
2750
  };
2751
2751
 
2752
- function keyBuilder$c(luvio, params) {
2753
- return keyBuilder$d(luvio, {
2752
+ function keyBuilder$i(luvio, params) {
2753
+ return keyBuilder$j(luvio, {
2754
2754
  id: params.urlParams.idOrName
2755
2755
  });
2756
2756
  }
2757
- function getResponseCacheKeys$8(cacheKeyMap, luvio, resourceParams) {
2758
- const key = keyBuilder$c(luvio, resourceParams);
2757
+ function getResponseCacheKeys$d(cacheKeyMap, luvio, resourceParams) {
2758
+ const key = keyBuilder$i(luvio, resourceParams);
2759
2759
  cacheKeyMap.set(key, {
2760
2760
  namespace: keyPrefix,
2761
- representationName: RepresentationType$4,
2761
+ representationName: RepresentationType$6,
2762
2762
  mergeable: false
2763
2763
  });
2764
2764
  }
2765
- function evictSuccess$1(luvio, resourceParams) {
2766
- const key = keyBuilder$c(luvio, resourceParams);
2765
+ function evictSuccess$2(luvio, resourceParams) {
2766
+ const key = keyBuilder$i(luvio, resourceParams);
2767
2767
  luvio.storeEvict(key);
2768
2768
  }
2769
- function createResourceRequest$8(config) {
2769
+ function createResourceRequest$g(config) {
2770
2770
  const headers = {};
2771
2771
  return {
2772
2772
  baseUri: '/services/data/v64.0',
@@ -2780,41 +2780,41 @@ function createResourceRequest$8(config) {
2780
2780
  };
2781
2781
  }
2782
2782
 
2783
- const adapterName$8 = 'deletePersonalizationPoint';
2783
+ const adapterName$d = 'deletePersonalizationPoint';
2784
2784
  const deletePersonalizationPoint_ConfigPropertyMetadata = [
2785
2785
  generateParamConfigMetadata('idOrName', true, 0 /* UrlParameter */, 0 /* String */),
2786
2786
  ];
2787
- const deletePersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, deletePersonalizationPoint_ConfigPropertyMetadata);
2788
- const createResourceParams$8 = /*#__PURE__*/ createResourceParams$a(deletePersonalizationPoint_ConfigPropertyMetadata);
2789
- function typeCheckConfig$8(untrustedConfig) {
2787
+ const deletePersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, deletePersonalizationPoint_ConfigPropertyMetadata);
2788
+ const createResourceParams$d = /*#__PURE__*/ createResourceParams$f(deletePersonalizationPoint_ConfigPropertyMetadata);
2789
+ function typeCheckConfig$d(untrustedConfig) {
2790
2790
  const config = {};
2791
- typeCheckConfig$a(untrustedConfig, config, deletePersonalizationPoint_ConfigPropertyMetadata);
2791
+ typeCheckConfig$f(untrustedConfig, config, deletePersonalizationPoint_ConfigPropertyMetadata);
2792
2792
  return config;
2793
2793
  }
2794
- function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
2794
+ function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
2795
2795
  if (!untrustedIsObject(untrustedConfig)) {
2796
2796
  return null;
2797
2797
  }
2798
2798
  if (process.env.NODE_ENV !== 'production') {
2799
2799
  validateConfig(untrustedConfig, configPropertyNames);
2800
2800
  }
2801
- const config = typeCheckConfig$8(untrustedConfig);
2801
+ const config = typeCheckConfig$d(untrustedConfig);
2802
2802
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2803
2803
  return null;
2804
2804
  }
2805
2805
  return config;
2806
2806
  }
2807
- function buildNetworkSnapshot$8(luvio, config, options) {
2808
- const resourceParams = createResourceParams$8(config);
2809
- const request = createResourceRequest$8(resourceParams);
2807
+ function buildNetworkSnapshot$d(luvio, config, options) {
2808
+ const resourceParams = createResourceParams$d(config);
2809
+ const request = createResourceRequest$g(resourceParams);
2810
2810
  return luvio.dispatchResourceRequest(request, options)
2811
2811
  .then(() => {
2812
2812
  return luvio.handleSuccessResponse(() => {
2813
- evictSuccess$1(luvio, resourceParams);
2813
+ evictSuccess$2(luvio, resourceParams);
2814
2814
  return luvio.storeBroadcast();
2815
2815
  }, () => {
2816
2816
  const cache = new StoreKeyMap();
2817
- getResponseCacheKeys$8(cache, luvio, resourceParams);
2817
+ getResponseCacheKeys$d(cache, luvio, resourceParams);
2818
2818
  return cache;
2819
2819
  });
2820
2820
  }, (response) => {
@@ -2824,33 +2824,33 @@ function buildNetworkSnapshot$8(luvio, config, options) {
2824
2824
  }
2825
2825
  const deletePersonalizationPointAdapterFactory = (luvio) => {
2826
2826
  return function personalizationServicedeletePersonalizationPoint(untrustedConfig) {
2827
- const config = validateAdapterConfig$8(untrustedConfig, deletePersonalizationPoint_ConfigPropertyNames);
2827
+ const config = validateAdapterConfig$d(untrustedConfig, deletePersonalizationPoint_ConfigPropertyNames);
2828
2828
  // Invalid or incomplete config
2829
2829
  if (config === null) {
2830
- throw new Error(`Invalid config for "${adapterName$8}"`);
2830
+ throw new Error(`Invalid config for "${adapterName$d}"`);
2831
2831
  }
2832
- return buildNetworkSnapshot$8(luvio, config);
2832
+ return buildNetworkSnapshot$d(luvio, config);
2833
2833
  };
2834
2834
  };
2835
2835
 
2836
- function select$d(luvio, params) {
2837
- return select$f();
2836
+ function select$k(luvio, params) {
2837
+ return select$m();
2838
2838
  }
2839
- function keyBuilder$b(luvio, params) {
2840
- return keyBuilder$d(luvio, {
2839
+ function keyBuilder$h(luvio, params) {
2840
+ return keyBuilder$j(luvio, {
2841
2841
  id: params.urlParams.idOrName
2842
2842
  });
2843
2843
  }
2844
- function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
2845
- getTypeCacheKeys$4(storeKeyMap, luvio, response);
2844
+ function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
2845
+ getTypeCacheKeys$6(storeKeyMap, luvio, response);
2846
2846
  }
2847
- function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
2847
+ function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
2848
2848
  const { body } = response;
2849
- const key = keyBuilder$b(luvio, resourceParams);
2850
- luvio.storeIngest(key, ingest$4, body);
2849
+ const key = keyBuilder$h(luvio, resourceParams);
2850
+ luvio.storeIngest(key, ingest$6, body);
2851
2851
  const snapshot = luvio.storeLookup({
2852
2852
  recordId: key,
2853
- node: select$d(),
2853
+ node: select$k(),
2854
2854
  variables: {},
2855
2855
  }, snapshotRefresh);
2856
2856
  if (process.env.NODE_ENV !== 'production') {
@@ -2861,19 +2861,19 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
2861
2861
  deepFreeze(snapshot.data);
2862
2862
  return snapshot;
2863
2863
  }
2864
- function ingestError$4(luvio, params, error, snapshotRefresh) {
2865
- const key = keyBuilder$b(luvio, params);
2864
+ function ingestError$6(luvio, params, error, snapshotRefresh) {
2865
+ const key = keyBuilder$h(luvio, params);
2866
2866
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2867
2867
  const storeMetadataParams = {
2868
- ttl: TTL$4,
2868
+ ttl: TTL$7,
2869
2869
  namespace: keyPrefix,
2870
- version: VERSION$7,
2871
- representationName: RepresentationType$4
2870
+ version: VERSION$a,
2871
+ representationName: RepresentationType$6
2872
2872
  };
2873
2873
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2874
2874
  return errorSnapshot;
2875
2875
  }
2876
- function createResourceRequest$7(config) {
2876
+ function createResourceRequest$f(config) {
2877
2877
  const headers = {};
2878
2878
  return {
2879
2879
  baseUri: '/services/data/v64.0',
@@ -2887,105 +2887,105 @@ function createResourceRequest$7(config) {
2887
2887
  };
2888
2888
  }
2889
2889
 
2890
- const adapterName$7 = 'getPersonalizationPoint';
2890
+ const adapterName$c = 'getPersonalizationPoint';
2891
2891
  const getPersonalizationPoint_ConfigPropertyMetadata = [
2892
2892
  generateParamConfigMetadata('idOrName', true, 0 /* UrlParameter */, 0 /* String */),
2893
2893
  ];
2894
- const getPersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getPersonalizationPoint_ConfigPropertyMetadata);
2895
- const createResourceParams$7 = /*#__PURE__*/ createResourceParams$a(getPersonalizationPoint_ConfigPropertyMetadata);
2896
- function keyBuilder$a(luvio, config) {
2897
- const resourceParams = createResourceParams$7(config);
2898
- return keyBuilder$b(luvio, resourceParams);
2894
+ const getPersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getPersonalizationPoint_ConfigPropertyMetadata);
2895
+ const createResourceParams$c = /*#__PURE__*/ createResourceParams$f(getPersonalizationPoint_ConfigPropertyMetadata);
2896
+ function keyBuilder$g(luvio, config) {
2897
+ const resourceParams = createResourceParams$c(config);
2898
+ return keyBuilder$h(luvio, resourceParams);
2899
2899
  }
2900
- function typeCheckConfig$7(untrustedConfig) {
2900
+ function typeCheckConfig$c(untrustedConfig) {
2901
2901
  const config = {};
2902
- typeCheckConfig$a(untrustedConfig, config, getPersonalizationPoint_ConfigPropertyMetadata);
2902
+ typeCheckConfig$f(untrustedConfig, config, getPersonalizationPoint_ConfigPropertyMetadata);
2903
2903
  return config;
2904
2904
  }
2905
- function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
2905
+ function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
2906
2906
  if (!untrustedIsObject(untrustedConfig)) {
2907
2907
  return null;
2908
2908
  }
2909
2909
  if (process.env.NODE_ENV !== 'production') {
2910
2910
  validateConfig(untrustedConfig, configPropertyNames);
2911
2911
  }
2912
- const config = typeCheckConfig$7(untrustedConfig);
2912
+ const config = typeCheckConfig$c(untrustedConfig);
2913
2913
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2914
2914
  return null;
2915
2915
  }
2916
2916
  return config;
2917
2917
  }
2918
- function adapterFragment$4(luvio, config) {
2919
- createResourceParams$7(config);
2920
- return select$d();
2918
+ function adapterFragment$6(luvio, config) {
2919
+ createResourceParams$c(config);
2920
+ return select$k();
2921
2921
  }
2922
- function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
2923
- const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
2922
+ function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
2923
+ const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
2924
2924
  config,
2925
- resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
2925
+ resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
2926
2926
  });
2927
2927
  return luvio.storeBroadcast().then(() => snapshot);
2928
2928
  }
2929
- function onFetchResponseError$4(luvio, config, resourceParams, response) {
2930
- const snapshot = ingestError$4(luvio, resourceParams, response, {
2929
+ function onFetchResponseError$6(luvio, config, resourceParams, response) {
2930
+ const snapshot = ingestError$6(luvio, resourceParams, response, {
2931
2931
  config,
2932
- resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
2932
+ resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
2933
2933
  });
2934
2934
  return luvio.storeBroadcast().then(() => snapshot);
2935
2935
  }
2936
- function buildNetworkSnapshot$7(luvio, config, options) {
2937
- const resourceParams = createResourceParams$7(config);
2938
- const request = createResourceRequest$7(resourceParams);
2936
+ function buildNetworkSnapshot$c(luvio, config, options) {
2937
+ const resourceParams = createResourceParams$c(config);
2938
+ const request = createResourceRequest$f(resourceParams);
2939
2939
  return luvio.dispatchResourceRequest(request, options)
2940
2940
  .then((response) => {
2941
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
2941
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
2942
2942
  const cache = new StoreKeyMap();
2943
- getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
2943
+ getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
2944
2944
  return cache;
2945
2945
  });
2946
2946
  }, (response) => {
2947
- return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
2947
+ return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
2948
2948
  });
2949
2949
  }
2950
- function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
2951
- return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
2950
+ function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
2951
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
2952
2952
  }
2953
- function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
2953
+ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
2954
2954
  const { luvio, config } = context;
2955
2955
  const selector = {
2956
- recordId: keyBuilder$a(luvio, config),
2957
- node: adapterFragment$4(luvio, config),
2956
+ recordId: keyBuilder$g(luvio, config),
2957
+ node: adapterFragment$6(luvio, config),
2958
2958
  variables: {},
2959
2959
  };
2960
2960
  const cacheSnapshot = storeLookup(selector, {
2961
2961
  config,
2962
- resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
2962
+ resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
2963
2963
  });
2964
2964
  return cacheSnapshot;
2965
2965
  }
2966
2966
  const getPersonalizationPointAdapterFactory = (luvio) => function personalizationService__getPersonalizationPoint(untrustedConfig, requestContext) {
2967
- const config = validateAdapterConfig$7(untrustedConfig, getPersonalizationPoint_ConfigPropertyNames);
2967
+ const config = validateAdapterConfig$c(untrustedConfig, getPersonalizationPoint_ConfigPropertyNames);
2968
2968
  // Invalid or incomplete config
2969
2969
  if (config === null) {
2970
2970
  return null;
2971
2971
  }
2972
2972
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2973
- buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
2973
+ buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
2974
2974
  };
2975
2975
 
2976
- function select$c(luvio, params) {
2977
- return select$f();
2976
+ function select$j(luvio, params) {
2977
+ return select$m();
2978
2978
  }
2979
- function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
2980
- getTypeCacheKeys$4(storeKeyMap, luvio, response);
2979
+ function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
2980
+ getTypeCacheKeys$6(storeKeyMap, luvio, response);
2981
2981
  }
2982
- function ingestSuccess$5(luvio, resourceParams, response) {
2982
+ function ingestSuccess$9(luvio, resourceParams, response) {
2983
2983
  const { body } = response;
2984
- const key = keyBuilderFromType$1(luvio, body);
2985
- luvio.storeIngest(key, ingest$4, body);
2984
+ const key = keyBuilderFromType$2(luvio, body);
2985
+ luvio.storeIngest(key, ingest$6, body);
2986
2986
  const snapshot = luvio.storeLookup({
2987
2987
  recordId: key,
2988
- node: select$c(),
2988
+ node: select$j(),
2989
2989
  variables: {},
2990
2990
  });
2991
2991
  if (process.env.NODE_ENV !== 'production') {
@@ -2996,7 +2996,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
2996
2996
  deepFreeze(snapshot.data);
2997
2997
  return snapshot;
2998
2998
  }
2999
- function createResourceRequest$6(config) {
2999
+ function createResourceRequest$e(config) {
3000
3000
  const headers = {};
3001
3001
  return {
3002
3002
  baseUri: '/services/data/v64.0',
@@ -3010,7 +3010,7 @@ function createResourceRequest$6(config) {
3010
3010
  };
3011
3011
  }
3012
3012
 
3013
- const adapterName$6 = 'updatePersonalizationPoint';
3013
+ const adapterName$b = 'updatePersonalizationPoint';
3014
3014
  const updatePersonalizationPoint_ConfigPropertyMetadata = [
3015
3015
  generateParamConfigMetadata('idOrName', true, 0 /* UrlParameter */, 0 /* String */),
3016
3016
  generateParamConfigMetadata('description', false, 2 /* Body */, 4 /* Unsupported */),
@@ -3028,11 +3028,11 @@ const updatePersonalizationPoint_ConfigPropertyMetadata = [
3028
3028
  generateParamConfigMetadata('isAuthenticationRequired', true, 2 /* Body */, 1 /* Boolean */),
3029
3029
  generateParamConfigMetadata('sourceRecordId', false, 2 /* Body */, 4 /* Unsupported */),
3030
3030
  ];
3031
- const updatePersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, updatePersonalizationPoint_ConfigPropertyMetadata);
3032
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$a(updatePersonalizationPoint_ConfigPropertyMetadata);
3033
- function typeCheckConfig$6(untrustedConfig) {
3031
+ const updatePersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, updatePersonalizationPoint_ConfigPropertyMetadata);
3032
+ const createResourceParams$b = /*#__PURE__*/ createResourceParams$f(updatePersonalizationPoint_ConfigPropertyMetadata);
3033
+ function typeCheckConfig$b(untrustedConfig) {
3034
3034
  const config = {};
3035
- typeCheckConfig$a(untrustedConfig, config, updatePersonalizationPoint_ConfigPropertyMetadata);
3035
+ typeCheckConfig$f(untrustedConfig, config, updatePersonalizationPoint_ConfigPropertyMetadata);
3036
3036
  const untrustedConfig_description = untrustedConfig.description;
3037
3037
  if (typeof untrustedConfig_description === 'string') {
3038
3038
  config.description = untrustedConfig_description;
@@ -3073,7 +3073,7 @@ function typeCheckConfig$6(untrustedConfig) {
3073
3073
  const untrustedConfig_decisions_array = [];
3074
3074
  for (let i = 0, arrayLength = untrustedConfig_decisions.length; i < arrayLength; i++) {
3075
3075
  const untrustedConfig_decisions_item = untrustedConfig_decisions[i];
3076
- const referencePersonalizationDecisionInputRepresentationValidationError = validate$i(untrustedConfig_decisions_item);
3076
+ const referencePersonalizationDecisionInputRepresentationValidationError = validate$m(untrustedConfig_decisions_item);
3077
3077
  if (referencePersonalizationDecisionInputRepresentationValidationError === null) {
3078
3078
  untrustedConfig_decisions_array.push(untrustedConfig_decisions_item);
3079
3079
  }
@@ -3124,30 +3124,30 @@ function typeCheckConfig$6(untrustedConfig) {
3124
3124
  }
3125
3125
  return config;
3126
3126
  }
3127
- function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
3127
+ function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
3128
3128
  if (!untrustedIsObject(untrustedConfig)) {
3129
3129
  return null;
3130
3130
  }
3131
3131
  if (process.env.NODE_ENV !== 'production') {
3132
3132
  validateConfig(untrustedConfig, configPropertyNames);
3133
3133
  }
3134
- const config = typeCheckConfig$6(untrustedConfig);
3134
+ const config = typeCheckConfig$b(untrustedConfig);
3135
3135
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3136
3136
  return null;
3137
3137
  }
3138
3138
  return config;
3139
3139
  }
3140
- function buildNetworkSnapshot$6(luvio, config, options) {
3141
- const resourceParams = createResourceParams$6(config);
3142
- const request = createResourceRequest$6(resourceParams);
3140
+ function buildNetworkSnapshot$b(luvio, config, options) {
3141
+ const resourceParams = createResourceParams$b(config);
3142
+ const request = createResourceRequest$e(resourceParams);
3143
3143
  return luvio.dispatchResourceRequest(request, options)
3144
3144
  .then((response) => {
3145
3145
  return luvio.handleSuccessResponse(() => {
3146
- const snapshot = ingestSuccess$5(luvio, resourceParams, response);
3146
+ const snapshot = ingestSuccess$9(luvio, resourceParams, response);
3147
3147
  return luvio.storeBroadcast().then(() => snapshot);
3148
3148
  }, () => {
3149
3149
  const cache = new StoreKeyMap();
3150
- getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
3150
+ getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
3151
3151
  return cache;
3152
3152
  });
3153
3153
  }, (response) => {
@@ -3157,16 +3157,16 @@ function buildNetworkSnapshot$6(luvio, config, options) {
3157
3157
  }
3158
3158
  const updatePersonalizationPointAdapterFactory = (luvio) => {
3159
3159
  return function updatePersonalizationPoint(untrustedConfig) {
3160
- const config = validateAdapterConfig$6(untrustedConfig, updatePersonalizationPoint_ConfigPropertyNames);
3160
+ const config = validateAdapterConfig$b(untrustedConfig, updatePersonalizationPoint_ConfigPropertyNames);
3161
3161
  // Invalid or incomplete config
3162
3162
  if (config === null) {
3163
3163
  throw new Error('Invalid config for "updatePersonalizationPoint"');
3164
3164
  }
3165
- return buildNetworkSnapshot$6(luvio, config);
3165
+ return buildNetworkSnapshot$b(luvio, config);
3166
3166
  };
3167
3167
  };
3168
3168
 
3169
- function validate$a(obj, path = 'PersonalizationAttributeInputRepresentation') {
3169
+ function validate$e(obj, path = 'PersonalizationAttributeInputRepresentation') {
3170
3170
  const v_error = (() => {
3171
3171
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3172
3172
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3213,8 +3213,8 @@ function validate$a(obj, path = 'PersonalizationAttributeInputRepresentation') {
3213
3213
  return v_error === undefined ? null : v_error;
3214
3214
  }
3215
3215
 
3216
- const VERSION$6 = "014064b188ff923423af6301d64be36a";
3217
- function validate$9(obj, path = 'PersonalizationAttributeRepresentation') {
3216
+ const VERSION$9 = "014064b188ff923423af6301d64be36a";
3217
+ function validate$d(obj, path = 'PersonalizationAttributeRepresentation') {
3218
3218
  const v_error = (() => {
3219
3219
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3220
3220
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3309,10 +3309,10 @@ function validate$9(obj, path = 'PersonalizationAttributeRepresentation') {
3309
3309
  })();
3310
3310
  return v_error === undefined ? null : v_error;
3311
3311
  }
3312
- const select$b = function PersonalizationAttributeRepresentationSelect() {
3312
+ const select$i = function PersonalizationAttributeRepresentationSelect() {
3313
3313
  return {
3314
3314
  kind: 'Fragment',
3315
- version: VERSION$6,
3315
+ version: VERSION$9,
3316
3316
  private: [],
3317
3317
  selections: [
3318
3318
  {
@@ -3354,7 +3354,7 @@ const select$b = function PersonalizationAttributeRepresentationSelect() {
3354
3354
  ]
3355
3355
  };
3356
3356
  };
3357
- function equals$6(existing, incoming) {
3357
+ function equals$a(existing, incoming) {
3358
3358
  const existing_createdById = existing.createdById;
3359
3359
  const incoming_createdById = incoming.createdById;
3360
3360
  if (!(existing_createdById === incoming_createdById)) {
@@ -3403,9 +3403,9 @@ function equals$6(existing, incoming) {
3403
3403
  return true;
3404
3404
  }
3405
3405
 
3406
- const TTL$3 = 600;
3407
- const VERSION$5 = "25740f87643de6fdae570c77bbec7377";
3408
- function validate$8(obj, path = 'PersonalizationSchemaRepresentation') {
3406
+ const TTL$6 = 600;
3407
+ const VERSION$8 = "25740f87643de6fdae570c77bbec7377";
3408
+ function validate$c(obj, path = 'PersonalizationSchemaRepresentation') {
3409
3409
  const v_error = (() => {
3410
3410
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3411
3411
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3418,7 +3418,7 @@ function validate$8(obj, path = 'PersonalizationSchemaRepresentation') {
3418
3418
  for (let i = 0; i < obj_attributes.length; i++) {
3419
3419
  const obj_attributes_item = obj_attributes[i];
3420
3420
  const path_attributes_item = path_attributes + '[' + i + ']';
3421
- const referencepath_attributes_itemValidationError = validate$9(obj_attributes_item, path_attributes_item);
3421
+ const referencepath_attributes_itemValidationError = validate$d(obj_attributes_item, path_attributes_item);
3422
3422
  if (referencepath_attributes_itemValidationError !== null) {
3423
3423
  let message = 'Object doesn\'t match PersonalizationAttributeRepresentation (at "' + path_attributes_item + '")\n';
3424
3424
  message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3563,24 +3563,24 @@ function validate$8(obj, path = 'PersonalizationSchemaRepresentation') {
3563
3563
  })();
3564
3564
  return v_error === undefined ? null : v_error;
3565
3565
  }
3566
- const RepresentationType$3 = 'PersonalizationSchemaRepresentation';
3567
- function keyBuilder$9(luvio, config) {
3568
- return keyPrefix + '::' + RepresentationType$3 + ':' + config.id;
3566
+ const RepresentationType$5 = 'PersonalizationSchemaRepresentation';
3567
+ function keyBuilder$f(luvio, config) {
3568
+ return keyPrefix + '::' + RepresentationType$5 + ':' + config.id;
3569
3569
  }
3570
- function keyBuilderFromType(luvio, object) {
3570
+ function keyBuilderFromType$1(luvio, object) {
3571
3571
  const keyParams = {
3572
3572
  id: object.name
3573
3573
  };
3574
- return keyBuilder$9(luvio, keyParams);
3574
+ return keyBuilder$f(luvio, keyParams);
3575
3575
  }
3576
- function normalize$3(input, existing, path, luvio, store, timestamp) {
3576
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
3577
3577
  return input;
3578
3578
  }
3579
- const select$a = function PersonalizationSchemaRepresentationSelect() {
3580
- const { selections: PersonalizationAttributeRepresentation__selections, opaque: PersonalizationAttributeRepresentation__opaque, } = select$b();
3579
+ const select$h = function PersonalizationSchemaRepresentationSelect() {
3580
+ const { selections: PersonalizationAttributeRepresentation__selections, opaque: PersonalizationAttributeRepresentation__opaque, } = select$i();
3581
3581
  return {
3582
3582
  kind: 'Fragment',
3583
- version: VERSION$5,
3583
+ version: VERSION$8,
3584
3584
  private: [],
3585
3585
  selections: [
3586
3586
  {
@@ -3645,7 +3645,7 @@ const select$a = function PersonalizationSchemaRepresentationSelect() {
3645
3645
  ]
3646
3646
  };
3647
3647
  };
3648
- function equals$5(existing, incoming) {
3648
+ function equals$9(existing, incoming) {
3649
3649
  const existing_createdById = existing.createdById;
3650
3650
  const incoming_createdById = incoming.createdById;
3651
3651
  if (!(existing_createdById === incoming_createdById)) {
@@ -3699,7 +3699,7 @@ function equals$5(existing, incoming) {
3699
3699
  const existing_attributes = existing.attributes;
3700
3700
  const incoming_attributes = incoming.attributes;
3701
3701
  const equals_attributes_items = equalsArray(existing_attributes, incoming_attributes, (existing_attributes_item, incoming_attributes_item) => {
3702
- if (!(equals$6(existing_attributes_item, incoming_attributes_item))) {
3702
+ if (!(equals$a(existing_attributes_item, incoming_attributes_item))) {
3703
3703
  return false;
3704
3704
  }
3705
3705
  });
@@ -3728,41 +3728,41 @@ function equals$5(existing, incoming) {
3728
3728
  }
3729
3729
  return true;
3730
3730
  }
3731
- const ingest$3 = function PersonalizationSchemaRepresentationIngest(input, path, luvio, store, timestamp) {
3731
+ const ingest$5 = function PersonalizationSchemaRepresentationIngest(input, path, luvio, store, timestamp) {
3732
3732
  if (process.env.NODE_ENV !== 'production') {
3733
- const validateError = validate$8(input);
3733
+ const validateError = validate$c(input);
3734
3734
  if (validateError !== null) {
3735
3735
  throw validateError;
3736
3736
  }
3737
3737
  }
3738
- const key = keyBuilderFromType(luvio, input);
3739
- const ttlToUse = TTL$3;
3740
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "personalization-service", VERSION$5, RepresentationType$3, equals$5);
3738
+ const key = keyBuilderFromType$1(luvio, input);
3739
+ const ttlToUse = TTL$6;
3740
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "personalization-service", VERSION$8, RepresentationType$5, equals$9);
3741
3741
  return createLink(key);
3742
3742
  };
3743
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
3743
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
3744
3744
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
3745
- const rootKey = keyBuilderFromType(luvio, input);
3745
+ const rootKey = keyBuilderFromType$1(luvio, input);
3746
3746
  rootKeySet.set(rootKey, {
3747
3747
  namespace: keyPrefix,
3748
- representationName: RepresentationType$3,
3748
+ representationName: RepresentationType$5,
3749
3749
  mergeable: false
3750
3750
  });
3751
3751
  }
3752
3752
 
3753
- function select$9(luvio, params) {
3754
- return select$a();
3753
+ function select$g(luvio, params) {
3754
+ return select$h();
3755
3755
  }
3756
- function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
3757
- getTypeCacheKeys$3(storeKeyMap, luvio, response);
3756
+ function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
3757
+ getTypeCacheKeys$5(storeKeyMap, luvio, response);
3758
3758
  }
3759
- function ingestSuccess$4(luvio, resourceParams, response) {
3759
+ function ingestSuccess$8(luvio, resourceParams, response) {
3760
3760
  const { body } = response;
3761
- const key = keyBuilderFromType(luvio, body);
3762
- luvio.storeIngest(key, ingest$3, body);
3761
+ const key = keyBuilderFromType$1(luvio, body);
3762
+ luvio.storeIngest(key, ingest$5, body);
3763
3763
  const snapshot = luvio.storeLookup({
3764
3764
  recordId: key,
3765
- node: select$9(),
3765
+ node: select$g(),
3766
3766
  variables: {},
3767
3767
  });
3768
3768
  if (process.env.NODE_ENV !== 'production') {
@@ -3773,7 +3773,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
3773
3773
  deepFreeze(snapshot.data);
3774
3774
  return snapshot;
3775
3775
  }
3776
- function createResourceRequest$5(config) {
3776
+ function createResourceRequest$d(config) {
3777
3777
  const headers = {};
3778
3778
  return {
3779
3779
  baseUri: '/services/data/v64.0',
@@ -3787,7 +3787,7 @@ function createResourceRequest$5(config) {
3787
3787
  };
3788
3788
  }
3789
3789
 
3790
- const adapterName$5 = 'createPersonalizationSchema';
3790
+ const adapterName$a = 'createPersonalizationSchema';
3791
3791
  const createPersonalizationSchema_ConfigPropertyMetadata = [
3792
3792
  generateParamConfigMetadata('description', true, 2 /* Body */, 4 /* Unsupported */),
3793
3793
  generateParamConfigMetadata('label', true, 2 /* Body */, 4 /* Unsupported */),
@@ -3798,11 +3798,11 @@ const createPersonalizationSchema_ConfigPropertyMetadata = [
3798
3798
  generateParamConfigMetadata('dataSpaceName', true, 2 /* Body */, 0 /* String */),
3799
3799
  generateParamConfigMetadata('personalizationType', true, 2 /* Body */, 0 /* String */),
3800
3800
  ];
3801
- const createPersonalizationSchema_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createPersonalizationSchema_ConfigPropertyMetadata);
3802
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$a(createPersonalizationSchema_ConfigPropertyMetadata);
3803
- function typeCheckConfig$5(untrustedConfig) {
3801
+ const createPersonalizationSchema_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, createPersonalizationSchema_ConfigPropertyMetadata);
3802
+ const createResourceParams$a = /*#__PURE__*/ createResourceParams$f(createPersonalizationSchema_ConfigPropertyMetadata);
3803
+ function typeCheckConfig$a(untrustedConfig) {
3804
3804
  const config = {};
3805
- typeCheckConfig$a(untrustedConfig, config, createPersonalizationSchema_ConfigPropertyMetadata);
3805
+ typeCheckConfig$f(untrustedConfig, config, createPersonalizationSchema_ConfigPropertyMetadata);
3806
3806
  const untrustedConfig_description = untrustedConfig.description;
3807
3807
  if (typeof untrustedConfig_description === 'string') {
3808
3808
  config.description = untrustedConfig_description;
@@ -3829,7 +3829,7 @@ function typeCheckConfig$5(untrustedConfig) {
3829
3829
  const untrustedConfig_attributes_array = [];
3830
3830
  for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
3831
3831
  const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
3832
- const referencePersonalizationAttributeInputRepresentationValidationError = validate$a(untrustedConfig_attributes_item);
3832
+ const referencePersonalizationAttributeInputRepresentationValidationError = validate$e(untrustedConfig_attributes_item);
3833
3833
  if (referencePersonalizationAttributeInputRepresentationValidationError === null) {
3834
3834
  untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
3835
3835
  }
@@ -3859,30 +3859,30 @@ function typeCheckConfig$5(untrustedConfig) {
3859
3859
  }
3860
3860
  return config;
3861
3861
  }
3862
- function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
3862
+ function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
3863
3863
  if (!untrustedIsObject(untrustedConfig)) {
3864
3864
  return null;
3865
3865
  }
3866
3866
  if (process.env.NODE_ENV !== 'production') {
3867
3867
  validateConfig(untrustedConfig, configPropertyNames);
3868
3868
  }
3869
- const config = typeCheckConfig$5(untrustedConfig);
3869
+ const config = typeCheckConfig$a(untrustedConfig);
3870
3870
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3871
3871
  return null;
3872
3872
  }
3873
3873
  return config;
3874
3874
  }
3875
- function buildNetworkSnapshot$5(luvio, config, options) {
3876
- const resourceParams = createResourceParams$5(config);
3877
- const request = createResourceRequest$5(resourceParams);
3875
+ function buildNetworkSnapshot$a(luvio, config, options) {
3876
+ const resourceParams = createResourceParams$a(config);
3877
+ const request = createResourceRequest$d(resourceParams);
3878
3878
  return luvio.dispatchResourceRequest(request, options)
3879
3879
  .then((response) => {
3880
3880
  return luvio.handleSuccessResponse(() => {
3881
- const snapshot = ingestSuccess$4(luvio, resourceParams, response);
3881
+ const snapshot = ingestSuccess$8(luvio, resourceParams, response);
3882
3882
  return luvio.storeBroadcast().then(() => snapshot);
3883
3883
  }, () => {
3884
3884
  const cache = new StoreKeyMap();
3885
- getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
3885
+ getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
3886
3886
  return cache;
3887
3887
  });
3888
3888
  }, (response) => {
@@ -3892,33 +3892,33 @@ function buildNetworkSnapshot$5(luvio, config, options) {
3892
3892
  }
3893
3893
  const createPersonalizationSchemaAdapterFactory = (luvio) => {
3894
3894
  return function createPersonalizationSchema(untrustedConfig) {
3895
- const config = validateAdapterConfig$5(untrustedConfig, createPersonalizationSchema_ConfigPropertyNames);
3895
+ const config = validateAdapterConfig$a(untrustedConfig, createPersonalizationSchema_ConfigPropertyNames);
3896
3896
  // Invalid or incomplete config
3897
3897
  if (config === null) {
3898
3898
  throw new Error('Invalid config for "createPersonalizationSchema"');
3899
3899
  }
3900
- return buildNetworkSnapshot$5(luvio, config);
3900
+ return buildNetworkSnapshot$a(luvio, config);
3901
3901
  };
3902
3902
  };
3903
3903
 
3904
- function keyBuilder$8(luvio, params) {
3905
- return keyBuilder$9(luvio, {
3904
+ function keyBuilder$e(luvio, params) {
3905
+ return keyBuilder$f(luvio, {
3906
3906
  id: params.urlParams.idOrName
3907
3907
  });
3908
3908
  }
3909
- function getResponseCacheKeys$4(cacheKeyMap, luvio, resourceParams) {
3910
- const key = keyBuilder$8(luvio, resourceParams);
3909
+ function getResponseCacheKeys$9(cacheKeyMap, luvio, resourceParams) {
3910
+ const key = keyBuilder$e(luvio, resourceParams);
3911
3911
  cacheKeyMap.set(key, {
3912
3912
  namespace: keyPrefix,
3913
- representationName: RepresentationType$3,
3913
+ representationName: RepresentationType$5,
3914
3914
  mergeable: false
3915
3915
  });
3916
3916
  }
3917
- function evictSuccess(luvio, resourceParams) {
3918
- const key = keyBuilder$8(luvio, resourceParams);
3917
+ function evictSuccess$1(luvio, resourceParams) {
3918
+ const key = keyBuilder$e(luvio, resourceParams);
3919
3919
  luvio.storeEvict(key);
3920
3920
  }
3921
- function createResourceRequest$4(config) {
3921
+ function createResourceRequest$c(config) {
3922
3922
  const headers = {};
3923
3923
  return {
3924
3924
  baseUri: '/services/data/v64.0',
@@ -3932,41 +3932,41 @@ function createResourceRequest$4(config) {
3932
3932
  };
3933
3933
  }
3934
3934
 
3935
- const adapterName$4 = 'deletePersonalizationSchema';
3935
+ const adapterName$9 = 'deletePersonalizationSchema';
3936
3936
  const deletePersonalizationSchema_ConfigPropertyMetadata = [
3937
3937
  generateParamConfigMetadata('idOrName', true, 0 /* UrlParameter */, 0 /* String */),
3938
3938
  ];
3939
- const deletePersonalizationSchema_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, deletePersonalizationSchema_ConfigPropertyMetadata);
3940
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$a(deletePersonalizationSchema_ConfigPropertyMetadata);
3941
- function typeCheckConfig$4(untrustedConfig) {
3939
+ const deletePersonalizationSchema_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, deletePersonalizationSchema_ConfigPropertyMetadata);
3940
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$f(deletePersonalizationSchema_ConfigPropertyMetadata);
3941
+ function typeCheckConfig$9(untrustedConfig) {
3942
3942
  const config = {};
3943
- typeCheckConfig$a(untrustedConfig, config, deletePersonalizationSchema_ConfigPropertyMetadata);
3943
+ typeCheckConfig$f(untrustedConfig, config, deletePersonalizationSchema_ConfigPropertyMetadata);
3944
3944
  return config;
3945
3945
  }
3946
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
3946
+ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
3947
3947
  if (!untrustedIsObject(untrustedConfig)) {
3948
3948
  return null;
3949
3949
  }
3950
3950
  if (process.env.NODE_ENV !== 'production') {
3951
3951
  validateConfig(untrustedConfig, configPropertyNames);
3952
3952
  }
3953
- const config = typeCheckConfig$4(untrustedConfig);
3953
+ const config = typeCheckConfig$9(untrustedConfig);
3954
3954
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3955
3955
  return null;
3956
3956
  }
3957
3957
  return config;
3958
3958
  }
3959
- function buildNetworkSnapshot$4(luvio, config, options) {
3960
- const resourceParams = createResourceParams$4(config);
3961
- const request = createResourceRequest$4(resourceParams);
3959
+ function buildNetworkSnapshot$9(luvio, config, options) {
3960
+ const resourceParams = createResourceParams$9(config);
3961
+ const request = createResourceRequest$c(resourceParams);
3962
3962
  return luvio.dispatchResourceRequest(request, options)
3963
3963
  .then(() => {
3964
3964
  return luvio.handleSuccessResponse(() => {
3965
- evictSuccess(luvio, resourceParams);
3965
+ evictSuccess$1(luvio, resourceParams);
3966
3966
  return luvio.storeBroadcast();
3967
3967
  }, () => {
3968
3968
  const cache = new StoreKeyMap();
3969
- getResponseCacheKeys$4(cache, luvio, resourceParams);
3969
+ getResponseCacheKeys$9(cache, luvio, resourceParams);
3970
3970
  return cache;
3971
3971
  });
3972
3972
  }, (response) => {
@@ -3976,33 +3976,33 @@ function buildNetworkSnapshot$4(luvio, config, options) {
3976
3976
  }
3977
3977
  const deletePersonalizationSchemaAdapterFactory = (luvio) => {
3978
3978
  return function personalizationServicedeletePersonalizationSchema(untrustedConfig) {
3979
- const config = validateAdapterConfig$4(untrustedConfig, deletePersonalizationSchema_ConfigPropertyNames);
3979
+ const config = validateAdapterConfig$9(untrustedConfig, deletePersonalizationSchema_ConfigPropertyNames);
3980
3980
  // Invalid or incomplete config
3981
3981
  if (config === null) {
3982
- throw new Error(`Invalid config for "${adapterName$4}"`);
3982
+ throw new Error(`Invalid config for "${adapterName$9}"`);
3983
3983
  }
3984
- return buildNetworkSnapshot$4(luvio, config);
3984
+ return buildNetworkSnapshot$9(luvio, config);
3985
3985
  };
3986
3986
  };
3987
3987
 
3988
- function select$8(luvio, params) {
3989
- return select$a();
3988
+ function select$f(luvio, params) {
3989
+ return select$h();
3990
3990
  }
3991
- function keyBuilder$7(luvio, params) {
3992
- return keyBuilder$9(luvio, {
3991
+ function keyBuilder$d(luvio, params) {
3992
+ return keyBuilder$f(luvio, {
3993
3993
  id: params.urlParams.idOrName
3994
3994
  });
3995
3995
  }
3996
- function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
3997
- getTypeCacheKeys$3(storeKeyMap, luvio, response);
3996
+ function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
3997
+ getTypeCacheKeys$5(storeKeyMap, luvio, response);
3998
3998
  }
3999
- function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
3999
+ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
4000
4000
  const { body } = response;
4001
- const key = keyBuilder$7(luvio, resourceParams);
4002
- luvio.storeIngest(key, ingest$3, body);
4001
+ const key = keyBuilder$d(luvio, resourceParams);
4002
+ luvio.storeIngest(key, ingest$5, body);
4003
4003
  const snapshot = luvio.storeLookup({
4004
4004
  recordId: key,
4005
- node: select$8(),
4005
+ node: select$f(),
4006
4006
  variables: {},
4007
4007
  }, snapshotRefresh);
4008
4008
  if (process.env.NODE_ENV !== 'production') {
@@ -4013,19 +4013,19 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
4013
4013
  deepFreeze(snapshot.data);
4014
4014
  return snapshot;
4015
4015
  }
4016
- function ingestError$3(luvio, params, error, snapshotRefresh) {
4017
- const key = keyBuilder$7(luvio, params);
4016
+ function ingestError$5(luvio, params, error, snapshotRefresh) {
4017
+ const key = keyBuilder$d(luvio, params);
4018
4018
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
4019
4019
  const storeMetadataParams = {
4020
- ttl: TTL$3,
4020
+ ttl: TTL$6,
4021
4021
  namespace: keyPrefix,
4022
- version: VERSION$5,
4023
- representationName: RepresentationType$3
4022
+ version: VERSION$8,
4023
+ representationName: RepresentationType$5
4024
4024
  };
4025
4025
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
4026
4026
  return errorSnapshot;
4027
4027
  }
4028
- function createResourceRequest$3(config) {
4028
+ function createResourceRequest$b(config) {
4029
4029
  const headers = {};
4030
4030
  return {
4031
4031
  baseUri: '/services/data/v64.0',
@@ -4039,94 +4039,94 @@ function createResourceRequest$3(config) {
4039
4039
  };
4040
4040
  }
4041
4041
 
4042
- const adapterName$3 = 'getPersonalizationSchema';
4042
+ const adapterName$8 = 'getPersonalizationSchema';
4043
4043
  const getPersonalizationSchema_ConfigPropertyMetadata = [
4044
4044
  generateParamConfigMetadata('idOrName', true, 0 /* UrlParameter */, 0 /* String */),
4045
4045
  ];
4046
- const getPersonalizationSchema_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getPersonalizationSchema_ConfigPropertyMetadata);
4047
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$a(getPersonalizationSchema_ConfigPropertyMetadata);
4048
- function keyBuilder$6(luvio, config) {
4049
- const resourceParams = createResourceParams$3(config);
4050
- return keyBuilder$7(luvio, resourceParams);
4046
+ const getPersonalizationSchema_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getPersonalizationSchema_ConfigPropertyMetadata);
4047
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$f(getPersonalizationSchema_ConfigPropertyMetadata);
4048
+ function keyBuilder$c(luvio, config) {
4049
+ const resourceParams = createResourceParams$8(config);
4050
+ return keyBuilder$d(luvio, resourceParams);
4051
4051
  }
4052
- function typeCheckConfig$3(untrustedConfig) {
4052
+ function typeCheckConfig$8(untrustedConfig) {
4053
4053
  const config = {};
4054
- typeCheckConfig$a(untrustedConfig, config, getPersonalizationSchema_ConfigPropertyMetadata);
4054
+ typeCheckConfig$f(untrustedConfig, config, getPersonalizationSchema_ConfigPropertyMetadata);
4055
4055
  return config;
4056
4056
  }
4057
- function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
4057
+ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
4058
4058
  if (!untrustedIsObject(untrustedConfig)) {
4059
4059
  return null;
4060
4060
  }
4061
4061
  if (process.env.NODE_ENV !== 'production') {
4062
4062
  validateConfig(untrustedConfig, configPropertyNames);
4063
4063
  }
4064
- const config = typeCheckConfig$3(untrustedConfig);
4064
+ const config = typeCheckConfig$8(untrustedConfig);
4065
4065
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
4066
4066
  return null;
4067
4067
  }
4068
4068
  return config;
4069
4069
  }
4070
- function adapterFragment$3(luvio, config) {
4071
- createResourceParams$3(config);
4072
- return select$8();
4070
+ function adapterFragment$5(luvio, config) {
4071
+ createResourceParams$8(config);
4072
+ return select$f();
4073
4073
  }
4074
- function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
4075
- const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
4074
+ function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
4075
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
4076
4076
  config,
4077
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
4077
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
4078
4078
  });
4079
4079
  return luvio.storeBroadcast().then(() => snapshot);
4080
4080
  }
4081
- function onFetchResponseError$3(luvio, config, resourceParams, response) {
4082
- const snapshot = ingestError$3(luvio, resourceParams, response, {
4081
+ function onFetchResponseError$5(luvio, config, resourceParams, response) {
4082
+ const snapshot = ingestError$5(luvio, resourceParams, response, {
4083
4083
  config,
4084
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
4084
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
4085
4085
  });
4086
4086
  return luvio.storeBroadcast().then(() => snapshot);
4087
4087
  }
4088
- function buildNetworkSnapshot$3(luvio, config, options) {
4089
- const resourceParams = createResourceParams$3(config);
4090
- const request = createResourceRequest$3(resourceParams);
4088
+ function buildNetworkSnapshot$8(luvio, config, options) {
4089
+ const resourceParams = createResourceParams$8(config);
4090
+ const request = createResourceRequest$b(resourceParams);
4091
4091
  return luvio.dispatchResourceRequest(request, options)
4092
4092
  .then((response) => {
4093
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
4093
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
4094
4094
  const cache = new StoreKeyMap();
4095
- getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
4095
+ getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
4096
4096
  return cache;
4097
4097
  });
4098
4098
  }, (response) => {
4099
- return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
4099
+ return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
4100
4100
  });
4101
4101
  }
4102
- function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
4103
- return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
4102
+ function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
4103
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
4104
4104
  }
4105
- function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
4105
+ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
4106
4106
  const { luvio, config } = context;
4107
4107
  const selector = {
4108
- recordId: keyBuilder$6(luvio, config),
4109
- node: adapterFragment$3(luvio, config),
4108
+ recordId: keyBuilder$c(luvio, config),
4109
+ node: adapterFragment$5(luvio, config),
4110
4110
  variables: {},
4111
4111
  };
4112
4112
  const cacheSnapshot = storeLookup(selector, {
4113
4113
  config,
4114
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
4114
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
4115
4115
  });
4116
4116
  return cacheSnapshot;
4117
4117
  }
4118
4118
  const getPersonalizationSchemaAdapterFactory = (luvio) => function personalizationService__getPersonalizationSchema(untrustedConfig, requestContext) {
4119
- const config = validateAdapterConfig$3(untrustedConfig, getPersonalizationSchema_ConfigPropertyNames);
4119
+ const config = validateAdapterConfig$8(untrustedConfig, getPersonalizationSchema_ConfigPropertyNames);
4120
4120
  // Invalid or incomplete config
4121
4121
  if (config === null) {
4122
4122
  return null;
4123
4123
  }
4124
4124
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
4125
- buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
4125
+ buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
4126
4126
  };
4127
4127
 
4128
- const VERSION$4 = "4140d8b5bf494d4e8f3ef8713b0ffd7d";
4129
- function validate$7(obj, path = 'PersonalizationRecommenderJobRepresentation') {
4128
+ const VERSION$7 = "4140d8b5bf494d4e8f3ef8713b0ffd7d";
4129
+ function validate$b(obj, path = 'PersonalizationRecommenderJobRepresentation') {
4130
4130
  const v_error = (() => {
4131
4131
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4132
4132
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4176,10 +4176,10 @@ function validate$7(obj, path = 'PersonalizationRecommenderJobRepresentation') {
4176
4176
  })();
4177
4177
  return v_error === undefined ? null : v_error;
4178
4178
  }
4179
- const select$7 = function PersonalizationRecommenderJobRepresentationSelect() {
4179
+ const select$e = function PersonalizationRecommenderJobRepresentationSelect() {
4180
4180
  return {
4181
4181
  kind: 'Fragment',
4182
- version: VERSION$4,
4182
+ version: VERSION$7,
4183
4183
  private: [],
4184
4184
  selections: [
4185
4185
  {
@@ -4215,7 +4215,7 @@ const select$7 = function PersonalizationRecommenderJobRepresentationSelect() {
4215
4215
  ]
4216
4216
  };
4217
4217
  };
4218
- function equals$4(existing, incoming) {
4218
+ function equals$8(existing, incoming) {
4219
4219
  const existing_errorCode = existing.errorCode;
4220
4220
  const incoming_errorCode = incoming.errorCode;
4221
4221
  // if at least one of these optionals is defined
@@ -4297,9 +4297,9 @@ function equals$4(existing, incoming) {
4297
4297
  return true;
4298
4298
  }
4299
4299
 
4300
- const TTL$2 = 600;
4301
- const VERSION$3 = "2fab2250d4ed5adcbb1a5c19a64cd765";
4302
- function validate$6(obj, path = 'PersonalizationRecommenderJobCollectionRepresentation') {
4300
+ const TTL$5 = 600;
4301
+ const VERSION$6 = "2fab2250d4ed5adcbb1a5c19a64cd765";
4302
+ function validate$a(obj, path = 'PersonalizationRecommenderJobCollectionRepresentation') {
4303
4303
  const v_error = (() => {
4304
4304
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4305
4305
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4320,7 +4320,7 @@ function validate$6(obj, path = 'PersonalizationRecommenderJobCollectionRepresen
4320
4320
  for (let i = 0; i < obj_jobs.length; i++) {
4321
4321
  const obj_jobs_item = obj_jobs[i];
4322
4322
  const path_jobs_item = path_jobs + '[' + i + ']';
4323
- const referencepath_jobs_itemValidationError = validate$7(obj_jobs_item, path_jobs_item);
4323
+ const referencepath_jobs_itemValidationError = validate$b(obj_jobs_item, path_jobs_item);
4324
4324
  if (referencepath_jobs_itemValidationError !== null) {
4325
4325
  let message = 'Object doesn\'t match PersonalizationRecommenderJobRepresentation (at "' + path_jobs_item + '")\n';
4326
4326
  message += referencepath_jobs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4338,15 +4338,15 @@ function validate$6(obj, path = 'PersonalizationRecommenderJobCollectionRepresen
4338
4338
  })();
4339
4339
  return v_error === undefined ? null : v_error;
4340
4340
  }
4341
- const RepresentationType$2 = 'PersonalizationRecommenderJobCollectionRepresentation';
4342
- function normalize$2(input, existing, path, luvio, store, timestamp) {
4341
+ const RepresentationType$4 = 'PersonalizationRecommenderJobCollectionRepresentation';
4342
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
4343
4343
  return input;
4344
4344
  }
4345
- const select$6 = function PersonalizationRecommenderJobCollectionRepresentationSelect() {
4346
- const { selections: PersonalizationRecommenderJobRepresentation__selections, opaque: PersonalizationRecommenderJobRepresentation__opaque, } = select$7();
4345
+ const select$d = function PersonalizationRecommenderJobCollectionRepresentationSelect() {
4346
+ const { selections: PersonalizationRecommenderJobRepresentation__selections, opaque: PersonalizationRecommenderJobRepresentation__opaque, } = select$e();
4347
4347
  return {
4348
4348
  kind: 'Fragment',
4349
- version: VERSION$3,
4349
+ version: VERSION$6,
4350
4350
  private: [],
4351
4351
  selections: [
4352
4352
  {
@@ -4369,7 +4369,7 @@ const select$6 = function PersonalizationRecommenderJobCollectionRepresentationS
4369
4369
  ]
4370
4370
  };
4371
4371
  };
4372
- function equals$3(existing, incoming) {
4372
+ function equals$7(existing, incoming) {
4373
4373
  const existing_currentPageUrl = existing.currentPageUrl;
4374
4374
  const incoming_currentPageUrl = incoming.currentPageUrl;
4375
4375
  // if at least one of these optionals is defined
@@ -4406,7 +4406,7 @@ function equals$3(existing, incoming) {
4406
4406
  return false;
4407
4407
  }
4408
4408
  const equals_jobs_items = equalsArray(existing_jobs, incoming_jobs, (existing_jobs_item, incoming_jobs_item) => {
4409
- if (!(equals$4(existing_jobs_item, incoming_jobs_item))) {
4409
+ if (!(equals$8(existing_jobs_item, incoming_jobs_item))) {
4410
4410
  return false;
4411
4411
  }
4412
4412
  });
@@ -4416,44 +4416,44 @@ function equals$3(existing, incoming) {
4416
4416
  }
4417
4417
  return true;
4418
4418
  }
4419
- const ingest$2 = function PersonalizationRecommenderJobCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
4419
+ const ingest$4 = function PersonalizationRecommenderJobCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
4420
4420
  if (process.env.NODE_ENV !== 'production') {
4421
- const validateError = validate$6(input);
4421
+ const validateError = validate$a(input);
4422
4422
  if (validateError !== null) {
4423
4423
  throw validateError;
4424
4424
  }
4425
4425
  }
4426
4426
  const key = path.fullPath;
4427
- const ttlToUse = TTL$2;
4428
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "personalization-service", VERSION$3, RepresentationType$2, equals$3);
4427
+ const ttlToUse = TTL$5;
4428
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "personalization-service", VERSION$6, RepresentationType$4, equals$7);
4429
4429
  return createLink(key);
4430
4430
  };
4431
- function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
4431
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
4432
4432
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
4433
4433
  const rootKey = fullPathFactory();
4434
4434
  rootKeySet.set(rootKey, {
4435
4435
  namespace: keyPrefix,
4436
- representationName: RepresentationType$2,
4436
+ representationName: RepresentationType$4,
4437
4437
  mergeable: false
4438
4438
  });
4439
4439
  }
4440
4440
 
4441
- function select$5(luvio, params) {
4442
- return select$6();
4441
+ function select$c(luvio, params) {
4442
+ return select$d();
4443
4443
  }
4444
- function keyBuilder$5(luvio, params) {
4444
+ function keyBuilder$b(luvio, params) {
4445
4445
  return keyPrefix + '::PersonalizationRecommenderJobCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'idOrName:' + params.urlParams.idOrName + ')';
4446
4446
  }
4447
- function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
4448
- getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
4447
+ function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
4448
+ getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
4449
4449
  }
4450
- function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
4450
+ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
4451
4451
  const { body } = response;
4452
- const key = keyBuilder$5(luvio, resourceParams);
4453
- luvio.storeIngest(key, ingest$2, body);
4452
+ const key = keyBuilder$b(luvio, resourceParams);
4453
+ luvio.storeIngest(key, ingest$4, body);
4454
4454
  const snapshot = luvio.storeLookup({
4455
4455
  recordId: key,
4456
- node: select$5(),
4456
+ node: select$c(),
4457
4457
  variables: {},
4458
4458
  }, snapshotRefresh);
4459
4459
  if (process.env.NODE_ENV !== 'production') {
@@ -4464,19 +4464,19 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
4464
4464
  deepFreeze(snapshot.data);
4465
4465
  return snapshot;
4466
4466
  }
4467
- function ingestError$2(luvio, params, error, snapshotRefresh) {
4468
- const key = keyBuilder$5(luvio, params);
4467
+ function ingestError$4(luvio, params, error, snapshotRefresh) {
4468
+ const key = keyBuilder$b(luvio, params);
4469
4469
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
4470
4470
  const storeMetadataParams = {
4471
- ttl: TTL$2,
4471
+ ttl: TTL$5,
4472
4472
  namespace: keyPrefix,
4473
- version: VERSION$3,
4474
- representationName: RepresentationType$2
4473
+ version: VERSION$6,
4474
+ representationName: RepresentationType$4
4475
4475
  };
4476
4476
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
4477
4477
  return errorSnapshot;
4478
4478
  }
4479
- function createResourceRequest$2(config) {
4479
+ function createResourceRequest$a(config) {
4480
4480
  const headers = {};
4481
4481
  return {
4482
4482
  baseUri: '/services/data/v64.0',
@@ -4490,95 +4490,95 @@ function createResourceRequest$2(config) {
4490
4490
  };
4491
4491
  }
4492
4492
 
4493
- const adapterName$2 = 'getTrainingHistory';
4493
+ const adapterName$7 = 'getTrainingHistory';
4494
4494
  const getTrainingHistory_ConfigPropertyMetadata = [
4495
4495
  generateParamConfigMetadata('idOrName', true, 0 /* UrlParameter */, 0 /* String */),
4496
4496
  generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
4497
4497
  generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
4498
4498
  ];
4499
- const getTrainingHistory_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getTrainingHistory_ConfigPropertyMetadata);
4500
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$a(getTrainingHistory_ConfigPropertyMetadata);
4501
- function keyBuilder$4(luvio, config) {
4502
- const resourceParams = createResourceParams$2(config);
4503
- return keyBuilder$5(luvio, resourceParams);
4499
+ const getTrainingHistory_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getTrainingHistory_ConfigPropertyMetadata);
4500
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$f(getTrainingHistory_ConfigPropertyMetadata);
4501
+ function keyBuilder$a(luvio, config) {
4502
+ const resourceParams = createResourceParams$7(config);
4503
+ return keyBuilder$b(luvio, resourceParams);
4504
4504
  }
4505
- function typeCheckConfig$2(untrustedConfig) {
4505
+ function typeCheckConfig$7(untrustedConfig) {
4506
4506
  const config = {};
4507
- typeCheckConfig$a(untrustedConfig, config, getTrainingHistory_ConfigPropertyMetadata);
4507
+ typeCheckConfig$f(untrustedConfig, config, getTrainingHistory_ConfigPropertyMetadata);
4508
4508
  return config;
4509
4509
  }
4510
- function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
4510
+ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
4511
4511
  if (!untrustedIsObject(untrustedConfig)) {
4512
4512
  return null;
4513
4513
  }
4514
4514
  if (process.env.NODE_ENV !== 'production') {
4515
4515
  validateConfig(untrustedConfig, configPropertyNames);
4516
4516
  }
4517
- const config = typeCheckConfig$2(untrustedConfig);
4517
+ const config = typeCheckConfig$7(untrustedConfig);
4518
4518
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
4519
4519
  return null;
4520
4520
  }
4521
4521
  return config;
4522
4522
  }
4523
- function adapterFragment$2(luvio, config) {
4524
- createResourceParams$2(config);
4525
- return select$5();
4523
+ function adapterFragment$4(luvio, config) {
4524
+ createResourceParams$7(config);
4525
+ return select$c();
4526
4526
  }
4527
- function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
4528
- const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
4527
+ function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
4528
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
4529
4529
  config,
4530
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
4530
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
4531
4531
  });
4532
4532
  return luvio.storeBroadcast().then(() => snapshot);
4533
4533
  }
4534
- function onFetchResponseError$2(luvio, config, resourceParams, response) {
4535
- const snapshot = ingestError$2(luvio, resourceParams, response, {
4534
+ function onFetchResponseError$4(luvio, config, resourceParams, response) {
4535
+ const snapshot = ingestError$4(luvio, resourceParams, response, {
4536
4536
  config,
4537
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
4537
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
4538
4538
  });
4539
4539
  return luvio.storeBroadcast().then(() => snapshot);
4540
4540
  }
4541
- function buildNetworkSnapshot$2(luvio, config, options) {
4542
- const resourceParams = createResourceParams$2(config);
4543
- const request = createResourceRequest$2(resourceParams);
4541
+ function buildNetworkSnapshot$7(luvio, config, options) {
4542
+ const resourceParams = createResourceParams$7(config);
4543
+ const request = createResourceRequest$a(resourceParams);
4544
4544
  return luvio.dispatchResourceRequest(request, options)
4545
4545
  .then((response) => {
4546
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
4546
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
4547
4547
  const cache = new StoreKeyMap();
4548
- getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
4548
+ getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
4549
4549
  return cache;
4550
4550
  });
4551
4551
  }, (response) => {
4552
- return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
4552
+ return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
4553
4553
  });
4554
4554
  }
4555
- function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
4556
- return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
4555
+ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
4556
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
4557
4557
  }
4558
- function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
4558
+ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
4559
4559
  const { luvio, config } = context;
4560
4560
  const selector = {
4561
- recordId: keyBuilder$4(luvio, config),
4562
- node: adapterFragment$2(luvio, config),
4561
+ recordId: keyBuilder$a(luvio, config),
4562
+ node: adapterFragment$4(luvio, config),
4563
4563
  variables: {},
4564
4564
  };
4565
4565
  const cacheSnapshot = storeLookup(selector, {
4566
4566
  config,
4567
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
4567
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
4568
4568
  });
4569
4569
  return cacheSnapshot;
4570
4570
  }
4571
4571
  const getTrainingHistoryAdapterFactory = (luvio) => function personalizationService__getTrainingHistory(untrustedConfig, requestContext) {
4572
- const config = validateAdapterConfig$2(untrustedConfig, getTrainingHistory_ConfigPropertyNames);
4572
+ const config = validateAdapterConfig$7(untrustedConfig, getTrainingHistory_ConfigPropertyNames);
4573
4573
  // Invalid or incomplete config
4574
4574
  if (config === null) {
4575
4575
  return null;
4576
4576
  }
4577
4577
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
4578
- buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
4578
+ buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
4579
4579
  };
4580
4580
 
4581
- function validate$5(obj, path = 'AnchorReferenceRepresentation') {
4581
+ function validate$9(obj, path = 'AnchorReferenceRepresentation') {
4582
4582
  const v_error = (() => {
4583
4583
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4584
4584
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4597,7 +4597,7 @@ function validate$5(obj, path = 'AnchorReferenceRepresentation') {
4597
4597
  return v_error === undefined ? null : v_error;
4598
4598
  }
4599
4599
 
4600
- function validate$4(obj, path = 'RuleGroupInputRepresentation2') {
4600
+ function validate$8(obj, path = 'RuleGroupInputRepresentation2') {
4601
4601
  const v_error = (() => {
4602
4602
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4603
4603
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4623,7 +4623,7 @@ function validate$4(obj, path = 'RuleGroupInputRepresentation2') {
4623
4623
  return v_error === undefined ? null : v_error;
4624
4624
  }
4625
4625
 
4626
- function validate$3(obj, path = 'RuleGroupInputRepresentation') {
4626
+ function validate$7(obj, path = 'RuleGroupInputRepresentation') {
4627
4627
  const v_error = (() => {
4628
4628
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4629
4629
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4649,9 +4649,9 @@ function validate$3(obj, path = 'RuleGroupInputRepresentation') {
4649
4649
  return v_error === undefined ? null : v_error;
4650
4650
  }
4651
4651
 
4652
- const TTL$1 = 600;
4653
- const VERSION$2 = "03b72d395296cf8da94dcea60a4830e8";
4654
- function validate$2(obj, path = 'PersonalizationRecommenderSimulateActionRepresentation') {
4652
+ const TTL$4 = 600;
4653
+ const VERSION$5 = "03b72d395296cf8da94dcea60a4830e8";
4654
+ function validate$6(obj, path = 'PersonalizationRecommenderSimulateActionRepresentation') {
4655
4655
  const v_error = (() => {
4656
4656
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4657
4657
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4664,14 +4664,14 @@ function validate$2(obj, path = 'PersonalizationRecommenderSimulateActionReprese
4664
4664
  })();
4665
4665
  return v_error === undefined ? null : v_error;
4666
4666
  }
4667
- const RepresentationType$1 = 'PersonalizationRecommenderSimulateActionRepresentation';
4668
- function normalize$1(input, existing, path, luvio, store, timestamp) {
4667
+ const RepresentationType$3 = 'PersonalizationRecommenderSimulateActionRepresentation';
4668
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
4669
4669
  return input;
4670
4670
  }
4671
- const select$4 = function PersonalizationRecommenderSimulateActionRepresentationSelect() {
4671
+ const select$b = function PersonalizationRecommenderSimulateActionRepresentationSelect() {
4672
4672
  return {
4673
4673
  kind: 'Fragment',
4674
- version: VERSION$2,
4674
+ version: VERSION$5,
4675
4675
  private: [],
4676
4676
  selections: [
4677
4677
  {
@@ -4682,7 +4682,7 @@ const select$4 = function PersonalizationRecommenderSimulateActionRepresentation
4682
4682
  ]
4683
4683
  };
4684
4684
  };
4685
- function equals$2(existing, incoming) {
4685
+ function equals$6(existing, incoming) {
4686
4686
  const existing_recommendations = existing.recommendations;
4687
4687
  const incoming_recommendations = incoming.recommendations;
4688
4688
  if (JSONStringify(incoming_recommendations) !== JSONStringify(existing_recommendations)) {
@@ -4690,45 +4690,45 @@ function equals$2(existing, incoming) {
4690
4690
  }
4691
4691
  return true;
4692
4692
  }
4693
- const ingest$1 = function PersonalizationRecommenderSimulateActionRepresentationIngest(input, path, luvio, store, timestamp) {
4693
+ const ingest$3 = function PersonalizationRecommenderSimulateActionRepresentationIngest(input, path, luvio, store, timestamp) {
4694
4694
  if (process.env.NODE_ENV !== 'production') {
4695
- const validateError = validate$2(input);
4695
+ const validateError = validate$6(input);
4696
4696
  if (validateError !== null) {
4697
4697
  throw validateError;
4698
4698
  }
4699
4699
  }
4700
4700
  const key = path.fullPath;
4701
- const ttlToUse = TTL$1;
4702
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "personalization-service", VERSION$2, RepresentationType$1, equals$2);
4701
+ const ttlToUse = TTL$4;
4702
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "personalization-service", VERSION$5, RepresentationType$3, equals$6);
4703
4703
  return createLink(key);
4704
4704
  };
4705
- function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
4705
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
4706
4706
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
4707
4707
  const rootKey = fullPathFactory();
4708
4708
  rootKeySet.set(rootKey, {
4709
4709
  namespace: keyPrefix,
4710
- representationName: RepresentationType$1,
4710
+ representationName: RepresentationType$3,
4711
4711
  mergeable: false
4712
4712
  });
4713
4713
  }
4714
4714
 
4715
- function select$3(luvio, params) {
4716
- return select$4();
4715
+ function select$a(luvio, params) {
4716
+ return select$b();
4717
4717
  }
4718
- function keyBuilder$3(luvio, params) {
4718
+ function keyBuilder$9(luvio, params) {
4719
4719
  var _a, _b, _c, _d, _e, _f, _g, _h;
4720
4720
  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(',') + ']')) + '::' + (((_a = params.body.excludeFilters) === null || _a === void 0 ? void 0 : _a.operator) === undefined ? 'excludeFilters.operator' : 'excludeFilters.operator:' + ((_b = params.body.excludeFilters) === null || _b === void 0 ? void 0 : _b.operator)) + '::' + (((_c = params.body.excludeFilters) === null || _c === void 0 ? void 0 : _c.rules) === undefined ? 'excludeFilters.rules' : 'excludeFilters.rules:' + ((_d = params.body.excludeFilters) === null || _d === void 0 ? void 0 : _d.rules)) + '::' + (((_e = params.body.includeFilters) === null || _e === void 0 ? void 0 : _e.operator) === undefined ? 'includeFilters.operator' : 'includeFilters.operator:' + ((_f = params.body.includeFilters) === null || _f === void 0 ? void 0 : _f.operator)) + '::' + (((_g = params.body.includeFilters) === null || _g === void 0 ? void 0 : _g.rules) === undefined ? 'includeFilters.rules' : 'includeFilters.rules:' + ((_h = params.body.includeFilters) === null || _h === void 0 ? void 0 : _h.rules)) + '::' + (params.body.individualId === undefined ? 'individualId' : 'individualId:' + params.body.individualId) + ')';
4721
4721
  }
4722
- function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
4723
- getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
4722
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
4723
+ getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
4724
4724
  }
4725
- function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
4725
+ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
4726
4726
  const { body } = response;
4727
- const key = keyBuilder$3(luvio, resourceParams);
4728
- luvio.storeIngest(key, ingest$1, body);
4727
+ const key = keyBuilder$9(luvio, resourceParams);
4728
+ luvio.storeIngest(key, ingest$3, body);
4729
4729
  const snapshot = luvio.storeLookup({
4730
4730
  recordId: key,
4731
- node: select$3(),
4731
+ node: select$a(),
4732
4732
  variables: {},
4733
4733
  }, snapshotRefresh);
4734
4734
  if (process.env.NODE_ENV !== 'production') {
@@ -4739,19 +4739,19 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
4739
4739
  deepFreeze(snapshot.data);
4740
4740
  return snapshot;
4741
4741
  }
4742
- function ingestError$1(luvio, params, error, snapshotRefresh) {
4743
- const key = keyBuilder$3(luvio, params);
4742
+ function ingestError$3(luvio, params, error, snapshotRefresh) {
4743
+ const key = keyBuilder$9(luvio, params);
4744
4744
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
4745
4745
  const storeMetadataParams = {
4746
- ttl: TTL$1,
4746
+ ttl: TTL$4,
4747
4747
  namespace: keyPrefix,
4748
- version: VERSION$2,
4749
- representationName: RepresentationType$1
4748
+ version: VERSION$5,
4749
+ representationName: RepresentationType$3
4750
4750
  };
4751
4751
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
4752
4752
  return errorSnapshot;
4753
4753
  }
4754
- function createResourceRequest$1(config) {
4754
+ function createResourceRequest$9(config) {
4755
4755
  const headers = {};
4756
4756
  return {
4757
4757
  baseUri: '/services/data/v64.0',
@@ -4765,7 +4765,7 @@ function createResourceRequest$1(config) {
4765
4765
  };
4766
4766
  }
4767
4767
 
4768
- const adapterName$1 = 'postPersonalizationRecommenderSimulateAction';
4768
+ const adapterName$6 = 'postPersonalizationRecommenderSimulateAction';
4769
4769
  const postPersonalizationRecommenderSimulateAction_ConfigPropertyMetadata = [
4770
4770
  generateParamConfigMetadata('idOrName', true, 0 /* UrlParameter */, 0 /* String */),
4771
4771
  generateParamConfigMetadata('anchors', false, 2 /* Body */, 4 /* Unsupported */, true),
@@ -4773,21 +4773,21 @@ const postPersonalizationRecommenderSimulateAction_ConfigPropertyMetadata = [
4773
4773
  generateParamConfigMetadata('includeFilters', false, 2 /* Body */, 4 /* Unsupported */),
4774
4774
  generateParamConfigMetadata('individualId', false, 2 /* Body */, 4 /* Unsupported */),
4775
4775
  ];
4776
- const postPersonalizationRecommenderSimulateAction_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, postPersonalizationRecommenderSimulateAction_ConfigPropertyMetadata);
4777
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$a(postPersonalizationRecommenderSimulateAction_ConfigPropertyMetadata);
4778
- function keyBuilder$2(luvio, config) {
4779
- const resourceParams = createResourceParams$1(config);
4780
- return keyBuilder$3(luvio, resourceParams);
4776
+ const postPersonalizationRecommenderSimulateAction_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, postPersonalizationRecommenderSimulateAction_ConfigPropertyMetadata);
4777
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$f(postPersonalizationRecommenderSimulateAction_ConfigPropertyMetadata);
4778
+ function keyBuilder$8(luvio, config) {
4779
+ const resourceParams = createResourceParams$6(config);
4780
+ return keyBuilder$9(luvio, resourceParams);
4781
4781
  }
4782
- function typeCheckConfig$1(untrustedConfig) {
4782
+ function typeCheckConfig$6(untrustedConfig) {
4783
4783
  const config = {};
4784
- typeCheckConfig$a(untrustedConfig, config, postPersonalizationRecommenderSimulateAction_ConfigPropertyMetadata);
4784
+ typeCheckConfig$f(untrustedConfig, config, postPersonalizationRecommenderSimulateAction_ConfigPropertyMetadata);
4785
4785
  const untrustedConfig_anchors = untrustedConfig.anchors;
4786
4786
  if (ArrayIsArray$1(untrustedConfig_anchors)) {
4787
4787
  const untrustedConfig_anchors_array = [];
4788
4788
  for (let i = 0, arrayLength = untrustedConfig_anchors.length; i < arrayLength; i++) {
4789
4789
  const untrustedConfig_anchors_item = untrustedConfig_anchors[i];
4790
- const referenceAnchorReferenceRepresentationValidationError = validate$5(untrustedConfig_anchors_item);
4790
+ const referenceAnchorReferenceRepresentationValidationError = validate$9(untrustedConfig_anchors_item);
4791
4791
  if (referenceAnchorReferenceRepresentationValidationError === null) {
4792
4792
  untrustedConfig_anchors_array.push(untrustedConfig_anchors_item);
4793
4793
  }
@@ -4795,12 +4795,12 @@ function typeCheckConfig$1(untrustedConfig) {
4795
4795
  config.anchors = untrustedConfig_anchors_array;
4796
4796
  }
4797
4797
  const untrustedConfig_excludeFilters = untrustedConfig.excludeFilters;
4798
- const referenceRuleGroupInputRepresentation2ValidationError = validate$4(untrustedConfig_excludeFilters);
4798
+ const referenceRuleGroupInputRepresentation2ValidationError = validate$8(untrustedConfig_excludeFilters);
4799
4799
  if (referenceRuleGroupInputRepresentation2ValidationError === null) {
4800
4800
  config.excludeFilters = untrustedConfig_excludeFilters;
4801
4801
  }
4802
4802
  const untrustedConfig_includeFilters = untrustedConfig.includeFilters;
4803
- const referenceRuleGroupInputRepresentationValidationError = validate$3(untrustedConfig_includeFilters);
4803
+ const referenceRuleGroupInputRepresentationValidationError = validate$7(untrustedConfig_includeFilters);
4804
4804
  if (referenceRuleGroupInputRepresentationValidationError === null) {
4805
4805
  config.includeFilters = untrustedConfig_includeFilters;
4806
4806
  }
@@ -4813,171 +4813,300 @@ function typeCheckConfig$1(untrustedConfig) {
4813
4813
  }
4814
4814
  return config;
4815
4815
  }
4816
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
4816
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
4817
4817
  if (!untrustedIsObject(untrustedConfig)) {
4818
4818
  return null;
4819
4819
  }
4820
4820
  if (process.env.NODE_ENV !== 'production') {
4821
4821
  validateConfig(untrustedConfig, configPropertyNames);
4822
4822
  }
4823
- const config = typeCheckConfig$1(untrustedConfig);
4823
+ const config = typeCheckConfig$6(untrustedConfig);
4824
4824
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
4825
4825
  return null;
4826
4826
  }
4827
4827
  return config;
4828
4828
  }
4829
- function adapterFragment$1(luvio, config) {
4830
- createResourceParams$1(config);
4831
- return select$3();
4829
+ function adapterFragment$3(luvio, config) {
4830
+ createResourceParams$6(config);
4831
+ return select$a();
4832
4832
  }
4833
- function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
4834
- const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
4833
+ function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
4834
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
4835
4835
  config,
4836
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
4836
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
4837
4837
  });
4838
4838
  return luvio.storeBroadcast().then(() => snapshot);
4839
4839
  }
4840
- function onFetchResponseError$1(luvio, config, resourceParams, response) {
4841
- const snapshot = ingestError$1(luvio, resourceParams, response, {
4840
+ function onFetchResponseError$3(luvio, config, resourceParams, response) {
4841
+ const snapshot = ingestError$3(luvio, resourceParams, response, {
4842
4842
  config,
4843
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
4843
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
4844
4844
  });
4845
4845
  return luvio.storeBroadcast().then(() => snapshot);
4846
4846
  }
4847
- function buildNetworkSnapshot$1(luvio, config, options) {
4848
- const resourceParams = createResourceParams$1(config);
4849
- const request = createResourceRequest$1(resourceParams);
4847
+ function buildNetworkSnapshot$6(luvio, config, options) {
4848
+ const resourceParams = createResourceParams$6(config);
4849
+ const request = createResourceRequest$9(resourceParams);
4850
4850
  return luvio.dispatchResourceRequest(request, options)
4851
4851
  .then((response) => {
4852
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
4852
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
4853
4853
  const cache = new StoreKeyMap();
4854
- getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
4854
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
4855
4855
  return cache;
4856
4856
  });
4857
4857
  }, (response) => {
4858
- return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
4858
+ return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
4859
4859
  });
4860
4860
  }
4861
- function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
4862
- return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, 'get', false);
4861
+ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
4862
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, 'get', false);
4863
4863
  }
4864
- function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
4864
+ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
4865
4865
  const { luvio, config } = context;
4866
4866
  const selector = {
4867
- recordId: keyBuilder$2(luvio, config),
4868
- node: adapterFragment$1(luvio, config),
4867
+ recordId: keyBuilder$8(luvio, config),
4868
+ node: adapterFragment$3(luvio, config),
4869
4869
  variables: {},
4870
4870
  };
4871
4871
  const cacheSnapshot = storeLookup(selector, {
4872
4872
  config,
4873
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
4873
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
4874
4874
  });
4875
4875
  return cacheSnapshot;
4876
4876
  }
4877
4877
  const postPersonalizationRecommenderSimulateActionAdapterFactory = (luvio) => function personalizationService__postPersonalizationRecommenderSimulateAction(untrustedConfig, requestContext) {
4878
- const config = validateAdapterConfig$1(untrustedConfig, postPersonalizationRecommenderSimulateAction_ConfigPropertyNames);
4878
+ const config = validateAdapterConfig$6(untrustedConfig, postPersonalizationRecommenderSimulateAction_ConfigPropertyNames);
4879
4879
  // Invalid or incomplete config
4880
4880
  if (config === null) {
4881
4881
  return null;
4882
4882
  }
4883
4883
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
4884
- buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
4884
+ buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
4885
4885
  };
4886
4886
 
4887
- const VERSION$1 = "5249bd66216ddaa79d57690fedf0d20b";
4888
- function validate$1(obj, path = 'PersonalizationDataMlModelRepresentation') {
4887
+ const VERSION$4 = "e68c48ce57702a3f1e8ca445bbbcbbcf";
4888
+ function validate$5(obj, path = 'PersonalizationDataMlModelInputFeatureRepresentation') {
4889
4889
  const v_error = (() => {
4890
4890
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4891
4891
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4892
4892
  }
4893
- const obj_dataSpaceId = obj.dataSpaceId;
4894
- const path_dataSpaceId = path + '.dataSpaceId';
4895
- if (typeof obj_dataSpaceId !== 'string') {
4896
- return new TypeError('Expected "string" but received "' + typeof obj_dataSpaceId + '" (at "' + path_dataSpaceId + '")');
4893
+ const obj_inputField = obj.inputField;
4894
+ const path_inputField = path + '.inputField';
4895
+ if (obj_inputField === undefined) {
4896
+ return new TypeError('Expected "defined" but received "' + typeof obj_inputField + '" (at "' + path_inputField + '")');
4897
+ }
4898
+ const obj_personalizationField = obj.personalizationField;
4899
+ const path_personalizationField = path + '.personalizationField';
4900
+ if (obj_personalizationField === undefined) {
4901
+ return new TypeError('Expected "defined" but received "' + typeof obj_personalizationField + '" (at "' + path_personalizationField + '")');
4897
4902
  }
4898
- const obj_esModelDefinitionId = obj.esModelDefinitionId;
4899
- const path_esModelDefinitionId = path + '.esModelDefinitionId';
4900
- if (typeof obj_esModelDefinitionId !== 'string') {
4901
- return new TypeError('Expected "string" but received "' + typeof obj_esModelDefinitionId + '" (at "' + path_esModelDefinitionId + '")');
4903
+ const obj_type = obj.type;
4904
+ const path_type = path + '.type';
4905
+ if (typeof obj_type !== 'string') {
4906
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
4902
4907
  }
4903
- const obj_personalizationDataMlModelInputList = obj.personalizationDataMlModelInputList;
4904
- const path_personalizationDataMlModelInputList = path + '.personalizationDataMlModelInputList';
4905
- if (!ArrayIsArray(obj_personalizationDataMlModelInputList)) {
4906
- return new TypeError('Expected "array" but received "' + typeof obj_personalizationDataMlModelInputList + '" (at "' + path_personalizationDataMlModelInputList + '")');
4908
+ })();
4909
+ return v_error === undefined ? null : v_error;
4910
+ }
4911
+ const select$9 = function PersonalizationDataMlModelInputFeatureRepresentationSelect() {
4912
+ return {
4913
+ kind: 'Fragment',
4914
+ version: VERSION$4,
4915
+ private: [],
4916
+ selections: [
4917
+ {
4918
+ name: 'inputField',
4919
+ kind: 'Object',
4920
+ // any
4921
+ },
4922
+ {
4923
+ name: 'personalizationField',
4924
+ kind: 'Object',
4925
+ // any
4926
+ },
4927
+ {
4928
+ name: 'type',
4929
+ kind: 'Scalar'
4930
+ }
4931
+ ]
4932
+ };
4933
+ };
4934
+ function equals$5(existing, incoming) {
4935
+ const existing_type = existing.type;
4936
+ const incoming_type = incoming.type;
4937
+ if (!(existing_type === incoming_type)) {
4938
+ return false;
4939
+ }
4940
+ const existing_inputField = existing.inputField;
4941
+ const incoming_inputField = incoming.inputField;
4942
+ if (JSONStringify(incoming_inputField) !== JSONStringify(existing_inputField)) {
4943
+ return false;
4944
+ }
4945
+ const existing_personalizationField = existing.personalizationField;
4946
+ const incoming_personalizationField = incoming.personalizationField;
4947
+ if (JSONStringify(incoming_personalizationField) !== JSONStringify(existing_personalizationField)) {
4948
+ return false;
4949
+ }
4950
+ return true;
4951
+ }
4952
+
4953
+ const VERSION$3 = "d1b90f3586125de94a321fae68717c07";
4954
+ function validate$4(obj, path = 'PersonalizationDataMlModelRepresentation') {
4955
+ const v_error = (() => {
4956
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4957
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4907
4958
  }
4908
- for (let i = 0; i < obj_personalizationDataMlModelInputList.length; i++) {
4909
- const obj_personalizationDataMlModelInputList_item = obj_personalizationDataMlModelInputList[i];
4910
- const path_personalizationDataMlModelInputList_item = path_personalizationDataMlModelInputList + '[' + i + ']';
4911
- if (obj_personalizationDataMlModelInputList_item === undefined) {
4912
- return new TypeError('Expected "defined" but received "' + typeof obj_personalizationDataMlModelInputList_item + '" (at "' + path_personalizationDataMlModelInputList_item + '")');
4959
+ const obj_dataMlModelInputs = obj.dataMlModelInputs;
4960
+ const path_dataMlModelInputs = path + '.dataMlModelInputs';
4961
+ if (!ArrayIsArray(obj_dataMlModelInputs)) {
4962
+ return new TypeError('Expected "array" but received "' + typeof obj_dataMlModelInputs + '" (at "' + path_dataMlModelInputs + '")');
4963
+ }
4964
+ for (let i = 0; i < obj_dataMlModelInputs.length; i++) {
4965
+ const obj_dataMlModelInputs_item = obj_dataMlModelInputs[i];
4966
+ const path_dataMlModelInputs_item = path_dataMlModelInputs + '[' + i + ']';
4967
+ const referencepath_dataMlModelInputs_itemValidationError = validate$5(obj_dataMlModelInputs_item, path_dataMlModelInputs_item);
4968
+ if (referencepath_dataMlModelInputs_itemValidationError !== null) {
4969
+ let message = 'Object doesn\'t match PersonalizationDataMlModelInputFeatureRepresentation (at "' + path_dataMlModelInputs_item + '")\n';
4970
+ message += referencepath_dataMlModelInputs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
4971
+ return new TypeError(message);
4913
4972
  }
4914
4973
  }
4915
- const obj_profileDataGraphId = obj.profileDataGraphId;
4916
- const path_profileDataGraphId = path + '.profileDataGraphId';
4917
- if (typeof obj_profileDataGraphId !== 'string') {
4918
- return new TypeError('Expected "string" but received "' + typeof obj_profileDataGraphId + '" (at "' + path_profileDataGraphId + '")');
4974
+ const obj_dataSpaceName = obj.dataSpaceName;
4975
+ const path_dataSpaceName = path + '.dataSpaceName';
4976
+ if (typeof obj_dataSpaceName !== 'string') {
4977
+ return new TypeError('Expected "string" but received "' + typeof obj_dataSpaceName + '" (at "' + path_dataSpaceName + '")');
4978
+ }
4979
+ const obj_id = obj.id;
4980
+ const path_id = path + '.id';
4981
+ if (typeof obj_id !== 'string') {
4982
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
4983
+ }
4984
+ const obj_label = obj.label;
4985
+ const path_label = path + '.label';
4986
+ if (typeof obj_label !== 'string') {
4987
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
4988
+ }
4989
+ const obj_mlConfiguredModel = obj.mlConfiguredModel;
4990
+ const path_mlConfiguredModel = path + '.mlConfiguredModel';
4991
+ if (obj_mlConfiguredModel === undefined) {
4992
+ return new TypeError('Expected "defined" but received "' + typeof obj_mlConfiguredModel + '" (at "' + path_mlConfiguredModel + '")');
4993
+ }
4994
+ const obj_name = obj.name;
4995
+ const path_name = path + '.name';
4996
+ if (typeof obj_name !== 'string') {
4997
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
4998
+ }
4999
+ const obj_profileDataGraphInfo = obj.profileDataGraphInfo;
5000
+ const path_profileDataGraphInfo = path + '.profileDataGraphInfo';
5001
+ if (obj_profileDataGraphInfo === undefined) {
5002
+ return new TypeError('Expected "defined" but received "' + typeof obj_profileDataGraphInfo + '" (at "' + path_profileDataGraphInfo + '")');
5003
+ }
5004
+ const obj_status = obj.status;
5005
+ const path_status = path + '.status';
5006
+ if (typeof obj_status !== 'string') {
5007
+ return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
4919
5008
  }
4920
5009
  })();
4921
5010
  return v_error === undefined ? null : v_error;
4922
5011
  }
4923
- const select$2 = function PersonalizationDataMlModelRepresentationSelect() {
5012
+ const select$8 = function PersonalizationDataMlModelRepresentationSelect() {
5013
+ const { selections: PersonalizationDataMlModelInputFeatureRepresentation__selections, opaque: PersonalizationDataMlModelInputFeatureRepresentation__opaque, } = select$9();
4924
5014
  return {
4925
5015
  kind: 'Fragment',
4926
- version: VERSION$1,
5016
+ version: VERSION$3,
4927
5017
  private: [],
4928
5018
  selections: [
4929
5019
  {
4930
- name: 'dataSpaceId',
5020
+ name: 'dataMlModelInputs',
5021
+ kind: 'Object',
5022
+ plural: true,
5023
+ selections: PersonalizationDataMlModelInputFeatureRepresentation__selections
5024
+ },
5025
+ {
5026
+ name: 'dataSpaceName',
5027
+ kind: 'Scalar'
5028
+ },
5029
+ {
5030
+ name: 'id',
5031
+ kind: 'Scalar'
5032
+ },
5033
+ {
5034
+ name: 'label',
4931
5035
  kind: 'Scalar'
4932
5036
  },
4933
5037
  {
4934
- name: 'esModelDefinitionId',
5038
+ name: 'mlConfiguredModel',
5039
+ kind: 'Object',
5040
+ // any
5041
+ },
5042
+ {
5043
+ name: 'name',
4935
5044
  kind: 'Scalar'
4936
5045
  },
4937
5046
  {
4938
- name: 'personalizationDataMlModelInputList',
5047
+ name: 'profileDataGraphInfo',
4939
5048
  kind: 'Object',
4940
5049
  // any
4941
5050
  },
4942
5051
  {
4943
- name: 'profileDataGraphId',
5052
+ name: 'status',
4944
5053
  kind: 'Scalar'
4945
5054
  }
4946
5055
  ]
4947
5056
  };
4948
5057
  };
4949
- function equals$1(existing, incoming) {
4950
- const existing_dataSpaceId = existing.dataSpaceId;
4951
- const incoming_dataSpaceId = incoming.dataSpaceId;
4952
- if (!(existing_dataSpaceId === incoming_dataSpaceId)) {
5058
+ function equals$4(existing, incoming) {
5059
+ const existing_dataSpaceName = existing.dataSpaceName;
5060
+ const incoming_dataSpaceName = incoming.dataSpaceName;
5061
+ if (!(existing_dataSpaceName === incoming_dataSpaceName)) {
5062
+ return false;
5063
+ }
5064
+ const existing_id = existing.id;
5065
+ const incoming_id = incoming.id;
5066
+ if (!(existing_id === incoming_id)) {
5067
+ return false;
5068
+ }
5069
+ const existing_label = existing.label;
5070
+ const incoming_label = incoming.label;
5071
+ if (!(existing_label === incoming_label)) {
4953
5072
  return false;
4954
5073
  }
4955
- const existing_esModelDefinitionId = existing.esModelDefinitionId;
4956
- const incoming_esModelDefinitionId = incoming.esModelDefinitionId;
4957
- if (!(existing_esModelDefinitionId === incoming_esModelDefinitionId)) {
5074
+ const existing_name = existing.name;
5075
+ const incoming_name = incoming.name;
5076
+ if (!(existing_name === incoming_name)) {
4958
5077
  return false;
4959
5078
  }
4960
- const existing_profileDataGraphId = existing.profileDataGraphId;
4961
- const incoming_profileDataGraphId = incoming.profileDataGraphId;
4962
- if (!(existing_profileDataGraphId === incoming_profileDataGraphId)) {
5079
+ const existing_status = existing.status;
5080
+ const incoming_status = incoming.status;
5081
+ if (!(existing_status === incoming_status)) {
4963
5082
  return false;
4964
5083
  }
4965
- const existing_personalizationDataMlModelInputList = existing.personalizationDataMlModelInputList;
4966
- const incoming_personalizationDataMlModelInputList = incoming.personalizationDataMlModelInputList;
4967
- const equals_personalizationDataMlModelInputList_items = equalsArray(existing_personalizationDataMlModelInputList, incoming_personalizationDataMlModelInputList, (existing_personalizationDataMlModelInputList_item, incoming_personalizationDataMlModelInputList_item) => {
4968
- if (JSONStringify(incoming_personalizationDataMlModelInputList_item) !== JSONStringify(existing_personalizationDataMlModelInputList_item)) {
5084
+ const existing_dataMlModelInputs = existing.dataMlModelInputs;
5085
+ const incoming_dataMlModelInputs = incoming.dataMlModelInputs;
5086
+ const equals_dataMlModelInputs_items = equalsArray(existing_dataMlModelInputs, incoming_dataMlModelInputs, (existing_dataMlModelInputs_item, incoming_dataMlModelInputs_item) => {
5087
+ if (!(equals$5(existing_dataMlModelInputs_item, incoming_dataMlModelInputs_item))) {
4969
5088
  return false;
4970
5089
  }
4971
5090
  });
4972
- if (equals_personalizationDataMlModelInputList_items === false) {
5091
+ if (equals_dataMlModelInputs_items === false) {
5092
+ return false;
5093
+ }
5094
+ const existing_mlConfiguredModel = existing.mlConfiguredModel;
5095
+ const incoming_mlConfiguredModel = incoming.mlConfiguredModel;
5096
+ if (JSONStringify(incoming_mlConfiguredModel) !== JSONStringify(existing_mlConfiguredModel)) {
5097
+ return false;
5098
+ }
5099
+ const existing_profileDataGraphInfo = existing.profileDataGraphInfo;
5100
+ const incoming_profileDataGraphInfo = incoming.profileDataGraphInfo;
5101
+ if (JSONStringify(incoming_profileDataGraphInfo) !== JSONStringify(existing_profileDataGraphInfo)) {
4973
5102
  return false;
4974
5103
  }
4975
5104
  return true;
4976
5105
  }
4977
5106
 
4978
- const TTL = 600;
4979
- const VERSION = "9dbc0875b97dc0f9ec2f23b3481be0b8";
4980
- function validate(obj, path = 'PersonalizationDataMlModelCollectionRepresentation') {
5107
+ const TTL$3 = 600;
5108
+ const VERSION$2 = "9dbc0875b97dc0f9ec2f23b3481be0b8";
5109
+ function validate$3(obj, path = 'PersonalizationDataMlModelCollectionRepresentation') {
4981
5110
  const v_error = (() => {
4982
5111
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4983
5112
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4990,7 +5119,7 @@ function validate(obj, path = 'PersonalizationDataMlModelCollectionRepresentatio
4990
5119
  for (let i = 0; i < obj_personalizationDataMlModels.length; i++) {
4991
5120
  const obj_personalizationDataMlModels_item = obj_personalizationDataMlModels[i];
4992
5121
  const path_personalizationDataMlModels_item = path_personalizationDataMlModels + '[' + i + ']';
4993
- const referencepath_personalizationDataMlModels_itemValidationError = validate$1(obj_personalizationDataMlModels_item, path_personalizationDataMlModels_item);
5122
+ const referencepath_personalizationDataMlModels_itemValidationError = validate$4(obj_personalizationDataMlModels_item, path_personalizationDataMlModels_item);
4994
5123
  if (referencepath_personalizationDataMlModels_itemValidationError !== null) {
4995
5124
  let message = 'Object doesn\'t match PersonalizationDataMlModelRepresentation (at "' + path_personalizationDataMlModels_item + '")\n';
4996
5125
  message += referencepath_personalizationDataMlModels_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5000,15 +5129,15 @@ function validate(obj, path = 'PersonalizationDataMlModelCollectionRepresentatio
5000
5129
  })();
5001
5130
  return v_error === undefined ? null : v_error;
5002
5131
  }
5003
- const RepresentationType = 'PersonalizationDataMlModelCollectionRepresentation';
5004
- function normalize(input, existing, path, luvio, store, timestamp) {
5132
+ const RepresentationType$2 = 'PersonalizationDataMlModelCollectionRepresentation';
5133
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
5005
5134
  return input;
5006
5135
  }
5007
- const select$1 = function PersonalizationDataMlModelCollectionRepresentationSelect() {
5008
- const { selections: PersonalizationDataMlModelRepresentation__selections, opaque: PersonalizationDataMlModelRepresentation__opaque, } = select$2();
5136
+ const select$7 = function PersonalizationDataMlModelCollectionRepresentationSelect() {
5137
+ const { selections: PersonalizationDataMlModelRepresentation__selections, opaque: PersonalizationDataMlModelRepresentation__opaque, } = select$8();
5009
5138
  return {
5010
5139
  kind: 'Fragment',
5011
- version: VERSION,
5140
+ version: VERSION$2,
5012
5141
  private: [],
5013
5142
  selections: [
5014
5143
  {
@@ -5020,11 +5149,11 @@ const select$1 = function PersonalizationDataMlModelCollectionRepresentationSele
5020
5149
  ]
5021
5150
  };
5022
5151
  };
5023
- function equals(existing, incoming) {
5152
+ function equals$3(existing, incoming) {
5024
5153
  const existing_personalizationDataMlModels = existing.personalizationDataMlModels;
5025
5154
  const incoming_personalizationDataMlModels = incoming.personalizationDataMlModels;
5026
5155
  const equals_personalizationDataMlModels_items = equalsArray(existing_personalizationDataMlModels, incoming_personalizationDataMlModels, (existing_personalizationDataMlModels_item, incoming_personalizationDataMlModels_item) => {
5027
- if (!(equals$1(existing_personalizationDataMlModels_item, incoming_personalizationDataMlModels_item))) {
5156
+ if (!(equals$4(existing_personalizationDataMlModels_item, incoming_personalizationDataMlModels_item))) {
5028
5157
  return false;
5029
5158
  }
5030
5159
  });
@@ -5033,44 +5162,44 @@ function equals(existing, incoming) {
5033
5162
  }
5034
5163
  return true;
5035
5164
  }
5036
- const ingest = function PersonalizationDataMlModelCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
5165
+ const ingest$2 = function PersonalizationDataMlModelCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
5037
5166
  if (process.env.NODE_ENV !== 'production') {
5038
- const validateError = validate(input);
5167
+ const validateError = validate$3(input);
5039
5168
  if (validateError !== null) {
5040
5169
  throw validateError;
5041
5170
  }
5042
5171
  }
5043
5172
  const key = path.fullPath;
5044
- const ttlToUse = TTL;
5045
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "personalization-service", VERSION, RepresentationType, equals);
5173
+ const ttlToUse = TTL$3;
5174
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "personalization-service", VERSION$2, RepresentationType$2, equals$3);
5046
5175
  return createLink(key);
5047
5176
  };
5048
- function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
5177
+ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
5049
5178
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
5050
5179
  const rootKey = fullPathFactory();
5051
5180
  rootKeySet.set(rootKey, {
5052
5181
  namespace: keyPrefix,
5053
- representationName: RepresentationType,
5182
+ representationName: RepresentationType$2,
5054
5183
  mergeable: false
5055
5184
  });
5056
5185
  }
5057
5186
 
5058
- function select(luvio, params) {
5059
- return select$1();
5187
+ function select$6(luvio, params) {
5188
+ return select$7();
5060
5189
  }
5061
- function keyBuilder$1(luvio, params) {
5062
- return keyPrefix + '::PersonalizationDataMlModelCollectionRepresentation:(' + 'dataspaceIdOrName:' + params.queryParams.dataspaceIdOrName + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'profileDataGraphIdOrName:' + params.queryParams.profileDataGraphIdOrName + ')';
5190
+ function keyBuilder$7(luvio, params) {
5191
+ return keyPrefix + '::PersonalizationDataMlModelCollectionRepresentation:(' + 'dataSpaceName:' + params.queryParams.dataSpaceName + ',' + 'limit:' + params.queryParams.limit + ',' + 'mlConfiguredModelName:' + params.queryParams.mlConfiguredModelName + ',' + 'offset:' + params.queryParams.offset + ',' + 'profileDataGraphName:' + params.queryParams.profileDataGraphName + ',' + 'status:' + params.queryParams.status + ')';
5063
5192
  }
5064
- function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
5065
- getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
5193
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
5194
+ getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
5066
5195
  }
5067
- function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
5196
+ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
5068
5197
  const { body } = response;
5069
- const key = keyBuilder$1(luvio, resourceParams);
5070
- luvio.storeIngest(key, ingest, body);
5198
+ const key = keyBuilder$7(luvio, resourceParams);
5199
+ luvio.storeIngest(key, ingest$2, body);
5071
5200
  const snapshot = luvio.storeLookup({
5072
5201
  recordId: key,
5073
- node: select(),
5202
+ node: select$6(),
5074
5203
  variables: {},
5075
5204
  }, snapshotRefresh);
5076
5205
  if (process.env.NODE_ENV !== 'production') {
@@ -5081,89 +5210,1060 @@ function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
5081
5210
  deepFreeze(snapshot.data);
5082
5211
  return snapshot;
5083
5212
  }
5084
- function ingestError(luvio, params, error, snapshotRefresh) {
5085
- const key = keyBuilder$1(luvio, params);
5213
+ function ingestError$2(luvio, params, error, snapshotRefresh) {
5214
+ const key = keyBuilder$7(luvio, params);
5086
5215
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
5087
5216
  const storeMetadataParams = {
5088
- ttl: TTL,
5217
+ ttl: TTL$3,
5089
5218
  namespace: keyPrefix,
5090
- version: VERSION,
5091
- representationName: RepresentationType
5219
+ version: VERSION$2,
5220
+ representationName: RepresentationType$2
5221
+ };
5222
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
5223
+ return errorSnapshot;
5224
+ }
5225
+ function createResourceRequest$8(config) {
5226
+ const headers = {};
5227
+ return {
5228
+ baseUri: '/services/data/v64.0',
5229
+ basePath: '/personalization/data-ml-models',
5230
+ method: 'get',
5231
+ body: null,
5232
+ urlParams: {},
5233
+ queryParams: config.queryParams,
5234
+ headers,
5235
+ priority: 'normal',
5236
+ };
5237
+ }
5238
+
5239
+ const adapterName$5 = 'getPersonalizationEsModelMapping';
5240
+ const getPersonalizationEsModelMapping_ConfigPropertyMetadata = [
5241
+ generateParamConfigMetadata('dataSpaceName', false, 1 /* QueryParameter */, 0 /* String */),
5242
+ generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
5243
+ generateParamConfigMetadata('mlConfiguredModelName', false, 1 /* QueryParameter */, 0 /* String */),
5244
+ generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
5245
+ generateParamConfigMetadata('profileDataGraphName', false, 1 /* QueryParameter */, 0 /* String */),
5246
+ generateParamConfigMetadata('status', false, 1 /* QueryParameter */, 0 /* String */),
5247
+ ];
5248
+ const getPersonalizationEsModelMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getPersonalizationEsModelMapping_ConfigPropertyMetadata);
5249
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$f(getPersonalizationEsModelMapping_ConfigPropertyMetadata);
5250
+ function keyBuilder$6(luvio, config) {
5251
+ const resourceParams = createResourceParams$5(config);
5252
+ return keyBuilder$7(luvio, resourceParams);
5253
+ }
5254
+ function typeCheckConfig$5(untrustedConfig) {
5255
+ const config = {};
5256
+ typeCheckConfig$f(untrustedConfig, config, getPersonalizationEsModelMapping_ConfigPropertyMetadata);
5257
+ return config;
5258
+ }
5259
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
5260
+ if (!untrustedIsObject(untrustedConfig)) {
5261
+ return null;
5262
+ }
5263
+ if (process.env.NODE_ENV !== 'production') {
5264
+ validateConfig(untrustedConfig, configPropertyNames);
5265
+ }
5266
+ const config = typeCheckConfig$5(untrustedConfig);
5267
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
5268
+ return null;
5269
+ }
5270
+ return config;
5271
+ }
5272
+ function adapterFragment$2(luvio, config) {
5273
+ createResourceParams$5(config);
5274
+ return select$6();
5275
+ }
5276
+ function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
5277
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
5278
+ config,
5279
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
5280
+ });
5281
+ return luvio.storeBroadcast().then(() => snapshot);
5282
+ }
5283
+ function onFetchResponseError$2(luvio, config, resourceParams, response) {
5284
+ const snapshot = ingestError$2(luvio, resourceParams, response, {
5285
+ config,
5286
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
5287
+ });
5288
+ return luvio.storeBroadcast().then(() => snapshot);
5289
+ }
5290
+ function buildNetworkSnapshot$5(luvio, config, options) {
5291
+ const resourceParams = createResourceParams$5(config);
5292
+ const request = createResourceRequest$8(resourceParams);
5293
+ return luvio.dispatchResourceRequest(request, options)
5294
+ .then((response) => {
5295
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
5296
+ const cache = new StoreKeyMap();
5297
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
5298
+ return cache;
5299
+ });
5300
+ }, (response) => {
5301
+ return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
5302
+ });
5303
+ }
5304
+ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
5305
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
5306
+ }
5307
+ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
5308
+ const { luvio, config } = context;
5309
+ const selector = {
5310
+ recordId: keyBuilder$6(luvio, config),
5311
+ node: adapterFragment$2(luvio, config),
5312
+ variables: {},
5313
+ };
5314
+ const cacheSnapshot = storeLookup(selector, {
5315
+ config,
5316
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
5317
+ });
5318
+ return cacheSnapshot;
5319
+ }
5320
+ const getPersonalizationEsModelMappingAdapterFactory = (luvio) => function personalizationService__getPersonalizationEsModelMapping(untrustedConfig, requestContext) {
5321
+ const config = validateAdapterConfig$5(untrustedConfig, getPersonalizationEsModelMapping_ConfigPropertyNames);
5322
+ // Invalid or incomplete config
5323
+ if (config === null) {
5324
+ return null;
5325
+ }
5326
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
5327
+ buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
5328
+ };
5329
+
5330
+ const TTL$2 = 600;
5331
+ function validate$2(obj, path = 'PersonalizationPaginatedResponseBaseRepresentation') {
5332
+ const v_error = (() => {
5333
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5334
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
5335
+ }
5336
+ const obj_currentPageUrl = obj.currentPageUrl;
5337
+ const path_currentPageUrl = path + '.currentPageUrl';
5338
+ if (typeof obj_currentPageUrl !== 'string') {
5339
+ return new TypeError('Expected "string" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
5340
+ }
5341
+ const obj_nextPageUrl = obj.nextPageUrl;
5342
+ const path_nextPageUrl = path + '.nextPageUrl';
5343
+ if (typeof obj_nextPageUrl !== 'string') {
5344
+ return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
5345
+ }
5346
+ const obj_totalSize = obj.totalSize;
5347
+ const path_totalSize = path + '.totalSize';
5348
+ if (typeof obj_totalSize !== 'number' || (typeof obj_totalSize === 'number' && Math.floor(obj_totalSize) !== obj_totalSize)) {
5349
+ return new TypeError('Expected "integer" but received "' + typeof obj_totalSize + '" (at "' + path_totalSize + '")');
5350
+ }
5351
+ })();
5352
+ return v_error === undefined ? null : v_error;
5353
+ }
5354
+ function equals$2(existing, incoming) {
5355
+ const existing_totalSize = existing.totalSize;
5356
+ const incoming_totalSize = incoming.totalSize;
5357
+ if (!(existing_totalSize === incoming_totalSize)) {
5358
+ return false;
5359
+ }
5360
+ const existing_currentPageUrl = existing.currentPageUrl;
5361
+ const incoming_currentPageUrl = incoming.currentPageUrl;
5362
+ if (!(existing_currentPageUrl === incoming_currentPageUrl)) {
5363
+ return false;
5364
+ }
5365
+ const existing_nextPageUrl = existing.nextPageUrl;
5366
+ const incoming_nextPageUrl = incoming.nextPageUrl;
5367
+ if (!(existing_nextPageUrl === incoming_nextPageUrl)) {
5368
+ return false;
5369
+ }
5370
+ return true;
5371
+ }
5372
+
5373
+ const TTL$1 = 600;
5374
+ const VERSION$1 = "ad7582d1e3c4e2d227351115537d8590";
5375
+ function validate$1(obj, path = 'PersonalizationExperienceConfigRepresentation') {
5376
+ const v_error = (() => {
5377
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5378
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
5379
+ }
5380
+ if (obj.createdById !== undefined) {
5381
+ const obj_createdById = obj.createdById;
5382
+ const path_createdById = path + '.createdById';
5383
+ if (typeof obj_createdById !== 'string') {
5384
+ return new TypeError('Expected "string" but received "' + typeof obj_createdById + '" (at "' + path_createdById + '")');
5385
+ }
5386
+ }
5387
+ if (obj.createdDate !== undefined) {
5388
+ const obj_createdDate = obj.createdDate;
5389
+ const path_createdDate = path + '.createdDate';
5390
+ if (typeof obj_createdDate !== 'string') {
5391
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
5392
+ }
5393
+ }
5394
+ const obj_dataProvider = obj.dataProvider;
5395
+ const path_dataProvider = path + '.dataProvider';
5396
+ if (obj_dataProvider === undefined) {
5397
+ return new TypeError('Expected "defined" but received "' + typeof obj_dataProvider + '" (at "' + path_dataProvider + '")');
5398
+ }
5399
+ if (obj.description !== undefined) {
5400
+ const obj_description = obj.description;
5401
+ const path_description = path + '.description';
5402
+ if (typeof obj_description !== 'string') {
5403
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
5404
+ }
5405
+ }
5406
+ const obj_displayUrl = obj.displayUrl;
5407
+ const path_displayUrl = path + '.displayUrl';
5408
+ if (typeof obj_displayUrl !== 'string') {
5409
+ return new TypeError('Expected "string" but received "' + typeof obj_displayUrl + '" (at "' + path_displayUrl + '")');
5410
+ }
5411
+ if (obj.id !== undefined) {
5412
+ const obj_id = obj.id;
5413
+ const path_id = path + '.id';
5414
+ if (typeof obj_id !== 'string') {
5415
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
5416
+ }
5417
+ }
5418
+ const obj_isEnabled = obj.isEnabled;
5419
+ const path_isEnabled = path + '.isEnabled';
5420
+ if (typeof obj_isEnabled !== 'boolean') {
5421
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isEnabled + '" (at "' + path_isEnabled + '")');
5422
+ }
5423
+ if (obj.label !== undefined) {
5424
+ const obj_label = obj.label;
5425
+ const path_label = path + '.label';
5426
+ if (typeof obj_label !== 'string') {
5427
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
5428
+ }
5429
+ }
5430
+ if (obj.lastModifiedById !== undefined) {
5431
+ const obj_lastModifiedById = obj.lastModifiedById;
5432
+ const path_lastModifiedById = path + '.lastModifiedById';
5433
+ if (typeof obj_lastModifiedById !== 'string') {
5434
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedById + '" (at "' + path_lastModifiedById + '")');
5435
+ }
5436
+ }
5437
+ if (obj.lastModifiedDate !== undefined) {
5438
+ const obj_lastModifiedDate = obj.lastModifiedDate;
5439
+ const path_lastModifiedDate = path + '.lastModifiedDate';
5440
+ if (typeof obj_lastModifiedDate !== 'string') {
5441
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
5442
+ }
5443
+ }
5444
+ const obj_name = obj.name;
5445
+ const path_name = path + '.name';
5446
+ if (typeof obj_name !== 'string') {
5447
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
5448
+ }
5449
+ if (obj.publishedDate !== undefined) {
5450
+ const obj_publishedDate = obj.publishedDate;
5451
+ const path_publishedDate = path + '.publishedDate';
5452
+ if (typeof obj_publishedDate !== 'string') {
5453
+ return new TypeError('Expected "string" but received "' + typeof obj_publishedDate + '" (at "' + path_publishedDate + '")');
5454
+ }
5455
+ }
5456
+ const obj_sourceMatchers = obj.sourceMatchers;
5457
+ const path_sourceMatchers = path + '.sourceMatchers';
5458
+ if (!ArrayIsArray(obj_sourceMatchers)) {
5459
+ return new TypeError('Expected "array" but received "' + typeof obj_sourceMatchers + '" (at "' + path_sourceMatchers + '")');
5460
+ }
5461
+ for (let i = 0; i < obj_sourceMatchers.length; i++) {
5462
+ const obj_sourceMatchers_item = obj_sourceMatchers[i];
5463
+ const path_sourceMatchers_item = path_sourceMatchers + '[' + i + ']';
5464
+ if (obj_sourceMatchers_item === undefined) {
5465
+ return new TypeError('Expected "defined" but received "' + typeof obj_sourceMatchers_item + '" (at "' + path_sourceMatchers_item + '")');
5466
+ }
5467
+ }
5468
+ const obj_transformationConfig = obj.transformationConfig;
5469
+ const path_transformationConfig = path + '.transformationConfig';
5470
+ if (obj_transformationConfig === undefined) {
5471
+ return new TypeError('Expected "defined" but received "' + typeof obj_transformationConfig + '" (at "' + path_transformationConfig + '")');
5472
+ }
5473
+ })();
5474
+ return v_error === undefined ? null : v_error;
5475
+ }
5476
+ const RepresentationType$1 = 'PersonalizationExperienceConfigRepresentation';
5477
+ function keyBuilder$5(luvio, config) {
5478
+ return keyPrefix + '::' + RepresentationType$1 + ':' + config.id;
5479
+ }
5480
+ function keyBuilderFromType(luvio, object) {
5481
+ const keyParams = {
5482
+ id: object.name
5483
+ };
5484
+ return keyBuilder$5(luvio, keyParams);
5485
+ }
5486
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
5487
+ return input;
5488
+ }
5489
+ const select$5 = function PersonalizationExperienceConfigRepresentationSelect() {
5490
+ return {
5491
+ kind: 'Fragment',
5492
+ version: VERSION$1,
5493
+ private: [],
5494
+ selections: [
5495
+ {
5496
+ name: 'createdById',
5497
+ kind: 'Scalar',
5498
+ required: false
5499
+ },
5500
+ {
5501
+ name: 'createdDate',
5502
+ kind: 'Scalar',
5503
+ required: false
5504
+ },
5505
+ {
5506
+ name: 'dataProvider',
5507
+ kind: 'Object',
5508
+ // any
5509
+ },
5510
+ {
5511
+ name: 'description',
5512
+ kind: 'Scalar',
5513
+ required: false
5514
+ },
5515
+ {
5516
+ name: 'displayUrl',
5517
+ kind: 'Scalar'
5518
+ },
5519
+ {
5520
+ name: 'id',
5521
+ kind: 'Scalar',
5522
+ required: false
5523
+ },
5524
+ {
5525
+ name: 'isEnabled',
5526
+ kind: 'Scalar'
5527
+ },
5528
+ {
5529
+ name: 'label',
5530
+ kind: 'Scalar',
5531
+ required: false
5532
+ },
5533
+ {
5534
+ name: 'lastModifiedById',
5535
+ kind: 'Scalar',
5536
+ required: false
5537
+ },
5538
+ {
5539
+ name: 'lastModifiedDate',
5540
+ kind: 'Scalar',
5541
+ required: false
5542
+ },
5543
+ {
5544
+ name: 'name',
5545
+ kind: 'Scalar'
5546
+ },
5547
+ {
5548
+ name: 'publishedDate',
5549
+ kind: 'Scalar',
5550
+ required: false
5551
+ },
5552
+ {
5553
+ name: 'sourceMatchers',
5554
+ kind: 'Object',
5555
+ // any
5556
+ },
5557
+ {
5558
+ name: 'transformationConfig',
5559
+ kind: 'Object',
5560
+ // any
5561
+ }
5562
+ ]
5563
+ };
5564
+ };
5565
+ function equals$1(existing, incoming) {
5566
+ const existing_isEnabled = existing.isEnabled;
5567
+ const incoming_isEnabled = incoming.isEnabled;
5568
+ if (!(existing_isEnabled === incoming_isEnabled)) {
5569
+ return false;
5570
+ }
5571
+ const existing_createdById = existing.createdById;
5572
+ const incoming_createdById = incoming.createdById;
5573
+ // if at least one of these optionals is defined
5574
+ if (existing_createdById !== undefined || incoming_createdById !== undefined) {
5575
+ // if one of these is not defined we know the other is defined and therefore
5576
+ // not equal
5577
+ if (existing_createdById === undefined || incoming_createdById === undefined) {
5578
+ return false;
5579
+ }
5580
+ if (!(existing_createdById === incoming_createdById)) {
5581
+ return false;
5582
+ }
5583
+ }
5584
+ const existing_createdDate = existing.createdDate;
5585
+ const incoming_createdDate = incoming.createdDate;
5586
+ // if at least one of these optionals is defined
5587
+ if (existing_createdDate !== undefined || incoming_createdDate !== undefined) {
5588
+ // if one of these is not defined we know the other is defined and therefore
5589
+ // not equal
5590
+ if (existing_createdDate === undefined || incoming_createdDate === undefined) {
5591
+ return false;
5592
+ }
5593
+ if (!(existing_createdDate === incoming_createdDate)) {
5594
+ return false;
5595
+ }
5596
+ }
5597
+ const existing_description = existing.description;
5598
+ const incoming_description = incoming.description;
5599
+ // if at least one of these optionals is defined
5600
+ if (existing_description !== undefined || incoming_description !== undefined) {
5601
+ // if one of these is not defined we know the other is defined and therefore
5602
+ // not equal
5603
+ if (existing_description === undefined || incoming_description === undefined) {
5604
+ return false;
5605
+ }
5606
+ if (!(existing_description === incoming_description)) {
5607
+ return false;
5608
+ }
5609
+ }
5610
+ const existing_displayUrl = existing.displayUrl;
5611
+ const incoming_displayUrl = incoming.displayUrl;
5612
+ if (!(existing_displayUrl === incoming_displayUrl)) {
5613
+ return false;
5614
+ }
5615
+ const existing_id = existing.id;
5616
+ const incoming_id = incoming.id;
5617
+ // if at least one of these optionals is defined
5618
+ if (existing_id !== undefined || incoming_id !== undefined) {
5619
+ // if one of these is not defined we know the other is defined and therefore
5620
+ // not equal
5621
+ if (existing_id === undefined || incoming_id === undefined) {
5622
+ return false;
5623
+ }
5624
+ if (!(existing_id === incoming_id)) {
5625
+ return false;
5626
+ }
5627
+ }
5628
+ const existing_label = existing.label;
5629
+ const incoming_label = incoming.label;
5630
+ // if at least one of these optionals is defined
5631
+ if (existing_label !== undefined || incoming_label !== undefined) {
5632
+ // if one of these is not defined we know the other is defined and therefore
5633
+ // not equal
5634
+ if (existing_label === undefined || incoming_label === undefined) {
5635
+ return false;
5636
+ }
5637
+ if (!(existing_label === incoming_label)) {
5638
+ return false;
5639
+ }
5640
+ }
5641
+ const existing_lastModifiedById = existing.lastModifiedById;
5642
+ const incoming_lastModifiedById = incoming.lastModifiedById;
5643
+ // if at least one of these optionals is defined
5644
+ if (existing_lastModifiedById !== undefined || incoming_lastModifiedById !== undefined) {
5645
+ // if one of these is not defined we know the other is defined and therefore
5646
+ // not equal
5647
+ if (existing_lastModifiedById === undefined || incoming_lastModifiedById === undefined) {
5648
+ return false;
5649
+ }
5650
+ if (!(existing_lastModifiedById === incoming_lastModifiedById)) {
5651
+ return false;
5652
+ }
5653
+ }
5654
+ const existing_lastModifiedDate = existing.lastModifiedDate;
5655
+ const incoming_lastModifiedDate = incoming.lastModifiedDate;
5656
+ // if at least one of these optionals is defined
5657
+ if (existing_lastModifiedDate !== undefined || incoming_lastModifiedDate !== undefined) {
5658
+ // if one of these is not defined we know the other is defined and therefore
5659
+ // not equal
5660
+ if (existing_lastModifiedDate === undefined || incoming_lastModifiedDate === undefined) {
5661
+ return false;
5662
+ }
5663
+ if (!(existing_lastModifiedDate === incoming_lastModifiedDate)) {
5664
+ return false;
5665
+ }
5666
+ }
5667
+ const existing_name = existing.name;
5668
+ const incoming_name = incoming.name;
5669
+ if (!(existing_name === incoming_name)) {
5670
+ return false;
5671
+ }
5672
+ const existing_publishedDate = existing.publishedDate;
5673
+ const incoming_publishedDate = incoming.publishedDate;
5674
+ // if at least one of these optionals is defined
5675
+ if (existing_publishedDate !== undefined || incoming_publishedDate !== undefined) {
5676
+ // if one of these is not defined we know the other is defined and therefore
5677
+ // not equal
5678
+ if (existing_publishedDate === undefined || incoming_publishedDate === undefined) {
5679
+ return false;
5680
+ }
5681
+ if (!(existing_publishedDate === incoming_publishedDate)) {
5682
+ return false;
5683
+ }
5684
+ }
5685
+ const existing_dataProvider = existing.dataProvider;
5686
+ const incoming_dataProvider = incoming.dataProvider;
5687
+ if (JSONStringify(incoming_dataProvider) !== JSONStringify(existing_dataProvider)) {
5688
+ return false;
5689
+ }
5690
+ const existing_sourceMatchers = existing.sourceMatchers;
5691
+ const incoming_sourceMatchers = incoming.sourceMatchers;
5692
+ const equals_sourceMatchers_items = equalsArray(existing_sourceMatchers, incoming_sourceMatchers, (existing_sourceMatchers_item, incoming_sourceMatchers_item) => {
5693
+ if (JSONStringify(incoming_sourceMatchers_item) !== JSONStringify(existing_sourceMatchers_item)) {
5694
+ return false;
5695
+ }
5696
+ });
5697
+ if (equals_sourceMatchers_items === false) {
5698
+ return false;
5699
+ }
5700
+ const existing_transformationConfig = existing.transformationConfig;
5701
+ const incoming_transformationConfig = incoming.transformationConfig;
5702
+ if (JSONStringify(incoming_transformationConfig) !== JSONStringify(existing_transformationConfig)) {
5703
+ return false;
5704
+ }
5705
+ return true;
5706
+ }
5707
+ const ingest$1 = function PersonalizationExperienceConfigRepresentationIngest(input, path, luvio, store, timestamp) {
5708
+ if (process.env.NODE_ENV !== 'production') {
5709
+ const validateError = validate$1(input);
5710
+ if (validateError !== null) {
5711
+ throw validateError;
5712
+ }
5713
+ }
5714
+ const key = keyBuilderFromType(luvio, input);
5715
+ const ttlToUse = TTL$1;
5716
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "personalization-service", VERSION$1, RepresentationType$1, equals$1);
5717
+ return createLink(key);
5718
+ };
5719
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
5720
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
5721
+ const rootKey = keyBuilderFromType(luvio, input);
5722
+ rootKeySet.set(rootKey, {
5723
+ namespace: keyPrefix,
5724
+ representationName: RepresentationType$1,
5725
+ mergeable: false
5726
+ });
5727
+ }
5728
+
5729
+ const TTL = 600;
5730
+ const VERSION = "5a309503b3f17d6589909be7f5f9d4a8";
5731
+ function validate(obj, path = 'PersonalizationExperienceConfigCollectionRepresentation') {
5732
+ const validatePersonalizationPaginatedResponseBaseRepresentation_validateError = validate$2(obj, path);
5733
+ if (validatePersonalizationPaginatedResponseBaseRepresentation_validateError !== null) {
5734
+ return validatePersonalizationPaginatedResponseBaseRepresentation_validateError;
5735
+ }
5736
+ const v_error = (() => {
5737
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5738
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
5739
+ }
5740
+ const obj_personalizationExperienceConfigs = obj.personalizationExperienceConfigs;
5741
+ const path_personalizationExperienceConfigs = path + '.personalizationExperienceConfigs';
5742
+ if (!ArrayIsArray(obj_personalizationExperienceConfigs)) {
5743
+ return new TypeError('Expected "array" but received "' + typeof obj_personalizationExperienceConfigs + '" (at "' + path_personalizationExperienceConfigs + '")');
5744
+ }
5745
+ for (let i = 0; i < obj_personalizationExperienceConfigs.length; i++) {
5746
+ const obj_personalizationExperienceConfigs_item = obj_personalizationExperienceConfigs[i];
5747
+ const path_personalizationExperienceConfigs_item = path_personalizationExperienceConfigs + '[' + i + ']';
5748
+ const referencepath_personalizationExperienceConfigs_itemValidationError = validate$1(obj_personalizationExperienceConfigs_item, path_personalizationExperienceConfigs_item);
5749
+ if (referencepath_personalizationExperienceConfigs_itemValidationError !== null) {
5750
+ let message = 'Object doesn\'t match PersonalizationExperienceConfigRepresentation (at "' + path_personalizationExperienceConfigs_item + '")\n';
5751
+ message += referencepath_personalizationExperienceConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
5752
+ return new TypeError(message);
5753
+ }
5754
+ }
5755
+ })();
5756
+ return v_error === undefined ? null : v_error;
5757
+ }
5758
+ const RepresentationType = 'PersonalizationExperienceConfigCollectionRepresentation';
5759
+ function normalize(input, existing, path, luvio, store, timestamp) {
5760
+ return input;
5761
+ }
5762
+ const select$4 = function PersonalizationExperienceConfigCollectionRepresentationSelect() {
5763
+ return {
5764
+ kind: 'Fragment',
5765
+ version: VERSION,
5766
+ private: [],
5767
+ opaque: true
5768
+ };
5769
+ };
5770
+ function equals(existing, incoming) {
5771
+ if (equals$2(existing, incoming) === false) {
5772
+ return false;
5773
+ }
5774
+ const existing_personalizationExperienceConfigs = existing.personalizationExperienceConfigs;
5775
+ const incoming_personalizationExperienceConfigs = incoming.personalizationExperienceConfigs;
5776
+ const equals_personalizationExperienceConfigs_items = equalsArray(existing_personalizationExperienceConfigs, incoming_personalizationExperienceConfigs, (existing_personalizationExperienceConfigs_item, incoming_personalizationExperienceConfigs_item) => {
5777
+ if (!(equals$1(existing_personalizationExperienceConfigs_item, incoming_personalizationExperienceConfigs_item))) {
5778
+ return false;
5779
+ }
5780
+ });
5781
+ if (equals_personalizationExperienceConfigs_items === false) {
5782
+ return false;
5783
+ }
5784
+ return true;
5785
+ }
5786
+ const ingest = function PersonalizationExperienceConfigCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
5787
+ if (process.env.NODE_ENV !== 'production') {
5788
+ const validateError = validate(input);
5789
+ if (validateError !== null) {
5790
+ throw validateError;
5791
+ }
5792
+ }
5793
+ const key = path.fullPath;
5794
+ const ttlToUse = TTL$2;
5795
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "personalization-service", VERSION, RepresentationType, equals);
5796
+ return createLink(key);
5797
+ };
5798
+ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
5799
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
5800
+ const rootKey = fullPathFactory();
5801
+ rootKeySet.set(rootKey, {
5802
+ namespace: keyPrefix,
5803
+ representationName: RepresentationType,
5804
+ mergeable: false
5805
+ });
5806
+ }
5807
+
5808
+ function select$3(luvio, params) {
5809
+ return select$4();
5810
+ }
5811
+ function keyBuilder$4(luvio, params) {
5812
+ return keyPrefix + '::PersonalizationExperienceConfigCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'idOrAppSourceIdOrName:' + params.urlParams.idOrAppSourceIdOrName + ')';
5813
+ }
5814
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
5815
+ getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
5816
+ }
5817
+ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
5818
+ const { body } = response;
5819
+ const key = keyBuilder$4(luvio, resourceParams);
5820
+ luvio.storeIngest(key, ingest, body);
5821
+ const snapshot = luvio.storeLookup({
5822
+ recordId: key,
5823
+ node: select$3(),
5824
+ variables: {},
5825
+ }, snapshotRefresh);
5826
+ if (process.env.NODE_ENV !== 'production') {
5827
+ if (snapshot.state !== 'Fulfilled') {
5828
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
5829
+ }
5830
+ }
5831
+ deepFreeze(snapshot.data);
5832
+ return snapshot;
5833
+ }
5834
+ function ingestError$1(luvio, params, error, snapshotRefresh) {
5835
+ const key = keyBuilder$4(luvio, params);
5836
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
5837
+ const storeMetadataParams = {
5838
+ ttl: TTL,
5839
+ namespace: keyPrefix,
5840
+ version: VERSION,
5841
+ representationName: RepresentationType
5842
+ };
5843
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
5844
+ return errorSnapshot;
5845
+ }
5846
+ function createResourceRequest$7(config) {
5847
+ const headers = {};
5848
+ return {
5849
+ baseUri: '/services/data/v64.0',
5850
+ basePath: '/personalization/external-apps/' + config.urlParams.idOrAppSourceIdOrName + '/personalization-experience-configs',
5851
+ method: 'get',
5852
+ body: null,
5853
+ urlParams: config.urlParams,
5854
+ queryParams: config.queryParams,
5855
+ headers,
5856
+ priority: 'normal',
5857
+ };
5858
+ }
5859
+
5860
+ const adapterName$4 = 'getPersonalizationExperiencesConfigs';
5861
+ const getPersonalizationExperiencesConfigs_ConfigPropertyMetadata = [
5862
+ generateParamConfigMetadata('idOrAppSourceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
5863
+ generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
5864
+ generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
5865
+ ];
5866
+ const getPersonalizationExperiencesConfigs_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getPersonalizationExperiencesConfigs_ConfigPropertyMetadata);
5867
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$f(getPersonalizationExperiencesConfigs_ConfigPropertyMetadata);
5868
+ function keyBuilder$3(luvio, config) {
5869
+ const resourceParams = createResourceParams$4(config);
5870
+ return keyBuilder$4(luvio, resourceParams);
5871
+ }
5872
+ function typeCheckConfig$4(untrustedConfig) {
5873
+ const config = {};
5874
+ typeCheckConfig$f(untrustedConfig, config, getPersonalizationExperiencesConfigs_ConfigPropertyMetadata);
5875
+ return config;
5876
+ }
5877
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
5878
+ if (!untrustedIsObject(untrustedConfig)) {
5879
+ return null;
5880
+ }
5881
+ if (process.env.NODE_ENV !== 'production') {
5882
+ validateConfig(untrustedConfig, configPropertyNames);
5883
+ }
5884
+ const config = typeCheckConfig$4(untrustedConfig);
5885
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
5886
+ return null;
5887
+ }
5888
+ return config;
5889
+ }
5890
+ function adapterFragment$1(luvio, config) {
5891
+ createResourceParams$4(config);
5892
+ return select$3();
5893
+ }
5894
+ function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
5895
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
5896
+ config,
5897
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
5898
+ });
5899
+ return luvio.storeBroadcast().then(() => snapshot);
5900
+ }
5901
+ function onFetchResponseError$1(luvio, config, resourceParams, response) {
5902
+ const snapshot = ingestError$1(luvio, resourceParams, response, {
5903
+ config,
5904
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
5905
+ });
5906
+ return luvio.storeBroadcast().then(() => snapshot);
5907
+ }
5908
+ function buildNetworkSnapshot$4(luvio, config, options) {
5909
+ const resourceParams = createResourceParams$4(config);
5910
+ const request = createResourceRequest$7(resourceParams);
5911
+ return luvio.dispatchResourceRequest(request, options)
5912
+ .then((response) => {
5913
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
5914
+ const cache = new StoreKeyMap();
5915
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
5916
+ return cache;
5917
+ });
5918
+ }, (response) => {
5919
+ return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
5920
+ });
5921
+ }
5922
+ function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
5923
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
5924
+ }
5925
+ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
5926
+ const { luvio, config } = context;
5927
+ const selector = {
5928
+ recordId: keyBuilder$3(luvio, config),
5929
+ node: adapterFragment$1(luvio, config),
5930
+ variables: {},
5931
+ };
5932
+ const cacheSnapshot = storeLookup(selector, {
5933
+ config,
5934
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
5935
+ });
5936
+ return cacheSnapshot;
5937
+ }
5938
+ const getPersonalizationExperiencesConfigsAdapterFactory = (luvio) => function personalizationService__getPersonalizationExperiencesConfigs(untrustedConfig, requestContext) {
5939
+ const config = validateAdapterConfig$4(untrustedConfig, getPersonalizationExperiencesConfigs_ConfigPropertyNames);
5940
+ // Invalid or incomplete config
5941
+ if (config === null) {
5942
+ return null;
5943
+ }
5944
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
5945
+ buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
5946
+ };
5947
+
5948
+ function select$2(luvio, params) {
5949
+ return select$5();
5950
+ }
5951
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
5952
+ getTypeCacheKeys$1(storeKeyMap, luvio, response);
5953
+ }
5954
+ function ingestSuccess$2(luvio, resourceParams, response) {
5955
+ const { body } = response;
5956
+ const key = keyBuilderFromType(luvio, body);
5957
+ luvio.storeIngest(key, ingest$1, body);
5958
+ const snapshot = luvio.storeLookup({
5959
+ recordId: key,
5960
+ node: select$2(),
5961
+ variables: {},
5962
+ });
5963
+ if (process.env.NODE_ENV !== 'production') {
5964
+ if (snapshot.state !== 'Fulfilled') {
5965
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
5966
+ }
5967
+ }
5968
+ deepFreeze(snapshot.data);
5969
+ return snapshot;
5970
+ }
5971
+ function createResourceRequest$6(config) {
5972
+ const headers = {};
5973
+ return {
5974
+ baseUri: '/services/data/v64.0',
5975
+ basePath: '/personalization/external-apps/' + config.urlParams.idOrAppSourceIdOrName + '/personalization-experience-configs',
5976
+ method: 'post',
5977
+ body: config.body,
5978
+ urlParams: config.urlParams,
5979
+ queryParams: {},
5980
+ headers,
5981
+ priority: 'normal',
5982
+ };
5983
+ }
5984
+
5985
+ const adapterName$3 = 'createPersonalizationExperiencesConfig';
5986
+ const createPersonalizationExperiencesConfig_ConfigPropertyMetadata = [
5987
+ generateParamConfigMetadata('idOrAppSourceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
5988
+ generateParamConfigMetadata('dataProvider', true, 2 /* Body */, 4 /* Unsupported */),
5989
+ generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
5990
+ generateParamConfigMetadata('displayUrl', true, 2 /* Body */, 0 /* String */),
5991
+ generateParamConfigMetadata('isEnabled', true, 2 /* Body */, 1 /* Boolean */),
5992
+ generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
5993
+ generateParamConfigMetadata('lastModifiedDate', false, 2 /* Body */, 0 /* String */),
5994
+ generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
5995
+ generateParamConfigMetadata('publishedDate', false, 2 /* Body */, 0 /* String */),
5996
+ generateParamConfigMetadata('sourceMatchers', true, 2 /* Body */, 4 /* Unsupported */, true),
5997
+ generateParamConfigMetadata('transformationConfig', true, 2 /* Body */, 4 /* Unsupported */),
5998
+ ];
5999
+ const createPersonalizationExperiencesConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createPersonalizationExperiencesConfig_ConfigPropertyMetadata);
6000
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$f(createPersonalizationExperiencesConfig_ConfigPropertyMetadata);
6001
+ function typeCheckConfig$3(untrustedConfig) {
6002
+ const config = {};
6003
+ typeCheckConfig$f(untrustedConfig, config, createPersonalizationExperiencesConfig_ConfigPropertyMetadata);
6004
+ const untrustedConfig_dataProvider = untrustedConfig.dataProvider;
6005
+ config.dataProvider = untrustedConfig_dataProvider;
6006
+ const untrustedConfig_sourceMatchers = untrustedConfig.sourceMatchers;
6007
+ if (ArrayIsArray$1(untrustedConfig_sourceMatchers)) {
6008
+ const untrustedConfig_sourceMatchers_array = [];
6009
+ for (let i = 0, arrayLength = untrustedConfig_sourceMatchers.length; i < arrayLength; i++) {
6010
+ const untrustedConfig_sourceMatchers_item = untrustedConfig_sourceMatchers[i];
6011
+ untrustedConfig_sourceMatchers_array.push(untrustedConfig_sourceMatchers_item);
6012
+ }
6013
+ config.sourceMatchers = untrustedConfig_sourceMatchers_array;
6014
+ }
6015
+ const untrustedConfig_transformationConfig = untrustedConfig.transformationConfig;
6016
+ config.transformationConfig = untrustedConfig_transformationConfig;
6017
+ return config;
6018
+ }
6019
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
6020
+ if (!untrustedIsObject(untrustedConfig)) {
6021
+ return null;
6022
+ }
6023
+ if (process.env.NODE_ENV !== 'production') {
6024
+ validateConfig(untrustedConfig, configPropertyNames);
6025
+ }
6026
+ const config = typeCheckConfig$3(untrustedConfig);
6027
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
6028
+ return null;
6029
+ }
6030
+ return config;
6031
+ }
6032
+ function buildNetworkSnapshot$3(luvio, config, options) {
6033
+ const resourceParams = createResourceParams$3(config);
6034
+ const request = createResourceRequest$6(resourceParams);
6035
+ return luvio.dispatchResourceRequest(request, options)
6036
+ .then((response) => {
6037
+ return luvio.handleSuccessResponse(() => {
6038
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response);
6039
+ return luvio.storeBroadcast().then(() => snapshot);
6040
+ }, () => {
6041
+ const cache = new StoreKeyMap();
6042
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
6043
+ return cache;
6044
+ });
6045
+ }, (response) => {
6046
+ deepFreeze(response);
6047
+ throw response;
6048
+ });
6049
+ }
6050
+ const createPersonalizationExperiencesConfigAdapterFactory = (luvio) => {
6051
+ return function createPersonalizationExperiencesConfig(untrustedConfig) {
6052
+ const config = validateAdapterConfig$3(untrustedConfig, createPersonalizationExperiencesConfig_ConfigPropertyNames);
6053
+ // Invalid or incomplete config
6054
+ if (config === null) {
6055
+ throw new Error('Invalid config for "createPersonalizationExperiencesConfig"');
6056
+ }
6057
+ return buildNetworkSnapshot$3(luvio, config);
6058
+ };
6059
+ };
6060
+
6061
+ function keyBuilder$2(luvio, params) {
6062
+ return keyBuilder$5(luvio, {
6063
+ id: params.urlParams.nameParam
6064
+ });
6065
+ }
6066
+ function getResponseCacheKeys$2(cacheKeyMap, luvio, resourceParams) {
6067
+ const key = keyBuilder$2(luvio, resourceParams);
6068
+ cacheKeyMap.set(key, {
6069
+ namespace: keyPrefix,
6070
+ representationName: RepresentationType$1,
6071
+ mergeable: false
6072
+ });
6073
+ }
6074
+ function evictSuccess(luvio, resourceParams) {
6075
+ const key = keyBuilder$2(luvio, resourceParams);
6076
+ luvio.storeEvict(key);
6077
+ }
6078
+ function createResourceRequest$5(config) {
6079
+ const headers = {};
6080
+ return {
6081
+ baseUri: '/services/data/v64.0',
6082
+ basePath: '/personalization/external-apps/' + config.urlParams.idOrAppSourceIdOrName + '/personalization-experience-configs/' + config.urlParams.nameParam + '',
6083
+ method: 'delete',
6084
+ body: null,
6085
+ urlParams: config.urlParams,
6086
+ queryParams: {},
6087
+ headers,
6088
+ priority: 'normal',
6089
+ };
6090
+ }
6091
+
6092
+ function createResourceRequest$4(config) {
6093
+ const result = createResourceRequest$5(config);
6094
+ result.urlParams.name = result.urlParams.nameParam;
6095
+ return result;
6096
+ }
6097
+
6098
+ const adapterName$2 = 'deletePersonalizationExperienceConfig';
6099
+ const deletePersonalizationExperienceConfig_ConfigPropertyMetadata = [
6100
+ generateParamConfigMetadata('idOrAppSourceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
6101
+ generateParamConfigMetadata('nameParam', true, 0 /* UrlParameter */, 0 /* String */),
6102
+ ];
6103
+ const deletePersonalizationExperienceConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, deletePersonalizationExperienceConfig_ConfigPropertyMetadata);
6104
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$f(deletePersonalizationExperienceConfig_ConfigPropertyMetadata);
6105
+ function typeCheckConfig$2(untrustedConfig) {
6106
+ const config = {};
6107
+ typeCheckConfig$f(untrustedConfig, config, deletePersonalizationExperienceConfig_ConfigPropertyMetadata);
6108
+ return config;
6109
+ }
6110
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
6111
+ if (!untrustedIsObject(untrustedConfig)) {
6112
+ return null;
6113
+ }
6114
+ if (process.env.NODE_ENV !== 'production') {
6115
+ validateConfig(untrustedConfig, configPropertyNames);
6116
+ }
6117
+ const config = typeCheckConfig$2(untrustedConfig);
6118
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
6119
+ return null;
6120
+ }
6121
+ return config;
6122
+ }
6123
+ function buildNetworkSnapshot$2(luvio, config, options) {
6124
+ const resourceParams = createResourceParams$2(config);
6125
+ const request = createResourceRequest$4(resourceParams);
6126
+ return luvio.dispatchResourceRequest(request, options)
6127
+ .then(() => {
6128
+ return luvio.handleSuccessResponse(() => {
6129
+ evictSuccess(luvio, resourceParams);
6130
+ return luvio.storeBroadcast();
6131
+ }, () => {
6132
+ const cache = new StoreKeyMap();
6133
+ getResponseCacheKeys$2(cache, luvio, resourceParams);
6134
+ return cache;
6135
+ });
6136
+ }, (response) => {
6137
+ deepFreeze(response);
6138
+ throw response;
6139
+ });
6140
+ }
6141
+ const deletePersonalizationExperienceConfigAdapterFactory = (luvio) => {
6142
+ return function personalizationServicedeletePersonalizationExperienceConfig(untrustedConfig) {
6143
+ const config = validateAdapterConfig$2(untrustedConfig, deletePersonalizationExperienceConfig_ConfigPropertyNames);
6144
+ // Invalid or incomplete config
6145
+ if (config === null) {
6146
+ throw new Error(`Invalid config for "${adapterName$2}"`);
6147
+ }
6148
+ return buildNetworkSnapshot$2(luvio, config);
6149
+ };
6150
+ };
6151
+
6152
+ function createResourceRequest$3(config) {
6153
+ const result = createResourceRequest$2(config);
6154
+ result.urlParams.name = result.urlParams.nameParam;
6155
+ return result;
6156
+ }
6157
+
6158
+ function select$1(luvio, params) {
6159
+ return select$5();
6160
+ }
6161
+ function keyBuilder$1(luvio, params) {
6162
+ return keyBuilder$5(luvio, {
6163
+ id: params.urlParams.nameParam
6164
+ });
6165
+ }
6166
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
6167
+ getTypeCacheKeys$1(storeKeyMap, luvio, response);
6168
+ }
6169
+ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
6170
+ const { body } = response;
6171
+ const key = keyBuilder$1(luvio, resourceParams);
6172
+ luvio.storeIngest(key, ingest$1, body);
6173
+ const snapshot = luvio.storeLookup({
6174
+ recordId: key,
6175
+ node: select$1(),
6176
+ variables: {},
6177
+ }, snapshotRefresh);
6178
+ if (process.env.NODE_ENV !== 'production') {
6179
+ if (snapshot.state !== 'Fulfilled') {
6180
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
6181
+ }
6182
+ }
6183
+ deepFreeze(snapshot.data);
6184
+ return snapshot;
6185
+ }
6186
+ function ingestError(luvio, params, error, snapshotRefresh) {
6187
+ const key = keyBuilder$1(luvio, params);
6188
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
6189
+ const storeMetadataParams = {
6190
+ ttl: TTL$1,
6191
+ namespace: keyPrefix,
6192
+ version: VERSION$1,
6193
+ representationName: RepresentationType$1
5092
6194
  };
5093
6195
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
5094
6196
  return errorSnapshot;
5095
6197
  }
5096
- function createResourceRequest(config) {
6198
+ function createResourceRequest$2(config) {
5097
6199
  const headers = {};
5098
6200
  return {
5099
6201
  baseUri: '/services/data/v64.0',
5100
- basePath: '/personalization/einstein-studio/model-mapping',
6202
+ basePath: '/personalization/external-apps/' + config.urlParams.idOrAppSourceIdOrName + '/personalization-experience-configs/' + config.urlParams.nameParam + '',
5101
6203
  method: 'get',
5102
6204
  body: null,
5103
- urlParams: {},
5104
- queryParams: config.queryParams,
6205
+ urlParams: config.urlParams,
6206
+ queryParams: {},
5105
6207
  headers,
5106
6208
  priority: 'normal',
5107
6209
  };
5108
6210
  }
5109
6211
 
5110
- const adapterName = 'getPersonalizationEsModelMapping';
5111
- const getPersonalizationEsModelMapping_ConfigPropertyMetadata = [
5112
- generateParamConfigMetadata('dataspaceIdOrName', false, 1 /* QueryParameter */, 0 /* String */),
5113
- generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
5114
- generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
5115
- generateParamConfigMetadata('profileDataGraphIdOrName', false, 1 /* QueryParameter */, 0 /* String */),
6212
+ const adapterName$1 = 'getPersonalizationExperienceConfig';
6213
+ const getPersonalizationExperienceConfig_ConfigPropertyMetadata = [
6214
+ generateParamConfigMetadata('idOrAppSourceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
6215
+ generateParamConfigMetadata('nameParam', true, 0 /* UrlParameter */, 0 /* String */),
5116
6216
  ];
5117
- const getPersonalizationEsModelMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getPersonalizationEsModelMapping_ConfigPropertyMetadata);
5118
- const createResourceParams = /*#__PURE__*/ createResourceParams$a(getPersonalizationEsModelMapping_ConfigPropertyMetadata);
6217
+ const getPersonalizationExperienceConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getPersonalizationExperienceConfig_ConfigPropertyMetadata);
6218
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$f(getPersonalizationExperienceConfig_ConfigPropertyMetadata);
5119
6219
  function keyBuilder(luvio, config) {
5120
- const resourceParams = createResourceParams(config);
6220
+ const resourceParams = createResourceParams$1(config);
5121
6221
  return keyBuilder$1(luvio, resourceParams);
5122
6222
  }
5123
- function typeCheckConfig(untrustedConfig) {
6223
+ function typeCheckConfig$1(untrustedConfig) {
5124
6224
  const config = {};
5125
- typeCheckConfig$a(untrustedConfig, config, getPersonalizationEsModelMapping_ConfigPropertyMetadata);
6225
+ typeCheckConfig$f(untrustedConfig, config, getPersonalizationExperienceConfig_ConfigPropertyMetadata);
5126
6226
  return config;
5127
6227
  }
5128
- function validateAdapterConfig(untrustedConfig, configPropertyNames) {
6228
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
5129
6229
  if (!untrustedIsObject(untrustedConfig)) {
5130
6230
  return null;
5131
6231
  }
5132
6232
  if (process.env.NODE_ENV !== 'production') {
5133
6233
  validateConfig(untrustedConfig, configPropertyNames);
5134
6234
  }
5135
- const config = typeCheckConfig(untrustedConfig);
6235
+ const config = typeCheckConfig$1(untrustedConfig);
5136
6236
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
5137
6237
  return null;
5138
6238
  }
5139
6239
  return config;
5140
6240
  }
5141
6241
  function adapterFragment(luvio, config) {
5142
- createResourceParams(config);
5143
- return select();
6242
+ createResourceParams$1(config);
6243
+ return select$1();
5144
6244
  }
5145
6245
  function onFetchResponseSuccess(luvio, config, resourceParams, response) {
5146
- const snapshot = ingestSuccess(luvio, resourceParams, response, {
6246
+ const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
5147
6247
  config,
5148
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
6248
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
5149
6249
  });
5150
6250
  return luvio.storeBroadcast().then(() => snapshot);
5151
6251
  }
5152
6252
  function onFetchResponseError(luvio, config, resourceParams, response) {
5153
6253
  const snapshot = ingestError(luvio, resourceParams, response, {
5154
6254
  config,
5155
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
6255
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
5156
6256
  });
5157
6257
  return luvio.storeBroadcast().then(() => snapshot);
5158
6258
  }
5159
- function buildNetworkSnapshot(luvio, config, options) {
5160
- const resourceParams = createResourceParams(config);
5161
- const request = createResourceRequest(resourceParams);
6259
+ function buildNetworkSnapshot$1(luvio, config, options) {
6260
+ const resourceParams = createResourceParams$1(config);
6261
+ const request = createResourceRequest$3(resourceParams);
5162
6262
  return luvio.dispatchResourceRequest(request, options)
5163
6263
  .then((response) => {
5164
6264
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
5165
6265
  const cache = new StoreKeyMap();
5166
- getResponseCacheKeys(cache, luvio, resourceParams, response.body);
6266
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
5167
6267
  return cache;
5168
6268
  });
5169
6269
  }, (response) => {
@@ -5171,7 +6271,7 @@ function buildNetworkSnapshot(luvio, config, options) {
5171
6271
  });
5172
6272
  }
5173
6273
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
5174
- return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
6274
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
5175
6275
  }
5176
6276
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
5177
6277
  const { luvio, config } = context;
@@ -5182,12 +6282,12 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
5182
6282
  };
5183
6283
  const cacheSnapshot = storeLookup(selector, {
5184
6284
  config,
5185
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
6285
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
5186
6286
  });
5187
6287
  return cacheSnapshot;
5188
6288
  }
5189
- const getPersonalizationEsModelMappingAdapterFactory = (luvio) => function personalizationService__getPersonalizationEsModelMapping(untrustedConfig, requestContext) {
5190
- const config = validateAdapterConfig(untrustedConfig, getPersonalizationEsModelMapping_ConfigPropertyNames);
6289
+ const getPersonalizationExperienceConfigAdapterFactory = (luvio) => function personalizationService__getPersonalizationExperienceConfig(untrustedConfig, requestContext) {
6290
+ const config = validateAdapterConfig$1(untrustedConfig, getPersonalizationExperienceConfig_ConfigPropertyNames);
5191
6291
  // Invalid or incomplete config
5192
6292
  if (config === null) {
5193
6293
  return null;
@@ -5196,4 +6296,124 @@ const getPersonalizationEsModelMappingAdapterFactory = (luvio) => function perso
5196
6296
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
5197
6297
  };
5198
6298
 
5199
- export { createPersonalizationPointAdapterFactory, createPersonalizationSchemaAdapterFactory, deletePersonalizationPointAdapterFactory, deletePersonalizationSchemaAdapterFactory, getPersonalizationEsModelMappingAdapterFactory, getPersonalizationPointAdapterFactory, getPersonalizationSchemaAdapterFactory, getTrainingHistoryAdapterFactory, postPersonalizationRecommenderSimulateActionAdapterFactory, updatePersonalizationPointAdapterFactory };
6299
+ function select(luvio, params) {
6300
+ return select$5();
6301
+ }
6302
+ function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
6303
+ getTypeCacheKeys$1(storeKeyMap, luvio, response);
6304
+ }
6305
+ function ingestSuccess(luvio, resourceParams, response) {
6306
+ const { body } = response;
6307
+ const key = keyBuilderFromType(luvio, body);
6308
+ luvio.storeIngest(key, ingest$1, body);
6309
+ const snapshot = luvio.storeLookup({
6310
+ recordId: key,
6311
+ node: select(),
6312
+ variables: {},
6313
+ });
6314
+ if (process.env.NODE_ENV !== 'production') {
6315
+ if (snapshot.state !== 'Fulfilled') {
6316
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
6317
+ }
6318
+ }
6319
+ deepFreeze(snapshot.data);
6320
+ return snapshot;
6321
+ }
6322
+ function createResourceRequest$1(config) {
6323
+ const headers = {};
6324
+ return {
6325
+ baseUri: '/services/data/v64.0',
6326
+ basePath: '/personalization/external-apps/' + config.urlParams.idOrAppSourceIdOrName + '/personalization-experience-configs/' + config.urlParams.nameParam + '',
6327
+ method: 'put',
6328
+ body: config.body,
6329
+ urlParams: config.urlParams,
6330
+ queryParams: {},
6331
+ headers,
6332
+ priority: 'normal',
6333
+ };
6334
+ }
6335
+
6336
+ function createResourceRequest(config) {
6337
+ const result = createResourceRequest$1(config);
6338
+ result.urlParams.name = result.urlParams.nameParam;
6339
+ return result;
6340
+ }
6341
+
6342
+ const adapterName = 'updatePersonalizationExperienceConfig';
6343
+ const updatePersonalizationExperienceConfig_ConfigPropertyMetadata = [
6344
+ generateParamConfigMetadata('idOrAppSourceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
6345
+ generateParamConfigMetadata('nameParam', true, 0 /* UrlParameter */, 0 /* String */),
6346
+ generateParamConfigMetadata('dataProvider', true, 2 /* Body */, 4 /* Unsupported */),
6347
+ generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
6348
+ generateParamConfigMetadata('displayUrl', true, 2 /* Body */, 0 /* String */),
6349
+ generateParamConfigMetadata('isEnabled', true, 2 /* Body */, 1 /* Boolean */),
6350
+ generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
6351
+ generateParamConfigMetadata('lastModifiedDate', false, 2 /* Body */, 0 /* String */),
6352
+ generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
6353
+ generateParamConfigMetadata('publishedDate', false, 2 /* Body */, 0 /* String */),
6354
+ generateParamConfigMetadata('sourceMatchers', true, 2 /* Body */, 4 /* Unsupported */, true),
6355
+ generateParamConfigMetadata('transformationConfig', true, 2 /* Body */, 4 /* Unsupported */),
6356
+ ];
6357
+ const updatePersonalizationExperienceConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updatePersonalizationExperienceConfig_ConfigPropertyMetadata);
6358
+ const createResourceParams = /*#__PURE__*/ createResourceParams$f(updatePersonalizationExperienceConfig_ConfigPropertyMetadata);
6359
+ function typeCheckConfig(untrustedConfig) {
6360
+ const config = {};
6361
+ typeCheckConfig$f(untrustedConfig, config, updatePersonalizationExperienceConfig_ConfigPropertyMetadata);
6362
+ const untrustedConfig_dataProvider = untrustedConfig.dataProvider;
6363
+ config.dataProvider = untrustedConfig_dataProvider;
6364
+ const untrustedConfig_sourceMatchers = untrustedConfig.sourceMatchers;
6365
+ if (ArrayIsArray$1(untrustedConfig_sourceMatchers)) {
6366
+ const untrustedConfig_sourceMatchers_array = [];
6367
+ for (let i = 0, arrayLength = untrustedConfig_sourceMatchers.length; i < arrayLength; i++) {
6368
+ const untrustedConfig_sourceMatchers_item = untrustedConfig_sourceMatchers[i];
6369
+ untrustedConfig_sourceMatchers_array.push(untrustedConfig_sourceMatchers_item);
6370
+ }
6371
+ config.sourceMatchers = untrustedConfig_sourceMatchers_array;
6372
+ }
6373
+ const untrustedConfig_transformationConfig = untrustedConfig.transformationConfig;
6374
+ config.transformationConfig = untrustedConfig_transformationConfig;
6375
+ return config;
6376
+ }
6377
+ function validateAdapterConfig(untrustedConfig, configPropertyNames) {
6378
+ if (!untrustedIsObject(untrustedConfig)) {
6379
+ return null;
6380
+ }
6381
+ if (process.env.NODE_ENV !== 'production') {
6382
+ validateConfig(untrustedConfig, configPropertyNames);
6383
+ }
6384
+ const config = typeCheckConfig(untrustedConfig);
6385
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
6386
+ return null;
6387
+ }
6388
+ return config;
6389
+ }
6390
+ function buildNetworkSnapshot(luvio, config, options) {
6391
+ const resourceParams = createResourceParams(config);
6392
+ const request = createResourceRequest(resourceParams);
6393
+ return luvio.dispatchResourceRequest(request, options)
6394
+ .then((response) => {
6395
+ return luvio.handleSuccessResponse(() => {
6396
+ const snapshot = ingestSuccess(luvio, resourceParams, response);
6397
+ return luvio.storeBroadcast().then(() => snapshot);
6398
+ }, () => {
6399
+ const cache = new StoreKeyMap();
6400
+ getResponseCacheKeys(cache, luvio, resourceParams, response.body);
6401
+ return cache;
6402
+ });
6403
+ }, (response) => {
6404
+ deepFreeze(response);
6405
+ throw response;
6406
+ });
6407
+ }
6408
+ const updatePersonalizationExperienceConfigAdapterFactory = (luvio) => {
6409
+ return function updatePersonalizationExperienceConfig(untrustedConfig) {
6410
+ const config = validateAdapterConfig(untrustedConfig, updatePersonalizationExperienceConfig_ConfigPropertyNames);
6411
+ // Invalid or incomplete config
6412
+ if (config === null) {
6413
+ throw new Error('Invalid config for "updatePersonalizationExperienceConfig"');
6414
+ }
6415
+ return buildNetworkSnapshot(luvio, config);
6416
+ };
6417
+ };
6418
+
6419
+ export { createPersonalizationExperiencesConfigAdapterFactory, createPersonalizationPointAdapterFactory, createPersonalizationSchemaAdapterFactory, deletePersonalizationExperienceConfigAdapterFactory, deletePersonalizationPointAdapterFactory, deletePersonalizationSchemaAdapterFactory, getPersonalizationEsModelMappingAdapterFactory, getPersonalizationExperienceConfigAdapterFactory, getPersonalizationExperiencesConfigsAdapterFactory, getPersonalizationPointAdapterFactory, getPersonalizationSchemaAdapterFactory, getTrainingHistoryAdapterFactory, postPersonalizationRecommenderSimulateActionAdapterFactory, updatePersonalizationExperienceConfigAdapterFactory, updatePersonalizationPointAdapterFactory };