mirror of
https://github.com/bitwarden/browser.git
synced 2025-04-08 19:06:11 +02:00
added api service methods for delete many w/admin calls
This commit is contained in:
parent
137ca87668
commit
2a38c8a9de
@ -162,6 +162,7 @@ export abstract class ApiService {
|
||||
deleteCipher: (id: string) => Promise<any>;
|
||||
deleteCipherAdmin: (id: string) => Promise<any>;
|
||||
deleteManyCiphers: (request: CipherBulkDeleteRequest) => Promise<any>;
|
||||
deleteManyCiphersAdmin: (request: CipherBulkDeleteRequest) => Promise<any>;
|
||||
putMoveCiphers: (request: CipherBulkMoveRequest) => Promise<any>;
|
||||
putShareCipher: (id: string, request: CipherShareRequest) => Promise<CipherResponse>;
|
||||
putShareCiphers: (request: CipherBulkShareRequest) => Promise<any>;
|
||||
@ -173,6 +174,7 @@ export abstract class ApiService {
|
||||
putDeleteCipher: (id: string) => Promise<any>;
|
||||
putDeleteCipherAdmin: (id: string) => Promise<any>;
|
||||
putDeleteManyCiphers: (request: CipherBulkDeleteRequest) => Promise<any>;
|
||||
putDeleteManyCiphersAdmin: (request: CipherBulkDeleteRequest) => Promise<any>;
|
||||
putRestoreCipher: (id: string) => Promise<any>;
|
||||
putRestoreCipherAdmin: (id: string) => Promise<any>;
|
||||
putRestoreManyCiphers: (request: CipherBulkRestoreRequest) => Promise<any>;
|
||||
|
@ -414,6 +414,10 @@ export class ApiService implements ApiServiceAbstraction {
|
||||
return this.send('DELETE', '/ciphers', request, true, false);
|
||||
}
|
||||
|
||||
deleteManyCiphersAdmin(request: CipherBulkDeleteRequest): Promise<any> {
|
||||
return this.send('DELETE', '/ciphers/admin', request, true, false);
|
||||
}
|
||||
|
||||
putMoveCiphers(request: CipherBulkMoveRequest): Promise<any> {
|
||||
return this.send('PUT', '/ciphers/move', request, true, false);
|
||||
}
|
||||
@ -463,6 +467,10 @@ export class ApiService implements ApiServiceAbstraction {
|
||||
return this.send('PUT', '/ciphers/delete', request, true, false);
|
||||
}
|
||||
|
||||
putDeleteManyCiphersAdmin(request: CipherBulkDeleteRequest): Promise<any> {
|
||||
return this.send('PUT', '/ciphers/delete-admin', request, true, false);
|
||||
}
|
||||
|
||||
putRestoreCipher(id: string): Promise<any> {
|
||||
return this.send('PUT', '/ciphers/' + id + '/restore', null, true, false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user