Frontend: - Add runtime configuration service for deployment-time API URL injection - Create docker-entrypoint.sh to generate config.json from environment variables - Update ApiService, ApprovalService, and DocumentViewer to use RuntimeConfigService - Add APP_INITIALIZER to load runtime config before app starts Backend: - Fix init-blockchain.js to properly quote mnemonic phrases in .env file - Improve docker-entrypoint.sh with health checks and better error handling Docker: - Add API_BASE_URL environment variable to frontend container - Update docker-compose.yml with clear documentation for remote deployment - Reorganize .env.example with clear categories (REQUIRED FOR REMOTE, PRODUCTION, AUTO-GENERATED) Workflow fixes: - Fix DepartmentApproval interface to match backend schema - Fix stage transformation for 0-indexed stageOrder - Fix workflow list to show correct stage count from definition.stages Cleanup: - Move development artifacts to .trash directory - Remove root-level package.json (was only for utility scripts) - Add .trash/ to .gitignore
85 lines
1.6 KiB
TypeScript
85 lines
1.6 KiB
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
|
|
export class DocumentResponseDto {
|
|
@ApiProperty({
|
|
description: 'Document ID (UUID)',
|
|
})
|
|
id: string;
|
|
|
|
@ApiProperty({
|
|
description: 'Request ID (UUID)',
|
|
})
|
|
requestId: string;
|
|
|
|
@ApiProperty({
|
|
description: 'Document type',
|
|
example: 'FIRE_SAFETY_CERTIFICATE',
|
|
})
|
|
docType: string;
|
|
|
|
@ApiProperty({
|
|
description: 'Original filename',
|
|
})
|
|
originalFilename: string;
|
|
|
|
@ApiProperty({
|
|
description: 'Current version number',
|
|
})
|
|
currentVersion: number;
|
|
|
|
@ApiProperty({
|
|
description: 'SHA-256 hash of current version',
|
|
})
|
|
currentHash: string;
|
|
|
|
@ApiProperty({
|
|
description: 'SHA-256 hash of current version (alias)',
|
|
required: false,
|
|
})
|
|
fileHash?: string;
|
|
|
|
@ApiProperty({
|
|
description: 'File size in bytes',
|
|
required: false,
|
|
})
|
|
fileSize?: number;
|
|
|
|
@ApiProperty({
|
|
description: 'MIME type of the file',
|
|
required: false,
|
|
})
|
|
mimeType?: string;
|
|
|
|
@ApiProperty({
|
|
description: 'MinIO bucket name',
|
|
})
|
|
minioBucket: string;
|
|
|
|
@ApiProperty({
|
|
description: 'Whether document is active',
|
|
})
|
|
isActive: boolean;
|
|
|
|
@ApiProperty({
|
|
description: 'Number of times the document has been downloaded',
|
|
required: false,
|
|
})
|
|
downloadCount?: number;
|
|
|
|
@ApiProperty({
|
|
description: 'Timestamp of last download',
|
|
required: false,
|
|
})
|
|
lastDownloadedAt?: Date;
|
|
|
|
@ApiProperty({
|
|
description: 'Document creation timestamp',
|
|
})
|
|
createdAt: Date;
|
|
|
|
@ApiProperty({
|
|
description: 'Document last update timestamp',
|
|
})
|
|
updatedAt: Date;
|
|
}
|