revdev 0.361.0 → 0.362.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 -0
- package/lib/back/lang/entity.d.ts +4 -0
- package/lib/back/list/entity.d.ts +0 -8
- package/lib/back/rule/entity.d.ts +2 -1
- package/lib/back/rule/request.d.ts +9 -0
- package/lib/back/word/entity.d.ts +6 -6
- package/lib/back/word/request.d.ts +11 -1
- package/lib/common/enums.d.ts +3 -1
- package/lib/common/enums.js +2 -0
- package/lib/common/gen.d.ts +4 -0
- package/lib/feed/index.d.ts +1 -0
- package/lib/front/rule/entity.d.ts +2 -1
- package/lib/front/word/entity.d.ts +2 -1
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ import { AppSettings } from "../../shared";
|
|
|
3
3
|
import { BoAdminPermissionOption } from "../admin";
|
|
4
4
|
export interface BoInitData {
|
|
5
5
|
langOptions: StringOption[];
|
|
6
|
+
levelOptions: StringOption[];
|
|
6
7
|
speechPartOptions: IdCodeOption[];
|
|
7
8
|
quizCodes: string[];
|
|
8
9
|
localeCodes: string[];
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DualContribGen, ImageGen, ValueOption } from "../../common";
|
|
2
|
-
import { WordDataGen } from "../../front";
|
|
3
2
|
import { BoUpdateListRequest } from "./request";
|
|
4
3
|
export interface BoListRecord {
|
|
5
4
|
id: string;
|
|
@@ -29,10 +28,3 @@ export interface BoListOption extends ValueOption {
|
|
|
29
28
|
imageFilled: number;
|
|
30
29
|
tagFilled: number;
|
|
31
30
|
}
|
|
32
|
-
export interface BoListWordRecord extends WordDataGen {
|
|
33
|
-
transcription?: string;
|
|
34
|
-
audioTotal: number;
|
|
35
|
-
imageTotal: number;
|
|
36
|
-
tagTotal: number;
|
|
37
|
-
tranTotal: number;
|
|
38
|
-
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContentType, EntryStatus } from "../../common";
|
|
1
|
+
import { ContentType, EntryStatus, LevelGen } from "../../common";
|
|
2
2
|
export interface BoRuleRecord {
|
|
3
3
|
id: string;
|
|
4
4
|
langCode: string;
|
|
@@ -9,6 +9,7 @@ export interface BoRuleRecord {
|
|
|
9
9
|
status?: EntryStatus;
|
|
10
10
|
exerciseTotal: number;
|
|
11
11
|
predefinedOptions?: string[];
|
|
12
|
+
levels: LevelGen[];
|
|
12
13
|
}
|
|
13
14
|
export interface BoRuleModifier extends BoRuleRecord {
|
|
14
15
|
contentType: ContentType;
|
|
@@ -15,3 +15,12 @@ export interface BoUpdateRuleRequest extends BoCreateRuleRequest {
|
|
|
15
15
|
}
|
|
16
16
|
export interface BoRuleFeedRequest extends LangFeedRequest {
|
|
17
17
|
}
|
|
18
|
+
export interface BoUpdateRuleLevelRequest {
|
|
19
|
+
ruleId: string;
|
|
20
|
+
levelCode: string;
|
|
21
|
+
rate: number;
|
|
22
|
+
}
|
|
23
|
+
export interface BoDeleteRuleLevelRequest {
|
|
24
|
+
ruleId: string;
|
|
25
|
+
levelCode: string;
|
|
26
|
+
}
|
|
@@ -7,12 +7,12 @@ export interface BoWordRecord extends WordDataGen {
|
|
|
7
7
|
created: string;
|
|
8
8
|
mode?: number;
|
|
9
9
|
rate?: number;
|
|
10
|
-
tranTotal
|
|
11
|
-
listTotal
|
|
12
|
-
tableTotal
|
|
13
|
-
imageTotal
|
|
14
|
-
audioTotal
|
|
15
|
-
tagTotal
|
|
10
|
+
tranTotal?: number;
|
|
11
|
+
listTotal?: number;
|
|
12
|
+
tableTotal?: number;
|
|
13
|
+
imageTotal?: number;
|
|
14
|
+
audioTotal?: number;
|
|
15
|
+
tagTotal?: number;
|
|
16
16
|
}
|
|
17
17
|
export interface BoWordEntity extends WordGen {
|
|
18
18
|
transcription?: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { EntryStatus } from "../../common";
|
|
1
|
+
import { EntryStatus, LevelGen } from "../../common";
|
|
2
2
|
import { FeedRequest, WordFeedExtension } from "../../feed";
|
|
3
3
|
import { UpdateWordRequest } from "../../shared";
|
|
4
4
|
export interface BoWordModifier extends UpdateWordRequest {
|
|
5
5
|
audioTotal: number;
|
|
6
|
+
levels: LevelGen[];
|
|
6
7
|
}
|
|
7
8
|
export interface BoUpdateWordTagRequest {
|
|
8
9
|
wordId: string | string[];
|
|
@@ -16,3 +17,12 @@ export interface BoAddWordTranscriptionsRequest {
|
|
|
16
17
|
langCode: string;
|
|
17
18
|
wordIds: string[];
|
|
18
19
|
}
|
|
20
|
+
export interface BoUpdateWordLevelRequest {
|
|
21
|
+
wordId: string;
|
|
22
|
+
levelCode: string;
|
|
23
|
+
rate: number;
|
|
24
|
+
}
|
|
25
|
+
export interface BoDeleteWordLevelRequest {
|
|
26
|
+
wordId: string;
|
|
27
|
+
levelCode: string;
|
|
28
|
+
}
|
package/lib/common/enums.d.ts
CHANGED
|
@@ -121,7 +121,9 @@ export declare enum AiPromptName {
|
|
|
121
121
|
WordSynonym = "wordSynonym",
|
|
122
122
|
WordMeaning = "wordMeaning",
|
|
123
123
|
WordTranscription = "wordTranscription",
|
|
124
|
-
ExerciseItemChoice = "exerciseItemChoice"
|
|
124
|
+
ExerciseItemChoice = "exerciseItemChoice",
|
|
125
|
+
WordLevel = "wordLevel",
|
|
126
|
+
RuleLevel = "ruleLevel"
|
|
125
127
|
}
|
|
126
128
|
export declare enum TopicCategory {
|
|
127
129
|
EverydayLife = "everydayLife",
|
package/lib/common/enums.js
CHANGED
|
@@ -154,6 +154,8 @@ var AiPromptName;
|
|
|
154
154
|
AiPromptName["WordMeaning"] = "wordMeaning";
|
|
155
155
|
AiPromptName["WordTranscription"] = "wordTranscription";
|
|
156
156
|
AiPromptName["ExerciseItemChoice"] = "exerciseItemChoice";
|
|
157
|
+
AiPromptName["WordLevel"] = "wordLevel";
|
|
158
|
+
AiPromptName["RuleLevel"] = "ruleLevel";
|
|
157
159
|
})(AiPromptName || (exports.AiPromptName = AiPromptName = {}));
|
|
158
160
|
var TopicCategory;
|
|
159
161
|
(function (TopicCategory) {
|
package/lib/common/gen.d.ts
CHANGED
package/lib/feed/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { ContentType, Knowing } from "../../common";
|
|
1
|
+
import { ContentType, Knowing, LevelGen } from "../../common";
|
|
2
2
|
export interface FeRuleRecord {
|
|
3
3
|
id: string;
|
|
4
4
|
langCode: string;
|
|
5
5
|
slug: string;
|
|
6
6
|
name: string;
|
|
7
7
|
knowing: Knowing;
|
|
8
|
+
levels: LevelGen[];
|
|
8
9
|
}
|
|
9
10
|
export interface FeRuleEntity extends FeRuleRecord {
|
|
10
11
|
contentType: ContentType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Feed } from "../../feed";
|
|
2
|
-
import { DualContribGen, AccessGen, ContribGen } from "../../common";
|
|
2
|
+
import { DualContribGen, AccessGen, ContribGen, LevelGen } from "../../common";
|
|
3
3
|
import { TagWordRecord, TranRecord, WordAttemptRecord, WordAudioRecord, WordImageRecord, WordUserGen } from "../../shared";
|
|
4
4
|
export interface WordDataGen extends WordUserGen {
|
|
5
5
|
attempts?: WordAttemptRecord[];
|
|
@@ -7,6 +7,7 @@ export interface WordDataGen extends WordUserGen {
|
|
|
7
7
|
audios?: WordAudioRecord[];
|
|
8
8
|
tags?: TagWordRecord[];
|
|
9
9
|
trans?: TranRecord[];
|
|
10
|
+
levels?: LevelGen[];
|
|
10
11
|
tranLangCode?: string;
|
|
11
12
|
}
|
|
12
13
|
export interface FeWordTag {
|