204 lines
6.0 KiB
TypeScript
204 lines
6.0 KiB
TypeScript
import { z } from 'zod';
|
|
export declare const slugParamSchema: z.ZodObject<{
|
|
slug: z.ZodString;
|
|
}, "strip", z.ZodTypeAny, {
|
|
slug: string;
|
|
}, {
|
|
slug: string;
|
|
}>;
|
|
export declare const bookingParamSchema: z.ZodObject<{
|
|
slug: z.ZodString;
|
|
id: z.ZodString;
|
|
}, "strip", z.ZodTypeAny, {
|
|
id: string;
|
|
slug: string;
|
|
}, {
|
|
id: string;
|
|
slug: string;
|
|
}>;
|
|
export declare const availabilitySchema: z.ZodObject<{
|
|
vehicleId: z.ZodString;
|
|
startDate: z.ZodString;
|
|
endDate: z.ZodString;
|
|
}, "strip", z.ZodTypeAny, {
|
|
startDate: string;
|
|
endDate: string;
|
|
vehicleId: string;
|
|
}, {
|
|
startDate: string;
|
|
endDate: string;
|
|
vehicleId: string;
|
|
}>;
|
|
export declare const validateCodeSchema: z.ZodObject<{
|
|
code: z.ZodString;
|
|
}, "strip", z.ZodTypeAny, {
|
|
code: string;
|
|
}, {
|
|
code: string;
|
|
}>;
|
|
export declare const bookSchema: z.ZodObject<{
|
|
vehicleId: z.ZodString;
|
|
startDate: z.ZodString;
|
|
endDate: z.ZodString;
|
|
firstName: z.ZodString;
|
|
lastName: z.ZodString;
|
|
email: z.ZodString;
|
|
phone: z.ZodString;
|
|
driverLicense: z.ZodString;
|
|
dateOfBirth: z.ZodString;
|
|
licenseExpiry: z.ZodString;
|
|
licenseIssuedAt: z.ZodString;
|
|
nationality: z.ZodString;
|
|
identityDocumentNumber: z.ZodString;
|
|
fullAddress: z.ZodString;
|
|
licenseCountry: z.ZodString;
|
|
licenseNumber: z.ZodOptional<z.ZodString>;
|
|
licenseCategory: z.ZodString;
|
|
internationalLicenseNumber: z.ZodOptional<z.ZodString>;
|
|
offerId: z.ZodOptional<z.ZodString>;
|
|
promoCodeUsed: z.ZodOptional<z.ZodString>;
|
|
notes: z.ZodOptional<z.ZodString>;
|
|
source: z.ZodDefault<z.ZodEnum<["PUBLIC_SITE", "MARKETPLACE"]>>;
|
|
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;
|
|
firstName: string;
|
|
lastName: string;
|
|
email: string;
|
|
phone: string;
|
|
driverLicense: string;
|
|
licenseExpiry: string;
|
|
licenseIssuedAt: string;
|
|
dateOfBirth: string;
|
|
nationality: string;
|
|
vehicleId: string;
|
|
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;
|
|
}[];
|
|
source: "MARKETPLACE" | "PUBLIC_SITE";
|
|
licenseCountry: string;
|
|
licenseCategory: string;
|
|
fullAddress: string;
|
|
identityDocumentNumber: string;
|
|
notes?: string | undefined;
|
|
offerId?: string | undefined;
|
|
promoCodeUsed?: string | undefined;
|
|
licenseNumber?: string | undefined;
|
|
internationalLicenseNumber?: string | undefined;
|
|
}, {
|
|
startDate: string;
|
|
endDate: string;
|
|
firstName: string;
|
|
lastName: string;
|
|
email: string;
|
|
phone: string;
|
|
driverLicense: string;
|
|
licenseExpiry: string;
|
|
licenseIssuedAt: string;
|
|
dateOfBirth: string;
|
|
nationality: string;
|
|
vehicleId: string;
|
|
licenseCountry: string;
|
|
licenseCategory: string;
|
|
fullAddress: string;
|
|
identityDocumentNumber: string;
|
|
notes?: string | undefined;
|
|
offerId?: string | undefined;
|
|
promoCodeUsed?: 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;
|
|
source?: "MARKETPLACE" | "PUBLIC_SITE" | undefined;
|
|
licenseNumber?: string | undefined;
|
|
internationalLicenseNumber?: string | undefined;
|
|
}>;
|
|
export declare const paySchema: z.ZodObject<{
|
|
provider: z.ZodEnum<["AMANPAY", "PAYPAL"]>;
|
|
currency: z.ZodDefault<z.ZodLiteral<"MAD">>;
|
|
successUrl: z.ZodString;
|
|
failureUrl: z.ZodString;
|
|
accessToken: z.ZodString;
|
|
}, "strip", z.ZodTypeAny, {
|
|
provider: "AMANPAY" | "PAYPAL";
|
|
currency: "MAD";
|
|
successUrl: string;
|
|
failureUrl: string;
|
|
accessToken: string;
|
|
}, {
|
|
provider: "AMANPAY" | "PAYPAL";
|
|
successUrl: string;
|
|
failureUrl: string;
|
|
accessToken: string;
|
|
currency?: "MAD" | undefined;
|
|
}>;
|
|
export declare const capturePaypalSchema: z.ZodObject<{
|
|
paypalOrderId: z.ZodString;
|
|
}, "strip", z.ZodTypeAny, {
|
|
paypalOrderId: string;
|
|
}, {
|
|
paypalOrderId: string;
|
|
}>;
|
|
export declare const contactSchema: z.ZodObject<{
|
|
name: z.ZodString;
|
|
email: z.ZodString;
|
|
message: z.ZodString;
|
|
}, "strip", z.ZodTypeAny, {
|
|
message: string;
|
|
name: string;
|
|
email: string;
|
|
}, {
|
|
message: string;
|
|
name: string;
|
|
email: string;
|
|
}>;
|
|
//# sourceMappingURL=site.schemas.d.ts.map
|