-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathauth.d.ts
62 lines (54 loc) · 1.28 KB
/
auth.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
declare module 'gachTaxi-types' {
interface EmailVerificationTypes {
email: string;
}
// 회원가입 응답 타입
interface SignUpFlowResponse {
code: number;
message: string;
data: UserResponse;
}
interface PhoneVerificationTypes {
phoneNumber: string;
}
interface AuthCodeTypes {
authCode: string;
email: string;
}
interface AuthCodeForPhoneTypes {
authCode: string;
phoneNumber: string;
}
interface UserInfoVerificationTypes {
profilePicture?: file | string | undefined;
nickname: string;
realName: string;
studentNumber: string;
gender: 'MALE' | 'FEMALE';
}
interface ProfileEditVerificationTypes {
profilePicture?: file | string | undefined;
nickName?: string;
accountNumber?: string;
}
interface AgreementsTypes {
termsAgreement: boolean;
privacyAgreement: boolean;
marketingAgreement: boolean;
}
interface MemberResponseDto {
userId: number;
studentNumber: number;
nickName: string;
realName: string;
profilePicture: null;
email: string;
role: string;
gender: string;
accountNumber?: string;
}
// 회원가입 또는 로그인 시 반환되는 유저 정보
interface UserResponse {
memberResponseDto: MemberResponseDto | null;
}
}