revdev 0.112.0 → 0.114.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/list/entity.d.ts +2 -2
- package/lib/back/word/entity.d.ts +4 -3
- package/lib/common/gen.d.ts +9 -0
- package/lib/common/index.d.ts +1 -0
- package/lib/common/index.js +1 -0
- package/lib/front/discover/entity.d.ts +7 -7
- package/lib/front/discover/request.d.ts +1 -1
- package/lib/front/{common → general}/entity.d.ts +4 -13
- package/lib/front/general/request.js +2 -0
- package/lib/front/image/entity.d.ts +4 -3
- package/lib/front/index.d.ts +1 -1
- package/lib/front/index.js +1 -1
- package/lib/front/list/entity.d.ts +5 -5
- package/lib/front/list/request.d.ts +4 -1
- package/lib/front/quiz/entity.d.ts +3 -3
- package/lib/front/table/entity.d.ts +6 -5
- package/lib/front/table/request.d.ts +1 -1
- package/lib/front/tag/entity.d.ts +3 -2
- package/lib/front/translation/entity.d.ts +4 -3
- package/lib/front/translation/request.d.ts +1 -1
- package/lib/front/user/entity.d.ts +2 -2
- package/lib/front/word/entity.d.ts +9 -9
- package/lib/front/word/request.d.ts +1 -1
- package/package.json +1 -1
- /package/lib/{front/common/entity.js → common/gen.js} +0 -0
- /package/lib/front/{common/request.js → general/entity.js} +0 -0
- /package/lib/front/{common → general}/index.d.ts +0 -0
- /package/lib/front/{common → general}/index.js +0 -0
- /package/lib/front/{common → general}/request.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ContributionGen } from "../../common";
|
|
2
2
|
import { BoUpdateListRequest } from "./request";
|
|
3
3
|
export interface BoListRecord {
|
|
4
4
|
listId: string;
|
|
@@ -11,7 +11,7 @@ export interface BoListRecord {
|
|
|
11
11
|
isPrivate: boolean;
|
|
12
12
|
isSuper: boolean;
|
|
13
13
|
version: number;
|
|
14
|
-
contribution:
|
|
14
|
+
contribution: ContributionGen;
|
|
15
15
|
wordCount: number;
|
|
16
16
|
userCount: number;
|
|
17
17
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ContributionGen } from "../../common";
|
|
2
|
+
import { WordGen } from "../../front";
|
|
2
3
|
export interface BoWordRecord {
|
|
3
4
|
id: string;
|
|
4
5
|
text: string;
|
|
@@ -23,11 +24,11 @@ export interface BoWordEntity {
|
|
|
23
24
|
tags?: string[];
|
|
24
25
|
}
|
|
25
26
|
export interface BoWordImageRecord {
|
|
26
|
-
word:
|
|
27
|
+
word: WordGen;
|
|
27
28
|
imageId: string;
|
|
28
29
|
fileName: string;
|
|
29
30
|
thumbnailFileName: string;
|
|
30
|
-
contribution:
|
|
31
|
+
contribution: ContributionGen;
|
|
31
32
|
wordCount: number;
|
|
32
33
|
rate: number;
|
|
33
34
|
}
|
package/lib/common/index.d.ts
CHANGED
package/lib/common/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Knowing } from "../../common";
|
|
2
|
-
import {
|
|
2
|
+
import { WordKnowledge } from "../general";
|
|
3
3
|
import { FeWordRecord } from "../word";
|
|
4
4
|
export interface FeDiscoverProveEntity {
|
|
5
5
|
word: FeWordRecord;
|
|
@@ -8,16 +8,16 @@ export interface FeDiscoverProveEntity {
|
|
|
8
8
|
}
|
|
9
9
|
export interface FeDiscoverKnowingOld {
|
|
10
10
|
words?: [string, Knowing][];
|
|
11
|
-
tags?: [string, string,
|
|
12
|
-
lists?: [string,
|
|
13
|
-
tables?: [string,
|
|
14
|
-
languages?: [string,
|
|
11
|
+
tags?: [string, string, WordKnowledge][];
|
|
12
|
+
lists?: [string, WordKnowledge][];
|
|
13
|
+
tables?: [string, WordKnowledge][];
|
|
14
|
+
languages?: [string, WordKnowledge][];
|
|
15
15
|
}
|
|
16
|
-
export interface FeEntityKnowing extends
|
|
16
|
+
export interface FeEntityKnowing extends WordKnowledge {
|
|
17
17
|
id: string;
|
|
18
18
|
text: string;
|
|
19
19
|
}
|
|
20
|
-
export interface FeDiscoverMeta extends
|
|
20
|
+
export interface FeDiscoverMeta extends WordKnowledge {
|
|
21
21
|
columns: FeEntityKnowing[];
|
|
22
22
|
}
|
|
23
23
|
export interface ProveWordMeta extends FeWordRecord {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FeedRequest } from "../../feed";
|
|
2
2
|
import { Knowing } from "../../common";
|
|
3
|
-
import { FeUserInfoRequest } from "../
|
|
3
|
+
import { FeUserInfoRequest } from "../general";
|
|
4
4
|
export interface FeDiscoverWordKnowingRequest {
|
|
5
5
|
wordId: string;
|
|
6
6
|
knowing?: Knowing;
|
|
@@ -3,29 +3,20 @@ import { FeLanguageRecord } from "../language";
|
|
|
3
3
|
import { FeListRecord } from "../list";
|
|
4
4
|
import { FeTableRecord } from "../table";
|
|
5
5
|
import { FeWordRecord } from "../word";
|
|
6
|
-
export interface
|
|
6
|
+
export interface WordKnowledge {
|
|
7
7
|
total: number;
|
|
8
8
|
learn: number;
|
|
9
9
|
known: number;
|
|
10
10
|
unknown: number;
|
|
11
11
|
}
|
|
12
|
-
export declare type
|
|
13
|
-
export interface
|
|
12
|
+
export declare type WordKnowing = [number, number];
|
|
13
|
+
export interface WordGen {
|
|
14
14
|
id: string;
|
|
15
15
|
text: string;
|
|
16
16
|
languageCode: string;
|
|
17
17
|
knowing?: Knowing;
|
|
18
18
|
}
|
|
19
|
-
export interface
|
|
20
|
-
isPrivate: boolean;
|
|
21
|
-
owned: boolean;
|
|
22
|
-
linked: boolean;
|
|
23
|
-
}
|
|
24
|
-
export interface FeEntityContribution {
|
|
25
|
-
created: string;
|
|
26
|
-
username: string;
|
|
27
|
-
}
|
|
28
|
-
export interface FeReactionInfo {
|
|
19
|
+
export interface ReactionGen {
|
|
29
20
|
rate: number;
|
|
30
21
|
userRate: number;
|
|
31
22
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ContributionGen } from "../../common";
|
|
2
|
+
import { ReactionGen } from "../general";
|
|
2
3
|
export interface FeWordImageRecord {
|
|
3
4
|
wordId: string;
|
|
4
5
|
imageId: string;
|
|
5
6
|
fileName: string;
|
|
6
7
|
thumbnailFileName: string;
|
|
7
|
-
reaction?:
|
|
8
|
-
contribution?:
|
|
8
|
+
reaction?: ReactionGen;
|
|
9
|
+
contribution?: ContributionGen;
|
|
9
10
|
}
|
package/lib/front/index.d.ts
CHANGED
package/lib/front/index.js
CHANGED
|
@@ -13,7 +13,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
13
|
__exportStar(require("./word"), exports);
|
|
14
14
|
__exportStar(require("./tag"), exports);
|
|
15
15
|
__exportStar(require("./language"), exports);
|
|
16
|
-
__exportStar(require("./
|
|
16
|
+
__exportStar(require("./general"), exports);
|
|
17
17
|
__exportStar(require("./list"), exports);
|
|
18
18
|
__exportStar(require("./image"), exports);
|
|
19
19
|
__exportStar(require("./table"), exports);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AccessGen, ContributionGen } from "../../common";
|
|
2
2
|
export interface FeListRecord {
|
|
3
3
|
id: string;
|
|
4
4
|
slug: string;
|
|
@@ -7,8 +7,8 @@ export interface FeListRecord {
|
|
|
7
7
|
wordCount: number;
|
|
8
8
|
knownWordCount: number;
|
|
9
9
|
userCount: number;
|
|
10
|
-
contribution:
|
|
11
|
-
access:
|
|
10
|
+
contribution: ContributionGen;
|
|
11
|
+
access: AccessGen;
|
|
12
12
|
}
|
|
13
13
|
export interface FeListEntity {
|
|
14
14
|
id: string;
|
|
@@ -17,8 +17,8 @@ export interface FeListEntity {
|
|
|
17
17
|
languageCode: string;
|
|
18
18
|
description?: string;
|
|
19
19
|
metaKeywords?: string;
|
|
20
|
-
contribution:
|
|
21
|
-
access:
|
|
20
|
+
contribution: ContributionGen;
|
|
21
|
+
access: AccessGen;
|
|
22
22
|
userCount: number;
|
|
23
23
|
wordCount: number;
|
|
24
24
|
knownWordCount: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FeWordSetRequest, FeedRequest } from "../../feed";
|
|
2
|
-
import { EntryWord } from "../
|
|
2
|
+
import { EntryWord } from "../general";
|
|
3
3
|
export interface FeListWordFeedRequest extends FeedRequest, FeWordSetRequest {
|
|
4
4
|
slug: string;
|
|
5
5
|
}
|
|
@@ -13,6 +13,9 @@ export interface FeCreateListRequest {
|
|
|
13
13
|
export interface FeUpdateListRequest extends Omit<FeCreateListRequest, "languageCode"> {
|
|
14
14
|
id: string;
|
|
15
15
|
}
|
|
16
|
+
export interface FeListModifier extends FeCreateListRequest {
|
|
17
|
+
id: string;
|
|
18
|
+
}
|
|
16
19
|
export interface FeListLinkWordRequest {
|
|
17
20
|
listId: string;
|
|
18
21
|
word: EntryWord;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { QuizMode } from "../../common";
|
|
2
|
-
import {
|
|
2
|
+
import { WordGen } from "../general";
|
|
3
3
|
import { FeWordImageRecord } from "../image";
|
|
4
4
|
import { FeTranslationRecord } from "../translation";
|
|
5
5
|
import { FeWordRecord } from "../word";
|
|
@@ -9,10 +9,10 @@ export interface FeQuizEntity {
|
|
|
9
9
|
pairs: FeQuizPair[];
|
|
10
10
|
}
|
|
11
11
|
export interface FeQuizPair {
|
|
12
|
-
word:
|
|
12
|
+
word: WordGen;
|
|
13
13
|
translations?: FeTranslationRecord[];
|
|
14
14
|
images?: FeWordImageRecord[];
|
|
15
|
-
cellWords?:
|
|
15
|
+
cellWords?: WordGen[];
|
|
16
16
|
}
|
|
17
17
|
export interface FeQuizRack {
|
|
18
18
|
words: FeWordRecord[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AccessGen, ContributionGen } from "../../common";
|
|
2
|
+
import { RealWord } from "../general";
|
|
2
3
|
import { FeWordRecord } from "../word";
|
|
3
4
|
export interface BasicCellStruct<TWords> {
|
|
4
5
|
columnIndex: number;
|
|
@@ -12,8 +13,8 @@ export interface FeTableRecord {
|
|
|
12
13
|
userCount: number;
|
|
13
14
|
wordCount: number;
|
|
14
15
|
knownWordCount: number;
|
|
15
|
-
contribution:
|
|
16
|
-
access:
|
|
16
|
+
contribution: ContributionGen;
|
|
17
|
+
access: AccessGen;
|
|
17
18
|
}
|
|
18
19
|
export interface FeCell extends BasicCellStruct<FeWordRecord[]> {
|
|
19
20
|
}
|
|
@@ -28,8 +29,8 @@ export interface FeTableEntity {
|
|
|
28
29
|
languageCode: string;
|
|
29
30
|
description: string;
|
|
30
31
|
metaKeywords: string;
|
|
31
|
-
access:
|
|
32
|
-
contribution:
|
|
32
|
+
access: AccessGen;
|
|
33
|
+
contribution: ContributionGen;
|
|
33
34
|
rowCount: number;
|
|
34
35
|
userCount: number;
|
|
35
36
|
wordCount: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FeWordSetRequest, FeedRequest, LanguageFeedRequest } from "../../feed";
|
|
2
|
-
import { EntryWord } from "../
|
|
2
|
+
import { EntryWord } from "../general";
|
|
3
3
|
import { BasicCellStruct } from "./entity";
|
|
4
4
|
export interface FeRowFeedRequest extends FeedRequest {
|
|
5
5
|
slug: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ContributionGen } from "../../common";
|
|
2
|
+
import { EntryWord } from "../general";
|
|
2
3
|
export interface FeCreateTagRequest {
|
|
3
4
|
code: string;
|
|
4
5
|
}
|
|
@@ -16,7 +17,7 @@ export interface FeTagLinkWordRequest {
|
|
|
16
17
|
export interface FeTagEntity {
|
|
17
18
|
code: string;
|
|
18
19
|
languageCode: string;
|
|
19
|
-
contribution:
|
|
20
|
+
contribution: ContributionGen;
|
|
20
21
|
wordCount: number;
|
|
21
22
|
knownWordCount: number;
|
|
22
23
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ContributionGen } from "../../common";
|
|
2
|
+
import { ReactionGen } from "../general";
|
|
2
3
|
import { FeWordRecord } from "../word";
|
|
3
4
|
export interface FeTranslationRecord {
|
|
4
5
|
id: string;
|
|
5
6
|
wordId: string;
|
|
6
7
|
speechPartCode?: string;
|
|
7
8
|
destination: FeWordRecord;
|
|
8
|
-
reaction?:
|
|
9
|
-
contribution?:
|
|
9
|
+
reaction?: ReactionGen;
|
|
10
|
+
contribution?: ContributionGen;
|
|
10
11
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WordKnowing } from "../general";
|
|
2
2
|
export interface FeUserRelationMeta {
|
|
3
3
|
languageCode?: string;
|
|
4
4
|
listCount: number;
|
|
5
5
|
tableCount: number;
|
|
6
|
-
knowing:
|
|
6
|
+
knowing: WordKnowing;
|
|
7
7
|
}
|
|
8
8
|
export interface FeUserEntity {
|
|
9
9
|
id: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Feed } from "../../feed";
|
|
2
|
-
import { QuizCode, QuizMode, Knowing } from "../../common";
|
|
2
|
+
import { QuizCode, QuizMode, Knowing, ContributionGen, AccessGen } from "../../common";
|
|
3
3
|
import { FeWordImageRecord } from "../image";
|
|
4
|
-
import {
|
|
4
|
+
import { ReactionGen } from "../general";
|
|
5
5
|
import { FeTranslationRecord } from "../translation";
|
|
6
6
|
export interface FeWordRecord {
|
|
7
7
|
id: string;
|
|
@@ -18,8 +18,8 @@ export interface FeWordRecord {
|
|
|
18
18
|
export interface FeWordTag {
|
|
19
19
|
wordId: string;
|
|
20
20
|
tagCode: string;
|
|
21
|
-
reaction:
|
|
22
|
-
contribution:
|
|
21
|
+
reaction: ReactionGen;
|
|
22
|
+
contribution: ContributionGen;
|
|
23
23
|
}
|
|
24
24
|
export interface FeWordAttempt {
|
|
25
25
|
id: string;
|
|
@@ -29,15 +29,15 @@ export interface FeWordAttempt {
|
|
|
29
29
|
isCorrect: boolean;
|
|
30
30
|
translationLanguageCode: string;
|
|
31
31
|
isTable: boolean;
|
|
32
|
-
contribution:
|
|
32
|
+
contribution: ContributionGen;
|
|
33
33
|
}
|
|
34
34
|
export interface FeWordAudio {
|
|
35
35
|
id: string;
|
|
36
36
|
wordId: string;
|
|
37
37
|
audioId: string;
|
|
38
38
|
fileName: string;
|
|
39
|
-
reaction:
|
|
40
|
-
contribution:
|
|
39
|
+
reaction: ReactionGen;
|
|
40
|
+
contribution: ContributionGen;
|
|
41
41
|
}
|
|
42
42
|
export interface FeWordSpeechPart {
|
|
43
43
|
speechPartCode?: string;
|
|
@@ -53,8 +53,8 @@ export interface FeWordEntity {
|
|
|
53
53
|
languageCode: string;
|
|
54
54
|
knowing?: Knowing;
|
|
55
55
|
mode?: string;
|
|
56
|
-
contribution?:
|
|
57
|
-
access?:
|
|
56
|
+
contribution?: ContributionGen;
|
|
57
|
+
access?: AccessGen;
|
|
58
58
|
attempts?: FeWordAttempt[];
|
|
59
59
|
speechParts?: FeWordSpeechPart[];
|
|
60
60
|
imageFeed?: Feed<FeWordImageRecord>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FeWordSetRequest, FeedRequest, ShortFeedRequest } from "../../feed";
|
|
2
2
|
import { CreateWordRequest } from "../../shared";
|
|
3
|
-
import { EntryWord } from "../
|
|
3
|
+
import { EntryWord } from "../general";
|
|
4
4
|
export interface FeWordEntityRequest {
|
|
5
5
|
languageCode: string;
|
|
6
6
|
text: string;
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|