"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MitraPackageValidation = void 0;
const zod_1 = require("zod");
class MitraPackageValidation {
}
exports.MitraPackageValidation = MitraPackageValidation;
MitraPackageValidation.CREATE = zod_1.z.object({
    number_of_pax: zod_1.z.number().int({ message: 'Jumlah pax harus diisi' }),
    period_id: zod_1.z.string({ message: 'ID periode harus diisi' }),
    departure_date: zod_1.z
        .string({ required_error: 'Tanggal keberangkatan harus diisi' })
        .refine((val) => !isNaN(new Date(val).getTime()), {
        message: 'Tanggal keberangkatan harus berupa tanggal yang valid',
    })
        .transform((val) => new Date(val)),
    travel_duration: zod_1.z.number().int({ message: 'Durasi perjalanan harus diisi' }),
    mekkah_duration: zod_1.z.number().int({ message: 'Durasi di Mekkah harus diisi' }),
    madinah_duration: zod_1.z.number().int({ message: 'Durasi di Madinah harus diisi' }),
    airline_id: zod_1.z.string({ message: 'ID maskapai harus diisi' }),
    vendor_id: zod_1.z.string({ message: 'ID vendor harus diisi' }),
    hotel_mekkah_id: zod_1.z.string({ message: 'ID hotel Mekkah harus diisi' }),
    hotel_madinah_id: zod_1.z.string({ message: 'ID hotel Madinah harus diisi' }),
    visa_id: zod_1.z.string({ message: 'ID visa harus diisi' }),
    transportation_id: zod_1.z.string({ message: 'ID transportasi harus diisi' }),
    muthawif_id: zod_1.z.string({ message: 'ID muthawif harus diisi' }),
    handling_saudi_id: zod_1.z.string({ message: 'ID handling Saudi harus diisi' }),
    handling_domestic_id: zod_1.z.string({ message: 'ID handling domestik harus diisi' }),
    siskopatuh_id: zod_1.z.string({ message: 'ID siskopatuh harus diisi' }),
    equipment_id: zod_1.z.string({ message: 'ID equipment harus diisi' }),
    tour_plus_id: zod_1.z.string({ message: 'ID tour harus diisi' }),
    manasik_id: zod_1.z.string({ message: 'ID manasik harus diisi' }),
    tour_leader: zod_1.z.number().int({ message: 'Tour leader harus diisi' }),
    margin: zod_1.z.number().int({ message: 'Margin harus diisi' }),
});
