@salesforce/lds-adapters-cdp-personalization-service 1.309.0-dev14 → 1.309.0-dev15
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.
- package/dist/es/es2018/cdp-personalization-service.js +81 -2
- package/dist/es/es2018/types/src/generated/adapters/createPersonalizationPoint.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/updatePersonalizationPoint.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/postPersonalizationPersonalizationPoints.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/putPersonalizationPersonalizationPointsByIdOrName.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/types/FilterRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/PersonalizationPointInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/PersonalizationPointRepresentation.d.ts +4 -1
- package/package.json +3 -3
- package/sfdc/index.js +82 -3
- package/src/raml/api.raml +14 -1
|
@@ -696,7 +696,7 @@ function validate$7(obj, path = 'SubjectRepresentation') {
|
|
|
696
696
|
return v_error === undefined ? null : v_error;
|
|
697
697
|
}
|
|
698
698
|
|
|
699
|
-
const VERSION$5 = "
|
|
699
|
+
const VERSION$5 = "089c2877ffa367e376fe74f8d358ffa8";
|
|
700
700
|
function validate$6(obj, path = 'FilterRepresentation') {
|
|
701
701
|
const v_error = (() => {
|
|
702
702
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -969,6 +969,34 @@ function validate$6(obj, path = 'FilterRepresentation') {
|
|
|
969
969
|
return new TypeError(message);
|
|
970
970
|
}
|
|
971
971
|
}
|
|
972
|
+
if (obj.schedulingTimeZone !== undefined) {
|
|
973
|
+
const obj_schedulingTimeZone = obj.schedulingTimeZone;
|
|
974
|
+
const path_schedulingTimeZone = path + '.schedulingTimeZone';
|
|
975
|
+
let obj_schedulingTimeZone_union0 = null;
|
|
976
|
+
const obj_schedulingTimeZone_union0_error = (() => {
|
|
977
|
+
if (typeof obj_schedulingTimeZone !== 'string') {
|
|
978
|
+
return new TypeError('Expected "string" but received "' + typeof obj_schedulingTimeZone + '" (at "' + path_schedulingTimeZone + '")');
|
|
979
|
+
}
|
|
980
|
+
})();
|
|
981
|
+
if (obj_schedulingTimeZone_union0_error != null) {
|
|
982
|
+
obj_schedulingTimeZone_union0 = obj_schedulingTimeZone_union0_error.message;
|
|
983
|
+
}
|
|
984
|
+
let obj_schedulingTimeZone_union1 = null;
|
|
985
|
+
const obj_schedulingTimeZone_union1_error = (() => {
|
|
986
|
+
if (obj_schedulingTimeZone !== null) {
|
|
987
|
+
return new TypeError('Expected "null" but received "' + typeof obj_schedulingTimeZone + '" (at "' + path_schedulingTimeZone + '")');
|
|
988
|
+
}
|
|
989
|
+
})();
|
|
990
|
+
if (obj_schedulingTimeZone_union1_error != null) {
|
|
991
|
+
obj_schedulingTimeZone_union1 = obj_schedulingTimeZone_union1_error.message;
|
|
992
|
+
}
|
|
993
|
+
if (obj_schedulingTimeZone_union0 && obj_schedulingTimeZone_union1) {
|
|
994
|
+
let message = 'Object doesn\'t match union (at "' + path_schedulingTimeZone + '")';
|
|
995
|
+
message += '\n' + obj_schedulingTimeZone_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
996
|
+
message += '\n' + obj_schedulingTimeZone_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
997
|
+
return new TypeError(message);
|
|
998
|
+
}
|
|
999
|
+
}
|
|
972
1000
|
if (obj.secondBoundValue !== undefined) {
|
|
973
1001
|
const obj_secondBoundValue = obj.secondBoundValue;
|
|
974
1002
|
const path_secondBoundValue = path + '.secondBoundValue';
|
|
@@ -1788,7 +1816,7 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1788
1816
|
}
|
|
1789
1817
|
|
|
1790
1818
|
const TTL$1 = 600;
|
|
1791
|
-
const VERSION$2 = "
|
|
1819
|
+
const VERSION$2 = "5dfecb0c18e6d8e4bff3b03d9e64fe32";
|
|
1792
1820
|
function validate$3(obj, path = 'PersonalizationPointRepresentation') {
|
|
1793
1821
|
const v_error = (() => {
|
|
1794
1822
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1962,6 +1990,32 @@ function validate$3(obj, path = 'PersonalizationPointRepresentation') {
|
|
|
1962
1990
|
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1963
1991
|
return new TypeError(message);
|
|
1964
1992
|
}
|
|
1993
|
+
const obj_isAuthenticationRequired = obj.isAuthenticationRequired;
|
|
1994
|
+
const path_isAuthenticationRequired = path + '.isAuthenticationRequired';
|
|
1995
|
+
let obj_isAuthenticationRequired_union0 = null;
|
|
1996
|
+
const obj_isAuthenticationRequired_union0_error = (() => {
|
|
1997
|
+
if (typeof obj_isAuthenticationRequired !== 'boolean') {
|
|
1998
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isAuthenticationRequired + '" (at "' + path_isAuthenticationRequired + '")');
|
|
1999
|
+
}
|
|
2000
|
+
})();
|
|
2001
|
+
if (obj_isAuthenticationRequired_union0_error != null) {
|
|
2002
|
+
obj_isAuthenticationRequired_union0 = obj_isAuthenticationRequired_union0_error.message;
|
|
2003
|
+
}
|
|
2004
|
+
let obj_isAuthenticationRequired_union1 = null;
|
|
2005
|
+
const obj_isAuthenticationRequired_union1_error = (() => {
|
|
2006
|
+
if (obj_isAuthenticationRequired !== null) {
|
|
2007
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isAuthenticationRequired + '" (at "' + path_isAuthenticationRequired + '")');
|
|
2008
|
+
}
|
|
2009
|
+
})();
|
|
2010
|
+
if (obj_isAuthenticationRequired_union1_error != null) {
|
|
2011
|
+
obj_isAuthenticationRequired_union1 = obj_isAuthenticationRequired_union1_error.message;
|
|
2012
|
+
}
|
|
2013
|
+
if (obj_isAuthenticationRequired_union0 && obj_isAuthenticationRequired_union1) {
|
|
2014
|
+
let message = 'Object doesn\'t match union (at "' + path_isAuthenticationRequired + '")';
|
|
2015
|
+
message += '\n' + obj_isAuthenticationRequired_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2016
|
+
message += '\n' + obj_isAuthenticationRequired_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2017
|
+
return new TypeError(message);
|
|
2018
|
+
}
|
|
1965
2019
|
const obj_label = obj.label;
|
|
1966
2020
|
const path_label = path + '.label';
|
|
1967
2021
|
let obj_label_union0 = null;
|
|
@@ -2300,6 +2354,10 @@ const select$7 = function PersonalizationPointRepresentationSelect() {
|
|
|
2300
2354
|
name: 'id',
|
|
2301
2355
|
kind: 'Scalar'
|
|
2302
2356
|
},
|
|
2357
|
+
{
|
|
2358
|
+
name: 'isAuthenticationRequired',
|
|
2359
|
+
kind: 'Scalar'
|
|
2360
|
+
},
|
|
2303
2361
|
{
|
|
2304
2362
|
name: 'label',
|
|
2305
2363
|
kind: 'Scalar'
|
|
@@ -2402,6 +2460,11 @@ function equals$2(existing, incoming) {
|
|
|
2402
2460
|
if (!(existing_id === incoming_id)) {
|
|
2403
2461
|
return false;
|
|
2404
2462
|
}
|
|
2463
|
+
const existing_isAuthenticationRequired = existing.isAuthenticationRequired;
|
|
2464
|
+
const incoming_isAuthenticationRequired = incoming.isAuthenticationRequired;
|
|
2465
|
+
if (!(existing_isAuthenticationRequired === incoming_isAuthenticationRequired)) {
|
|
2466
|
+
return false;
|
|
2467
|
+
}
|
|
2405
2468
|
const existing_label = existing.label;
|
|
2406
2469
|
const incoming_label = incoming.label;
|
|
2407
2470
|
if (!(existing_label === incoming_label)) {
|
|
@@ -2531,6 +2594,7 @@ const createPersonalizationPoint_ConfigPropertyMetadata = [
|
|
|
2531
2594
|
generateParamConfigMetadata('schemaEnum', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2532
2595
|
generateParamConfigMetadata('schemaName', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2533
2596
|
generateParamConfigMetadata('source', true, 2 /* Body */, 0 /* String */),
|
|
2597
|
+
generateParamConfigMetadata('isAuthenticationRequired', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2534
2598
|
];
|
|
2535
2599
|
const createPersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createPersonalizationPoint_ConfigPropertyMetadata);
|
|
2536
2600
|
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$7(createPersonalizationPoint_ConfigPropertyMetadata);
|
|
@@ -2619,6 +2683,13 @@ function typeCheckConfig$6(untrustedConfig) {
|
|
|
2619
2683
|
if (untrustedConfig_schemaName === null) {
|
|
2620
2684
|
config.schemaName = untrustedConfig_schemaName;
|
|
2621
2685
|
}
|
|
2686
|
+
const untrustedConfig_isAuthenticationRequired = untrustedConfig.isAuthenticationRequired;
|
|
2687
|
+
if (typeof untrustedConfig_isAuthenticationRequired === 'boolean') {
|
|
2688
|
+
config.isAuthenticationRequired = untrustedConfig_isAuthenticationRequired;
|
|
2689
|
+
}
|
|
2690
|
+
if (untrustedConfig_isAuthenticationRequired === null) {
|
|
2691
|
+
config.isAuthenticationRequired = untrustedConfig_isAuthenticationRequired;
|
|
2692
|
+
}
|
|
2622
2693
|
return config;
|
|
2623
2694
|
}
|
|
2624
2695
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -2939,6 +3010,7 @@ const updatePersonalizationPoint_ConfigPropertyMetadata = [
|
|
|
2939
3010
|
generateParamConfigMetadata('schemaEnum', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2940
3011
|
generateParamConfigMetadata('schemaName', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2941
3012
|
generateParamConfigMetadata('source', true, 2 /* Body */, 0 /* String */),
|
|
3013
|
+
generateParamConfigMetadata('isAuthenticationRequired', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2942
3014
|
];
|
|
2943
3015
|
const updatePersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, updatePersonalizationPoint_ConfigPropertyMetadata);
|
|
2944
3016
|
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$7(updatePersonalizationPoint_ConfigPropertyMetadata);
|
|
@@ -3027,6 +3099,13 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
3027
3099
|
if (untrustedConfig_schemaName === null) {
|
|
3028
3100
|
config.schemaName = untrustedConfig_schemaName;
|
|
3029
3101
|
}
|
|
3102
|
+
const untrustedConfig_isAuthenticationRequired = untrustedConfig.isAuthenticationRequired;
|
|
3103
|
+
if (typeof untrustedConfig_isAuthenticationRequired === 'boolean') {
|
|
3104
|
+
config.isAuthenticationRequired = untrustedConfig_isAuthenticationRequired;
|
|
3105
|
+
}
|
|
3106
|
+
if (untrustedConfig_isAuthenticationRequired === null) {
|
|
3107
|
+
config.isAuthenticationRequired = untrustedConfig_isAuthenticationRequired;
|
|
3108
|
+
}
|
|
3030
3109
|
return config;
|
|
3031
3110
|
}
|
|
3032
3111
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -19,6 +19,7 @@ export interface CreatePersonalizationPointConfig {
|
|
|
19
19
|
schemaEnum?: string | null;
|
|
20
20
|
schemaName?: string | null;
|
|
21
21
|
source: string;
|
|
22
|
+
isAuthenticationRequired?: boolean | null;
|
|
22
23
|
}
|
|
23
24
|
export declare const createResourceParams: (config: CreatePersonalizationPointConfig) => resources_postPersonalizationPersonalizationPoints_ResourceRequestConfig;
|
|
24
25
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreatePersonalizationPointConfig>): adapter$45$utils_Untrusted<CreatePersonalizationPointConfig>;
|
|
@@ -20,6 +20,7 @@ export interface UpdatePersonalizationPointConfig {
|
|
|
20
20
|
schemaEnum?: string | null;
|
|
21
21
|
schemaName?: string | null;
|
|
22
22
|
source: string;
|
|
23
|
+
isAuthenticationRequired?: boolean | null;
|
|
23
24
|
}
|
|
24
25
|
export declare const createResourceParams: (config: UpdatePersonalizationPointConfig) => resources_putPersonalizationPersonalizationPointsByIdOrName_ResourceRequestConfig;
|
|
25
26
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<UpdatePersonalizationPointConfig>): adapter$45$utils_Untrusted<UpdatePersonalizationPointConfig>;
|
package/dist/es/es2018/types/src/generated/resources/postPersonalizationPersonalizationPoints.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export interface ResourceRequestConfig {
|
|
|
15
15
|
schemaEnum?: string | null;
|
|
16
16
|
schemaName?: string | null;
|
|
17
17
|
source: string;
|
|
18
|
+
isAuthenticationRequired?: boolean | null;
|
|
18
19
|
};
|
|
19
20
|
}
|
|
20
21
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
@@ -18,6 +18,7 @@ export interface ResourceRequestConfig {
|
|
|
18
18
|
schemaEnum?: string | null;
|
|
19
19
|
schemaName?: string | null;
|
|
20
20
|
source: string;
|
|
21
|
+
isAuthenticationRequired?: boolean | null;
|
|
21
22
|
};
|
|
22
23
|
}
|
|
23
24
|
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 = "
|
|
4
|
+
export declare const VERSION = "089c2877ffa367e376fe74f8d358ffa8";
|
|
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;
|
|
@@ -34,6 +34,8 @@ export interface FilterRepresentationNormalized {
|
|
|
34
34
|
path?: Array<Array<SubjectRepresentation_SubjectRepresentation>>;
|
|
35
35
|
/** Rule Time Zone */
|
|
36
36
|
ruleTimeZone?: string | null;
|
|
37
|
+
/** Scheduling Time Zone */
|
|
38
|
+
schedulingTimeZone?: string | null;
|
|
37
39
|
/** Second Bound Value */
|
|
38
40
|
secondBoundValue?: number | null;
|
|
39
41
|
/** Subject */
|
|
@@ -61,6 +63,7 @@ export interface FilterRepresentation {
|
|
|
61
63
|
operator?: string | null;
|
|
62
64
|
path?: Array<Array<SubjectRepresentation_SubjectRepresentation>>;
|
|
63
65
|
ruleTimeZone?: string | null;
|
|
66
|
+
schedulingTimeZone?: string | null;
|
|
64
67
|
secondBoundValue?: number | null;
|
|
65
68
|
subject?: SubjectRepresentation_SubjectRepresentation | null;
|
|
66
69
|
type?: string | null;
|
package/dist/es/es2018/types/src/generated/types/PersonalizationPointInputRepresentation.d.ts
CHANGED
|
@@ -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 = "
|
|
3
|
+
export declare const VERSION = "4612ac5d4e98290ebca45bc0e326dd46";
|
|
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;
|
|
@@ -23,6 +23,8 @@ export interface PersonalizationPointInputRepresentationNormalized {
|
|
|
23
23
|
decisions: Array<PersonalizationDecisionInputRepresentation_PersonalizationDecisionInputRepresentation>;
|
|
24
24
|
/** Personalization Base description */
|
|
25
25
|
description?: string | null;
|
|
26
|
+
/** Whether or not this personalization point requires the user executing it in the runtime to be authenticated */
|
|
27
|
+
isAuthenticationRequired?: boolean | null;
|
|
26
28
|
/** Personalization Base label */
|
|
27
29
|
label: string | null;
|
|
28
30
|
/** The max number of content items to be returned */
|
|
@@ -51,6 +53,7 @@ export interface PersonalizationPointInputRepresentation {
|
|
|
51
53
|
dataSpaceName: string | null;
|
|
52
54
|
decisions: Array<PersonalizationDecisionInputRepresentation_PersonalizationDecisionInputRepresentation>;
|
|
53
55
|
description?: string | null;
|
|
56
|
+
isAuthenticationRequired?: boolean | null;
|
|
54
57
|
label: string | null;
|
|
55
58
|
maxItemsCount?: number | null;
|
|
56
59
|
name: string | null;
|
|
@@ -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 = "
|
|
4
|
+
export declare const VERSION = "5dfecb0c18e6d8e4bff3b03d9e64fe32";
|
|
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 {
|
|
@@ -48,6 +48,8 @@ export interface PersonalizationPointRepresentationNormalized {
|
|
|
48
48
|
description: string | null;
|
|
49
49
|
/** The 18 character ID of the record */
|
|
50
50
|
id: string | null;
|
|
51
|
+
/** Whether or not this personalization point requires the user executing it in the runtime to be authenticated */
|
|
52
|
+
isAuthenticationRequired: boolean | null;
|
|
51
53
|
/** Personalization base output label */
|
|
52
54
|
label: string | null;
|
|
53
55
|
/** Last modified by id */
|
|
@@ -87,6 +89,7 @@ export interface PersonalizationPointRepresentation {
|
|
|
87
89
|
decisions: Array<PersonalizationDecisionRepresentation_PersonalizationDecisionRepresentation>;
|
|
88
90
|
description: string | null;
|
|
89
91
|
id: string | null;
|
|
92
|
+
isAuthenticationRequired: boolean | null;
|
|
90
93
|
label: string | null;
|
|
91
94
|
lastModifiedById: string | null;
|
|
92
95
|
lastModifiedDate: string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-cdp-personalization-service",
|
|
3
|
-
"version": "1.309.0-
|
|
3
|
+
"version": "1.309.0-dev15",
|
|
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.309.0-
|
|
44
|
+
"@salesforce/lds-bindings": "^1.309.0-dev15"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@salesforce/lds-compiler-plugins": "^1.309.0-
|
|
47
|
+
"@salesforce/lds-compiler-plugins": "^1.309.0-dev15"
|
|
48
48
|
},
|
|
49
49
|
"nx": {
|
|
50
50
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -706,7 +706,7 @@ function validate$7(obj, path = 'SubjectRepresentation') {
|
|
|
706
706
|
return v_error === undefined ? null : v_error;
|
|
707
707
|
}
|
|
708
708
|
|
|
709
|
-
const VERSION$5 = "
|
|
709
|
+
const VERSION$5 = "089c2877ffa367e376fe74f8d358ffa8";
|
|
710
710
|
function validate$6(obj, path = 'FilterRepresentation') {
|
|
711
711
|
const v_error = (() => {
|
|
712
712
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -979,6 +979,34 @@ function validate$6(obj, path = 'FilterRepresentation') {
|
|
|
979
979
|
return new TypeError(message);
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
|
+
if (obj.schedulingTimeZone !== undefined) {
|
|
983
|
+
const obj_schedulingTimeZone = obj.schedulingTimeZone;
|
|
984
|
+
const path_schedulingTimeZone = path + '.schedulingTimeZone';
|
|
985
|
+
let obj_schedulingTimeZone_union0 = null;
|
|
986
|
+
const obj_schedulingTimeZone_union0_error = (() => {
|
|
987
|
+
if (typeof obj_schedulingTimeZone !== 'string') {
|
|
988
|
+
return new TypeError('Expected "string" but received "' + typeof obj_schedulingTimeZone + '" (at "' + path_schedulingTimeZone + '")');
|
|
989
|
+
}
|
|
990
|
+
})();
|
|
991
|
+
if (obj_schedulingTimeZone_union0_error != null) {
|
|
992
|
+
obj_schedulingTimeZone_union0 = obj_schedulingTimeZone_union0_error.message;
|
|
993
|
+
}
|
|
994
|
+
let obj_schedulingTimeZone_union1 = null;
|
|
995
|
+
const obj_schedulingTimeZone_union1_error = (() => {
|
|
996
|
+
if (obj_schedulingTimeZone !== null) {
|
|
997
|
+
return new TypeError('Expected "null" but received "' + typeof obj_schedulingTimeZone + '" (at "' + path_schedulingTimeZone + '")');
|
|
998
|
+
}
|
|
999
|
+
})();
|
|
1000
|
+
if (obj_schedulingTimeZone_union1_error != null) {
|
|
1001
|
+
obj_schedulingTimeZone_union1 = obj_schedulingTimeZone_union1_error.message;
|
|
1002
|
+
}
|
|
1003
|
+
if (obj_schedulingTimeZone_union0 && obj_schedulingTimeZone_union1) {
|
|
1004
|
+
let message = 'Object doesn\'t match union (at "' + path_schedulingTimeZone + '")';
|
|
1005
|
+
message += '\n' + obj_schedulingTimeZone_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1006
|
+
message += '\n' + obj_schedulingTimeZone_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1007
|
+
return new TypeError(message);
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
982
1010
|
if (obj.secondBoundValue !== undefined) {
|
|
983
1011
|
const obj_secondBoundValue = obj.secondBoundValue;
|
|
984
1012
|
const path_secondBoundValue = path + '.secondBoundValue';
|
|
@@ -1798,7 +1826,7 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1798
1826
|
}
|
|
1799
1827
|
|
|
1800
1828
|
const TTL$1 = 600;
|
|
1801
|
-
const VERSION$2 = "
|
|
1829
|
+
const VERSION$2 = "5dfecb0c18e6d8e4bff3b03d9e64fe32";
|
|
1802
1830
|
function validate$3(obj, path = 'PersonalizationPointRepresentation') {
|
|
1803
1831
|
const v_error = (() => {
|
|
1804
1832
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1972,6 +2000,32 @@ function validate$3(obj, path = 'PersonalizationPointRepresentation') {
|
|
|
1972
2000
|
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1973
2001
|
return new TypeError(message);
|
|
1974
2002
|
}
|
|
2003
|
+
const obj_isAuthenticationRequired = obj.isAuthenticationRequired;
|
|
2004
|
+
const path_isAuthenticationRequired = path + '.isAuthenticationRequired';
|
|
2005
|
+
let obj_isAuthenticationRequired_union0 = null;
|
|
2006
|
+
const obj_isAuthenticationRequired_union0_error = (() => {
|
|
2007
|
+
if (typeof obj_isAuthenticationRequired !== 'boolean') {
|
|
2008
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isAuthenticationRequired + '" (at "' + path_isAuthenticationRequired + '")');
|
|
2009
|
+
}
|
|
2010
|
+
})();
|
|
2011
|
+
if (obj_isAuthenticationRequired_union0_error != null) {
|
|
2012
|
+
obj_isAuthenticationRequired_union0 = obj_isAuthenticationRequired_union0_error.message;
|
|
2013
|
+
}
|
|
2014
|
+
let obj_isAuthenticationRequired_union1 = null;
|
|
2015
|
+
const obj_isAuthenticationRequired_union1_error = (() => {
|
|
2016
|
+
if (obj_isAuthenticationRequired !== null) {
|
|
2017
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isAuthenticationRequired + '" (at "' + path_isAuthenticationRequired + '")');
|
|
2018
|
+
}
|
|
2019
|
+
})();
|
|
2020
|
+
if (obj_isAuthenticationRequired_union1_error != null) {
|
|
2021
|
+
obj_isAuthenticationRequired_union1 = obj_isAuthenticationRequired_union1_error.message;
|
|
2022
|
+
}
|
|
2023
|
+
if (obj_isAuthenticationRequired_union0 && obj_isAuthenticationRequired_union1) {
|
|
2024
|
+
let message = 'Object doesn\'t match union (at "' + path_isAuthenticationRequired + '")';
|
|
2025
|
+
message += '\n' + obj_isAuthenticationRequired_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2026
|
+
message += '\n' + obj_isAuthenticationRequired_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2027
|
+
return new TypeError(message);
|
|
2028
|
+
}
|
|
1975
2029
|
const obj_label = obj.label;
|
|
1976
2030
|
const path_label = path + '.label';
|
|
1977
2031
|
let obj_label_union0 = null;
|
|
@@ -2310,6 +2364,10 @@ const select$7 = function PersonalizationPointRepresentationSelect() {
|
|
|
2310
2364
|
name: 'id',
|
|
2311
2365
|
kind: 'Scalar'
|
|
2312
2366
|
},
|
|
2367
|
+
{
|
|
2368
|
+
name: 'isAuthenticationRequired',
|
|
2369
|
+
kind: 'Scalar'
|
|
2370
|
+
},
|
|
2313
2371
|
{
|
|
2314
2372
|
name: 'label',
|
|
2315
2373
|
kind: 'Scalar'
|
|
@@ -2412,6 +2470,11 @@ function equals$2(existing, incoming) {
|
|
|
2412
2470
|
if (!(existing_id === incoming_id)) {
|
|
2413
2471
|
return false;
|
|
2414
2472
|
}
|
|
2473
|
+
const existing_isAuthenticationRequired = existing.isAuthenticationRequired;
|
|
2474
|
+
const incoming_isAuthenticationRequired = incoming.isAuthenticationRequired;
|
|
2475
|
+
if (!(existing_isAuthenticationRequired === incoming_isAuthenticationRequired)) {
|
|
2476
|
+
return false;
|
|
2477
|
+
}
|
|
2415
2478
|
const existing_label = existing.label;
|
|
2416
2479
|
const incoming_label = incoming.label;
|
|
2417
2480
|
if (!(existing_label === incoming_label)) {
|
|
@@ -2541,6 +2604,7 @@ const createPersonalizationPoint_ConfigPropertyMetadata = [
|
|
|
2541
2604
|
generateParamConfigMetadata('schemaEnum', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2542
2605
|
generateParamConfigMetadata('schemaName', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2543
2606
|
generateParamConfigMetadata('source', true, 2 /* Body */, 0 /* String */),
|
|
2607
|
+
generateParamConfigMetadata('isAuthenticationRequired', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2544
2608
|
];
|
|
2545
2609
|
const createPersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createPersonalizationPoint_ConfigPropertyMetadata);
|
|
2546
2610
|
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$7(createPersonalizationPoint_ConfigPropertyMetadata);
|
|
@@ -2629,6 +2693,13 @@ function typeCheckConfig$6(untrustedConfig) {
|
|
|
2629
2693
|
if (untrustedConfig_schemaName === null) {
|
|
2630
2694
|
config.schemaName = untrustedConfig_schemaName;
|
|
2631
2695
|
}
|
|
2696
|
+
const untrustedConfig_isAuthenticationRequired = untrustedConfig.isAuthenticationRequired;
|
|
2697
|
+
if (typeof untrustedConfig_isAuthenticationRequired === 'boolean') {
|
|
2698
|
+
config.isAuthenticationRequired = untrustedConfig_isAuthenticationRequired;
|
|
2699
|
+
}
|
|
2700
|
+
if (untrustedConfig_isAuthenticationRequired === null) {
|
|
2701
|
+
config.isAuthenticationRequired = untrustedConfig_isAuthenticationRequired;
|
|
2702
|
+
}
|
|
2632
2703
|
return config;
|
|
2633
2704
|
}
|
|
2634
2705
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -3949,6 +4020,7 @@ const updatePersonalizationPoint_ConfigPropertyMetadata = [
|
|
|
3949
4020
|
generateParamConfigMetadata('schemaEnum', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3950
4021
|
generateParamConfigMetadata('schemaName', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3951
4022
|
generateParamConfigMetadata('source', true, 2 /* Body */, 0 /* String */),
|
|
4023
|
+
generateParamConfigMetadata('isAuthenticationRequired', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3952
4024
|
];
|
|
3953
4025
|
const updatePersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updatePersonalizationPoint_ConfigPropertyMetadata);
|
|
3954
4026
|
const createResourceParams = /*#__PURE__*/ createResourceParams$7(updatePersonalizationPoint_ConfigPropertyMetadata);
|
|
@@ -4037,6 +4109,13 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
4037
4109
|
if (untrustedConfig_schemaName === null) {
|
|
4038
4110
|
config.schemaName = untrustedConfig_schemaName;
|
|
4039
4111
|
}
|
|
4112
|
+
const untrustedConfig_isAuthenticationRequired = untrustedConfig.isAuthenticationRequired;
|
|
4113
|
+
if (typeof untrustedConfig_isAuthenticationRequired === 'boolean') {
|
|
4114
|
+
config.isAuthenticationRequired = untrustedConfig_isAuthenticationRequired;
|
|
4115
|
+
}
|
|
4116
|
+
if (untrustedConfig_isAuthenticationRequired === null) {
|
|
4117
|
+
config.isAuthenticationRequired = untrustedConfig_isAuthenticationRequired;
|
|
4118
|
+
}
|
|
4040
4119
|
return config;
|
|
4041
4120
|
}
|
|
4042
4121
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -4142,4 +4221,4 @@ withDefaultLuvio((luvio) => {
|
|
|
4142
4221
|
});
|
|
4143
4222
|
|
|
4144
4223
|
export { createPersonalizationPoint, createPersonalizationSchema, deletePersonalizationPoint, deletePersonalizationSchema, getPersonalizationPoint, getPersonalizationPoint_imperative, getPersonalizationSchema, getPersonalizationSchemaNotifyChange, getPersonalizationSchema_imperative, updatePersonalizationPoint };
|
|
4145
|
-
// version: 1.309.0-
|
|
4224
|
+
// version: 1.309.0-dev15-880a224b78
|
package/src/raml/api.raml
CHANGED
|
@@ -239,6 +239,13 @@ types:
|
|
|
239
239
|
required: false
|
|
240
240
|
description: Rule Time Zone
|
|
241
241
|
type: string | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
|
|
242
|
+
schedulingTimeZone:
|
|
243
|
+
required: false
|
|
244
|
+
description: Scheduling Time Zone
|
|
245
|
+
type: string | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
|
|
246
|
+
enum:
|
|
247
|
+
- Organization
|
|
248
|
+
- Recipient
|
|
242
249
|
secondBoundValue:
|
|
243
250
|
required: false
|
|
244
251
|
description: Second Bound Value
|
|
@@ -508,6 +515,10 @@ types:
|
|
|
508
515
|
- ExperienceBuilder
|
|
509
516
|
- FlowBuilder
|
|
510
517
|
- PersonalizationApp
|
|
518
|
+
isAuthenticationRequired:
|
|
519
|
+
required: false # https://salesforce-internal.slack.com/archives/C5WMAFS02/p1718348083566229
|
|
520
|
+
description: Whether or not this personalization point requires the user executing it in the runtime to be authenticated
|
|
521
|
+
type: boolean | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
|
|
511
522
|
|
|
512
523
|
PersonalizationPointRepresentation: #Hand-rolled issue #24 in (https://salesforce.quip.com/NxVhAkxL6RTW)
|
|
513
524
|
description: Personalization Point Output Representation
|
|
@@ -593,7 +604,9 @@ types:
|
|
|
593
604
|
- Deleting
|
|
594
605
|
- EditError
|
|
595
606
|
- Processing
|
|
596
|
-
|
|
607
|
+
isAuthenticationRequired:
|
|
608
|
+
description: Whether or not this personalization point requires the user executing it in the runtime to be authenticated
|
|
609
|
+
type: boolean | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
|
|
597
610
|
PersonalizationSchemaInputRepresentation: #Hand-rolled issue #24 in (https://salesforce.quip.com/NxVhAkxL6RTW)
|
|
598
611
|
description: Personalization Schema Input Representation
|
|
599
612
|
type: object
|