mirror of
https://github.com/bitwarden/browser
synced 2026-02-24 00:23:17 +00:00
Migrated vault filters to new v3 vault's navigation * Decoupled existing vault filtering from vault component by using routed params with routed-vault-filter-bridge * Converted vault filters to standalone components * Removed extending filter Base Components from deprecated /libs/angular library and handled logic directly * Moved shared 'models' and 'services' directories from web-vault into /libs/vault
24 lines
867 B
TypeScript
24 lines
867 B
TypeScript
// FIXME: Update this file to be type safe and remove this and next line
|
|
// @ts-strict-ignore
|
|
import { CollectionResponse } from "@bitwarden/common/admin-console/models/collections";
|
|
|
|
import { BaseResponse } from "../../../models/response/base.response";
|
|
import { CipherResponse } from "../../../vault/models/response/cipher.response";
|
|
|
|
export class OrganizationExportResponse extends BaseResponse {
|
|
collections: CollectionResponse[];
|
|
ciphers: CipherResponse[];
|
|
|
|
constructor(response: any) {
|
|
super(response);
|
|
const collections = this.getResponseProperty("Collections");
|
|
if (collections != null) {
|
|
this.collections = collections.map((c: any) => new CollectionResponse(c));
|
|
}
|
|
const ciphers = this.getResponseProperty("Ciphers");
|
|
if (ciphers != null) {
|
|
this.ciphers = ciphers.map((c: any) => new CipherResponse(c));
|
|
}
|
|
}
|
|
}
|