mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
* refactor: add barrel file for admin-console enums, update references, refs AC-1202 * fix: lint/prettier updates, refs AC-1202 * refactor: add enum suffix, refs AC-1202 * refactor: add barrel file for billing enums, update imports to use it, refs AC-1202 * fix: prettier, refs AC-1202 * refactor: add enum suffix for billing enums, refs AC-1202
20 lines
589 B
TypeScript
20 lines
589 B
TypeScript
import { BaseResponse } from "../../../models/response/base.response";
|
|
import { PolicyType } from "../../enums";
|
|
|
|
export class PolicyResponse extends BaseResponse {
|
|
id: string;
|
|
organizationId: string;
|
|
type: PolicyType;
|
|
data: any;
|
|
enabled: boolean;
|
|
|
|
constructor(response: any) {
|
|
super(response);
|
|
this.id = this.getResponseProperty("Id");
|
|
this.organizationId = this.getResponseProperty("OrganizationId");
|
|
this.type = this.getResponseProperty("Type");
|
|
this.data = this.getResponseProperty("Data");
|
|
this.enabled = this.getResponseProperty("Enabled");
|
|
}
|
|
}
|