1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00:00

Merge plan and price updates (#145)

* Created a PlanResponse model & relevant API request for getting plan data from the server
This commit is contained in:
Addison Beck
2020-08-11 14:20:39 -04:00
committed by GitHub
parent 420393700b
commit b32b016f82
6 changed files with 121 additions and 6 deletions

View File

@@ -92,6 +92,7 @@ import {
OrganizationUserUserDetailsResponse,
} from '../models/response/organizationUserResponse';
import { PaymentResponse } from '../models/response/paymentResponse';
import { PlanResponse } from '../models/response/planResponse';
import { PolicyResponse } from '../models/response/policyResponse';
import { PreloginResponse } from '../models/response/preloginResponse';
import { ProfileResponse } from '../models/response/profileResponse';
@@ -685,6 +686,13 @@ export class ApiService implements ApiServiceAbstraction {
return this.send('DELETE', '/organizations/' + organizationId + '/users/' + id, null, true, false);
}
// Plan APIs
async getPlans(): Promise<ListResponse<PlanResponse>> {
const r = await this.send('GET', '/plans/', null, true, true);
return new ListResponse(r, PlanResponse);
}
// Sync APIs
async getSync(): Promise<SyncResponse> {