690322:2047 Fixing Deployment Blocking TypeScript Errors
This commit is contained in:
@@ -78,9 +78,8 @@ export class AuthService {
|
|||||||
derivedRole = 'DC';
|
derivedRole = 'DC';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
||||||
const { password, ...result } = user;
|
const { password, ...result } = user;
|
||||||
return { ...result, role: derivedRole };
|
return { ...result, role: derivedRole } as User & { role: string };
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import {
|
|||||||
ApiTags,
|
ApiTags,
|
||||||
ApiOperation,
|
ApiOperation,
|
||||||
ApiBearerAuth,
|
ApiBearerAuth,
|
||||||
_ApiQuery,
|
ApiQuery,
|
||||||
} from '@nestjs/swagger';
|
} from '@nestjs/swagger';
|
||||||
import { ContractService } from './contract.service.js';
|
import { ContractService } from './contract.service.js';
|
||||||
import { CreateContractDto } from './dto/create-contract.dto.js';
|
import { CreateContractDto } from './dto/create-contract.dto.js';
|
||||||
|
|||||||
@@ -506,7 +506,7 @@ export class CorrespondenceService {
|
|||||||
: undefined;
|
: undefined;
|
||||||
|
|
||||||
// 3. Update Correspondence Entity if needed
|
// 3. Update Correspondence Entity if needed
|
||||||
const correspondenceUpdate: DeepPartial<Correspondence> = {};
|
const correspondenceUpdate: any = {};
|
||||||
if (updateDto.disciplineId)
|
if (updateDto.disciplineId)
|
||||||
correspondenceUpdate.disciplineId = updateDto.disciplineId;
|
correspondenceUpdate.disciplineId = updateDto.disciplineId;
|
||||||
if (updResolvedProjectId)
|
if (updResolvedProjectId)
|
||||||
@@ -519,7 +519,7 @@ export class CorrespondenceService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 4. Update Revision Entity
|
// 4. Update Revision Entity
|
||||||
const revisionUpdate: DeepPartial<CorrespondenceRevision> = {};
|
const revisionUpdate: any = {};
|
||||||
if (updateDto.subject) revisionUpdate.subject = updateDto.subject;
|
if (updateDto.subject) revisionUpdate.subject = updateDto.subject;
|
||||||
if (updateDto.body) revisionUpdate.body = updateDto.body;
|
if (updateDto.body) revisionUpdate.body = updateDto.body;
|
||||||
if (updateDto.remarks) revisionUpdate.remarks = updateDto.remarks;
|
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 { Correspondence } from './correspondence.entity';
|
||||||
import { Organization } from '../../organization/entities/organization.entity';
|
import { Organization } from '../../organization/entities/organization.entity';
|
||||||
|
|
||||||
|
|||||||
@@ -490,7 +490,7 @@ export class DocumentNumberingService {
|
|||||||
}): Promise<DocumentNumberAudit> {
|
}): Promise<DocumentNumberAudit> {
|
||||||
const audit = this.auditRepo.create({
|
const audit = this.auditRepo.create({
|
||||||
documentNumber: data.documentNumber,
|
documentNumber: data.documentNumber,
|
||||||
counterKey: data.counterKey,
|
counterKey: data.counterKey as Record<string, unknown>,
|
||||||
templateUsed: data.templateUsed,
|
templateUsed: data.templateUsed,
|
||||||
isSuccess: data.isSuccess,
|
isSuccess: data.isSuccess,
|
||||||
operation: data.operation,
|
operation: data.operation,
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export class ManualOverrideService {
|
|||||||
documentNumber: `OVERRIDE-TO-${dto.newLastNumber}`,
|
documentNumber: `OVERRIDE-TO-${dto.newLastNumber}`,
|
||||||
operation: 'MANUAL_OVERRIDE',
|
operation: 'MANUAL_OVERRIDE',
|
||||||
status: 'MANUAL',
|
status: 'MANUAL',
|
||||||
counterKey: dto, // CounterKeyDto part of ManualOverrideDto
|
counterKey: dto as unknown as Record<string, unknown>, // CounterKeyDto part of ManualOverrideDto
|
||||||
templateUsed: 'MANUAL_OVERRIDE',
|
templateUsed: 'MANUAL_OVERRIDE',
|
||||||
userId: userId,
|
userId: userId,
|
||||||
isSuccess: true,
|
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 { Counter, Gauge, Histogram } from 'prom-client';
|
||||||
import { InjectMetric } from '@willsoto/nestjs-prometheus';
|
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 { InjectRepository } from '@nestjs/typeorm';
|
||||||
import { Repository } from 'typeorm';
|
import { Repository } from 'typeorm';
|
||||||
import { DocumentNumberFormat } from '../entities/document-number-format.entity';
|
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';
|
import { ApiProperty } from '@nestjs/swagger';
|
||||||
|
|
||||||
export class CreateTagDto {
|
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 {
|
export class SaveNumberFormatDto {
|
||||||
@IsInt()
|
@IsInt()
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import {
|
|||||||
Controller,
|
Controller,
|
||||||
Get,
|
Get,
|
||||||
Post,
|
Post,
|
||||||
_Put,
|
Put,
|
||||||
Body,
|
Body,
|
||||||
Patch,
|
Patch,
|
||||||
Param,
|
Param,
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import {
|
|||||||
IsOptional,
|
IsOptional,
|
||||||
IsEnum,
|
IsEnum,
|
||||||
IsNotEmpty,
|
IsNotEmpty,
|
||||||
_IsUrl,
|
IsUrl,
|
||||||
} from 'class-validator';
|
} from 'class-validator';
|
||||||
import { NotificationType } from '../entities/notification.entity';
|
import { NotificationType } from '../entities/notification.entity';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { Injectable, Logger } from '@nestjs/common';
|
import { Injectable, Logger } from '@nestjs/common';
|
||||||
import { Cron, CronExpression } from '@nestjs/schedule';
|
import { Cron, CronExpression } from '@nestjs/schedule';
|
||||||
import { InjectRepository } from '@nestjs/typeorm';
|
import { InjectRepository } from '@nestjs/typeorm';
|
||||||
import { Repository, _LessThan } from 'typeorm';
|
import { Repository, LessThan } from 'typeorm';
|
||||||
import { Notification } from './entities/notification.entity';
|
import { Notification } from './entities/notification.entity';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import { Repository } from 'typeorm';
|
|||||||
// Entities
|
// Entities
|
||||||
import { Notification, NotificationType } from './entities/notification.entity';
|
import { Notification, NotificationType } from './entities/notification.entity';
|
||||||
import { User } from '../user/entities/user.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
|
// Gateway
|
||||||
import { NotificationGateway } from './notification.gateway';
|
import { NotificationGateway } from './notification.gateway';
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import {
|
|||||||
Logger,
|
Logger,
|
||||||
} from '@nestjs/common';
|
} from '@nestjs/common';
|
||||||
import { InjectRepository } from '@nestjs/typeorm';
|
import { InjectRepository } from '@nestjs/typeorm';
|
||||||
import { Repository, _Like } from 'typeorm';
|
import { Repository, Like } from 'typeorm';
|
||||||
|
|
||||||
// Entities
|
// Entities
|
||||||
import { Project } from './entities/project.entity';
|
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 {
|
export class AssignRoleDto {
|
||||||
@IsInt()
|
@IsInt()
|
||||||
|
|||||||
Reference in New Issue
Block a user