@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.
@@ -1,4 +1,4 @@
1
- @codecademy/tracking:build: cache hit, replaying output 4c335037ff25e9f6
1
+ @codecademy/tracking:build: cache hit, replaying output 641d1071bba1d625
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 (1232ms).
10
+ @codecademy/tracking:build: Successfully compiled 18 files with Babel (1222ms).
11
11
  @codecademy/tracking:build: $ 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
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2016 Ryzac, Inc.
3
+ Copyright (c) 2022 Codecademy LLC
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -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.19.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": "0a16dcad63ccee2c1e01dfc3b5cec15315d9b1db"
38
+ "gitHead": "582e8144ace9789b03cccf3e74beef2f4af54389"
39
39
  }