From 07f02138a411f9b25ae84c2ba31cb566479c7fa9 Mon Sep 17 00:00:00 2001 From: virgilchiriac Date: Mon, 25 Sep 2023 09:41:14 +0200 Subject: [PATCH] BC-4375 - fix api generator --- .../controller/api-test/submission-item-lookup.api.spec.ts | 2 +- .../src/modules/board/controller/dto/submission-item/index.ts | 4 +++- .../controller/mapper/submission-item-response.mapper.ts | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/server/src/modules/board/controller/api-test/submission-item-lookup.api.spec.ts b/apps/server/src/modules/board/controller/api-test/submission-item-lookup.api.spec.ts index 4686f953d29..6f31d5a4e5a 100644 --- a/apps/server/src/modules/board/controller/api-test/submission-item-lookup.api.spec.ts +++ b/apps/server/src/modules/board/controller/api-test/submission-item-lookup.api.spec.ts @@ -15,7 +15,7 @@ import { userFactory, } from '@shared/testing'; import { ServerTestModule } from '@src/modules/server'; -import { SubmissionsResponse } from '../dto'; +import { SubmissionsResponse } from '../dto/submission-item/submissions.response'; const baseRouteName = '/board-submissions'; describe('submission item lookup (api)', () => { diff --git a/apps/server/src/modules/board/controller/dto/submission-item/index.ts b/apps/server/src/modules/board/controller/dto/submission-item/index.ts index 294c722dbef..b009f3e0560 100644 --- a/apps/server/src/modules/board/controller/dto/submission-item/index.ts +++ b/apps/server/src/modules/board/controller/dto/submission-item/index.ts @@ -2,5 +2,7 @@ export * from './submission-container.url.params'; export * from './create-submission-item.body.params'; export * from './submission-item.response'; export * from './submission-item.url.params'; -export * from './submissions.response'; +// TODO for some reason, api generator messes up the types +// import it directly, not via this index seems to fix it +// export * from './submissions.response'; export * from './update-submission-item.body.params'; diff --git a/apps/server/src/modules/board/controller/mapper/submission-item-response.mapper.ts b/apps/server/src/modules/board/controller/mapper/submission-item-response.mapper.ts index 53efb37a482..82d2292ba11 100644 --- a/apps/server/src/modules/board/controller/mapper/submission-item-response.mapper.ts +++ b/apps/server/src/modules/board/controller/mapper/submission-item-response.mapper.ts @@ -1,5 +1,6 @@ import { SubmissionItem, UserBoardRoles } from '@shared/domain'; -import { SubmissionItemResponse, SubmissionsResponse, TimestampsResponse, UserDataResponse } from '../dto'; +import { SubmissionsResponse } from '../dto/submission-item/submissions.response'; +import { SubmissionItemResponse, TimestampsResponse, UserDataResponse } from '../dto'; export class SubmissionItemResponseMapper { private static instance: SubmissionItemResponseMapper;