-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.d.ts
205 lines (178 loc) · 4.81 KB
/
index.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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
/** The common types required by more than one workspace. */
/** All possible roles for a DTI member */
type Role = 'lead' | 'tpm' | 'pm' | 'developer' | 'designer' | 'business' | 'dev-advisor';
/** The corresponding more human readable role description of all roles. */
type RoleDescription =
| 'Lead'
| 'Technical PM'
| 'Product Manager'
| 'Developer'
| 'Designer'
| 'Business Analyst'
| 'Dev Advisor';
/** The data type used by IDOL to represent a DTI member. */
interface IdolMember {
readonly netid: string;
readonly email: string;
readonly firstName: string;
readonly lastName: string;
readonly pronouns: string;
readonly graduation: string;
readonly major: string;
readonly doubleMajor?: string | null;
readonly minor?: string | null;
readonly website?: string | null;
readonly linkedin?: string | null;
readonly github?: string | null;
readonly hometown: string;
readonly about: string;
readonly subteams: readonly string[];
readonly formerSubteams?: readonly string[] | null;
readonly role: Role;
readonly roleDescription: RoleDescription;
}
interface IdolMemberDiff {
/** Email of the member. */
readonly email: string;
readonly diffString: string;
}
/** The data type used by Nova site to represent a DTI member. */
interface NovaMember {
readonly netid: string;
readonly name: string;
readonly pronouns: string;
readonly isLead?: boolean;
readonly graduation: string;
readonly major: string;
readonly doubleMajor?: string;
readonly minor?: string;
readonly website?: string;
readonly linkedin?: string;
readonly github?: string;
readonly hometown: string;
readonly about: string;
readonly subteams?: string[];
readonly formerSubteams?: string[];
readonly roleId: string;
readonly roleDescription: string;
}
interface ProfileImage {
readonly url: string;
readonly fileName: string;
}
interface SignInResponse {
readonly signedInAt: number;
readonly user: IdolMember;
readonly response?: string;
}
interface SignInForm {
readonly users: SignInResponse[];
readonly createdAt: number;
readonly id: string;
readonly expireAt: number;
readonly prompt?: string;
}
type Status = 'pending' | 'approved' | 'rejected';
interface TeamEventAttendance {
member: IdolMember;
hoursAttended?: number;
image: string;
readonly eventUuid: string;
readonly status: Status;
readonly reason: string;
readonly uuid: string;
}
interface TeamEventInfo {
readonly name: string;
readonly date: string;
readonly numCredits: string;
readonly hasHours: boolean;
readonly uuid: string;
readonly isCommunity?: boolean;
readonly isInitiativeEvent: boolean;
readonly maxCredits: string;
}
interface TeamEvent extends TeamEventInfo {
readonly requests: TeamEventAttendance[];
}
interface EventProofImage {
readonly url: string;
readonly fileName: string;
}
type Rating = 0 | 1 | 2 | 3 | 4 | 5;
interface CandidateDeciderRating {
readonly reviewer: IdolMember;
readonly rating: Rating;
}
interface CandidateDeciderComment {
readonly reviewer: IdolMember;
readonly comment: string;
}
interface CandidateDeciderCandidate {
readonly responses: string[];
readonly id: number;
ratings: CandidateDeciderRating[];
comments: CandidateDeciderComment[];
}
interface CandidateDeciderInstance extends CandidateDeciderInfo {
readonly headers: string[];
readonly candidates: CandidateDeciderCandidate[];
readonly authorizedMembers: IdolMember[];
readonly authorizedRoles: Role[];
}
interface CandidateDeciderInfo {
readonly name: string;
readonly uuid: string;
isOpen: boolean;
}
interface CandidateDeciderEdit {
name?: string;
readonly uuid: string;
authorizedMembers?: IdolMember[];
authorizedRoles?: Role[];
isOpen?: boolean;
}
type SubmissionStatus = 'valid' | 'pending' | 'invalid';
interface PullRequestSubmission {
url: string;
status: SubmissionStatus;
reason?: string | null;
}
interface DevPortfolioSubmission {
member: IdolMember;
openedPRs: PullRequestSubmission[];
reviewedPRs: PullRequestSubmission[];
otherPRs: PullRequestSubmission[];
isLate?: boolean;
text?: string;
documentationText?: string;
status: SubmissionStatus;
}
interface DevPortfolioInfo {
name: string;
deadline: number;
earliestValidDate: number;
readonly uuid: string;
lateDeadline: number | null;
}
interface DevPortfolio extends DevPortfolioInfo {
submissions: DevPortfolioSubmission[];
}
interface Shoutout {
readonly giver: IdolMember;
readonly receiver: string;
readonly message: string;
readonly isAnon: boolean;
readonly timestamp: number;
readonly hidden: boolean;
readonly uuid: string;
}
interface CoffeeChat {
readonly uuid: string;
readonly members: IdolMember[];
readonly image: string;
readonly category: string;
readonly description: string;
readonly status: Status;
readonly date: number;
}