@@ -34,24 +34,24 @@ export interface OrgAPIUsageResponse extends ApiResponse {
34
34
}
35
35
36
36
export class OrgApi extends Api {
37
- static createGroupURL = "/v1/ groups" ;
38
- static updateGroupURL = ( groupId : string ) => `/v1/ groups/${ groupId } /update` ;
39
- static fetchGroupURL = "/v1/ groups/list" ;
40
- static fetchGroupUsersURL = ( groupId : string ) => `/v1/ groups/${ groupId } /members` ;
41
- static deleteGroupURL = ( groupId : string ) => `/v1/ groups/${ groupId } ` ;
42
- static fetchOrgUsersURL = ( orgId : string ) => `/v1/ organizations/${ orgId } /members` ;
43
- static deleteOrgUsersURL = ( orgId : string ) => `/v1/ organizations/${ orgId } /remove` ;
44
- static deleteGroupUserURL = ( groupId : string ) => `/v1/ groups/${ groupId } /remove` ;
45
- static addGroupUserURL = ( groupId : string ) => `/v1/ groups/${ groupId } /addMember` ;
46
- static updateUserOrgRoleURL = ( orgId : string ) => `/v1/ organizations/${ orgId } /role` ;
47
- static updateUserGroupRoleURL = ( groupId : string ) => `/v1/ groups/${ groupId } /role` ;
48
- static quitOrgURL = ( orgId : string ) => `/v1/ organizations/${ orgId } /leave` ;
49
- static quitGroupURL = ( groupId : string ) => `/v1/ groups/${ groupId } /leave` ;
50
- static switchOrgURL = ( orgId : string ) => `/v1/ organizations/switchOrganization/${ orgId } ` ;
51
- static createOrgURL = "/v1/ organizations" ;
52
- static deleteOrgURL = ( orgId : string ) => `/v1/ organizations/${ orgId } ` ;
53
- static updateOrgURL = ( orgId : string ) => `/v1/ organizations/${ orgId } /update` ;
54
- static fetchUsage = ( orgId : string ) => `/v1/ organizations/${ orgId } /api-usage` ;
37
+ static createGroupURL = "/groups" ;
38
+ static updateGroupURL = ( groupId : string ) => `/groups/${ groupId } /update` ;
39
+ static fetchGroupURL = "/groups/list" ;
40
+ static fetchGroupUsersURL = ( groupId : string ) => `/groups/${ groupId } /members` ;
41
+ static deleteGroupURL = ( groupId : string ) => `/groups/${ groupId } ` ;
42
+ static fetchOrgUsersURL = ( orgId : string ) => `/organizations/${ orgId } /members` ;
43
+ static deleteOrgUsersURL = ( orgId : string ) => `/organizations/${ orgId } /remove` ;
44
+ static deleteGroupUserURL = ( groupId : string ) => `/groups/${ groupId } /remove` ;
45
+ static addGroupUserURL = ( groupId : string ) => `/groups/${ groupId } /addMember` ;
46
+ static updateUserOrgRoleURL = ( orgId : string ) => `/organizations/${ orgId } /role` ;
47
+ static updateUserGroupRoleURL = ( groupId : string ) => `/groups/${ groupId } /role` ;
48
+ static quitOrgURL = ( orgId : string ) => `/organizations/${ orgId } /leave` ;
49
+ static quitGroupURL = ( groupId : string ) => `/groups/${ groupId } /leave` ;
50
+ static switchOrgURL = ( orgId : string ) => `/organizations/switchOrganization/${ orgId } ` ;
51
+ static createOrgURL = "/organizations" ;
52
+ static deleteOrgURL = ( orgId : string ) => `/organizations/${ orgId } ` ;
53
+ static updateOrgURL = ( orgId : string ) => `/organizations/${ orgId } /update` ;
54
+ static fetchUsage = ( orgId : string ) => `/organizations/${ orgId } /api-usage` ;
55
55
56
56
static createGroup ( request : { name : string } ) : AxiosPromise < GenericApiResponse < OrgGroup > > {
57
57
return Api . post ( OrgApi . createGroupURL , request ) ;
0 commit comments