revdev 0.378.0 → 0.379.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.
@@ -1,4 +1,4 @@
1
- import { DualContribGen, EntryStatus, ExerciseKind, ExerciseType } from "../../common";
1
+ import { DualContribGen, EntryStatus, ExerciseKind, ExerciseType, NameGen } from "../../common";
2
2
  export interface BoExerciseRecord {
3
3
  id: string;
4
4
  type: ExerciseType;
@@ -9,6 +9,7 @@ export interface BoExerciseRecord {
9
9
  errorText?: string;
10
10
  active: boolean;
11
11
  status?: EntryStatus;
12
+ rules: NameGen[];
12
13
  }
13
14
  export interface BoExerciseRegularRecord extends BoExerciseRecord {
14
15
  kind: ExerciseKind;
@@ -13,12 +13,15 @@ export interface BoRuleRecord {
13
13
  levelTotal: number;
14
14
  userTotal: number;
15
15
  category?: NameGen;
16
+ isRoot?: boolean;
17
+ ruleTotal: number;
16
18
  }
17
19
  export interface BoRuleExerciseGenerator {
18
20
  langCode: string;
19
21
  rule: NameGen;
20
22
  category?: NameGen;
21
23
  ignoreRuleIds: string[];
22
- altRuleOptions: SelectOption[];
24
+ otherRuleOptions: SelectOption[];
23
25
  allowedKinds: ExerciseKind[];
26
+ otherRuleOptionsDisabled: boolean;
24
27
  }
@@ -26,6 +26,7 @@ export interface BoRuleFeedRequest extends LangFeedRequest {
26
26
  hasLevel?: boolean;
27
27
  levelCode?: string;
28
28
  categoryId?: string;
29
+ isRoot?: boolean;
29
30
  }
30
31
  export interface BoUpdateRuleLevelRequest {
31
32
  ruleId: string;
@@ -61,8 +61,8 @@ export interface FeExerciseRecord {
61
61
  passTotal: number;
62
62
  grade?: number;
63
63
  passStatus?: PassStatus;
64
+ rootRule?: RuleGen;
64
65
  rules: RuleGen[];
65
- categoryRuleId?: string;
66
66
  }
67
67
  export interface FeExerciseEntity {
68
68
  id: string;
@@ -17,6 +17,6 @@ export interface GenerateExerciseRequest {
17
17
  ruleId: string;
18
18
  kind: ExerciseKind;
19
19
  itemCount: number;
20
- altRuleIds: string[];
20
+ otherRuleIds: string[];
21
21
  answerTotal?: number;
22
22
  }
@@ -43,7 +43,7 @@ export interface CreateItemSetRequest {
43
43
  export interface GenerateItemRequest {
44
44
  count: number;
45
45
  exerciseId: string;
46
- altRuleIds: string[];
46
+ otherRuleIds: string[];
47
47
  answerTotal?: number;
48
48
  ruleId: string;
49
49
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev",
3
- "version": "0.378.0",
3
+ "version": "0.379.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",