revdev 0.369.0 → 0.371.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, ItemType } from "../../common";
1
+ import { DualContribGen, ItemType, NameGen } from "../../common";
2
2
  export interface BoItemTipRecord {
3
3
  id: string;
4
4
  text: string;
@@ -25,4 +25,5 @@ export interface BoItemRecord {
25
25
  position: number;
26
26
  valid: boolean;
27
27
  errorText?: string;
28
+ rule?: NameGen;
28
29
  }
@@ -30,6 +30,10 @@ export interface NameGen {
30
30
  id: string;
31
31
  name: string;
32
32
  }
33
+ export interface RuleGen extends NameGen {
34
+ slug: string;
35
+ langCode: string;
36
+ }
33
37
  export interface UserInfoGen {
34
38
  id: string;
35
39
  username: string;
@@ -1,5 +1,5 @@
1
1
  import { FeEntityPointer, FePassItemResult, WordUserGen } from "../..";
2
- import { ExerciseKind, ExerciseMode, ExerciseType, PassExerciseStatus, PassStatus } from "../../common";
2
+ import { ExerciseKind, ExerciseMode, ExerciseType, PassExerciseStatus, PassStatus, RuleGen } from "../../common";
3
3
  export interface FeExerciseNavigator {
4
4
  id: string;
5
5
  name: string;
@@ -85,6 +85,7 @@ export interface FePassItemInfo {
85
85
  answer: string;
86
86
  isCorrect: boolean;
87
87
  correctAnswer?: string;
88
+ rule?: RuleGen;
88
89
  }
89
90
  export interface FeExerciseCursor {
90
91
  id: string;
@@ -2,6 +2,7 @@ import { EntryStatus, ExerciseKind } from "../../common";
2
2
  export interface CreateExerciseRequest {
3
3
  ruleId: string;
4
4
  kind: ExerciseKind;
5
+ episodeId?: string;
5
6
  }
6
7
  export interface UpdateExerciseRequest extends Pick<CreateExerciseRequest, "kind"> {
7
8
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev",
3
- "version": "0.369.0",
3
+ "version": "0.371.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",