mirror of
https://github.com/bitwarden/browser
synced 2025-01-29 04:29:32 +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>;
|
getOrganization: (id: string) => Promise<OrganizationResponse>;
|
||||||
getOrganizationBilling: (id: string) => Promise<OrganizationBillingResponse>;
|
getOrganizationBilling: (id: string) => Promise<OrganizationBillingResponse>;
|
||||||
|
getOrganizationLicense: (id: string, installationId: string) => Promise<any>;
|
||||||
postOrganization: (request: OrganizationCreateRequest) => Promise<OrganizationResponse>;
|
postOrganization: (request: OrganizationCreateRequest) => Promise<OrganizationResponse>;
|
||||||
putOrganization: (id: string, request: OrganizationUpdateRequest) => Promise<OrganizationResponse>;
|
putOrganization: (id: string, request: OrganizationUpdateRequest) => Promise<OrganizationResponse>;
|
||||||
postLeaveOrganization: (id: string) => Promise<any>;
|
postLeaveOrganization: (id: string) => Promise<any>;
|
||||||
|
@ -639,6 +639,11 @@ export class ApiService implements ApiServiceAbstraction {
|
|||||||
return new OrganizationBillingResponse(r);
|
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> {
|
async postOrganization(request: OrganizationCreateRequest): Promise<OrganizationResponse> {
|
||||||
const r = await this.send('POST', '/organizations', request, true, true);
|
const r = await this.send('POST', '/organizations', request, true, true);
|
||||||
return new OrganizationResponse(r);
|
return new OrganizationResponse(r);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user