"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.UpdateBookingStatusDto = exports.ConfirmBookingRequestDto = exports.CreateBookingRequestDto = void 0;
const swagger_1 = require("@nestjs/swagger");
const class_validator_1 = require("class-validator");
class CreateBookingRequestDto {
}
exports.CreateBookingRequestDto = CreateBookingRequestDto;
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "1213131",
        description: "Booking Request No",
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsOptional)(),
    __metadata("design:type", String)
], CreateBookingRequestDto.prototype, "requestId", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "1",
        description: "User id",
    }),
    (0, class_validator_1.IsNumber)(),
    __metadata("design:type", Number)
], CreateBookingRequestDto.prototype, "userId", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "BMW",
        description: "Car type",
    }),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], CreateBookingRequestDto.prototype, "carType", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "Make",
        description: "Car Color",
    }),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], CreateBookingRequestDto.prototype, "color", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "x6",
        description: "Car model",
    }),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], CreateBookingRequestDto.prototype, "model", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "2023",
        description: "Car year",
    }),
    (0, class_validator_1.IsNumber)(),
    __metadata("design:type", Number)
], CreateBookingRequestDto.prototype, "year", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "Test description",
        description: "Description",
    }),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], CreateBookingRequestDto.prototype, "description", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "28.70411",
        description: "Pickup Latitude",
    }),
    (0, class_validator_1.IsLatitude)(),
    __metadata("design:type", Number)
], CreateBookingRequestDto.prototype, "pickupLatitude", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "77.102000",
        description: "Pickup Longitude",
    }),
    (0, class_validator_1.IsLongitude)(),
    __metadata("design:type", Number)
], CreateBookingRequestDto.prototype, "pickupLongitude", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "28.70411",
        description: "Drop Latitude",
    }),
    (0, class_validator_1.IsLatitude)(),
    __metadata("design:type", Number)
], CreateBookingRequestDto.prototype, "dropLatitude", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "77.102000",
        description: "Drop Longitude",
    }),
    (0, class_validator_1.IsLongitude)(),
    __metadata("design:type", Number)
], CreateBookingRequestDto.prototype, "dropLongitude", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "Sector 6 Noida",
        description: "Pickup place",
    }),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], CreateBookingRequestDto.prototype, "pickupPlace", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "Sector 10 Noida",
        description: "Drop Place",
    }),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], CreateBookingRequestDto.prototype, "dropPlace", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "5",
        description: "Radius in km",
    }),
    (0, class_validator_1.IsNumber)(),
    __metadata("design:type", Number)
], CreateBookingRequestDto.prototype, "radius", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "towing",
        description: "Service name",
    }),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], CreateBookingRequestDto.prototype, "service", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "schedule",
        description: "Schedule type (now / schedule)",
        enum: ['now', 'schedule'],
        default: 'now',
    }),
    (0, class_validator_1.IsEnum)(['now', 'schedule']),
    __metadata("design:type", String)
], CreateBookingRequestDto.prototype, "scheduleType", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "2025-08-24",
        description: "Schedule date (YYYY-MM-DD)",
        required: false,
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsDateString)(),
    __metadata("design:type", String)
], CreateBookingRequestDto.prototype, "scheduleDate", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "14:30:00",
        description: "Schedule time (HH:mm:ss)",
        required: false,
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], CreateBookingRequestDto.prototype, "scheduleTime", void 0);
class ConfirmBookingRequestDto {
}
exports.ConfirmBookingRequestDto = ConfirmBookingRequestDto;
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "1",
        description: "Request id",
    }),
    (0, class_validator_1.IsNumber)(),
    __metadata("design:type", Number)
], ConfirmBookingRequestDto.prototype, "requestId", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "2",
        description: "Driver id",
    }),
    (0, class_validator_1.IsNumber)(),
    __metadata("design:type", Number)
], ConfirmBookingRequestDto.prototype, "driverId", void 0);
class UpdateBookingStatusDto {
}
exports.UpdateBookingStatusDto = UpdateBookingStatusDto;
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "1",
        description: "Booking id",
    }),
    (0, class_validator_1.IsNumber)(),
    __metadata("design:type", Number)
], UpdateBookingStatusDto.prototype, "bookingId", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "1",
        description: "Status 0- Pending 1- Accept, 2- At pickup,  3- start trip, 4 - end trip,  5 - expired",
    }),
    (0, class_validator_1.IsNumber)(),
    __metadata("design:type", Number)
], UpdateBookingStatusDto.prototype, "status", void 0);
//# sourceMappingURL=booking.dto.js.map