@repobit/dex-data-layer 2.0.2 → 2.1.1
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/CHANGELOG.md +17 -0
- package/dist/src/events/decisions-displayed-event/index.d.ts +3 -3
- package/dist/src/events/decisions-displayed-event/index.js.map +1 -1
- package/dist/src/events/decisions-displayed-event/typeDefinitions.d.ts +6 -5
- package/dist/src/events/decisions-displayed-event/typeDefinitions.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.1.1](https://github.com/bitdefender/dex-core/compare/@repobit/dex-data-layer@2.1.0...@repobit/dex-data-layer@2.1.1) (2026-02-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @repobit/dex-data-layer
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [2.1.0](https://github.com/bitdefender/dex-core/compare/@repobit/dex-data-layer@2.0.2...@repobit/dex-data-layer@2.1.0) (2026-02-03)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **DEX-26244:** add track offer event ([f3f0b4a](https://github.com/bitdefender/dex-core/commit/f3f0b4ab193f11a5db3be6917d707e4a95543ce8))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
6
23
|
## [2.0.2](https://github.com/bitdefender/dex-core/compare/@repobit/dex-data-layer@2.0.1...@repobit/dex-data-layer@2.0.2) (2026-01-19)
|
|
7
24
|
|
|
8
25
|
**Note:** Version bump only for package @repobit/dex-data-layer
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AlloyResponsePropositions } from "./typeDefinitions.js";
|
|
2
|
-
export declare class DecisionsDisplayedEvent {
|
|
2
|
+
export declare class DecisionsDisplayedEvent<TContent = object> {
|
|
3
3
|
event: "decisions displayed";
|
|
4
|
-
propositions: AlloyResponsePropositions[];
|
|
5
|
-
constructor(decisionsDisplayedData: AlloyResponsePropositions[]);
|
|
4
|
+
propositions: AlloyResponsePropositions<TContent>[];
|
|
5
|
+
constructor(decisionsDisplayedData: AlloyResponsePropositions<TContent>[]);
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/events/decisions-displayed-event/index.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,uBAAuB;IAClC,KAAK,GAAG,qBAA8B,CAAC;IACvC,YAAY,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/events/decisions-displayed-event/index.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,uBAAuB;IAClC,KAAK,GAAG,qBAA8B,CAAC;IACvC,YAAY,CAAwC;IAEpD,YAAY,sBAA6D;QACvE,IAAI,CAAC,YAAY,GAAG,sBAAsB,CAAC;IAC7C,CAAC;CACF","sourcesContent":["import { AlloyResponsePropositions } from \"./typeDefinitions\";\n\nexport class DecisionsDisplayedEvent<TContent = object> {\n event = 'decisions displayed' as const;\n propositions: AlloyResponsePropositions<TContent>[];\n\n constructor(decisionsDisplayedData: AlloyResponsePropositions<TContent>[]) {\n this.propositions = decisionsDisplayedData;\n }\n}\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export type AlloyResponseDecision = {
|
|
1
|
+
export type AlloyResponseDecision<TContent = object> = {
|
|
2
2
|
id: string;
|
|
3
3
|
scope: string;
|
|
4
4
|
items?: {
|
|
5
5
|
data: {
|
|
6
|
-
content:
|
|
6
|
+
content: TContent;
|
|
7
7
|
format: string;
|
|
8
8
|
id: string;
|
|
9
9
|
};
|
|
@@ -20,7 +20,7 @@ export type AlloyResponseDecision = {
|
|
|
20
20
|
id: string;
|
|
21
21
|
};
|
|
22
22
|
characteristics: {
|
|
23
|
-
analyticsToken
|
|
23
|
+
analyticsToken?: string;
|
|
24
24
|
eventToken: string;
|
|
25
25
|
};
|
|
26
26
|
correlationID: string;
|
|
@@ -30,10 +30,11 @@ export type AlloyResponseDecision = {
|
|
|
30
30
|
};
|
|
31
31
|
strategies: {
|
|
32
32
|
step: string;
|
|
33
|
-
|
|
33
|
+
trafficType?: string;
|
|
34
|
+
trafficTpye?: string;
|
|
34
35
|
}[];
|
|
35
36
|
}>;
|
|
36
37
|
};
|
|
37
|
-
export type AlloyResponsePropositions = AlloyResponseDecision & {
|
|
38
|
+
export type AlloyResponsePropositions<TContent = object> = AlloyResponseDecision<TContent> & {
|
|
38
39
|
renderAttempted?: boolean;
|
|
39
40
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeDefinitions.js","sourceRoot":"","sources":["../../../../src/events/decisions-displayed-event/typeDefinitions.ts"],"names":[],"mappings":"","sourcesContent":["export type AlloyResponseDecision = {\n id : string,\n scope : string,\n items?: {\n data: {\n content:
|
|
1
|
+
{"version":3,"file":"typeDefinitions.js","sourceRoot":"","sources":["../../../../src/events/decisions-displayed-event/typeDefinitions.ts"],"names":[],"mappings":"","sourcesContent":["export type AlloyResponseDecision<TContent = object> = {\n id : string,\n scope : string,\n items?: {\n data: {\n content: TContent\n format : string,\n id : string\n },\n id : string,\n meta: Partial<{\n 'activity.name' : string,\n 'experience.name': string,\n [key: string] : string\n }>,\n schema: string\n }[],\n scopeDetails: Partial<{\n activity: {\n id: string\n },\n characteristics: {\n analyticsToken?: string,\n eventToken : string\n },\n correlationID : string,\n decisionProvider: string,\n experience: {\n id: string\n },\n strategies: {\n step : string,\n trafficType?: string,\n trafficTpye?: string\n }[]\n }>\n};\n\nexport type AlloyResponsePropositions<TContent = object> = AlloyResponseDecision<TContent> & {\n renderAttempted?: boolean\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@repobit/dex-data-layer",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Client for Adobe Data Layer",
|
|
5
5
|
"author": "Constantin Ioan Mihai <iconstantin@bitdefender.com>",
|
|
6
6
|
"homepage": "https://github.com/bitdefender/dex-core#readme",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"type": "module",
|
|
31
31
|
"types": "dist/src/index.d.ts",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@repobit/dex-constants": "^1.3.
|
|
33
|
+
"@repobit/dex-constants": "^1.3.1",
|
|
34
34
|
"@repobit/dex-store": "^0.3.0",
|
|
35
|
-
"@repobit/dex-utils": "^2.1.
|
|
35
|
+
"@repobit/dex-utils": "^2.1.3"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"deepmerge": "^4.0.0"
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"volta": {
|
|
41
41
|
"node": "22.14.0"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "fe2fedfa93fa94635d0abecf509349894970175c"
|
|
44
44
|
}
|