revdev 0.240.0 → 0.242.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/back/general/entity.d.ts +0 -17
- package/lib/back/index.d.ts +1 -0
- package/lib/back/index.js +1 -0
- package/lib/back/lang/entity.d.ts +13 -0
- package/lib/back/lang/index.d.ts +2 -0
- package/lib/back/lang/index.js +14 -0
- package/lib/back/lang/request.d.ts +10 -0
- package/lib/back/lang/request.js +2 -0
- package/lib/common/request.d.ts +2 -0
- package/lib/front/quiz/entity.d.ts +3 -5
- package/lib/front/tran/entity.d.ts +1 -10
- package/lib/front/word/entity.d.ts +8 -19
- package/lib/front/word/request.d.ts +0 -3
- package/lib/front/wordImage/index.d.ts +0 -1
- package/lib/front/wordImage/index.js +0 -1
- package/lib/shared/tran/entity.d.ts +14 -1
- package/lib/shared/word/entity.d.ts +10 -1
- package/lib/shared/wordImage/entity.d.ts +11 -1
- package/package.json +1 -1
- package/lib/front/wordImage/entity.d.ts +0 -11
- /package/lib/{front/wordImage → back/lang}/entity.js +0 -0
|
@@ -1,21 +1,4 @@
|
|
|
1
|
-
export interface BoLang {
|
|
2
|
-
langCode: string;
|
|
3
|
-
nativeName: string;
|
|
4
|
-
googleCode: string;
|
|
5
|
-
rate: number;
|
|
6
|
-
active: boolean;
|
|
7
|
-
wordTotal: number;
|
|
8
|
-
listTotal: number;
|
|
9
|
-
tableTotal: number;
|
|
10
|
-
}
|
|
11
1
|
export interface BoSpeechPart {
|
|
12
2
|
code: string;
|
|
13
3
|
tranTotal: number;
|
|
14
4
|
}
|
|
15
|
-
export interface BoLangUpdateRequest {
|
|
16
|
-
code: string;
|
|
17
|
-
nativeName?: string;
|
|
18
|
-
googleCode?: string;
|
|
19
|
-
rate?: number;
|
|
20
|
-
active?: boolean;
|
|
21
|
-
}
|
package/lib/back/index.d.ts
CHANGED
package/lib/back/index.js
CHANGED
|
@@ -22,4 +22,5 @@ __exportStar(require("./general"), exports);
|
|
|
22
22
|
__exportStar(require("./table"), exports);
|
|
23
23
|
__exportStar(require("./auth"), exports);
|
|
24
24
|
__exportStar(require("./image"), exports);
|
|
25
|
+
__exportStar(require("./lang"), exports);
|
|
25
26
|
__exportStar(require("./wordImage"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./entity"), exports);
|
|
14
|
+
__exportStar(require("./request"), exports);
|
package/lib/common/request.d.ts
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { QuizMode } from "../../common";
|
|
2
|
-
import { WordGen } from "../../shared";
|
|
3
|
-
import { FeTranRecord } from "../tran";
|
|
2
|
+
import { TranRecord, WordGen, WordImageRecord } from "../../shared";
|
|
4
3
|
import { WordDataGen } from "../word";
|
|
5
|
-
import { FeWordImageRecord } from "../wordImage";
|
|
6
4
|
export interface FeQuizEntity {
|
|
7
5
|
mode: QuizMode;
|
|
8
6
|
pairs: FeQuizPair[];
|
|
9
7
|
}
|
|
10
8
|
export interface FeQuizPair {
|
|
11
9
|
word: WordGen;
|
|
12
|
-
trans?:
|
|
13
|
-
images?:
|
|
10
|
+
trans?: TranRecord[];
|
|
11
|
+
images?: WordImageRecord[];
|
|
14
12
|
cellWords?: WordGen[];
|
|
15
13
|
}
|
|
16
14
|
export interface FeQuizRack {
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TranRecord } from "../../shared";
|
|
3
|
-
import { WordDataGen } from "../word";
|
|
4
|
-
export interface FeTranRecord extends Omit<TranRecord, "dest"> {
|
|
5
|
-
dest: WordDataGen;
|
|
6
|
-
reaction?: UserReaction;
|
|
7
|
-
tranWordId: string;
|
|
8
|
-
pinned: boolean;
|
|
9
|
-
contrib?: ContribGen;
|
|
10
|
-
}
|
|
1
|
+
import { PinModifier } from "../../common";
|
|
11
2
|
export interface FeTranWordPinModifier extends PinModifier {
|
|
12
3
|
tranId: string;
|
|
13
4
|
}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { Feed } from "../../feed";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { WordUserGen } from "../../shared";
|
|
5
|
-
import { FeWordImageRecord } from "../wordImage";
|
|
2
|
+
import { DualContribGen, AccessGen, ContribGen } from "../../common";
|
|
3
|
+
import { TranRecord, WordAttemptRecord, WordImageRecord, WordUserGen } from "../../shared";
|
|
6
4
|
export interface WordDataGen extends WordUserGen {
|
|
7
|
-
attempts?:
|
|
8
|
-
images?:
|
|
5
|
+
attempts?: WordAttemptRecord[];
|
|
6
|
+
images?: WordImageRecord[];
|
|
9
7
|
audios?: FeWordAudio[];
|
|
10
8
|
tags?: FeWordTag[];
|
|
11
|
-
trans?:
|
|
9
|
+
trans?: TranRecord[];
|
|
12
10
|
tranLangCode?: string;
|
|
13
11
|
}
|
|
14
12
|
export interface FeWordTag {
|
|
@@ -16,15 +14,6 @@ export interface FeWordTag {
|
|
|
16
14
|
tagCode: string;
|
|
17
15
|
contrib: ContribGen;
|
|
18
16
|
}
|
|
19
|
-
export interface FeWordAttempt {
|
|
20
|
-
id: string;
|
|
21
|
-
wordId: string;
|
|
22
|
-
quizCode: QuizCode;
|
|
23
|
-
quizMode: QuizMode;
|
|
24
|
-
isCorrect: boolean;
|
|
25
|
-
tranLangCode: string;
|
|
26
|
-
contrib: ContribGen;
|
|
27
|
-
}
|
|
28
17
|
export interface FeWordAudio {
|
|
29
18
|
id: string;
|
|
30
19
|
wordId: string;
|
|
@@ -34,7 +23,7 @@ export interface FeWordAudio {
|
|
|
34
23
|
}
|
|
35
24
|
export interface FeWordSpeechPart {
|
|
36
25
|
speechPartId?: string;
|
|
37
|
-
tranFeed: Feed<
|
|
26
|
+
tranFeed: Feed<TranRecord>;
|
|
38
27
|
}
|
|
39
28
|
export interface FeWordTranCode {
|
|
40
29
|
langCode: string;
|
|
@@ -44,9 +33,9 @@ export interface FeWordEntity extends WordUserGen {
|
|
|
44
33
|
mode?: string;
|
|
45
34
|
contrib?: DualContribGen;
|
|
46
35
|
access?: AccessGen;
|
|
47
|
-
attempts?:
|
|
36
|
+
attempts?: WordAttemptRecord[];
|
|
48
37
|
speechParts?: FeWordSpeechPart[];
|
|
49
|
-
imageFeed?: Feed<
|
|
38
|
+
imageFeed?: Feed<WordImageRecord>;
|
|
50
39
|
audioFeed?: Feed<FeWordAudio>;
|
|
51
40
|
tagFeed?: Feed<FeWordTag>;
|
|
52
41
|
tranLangCode: string;
|
|
@@ -39,9 +39,6 @@ export interface FeWordOptionRequest {
|
|
|
39
39
|
}
|
|
40
40
|
export interface FeCreateWordRequest extends CreateWordRequest {
|
|
41
41
|
}
|
|
42
|
-
export interface FeWordsRequest {
|
|
43
|
-
wordIds: string[];
|
|
44
|
-
}
|
|
45
42
|
export interface FeWordKnowingRequest {
|
|
46
43
|
wordIds: string[];
|
|
47
44
|
knowing: Knowing;
|
|
@@ -1,8 +1,21 @@
|
|
|
1
|
+
import { ContribGen, UserReaction } from "../../common";
|
|
2
|
+
import { WordDataGen } from "../../front";
|
|
1
3
|
import { WordGen } from "../word";
|
|
2
|
-
export interface
|
|
4
|
+
export interface TranModifier {
|
|
3
5
|
id: string;
|
|
4
6
|
wordId: string;
|
|
5
7
|
dest: WordGen;
|
|
6
8
|
speechPartId?: string;
|
|
7
9
|
rate: number;
|
|
8
10
|
}
|
|
11
|
+
export interface TranRecord {
|
|
12
|
+
id: string;
|
|
13
|
+
wordId: string;
|
|
14
|
+
dest: WordDataGen;
|
|
15
|
+
speechPartId?: string;
|
|
16
|
+
tranWordId: string;
|
|
17
|
+
rate: number;
|
|
18
|
+
reaction?: UserReaction;
|
|
19
|
+
pinned?: boolean;
|
|
20
|
+
contrib: ContribGen;
|
|
21
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Knowing } from "../../common";
|
|
1
|
+
import { ContribGen, Knowing, QuizCode, QuizMode } from "../../common";
|
|
2
2
|
export interface WordGen {
|
|
3
3
|
id: string;
|
|
4
4
|
text: string;
|
|
@@ -17,3 +17,12 @@ export interface PotentialWord {
|
|
|
17
17
|
text: string;
|
|
18
18
|
}
|
|
19
19
|
export declare type LiteralWord = string | string[] | PotentialWord | PotentialWord[];
|
|
20
|
+
export interface WordAttemptRecord {
|
|
21
|
+
id: string;
|
|
22
|
+
wordId: string;
|
|
23
|
+
quizCode: QuizCode;
|
|
24
|
+
quizMode: QuizMode;
|
|
25
|
+
isCorrect: boolean;
|
|
26
|
+
tranLangCode: string;
|
|
27
|
+
contrib: ContribGen;
|
|
28
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EntryStatus } from "../../common";
|
|
1
|
+
import { ContribGen, EntryStatus, ImageGen, UserReaction } from "../../common";
|
|
2
2
|
export interface WordImageModifier {
|
|
3
3
|
id: string;
|
|
4
4
|
wordId: string;
|
|
@@ -9,3 +9,13 @@ export interface WordImageModifier {
|
|
|
9
9
|
status?: EntryStatus;
|
|
10
10
|
rate: number;
|
|
11
11
|
}
|
|
12
|
+
export interface WordImageRecord {
|
|
13
|
+
id: string;
|
|
14
|
+
wordId: string;
|
|
15
|
+
image: ImageGen;
|
|
16
|
+
active: boolean;
|
|
17
|
+
rate: number;
|
|
18
|
+
reaction?: UserReaction;
|
|
19
|
+
pinned?: boolean;
|
|
20
|
+
contrib: ContribGen;
|
|
21
|
+
}
|
package/package.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ContribGen, ImageGen, UserReaction } from "../../common";
|
|
2
|
-
export interface FeWordImageRecord {
|
|
3
|
-
id: string;
|
|
4
|
-
wordId: string;
|
|
5
|
-
image: ImageGen;
|
|
6
|
-
active: boolean;
|
|
7
|
-
rate: number;
|
|
8
|
-
reaction: UserReaction;
|
|
9
|
-
pinned: boolean;
|
|
10
|
-
contrib: ContribGen;
|
|
11
|
-
}
|
|
File without changes
|