@salesforce/lds-adapters-cdp-personalization-service 1.353.0 → 1.354.0-dev1

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.
@@ -0,0 +1,31 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "1ed74e1979dd182eb8aaf7e7a381bfae";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: RuleGroupInputRepresentation2, existing: RuleGroupInputRepresentation2Normalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): RuleGroupInputRepresentation2Normalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: RuleGroupInputRepresentation2Normalized, incoming: RuleGroupInputRepresentation2Normalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: RuleGroupInputRepresentation2, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Rule Group Representation
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface RuleGroupInputRepresentation2Normalized {
17
+ /** The field which gives the information whether to include/exclude all the filter conditions or any one of them. */
18
+ operator: string;
19
+ /** The filter conditions of the recommender. */
20
+ rules: Array<unknown>;
21
+ }
22
+ /**
23
+ * Rule Group Representation
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface RuleGroupInputRepresentation2 {
29
+ operator: string;
30
+ rules: Array<unknown>;
31
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-cdp-personalization-service",
3
- "version": "1.353.0",
3
+ "version": "1.354.0-dev1",
4
4
  "description": "wire adapters for personalization service connect api",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/cdp-personalization-service.js",
@@ -42,10 +42,10 @@
42
42
  "test:unit:debug": "node --inspect-brk ../../node_modules/.bin/jest --runInBand"
43
43
  },
44
44
  "dependencies": {
45
- "@salesforce/lds-bindings": "^1.353.0"
45
+ "@salesforce/lds-bindings": "^1.354.0-dev1"
46
46
  },
47
47
  "devDependencies": {
48
- "@salesforce/lds-compiler-plugins": "^1.353.0"
48
+ "@salesforce/lds-compiler-plugins": "^1.354.0-dev1"
49
49
  },
50
50
  "nx": {
51
51
  "targets": {
package/sfdc/index.js CHANGED
@@ -18,7 +18,6 @@ import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createRes
18
18
 
19
19
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
20
20
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
21
- const { stringify: JSONStringify$1 } = JSON;
22
21
  const { isArray: ArrayIsArray$1 } = Array;
23
22
  /**
24
23
  * Validates an adapter config is well-formed.
@@ -59,61 +58,6 @@ const snapshotRefreshOptions = {
59
58
  },
60
59
  }
61
60
  };
62
- /**
63
- * A deterministic JSON stringify implementation. Heavily adapted from https://github.com/epoberezkin/fast-json-stable-stringify.
64
- * This is needed because insertion order for JSON.stringify(object) affects output:
65
- * JSON.stringify({a: 1, b: 2})
66
- * "{"a":1,"b":2}"
67
- * JSON.stringify({b: 2, a: 1})
68
- * "{"b":2,"a":1}"
69
- * @param data Data to be JSON-stringified.
70
- * @returns JSON.stringified value with consistent ordering of keys.
71
- */
72
- function stableJSONStringify(node) {
73
- // This is for Date values.
74
- if (node && node.toJSON && typeof node.toJSON === 'function') {
75
- // eslint-disable-next-line no-param-reassign
76
- node = node.toJSON();
77
- }
78
- if (node === undefined) {
79
- return;
80
- }
81
- if (typeof node === 'number') {
82
- return isFinite(node) ? '' + node : 'null';
83
- }
84
- if (typeof node !== 'object') {
85
- return JSONStringify$1(node);
86
- }
87
- let i;
88
- let out;
89
- if (ArrayIsArray$1(node)) {
90
- out = '[';
91
- for (i = 0; i < node.length; i++) {
92
- if (i) {
93
- out += ',';
94
- }
95
- out += stableJSONStringify(node[i]) || 'null';
96
- }
97
- return out + ']';
98
- }
99
- if (node === null) {
100
- return 'null';
101
- }
102
- const keys = ObjectKeys(node).sort();
103
- out = '';
104
- for (i = 0; i < keys.length; i++) {
105
- const key = keys[i];
106
- const value = stableJSONStringify(node[key]);
107
- if (!value) {
108
- continue;
109
- }
110
- if (out) {
111
- out += ',';
112
- }
113
- out += JSONStringify$1(key) + ':' + value;
114
- }
115
- return '{' + out + '}';
116
- }
117
61
  function generateParamConfigMetadata(name, required, resourceType, typeCheckShape, isArrayShape = false, coerceFn) {
118
62
  return {
119
63
  name,
@@ -158,7 +102,7 @@ function createLink(ref) {
158
102
  };
159
103
  }
160
104
 
161
- function validate$i(obj, path = 'PersonalizationAttributeValueInputRepresentation') {
105
+ function validate$j(obj, path = 'PersonalizationAttributeValueInputRepresentation') {
162
106
  const v_error = (() => {
163
107
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
164
108
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -249,7 +193,7 @@ function validate$i(obj, path = 'PersonalizationAttributeValueInputRepresentatio
249
193
  return v_error === undefined ? null : v_error;
250
194
  }
251
195
 
252
- function validate$h(obj, path = 'PersonalizationDecisionInputRepresentation') {
196
+ function validate$i(obj, path = 'PersonalizationDecisionInputRepresentation') {
253
197
  const v_error = (() => {
254
198
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
255
199
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -263,7 +207,7 @@ function validate$h(obj, path = 'PersonalizationDecisionInputRepresentation') {
263
207
  for (let i = 0; i < obj_attributeValues.length; i++) {
264
208
  const obj_attributeValues_item = obj_attributeValues[i];
265
209
  const path_attributeValues_item = path_attributeValues + '[' + i + ']';
266
- const referencepath_attributeValues_itemValidationError = validate$i(obj_attributeValues_item, path_attributeValues_item);
210
+ const referencepath_attributeValues_itemValidationError = validate$j(obj_attributeValues_item, path_attributeValues_item);
267
211
  if (referencepath_attributeValues_itemValidationError !== null) {
268
212
  let message = 'Object doesn\'t match PersonalizationAttributeValueInputRepresentation (at "' + path_attributeValues_item + '")\n';
269
213
  message += referencepath_attributeValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -438,7 +382,7 @@ function validate$h(obj, path = 'PersonalizationDecisionInputRepresentation') {
438
382
  }
439
383
 
440
384
  const VERSION$b = "52ea9c14b7a747a28cedbcff0e7ab169";
441
- function validate$g(obj, path = 'PersonalizationAttributeValueRepresentation') {
385
+ function validate$h(obj, path = 'PersonalizationAttributeValueRepresentation') {
442
386
  const v_error = (() => {
443
387
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
444
388
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -564,7 +508,7 @@ function equals$b(existing, incoming) {
564
508
  return true;
565
509
  }
566
510
 
567
- function validate$f(obj, path = 'FiltersWrapRepresentation') {
511
+ function validate$g(obj, path = 'FiltersWrapRepresentation') {
568
512
  const v_error = (() => {
569
513
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
570
514
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -643,7 +587,7 @@ function validate$f(obj, path = 'FiltersWrapRepresentation') {
643
587
  return v_error === undefined ? null : v_error;
644
588
  }
645
589
 
646
- function validate$e(obj, path = 'SubjectRepresentation') {
590
+ function validate$f(obj, path = 'SubjectRepresentation') {
647
591
  const v_error = (() => {
648
592
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
649
593
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -763,7 +707,7 @@ function validate$e(obj, path = 'SubjectRepresentation') {
763
707
  }
764
708
 
765
709
  const VERSION$a = "089c2877ffa367e376fe74f8d358ffa8";
766
- function validate$d(obj, path = 'FilterRepresentation') {
710
+ function validate$e(obj, path = 'FilterRepresentation') {
767
711
  const v_error = (() => {
768
712
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
769
713
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -801,7 +745,7 @@ function validate$d(obj, path = 'FilterRepresentation') {
801
745
  const path_comparison = path + '.comparison';
802
746
  let obj_comparison_union0 = null;
803
747
  const obj_comparison_union0_error = (() => {
804
- const referencepath_comparisonValidationError = validate$d(obj_comparison, path_comparison);
748
+ const referencepath_comparisonValidationError = validate$e(obj_comparison, path_comparison);
805
749
  if (referencepath_comparisonValidationError !== null) {
806
750
  let message = 'Object doesn\'t match FilterRepresentation (at "' + path_comparison + '")\n';
807
751
  message += referencepath_comparisonValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -832,7 +776,7 @@ function validate$d(obj, path = 'FilterRepresentation') {
832
776
  const path_filter = path + '.filter';
833
777
  let obj_filter_union0 = null;
834
778
  const obj_filter_union0_error = (() => {
835
- const referencepath_filterValidationError = validate$f(obj_filter, path_filter);
779
+ const referencepath_filterValidationError = validate$g(obj_filter, path_filter);
836
780
  if (referencepath_filterValidationError !== null) {
837
781
  let message = 'Object doesn\'t match FiltersWrapRepresentation (at "' + path_filter + '")\n';
838
782
  message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -869,7 +813,7 @@ function validate$d(obj, path = 'FilterRepresentation') {
869
813
  const path_filters_item = path_filters + '[' + i + ']';
870
814
  let obj_filters_item_union0 = null;
871
815
  const obj_filters_item_union0_error = (() => {
872
- const referencepath_filters_itemValidationError = validate$d(obj_filters_item, path_filters_item);
816
+ const referencepath_filters_itemValidationError = validate$e(obj_filters_item, path_filters_item);
873
817
  if (referencepath_filters_itemValidationError !== null) {
874
818
  let message = 'Object doesn\'t match FilterRepresentation (at "' + path_filters_item + '")\n';
875
819
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -929,7 +873,7 @@ function validate$d(obj, path = 'FilterRepresentation') {
929
873
  const path_metric = path + '.metric';
930
874
  let obj_metric_union0 = null;
931
875
  const obj_metric_union0_error = (() => {
932
- const referencepath_metricValidationError = validate$e(obj_metric, path_metric);
876
+ const referencepath_metricValidationError = validate$f(obj_metric, path_metric);
933
877
  if (referencepath_metricValidationError !== null) {
934
878
  let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_metric + '")\n';
935
879
  message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -998,7 +942,7 @@ function validate$d(obj, path = 'FilterRepresentation') {
998
942
  for (let i = 0; i < obj_path_item.length; i++) {
999
943
  const obj_path_item_item = obj_path_item[i];
1000
944
  const path_path_item_item = path_path_item + '[' + i + ']';
1001
- const referencepath_path_item_itemValidationError = validate$e(obj_path_item_item, path_path_item_item);
945
+ const referencepath_path_item_itemValidationError = validate$f(obj_path_item_item, path_path_item_item);
1002
946
  if (referencepath_path_item_itemValidationError !== null) {
1003
947
  let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_path_item_item + '")\n';
1004
948
  message += referencepath_path_item_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1096,7 +1040,7 @@ function validate$d(obj, path = 'FilterRepresentation') {
1096
1040
  const path_subject = path + '.subject';
1097
1041
  let obj_subject_union0 = null;
1098
1042
  const obj_subject_union0_error = (() => {
1099
- const referencepath_subjectValidationError = validate$e(obj_subject, path_subject);
1043
+ const referencepath_subjectValidationError = validate$f(obj_subject, path_subject);
1100
1044
  if (referencepath_subjectValidationError !== null) {
1101
1045
  let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_subject + '")\n';
1102
1046
  message += referencepath_subjectValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1215,7 +1159,7 @@ function equals$a(existing, incoming) {
1215
1159
  }
1216
1160
  const ingest$7 = function FilterRepresentationIngest(input, path, luvio, store, timestamp) {
1217
1161
  if (process.env.NODE_ENV !== 'production') {
1218
- const validateError = validate$d(input);
1162
+ const validateError = validate$e(input);
1219
1163
  if (validateError !== null) {
1220
1164
  throw validateError;
1221
1165
  }
@@ -1236,7 +1180,7 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
1236
1180
  }
1237
1181
 
1238
1182
  const VERSION$9 = "ea475f10b4c028f8b97a44af1cf0be14";
1239
- function validate$c(obj, path = 'CriteriaRepresentation') {
1183
+ function validate$d(obj, path = 'CriteriaRepresentation') {
1240
1184
  const v_error = (() => {
1241
1185
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1242
1186
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1334,7 +1278,7 @@ function equals$9(existing, incoming) {
1334
1278
  }
1335
1279
  const ingest$6 = function CriteriaRepresentationIngest(input, path, luvio, store, timestamp) {
1336
1280
  if (process.env.NODE_ENV !== 'production') {
1337
- const validateError = validate$c(input);
1281
+ const validateError = validate$d(input);
1338
1282
  if (validateError !== null) {
1339
1283
  throw validateError;
1340
1284
  }
@@ -1359,7 +1303,7 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1359
1303
  }
1360
1304
 
1361
1305
  const VERSION$8 = "265767af783b296f5f902d6ed447b168";
1362
- function validate$b(obj, path = 'PersonalizationDecisionRepresentation') {
1306
+ function validate$c(obj, path = 'PersonalizationDecisionRepresentation') {
1363
1307
  const v_error = (() => {
1364
1308
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1365
1309
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1372,7 +1316,7 @@ function validate$b(obj, path = 'PersonalizationDecisionRepresentation') {
1372
1316
  for (let i = 0; i < obj_attributeValues.length; i++) {
1373
1317
  const obj_attributeValues_item = obj_attributeValues[i];
1374
1318
  const path_attributeValues_item = path_attributeValues + '[' + i + ']';
1375
- const referencepath_attributeValues_itemValidationError = validate$g(obj_attributeValues_item, path_attributeValues_item);
1319
+ const referencepath_attributeValues_itemValidationError = validate$h(obj_attributeValues_item, path_attributeValues_item);
1376
1320
  if (referencepath_attributeValues_itemValidationError !== null) {
1377
1321
  let message = 'Object doesn\'t match PersonalizationAttributeValueRepresentation (at "' + path_attributeValues_item + '")\n';
1378
1322
  message += referencepath_attributeValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1858,7 +1802,7 @@ function equals$8(existing, incoming) {
1858
1802
  }
1859
1803
  const ingest$5 = function PersonalizationDecisionRepresentationIngest(input, path, luvio, store, timestamp) {
1860
1804
  if (process.env.NODE_ENV !== 'production') {
1861
- const validateError = validate$b(input);
1805
+ const validateError = validate$c(input);
1862
1806
  if (validateError !== null) {
1863
1807
  throw validateError;
1864
1808
  }
@@ -1883,7 +1827,7 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1883
1827
 
1884
1828
  const TTL$4 = 600;
1885
1829
  const VERSION$7 = "e5643ca13ef54c890c9177275a053de3";
1886
- function validate$a(obj, path = 'PersonalizationPointRepresentation') {
1830
+ function validate$b(obj, path = 'PersonalizationPointRepresentation') {
1887
1831
  const v_error = (() => {
1888
1832
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1889
1833
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2599,7 +2543,7 @@ function equals$7(existing, incoming) {
2599
2543
  }
2600
2544
  const ingest$4 = function PersonalizationPointRepresentationIngest(input, path, luvio, store, timestamp) {
2601
2545
  if (process.env.NODE_ENV !== 'production') {
2602
- const validateError = validate$a(input);
2546
+ const validateError = validate$b(input);
2603
2547
  if (validateError !== null) {
2604
2548
  throw validateError;
2605
2549
  }
@@ -2722,7 +2666,7 @@ function typeCheckConfig$9(untrustedConfig) {
2722
2666
  const untrustedConfig_decisions_array = [];
2723
2667
  for (let i = 0, arrayLength = untrustedConfig_decisions.length; i < arrayLength; i++) {
2724
2668
  const untrustedConfig_decisions_item = untrustedConfig_decisions[i];
2725
- const referencePersonalizationDecisionInputRepresentationValidationError = validate$h(untrustedConfig_decisions_item);
2669
+ const referencePersonalizationDecisionInputRepresentationValidationError = validate$i(untrustedConfig_decisions_item);
2726
2670
  if (referencePersonalizationDecisionInputRepresentationValidationError === null) {
2727
2671
  untrustedConfig_decisions_array.push(untrustedConfig_decisions_item);
2728
2672
  }
@@ -2815,7 +2759,7 @@ const createPersonalizationPointAdapterFactory = (luvio) => {
2815
2759
  };
2816
2760
  };
2817
2761
 
2818
- function validate$9(obj, path = 'PersonalizationAttributeInputRepresentation') {
2762
+ function validate$a(obj, path = 'PersonalizationAttributeInputRepresentation') {
2819
2763
  const v_error = (() => {
2820
2764
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2821
2765
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2863,7 +2807,7 @@ function validate$9(obj, path = 'PersonalizationAttributeInputRepresentation') {
2863
2807
  }
2864
2808
 
2865
2809
  const VERSION$6 = "014064b188ff923423af6301d64be36a";
2866
- function validate$8(obj, path = 'PersonalizationAttributeRepresentation') {
2810
+ function validate$9(obj, path = 'PersonalizationAttributeRepresentation') {
2867
2811
  const v_error = (() => {
2868
2812
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2869
2813
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3054,7 +2998,7 @@ function equals$6(existing, incoming) {
3054
2998
 
3055
2999
  const TTL$3 = 600;
3056
3000
  const VERSION$5 = "25740f87643de6fdae570c77bbec7377";
3057
- function validate$7(obj, path = 'PersonalizationSchemaRepresentation') {
3001
+ function validate$8(obj, path = 'PersonalizationSchemaRepresentation') {
3058
3002
  const v_error = (() => {
3059
3003
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3060
3004
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3067,7 +3011,7 @@ function validate$7(obj, path = 'PersonalizationSchemaRepresentation') {
3067
3011
  for (let i = 0; i < obj_attributes.length; i++) {
3068
3012
  const obj_attributes_item = obj_attributes[i];
3069
3013
  const path_attributes_item = path_attributes + '[' + i + ']';
3070
- const referencepath_attributes_itemValidationError = validate$8(obj_attributes_item, path_attributes_item);
3014
+ const referencepath_attributes_itemValidationError = validate$9(obj_attributes_item, path_attributes_item);
3071
3015
  if (referencepath_attributes_itemValidationError !== null) {
3072
3016
  let message = 'Object doesn\'t match PersonalizationAttributeRepresentation (at "' + path_attributes_item + '")\n';
3073
3017
  message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3379,7 +3323,7 @@ function equals$5(existing, incoming) {
3379
3323
  }
3380
3324
  const ingest$3 = function PersonalizationSchemaRepresentationIngest(input, path, luvio, store, timestamp) {
3381
3325
  if (process.env.NODE_ENV !== 'production') {
3382
- const validateError = validate$7(input);
3326
+ const validateError = validate$8(input);
3383
3327
  if (validateError !== null) {
3384
3328
  throw validateError;
3385
3329
  }
@@ -3478,7 +3422,7 @@ function typeCheckConfig$8(untrustedConfig) {
3478
3422
  const untrustedConfig_attributes_array = [];
3479
3423
  for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
3480
3424
  const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
3481
- const referencePersonalizationAttributeInputRepresentationValidationError = validate$9(untrustedConfig_attributes_item);
3425
+ const referencePersonalizationAttributeInputRepresentationValidationError = validate$a(untrustedConfig_attributes_item);
3482
3426
  if (referencePersonalizationAttributeInputRepresentationValidationError === null) {
3483
3427
  untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
3484
3428
  }
@@ -3719,7 +3663,7 @@ const deletePersonalizationSchemaAdapterFactory = (luvio) => {
3719
3663
  };
3720
3664
 
3721
3665
  const VERSION$4 = "5249bd66216ddaa79d57690fedf0d20b";
3722
- function validate$6(obj, path = 'PersonalizationDataMlModelRepresentation') {
3666
+ function validate$7(obj, path = 'PersonalizationDataMlModelRepresentation') {
3723
3667
  const v_error = (() => {
3724
3668
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3725
3669
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3811,7 +3755,7 @@ function equals$4(existing, incoming) {
3811
3755
 
3812
3756
  const TTL$2 = 600;
3813
3757
  const VERSION$3 = "9dbc0875b97dc0f9ec2f23b3481be0b8";
3814
- function validate$5(obj, path = 'PersonalizationDataMlModelCollectionRepresentation') {
3758
+ function validate$6(obj, path = 'PersonalizationDataMlModelCollectionRepresentation') {
3815
3759
  const v_error = (() => {
3816
3760
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3817
3761
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3824,7 +3768,7 @@ function validate$5(obj, path = 'PersonalizationDataMlModelCollectionRepresentat
3824
3768
  for (let i = 0; i < obj_personalizationDataMlModels.length; i++) {
3825
3769
  const obj_personalizationDataMlModels_item = obj_personalizationDataMlModels[i];
3826
3770
  const path_personalizationDataMlModels_item = path_personalizationDataMlModels + '[' + i + ']';
3827
- const referencepath_personalizationDataMlModels_itemValidationError = validate$6(obj_personalizationDataMlModels_item, path_personalizationDataMlModels_item);
3771
+ const referencepath_personalizationDataMlModels_itemValidationError = validate$7(obj_personalizationDataMlModels_item, path_personalizationDataMlModels_item);
3828
3772
  if (referencepath_personalizationDataMlModels_itemValidationError !== null) {
3829
3773
  let message = 'Object doesn\'t match PersonalizationDataMlModelRepresentation (at "' + path_personalizationDataMlModels_item + '")\n';
3830
3774
  message += referencepath_personalizationDataMlModels_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3869,7 +3813,7 @@ function equals$3(existing, incoming) {
3869
3813
  }
3870
3814
  const ingest$2 = function PersonalizationDataMlModelCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
3871
3815
  if (process.env.NODE_ENV !== 'production') {
3872
- const validateError = validate$5(input);
3816
+ const validateError = validate$6(input);
3873
3817
  if (validateError !== null) {
3874
3818
  throw validateError;
3875
3819
  }
@@ -4352,7 +4296,7 @@ const notifyChangeFactory = (luvio, options) => {
4352
4296
  };
4353
4297
 
4354
4298
  const VERSION$2 = "4140d8b5bf494d4e8f3ef8713b0ffd7d";
4355
- function validate$4(obj, path = 'PersonalizationRecommenderJobRepresentation') {
4299
+ function validate$5(obj, path = 'PersonalizationRecommenderJobRepresentation') {
4356
4300
  const v_error = (() => {
4357
4301
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4358
4302
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4525,7 +4469,7 @@ function equals$2(existing, incoming) {
4525
4469
 
4526
4470
  const TTL$1 = 600;
4527
4471
  const VERSION$1 = "2fab2250d4ed5adcbb1a5c19a64cd765";
4528
- function validate$3(obj, path = 'PersonalizationRecommenderJobCollectionRepresentation') {
4472
+ function validate$4(obj, path = 'PersonalizationRecommenderJobCollectionRepresentation') {
4529
4473
  const v_error = (() => {
4530
4474
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4531
4475
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4546,7 +4490,7 @@ function validate$3(obj, path = 'PersonalizationRecommenderJobCollectionRepresen
4546
4490
  for (let i = 0; i < obj_jobs.length; i++) {
4547
4491
  const obj_jobs_item = obj_jobs[i];
4548
4492
  const path_jobs_item = path_jobs + '[' + i + ']';
4549
- const referencepath_jobs_itemValidationError = validate$4(obj_jobs_item, path_jobs_item);
4493
+ const referencepath_jobs_itemValidationError = validate$5(obj_jobs_item, path_jobs_item);
4550
4494
  if (referencepath_jobs_itemValidationError !== null) {
4551
4495
  let message = 'Object doesn\'t match PersonalizationRecommenderJobRepresentation (at "' + path_jobs_item + '")\n';
4552
4496
  message += referencepath_jobs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4644,7 +4588,7 @@ function equals$1(existing, incoming) {
4644
4588
  }
4645
4589
  const ingest$1 = function PersonalizationRecommenderJobCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
4646
4590
  if (process.env.NODE_ENV !== 'production') {
4647
- const validateError = validate$3(input);
4591
+ const validateError = validate$4(input);
4648
4592
  if (validateError !== null) {
4649
4593
  throw validateError;
4650
4594
  }
@@ -4804,7 +4748,7 @@ const getTrainingHistoryAdapterFactory = (luvio) => function personalizationServ
4804
4748
  buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
4805
4749
  };
4806
4750
 
4807
- function validate$2(obj, path = 'AnchorReferenceRepresentation') {
4751
+ function validate$3(obj, path = 'AnchorReferenceRepresentation') {
4808
4752
  const v_error = (() => {
4809
4753
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4810
4754
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4823,6 +4767,32 @@ function validate$2(obj, path = 'AnchorReferenceRepresentation') {
4823
4767
  return v_error === undefined ? null : v_error;
4824
4768
  }
4825
4769
 
4770
+ function validate$2(obj, path = 'RuleGroupInputRepresentation2') {
4771
+ const v_error = (() => {
4772
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4773
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4774
+ }
4775
+ const obj_operator = obj.operator;
4776
+ const path_operator = path + '.operator';
4777
+ if (typeof obj_operator !== 'string') {
4778
+ return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
4779
+ }
4780
+ const obj_rules = obj.rules;
4781
+ const path_rules = path + '.rules';
4782
+ if (!ArrayIsArray(obj_rules)) {
4783
+ return new TypeError('Expected "array" but received "' + typeof obj_rules + '" (at "' + path_rules + '")');
4784
+ }
4785
+ for (let i = 0; i < obj_rules.length; i++) {
4786
+ const obj_rules_item = obj_rules[i];
4787
+ const path_rules_item = path_rules + '[' + i + ']';
4788
+ if (obj_rules_item === undefined) {
4789
+ return new TypeError('Expected "defined" but received "' + typeof obj_rules_item + '" (at "' + path_rules_item + '")');
4790
+ }
4791
+ }
4792
+ })();
4793
+ return v_error === undefined ? null : v_error;
4794
+ }
4795
+
4826
4796
  function validate$1(obj, path = 'RuleGroupInputRepresentation') {
4827
4797
  const v_error = (() => {
4828
4798
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -4841,8 +4811,8 @@ function validate$1(obj, path = 'RuleGroupInputRepresentation') {
4841
4811
  for (let i = 0; i < obj_rules.length; i++) {
4842
4812
  const obj_rules_item = obj_rules[i];
4843
4813
  const path_rules_item = path_rules + '[' + i + ']';
4844
- if (typeof obj_rules_item !== 'object' || ArrayIsArray(obj_rules_item) || obj_rules_item === null) {
4845
- return new TypeError('Expected "object" but received "' + typeof obj_rules_item + '" (at "' + path_rules_item + '")');
4814
+ if (obj_rules_item === undefined) {
4815
+ return new TypeError('Expected "defined" but received "' + typeof obj_rules_item + '" (at "' + path_rules_item + '")');
4846
4816
  }
4847
4817
  }
4848
4818
  })();
@@ -4916,7 +4886,7 @@ function select$1(luvio, params) {
4916
4886
  return select$2();
4917
4887
  }
4918
4888
  function keyBuilder$1(luvio, params) {
4919
- return keyPrefix + '::PersonalizationRecommenderSimulateActionRepresentation:(' + 'idOrName:' + params.urlParams.idOrName + ',' + (params.body.anchors === undefined ? undefined : ('[' + params.body.anchors.map(element => 'anchors.dmoName:' + element.dmoName + '::' + 'anchors.id:' + element.id).join(',') + ']')) + '::' + (params.body.excludeFilters === undefined ? undefined : ('[' + params.body.excludeFilters.map(element => 'excludeFilters.operator:' + element.operator + '::' + '[' + element.rules.map(element => stableJSONStringify(element)).join(',') + ']').join(',') + ']')) + '::' + (params.body.includeFilters === undefined ? undefined : ('[' + params.body.includeFilters.map(element => 'includeFilters.operator:' + element.operator + '::' + '[' + element.rules.map(element => stableJSONStringify(element)).join(',') + ']').join(',') + ']')) + '::' + (params.body.individualId === undefined ? 'individualId' : 'individualId:' + params.body.individualId) + ')';
4889
+ return keyPrefix + '::PersonalizationRecommenderSimulateActionRepresentation:(' + 'idOrName:' + params.urlParams.idOrName + ',' + (params.body.anchors === undefined ? undefined : ('[' + params.body.anchors.map(element => 'anchors.dmoName:' + element.dmoName + '::' + 'anchors.id:' + element.id).join(',') + ']')) + '::' + (params.body.excludeFilters?.operator === undefined ? 'excludeFilters.operator' : 'excludeFilters.operator:' + params.body.excludeFilters?.operator) + '::' + (params.body.excludeFilters?.rules === undefined ? 'excludeFilters.rules' : 'excludeFilters.rules:' + params.body.excludeFilters?.rules) + '::' + (params.body.includeFilters?.operator === undefined ? 'includeFilters.operator' : 'includeFilters.operator:' + params.body.includeFilters?.operator) + '::' + (params.body.includeFilters?.rules === undefined ? 'includeFilters.rules' : 'includeFilters.rules:' + params.body.includeFilters?.rules) + '::' + (params.body.individualId === undefined ? 'individualId' : 'individualId:' + params.body.individualId) + ')';
4920
4890
  }
4921
4891
  function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
4922
4892
  getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
@@ -4968,8 +4938,8 @@ const adapterName$1 = 'postPersonalizationRecommenderSimulateAction';
4968
4938
  const postPersonalizationRecommenderSimulateAction_ConfigPropertyMetadata = [
4969
4939
  generateParamConfigMetadata('idOrName', true, 0 /* UrlParameter */, 0 /* String */),
4970
4940
  generateParamConfigMetadata('anchors', false, 2 /* Body */, 4 /* Unsupported */, true),
4971
- generateParamConfigMetadata('excludeFilters', false, 2 /* Body */, 4 /* Unsupported */, true),
4972
- generateParamConfigMetadata('includeFilters', false, 2 /* Body */, 4 /* Unsupported */, true),
4941
+ generateParamConfigMetadata('excludeFilters', false, 2 /* Body */, 4 /* Unsupported */),
4942
+ generateParamConfigMetadata('includeFilters', false, 2 /* Body */, 4 /* Unsupported */),
4973
4943
  generateParamConfigMetadata('individualId', false, 2 /* Body */, 4 /* Unsupported */),
4974
4944
  ];
4975
4945
  const postPersonalizationRecommenderSimulateAction_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, postPersonalizationRecommenderSimulateAction_ConfigPropertyMetadata);
@@ -4986,7 +4956,7 @@ function typeCheckConfig$1(untrustedConfig) {
4986
4956
  const untrustedConfig_anchors_array = [];
4987
4957
  for (let i = 0, arrayLength = untrustedConfig_anchors.length; i < arrayLength; i++) {
4988
4958
  const untrustedConfig_anchors_item = untrustedConfig_anchors[i];
4989
- const referenceAnchorReferenceRepresentationValidationError = validate$2(untrustedConfig_anchors_item);
4959
+ const referenceAnchorReferenceRepresentationValidationError = validate$3(untrustedConfig_anchors_item);
4990
4960
  if (referenceAnchorReferenceRepresentationValidationError === null) {
4991
4961
  untrustedConfig_anchors_array.push(untrustedConfig_anchors_item);
4992
4962
  }
@@ -4994,28 +4964,14 @@ function typeCheckConfig$1(untrustedConfig) {
4994
4964
  config.anchors = untrustedConfig_anchors_array;
4995
4965
  }
4996
4966
  const untrustedConfig_excludeFilters = untrustedConfig.excludeFilters;
4997
- if (ArrayIsArray$1(untrustedConfig_excludeFilters)) {
4998
- const untrustedConfig_excludeFilters_array = [];
4999
- for (let i = 0, arrayLength = untrustedConfig_excludeFilters.length; i < arrayLength; i++) {
5000
- const untrustedConfig_excludeFilters_item = untrustedConfig_excludeFilters[i];
5001
- const referenceRuleGroupInputRepresentationValidationError = validate$1(untrustedConfig_excludeFilters_item);
5002
- if (referenceRuleGroupInputRepresentationValidationError === null) {
5003
- untrustedConfig_excludeFilters_array.push(untrustedConfig_excludeFilters_item);
5004
- }
5005
- }
5006
- config.excludeFilters = untrustedConfig_excludeFilters_array;
4967
+ const referenceRuleGroupInputRepresentation2ValidationError = validate$2(untrustedConfig_excludeFilters);
4968
+ if (referenceRuleGroupInputRepresentation2ValidationError === null) {
4969
+ config.excludeFilters = untrustedConfig_excludeFilters;
5007
4970
  }
5008
4971
  const untrustedConfig_includeFilters = untrustedConfig.includeFilters;
5009
- if (ArrayIsArray$1(untrustedConfig_includeFilters)) {
5010
- const untrustedConfig_includeFilters_array = [];
5011
- for (let i = 0, arrayLength = untrustedConfig_includeFilters.length; i < arrayLength; i++) {
5012
- const untrustedConfig_includeFilters_item = untrustedConfig_includeFilters[i];
5013
- const referenceRuleGroupInputRepresentationValidationError = validate$1(untrustedConfig_includeFilters_item);
5014
- if (referenceRuleGroupInputRepresentationValidationError === null) {
5015
- untrustedConfig_includeFilters_array.push(untrustedConfig_includeFilters_item);
5016
- }
5017
- }
5018
- config.includeFilters = untrustedConfig_includeFilters_array;
4972
+ const referenceRuleGroupInputRepresentationValidationError = validate$1(untrustedConfig_includeFilters);
4973
+ if (referenceRuleGroupInputRepresentationValidationError === null) {
4974
+ config.includeFilters = untrustedConfig_includeFilters;
5019
4975
  }
5020
4976
  const untrustedConfig_individualId = untrustedConfig.individualId;
5021
4977
  if (typeof untrustedConfig_individualId === 'string') {
@@ -5197,7 +5153,7 @@ function typeCheckConfig(untrustedConfig) {
5197
5153
  const untrustedConfig_decisions_array = [];
5198
5154
  for (let i = 0, arrayLength = untrustedConfig_decisions.length; i < arrayLength; i++) {
5199
5155
  const untrustedConfig_decisions_item = untrustedConfig_decisions[i];
5200
- const referencePersonalizationDecisionInputRepresentationValidationError = validate$h(untrustedConfig_decisions_item);
5156
+ const referencePersonalizationDecisionInputRepresentationValidationError = validate$i(untrustedConfig_decisions_item);
5201
5157
  if (referencePersonalizationDecisionInputRepresentationValidationError === null) {
5202
5158
  untrustedConfig_decisions_array.push(untrustedConfig_decisions_item);
5203
5159
  }
@@ -5387,4 +5343,4 @@ withDefaultLuvio((luvio) => {
5387
5343
  });
5388
5344
 
5389
5345
  export { createPersonalizationPoint, createPersonalizationSchema, deletePersonalizationPoint, deletePersonalizationSchema, getPersonalizationEsModelMapping, getPersonalizationEsModelMapping_imperative, getPersonalizationPoint, getPersonalizationPoint_imperative, getPersonalizationSchema, getPersonalizationSchemaNotifyChange, getPersonalizationSchema_imperative, getTrainingHistory, getTrainingHistory_imperative, postPersonalizationRecommenderSimulateAction, postPersonalizationRecommenderSimulateAction_imperative, updatePersonalizationPoint };
5390
- // version: 1.353.0-330d59cfcb
5346
+ // version: 1.354.0-dev1-3890a35d35