1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-07 09:31:31 +01:00

useApi added to models

This commit is contained in:
Kyle Spearrin 2019-03-02 00:04:33 -05:00
parent 48164a31d9
commit 5535eb1002
2 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,7 @@ export class OrganizationResponse extends BaseResponse {
useEvents: boolean;
useTotp: boolean;
use2fa: boolean;
useApi: boolean;
constructor(response: any) {
super(response);
@ -44,5 +45,6 @@ export class OrganizationResponse extends BaseResponse {
this.useEvents = this.getResponseProperty('UseEvents');
this.useTotp = this.getResponseProperty('UseTotp');
this.use2fa = this.getResponseProperty('Use2fa');
this.useApi = this.getResponseProperty('UseApi');
}
}

View File

@ -11,6 +11,7 @@ export class ProfileOrganizationResponse extends BaseResponse {
useEvents: boolean;
useTotp: boolean;
use2fa: boolean;
useApi: boolean;
selfHost: boolean;
usersGetPremium: boolean;
seats: number;
@ -30,6 +31,7 @@ export class ProfileOrganizationResponse extends BaseResponse {
this.useEvents = this.getResponseProperty('UseEvents');
this.useTotp = this.getResponseProperty('UseTotp');
this.use2fa = this.getResponseProperty('Use2fa');
this.useApi = this.getResponseProperty('UseApi');
this.selfHost = this.getResponseProperty('SelfHost');
this.usersGetPremium = this.getResponseProperty('UsersGetPremium');
this.seats = this.getResponseProperty('Seats');