revdev 0.189.0 → 0.191.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/front/discover/entity.d.ts +5 -5
- package/lib/front/general/entity.d.ts +2 -2
- package/lib/front/quiz/entity.d.ts +2 -2
- package/lib/front/table/entity.d.ts +2 -2
- package/lib/front/tran/entity.d.ts +2 -2
- package/lib/front/word/entity.d.ts +3 -3
- package/lib/shared/tran/request.d.ts +8 -3
- package/lib/shared/word/entity.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Knowing } from "../../common";
|
|
2
2
|
import { WordKnowledge } from "../../shared";
|
|
3
|
-
import {
|
|
3
|
+
import { WordDataGen } from "../word";
|
|
4
4
|
export interface FeDiscoverProveEntity {
|
|
5
|
-
word:
|
|
6
|
-
images?:
|
|
7
|
-
trans?:
|
|
5
|
+
word: WordDataGen;
|
|
6
|
+
images?: WordDataGen[];
|
|
7
|
+
trans?: WordDataGen[];
|
|
8
8
|
}
|
|
9
9
|
export interface FeDiscoverKnowingOld {
|
|
10
10
|
words?: [string, Knowing][];
|
|
@@ -20,7 +20,7 @@ export interface FeEntityKnowing extends WordKnowledge {
|
|
|
20
20
|
export interface FeDiscoverMeta extends WordKnowledge {
|
|
21
21
|
columns: FeEntityKnowing[];
|
|
22
22
|
}
|
|
23
|
-
export interface ProveWordMeta extends
|
|
23
|
+
export interface ProveWordMeta extends WordDataGen {
|
|
24
24
|
isImage: number;
|
|
25
25
|
isTran: boolean;
|
|
26
26
|
inTag: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FeLangRecord } from "../lang";
|
|
2
2
|
import { FeListRecord } from "../list";
|
|
3
3
|
import { FeTableRecord } from "../table";
|
|
4
|
-
import {
|
|
4
|
+
import { WordDataGen } from "../word";
|
|
5
5
|
export interface FeInitData {
|
|
6
6
|
langCodes: string[];
|
|
7
7
|
speechPartCodes: string[];
|
|
@@ -12,7 +12,7 @@ export interface FeIntroductionData {
|
|
|
12
12
|
langs: FeLangRecord[];
|
|
13
13
|
}
|
|
14
14
|
export interface FeSearchResult {
|
|
15
|
-
words:
|
|
15
|
+
words: WordDataGen[];
|
|
16
16
|
lists: FeListRecord[];
|
|
17
17
|
tables: FeTableRecord[];
|
|
18
18
|
}
|
|
@@ -2,7 +2,7 @@ import { QuizMode } from "../../common";
|
|
|
2
2
|
import { WordGen } from "../../shared";
|
|
3
3
|
import { FeWordImageRecord } from "../image";
|
|
4
4
|
import { FeTranRecord } from "../tran";
|
|
5
|
-
import {
|
|
5
|
+
import { WordDataGen } from "../word";
|
|
6
6
|
export interface FeQuizEntity {
|
|
7
7
|
mode?: QuizMode;
|
|
8
8
|
isTable?: boolean;
|
|
@@ -15,5 +15,5 @@ export interface FeQuizPair {
|
|
|
15
15
|
cellWords?: WordGen[];
|
|
16
16
|
}
|
|
17
17
|
export interface FeQuizRack {
|
|
18
|
-
words:
|
|
18
|
+
words: WordDataGen[];
|
|
19
19
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AccessGen, ContributionGen } from "../../common";
|
|
2
2
|
import { RealWord } from "../../shared";
|
|
3
|
-
import {
|
|
3
|
+
import { WordDataGen } from "../word";
|
|
4
4
|
export interface BasicCellStruct<TWords> {
|
|
5
5
|
columnIndex: number;
|
|
6
6
|
words: TWords;
|
|
@@ -16,7 +16,7 @@ export interface FeTableRecord {
|
|
|
16
16
|
contribution: ContributionGen;
|
|
17
17
|
access: AccessGen;
|
|
18
18
|
}
|
|
19
|
-
export interface FeCell extends BasicCellStruct<
|
|
19
|
+
export interface FeCell extends BasicCellStruct<WordDataGen[]> {
|
|
20
20
|
}
|
|
21
21
|
export interface FeRowRecord {
|
|
22
22
|
id: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ContributionGen } from "../../common";
|
|
2
2
|
import { ReactionGen } from "../../shared";
|
|
3
|
-
import {
|
|
3
|
+
import { WordDataGen } from "../word";
|
|
4
4
|
export interface FeTranRecord {
|
|
5
5
|
id: string;
|
|
6
6
|
wordId: string;
|
|
7
7
|
speechPartCode?: string;
|
|
8
|
-
dest:
|
|
8
|
+
dest: WordDataGen;
|
|
9
9
|
reaction?: ReactionGen;
|
|
10
10
|
contribution?: ContributionGen;
|
|
11
11
|
}
|
|
@@ -2,8 +2,8 @@ import { Feed } from "../../feed";
|
|
|
2
2
|
import { QuizCode, QuizMode, ContributionGen, AccessGen } from "../../common";
|
|
3
3
|
import { FeWordImageRecord } from "../image";
|
|
4
4
|
import { FeTranRecord } from "../tran";
|
|
5
|
-
import { ReactionGen,
|
|
6
|
-
export interface
|
|
5
|
+
import { ReactionGen, WordUserGen } from "../../shared";
|
|
6
|
+
export interface WordDataGen extends WordUserGen {
|
|
7
7
|
attempts?: FeWordAttempt[];
|
|
8
8
|
images?: FeWordImageRecord[];
|
|
9
9
|
audios?: FeWordAudio[];
|
|
@@ -42,7 +42,7 @@ export interface FeWordTranCode {
|
|
|
42
42
|
langCode: string;
|
|
43
43
|
count: number;
|
|
44
44
|
}
|
|
45
|
-
export interface FeWordEntity extends
|
|
45
|
+
export interface FeWordEntity extends WordUserGen {
|
|
46
46
|
mode?: string;
|
|
47
47
|
contribution?: ContributionGen;
|
|
48
48
|
access?: AccessGen;
|
|
@@ -4,10 +4,15 @@ interface BaseCreateTranRequest<TWord> {
|
|
|
4
4
|
speechPartCode?: string;
|
|
5
5
|
destWord: TWord;
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
7
|
+
export interface CreateTextTranRequest extends BaseCreateTranRequest<EntryWord> {
|
|
8
8
|
destLangCode: string;
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface CreateWordTranRequest extends BaseCreateTranRequest<RealWord | RealWord[]> {
|
|
11
11
|
}
|
|
12
|
-
export
|
|
12
|
+
export interface CreatePairTranRequest {
|
|
13
|
+
destLangCode: string;
|
|
14
|
+
sourceLangCode: string;
|
|
15
|
+
pairs: [EntryWord, EntryWord];
|
|
16
|
+
}
|
|
17
|
+
export declare type CreateTranRequest = CreateTextTranRequest | CreateWordTranRequest | CreatePairTranRequest;
|
|
13
18
|
export {};
|