mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-06 09:20:43 +01:00
Correct ProviderOrgCreate return type (#442)
This commit is contained in:
parent
23309d33e2
commit
db2e2f1977
@ -127,7 +127,7 @@ import { PlanResponse } from '../models/response/planResponse';
|
||||
import { PolicyResponse } from '../models/response/policyResponse';
|
||||
import { PreloginResponse } from '../models/response/preloginResponse';
|
||||
import { ProfileResponse } from '../models/response/profileResponse';
|
||||
import { ProviderOrganizationOrganizationDetailsResponse } from '../models/response/provider/providerOrganizationResponse';
|
||||
import { ProviderOrganizationOrganizationDetailsResponse, ProviderOrganizationResponse } from '../models/response/provider/providerOrganizationResponse';
|
||||
import { ProviderResponse } from '../models/response/provider/providerResponse';
|
||||
import { ProviderUserBulkPublicKeyResponse } from '../models/response/provider/providerUserBulkPublicKeyResponse';
|
||||
import { ProviderUserBulkResponse } from '../models/response/provider/providerUserBulkResponse';
|
||||
@ -407,7 +407,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<OrganizationResponse>;
|
||||
postProviderCreateOrganization: (providerId: string, request: OrganizationCreateRequest) => Promise<ProviderOrganizationResponse>;
|
||||
deleteProviderOrganization: (providerId: string, organizationId: string) => Promise<any>;
|
||||
|
||||
getEvents: (start: string, end: string, token: string) => Promise<ListResponse<EventResponse>>;
|
||||
|
@ -131,7 +131,7 @@ import { PlanResponse } from '../models/response/planResponse';
|
||||
import { PolicyResponse } from '../models/response/policyResponse';
|
||||
import { PreloginResponse } from '../models/response/preloginResponse';
|
||||
import { ProfileResponse } from '../models/response/profileResponse';
|
||||
import { ProviderOrganizationOrganizationDetailsResponse } from '../models/response/provider/providerOrganizationResponse';
|
||||
import { ProviderOrganizationOrganizationDetailsResponse, ProviderOrganizationResponse } from '../models/response/provider/providerOrganizationResponse';
|
||||
import { ProviderResponse } from '../models/response/provider/providerResponse';
|
||||
import { ProviderUserBulkPublicKeyResponse } from '../models/response/provider/providerUserBulkPublicKeyResponse';
|
||||
import { ProviderUserBulkResponse } from '../models/response/provider/providerUserBulkResponse';
|
||||
@ -1305,9 +1305,9 @@ export class ApiService implements ApiServiceAbstraction {
|
||||
return this.send('POST', '/providers/' + providerId + '/organizations/add', request, true, false);
|
||||
}
|
||||
|
||||
async postProviderCreateOrganization(providerId: string, request: OrganizationCreateRequest): Promise<OrganizationResponse> {
|
||||
async postProviderCreateOrganization(providerId: string, request: OrganizationCreateRequest): Promise<ProviderOrganizationResponse> {
|
||||
const r = await this.send('POST', '/providers/' + providerId + '/organizations', request, true, true);
|
||||
return new OrganizationResponse(r);
|
||||
return new ProviderOrganizationResponse(r);
|
||||
}
|
||||
|
||||
deleteProviderOrganization(providerId: string, id: string): Promise<any> {
|
||||
|
Loading…
Reference in New Issue
Block a user