czapp-shared 1.0.26 → 1.0.27
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/package.json +1 -1
- package/src/design/api.ts +11 -1
- package/src/design/types.ts +6 -0
package/package.json
CHANGED
package/src/design/api.ts
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { IActivityCount } from './data';
|
|
2
2
|
import { ILexeme, ILexemeIdPair, ILexemeLearningInfo, ILexemePair } from './lexemes';
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
DateString,
|
|
5
|
+
Familiarity,
|
|
6
|
+
ITestResult,
|
|
7
|
+
Language,
|
|
8
|
+
MySQLDate,
|
|
9
|
+
Scenario,
|
|
10
|
+
IVocabCheckActivity,
|
|
11
|
+
VocabCheckType
|
|
12
|
+
} from './types';
|
|
4
13
|
import { IUserData } from './user';
|
|
5
14
|
|
|
6
15
|
export enum HttpStatusCode {
|
|
@@ -184,6 +193,7 @@ export interface TestCompleteResponseData {
|
|
|
184
193
|
user: IUserData;
|
|
185
194
|
testResultIds: number[];
|
|
186
195
|
rewardPointsDelta: number;
|
|
196
|
+
vocabCheckActivity: IVocabCheckActivity[];
|
|
187
197
|
}
|
|
188
198
|
export interface HeatMapResponseData {
|
|
189
199
|
added: IActivityCount[];
|
package/src/design/types.ts
CHANGED
|
@@ -44,6 +44,12 @@ export interface ITestResult {
|
|
|
44
44
|
thinkingTimeSecs: number;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
export interface IVocabCheckActivity {
|
|
48
|
+
testDate: MySQLDate;
|
|
49
|
+
flashcardCount: number;
|
|
50
|
+
testQuestionCount: number
|
|
51
|
+
}
|
|
52
|
+
|
|
47
53
|
export type MySQLDate = `${number}-${number}-${number} ${number}:${number}:${number}`;
|
|
48
54
|
|
|
49
55
|
export type DateString = `${number}-${number}-${number}`;
|