Skip to content

Commit cf73e05

Browse files
committed
Add isOnboarded property in user type
1 parent 45e078e commit cf73e05

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

frontend/src/types/User.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { z } from "zod";
22
import { ProficiencyEnum } from "./Proficiency";
33
import { LanguageEnum } from "./Languages";
44
import { RoleEnum } from "./Role";
5+
import { createResponseSchema } from "./Response";
56

67
const UserProfileSchema = z.object({
78
username: z.string(),
@@ -10,11 +11,17 @@ const UserProfileSchema = z.object({
1011
roles: z.array(RoleEnum),
1112
proficiency: ProficiencyEnum,
1213
languages: z.array(LanguageEnum),
14+
isOnboarded: z.boolean(),
1315
});
1416

17+
const UserProfileResponseSchema = createResponseSchema(UserProfileSchema);
18+
1519
type UserProfile = z.infer<typeof UserProfileSchema>;
20+
type UserProfileResponse = z.infer<typeof UserProfileResponseSchema>;
1621

1722
export {
1823
UserProfileSchema,
24+
UserProfileResponseSchema,
1925
type UserProfile,
26+
type UserProfileResponse
2027
}

0 commit comments

Comments
 (0)