690322:2047 Fixing Deployment Blocking TypeScript Errors
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -506,7 +506,7 @@ export class CorrespondenceService {
|
||||
: undefined;
|
||||
|
||||
// 3. Update Correspondence Entity if needed
|
||||
const correspondenceUpdate: DeepPartial<Correspondence> = {};
|
||||
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<CorrespondenceRevision> = {};
|
||||
const revisionUpdate: any = {};
|
||||
if (updateDto.subject) revisionUpdate.subject = updateDto.subject;
|
||||
if (updateDto.body) revisionUpdate.body = updateDto.body;
|
||||
if (updateDto.remarks) revisionUpdate.remarks = updateDto.remarks;
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -490,7 +490,7 @@ export class DocumentNumberingService {
|
||||
}): Promise<DocumentNumberAudit> {
|
||||
const audit = this.auditRepo.create({
|
||||
documentNumber: data.documentNumber,
|
||||
counterKey: data.counterKey,
|
||||
counterKey: data.counterKey as Record<string, unknown>,
|
||||
templateUsed: data.templateUsed,
|
||||
isSuccess: data.isSuccess,
|
||||
operation: data.operation,
|
||||
|
||||
@@ -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<string, unknown>, // CounterKeyDto part of ManualOverrideDto
|
||||
templateUsed: 'MANUAL_OVERRIDE',
|
||||
userId: userId,
|
||||
isSuccess: true,
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { IsInt, IsString, IsNotEmpty, _IsOptional } from 'class-validator';
|
||||
import { IsInt, IsString, IsNotEmpty, IsOptional } from 'class-validator';
|
||||
|
||||
export class SaveNumberFormatDto {
|
||||
@IsInt()
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
Controller,
|
||||
Get,
|
||||
Post,
|
||||
_Put,
|
||||
Put,
|
||||
Body,
|
||||
Patch,
|
||||
Param,
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
IsOptional,
|
||||
IsEnum,
|
||||
IsNotEmpty,
|
||||
_IsUrl,
|
||||
IsUrl,
|
||||
} from 'class-validator';
|
||||
import { NotificationType } from '../entities/notification.entity';
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { IsInt, IsNotEmpty, IsOptional, _ValidateIf } from 'class-validator';
|
||||
import { IsInt, IsNotEmpty, IsOptional, ValidateIf } from 'class-validator';
|
||||
|
||||
export class AssignRoleDto {
|
||||
@IsInt()
|
||||
|
||||
Reference in New Issue
Block a user