mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-06 09:20:43 +01:00
get org license apis
This commit is contained in:
parent
9c0b4b8973
commit
4228277d23
@ -197,6 +197,7 @@ export abstract class ApiService {
|
||||
|
||||
getOrganization: (id: string) => Promise<OrganizationResponse>;
|
||||
getOrganizationBilling: (id: string) => Promise<OrganizationBillingResponse>;
|
||||
getOrganizationLicense: (id: string, installationId: string) => Promise<any>;
|
||||
postOrganization: (request: OrganizationCreateRequest) => Promise<OrganizationResponse>;
|
||||
putOrganization: (id: string, request: OrganizationUpdateRequest) => Promise<OrganizationResponse>;
|
||||
postLeaveOrganization: (id: string) => Promise<any>;
|
||||
|
@ -639,6 +639,11 @@ export class ApiService implements ApiServiceAbstraction {
|
||||
return new OrganizationBillingResponse(r);
|
||||
}
|
||||
|
||||
async getOrganizationLicense(id: string, installationId: string): Promise<any> {
|
||||
return this.send('GET', '/organizations/' + id + '/license?installationId=' + installationId,
|
||||
null, true, true);
|
||||
}
|
||||
|
||||
async postOrganization(request: OrganizationCreateRequest): Promise<OrganizationResponse> {
|
||||
const r = await this.send('POST', '/organizations', request, true, true);
|
||||
return new OrganizationResponse(r);
|
||||
|
Loading…
Reference in New Issue
Block a user