revdev 0.382.0 → 0.384.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,7 +3,6 @@ export interface BoExerciseRecord {
3
3
  id: string;
4
4
  type: ExerciseType;
5
5
  contrib: DualContribGen;
6
- episodeId?: string;
7
6
  position: number;
8
7
  valid: boolean;
9
8
  errorText?: string;
@@ -1,7 +1,6 @@
1
1
  import { LangOptionRequest } from "../../common";
2
2
  import { FeedRequest } from "../../feed";
3
3
  export interface BoExerciseFeedRequest extends FeedRequest {
4
- episodeId?: string;
5
4
  ruleId?: string;
6
5
  }
7
6
  export interface BoExerciseRuleOptionRequest extends LangOptionRequest {
@@ -14,14 +14,17 @@ export interface BoRuleRecord {
14
14
  userTotal: number;
15
15
  category?: NameGen;
16
16
  isRoot?: boolean;
17
+ isCanon: boolean;
17
18
  ruleTotal: number;
18
19
  }
19
20
  export interface BoRuleExerciseGenerator {
20
21
  langCode: string;
21
22
  rule: NameGen;
23
+ isCanon: boolean;
24
+ isRoot: boolean;
22
25
  category?: NameGen;
23
26
  ignoreRuleIds: string[];
24
27
  otherRuleOptions: SelectOption[];
25
28
  allowedKinds: ExerciseKind[];
26
- otherRuleOptionsDisabled: boolean;
29
+ canonRules: NameGen[];
27
30
  }
@@ -10,6 +10,8 @@ export interface BoCreateRuleRequest {
10
10
  predefinedOptions?: string[];
11
11
  description: string;
12
12
  categoryId?: string;
13
+ isCanon: boolean;
14
+ canonRuleIds?: string[];
13
15
  }
14
16
  export interface BoUpdateRuleRequest extends BoCreateRuleRequest {
15
17
  id: string;
@@ -21,12 +23,14 @@ export interface BoRuleModifier extends BoUpdateRuleRequest {
21
23
  status?: EntryStatus;
22
24
  exerciseTotal: number;
23
25
  levels: LevelGen[];
26
+ canonRuleOptions: ValueOption[];
24
27
  }
25
28
  export interface BoRuleFeedRequest extends LangFeedRequest {
26
29
  hasLevel?: boolean;
27
30
  levelCode?: string;
28
31
  categoryId?: string;
29
32
  isRoot?: boolean;
33
+ isCanon?: boolean;
30
34
  }
31
35
  export interface BoUpdateRuleLevelRequest {
32
36
  ruleId: string;
@@ -39,4 +43,5 @@ export interface BoDeleteRuleLevelRequest {
39
43
  }
40
44
  export interface BoRuleOptionRequest extends LangOptionRequest {
41
45
  categoryId?: string;
46
+ isCanon?: boolean;
42
47
  }
@@ -35,8 +35,7 @@ export interface RuleGen extends NameGen {
35
35
  langCode: string;
36
36
  }
37
37
  export interface RuleCategoryGen extends NameGen {
38
- rootRule: RuleGen | undefined;
39
- rules: RuleGen[];
38
+ rootRule?: RuleGen;
40
39
  }
41
40
  export interface UserInfoGen {
42
41
  id: string;
@@ -1,4 +1,4 @@
1
- import { ContentType, Knowing, LevelGen, RuleCategoryGen } from "../../common";
1
+ import { ContentType, Knowing, LevelGen, RuleCategoryGen, RuleGen } from "../../common";
2
2
  export interface FeRuleRecord {
3
3
  id: string;
4
4
  langCode: string;
@@ -11,7 +11,9 @@ export interface FeRuleEntity extends FeRuleRecord {
11
11
  contentType: ContentType;
12
12
  content: string;
13
13
  description: string;
14
- category: RuleCategoryGen;
14
+ category?: RuleCategoryGen;
15
+ categoryRules?: RuleGen[];
16
+ plainRules?: RuleGen[];
15
17
  }
16
18
  export interface FeRuleKnowingResult {
17
19
  changed: boolean;
@@ -1,11 +1,8 @@
1
1
  import { ExerciseType } from "../../common";
2
- export interface CreateExerciseEpisodicRequest {
3
- episodeId: string;
4
- }
5
2
  export interface UpdateExerciseEpisodicRequest {
6
3
  id: string;
7
4
  }
8
- export interface ExerciseEpisodicModifier extends CreateExerciseEpisodicRequest {
5
+ export interface ExerciseEpisodicModifier {
9
6
  id: string;
10
7
  valid: boolean;
11
8
  type: ExerciseType;
@@ -1,6 +1,6 @@
1
1
  import { ValueOption } from "../../common";
2
- import { ExerciseEpisodicModifier, CreateExerciseEpisodicRequest, UpdateExerciseEpisodicRequest } from "./baseEpisodic";
3
- export interface CreateExerciseListRequest extends CreateExerciseEpisodicRequest {
2
+ import { ExerciseEpisodicModifier, UpdateExerciseEpisodicRequest } from "./baseEpisodic";
3
+ export interface CreateExerciseListRequest {
4
4
  wordIds: string[];
5
5
  }
6
6
  export interface UpdateExerciseListRequest extends UpdateExerciseEpisodicRequest {
@@ -1,11 +1,8 @@
1
+ import { GenerateItemRequest } from "../..";
1
2
  import { EntryStatus, ExerciseKind } from "../../common";
2
3
  export interface CreateExerciseRequest {
3
4
  kind: ExerciseKind;
4
5
  levelCode?: string;
5
- episodeId?: string;
6
- }
7
- export interface UpdateExerciseRequest extends Pick<CreateExerciseRequest, "kind"> {
8
- id: string;
9
6
  }
10
7
  export interface ExerciseModifier extends CreateExerciseRequest {
11
8
  id: string;
@@ -14,11 +11,6 @@ export interface ExerciseModifier extends CreateExerciseRequest {
14
11
  active: boolean;
15
12
  status?: EntryStatus;
16
13
  }
17
- export interface GenerateExerciseRequest {
18
- ruleId: string;
14
+ export interface GenerateExerciseRequest extends Omit<GenerateItemRequest, "exerciseId"> {
19
15
  kind: ExerciseKind;
20
- levelCode?: string;
21
- itemCount: number;
22
- otherRuleIds: string[];
23
- answerTotal?: number;
24
16
  }
@@ -1,5 +1,5 @@
1
1
  import { ValueOption } from "../../common";
2
- import { ExerciseEpisodicModifier, CreateExerciseEpisodicRequest, UpdateExerciseEpisodicRequest } from "./baseEpisodic";
2
+ import { ExerciseEpisodicModifier, UpdateExerciseEpisodicRequest } from "./baseEpisodic";
3
3
  export interface ExerciseTableCell {
4
4
  wordIds: string[];
5
5
  columnIndex: number;
@@ -8,7 +8,7 @@ export interface ExerciseTableRow<TCell = ExerciseTableCell> {
8
8
  cells: TCell[];
9
9
  rowId?: string;
10
10
  }
11
- export interface CreateExerciseTableRequest extends CreateExerciseEpisodicRequest {
11
+ export interface CreateExerciseTableRequest {
12
12
  columns: string[];
13
13
  rows: ExerciseTableRow[];
14
14
  }
@@ -41,10 +41,9 @@ export interface CreateItemSetRequest {
41
41
  }[];
42
42
  }
43
43
  export interface GenerateItemRequest {
44
- count: number;
45
44
  exerciseId: string;
46
45
  levelCode?: string;
47
- otherRuleIds: string[];
46
+ itemCount: number;
47
+ ruleIds: string[];
48
48
  answerTotal?: number;
49
- ruleId: string;
50
49
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev",
3
- "version": "0.382.0",
3
+ "version": "0.384.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",