purge org vault apis

This commit is contained in:
Kyle Spearrin 2018-09-25 09:12:11 -04:00
parent d81273c44f
commit d1847690f2
3 changed files with 8 additions and 4 deletions

View File

@ -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>;

View File

@ -30,5 +30,5 @@ export enum EventType {
OrganizationUser_UpdatedGroups = 1504, OrganizationUser_UpdatedGroups = 1504,
Organization_Updated = 1600, Organization_Updated = 1600,
Organization_PurgedVault = 1601,
} }

View File

@ -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> {