99 lines
3.1 KiB
TypeScript
99 lines
3.1 KiB
TypeScript
import { z } from 'zod';
|
|
export declare const paginationSchema: z.ZodObject<{
|
|
page: z.ZodDefault<z.ZodNumber>;
|
|
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
}, "strip", z.ZodTypeAny, {
|
|
page: number;
|
|
pageSize: number;
|
|
}, {
|
|
page?: number | undefined;
|
|
pageSize?: number | undefined;
|
|
}>;
|
|
export declare const customerSchema: z.ZodObject<{
|
|
firstName: z.ZodString;
|
|
lastName: z.ZodString;
|
|
email: z.ZodString;
|
|
phone: z.ZodOptional<z.ZodString>;
|
|
driverLicense: z.ZodOptional<z.ZodString>;
|
|
dateOfBirth: z.ZodOptional<z.ZodString>;
|
|
nationality: z.ZodOptional<z.ZodString>;
|
|
address: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
notes: z.ZodOptional<z.ZodString>;
|
|
licenseExpiry: z.ZodOptional<z.ZodString>;
|
|
licenseIssuedAt: z.ZodOptional<z.ZodString>;
|
|
licenseCountry: z.ZodOptional<z.ZodString>;
|
|
licenseNumber: z.ZodOptional<z.ZodString>;
|
|
licenseCategory: z.ZodOptional<z.ZodString>;
|
|
}, "strip", z.ZodTypeAny, {
|
|
firstName: string;
|
|
lastName: string;
|
|
email: string;
|
|
notes?: string | undefined;
|
|
phone?: string | undefined;
|
|
driverLicense?: string | undefined;
|
|
licenseExpiry?: string | undefined;
|
|
licenseIssuedAt?: string | undefined;
|
|
dateOfBirth?: string | undefined;
|
|
nationality?: string | undefined;
|
|
address?: Record<string, unknown> | undefined;
|
|
licenseCountry?: string | undefined;
|
|
licenseNumber?: string | undefined;
|
|
licenseCategory?: string | undefined;
|
|
}, {
|
|
firstName: string;
|
|
lastName: string;
|
|
email: string;
|
|
notes?: string | undefined;
|
|
phone?: string | undefined;
|
|
driverLicense?: string | undefined;
|
|
licenseExpiry?: string | undefined;
|
|
licenseIssuedAt?: string | undefined;
|
|
dateOfBirth?: string | undefined;
|
|
nationality?: string | undefined;
|
|
address?: Record<string, unknown> | undefined;
|
|
licenseCountry?: string | undefined;
|
|
licenseNumber?: string | undefined;
|
|
licenseCategory?: string | undefined;
|
|
}>;
|
|
export declare const listQuerySchema: z.ZodObject<{
|
|
page: z.ZodDefault<z.ZodNumber>;
|
|
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
} & {
|
|
q: z.ZodOptional<z.ZodString>;
|
|
flagged: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
|
|
}, "strip", z.ZodTypeAny, {
|
|
page: number;
|
|
pageSize: number;
|
|
q?: string | undefined;
|
|
flagged?: "true" | "false" | undefined;
|
|
}, {
|
|
page?: number | undefined;
|
|
pageSize?: number | undefined;
|
|
q?: string | undefined;
|
|
flagged?: "true" | "false" | undefined;
|
|
}>;
|
|
export declare const approveLicenseSchema: z.ZodObject<{
|
|
decision: z.ZodEnum<["APPROVE", "DENY"]>;
|
|
note: z.ZodOptional<z.ZodString>;
|
|
}, "strip", z.ZodTypeAny, {
|
|
decision: "APPROVE" | "DENY";
|
|
note?: string | undefined;
|
|
}, {
|
|
decision: "APPROVE" | "DENY";
|
|
note?: string | undefined;
|
|
}>;
|
|
export declare const flagSchema: z.ZodObject<{
|
|
reason: z.ZodOptional<z.ZodString>;
|
|
}, "strip", z.ZodTypeAny, {
|
|
reason?: string | undefined;
|
|
}, {
|
|
reason?: string | undefined;
|
|
}>;
|
|
export declare const idParamSchema: z.ZodObject<{
|
|
id: z.ZodString;
|
|
}, "strip", z.ZodTypeAny, {
|
|
id: string;
|
|
}, {
|
|
id: string;
|
|
}>;
|
|
//# sourceMappingURL=customer.schemas.d.ts.map
|