mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
* Added properties "userCount", "seats" and "plan" to ProviderOrganizationResponse * Added text message "numberOfUsers" * Updated provider clients component with new columns * Removed never used dependency * Changed userCount to non nullable number * Added condition on the component to only show seats number if not null * Changed view condition to an explicit check
38 lines
1.2 KiB
TypeScript
38 lines
1.2 KiB
TypeScript
import { BaseResponse } from "../baseResponse";
|
|
|
|
export class ProviderOrganizationResponse extends BaseResponse {
|
|
id: string;
|
|
providerId: string;
|
|
organizationId: string;
|
|
key: string;
|
|
settings: string;
|
|
creationDate: string;
|
|
revisionDate: string;
|
|
userCount: number;
|
|
seats?: number;
|
|
plan?: string;
|
|
|
|
constructor(response: any) {
|
|
super(response);
|
|
this.id = this.getResponseProperty("Id");
|
|
this.providerId = this.getResponseProperty("ProviderId");
|
|
this.organizationId = this.getResponseProperty("OrganizationId");
|
|
this.key = this.getResponseProperty("Key");
|
|
this.settings = this.getResponseProperty("Settings");
|
|
this.creationDate = this.getResponseProperty("CreationDate");
|
|
this.revisionDate = this.getResponseProperty("RevisionDate");
|
|
this.userCount = this.getResponseProperty("UserCount");
|
|
this.seats = this.getResponseProperty("Seats");
|
|
this.plan = this.getResponseProperty("Plan");
|
|
}
|
|
}
|
|
|
|
export class ProviderOrganizationOrganizationDetailsResponse extends ProviderOrganizationResponse {
|
|
organizationName: string;
|
|
|
|
constructor(response: any) {
|
|
super(response);
|
|
this.organizationName = this.getResponseProperty("OrganizationName");
|
|
}
|
|
}
|