import { PartialType } from '@nestjs/mapped-types';
import { Validate } from 'class-validator';

import { CreateBookingDto } from './create-booking.dto';
import { BookingFreightShapeConstraint } from './validators/booking-freight.validator';

export class UpdateBookingDto extends PartialType(CreateBookingDto) {
  @Validate(BookingFreightShapeConstraint)
  freightShapeValidation?: boolean;
}
