mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-06 09:20:43 +01:00
Provide owner with Provider client org create requst (#444)
This commit is contained in:
parent
80cb4e702f
commit
fdf0eb989b
@ -52,6 +52,7 @@ import { PaymentRequest } from '../models/request/paymentRequest';
|
||||
import { PolicyRequest } from '../models/request/policyRequest';
|
||||
import { PreloginRequest } from '../models/request/preloginRequest';
|
||||
import { ProviderAddOrganizationRequest } from '../models/request/provider/providerAddOrganizationRequest';
|
||||
import { ProviderOrganizationCreateRequest } from '../models/request/provider/providerOrganizationCreateRequest';
|
||||
import { ProviderSetupRequest } from '../models/request/provider/providerSetupRequest';
|
||||
import { ProviderUpdateRequest } from '../models/request/provider/providerUpdateRequest';
|
||||
import { ProviderUserAcceptRequest } from '../models/request/provider/providerUserAcceptRequest';
|
||||
@ -407,7 +408,7 @@ export abstract class ApiService {
|
||||
deleteManyProviderUsers: (providerId: string, request: ProviderUserBulkRequest) => Promise<ListResponse<ProviderUserBulkResponse>>;
|
||||
getProviderClients: (providerId: string) => Promise<ListResponse<ProviderOrganizationOrganizationDetailsResponse>>;
|
||||
postProviderAddOrganization: (providerId: string, request: ProviderAddOrganizationRequest) => Promise<any>;
|
||||
postProviderCreateOrganization: (providerId: string, request: OrganizationCreateRequest) => Promise<ProviderOrganizationResponse>;
|
||||
postProviderCreateOrganization: (providerId: string, request: ProviderOrganizationCreateRequest) => Promise<ProviderOrganizationResponse>;
|
||||
deleteProviderOrganization: (providerId: string, organizationId: string) => Promise<any>;
|
||||
|
||||
getEvents: (start: string, end: string, token: string) => Promise<ListResponse<EventResponse>>;
|
||||
|
@ -0,0 +1,5 @@
|
||||
import { OrganizationCreateRequest } from '../organizationCreateRequest';
|
||||
|
||||
export class ProviderOrganizationCreateRequest {
|
||||
constructor(public clientOwnerEmail: string, public organizationCreateRequest: OrganizationCreateRequest) { }
|
||||
}
|
@ -54,6 +54,7 @@ import { PaymentRequest } from '../models/request/paymentRequest';
|
||||
import { PolicyRequest } from '../models/request/policyRequest';
|
||||
import { PreloginRequest } from '../models/request/preloginRequest';
|
||||
import { ProviderAddOrganizationRequest } from '../models/request/provider/providerAddOrganizationRequest';
|
||||
import { ProviderOrganizationCreateRequest } from '../models/request/provider/providerOrganizationCreateRequest';
|
||||
import { ProviderSetupRequest } from '../models/request/provider/providerSetupRequest';
|
||||
import { ProviderUpdateRequest } from '../models/request/provider/providerUpdateRequest';
|
||||
import { ProviderUserAcceptRequest } from '../models/request/provider/providerUserAcceptRequest';
|
||||
@ -1305,7 +1306,7 @@ export class ApiService implements ApiServiceAbstraction {
|
||||
return this.send('POST', '/providers/' + providerId + '/organizations/add', request, true, false);
|
||||
}
|
||||
|
||||
async postProviderCreateOrganization(providerId: string, request: OrganizationCreateRequest): Promise<ProviderOrganizationResponse> {
|
||||
async postProviderCreateOrganization(providerId: string, request: ProviderOrganizationCreateRequest): Promise<ProviderOrganizationResponse> {
|
||||
const r = await this.send('POST', '/providers/' + providerId + '/organizations', request, true, true);
|
||||
return new ProviderOrganizationResponse(r);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user