mirror of
https://github.com/bitwarden/clients.git
synced 2025-12-10 00:08:42 -06:00
* [PM-27662] Add revision date to policy response * [PM-27662] Introduce vault item transfer service * [PM-27662] Add feature flag check * [PM-27662] Add tests * [PM-27662] Add basic implementation to Web vault * [PM-27662] Remove redundant for loop * [PM-27662] Remove unnecessary distinctUntilChanged * [PM-27662] Avoid subscribing to userMigrationInfo$ if feature flag disabled * [PM-27662] Make UserMigrationInfo type more strict * [PM-27662] Typo * [PM-27662] Fix missing i18n * [PM-27662] Fix tests * [PM-27662] Fix tests/types related to policy changes * [PM-27662] Use getById operator
25 lines
834 B
TypeScript
25 lines
834 B
TypeScript
import { BaseResponse } from "../../../models/response/base.response";
|
|
import { PolicyId } from "../../../types/guid";
|
|
import { PolicyType } from "../../enums";
|
|
|
|
export class PolicyResponse extends BaseResponse {
|
|
id: PolicyId;
|
|
organizationId: string;
|
|
type: PolicyType;
|
|
data: any;
|
|
enabled: boolean;
|
|
canToggleState: boolean;
|
|
revisionDate: string;
|
|
|
|
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");
|
|
this.canToggleState = this.getResponseProperty("CanToggleState") ?? true;
|
|
this.revisionDate = this.getResponseProperty("RevisionDate");
|
|
}
|
|
}
|