heartraite 1.0.175 → 1.0.176
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/types/dq.types.d.ts +17 -0
- package/package.json +1 -1
- package/src/types/dq.types.ts +23 -0
package/dist/types/dq.types.d.ts
CHANGED
|
@@ -80,6 +80,21 @@ export interface GetQuestionRequest {
|
|
|
80
80
|
/** User's preferred locale for question content (optional, defaults to sv_SE) */
|
|
81
81
|
locale?: Locale;
|
|
82
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* User's discovery progress (streaks, counts, etc.)
|
|
85
|
+
*/
|
|
86
|
+
export interface DiscoveryProgress {
|
|
87
|
+
/** Current consecutive days streak */
|
|
88
|
+
currentStreak: number;
|
|
89
|
+
/** Longest streak ever achieved */
|
|
90
|
+
longestStreak: number;
|
|
91
|
+
/** Total questions answered (not skipped) */
|
|
92
|
+
answeredCount: number;
|
|
93
|
+
/** Total questions skipped */
|
|
94
|
+
skippedCount: number;
|
|
95
|
+
/** ISO timestamp of last answered question (null if never answered) */
|
|
96
|
+
lastAnsweredAt: string | null;
|
|
97
|
+
}
|
|
83
98
|
/**
|
|
84
99
|
* Response for POST /dq/get-question endpoint
|
|
85
100
|
* Provides question data along with quota information
|
|
@@ -93,4 +108,6 @@ export interface GetQuestionResponse {
|
|
|
93
108
|
quotaResetsAt?: string;
|
|
94
109
|
/** Number of questions remaining for today */
|
|
95
110
|
questionsRemainingToday: number;
|
|
111
|
+
/** User's discovery progress (streaks, counts) */
|
|
112
|
+
progress?: DiscoveryProgress;
|
|
96
113
|
}
|
package/package.json
CHANGED
package/src/types/dq.types.ts
CHANGED
|
@@ -111,6 +111,26 @@ export interface GetQuestionRequest {
|
|
|
111
111
|
|
|
112
112
|
// ========== API RESPONSE TYPES ==========
|
|
113
113
|
|
|
114
|
+
/**
|
|
115
|
+
* User's discovery progress (streaks, counts, etc.)
|
|
116
|
+
*/
|
|
117
|
+
export interface DiscoveryProgress {
|
|
118
|
+
/** Current consecutive days streak */
|
|
119
|
+
currentStreak: number;
|
|
120
|
+
|
|
121
|
+
/** Longest streak ever achieved */
|
|
122
|
+
longestStreak: number;
|
|
123
|
+
|
|
124
|
+
/** Total questions answered (not skipped) */
|
|
125
|
+
answeredCount: number;
|
|
126
|
+
|
|
127
|
+
/** Total questions skipped */
|
|
128
|
+
skippedCount: number;
|
|
129
|
+
|
|
130
|
+
/** ISO timestamp of last answered question (null if never answered) */
|
|
131
|
+
lastAnsweredAt: string | null;
|
|
132
|
+
}
|
|
133
|
+
|
|
114
134
|
/**
|
|
115
135
|
* Response for POST /dq/get-question endpoint
|
|
116
136
|
* Provides question data along with quota information
|
|
@@ -127,4 +147,7 @@ export interface GetQuestionResponse {
|
|
|
127
147
|
|
|
128
148
|
/** Number of questions remaining for today */
|
|
129
149
|
questionsRemainingToday: number;
|
|
150
|
+
|
|
151
|
+
/** User's discovery progress (streaks, counts) */
|
|
152
|
+
progress?: DiscoveryProgress;
|
|
130
153
|
}
|