@flantastic/study-time-types 1.0.24 → 1.0.26

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
@@ -31,5 +31,7 @@ export * from "./response/questionTemplatePut.response";
31
31
  export * from "./response/usersGet.response";
32
32
  export * from "./response/userGet.response";
33
33
  export * from "./response/userPut.response";
34
+ export * from "./response/userUploadProfileImage.response";
34
35
  export * from "./response/error.response";
35
36
  export * from "./request/signUp.request";
37
+ export * from "./request/uploadProfileImage.request";
package/dist/index.js CHANGED
@@ -47,5 +47,7 @@ __exportStar(require("./response/questionTemplatePut.response"), exports);
47
47
  __exportStar(require("./response/usersGet.response"), exports);
48
48
  __exportStar(require("./response/userGet.response"), exports);
49
49
  __exportStar(require("./response/userPut.response"), exports);
50
+ __exportStar(require("./response/userUploadProfileImage.response"), exports);
50
51
  __exportStar(require("./response/error.response"), exports);
51
52
  __exportStar(require("./request/signUp.request"), exports);
53
+ __exportStar(require("./request/uploadProfileImage.request"), exports);
@@ -1,8 +1,6 @@
1
1
  export interface AuthSignUpRequest {
2
- data: {
3
- email: string;
4
- password: string;
5
- firstName: string;
6
- lastName: string;
7
- };
2
+ email: string;
3
+ password: string;
4
+ firstName: string;
5
+ lastName: string;
8
6
  }
@@ -0,0 +1,3 @@
1
+ export interface UploadProfileImageRequest {
2
+ imageData: File;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,6 @@
1
+ import { StudyItemTemplateData } from "../schema/studyItemTemplateData.schema";
1
2
  export interface ItemTemplateAddResponse {
2
- data: {};
3
+ data: {
4
+ template: StudyItemTemplateData;
5
+ };
3
6
  }
@@ -1,3 +1,6 @@
1
+ import { StudyItemTemplateData } from "../schema/studyItemTemplateData.schema";
1
2
  export interface ItemTemplatePutResponse {
2
- data: {};
3
+ data: {
4
+ template: StudyItemTemplateData;
5
+ };
3
6
  }
@@ -1,3 +1,6 @@
1
+ import { StudyQuestionTemplateData } from "../schema/studyQuestionTemplateData.schema";
1
2
  export interface QuestionTemplateAddResponse {
2
- data: {};
3
+ data: {
4
+ template: StudyQuestionTemplateData;
5
+ };
3
6
  }
@@ -1,3 +1,6 @@
1
+ import { StudyQuestionTemplateData } from "../schema/studyQuestionTemplateData.schema";
1
2
  export interface QuestionTemplatePutResponse {
2
- data: {};
3
+ data: {
4
+ template: StudyQuestionTemplateData;
5
+ };
3
6
  }
@@ -1,3 +1,6 @@
1
+ import { StudyItemData } from "../schema/studyItemsData.schema";
1
2
  export interface StudyItemAddResponse {
2
- data: {};
3
+ data: {
4
+ studyItem: StudyItemData;
5
+ };
3
6
  }
@@ -1,3 +1,6 @@
1
+ import { StudyItemData } from "../schema/studyItemsData.schema";
1
2
  export interface StudyItemUpdateResponse {
2
- data: {};
3
+ data: {
4
+ studyItem: StudyItemData;
5
+ };
3
6
  }
@@ -1,3 +1,6 @@
1
+ import { User } from "../schema/user.schema";
1
2
  export interface UserPutResponse {
2
- data: {};
3
+ data: {
4
+ user: User;
5
+ };
3
6
  }
@@ -0,0 +1,3 @@
1
+ export interface UserUploadProfileImageResponse {
2
+ imageUrl: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -12,5 +12,6 @@ export declare const UserSchema: z.ZodObject<{
12
12
  assignedTeacher: z.ZodOptional<z.ZodString>;
13
13
  firstName: z.ZodString;
14
14
  lastName: z.ZodString;
15
+ profileImageUrl: z.ZodOptional<z.ZodString>;
15
16
  }, z.core.$strip>;
16
17
  export type User = z.infer<typeof UserSchema>;
@@ -13,5 +13,6 @@ exports.UserSchema = zod_1.default.object({
13
13
  assignedStudents: zod_1.default.array(zod_1.default.string().min(1)).optional(),
14
14
  assignedTeacher: zod_1.default.string().min(1).optional(),
15
15
  firstName: zod_1.default.string().min(1),
16
- lastName: zod_1.default.string().min(1)
16
+ lastName: zod_1.default.string().min(1),
17
+ profileImageUrl: zod_1.default.string().min(1).optional()
17
18
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flantastic/study-time-types",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {