revdev 0.348.0 → 0.350.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/answer/entity.d.ts +7 -0
- package/lib/back/answer/index.d.ts +2 -0
- package/lib/back/answer/index.js +18 -0
- package/lib/back/answer/request.d.ts +18 -0
- package/lib/back/episode/entity.d.ts +1 -0
- package/lib/back/exercise/entity.d.ts +8 -17
- package/lib/back/exercise/request.d.ts +6 -0
- package/lib/back/index.d.ts +2 -0
- package/lib/back/index.js +2 -0
- package/lib/back/item/entity.d.ts +3 -0
- package/lib/back/item/request.d.ts +20 -0
- package/lib/back/rule/entity.d.ts +2 -0
- package/lib/back/rule/request.d.ts +6 -5
- package/lib/back/topic/index.d.ts +1 -0
- package/lib/back/topic/index.js +17 -0
- package/lib/back/topic/request.d.ts +9 -0
- package/lib/back/topic/request.js +2 -0
- package/lib/common/entity.js +0 -10
- package/lib/common/enums.d.ts +20 -1
- package/lib/common/enums.js +22 -1
- package/lib/common/exception.d.ts +1 -0
- package/lib/common/exception.js +1 -0
- package/lib/common/options.d.ts +3 -0
- package/lib/common/request.d.ts +2 -0
- package/lib/front/pass/request.js +0 -3
- package/lib/shared/episode/request.d.ts +7 -5
- package/lib/shared/exercise/baseEpisodic.d.ts +12 -0
- package/lib/shared/exercise/baseEpisodic.js +2 -0
- package/lib/shared/exercise/index.d.ts +1 -2
- package/lib/shared/exercise/index.js +1 -2
- package/lib/shared/exercise/list.d.ts +6 -6
- package/lib/shared/exercise/regular.d.ts +11 -11
- package/lib/shared/exercise/table.d.ts +12 -9
- package/lib/shared/index.d.ts +1 -0
- package/lib/shared/index.js +1 -0
- package/lib/shared/topic/entity.d.ts +6 -0
- package/lib/shared/topic/entity.js +2 -0
- package/lib/shared/topic/index.d.ts +1 -0
- package/lib/shared/topic/index.js +17 -0
- package/package.json +6 -3
- package/lib/shared/exercise/basic.d.ts +0 -10
- package/lib/shared/exercise/request.d.ts +0 -8
- /package/lib/{shared/exercise/basic.js → back/answer/entity.js} +0 -0
- /package/lib/{shared/exercise → back/answer}/request.js +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./entity"), exports);
|
|
18
|
+
__exportStar(require("./request"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FeedRequest } from "../../feed";
|
|
2
|
+
export interface BoCreateAnswerRequest {
|
|
3
|
+
index: number;
|
|
4
|
+
text: string;
|
|
5
|
+
itemId: string;
|
|
6
|
+
isCorrect: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface BoUpdateAnswerRequest {
|
|
9
|
+
id: string;
|
|
10
|
+
index: number;
|
|
11
|
+
text: string;
|
|
12
|
+
isCorrect: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface BoAnswerModifier extends BoUpdateAnswerRequest {
|
|
15
|
+
}
|
|
16
|
+
export interface BoAnswerFeedRequest extends FeedRequest {
|
|
17
|
+
itemId?: string;
|
|
18
|
+
}
|
|
@@ -1,32 +1,23 @@
|
|
|
1
|
-
import { DualContribGen,
|
|
1
|
+
import { DualContribGen, ExerciseKind, ExerciseType } from "../../common";
|
|
2
2
|
export interface BoExerciseRecord {
|
|
3
3
|
id: string;
|
|
4
|
-
name: string;
|
|
5
4
|
type: ExerciseType;
|
|
6
|
-
valid: boolean;
|
|
7
5
|
contrib: DualContribGen;
|
|
8
|
-
episodeId
|
|
6
|
+
episodeId?: string;
|
|
7
|
+
ruleId?: string;
|
|
8
|
+
idInRule?: number;
|
|
9
9
|
langCode: string;
|
|
10
10
|
position: number;
|
|
11
|
+
valid: boolean;
|
|
12
|
+
errorText?: string;
|
|
11
13
|
}
|
|
12
14
|
export interface BoExerciseRegularRecord extends BoExerciseRecord {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
kind: ExerciseKind;
|
|
16
|
+
itemTotal: number;
|
|
15
17
|
}
|
|
16
18
|
export interface BoExerciseListRecord extends BoExerciseRecord {
|
|
17
19
|
listId: string;
|
|
18
|
-
words: StringOption[];
|
|
19
|
-
}
|
|
20
|
-
export interface BoExerciseTableCell {
|
|
21
|
-
words: StringOption[];
|
|
22
|
-
columnIndex: number;
|
|
23
|
-
}
|
|
24
|
-
export interface BoExerciseTableRow {
|
|
25
|
-
cells: BoExerciseTableCell[];
|
|
26
|
-
rowId?: string;
|
|
27
20
|
}
|
|
28
21
|
export interface BoExerciseTableRecord extends BoExerciseRecord {
|
|
29
22
|
tableId: string;
|
|
30
|
-
columns: string[];
|
|
31
|
-
rows: BoExerciseTableRow[];
|
|
32
23
|
}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
+
import { LangOptionRequest } from "../../common";
|
|
1
2
|
import { FeedRequest } from "../../feed";
|
|
2
3
|
export interface BoExerciseFeedRequest extends FeedRequest {
|
|
3
4
|
episodeId?: string;
|
|
5
|
+
ruleId?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface BoExerciseRuleOptionRequest extends LangOptionRequest {
|
|
8
|
+
courseId: string;
|
|
9
|
+
episodeId?: string;
|
|
4
10
|
}
|
package/lib/back/index.d.ts
CHANGED
package/lib/back/index.js
CHANGED
|
@@ -8,6 +8,7 @@ export interface BoItemAnswerRecord {
|
|
|
8
8
|
id: string;
|
|
9
9
|
text: string;
|
|
10
10
|
index: number;
|
|
11
|
+
isCorrect: boolean;
|
|
11
12
|
}
|
|
12
13
|
export interface BoItemRecord {
|
|
13
14
|
id: string;
|
|
@@ -22,4 +23,6 @@ export interface BoItemRecord {
|
|
|
22
23
|
imageUrl?: string;
|
|
23
24
|
imageThumbnailUrl?: string;
|
|
24
25
|
position: number;
|
|
26
|
+
valid: boolean;
|
|
27
|
+
errorText?: string;
|
|
25
28
|
}
|
|
@@ -2,3 +2,23 @@ import { FeedRequest } from "../../feed";
|
|
|
2
2
|
export interface BoItemFeedRequest extends FeedRequest {
|
|
3
3
|
exerciseId?: string;
|
|
4
4
|
}
|
|
5
|
+
export interface BoGenerateItemChoiceRequest {
|
|
6
|
+
count: number;
|
|
7
|
+
exerciseId: string;
|
|
8
|
+
altRuleIds: string[];
|
|
9
|
+
}
|
|
10
|
+
export interface BoCreateItemChoiceSetRequest {
|
|
11
|
+
exerciseId: string;
|
|
12
|
+
items: {
|
|
13
|
+
content: string;
|
|
14
|
+
answers: string[];
|
|
15
|
+
correctAnswerIndex: number;
|
|
16
|
+
}[];
|
|
17
|
+
}
|
|
18
|
+
export interface BoUpdateItemRegularRequest {
|
|
19
|
+
id: string;
|
|
20
|
+
content: string;
|
|
21
|
+
}
|
|
22
|
+
export interface BoItemRegularModifier extends BoUpdateItemRegularRequest {
|
|
23
|
+
answerTotal: number;
|
|
24
|
+
}
|
|
@@ -7,9 +7,11 @@ export interface BoRuleRecord {
|
|
|
7
7
|
created: string;
|
|
8
8
|
active: boolean;
|
|
9
9
|
status?: EntryStatus;
|
|
10
|
+
exerciseTotal: number;
|
|
10
11
|
}
|
|
11
12
|
export interface BoRuleModifier extends BoRuleRecord {
|
|
12
13
|
contentType: ContentType;
|
|
13
14
|
content: string;
|
|
14
15
|
note?: string;
|
|
16
|
+
exerciseTotal: number;
|
|
15
17
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import { tags } from "typia";
|
|
1
2
|
import { ContentType } from "../../common";
|
|
2
3
|
import { LangFeedRequest } from "../../feed";
|
|
3
4
|
export interface BoCreateRuleRequest {
|
|
4
|
-
langCode: string
|
|
5
|
-
slug: string
|
|
6
|
-
name: string
|
|
5
|
+
langCode: string & tags.MaxLength<3> & tags.MinLength<2>;
|
|
6
|
+
slug: string & tags.MinLength<6> & tags.MaxLength<255> & tags.Pattern<"^[a-z0-9]+(?:-[a-z0-9]+)*$">;
|
|
7
|
+
name: string & tags.MinLength<1> & tags.MaxLength<255>;
|
|
7
8
|
contentType: ContentType;
|
|
8
|
-
content: string
|
|
9
|
-
note?: string
|
|
9
|
+
content: string & tags.MinLength<1> & tags.MaxLength<5000>;
|
|
10
|
+
note?: string & tags.MaxLength<1000>;
|
|
10
11
|
}
|
|
11
12
|
export interface BoUpdateRuleRequest extends BoCreateRuleRequest {
|
|
12
13
|
id: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./request";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./request"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TopicCategory } from "../../common";
|
|
2
|
+
export interface BoCreateTopicRequest {
|
|
3
|
+
name: string;
|
|
4
|
+
category: TopicCategory;
|
|
5
|
+
}
|
|
6
|
+
export interface BoUpdateTopicRequest extends BoCreateTopicRequest {
|
|
7
|
+
id: string;
|
|
8
|
+
}
|
|
9
|
+
export type BoTopicModifier = BoUpdateTopicRequest;
|
package/lib/common/entity.js
CHANGED
|
@@ -1,12 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
// export interface BaseStatusRecord<TContrib extends ContribGen | DualContribGen = DualContribGen> {
|
|
4
|
-
// id: string;
|
|
5
|
-
// active: boolean;
|
|
6
|
-
// status?: EntryStatus;
|
|
7
|
-
// contrib: TContrib;
|
|
8
|
-
// }
|
|
9
|
-
// export interface BaseRateRecord<TContrib extends ContribGen | DualContribGen = DualContribGen> extends BaseStatusRecord<TContrib> {
|
|
10
|
-
// rate: number;
|
|
11
|
-
// reaction?: UserReaction;
|
|
12
|
-
// }
|
package/lib/common/enums.d.ts
CHANGED
|
@@ -119,5 +119,24 @@ export declare enum AiPromptName {
|
|
|
119
119
|
Rule = "rule",
|
|
120
120
|
WordSynonym = "wordSynonym",
|
|
121
121
|
WordMeaning = "wordMeaning",
|
|
122
|
-
WordTranscription = "wordTranscription"
|
|
122
|
+
WordTranscription = "wordTranscription",
|
|
123
|
+
ExerciseItemChoice = "exerciseItemChoice"
|
|
124
|
+
}
|
|
125
|
+
export declare enum TopicCategory {
|
|
126
|
+
EverydayLife = "everydayLife",
|
|
127
|
+
Travel = "travel",
|
|
128
|
+
Nature = "nature",
|
|
129
|
+
Relationships = "relationships",
|
|
130
|
+
Education = "education",
|
|
131
|
+
Work = "work",
|
|
132
|
+
Hobbies = "hobbies",
|
|
133
|
+
Culture = "culture",
|
|
134
|
+
Society = "society",
|
|
135
|
+
ModernLife = "modernLife",
|
|
136
|
+
Abstract = "abstract"
|
|
137
|
+
}
|
|
138
|
+
export declare enum ExerciseKind {
|
|
139
|
+
Choice = "choice",
|
|
140
|
+
Match = "match",
|
|
141
|
+
Correct = "correct"
|
|
123
142
|
}
|
package/lib/common/enums.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AiPromptName = exports.PermissionName = exports.AudioSex = exports.ImageKind = exports.AudioKind = exports.PointerMode = exports.ContentType = exports.PositionDirection = exports.PassExerciseStatus = exports.PassEpisodeStatus = exports.PassStatus = exports.PostStatus = exports.SetType = exports.ItemType = exports.ExerciseMode = exports.ExerciseType = exports.SmmCampaignType = exports.SmmCampaignStatus = exports.SocialProvider = exports.EntryStatus = exports.QuizMode = exports.UserReaction = exports.WordMode = exports.Knowing = void 0;
|
|
3
|
+
exports.ExerciseKind = exports.TopicCategory = exports.AiPromptName = exports.PermissionName = exports.AudioSex = exports.ImageKind = exports.AudioKind = exports.PointerMode = exports.ContentType = exports.PositionDirection = exports.PassExerciseStatus = exports.PassEpisodeStatus = exports.PassStatus = exports.PostStatus = exports.SetType = exports.ItemType = exports.ExerciseMode = exports.ExerciseType = exports.SmmCampaignType = exports.SmmCampaignStatus = exports.SocialProvider = exports.EntryStatus = exports.QuizMode = exports.UserReaction = exports.WordMode = exports.Knowing = void 0;
|
|
4
4
|
var Knowing;
|
|
5
5
|
(function (Knowing) {
|
|
6
6
|
Knowing[Knowing["Known"] = 1] = "Known";
|
|
@@ -152,4 +152,25 @@ var AiPromptName;
|
|
|
152
152
|
AiPromptName["WordSynonym"] = "wordSynonym";
|
|
153
153
|
AiPromptName["WordMeaning"] = "wordMeaning";
|
|
154
154
|
AiPromptName["WordTranscription"] = "wordTranscription";
|
|
155
|
+
AiPromptName["ExerciseItemChoice"] = "exerciseItemChoice";
|
|
155
156
|
})(AiPromptName || (exports.AiPromptName = AiPromptName = {}));
|
|
157
|
+
var TopicCategory;
|
|
158
|
+
(function (TopicCategory) {
|
|
159
|
+
TopicCategory["EverydayLife"] = "everydayLife";
|
|
160
|
+
TopicCategory["Travel"] = "travel";
|
|
161
|
+
TopicCategory["Nature"] = "nature";
|
|
162
|
+
TopicCategory["Relationships"] = "relationships";
|
|
163
|
+
TopicCategory["Education"] = "education";
|
|
164
|
+
TopicCategory["Work"] = "work";
|
|
165
|
+
TopicCategory["Hobbies"] = "hobbies";
|
|
166
|
+
TopicCategory["Culture"] = "culture";
|
|
167
|
+
TopicCategory["Society"] = "society";
|
|
168
|
+
TopicCategory["ModernLife"] = "modernLife";
|
|
169
|
+
TopicCategory["Abstract"] = "abstract";
|
|
170
|
+
})(TopicCategory || (exports.TopicCategory = TopicCategory = {}));
|
|
171
|
+
var ExerciseKind;
|
|
172
|
+
(function (ExerciseKind) {
|
|
173
|
+
ExerciseKind["Choice"] = "choice";
|
|
174
|
+
ExerciseKind["Match"] = "match";
|
|
175
|
+
ExerciseKind["Correct"] = "correct";
|
|
176
|
+
})(ExerciseKind || (exports.ExerciseKind = ExerciseKind = {}));
|
|
@@ -6,6 +6,7 @@ export interface ExceptionClass {
|
|
|
6
6
|
}
|
|
7
7
|
export declare enum ExceptionCodes {
|
|
8
8
|
ParameterInvalid = "ParameterInvalid",
|
|
9
|
+
ParameterRequired = "ParameterRequired",
|
|
9
10
|
InvalidConfigEnv = "InvalidConfigEnv",
|
|
10
11
|
InsufficientPermission = "InsufficientPermission",
|
|
11
12
|
UsernameExists = "UsernameExists",
|
package/lib/common/exception.js
CHANGED
|
@@ -5,6 +5,7 @@ var ExceptionCodes;
|
|
|
5
5
|
(function (ExceptionCodes) {
|
|
6
6
|
// common
|
|
7
7
|
ExceptionCodes["ParameterInvalid"] = "ParameterInvalid";
|
|
8
|
+
ExceptionCodes["ParameterRequired"] = "ParameterRequired";
|
|
8
9
|
ExceptionCodes["InvalidConfigEnv"] = "InvalidConfigEnv";
|
|
9
10
|
ExceptionCodes["InsufficientPermission"] = "InsufficientPermission";
|
|
10
11
|
// auth
|
package/lib/common/options.d.ts
CHANGED
package/lib/common/request.d.ts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { ContentType } from "../..";
|
|
1
|
+
import { ContentType, ValueOption } from "../..";
|
|
2
2
|
export interface CreateEpisodeRequest {
|
|
3
|
-
name: string;
|
|
4
|
-
content: string;
|
|
5
|
-
contentType?: ContentType;
|
|
6
3
|
courseId: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
content?: string;
|
|
6
|
+
contentType?: ContentType;
|
|
7
|
+
ruleId?: string;
|
|
7
8
|
}
|
|
8
|
-
export interface UpdateEpisodeRequest extends
|
|
9
|
+
export interface UpdateEpisodeRequest extends Omit<CreateEpisodeRequest, "courseId"> {
|
|
9
10
|
id: string;
|
|
10
11
|
}
|
|
11
12
|
export interface EpisodeModifier extends CreateEpisodeRequest {
|
|
12
13
|
valid: boolean;
|
|
13
14
|
id: string;
|
|
15
|
+
ruleOption?: ValueOption;
|
|
14
16
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ExerciseType } from "../../common";
|
|
2
|
+
export interface CreateExerciseEpisodicRequest {
|
|
3
|
+
episodeId: string;
|
|
4
|
+
}
|
|
5
|
+
export interface UpdateExerciseEpisodicRequest {
|
|
6
|
+
id: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ExerciseEpisodicModifier extends CreateExerciseEpisodicRequest {
|
|
9
|
+
id: string;
|
|
10
|
+
valid: boolean;
|
|
11
|
+
type: ExerciseType;
|
|
12
|
+
}
|
|
@@ -14,8 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./request"), exports);
|
|
18
17
|
__exportStar(require("./list"), exports);
|
|
19
18
|
__exportStar(require("./table"), exports);
|
|
20
19
|
__exportStar(require("./regular"), exports);
|
|
21
|
-
__exportStar(require("./
|
|
20
|
+
__exportStar(require("./baseEpisodic"), exports);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export interface CreateExerciseListRequest extends
|
|
1
|
+
import { ValueOption } from "../../common";
|
|
2
|
+
import { ExerciseEpisodicModifier, CreateExerciseEpisodicRequest, UpdateExerciseEpisodicRequest } from "./baseEpisodic";
|
|
3
|
+
export interface CreateExerciseListRequest extends CreateExerciseEpisodicRequest {
|
|
4
4
|
wordIds: string[];
|
|
5
5
|
}
|
|
6
|
-
export interface UpdateExerciseListRequest extends
|
|
6
|
+
export interface UpdateExerciseListRequest extends UpdateExerciseEpisodicRequest {
|
|
7
7
|
wordIds: string[];
|
|
8
8
|
}
|
|
9
|
-
export interface ExerciseListModifier extends
|
|
9
|
+
export interface ExerciseListModifier extends ExerciseEpisodicModifier {
|
|
10
10
|
listId: string;
|
|
11
|
-
|
|
11
|
+
words: ValueOption[];
|
|
12
12
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
mode?: ExerciseMode;
|
|
1
|
+
import { ExerciseKind } from "../../common";
|
|
2
|
+
export interface CreateExerciseRegularRequest {
|
|
3
|
+
episodeId?: string;
|
|
4
|
+
ruleId?: string;
|
|
5
|
+
kind: ExerciseKind;
|
|
7
6
|
}
|
|
8
|
-
export interface UpdateExerciseRegularRequest extends
|
|
7
|
+
export interface UpdateExerciseRegularRequest extends Pick<CreateExerciseRegularRequest, "kind"> {
|
|
9
8
|
id: string;
|
|
10
|
-
randomTips?: boolean;
|
|
11
9
|
}
|
|
12
|
-
export interface ExerciseRegularModifier extends
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
export interface ExerciseRegularModifier extends CreateExerciseRegularRequest {
|
|
11
|
+
id: string;
|
|
12
|
+
valid: boolean;
|
|
13
|
+
exerciseRuleId?: string;
|
|
14
|
+
itemTotal: number;
|
|
15
15
|
}
|
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ValueOption } from "../../common";
|
|
2
|
+
import { ExerciseEpisodicModifier, CreateExerciseEpisodicRequest, UpdateExerciseEpisodicRequest } from "./baseEpisodic";
|
|
3
3
|
export interface ExerciseTableCell {
|
|
4
4
|
wordIds: string[];
|
|
5
5
|
columnIndex: number;
|
|
6
6
|
}
|
|
7
|
-
export interface ExerciseTableRow {
|
|
8
|
-
cells:
|
|
7
|
+
export interface ExerciseTableRow<TCell = ExerciseTableCell> {
|
|
8
|
+
cells: TCell[];
|
|
9
9
|
rowId?: string;
|
|
10
10
|
}
|
|
11
|
-
export interface CreateExerciseTableRequest extends
|
|
11
|
+
export interface CreateExerciseTableRequest extends CreateExerciseEpisodicRequest {
|
|
12
12
|
columns: string[];
|
|
13
13
|
rows: ExerciseTableRow[];
|
|
14
14
|
}
|
|
15
|
-
export interface
|
|
16
|
-
tableId: string;
|
|
15
|
+
export interface UpdateExerciseTableRequest extends UpdateExerciseEpisodicRequest {
|
|
17
16
|
columns: string[];
|
|
18
17
|
rows: ExerciseTableRow[];
|
|
19
18
|
}
|
|
20
|
-
export interface
|
|
19
|
+
export interface ExerciseTableCellModifier extends ExerciseTableCell {
|
|
20
|
+
words: ValueOption[];
|
|
21
|
+
}
|
|
22
|
+
export interface ExerciseTableModifier extends ExerciseEpisodicModifier {
|
|
23
|
+
tableId: string;
|
|
21
24
|
columns: string[];
|
|
22
|
-
rows: ExerciseTableRow[];
|
|
25
|
+
rows: ExerciseTableRow<ExerciseTableCellModifier>[];
|
|
23
26
|
}
|
package/lib/shared/index.d.ts
CHANGED
package/lib/shared/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./entity";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./entity"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "revdev",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.350.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"lint:fix": "eslint . --fix",
|
|
12
12
|
"v": "npm --no-git-tag-version version minor",
|
|
13
13
|
"pm": "npm run lint:fix && git add * && git commit -m\"update\" && git push origin master",
|
|
14
|
-
"p": "npm run v && npm run lint:fix && git add * && git commit -m\"v\" && git push origin master"
|
|
14
|
+
"p": "npm run v && npm run lint:fix && git add * && git commit -m\"v\" && git push origin master",
|
|
15
|
+
"prepare": "ts-patch install"
|
|
15
16
|
},
|
|
16
17
|
"prettier": "eslint-config-varp/prettier",
|
|
17
18
|
"keywords": [
|
|
@@ -24,7 +25,9 @@
|
|
|
24
25
|
"eslint-config-varp": "^2.10.0",
|
|
25
26
|
"jest": "^24.9.0",
|
|
26
27
|
"ts-jest": "^24.1.0",
|
|
27
|
-
"
|
|
28
|
+
"ts-patch": "^3.3.0",
|
|
29
|
+
"typescript": "~5.9.3",
|
|
30
|
+
"typia": "^12.0.1"
|
|
28
31
|
},
|
|
29
32
|
"files": [
|
|
30
33
|
"lib/**/*"
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ExerciseType } from "../../common";
|
|
2
|
-
export interface CreateBaseExerciseRequest {
|
|
3
|
-
name: string;
|
|
4
|
-
episodeId: string;
|
|
5
|
-
}
|
|
6
|
-
export interface BasicExerciseModifier extends CreateBaseExerciseRequest {
|
|
7
|
-
id: string;
|
|
8
|
-
valid: boolean;
|
|
9
|
-
type: ExerciseType;
|
|
10
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { CreateBaseExerciseRequest } from "./basic";
|
|
2
|
-
import { ExerciseListModifier } from "./list";
|
|
3
|
-
import { ExerciseTableModifier } from "./table";
|
|
4
|
-
import { ExerciseRegularModifier } from "./regular";
|
|
5
|
-
export interface UpdateExerciseRequest extends Pick<CreateBaseExerciseRequest, "name"> {
|
|
6
|
-
id: string;
|
|
7
|
-
}
|
|
8
|
-
export type ExerciseModifier = ExerciseListModifier | ExerciseTableModifier | ExerciseRegularModifier;
|
|
File without changes
|
|
File without changes
|