mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 05:43:41 +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
26 lines
671 B
TypeScript
26 lines
671 B
TypeScript
import {
|
|
OrganizationUserStatusType,
|
|
OrganizationUserType,
|
|
} from "@bitwarden/common/admin-console/enums";
|
|
import { Organization } from "@bitwarden/common/admin-console/models/domain/organization";
|
|
|
|
import { BaseResponse } from "../../../models/response/base.response";
|
|
|
|
export class OrganizationResponse implements BaseResponse {
|
|
object: string;
|
|
id: string;
|
|
name: string;
|
|
status: OrganizationUserStatusType;
|
|
type: OrganizationUserType;
|
|
enabled: boolean;
|
|
|
|
constructor(o: Organization) {
|
|
this.object = "organization";
|
|
this.id = o.id;
|
|
this.name = o.name;
|
|
this.status = o.status;
|
|
this.type = o.type;
|
|
this.enabled = o.enabled;
|
|
}
|
|
}
|