251223:1649 On going update to 1.7.0: Refoctory drawing Module & document number Module
Some checks failed
Spec Validation / validate-markdown (push) Has been cancelled
Spec Validation / validate-diagrams (push) Has been cancelled
Spec Validation / check-todos (push) Has been cancelled

This commit is contained in:
admin
2025-12-23 16:49:16 +07:00
parent 0d6432ab83
commit 7db6a003db
81 changed files with 4703 additions and 1449 deletions

View File

@@ -1,31 +1,56 @@
// File: src/modules/document-numbering/dto/preview-number.dto.ts
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { IsInt, IsOptional, IsObject } from 'class-validator';
import { Type } from 'class-transformer';
export class PreviewNumberDto {
@ApiProperty({ description: 'Project ID' })
@IsInt()
@Type(() => Number)
projectId!: number;
@ApiProperty({ description: 'Originator organization ID' })
originatorOrganizationId!: number;
@IsInt()
@Type(() => Number)
originatorId!: number;
@ApiProperty({ description: 'Correspondence type ID' })
correspondenceTypeId!: number;
@IsInt()
@Type(() => Number)
typeId!: number;
@ApiPropertyOptional({ description: 'Sub type ID (for TRANSMITTAL)' })
@IsOptional()
@IsInt()
@Type(() => Number)
subTypeId?: number;
@ApiPropertyOptional({ description: 'RFA type ID (for RFA)' })
@IsOptional()
@IsInt()
@Type(() => Number)
rfaTypeId?: number;
@ApiPropertyOptional({ description: 'Discipline ID' })
@IsOptional()
@IsInt()
@Type(() => Number)
disciplineId?: number;
@ApiPropertyOptional({ description: 'Year (defaults to current)' })
@IsOptional()
@IsInt()
@Type(() => Number)
year?: number;
@ApiPropertyOptional({ description: 'Recipient organization ID' })
@IsOptional()
@IsInt()
@Type(() => Number)
recipientOrganizationId?: number;
@ApiPropertyOptional({ description: 'Custom tokens' })
@IsOptional()
@IsObject()
customTokens?: Record<string, string>;
}