archetecture security fix
This commit is contained in:
+77
@@ -0,0 +1,77 @@
|
||||
import { z } from 'zod';
|
||||
export declare const offerSchema: z.ZodObject<{
|
||||
title: z.ZodString;
|
||||
description: z.ZodOptional<z.ZodString>;
|
||||
termsAndConds: z.ZodOptional<z.ZodString>;
|
||||
type: z.ZodEnum<["PERCENTAGE", "FIXED_AMOUNT", "FREE_DAY", "SPECIAL_RATE"]>;
|
||||
discountValue: z.ZodNumber;
|
||||
specialRate: z.ZodOptional<z.ZodNumber>;
|
||||
appliesToAll: z.ZodDefault<z.ZodBoolean>;
|
||||
categories: z.ZodDefault<z.ZodArray<z.ZodEnum<["ECONOMY", "COMPACT", "MIDSIZE", "FULLSIZE", "SUV", "LUXURY", "VAN", "TRUCK"]>, "many">>;
|
||||
minRentalDays: z.ZodOptional<z.ZodNumber>;
|
||||
maxRentalDays: z.ZodOptional<z.ZodNumber>;
|
||||
promoCode: z.ZodOptional<z.ZodString>;
|
||||
maxRedemptions: z.ZodOptional<z.ZodNumber>;
|
||||
validFrom: z.ZodString;
|
||||
validUntil: z.ZodString;
|
||||
isActive: z.ZodDefault<z.ZodBoolean>;
|
||||
isPublic: z.ZodDefault<z.ZodBoolean>;
|
||||
isFeatured: z.ZodDefault<z.ZodBoolean>;
|
||||
vehicleIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
type: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_DAY" | "SPECIAL_RATE";
|
||||
isActive: boolean;
|
||||
title: string;
|
||||
discountValue: number;
|
||||
appliesToAll: boolean;
|
||||
categories: ("ECONOMY" | "COMPACT" | "MIDSIZE" | "FULLSIZE" | "SUV" | "LUXURY" | "VAN" | "TRUCK")[];
|
||||
validFrom: string;
|
||||
validUntil: string;
|
||||
isPublic: boolean;
|
||||
isFeatured: boolean;
|
||||
vehicleIds: string[];
|
||||
description?: string | undefined;
|
||||
termsAndConds?: string | undefined;
|
||||
specialRate?: number | undefined;
|
||||
minRentalDays?: number | undefined;
|
||||
maxRentalDays?: number | undefined;
|
||||
promoCode?: string | undefined;
|
||||
maxRedemptions?: number | undefined;
|
||||
}, {
|
||||
type: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_DAY" | "SPECIAL_RATE";
|
||||
title: string;
|
||||
discountValue: number;
|
||||
validFrom: string;
|
||||
validUntil: string;
|
||||
description?: string | undefined;
|
||||
isActive?: boolean | undefined;
|
||||
termsAndConds?: string | undefined;
|
||||
specialRate?: number | undefined;
|
||||
appliesToAll?: boolean | undefined;
|
||||
categories?: ("ECONOMY" | "COMPACT" | "MIDSIZE" | "FULLSIZE" | "SUV" | "LUXURY" | "VAN" | "TRUCK")[] | undefined;
|
||||
minRentalDays?: number | undefined;
|
||||
maxRentalDays?: number | undefined;
|
||||
promoCode?: string | undefined;
|
||||
maxRedemptions?: number | undefined;
|
||||
isPublic?: boolean | undefined;
|
||||
isFeatured?: boolean | undefined;
|
||||
vehicleIds?: string[] | undefined;
|
||||
}>;
|
||||
export declare const listQuerySchema: z.ZodObject<{
|
||||
active: z.ZodOptional<z.ZodString>;
|
||||
public: z.ZodOptional<z.ZodString>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
active?: string | undefined;
|
||||
public?: string | undefined;
|
||||
}, {
|
||||
active?: string | undefined;
|
||||
public?: string | undefined;
|
||||
}>;
|
||||
export declare const idParamSchema: z.ZodObject<{
|
||||
id: z.ZodString;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
id: string;
|
||||
}, {
|
||||
id: string;
|
||||
}>;
|
||||
//# sourceMappingURL=offer.schemas.d.ts.map
|
||||
Reference in New Issue
Block a user