diff --git a/backend/src/common/auth/auth.service.ts b/backend/src/common/auth/auth.service.ts index 32ff684..a13dd5a 100644 --- a/backend/src/common/auth/auth.service.ts +++ b/backend/src/common/auth/auth.service.ts @@ -78,9 +78,8 @@ export class AuthService { derivedRole = 'DC'; } } - // eslint-disable-next-line @typescript-eslint/no-unused-vars const { password, ...result } = user; - return { ...result, role: derivedRole }; + return { ...result, role: derivedRole } as User & { role: string }; } return null; } diff --git a/backend/src/modules/contract/contract.controller.ts b/backend/src/modules/contract/contract.controller.ts index 4dddd5c..ea52a0e 100644 --- a/backend/src/modules/contract/contract.controller.ts +++ b/backend/src/modules/contract/contract.controller.ts @@ -13,7 +13,7 @@ import { ApiTags, ApiOperation, ApiBearerAuth, - _ApiQuery, + ApiQuery, } from '@nestjs/swagger'; import { ContractService } from './contract.service.js'; import { CreateContractDto } from './dto/create-contract.dto.js'; diff --git a/backend/src/modules/correspondence/correspondence.service.ts b/backend/src/modules/correspondence/correspondence.service.ts index 99a71f1..11f2109 100644 --- a/backend/src/modules/correspondence/correspondence.service.ts +++ b/backend/src/modules/correspondence/correspondence.service.ts @@ -506,7 +506,7 @@ export class CorrespondenceService { : undefined; // 3. Update Correspondence Entity if needed - const correspondenceUpdate: DeepPartial = {}; + const correspondenceUpdate: any = {}; if (updateDto.disciplineId) correspondenceUpdate.disciplineId = updateDto.disciplineId; if (updResolvedProjectId) @@ -519,7 +519,7 @@ export class CorrespondenceService { } // 4. Update Revision Entity - const revisionUpdate: DeepPartial = {}; + const revisionUpdate: any = {}; if (updateDto.subject) revisionUpdate.subject = updateDto.subject; if (updateDto.body) revisionUpdate.body = updateDto.body; if (updateDto.remarks) revisionUpdate.remarks = updateDto.remarks; diff --git a/backend/src/modules/correspondence/entities/correspondence-recipient.entity.ts b/backend/src/modules/correspondence/entities/correspondence-recipient.entity.ts index 626c3de..3f6f22f 100644 --- a/backend/src/modules/correspondence/entities/correspondence-recipient.entity.ts +++ b/backend/src/modules/correspondence/entities/correspondence-recipient.entity.ts @@ -1,4 +1,4 @@ -import { Entity, _Column, PrimaryColumn, ManyToOne, JoinColumn } from 'typeorm'; +import { Entity, Column, PrimaryColumn, ManyToOne, JoinColumn } from 'typeorm'; import { Correspondence } from './correspondence.entity'; import { Organization } from '../../organization/entities/organization.entity'; diff --git a/backend/src/modules/document-numbering/services/document-numbering.service.ts b/backend/src/modules/document-numbering/services/document-numbering.service.ts index 3e94466..8e352ce 100644 --- a/backend/src/modules/document-numbering/services/document-numbering.service.ts +++ b/backend/src/modules/document-numbering/services/document-numbering.service.ts @@ -490,7 +490,7 @@ export class DocumentNumberingService { }): Promise { const audit = this.auditRepo.create({ documentNumber: data.documentNumber, - counterKey: data.counterKey, + counterKey: data.counterKey as Record, templateUsed: data.templateUsed, isSuccess: data.isSuccess, operation: data.operation, diff --git a/backend/src/modules/document-numbering/services/manual-override.service.ts b/backend/src/modules/document-numbering/services/manual-override.service.ts index 4b2b40f..2ed7da4 100644 --- a/backend/src/modules/document-numbering/services/manual-override.service.ts +++ b/backend/src/modules/document-numbering/services/manual-override.service.ts @@ -26,7 +26,7 @@ export class ManualOverrideService { documentNumber: `OVERRIDE-TO-${dto.newLastNumber}`, operation: 'MANUAL_OVERRIDE', status: 'MANUAL', - counterKey: dto, // CounterKeyDto part of ManualOverrideDto + counterKey: dto as unknown as Record, // CounterKeyDto part of ManualOverrideDto templateUsed: 'MANUAL_OVERRIDE', userId: userId, isSuccess: true, diff --git a/backend/src/modules/document-numbering/services/metrics.service.ts b/backend/src/modules/document-numbering/services/metrics.service.ts index ca9e4e4..ab63795 100644 --- a/backend/src/modules/document-numbering/services/metrics.service.ts +++ b/backend/src/modules/document-numbering/services/metrics.service.ts @@ -1,4 +1,4 @@ -import { Injectable, _Logger } from '@nestjs/common'; +import { Injectable, Logger } from '@nestjs/common'; import { Counter, Gauge, Histogram } from 'prom-client'; import { InjectMetric } from '@willsoto/nestjs-prometheus'; diff --git a/backend/src/modules/document-numbering/services/template.service.ts b/backend/src/modules/document-numbering/services/template.service.ts index 31fabd1..7516989 100644 --- a/backend/src/modules/document-numbering/services/template.service.ts +++ b/backend/src/modules/document-numbering/services/template.service.ts @@ -1,4 +1,4 @@ -import { Injectable, Logger, _NotFoundException } from '@nestjs/common'; +import { Injectable, Logger, NotFoundException } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository } from 'typeorm'; import { DocumentNumberFormat } from '../entities/document-number-format.entity'; diff --git a/backend/src/modules/master/dto/create-tag.dto.ts b/backend/src/modules/master/dto/create-tag.dto.ts index f1914ec..70f461b 100644 --- a/backend/src/modules/master/dto/create-tag.dto.ts +++ b/backend/src/modules/master/dto/create-tag.dto.ts @@ -1,4 +1,4 @@ -import { IsString, IsNotEmpty, IsOptional, _IsInt } from 'class-validator'; +import { IsString, IsNotEmpty, IsOptional, IsInt } from 'class-validator'; import { ApiProperty } from '@nestjs/swagger'; export class CreateTagDto { diff --git a/backend/src/modules/master/dto/save-number-format.dto.ts b/backend/src/modules/master/dto/save-number-format.dto.ts index 59cb52d..6322184 100644 --- a/backend/src/modules/master/dto/save-number-format.dto.ts +++ b/backend/src/modules/master/dto/save-number-format.dto.ts @@ -1,4 +1,4 @@ -import { IsInt, IsString, IsNotEmpty, _IsOptional } from 'class-validator'; +import { IsInt, IsString, IsNotEmpty, IsOptional } from 'class-validator'; export class SaveNumberFormatDto { @IsInt() diff --git a/backend/src/modules/master/master.controller.ts b/backend/src/modules/master/master.controller.ts index d439e92..05092e8 100644 --- a/backend/src/modules/master/master.controller.ts +++ b/backend/src/modules/master/master.controller.ts @@ -4,7 +4,7 @@ import { Controller, Get, Post, - _Put, + Put, Body, Patch, Param, diff --git a/backend/src/modules/notification/dto/create-notification.dto.ts b/backend/src/modules/notification/dto/create-notification.dto.ts index c7bba67..f941d2e 100644 --- a/backend/src/modules/notification/dto/create-notification.dto.ts +++ b/backend/src/modules/notification/dto/create-notification.dto.ts @@ -4,7 +4,7 @@ import { IsOptional, IsEnum, IsNotEmpty, - _IsUrl, + IsUrl, } from 'class-validator'; import { NotificationType } from '../entities/notification.entity'; diff --git a/backend/src/modules/notification/notification-cleanup.service.ts b/backend/src/modules/notification/notification-cleanup.service.ts index 243dd9e..616d22a 100644 --- a/backend/src/modules/notification/notification-cleanup.service.ts +++ b/backend/src/modules/notification/notification-cleanup.service.ts @@ -1,7 +1,7 @@ import { Injectable, Logger } from '@nestjs/common'; import { Cron, CronExpression } from '@nestjs/schedule'; import { InjectRepository } from '@nestjs/typeorm'; -import { Repository, _LessThan } from 'typeorm'; +import { Repository, LessThan } from 'typeorm'; import { Notification } from './entities/notification.entity'; @Injectable() diff --git a/backend/src/modules/notification/notification.service.ts b/backend/src/modules/notification/notification.service.ts index 9b7ba8c..7aefdc4 100644 --- a/backend/src/modules/notification/notification.service.ts +++ b/backend/src/modules/notification/notification.service.ts @@ -9,7 +9,7 @@ import { Repository } from 'typeorm'; // Entities import { Notification, NotificationType } from './entities/notification.entity'; import { User } from '../user/entities/user.entity'; -import { _UserPreference } from '../user/entities/user-preference.entity'; +import { UserPreference } from '../user/entities/user-preference.entity'; // Gateway import { NotificationGateway } from './notification.gateway'; diff --git a/backend/src/modules/project/project.service.ts b/backend/src/modules/project/project.service.ts index ef229ea..4decc8f 100644 --- a/backend/src/modules/project/project.service.ts +++ b/backend/src/modules/project/project.service.ts @@ -5,7 +5,7 @@ import { Logger, } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; -import { Repository, _Like } from 'typeorm'; +import { Repository, Like } from 'typeorm'; // Entities import { Project } from './entities/project.entity'; diff --git a/backend/src/modules/user/dto/assign-role.dto.ts b/backend/src/modules/user/dto/assign-role.dto.ts index f2e0886..7d3414b 100644 --- a/backend/src/modules/user/dto/assign-role.dto.ts +++ b/backend/src/modules/user/dto/assign-role.dto.ts @@ -1,4 +1,4 @@ -import { IsInt, IsNotEmpty, IsOptional, _ValidateIf } from 'class-validator'; +import { IsInt, IsNotEmpty, IsOptional, ValidateIf } from 'class-validator'; export class AssignRoleDto { @IsInt()