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.
@@ -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,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
+ }
@@ -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
- wordsPosted: number;
25
- wordsTotal: number;
25
+ postsCount: number;
26
+ postsTotal: number;
26
27
  type: SmmCampaignType;
27
28
  }
28
29
  export interface BoSmmPostRecord {
@@ -31,6 +31,7 @@ export interface BoCreateSmmCampaignRequest {
31
31
  channelId: string;
32
32
  listId?: string;
33
33
  tableId?: string;
34
+ ruleId?: string;
34
35
  cronExpression: string;
35
36
  timeZone: string;
36
37
  type: SmmCampaignType;
@@ -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
+ }
@@ -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",
@@ -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) {
@@ -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,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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev",
3
- "version": "0.360.0",
3
+ "version": "0.362.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",