czapp-shared 1.0.25 → 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/dist/index.d.mts CHANGED
@@ -222,7 +222,7 @@ interface IUserData {
222
222
  signUpDate: MySQLDate;
223
223
  testsCompletedCount: number;
224
224
  uiLanguage: Language;
225
- onboardingStatus: boolean;
225
+ completedOnboarding: boolean;
226
226
  }
227
227
 
228
228
  declare enum HttpStatusCode {
@@ -309,7 +309,7 @@ interface InsertOrUpdateRequestBody {
309
309
  interface SignInRequestBody {
310
310
  }
311
311
  interface UpdateOnboardingStatusRequestBody {
312
- onboardingStatus: boolean;
312
+ completedOnboarding: boolean;
313
313
  }
314
314
  /**
315
315
  * Request Params
@@ -381,7 +381,7 @@ interface InsertOrUpdateResponseData {
381
381
  newMappingInserted?: boolean;
382
382
  }
383
383
  interface SignInResponseData {
384
- user: Partial<IUserData>;
384
+ user: IUserData;
385
385
  }
386
386
  interface TestInitResponseData {
387
387
  lexemePairs: ILexemePair[];
package/dist/index.d.ts CHANGED
@@ -222,7 +222,7 @@ interface IUserData {
222
222
  signUpDate: MySQLDate;
223
223
  testsCompletedCount: number;
224
224
  uiLanguage: Language;
225
- onboardingStatus: boolean;
225
+ completedOnboarding: boolean;
226
226
  }
227
227
 
228
228
  declare enum HttpStatusCode {
@@ -309,7 +309,7 @@ interface InsertOrUpdateRequestBody {
309
309
  interface SignInRequestBody {
310
310
  }
311
311
  interface UpdateOnboardingStatusRequestBody {
312
- onboardingStatus: boolean;
312
+ completedOnboarding: boolean;
313
313
  }
314
314
  /**
315
315
  * Request Params
@@ -381,7 +381,7 @@ interface InsertOrUpdateResponseData {
381
381
  newMappingInserted?: boolean;
382
382
  }
383
383
  interface SignInResponseData {
384
- user: Partial<IUserData>;
384
+ user: IUserData;
385
385
  }
386
386
  interface TestInitResponseData {
387
387
  lexemePairs: ILexemePair[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "czapp-shared",
3
- "version": "1.0.25",
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",
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "repository": {
16
16
  "type": "git",
17
- "url": "git+https://gitlab.com/xoundserver/czapp-shared.git"
17
+ "url": "https://gitlab.com/xoundserver/czapp-shared.git"
18
18
  },
19
19
  "author": "",
20
20
  "license": "ISC",
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 {
@@ -92,7 +101,7 @@ export interface SignInRequestBody {
92
101
  }
93
102
 
94
103
  export interface UpdateOnboardingStatusRequestBody {
95
- onboardingStatus: boolean;
104
+ completedOnboarding: boolean;
96
105
  }
97
106
 
98
107
  /**
@@ -172,7 +181,7 @@ export interface InsertOrUpdateResponseData {
172
181
  newMappingInserted?: boolean
173
182
  }
174
183
  export interface SignInResponseData {
175
- user: Partial<IUserData>;
184
+ user: IUserData;
176
185
  }
177
186
  export interface TestInitResponseData {
178
187
  lexemePairs: ILexemePair[];
@@ -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}`;
@@ -16,5 +16,5 @@ export interface IUserData {
16
16
  signUpDate: MySQLDate,
17
17
  testsCompletedCount: number,
18
18
  uiLanguage: Language,
19
- onboardingStatus: boolean
19
+ completedOnboarding: boolean
20
20
  }