@codecademy/tracking 1.4.0-alpha.e22e11602e.0 → 1.4.0-alpha.ec36a35d00.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.
@@ -115,10 +115,6 @@ export type TrackingContentIds = {
115
115
  external_course_id?: string;
116
116
  external_path_id?: string;
117
117
  lo_id?: string;
118
- project_id?: string;
119
- milestone_id?: string;
120
- task_id?: string;
121
- question_set_id?: string;
122
118
  };
123
119
  /**
124
120
  * Shared data relevant for all user events
@@ -185,6 +181,11 @@ export type UserClickData = UserSharedData & {
185
181
  assessment_id?: string;
186
182
  container_slugs?: string[];
187
183
  search_id?: string;
184
+ /** additional ai builder properties */
185
+ project_id?: string;
186
+ milestone_id?: string;
187
+ task_id?: string;
188
+ question_set_id?: string;
188
189
  business_user?: BaseEventAnyData;
189
190
  };
190
191
  /**
@@ -213,11 +214,18 @@ export type UserVisitData = UserSharedData & {
213
214
  story_slug?: string;
214
215
  unit?: string;
215
216
  lesson?: string;
217
+ /** additional ai builder properties */
218
+ project_id?: string;
216
219
  };
217
220
  export type UserImpressionData = Pick<UserSharedData, 'context' | 'source_codebase' | 'content_ids' | 'misc'> & {
218
221
  page_name: string;
219
222
  target: string;
220
223
  slug?: string;
224
+ /** additional ai builder properties */
225
+ project_id?: string;
226
+ milestone_id?: string;
227
+ task_id?: string;
228
+ question_set_id?: string;
221
229
  };
222
230
  export type EventAnswerData = BaseEventData & {
223
231
  question_index: number;
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@codecademy/tracking",
3
+ "version": "1.4.0-alpha.ec36a35d00.0",
3
4
  "description": "Tracking library for Codecademy",
4
- "version": "1.4.0-alpha.e22e11602e.0",
5
+ "license": "MIT",
6
+ "repository": "git@github.com:codecademy-engineering/mono.git",
5
7
  "author": "Codecademy Engineering <dev@codecademy.com>",
6
- "dependencies": {
7
- "@qwik.dev/partytown": "0.11.0"
8
- },
8
+ "main": "./dist/index.js",
9
+ "module": "./dist/index.js",
9
10
  "files": [
10
11
  "dist/**"
11
12
  ],
12
- "license": "MIT",
13
- "main": "./dist/index.js",
14
- "module": "./dist/index.js",
13
+ "dependencies": {
14
+ "@qwik.dev/partytown": "0.11.0"
15
+ },
15
16
  "peerDependencies": {
16
17
  "@codecademy/gamut-styles": "*"
17
18
  },
18
19
  "publishConfig": {
19
20
  "access": "public"
20
- },
21
- "repository": "git@github.com:codecademy-engineering/mono.git"
21
+ }
22
22
  }