@salesforce/lds-adapters-cdp-personalization-service 1.308.0-dev4 → 1.308.0-dev6
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.
|
@@ -636,31 +636,33 @@ function validate$7(obj, path = 'SubjectRepresentation') {
|
|
|
636
636
|
return new TypeError(message);
|
|
637
637
|
}
|
|
638
638
|
}
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
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;
|
|
645
650
|
}
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
if (
|
|
653
|
-
|
|
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);
|
|
654
665
|
}
|
|
655
|
-
})();
|
|
656
|
-
if (obj_objectApiName_union1_error != null) {
|
|
657
|
-
obj_objectApiName_union1 = obj_objectApiName_union1_error.message;
|
|
658
|
-
}
|
|
659
|
-
if (obj_objectApiName_union0 && obj_objectApiName_union1) {
|
|
660
|
-
let message = 'Object doesn\'t match union (at "' + path_objectApiName + '")';
|
|
661
|
-
message += '\n' + obj_objectApiName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
662
|
-
message += '\n' + obj_objectApiName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
663
|
-
return new TypeError(message);
|
|
664
666
|
}
|
|
665
667
|
if (obj.objectLabel !== undefined) {
|
|
666
668
|
const obj_objectLabel = obj.objectLabel;
|
|
@@ -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 = "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
|
|
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
|
|
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.308.0-dev6",
|
|
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.308.0-dev6"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@salesforce/lds-compiler-plugins": "^1.308.0-
|
|
47
|
+
"@salesforce/lds-compiler-plugins": "^1.308.0-dev6"
|
|
48
48
|
},
|
|
49
49
|
"nx": {
|
|
50
50
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -646,31 +646,33 @@ function validate$7(obj, path = 'SubjectRepresentation') {
|
|
|
646
646
|
return new TypeError(message);
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
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;
|
|
655
660
|
}
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
if (
|
|
663
|
-
|
|
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);
|
|
664
675
|
}
|
|
665
|
-
})();
|
|
666
|
-
if (obj_objectApiName_union1_error != null) {
|
|
667
|
-
obj_objectApiName_union1 = obj_objectApiName_union1_error.message;
|
|
668
|
-
}
|
|
669
|
-
if (obj_objectApiName_union0 && obj_objectApiName_union1) {
|
|
670
|
-
let message = 'Object doesn\'t match union (at "' + path_objectApiName + '")';
|
|
671
|
-
message += '\n' + obj_objectApiName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
672
|
-
message += '\n' + obj_objectApiName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
673
|
-
return new TypeError(message);
|
|
674
676
|
}
|
|
675
677
|
if (obj.objectLabel !== undefined) {
|
|
676
678
|
const obj_objectLabel = obj.objectLabel;
|
|
@@ -4077,4 +4079,4 @@ withDefaultLuvio((luvio) => {
|
|
|
4077
4079
|
});
|
|
4078
4080
|
|
|
4079
4081
|
export { createPersonalizationPoint, createPersonalizationSchema, deletePersonalizationPoint, deletePersonalizationSchema, getPersonalizationPoint, getPersonalizationPoint_imperative, getPersonalizationSchema, getPersonalizationSchemaNotifyChange, getPersonalizationSchema_imperative, updatePersonalizationPoint };
|
|
4080
|
-
// version: 1.308.0-
|
|
4082
|
+
// version: 1.308.0-dev6-76d7a63e29
|
package/src/raml/api.raml
CHANGED
|
@@ -686,6 +686,7 @@ types:
|
|
|
686
686
|
description: Field Label
|
|
687
687
|
type: string | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
|
|
688
688
|
objectApiName:
|
|
689
|
+
required: false
|
|
689
690
|
description: Object API Name
|
|
690
691
|
type: string | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
|
|
691
692
|
objectLabel:
|