316 lines
11 KiB
TypeScript
316 lines
11 KiB
TypeScript
import { z } from 'zod';
|
|
export declare const additionalDriverSchema: z.ZodObject<{
|
|
firstName: z.ZodString;
|
|
lastName: z.ZodString;
|
|
email: z.ZodOptional<z.ZodString>;
|
|
phone: z.ZodOptional<z.ZodString>;
|
|
driverLicense: z.ZodString;
|
|
licenseExpiry: z.ZodOptional<z.ZodString>;
|
|
licenseIssuedAt: z.ZodOptional<z.ZodString>;
|
|
dateOfBirth: z.ZodOptional<z.ZodString>;
|
|
nationality: z.ZodOptional<z.ZodString>;
|
|
}, "strip", z.ZodTypeAny, {
|
|
firstName: string;
|
|
lastName: string;
|
|
driverLicense: string;
|
|
email?: string | undefined;
|
|
phone?: string | undefined;
|
|
licenseExpiry?: string | undefined;
|
|
licenseIssuedAt?: string | undefined;
|
|
dateOfBirth?: string | undefined;
|
|
nationality?: string | undefined;
|
|
}, {
|
|
firstName: string;
|
|
lastName: string;
|
|
driverLicense: string;
|
|
email?: string | undefined;
|
|
phone?: string | undefined;
|
|
licenseExpiry?: string | undefined;
|
|
licenseIssuedAt?: string | undefined;
|
|
dateOfBirth?: string | undefined;
|
|
nationality?: string | undefined;
|
|
}>;
|
|
export declare const inspectionSchema: z.ZodObject<{
|
|
mileage: z.ZodOptional<z.ZodNumber>;
|
|
fuelLevel: z.ZodEnum<["FULL", "SEVEN_EIGHTHS", "THREE_QUARTERS", "FIVE_EIGHTHS", "HALF", "THREE_EIGHTHS", "QUARTER", "ONE_EIGHTH", "EMPTY"]>;
|
|
fuelCharge: z.ZodOptional<z.ZodNumber>;
|
|
generalCondition: z.ZodOptional<z.ZodString>;
|
|
employeeNotes: z.ZodOptional<z.ZodString>;
|
|
customerAgreed: z.ZodDefault<z.ZodBoolean>;
|
|
damagePoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
viewType: z.ZodEnum<["TOP", "FRONT", "REAR", "LEFT", "RIGHT"]>;
|
|
x: z.ZodNumber;
|
|
y: z.ZodNumber;
|
|
damageType: z.ZodEnum<["SCRATCH", "DENT", "CRACK", "CHIP", "MISSING", "STAIN", "OTHER"]>;
|
|
severity: z.ZodDefault<z.ZodEnum<["MINOR", "MODERATE", "MAJOR"]>>;
|
|
description: z.ZodOptional<z.ZodString>;
|
|
isPreExisting: z.ZodDefault<z.ZodBoolean>;
|
|
}, "strip", z.ZodTypeAny, {
|
|
viewType: "TOP" | "FRONT" | "REAR" | "LEFT" | "RIGHT";
|
|
x: number;
|
|
y: number;
|
|
damageType: "SCRATCH" | "DENT" | "CRACK" | "CHIP" | "MISSING" | "STAIN" | "OTHER";
|
|
severity: "MINOR" | "MODERATE" | "MAJOR";
|
|
isPreExisting: boolean;
|
|
description?: string | undefined;
|
|
}, {
|
|
viewType: "TOP" | "FRONT" | "REAR" | "LEFT" | "RIGHT";
|
|
x: number;
|
|
y: number;
|
|
damageType: "SCRATCH" | "DENT" | "CRACK" | "CHIP" | "MISSING" | "STAIN" | "OTHER";
|
|
description?: string | undefined;
|
|
severity?: "MINOR" | "MODERATE" | "MAJOR" | undefined;
|
|
isPreExisting?: boolean | undefined;
|
|
}>, "many">>;
|
|
}, "strip", z.ZodTypeAny, {
|
|
fuelLevel: "FULL" | "SEVEN_EIGHTHS" | "THREE_QUARTERS" | "FIVE_EIGHTHS" | "HALF" | "THREE_EIGHTHS" | "QUARTER" | "ONE_EIGHTH" | "EMPTY";
|
|
customerAgreed: boolean;
|
|
damagePoints: {
|
|
viewType: "TOP" | "FRONT" | "REAR" | "LEFT" | "RIGHT";
|
|
x: number;
|
|
y: number;
|
|
damageType: "SCRATCH" | "DENT" | "CRACK" | "CHIP" | "MISSING" | "STAIN" | "OTHER";
|
|
severity: "MINOR" | "MODERATE" | "MAJOR";
|
|
isPreExisting: boolean;
|
|
description?: string | undefined;
|
|
}[];
|
|
mileage?: number | undefined;
|
|
fuelCharge?: number | undefined;
|
|
generalCondition?: string | undefined;
|
|
employeeNotes?: string | undefined;
|
|
}, {
|
|
fuelLevel: "FULL" | "SEVEN_EIGHTHS" | "THREE_QUARTERS" | "FIVE_EIGHTHS" | "HALF" | "THREE_EIGHTHS" | "QUARTER" | "ONE_EIGHTH" | "EMPTY";
|
|
mileage?: number | undefined;
|
|
fuelCharge?: number | undefined;
|
|
generalCondition?: string | undefined;
|
|
employeeNotes?: string | undefined;
|
|
customerAgreed?: boolean | undefined;
|
|
damagePoints?: {
|
|
viewType: "TOP" | "FRONT" | "REAR" | "LEFT" | "RIGHT";
|
|
x: number;
|
|
y: number;
|
|
damageType: "SCRATCH" | "DENT" | "CRACK" | "CHIP" | "MISSING" | "STAIN" | "OTHER";
|
|
description?: string | undefined;
|
|
severity?: "MINOR" | "MODERATE" | "MAJOR" | undefined;
|
|
isPreExisting?: boolean | undefined;
|
|
}[] | undefined;
|
|
}>;
|
|
export declare const createSchema: z.ZodObject<{
|
|
vehicleId: z.ZodString;
|
|
customerId: z.ZodString;
|
|
startDate: z.ZodString;
|
|
endDate: z.ZodString;
|
|
pickupLocation: z.ZodOptional<z.ZodString>;
|
|
returnLocation: z.ZodOptional<z.ZodString>;
|
|
offerId: z.ZodOptional<z.ZodString>;
|
|
promoCodeUsed: z.ZodOptional<z.ZodString>;
|
|
depositAmount: z.ZodDefault<z.ZodNumber>;
|
|
paymentMode: z.ZodOptional<z.ZodString>;
|
|
notes: z.ZodOptional<z.ZodString>;
|
|
selectedInsurancePolicyIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
additionalDrivers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
firstName: z.ZodString;
|
|
lastName: z.ZodString;
|
|
email: z.ZodOptional<z.ZodString>;
|
|
phone: z.ZodOptional<z.ZodString>;
|
|
driverLicense: z.ZodString;
|
|
licenseExpiry: z.ZodOptional<z.ZodString>;
|
|
licenseIssuedAt: z.ZodOptional<z.ZodString>;
|
|
dateOfBirth: z.ZodOptional<z.ZodString>;
|
|
nationality: z.ZodOptional<z.ZodString>;
|
|
}, "strip", z.ZodTypeAny, {
|
|
firstName: string;
|
|
lastName: string;
|
|
driverLicense: string;
|
|
email?: string | undefined;
|
|
phone?: string | undefined;
|
|
licenseExpiry?: string | undefined;
|
|
licenseIssuedAt?: string | undefined;
|
|
dateOfBirth?: string | undefined;
|
|
nationality?: string | undefined;
|
|
}, {
|
|
firstName: string;
|
|
lastName: string;
|
|
driverLicense: string;
|
|
email?: string | undefined;
|
|
phone?: string | undefined;
|
|
licenseExpiry?: string | undefined;
|
|
licenseIssuedAt?: string | undefined;
|
|
dateOfBirth?: string | undefined;
|
|
nationality?: string | undefined;
|
|
}>, "many">>;
|
|
}, "strip", z.ZodTypeAny, {
|
|
startDate: string;
|
|
endDate: string;
|
|
vehicleId: string;
|
|
customerId: string;
|
|
depositAmount: number;
|
|
selectedInsurancePolicyIds: string[];
|
|
additionalDrivers: {
|
|
firstName: string;
|
|
lastName: string;
|
|
driverLicense: string;
|
|
email?: string | undefined;
|
|
phone?: string | undefined;
|
|
licenseExpiry?: string | undefined;
|
|
licenseIssuedAt?: string | undefined;
|
|
dateOfBirth?: string | undefined;
|
|
nationality?: string | undefined;
|
|
}[];
|
|
notes?: string | undefined;
|
|
pickupLocation?: string | undefined;
|
|
returnLocation?: string | undefined;
|
|
offerId?: string | undefined;
|
|
promoCodeUsed?: string | undefined;
|
|
paymentMode?: string | undefined;
|
|
}, {
|
|
startDate: string;
|
|
endDate: string;
|
|
vehicleId: string;
|
|
customerId: string;
|
|
notes?: string | undefined;
|
|
pickupLocation?: string | undefined;
|
|
returnLocation?: string | undefined;
|
|
offerId?: string | undefined;
|
|
promoCodeUsed?: string | undefined;
|
|
depositAmount?: number | undefined;
|
|
paymentMode?: string | undefined;
|
|
selectedInsurancePolicyIds?: string[] | undefined;
|
|
additionalDrivers?: {
|
|
firstName: string;
|
|
lastName: string;
|
|
driverLicense: string;
|
|
email?: string | undefined;
|
|
phone?: string | undefined;
|
|
licenseExpiry?: string | undefined;
|
|
licenseIssuedAt?: string | undefined;
|
|
dateOfBirth?: string | undefined;
|
|
nationality?: string | undefined;
|
|
}[] | undefined;
|
|
}>;
|
|
export declare const updateSchema: z.ZodObject<{
|
|
startDate: z.ZodOptional<z.ZodString>;
|
|
endDate: z.ZodOptional<z.ZodString>;
|
|
pickupLocation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
returnLocation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
depositAmount: z.ZodOptional<z.ZodNumber>;
|
|
notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
paymentMode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
damageChargeAmount: z.ZodOptional<z.ZodNumber>;
|
|
damageChargeNote: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
}, "strip", z.ZodTypeAny, {
|
|
notes?: string | null | undefined;
|
|
startDate?: string | undefined;
|
|
endDate?: string | undefined;
|
|
pickupLocation?: string | null | undefined;
|
|
returnLocation?: string | null | undefined;
|
|
depositAmount?: number | undefined;
|
|
paymentMode?: string | null | undefined;
|
|
damageChargeAmount?: number | undefined;
|
|
damageChargeNote?: string | null | undefined;
|
|
}, {
|
|
notes?: string | null | undefined;
|
|
startDate?: string | undefined;
|
|
endDate?: string | undefined;
|
|
pickupLocation?: string | null | undefined;
|
|
returnLocation?: string | null | undefined;
|
|
depositAmount?: number | undefined;
|
|
paymentMode?: string | null | undefined;
|
|
damageChargeAmount?: number | undefined;
|
|
damageChargeNote?: string | null | undefined;
|
|
}>;
|
|
export declare const listQuerySchema: z.ZodObject<{
|
|
status: z.ZodOptional<z.ZodString>;
|
|
vehicleId: z.ZodOptional<z.ZodString>;
|
|
source: z.ZodOptional<z.ZodString>;
|
|
startDate: z.ZodOptional<z.ZodString>;
|
|
endDate: z.ZodOptional<z.ZodString>;
|
|
page: z.ZodDefault<z.ZodNumber>;
|
|
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
}, "strip", z.ZodTypeAny, {
|
|
page: number;
|
|
pageSize: number;
|
|
status?: string | undefined;
|
|
startDate?: string | undefined;
|
|
endDate?: string | undefined;
|
|
vehicleId?: string | undefined;
|
|
source?: string | undefined;
|
|
}, {
|
|
status?: string | undefined;
|
|
page?: number | undefined;
|
|
pageSize?: number | undefined;
|
|
startDate?: string | undefined;
|
|
endDate?: string | undefined;
|
|
vehicleId?: string | undefined;
|
|
source?: string | undefined;
|
|
}>;
|
|
export declare const checkinSchema: z.ZodObject<{
|
|
mileage: z.ZodOptional<z.ZodNumber>;
|
|
}, "strip", z.ZodTypeAny, {
|
|
mileage?: number | undefined;
|
|
}, {
|
|
mileage?: number | undefined;
|
|
}>;
|
|
export declare const checkoutSchema: z.ZodObject<{
|
|
mileage: z.ZodOptional<z.ZodNumber>;
|
|
}, "strip", z.ZodTypeAny, {
|
|
mileage?: number | undefined;
|
|
}, {
|
|
mileage?: number | undefined;
|
|
}>;
|
|
export declare const extendSchema: z.ZodObject<{
|
|
newEndDate: z.ZodString;
|
|
reason: z.ZodString;
|
|
}, "strip", z.ZodTypeAny, {
|
|
reason: string;
|
|
newEndDate: string;
|
|
}, {
|
|
reason: string;
|
|
newEndDate: string;
|
|
}>;
|
|
export declare const cancelSchema: z.ZodObject<{
|
|
reason: z.ZodOptional<z.ZodString>;
|
|
}, "strip", z.ZodTypeAny, {
|
|
reason?: string | undefined;
|
|
}, {
|
|
reason?: string | undefined;
|
|
}>;
|
|
export declare const approvalSchema: z.ZodObject<{
|
|
approved: z.ZodBoolean;
|
|
note: z.ZodOptional<z.ZodString>;
|
|
}, "strip", z.ZodTypeAny, {
|
|
approved: boolean;
|
|
note?: string | undefined;
|
|
}, {
|
|
approved: boolean;
|
|
note?: string | undefined;
|
|
}>;
|
|
export declare const inspectionTypeParam: z.ZodEnum<["CHECKIN", "CHECKOUT"]>;
|
|
export declare const idParamSchema: z.ZodObject<{
|
|
id: z.ZodString;
|
|
}, "strip", z.ZodTypeAny, {
|
|
id: string;
|
|
}, {
|
|
id: string;
|
|
}>;
|
|
export declare const driverParamSchema: z.ZodObject<{
|
|
id: z.ZodString;
|
|
driverId: z.ZodString;
|
|
}, "strip", z.ZodTypeAny, {
|
|
id: string;
|
|
driverId: string;
|
|
}, {
|
|
id: string;
|
|
driverId: string;
|
|
}>;
|
|
export declare const inspectionParamSchema: z.ZodObject<{
|
|
id: z.ZodString;
|
|
type: z.ZodString;
|
|
}, "strip", z.ZodTypeAny, {
|
|
type: string;
|
|
id: string;
|
|
}, {
|
|
type: string;
|
|
id: string;
|
|
}>;
|
|
//# sourceMappingURL=reservation.schemas.d.ts.map
|