File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -122,8 +122,8 @@ export interface PageList {
122122 pages : BasePage [ ] ;
123123}
124124
125- /** project information which isn't joined */
126- export interface NotMemberProject {
125+ /** project information */
126+ export interface Project {
127127 id : ProjectId ;
128128 name : string ;
129129 displayName : string ;
@@ -132,9 +132,26 @@ export interface NotMemberProject {
132132 theme : string ;
133133 gyazoTeamsName : string | null ;
134134 googleAnalyticsCode : string | null ;
135- image ?: string ;
135+ /** planの種類
136+ *
137+ * public projectの場合は`null`になる
138+ *
139+ * 古いprojectだとpropertyが生えていない
140+ */
141+ plan ?: string | null ;
136142 created : UnixTime ;
137143 updated : UnixTime ;
144+ isMember : boolean ;
145+ }
146+
147+ /** the response type of /api/projects */
148+ export interface ProjectResponse {
149+ projects : Project [ ] ;
150+ }
151+
152+ /** project information which isn't joined */
153+ export interface NotMemberProject extends Omit < Project , "isMember" > {
154+ image ?: string ;
138155 isMember : false ;
139156}
140157
You can’t perform that action at this time.
0 commit comments