From db2e2f1977e3d7155dccb5bbfe6bb4d6cdca3c1b Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Thu, 29 Jul 2021 07:43:38 -0500 Subject: [PATCH] Correct ProviderOrgCreate return type (#442) --- common/src/abstractions/api.service.ts | 4 ++-- common/src/services/api.service.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/common/src/abstractions/api.service.ts b/common/src/abstractions/api.service.ts index f3b8174f9c..2c7e1e922c 100644 --- a/common/src/abstractions/api.service.ts +++ b/common/src/abstractions/api.service.ts @@ -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>; getProviderClients: (providerId: string) => Promise>; postProviderAddOrganization: (providerId: string, request: ProviderAddOrganizationRequest) => Promise; - postProviderCreateOrganization: (providerId: string, request: OrganizationCreateRequest) => Promise; + postProviderCreateOrganization: (providerId: string, request: OrganizationCreateRequest) => Promise; deleteProviderOrganization: (providerId: string, organizationId: string) => Promise; getEvents: (start: string, end: string, token: string) => Promise>; diff --git a/common/src/services/api.service.ts b/common/src/services/api.service.ts index df1dbec5c6..156baf2044 100644 --- a/common/src/services/api.service.ts +++ b/common/src/services/api.service.ts @@ -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 { + async postProviderCreateOrganization(providerId: string, request: OrganizationCreateRequest): Promise { 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 {