mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +01:00
purge org vault apis
This commit is contained in:
parent
d81273c44f
commit
d1847690f2
@ -139,7 +139,7 @@ export abstract class ApiService {
|
|||||||
putShareCiphers: (request: CipherBulkShareRequest) => Promise<any>;
|
putShareCiphers: (request: CipherBulkShareRequest) => Promise<any>;
|
||||||
putCipherCollections: (id: string, request: CipherCollectionsRequest) => Promise<any>;
|
putCipherCollections: (id: string, request: CipherCollectionsRequest) => Promise<any>;
|
||||||
putCipherCollectionsAdmin: (id: string, request: CipherCollectionsRequest) => Promise<any>;
|
putCipherCollectionsAdmin: (id: string, request: CipherCollectionsRequest) => Promise<any>;
|
||||||
postPurgeCiphers: (request: PasswordVerificationRequest) => Promise<any>;
|
postPurgeCiphers: (request: PasswordVerificationRequest, organizationId?: string) => Promise<any>;
|
||||||
postImportCiphers: (request: ImportCiphersRequest) => Promise<any>;
|
postImportCiphers: (request: ImportCiphersRequest) => Promise<any>;
|
||||||
postImportOrganizationCiphers: (organizationId: string, request: ImportOrganizationCiphersRequest) => Promise<any>;
|
postImportOrganizationCiphers: (organizationId: string, request: ImportOrganizationCiphersRequest) => Promise<any>;
|
||||||
|
|
||||||
|
@ -30,5 +30,5 @@ export enum EventType {
|
|||||||
OrganizationUser_UpdatedGroups = 1504,
|
OrganizationUser_UpdatedGroups = 1504,
|
||||||
|
|
||||||
Organization_Updated = 1600,
|
Organization_Updated = 1600,
|
||||||
|
Organization_PurgedVault = 1601,
|
||||||
}
|
}
|
||||||
|
@ -380,8 +380,12 @@ export class ApiService implements ApiServiceAbstraction {
|
|||||||
return this.send('PUT', '/ciphers/' + id + '/collections-admin', request, true, false);
|
return this.send('PUT', '/ciphers/' + id + '/collections-admin', request, true, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
postPurgeCiphers(request: PasswordVerificationRequest): Promise<any> {
|
postPurgeCiphers(request: PasswordVerificationRequest, organizationId: string = null): Promise<any> {
|
||||||
return this.send('POST', '/ciphers/purge', request, true, false);
|
let path = '/ciphers/purge';
|
||||||
|
if (organizationId != null) {
|
||||||
|
path += '?organizationId=' + organizationId;
|
||||||
|
}
|
||||||
|
return this.send('POST', path, request, true, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
postImportCiphers(request: ImportCiphersRequest): Promise<any> {
|
postImportCiphers(request: ImportCiphersRequest): Promise<any> {
|
||||||
|
Loading…
Reference in New Issue
Block a user