@flantastic/study-time-types 1.0.13 → 1.0.14

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,7 +1,9 @@
1
1
  import { StudyItemEntity } from "../schema/studyItemEntity.schema";
2
2
  export interface StudyItemsGetResponse {
3
3
  data: [
4
- id: string,
5
- studyItem: StudyItemEntity
4
+ {
5
+ id: string;
6
+ studyItem: StudyItemEntity;
7
+ }
6
8
  ];
7
9
  }
@@ -0,0 +1,35 @@
1
+ import z from "zod";
2
+ export declare const StudyItemDataSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ studyItem: z.ZodObject<{
5
+ assignedStudent: z.ZodString;
6
+ assignedTeacher: z.ZodString;
7
+ state: z.ZodEnum<{
8
+ DRAFT: import("..").StudyItemStatus.Draft;
9
+ TODO: import("..").StudyItemStatus.ToDo;
10
+ SUBMITTED: import("..").StudyItemStatus.Submitted;
11
+ MARKED: import("..").StudyItemStatus.Marked;
12
+ }>;
13
+ language: z.ZodEnum<{
14
+ JAPANESE: import("..").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
+ }, z.core.$strip>;
35
+ export type StudyItemData = z.infer<typeof StudyItemDataSchema>;
@@ -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.StudyItemDataSchema = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ const studyItemEntity_schema_1 = require("./studyItemEntity.schema");
9
+ exports.StudyItemDataSchema = zod_1.default.object({
10
+ id: zod_1.default.string().min(1),
11
+ studyItem: studyItemEntity_schema_1.StudyItemEntitySchema
12
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flantastic/study-time-types",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {