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>;
|
||||
putCipherCollections: (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>;
|
||||
postImportOrganizationCiphers: (organizationId: string, request: ImportOrganizationCiphersRequest) => Promise<any>;
|
||||
|
||||
|
|
|
@ -30,5 +30,5 @@ export enum EventType {
|
|||
OrganizationUser_UpdatedGroups = 1504,
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
postPurgeCiphers(request: PasswordVerificationRequest): Promise<any> {
|
||||
return this.send('POST', '/ciphers/purge', request, true, false);
|
||||
postPurgeCiphers(request: PasswordVerificationRequest, organizationId: string = null): Promise<any> {
|
||||
let path = '/ciphers/purge';
|
||||
if (organizationId != null) {
|
||||
path += '?organizationId=' + organizationId;
|
||||
}
|
||||
return this.send('POST', path, request, true, false);
|
||||
}
|
||||
|
||||
postImportCiphers(request: ImportCiphersRequest): Promise<any> {
|
||||
|
|
Loading…
Reference in New Issue