@salesforce/lds-adapters-cdp-personalization-service 1.299.0
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/LICENSE.txt +82 -0
- package/dist/es/es2018/cdp-personalization-service.js +2067 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/createPersonalizationPoint.d.ts +25 -0
- package/dist/es/es2018/types/src/generated/adapters/deletePersonalizationPoint.d.ts +14 -0
- package/dist/es/es2018/types/src/generated/adapters/getPersonalizationPoint.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/updatePersonalizationPoint.d.ts +26 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +6 -0
- package/dist/es/es2018/types/src/generated/resources/deletePersonalizationPersonalizationPointsByIdOrName.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/resources/getPersonalizationPersonalizationPointsByIdOrName.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/postPersonalizationPersonalizationPoints.d.ts +22 -0
- package/dist/es/es2018/types/src/generated/resources/putPersonalizationPersonalizationPointsByIdOrName.d.ts +25 -0
- package/dist/es/es2018/types/src/generated/types/ABnExperimentCohortInputRepresentation.d.ts +46 -0
- package/dist/es/es2018/types/src/generated/types/ABnExperimentInputRepresentation.d.ts +52 -0
- package/dist/es/es2018/types/src/generated/types/ABnExperimentRepresentation.d.ts +79 -0
- package/dist/es/es2018/types/src/generated/types/PersonalizationAttributeValueInputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/PersonalizationAttributeValueRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/PersonalizationDecisionInputRepresentation.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/PersonalizationDecisionRepresentation.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/types/PersonalizationPointInputRepresentation.d.ts +56 -0
- package/dist/es/es2018/types/src/generated/types/PersonalizationPointRepresentation.d.ts +87 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +66 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +2117 -0
- package/src/raml/api.raml +458 -0
- package/src/raml/luvio.raml +34 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { PersonalizationDecisionInputRepresentation as PersonalizationDecisionInputRepresentation_PersonalizationDecisionInputRepresentation } from './PersonalizationDecisionInputRepresentation';
|
|
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 = "d549296b46b71710e0a9c6490b128069";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
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;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: PersonalizationPointInputRepresentationNormalized, incoming: PersonalizationPointInputRepresentationNormalized): boolean;
|
|
9
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: PersonalizationPointInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Personalization Point Input Representation
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface PersonalizationPointInputRepresentationNormalized {
|
|
18
|
+
/** The API name of an ABn Experiment to associated with the Personalization Point */
|
|
19
|
+
abnExperimentName: string | null;
|
|
20
|
+
/** The API name of the Data Space associated with the Personalization Point */
|
|
21
|
+
dataSpaceName: string | null;
|
|
22
|
+
/** List of PersonalizationDecisions associated with the Personalization Point */
|
|
23
|
+
decisions: Array<PersonalizationDecisionInputRepresentation_PersonalizationDecisionInputRepresentation>;
|
|
24
|
+
/** Personalization Base description */
|
|
25
|
+
description: string | null;
|
|
26
|
+
/** Personalization Base label */
|
|
27
|
+
label: string | null;
|
|
28
|
+
/** Personalization Point API name */
|
|
29
|
+
name: string | null;
|
|
30
|
+
/** The API name of the Profile Data Graph associated with the Personalization Point */
|
|
31
|
+
profileDataGraphName: string | null;
|
|
32
|
+
/** A schema enum associated with the Personalization Point if it has a standard schema */
|
|
33
|
+
schemaEnum: string | null;
|
|
34
|
+
/** An API name of a Schema associated with the Personalization Point if it has a custom schema */
|
|
35
|
+
schemaName: string | null;
|
|
36
|
+
/** Personalization Point source */
|
|
37
|
+
source: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Personalization Point Input Representation
|
|
41
|
+
*
|
|
42
|
+
* Keys:
|
|
43
|
+
* (none)
|
|
44
|
+
*/
|
|
45
|
+
export interface PersonalizationPointInputRepresentation {
|
|
46
|
+
abnExperimentName: string | null;
|
|
47
|
+
dataSpaceName: string | null;
|
|
48
|
+
decisions: Array<PersonalizationDecisionInputRepresentation_PersonalizationDecisionInputRepresentation>;
|
|
49
|
+
description: string | null;
|
|
50
|
+
label: string | null;
|
|
51
|
+
name: string | null;
|
|
52
|
+
profileDataGraphName: string | null;
|
|
53
|
+
schemaEnum: string | null;
|
|
54
|
+
schemaName: string | null;
|
|
55
|
+
source: string;
|
|
56
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { PersonalizationDecisionRepresentation as PersonalizationDecisionRepresentation_PersonalizationDecisionRepresentation } from './PersonalizationDecisionRepresentation';
|
|
2
|
+
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';
|
|
3
|
+
export declare const TTL = 600;
|
|
4
|
+
export declare const VERSION = "ee1ca8342609b01b292f149ed9209840";
|
|
5
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
|
+
export declare const RepresentationType: string;
|
|
7
|
+
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
8
|
+
id: string | null;
|
|
9
|
+
}
|
|
10
|
+
export type PersonalizationPointRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
+
export type PartialPersonalizationPointRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
12
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
|
|
13
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): PersonalizationPointRepresentationNormalizedKeyMetadata;
|
|
14
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: PersonalizationPointRepresentation): string;
|
|
15
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: PersonalizationPointRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
16
|
+
export declare function normalize(input: PersonalizationPointRepresentation, existing: PersonalizationPointRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PersonalizationPointRepresentationNormalized;
|
|
17
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
18
|
+
export declare function equals(existing: PersonalizationPointRepresentationNormalized, incoming: PersonalizationPointRepresentationNormalized): boolean;
|
|
19
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
20
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: PersonalizationPointRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
21
|
+
/**
|
|
22
|
+
* Personalization Point Output Representation
|
|
23
|
+
*
|
|
24
|
+
* Keys:
|
|
25
|
+
* id (string | null): name
|
|
26
|
+
*/
|
|
27
|
+
export interface PersonalizationPointRepresentationNormalized {
|
|
28
|
+
/** The API name of an optional ABn Experiment associated with the Personalization Point */
|
|
29
|
+
abnExperimentName: string | null;
|
|
30
|
+
/** Created by id */
|
|
31
|
+
createdById: string | null;
|
|
32
|
+
/** Created date */
|
|
33
|
+
createdDate: string | null;
|
|
34
|
+
/** The API name of the Data Space associated with the Personalization Point */
|
|
35
|
+
dataSpaceName: string | null;
|
|
36
|
+
/** List of PersonalizationDecisions associated with the Personalization Point */
|
|
37
|
+
decisions: Array<PersonalizationDecisionRepresentation_PersonalizationDecisionRepresentation>;
|
|
38
|
+
/** Personalization Point description */
|
|
39
|
+
description: string | null;
|
|
40
|
+
/** The 18 character ID of the record */
|
|
41
|
+
id: string | null;
|
|
42
|
+
/** Personalization base output label */
|
|
43
|
+
label: string | null;
|
|
44
|
+
/** Last modified by id */
|
|
45
|
+
lastModifiedById: string | null;
|
|
46
|
+
/** Last modified date */
|
|
47
|
+
lastModifiedDate: string | null;
|
|
48
|
+
/** Personalization base output API name */
|
|
49
|
+
name: string | null;
|
|
50
|
+
/** The API name of the Profile Data Graph associated with the Personalization Point */
|
|
51
|
+
profileDataGraphName: string | null;
|
|
52
|
+
/** A schema enum associated with the Personalization Point if it has a standard schema */
|
|
53
|
+
schemaEnum: string | null;
|
|
54
|
+
/** An API name of a Schema associated with the Personalization Point if it has a custom schema */
|
|
55
|
+
schemaName: string | null;
|
|
56
|
+
/** Personalization Point source */
|
|
57
|
+
source: string;
|
|
58
|
+
/** Personalization Point status */
|
|
59
|
+
status: string;
|
|
60
|
+
/** Url */
|
|
61
|
+
url: string | null;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Personalization Point Output Representation
|
|
65
|
+
*
|
|
66
|
+
* Keys:
|
|
67
|
+
* id (string | null): name
|
|
68
|
+
*/
|
|
69
|
+
export interface PersonalizationPointRepresentation {
|
|
70
|
+
abnExperimentName: string | null;
|
|
71
|
+
createdById: string | null;
|
|
72
|
+
createdDate: string | null;
|
|
73
|
+
dataSpaceName: string | null;
|
|
74
|
+
decisions: Array<PersonalizationDecisionRepresentation_PersonalizationDecisionRepresentation>;
|
|
75
|
+
description: string | null;
|
|
76
|
+
id: string | null;
|
|
77
|
+
label: string | null;
|
|
78
|
+
lastModifiedById: string | null;
|
|
79
|
+
lastModifiedDate: string | null;
|
|
80
|
+
name: string | null;
|
|
81
|
+
profileDataGraphName: string | null;
|
|
82
|
+
schemaEnum: string | null;
|
|
83
|
+
schemaName: string | null;
|
|
84
|
+
source: string;
|
|
85
|
+
status: string;
|
|
86
|
+
url: string | null;
|
|
87
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const ObjectKeys: {
|
|
3
|
+
(o: object): string[];
|
|
4
|
+
(o: {}): string[];
|
|
5
|
+
}, ObjectCreate: {
|
|
6
|
+
(o: object | null): any;
|
|
7
|
+
(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
|
|
8
|
+
}, ObjectAssign: {
|
|
9
|
+
<T extends {}, U>(target: T, source: U): T & U;
|
|
10
|
+
<T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
|
|
11
|
+
<T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
|
|
12
|
+
(target: object, ...sources: any[]): any;
|
|
13
|
+
};
|
|
14
|
+
export declare const ArrayIsArray: (arg: any) => arg is any[];
|
|
15
|
+
export declare const JSONStringify: {
|
|
16
|
+
(value: any, replacer?: ((this: any, key: string, value: any) => any) | undefined, space?: string | number | undefined): string;
|
|
17
|
+
(value: any, replacer?: (string | number)[] | null | undefined, space?: string | number | undefined): string;
|
|
18
|
+
};
|
|
19
|
+
type AllowedPrimitives = boolean | string | number | Date | null;
|
|
20
|
+
type Value<T> = T extends AllowedPrimitives ? T : RecursivePartial<T>;
|
|
21
|
+
export type RecursivePartial<T> = null | {
|
|
22
|
+
[P in keyof T]?: T[P] extends Array<infer U> ? Array<Value<U>> | null : Value<T[P]> | null;
|
|
23
|
+
};
|
|
24
|
+
export declare function equalsArray<U, V extends U[]>(a: V, b: V, equalsItem: (itemA: U, itemB: U) => boolean | void): boolean;
|
|
25
|
+
export declare function equalsObject<U, V extends {
|
|
26
|
+
[key: string]: U;
|
|
27
|
+
}>(a: V, b: V, equalsProp: (propA: U, propB: U) => boolean | void): boolean;
|
|
28
|
+
export declare function createLink(ref: string | $64$luvio_engine_NormalizedKeyMetadata): {
|
|
29
|
+
__ref: string;
|
|
30
|
+
};
|
|
31
|
+
export declare function assignMetadataLink(entry: any, metadataKey: string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
32
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@salesforce/lds-adapters-cdp-personalization-service",
|
|
3
|
+
"version": "1.299.0",
|
|
4
|
+
"description": "wire adapters for personalization service connect api",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
|
+
"main": "dist/es/es2018/cdp-personalization-service.js",
|
|
7
|
+
"module": "dist/es/es2018/cdp-personalization-service.js",
|
|
8
|
+
"types": "dist/es/es2018/types/src/generated/artifacts/main.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"sfdc",
|
|
12
|
+
"src/raml/*"
|
|
13
|
+
],
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/es/es2018/types/src/generated/artifacts/main.d.ts",
|
|
17
|
+
"import": "./dist/es/es2018/cdp-personalization-service.js",
|
|
18
|
+
"require": "./dist/es/es2018/cdp-personalization-service.js"
|
|
19
|
+
},
|
|
20
|
+
"./sfdc": {
|
|
21
|
+
"types": "./sfdc/index.d.ts",
|
|
22
|
+
"import": "./sfdc/index.js",
|
|
23
|
+
"default": "./sfdc/index.js"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"sfdc": {
|
|
27
|
+
"namespace": "lightning",
|
|
28
|
+
"module": "cdpPersonalizationServiceApi"
|
|
29
|
+
},
|
|
30
|
+
"contributors": [
|
|
31
|
+
"ashu.aman@salesforce.com"
|
|
32
|
+
],
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "yarn build:services",
|
|
35
|
+
"build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
|
|
36
|
+
"build:services": "rollup --bundleConfigAsCjs --config rollup.config.js",
|
|
37
|
+
"clean": "rm -rf dist sfdc src/generated",
|
|
38
|
+
"release:core": "../../scripts/release/core.js --adapter=lds-adapters-cdp-personalization-service",
|
|
39
|
+
"release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-cdp-personalization-service",
|
|
40
|
+
"test:unit": "jest"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@salesforce/lds-bindings": "^1.299.0"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.299.0"
|
|
47
|
+
},
|
|
48
|
+
"nx": {
|
|
49
|
+
"targets": {
|
|
50
|
+
"build": {
|
|
51
|
+
"outputs": [
|
|
52
|
+
"{projectRoot}/dist",
|
|
53
|
+
"{projectRoot}/sfdc"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
"build:raml": {
|
|
57
|
+
"outputs": [
|
|
58
|
+
"{projectRoot}/src/generated"
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"volta": {
|
|
64
|
+
"extends": "../../package.json"
|
|
65
|
+
}
|
|
66
|
+
}
|
package/sfdc/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';
|