mirror of
https://github.com/bitwarden/jslib
synced 2025-12-25 20:53:28 +00:00
Organization autoscaling (#487)
* Seat autoscaling api changes * Update all organization subscription aspects with one api call * Remove disable autoscale option * Remove autoscale request references * Remove autoscale update
This commit is contained in:
@@ -13,6 +13,7 @@ export class OrganizationCreateRequest {
|
||||
paymentMethodType: PaymentMethodType;
|
||||
paymentToken: string;
|
||||
additionalSeats: number;
|
||||
maxAutoscaleSeats: number;
|
||||
additionalStorageGb: number;
|
||||
premiumAccessAddon: boolean;
|
||||
collectionName: string;
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
export class OrganizationSubscriptionUpdateRequest {
|
||||
constructor(public seatAdjustment: number, public maxAutoscaleSeats?: number) { }
|
||||
}
|
||||
@@ -17,6 +17,7 @@ export class OrganizationResponse extends BaseResponse {
|
||||
plan: PlanResponse;
|
||||
planType: PlanType;
|
||||
seats: number;
|
||||
maxAutoscaleSeats: number;
|
||||
maxCollections: number;
|
||||
maxStorageGb: number;
|
||||
useGroups: boolean;
|
||||
@@ -44,6 +45,7 @@ export class OrganizationResponse extends BaseResponse {
|
||||
this.plan = plan == null ? null : new PlanResponse(plan);
|
||||
this.planType = this.getResponseProperty('PlanType');
|
||||
this.seats = this.getResponseProperty('Seats');
|
||||
this.maxAutoscaleSeats = this.getResponseProperty('MaxAutoscaleSeats');
|
||||
this.maxCollections = this.getResponseProperty('MaxCollections');
|
||||
this.maxStorageGb = this.getResponseProperty('MaxStorageGb');
|
||||
this.useGroups = this.getResponseProperty('UseGroups');
|
||||
|
||||
Reference in New Issue
Block a user