czapp-shared 1.0.24 → 1.0.26

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 {
@@ -276,6 +276,7 @@ declare enum ClientPlatform {
276
276
  */
277
277
  interface TestInitRequestBody {
278
278
  vocabCheckType: VocabCheckType;
279
+ maxFlashcardDeckCount: number | null;
279
280
  }
280
281
  interface TestCompleteRequestBody {
281
282
  clientDate: MySQLDate;
@@ -308,7 +309,7 @@ interface InsertOrUpdateRequestBody {
308
309
  interface SignInRequestBody {
309
310
  }
310
311
  interface UpdateOnboardingStatusRequestBody {
311
- onboardingStatus: boolean;
312
+ completedOnboarding: boolean;
312
313
  }
313
314
  /**
314
315
  * Request Params
@@ -380,12 +381,13 @@ interface InsertOrUpdateResponseData {
380
381
  newMappingInserted?: boolean;
381
382
  }
382
383
  interface SignInResponseData {
383
- user: Partial<IUserData>;
384
+ user: IUserData;
384
385
  }
385
386
  interface TestInitResponseData {
386
387
  lexemePairs: ILexemePair[];
387
388
  lexemeLearningInfo: ILexemeLearningInfo;
388
389
  vocabCheckType: VocabCheckType;
390
+ pushedFlashcardCount?: number;
389
391
  }
390
392
  interface TestCompleteResponseData {
391
393
  user: IUserData;
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 {
@@ -276,6 +276,7 @@ declare enum ClientPlatform {
276
276
  */
277
277
  interface TestInitRequestBody {
278
278
  vocabCheckType: VocabCheckType;
279
+ maxFlashcardDeckCount: number | null;
279
280
  }
280
281
  interface TestCompleteRequestBody {
281
282
  clientDate: MySQLDate;
@@ -308,7 +309,7 @@ interface InsertOrUpdateRequestBody {
308
309
  interface SignInRequestBody {
309
310
  }
310
311
  interface UpdateOnboardingStatusRequestBody {
311
- onboardingStatus: boolean;
312
+ completedOnboarding: boolean;
312
313
  }
313
314
  /**
314
315
  * Request Params
@@ -380,12 +381,13 @@ interface InsertOrUpdateResponseData {
380
381
  newMappingInserted?: boolean;
381
382
  }
382
383
  interface SignInResponseData {
383
- user: Partial<IUserData>;
384
+ user: IUserData;
384
385
  }
385
386
  interface TestInitResponseData {
386
387
  lexemePairs: ILexemePair[];
387
388
  lexemeLearningInfo: ILexemeLearningInfo;
388
389
  vocabCheckType: VocabCheckType;
390
+ pushedFlashcardCount?: number;
389
391
  }
390
392
  interface TestCompleteResponseData {
391
393
  user: IUserData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "czapp-shared",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
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
@@ -58,6 +58,7 @@ export enum ClientPlatform {
58
58
  */
59
59
  export interface TestInitRequestBody {
60
60
  vocabCheckType: VocabCheckType
61
+ maxFlashcardDeckCount: number | null
61
62
  }
62
63
  export interface TestCompleteRequestBody {
63
64
  clientDate: MySQLDate
@@ -91,7 +92,7 @@ export interface SignInRequestBody {
91
92
  }
92
93
 
93
94
  export interface UpdateOnboardingStatusRequestBody {
94
- onboardingStatus: boolean;
95
+ completedOnboarding: boolean;
95
96
  }
96
97
 
97
98
  /**
@@ -171,19 +172,19 @@ export interface InsertOrUpdateResponseData {
171
172
  newMappingInserted?: boolean
172
173
  }
173
174
  export interface SignInResponseData {
174
- user: Partial<IUserData>;
175
+ user: IUserData;
175
176
  }
176
177
  export interface TestInitResponseData {
177
178
  lexemePairs: ILexemePair[];
178
179
  lexemeLearningInfo: ILexemeLearningInfo;
179
180
  vocabCheckType: VocabCheckType;
181
+ pushedFlashcardCount?: number;
180
182
  }
181
183
  export interface TestCompleteResponseData {
182
184
  user: IUserData;
183
185
  testResultIds: number[];
184
186
  rewardPointsDelta: number;
185
187
  }
186
-
187
188
  export interface HeatMapResponseData {
188
189
  added: IActivityCount[];
189
190
  tested: IActivityCount[];
@@ -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
  }