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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "czapp-shared",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "This is a shared library for Czapp projects. It contains common code that is used across multiple projects.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
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 { DateString, Familiarity, ITestResult, Language, MySQLDate, Scenario, VocabCheckType } from './types';
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[];
@@ -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}`;