@salesforce/lds-adapters-cdp-personalization-service 1.404.0-dev1 → 1.404.0-dev11
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 +21 -10
- package/dist/es/es2018/types/src/generated/adapters/createPersonalizationExperiencesConfig.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/updatePersonalizationExperienceConfig.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/resources/postPersonalizationExternalAppsPersonalizationExperienceConfigsByIdOrAppSourceIdOrName.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/resources/putPersonalizationExternalAppsPersonalizationExperienceConfigsByIdOrAppSourceIdOrNameAndNameParam.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/types/PersonalizationExperienceConfigInputRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/PersonalizationExperienceConfigRepresentation.d.ts +3 -3
- package/package.json +3 -3
- package/sfdc/index.js +22 -11
- package/src/raml/api.raml +2 -0
|
@@ -5427,7 +5427,7 @@ function equals$2(existing, incoming) {
|
|
|
5427
5427
|
}
|
|
5428
5428
|
|
|
5429
5429
|
const TTL$1 = 600;
|
|
5430
|
-
const VERSION$1 = "
|
|
5430
|
+
const VERSION$1 = "a67f617f4400e4fe90ecd853358d75b4";
|
|
5431
5431
|
function validate$1(obj, path = 'PersonalizationExperienceConfigRepresentation') {
|
|
5432
5432
|
const v_error = (() => {
|
|
5433
5433
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5459,10 +5459,12 @@ function validate$1(obj, path = 'PersonalizationExperienceConfigRepresentation')
|
|
|
5459
5459
|
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
5460
5460
|
}
|
|
5461
5461
|
}
|
|
5462
|
-
|
|
5463
|
-
|
|
5464
|
-
|
|
5465
|
-
|
|
5462
|
+
if (obj.displayUrl !== undefined) {
|
|
5463
|
+
const obj_displayUrl = obj.displayUrl;
|
|
5464
|
+
const path_displayUrl = path + '.displayUrl';
|
|
5465
|
+
if (typeof obj_displayUrl !== 'string') {
|
|
5466
|
+
return new TypeError('Expected "string" but received "' + typeof obj_displayUrl + '" (at "' + path_displayUrl + '")');
|
|
5467
|
+
}
|
|
5466
5468
|
}
|
|
5467
5469
|
if (obj.id !== undefined) {
|
|
5468
5470
|
const obj_id = obj.id;
|
|
@@ -5570,7 +5572,8 @@ const select$5 = function PersonalizationExperienceConfigRepresentationSelect()
|
|
|
5570
5572
|
},
|
|
5571
5573
|
{
|
|
5572
5574
|
name: 'displayUrl',
|
|
5573
|
-
kind: 'Scalar'
|
|
5575
|
+
kind: 'Scalar',
|
|
5576
|
+
required: false
|
|
5574
5577
|
},
|
|
5575
5578
|
{
|
|
5576
5579
|
name: 'id',
|
|
@@ -5665,8 +5668,16 @@ function equals$1(existing, incoming) {
|
|
|
5665
5668
|
}
|
|
5666
5669
|
const existing_displayUrl = existing.displayUrl;
|
|
5667
5670
|
const incoming_displayUrl = incoming.displayUrl;
|
|
5668
|
-
if
|
|
5669
|
-
|
|
5671
|
+
// if at least one of these optionals is defined
|
|
5672
|
+
if (existing_displayUrl !== undefined || incoming_displayUrl !== undefined) {
|
|
5673
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
5674
|
+
// not equal
|
|
5675
|
+
if (existing_displayUrl === undefined || incoming_displayUrl === undefined) {
|
|
5676
|
+
return false;
|
|
5677
|
+
}
|
|
5678
|
+
if (!(existing_displayUrl === incoming_displayUrl)) {
|
|
5679
|
+
return false;
|
|
5680
|
+
}
|
|
5670
5681
|
}
|
|
5671
5682
|
const existing_id = existing.id;
|
|
5672
5683
|
const incoming_id = incoming.id;
|
|
@@ -6043,7 +6054,7 @@ const createPersonalizationExperiencesConfig_ConfigPropertyMetadata = [
|
|
|
6043
6054
|
generateParamConfigMetadata('idOrAppSourceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6044
6055
|
generateParamConfigMetadata('dataProvider', true, 2 /* Body */, 4 /* Unsupported */),
|
|
6045
6056
|
generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
|
|
6046
|
-
generateParamConfigMetadata('displayUrl',
|
|
6057
|
+
generateParamConfigMetadata('displayUrl', false, 2 /* Body */, 0 /* String */),
|
|
6047
6058
|
generateParamConfigMetadata('isEnabled', true, 2 /* Body */, 1 /* Boolean */),
|
|
6048
6059
|
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
6049
6060
|
generateParamConfigMetadata('lastModifiedDate', false, 2 /* Body */, 0 /* String */),
|
|
@@ -6401,7 +6412,7 @@ const updatePersonalizationExperienceConfig_ConfigPropertyMetadata = [
|
|
|
6401
6412
|
generateParamConfigMetadata('nameParam', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6402
6413
|
generateParamConfigMetadata('dataProvider', true, 2 /* Body */, 4 /* Unsupported */),
|
|
6403
6414
|
generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
|
|
6404
|
-
generateParamConfigMetadata('displayUrl',
|
|
6415
|
+
generateParamConfigMetadata('displayUrl', false, 2 /* Body */, 0 /* String */),
|
|
6405
6416
|
generateParamConfigMetadata('isEnabled', true, 2 /* Body */, 1 /* Boolean */),
|
|
6406
6417
|
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
6407
6418
|
generateParamConfigMetadata('lastModifiedDate', false, 2 /* Body */, 0 /* String */),
|
package/dist/es/es2018/types/src/generated/adapters/createPersonalizationExperiencesConfig.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface CreatePersonalizationExperiencesConfigConfig {
|
|
|
9
9
|
idOrAppSourceIdOrName: string;
|
|
10
10
|
dataProvider: unknown;
|
|
11
11
|
description: string;
|
|
12
|
-
displayUrl
|
|
12
|
+
displayUrl?: string;
|
|
13
13
|
isEnabled: boolean;
|
|
14
14
|
label: string;
|
|
15
15
|
lastModifiedDate?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
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
2
|
export declare const TTL = 600;
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "aacf009d6dea462f65007f4c4b8e3d9a";
|
|
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: PersonalizationExperienceConfigInputRepresentation, existing: PersonalizationExperienceConfigInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PersonalizationExperienceConfigInputRepresentationNormalized;
|
|
@@ -20,7 +20,7 @@ export interface PersonalizationExperienceConfigInputRepresentationNormalized {
|
|
|
20
20
|
/** Description of the Personalization Experience Config */
|
|
21
21
|
description: string;
|
|
22
22
|
/** When editing this configuration on the Website which page of the website should this configuration be displayed on if not the current page. */
|
|
23
|
-
displayUrl
|
|
23
|
+
displayUrl?: string;
|
|
24
24
|
/** Whether or not this particular configuration is enabled. */
|
|
25
25
|
isEnabled: boolean;
|
|
26
26
|
/** Label of the Personalization Experience Config */
|
|
@@ -45,7 +45,7 @@ export interface PersonalizationExperienceConfigInputRepresentationNormalized {
|
|
|
45
45
|
export interface PersonalizationExperienceConfigInputRepresentation {
|
|
46
46
|
dataProvider: unknown;
|
|
47
47
|
description: string;
|
|
48
|
-
displayUrl
|
|
48
|
+
displayUrl?: string;
|
|
49
49
|
isEnabled: boolean;
|
|
50
50
|
label: string;
|
|
51
51
|
lastModifiedDate?: string;
|
package/dist/es/es2018/types/src/generated/types/PersonalizationExperienceConfigRepresentation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
2
2
|
export declare const TTL = 600;
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "a67f617f4400e4fe90ecd853358d75b4";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
6
6
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -33,7 +33,7 @@ export interface PersonalizationExperienceConfigRepresentationNormalized {
|
|
|
33
33
|
/** Description of the Personalization Experience Config */
|
|
34
34
|
description?: string;
|
|
35
35
|
/** When editing this configuration on the Website which page of the website should this configuration be displayed on if not the current page. */
|
|
36
|
-
displayUrl
|
|
36
|
+
displayUrl?: string;
|
|
37
37
|
/** Id of the Personalization Experience Config */
|
|
38
38
|
id?: string;
|
|
39
39
|
/** Whether or not this particular configuration is enabled. */
|
|
@@ -64,7 +64,7 @@ export interface PersonalizationExperienceConfigRepresentation {
|
|
|
64
64
|
createdDate?: string;
|
|
65
65
|
dataProvider: unknown;
|
|
66
66
|
description?: string;
|
|
67
|
-
displayUrl
|
|
67
|
+
displayUrl?: string;
|
|
68
68
|
id?: string;
|
|
69
69
|
isEnabled: boolean;
|
|
70
70
|
label?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-cdp-personalization-service",
|
|
3
|
-
"version": "1.404.0-
|
|
3
|
+
"version": "1.404.0-dev11",
|
|
4
4
|
"description": "wire adapters for personalization service connect api",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/cdp-personalization-service.js",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"test:unit:debug": "node --inspect-brk ../../node_modules/.bin/jest --runInBand"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@salesforce/lds-bindings": "^1.404.0-
|
|
45
|
+
"@salesforce/lds-bindings": "^1.404.0-dev11"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@salesforce/lds-compiler-plugins": "^1.404.0-
|
|
48
|
+
"@salesforce/lds-compiler-plugins": "^1.404.0-dev11"
|
|
49
49
|
},
|
|
50
50
|
"nx": {
|
|
51
51
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -159,7 +159,7 @@ function createLink(ref) {
|
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
const TTL$7 = 600;
|
|
162
|
-
const VERSION$e = "
|
|
162
|
+
const VERSION$e = "a67f617f4400e4fe90ecd853358d75b4";
|
|
163
163
|
function validate$n(obj, path = 'PersonalizationExperienceConfigRepresentation') {
|
|
164
164
|
const v_error = (() => {
|
|
165
165
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -191,10 +191,12 @@ function validate$n(obj, path = 'PersonalizationExperienceConfigRepresentation')
|
|
|
191
191
|
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
194
|
+
if (obj.displayUrl !== undefined) {
|
|
195
|
+
const obj_displayUrl = obj.displayUrl;
|
|
196
|
+
const path_displayUrl = path + '.displayUrl';
|
|
197
|
+
if (typeof obj_displayUrl !== 'string') {
|
|
198
|
+
return new TypeError('Expected "string" but received "' + typeof obj_displayUrl + '" (at "' + path_displayUrl + '")');
|
|
199
|
+
}
|
|
198
200
|
}
|
|
199
201
|
if (obj.id !== undefined) {
|
|
200
202
|
const obj_id = obj.id;
|
|
@@ -302,7 +304,8 @@ const select$q = function PersonalizationExperienceConfigRepresentationSelect()
|
|
|
302
304
|
},
|
|
303
305
|
{
|
|
304
306
|
name: 'displayUrl',
|
|
305
|
-
kind: 'Scalar'
|
|
307
|
+
kind: 'Scalar',
|
|
308
|
+
required: false
|
|
306
309
|
},
|
|
307
310
|
{
|
|
308
311
|
name: 'id',
|
|
@@ -397,8 +400,16 @@ function equals$f(existing, incoming) {
|
|
|
397
400
|
}
|
|
398
401
|
const existing_displayUrl = existing.displayUrl;
|
|
399
402
|
const incoming_displayUrl = incoming.displayUrl;
|
|
400
|
-
if
|
|
401
|
-
|
|
403
|
+
// if at least one of these optionals is defined
|
|
404
|
+
if (existing_displayUrl !== undefined || incoming_displayUrl !== undefined) {
|
|
405
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
406
|
+
// not equal
|
|
407
|
+
if (existing_displayUrl === undefined || incoming_displayUrl === undefined) {
|
|
408
|
+
return false;
|
|
409
|
+
}
|
|
410
|
+
if (!(existing_displayUrl === incoming_displayUrl)) {
|
|
411
|
+
return false;
|
|
412
|
+
}
|
|
402
413
|
}
|
|
403
414
|
const existing_id = existing.id;
|
|
404
415
|
const incoming_id = incoming.id;
|
|
@@ -556,7 +567,7 @@ const createPersonalizationExperiencesConfig_ConfigPropertyMetadata = [
|
|
|
556
567
|
generateParamConfigMetadata('idOrAppSourceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
557
568
|
generateParamConfigMetadata('dataProvider', true, 2 /* Body */, 4 /* Unsupported */),
|
|
558
569
|
generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
|
|
559
|
-
generateParamConfigMetadata('displayUrl',
|
|
570
|
+
generateParamConfigMetadata('displayUrl', false, 2 /* Body */, 0 /* String */),
|
|
560
571
|
generateParamConfigMetadata('isEnabled', true, 2 /* Body */, 1 /* Boolean */),
|
|
561
572
|
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
562
573
|
generateParamConfigMetadata('lastModifiedDate', false, 2 /* Body */, 0 /* String */),
|
|
@@ -6299,7 +6310,7 @@ const updatePersonalizationExperienceConfig_ConfigPropertyMetadata = [
|
|
|
6299
6310
|
generateParamConfigMetadata('nameParam', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6300
6311
|
generateParamConfigMetadata('dataProvider', true, 2 /* Body */, 4 /* Unsupported */),
|
|
6301
6312
|
generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
|
|
6302
|
-
generateParamConfigMetadata('displayUrl',
|
|
6313
|
+
generateParamConfigMetadata('displayUrl', false, 2 /* Body */, 0 /* String */),
|
|
6303
6314
|
generateParamConfigMetadata('isEnabled', true, 2 /* Body */, 1 /* Boolean */),
|
|
6304
6315
|
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
6305
6316
|
generateParamConfigMetadata('lastModifiedDate', false, 2 /* Body */, 0 /* String */),
|
|
@@ -6696,4 +6707,4 @@ withDefaultLuvio((luvio) => {
|
|
|
6696
6707
|
});
|
|
6697
6708
|
|
|
6698
6709
|
export { createPersonalizationExperiencesConfig, createPersonalizationPoint, createPersonalizationSchema, deletePersonalizationExperienceConfig, deletePersonalizationPoint, deletePersonalizationSchema, getPersonalizationEsModelMapping, getPersonalizationEsModelMapping_imperative, getPersonalizationExperienceConfig, getPersonalizationExperienceConfigNotifyChange, getPersonalizationExperienceConfig_imperative, getPersonalizationExperiencesConfigs, getPersonalizationExperiencesConfigs_imperative, getPersonalizationPoint, getPersonalizationPoint_imperative, getPersonalizationSchema, getPersonalizationSchemaNotifyChange, getPersonalizationSchema_imperative, getTrainingHistory, getTrainingHistory_imperative, postPersonalizationRecommenderSimulateAction, postPersonalizationRecommenderSimulateAction_imperative, updatePersonalizationExperienceConfig, updatePersonalizationPoint };
|
|
6699
|
-
// version: 1.404.0-
|
|
6710
|
+
// version: 1.404.0-dev11-efd5bd34f5
|
package/src/raml/api.raml
CHANGED
|
@@ -1267,6 +1267,7 @@ types:
|
|
|
1267
1267
|
the website should this configuration be displayed on if not the current
|
|
1268
1268
|
page.
|
|
1269
1269
|
type: string
|
|
1270
|
+
required: false
|
|
1270
1271
|
isEnabled:
|
|
1271
1272
|
description: Whether or not this particular configuration is enabled.
|
|
1272
1273
|
type: boolean
|
|
@@ -1334,6 +1335,7 @@ types:
|
|
|
1334
1335
|
the website should this configuration be displayed on if not the current
|
|
1335
1336
|
page.
|
|
1336
1337
|
type: string
|
|
1338
|
+
required: false
|
|
1337
1339
|
id:
|
|
1338
1340
|
description: Id of the Personalization Experience Config
|
|
1339
1341
|
type: string
|