
#17 [build  8/10] RUN cd backend &&     NODE_OPTIONS="--max-old-space-size=4096"     pnpm run build
#20 11.53 ▲ Next.js 16.2.6 (Turbopack)
#20 11.53
#20 11.64   Creating an optimized production build ...
#17 2.418 ! Corepack is about to download https://registry.npmjs.org/pnpm/-/pnpm-10.33.0.tgz
#17 9.085
#17 9.085 > backend@1.8.1 build /app/backend
#17 9.085 > nest build
#17 9.085
#20 43.38 ✓ Compiled successfully in 31.1s
#20 43.39   Running TypeScript ...
#17 44.89 src/modules/ai/intent-classifier/services/intent-analytics.service.ts:114:41 - error TS2345: Argument of type '{ method: string; intentCode: string; id: number; documentPublicId?: string | undefined; aiModel: string; modelName?: string | undefined; aiSuggestionJson?: Record<string, unknown> | undefined; ... 9 more ...; publicId: string; }[]' is not assignable to parameter of type '(AiAuditLog & { method: string; })[]'.
#17 44.89   Type '{ method: string; intentCode: string; id: number; documentPublicId?: string; aiModel: string; modelName?: string; aiSuggestionJson?: Record<string, unknown>; humanOverrideJson?: Record<string, unknown>; ... 8 more ...; publicId: string; }' is not assignable to type 'AiAuditLog & { method: string; }'.
#17 44.89     Property 'generatePublicId' is missing in type '{ method: string; intentCode: string; id: number; documentPublicId?: string; aiModel: string; modelName?: string; aiSuggestionJson?: Record<string, unknown>; humanOverrideJson?: Record<string, unknown>; ... 8 more ...; publicId: string; }' but required in type 'AiAuditLog'.
#17 44.89
#17 44.89 114     const byMethod = this.groupByMethod(withMethod);
#17 44.89                                             ~~~~~~~~~~
#17 44.89
#17 44.89   src/common/entities/uuid-base.entity.ts:25:3
#17 44.89     25   generatePublicId(): void {
#17 44.89          ~~~~~~~~~~~~~~~~
#17 44.89     'generatePublicId' is declared here.
#17 44.89 src/modules/ai/intent-classifier/services/intent-analytics.service.ts:115:41 - error TS2345: Argument of type '{ method: string; intentCode: string; id: number; documentPublicId?: string | undefined; aiModel: string; modelName?: string | undefined; aiSuggestionJson?: Record<string, unknown> | undefined; ... 9 more ...; publicId: string; }[]' is not assignable to parameter of type '(AiAuditLog & { method: string; intentCode: string; })[]'.
#17 44.89   Type '{ method: string; intentCode: string; id: number; documentPublicId?: string; aiModel: string; modelName?: string; aiSuggestionJson?: Record<string, unknown>; humanOverrideJson?: Record<string, unknown>; ... 8 more ...; publicId: string; }' is not assignable to type 'AiAuditLog & { method: string; intentCode: string; }'.
#17 44.89     Property 'generatePublicId' is missing in type '{ method: string; intentCode: string; id: number; documentPublicId?: string; aiModel: string; modelName?: string; aiSuggestionJson?: Record<string, unknown>; humanOverrideJson?: Record<string, unknown>; ... 8 more ...; publicId: string; }' but required in type 'AiAuditLog'.
#17 44.89
#17 44.89 115     const byIntent = this.groupByIntent(withMethod);
#17 44.89                                             ~~~~~~~~~~
#17 44.89
#17 44.89   src/common/entities/uuid-base.entity.ts:25:3
#17 44.89     25   generatePublicId(): void {
#17 44.89          ~~~~~~~~~~~~~~~~
#17 44.89     'generatePublicId' is declared here.
#17 44.89 src/modules/ai/intent-classifier/services/intent-analytics.service.ts:116:51 - error TS2345: Argument of type '{ method: string; intentCode: string; id: number; documentPublicId?: string | undefined; aiModel: string; modelName?: string | undefined; aiSuggestionJson?: Record<string, unknown> | undefined; ... 9 more ...; publicId: string; }[]' is not assignable to parameter of type '(AiAuditLog & { method: string; intentCode: string; })[]'.
#17 44.89   Type '{ method: string; intentCode: string; id: number; documentPublicId?: string; aiModel: string; modelName?: string; aiSuggestionJson?: Record<string, unknown>; humanOverrideJson?: Record<string, unknown>; ... 8 more ...; publicId: string; }' is not assignable to type 'AiAuditLog & { method: string; intentCode: string; }'.
#17 44.89     Property 'generatePublicId' is missing in type '{ method: string; intentCode: string; id: number; documentPublicId?: string; aiModel: string; modelName?: string; aiSuggestionJson?: Record<string, unknown>; humanOverrideJson?: Record<string, unknown>; ... 8 more ...; publicId: string; }' but required in type 'AiAuditLog'.
#17 44.89
#17 44.89 116     const recalibration = this.buildRecalibration(withMethod);
#17 44.89                                                       ~~~~~~~~~~
#17 44.89
#17 44.89   src/common/entities/uuid-base.entity.ts:25:3
#17 44.89     25   generatePublicId(): void {
#17 44.89          ~~~~~~~~~~~~~~~~
#17 44.89     'generatePublicId' is declared here.
#17 44.89 src/modules/ai/tool/drawing-tool.service.ts:60:60 - error TS2345: Argument of type '{ projectId: number; page: number; limit: number; }' is not assignable to parameter of type 'SearchShopDrawingDto'.
#17 44.89   Property 'projectUuid' is missing in type '{ projectId: number; page: number; limit: number; }' but required in type 'SearchShopDrawingDto'.
#17 44.89
#17 44.89  60       const result = await this.shopDrawingService.findAll({
#17 44.89                                                                ~
#17 44.89  61         projectId: internalProjectId,
#17 44.89     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#17 44.89 ...
#17 44.89  63         limit: 20,
#17 44.89     ~~~~~~~~~~~~~~~~~~
#17 44.89  64       });
#17 44.89     ~~~~~~~
#17 44.89
#17 44.89   src/modules/drawing/dto/search-shop-drawing.dto.ts:6:3
#17 44.89     6   projectUuid!: string;
#17 44.89         ~~~~~~~~~~~
#17 44.89     'projectUuid' is declared here.
#17 44.89 src/modules/ai/tool/rfa-tool.service.ts:74:39 - error TS2339: Property 'respondedAt' does not exist on type 'RfaRevision'.
#17 44.89
#17 44.89 74             respondedAt: rfaRevision?.respondedAt
#17 44.89                                          ~~~~~~~~~~~
#17 44.89 src/modules/ai/tool/rfa-tool.service.ts:76:31 - error TS2339: Property 'respondedAt' does not exist on type 'RfaRevision'.
#17 44.89
#17 44.89 76                   rfaRevision.respondedAt as string | number | Date
#17 44.89                                  ~~~~~~~~~~~
#17 44.89
#17 44.89 Found 6 error(s).
#17 44.89
#17 45.01  ELIFECYCLE  Command failed with exit code 1.
#17 ERROR: process "/bin/sh -c cd backend &&     NODE_OPTIONS=\"--max-old-space-size=4096\"     pnpm run build" did not complete successfully: exit code: 1
------
 > [build  8/10] RUN cd backend &&     NODE_OPTIONS="--max-old-space-size=4096"     pnpm run build:
44.89 74             respondedAt: rfaRevision?.respondedAt
44.89                                          ~~~~~~~~~~~
44.89 src/modules/ai/tool/rfa-tool.service.ts:76:31 - error TS2339: Property 'respondedAt' does not exist on type 'RfaRevision'.
44.89
44.89 76                   rfaRevision.respondedAt as string | number | Date
44.89                                  ~~~~~~~~~~~
44.89
44.89 Found 6 error(s).
44.89
45.01  ELIFECYCLE  Command failed with exit code 1.
