import { IsString } from 'class-validator';
import { LoginRequest } from '../../domain/entities/request.interface';
import { ApiProperty } from '@nestjs/swagger';

export class LoginDto implements LoginRequest {
  @ApiProperty({ name: 'username', required: true, default: 'superadmin' })
  @IsString()
  username: string;

  @ApiProperty({ name: 'password', required: true, default: 'Eigen123!' })
  @IsString()
  password: string;
}

export class LoginQueueDto implements LoginRequest {
  @ApiProperty({ name: 'username', required: true, default: 'superadmin' })
  @IsString()
  username: string;

  @ApiProperty({ name: 'password', required: true, default: 'Eigen123!' })
  @IsString()
  password: string;

  @ApiProperty({ name: 'item_id', required: true, default: 'string' })
  @IsString()
  item_id: string;

  @ApiProperty({ name: 'item_name', required: true, default: 'string' })
  @IsString()
  item_name: string;
}

export class ForceLogoutDto {
  @ApiProperty({ required: true })
  @IsString()
  token: string;
}
