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

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
  }
@@ -608,31 +636,33 @@ function validate$7(obj, path = 'SubjectRepresentation') {
608
636
  return new TypeError(message);
609
637
  }
610
638
  }
611
- const obj_objectApiName = obj.objectApiName;
612
- const path_objectApiName = path + '.objectApiName';
613
- let obj_objectApiName_union0 = null;
614
- const obj_objectApiName_union0_error = (() => {
615
- if (typeof obj_objectApiName !== 'string') {
616
- return new TypeError('Expected "string" but received "' + typeof obj_objectApiName + '" (at "' + path_objectApiName + '")');
639
+ if (obj.objectApiName !== undefined) {
640
+ const obj_objectApiName = obj.objectApiName;
641
+ const path_objectApiName = path + '.objectApiName';
642
+ let obj_objectApiName_union0 = null;
643
+ const obj_objectApiName_union0_error = (() => {
644
+ if (typeof obj_objectApiName !== 'string') {
645
+ return new TypeError('Expected "string" but received "' + typeof obj_objectApiName + '" (at "' + path_objectApiName + '")');
646
+ }
647
+ })();
648
+ if (obj_objectApiName_union0_error != null) {
649
+ obj_objectApiName_union0 = obj_objectApiName_union0_error.message;
617
650
  }
618
- })();
619
- if (obj_objectApiName_union0_error != null) {
620
- obj_objectApiName_union0 = obj_objectApiName_union0_error.message;
621
- }
622
- let obj_objectApiName_union1 = null;
623
- const obj_objectApiName_union1_error = (() => {
624
- if (obj_objectApiName !== null) {
625
- return new TypeError('Expected "null" but received "' + typeof obj_objectApiName + '" (at "' + path_objectApiName + '")');
651
+ let obj_objectApiName_union1 = null;
652
+ const obj_objectApiName_union1_error = (() => {
653
+ if (obj_objectApiName !== null) {
654
+ return new TypeError('Expected "null" but received "' + typeof obj_objectApiName + '" (at "' + path_objectApiName + '")');
655
+ }
656
+ })();
657
+ if (obj_objectApiName_union1_error != null) {
658
+ obj_objectApiName_union1 = obj_objectApiName_union1_error.message;
659
+ }
660
+ if (obj_objectApiName_union0 && obj_objectApiName_union1) {
661
+ let message = 'Object doesn\'t match union (at "' + path_objectApiName + '")';
662
+ message += '\n' + obj_objectApiName_union0.split('\n').map((line) => '\t' + line).join('\n');
663
+ message += '\n' + obj_objectApiName_union1.split('\n').map((line) => '\t' + line).join('\n');
664
+ return new TypeError(message);
626
665
  }
627
- })();
628
- if (obj_objectApiName_union1_error != null) {
629
- obj_objectApiName_union1 = obj_objectApiName_union1_error.message;
630
- }
631
- if (obj_objectApiName_union0 && obj_objectApiName_union1) {
632
- let message = 'Object doesn\'t match union (at "' + path_objectApiName + '")';
633
- message += '\n' + obj_objectApiName_union0.split('\n').map((line) => '\t' + line).join('\n');
634
- message += '\n' + obj_objectApiName_union1.split('\n').map((line) => '\t' + line).join('\n');
635
- return new TypeError(message);
636
666
  }
637
667
  if (obj.objectLabel !== undefined) {
638
668
  const obj_objectLabel = obj.objectLabel;
@@ -666,7 +696,7 @@ function validate$7(obj, path = 'SubjectRepresentation') {
666
696
  return v_error === undefined ? null : v_error;
667
697
  }
668
698
 
669
- const VERSION$5 = "53a3f4b1f9467dccd40ae739c6bb39cf";
699
+ const VERSION$5 = "f2fdd6cf007fef11bef799a503acc08d";
670
700
  function validate$6(obj, path = 'FilterRepresentation') {
671
701
  const v_error = (() => {
672
702
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -828,6 +858,37 @@ function validate$6(obj, path = 'FilterRepresentation') {
828
858
  return new TypeError(message);
829
859
  }
830
860
  }
861
+ if (obj.metric !== undefined) {
862
+ const obj_metric = obj.metric;
863
+ const path_metric = path + '.metric';
864
+ let obj_metric_union0 = null;
865
+ const obj_metric_union0_error = (() => {
866
+ const referencepath_metricValidationError = validate$7(obj_metric, path_metric);
867
+ if (referencepath_metricValidationError !== null) {
868
+ let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_metric + '")\n';
869
+ message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
870
+ return new TypeError(message);
871
+ }
872
+ })();
873
+ if (obj_metric_union0_error != null) {
874
+ obj_metric_union0 = obj_metric_union0_error.message;
875
+ }
876
+ let obj_metric_union1 = null;
877
+ const obj_metric_union1_error = (() => {
878
+ if (obj_metric !== null) {
879
+ return new TypeError('Expected "null" but received "' + typeof obj_metric + '" (at "' + path_metric + '")');
880
+ }
881
+ })();
882
+ if (obj_metric_union1_error != null) {
883
+ obj_metric_union1 = obj_metric_union1_error.message;
884
+ }
885
+ if (obj_metric_union0 && obj_metric_union1) {
886
+ let message = 'Object doesn\'t match union (at "' + path_metric + '")';
887
+ message += '\n' + obj_metric_union0.split('\n').map((line) => '\t' + line).join('\n');
888
+ message += '\n' + obj_metric_union1.split('\n').map((line) => '\t' + line).join('\n');
889
+ return new TypeError(message);
890
+ }
891
+ }
831
892
  if (obj.operator !== undefined) {
832
893
  const obj_operator = obj.operator;
833
894
  const path_operator = path + '.operator';
@@ -1203,7 +1264,7 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
1203
1264
  }
1204
1265
  }
1205
1266
 
1206
- const VERSION$3 = "4c6e23e63e764c028a88f2f6c2f7c6a3";
1267
+ const VERSION$3 = "265767af783b296f5f902d6ed447b168";
1207
1268
  function validate$4(obj, path = 'PersonalizationDecisionRepresentation') {
1208
1269
  const v_error = (() => {
1209
1270
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1484,6 +1545,32 @@ function validate$4(obj, path = 'PersonalizationDecisionRepresentation') {
1484
1545
  message += '\n' + obj_personalizerName_union1.split('\n').map((line) => '\t' + line).join('\n');
1485
1546
  return new TypeError(message);
1486
1547
  }
1548
+ const obj_state = obj.state;
1549
+ const path_state = path + '.state';
1550
+ let obj_state_union0 = null;
1551
+ const obj_state_union0_error = (() => {
1552
+ if (typeof obj_state !== 'string') {
1553
+ return new TypeError('Expected "string" but received "' + typeof obj_state + '" (at "' + path_state + '")');
1554
+ }
1555
+ })();
1556
+ if (obj_state_union0_error != null) {
1557
+ obj_state_union0 = obj_state_union0_error.message;
1558
+ }
1559
+ let obj_state_union1 = null;
1560
+ const obj_state_union1_error = (() => {
1561
+ if (obj_state !== null) {
1562
+ return new TypeError('Expected "null" but received "' + typeof obj_state + '" (at "' + path_state + '")');
1563
+ }
1564
+ })();
1565
+ if (obj_state_union1_error != null) {
1566
+ obj_state_union1 = obj_state_union1_error.message;
1567
+ }
1568
+ if (obj_state_union0 && obj_state_union1) {
1569
+ let message = 'Object doesn\'t match union (at "' + path_state + '")';
1570
+ message += '\n' + obj_state_union0.split('\n').map((line) => '\t' + line).join('\n');
1571
+ message += '\n' + obj_state_union1.split('\n').map((line) => '\t' + line).join('\n');
1572
+ return new TypeError(message);
1573
+ }
1487
1574
  const obj_url = obj.url;
1488
1575
  const path_url = path + '.url';
1489
1576
  let obj_url_union0 = null;
@@ -1586,6 +1673,10 @@ const select$8 = function PersonalizationDecisionRepresentationSelect() {
1586
1673
  name: 'personalizerName',
1587
1674
  kind: 'Scalar'
1588
1675
  },
1676
+ {
1677
+ name: 'state',
1678
+ kind: 'Scalar'
1679
+ },
1589
1680
  {
1590
1681
  name: 'url',
1591
1682
  kind: 'Scalar'
@@ -1659,6 +1750,11 @@ function equals$3(existing, incoming) {
1659
1750
  if (!(existing_personalizerName === incoming_personalizerName)) {
1660
1751
  return false;
1661
1752
  }
1753
+ const existing_state = existing.state;
1754
+ const incoming_state = incoming.state;
1755
+ if (!(existing_state === incoming_state)) {
1756
+ return false;
1757
+ }
1662
1758
  const existing_url = existing.url;
1663
1759
  const incoming_url = incoming.url;
1664
1760
  if (!(existing_url === incoming_url)) {
@@ -1692,7 +1788,7 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
1692
1788
  }
1693
1789
 
1694
1790
  const TTL$1 = 600;
1695
- const VERSION$2 = "da1bfa46416530ff1aeab78ba84646bb";
1791
+ const VERSION$2 = "d7f13f752588c8d16e1327ffbbef8d4e";
1696
1792
  function validate$3(obj, path = 'PersonalizationPointRepresentation') {
1697
1793
  const v_error = (() => {
1698
1794
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1944,6 +2040,32 @@ function validate$3(obj, path = 'PersonalizationPointRepresentation') {
1944
2040
  message += '\n' + obj_lastModifiedDate_union1.split('\n').map((line) => '\t' + line).join('\n');
1945
2041
  return new TypeError(message);
1946
2042
  }
2043
+ const obj_maxItemsCount = obj.maxItemsCount;
2044
+ const path_maxItemsCount = path + '.maxItemsCount';
2045
+ let obj_maxItemsCount_union0 = null;
2046
+ const obj_maxItemsCount_union0_error = (() => {
2047
+ if (typeof obj_maxItemsCount !== 'number' || (typeof obj_maxItemsCount === 'number' && Math.floor(obj_maxItemsCount) !== obj_maxItemsCount)) {
2048
+ return new TypeError('Expected "integer" but received "' + typeof obj_maxItemsCount + '" (at "' + path_maxItemsCount + '")');
2049
+ }
2050
+ })();
2051
+ if (obj_maxItemsCount_union0_error != null) {
2052
+ obj_maxItemsCount_union0 = obj_maxItemsCount_union0_error.message;
2053
+ }
2054
+ let obj_maxItemsCount_union1 = null;
2055
+ const obj_maxItemsCount_union1_error = (() => {
2056
+ if (obj_maxItemsCount !== null) {
2057
+ return new TypeError('Expected "null" but received "' + typeof obj_maxItemsCount + '" (at "' + path_maxItemsCount + '")');
2058
+ }
2059
+ })();
2060
+ if (obj_maxItemsCount_union1_error != null) {
2061
+ obj_maxItemsCount_union1 = obj_maxItemsCount_union1_error.message;
2062
+ }
2063
+ if (obj_maxItemsCount_union0 && obj_maxItemsCount_union1) {
2064
+ let message = 'Object doesn\'t match union (at "' + path_maxItemsCount + '")';
2065
+ message += '\n' + obj_maxItemsCount_union0.split('\n').map((line) => '\t' + line).join('\n');
2066
+ message += '\n' + obj_maxItemsCount_union1.split('\n').map((line) => '\t' + line).join('\n');
2067
+ return new TypeError(message);
2068
+ }
1947
2069
  const obj_name = obj.name;
1948
2070
  const path_name = path + '.name';
1949
2071
  let obj_name_union0 = null;
@@ -1996,6 +2118,32 @@ function validate$3(obj, path = 'PersonalizationPointRepresentation') {
1996
2118
  message += '\n' + obj_profileDataGraphName_union1.split('\n').map((line) => '\t' + line).join('\n');
1997
2119
  return new TypeError(message);
1998
2120
  }
2121
+ const obj_rootPersonalizationPointId = obj.rootPersonalizationPointId;
2122
+ const path_rootPersonalizationPointId = path + '.rootPersonalizationPointId';
2123
+ let obj_rootPersonalizationPointId_union0 = null;
2124
+ const obj_rootPersonalizationPointId_union0_error = (() => {
2125
+ if (typeof obj_rootPersonalizationPointId !== 'string') {
2126
+ return new TypeError('Expected "string" but received "' + typeof obj_rootPersonalizationPointId + '" (at "' + path_rootPersonalizationPointId + '")');
2127
+ }
2128
+ })();
2129
+ if (obj_rootPersonalizationPointId_union0_error != null) {
2130
+ obj_rootPersonalizationPointId_union0 = obj_rootPersonalizationPointId_union0_error.message;
2131
+ }
2132
+ let obj_rootPersonalizationPointId_union1 = null;
2133
+ const obj_rootPersonalizationPointId_union1_error = (() => {
2134
+ if (obj_rootPersonalizationPointId !== null) {
2135
+ return new TypeError('Expected "null" but received "' + typeof obj_rootPersonalizationPointId + '" (at "' + path_rootPersonalizationPointId + '")');
2136
+ }
2137
+ })();
2138
+ if (obj_rootPersonalizationPointId_union1_error != null) {
2139
+ obj_rootPersonalizationPointId_union1 = obj_rootPersonalizationPointId_union1_error.message;
2140
+ }
2141
+ if (obj_rootPersonalizationPointId_union0 && obj_rootPersonalizationPointId_union1) {
2142
+ let message = 'Object doesn\'t match union (at "' + path_rootPersonalizationPointId + '")';
2143
+ message += '\n' + obj_rootPersonalizationPointId_union0.split('\n').map((line) => '\t' + line).join('\n');
2144
+ message += '\n' + obj_rootPersonalizationPointId_union1.split('\n').map((line) => '\t' + line).join('\n');
2145
+ return new TypeError(message);
2146
+ }
1999
2147
  const obj_schemaEnum = obj.schemaEnum;
2000
2148
  const path_schemaEnum = path + '.schemaEnum';
2001
2149
  let obj_schemaEnum_union0 = null;
@@ -2164,6 +2312,10 @@ const select$7 = function PersonalizationPointRepresentationSelect() {
2164
2312
  name: 'lastModifiedDate',
2165
2313
  kind: 'Scalar'
2166
2314
  },
2315
+ {
2316
+ name: 'maxItemsCount',
2317
+ kind: 'Scalar'
2318
+ },
2167
2319
  {
2168
2320
  name: 'name',
2169
2321
  kind: 'Scalar'
@@ -2172,6 +2324,10 @@ const select$7 = function PersonalizationPointRepresentationSelect() {
2172
2324
  name: 'profileDataGraphName',
2173
2325
  kind: 'Scalar'
2174
2326
  },
2327
+ {
2328
+ name: 'rootPersonalizationPointId',
2329
+ kind: 'Scalar'
2330
+ },
2175
2331
  {
2176
2332
  name: 'schemaEnum',
2177
2333
  kind: 'Scalar'
@@ -2261,6 +2417,11 @@ function equals$2(existing, incoming) {
2261
2417
  if (!(existing_lastModifiedDate === incoming_lastModifiedDate)) {
2262
2418
  return false;
2263
2419
  }
2420
+ const existing_maxItemsCount = existing.maxItemsCount;
2421
+ const incoming_maxItemsCount = incoming.maxItemsCount;
2422
+ if (!(existing_maxItemsCount === incoming_maxItemsCount)) {
2423
+ return false;
2424
+ }
2264
2425
  const existing_name = existing.name;
2265
2426
  const incoming_name = incoming.name;
2266
2427
  if (!(existing_name === incoming_name)) {
@@ -2271,6 +2432,11 @@ function equals$2(existing, incoming) {
2271
2432
  if (!(existing_profileDataGraphName === incoming_profileDataGraphName)) {
2272
2433
  return false;
2273
2434
  }
2435
+ const existing_rootPersonalizationPointId = existing.rootPersonalizationPointId;
2436
+ const incoming_rootPersonalizationPointId = incoming.rootPersonalizationPointId;
2437
+ if (!(existing_rootPersonalizationPointId === incoming_rootPersonalizationPointId)) {
2438
+ return false;
2439
+ }
2274
2440
  const existing_schemaEnum = existing.schemaEnum;
2275
2441
  const incoming_schemaEnum = incoming.schemaEnum;
2276
2442
  if (!(existing_schemaEnum === incoming_schemaEnum)) {
@@ -2363,6 +2529,8 @@ const createPersonalizationPoint_ConfigPropertyMetadata = [
2363
2529
  generateParamConfigMetadata('schemaEnum', false, 2 /* Body */, 4 /* Unsupported */),
2364
2530
  generateParamConfigMetadata('schemaName', false, 2 /* Body */, 4 /* Unsupported */),
2365
2531
  generateParamConfigMetadata('source', true, 2 /* Body */, 0 /* String */),
2532
+ generateParamConfigMetadata('rootPersonalizationPointId', false, 2 /* Body */, 4 /* Unsupported */),
2533
+ generateParamConfigMetadata('maxItemsCount', false, 2 /* Body */, 4 /* Unsupported */),
2366
2534
  ];
2367
2535
  const createPersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createPersonalizationPoint_ConfigPropertyMetadata);
2368
2536
  const createResourceParams$6 = /*#__PURE__*/ createResourceParams$7(createPersonalizationPoint_ConfigPropertyMetadata);
@@ -2437,6 +2605,20 @@ function typeCheckConfig$6(untrustedConfig) {
2437
2605
  if (untrustedConfig_schemaName === null) {
2438
2606
  config.schemaName = untrustedConfig_schemaName;
2439
2607
  }
2608
+ const untrustedConfig_rootPersonalizationPointId = untrustedConfig.rootPersonalizationPointId;
2609
+ if (typeof untrustedConfig_rootPersonalizationPointId === 'string') {
2610
+ config.rootPersonalizationPointId = untrustedConfig_rootPersonalizationPointId;
2611
+ }
2612
+ if (untrustedConfig_rootPersonalizationPointId === null) {
2613
+ config.rootPersonalizationPointId = untrustedConfig_rootPersonalizationPointId;
2614
+ }
2615
+ const untrustedConfig_maxItemsCount = untrustedConfig.maxItemsCount;
2616
+ if (typeof untrustedConfig_maxItemsCount === 'number' && Math.floor(untrustedConfig_maxItemsCount) === untrustedConfig_maxItemsCount) {
2617
+ config.maxItemsCount = untrustedConfig_maxItemsCount;
2618
+ }
2619
+ if (untrustedConfig_maxItemsCount === null) {
2620
+ config.maxItemsCount = untrustedConfig_maxItemsCount;
2621
+ }
2440
2622
  return config;
2441
2623
  }
2442
2624
  function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
@@ -2755,6 +2937,8 @@ const updatePersonalizationPoint_ConfigPropertyMetadata = [
2755
2937
  generateParamConfigMetadata('schemaEnum', false, 2 /* Body */, 4 /* Unsupported */),
2756
2938
  generateParamConfigMetadata('schemaName', false, 2 /* Body */, 4 /* Unsupported */),
2757
2939
  generateParamConfigMetadata('source', true, 2 /* Body */, 0 /* String */),
2940
+ generateParamConfigMetadata('rootPersonalizationPointId', false, 2 /* Body */, 4 /* Unsupported */),
2941
+ generateParamConfigMetadata('maxItemsCount', false, 2 /* Body */, 4 /* Unsupported */),
2758
2942
  ];
2759
2943
  const updatePersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, updatePersonalizationPoint_ConfigPropertyMetadata);
2760
2944
  const createResourceParams$3 = /*#__PURE__*/ createResourceParams$7(updatePersonalizationPoint_ConfigPropertyMetadata);
@@ -2829,6 +3013,20 @@ function typeCheckConfig$3(untrustedConfig) {
2829
3013
  if (untrustedConfig_schemaName === null) {
2830
3014
  config.schemaName = untrustedConfig_schemaName;
2831
3015
  }
3016
+ const untrustedConfig_rootPersonalizationPointId = untrustedConfig.rootPersonalizationPointId;
3017
+ if (typeof untrustedConfig_rootPersonalizationPointId === 'string') {
3018
+ config.rootPersonalizationPointId = untrustedConfig_rootPersonalizationPointId;
3019
+ }
3020
+ if (untrustedConfig_rootPersonalizationPointId === null) {
3021
+ config.rootPersonalizationPointId = untrustedConfig_rootPersonalizationPointId;
3022
+ }
3023
+ const untrustedConfig_maxItemsCount = untrustedConfig.maxItemsCount;
3024
+ if (typeof untrustedConfig_maxItemsCount === 'number' && Math.floor(untrustedConfig_maxItemsCount) === untrustedConfig_maxItemsCount) {
3025
+ config.maxItemsCount = untrustedConfig_maxItemsCount;
3026
+ }
3027
+ if (untrustedConfig_maxItemsCount === null) {
3028
+ config.maxItemsCount = untrustedConfig_maxItemsCount;
3029
+ }
2832
3030
  return config;
2833
3031
  }
2834
3032
  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;
@@ -1,5 +1,5 @@
1
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 = "09b8e6a2fea1ae7a150190a36737c1b1";
2
+ export declare const VERSION = "14f440701e808f62b64b186a574eb931";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
5
5
  export declare function normalize(input: SubjectRepresentation, existing: SubjectRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SubjectRepresentationNormalized;
@@ -19,7 +19,7 @@ export interface SubjectRepresentationNormalized {
19
19
  /** Field Label */
20
20
  fieldLabel?: string | null;
21
21
  /** Object API Name */
22
- objectApiName: string | null;
22
+ objectApiName?: string | null;
23
23
  /** Object Label */
24
24
  objectLabel?: string | null;
25
25
  }
@@ -32,6 +32,6 @@ export interface SubjectRepresentationNormalized {
32
32
  export interface SubjectRepresentation {
33
33
  fieldApiName: string | null;
34
34
  fieldLabel?: string | null;
35
- objectApiName: string | null;
35
+ objectApiName?: string | null;
36
36
  objectLabel?: string | null;
37
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-cdp-personalization-service",
3
- "version": "1.308.0",
3
+ "version": "1.309.0-dev9",
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"
44
+ "@salesforce/lds-bindings": "^1.309.0-dev9"
45
45
  },
46
46
  "devDependencies": {
47
- "@salesforce/lds-compiler-plugins": "^1.308.0"
47
+ "@salesforce/lds-compiler-plugins": "^1.309.0-dev9"
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
  }
@@ -618,31 +646,33 @@ function validate$7(obj, path = 'SubjectRepresentation') {
618
646
  return new TypeError(message);
619
647
  }
620
648
  }
621
- const obj_objectApiName = obj.objectApiName;
622
- const path_objectApiName = path + '.objectApiName';
623
- let obj_objectApiName_union0 = null;
624
- const obj_objectApiName_union0_error = (() => {
625
- if (typeof obj_objectApiName !== 'string') {
626
- return new TypeError('Expected "string" but received "' + typeof obj_objectApiName + '" (at "' + path_objectApiName + '")');
649
+ if (obj.objectApiName !== undefined) {
650
+ const obj_objectApiName = obj.objectApiName;
651
+ const path_objectApiName = path + '.objectApiName';
652
+ let obj_objectApiName_union0 = null;
653
+ const obj_objectApiName_union0_error = (() => {
654
+ if (typeof obj_objectApiName !== 'string') {
655
+ return new TypeError('Expected "string" but received "' + typeof obj_objectApiName + '" (at "' + path_objectApiName + '")');
656
+ }
657
+ })();
658
+ if (obj_objectApiName_union0_error != null) {
659
+ obj_objectApiName_union0 = obj_objectApiName_union0_error.message;
627
660
  }
628
- })();
629
- if (obj_objectApiName_union0_error != null) {
630
- obj_objectApiName_union0 = obj_objectApiName_union0_error.message;
631
- }
632
- let obj_objectApiName_union1 = null;
633
- const obj_objectApiName_union1_error = (() => {
634
- if (obj_objectApiName !== null) {
635
- return new TypeError('Expected "null" but received "' + typeof obj_objectApiName + '" (at "' + path_objectApiName + '")');
661
+ let obj_objectApiName_union1 = null;
662
+ const obj_objectApiName_union1_error = (() => {
663
+ if (obj_objectApiName !== null) {
664
+ return new TypeError('Expected "null" but received "' + typeof obj_objectApiName + '" (at "' + path_objectApiName + '")');
665
+ }
666
+ })();
667
+ if (obj_objectApiName_union1_error != null) {
668
+ obj_objectApiName_union1 = obj_objectApiName_union1_error.message;
669
+ }
670
+ if (obj_objectApiName_union0 && obj_objectApiName_union1) {
671
+ let message = 'Object doesn\'t match union (at "' + path_objectApiName + '")';
672
+ message += '\n' + obj_objectApiName_union0.split('\n').map((line) => '\t' + line).join('\n');
673
+ message += '\n' + obj_objectApiName_union1.split('\n').map((line) => '\t' + line).join('\n');
674
+ return new TypeError(message);
636
675
  }
637
- })();
638
- if (obj_objectApiName_union1_error != null) {
639
- obj_objectApiName_union1 = obj_objectApiName_union1_error.message;
640
- }
641
- if (obj_objectApiName_union0 && obj_objectApiName_union1) {
642
- let message = 'Object doesn\'t match union (at "' + path_objectApiName + '")';
643
- message += '\n' + obj_objectApiName_union0.split('\n').map((line) => '\t' + line).join('\n');
644
- message += '\n' + obj_objectApiName_union1.split('\n').map((line) => '\t' + line).join('\n');
645
- return new TypeError(message);
646
676
  }
647
677
  if (obj.objectLabel !== undefined) {
648
678
  const obj_objectLabel = obj.objectLabel;
@@ -676,7 +706,7 @@ function validate$7(obj, path = 'SubjectRepresentation') {
676
706
  return v_error === undefined ? null : v_error;
677
707
  }
678
708
 
679
- const VERSION$5 = "53a3f4b1f9467dccd40ae739c6bb39cf";
709
+ const VERSION$5 = "f2fdd6cf007fef11bef799a503acc08d";
680
710
  function validate$6(obj, path = 'FilterRepresentation') {
681
711
  const v_error = (() => {
682
712
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -838,6 +868,37 @@ function validate$6(obj, path = 'FilterRepresentation') {
838
868
  return new TypeError(message);
839
869
  }
840
870
  }
871
+ if (obj.metric !== undefined) {
872
+ const obj_metric = obj.metric;
873
+ const path_metric = path + '.metric';
874
+ let obj_metric_union0 = null;
875
+ const obj_metric_union0_error = (() => {
876
+ const referencepath_metricValidationError = validate$7(obj_metric, path_metric);
877
+ if (referencepath_metricValidationError !== null) {
878
+ let message = 'Object doesn\'t match SubjectRepresentation (at "' + path_metric + '")\n';
879
+ message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
880
+ return new TypeError(message);
881
+ }
882
+ })();
883
+ if (obj_metric_union0_error != null) {
884
+ obj_metric_union0 = obj_metric_union0_error.message;
885
+ }
886
+ let obj_metric_union1 = null;
887
+ const obj_metric_union1_error = (() => {
888
+ if (obj_metric !== null) {
889
+ return new TypeError('Expected "null" but received "' + typeof obj_metric + '" (at "' + path_metric + '")');
890
+ }
891
+ })();
892
+ if (obj_metric_union1_error != null) {
893
+ obj_metric_union1 = obj_metric_union1_error.message;
894
+ }
895
+ if (obj_metric_union0 && obj_metric_union1) {
896
+ let message = 'Object doesn\'t match union (at "' + path_metric + '")';
897
+ message += '\n' + obj_metric_union0.split('\n').map((line) => '\t' + line).join('\n');
898
+ message += '\n' + obj_metric_union1.split('\n').map((line) => '\t' + line).join('\n');
899
+ return new TypeError(message);
900
+ }
901
+ }
841
902
  if (obj.operator !== undefined) {
842
903
  const obj_operator = obj.operator;
843
904
  const path_operator = path + '.operator';
@@ -1213,7 +1274,7 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
1213
1274
  }
1214
1275
  }
1215
1276
 
1216
- const VERSION$3 = "4c6e23e63e764c028a88f2f6c2f7c6a3";
1277
+ const VERSION$3 = "265767af783b296f5f902d6ed447b168";
1217
1278
  function validate$4(obj, path = 'PersonalizationDecisionRepresentation') {
1218
1279
  const v_error = (() => {
1219
1280
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1494,6 +1555,32 @@ function validate$4(obj, path = 'PersonalizationDecisionRepresentation') {
1494
1555
  message += '\n' + obj_personalizerName_union1.split('\n').map((line) => '\t' + line).join('\n');
1495
1556
  return new TypeError(message);
1496
1557
  }
1558
+ const obj_state = obj.state;
1559
+ const path_state = path + '.state';
1560
+ let obj_state_union0 = null;
1561
+ const obj_state_union0_error = (() => {
1562
+ if (typeof obj_state !== 'string') {
1563
+ return new TypeError('Expected "string" but received "' + typeof obj_state + '" (at "' + path_state + '")');
1564
+ }
1565
+ })();
1566
+ if (obj_state_union0_error != null) {
1567
+ obj_state_union0 = obj_state_union0_error.message;
1568
+ }
1569
+ let obj_state_union1 = null;
1570
+ const obj_state_union1_error = (() => {
1571
+ if (obj_state !== null) {
1572
+ return new TypeError('Expected "null" but received "' + typeof obj_state + '" (at "' + path_state + '")');
1573
+ }
1574
+ })();
1575
+ if (obj_state_union1_error != null) {
1576
+ obj_state_union1 = obj_state_union1_error.message;
1577
+ }
1578
+ if (obj_state_union0 && obj_state_union1) {
1579
+ let message = 'Object doesn\'t match union (at "' + path_state + '")';
1580
+ message += '\n' + obj_state_union0.split('\n').map((line) => '\t' + line).join('\n');
1581
+ message += '\n' + obj_state_union1.split('\n').map((line) => '\t' + line).join('\n');
1582
+ return new TypeError(message);
1583
+ }
1497
1584
  const obj_url = obj.url;
1498
1585
  const path_url = path + '.url';
1499
1586
  let obj_url_union0 = null;
@@ -1596,6 +1683,10 @@ const select$8 = function PersonalizationDecisionRepresentationSelect() {
1596
1683
  name: 'personalizerName',
1597
1684
  kind: 'Scalar'
1598
1685
  },
1686
+ {
1687
+ name: 'state',
1688
+ kind: 'Scalar'
1689
+ },
1599
1690
  {
1600
1691
  name: 'url',
1601
1692
  kind: 'Scalar'
@@ -1669,6 +1760,11 @@ function equals$3(existing, incoming) {
1669
1760
  if (!(existing_personalizerName === incoming_personalizerName)) {
1670
1761
  return false;
1671
1762
  }
1763
+ const existing_state = existing.state;
1764
+ const incoming_state = incoming.state;
1765
+ if (!(existing_state === incoming_state)) {
1766
+ return false;
1767
+ }
1672
1768
  const existing_url = existing.url;
1673
1769
  const incoming_url = incoming.url;
1674
1770
  if (!(existing_url === incoming_url)) {
@@ -1702,7 +1798,7 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
1702
1798
  }
1703
1799
 
1704
1800
  const TTL$1 = 600;
1705
- const VERSION$2 = "da1bfa46416530ff1aeab78ba84646bb";
1801
+ const VERSION$2 = "d7f13f752588c8d16e1327ffbbef8d4e";
1706
1802
  function validate$3(obj, path = 'PersonalizationPointRepresentation') {
1707
1803
  const v_error = (() => {
1708
1804
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1954,6 +2050,32 @@ function validate$3(obj, path = 'PersonalizationPointRepresentation') {
1954
2050
  message += '\n' + obj_lastModifiedDate_union1.split('\n').map((line) => '\t' + line).join('\n');
1955
2051
  return new TypeError(message);
1956
2052
  }
2053
+ const obj_maxItemsCount = obj.maxItemsCount;
2054
+ const path_maxItemsCount = path + '.maxItemsCount';
2055
+ let obj_maxItemsCount_union0 = null;
2056
+ const obj_maxItemsCount_union0_error = (() => {
2057
+ if (typeof obj_maxItemsCount !== 'number' || (typeof obj_maxItemsCount === 'number' && Math.floor(obj_maxItemsCount) !== obj_maxItemsCount)) {
2058
+ return new TypeError('Expected "integer" but received "' + typeof obj_maxItemsCount + '" (at "' + path_maxItemsCount + '")');
2059
+ }
2060
+ })();
2061
+ if (obj_maxItemsCount_union0_error != null) {
2062
+ obj_maxItemsCount_union0 = obj_maxItemsCount_union0_error.message;
2063
+ }
2064
+ let obj_maxItemsCount_union1 = null;
2065
+ const obj_maxItemsCount_union1_error = (() => {
2066
+ if (obj_maxItemsCount !== null) {
2067
+ return new TypeError('Expected "null" but received "' + typeof obj_maxItemsCount + '" (at "' + path_maxItemsCount + '")');
2068
+ }
2069
+ })();
2070
+ if (obj_maxItemsCount_union1_error != null) {
2071
+ obj_maxItemsCount_union1 = obj_maxItemsCount_union1_error.message;
2072
+ }
2073
+ if (obj_maxItemsCount_union0 && obj_maxItemsCount_union1) {
2074
+ let message = 'Object doesn\'t match union (at "' + path_maxItemsCount + '")';
2075
+ message += '\n' + obj_maxItemsCount_union0.split('\n').map((line) => '\t' + line).join('\n');
2076
+ message += '\n' + obj_maxItemsCount_union1.split('\n').map((line) => '\t' + line).join('\n');
2077
+ return new TypeError(message);
2078
+ }
1957
2079
  const obj_name = obj.name;
1958
2080
  const path_name = path + '.name';
1959
2081
  let obj_name_union0 = null;
@@ -2006,6 +2128,32 @@ function validate$3(obj, path = 'PersonalizationPointRepresentation') {
2006
2128
  message += '\n' + obj_profileDataGraphName_union1.split('\n').map((line) => '\t' + line).join('\n');
2007
2129
  return new TypeError(message);
2008
2130
  }
2131
+ const obj_rootPersonalizationPointId = obj.rootPersonalizationPointId;
2132
+ const path_rootPersonalizationPointId = path + '.rootPersonalizationPointId';
2133
+ let obj_rootPersonalizationPointId_union0 = null;
2134
+ const obj_rootPersonalizationPointId_union0_error = (() => {
2135
+ if (typeof obj_rootPersonalizationPointId !== 'string') {
2136
+ return new TypeError('Expected "string" but received "' + typeof obj_rootPersonalizationPointId + '" (at "' + path_rootPersonalizationPointId + '")');
2137
+ }
2138
+ })();
2139
+ if (obj_rootPersonalizationPointId_union0_error != null) {
2140
+ obj_rootPersonalizationPointId_union0 = obj_rootPersonalizationPointId_union0_error.message;
2141
+ }
2142
+ let obj_rootPersonalizationPointId_union1 = null;
2143
+ const obj_rootPersonalizationPointId_union1_error = (() => {
2144
+ if (obj_rootPersonalizationPointId !== null) {
2145
+ return new TypeError('Expected "null" but received "' + typeof obj_rootPersonalizationPointId + '" (at "' + path_rootPersonalizationPointId + '")');
2146
+ }
2147
+ })();
2148
+ if (obj_rootPersonalizationPointId_union1_error != null) {
2149
+ obj_rootPersonalizationPointId_union1 = obj_rootPersonalizationPointId_union1_error.message;
2150
+ }
2151
+ if (obj_rootPersonalizationPointId_union0 && obj_rootPersonalizationPointId_union1) {
2152
+ let message = 'Object doesn\'t match union (at "' + path_rootPersonalizationPointId + '")';
2153
+ message += '\n' + obj_rootPersonalizationPointId_union0.split('\n').map((line) => '\t' + line).join('\n');
2154
+ message += '\n' + obj_rootPersonalizationPointId_union1.split('\n').map((line) => '\t' + line).join('\n');
2155
+ return new TypeError(message);
2156
+ }
2009
2157
  const obj_schemaEnum = obj.schemaEnum;
2010
2158
  const path_schemaEnum = path + '.schemaEnum';
2011
2159
  let obj_schemaEnum_union0 = null;
@@ -2174,6 +2322,10 @@ const select$7 = function PersonalizationPointRepresentationSelect() {
2174
2322
  name: 'lastModifiedDate',
2175
2323
  kind: 'Scalar'
2176
2324
  },
2325
+ {
2326
+ name: 'maxItemsCount',
2327
+ kind: 'Scalar'
2328
+ },
2177
2329
  {
2178
2330
  name: 'name',
2179
2331
  kind: 'Scalar'
@@ -2182,6 +2334,10 @@ const select$7 = function PersonalizationPointRepresentationSelect() {
2182
2334
  name: 'profileDataGraphName',
2183
2335
  kind: 'Scalar'
2184
2336
  },
2337
+ {
2338
+ name: 'rootPersonalizationPointId',
2339
+ kind: 'Scalar'
2340
+ },
2185
2341
  {
2186
2342
  name: 'schemaEnum',
2187
2343
  kind: 'Scalar'
@@ -2271,6 +2427,11 @@ function equals$2(existing, incoming) {
2271
2427
  if (!(existing_lastModifiedDate === incoming_lastModifiedDate)) {
2272
2428
  return false;
2273
2429
  }
2430
+ const existing_maxItemsCount = existing.maxItemsCount;
2431
+ const incoming_maxItemsCount = incoming.maxItemsCount;
2432
+ if (!(existing_maxItemsCount === incoming_maxItemsCount)) {
2433
+ return false;
2434
+ }
2274
2435
  const existing_name = existing.name;
2275
2436
  const incoming_name = incoming.name;
2276
2437
  if (!(existing_name === incoming_name)) {
@@ -2281,6 +2442,11 @@ function equals$2(existing, incoming) {
2281
2442
  if (!(existing_profileDataGraphName === incoming_profileDataGraphName)) {
2282
2443
  return false;
2283
2444
  }
2445
+ const existing_rootPersonalizationPointId = existing.rootPersonalizationPointId;
2446
+ const incoming_rootPersonalizationPointId = incoming.rootPersonalizationPointId;
2447
+ if (!(existing_rootPersonalizationPointId === incoming_rootPersonalizationPointId)) {
2448
+ return false;
2449
+ }
2284
2450
  const existing_schemaEnum = existing.schemaEnum;
2285
2451
  const incoming_schemaEnum = incoming.schemaEnum;
2286
2452
  if (!(existing_schemaEnum === incoming_schemaEnum)) {
@@ -2373,6 +2539,8 @@ const createPersonalizationPoint_ConfigPropertyMetadata = [
2373
2539
  generateParamConfigMetadata('schemaEnum', false, 2 /* Body */, 4 /* Unsupported */),
2374
2540
  generateParamConfigMetadata('schemaName', false, 2 /* Body */, 4 /* Unsupported */),
2375
2541
  generateParamConfigMetadata('source', true, 2 /* Body */, 0 /* String */),
2542
+ generateParamConfigMetadata('rootPersonalizationPointId', false, 2 /* Body */, 4 /* Unsupported */),
2543
+ generateParamConfigMetadata('maxItemsCount', false, 2 /* Body */, 4 /* Unsupported */),
2376
2544
  ];
2377
2545
  const createPersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createPersonalizationPoint_ConfigPropertyMetadata);
2378
2546
  const createResourceParams$6 = /*#__PURE__*/ createResourceParams$7(createPersonalizationPoint_ConfigPropertyMetadata);
@@ -2447,6 +2615,20 @@ function typeCheckConfig$6(untrustedConfig) {
2447
2615
  if (untrustedConfig_schemaName === null) {
2448
2616
  config.schemaName = untrustedConfig_schemaName;
2449
2617
  }
2618
+ const untrustedConfig_rootPersonalizationPointId = untrustedConfig.rootPersonalizationPointId;
2619
+ if (typeof untrustedConfig_rootPersonalizationPointId === 'string') {
2620
+ config.rootPersonalizationPointId = untrustedConfig_rootPersonalizationPointId;
2621
+ }
2622
+ if (untrustedConfig_rootPersonalizationPointId === null) {
2623
+ config.rootPersonalizationPointId = untrustedConfig_rootPersonalizationPointId;
2624
+ }
2625
+ const untrustedConfig_maxItemsCount = untrustedConfig.maxItemsCount;
2626
+ if (typeof untrustedConfig_maxItemsCount === 'number' && Math.floor(untrustedConfig_maxItemsCount) === untrustedConfig_maxItemsCount) {
2627
+ config.maxItemsCount = untrustedConfig_maxItemsCount;
2628
+ }
2629
+ if (untrustedConfig_maxItemsCount === null) {
2630
+ config.maxItemsCount = untrustedConfig_maxItemsCount;
2631
+ }
2450
2632
  return config;
2451
2633
  }
2452
2634
  function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
@@ -3702,6 +3884,8 @@ const updatePersonalizationPoint_ConfigPropertyMetadata = [
3702
3884
  generateParamConfigMetadata('schemaEnum', false, 2 /* Body */, 4 /* Unsupported */),
3703
3885
  generateParamConfigMetadata('schemaName', false, 2 /* Body */, 4 /* Unsupported */),
3704
3886
  generateParamConfigMetadata('source', true, 2 /* Body */, 0 /* String */),
3887
+ generateParamConfigMetadata('rootPersonalizationPointId', false, 2 /* Body */, 4 /* Unsupported */),
3888
+ generateParamConfigMetadata('maxItemsCount', false, 2 /* Body */, 4 /* Unsupported */),
3705
3889
  ];
3706
3890
  const updatePersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updatePersonalizationPoint_ConfigPropertyMetadata);
3707
3891
  const createResourceParams = /*#__PURE__*/ createResourceParams$7(updatePersonalizationPoint_ConfigPropertyMetadata);
@@ -3776,6 +3960,20 @@ function typeCheckConfig(untrustedConfig) {
3776
3960
  if (untrustedConfig_schemaName === null) {
3777
3961
  config.schemaName = untrustedConfig_schemaName;
3778
3962
  }
3963
+ const untrustedConfig_rootPersonalizationPointId = untrustedConfig.rootPersonalizationPointId;
3964
+ if (typeof untrustedConfig_rootPersonalizationPointId === 'string') {
3965
+ config.rootPersonalizationPointId = untrustedConfig_rootPersonalizationPointId;
3966
+ }
3967
+ if (untrustedConfig_rootPersonalizationPointId === null) {
3968
+ config.rootPersonalizationPointId = untrustedConfig_rootPersonalizationPointId;
3969
+ }
3970
+ const untrustedConfig_maxItemsCount = untrustedConfig.maxItemsCount;
3971
+ if (typeof untrustedConfig_maxItemsCount === 'number' && Math.floor(untrustedConfig_maxItemsCount) === untrustedConfig_maxItemsCount) {
3972
+ config.maxItemsCount = untrustedConfig_maxItemsCount;
3973
+ }
3974
+ if (untrustedConfig_maxItemsCount === null) {
3975
+ config.maxItemsCount = untrustedConfig_maxItemsCount;
3976
+ }
3779
3977
  return config;
3780
3978
  }
3781
3979
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -3881,4 +4079,4 @@ withDefaultLuvio((luvio) => {
3881
4079
  });
3882
4080
 
3883
4081
  export { createPersonalizationPoint, createPersonalizationSchema, deletePersonalizationPoint, deletePersonalizationSchema, getPersonalizationPoint, getPersonalizationPoint_imperative, getPersonalizationSchema, getPersonalizationSchemaNotifyChange, getPersonalizationSchema_imperative, updatePersonalizationPoint };
3884
- // version: 1.308.0-e148a73d6a
4082
+ // version: 1.309.0-dev9-7ca613f4d0
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
@@ -655,6 +686,7 @@ types:
655
686
  description: Field Label
656
687
  type: string | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
657
688
  objectApiName:
689
+ required: false
658
690
  description: Object API Name
659
691
  type: string | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
660
692
  objectLabel: