File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { z } from "zod";
2
2
import { ProficiencyEnum } from "./Proficiency" ;
3
3
import { LanguageEnum } from "./Languages" ;
4
4
import { RoleEnum } from "./Role" ;
5
+ import { createResponseSchema } from "./Response" ;
5
6
6
7
const UserProfileSchema = z . object ( {
7
8
username : z . string ( ) ,
@@ -10,11 +11,17 @@ const UserProfileSchema = z.object({
10
11
roles : z . array ( RoleEnum ) ,
11
12
proficiency : ProficiencyEnum ,
12
13
languages : z . array ( LanguageEnum ) ,
14
+ isOnboarded : z . boolean ( ) ,
13
15
} ) ;
14
16
17
+ const UserProfileResponseSchema = createResponseSchema ( UserProfileSchema ) ;
18
+
15
19
type UserProfile = z . infer < typeof UserProfileSchema > ;
20
+ type UserProfileResponse = z . infer < typeof UserProfileResponseSchema > ;
16
21
17
22
export {
18
23
UserProfileSchema ,
24
+ UserProfileResponseSchema ,
19
25
type UserProfile ,
26
+ type UserProfileResponse
20
27
}
You can’t perform that action at this time.
0 commit comments