Files
alrahma_sunday_school_api/apps/api/dist/modules/vehicles/vehicle.schemas.d.ts
T
2026-06-11 03:22:12 -04:00

283 lines
10 KiB
TypeScript

import { z } from 'zod';
export declare const vehicleSchema: z.ZodObject<{
make: z.ZodString;
model: z.ZodString;
year: z.ZodNumber;
color: z.ZodDefault<z.ZodString>;
licensePlate: z.ZodString;
vin: z.ZodOptional<z.ZodString>;
category: z.ZodEnum<["ECONOMY", "COMPACT", "MIDSIZE", "FULLSIZE", "SUV", "LUXURY", "VAN", "TRUCK"]>;
seats: z.ZodDefault<z.ZodNumber>;
transmission: z.ZodDefault<z.ZodEnum<["AUTOMATIC", "MANUAL"]>>;
fuelType: z.ZodDefault<z.ZodEnum<["GASOLINE", "DIESEL", "ELECTRIC", "HYBRID"]>>;
features: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
dailyRate: z.ZodOptional<z.ZodNumber>;
mileage: z.ZodOptional<z.ZodNumber>;
notes: z.ZodOptional<z.ZodString>;
isPublished: z.ZodDefault<z.ZodBoolean>;
status: z.ZodOptional<z.ZodEnum<["AVAILABLE", "RESERVED", "READY", "RENTED", "RETURNED", "NEEDS_CLEANING", "MAINTENANCE", "DAMAGE_REVIEW", "OUT_OF_SERVICE"]>>;
pickupLocations: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
allowDifferentDropoff: z.ZodDefault<z.ZodBoolean>;
dropoffLocations: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
make: string;
model: string;
year: number;
color: string;
licensePlate: string;
category: "ECONOMY" | "COMPACT" | "MIDSIZE" | "FULLSIZE" | "SUV" | "LUXURY" | "VAN" | "TRUCK";
seats: number;
transmission: "AUTOMATIC" | "MANUAL";
fuelType: "GASOLINE" | "DIESEL" | "ELECTRIC" | "HYBRID";
features: string[];
isPublished: boolean;
pickupLocations: string[];
allowDifferentDropoff: boolean;
dropoffLocations: string[];
vin?: string | undefined;
status?: "AVAILABLE" | "RESERVED" | "READY" | "RENTED" | "RETURNED" | "NEEDS_CLEANING" | "MAINTENANCE" | "DAMAGE_REVIEW" | "OUT_OF_SERVICE" | undefined;
dailyRate?: number | undefined;
mileage?: number | undefined;
notes?: string | undefined;
}, {
make: string;
model: string;
year: number;
licensePlate: string;
category: "ECONOMY" | "COMPACT" | "MIDSIZE" | "FULLSIZE" | "SUV" | "LUXURY" | "VAN" | "TRUCK";
color?: string | undefined;
vin?: string | undefined;
status?: "AVAILABLE" | "RESERVED" | "READY" | "RENTED" | "RETURNED" | "NEEDS_CLEANING" | "MAINTENANCE" | "DAMAGE_REVIEW" | "OUT_OF_SERVICE" | undefined;
seats?: number | undefined;
transmission?: "AUTOMATIC" | "MANUAL" | undefined;
fuelType?: "GASOLINE" | "DIESEL" | "ELECTRIC" | "HYBRID" | undefined;
features?: string[] | undefined;
dailyRate?: number | undefined;
mileage?: number | undefined;
notes?: string | undefined;
isPublished?: boolean | undefined;
pickupLocations?: string[] | undefined;
allowDifferentDropoff?: boolean | undefined;
dropoffLocations?: string[] | undefined;
}>;
export declare const listQuerySchema: z.ZodObject<{
status: z.ZodOptional<z.ZodString>;
category: z.ZodOptional<z.ZodString>;
published: z.ZodOptional<z.ZodString>;
page: z.ZodDefault<z.ZodNumber>;
pageSize: z.ZodDefault<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
page: number;
pageSize: number;
category?: string | undefined;
status?: string | undefined;
published?: string | undefined;
}, {
category?: string | undefined;
status?: string | undefined;
published?: string | undefined;
page?: number | undefined;
pageSize?: number | undefined;
}>;
export declare const availabilityQuerySchema: z.ZodObject<{
startDate: z.ZodString;
endDate: z.ZodString;
}, "strip", z.ZodTypeAny, {
startDate: string;
endDate: string;
}, {
startDate: string;
endDate: string;
}>;
export declare const calendarQuerySchema: z.ZodObject<{
year: z.ZodNumber;
month: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
year: number;
month: number;
}, {
year: number;
month: number;
}>;
export declare const calendarBlockSchema: z.ZodObject<{
startDate: z.ZodUnion<[z.ZodString, z.ZodString]>;
endDate: z.ZodUnion<[z.ZodString, z.ZodString]>;
reason: z.ZodOptional<z.ZodString>;
type: z.ZodDefault<z.ZodEnum<["MANUAL", "MAINTENANCE"]>>;
}, "strip", z.ZodTypeAny, {
type: "MANUAL" | "MAINTENANCE";
startDate: string;
endDate: string;
reason?: string | undefined;
}, {
startDate: string;
endDate: string;
type?: "MANUAL" | "MAINTENANCE" | undefined;
reason?: string | undefined;
}>;
export declare const maintenanceLogSchema: z.ZodObject<{
type: z.ZodString;
description: z.ZodOptional<z.ZodString>;
cost: z.ZodOptional<z.ZodNumber>;
mileage: z.ZodOptional<z.ZodNumber>;
performedAt: z.ZodString;
nextDueAt: z.ZodOptional<z.ZodString>;
nextDueMileage: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
type: string;
performedAt: string;
mileage?: number | undefined;
description?: string | undefined;
cost?: number | undefined;
nextDueAt?: string | undefined;
nextDueMileage?: number | undefined;
}, {
type: string;
performedAt: string;
mileage?: number | undefined;
description?: string | undefined;
cost?: number | undefined;
nextDueAt?: string | undefined;
nextDueMileage?: number | undefined;
}>;
export declare const pricingConfigSchema: z.ZodObject<{
pricingMode: z.ZodEnum<["MANUAL", "AUTOMATIC"]>;
baseDailyRate: z.ZodNumber;
weeklyRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
weekendRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
holidayRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
monthlyRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
longTermDailyRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
minimumDailyRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
maximumDailyRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
maxDailyPriceMovementPct: z.ZodDefault<z.ZodNumber>;
automaticPricingEnabled: z.ZodDefault<z.ZodBoolean>;
approvalRequired: z.ZodDefault<z.ZodBoolean>;
note: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
pricingMode: "AUTOMATIC" | "MANUAL";
baseDailyRate: number;
maxDailyPriceMovementPct: number;
automaticPricingEnabled: boolean;
approvalRequired: boolean;
weeklyRate?: number | null | undefined;
weekendRate?: number | null | undefined;
holidayRate?: number | null | undefined;
monthlyRate?: number | null | undefined;
longTermDailyRate?: number | null | undefined;
minimumDailyRate?: number | null | undefined;
maximumDailyRate?: number | null | undefined;
note?: string | undefined;
}, {
pricingMode: "AUTOMATIC" | "MANUAL";
baseDailyRate: number;
weeklyRate?: number | null | undefined;
weekendRate?: number | null | undefined;
holidayRate?: number | null | undefined;
monthlyRate?: number | null | undefined;
longTermDailyRate?: number | null | undefined;
minimumDailyRate?: number | null | undefined;
maximumDailyRate?: number | null | undefined;
maxDailyPriceMovementPct?: number | undefined;
automaticPricingEnabled?: boolean | undefined;
approvalRequired?: boolean | undefined;
note?: string | undefined;
}>;
export declare const pricingRuleSchema: z.ZodObject<{
name: z.ZodString;
ruleType: z.ZodDefault<z.ZodEnum<["DATE_RANGE", "SEASONAL", "HOLIDAY", "WEEKEND", "SPECIAL_EVENT", "MANUAL_OVERRIDE"]>>;
startDate: z.ZodUnion<[z.ZodString, z.ZodString]>;
endDate: z.ZodUnion<[z.ZodString, z.ZodString]>;
dailyRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
weeklyRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
weekendRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
monthlyRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
minDailyRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
maxDailyRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
automaticAdjustmentPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
priceAdjustment: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
isActive: z.ZodDefault<z.ZodBoolean>;
sortOrder: z.ZodDefault<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
startDate: string;
endDate: string;
name: string;
ruleType: "DATE_RANGE" | "SEASONAL" | "HOLIDAY" | "WEEKEND" | "SPECIAL_EVENT" | "MANUAL_OVERRIDE";
isActive: boolean;
sortOrder: number;
dailyRate?: number | null | undefined;
weeklyRate?: number | null | undefined;
weekendRate?: number | null | undefined;
monthlyRate?: number | null | undefined;
minDailyRate?: number | null | undefined;
maxDailyRate?: number | null | undefined;
automaticAdjustmentPct?: number | null | undefined;
priceAdjustment?: number | null | undefined;
}, {
startDate: string;
endDate: string;
name: string;
dailyRate?: number | null | undefined;
weeklyRate?: number | null | undefined;
weekendRate?: number | null | undefined;
monthlyRate?: number | null | undefined;
ruleType?: "DATE_RANGE" | "SEASONAL" | "HOLIDAY" | "WEEKEND" | "SPECIAL_EVENT" | "MANUAL_OVERRIDE" | undefined;
minDailyRate?: number | null | undefined;
maxDailyRate?: number | null | undefined;
automaticAdjustmentPct?: number | null | undefined;
priceAdjustment?: number | null | undefined;
isActive?: boolean | undefined;
sortOrder?: number | undefined;
}>;
export declare const publishSchema: z.ZodObject<{
isPublished: z.ZodBoolean;
}, "strip", z.ZodTypeAny, {
isPublished: boolean;
}, {
isPublished: boolean;
}>;
export declare const statusSchema: z.ZodObject<{
status: z.ZodEnum<["AVAILABLE", "RESERVED", "READY", "RENTED", "RETURNED", "NEEDS_CLEANING", "MAINTENANCE", "DAMAGE_REVIEW", "OUT_OF_SERVICE"]>;
}, "strip", z.ZodTypeAny, {
status: "AVAILABLE" | "RESERVED" | "READY" | "RENTED" | "RETURNED" | "NEEDS_CLEANING" | "MAINTENANCE" | "DAMAGE_REVIEW" | "OUT_OF_SERVICE";
}, {
status: "AVAILABLE" | "RESERVED" | "READY" | "RENTED" | "RETURNED" | "NEEDS_CLEANING" | "MAINTENANCE" | "DAMAGE_REVIEW" | "OUT_OF_SERVICE";
}>;
export declare const idParamSchema: z.ZodObject<{
id: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: string;
}, {
id: string;
}>;
export declare const photoIdxSchema: z.ZodObject<{
id: z.ZodString;
idx: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: string;
idx: string;
}, {
id: string;
idx: string;
}>;
export declare const blockIdParamSchema: z.ZodObject<{
id: z.ZodString;
blockId: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: string;
blockId: string;
}, {
id: string;
blockId: string;
}>;
export declare const pricingRuleParamSchema: z.ZodObject<{
id: z.ZodString;
ruleId: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: string;
ruleId: string;
}, {
id: string;
ruleId: string;
}>;
//# sourceMappingURL=vehicle.schemas.d.ts.map