revdev 0.64.0 → 0.66.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/quiz/entity.d.ts +2 -2
- package/lib/units/quiz/request.d.ts +4 -4
- package/lib/units/translation/request.d.ts +4 -0
- package/lib/units/word/entity.d.ts +2 -2
- 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 = {}));
|
|
@@ -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,3 +1,4 @@
|
|
|
1
|
+
import { WordSetRequest } from "../../general";
|
|
1
2
|
import { EntryWord, RealWord } from "../common";
|
|
2
3
|
interface BaseCreateTranslationRequest<TWord> {
|
|
3
4
|
sourceWordId: string;
|
|
@@ -10,4 +11,7 @@ export interface FeCreateTranslationTextRequest extends BaseCreateTranslationReq
|
|
|
10
11
|
export interface FeCreateTranslationWordRequest extends BaseCreateTranslationRequest<RealWord | RealWord[]> {
|
|
11
12
|
}
|
|
12
13
|
export declare type FeCreateTranslationRequest = FeCreateTranslationTextRequest | FeCreateTranslationWordRequest;
|
|
14
|
+
export interface FeTranslationWordSetRequest extends WordSetRequest {
|
|
15
|
+
languageCode: string;
|
|
16
|
+
}
|
|
13
17
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Feed } from "../../feed";
|
|
2
|
-
import { QuizCode,
|
|
2
|
+
import { QuizCode, QuizMode, Knowing } from "../../general";
|
|
3
3
|
import { FeWordImage } from "../image";
|
|
4
4
|
import { FeEntityAccess, FeEntityContribution, FeReactionDirect } from "../common";
|
|
5
5
|
import { FeTranslation } from "../translation";
|
|
@@ -26,7 +26,7 @@ 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;
|