@salesforce/lds-adapters-cdp-personalization-service 1.308.0-dev1 → 1.309.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -339,6 +339,34 @@ function validate$a(obj, path = 'PersonalizationDecisionInputRepresentation') {
339
339
  return new TypeError(message);
340
340
  }
341
341
  }
342
+ if (obj.state !== undefined) {
343
+ const obj_state = obj.state;
344
+ const path_state = path + '.state';
345
+ let obj_state_union0 = null;
346
+ const obj_state_union0_error = (() => {
347
+ if (typeof obj_state !== 'string') {
348
+ return new TypeError('Expected "string" but received "' + typeof obj_state + '" (at "' + path_state + '")');
349
+ }
350
+ })();
351
+ if (obj_state_union0_error != null) {
352
+ obj_state_union0 = obj_state_union0_error.message;
353
+ }
354
+ let obj_state_union1 = null;
355
+ const obj_state_union1_error = (() => {
356
+ if (obj_state !== null) {
357
+ return new TypeError('Expected "null" but received "' + typeof obj_state + '" (at "' + path_state + '")');
358
+ }
359
+ })();
360
+ if (obj_state_union1_error != null) {
361
+ obj_state_union1 = obj_state_union1_error.message;
362
+ }
363
+ if (obj_state_union0 && obj_state_union1) {
364
+ let message = 'Object doesn\'t match union (at "' + path_state + '")';
365
+ message += '\n' + obj_state_union0.split('\n').map((line) => '\t' + line).join('\n');
366
+ message += '\n' + obj_state_union1.split('\n').map((line) => '\t' + line).join('\n');
367
+ return new TypeError(message);
368
+ }
369
+ }
342
370
  })();
343
371
  return v_error === undefined ? null : v_error;
344
372
  }
@@ -666,7 +694,7 @@ function validate$7(obj, path = 'SubjectRepresentation') {
666
694
  return v_error === undefined ? null : v_error;
667
695
  }
668
696
 
