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.
@@ -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[];
@@ -11,3 +11,7 @@ export interface BoLangRecord {
11
11
  created: string;
12
12
  updated: string;
13
13
  }
14
+ export interface BoLevelRecord {
15
+ code: string;
16
+ name: string;
17
+ }
@@ -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: number;
11
- listTotal: number;
12
- tableTotal: number;
13
- imageTotal: number;
14
- audioTotal: number;
15
- tagTotal: number;
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
+ }
@@ -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",
@@ -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) {
@@ -40,3 +40,7 @@ export interface UserInfoGen {
40
40
  tran?: string;
41
41
  locale?: string;
42
42
  }
43
+ export interface LevelGen {
44
+ code: string;
45
+ rate: number;
46
+ }
@@ -24,6 +24,7 @@ export interface Feed<TItem = any> {
24
24
  }
25
25
  export interface WordFeedExtension {
26
26
  langCode?: string;
27
+ levelCode?: string;
27
28
  knowing?: Knowing;
28
29
  mode?: number;
29
30
  hasImage?: boolean;
@@ -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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev",
3
- "version": "0.361.0",
3
+ "version": "0.362.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",