mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 01:33:33 +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
32 lines
1008 B
TypeScript
32 lines
1008 B
TypeScript
import { BaseResponse } from "../../../../models/response/base.response";
|
|
import { ProviderUserStatusType, ProviderUserType } from "../../../enums";
|
|
import { PermissionsApi } from "../../api/permissions.api";
|
|
|
|
export class ProviderUserResponse extends BaseResponse {
|
|
id: string;
|
|
userId: string;
|
|
type: ProviderUserType;
|
|
status: ProviderUserStatusType;
|
|
permissions: PermissionsApi;
|
|
|
|
constructor(response: any) {
|
|
super(response);
|
|
this.id = this.getResponseProperty("Id");
|
|
this.userId = this.getResponseProperty("UserId");
|
|
this.type = this.getResponseProperty("Type");
|
|
this.status = this.getResponseProperty("Status");
|
|
this.permissions = new PermissionsApi(this.getResponseProperty("Permissions"));
|
|
}
|
|
}
|
|
|
|
export class ProviderUserUserDetailsResponse extends ProviderUserResponse {
|
|
name: string;
|
|
email: string;
|
|
|
|
constructor(response: any) {
|
|
super(response);
|
|
this.name = this.getResponseProperty("Name");
|
|
this.email = this.getResponseProperty("Email");
|
|
}
|
|
}
|