mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 01:03:35 +00:00
org vault listing from apis
This commit is contained in:
@@ -40,6 +40,7 @@ import { UpdateTwoFactorYubioOtpRequest } from '../models/request/updateTwoFacto
|
||||
|
||||
import { BillingResponse } from '../models/response/billingResponse';
|
||||
import { CipherResponse } from '../models/response/cipherResponse';
|
||||
import { CollectionResponse } from '../models/response/collectionResponse';
|
||||
import { DomainsResponse } from '../models/response/domainsResponse';
|
||||
import { ErrorResponse } from '../models/response/errorResponse';
|
||||
import { FolderResponse } from '../models/response/folderResponse';
|
||||
@@ -241,6 +242,12 @@ export class ApiService implements ApiServiceAbstraction {
|
||||
|
||||
// Cipher APIs
|
||||
|
||||
async getCiphersOrganization(organizationId: string): Promise<ListResponse<CipherResponse>> {
|
||||
const r = await this.send('GET', '/ciphers/organization-details?organizationId=' + organizationId,
|
||||
null, true, true);
|
||||
return new ListResponse(r, CipherResponse);
|
||||
}
|
||||
|
||||
async postCipher(request: CipherRequest): Promise<CipherResponse> {
|
||||
const r = await this.send('POST', '/ciphers', request, true, true);
|
||||
return new CipherResponse(r);
|
||||
@@ -304,6 +311,13 @@ export class ApiService implements ApiServiceAbstraction {
|
||||
attachmentId + '/share?organizationId=' + organizationId, data, true, false);
|
||||
}
|
||||
|
||||
// Collections APIs
|
||||
|
||||
async getCollections(organizationId: string): Promise<ListResponse<CollectionResponse>> {
|
||||
const r = await this.send('GET', '/organizations/' + organizationId + '/collections', null, true, true);
|
||||
return new ListResponse(r, CollectionResponse);
|
||||
}
|
||||
|
||||
// Sync APIs
|
||||
|
||||
async getSync(): Promise<SyncResponse> {
|
||||
|
||||
Reference in New Issue
Block a user