@codecademy/tracking 1.4.0-alpha.5c90f62491.0 → 1.4.0-alpha.77fe2ffa96.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/dist/events/types.d.ts +4 -12
- package/package.json +1 -1
package/dist/events/types.d.ts
CHANGED
|
@@ -115,6 +115,10 @@ 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;
|
|
118
122
|
};
|
|
119
123
|
/**
|
|
120
124
|
* Shared data relevant for all user events
|
|
@@ -181,11 +185,6 @@ export type UserClickData = UserSharedData & {
|
|
|
181
185
|
assessment_id?: string;
|
|
182
186
|
container_slugs?: string[];
|
|
183
187
|
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;
|
|
189
188
|
business_user?: BaseEventAnyData;
|
|
190
189
|
};
|
|
191
190
|
/**
|
|
@@ -214,18 +213,11 @@ export type UserVisitData = UserSharedData & {
|
|
|
214
213
|
story_slug?: string;
|
|
215
214
|
unit?: string;
|
|
216
215
|
lesson?: string;
|
|
217
|
-
/** additional ai builder properties */
|
|
218
|
-
project_id?: string;
|
|
219
216
|
};
|
|
220
217
|
export type UserImpressionData = Pick<UserSharedData, 'context' | 'source_codebase' | 'content_ids' | 'misc'> & {
|
|
221
218
|
page_name: string;
|
|
222
219
|
target: string;
|
|
223
220
|
slug?: string;
|
|
224
|
-
/** additional ai builder properties */
|
|
225
|
-
project_id?: string;
|
|
226
|
-
milestone_id?: string;
|
|
227
|
-
task_id?: string;
|
|
228
|
-
question_set_id?: string;
|
|
229
221
|
};
|
|
230
222
|
export type EventAnswerData = BaseEventData & {
|
|
231
223
|
question_index: number;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codecademy/tracking",
|
|
3
3
|
"description": "Tracking library for Codecademy",
|
|
4
|
-
"version": "1.4.0-alpha.
|
|
4
|
+
"version": "1.4.0-alpha.77fe2ffa96.0",
|
|
5
5
|
"author": "Codecademy Engineering <dev@codecademy.com>",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@qwik.dev/partytown": "0.11.0"
|