mirror of
https://github.com/bitwarden/browser
synced 2026-02-26 17:43:22 +00:00
27 lines
924 B
TypeScript
27 lines
924 B
TypeScript
import { PendingAuthRequestView } from "@bitwarden/bit-common/admin-console/auth-requests/";
|
|
import { BaseResponse } from "@bitwarden/cli/models/response/base.response";
|
|
|
|
export class PendingAuthRequestResponse implements BaseResponse {
|
|
object = "auth-request";
|
|
|
|
id: string;
|
|
userId: string;
|
|
organizationUserId: string;
|
|
email: string;
|
|
requestDeviceIdentifier: string;
|
|
requestDeviceType: string;
|
|
requestIpAddress: string;
|
|
creationDate: Date;
|
|
|
|
constructor(authRequest: PendingAuthRequestView) {
|
|
this.id = authRequest.id;
|
|
this.userId = authRequest.userId;
|
|
this.organizationUserId = authRequest.organizationUserId;
|
|
this.email = authRequest.email;
|
|
this.requestDeviceIdentifier = authRequest.requestDeviceIdentifier;
|
|
this.requestDeviceType = authRequest.requestDeviceType;
|
|
this.requestIpAddress = authRequest.requestIpAddress;
|
|
this.creationDate = authRequest.creationDate;
|
|
}
|
|
}
|