@codecademy/tracking 0.19.0 → 0.20.1-alpha.42dc96.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/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +17 -0
- package/LICENSE +1 -1
- package/dist/events/types.d.ts +22 -0
- package/package.json +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[35m@codecademy/tracking:build: [0mcache hit, replaying output [
|
|
1
|
+
[35m@codecademy/tracking:build: [0mcache hit, replaying output [2m641d1071bba1d625[0m
|
|
2
2
|
[35m@codecademy/tracking:build: [0m$ yarn build:clean && yarn build:compile && yarn build:types
|
|
3
3
|
[35m@codecademy/tracking:build: [0m$ rm -rf dist
|
|
4
4
|
[35m@codecademy/tracking:build: [0m$ babel ./src --out-dir ./dist --copy-files --extensions ".ts,.tsx"
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
[35m@codecademy/tracking:build: [0m
|
|
8
8
|
[35m@codecademy/tracking:build: [0mWhy you should do it regularly:
|
|
9
9
|
[35m@codecademy/tracking:build: [0mhttps://github.com/browserslist/browserslist#browsers-data-updating
|
|
10
|
-
[35m@codecademy/tracking:build: [0mSuccessfully compiled 18 files with Babel (
|
|
10
|
+
[35m@codecademy/tracking:build: [0mSuccessfully compiled 18 files with Babel (1222ms).
|
|
11
11
|
[35m@codecademy/tracking:build: [0m$ tsc --emitDeclarationOnly
|
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
|
+
### [0.20.1-alpha.42dc96.0](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.20.0...@codecademy/tracking@0.20.1-alpha.42dc96.0) (2022-05-02)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @codecademy/tracking
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.20.0](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.19.0...@codecademy/tracking@0.20.0) (2022-04-11)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **tracking:** add experiment category to tracking types ([4fa1528](https://github.com/Codecademy/client-modules/commit/4fa1528e719df904b88953edb8a625aa06610206))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
6
23
|
## [0.19.0](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.18.1...@codecademy/tracking@0.19.0) (2022-03-10)
|
|
7
24
|
|
|
8
25
|
|
package/LICENSE
CHANGED
package/dist/events/types.d.ts
CHANGED
|
@@ -42,6 +42,9 @@ export declare type EventDataTypes = {
|
|
|
42
42
|
exercise: {
|
|
43
43
|
force_pass: BaseEventAnyData;
|
|
44
44
|
};
|
|
45
|
+
experiment: {
|
|
46
|
+
contentful_experiment_assignment_event: BaseEventAnyData;
|
|
47
|
+
};
|
|
45
48
|
payments: {
|
|
46
49
|
cancel_survey: BaseEventAnyData;
|
|
47
50
|
};
|
|
@@ -167,6 +170,7 @@ export declare type UserClickData = UserSharedData & {
|
|
|
167
170
|
container_slugs?: string[];
|
|
168
171
|
search_id?: string;
|
|
169
172
|
is_ugc?: boolean;
|
|
173
|
+
business_user?: BusinessUserData;
|
|
170
174
|
};
|
|
171
175
|
/**
|
|
172
176
|
* Data sent to user visit event table
|
|
@@ -243,6 +247,24 @@ export declare type BusinessFilterData = BaseEventData & {
|
|
|
243
247
|
filter_key: string;
|
|
244
248
|
filter_value: FilterType;
|
|
245
249
|
};
|
|
250
|
+
export declare type BusinessUserData = BaseEventData & {
|
|
251
|
+
plan?: BusinessPlanData;
|
|
252
|
+
seat?: BusinessSeatData;
|
|
253
|
+
};
|
|
254
|
+
export declare type BusinessPlanData = BaseEventData & {
|
|
255
|
+
plan_name: string;
|
|
256
|
+
plan_type: string;
|
|
257
|
+
plan_num_seats: number;
|
|
258
|
+
primary_plan: boolean;
|
|
259
|
+
plan_start_date: Date;
|
|
260
|
+
plan_end_date: string;
|
|
261
|
+
currency: string;
|
|
262
|
+
plan_tier: string;
|
|
263
|
+
};
|
|
264
|
+
export declare type BusinessSeatData = BaseEventData & {
|
|
265
|
+
role: string;
|
|
266
|
+
created_at: string;
|
|
267
|
+
};
|
|
246
268
|
export declare type BusinessSearchData = BaseEventData & {
|
|
247
269
|
search_query: string;
|
|
248
270
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codecademy/tracking",
|
|
3
3
|
"description": "Tracking library for Codecademy apps.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.20.1-alpha.42dc96.0",
|
|
5
5
|
"author": "Codecademy Engineering <dev@codecademy.com>",
|
|
6
6
|
"module": "./dist/index.js",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "582e8144ace9789b03cccf3e74beef2f4af54389"
|
|
39
39
|
}
|