251223:1649 On going update to 1.7.0: Refoctory drawing Module & document number Module
This commit is contained in:
@@ -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>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user