mirror of
https://github.com/bitwarden/directory-connector
synced 2025-12-14 07:13:25 +00:00
Copy jslib into Directory Connector [TI-6] (#262)
This commit is contained in:
18
jslib/common/src/models/data/policyData.ts
Normal file
18
jslib/common/src/models/data/policyData.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { PolicyType } from "../../enums/policyType";
|
||||
import { PolicyResponse } from "../response/policyResponse";
|
||||
|
||||
export class PolicyData {
|
||||
id: string;
|
||||
organizationId: string;
|
||||
type: PolicyType;
|
||||
data: any;
|
||||
enabled: boolean;
|
||||
|
||||
constructor(response: PolicyResponse) {
|
||||
this.id = response.id;
|
||||
this.organizationId = response.organizationId;
|
||||
this.type = response.type;
|
||||
this.data = response.data;
|
||||
this.enabled = response.enabled;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user