revdev 0.139.0 → 0.141.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/common/entity.d.ts +1 -1
- package/lib/back/general/entity.d.ts +4 -4
- package/lib/back/index.d.ts +1 -1
- package/lib/back/index.js +1 -1
- package/lib/back/list/entity.d.ts +1 -1
- package/lib/back/locale-text/request.d.ts +1 -1
- package/lib/back/table/entity.d.ts +1 -1
- package/lib/back/tag/entity.d.ts +2 -2
- package/lib/back/tran/entity.d.ts +15 -0
- package/lib/back/user/entity.d.ts +8 -8
- package/lib/back/word/entity.d.ts +4 -4
- package/lib/back/word/request.d.ts +2 -2
- package/lib/common/enums.d.ts +1 -1
- package/lib/common/enums.js +1 -1
- package/lib/common/link.d.ts +1 -1
- package/lib/feed/index.d.ts +5 -5
- package/lib/front/discover/entity.d.ts +3 -3
- package/lib/front/discover/request.d.ts +5 -5
- package/lib/front/general/entity.d.ts +3 -3
- package/lib/front/index.d.ts +2 -2
- package/lib/front/index.js +2 -2
- package/lib/front/{language → lang}/entity.d.ts +2 -2
- package/lib/front/list/entity.d.ts +2 -2
- package/lib/front/list/request.d.ts +2 -2
- package/lib/front/quiz/entity.d.ts +2 -2
- package/lib/front/quiz/request.d.ts +5 -5
- package/lib/front/table/entity.d.ts +2 -2
- package/lib/front/table/request.d.ts +4 -4
- package/lib/front/tag/entity.d.ts +1 -1
- package/lib/front/tag/request.d.ts +3 -3
- package/lib/front/{translation → tran}/entity.d.ts +2 -2
- package/lib/front/tran/request.d.ts +17 -0
- package/lib/front/user/entity.d.ts +2 -2
- package/lib/front/user/request.d.ts +1 -1
- package/lib/front/word/entity.d.ts +10 -10
- package/lib/front/word/request.d.ts +5 -5
- package/lib/shared/list/request.d.ts +1 -1
- package/lib/shared/word/entity.d.ts +1 -1
- package/lib/shared/word/request.d.ts +2 -2
- package/package.json +1 -1
- package/lib/back/translation/entity.d.ts +0 -15
- package/lib/front/translation/request.d.ts +0 -17
- /package/lib/back/{translation → tran}/entity.js +0 -0
- /package/lib/back/{translation → tran}/index.d.ts +0 -0
- /package/lib/back/{translation → tran}/index.js +0 -0
- /package/lib/front/{language → lang}/entity.js +0 -0
- /package/lib/front/{language → lang}/index.d.ts +0 -0
- /package/lib/front/{language → lang}/index.js +0 -0
- /package/lib/front/{translation → tran}/entity.js +0 -0
- /package/lib/front/{translation → tran}/index.d.ts +0 -0
- /package/lib/front/{translation → tran}/index.js +0 -0
- /package/lib/front/{translation → tran}/request.js +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export interface
|
|
2
|
-
|
|
1
|
+
export interface BoLang {
|
|
2
|
+
langCode: string;
|
|
3
3
|
nativeName: string;
|
|
4
4
|
googleCode: string;
|
|
5
5
|
rate: number;
|
|
@@ -10,9 +10,9 @@ export interface BoLanguage {
|
|
|
10
10
|
}
|
|
11
11
|
export interface BoSpeechPart {
|
|
12
12
|
code: string;
|
|
13
|
-
|
|
13
|
+
tranCount: number;
|
|
14
14
|
}
|
|
15
|
-
export interface
|
|
15
|
+
export interface BoLangUpdateRequest {
|
|
16
16
|
code: string;
|
|
17
17
|
nativeName?: string;
|
|
18
18
|
googleCode?: string;
|
package/lib/back/index.d.ts
CHANGED
package/lib/back/index.js
CHANGED
|
@@ -14,7 +14,7 @@ __exportStar(require("./locale-text"), exports);
|
|
|
14
14
|
__exportStar(require("./common"), exports);
|
|
15
15
|
__exportStar(require("./list"), exports);
|
|
16
16
|
__exportStar(require("./word"), exports);
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./tran"), exports);
|
|
18
18
|
__exportStar(require("./tag"), exports);
|
|
19
19
|
__exportStar(require("./user"), exports);
|
|
20
20
|
__exportStar(require("./general"), exports);
|
package/lib/back/tag/entity.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface BoTagWordRecord {
|
|
2
2
|
wordId: string;
|
|
3
3
|
text: string;
|
|
4
|
-
|
|
4
|
+
langCode: string;
|
|
5
5
|
tagCode: string;
|
|
6
6
|
created: string;
|
|
7
7
|
createdUsername: string;
|
|
@@ -12,6 +12,6 @@ export interface BoTagRecord {
|
|
|
12
12
|
created: string;
|
|
13
13
|
createdUsername: string;
|
|
14
14
|
wordCount: number;
|
|
15
|
-
|
|
15
|
+
tranCount: number;
|
|
16
16
|
imageCount: number;
|
|
17
17
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface BoTranWordRecord {
|
|
2
|
+
tranId: string;
|
|
3
|
+
wordId: string;
|
|
4
|
+
text: string;
|
|
5
|
+
langCode: string;
|
|
6
|
+
imageFileName: string;
|
|
7
|
+
imageThumbnailFileName: string;
|
|
8
|
+
}
|
|
9
|
+
export interface BoTranRecord {
|
|
10
|
+
tranId: string;
|
|
11
|
+
created: string;
|
|
12
|
+
userId?: string;
|
|
13
|
+
speechPartCode?: string;
|
|
14
|
+
words: BoTranWordRecord[];
|
|
15
|
+
}
|
|
@@ -5,9 +5,9 @@ export interface BoUserRecord {
|
|
|
5
5
|
name: string;
|
|
6
6
|
created: string;
|
|
7
7
|
locale: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
nativeLangCode: string;
|
|
9
|
+
learnLangCode: string;
|
|
10
|
+
tranLangCode: string;
|
|
11
11
|
}
|
|
12
12
|
export interface BoUserModifier {
|
|
13
13
|
id: string;
|
|
@@ -15,9 +15,9 @@ export interface BoUserModifier {
|
|
|
15
15
|
email: string;
|
|
16
16
|
name: string;
|
|
17
17
|
locale?: string;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
nativeLangCode?: string;
|
|
19
|
+
learnLangCode?: string;
|
|
20
|
+
tranLangCode?: string;
|
|
21
21
|
}
|
|
22
22
|
export interface BoAttemptRecord {
|
|
23
23
|
attemptId: string;
|
|
@@ -26,8 +26,8 @@ export interface BoAttemptRecord {
|
|
|
26
26
|
created: string;
|
|
27
27
|
isCorrect: boolean;
|
|
28
28
|
wordText: string;
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
wordLangCode: string;
|
|
30
|
+
tranLangCode: string;
|
|
31
31
|
quizMode?: QuizMode;
|
|
32
32
|
isTable?: boolean;
|
|
33
33
|
}
|
|
@@ -3,11 +3,11 @@ import { WordGen } from "../../shared";
|
|
|
3
3
|
export interface BoWordRecord {
|
|
4
4
|
id: string;
|
|
5
5
|
text: string;
|
|
6
|
-
|
|
6
|
+
langCode: string;
|
|
7
7
|
created: string;
|
|
8
8
|
mode?: string;
|
|
9
9
|
rate?: number;
|
|
10
|
-
|
|
10
|
+
tranCount: number;
|
|
11
11
|
listCount: number;
|
|
12
12
|
tableCount: number;
|
|
13
13
|
imageCount: number;
|
|
@@ -17,7 +17,7 @@ export interface BoWordRecord {
|
|
|
17
17
|
export interface BoWordEntity {
|
|
18
18
|
id: string;
|
|
19
19
|
text: string;
|
|
20
|
-
|
|
20
|
+
langCode: string;
|
|
21
21
|
created: string;
|
|
22
22
|
mode?: string;
|
|
23
23
|
rate?: number;
|
|
@@ -34,7 +34,7 @@ export interface BoWordImageRecord {
|
|
|
34
34
|
export interface BoWordAudioRecord {
|
|
35
35
|
wordId: string;
|
|
36
36
|
text: string;
|
|
37
|
-
|
|
37
|
+
langCode: string;
|
|
38
38
|
audioId: string;
|
|
39
39
|
wordAudioId: string;
|
|
40
40
|
fileName: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FeedRequest, FeWordSetRequest,
|
|
1
|
+
import { FeedRequest, FeWordSetRequest, LangFeedRequest } from "../../feed";
|
|
2
2
|
import { CreateWordRequest } from "../../shared";
|
|
3
|
-
export interface BoWordImageFeedRequest extends
|
|
3
|
+
export interface BoWordImageFeedRequest extends LangFeedRequest {
|
|
4
4
|
wordId?: string;
|
|
5
5
|
}
|
|
6
6
|
export interface BoWordUpdateRequest {
|
package/lib/common/enums.d.ts
CHANGED
package/lib/common/enums.js
CHANGED
|
@@ -20,7 +20,7 @@ var UserReaction;
|
|
|
20
20
|
})(UserReaction = exports.UserReaction || (exports.UserReaction = {}));
|
|
21
21
|
var QuizMode;
|
|
22
22
|
(function (QuizMode) {
|
|
23
|
-
QuizMode[QuizMode["
|
|
23
|
+
QuizMode[QuizMode["Tran"] = 1] = "Tran";
|
|
24
24
|
QuizMode[QuizMode["Image"] = 2] = "Image";
|
|
25
25
|
// Audio = 3,
|
|
26
26
|
})(QuizMode = exports.QuizMode || (exports.QuizMode = {}));
|
package/lib/common/link.d.ts
CHANGED
package/lib/feed/index.d.ts
CHANGED
|
@@ -11,8 +11,8 @@ export interface FeedRequest {
|
|
|
11
11
|
direction?: OrderDirection;
|
|
12
12
|
[key: string]: any;
|
|
13
13
|
}
|
|
14
|
-
export interface
|
|
15
|
-
|
|
14
|
+
export interface LangFeedRequest extends FeedRequest {
|
|
15
|
+
langCode?: string;
|
|
16
16
|
}
|
|
17
17
|
export interface EntityWithCount {
|
|
18
18
|
count: number;
|
|
@@ -23,12 +23,12 @@ export interface Feed<TItem = any> {
|
|
|
23
23
|
total: number;
|
|
24
24
|
}
|
|
25
25
|
export interface FeWordSetRequest {
|
|
26
|
-
|
|
26
|
+
langCode?: string;
|
|
27
27
|
knowing?: Knowing;
|
|
28
28
|
mode?: string;
|
|
29
29
|
hasImage?: boolean;
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
hasTran?: boolean;
|
|
31
|
+
tranLangCode?: string;
|
|
32
32
|
}
|
|
33
33
|
export interface FeWordRelationFeedRequest {
|
|
34
34
|
wordId: string;
|
|
@@ -4,14 +4,14 @@ import { FeWordRecord } from "../word";
|
|
|
4
4
|
export interface FeDiscoverProveEntity {
|
|
5
5
|
word: FeWordRecord;
|
|
6
6
|
images?: FeWordRecord[];
|
|
7
|
-
|
|
7
|
+
trans?: FeWordRecord[];
|
|
8
8
|
}
|
|
9
9
|
export interface FeDiscoverKnowingOld {
|
|
10
10
|
words?: [string, Knowing][];
|
|
11
11
|
tags?: [string, string, WordKnowledge][];
|
|
12
12
|
lists?: [string, WordKnowledge][];
|
|
13
13
|
tables?: [string, WordKnowledge][];
|
|
14
|
-
|
|
14
|
+
langs?: [string, WordKnowledge][];
|
|
15
15
|
}
|
|
16
16
|
export interface FeEntityKnowing extends WordKnowledge {
|
|
17
17
|
id: string;
|
|
@@ -22,7 +22,7 @@ export interface FeDiscoverMeta extends WordKnowledge {
|
|
|
22
22
|
}
|
|
23
23
|
export interface ProveWordMeta extends FeWordRecord {
|
|
24
24
|
isImage: number;
|
|
25
|
-
|
|
25
|
+
isTran: boolean;
|
|
26
26
|
inTag: boolean;
|
|
27
27
|
tagCount: number;
|
|
28
28
|
}
|
|
@@ -7,18 +7,18 @@ export interface FeDiscoverWordKnowingRequest {
|
|
|
7
7
|
}
|
|
8
8
|
export interface FeDiscoverProveRequest {
|
|
9
9
|
wordId: string;
|
|
10
|
-
|
|
10
|
+
tranLangCode?: string;
|
|
11
11
|
repeat?: boolean;
|
|
12
12
|
}
|
|
13
13
|
export interface FeDiscoverSetRequest extends FeUserInfoRequest {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
tranLangCode: string;
|
|
15
|
+
langCode?: string;
|
|
16
16
|
tagCode?: string;
|
|
17
17
|
listSlug?: string;
|
|
18
18
|
tableSlug?: string;
|
|
19
19
|
}
|
|
20
20
|
export interface FeDiscoverMetaRequest extends FeUserInfoRequest {
|
|
21
|
-
|
|
21
|
+
langCode?: string;
|
|
22
22
|
tagCode?: string;
|
|
23
23
|
listSlug?: string;
|
|
24
24
|
tableSlug?: string;
|
|
@@ -28,7 +28,7 @@ export interface FeDiscoverKnowingOldRequest {
|
|
|
28
28
|
tagCodes?: [string, string][];
|
|
29
29
|
listSlugs?: string[];
|
|
30
30
|
tableSlugs?: string[];
|
|
31
|
-
|
|
31
|
+
langCodes?: string[];
|
|
32
32
|
}
|
|
33
33
|
export interface FeDiscoverWordFeedRequest extends FeDiscoverMetaRequest, FeedRequest {
|
|
34
34
|
knowing?: Knowing;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FeLangRecord } from "../lang";
|
|
2
2
|
import { FeListRecord } from "../list";
|
|
3
3
|
import { FeTableRecord } from "../table";
|
|
4
4
|
import { FeWordRecord } from "../word";
|
|
5
5
|
export interface FeInitData {
|
|
6
|
-
|
|
6
|
+
langCodes: string[];
|
|
7
7
|
speechPartCodes: string[];
|
|
8
8
|
quizCodes: string[];
|
|
9
9
|
localeCodes: string[];
|
|
@@ -11,7 +11,7 @@ export interface FeInitData {
|
|
|
11
11
|
localeVersion: number;
|
|
12
12
|
}
|
|
13
13
|
export interface FeIntroductionData {
|
|
14
|
-
|
|
14
|
+
langs: FeLangRecord[];
|
|
15
15
|
}
|
|
16
16
|
export interface FeSearchResult {
|
|
17
17
|
words: FeWordRecord[];
|
package/lib/front/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export * from "./word";
|
|
2
2
|
export * from "./tag";
|
|
3
|
-
export * from "./
|
|
3
|
+
export * from "./lang";
|
|
4
4
|
export * from "./general";
|
|
5
5
|
export * from "./list";
|
|
6
6
|
export * from "./image";
|
|
7
7
|
export * from "./table";
|
|
8
|
-
export * from "./
|
|
8
|
+
export * from "./tran";
|
|
9
9
|
export * from "./auth";
|
|
10
10
|
export * from "./discover";
|
|
11
11
|
export * from "./settings";
|
package/lib/front/index.js
CHANGED
|
@@ -12,12 +12,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./word"), exports);
|
|
14
14
|
__exportStar(require("./tag"), exports);
|
|
15
|
-
__exportStar(require("./
|
|
15
|
+
__exportStar(require("./lang"), exports);
|
|
16
16
|
__exportStar(require("./general"), exports);
|
|
17
17
|
__exportStar(require("./list"), exports);
|
|
18
18
|
__exportStar(require("./image"), exports);
|
|
19
19
|
__exportStar(require("./table"), exports);
|
|
20
|
-
__exportStar(require("./
|
|
20
|
+
__exportStar(require("./tran"), exports);
|
|
21
21
|
__exportStar(require("./auth"), exports);
|
|
22
22
|
__exportStar(require("./discover"), exports);
|
|
23
23
|
__exportStar(require("./settings"), exports);
|
|
@@ -3,7 +3,7 @@ import { FeListRecord } from "../list";
|
|
|
3
3
|
import { FeTableRecord } from "../table";
|
|
4
4
|
import { FeTagRecord } from "../tag";
|
|
5
5
|
import { FeUserRelationMeta } from "../user";
|
|
6
|
-
export interface
|
|
6
|
+
export interface FeLangRecord {
|
|
7
7
|
code: string;
|
|
8
8
|
wordCount: number;
|
|
9
9
|
knownWordCount: number;
|
|
@@ -11,7 +11,7 @@ export interface FeLanguageRecord {
|
|
|
11
11
|
tableCount: number;
|
|
12
12
|
tagCount: number;
|
|
13
13
|
}
|
|
14
|
-
export interface
|
|
14
|
+
export interface FeLangEntity {
|
|
15
15
|
code: string;
|
|
16
16
|
nativeName: string;
|
|
17
17
|
wordCount: number;
|
|
@@ -2,7 +2,7 @@ import { AccessGen, ContributionGen } from "../../common";
|
|
|
2
2
|
export interface FeListRecord {
|
|
3
3
|
id: string;
|
|
4
4
|
slug: string;
|
|
5
|
-
|
|
5
|
+
langCode: string;
|
|
6
6
|
name: string;
|
|
7
7
|
wordCount: number;
|
|
8
8
|
knownWordCount: number;
|
|
@@ -14,7 +14,7 @@ export interface FeListEntity {
|
|
|
14
14
|
id: string;
|
|
15
15
|
slug: string;
|
|
16
16
|
name: string;
|
|
17
|
-
|
|
17
|
+
langCode: string;
|
|
18
18
|
description?: string;
|
|
19
19
|
metaKeywords?: string;
|
|
20
20
|
contribution: ContributionGen;
|
|
@@ -5,11 +5,11 @@ export interface FeListWordFeedRequest extends FeedRequest, FeWordSetRequest {
|
|
|
5
5
|
export interface FeCreateListRequest {
|
|
6
6
|
name: string;
|
|
7
7
|
description?: string;
|
|
8
|
-
|
|
8
|
+
langCode: string;
|
|
9
9
|
isPrivate: boolean;
|
|
10
10
|
slug?: string;
|
|
11
11
|
}
|
|
12
|
-
export interface FeUpdateListRequest extends Omit<FeCreateListRequest, "
|
|
12
|
+
export interface FeUpdateListRequest extends Omit<FeCreateListRequest, "langCode"> {
|
|
13
13
|
id: string;
|
|
14
14
|
}
|
|
15
15
|
export interface FeListModifier extends FeCreateListRequest {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { QuizMode } from "../../common";
|
|
2
2
|
import { WordGen } from "../../shared";
|
|
3
3
|
import { FeWordImageRecord } from "../image";
|
|
4
|
-
import {
|
|
4
|
+
import { FeTranRecord } from "../tran";
|
|
5
5
|
import { FeWordRecord } from "../word";
|
|
6
6
|
export interface FeQuizEntity {
|
|
7
7
|
mode?: QuizMode;
|
|
@@ -10,7 +10,7 @@ export interface FeQuizEntity {
|
|
|
10
10
|
}
|
|
11
11
|
export interface FeQuizPair {
|
|
12
12
|
word: WordGen;
|
|
13
|
-
|
|
13
|
+
trans?: FeTranRecord[];
|
|
14
14
|
images?: FeWordImageRecord[];
|
|
15
15
|
cellWords?: WordGen[];
|
|
16
16
|
}
|
|
@@ -3,13 +3,13 @@ export interface FeQuizEntityRequest {
|
|
|
3
3
|
code: QuizCode;
|
|
4
4
|
wordCount: number;
|
|
5
5
|
mode?: QuizMode;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
tranLangCode?: string;
|
|
7
|
+
langCode?: string;
|
|
8
8
|
listSlug?: string;
|
|
9
9
|
tagCode?: string;
|
|
10
10
|
tableId?: string;
|
|
11
11
|
learnColumnIndex?: number;
|
|
12
|
-
|
|
12
|
+
tranColumnIndex?: number;
|
|
13
13
|
wordIds?: string[];
|
|
14
14
|
}
|
|
15
15
|
export interface FeQuizAttemptResultRequest {
|
|
@@ -19,12 +19,12 @@ export interface FeQuizAttemptResultRequest {
|
|
|
19
19
|
export interface FeQuizAttemptRequest {
|
|
20
20
|
code: QuizCode;
|
|
21
21
|
mode: QuizMode;
|
|
22
|
-
|
|
22
|
+
tranLangCode: string;
|
|
23
23
|
isTable?: boolean;
|
|
24
24
|
attempts: FeQuizAttemptResultRequest[];
|
|
25
25
|
}
|
|
26
26
|
export interface FeQuizRackRequest {
|
|
27
27
|
wordIds: string[];
|
|
28
28
|
mode?: QuizMode;
|
|
29
|
-
|
|
29
|
+
tranLangCode?: string;
|
|
30
30
|
}
|
|
@@ -8,7 +8,7 @@ export interface BasicCellStruct<TWords> {
|
|
|
8
8
|
export interface FeTableRecord {
|
|
9
9
|
id: string;
|
|
10
10
|
slug: string;
|
|
11
|
-
|
|
11
|
+
langCode: string;
|
|
12
12
|
name: string;
|
|
13
13
|
userCount: number;
|
|
14
14
|
wordCount: number;
|
|
@@ -26,7 +26,7 @@ export interface FeTableEntity {
|
|
|
26
26
|
id: string;
|
|
27
27
|
slug: string;
|
|
28
28
|
name: string;
|
|
29
|
-
|
|
29
|
+
langCode: string;
|
|
30
30
|
description: string;
|
|
31
31
|
metaKeywords: string;
|
|
32
32
|
access: AccessGen;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FeWordSetRequest, FeedRequest,
|
|
1
|
+
import { FeWordSetRequest, FeedRequest, LangFeedRequest } from "../../feed";
|
|
2
2
|
import { EntryWord } from "../../shared";
|
|
3
3
|
import { BasicCellStruct } from "./entity";
|
|
4
4
|
export interface FeRowFeedRequest extends FeedRequest {
|
|
@@ -7,7 +7,7 @@ export interface FeRowFeedRequest extends FeedRequest {
|
|
|
7
7
|
export interface FeTableWordFeedRequest extends FeWordSetRequest, FeedRequest {
|
|
8
8
|
slug: string;
|
|
9
9
|
}
|
|
10
|
-
export interface FeTableFeedRequest extends
|
|
10
|
+
export interface FeTableFeedRequest extends LangFeedRequest {
|
|
11
11
|
userSlug?: string;
|
|
12
12
|
}
|
|
13
13
|
export interface FeRowUpdateRequest {
|
|
@@ -15,14 +15,14 @@ export interface FeRowUpdateRequest {
|
|
|
15
15
|
rowId?: string;
|
|
16
16
|
}
|
|
17
17
|
export interface FeCreateTableRequest {
|
|
18
|
-
|
|
18
|
+
langCode: string;
|
|
19
19
|
name: string;
|
|
20
20
|
description?: string;
|
|
21
21
|
slug?: string;
|
|
22
22
|
isPrivate: boolean;
|
|
23
23
|
columns: string[];
|
|
24
24
|
}
|
|
25
|
-
export interface FeUpdateTableRequest extends Omit<FeCreateTableRequest, "
|
|
25
|
+
export interface FeUpdateTableRequest extends Omit<FeCreateTableRequest, "langCode"> {
|
|
26
26
|
id: string;
|
|
27
27
|
}
|
|
28
28
|
export interface FeUpdateCellRequest extends BasicCellStruct<EntryWord> {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface FeWordTagFeedRequest extends
|
|
1
|
+
import { LangFeedRequest } from "../../feed";
|
|
2
|
+
export interface FeWordTagFeedRequest extends LangFeedRequest {
|
|
3
3
|
tagCode: string;
|
|
4
4
|
}
|
|
5
5
|
export interface FeTagEntityRequest {
|
|
6
6
|
code: string;
|
|
7
|
-
|
|
7
|
+
langCode: string;
|
|
8
8
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ContributionGen } from "../../common";
|
|
2
2
|
import { ReactionGen } from "../../shared";
|
|
3
3
|
import { FeWordRecord } from "../word";
|
|
4
|
-
export interface
|
|
4
|
+
export interface FeTranRecord {
|
|
5
5
|
id: string;
|
|
6
6
|
wordId: string;
|
|
7
7
|
speechPartCode?: string;
|
|
8
|
-
|
|
8
|
+
dest: FeWordRecord;
|
|
9
9
|
reaction?: ReactionGen;
|
|
10
10
|
contribution?: ContributionGen;
|
|
11
11
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { WordSetRequest } from "../../common";
|
|
2
|
+
import { EntryWord, RealWord } from "../../shared";
|
|
3
|
+
interface BaseCreateTranRequest<TWord> {
|
|
4
|
+
sourceWordId: string;
|
|
5
|
+
speechPartCode?: string;
|
|
6
|
+
destWord: TWord;
|
|
7
|
+
}
|
|
8
|
+
export interface FeCreateTranTextRequest extends BaseCreateTranRequest<EntryWord> {
|
|
9
|
+
destLangCode: string;
|
|
10
|
+
}
|
|
11
|
+
export interface FeCreateTranWordRequest extends BaseCreateTranRequest<RealWord | RealWord[]> {
|
|
12
|
+
}
|
|
13
|
+
export declare type FeCreateTranRequest = FeCreateTranTextRequest | FeCreateTranWordRequest;
|
|
14
|
+
export interface FeTranWordSetRequest extends WordSetRequest {
|
|
15
|
+
langCode: string;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UserWordKnowing } from "../../shared";
|
|
2
2
|
export interface FeUserRelationMeta {
|
|
3
|
-
|
|
3
|
+
langCode?: string;
|
|
4
4
|
listCount: number;
|
|
5
5
|
tableCount: number;
|
|
6
6
|
knowing: UserWordKnowing;
|
|
@@ -10,5 +10,5 @@ export interface FeUserEntity {
|
|
|
10
10
|
username: string;
|
|
11
11
|
name: string;
|
|
12
12
|
relation: FeUserRelationMeta;
|
|
13
|
-
|
|
13
|
+
langRelations: FeUserRelationMeta[];
|
|
14
14
|
}
|
|
@@ -2,7 +2,7 @@ import { FeedRequest } from "../../feed";
|
|
|
2
2
|
import { Knowing } from "../../common";
|
|
3
3
|
export interface FeUserFeedRequest extends FeedRequest {
|
|
4
4
|
username: string;
|
|
5
|
-
|
|
5
|
+
langCode?: string;
|
|
6
6
|
}
|
|
7
7
|
export interface FeUserWordFeedRequest extends FeUserFeedRequest {
|
|
8
8
|
knowing?: Knowing;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { Feed } from "../../feed";
|
|
2
2
|
import { QuizCode, QuizMode, Knowing, ContributionGen, AccessGen } from "../../common";
|
|
3
3
|
import { FeWordImageRecord } from "../image";
|
|
4
|
-
import {
|
|
4
|
+
import { FeTranRecord } from "../tran";
|
|
5
5
|
import { ReactionGen } from "../../shared";
|
|
6
6
|
export interface FeWordRecord {
|
|
7
7
|
id: string;
|
|
8
8
|
text: string;
|
|
9
|
-
|
|
9
|
+
langCode: string;
|
|
10
10
|
mode?: string;
|
|
11
11
|
knowing?: Knowing;
|
|
12
12
|
attempts?: FeWordAttempt[];
|
|
13
13
|
images?: FeWordImageRecord[];
|
|
14
14
|
audios?: FeWordAudio[];
|
|
15
15
|
tags?: FeWordTag[];
|
|
16
|
-
|
|
16
|
+
trans?: FeTranRecord[];
|
|
17
17
|
}
|
|
18
18
|
export interface FeWordTag {
|
|
19
19
|
wordId: string;
|
|
@@ -27,7 +27,7 @@ export interface FeWordAttempt {
|
|
|
27
27
|
quizCode: QuizCode;
|
|
28
28
|
quizMode: QuizMode;
|
|
29
29
|
isCorrect: boolean;
|
|
30
|
-
|
|
30
|
+
tranLangCode: string;
|
|
31
31
|
isTable: boolean;
|
|
32
32
|
contribution: ContributionGen;
|
|
33
33
|
}
|
|
@@ -41,16 +41,16 @@ export interface FeWordAudio {
|
|
|
41
41
|
}
|
|
42
42
|
export interface FeWordSpeechPart {
|
|
43
43
|
speechPartCode?: string;
|
|
44
|
-
|
|
44
|
+
tranFeed: Feed<FeTranRecord>;
|
|
45
45
|
}
|
|
46
|
-
export interface
|
|
47
|
-
|
|
46
|
+
export interface FeWordTranCode {
|
|
47
|
+
langCode: string;
|
|
48
48
|
count: number;
|
|
49
49
|
}
|
|
50
50
|
export interface FeWordEntity {
|
|
51
51
|
id: string;
|
|
52
52
|
text: string;
|
|
53
|
-
|
|
53
|
+
langCode: string;
|
|
54
54
|
knowing?: Knowing;
|
|
55
55
|
mode?: string;
|
|
56
56
|
contribution?: ContributionGen;
|
|
@@ -60,6 +60,6 @@ export interface FeWordEntity {
|
|
|
60
60
|
imageFeed?: Feed<FeWordImageRecord>;
|
|
61
61
|
audioFeed?: Feed<FeWordAudio>;
|
|
62
62
|
tagFeed?: Feed<FeWordTag>;
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
tranLangCode?: string;
|
|
64
|
+
tranCodes?: FeWordTranCode[];
|
|
65
65
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { FeWordSetRequest, FeedRequest, ShortFeedRequest } from "../../feed";
|
|
2
2
|
import { CreateWordRequest } from "../../shared";
|
|
3
3
|
export interface FeWordEntityRequest {
|
|
4
|
-
|
|
4
|
+
langCode: string;
|
|
5
5
|
text: string;
|
|
6
|
-
|
|
6
|
+
tranLangCode?: string;
|
|
7
7
|
}
|
|
8
|
-
export interface
|
|
8
|
+
export interface FeTranFeedRequest {
|
|
9
9
|
skip: number;
|
|
10
10
|
wordId: string;
|
|
11
|
-
|
|
11
|
+
langCode: string;
|
|
12
12
|
speechPartCode?: string;
|
|
13
13
|
}
|
|
14
14
|
export interface FeWordAttemptRequest {
|
|
@@ -24,7 +24,7 @@ export interface FeWordFeedRequest extends FeedRequest, FeWordSetRequest {
|
|
|
24
24
|
}
|
|
25
25
|
export interface FeWordOptionRequest {
|
|
26
26
|
text: string;
|
|
27
|
-
|
|
27
|
+
langCode?: string;
|
|
28
28
|
ignoreIds?: string[];
|
|
29
29
|
listId?: string;
|
|
30
30
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { EntryWord } from "./entity";
|
|
2
2
|
export interface CreateWordRequest {
|
|
3
|
-
|
|
3
|
+
langCode: string;
|
|
4
4
|
text: string;
|
|
5
5
|
mode?: string;
|
|
6
6
|
rate?: number;
|
|
7
7
|
}
|
|
8
8
|
export interface InitWordRequest {
|
|
9
|
-
|
|
9
|
+
langCode: string;
|
|
10
10
|
word: EntryWord;
|
|
11
11
|
}
|
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface BoTranslationWordRecord {
|
|
2
|
-
translationId: string;
|
|
3
|
-
wordId: string;
|
|
4
|
-
text: string;
|
|
5
|
-
languageCode: string;
|
|
6
|
-
imageFileName: string;
|
|
7
|
-
imageThumbnailFileName: string;
|
|
8
|
-
}
|
|
9
|
-
export interface BoTranslationRecord {
|
|
10
|
-
translationId: string;
|
|
11
|
-
created: string;
|
|
12
|
-
userId?: string;
|
|
13
|
-
speechPartCode?: string;
|
|
14
|
-
words: BoTranslationWordRecord[];
|
|
15
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { WordSetRequest } from "../../common";
|
|
2
|
-
import { EntryWord, RealWord } from "../../shared";
|
|
3
|
-
interface BaseCreateTranslationRequest<TWord> {
|
|
4
|
-
sourceWordId: string;
|
|
5
|
-
speechPartCode?: string;
|
|
6
|
-
destinationWord: TWord;
|
|
7
|
-
}
|
|
8
|
-
export interface FeCreateTranslationTextRequest extends BaseCreateTranslationRequest<EntryWord> {
|
|
9
|
-
destinationLanguageCode: string;
|
|
10
|
-
}
|
|
11
|
-
export interface FeCreateTranslationWordRequest extends BaseCreateTranslationRequest<RealWord | RealWord[]> {
|
|
12
|
-
}
|
|
13
|
-
export declare type FeCreateTranslationRequest = FeCreateTranslationTextRequest | FeCreateTranslationWordRequest;
|
|
14
|
-
export interface FeTranslationWordSetRequest extends WordSetRequest {
|
|
15
|
-
languageCode: string;
|
|
16
|
-
}
|
|
17
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|