@codecademy/tracking 0.20.1-alpha.5dd2eb.0 → 0.20.1-alpha.83d9e2.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.
@@ -1,4 +1,4 @@
1
- @codecademy/tracking:build: cache hit, replaying output caa44f98de69795c
1
+ @codecademy/tracking:build: cache hit, replaying output 712ed927e21ac62e
2
2
  @codecademy/tracking:build: $ yarn build:clean && yarn build:compile && yarn build:types
3
3
  @codecademy/tracking:build: $ rm -rf dist
4
4
  @codecademy/tracking:build: $ babel ./src --out-dir ./dist --copy-files --extensions ".ts,.tsx"
@@ -7,5 +7,5 @@
7
7
  @codecademy/tracking:build: 
8
8
  @codecademy/tracking:build: Why you should do it regularly:
9
9
  @codecademy/tracking:build: https://github.com/browserslist/browserslist#browsers-data-updating
10
- @codecademy/tracking:build: Successfully compiled 18 files with Babel (1190ms).
10
+ @codecademy/tracking:build: Successfully compiled 18 files with Babel (1209ms).
11
11
  @codecademy/tracking:build: $ tsc --emitDeclarationOnly
package/CHANGELOG.md CHANGED
@@ -3,7 +3,7 @@
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.5dd2eb.0](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.20.0...@codecademy/tracking@0.20.1-alpha.5dd2eb.0) (2022-04-29)
6
+ ### [0.20.1-alpha.83d9e2.0](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.20.0...@codecademy/tracking@0.20.1-alpha.83d9e2.0) (2022-04-29)
7
7
 
8
8
  **Note:** Version bump only for package @codecademy/tracking
9
9
 
@@ -42,9 +42,6 @@ export declare type EventDataTypes = {
42
42
  exercise: {
43
43
  force_pass: BaseEventAnyData;
44
44
  };
45
- experiment: {
46
- contentful_experiment_viewed: BaseEventAnyData;
47
- };
48
45
  payments: {
49
46
  cancel_survey: BaseEventAnyData;
50
47
  };
@@ -198,6 +195,8 @@ export declare type UserVisitData = UserSharedData & {
198
195
  unit?: string;
199
196
  lesson?: string;
200
197
  is_ugc?: boolean;
198
+ experimentInfo?: Record<string, string>;
199
+ userAttributes?: UserAttributes;
201
200
  };
202
201
  export declare type UserImpressionData = {
203
202
  page_name: string;
@@ -249,3 +248,17 @@ export declare type BusinessFilterData = BaseEventData & {
249
248
  export declare type BusinessSearchData = BaseEventData & {
250
249
  search_query: string;
251
250
  };
251
+ declare type UserAttributes = {
252
+ active_subscription: boolean;
253
+ admin: boolean;
254
+ anonymous: boolean;
255
+ chapter_leader: boolean;
256
+ country_code: string;
257
+ forum_moderator: boolean;
258
+ free: boolean;
259
+ id: string;
260
+ pro: boolean;
261
+ student: boolean;
262
+ trial: boolean;
263
+ };
264
+ export {};
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.20.1-alpha.5dd2eb.0",
4
+ "version": "0.20.1-alpha.83d9e2.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": "de285100946a9be758bcf764c6a344efcc6ef4c6"
38
+ "gitHead": "a3fcf2945b13b1656ca0b05b111ed809dde0cc8e"
39
39
  }