@flantastic/study-time-types 1.0.10 → 1.0.12
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/dist/enum/{studyItemState.enum.d.ts → studyItemStatus.enum.d.ts} +1 -1
- package/dist/enum/studyItemStatus.enum.js +10 -0
- package/dist/enum/{studyQuestionGrade.enum.d.ts → studyQuestionStatus.enum.d.ts} +1 -1
- package/dist/enum/studyQuestionStatus.enum.js +9 -0
- package/dist/index.d.ts +17 -4
- package/dist/index.js +17 -4
- package/dist/response/authSignIn.response.d.ts +6 -0
- package/dist/response/authSignIn.response.js +2 -0
- package/dist/response/authSignOut.response.d.ts +3 -0
- package/dist/response/authSignOut.response.js +2 -0
- package/dist/response/authSignUp.response.d.ts +6 -0
- package/dist/response/authSignUp.response.js +2 -0
- package/dist/response/authStatus.response.d.ts +6 -0
- package/dist/response/authStatus.response.js +2 -0
- package/dist/response/error.response.d.ts +4 -0
- package/dist/response/error.response.js +2 -0
- package/dist/response/studyItemAdd.response.d.ts +3 -0
- package/dist/response/studyItemAdd.response.js +2 -0
- package/dist/response/studyItemUpdate.response.d.ts +3 -0
- package/dist/response/studyItemUpdate.response.js +2 -0
- package/dist/response/studyItemsGet.response.d.ts +7 -0
- package/dist/response/studyItemsGet.response.js +2 -0
- package/dist/response/usersGet.response.d.ts +6 -0
- package/dist/response/usersGet.response.js +2 -0
- package/dist/schema/studyItemContent.schema.d.ts +18 -0
- package/dist/schema/studyItemContent.schema.js +13 -0
- package/dist/schema/studyItemEntity.schema.d.ts +34 -0
- package/dist/schema/{studyItem.schema.js → studyItemEntity.schema.js} +8 -10
- package/dist/schema/studyItemTemplate.schema.d.ts +21 -0
- package/dist/schema/studyItemTemplate.schema.js +12 -0
- package/dist/schema/studyQuestionContent.schema.d.ts +5 -0
- package/dist/schema/studyQuestionContent.schema.js +10 -0
- package/dist/schema/studyQuestionEntity.schema.d.ts +15 -0
- package/dist/schema/studyQuestionEntity.schema.js +15 -0
- package/dist/schema/studyQuestionTemplate.schema.d.ts +8 -0
- package/dist/schema/studyQuestionTemplate.schema.js +12 -0
- package/package.json +1 -1
- package/dist/auth.schema.d.ts +0 -6
- package/dist/auth.schema.js +0 -5
- package/dist/enum/studyItemState.enum.js +0 -10
- package/dist/enum/studyQuestionGrade.enum.js +0 -9
- package/dist/schema/studyItem.schema.d.ts +0 -30
- package/dist/schema/studyQuestion.schema.d.ts +0 -13
- package/dist/schema/studyQuestion.schema.js +0 -14
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StudyItemStatus = void 0;
|
|
4
|
+
var StudyItemStatus;
|
|
5
|
+
(function (StudyItemStatus) {
|
|
6
|
+
StudyItemStatus["Draft"] = "DRAFT";
|
|
7
|
+
StudyItemStatus["ToDo"] = "TODO";
|
|
8
|
+
StudyItemStatus["Submitted"] = "SUBMITTED";
|
|
9
|
+
StudyItemStatus["Marked"] = "MARKED";
|
|
10
|
+
})(StudyItemStatus || (exports.StudyItemStatus = StudyItemStatus = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StudyQuestionStatus = void 0;
|
|
4
|
+
var StudyQuestionStatus;
|
|
5
|
+
(function (StudyQuestionStatus) {
|
|
6
|
+
StudyQuestionStatus["Unmarked"] = "UNMARKED";
|
|
7
|
+
StudyQuestionStatus["Correct"] = "CORRECT";
|
|
8
|
+
StudyQuestionStatus["Incorrect"] = "INCORRECT";
|
|
9
|
+
})(StudyQuestionStatus || (exports.StudyQuestionStatus = StudyQuestionStatus = {}));
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
export * from "./schema/authUser.schema";
|
|
2
|
-
export * from "./schema/
|
|
3
|
-
export * from "./schema/
|
|
2
|
+
export * from "./schema/studyItemEntity.schema";
|
|
3
|
+
export * from "./schema/studyItemContent.schema";
|
|
4
|
+
export * from "./schema/studyItemTemplate.schema";
|
|
5
|
+
export * from "./schema/studyQuestionEntity.schema";
|
|
6
|
+
export * from "./schema/studyQuestionContent.schema";
|
|
7
|
+
export * from "./schema/studyQuestionTemplate.schema";
|
|
4
8
|
export * from "./schema/user.schema";
|
|
5
9
|
export * from "./enum/language.enum";
|
|
6
10
|
export * from "./enum/role.enum";
|
|
7
|
-
export * from "./enum/
|
|
8
|
-
export * from "./enum/
|
|
11
|
+
export * from "./enum/studyItemStatus.enum";
|
|
12
|
+
export * from "./enum/studyQuestionStatus.enum";
|
|
13
|
+
export * from "./response/authStatus.response";
|
|
14
|
+
export * from "./response/authSignIn.response";
|
|
15
|
+
export * from "./response/authSignOut.response";
|
|
16
|
+
export * from "./response/authSignUp.response";
|
|
17
|
+
export * from "./response/studyItemsGet.response";
|
|
18
|
+
export * from "./response/studyItemAdd.response";
|
|
19
|
+
export * from "./response/studyItemUpdate.response";
|
|
20
|
+
export * from "./response/usersGet.response";
|
|
21
|
+
export * from "./response/error.response";
|
package/dist/index.js
CHANGED
|
@@ -15,10 +15,23 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./schema/authUser.schema"), exports);
|
|
18
|
-
__exportStar(require("./schema/
|
|
19
|
-
__exportStar(require("./schema/
|
|
18
|
+
__exportStar(require("./schema/studyItemEntity.schema"), exports);
|
|
19
|
+
__exportStar(require("./schema/studyItemContent.schema"), exports);
|
|
20
|
+
__exportStar(require("./schema/studyItemTemplate.schema"), exports);
|
|
21
|
+
__exportStar(require("./schema/studyQuestionEntity.schema"), exports);
|
|
22
|
+
__exportStar(require("./schema/studyQuestionContent.schema"), exports);
|
|
23
|
+
__exportStar(require("./schema/studyQuestionTemplate.schema"), exports);
|
|
20
24
|
__exportStar(require("./schema/user.schema"), exports);
|
|
21
25
|
__exportStar(require("./enum/language.enum"), exports);
|
|
22
26
|
__exportStar(require("./enum/role.enum"), exports);
|
|
23
|
-
__exportStar(require("./enum/
|
|
24
|
-
__exportStar(require("./enum/
|
|
27
|
+
__exportStar(require("./enum/studyItemStatus.enum"), exports);
|
|
28
|
+
__exportStar(require("./enum/studyQuestionStatus.enum"), exports);
|
|
29
|
+
__exportStar(require("./response/authStatus.response"), exports);
|
|
30
|
+
__exportStar(require("./response/authSignIn.response"), exports);
|
|
31
|
+
__exportStar(require("./response/authSignOut.response"), exports);
|
|
32
|
+
__exportStar(require("./response/authSignUp.response"), exports);
|
|
33
|
+
__exportStar(require("./response/studyItemsGet.response"), exports);
|
|
34
|
+
__exportStar(require("./response/studyItemAdd.response"), exports);
|
|
35
|
+
__exportStar(require("./response/studyItemUpdate.response"), exports);
|
|
36
|
+
__exportStar(require("./response/usersGet.response"), exports);
|
|
37
|
+
__exportStar(require("./response/error.response"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import z from "zod";
|
|
2
|
+
export declare const StudyItemContentSchema: z.ZodObject<{
|
|
3
|
+
title: z.ZodString;
|
|
4
|
+
description: z.ZodString;
|
|
5
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
6
|
+
question: z.ZodObject<{
|
|
7
|
+
question: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
answer: z.ZodString;
|
|
10
|
+
status: z.ZodEnum<{
|
|
11
|
+
UNMARKED: import("..").StudyQuestionStatus.Unmarked;
|
|
12
|
+
CORRECT: import("..").StudyQuestionStatus.Correct;
|
|
13
|
+
INCORRECT: import("..").StudyQuestionStatus.Incorrect;
|
|
14
|
+
}>;
|
|
15
|
+
teacherComment: z.ZodString;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export type StudyItemContent = z.infer<typeof StudyItemContentSchema>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.StudyItemContentSchema = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
const studyQuestionEntity_schema_1 = require("./studyQuestionEntity.schema");
|
|
9
|
+
exports.StudyItemContentSchema = zod_1.default.object({
|
|
10
|
+
title: zod_1.default.string().min(1),
|
|
11
|
+
description: zod_1.default.string().min(1),
|
|
12
|
+
questions: zod_1.default.array(studyQuestionEntity_schema_1.StudyQuestionEntitySchema),
|
|
13
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import z from "zod";
|
|
2
|
+
import { Language } from "../enum/language.enum";
|
|
3
|
+
import { StudyItemStatus } from "../enum/studyItemStatus.enum";
|
|
4
|
+
export declare const StudyItemEntitySchema: z.ZodObject<{
|
|
5
|
+
assignedStudent: z.ZodString;
|
|
6
|
+
assignedTeacher: z.ZodString;
|
|
7
|
+
state: z.ZodEnum<{
|
|
8
|
+
DRAFT: StudyItemStatus.Draft;
|
|
9
|
+
TODO: StudyItemStatus.ToDo;
|
|
10
|
+
SUBMITTED: StudyItemStatus.Submitted;
|
|
11
|
+
MARKED: StudyItemStatus.Marked;
|
|
12
|
+
}>;
|
|
13
|
+
language: z.ZodEnum<{
|
|
14
|
+
JAPANESE: Language.Japanese;
|
|
15
|
+
}>;
|
|
16
|
+
studyItemContent: z.ZodObject<{
|
|
17
|
+
title: z.ZodString;
|
|
18
|
+
description: z.ZodString;
|
|
19
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
20
|
+
question: z.ZodObject<{
|
|
21
|
+
question: z.ZodString;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
answer: z.ZodString;
|
|
24
|
+
status: z.ZodEnum<{
|
|
25
|
+
UNMARKED: import("..").StudyQuestionStatus.Unmarked;
|
|
26
|
+
CORRECT: import("..").StudyQuestionStatus.Correct;
|
|
27
|
+
INCORRECT: import("..").StudyQuestionStatus.Incorrect;
|
|
28
|
+
}>;
|
|
29
|
+
teacherComment: z.ZodString;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
teacherComment: z.ZodString;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export type StudyItemEntity = z.infer<typeof StudyItemEntitySchema>;
|
|
@@ -3,18 +3,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.StudyItemEntitySchema = void 0;
|
|
7
7
|
const zod_1 = __importDefault(require("zod"));
|
|
8
8
|
const language_enum_1 = require("../enum/language.enum");
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
exports.
|
|
12
|
-
title: zod_1.default.string().min(1),
|
|
13
|
-
description: zod_1.default.string().min(1),
|
|
14
|
-
language: zod_1.default.enum(Object.values(language_enum_1.Language)),
|
|
15
|
-
state: zod_1.default.enum(Object.values(studyItemState_enum_1.StudyItemState)),
|
|
16
|
-
questions: zod_1.default.array(studyQuestion_schema_1.StudyQuestionSchema),
|
|
17
|
-
teacherComment: zod_1.default.string(),
|
|
9
|
+
const studyItemStatus_enum_1 = require("../enum/studyItemStatus.enum");
|
|
10
|
+
const studyItemContent_schema_1 = require("./studyItemContent.schema");
|
|
11
|
+
exports.StudyItemEntitySchema = zod_1.default.object({
|
|
18
12
|
assignedStudent: zod_1.default.string().min(1),
|
|
19
13
|
assignedTeacher: zod_1.default.string().min(1),
|
|
14
|
+
state: zod_1.default.enum(Object.values(studyItemStatus_enum_1.StudyItemStatus)),
|
|
15
|
+
language: zod_1.default.enum(Object.values(language_enum_1.Language)),
|
|
16
|
+
studyItemContent: studyItemContent_schema_1.StudyItemContentSchema,
|
|
17
|
+
teacherComment: zod_1.default.string(),
|
|
20
18
|
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import z from "zod";
|
|
2
|
+
export declare const StudyItemTemplateSchema: z.ZodObject<{
|
|
3
|
+
owner: z.ZodString;
|
|
4
|
+
studyItemContent: z.ZodObject<{
|
|
5
|
+
title: z.ZodString;
|
|
6
|
+
description: z.ZodString;
|
|
7
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
8
|
+
question: z.ZodObject<{
|
|
9
|
+
question: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
answer: z.ZodString;
|
|
12
|
+
status: z.ZodEnum<{
|
|
13
|
+
UNMARKED: import("..").StudyQuestionStatus.Unmarked;
|
|
14
|
+
CORRECT: import("..").StudyQuestionStatus.Correct;
|
|
15
|
+
INCORRECT: import("..").StudyQuestionStatus.Incorrect;
|
|
16
|
+
}>;
|
|
17
|
+
teacherComment: z.ZodString;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export type StudyItemTemplate = z.infer<typeof StudyItemTemplateSchema>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.StudyItemTemplateSchema = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
const studyItemContent_schema_1 = require("./studyItemContent.schema");
|
|
9
|
+
exports.StudyItemTemplateSchema = zod_1.default.object({
|
|
10
|
+
owner: zod_1.default.string().min(1),
|
|
11
|
+
studyItemContent: studyItemContent_schema_1.StudyItemContentSchema,
|
|
12
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.StudyQuestionContentSchema = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
exports.StudyQuestionContentSchema = zod_1.default.object({
|
|
9
|
+
question: zod_1.default.string().min(1),
|
|
10
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import z from "zod";
|
|
2
|
+
import { StudyQuestionStatus } from "../enum/studyQuestionStatus.enum";
|
|
3
|
+
export declare const StudyQuestionEntitySchema: z.ZodObject<{
|
|
4
|
+
question: z.ZodObject<{
|
|
5
|
+
question: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
answer: z.ZodString;
|
|
8
|
+
status: z.ZodEnum<{
|
|
9
|
+
UNMARKED: StudyQuestionStatus.Unmarked;
|
|
10
|
+
CORRECT: StudyQuestionStatus.Correct;
|
|
11
|
+
INCORRECT: StudyQuestionStatus.Incorrect;
|
|
12
|
+
}>;
|
|
13
|
+
teacherComment: z.ZodString;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export type StudyQuestionEntity = z.infer<typeof StudyQuestionEntitySchema>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.StudyQuestionEntitySchema = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
const studyQuestionStatus_enum_1 = require("../enum/studyQuestionStatus.enum");
|
|
9
|
+
const studyQuestionContent_schema_1 = require("./studyQuestionContent.schema");
|
|
10
|
+
exports.StudyQuestionEntitySchema = zod_1.default.object({
|
|
11
|
+
question: studyQuestionContent_schema_1.StudyQuestionContentSchema,
|
|
12
|
+
answer: zod_1.default.string(),
|
|
13
|
+
status: zod_1.default.enum(Object.values(studyQuestionStatus_enum_1.StudyQuestionStatus)),
|
|
14
|
+
teacherComment: zod_1.default.string(),
|
|
15
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import z from "zod";
|
|
2
|
+
export declare const StudyQuestionTemplateSchema: z.ZodObject<{
|
|
3
|
+
owner: z.ZodString;
|
|
4
|
+
studyQuestionContent: z.ZodObject<{
|
|
5
|
+
question: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export type StudyQuestionTemplate = z.infer<typeof StudyQuestionTemplateSchema>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.StudyQuestionTemplateSchema = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
const studyQuestionContent_schema_1 = require("./studyQuestionContent.schema");
|
|
9
|
+
exports.StudyQuestionTemplateSchema = zod_1.default.object({
|
|
10
|
+
owner: zod_1.default.string().min(1),
|
|
11
|
+
studyQuestionContent: studyQuestionContent_schema_1.StudyQuestionContentSchema
|
|
12
|
+
});
|
package/package.json
CHANGED
package/dist/auth.schema.d.ts
DELETED
package/dist/auth.schema.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StudyItemState = void 0;
|
|
4
|
-
var StudyItemState;
|
|
5
|
-
(function (StudyItemState) {
|
|
6
|
-
StudyItemState["Draft"] = "DRAFT";
|
|
7
|
-
StudyItemState["ToDo"] = "TODO";
|
|
8
|
-
StudyItemState["Submitted"] = "SUBMITTED";
|
|
9
|
-
StudyItemState["Marked"] = "MARKED";
|
|
10
|
-
})(StudyItemState || (exports.StudyItemState = StudyItemState = {}));
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StudyQuestionGrade = void 0;
|
|
4
|
-
var StudyQuestionGrade;
|
|
5
|
-
(function (StudyQuestionGrade) {
|
|
6
|
-
StudyQuestionGrade["Unmarked"] = "UNMARKED";
|
|
7
|
-
StudyQuestionGrade["Correct"] = "CORRECT";
|
|
8
|
-
StudyQuestionGrade["Incorrect"] = "INCORRECT";
|
|
9
|
-
})(StudyQuestionGrade || (exports.StudyQuestionGrade = StudyQuestionGrade = {}));
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
import { Language } from "../enum/language.enum";
|
|
3
|
-
import { StudyItemState } from "../enum/studyItemState.enum";
|
|
4
|
-
export declare const StudyItemSchema: z.ZodObject<{
|
|
5
|
-
title: z.ZodString;
|
|
6
|
-
description: z.ZodString;
|
|
7
|
-
language: z.ZodEnum<{
|
|
8
|
-
JAPANESE: Language.Japanese;
|
|
9
|
-
}>;
|
|
10
|
-
state: z.ZodEnum<{
|
|
11
|
-
DRAFT: StudyItemState.Draft;
|
|
12
|
-
TODO: StudyItemState.ToDo;
|
|
13
|
-
SUBMITTED: StudyItemState.Submitted;
|
|
14
|
-
MARKED: StudyItemState.Marked;
|
|
15
|
-
}>;
|
|
16
|
-
questions: z.ZodArray<z.ZodObject<{
|
|
17
|
-
question: z.ZodString;
|
|
18
|
-
answer: z.ZodString;
|
|
19
|
-
correct: z.ZodEnum<{
|
|
20
|
-
UNMARKED: import("..").StudyQuestionGrade.Unmarked;
|
|
21
|
-
CORRECT: import("..").StudyQuestionGrade.Correct;
|
|
22
|
-
INCORRECT: import("..").StudyQuestionGrade.Incorrect;
|
|
23
|
-
}>;
|
|
24
|
-
teacherComment: z.ZodString;
|
|
25
|
-
}, z.core.$strip>>;
|
|
26
|
-
teacherComment: z.ZodString;
|
|
27
|
-
assignedStudent: z.ZodString;
|
|
28
|
-
assignedTeacher: z.ZodString;
|
|
29
|
-
}, z.core.$strip>;
|
|
30
|
-
export type StudyItem = z.infer<typeof StudyItemSchema>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
import { StudyQuestionGrade } from "../enum/studyQuestionGrade.enum";
|
|
3
|
-
export declare const StudyQuestionSchema: z.ZodObject<{
|
|
4
|
-
question: z.ZodString;
|
|
5
|
-
answer: z.ZodString;
|
|
6
|
-
correct: z.ZodEnum<{
|
|
7
|
-
UNMARKED: StudyQuestionGrade.Unmarked;
|
|
8
|
-
CORRECT: StudyQuestionGrade.Correct;
|
|
9
|
-
INCORRECT: StudyQuestionGrade.Incorrect;
|
|
10
|
-
}>;
|
|
11
|
-
teacherComment: z.ZodString;
|
|
12
|
-
}, z.core.$strip>;
|
|
13
|
-
export type StudyQuestion = z.infer<typeof StudyQuestionSchema>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.StudyQuestionSchema = void 0;
|
|
7
|
-
const zod_1 = __importDefault(require("zod"));
|
|
8
|
-
const studyQuestionGrade_enum_1 = require("../enum/studyQuestionGrade.enum");
|
|
9
|
-
exports.StudyQuestionSchema = zod_1.default.object({
|
|
10
|
-
question: zod_1.default.string().min(1),
|
|
11
|
-
answer: zod_1.default.string(),
|
|
12
|
-
correct: zod_1.default.enum(Object.values(studyQuestionGrade_enum_1.StudyQuestionGrade)),
|
|
13
|
-
teacherComment: zod_1.default.string(),
|
|
14
|
-
});
|