mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
[Soft Delete] jslib updates for new API updates
New API methods and cipher Deleted Date property, plus search expansion to toggle on deleted flag.
This commit is contained in:
@@ -434,6 +434,30 @@ export class ApiService implements ApiServiceAbstraction {
|
||||
return this.send('POST', '/ciphers/import-organization?organizationId=' + organizationId, request, true, false);
|
||||
}
|
||||
|
||||
putDeleteCipher(id: string): Promise<any> {
|
||||
return this.send('PUT', '/ciphers/' + id + '/delete', null, true, false);
|
||||
}
|
||||
|
||||
putDeleteCipherAdmin(id: string): Promise<any> {
|
||||
return this.send('PUT', '/ciphers/' + id + '/delete-admin', null, true, false);
|
||||
}
|
||||
|
||||
putDeleteManyCiphers(request: CipherBulkDeleteRequest): Promise<any> {
|
||||
return this.send('PUT', '/ciphers/delete', request, true, false);
|
||||
}
|
||||
|
||||
putRestoreCipher(id: string): Promise<any> {
|
||||
return this.send('PUT', '/ciphers/' + id + '/restore', null, true, false);
|
||||
}
|
||||
|
||||
putRestoreCipherAdmin(id: string): Promise<any> {
|
||||
return this.send('PUT', '/ciphers/' + id + '/restore-admin', null, true, false);
|
||||
}
|
||||
|
||||
putRestoreManyCiphers(request: CipherBulkDeleteRequest): Promise<any> {
|
||||
return this.send('PUT', '/ciphers/restore', request, true, false);
|
||||
}
|
||||
|
||||
// Attachments APIs
|
||||
|
||||
async postCipherAttachment(id: string, data: FormData): Promise<CipherResponse> {
|
||||
|
||||
Reference in New Issue
Block a user