// trip summary dto
import { ApiProperty } from "@nestjs/swagger"
import { IsEnum, IsOptional, IsString } from "class-validator"

export class TripSummaryDto {
  @IsString()
  @IsOptional()
  @ApiProperty({ type: String, required: false })
  search: string

  @IsString()
  @IsOptional()
  @ApiProperty({ type: String, required: false })
  start_date: string

  @IsString()
  @IsOptional()
  @ApiProperty({ type: String, required: false })
  end_date: string

  @IsString()
  @IsOptional()
  @ApiProperty({ type: String, required: false })
  driver_id: string

  @IsString()
  @IsOptional()
  @ApiProperty({ type: String, required: false })
  dispatcher_id: string

  @IsString()
  @IsOptional()
  @ApiProperty({ type: String, required: false })
  client_id: string

  @IsString()
  @IsOptional()
  @ApiProperty({ type: String, required: false })
  city_id: string

  @IsString()
  @IsOptional()
  @ApiProperty({ type: String, required: false })
  service_type: string

  @IsString()
  @IsOptional()
  @ApiProperty({ type: String, required: false })
  status: string

  @IsString()
  @IsOptional()
  @ApiProperty({ type: String, required: false })
  skip: string

  @IsString()
  @IsOptional()
  @ApiProperty({ type: String, required: false })
  limit: string

  @IsString()
  @IsOptional()
  @ApiProperty({ type: String, required: false })
  @IsEnum(["true", "false"])
  is_export: string
}
