@flantastic/study-time-types 1.0.16 → 1.0.18

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/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export * from "./schema/studyItemEntity.schema";
3
3
  export * from "./schema/studyItemContent.schema";
4
4
  export * from "./schema/studyItemTemplate.schema";
5
5
  export * from "./schema/studyItemsData.schema";
6
+ export * from "./schema/studyItemTemplateData.schema";
6
7
  export * from "./schema/studyQuestionEntity.schema";
7
8
  export * from "./schema/studyQuestionContent.schema";
8
9
  export * from "./schema/studyQuestionTemplate.schema";
@@ -18,6 +19,9 @@ export * from "./response/authSignUp.response";
18
19
  export * from "./response/studyItemsGet.response";
19
20
  export * from "./response/studyItemAdd.response";
20
21
  export * from "./response/studyItemUpdate.response";
22
+ export * from "./response/itemTemplateAdd.response";
23
+ export * from "./response/itemTemplateGet.response";
24
+ export * from "./response/itemTemplateDelete.response";
21
25
  export * from "./response/usersGet.response";
22
26
  export * from "./response/userGet.response";
23
27
  export * from "./response/error.response";
package/dist/index.js CHANGED
@@ -19,6 +19,7 @@ __exportStar(require("./schema/studyItemEntity.schema"), exports);
19
19
  __exportStar(require("./schema/studyItemContent.schema"), exports);
20
20
  __exportStar(require("./schema/studyItemTemplate.schema"), exports);
21
21
  __exportStar(require("./schema/studyItemsData.schema"), exports);
22
+ __exportStar(require("./schema/studyItemTemplateData.schema"), exports);
22
23
  __exportStar(require("./schema/studyQuestionEntity.schema"), exports);
23
24
  __exportStar(require("./schema/studyQuestionContent.schema"), exports);
24
25
  __exportStar(require("./schema/studyQuestionTemplate.schema"), exports);
@@ -34,6 +35,9 @@ __exportStar(require("./response/authSignUp.response"), exports);
34
35
  __exportStar(require("./response/studyItemsGet.response"), exports);
35
36
  __exportStar(require("./response/studyItemAdd.response"), exports);
36
37
  __exportStar(require("./response/studyItemUpdate.response"), exports);
38
+ __exportStar(require("./response/itemTemplateAdd.response"), exports);
39
+ __exportStar(require("./response/itemTemplateGet.response"), exports);
40
+ __exportStar(require("./response/itemTemplateDelete.response"), exports);
37
41
  __exportStar(require("./response/usersGet.response"), exports);
38
42
  __exportStar(require("./response/userGet.response"), exports);
39
43
  __exportStar(require("./response/error.response"), exports);
@@ -0,0 +1,3 @@
1
+ export interface ItemTemplateAddResponse {
2
+ data: {};
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface ItemTemplateDeleteResponse {
2
+ data: {};
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { StudyItemTemplateData } from "../schema/studyItemTemplateData.schema";
2
+ export interface ItemTemplateGetResponse {
3
+ data: {
4
+ templates: StudyItemTemplateData[];
5
+ };
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,21 +1,10 @@
1
1
  import z from "zod";
2
2
  export declare const StudyItemTemplateSchema: z.ZodObject<{
3
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>;
4
+ title: z.ZodString;
5
+ description: z.ZodString;
6
+ questions: z.ZodArray<z.ZodObject<{
7
+ question: z.ZodString;
8
+ }, z.core.$strip>>;
20
9
  }, z.core.$strip>;
21
10
  export type StudyItemTemplate = z.infer<typeof StudyItemTemplateSchema>;
@@ -5,8 +5,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.StudyItemTemplateSchema = void 0;
7
7
  const zod_1 = __importDefault(require("zod"));
8
- const studyItemContent_schema_1 = require("./studyItemContent.schema");
8
+ const studyQuestionContent_schema_1 = require("./studyQuestionContent.schema");
9
9
  exports.StudyItemTemplateSchema = zod_1.default.object({
10
10
  owner: zod_1.default.string().min(1),
11
- studyItemContent: studyItemContent_schema_1.StudyItemContentSchema,
11
+ title: zod_1.default.string().min(1),
12
+ description: zod_1.default.string().min(1),
13
+ questions: zod_1.default.array(studyQuestionContent_schema_1.StudyQuestionContentSchema)
12
14
  });
@@ -0,0 +1,13 @@
1
+ import z from "zod";
2
+ export declare const StudyItemTemplateDataSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ template: z.ZodObject<{
5
+ owner: z.ZodString;
6
+ title: z.ZodString;
7
+ description: z.ZodString;
8
+ questions: z.ZodArray<z.ZodObject<{
9
+ question: z.ZodString;
10
+ }, z.core.$strip>>;
11
+ }, z.core.$strip>;
12
+ }, z.core.$strip>;
13
+ export type StudyItemTemplateData = z.infer<typeof StudyItemTemplateDataSchema>;
@@ -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.StudyItemTemplateDataSchema = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ const studyItemTemplate_schema_1 = require("./studyItemTemplate.schema");
9
+ exports.StudyItemTemplateDataSchema = zod_1.default.object({
10
+ id: zod_1.default.string().min(1),
11
+ template: studyItemTemplate_schema_1.StudyItemTemplateSchema
12
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flantastic/study-time-types",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {