@repobit/dex-target 1.2.0 → 1.4.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/dist/src/index.d.ts +5 -4
- package/dist/src/index.js +44 -3
- package/dist/src/index.js.map +1 -1
- package/dist/src/typeDefinitions.d.ts +43 -7
- package/package.json +6 -2
package/dist/src/index.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { AlloyFunction, ConfigMbox, MboxParameters, MboxProfileParameters } from "./typeDefinitions.js";
|
|
1
|
+
import { AlloyFunction, ConfigMbox, GetIdentityResponse, MboxParameters, MboxProfileParameters } from "./typeDefinitions.js";
|
|
2
2
|
declare global {
|
|
3
3
|
interface Window {
|
|
4
4
|
alloyProxy: AlloyFunction;
|
|
5
|
-
BD: {
|
|
6
|
-
Target: Target;
|
|
7
|
-
};
|
|
8
5
|
}
|
|
9
6
|
}
|
|
10
7
|
export default abstract class Target {
|
|
@@ -12,6 +9,8 @@ export default abstract class Target {
|
|
|
12
9
|
private static cachedMboxes;
|
|
13
10
|
private static _configMbox;
|
|
14
11
|
private static controller;
|
|
12
|
+
private static _visitorInfo;
|
|
13
|
+
private static cdpData;
|
|
15
14
|
/** get an object containing all the url query parameters */
|
|
16
15
|
private static getUrlParameters;
|
|
17
16
|
static get configMbox(): Promise<Partial<{
|
|
@@ -31,10 +30,12 @@ export default abstract class Target {
|
|
|
31
30
|
};
|
|
32
31
|
useGeoIpPricing: boolean;
|
|
33
32
|
}> | undefined>;
|
|
33
|
+
static get visitorInfo(): Promise<GetIdentityResponse>;
|
|
34
34
|
/** add adobe_mc parameter at the end of the url */
|
|
35
35
|
static appendVisitorIDsTo(url: string): Promise<string>;
|
|
36
36
|
/** abort all the Target calls for casese where Target does not load */
|
|
37
37
|
static abort(): void;
|
|
38
|
+
private static getCdpData;
|
|
38
39
|
static getOffers(param: {
|
|
39
40
|
mboxNames: "config-mbox";
|
|
40
41
|
parameters?: MboxParameters;
|
package/dist/src/index.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import { AdobeDataLayerService, CdpEvent } from "@repobit/dex-data-layer";
|
|
2
|
+
import { Constants } from "@repobit/dex-utils";
|
|
3
|
+
const w = window;
|
|
1
4
|
export default class Target {
|
|
2
5
|
static urlParameters = this.getUrlParameters();
|
|
3
6
|
static cachedMboxes = new Map();
|
|
4
7
|
static _configMbox;
|
|
5
8
|
static controller = new AbortController();
|
|
9
|
+
static _visitorInfo;
|
|
10
|
+
static cdpData = this.getCdpData();
|
|
6
11
|
// initialize the alloyProxy variable on the window
|
|
7
12
|
// this is a mirror of Adobe WebSDK's alloy
|
|
8
13
|
static {
|
|
@@ -16,6 +21,7 @@ export default class Target {
|
|
|
16
21
|
window.alloyProxy.q = [];
|
|
17
22
|
}
|
|
18
23
|
this._configMbox = this.getOffers({ mboxNames: 'config-mbox' });
|
|
24
|
+
this._visitorInfo = window.alloyProxy('getIdentity');
|
|
19
25
|
}
|
|
20
26
|
/** get an object containing all the url query parameters */
|
|
21
27
|
static getUrlParameters() {
|
|
@@ -29,6 +35,9 @@ export default class Target {
|
|
|
29
35
|
static get configMbox() {
|
|
30
36
|
return this._configMbox;
|
|
31
37
|
}
|
|
38
|
+
static get visitorInfo() {
|
|
39
|
+
return this._visitorInfo;
|
|
40
|
+
}
|
|
32
41
|
/** add adobe_mc parameter at the end of the url */
|
|
33
42
|
static async appendVisitorIDsTo(url) {
|
|
34
43
|
if (url.includes('adobe_mc')) {
|
|
@@ -46,10 +55,36 @@ export default class Target {
|
|
|
46
55
|
static abort() {
|
|
47
56
|
this.controller.abort();
|
|
48
57
|
}
|
|
58
|
+
static async getCdpData() {
|
|
59
|
+
try {
|
|
60
|
+
const cdpDataCall = await fetch(`${Constants.PUBLIC_URL_ORIGIN}/cdp/${(await this._visitorInfo).identity.ECID}`);
|
|
61
|
+
const receivedCdpData = await cdpDataCall.json();
|
|
62
|
+
let cdpData = {
|
|
63
|
+
auds: receivedCdpData?.auds[0] || ''
|
|
64
|
+
};
|
|
65
|
+
if (receivedCdpData.mdl) {
|
|
66
|
+
cdpData = receivedCdpData?.mdl.reduce((acc, mdlValue) => {
|
|
67
|
+
acc[mdlValue.key] = mdlValue.value;
|
|
68
|
+
return acc;
|
|
69
|
+
}, cdpData);
|
|
70
|
+
}
|
|
71
|
+
AdobeDataLayerService.push(new CdpEvent(cdpData));
|
|
72
|
+
return cdpData;
|
|
73
|
+
}
|
|
74
|
+
catch (e) {
|
|
75
|
+
console.warn(e);
|
|
76
|
+
}
|
|
77
|
+
return {};
|
|
78
|
+
}
|
|
49
79
|
static async getOffers(param) {
|
|
50
80
|
if (this.controller.signal?.aborted) {
|
|
51
81
|
return {};
|
|
52
82
|
}
|
|
83
|
+
const cdpData = await this.cdpData;
|
|
84
|
+
const profileCdpData = Object.keys(cdpData).reduce((acc, key) => {
|
|
85
|
+
acc[`profile.${key}`] = cdpData[key];
|
|
86
|
+
return acc;
|
|
87
|
+
}, {});
|
|
53
88
|
let { mboxNames } = param;
|
|
54
89
|
const { parameters, profileParameters } = param;
|
|
55
90
|
if (!Array.isArray(mboxNames)) {
|
|
@@ -61,11 +96,17 @@ export default class Target {
|
|
|
61
96
|
decisionScopes: notRequestedMboxes,
|
|
62
97
|
data: {
|
|
63
98
|
"__adobe": {
|
|
64
|
-
"target": Object.assign({}, this.urlParameters, parameters ? parameters : {}, profileParameters ? profileParameters : {})
|
|
99
|
+
"target": Object.assign({}, this.urlParameters, parameters ? parameters : {}, profileParameters ? profileParameters : {}, cdpData, profileCdpData)
|
|
65
100
|
}
|
|
66
101
|
},
|
|
67
102
|
renderDecisions: true
|
|
68
103
|
});
|
|
104
|
+
notRequestedOffersCall.then(result => {
|
|
105
|
+
window.alloyProxy('applyPropositions', {
|
|
106
|
+
"propositions": result.propositions,
|
|
107
|
+
"viewName": window.location.href
|
|
108
|
+
});
|
|
109
|
+
});
|
|
69
110
|
notRequestedMboxes.forEach(mbox => {
|
|
70
111
|
const receivedMboxOfferCall = new Promise((resolve, reject) => {
|
|
71
112
|
notRequestedOffersCall.then(result => {
|
|
@@ -88,6 +129,6 @@ export default class Target {
|
|
|
88
129
|
return mboxNames.length > 1 ? offersResult : offersResult[mboxNames[0]];
|
|
89
130
|
}
|
|
90
131
|
}
|
|
91
|
-
|
|
92
|
-
|
|
132
|
+
w.BD = w.BD || {};
|
|
133
|
+
w.BD.Target = Target;
|
|
93
134
|
//# sourceMappingURL=index.js.map
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAyB/C,MAAM,CAAC,GAAG,MAEP,CAAA;AAEH,MAAM,CAAC,OAAO,OAAgB,MAAM;IAC1B,MAAM,CAAC,aAAa,GAAkB,IAAI,CAAC,gBAAgB,EAAE,CAAC;IAC9D,MAAM,CAAC,YAAY,GAA8C,IAAI,GAAG,EAAE,CAAC;IAC3E,MAAM,CAAC,WAAW,CAAoC;IACtD,MAAM,CAAC,UAAU,GAAuB,IAAI,eAAe,EAAE,CAAC;IAC9D,MAAM,CAAC,YAAY,CAAgC;IACnD,MAAM,CAAC,OAAO,GAA2B,IAAI,CAAC,UAAU,EAAE,CAAC;IAEnE,mDAAmD;IACnD,2CAA2C;IAC3C;QACE,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;YAKvB,SAAS,OAAO,CAAC,GAAG,IAAuF;gBAEzG,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;oBACrC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO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AAY,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE;YAC7D,GAAG,CAAC,QAAQ,CAAC,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACvG,OAAO,GAAG,CAAC;QACb,CAAC,EAAE,EAAwC,CAAC,CAAC;QAE7C,OAAO,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1E,CAAC;;AAGH,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC;AAClB,CAAC,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC"}
|
|
@@ -8,12 +8,12 @@ export type URLParameters = {
|
|
|
8
8
|
[key: string]: string;
|
|
9
9
|
};
|
|
10
10
|
export type SendEventCall = [
|
|
11
|
-
|
|
11
|
+
'sendEvent',
|
|
12
12
|
{
|
|
13
13
|
decisionScopes: string[];
|
|
14
14
|
data: {
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
'__adobe': {
|
|
16
|
+
'target': {
|
|
17
17
|
[key: string]: string;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
@@ -22,11 +22,21 @@ export type SendEventCall = [
|
|
|
22
22
|
}
|
|
23
23
|
];
|
|
24
24
|
export type AppendIdentityToUrlCall = [
|
|
25
|
-
|
|
25
|
+
'appendIdentityToUrl',
|
|
26
26
|
{
|
|
27
27
|
url: string;
|
|
28
28
|
}
|
|
29
29
|
];
|
|
30
|
+
export type ApplyPropositionsCall = [
|
|
31
|
+
'applyPropositions',
|
|
32
|
+
{
|
|
33
|
+
propositions: AlloyResponsePropositions[];
|
|
34
|
+
viewName: string;
|
|
35
|
+
}
|
|
36
|
+
];
|
|
37
|
+
export type GetIdentityCall = [
|
|
38
|
+
'getIdentity'
|
|
39
|
+
];
|
|
30
40
|
type AlloyResponseDecision = {
|
|
31
41
|
id: string;
|
|
32
42
|
scope: string;
|
|
@@ -38,8 +48,8 @@ type AlloyResponseDecision = {
|
|
|
38
48
|
};
|
|
39
49
|
id: string;
|
|
40
50
|
meta: Partial<{
|
|
41
|
-
|
|
42
|
-
|
|
51
|
+
'activity.name': string;
|
|
52
|
+
'experience.name': string;
|
|
43
53
|
[key: string]: string;
|
|
44
54
|
}>;
|
|
45
55
|
schema: string;
|
|
@@ -74,13 +84,26 @@ export type AlloySendEventResponse = {
|
|
|
74
84
|
export type AlloyAppendIdentityToUrlResponse = {
|
|
75
85
|
url: string;
|
|
76
86
|
};
|
|
87
|
+
export type AlloyApplyPropositionsResponse = {
|
|
88
|
+
propositions: AlloyResponsePropositions[];
|
|
89
|
+
};
|
|
90
|
+
export type GetIdentityResponse = {
|
|
91
|
+
edge: {
|
|
92
|
+
regionId: number;
|
|
93
|
+
};
|
|
94
|
+
identity: {
|
|
95
|
+
ECID: string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
77
98
|
export type AlloyFunction = {
|
|
78
99
|
(...args: SendEventCall): Promise<AlloySendEventResponse>;
|
|
79
100
|
(...args: AppendIdentityToUrlCall): Promise<AlloyAppendIdentityToUrlResponse>;
|
|
101
|
+
(...args: ApplyPropositionsCall): Promise<AlloyApplyPropositionsResponse>;
|
|
102
|
+
(...args: GetIdentityCall): Promise<GetIdentityResponse>;
|
|
80
103
|
q: Array<[
|
|
81
104
|
resolve: Function,
|
|
82
105
|
reject: Function,
|
|
83
|
-
args: SendEventCall | AppendIdentityToUrlCall
|
|
106
|
+
args: SendEventCall | AppendIdentityToUrlCall | ApplyPropositionsCall | GetIdentityCall
|
|
84
107
|
]>;
|
|
85
108
|
};
|
|
86
109
|
export type ConfigMbox = Partial<{
|
|
@@ -100,4 +123,17 @@ export type ConfigMbox = Partial<{
|
|
|
100
123
|
};
|
|
101
124
|
useGeoIpPricing: boolean;
|
|
102
125
|
}>;
|
|
126
|
+
export type CdpData = {
|
|
127
|
+
auds?: string;
|
|
128
|
+
[key: string]: string | undefined;
|
|
129
|
+
};
|
|
130
|
+
export type CdpDataJson = {
|
|
131
|
+
auds: string[];
|
|
132
|
+
mdl: {
|
|
133
|
+
key: string;
|
|
134
|
+
value: string;
|
|
135
|
+
}[];
|
|
136
|
+
ub: unknown[];
|
|
137
|
+
vid: string;
|
|
138
|
+
};
|
|
103
139
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@repobit/dex-target",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Client for Adobe Target",
|
|
5
5
|
"author": "Constantin Ioan Mihai <iconstantin@bitdefender.com>",
|
|
6
6
|
"homepage": "https://github.com/bitdefender/dex-core#readme",
|
|
@@ -23,8 +23,12 @@
|
|
|
23
23
|
"bugs": {
|
|
24
24
|
"url": "https://github.com/bitdefender/dex-core/issues"
|
|
25
25
|
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@repobit/dex-data-layer": "0.2.0",
|
|
28
|
+
"@repobit/dex-utils": "0.6.0"
|
|
29
|
+
},
|
|
26
30
|
"module": "dist/src/index.js",
|
|
27
31
|
"type": "module",
|
|
28
32
|
"types": "dist/src/index.d.ts",
|
|
29
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "5391b27f1542572bf315961e3aecaa0b45b9b00d"
|
|
30
34
|
}
|