diff --git a/src/abstractions/api.service.ts b/src/abstractions/api.service.ts index 81a687b6b1..838d12e434 100644 --- a/src/abstractions/api.service.ts +++ b/src/abstractions/api.service.ts @@ -165,6 +165,7 @@ export abstract class ApiService { deleteCipher: (id: string) => Promise; deleteCipherAdmin: (id: string) => Promise; deleteManyCiphers: (request: CipherBulkDeleteRequest) => Promise; + deleteManyCiphersAdmin: (request: CipherBulkDeleteRequest) => Promise; putMoveCiphers: (request: CipherBulkMoveRequest) => Promise; putShareCipher: (id: string, request: CipherShareRequest) => Promise; putShareCiphers: (request: CipherBulkShareRequest) => Promise; @@ -176,6 +177,7 @@ export abstract class ApiService { putDeleteCipher: (id: string) => Promise; putDeleteCipherAdmin: (id: string) => Promise; putDeleteManyCiphers: (request: CipherBulkDeleteRequest) => Promise; + putDeleteManyCiphersAdmin: (request: CipherBulkDeleteRequest) => Promise; putRestoreCipher: (id: string) => Promise; putRestoreCipherAdmin: (id: string) => Promise; putRestoreManyCiphers: (request: CipherBulkRestoreRequest) => Promise; diff --git a/src/services/api.service.ts b/src/services/api.service.ts index 4999d059d2..9f7397f355 100644 --- a/src/services/api.service.ts +++ b/src/services/api.service.ts @@ -423,6 +423,10 @@ export class ApiService implements ApiServiceAbstraction { return this.send('DELETE', '/ciphers', request, true, false); } + deleteManyCiphersAdmin(request: CipherBulkDeleteRequest): Promise { + return this.send('DELETE', '/ciphers/admin', request, true, false); + } + putMoveCiphers(request: CipherBulkMoveRequest): Promise { return this.send('PUT', '/ciphers/move', request, true, false); } @@ -472,6 +476,10 @@ export class ApiService implements ApiServiceAbstraction { return this.send('PUT', '/ciphers/delete', request, true, false); } + putDeleteManyCiphersAdmin(request: CipherBulkDeleteRequest): Promise { + return this.send('PUT', '/ciphers/delete-admin', request, true, false); + } + putRestoreCipher(id: string): Promise { return this.send('PUT', '/ciphers/' + id + '/restore', null, true, false); }