revdev 0.5.0 → 0.7.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/list.d.ts +5 -5
- package/lib/admin/entity/table.d.ts +1 -1
- package/lib/admin/entity/tag.d.ts +1 -1
- package/lib/admin/entity/translation.d.ts +4 -4
- package/lib/admin/entity/user.d.ts +2 -2
- package/lib/admin/entity/word.d.ts +6 -6
- package/lib/admin/params/index.d.ts +1 -1
- package/lib/feed/index.d.ts +1 -1
- package/lib/general/params.d.ts +5 -5
- package/lib/units/audio/params.d.ts +1 -1
- package/lib/units/common/entity.d.ts +2 -2
- package/lib/units/common/params.d.ts +2 -2
- package/lib/units/discover/entity.d.ts +1 -1
- package/lib/units/discover/params.d.ts +3 -3
- package/lib/units/image/entity.d.ts +3 -3
- package/lib/units/image/params.d.ts +1 -1
- package/lib/units/list/entity.d.ts +4 -4
- package/lib/units/quiz/params.d.ts +4 -4
- package/lib/units/settings/entity.d.ts +1 -1
- package/lib/units/table/entity.d.ts +11 -11
- package/lib/units/table/params.d.ts +2 -2
- package/lib/units/translation/entity.d.ts +2 -2
- package/lib/units/translation/params.d.ts +1 -1
- package/lib/units/user/entity.d.ts +1 -1
- package/lib/units/word/entity.d.ts +9 -9
- package/lib/units/word/params.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export interface BoList {
|
|
2
|
-
listId:
|
|
2
|
+
listId: string;
|
|
3
3
|
languageCode: string;
|
|
4
4
|
name: string;
|
|
5
5
|
description: string;
|
|
@@ -15,13 +15,13 @@ export interface BoList {
|
|
|
15
15
|
userCount: number;
|
|
16
16
|
}
|
|
17
17
|
export interface BoListWord {
|
|
18
|
-
wordId:
|
|
18
|
+
wordId: string;
|
|
19
19
|
text: string;
|
|
20
20
|
languageCode: string;
|
|
21
|
-
imageId:
|
|
21
|
+
imageId: string;
|
|
22
22
|
imageFileName: string;
|
|
23
23
|
imageThumbnailFileName: string;
|
|
24
|
-
audioId:
|
|
24
|
+
audioId: string;
|
|
25
25
|
audioFileName: string;
|
|
26
|
-
listId:
|
|
26
|
+
listId: string;
|
|
27
27
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export interface BoTranslationWord {
|
|
2
|
-
translationId:
|
|
3
|
-
wordId:
|
|
2
|
+
translationId: string;
|
|
3
|
+
wordId: string;
|
|
4
4
|
text: string;
|
|
5
5
|
languageCode: string;
|
|
6
6
|
imageFileName: string;
|
|
7
7
|
imageThumbnailFileName: string;
|
|
8
8
|
}
|
|
9
9
|
export interface BoTranslation {
|
|
10
|
-
translationId:
|
|
10
|
+
translationId: string;
|
|
11
11
|
created: string;
|
|
12
|
-
userId?:
|
|
12
|
+
userId?: string;
|
|
13
13
|
speechPartCode?: string;
|
|
14
14
|
words: BoTranslationWord[];
|
|
15
15
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { QuizModeCode } from "../../general";
|
|
2
2
|
export interface BoUser {
|
|
3
|
-
userId:
|
|
3
|
+
userId: string;
|
|
4
4
|
email: string;
|
|
5
5
|
name: string;
|
|
6
6
|
created: string;
|
|
@@ -10,7 +10,7 @@ export interface BoUser {
|
|
|
10
10
|
translationLanguageCode: string;
|
|
11
11
|
}
|
|
12
12
|
export interface BoAttempt {
|
|
13
|
-
attemptId:
|
|
13
|
+
attemptId: string;
|
|
14
14
|
quizCode: string;
|
|
15
15
|
username: string;
|
|
16
16
|
created: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export interface BoWord {
|
|
2
|
-
wordId:
|
|
2
|
+
wordId: string;
|
|
3
3
|
text: string;
|
|
4
4
|
languageCode: string;
|
|
5
5
|
created: string;
|
|
@@ -7,10 +7,10 @@ export interface BoWord {
|
|
|
7
7
|
translationCount: number;
|
|
8
8
|
}
|
|
9
9
|
export interface BoWordImage {
|
|
10
|
-
wordId:
|
|
10
|
+
wordId: string;
|
|
11
11
|
text: string;
|
|
12
12
|
languageCode: string;
|
|
13
|
-
imageId:
|
|
13
|
+
imageId: string;
|
|
14
14
|
fileName: string;
|
|
15
15
|
thumbnailFileName: string;
|
|
16
16
|
created: string;
|
|
@@ -18,11 +18,11 @@ export interface BoWordImage {
|
|
|
18
18
|
rate: number;
|
|
19
19
|
}
|
|
20
20
|
export interface BoWordAudio {
|
|
21
|
-
wordId:
|
|
21
|
+
wordId: string;
|
|
22
22
|
text: string;
|
|
23
23
|
languageCode: string;
|
|
24
|
-
audioId:
|
|
25
|
-
wordAudioId:
|
|
24
|
+
audioId: string;
|
|
25
|
+
wordAudioId: string;
|
|
26
26
|
fileName: string;
|
|
27
27
|
created: string;
|
|
28
28
|
createdUsername: string;
|
package/lib/feed/index.d.ts
CHANGED
package/lib/general/params.d.ts
CHANGED
|
@@ -5,19 +5,19 @@ export interface CodeParam {
|
|
|
5
5
|
code: string;
|
|
6
6
|
}
|
|
7
7
|
export interface IdParam {
|
|
8
|
-
id:
|
|
8
|
+
id: string;
|
|
9
9
|
}
|
|
10
10
|
export interface JoinParams {
|
|
11
|
-
id:
|
|
11
|
+
id: string;
|
|
12
12
|
join: boolean;
|
|
13
13
|
}
|
|
14
14
|
export interface JoinSetParams {
|
|
15
|
-
destinationId:
|
|
15
|
+
destinationId: string;
|
|
16
16
|
sourceIds: number[];
|
|
17
17
|
join: boolean;
|
|
18
18
|
}
|
|
19
19
|
export interface WordAssociationParams {
|
|
20
|
-
wordIds:
|
|
21
|
-
authUserId?:
|
|
20
|
+
wordIds: string[];
|
|
21
|
+
authUserId?: string;
|
|
22
22
|
skip: number;
|
|
23
23
|
}
|
|
@@ -10,7 +10,7 @@ export interface FeWordKnowledge {
|
|
|
10
10
|
unknown: number;
|
|
11
11
|
}
|
|
12
12
|
export interface FeWordDirect {
|
|
13
|
-
id:
|
|
13
|
+
id: string;
|
|
14
14
|
text: string;
|
|
15
15
|
languageCode: string;
|
|
16
16
|
state?: UserWordState;
|
|
@@ -43,7 +43,7 @@ export interface FeSearchResult {
|
|
|
43
43
|
tables: FeTable[];
|
|
44
44
|
}
|
|
45
45
|
export interface UpdatedEntity {
|
|
46
|
-
id:
|
|
46
|
+
id: string;
|
|
47
47
|
slug: string;
|
|
48
48
|
}
|
|
49
49
|
export interface EntityOption<T = number | undefined> {
|
|
@@ -3,8 +3,8 @@ export interface FeReactionParams extends IdParam {
|
|
|
3
3
|
value?: UserReaction;
|
|
4
4
|
}
|
|
5
5
|
export interface FeWordRelationIdParams {
|
|
6
|
-
wordId:
|
|
7
|
-
relationId:
|
|
6
|
+
wordId: string;
|
|
7
|
+
relationId: string;
|
|
8
8
|
}
|
|
9
9
|
export interface FeUserInfoParams {
|
|
10
10
|
wordStates?: [number, UserWordState][];
|
|
@@ -14,7 +14,7 @@ export interface FeDiscoverStateData {
|
|
|
14
14
|
languages?: [string, FeWordKnowledge][];
|
|
15
15
|
}
|
|
16
16
|
export interface FeEntityKnowledge extends FeWordKnowledge {
|
|
17
|
-
id:
|
|
17
|
+
id: string;
|
|
18
18
|
text: string;
|
|
19
19
|
}
|
|
20
20
|
export interface FeDiscoverMeta extends FeWordKnowledge {
|
|
@@ -2,11 +2,11 @@ import { FeedParams } from "../../feed";
|
|
|
2
2
|
import { UserWordState } from "../../general";
|
|
3
3
|
import { FeUserInfoParams } from "../common";
|
|
4
4
|
export interface FeDiscoverWordStateParams {
|
|
5
|
-
id:
|
|
5
|
+
id: string;
|
|
6
6
|
state?: UserWordState;
|
|
7
7
|
}
|
|
8
8
|
export interface FeDiscoverProveParams extends FeUserInfoParams {
|
|
9
|
-
wordId:
|
|
9
|
+
wordId: string;
|
|
10
10
|
translationLanguageCode?: string;
|
|
11
11
|
repeat?: boolean;
|
|
12
12
|
}
|
|
@@ -24,7 +24,7 @@ export interface FeDiscoverMetaParams extends FeUserInfoParams {
|
|
|
24
24
|
tableSlug?: string;
|
|
25
25
|
}
|
|
26
26
|
export interface FeDiscoverStateParams {
|
|
27
|
-
wordIds?:
|
|
27
|
+
wordIds?: string[];
|
|
28
28
|
tagCodes?: [string, string][];
|
|
29
29
|
listSlugs?: string[];
|
|
30
30
|
tableSlugs?: string[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FeEntityContribution, FeReactionDirect } from "../common";
|
|
2
2
|
export interface FeWordImage {
|
|
3
|
-
id:
|
|
4
|
-
wordId:
|
|
5
|
-
imageId:
|
|
3
|
+
id: string;
|
|
4
|
+
wordId: string;
|
|
5
|
+
imageId: string;
|
|
6
6
|
fileName: string;
|
|
7
7
|
thumbnailFileName: string;
|
|
8
8
|
reaction: FeReactionDirect;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FeEntityAccess, FeEntityContribution, FeWordKnowledge, EntityOption } from "../common";
|
|
2
2
|
export interface FeList {
|
|
3
|
-
id:
|
|
3
|
+
id: string;
|
|
4
4
|
slug: string;
|
|
5
5
|
languageCode: string;
|
|
6
6
|
name: string;
|
|
@@ -11,12 +11,12 @@ export interface FeList {
|
|
|
11
11
|
knowledge: FeWordKnowledge;
|
|
12
12
|
}
|
|
13
13
|
export interface FeListJoinWordsParams {
|
|
14
|
-
listId:
|
|
14
|
+
listId: string;
|
|
15
15
|
words: EntityOption[];
|
|
16
16
|
join: boolean;
|
|
17
17
|
}
|
|
18
18
|
export interface FeListEntity {
|
|
19
|
-
id:
|
|
19
|
+
id: string;
|
|
20
20
|
slug: string;
|
|
21
21
|
name: string;
|
|
22
22
|
languageCode: string;
|
|
@@ -34,5 +34,5 @@ export interface FeCreateListParams {
|
|
|
34
34
|
slug?: string;
|
|
35
35
|
}
|
|
36
36
|
export interface FeUpdateListParams extends Omit<FeCreateListParams, "languageCode"> {
|
|
37
|
-
id:
|
|
37
|
+
id: string;
|
|
38
38
|
}
|
|
@@ -7,12 +7,12 @@ export interface FeQuizDataParams {
|
|
|
7
7
|
languageCode?: string;
|
|
8
8
|
listSlug?: string;
|
|
9
9
|
tagCode?: string;
|
|
10
|
-
learnColumnId?:
|
|
11
|
-
translationColumnId?:
|
|
12
|
-
wordIds?:
|
|
10
|
+
learnColumnId?: string;
|
|
11
|
+
translationColumnId?: string;
|
|
12
|
+
wordIds?: string[];
|
|
13
13
|
}
|
|
14
14
|
export interface FeQuizAttemptResultParams {
|
|
15
|
-
wordId:
|
|
15
|
+
wordId: string;
|
|
16
16
|
isCorrect: boolean;
|
|
17
17
|
}
|
|
18
18
|
export interface FeQuizAttemptParams {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FeEntityAccess, FeEntityContribution, FeWordKnowledge, EntityOption, FeWordDirect } from "../common";
|
|
2
2
|
import { FeWord } from "../word";
|
|
3
3
|
export interface FeTable {
|
|
4
|
-
id:
|
|
4
|
+
id: string;
|
|
5
5
|
slug: string;
|
|
6
6
|
languageCode: string;
|
|
7
7
|
name: string;
|
|
@@ -12,19 +12,19 @@ export interface FeTable {
|
|
|
12
12
|
knowledge: FeWordKnowledge;
|
|
13
13
|
}
|
|
14
14
|
export interface FeTableRow {
|
|
15
|
-
id:
|
|
15
|
+
id: string;
|
|
16
16
|
cells: FeTableCell[];
|
|
17
17
|
}
|
|
18
18
|
export interface FeTableCell {
|
|
19
|
-
columnId:
|
|
19
|
+
columnId: string;
|
|
20
20
|
words: FeWord[];
|
|
21
21
|
}
|
|
22
22
|
export interface FeTableColumnHeader {
|
|
23
|
-
columnId:
|
|
23
|
+
columnId: string;
|
|
24
24
|
text: string;
|
|
25
25
|
}
|
|
26
26
|
export interface FeTableEntity {
|
|
27
|
-
id:
|
|
27
|
+
id: string;
|
|
28
28
|
slug: string;
|
|
29
29
|
name: string;
|
|
30
30
|
languageCode: string;
|
|
@@ -45,22 +45,22 @@ export interface FeCreateTableParams {
|
|
|
45
45
|
columns: EntityOption[];
|
|
46
46
|
}
|
|
47
47
|
export interface FeUpdateTableParams extends Omit<FeCreateTableParams, "languageCode"> {
|
|
48
|
-
id:
|
|
48
|
+
id: string;
|
|
49
49
|
}
|
|
50
50
|
export interface FeUpdateTableCell {
|
|
51
|
-
columnId:
|
|
51
|
+
columnId: string;
|
|
52
52
|
columnName?: string;
|
|
53
53
|
words: EntityOption[];
|
|
54
54
|
}
|
|
55
55
|
export interface FeUpdateTableRow {
|
|
56
|
-
tableId:
|
|
57
|
-
rowId?:
|
|
56
|
+
tableId: string;
|
|
57
|
+
rowId?: string;
|
|
58
58
|
languageCode?: string;
|
|
59
59
|
cells: FeUpdateTableCell[];
|
|
60
60
|
}
|
|
61
61
|
export interface FeTableRowWord {
|
|
62
|
-
id:
|
|
63
|
-
columnId:
|
|
62
|
+
id: string;
|
|
63
|
+
columnId: string;
|
|
64
64
|
word: FeWordDirect;
|
|
65
65
|
count: number;
|
|
66
66
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FeEntityContribution, FeReactionDirect } from "../common";
|
|
2
2
|
import { FeWord } from "../word";
|
|
3
3
|
export interface FeTranslation {
|
|
4
|
-
id:
|
|
5
|
-
wordId:
|
|
4
|
+
id: string;
|
|
5
|
+
wordId: string;
|
|
6
6
|
speechPartCode?: string;
|
|
7
7
|
destination: FeWord;
|
|
8
8
|
reaction: FeReactionDirect;
|
|
@@ -4,7 +4,7 @@ import { FeWordImage } from "../image";
|
|
|
4
4
|
import { FeEntityAccess, FeEntityContribution, FeReactionDirect } from "../common";
|
|
5
5
|
import { FeTranslation } from "../translation";
|
|
6
6
|
export interface FeWord {
|
|
7
|
-
id:
|
|
7
|
+
id: string;
|
|
8
8
|
text: string;
|
|
9
9
|
languageCode: string;
|
|
10
10
|
mode?: number;
|
|
@@ -16,15 +16,15 @@ export interface FeWord {
|
|
|
16
16
|
translations: FeTranslation[];
|
|
17
17
|
}
|
|
18
18
|
export interface FeWordTag {
|
|
19
|
-
id:
|
|
20
|
-
wordId:
|
|
19
|
+
id: string;
|
|
20
|
+
wordId: string;
|
|
21
21
|
tagCode: string;
|
|
22
22
|
reaction: FeReactionDirect;
|
|
23
23
|
contribution: FeEntityContribution;
|
|
24
24
|
}
|
|
25
25
|
export interface FeWordAttempt {
|
|
26
|
-
id:
|
|
27
|
-
wordId:
|
|
26
|
+
id: string;
|
|
27
|
+
wordId: string;
|
|
28
28
|
quizCode: QuizCode;
|
|
29
29
|
quizMode: QuizModeCode;
|
|
30
30
|
isCorrect: boolean;
|
|
@@ -33,9 +33,9 @@ export interface FeWordAttempt {
|
|
|
33
33
|
contribution: FeEntityContribution;
|
|
34
34
|
}
|
|
35
35
|
export interface FeWordAudio {
|
|
36
|
-
id:
|
|
37
|
-
wordId:
|
|
38
|
-
audioId:
|
|
36
|
+
id: string;
|
|
37
|
+
wordId: string;
|
|
38
|
+
audioId: string;
|
|
39
39
|
fileName: string;
|
|
40
40
|
reaction: FeReactionDirect;
|
|
41
41
|
contribution: FeEntityContribution;
|
|
@@ -49,7 +49,7 @@ export interface FeWordTranslationCode {
|
|
|
49
49
|
count: number;
|
|
50
50
|
}
|
|
51
51
|
export interface FeWordEntity {
|
|
52
|
-
id:
|
|
52
|
+
id: string;
|
|
53
53
|
text: string;
|
|
54
54
|
languageCode: string;
|
|
55
55
|
state?: UserWordState;
|
|
@@ -6,7 +6,7 @@ export interface FeWordEntityParams {
|
|
|
6
6
|
}
|
|
7
7
|
export interface FeTranslationFeedParams {
|
|
8
8
|
skip: number;
|
|
9
|
-
wordId:
|
|
9
|
+
wordId: string;
|
|
10
10
|
languageCode: string;
|
|
11
11
|
speechPartCode?: string;
|
|
12
12
|
}
|
|
@@ -24,8 +24,8 @@ export interface FeWordFeedParams extends FeedParams, FeWordSetParams {
|
|
|
24
24
|
export interface FeWordOptionParams {
|
|
25
25
|
text: string;
|
|
26
26
|
languageCode?: string;
|
|
27
|
-
ignoreIds?:
|
|
28
|
-
listId?:
|
|
27
|
+
ignoreIds?: string[];
|
|
28
|
+
listId?: string;
|
|
29
29
|
}
|
|
30
30
|
export interface FeCreateWordParams {
|
|
31
31
|
languageCode: string;
|