mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
org delete apis
This commit is contained in:
@@ -198,7 +198,7 @@ export abstract class ApiService {
|
||||
putOrganization: (id: string, request: OrganizationUpdateRequest) => Promise<OrganizationResponse>;
|
||||
postLeaveOrganization: (id: string) => Promise<any>;
|
||||
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>>;
|
||||
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);
|
||||
}
|
||||
|
||||
deleteOrganization(id: string): Promise<any> {
|
||||
return this.send('DELETE', '/organizations/' + id, null, true, false);
|
||||
postDeleteOrganization(id: string, request: PasswordVerificationRequest): Promise<any> {
|
||||
return this.send('POST', '/organizations/' + id + '/delete', request, true, false);
|
||||
}
|
||||
|
||||
// Event APIs
|
||||
|
||||
Reference in New Issue
Block a user