revdev 0.375.0 → 0.377.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 +0 -3
- package/lib/back/item/request.d.ts +5 -0
- package/lib/common/gen.d.ts +4 -0
- package/lib/front/exercise/entity.d.ts +4 -14
- package/lib/front/exercise/request.d.ts +2 -2
- package/lib/front/rule/entity.d.ts +2 -1
- package/lib/shared/exercise/regular.d.ts +0 -1
- package/lib/shared/item/request.d.ts +1 -0
- package/package.json +1 -1
|
@@ -3,6 +3,11 @@ import { FeedRequest } from "../../feed";
|
|
|
3
3
|
export interface BoItemFeedRequest extends FeedRequest {
|
|
4
4
|
exerciseId?: string;
|
|
5
5
|
}
|
|
6
|
+
export interface BoCreateItemRegularRequest {
|
|
7
|
+
exerciseId: string;
|
|
8
|
+
content: string;
|
|
9
|
+
tip: string;
|
|
10
|
+
}
|
|
6
11
|
export interface BoUpdateItemRegularRequest {
|
|
7
12
|
id: string;
|
|
8
13
|
content: string;
|
package/lib/common/gen.d.ts
CHANGED
|
@@ -34,6 +34,10 @@ export interface RuleGen extends NameGen {
|
|
|
34
34
|
slug: string;
|
|
35
35
|
langCode: string;
|
|
36
36
|
}
|
|
37
|
+
export interface RuleCategoryGen extends NameGen {
|
|
38
|
+
rootRule: RuleGen | undefined;
|
|
39
|
+
rules: RuleGen[];
|
|
40
|
+
}
|
|
37
41
|
export interface UserInfoGen {
|
|
38
42
|
id: string;
|
|
39
43
|
username: string;
|
|
@@ -57,21 +57,18 @@ export interface FePassExerciseResultTable extends FeBasicPassExerciseResult, Fe
|
|
|
57
57
|
export type FePassExerciseResult = FePassExerciseResultRegular | FePassExerciseResultList | FePassExerciseResultTable;
|
|
58
58
|
export interface FeExerciseRecord {
|
|
59
59
|
id: string;
|
|
60
|
-
idInRule: number;
|
|
61
60
|
kind: ExerciseKind;
|
|
62
61
|
passTotal: number;
|
|
63
62
|
grade?: number;
|
|
64
63
|
passStatus?: PassStatus;
|
|
64
|
+
rules: RuleGen[];
|
|
65
|
+
categoryRuleId?: string;
|
|
65
66
|
}
|
|
66
67
|
export interface FeExerciseEntity {
|
|
67
68
|
id: string;
|
|
68
69
|
kind: ExerciseKind;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
slug: string;
|
|
72
|
-
name: string;
|
|
73
|
-
langCode: string;
|
|
74
|
-
};
|
|
70
|
+
rules: RuleGen[];
|
|
71
|
+
categoryRule?: RuleGen;
|
|
75
72
|
cursor: FeExerciseCursor;
|
|
76
73
|
}
|
|
77
74
|
export interface FeItemCursor {
|
|
@@ -93,7 +90,6 @@ export interface FePassItemInfo {
|
|
|
93
90
|
}
|
|
94
91
|
export interface FeExerciseBaseCursor {
|
|
95
92
|
exerciseId: string;
|
|
96
|
-
ruleId: string;
|
|
97
93
|
kind: ExerciseKind;
|
|
98
94
|
passStatus: PassStatus;
|
|
99
95
|
}
|
|
@@ -121,9 +117,3 @@ export interface FeExerciseResultCursor extends FeExerciseBaseCursor {
|
|
|
121
117
|
nextExerciseId: string;
|
|
122
118
|
}
|
|
123
119
|
export type FeExerciseCursor = FeExerciseChoiceCursor | FeExerciseMatchCursor | FeExerciseResultCursor;
|
|
124
|
-
export interface FeExerciseInfoForCursor extends FeExerciseBaseCursor {
|
|
125
|
-
passId: string;
|
|
126
|
-
grade: number;
|
|
127
|
-
itemTotal: number;
|
|
128
|
-
passedItemTotal: number;
|
|
129
|
-
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContentType, Knowing, LevelGen } from "../../common";
|
|
1
|
+
import { ContentType, Knowing, LevelGen, RuleCategoryGen } from "../../common";
|
|
2
2
|
export interface FeRuleRecord {
|
|
3
3
|
id: string;
|
|
4
4
|
langCode: string;
|
|
@@ -11,6 +11,7 @@ export interface FeRuleEntity extends FeRuleRecord {
|
|
|
11
11
|
contentType: ContentType;
|
|
12
12
|
content: string;
|
|
13
13
|
description: string;
|
|
14
|
+
category: RuleCategoryGen;
|
|
14
15
|
}
|
|
15
16
|
export interface FeRuleKnowingResult {
|
|
16
17
|
changed: boolean;
|