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 +3 -3
- package/dist/index.d.ts +3 -3
- package/package.json +2 -2
- package/src/design/api.ts +13 -3
- package/src/design/types.ts +6 -0
- package/src/design/user.ts +1 -1
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
|
-
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
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
|
-
|
|
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:
|
|
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.
|
|
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": "
|
|
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 {
|
|
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
|
-
|
|
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:
|
|
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[];
|
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}`;
|
package/src/design/user.ts
CHANGED