Skip to content

Commit d3aa270

Browse files
committed
style:
1 parent 4fc5c01 commit d3aa270

File tree

1 file changed

+50
-8
lines changed

1 file changed

+50
-8
lines changed

response.ts

Lines changed: 50 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,33 @@ import { Commit } from "./commit.ts";
1212
/** user information */
1313
export interface User {
1414
id: UserId;
15-
/** user name */ name: string;
16-
/** user display name */ displayName: string;
17-
/** profile image URL */ photo: string;
15+
16+
/** user name */
17+
name: string;
18+
19+
/** user display name */
20+
displayName: string;
21+
22+
/** profile image URL */
23+
photo: string;
1824
}
1925

2026
/** user detailed information */
2127
export interface UserInfo extends User {
22-
/** user e-mail */ email: string;
23-
/** whether the user is a pro user or not */ pro: boolean;
24-
/** login provider */ provider: "google" | "microsoft" | "email";
25-
/** accountの作成日時 */ created: UnixTime;
26-
/** accountの更新日時 */ updated: UnixTime;
28+
/** user e-mail */
29+
email: string;
30+
31+
/** whether the user is a pro user or not */
32+
pro: boolean;
33+
34+
/** login provider */
35+
provider: "google" | "microsoft" | "email";
36+
37+
/** creation time of the account */
38+
created: UnixTime;
39+
40+
/** update time of the account */
41+
updated: UnixTime;
2742
}
2843

2944
/** page information */
@@ -129,22 +144,33 @@ export interface PageList {
129144
/** project information */
130145
export interface Project {
131146
id: ProjectId;
147+
132148
name: string;
149+
133150
displayName: string;
151+
134152
publicVisible: boolean;
153+
135154
loginStrategies: string[];
155+
136156
theme: string;
157+
137158
gyazoTeamsName: string | null;
159+
138160
googleAnalyticsCode: string | null;
161+
139162
/** planの種類
140163
*
141164
* public projectの場合は`null`になる
142165
*
143166
* 古いprojectだとpropertyが生えていない
144167
*/
145168
plan?: string | null;
169+
146170
created: UnixTime;
171+
147172
updated: UnixTime;
173+
148174
isMember: boolean;
149175
}
150176

@@ -156,35 +182,51 @@ export interface ProjectResponse {
156182
/** project information which isn't joined */
157183
export interface NotMemberProject extends Omit<Project, "isMember"> {
158184
image?: string;
185+
159186
isMember: false;
160187
}
161188

162189
/** project information which is joined */
163190
export interface MemberProject extends Omit<NotMemberProject, "isMember"> {
164191
isMember: true;
192+
165193
plan?: string | null;
194+
166195
users: UserInfo[];
196+
167197
admins: UserId[];
198+
168199
owner: UserId;
200+
169201
trialing: boolean;
202+
170203
trialMaxPages: number;
204+
171205
skipPayment: boolean;
206+
172207
uploadFileTo: "gcs";
208+
173209
uploadImaegTo: "gyazo" | "gcs";
210+
174211
emailAddressPatterns: string[];
212+
175213
backuped: UnixTime | null;
176214
}
177215

178216
export interface GuestUser {
179217
isGuest: true;
218+
180219
csrfToken: string;
181220
}
182221

183222
export interface MemberUser extends UserInfo {
184223
isGuest: false;
224+
185225
csrfToken: string;
226+
186227
config: {
187228
userScript: boolean;
229+
188230
emacsBinding: boolean;
189231
};
190232
}

0 commit comments

Comments
 (0)