mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +01:00
org delete apis
This commit is contained in:
parent
3649e2fffe
commit
b2c700ad28
@ -198,7 +198,7 @@ export abstract class ApiService {
|
|||||||
putOrganization: (id: string, request: OrganizationUpdateRequest) => Promise<OrganizationResponse>;
|
putOrganization: (id: string, request: OrganizationUpdateRequest) => Promise<OrganizationResponse>;
|
||||||
postLeaveOrganization: (id: string) => Promise<any>;
|
postLeaveOrganization: (id: string) => Promise<any>;
|
||||||
postOrganizationLicense: (data: FormData) => Promise<OrganizationResponse>;
|
postOrganizationLicense: (data: FormData) => Promise<OrganizationResponse>;
|
||||||
deleteOrganization: (id: string) => Promise<any>;
|
postDeleteOrganization: (id: string, request: PasswordVerificationRequest) => Promise<any>;
|
||||||
|
|
||||||
getEvents: (start: string, end: string, token: string) => Promise<ListResponse<EventResponse>>;
|
getEvents: (start: string, end: string, token: string) => Promise<ListResponse<EventResponse>>;
|
||||||
getEventsCipher: (id: string, start: string, end: string, token: string) => Promise<ListResponse<EventResponse>>;
|
getEventsCipher: (id: string, start: string, end: string, token: string) => Promise<ListResponse<EventResponse>>;
|
||||||
|
@ -651,8 +651,8 @@ export class ApiService implements ApiServiceAbstraction {
|
|||||||
return new OrganizationResponse(r);
|
return new OrganizationResponse(r);
|
||||||
}
|
}
|
||||||
|
|
||||||
deleteOrganization(id: string): Promise<any> {
|
postDeleteOrganization(id: string, request: PasswordVerificationRequest): Promise<any> {
|
||||||
return this.send('DELETE', '/organizations/' + id, null, true, false);
|
return this.send('POST', '/organizations/' + id + '/delete', request, true, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Event APIs
|
// Event APIs
|
||||||
|
Loading…
Reference in New Issue
Block a user