669
- const VERSION$5 = "53a3f4b1f9467dccd40ae739c6bb39cf";
697
+ const VERSION$5 = "f2fdd6cf007fef11bef799a503acc08d";
670
698
  function validate$6(obj, path = 'FilterRepresentation') {
671
699
  const v_error = (() => {
672
700
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -828,6 +856,37 @@ function validate$6(obj, path = 'FilterRepresentation') {
828
856
  return new TypeError(message);
829
857
  }
830
858
  }
859
+ if (obj.metric !== undefined) {
860
+ const obj_metric = obj.metric;
861
+ const path_metric = path + '.metric';
862
+ let obj_metric_union0 = null;
863
+ const obj_metric_union0_error = (() => {
864
+ const referencepath_metricValidationError = validate$7(obj_metric, path_metric);
865
+ if (referencepath_metricValidationError !== null) {
866
+ let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_metric + '")\n';
867
+ message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
868
+ return new TypeError(message);
869
+ }
870
+ })();
871
+ if (obj_metric_union0_error != null) {
872
+ obj_metric_union0 = obj_metric_union0_error.message;
873
+ }
874
+ let obj_metric_union1 = null;
875
+ const obj_metric_union1_error = (() => {
876
+ if (obj_metric !== null) {
877
+ return new TypeError('Expected "null" but received "' + typeof obj_metric + '" (at "' + path_metric + '")');
878
+ }
879
+ })();
880
+ if (obj_metric_union1_error != null) {
881
+ obj_metric_union1 = obj_metric_union1_error.message;
882
+ }
883
+ if (obj_metric_union0 && obj_metric_union1) {
884
+ let message = 'Object doesn\'t match union (at "' + path_metric + '")';
885
+ message += '\n' + obj_metric_union0.split('\n').map((line) => '\t' + line).join('\n');
886
+ message += '\n' + obj_metric_union1.split('\n').map((line) => '\t' + line).join('\n');
887
+ return new TypeError(message);
888
+ }
889
+ }
831
890
  if (obj.operator !== undefined) {
832
891
  const obj_operator = obj.operator;
833
892
  const path_operator = path + '.operator';
@@ -1203,7 +1262,7 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
1203
1262
  }
1204
1263
  }
1205
1264
 
1206
- const VERSION$3 = "4c6e23e63e764c028a88f2f6c2f7c6a3";
1265
+ const VERSION$3 = "265767af783b296f5f902d6ed447b168";
1207
1266
  function validate$4(obj, path = 'PersonalizationDecisionRepresentation') {
1208
1267
  const v_error = (() => {
1209
1268
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1484,6 +1543,32 @@ function validate$4(obj, path = 'PersonalizationDecisionRepresentation') {
1484
1543
  message += '\n' + obj_personalizerName_union1.split('\n').map((line) => '\t' + line).join('\n');
1485
1544
  return new TypeError(message);
1486
1545
  }
1546
+ const obj_state = obj.state;
1547
+ const path_state = path + '.state';
1548
+ let obj_state_union0 = null;
1549
+ const obj_state_union0_error = (() => {
1550
+ if (typeof obj_state !== 'string') {
1551
+ return new TypeError('Expected "string" but received "' + typeof obj_state + '" (at "' + path_state + '")');
1552
+ }
1553
+ })();
1554
+ if (obj_state_union0_error != null) {
1555
+ obj_state_union0 = obj_state_union0_error.message;
1556
+ }
1557
+ let obj_state_union1 = null;
1558
+ const obj_state_union1_error = (() => {
1559
+ if (obj_state !== null) {
1560
+ return new TypeError('Expected "null" but received "' + typeof obj_state + '" (at "' + path_state + '")');
1561
+ }
1562
+ })();
1563
+ if (obj_state_union1_error != null) {
1564
+ obj_state_union1 = obj_state_union1_error.message;
1565
+ }
1566
+ if (obj_state_union0 && obj_state_union1) {
1567
+ let message = 'Object doesn\'t match union (at "' + path_state + '")';
1568
+ message += '\n' + obj_state_union0.split('\n').map((line) => '\t' + line).join('\n');
1569
+ message += '\n' + obj_state_union1.split('\n').map((line) => '\t' + line).join('\n');
1570
+ return new TypeError(message);
1571
+ }
1487
1572
  const obj_url = obj.url;
1488
1573
  const path_url = path + '.url';
1489
1574
  let obj_url_union0 = null;
@@ -1586,6 +1671,10 @@ const select$8 = function PersonalizationDecisionRepresentationSelect() {
1586
1671
  name: 'personalizerName',
1587
1672
  kind: 'Scalar'
1588
1673
  },
1674
+ {
1675
+ name: 'state',
1676
+ kind: 'Scalar'
1677
+ },
1589
1678
  {
1590
1679
  name: 'url',
1591
1680
  kind: 'Scalar'
@@ -1659,6 +1748,11 @@ function equals$3(existing, incoming) {
1659
1748
  if (!(existing_personalizerName === incoming_personalizerName)) {
1660
1749
  return false;
1661
1750
  }
1751
+ const existing_state = existing.state;
1752
+ const incoming_state = incoming.state;
1753
+ if (!(existing_state === incoming_state)) {
1754
+ return false;
1755
+ }
1662
1756
  const existing_url = existing.url;
1663
1757
  const incoming_url = incoming.url;
1664
1758
  if (!(existing_url === incoming_url)) {
@@ -1692,7 +1786,7 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
1692
1786
  }
1693
1787
 
1694
1788
  const TTL$1 = 600;
1695
- const VERSION$2 = "da1bfa46416530ff1aeab78ba84646bb";
1789
+ const VERSION$2 = "d7f13f752588c8d16e1327ffbbef8d4e";
1696
1790
  function validate$3(obj, path = 'PersonalizationPointRepresentation') {
1697
1791
  const v_error = (() => {
1698
1792
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1944,6 +2038,32 @@ function validate$3(obj, path = 'PersonalizationPointRepresentation') {
1944
2038
  message += '\n' + obj_lastModifiedDate_union1.split('\n').map((line) => '\t' + line).join('\n');
1945
2039
  return new TypeError(message);
1946
2040
  }
2041
+ const obj_maxItemsCount = obj.maxItemsCount;
2042
+ const path_maxItemsCount = path + '.maxItemsCount';
2043
+ let obj_maxItemsCount_union0 = null;
2044
+ const obj_maxItemsCount_union0_error = (() => {
2045
+ if (typeof obj_maxItemsCount !== 'number' || (typeof obj_maxItemsCount === 'number' && Math.floor(obj_maxItemsCount) !== obj_maxItemsCount)) {
2046
+ return new TypeError('Expected "integer" but received "' + typeof obj_maxItemsCount + '" (at "' + path_maxItemsCount + '")');
2047
+ }
2048
+ })();
2049
+ if (obj_maxItemsCount_union0_error != null) {
2050
+ obj_maxItemsCount_union0 = obj_maxItemsCount_union0_error.message;
2051
+ }
2052
+ let obj_maxItemsCount_union1 = null;
2053
+ const obj_maxItemsCount_union1_error = (() => {
2054
+ if (obj_maxItemsCount !== null) {
2055
+ return new TypeError('Expected "null" but received "' + typeof obj_maxItemsCount + '" (at "' + path_maxItemsCount + '")');
2056
+ }
2057
+ })();
2058
+ if (obj_maxItemsCount_union1_error != null) {
2059
+ obj_maxItemsCount_union1 = obj_maxItemsCount_union1_error.message;
2060
+ }
2061
+ if (obj_maxItemsCount_union0 && obj_maxItemsCount_union1) {
2062
+ let message = 'Object doesn\'t match union (at "' + path_maxItemsCount + '")';
2063
+ message += '\n' + obj_maxItemsCount_union0.split('\n').map((line) => '\t' + line).join('\n');
2064
+ message += '\n' + obj_maxItemsCount_union1.split('\n').map((line) => '\t' + line).join('\n');
2065
+ return new TypeError(message);
2066
+ }
1947
2067
  const obj_name = obj.name;
1948
2068
  const path_name = path + '.name';
1949
2069
  let obj_name_union0 = null;
@@ -1996,6 +2116,32 @@ function validate$3(obj, path = 'PersonalizationPointRepresentation') {
1996
2116
  message += '\n' + obj_profileDataGraphName_union1.split('\n').map((line) => '\t' + line).join('\n');
1997
2117
  return new TypeError(message);
1998
2118
  }
2119
+ const obj_rootPersonalizationPointId = obj.rootPersonalizationPointId;
2120
+ const path_rootPersonalizationPointId = path + '.rootPersonalizationPointId';
2121
+ let obj_rootPersonalizationPointId_union0 = null;
2122
+ const obj_rootPersonalizationPointId_union0_error = (() => {
2123
+ if (typeof obj_rootPersonalizationPointId !== 'string') {
2124
+ return new TypeError('Expected "string" but received "' + typeof obj_rootPersonalizationPointId + '" (at "' + path_rootPersonalizationPointId + '")');
2125
+ }
2126
+ })();
2127
+ if (obj_rootPersonalizationPointId_union0_error != null) {
2128
+ obj_rootPersonalizationPointId_union0 = obj_rootPersonalizationPointId_union0_error.message;
2129
+ }
2130
+ let obj_rootPersonalizationPointId_union1 = null;
2131
+ const obj_rootPersonalizationPointId_union1_error = (() => {
2132
+ if (obj_rootPersonalizationPointId !== null) {
2133
+ return new TypeError('Expected "null" but received "' + typeof obj_rootPersonalizationPointId + '" (at "' + path_rootPersonalizationPointId + '")');
2134
+ }
2135
+ })();
2136
+ if (obj_rootPersonalizationPointId_union1_error != null) {
2137
+ obj_rootPersonalizationPointId_union1 = obj_rootPersonalizationPointId_union1_error.message;
2138
+ }
2139
+ if (obj_rootPersonalizationPointId_union0 && obj_rootPersonalizationPointId_union1) {
2140
+ let message = 'Object doesn\'t match union (at "' + path_rootPersonalizationPointId + '")';
2141
+ message += '\n' + obj_rootPersonalizationPointId_union0.split('\n').map((line) => '\t' + line).join('\n');
2142
+ message += '\n' + obj_rootPersonalizationPointId_union1.split('\n').map((line) => '\t' + line).join('\n');
2143
+ return new TypeError(message);
2144
+ }
1999
2145
  const obj_schemaEnum = obj.schemaEnum;
2000
2146
  const path_schemaEnum = path + '.schemaEnum';
2001
2147
  let obj_schemaEnum_union0 = null;
@@ -2164,6 +2310,10 @@ const select$7 = function PersonalizationPointRepresentationSelect() {
2164
2310
  name: 'lastModifiedDate',
2165
2311
  kind: 'Scalar'
2166
2312
  },
2313
+ {
2314
+ name: 'maxItemsCount',
2315
+ kind: 'Scalar'
2316
+ },
2167
2317
  {
2168
2318
  name: 'name',
2169
2319
  kind: 'Scalar'
@@ -2172,6 +2322,10 @@ const select$7 = function PersonalizationPointRepresentationSelect() {
2172
2322
  name: 'profileDataGraphName',
2173
2323
  kind: 'Scalar'
2174
2324
  },
2325
+ {
2326
+ name: 'rootPersonalizationPointId',
2327
+ kind: 'Scalar'
2328
+ },
2175
2329
  {
2176
2330
  name: 'schemaEnum',
2177
2331
  kind: 'Scalar'
@@ -2261,6 +2415,11 @@ function equals$2(existing, incoming) {
2261
2415
  if (!(existing_lastModifiedDate === incoming_lastModifiedDate)) {
2262
2416
  return false;
2263
2417
  }
2418
+ const existing_maxItemsCount = existing.maxItemsCount;
2419
+ const incoming_maxItemsCount = incoming.maxItemsCount;
2420
+ if (!(existing_maxItemsCount === incoming_maxItemsCount)) {
2421
+ return false;
2422
+ }
2264
2423
  const existing_name = existing.name;
2265
2424
  const incoming_name = incoming.name;
2266
2425
  if (!(existing_name === incoming_name)) {
@@ -2271,6 +2430,11 @@ function equals$2(existing, incoming) {
2271
2430
  if (!(existing_profileDataGraphName === incoming_profileDataGraphName)) {
2272
2431
  return false;
2273
2432
  }
2433
+ const existing_rootPersonalizationPointId = existing.rootPersonalizationPointId;
2434
+ const incoming_rootPersonalizationPointId = incoming.rootPersonalizationPointId;
2435
+ if (!(existing_rootPersonalizationPointId === incoming_rootPersonalizationPointId)) {
2436
+ return false;
2437
+ }
2274
2438
  const existing_schemaEnum = existing.schemaEnum;
2275
2439
  const incoming_schemaEnum = incoming.schemaEnum;
2276
2440
  if (!(existing_schemaEnum === incoming_schemaEnum)) {
@@ -2363,6 +2527,8 @@ const createPersonalizationPoint_ConfigPropertyMetadata = [
2363
2527
  generateParamConfigMetadata('schemaEnum', false, 2 /* Body */, 4 /* Unsupported */),
2364
2528
  generateParamConfigMetadata('schemaName', false, 2 /* Body */, 4 /* Unsupported */),
2365
2529
  generateParamConfigMetadata('source', true, 2 /* Body */, 0 /* String */),
2530
+ generateParamConfigMetadata('rootPersonalizationPointId', false, 2 /* Body */, 4 /* Unsupported */),
2531
+ generateParamConfigMetadata('maxItemsCount', false, 2 /* Body */, 4 /* Unsupported */),
2366
2532
  ];
2367
2533
  const createPersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createPersonalizationPoint_ConfigPropertyMetadata);
2368
2534
  const createResourceParams$6 = /*#__PURE__*/ createResourceParams$7(createPersonalizationPoint_ConfigPropertyMetadata);
@@ -2437,6 +2603,20 @@ function typeCheckConfig$6(untrustedConfig) {
2437
2603
  if (untrustedConfig_schemaName === null) {
2438
2604
  config.schemaName = untrustedConfig_schemaName;
2439
2605
  }
2606
+ const untrustedConfig_rootPersonalizationPointId = untrustedConfig.rootPersonalizationPointId;
2607
+ if (typeof untrustedConfig_rootPersonalizationPointId === 'string') {
2608
+ config.rootPersonalizationPointId = untrustedConfig_rootPersonalizationPointId;
2609
+ }
2610
+ if (untrustedConfig_rootPersonalizationPointId === null) {
2611
+ config.rootPersonalizationPointId = untrustedConfig_rootPersonalizationPointId;
2612
+ }
2613
+ const untrustedConfig_maxItemsCount = untrustedConfig.maxItemsCount;
2614
+ if (typeof untrustedConfig_maxItemsCount === 'number' && Math.floor(untrustedConfig_maxItemsCount) === untrustedConfig_maxItemsCount) {
2615
+ config.maxItemsCount = untrustedConfig_maxItemsCount;
2616
+ }
2617
+ if (untrustedConfig_maxItemsCount === null) {
2618
+ config.maxItemsCount = untrustedConfig_maxItemsCount;
2619
+ }
2440
2620
  return config;
2441
2621
  }
2442
2622
  function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
@@ -2755,6 +2935,8 @@ const updatePersonalizationPoint_ConfigPropertyMetadata = [
2755
2935
  generateParamConfigMetadata('schemaEnum', false, 2 /* Body */, 4 /* Unsupported */),
2756
2936
  generateParamConfigMetadata('schemaName', false, 2 /* Body */, 4 /* Unsupported */),
2757
2937
  generateParamConfigMetadata('source', true, 2 /* Body */, 0 /* String */),
2938
+ generateParamConfigMetadata('rootPersonalizationPointId', false, 2 /* Body */, 4 /* Unsupported */),
2939
+ generateParamConfigMetadata('maxItemsCount', false, 2 /* Body */, 4 /* Unsupported */),
2758
2940
  ];
2759
2941
  const updatePersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, updatePersonalizationPoint_ConfigPropertyMetadata);
2760
2942
  const createResourceParams$3 = /*#__PURE__*/ createResourceParams$7(updatePersonalizationPoint_ConfigPropertyMetadata);
@@ -2829,6 +3011,20 @@ function typeCheckConfig$3(untrustedConfig) {
2829
3011
  if (untrustedConfig_schemaName === null) {
2830
3012
  config.schemaName = untrustedConfig_schemaName;
2831
3013
  }
3014
+ const untrustedConfig_rootPersonalizationPointId = untrustedConfig.rootPersonalizationPointId;
3015
+ if (typeof untrustedConfig_rootPersonalizationPointId === 'string') {
3016
+ config.rootPersonalizationPointId = untrustedConfig_rootPersonalizationPointId;
3017
+ }
3018
+ if (untrustedConfig_rootPersonalizationPointId === null) {
3019
+ config.rootPersonalizationPointId = untrustedConfig_rootPersonalizationPointId;
3020
+ }
3021
+ const untrustedConfig_maxItemsCount = untrustedConfig.maxItemsCount;
3022
+ if (typeof untrustedConfig_maxItemsCount === 'number' && Math.floor(untrustedConfig_maxItemsCount) === untrustedConfig_maxItemsCount) {
3023
+ config.maxItemsCount = untrustedConfig_maxItemsCount;
3024
+ }
3025
+ if (untrustedConfig_maxItemsCount === null) {
3026
+ config.maxItemsCount = untrustedConfig_maxItemsCount;
3027
+ }
2832
3028
  return config;
2833
3029
  }
2834
3030
  function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
@@ -17,6 +17,8 @@ export interface CreatePersonalizationPointConfig {
17
17
  schemaEnum?: string | null;
18
18
  schemaName?: string | null;
19
19
  source: string;
20
+ rootPersonalizationPointId?: string | null;
21
+ maxItemsCount?: number | null;
20
22
  }
21
23
  export declare const createResourceParams: (config: CreatePersonalizationPointConfig) => resources_postPersonalizationPersonalizationPoints_ResourceRequestConfig;
22
24
  export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreatePersonalizationPointConfig>): adapter$45$utils_Untrusted<CreatePersonalizationPointConfig>;
@@ -18,6 +18,8 @@ export interface UpdatePersonalizationPointConfig {
18
18
  schemaEnum?: string | null;
19
19
  schemaName?: string | null;
20
20
  source: string;
21
+ rootPersonalizationPointId?: string | null;
22
+ maxItemsCount?: number | null;
21
23
  }
22
24
  export declare const createResourceParams: (config: UpdatePersonalizationPointConfig) => resources_putPersonalizationPersonalizationPointsByIdOrName_ResourceRequestConfig;
23
25
  export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<UpdatePersonalizationPointConfig>): adapter$45$utils_Untrusted<UpdatePersonalizationPointConfig>;
@@ -13,6 +13,8 @@ export interface ResourceRequestConfig {
13
13
  schemaEnum?: string | null;
14
14
  schemaName?: string | null;
15
15
  source: string;
16
+ rootPersonalizationPointId?: string | null;
17
+ maxItemsCount?: number | null;
16
18
  };
17
19
  }
18
20
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
@@ -16,6 +16,8 @@ export interface ResourceRequestConfig {
16
16
  schemaEnum?: string | null;
17
17
  schemaName?: string | null;
18
18
  source: string;
19
+ rootPersonalizationPointId?: string | null;
20
+ maxItemsCount?: number | null;
19
21
  };
20
22
  }
21
23
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
@@ -1,7 +1,7 @@
1
1
  import { FiltersWrapRepresentation as FiltersWrapRepresentation_FiltersWrapRepresentation } from './FiltersWrapRepresentation';
2
2
  import { SubjectRepresentation as SubjectRepresentation_SubjectRepresentation } from './SubjectRepresentation';
3
3
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
4
- export declare const VERSION = "53a3f4b1f9467dccd40ae739c6bb39cf";
4
+ export declare const VERSION = "f2fdd6cf007fef11bef799a503acc08d";
5
5
  export declare function validate(obj: any, path?: string): TypeError | null;
6
6
  export declare const RepresentationType: string;
7
7
  export declare function normalize(input: FilterRepresentation, existing: FilterRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FilterRepresentationNormalized;
@@ -26,6 +26,8 @@ export interface FilterRepresentationNormalized {
26
26
  filters?: Array<$64$luvio_engine_StoreLink | null>;
27
27
  /** First Bound Value */
28
28
  firstBoundValue?: number | null;
29
+ /** Metric */
30
+ metric?: SubjectRepresentation_SubjectRepresentation | null;
29
31
  /** Operator */
30
32
  operator?: string | null;
31
33
  /** Path */
@@ -55,6 +57,7 @@ export interface FilterRepresentation {
55
57
  filter?: FiltersWrapRepresentation_FiltersWrapRepresentation | null;
56
58
  filters?: Array<FilterRepresentation | null>;
57
59
  firstBoundValue?: number | null;
60
+ metric?: SubjectRepresentation_SubjectRepresentation | null;
58
61
  operator?: string | null;
59
62
  path?: Array<Array<SubjectRepresentation_SubjectRepresentation>>;
60
63
  ruleTimeZone?: string | null;
@@ -1,6 +1,6 @@
1
1
  import { PersonalizationAttributeValueInputRepresentation as PersonalizationAttributeValueInputRepresentation_PersonalizationAttributeValueInputRepresentation } from './PersonalizationAttributeValueInputRepresentation';
2
2
  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';
3
- export declare const VERSION = "35bf03b76839fd09dd6f23bcc3856656";
3
+ export declare const VERSION = "b0627e93f032c8190558f82f8289a16a";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
6
6
  export declare function normalize(input: PersonalizationDecisionInputRepresentation, existing: PersonalizationDecisionInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PersonalizationDecisionInputRepresentationNormalized;
@@ -27,6 +27,8 @@ export interface PersonalizationDecisionInputRepresentationNormalized {
27
27
  name: string | null;
28
28
  /** The API name of the Personalizer associated with a Personalization Decision */
29
29
  personalizerName?: string | null;
30
+ /** Decision lifecycle state */
31
+ state?: string | null;
30
32
  }
31
33
  /**
32
34
  * Personalization Decision Input Representation
@@ -41,4 +43,5 @@ export interface PersonalizationDecisionInputRepresentation {
41
43
  label: string | null;
42
44
  name: string | null;
43
45
  personalizerName?: string | null;
46
+ state?: string | null;
44
47
  }
@@ -1,7 +1,7 @@
1
1
  import { PersonalizationAttributeValueRepresentation as PersonalizationAttributeValueRepresentation_PersonalizationAttributeValueRepresentation } from './PersonalizationAttributeValueRepresentation';
2
2
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
3
  import { CriteriaRepresentation as CriteriaRepresentation_CriteriaRepresentation } from './CriteriaRepresentation';
4
- export declare const VERSION = "4c6e23e63e764c028a88f2f6c2f7c6a3";
4
+ export declare const VERSION = "265767af783b296f5f902d6ed447b168";
5
5
  export declare function validate(obj: any, path?: string): TypeError | null;
6
6
  export declare const RepresentationType: string;
7
7
  export declare function normalize(input: PersonalizationDecisionRepresentation, existing: PersonalizationDecisionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PersonalizationDecisionRepresentationNormalized;
@@ -47,6 +47,8 @@ export interface PersonalizationDecisionRepresentationNormalized {
47
47
  name: string | null;
48
48
  /** The API name of the Personalizer associated with the Personalization Decision */
49
49
  personalizerName: string | null;
50
+ /** Decision lifecycle state */
51
+ state: string | null;
50
52
  /** Url */
51
53
  url: string | null;
52
54
  }
@@ -68,5 +70,6 @@ export interface PersonalizationDecisionRepresentation {
68
70
  lastModifiedDate: string | null;
69
71
  name: string | null;
70
72
  personalizerName: string | null;
73
+ state: string | null;
71
74
  url: string | null;
72
75
  }
@@ -1,6 +1,6 @@
1
1
  import { PersonalizationDecisionInputRepresentation as PersonalizationDecisionInputRepresentation_PersonalizationDecisionInputRepresentation } from './PersonalizationDecisionInputRepresentation';
2
2
  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';
3
- export declare const VERSION = "268c61fabced5fcebf3b9703f9212f65";
3
+ export declare const VERSION = "c32102ff230ac1aea18f9e6e7a739f9e";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
6
6
  export declare function normalize(input: PersonalizationPointInputRepresentation, existing: PersonalizationPointInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PersonalizationPointInputRepresentationNormalized;
@@ -25,10 +25,14 @@ export interface PersonalizationPointInputRepresentationNormalized {
25
25
  description?: string | null;
26
26
  /** Personalization Base label */
27
27
  label: string | null;
28
+ /** The max number of content items to be returned */
29
+ maxItemsCount?: number | null;
28
30
  /** Personalization Point API name */
29
31
  name: string | null;
30
32
  /** The API name of the Profile Data Graph associated with the Personalization Point */
31
33
  profileDataGraphName: string | null;
34
+ /** The ID of the root Personalization Point */
35
+ rootPersonalizationPointId?: string | null;
32
36
  /** A schema enum associated with the Personalization Point if it has a standard schema */
33
37
  schemaEnum?: string | null;
34
38
  /** An API name of a Schema associated with the Personalization Point if it has a custom schema */
@@ -48,8 +52,10 @@ export interface PersonalizationPointInputRepresentation {
48
52
  decisions: Array<PersonalizationDecisionInputRepresentation_PersonalizationDecisionInputRepresentation>;
49
53
  description?: string | null;
50
54
  label: string | null;
55
+ maxItemsCount?: number | null;
51
56
  name: string | null;
52
57
  profileDataGraphName: string | null;
58
+ rootPersonalizationPointId?: string | null;
53
59
  schemaEnum?: string | null;
54
60
  schemaName?: string | null;
55
61
  source: string;
@@ -1,7 +1,7 @@
1
1
  import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
2
  import { PersonalizationDecisionRepresentation as PersonalizationDecisionRepresentation_PersonalizationDecisionRepresentation } from './PersonalizationDecisionRepresentation';
3
3
  export declare const TTL = 600;
4
- export declare const VERSION = "da1bfa46416530ff1aeab78ba84646bb";
4
+ export declare const VERSION = "d7f13f752588c8d16e1327ffbbef8d4e";
5
5
  export declare function validate(obj: any, path?: string): TypeError | null;
6
6
  export declare const RepresentationType: string;
7
7
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -54,10 +54,14 @@ export interface PersonalizationPointRepresentationNormalized {
54
54
  lastModifiedById: string | null;
55
55
  /** Last modified date */
56
56
  lastModifiedDate: string | null;
57
+ /** The max number of content items to be returned */
58
+ maxItemsCount: number | null;
57
59
  /** Personalization base output API name */
58
60
  name: string | null;
59
61
  /** The API name of the Profile Data Graph associated with the Personalization Point */
60
62
  profileDataGraphName: string | null;
63
+ /** The ID of the root Personalization Point */
64
+ rootPersonalizationPointId: string | null;
61
65
  /** A schema enum associated with the Personalization Point if it has a standard schema */
62
66
  schemaEnum: string | null;
63
67
  /** An API name of a Schema associated with the Personalization Point if it has a custom schema */
@@ -86,8 +90,10 @@ export interface PersonalizationPointRepresentation {
86
90
  label: string | null;
87
91
  lastModifiedById: string | null;
88
92
  lastModifiedDate: string | null;
93
+ maxItemsCount: number | null;
89
94
  name: string | null;
90
95
  profileDataGraphName: string | null;
96
+ rootPersonalizationPointId: string | null;
91
97
  schemaEnum: string | null;
92
98
  schemaName: string | null;
93
99
  source: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-cdp-personalization-service",
3
- "version": "1.308.0-dev1",
3
+ "version": "1.309.0",
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",
@@ -41,10 +41,10 @@
41
41
  "test:unit:debug": "node --inspect-brk ../../node_modules/.bin/jest --runInBand"
42
42
  },
43
43
  "dependencies": {
44
- "@salesforce/lds-bindings": "^1.308.0-dev1"
44
+ "@salesforce/lds-bindings": "^1.309.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@salesforce/lds-compiler-plugins": "^1.308.0-dev1"
47
+ "@salesforce/lds-compiler-plugins": "^1.309.0"
48
48
  },
49
49
  "nx": {
50
50
  "targets": {
package/sfdc/index.js CHANGED
@@ -349,6 +349,34 @@ function validate$a(obj, path = 'PersonalizationDecisionInputRepresentation') {
349
349
  return new TypeError(message);
350
350
  }
351
351
  }
352
+ if (obj.state !== undefined) {
353
+ const obj_state = obj.state;
354
+ const path_state = path + '.state';
355
+ let obj_state_union0 = null;
356
+ const obj_state_union0_error = (() => {
357
+ if (typeof obj_state !== 'string') {
358
+ return new TypeError('Expected "string" but received "' + typeof obj_state + '" (at "' + path_state + '")');
359
+ }
360
+ })();
361
+ if (obj_state_union0_error != null) {
362
+ obj_state_union0 = obj_state_union0_error.message;
363
+ }
364
+ let obj_state_union1 = null;
365
+ const obj_state_union1_error = (() => {
366
+ if (obj_state !== null) {
367
+ return new TypeError('Expected "null" but received "' + typeof obj_state + '" (at "' + path_state + '")');
368
+ }
369
+ })();
370
+ if (obj_state_union1_error != null) {
371
+ obj_state_union1 = obj_state_union1_error.message;
372
+ }
373
+ if (obj_state_union0 && obj_state_union1) {
374
+ let message = 'Object doesn\'t match union (at "' + path_state + '")';
375
+ message += '\n' + obj_state_union0.split('\n').map((line) => '\t' + line).join('\n');
376
+ message += '\n' + obj_state_union1.split('\n').map((line) => '\t' + line).join('\n');
377
+ return new TypeError(message);
378
+ }
379
+ }
352
380
  })();
353
381
  return v_error === undefined ? null : v_error;
354
382
  }
@@ -676,7 +704,7 @@ function validate$7(obj, path = 'SubjectRepresentation') {
676
704
  return v_error === undefined ? null : v_error;
677
705
  }
678
706
 
679
- const VERSION$5 = "53a3f4b1f9467dccd40ae739c6bb39cf";
707
+ const VERSION$5 = "f2fdd6cf007fef11bef799a503acc08d";
680
708
  function validate$6(obj, path = 'FilterRepresentation') {
681
709
  const v_error = (() => {
682
710
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -838,6 +866,37 @@ function validate$6(obj, path = 'FilterRepresentation') {
838
866
  return new TypeError(message);
839
867
  }
840
868
  }
869
+ if (obj.metric !== undefined) {
870
+ const obj_metric = obj.metric;
871
+ const path_metric = path + '.metric';
872
+ let obj_metric_union0 = null;
873
+ const obj_metric_union0_error = (() => {
874
+ const referencepath_metricValidationError = validate$7(obj_metric, path_metric);
875
+ if (referencepath_metricValidationError !== null) {
876
+ let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_metric + '")\n';
877
+ message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
878
+ return new TypeError(message);
879
+ }
880
+ })();
881
+ if (obj_metric_union0_error != null) {
882
+ obj_metric_union0 = obj_metric_union0_error.message;
883
+ }
884
+ let obj_metric_union1 = null;
885
+ const obj_metric_union1_error = (() => {
886
+ if (obj_metric !== null) {
887
+ return new TypeError('Expected "null" but received "' + typeof obj_metric + '" (at "' + path_metric + '")');
888
+ }
889
+ })();
890
+ if (obj_metric_union1_error != null) {
891
+ obj_metric_union1 = obj_metric_union1_error.message;
892
+ }
893
+ if (obj_metric_union0 && obj_metric_union1) {
894
+ let message = 'Object doesn\'t match union (at "' + path_metric + '")';
895
+ message += '\n' + obj_metric_union0.split('\n').map((line) => '\t' + line).join('\n');
896
+ message += '\n' + obj_metric_union1.split('\n').map((line) => '\t' + line).join('\n');
897
+ return new TypeError(message);
898
+ }
899
+ }
841
900
  if (obj.operator !== undefined) {
842
901
  const obj_operator = obj.operator;
843
902
  const path_operator = path + '.operator';
@@ -1213,7 +1272,7 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
1213
1272
  }
1214
1273
  }
1215
1274
 
1216
- const VERSION$3 = "4c6e23e63e764c028a88f2f6c2f7c6a3";
1275
+ const VERSION$3 = "265767af783b296f5f902d6ed447b168";
1217
1276
  function validate$4(obj, path = 'PersonalizationDecisionRepresentation') {
1218
1277
  const v_error = (() => {
1219
1278
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1494,6 +1553,32 @@ function validate$4(obj, path = 'PersonalizationDecisionRepresentation') {
1494
1553
  message += '\n' + obj_personalizerName_union1.split('\n').map((line) => '\t' + line).join('\n');
1495
1554
  return new TypeError(message);
1496
1555
  }
1556
+ const obj_state = obj.state;
1557
+ const path_state = path + '.state';
1558
+ let obj_state_union0 = null;
1559
+ const obj_state_union0_error = (() => {
1560
+ if (typeof obj_state !== 'string') {
1561
+ return new TypeError('Expected "string" but received "' + typeof obj_state + '" (at "' + path_state + '")');
1562
+ }
1563
+ })();
1564
+ if (obj_state_union0_error != null) {
1565
+ obj_state_union0 = obj_state_union0_error.message;
1566
+ }
1567
+ let obj_state_union1 = null;
1568
+ const obj_state_union1_error = (() => {
1569
+ if (obj_state !== null) {
1570
+ return new TypeError('Expected "null" but received "' + typeof obj_state + '" (at "' + path_state + '")');
1571
+ }
1572
+ })();
1573
+ if (obj_state_union1_error != null) {
1574
+ obj_state_union1 = obj_state_union1_error.message;
1575
+ }
1576
+ if (obj_state_union0 && obj_state_union1) {
1577
+ let message = 'Object doesn\'t match union (at "' + path_state + '")';
1578
+ message += '\n' + obj_state_union0.split('\n').map((line) => '\t' + line).join('\n');
1579
+ message += '\n' + obj_state_union1.split('\n').map((line) => '\t' + line).join('\n');
1580
+ return new TypeError(message);
1581
+ }
1497
1582
  const obj_url = obj.url;
1498
1583
  const path_url = path + '.url';
1499
1584
  let obj_url_union0 = null;
@@ -1596,6 +1681,10 @@ const select$8 = function PersonalizationDecisionRepresentationSelect() {
1596
1681
  name: 'personalizerName',
1597
1682
  kind: 'Scalar'
1598
1683
  },
1684
+ {
1685
+ name: 'state',
1686
+ kind: 'Scalar'
1687
+ },
1599
1688
  {
1600
1689
  name: 'url',
1601
1690
  kind: 'Scalar'
@@ -1669,6 +1758,11 @@ function equals$3(existing, incoming) {
1669
1758
  if (!(existing_personalizerName === incoming_personalizerName)) {
1670
1759
  return false;
1671
1760
  }
1761
+ const existing_state = existing.state;
1762
+ const incoming_state = incoming.state;
1763
+ if (!(existing_state === incoming_state)) {
1764
+ return false;
1765
+ }
1672
1766
  const existing_url = existing.url;
1673
1767
  const incoming_url = incoming.url;
1674
1768
  if (!(existing_url === incoming_url)) {
@@ -1702,7 +1796,7 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
1702
1796
  }
1703
1797
 
1704
1798
  const TTL$1 = 600;
1705
- const VERSION$2 = "da1bfa46416530ff1aeab78ba84646bb";
1799
+ const VERSION$2 = "d7f13f752588c8d16e1327ffbbef8d4e";
1706
1800
  function validate$3(obj, path = 'PersonalizationPointRepresentation') {
1707
1801
  const v_error = (() => {
1708
1802
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1954,6 +2048,32 @@ function validate$3(obj, path = 'PersonalizationPointRepresentation') {
1954
2048
  message += '\n' + obj_lastModifiedDate_union1.split('\n').map((line) => '\t' + line).join('\n');
1955
2049
  return new TypeError(message);
1956
2050
  }
2051
+ const obj_maxItemsCount = obj.maxItemsCount;
2052
+ const path_maxItemsCount = path + '.maxItemsCount';
2053
+ let obj_maxItemsCount_union0 = null;
2054
+ const obj_maxItemsCount_union0_error = (() => {
2055
+ if (typeof obj_maxItemsCount !== 'number' || (typeof obj_maxItemsCount === 'number' && Math.floor(obj_maxItemsCount) !== obj_maxItemsCount)) {
2056
+ return new TypeError('Expected "integer" but received "' + typeof obj_maxItemsCount + '" (at "' + path_maxItemsCount + '")');
2057
+ }
2058
+ })();
2059
+ if (obj_maxItemsCount_union0_error != null) {
2060
+ obj_maxItemsCount_union0 = obj_maxItemsCount_union0_error.message;
2061
+ }
2062
+ let obj_maxItemsCount_union1 = null;
2063
+ const obj_maxItemsCount_union1_error = (() => {
2064
+ if (obj_maxItemsCount !== null) {
2065
+ return new TypeError('Expected "null" but received "' + typeof obj_maxItemsCount + '" (at "' + path_maxItemsCount + '")');
2066
+ }
2067
+ })();
2068
+ if (obj_maxItemsCount_union1_error != null) {
2069
+ obj_maxItemsCount_union1 = obj_maxItemsCount_union1_error.message;
2070
+ }
2071
+ if (obj_maxItemsCount_union0 && obj_maxItemsCount_union1) {
2072
+ let message = 'Object doesn\'t match union (at "' + path_maxItemsCount + '")';
2073
+ message += '\n' + obj_maxItemsCount_union0.split('\n').map((line) => '\t' + line).join('\n');
2074
+ message += '\n' + obj_maxItemsCount_union1.split('\n').map((line) => '\t' + line).join('\n');
2075
+ return new TypeError(message);
2076
+ }
1957
2077
  const obj_name = obj.name;
1958
2078
  const path_name = path + '.name';
1959
2079
  let obj_name_union0 = null;
@@ -2006,6 +2126,32 @@ function validate$3(obj, path = 'PersonalizationPointRepresentation') {
2006
2126
  message += '\n' + obj_profileDataGraphName_union1.split('\n').map((line) => '\t' + line).join('\n');
2007
2127
  return new TypeError(message);
2008
2128
  }
2129
+ const obj_rootPersonalizationPointId = obj.rootPersonalizationPointId;
2130
+ const path_rootPersonalizationPointId = path + '.rootPersonalizationPointId';
2131
+ let obj_rootPersonalizationPointId_union0 = null;
2132
+ const obj_rootPersonalizationPointId_union0_error = (() => {
2133
+ if (typeof obj_rootPersonalizationPointId !== 'string') {
2134
+ return new TypeError('Expected "string" but received "' + typeof obj_rootPersonalizationPointId + '" (at "' + path_rootPersonalizationPointId + '")');
2135
+ }
2136
+ })();
2137
+ if (obj_rootPersonalizationPointId_union0_error != null) {
2138
+ obj_rootPersonalizationPointId_union0 = obj_rootPersonalizationPointId_union0_error.message;
2139
+ }
2140
+ let obj_rootPersonalizationPointId_union1 = null;
2141
+ const obj_rootPersonalizationPointId_union1_error = (() => {
2142
+ if (obj_rootPersonalizationPointId !== null) {
2143
+ return new TypeError('Expected "null" but received "' + typeof obj_rootPersonalizationPointId + '" (at "' + path_rootPersonalizationPointId + '")');
2144
+ }
2145
+ })();
2146
+ if (obj_rootPersonalizationPointId_union1_error != null) {
2147
+ obj_rootPersonalizationPointId_union1 = obj_rootPersonalizationPointId_union1_error.message;
2148
+ }
2149
+ if (obj_rootPersonalizationPointId_union0 && obj_rootPersonalizationPointId_union1) {
2150
+ let message = 'Object doesn\'t match union (at "' + path_rootPersonalizationPointId + '")';
2151
+ message += '\n' + obj_rootPersonalizationPointId_union0.split('\n').map((line) => '\t' + line).join('\n');
2152
+ message += '\n' + obj_rootPersonalizationPointId_union1.split('\n').map((line) => '\t' + line).join('\n');
2153
+ return new TypeError(message);
2154
+ }
2009
2155
  const obj_schemaEnum = obj.schemaEnum;
2010
2156
  const path_schemaEnum = path + '.schemaEnum';
2011
2157
  let obj_schemaEnum_union0 = null;
@@ -2174,6 +2320,10 @@ const select$7 = function PersonalizationPointRepresentationSelect() {
2174
2320
  name: 'lastModifiedDate',
2175
2321
  kind: 'Scalar'
2176
2322
  },
2323
+ {
2324
+ name: 'maxItemsCount',
2325
+ kind: 'Scalar'
2326
+ },
2177
2327
  {
2178
2328
  name: 'name',
2179
2329
  kind: 'Scalar'
@@ -2182,6 +2332,10 @@ const select$7 = function PersonalizationPointRepresentationSelect() {
2182
2332
  name: 'profileDataGraphName',
2183
2333
  kind: 'Scalar'
2184
2334
  },
2335
+ {
2336
+ name: 'rootPersonalizationPointId',
2337
+ kind: 'Scalar'
2338
+ },
2185
2339
  {
2186
2340
  name: 'schemaEnum',
2187
2341
  kind: 'Scalar'
@@ -2271,6 +2425,11 @@ function equals$2(existing, incoming) {
2271
2425
  if (!(existing_lastModifiedDate === incoming_lastModifiedDate)) {
2272
2426
  return false;
2273
2427
  }
2428
+ const existing_maxItemsCount = existing.maxItemsCount;
2429
+ const incoming_maxItemsCount = incoming.maxItemsCount;
2430
+ if (!(existing_maxItemsCount === incoming_maxItemsCount)) {
2431
+ return false;
2432
+ }
2274
2433
  const existing_name = existing.name;
2275
2434
  const incoming_name = incoming.name;
2276
2435
  if (!(existing_name === incoming_name)) {
@@ -2281,6 +2440,11 @@ function equals$2(existing, incoming) {
2281
2440
  if (!(existing_profileDataGraphName === incoming_profileDataGraphName)) {
2282
2441
  return false;
2283
2442
  }
2443
+ const existing_rootPersonalizationPointId = existing.rootPersonalizationPointId;
2444
+ const incoming_rootPersonalizationPointId = incoming.rootPersonalizationPointId;
2445
+ if (!(existing_rootPersonalizationPointId === incoming_rootPersonalizationPointId)) {
2446
+ return false;
2447
+ }
2284
2448
  const existing_schemaEnum = existing.schemaEnum;
2285
2449
  const incoming_schemaEnum = incoming.schemaEnum;
2286
2450
  if (!(existing_schemaEnum === incoming_schemaEnum)) {
@@ -2373,6 +2537,8 @@ const createPersonalizationPoint_ConfigPropertyMetadata = [
2373
2537
  generateParamConfigMetadata('schemaEnum', false, 2 /* Body */, 4 /* Unsupported */),
2374
2538
  generateParamConfigMetadata('schemaName', false, 2 /* Body */, 4 /* Unsupported */),
2375
2539
  generateParamConfigMetadata('source', true, 2 /* Body */, 0 /* String */),
2540
+ generateParamConfigMetadata('rootPersonalizationPointId', false, 2 /* Body */, 4 /* Unsupported */),
2541
+ generateParamConfigMetadata('maxItemsCount', false, 2 /* Body */, 4 /* Unsupported */),
2376
2542
  ];
2377
2543
  const createPersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createPersonalizationPoint_ConfigPropertyMetadata);
2378
2544
  const createResourceParams$6 = /*#__PURE__*/ createResourceParams$7(createPersonalizationPoint_ConfigPropertyMetadata);
@@ -2447,6 +2613,20 @@ function typeCheckConfig$6(untrustedConfig) {
2447
2613
  if (untrustedConfig_schemaName === null) {
2448
2614
  config.schemaName = untrustedConfig_schemaName;
2449
2615
  }
2616
+ const untrustedConfig_rootPersonalizationPointId = untrustedConfig.rootPersonalizationPointId;
2617
+ if (typeof untrustedConfig_rootPersonalizationPointId === 'string') {
2618
+ config.rootPersonalizationPointId = untrustedConfig_rootPersonalizationPointId;
2619
+ }
2620
+ if (untrustedConfig_rootPersonalizationPointId === null) {
2621
+ config.rootPersonalizationPointId = untrustedConfig_rootPersonalizationPointId;
2622
+ }
2623
+ const untrustedConfig_maxItemsCount = untrustedConfig.maxItemsCount;
2624
+ if (typeof untrustedConfig_maxItemsCount === 'number' && Math.floor(untrustedConfig_maxItemsCount) === untrustedConfig_maxItemsCount) {
2625
+ config.maxItemsCount = untrustedConfig_maxItemsCount;
2626
+ }
2627
+ if (untrustedConfig_maxItemsCount === null) {
2628
+ config.maxItemsCount = untrustedConfig_maxItemsCount;
2629
+ }
2450
2630
  return config;
2451
2631
  }
2452
2632
  function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
@@ -3702,6 +3882,8 @@ const updatePersonalizationPoint_ConfigPropertyMetadata = [
3702
3882
  generateParamConfigMetadata('schemaEnum', false, 2 /* Body */, 4 /* Unsupported */),
3703
3883
  generateParamConfigMetadata('schemaName', false, 2 /* Body */, 4 /* Unsupported */),
3704
3884
  generateParamConfigMetadata('source', true, 2 /* Body */, 0 /* String */),
3885
+ generateParamConfigMetadata('rootPersonalizationPointId', false, 2 /* Body */, 4 /* Unsupported */),
3886
+ generateParamConfigMetadata('maxItemsCount', false, 2 /* Body */, 4 /* Unsupported */),
3705
3887
  ];
3706
3888
  const updatePersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updatePersonalizationPoint_ConfigPropertyMetadata);
3707
3889
  const createResourceParams = /*#__PURE__*/ createResourceParams$7(updatePersonalizationPoint_ConfigPropertyMetadata);
@@ -3776,6 +3958,20 @@ function typeCheckConfig(untrustedConfig) {
3776
3958
  if (untrustedConfig_schemaName === null) {
3777
3959
  config.schemaName = untrustedConfig_schemaName;
3778
3960
  }
3961
+ const untrustedConfig_rootPersonalizationPointId = untrustedConfig.rootPersonalizationPointId;
3962
+ if (typeof untrustedConfig_rootPersonalizationPointId === 'string') {
3963
+ config.rootPersonalizationPointId = untrustedConfig_rootPersonalizationPointId;
3964
+ }
3965
+ if (untrustedConfig_rootPersonalizationPointId === null) {
3966
+ config.rootPersonalizationPointId = untrustedConfig_rootPersonalizationPointId;
3967
+ }
3968
+ const untrustedConfig_maxItemsCount = untrustedConfig.maxItemsCount;
3969
+ if (typeof untrustedConfig_maxItemsCount === 'number' && Math.floor(untrustedConfig_maxItemsCount) === untrustedConfig_maxItemsCount) {
3970
+ config.maxItemsCount = untrustedConfig_maxItemsCount;
3971
+ }
3972
+ if (untrustedConfig_maxItemsCount === null) {
3973
+ config.maxItemsCount = untrustedConfig_maxItemsCount;
3974
+ }
3779
3975
  return config;
3780
3976
  }
3781
3977
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -3881,4 +4077,4 @@ withDefaultLuvio((luvio) => {
3881
4077
  });
3882
4078
 
3883
4079
  export { createPersonalizationPoint, createPersonalizationSchema, deletePersonalizationPoint, deletePersonalizationSchema, getPersonalizationPoint, getPersonalizationPoint_imperative, getPersonalizationSchema, getPersonalizationSchemaNotifyChange, getPersonalizationSchema_imperative, updatePersonalizationPoint };
3884
- // version: 1.308.0-dev1-36d38ba652
4080
+ // version: 1.309.0-3ac0e022f5
package/src/raml/api.raml CHANGED
@@ -217,6 +217,10 @@ types:
217
217
  required: false
218
218
  description: First Bound Value
219
219
  type: number | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
220
+ metric:
221
+ required: false
222
+ description: Metric
223
+ type: SubjectRepresentation | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
220
224
  operator:
221
225
  required: false
222
226
  description: Operator
@@ -383,6 +387,13 @@ types:
383
387
  description: The API name of the Personalizer associated with a Personalization
384
388
  Decision
385
389
  type: string | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
390
+ state:
391
+ required: false # https://salesforce-internal.slack.com/archives/C5WMAFS02/p1718348083566229
392
+ description: Decision lifecycle state
393
+ type: string | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
394
+ enum:
395
+ - Live
396
+ - Draft
386
397
  PersonalizationDecisionRepresentation: #Hand-rolled issue #24 in (https://salesforce.quip.com/NxVhAkxL6RTW)
387
398
  description: Personalization Decision Output Representation
388
399
  type: object
@@ -427,6 +438,12 @@ types:
427
438
  description: The API name of the Personalizer associated with the Personalization
428
439
  Decision
429
440
  type: string | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
441
+ state:
442
+ description: Decision lifecycle state
443
+ type: string | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
444
+ enum:
445
+ - Live
446
+ - Draft
430
447
  PersonalizationPointInputRepresentation: #Hand-rolled issue #24 in (https://salesforce.quip.com/NxVhAkxL6RTW)
431
448
  description: Personalization Point Input Representation
432
449
  type: object
@@ -480,6 +497,14 @@ types:
480
497
  - BlockBuilder
481
498
  - ExperienceBuilder
482
499
  - PersonalizationApp
500
+ rootPersonalizationPointId:
501
+ required: false # https://salesforce-internal.slack.com/archives/C5WMAFS02/p1718348083566229
502
+ description: The ID of the root Personalization Point
503
+ type: string | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
504
+ maxItemsCount:
505
+ required: false # https://salesforce-internal.slack.com/archives/C5WMAFS02/p1718348083566229
506
+ description: The max number of content items to be returned
507
+ type: integer | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
483
508
  PersonalizationPointRepresentation: #Hand-rolled issue #24 in (https://salesforce.quip.com/NxVhAkxL6RTW)
484
509
  description: Personalization Point Output Representation
485
510
  type: object
@@ -557,6 +582,12 @@ types:
557
582
  - Deleting
558
583
  - EditError
559
584
  - Processing
585
+ rootPersonalizationPointId:
586
+ description: The ID of the root Personalization Point
587
+ type: string | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
588
+ maxItemsCount:
589
+ description: The max number of content items to be returned
590
+ type: integer | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
560
591
  PersonalizationSchemaInputRepresentation: #Hand-rolled issue #24 in (https://salesforce.quip.com/NxVhAkxL6RTW)
561
592
  description: Personalization Schema Input Representation
562
593
  type: object