revdev 0.360.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 +3 -1
- package/lib/back/rule/request.d.ts +10 -0
- package/lib/back/smm/entity.d.ts +3 -2
- package/lib/back/smm/request.d.ts +1 -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 +4 -1
- package/lib/common/enums.js +3 -0
- package/lib/common/gen.d.ts +4 -0
- package/lib/feed/index.d.ts +1 -0
- package/lib/front/rule/entity.d.ts +3 -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,10 +9,12 @@ 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
16
|
content: string;
|
|
16
17
|
note?: string;
|
|
17
18
|
exerciseTotal: number;
|
|
19
|
+
description: string;
|
|
18
20
|
}
|
|
@@ -8,9 +8,19 @@ export interface BoCreateRuleRequest {
|
|
|
8
8
|
content: string;
|
|
9
9
|
note?: string;
|
|
10
10
|
predefinedOptions?: string[];
|
|
11
|
+
description: string;
|
|
11
12
|
}
|
|
12
13
|
export interface BoUpdateRuleRequest extends BoCreateRuleRequest {
|
|
13
14
|
id: string;
|
|
14
15
|
}
|
|
15
16
|
export interface BoRuleFeedRequest extends LangFeedRequest {
|
|
16
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
|
+
}
|
package/lib/back/smm/entity.d.ts
CHANGED
|
@@ -19,10 +19,11 @@ export interface BoSmmCampaignRecord {
|
|
|
19
19
|
channel: NameGen;
|
|
20
20
|
list?: NameGen;
|
|
21
21
|
table?: NameGen;
|
|
22
|
+
rule?: NameGen;
|
|
22
23
|
cronExpression: string;
|
|
23
24
|
timeZone: string;
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
postsCount: number;
|
|
26
|
+
postsTotal: number;
|
|
26
27
|
type: SmmCampaignType;
|
|
27
28
|
}
|
|
28
29
|
export interface BoSmmPostRecord {
|
|
@@ -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
|
@@ -117,10 +117,13 @@ export declare enum PermissionName {
|
|
|
117
117
|
export declare enum AiPromptName {
|
|
118
118
|
WordTags = "wordTags",
|
|
119
119
|
Rule = "rule",
|
|
120
|
+
RuleDescription = "ruleDescription",
|
|
120
121
|
WordSynonym = "wordSynonym",
|
|
121
122
|
WordMeaning = "wordMeaning",
|
|
122
123
|
WordTranscription = "wordTranscription",
|
|
123
|
-
ExerciseItemChoice = "exerciseItemChoice"
|
|
124
|
+
ExerciseItemChoice = "exerciseItemChoice",
|
|
125
|
+
WordLevel = "wordLevel",
|
|
126
|
+
RuleLevel = "ruleLevel"
|
|
124
127
|
}
|
|
125
128
|
export declare enum TopicCategory {
|
|
126
129
|
EverydayLife = "everydayLife",
|
package/lib/common/enums.js
CHANGED
|
@@ -149,10 +149,13 @@ var AiPromptName;
|
|
|
149
149
|
(function (AiPromptName) {
|
|
150
150
|
AiPromptName["WordTags"] = "wordTags";
|
|
151
151
|
AiPromptName["Rule"] = "rule";
|
|
152
|
+
AiPromptName["RuleDescription"] = "ruleDescription";
|
|
152
153
|
AiPromptName["WordSynonym"] = "wordSynonym";
|
|
153
154
|
AiPromptName["WordMeaning"] = "wordMeaning";
|
|
154
155
|
AiPromptName["WordTranscription"] = "wordTranscription";
|
|
155
156
|
AiPromptName["ExerciseItemChoice"] = "exerciseItemChoice";
|
|
157
|
+
AiPromptName["WordLevel"] = "wordLevel";
|
|
158
|
+
AiPromptName["RuleLevel"] = "ruleLevel";
|
|
156
159
|
})(AiPromptName || (exports.AiPromptName = AiPromptName = {}));
|
|
157
160
|
var TopicCategory;
|
|
158
161
|
(function (TopicCategory) {
|
package/lib/common/gen.d.ts
CHANGED
package/lib/feed/index.d.ts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
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;
|
|
11
12
|
content: string;
|
|
13
|
+
description: string;
|
|
12
14
|
}
|
|
13
15
|
export interface FeRuleKnowingResult {
|
|
14
16
|
changed: boolean;
|
|
@@ -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 {
|