diff --git a/src/models/data/organizationData.ts b/src/models/data/organizationData.ts index 1af5223391..0f5bc0da95 100644 --- a/src/models/data/organizationData.ts +++ b/src/models/data/organizationData.ts @@ -9,6 +9,15 @@ export class OrganizationData { status: OrganizationUserStatusType; type: OrganizationUserType; enabled: boolean; + useGroups: boolean; + useDirectory: boolean; + useEvents: boolean; + useTotp: boolean; + use2fa: boolean; + selfHost: boolean; + usersGetPremium: boolean; + seats: number; + maxCollections: number; constructor(response: ProfileOrganizationResponse) { this.id = response.id; @@ -16,5 +25,14 @@ export class OrganizationData { this.status = response.status; this.type = response.type; this.enabled = response.enabled; + this.useGroups = response.useGroups; + this.useDirectory = response.useDirectory; + this.useEvents = response.useEvents; + this.useTotp = response.useTotp; + this.use2fa = response.use2fa; + this.selfHost = response.selfHost; + this.usersGetPremium = response.usersGetPremium; + this.seats = response.seats; + this.maxCollections = response.maxCollections; } } diff --git a/src/models/domain/organization.ts b/src/models/domain/organization.ts index ce243e838a..bd38d15883 100644 --- a/src/models/domain/organization.ts +++ b/src/models/domain/organization.ts @@ -9,6 +9,15 @@ export class Organization { status: OrganizationUserStatusType; type: OrganizationUserType; enabled: boolean; + useGroups: boolean; + useDirectory: boolean; + useEvents: boolean; + useTotp: boolean; + use2fa: boolean; + selfHost: boolean; + usersGetPremium: boolean; + seats: number; + maxCollections: number; constructor(obj?: OrganizationData) { if (obj == null) { @@ -20,6 +29,15 @@ export class Organization { this.status = obj.status; this.type = obj.type; this.enabled = obj.enabled; + this.useGroups = obj.useGroups; + this.useDirectory = obj.useDirectory; + this.useEvents = obj.useEvents; + this.useTotp = obj.useTotp; + this.use2fa = obj.use2fa; + this.selfHost = obj.selfHost; + this.usersGetPremium = obj.usersGetPremium; + this.seats = obj.seats; + this.maxCollections = obj.maxCollections; } get canAccess() { diff --git a/src/models/response/profileOrganizationResponse.ts b/src/models/response/profileOrganizationResponse.ts index 7ea65f87e9..72bbc48387 100644 --- a/src/models/response/profileOrganizationResponse.ts +++ b/src/models/response/profileOrganizationResponse.ts @@ -9,6 +9,8 @@ export class ProfileOrganizationResponse { useEvents: boolean; useTotp: boolean; use2fa: boolean; + selfHost: boolean; + usersGetPremium: boolean; seats: number; maxCollections: number; maxStorageGb?: number; @@ -25,6 +27,8 @@ export class ProfileOrganizationResponse { this.useEvents = response.UseEvents; this.useTotp = response.UseTotp; this.use2fa = response.Use2fa; + this.selfHost = response.SelfHost; + this.usersGetPremium = response.UsersGetPremium; this.seats = response.Seats; this.maxCollections = response.MaxCollections; this.maxStorageGb = response.MaxStorageGb;