revdev 0.381.0 → 0.383.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.
- package/lib/back/exercise/entity.d.ts +1 -0
- package/lib/shared/exercise/baseEpisodic.d.ts +1 -4
- package/lib/shared/exercise/list.d.ts +2 -2
- package/lib/shared/exercise/regular.d.ts +3 -9
- package/lib/shared/exercise/table.d.ts +2 -2
- package/lib/shared/item/request.d.ts +3 -2
- package/package.json +1 -1
|
@@ -14,6 +14,7 @@ export interface BoExerciseRecord {
|
|
|
14
14
|
export interface BoExerciseRegularRecord extends BoExerciseRecord {
|
|
15
15
|
kind: ExerciseKind;
|
|
16
16
|
itemTotal: number;
|
|
17
|
+
levelCode?: string;
|
|
17
18
|
}
|
|
18
19
|
export interface BoExerciseListRecord extends BoExerciseRecord {
|
|
19
20
|
listId: string;
|
|
@@ -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
|
|
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,
|
|
3
|
-
export interface CreateExerciseListRequest
|
|
2
|
+
import { ExerciseEpisodicModifier, UpdateExerciseEpisodicRequest } from "./baseEpisodic";
|
|
3
|
+
export interface CreateExerciseListRequest {
|
|
4
4
|
wordIds: string[];
|
|
5
5
|
}
|
|
6
6
|
export interface UpdateExerciseListRequest extends UpdateExerciseEpisodicRequest {
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
+
import { GenerateItemRequest } from "../..";
|
|
1
2
|
import { EntryStatus, ExerciseKind } from "../../common";
|
|
2
3
|
export interface CreateExerciseRequest {
|
|
3
4
|
kind: ExerciseKind;
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
export interface UpdateExerciseRequest extends Pick<CreateExerciseRequest, "kind"> {
|
|
7
|
-
id: string;
|
|
5
|
+
levelCode?: string;
|
|
8
6
|
}
|
|
9
7
|
export interface ExerciseModifier extends CreateExerciseRequest {
|
|
10
8
|
id: string;
|
|
@@ -13,10 +11,6 @@ export interface ExerciseModifier extends CreateExerciseRequest {
|
|
|
13
11
|
active: boolean;
|
|
14
12
|
status?: EntryStatus;
|
|
15
13
|
}
|
|
16
|
-
export interface GenerateExerciseRequest {
|
|
17
|
-
ruleId: string;
|
|
14
|
+
export interface GenerateExerciseRequest extends Omit<GenerateItemRequest, "exerciseId"> {
|
|
18
15
|
kind: ExerciseKind;
|
|
19
|
-
itemCount: number;
|
|
20
|
-
otherRuleIds: string[];
|
|
21
|
-
answerTotal?: number;
|
|
22
16
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ValueOption } from "../../common";
|
|
2
|
-
import { ExerciseEpisodicModifier,
|
|
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
|
|
11
|
+
export interface CreateExerciseTableRequest {
|
|
12
12
|
columns: string[];
|
|
13
13
|
rows: ExerciseTableRow[];
|
|
14
14
|
}
|
|
@@ -41,9 +41,10 @@ export interface CreateItemSetRequest {
|
|
|
41
41
|
}[];
|
|
42
42
|
}
|
|
43
43
|
export interface GenerateItemRequest {
|
|
44
|
-
count: number;
|
|
45
44
|
exerciseId: string;
|
|
45
|
+
levelCode?: string;
|
|
46
|
+
itemCount: number;
|
|
47
|
+
ruleId: string;
|
|
46
48
|
otherRuleIds: string[];
|
|
47
49
|
answerTotal?: number;
|
|
48
|
-
ruleId: string;
|
|
49
50
|
}
|