mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 09:43:23 +00:00
* feat(pm-15015) : - Adding `requestCountryName` to auth requests dialogs, and response models. - Updated i18n messages.json in Web, Browser, and Desktop to include "Location" translation.
29 lines
1.1 KiB
TypeScript
29 lines
1.1 KiB
TypeScript
import { BaseResponse } from "@bitwarden/common/models/response/base.response";
|
|
|
|
export class PendingOrganizationAuthRequestResponse extends BaseResponse {
|
|
id: string;
|
|
userId: string;
|
|
organizationUserId: string;
|
|
email: string;
|
|
publicKey: string;
|
|
requestDeviceIdentifier: string;
|
|
requestDeviceType: string;
|
|
requestIpAddress: string;
|
|
requestCountryName: string;
|
|
creationDate: string;
|
|
|
|
constructor(response: any) {
|
|
super(response);
|
|
this.id = this.getResponseProperty("Id");
|
|
this.userId = this.getResponseProperty("UserId");
|
|
this.organizationUserId = this.getResponseProperty("OrganizationUserId");
|
|
this.email = this.getResponseProperty("Email");
|
|
this.publicKey = this.getResponseProperty("PublicKey");
|
|
this.requestDeviceIdentifier = this.getResponseProperty("RequestDeviceIdentifier");
|
|
this.requestDeviceType = this.getResponseProperty("RequestDeviceType");
|
|
this.requestIpAddress = this.getResponseProperty("RequestIpAddress");
|
|
this.requestCountryName = this.getResponseProperty("RequestCountryName");
|
|
this.creationDate = this.getResponseProperty("CreationDate");
|
|
}
|
|
}
|