revdev 0.65.0 → 0.67.0
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/lib/admin/entity/user.d.ts +2 -2
- package/lib/general/enums.d.ts +4 -0
- package/lib/general/enums.js +7 -1
- package/lib/general/literals.d.ts +0 -1
- package/lib/units/common/entity.d.ts +2 -2
- package/lib/units/image/entity.d.ts +2 -2
- package/lib/units/quiz/entity.d.ts +2 -2
- package/lib/units/quiz/request.d.ts +4 -4
- package/lib/units/translation/entity.d.ts +2 -2
- package/lib/units/word/entity.d.ts +5 -5
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { QuizMode } from "../../general";
|
|
2
2
|
export interface BoUser {
|
|
3
3
|
userId: string;
|
|
4
4
|
email: string;
|
|
@@ -18,6 +18,6 @@ export interface BoAttempt {
|
|
|
18
18
|
wordText: string;
|
|
19
19
|
wordLanguageCode: string;
|
|
20
20
|
translationLanguageCode: string;
|
|
21
|
-
quizMode?:
|
|
21
|
+
quizMode?: QuizMode;
|
|
22
22
|
isTable?: boolean;
|
|
23
23
|
}
|
package/lib/general/enums.d.ts
CHANGED
package/lib/general/enums.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserReaction = exports.WordMode = exports.Knowing = void 0;
|
|
3
|
+
exports.QuizMode = exports.UserReaction = exports.WordMode = exports.Knowing = void 0;
|
|
4
4
|
var Knowing;
|
|
5
5
|
(function (Knowing) {
|
|
6
6
|
Knowing[Knowing["Known"] = 1] = "Known";
|
|
@@ -18,3 +18,9 @@ var UserReaction;
|
|
|
18
18
|
UserReaction[UserReaction["Dislike"] = 0] = "Dislike";
|
|
19
19
|
UserReaction[UserReaction["Like"] = 1] = "Like";
|
|
20
20
|
})(UserReaction = exports.UserReaction || (exports.UserReaction = {}));
|
|
21
|
+
var QuizMode;
|
|
22
|
+
(function (QuizMode) {
|
|
23
|
+
QuizMode[QuizMode["Translation"] = 1] = "Translation";
|
|
24
|
+
QuizMode[QuizMode["Image"] = 2] = "Image";
|
|
25
|
+
// Audio = 3,
|
|
26
|
+
})(QuizMode = exports.QuizMode || (exports.QuizMode = {}));
|
|
@@ -25,9 +25,9 @@ export interface FeEntityContribution {
|
|
|
25
25
|
created: string;
|
|
26
26
|
username: string;
|
|
27
27
|
}
|
|
28
|
-
export interface
|
|
28
|
+
export interface FeReactionInfo {
|
|
29
29
|
rate: number;
|
|
30
|
-
|
|
30
|
+
userRate: number;
|
|
31
31
|
}
|
|
32
32
|
export interface FeInitData {
|
|
33
33
|
languageCodes: string[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { FeEntityContribution,
|
|
1
|
+
import { FeEntityContribution, FeReactionInfo } from "../common";
|
|
2
2
|
export interface FeWordImage {
|
|
3
3
|
id: string;
|
|
4
4
|
wordId: string;
|
|
5
5
|
imageId: string;
|
|
6
6
|
fileName: string;
|
|
7
7
|
thumbnailFileName: string;
|
|
8
|
-
reaction?:
|
|
8
|
+
reaction?: FeReactionInfo;
|
|
9
9
|
contribution?: FeEntityContribution;
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { QuizMode } from "../../general";
|
|
2
2
|
import { FeWordDirect } from "../common";
|
|
3
3
|
import { FeWordImage } from "../image";
|
|
4
4
|
import { FeTranslation } from "../translation";
|
|
5
5
|
import { FeWord } from "../word";
|
|
6
6
|
export interface FeQuizEntity {
|
|
7
|
-
mode?:
|
|
7
|
+
mode?: QuizMode;
|
|
8
8
|
isTable?: boolean;
|
|
9
9
|
pairs: FeQuizPair[];
|
|
10
10
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { QuizCode,
|
|
1
|
+
import { QuizCode, QuizMode } from "../../general";
|
|
2
2
|
export interface FeQuizEntityRequest {
|
|
3
3
|
code: QuizCode;
|
|
4
4
|
wordCount: number;
|
|
5
|
-
mode?:
|
|
5
|
+
mode?: QuizMode;
|
|
6
6
|
translationLanguageCode?: string;
|
|
7
7
|
languageCode?: string;
|
|
8
8
|
listSlug?: string;
|
|
@@ -17,13 +17,13 @@ export interface FeQuizAttemptResultRequest {
|
|
|
17
17
|
}
|
|
18
18
|
export interface FeQuizAttemptRequest {
|
|
19
19
|
code: QuizCode;
|
|
20
|
-
mode:
|
|
20
|
+
mode: QuizMode;
|
|
21
21
|
translationLanguageCode: string;
|
|
22
22
|
isTable?: boolean;
|
|
23
23
|
attempts: FeQuizAttemptResultRequest[];
|
|
24
24
|
}
|
|
25
25
|
export interface FeQuizRackRequest {
|
|
26
26
|
wordIds: string[];
|
|
27
|
-
mode?:
|
|
27
|
+
mode?: QuizMode;
|
|
28
28
|
translationLanguageCode?: string;
|
|
29
29
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { FeEntityContribution,
|
|
1
|
+
import { FeEntityContribution, FeReactionInfo } from "../common";
|
|
2
2
|
import { FeWord } from "../word";
|
|
3
3
|
export interface FeTranslation {
|
|
4
4
|
id: string;
|
|
5
5
|
wordId: string;
|
|
6
6
|
speechPartCode?: string;
|
|
7
7
|
destination: FeWord;
|
|
8
|
-
reaction?:
|
|
8
|
+
reaction?: FeReactionInfo;
|
|
9
9
|
contribution?: FeEntityContribution;
|
|
10
10
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Feed } from "../../feed";
|
|
2
|
-
import { QuizCode,
|
|
2
|
+
import { QuizCode, QuizMode, Knowing } from "../../general";
|
|
3
3
|
import { FeWordImage } from "../image";
|
|
4
|
-
import { FeEntityAccess, FeEntityContribution,
|
|
4
|
+
import { FeEntityAccess, FeEntityContribution, FeReactionInfo } from "../common";
|
|
5
5
|
import { FeTranslation } from "../translation";
|
|
6
6
|
export interface FeWord {
|
|
7
7
|
id: string;
|
|
@@ -19,14 +19,14 @@ export interface FeWordTag {
|
|
|
19
19
|
id: string;
|
|
20
20
|
wordId: string;
|
|
21
21
|
tagCode: string;
|
|
22
|
-
reaction:
|
|
22
|
+
reaction: FeReactionInfo;
|
|
23
23
|
contribution: FeEntityContribution;
|
|
24
24
|
}
|
|
25
25
|
export interface FeWordAttempt {
|
|
26
26
|
id: string;
|
|
27
27
|
wordId: string;
|
|
28
28
|
quizCode: QuizCode;
|
|
29
|
-
quizMode:
|
|
29
|
+
quizMode: QuizMode;
|
|
30
30
|
isCorrect: boolean;
|
|
31
31
|
translationLanguageCode: string;
|
|
32
32
|
isTable: boolean;
|
|
@@ -37,7 +37,7 @@ export interface FeWordAudio {
|
|
|
37
37
|
wordId: string;
|
|
38
38
|
audioId: string;
|
|
39
39
|
fileName: string;
|
|
40
|
-
reaction:
|
|
40
|
+
reaction: FeReactionInfo;
|
|
41
41
|
contribution: FeEntityContribution;
|
|
42
42
|
}
|
|
43
43
|
export interface FeWordSpeechPart {
|