// import { Controller, Get, NotFoundException, Param, ParseIntPipe, UseGuards } from "@nestjs/common";
// import { ApiOperation, ApiResponse, ApiTags } from "@nestjs/swagger";
// import { RolesAllowed } from "src/common/decorators/roles.decorators";
// import { EmployeesArchive, Roles as RoleEnum } from '@prisma/client';
// import { EmployeesArchivalService } from "src/modules/employees/services/employees-archival.service";

// @ApiTags('Employee Archives')
// // @UseGuards()
// @Controller('archives/employees')
// export class EmployeesArchiveController {
//     constructor(private readonly employeesArchiveService: EmployeesArchivalService) {}

//     @Get()
//     //@RolesAllowed(RoleEnum.ADMIN, RoleEnum.HR, RoleEnum.SUPERVISOR)
//     @ApiOperation({ summary: 'List of archived employees'})
//     @ApiResponse({ status: 200, description: 'List of archived employees', isArray: true })
//     async findAllArchived(): Promise<EmployeesArchive[]> {
//         return this.employeesArchiveService.findAllArchived();
//     }

//     @Get()
//     //@RolesAllowed(RoleEnum.ADMIN, RoleEnum.HR,RoleEnum.SUPERVISOR)
//     @ApiOperation({ summary: 'Fetch employee in archives with its Id'})
//     @ApiResponse({ status: 200, description: 'Archived employee found'})
//     async findOneArchived(@Param('id', ParseIntPipe) id: number ): Promise<EmployeesArchive> {
//         try{
//             return await this.employeesArchiveService.findOneArchived(id);
//         }catch {
//             throw new NotFoundException(`Archived employee #${id} not found`);
//         }
//     }

// }