@salesforce/lds-adapters-cdp-personalization-service 1.309.0-dev16 → 1.309.0-dev18
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 +52 -1
- 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/ABnExperimentInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/ABnExperimentRepresentation.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 +53 -2
- package/src/raml/api.raml +14 -0
|
@@ -1816,7 +1816,7 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1816
1816
|
}
|
|
1817
1817
|
|
|
1818
1818
|
const TTL$1 = 600;
|
|
1819
|
-
const VERSION$2 = "
|
|
1819
|
+
const VERSION$2 = "92ab7a7ebeebff9a24d3950bbfea7094";
|
|
1820
1820
|
function validate$3(obj, path = 'PersonalizationPointRepresentation') {
|
|
1821
1821
|
const v_error = (() => {
|
|
1822
1822
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -2255,6 +2255,32 @@ function validate$3(obj, path = 'PersonalizationPointRepresentation') {
|
|
|
2255
2255
|
if (typeof obj_source !== 'string') {
|
|
2256
2256
|
return new TypeError('Expected "string" but received "' + typeof obj_source + '" (at "' + path_source + '")');
|
|
2257
2257
|
}
|
|
2258
|
+
const obj_sourceRecordId = obj.sourceRecordId;
|
|
2259
|
+
const path_sourceRecordId = path + '.sourceRecordId';
|
|
2260
|
+
let obj_sourceRecordId_union0 = null;
|
|
2261
|
+
const obj_sourceRecordId_union0_error = (() => {
|
|
2262
|
+
if (typeof obj_sourceRecordId !== 'string') {
|
|
2263
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sourceRecordId + '" (at "' + path_sourceRecordId + '")');
|
|
2264
|
+
}
|
|
2265
|
+
})();
|
|
2266
|
+
if (obj_sourceRecordId_union0_error != null) {
|
|
2267
|
+
obj_sourceRecordId_union0 = obj_sourceRecordId_union0_error.message;
|
|
2268
|
+
}
|
|
2269
|
+
let obj_sourceRecordId_union1 = null;
|
|
2270
|
+
const obj_sourceRecordId_union1_error = (() => {
|
|
2271
|
+
if (obj_sourceRecordId !== null) {
|
|
2272
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sourceRecordId + '" (at "' + path_sourceRecordId + '")');
|
|
2273
|
+
}
|
|
2274
|
+
})();
|
|
2275
|
+
if (obj_sourceRecordId_union1_error != null) {
|
|
2276
|
+
obj_sourceRecordId_union1 = obj_sourceRecordId_union1_error.message;
|
|
2277
|
+
}
|
|
2278
|
+
if (obj_sourceRecordId_union0 && obj_sourceRecordId_union1) {
|
|
2279
|
+
let message = 'Object doesn\'t match union (at "' + path_sourceRecordId + '")';
|
|
2280
|
+
message += '\n' + obj_sourceRecordId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2281
|
+
message += '\n' + obj_sourceRecordId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2282
|
+
return new TypeError(message);
|
|
2283
|
+
}
|
|
2258
2284
|
const obj_status = obj.status;
|
|
2259
2285
|
const path_status = path + '.status';
|
|
2260
2286
|
if (typeof obj_status !== 'string') {
|
|
@@ -2398,6 +2424,10 @@ const select$7 = function PersonalizationPointRepresentationSelect() {
|
|
|
2398
2424
|
name: 'source',
|
|
2399
2425
|
kind: 'Scalar'
|
|
2400
2426
|
},
|
|
2427
|
+
{
|
|
2428
|
+
name: 'sourceRecordId',
|
|
2429
|
+
kind: 'Scalar'
|
|
2430
|
+
},
|
|
2401
2431
|
{
|
|
2402
2432
|
name: 'status',
|
|
2403
2433
|
kind: 'Scalar'
|
|
@@ -2510,6 +2540,11 @@ function equals$2(existing, incoming) {
|
|
|
2510
2540
|
if (!(existing_schemaName === incoming_schemaName)) {
|
|
2511
2541
|
return false;
|
|
2512
2542
|
}
|
|
2543
|
+
const existing_sourceRecordId = existing.sourceRecordId;
|
|
2544
|
+
const incoming_sourceRecordId = incoming.sourceRecordId;
|
|
2545
|
+
if (!(existing_sourceRecordId === incoming_sourceRecordId)) {
|
|
2546
|
+
return false;
|
|
2547
|
+
}
|
|
2513
2548
|
const existing_url = existing.url;
|
|
2514
2549
|
const incoming_url = incoming.url;
|
|
2515
2550
|
if (!(existing_url === incoming_url)) {
|
|
@@ -2595,6 +2630,7 @@ const createPersonalizationPoint_ConfigPropertyMetadata = [
|
|
|
2595
2630
|
generateParamConfigMetadata('schemaName', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2596
2631
|
generateParamConfigMetadata('source', true, 2 /* Body */, 0 /* String */),
|
|
2597
2632
|
generateParamConfigMetadata('isAuthenticationRequired', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2633
|
+
generateParamConfigMetadata('sourceRecordId', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2598
2634
|
];
|
|
2599
2635
|
const createPersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createPersonalizationPoint_ConfigPropertyMetadata);
|
|
2600
2636
|
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$7(createPersonalizationPoint_ConfigPropertyMetadata);
|
|
@@ -2690,6 +2726,13 @@ function typeCheckConfig$6(untrustedConfig) {
|
|
|
2690
2726
|
if (untrustedConfig_isAuthenticationRequired === null) {
|
|
2691
2727
|
config.isAuthenticationRequired = untrustedConfig_isAuthenticationRequired;
|
|
2692
2728
|
}
|
|
2729
|
+
const untrustedConfig_sourceRecordId = untrustedConfig.sourceRecordId;
|
|
2730
|
+
if (typeof untrustedConfig_sourceRecordId === 'string') {
|
|
2731
|
+
config.sourceRecordId = untrustedConfig_sourceRecordId;
|
|
2732
|
+
}
|
|
2733
|
+
if (untrustedConfig_sourceRecordId === null) {
|
|
2734
|
+
config.sourceRecordId = untrustedConfig_sourceRecordId;
|
|
2735
|
+
}
|
|
2693
2736
|
return config;
|
|
2694
2737
|
}
|
|
2695
2738
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -3011,6 +3054,7 @@ const updatePersonalizationPoint_ConfigPropertyMetadata = [
|
|
|
3011
3054
|
generateParamConfigMetadata('schemaName', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3012
3055
|
generateParamConfigMetadata('source', true, 2 /* Body */, 0 /* String */),
|
|
3013
3056
|
generateParamConfigMetadata('isAuthenticationRequired', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3057
|
+
generateParamConfigMetadata('sourceRecordId', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3014
3058
|
];
|
|
3015
3059
|
const updatePersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, updatePersonalizationPoint_ConfigPropertyMetadata);
|
|
3016
3060
|
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$7(updatePersonalizationPoint_ConfigPropertyMetadata);
|
|
@@ -3106,6 +3150,13 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
3106
3150
|
if (untrustedConfig_isAuthenticationRequired === null) {
|
|
3107
3151
|
config.isAuthenticationRequired = untrustedConfig_isAuthenticationRequired;
|
|
3108
3152
|
}
|
|
3153
|
+
const untrustedConfig_sourceRecordId = untrustedConfig.sourceRecordId;
|
|
3154
|
+
if (typeof untrustedConfig_sourceRecordId === 'string') {
|
|
3155
|
+
config.sourceRecordId = untrustedConfig_sourceRecordId;
|
|
3156
|
+
}
|
|
3157
|
+
if (untrustedConfig_sourceRecordId === null) {
|
|
3158
|
+
config.sourceRecordId = untrustedConfig_sourceRecordId;
|
|
3159
|
+
}
|
|
3109
3160
|
return config;
|
|
3110
3161
|
}
|
|
3111
3162
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -20,6 +20,7 @@ export interface CreatePersonalizationPointConfig {
|
|
|
20
20
|
schemaName?: string | null;
|
|
21
21
|
source: string;
|
|
22
22
|
isAuthenticationRequired?: boolean | null;
|
|
23
|
+
sourceRecordId?: string | null;
|
|
23
24
|
}
|
|
24
25
|
export declare const createResourceParams: (config: CreatePersonalizationPointConfig) => resources_postPersonalizationPersonalizationPoints_ResourceRequestConfig;
|
|
25
26
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreatePersonalizationPointConfig>): adapter$45$utils_Untrusted<CreatePersonalizationPointConfig>;
|
|
@@ -21,6 +21,7 @@ export interface UpdatePersonalizationPointConfig {
|
|
|
21
21
|
schemaName?: string | null;
|
|
22
22
|
source: string;
|
|
23
23
|
isAuthenticationRequired?: boolean | null;
|
|
24
|
+
sourceRecordId?: string | null;
|
|
24
25
|
}
|
|
25
26
|
export declare const createResourceParams: (config: UpdatePersonalizationPointConfig) => resources_putPersonalizationPersonalizationPointsByIdOrName_ResourceRequestConfig;
|
|
26
27
|
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
|
@@ -16,6 +16,7 @@ export interface ResourceRequestConfig {
|
|
|
16
16
|
schemaName?: string | null;
|
|
17
17
|
source: string;
|
|
18
18
|
isAuthenticationRequired?: boolean | null;
|
|
19
|
+
sourceRecordId?: string | null;
|
|
19
20
|
};
|
|
20
21
|
}
|
|
21
22
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
@@ -19,6 +19,7 @@ export interface ResourceRequestConfig {
|
|
|
19
19
|
schemaName?: string | null;
|
|
20
20
|
source: string;
|
|
21
21
|
isAuthenticationRequired?: boolean | null;
|
|
22
|
+
sourceRecordId?: string | null;
|
|
22
23
|
};
|
|
23
24
|
}
|
|
24
25
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
@@ -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 = "
|
|
2
|
+
export declare const VERSION = "a56bb0d42301a5d7f113622bcd19f53f";
|
|
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: ABnExperimentInputRepresentation, existing: ABnExperimentInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ABnExperimentInputRepresentationNormalized;
|
|
@@ -32,6 +32,8 @@ export interface ABnExperimentInputRepresentationNormalized {
|
|
|
32
32
|
schemaName: string | null;
|
|
33
33
|
/** Experiment source */
|
|
34
34
|
source: string;
|
|
35
|
+
/** A record which created this Personalization Point and which is responsible for maintaining it. What type of object this is depends on the Source. */
|
|
36
|
+
sourceRecordId?: string | null;
|
|
35
37
|
}
|
|
36
38
|
/**
|
|
37
39
|
* ABn Experiment Input Representation
|
|
@@ -49,4 +51,5 @@ export interface ABnExperimentInputRepresentation {
|
|
|
49
51
|
schemaEnum: string | null;
|
|
50
52
|
schemaName: string | null;
|
|
51
53
|
source: string;
|
|
54
|
+
sourceRecordId?: string | null;
|
|
52
55
|
}
|
|
@@ -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 = "
|
|
2
|
+
export declare const VERSION = "b76725b68a2a994ab2dd2b1a58b80207";
|
|
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: ABnExperimentRepresentation, existing: ABnExperimentRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ABnExperimentRepresentationNormalized;
|
|
@@ -40,6 +40,8 @@ export interface ABnExperimentRepresentationNormalized {
|
|
|
40
40
|
schemaName: string | null;
|
|
41
41
|
/** Where this experiment was created */
|
|
42
42
|
source: string;
|
|
43
|
+
/** A record which created this Personalization Point and which is responsible for maintaining it. What type of object this is depends on the Source. */
|
|
44
|
+
sourceRecordId: string | null;
|
|
43
45
|
/** Started date */
|
|
44
46
|
startedDate: string | null;
|
|
45
47
|
/** Experiment state */
|
|
@@ -71,6 +73,7 @@ export interface ABnExperimentRepresentation {
|
|
|
71
73
|
schemaEnum: string | null;
|
|
72
74
|
schemaName: string | null;
|
|
73
75
|
source: string;
|
|
76
|
+
sourceRecordId: string | null;
|
|
74
77
|
startedDate: string | null;
|
|
75
78
|
state: string;
|
|
76
79
|
status: string;
|
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 = "f6dccac49f66810ad4c3c3109b19cacb";
|
|
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;
|
|
@@ -41,6 +41,8 @@ export interface PersonalizationPointInputRepresentationNormalized {
|
|
|
41
41
|
schemaName?: string | null;
|
|
42
42
|
/** Personalization Point source */
|
|
43
43
|
source: string;
|
|
44
|
+
/** A record which created this Personalization Point and which is responsible for maintaining it. What type of object this is depends on the Source. */
|
|
45
|
+
sourceRecordId?: string | null;
|
|
44
46
|
}
|
|
45
47
|
/**
|
|
46
48
|
* Personalization Point Input Representation
|
|
@@ -62,4 +64,5 @@ export interface PersonalizationPointInputRepresentation {
|
|
|
62
64
|
schemaEnum?: string | null;
|
|
63
65
|
schemaName?: string | null;
|
|
64
66
|
source: string;
|
|
67
|
+
sourceRecordId?: string | null;
|
|
65
68
|
}
|
|
@@ -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 = "92ab7a7ebeebff9a24d3950bbfea7094";
|
|
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 {
|
|
@@ -70,6 +70,8 @@ export interface PersonalizationPointRepresentationNormalized {
|
|
|
70
70
|
schemaName: string | null;
|
|
71
71
|
/** Personalization Point source */
|
|
72
72
|
source: string;
|
|
73
|
+
/** A record which created this Personalization Point and which is responsible for maintaining it. What type of object this is depends on the Source. */
|
|
74
|
+
sourceRecordId: string | null;
|
|
73
75
|
/** Personalization Point status */
|
|
74
76
|
status: string;
|
|
75
77
|
/** Url */
|
|
@@ -100,6 +102,7 @@ export interface PersonalizationPointRepresentation {
|
|
|
100
102
|
schemaEnum: string | null;
|
|
101
103
|
schemaName: string | null;
|
|
102
104
|
source: string;
|
|
105
|
+
sourceRecordId: string | null;
|
|
103
106
|
status: string;
|
|
104
107
|
url: string | null;
|
|
105
108
|
}
|
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-dev18",
|
|
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-dev18"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@salesforce/lds-compiler-plugins": "^1.309.0-
|
|
47
|
+
"@salesforce/lds-compiler-plugins": "^1.309.0-dev18"
|
|
48
48
|
},
|
|
49
49
|
"nx": {
|
|
50
50
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -1826,7 +1826,7 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1826
1826
|
}
|
|
1827
1827
|
|
|
1828
1828
|
const TTL$1 = 600;
|
|
1829
|
-
const VERSION$2 = "
|
|
1829
|
+
const VERSION$2 = "92ab7a7ebeebff9a24d3950bbfea7094";
|
|
1830
1830
|
function validate$3(obj, path = 'PersonalizationPointRepresentation') {
|
|
1831
1831
|
const v_error = (() => {
|
|
1832
1832
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -2265,6 +2265,32 @@ function validate$3(obj, path = 'PersonalizationPointRepresentation') {
|
|
|
2265
2265
|
if (typeof obj_source !== 'string') {
|
|
2266
2266
|
return new TypeError('Expected "string" but received "' + typeof obj_source + '" (at "' + path_source + '")');
|
|
2267
2267
|
}
|
|
2268
|
+
const obj_sourceRecordId = obj.sourceRecordId;
|
|
2269
|
+
const path_sourceRecordId = path + '.sourceRecordId';
|
|
2270
|
+
let obj_sourceRecordId_union0 = null;
|
|
2271
|
+
const obj_sourceRecordId_union0_error = (() => {
|
|
2272
|
+
if (typeof obj_sourceRecordId !== 'string') {
|
|
2273
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sourceRecordId + '" (at "' + path_sourceRecordId + '")');
|
|
2274
|
+
}
|
|
2275
|
+
})();
|
|
2276
|
+
if (obj_sourceRecordId_union0_error != null) {
|
|
2277
|
+
obj_sourceRecordId_union0 = obj_sourceRecordId_union0_error.message;
|
|
2278
|
+
}
|
|
2279
|
+
let obj_sourceRecordId_union1 = null;
|
|
2280
|
+
const obj_sourceRecordId_union1_error = (() => {
|
|
2281
|
+
if (obj_sourceRecordId !== null) {
|
|
2282
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sourceRecordId + '" (at "' + path_sourceRecordId + '")');
|
|
2283
|
+
}
|
|
2284
|
+
})();
|
|
2285
|
+
if (obj_sourceRecordId_union1_error != null) {
|
|
2286
|
+
obj_sourceRecordId_union1 = obj_sourceRecordId_union1_error.message;
|
|
2287
|
+
}
|
|
2288
|
+
if (obj_sourceRecordId_union0 && obj_sourceRecordId_union1) {
|
|
2289
|
+
let message = 'Object doesn\'t match union (at "' + path_sourceRecordId + '")';
|
|
2290
|
+
message += '\n' + obj_sourceRecordId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2291
|
+
message += '\n' + obj_sourceRecordId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2292
|
+
return new TypeError(message);
|
|
2293
|
+
}
|
|
2268
2294
|
const obj_status = obj.status;
|
|
2269
2295
|
const path_status = path + '.status';
|
|
2270
2296
|
if (typeof obj_status !== 'string') {
|
|
@@ -2408,6 +2434,10 @@ const select$7 = function PersonalizationPointRepresentationSelect() {
|
|
|
2408
2434
|
name: 'source',
|
|
2409
2435
|
kind: 'Scalar'
|
|
2410
2436
|
},
|
|
2437
|
+
{
|
|
2438
|
+
name: 'sourceRecordId',
|
|
2439
|
+
kind: 'Scalar'
|
|
2440
|
+
},
|
|
2411
2441
|
{
|
|
2412
2442
|
name: 'status',
|
|
2413
2443
|
kind: 'Scalar'
|
|
@@ -2520,6 +2550,11 @@ function equals$2(existing, incoming) {
|
|
|
2520
2550
|
if (!(existing_schemaName === incoming_schemaName)) {
|
|
2521
2551
|
return false;
|
|
2522
2552
|
}
|
|
2553
|
+
const existing_sourceRecordId = existing.sourceRecordId;
|
|
2554
|
+
const incoming_sourceRecordId = incoming.sourceRecordId;
|
|
2555
|
+
if (!(existing_sourceRecordId === incoming_sourceRecordId)) {
|
|
2556
|
+
return false;
|
|
2557
|
+
}
|
|
2523
2558
|
const existing_url = existing.url;
|
|
2524
2559
|
const incoming_url = incoming.url;
|
|
2525
2560
|
if (!(existing_url === incoming_url)) {
|
|
@@ -2605,6 +2640,7 @@ const createPersonalizationPoint_ConfigPropertyMetadata = [
|
|
|
2605
2640
|
generateParamConfigMetadata('schemaName', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2606
2641
|
generateParamConfigMetadata('source', true, 2 /* Body */, 0 /* String */),
|
|
2607
2642
|
generateParamConfigMetadata('isAuthenticationRequired', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2643
|
+
generateParamConfigMetadata('sourceRecordId', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2608
2644
|
];
|
|
2609
2645
|
const createPersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createPersonalizationPoint_ConfigPropertyMetadata);
|
|
2610
2646
|
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$7(createPersonalizationPoint_ConfigPropertyMetadata);
|
|
@@ -2700,6 +2736,13 @@ function typeCheckConfig$6(untrustedConfig) {
|
|
|
2700
2736
|
if (untrustedConfig_isAuthenticationRequired === null) {
|
|
2701
2737
|
config.isAuthenticationRequired = untrustedConfig_isAuthenticationRequired;
|
|
2702
2738
|
}
|
|
2739
|
+
const untrustedConfig_sourceRecordId = untrustedConfig.sourceRecordId;
|
|
2740
|
+
if (typeof untrustedConfig_sourceRecordId === 'string') {
|
|
2741
|
+
config.sourceRecordId = untrustedConfig_sourceRecordId;
|
|
2742
|
+
}
|
|
2743
|
+
if (untrustedConfig_sourceRecordId === null) {
|
|
2744
|
+
config.sourceRecordId = untrustedConfig_sourceRecordId;
|
|
2745
|
+
}
|
|
2703
2746
|
return config;
|
|
2704
2747
|
}
|
|
2705
2748
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -4021,6 +4064,7 @@ const updatePersonalizationPoint_ConfigPropertyMetadata = [
|
|
|
4021
4064
|
generateParamConfigMetadata('schemaName', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4022
4065
|
generateParamConfigMetadata('source', true, 2 /* Body */, 0 /* String */),
|
|
4023
4066
|
generateParamConfigMetadata('isAuthenticationRequired', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4067
|
+
generateParamConfigMetadata('sourceRecordId', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4024
4068
|
];
|
|
4025
4069
|
const updatePersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updatePersonalizationPoint_ConfigPropertyMetadata);
|
|
4026
4070
|
const createResourceParams = /*#__PURE__*/ createResourceParams$7(updatePersonalizationPoint_ConfigPropertyMetadata);
|
|
@@ -4116,6 +4160,13 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
4116
4160
|
if (untrustedConfig_isAuthenticationRequired === null) {
|
|
4117
4161
|
config.isAuthenticationRequired = untrustedConfig_isAuthenticationRequired;
|
|
4118
4162
|
}
|
|
4163
|
+
const untrustedConfig_sourceRecordId = untrustedConfig.sourceRecordId;
|
|
4164
|
+
if (typeof untrustedConfig_sourceRecordId === 'string') {
|
|
4165
|
+
config.sourceRecordId = untrustedConfig_sourceRecordId;
|
|
4166
|
+
}
|
|
4167
|
+
if (untrustedConfig_sourceRecordId === null) {
|
|
4168
|
+
config.sourceRecordId = untrustedConfig_sourceRecordId;
|
|
4169
|
+
}
|
|
4119
4170
|
return config;
|
|
4120
4171
|
}
|
|
4121
4172
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -4221,4 +4272,4 @@ withDefaultLuvio((luvio) => {
|
|
|
4221
4272
|
});
|
|
4222
4273
|
|
|
4223
4274
|
export { createPersonalizationPoint, createPersonalizationSchema, deletePersonalizationPoint, deletePersonalizationSchema, getPersonalizationPoint, getPersonalizationPoint_imperative, getPersonalizationSchema, getPersonalizationSchemaNotifyChange, getPersonalizationSchema_imperative, updatePersonalizationPoint };
|
|
4224
|
-
// version: 1.309.0-
|
|
4275
|
+
// version: 1.309.0-dev18-8649efafcc
|
package/src/raml/api.raml
CHANGED
|
@@ -98,6 +98,10 @@ types:
|
|
|
98
98
|
- ExperienceBuilder
|
|
99
99
|
- FlowBuilder
|
|
100
100
|
- PersonalizationApp
|
|
101
|
+
sourceRecordId:
|
|
102
|
+
required: false # https://salesforce-internal.slack.com/archives/C5WMAFS02/p1718348083566229
|
|
103
|
+
description: A record which created this Personalization Point and which is responsible for maintaining it. What type of object this is depends on the Source.
|
|
104
|
+
type: string | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
|
|
101
105
|
ABnExperimentRepresentation: #Hand-rolled issue #24 in (https://salesforce.quip.com/NxVhAkxL6RTW)
|
|
102
106
|
description: ABn Experiment Output Representation
|
|
103
107
|
type: object
|
|
@@ -178,6 +182,9 @@ types:
|
|
|
178
182
|
stoppedDate:
|
|
179
183
|
description: Stopped date
|
|
180
184
|
type: string | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
|
|
185
|
+
sourceRecordId:
|
|
186
|
+
description: A record which created this Personalization Point and which is responsible for maintaining it. What type of object this is depends on the Source.
|
|
187
|
+
type: string | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
|
|
181
188
|
CriteriaRepresentation:
|
|
182
189
|
description: Personalization Decision Criteria Output Representation
|
|
183
190
|
type: object
|
|
@@ -519,6 +526,10 @@ types:
|
|
|
519
526
|
required: false # https://salesforce-internal.slack.com/archives/C5WMAFS02/p1718348083566229
|
|
520
527
|
description: Whether or not this personalization point requires the user executing it in the runtime to be authenticated
|
|
521
528
|
type: boolean | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
|
|
529
|
+
sourceRecordId:
|
|
530
|
+
required: false # https://salesforce-internal.slack.com/archives/C5WMAFS02/p1718348083566229
|
|
531
|
+
description: A record which created this Personalization Point and which is responsible for maintaining it. What type of object this is depends on the Source.
|
|
532
|
+
type: string | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
|
|
522
533
|
|
|
523
534
|
PersonalizationPointRepresentation: #Hand-rolled issue #24 in (https://salesforce.quip.com/NxVhAkxL6RTW)
|
|
524
535
|
description: Personalization Point Output Representation
|
|
@@ -607,6 +618,9 @@ types:
|
|
|
607
618
|
isAuthenticationRequired:
|
|
608
619
|
description: Whether or not this personalization point requires the user executing it in the runtime to be authenticated
|
|
609
620
|
type: boolean | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
|
|
621
|
+
sourceRecordId:
|
|
622
|
+
description: A record which created this Personalization Point and which is responsible for maintaining it. What type of object this is depends on the Source.
|
|
623
|
+
type: string | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
|
|
610
624
|
PersonalizationSchemaInputRepresentation: #Hand-rolled issue #24 in (https://salesforce.quip.com/NxVhAkxL6RTW)
|
|
611
625
|
description: Personalization Schema Input Representation
|
|
612
626
|
type: object
|