@@ -14,28 +14,27 @@ export interface AllOrgs {
14
14
} [ ] ;
15
15
}
16
16
17
- export interface Projects {
18
- [ ProjectName : string ] :{
19
- archeive :boolean ,
20
- bookmark : boolean
21
- }
17
+ export interface Projects {
18
+ [ ProjectName : string ] : {
19
+ archeive : boolean ;
20
+ bookmark : boolean ;
21
+ } ;
22
22
}
23
- export interface OrgProjects {
24
- projects : Projects
23
+ export interface OrgProjects {
24
+ projects : Projects ;
25
25
}
26
26
27
- export interface Workspace {
27
+ export interface Workspace {
28
28
id : number ;
29
29
name : string ;
30
- description : string
30
+ description : string ;
31
31
}
32
32
interface OrgMembers {
33
33
members : {
34
34
[ username : string ] : string ;
35
35
} ;
36
36
}
37
37
38
-
39
38
export const deleteOrg = async (
40
39
authorizationToken : string ,
41
40
orgName : string
@@ -98,7 +97,7 @@ export const addOrgMembers = async (
98
97
} ,
99
98
}
100
99
) ;
101
-
100
+
102
101
return respnse ;
103
102
} ;
104
103
@@ -142,7 +141,6 @@ export const changeOrgMembersStatus = async (
142
141
return respnse ;
143
142
} ;
144
143
145
-
146
144
export const setArcheiveStatus = async (
147
145
authorizationToken : string ,
148
146
orgName : string ,
@@ -189,7 +187,7 @@ export const setBookmarkStatus = async (
189
187
export const getOrgMembers = async (
190
188
authorizationToken : string ,
191
189
orgName : string
192
- ) : Promise < AxiosResponse < OrgMembers > > => {
190
+ ) : Promise < AxiosResponse < OrgMembers > > => {
193
191
const url = BACKEND_URL + '/api/protected/org/getMembers/' + orgName ;
194
192
195
193
const respnse = await axios . get < OrgMembers > ( url , {
@@ -204,7 +202,7 @@ export const getOrgMembers = async (
204
202
export const getOrgProjects = async (
205
203
authorizationToken : string ,
206
204
orgName : string
207
- ) :Promise < AxiosResponse < OrgProjects > > => {
205
+ ) : Promise < AxiosResponse < OrgProjects > > => {
208
206
const url = BACKEND_URL + '/api/protected/org/getProjects/' + orgName ;
209
207
const respnse = await axios . get < OrgProjects > ( url , {
210
208
headers : {
@@ -215,7 +213,10 @@ export const getOrgProjects = async (
215
213
return respnse ;
216
214
} ;
217
215
218
- export const getOrg = async ( authorizationToken : string , orgName : string ) : Promise < AxiosResponse < Workspace > > => {
216
+ export const getOrg = async (
217
+ authorizationToken : string ,
218
+ orgName : string
219
+ ) : Promise < AxiosResponse < Workspace > > => {
219
220
const url = BACKEND_URL + '/api/protected/org/getOrg/' + orgName ;
220
221
const respnse = await axios . get < Workspace > ( url , {
221
222
headers : {
0 commit comments