-
Notifications
You must be signed in to change notification settings - Fork 2
/
types.d.ts
168 lines (149 loc) · 3.14 KB
/
types.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
type Gender = "남자" | "여자" | "선택안함";
type PostBadge = "idea" | "complete" | "code" | "function";
type ProfileBadge = "puzzle" | "pencil" | "arrow" | "chat" | "tool";
declare enum Field {
WEB = "웹",
APP = "앱",
SOFTWARE = "소프트웨어",
DATA = "데이터",
WEB3 = "블록체인",
DEVOPS = "데브옵스",
IOT_AND_EMBEDDED = "IOT,임베디드",
SECURITY = "보안",
}
type SubCategory =
| WebSubCategory
| DataSubCategory
| AppSubCategory
| ETCSubCategory
| SoftWareCategory
| string;
enum WebSubCategory {
FRONT_END = "프론트엔드",
BACK_END = "백엔드",
FULLSTACK = "풀스택",
}
enum DataSubCategory {
DATA_ENGINEER = "데이터 엔지니어",
MACHINE_LEARNING_ENGINEER = "머신러닝 엔지니어",
DATA_SCIENCE = "데이터 사이언스 전문가",
}
enum AppSubCategory {
ANDROID = "안드로이드",
IOS = "iOS",
REACT_NATIVE = "리액트 네이티브",
FLUTTER = "플러터",
}
enum ETCSubCategory {
WEB3 = "웹3",
DEV_OPS = "데브옵스",
IOT_AND_EMBEDDED = "IOT와 임베디드",
SECURITY = "보안",
}
enum SoftWareCategory {
OFFICE_AUTOMATIC = "사무자동화",
FACTORY_AUTOMATIC = "공장자동화",
ENTERPRISE_RESOURCE_PLANNING = "ERP",
UNITY = "유니티",
UNREAL = "언리얼",
}
enum NotificationKind {
COMMENT = "comment",
LIKE = "like",
BOOKMARK = "bookmark",
POST_BADGE = "badge",
PROFILE_BADGE = "profileBadge",
}
interface UserProfileType {
id: string;
user_id: string;
user_name: string;
contact_email: string;
gender: Gender;
bookmark_folders: string[];
phone: string;
field: string[];
skills: string[];
career: string;
is_public: boolean;
birth_year: string;
self_profile: string;
profile_image: string;
background_image: string;
github: string;
}
interface NotificationType {
id: string;
created_at: Date;
user_id: string;
target_id: string;
post_id?: string;
content: string;
type: NotificationKind;
is_read: boolean;
}
interface PostType {
title: string;
sub_title: string;
title_background_image: string;
large_category: string;
sub_category: string;
skills: string[];
progress_date: [string, string];
members: MembersType[];
tag: string[];
github_url: string;
deployed_url: string;
content: string;
id: string;
user_id: string;
created_at: string;
comment_count: number;
like_count: number;
bookmark_count: number;
thumbnail_check: boolean;
}
interface MembersType {
name: string;
field: string;
github: string;
}
interface FollowType {
id: string;
follower_id: string;
following_id: string;
}
interface BookmarkType {
id: string;
post_id: string;
user_id: string;
}
interface LikeType {
id: string;
post_id: string;
user_id: string;
}
interface CommentType {
id: string;
post_id: string;
user_id: string;
content: string;
created_at: string;
}
interface CommentLikeType {
id: string;
comment_id: string;
user_id: string;
}
interface ProfileBadgeType {
id: string;
created_at: Date;
user_id: string;
profile_id: string;
BadgeKind:
| "communication"
| "implementation"
| "initiative"
| "pencil"
| "puzzle";
}