archetecture security fix
This commit is contained in:
@@ -0,0 +1,893 @@
|
||||
import { z } from 'zod';
|
||||
export declare const companySchema: z.ZodObject<{
|
||||
name: z.ZodOptional<z.ZodString>;
|
||||
email: z.ZodOptional<z.ZodString>;
|
||||
phone: z.ZodOptional<z.ZodString>;
|
||||
address: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
name?: string | undefined;
|
||||
email?: string | undefined;
|
||||
phone?: string | undefined;
|
||||
address?: Record<string, unknown> | undefined;
|
||||
}, {
|
||||
name?: string | undefined;
|
||||
email?: string | undefined;
|
||||
phone?: string | undefined;
|
||||
address?: Record<string, unknown> | undefined;
|
||||
}>;
|
||||
export declare const brandSchema: z.ZodObject<{
|
||||
displayName: z.ZodOptional<z.ZodString>;
|
||||
tagline: z.ZodOptional<z.ZodString>;
|
||||
primaryColor: z.ZodOptional<z.ZodString>;
|
||||
accentColor: z.ZodOptional<z.ZodString>;
|
||||
publicEmail: z.ZodOptional<z.ZodString>;
|
||||
publicPhone: z.ZodOptional<z.ZodString>;
|
||||
publicAddress: z.ZodOptional<z.ZodString>;
|
||||
publicCity: z.ZodOptional<z.ZodString>;
|
||||
publicCountry: z.ZodOptional<z.ZodString>;
|
||||
websiteUrl: z.ZodOptional<z.ZodString>;
|
||||
whatsappNumber: z.ZodOptional<z.ZodString>;
|
||||
defaultLocale: z.ZodOptional<z.ZodString>;
|
||||
defaultCurrency: z.ZodOptional<z.ZodLiteral<"MAD">>;
|
||||
amanpayMerchantId: z.ZodOptional<z.ZodString>;
|
||||
amanpaySecretKey: z.ZodOptional<z.ZodString>;
|
||||
paypalEmail: z.ZodOptional<z.ZodString>;
|
||||
paypalMerchantId: z.ZodOptional<z.ZodString>;
|
||||
isListedOnMarketplace: z.ZodOptional<z.ZodBoolean>;
|
||||
homePageConfig: z.ZodOptional<z.ZodObject<{
|
||||
heroTitle: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
||||
heroDescription: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
||||
viewOffersLabel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
||||
viewPricingLabel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
||||
contactCompanyLabel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
||||
activeOffersTitle: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
||||
seeAllOffersLabel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
||||
noActiveOffersLabel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
||||
publishedVehiclesTitle: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
||||
viewVehicleLabel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
||||
pricingEyebrow: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
||||
pricingTitle: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
||||
pricingDescription: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
||||
showOffers: z.ZodOptional<z.ZodBoolean>;
|
||||
showVehicles: z.ZodOptional<z.ZodBoolean>;
|
||||
showPricing: z.ZodOptional<z.ZodBoolean>;
|
||||
layout: z.ZodOptional<z.ZodObject<{
|
||||
items: z.ZodArray<z.ZodObject<{
|
||||
id: z.ZodString;
|
||||
type: z.ZodEnum<["hero", "offers", "vehicles", "pricing"]>;
|
||||
x: z.ZodNumber;
|
||||
y: z.ZodNumber;
|
||||
w: z.ZodNumber;
|
||||
h: z.ZodNumber;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
type: "hero" | "vehicles" | "pricing" | "offers";
|
||||
id: string;
|
||||
x: number;
|
||||
y: number;
|
||||
w: number;
|
||||
h: number;
|
||||
}, {
|
||||
type: "hero" | "vehicles" | "pricing" | "offers";
|
||||
id: string;
|
||||
x: number;
|
||||
y: number;
|
||||
w: number;
|
||||
h: number;
|
||||
}>, "many">;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
items: {
|
||||
type: "hero" | "vehicles" | "pricing" | "offers";
|
||||
id: string;
|
||||
x: number;
|
||||
y: number;
|
||||
w: number;
|
||||
h: number;
|
||||
}[];
|
||||
}, {
|
||||
items: {
|
||||
type: "hero" | "vehicles" | "pricing" | "offers";
|
||||
id: string;
|
||||
x: number;
|
||||
y: number;
|
||||
w: number;
|
||||
h: number;
|
||||
}[];
|
||||
}>>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
heroTitle?: string | null | undefined;
|
||||
heroDescription?: string | null | undefined;
|
||||
viewOffersLabel?: string | null | undefined;
|
||||
viewPricingLabel?: string | null | undefined;
|
||||
contactCompanyLabel?: string | null | undefined;
|
||||
activeOffersTitle?: string | null | undefined;
|
||||
seeAllOffersLabel?: string | null | undefined;
|
||||
noActiveOffersLabel?: string | null | undefined;
|
||||
publishedVehiclesTitle?: string | null | undefined;
|
||||
viewVehicleLabel?: string | null | undefined;
|
||||
pricingEyebrow?: string | null | undefined;
|
||||
pricingTitle?: string | null | undefined;
|
||||
pricingDescription?: string | null | undefined;
|
||||
showOffers?: boolean | undefined;
|
||||
showVehicles?: boolean | undefined;
|
||||
showPricing?: boolean | undefined;
|
||||
layout?: {
|
||||
items: {
|
||||
type: "hero" | "vehicles" | "pricing" | "offers";
|
||||
id: string;
|
||||
x: number;
|
||||
y: number;
|
||||
w: number;
|
||||
h: number;
|
||||
}[];
|
||||
} | undefined;
|
||||
}, {
|
||||
heroTitle?: string | null | undefined;
|
||||
heroDescription?: string | null | undefined;
|
||||
viewOffersLabel?: string | null | undefined;
|
||||
viewPricingLabel?: string | null | undefined;
|
||||
contactCompanyLabel?: string | null | undefined;
|
||||
activeOffersTitle?: string | null | undefined;
|
||||
seeAllOffersLabel?: string | null | undefined;
|
||||
noActiveOffersLabel?: string | null | undefined;
|
||||
publishedVehiclesTitle?: string | null | undefined;
|
||||
viewVehicleLabel?: string | null | undefined;
|
||||
pricingEyebrow?: string | null | undefined;
|
||||
pricingTitle?: string | null | undefined;
|
||||
pricingDescription?: string | null | undefined;
|
||||
showOffers?: boolean | undefined;
|
||||
showVehicles?: boolean | undefined;
|
||||
showPricing?: boolean | undefined;
|
||||
layout?: {
|
||||
items: {
|
||||
type: "hero" | "vehicles" | "pricing" | "offers";
|
||||
id: string;
|
||||
x: number;
|
||||
y: number;
|
||||
w: number;
|
||||
h: number;
|
||||
}[];
|
||||
} | undefined;
|
||||
}>>;
|
||||
menuConfig: z.ZodOptional<z.ZodObject<{
|
||||
aboutLabel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
||||
vehiclesLabel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
||||
offersLabel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
||||
pricingLabel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
||||
blogLabel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
||||
contactLabel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
||||
bookCarLabel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
||||
siteNavigationLabel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
||||
showAbout: z.ZodOptional<z.ZodBoolean>;
|
||||
showVehicles: z.ZodOptional<z.ZodBoolean>;
|
||||
showOffers: z.ZodOptional<z.ZodBoolean>;
|
||||
showPricing: z.ZodOptional<z.ZodBoolean>;
|
||||
showBlog: z.ZodOptional<z.ZodBoolean>;
|
||||
showContact: z.ZodOptional<z.ZodBoolean>;
|
||||
pageSections: z.ZodOptional<z.ZodObject<{
|
||||
home: z.ZodOptional<z.ZodObject<{
|
||||
hero: z.ZodOptional<z.ZodBoolean>;
|
||||
offers: z.ZodOptional<z.ZodBoolean>;
|
||||
vehicles: z.ZodOptional<z.ZodBoolean>;
|
||||
pricing: z.ZodOptional<z.ZodBoolean>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
hero?: boolean | undefined;
|
||||
vehicles?: boolean | undefined;
|
||||
pricing?: boolean | undefined;
|
||||
offers?: boolean | undefined;
|
||||
}, {
|
||||
hero?: boolean | undefined;
|
||||
vehicles?: boolean | undefined;
|
||||
pricing?: boolean | undefined;
|
||||
offers?: boolean | undefined;
|
||||
}>>;
|
||||
about: z.ZodOptional<z.ZodObject<{
|
||||
hero: z.ZodOptional<z.ZodBoolean>;
|
||||
highlights: z.ZodOptional<z.ZodBoolean>;
|
||||
details: z.ZodOptional<z.ZodBoolean>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
details?: boolean | undefined;
|
||||
hero?: boolean | undefined;
|
||||
highlights?: boolean | undefined;
|
||||
}, {
|
||||
details?: boolean | undefined;
|
||||
hero?: boolean | undefined;
|
||||
highlights?: boolean | undefined;
|
||||
}>>;
|
||||
offers: z.ZodOptional<z.ZodObject<{
|
||||
header: z.ZodOptional<z.ZodBoolean>;
|
||||
grid: z.ZodOptional<z.ZodBoolean>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
header?: boolean | undefined;
|
||||
grid?: boolean | undefined;
|
||||
}, {
|
||||
header?: boolean | undefined;
|
||||
grid?: boolean | undefined;
|
||||
}>>;
|
||||
pricing: z.ZodOptional<z.ZodObject<{
|
||||
hero: z.ZodOptional<z.ZodBoolean>;
|
||||
plans: z.ZodOptional<z.ZodBoolean>;
|
||||
payments: z.ZodOptional<z.ZodBoolean>;
|
||||
faq: z.ZodOptional<z.ZodBoolean>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
plans?: boolean | undefined;
|
||||
hero?: boolean | undefined;
|
||||
payments?: boolean | undefined;
|
||||
faq?: boolean | undefined;
|
||||
}, {
|
||||
plans?: boolean | undefined;
|
||||
hero?: boolean | undefined;
|
||||
payments?: boolean | undefined;
|
||||
faq?: boolean | undefined;
|
||||
}>>;
|
||||
vehicles: z.ZodOptional<z.ZodObject<{
|
||||
header: z.ZodOptional<z.ZodBoolean>;
|
||||
filters: z.ZodOptional<z.ZodBoolean>;
|
||||
grid: z.ZodOptional<z.ZodBoolean>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
header?: boolean | undefined;
|
||||
grid?: boolean | undefined;
|
||||
filters?: boolean | undefined;
|
||||
}, {
|
||||
header?: boolean | undefined;
|
||||
grid?: boolean | undefined;
|
||||
filters?: boolean | undefined;
|
||||
}>>;
|
||||
vehicleDetail: z.ZodOptional<z.ZodObject<{
|
||||
gallery: z.ZodOptional<z.ZodBoolean>;
|
||||
summary: z.ZodOptional<z.ZodBoolean>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
summary?: boolean | undefined;
|
||||
gallery?: boolean | undefined;
|
||||
}, {
|
||||
summary?: boolean | undefined;
|
||||
gallery?: boolean | undefined;
|
||||
}>>;
|
||||
blog: z.ZodOptional<z.ZodObject<{
|
||||
hero: z.ZodOptional<z.ZodBoolean>;
|
||||
posts: z.ZodOptional<z.ZodBoolean>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
hero?: boolean | undefined;
|
||||
posts?: boolean | undefined;
|
||||
}, {
|
||||
hero?: boolean | undefined;
|
||||
posts?: boolean | undefined;
|
||||
}>>;
|
||||
contact: z.ZodOptional<z.ZodObject<{
|
||||
content: z.ZodOptional<z.ZodBoolean>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
content?: boolean | undefined;
|
||||
}, {
|
||||
content?: boolean | undefined;
|
||||
}>>;
|
||||
booking: z.ZodOptional<z.ZodObject<{
|
||||
content: z.ZodOptional<z.ZodBoolean>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
content?: boolean | undefined;
|
||||
}, {
|
||||
content?: boolean | undefined;
|
||||
}>>;
|
||||
bookingConfirmation: z.ZodOptional<z.ZodObject<{
|
||||
hero: z.ZodOptional<z.ZodBoolean>;
|
||||
summary: z.ZodOptional<z.ZodBoolean>;
|
||||
actions: z.ZodOptional<z.ZodBoolean>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
summary?: boolean | undefined;
|
||||
actions?: boolean | undefined;
|
||||
hero?: boolean | undefined;
|
||||
}, {
|
||||
summary?: boolean | undefined;
|
||||
actions?: boolean | undefined;
|
||||
hero?: boolean | undefined;
|
||||
}>>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
vehicles?: {
|
||||
header?: boolean | undefined;
|
||||
grid?: boolean | undefined;
|
||||
filters?: boolean | undefined;
|
||||
} | undefined;
|
||||
pricing?: {
|
||||
plans?: boolean | undefined;
|
||||
hero?: boolean | undefined;
|
||||
payments?: boolean | undefined;
|
||||
faq?: boolean | undefined;
|
||||
} | undefined;
|
||||
offers?: {
|
||||
header?: boolean | undefined;
|
||||
grid?: boolean | undefined;
|
||||
} | undefined;
|
||||
home?: {
|
||||
hero?: boolean | undefined;
|
||||
vehicles?: boolean | undefined;
|
||||
pricing?: boolean | undefined;
|
||||
offers?: boolean | undefined;
|
||||
} | undefined;
|
||||
about?: {
|
||||
details?: boolean | undefined;
|
||||
hero?: boolean | undefined;
|
||||
highlights?: boolean | undefined;
|
||||
} | undefined;
|
||||
vehicleDetail?: {
|
||||
summary?: boolean | undefined;
|
||||
gallery?: boolean | undefined;
|
||||
} | undefined;
|
||||
blog?: {
|
||||
hero?: boolean | undefined;
|
||||
posts?: boolean | undefined;
|
||||
} | undefined;
|
||||
contact?: {
|
||||
content?: boolean | undefined;
|
||||
} | undefined;
|
||||
booking?: {
|
||||
content?: boolean | undefined;
|
||||
} | undefined;
|
||||
bookingConfirmation?: {
|
||||
summary?: boolean | undefined;
|
||||
actions?: boolean | undefined;
|
||||
hero?: boolean | undefined;
|
||||
} | undefined;
|
||||
}, {
|
||||
vehicles?: {
|
||||
header?: boolean | undefined;
|
||||
grid?: boolean | undefined;
|
||||
filters?: boolean | undefined;
|
||||
} | undefined;
|
||||
pricing?: {
|
||||
plans?: boolean | undefined;
|
||||
hero?: boolean | undefined;
|
||||
payments?: boolean | undefined;
|
||||
faq?: boolean | undefined;
|
||||
} | undefined;
|
||||
offers?: {
|
||||
header?: boolean | undefined;
|
||||
grid?: boolean | undefined;
|
||||
} | undefined;
|
||||
home?: {
|
||||
hero?: boolean | undefined;
|
||||
vehicles?: boolean | undefined;
|
||||
pricing?: boolean | undefined;
|
||||
offers?: boolean | undefined;
|
||||
} | undefined;
|
||||
about?: {
|
||||
details?: boolean | undefined;
|
||||
hero?: boolean | undefined;
|
||||
highlights?: boolean | undefined;
|
||||
} | undefined;
|
||||
vehicleDetail?: {
|
||||
summary?: boolean | undefined;
|
||||
gallery?: boolean | undefined;
|
||||
} | undefined;
|
||||
blog?: {
|
||||
hero?: boolean | undefined;
|
||||
posts?: boolean | undefined;
|
||||
} | undefined;
|
||||
contact?: {
|
||||
content?: boolean | undefined;
|
||||
} | undefined;
|
||||
booking?: {
|
||||
content?: boolean | undefined;
|
||||
} | undefined;
|
||||
bookingConfirmation?: {
|
||||
summary?: boolean | undefined;
|
||||
actions?: boolean | undefined;
|
||||
hero?: boolean | undefined;
|
||||
} | undefined;
|
||||
}>>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
showOffers?: boolean | undefined;
|
||||
showVehicles?: boolean | undefined;
|
||||
showPricing?: boolean | undefined;
|
||||
aboutLabel?: string | null | undefined;
|
||||
vehiclesLabel?: string | null | undefined;
|
||||
offersLabel?: string | null | undefined;
|
||||
pricingLabel?: string | null | undefined;
|
||||
blogLabel?: string | null | undefined;
|
||||
contactLabel?: string | null | undefined;
|
||||
bookCarLabel?: string | null | undefined;
|
||||
siteNavigationLabel?: string | null | undefined;
|
||||
showAbout?: boolean | undefined;
|
||||
showBlog?: boolean | undefined;
|
||||
showContact?: boolean | undefined;
|
||||
pageSections?: {
|
||||
vehicles?: {
|
||||
header?: boolean | undefined;
|
||||
grid?: boolean | undefined;
|
||||
filters?: boolean | undefined;
|
||||
} | undefined;
|
||||
pricing?: {
|
||||
plans?: boolean | undefined;
|
||||
hero?: boolean | undefined;
|
||||
payments?: boolean | undefined;
|
||||
faq?: boolean | undefined;
|
||||
} | undefined;
|
||||
offers?: {
|
||||
header?: boolean | undefined;
|
||||
grid?: boolean | undefined;
|
||||
} | undefined;
|
||||
home?: {
|
||||
hero?: boolean | undefined;
|
||||
vehicles?: boolean | undefined;
|
||||
pricing?: boolean | undefined;
|
||||
offers?: boolean | undefined;
|
||||
} | undefined;
|
||||
about?: {
|
||||
details?: boolean | undefined;
|
||||
hero?: boolean | undefined;
|
||||
highlights?: boolean | undefined;
|
||||
} | undefined;
|
||||
vehicleDetail?: {
|
||||
summary?: boolean | undefined;
|
||||
gallery?: boolean | undefined;
|
||||
} | undefined;
|
||||
blog?: {
|
||||
hero?: boolean | undefined;
|
||||
posts?: boolean | undefined;
|
||||
} | undefined;
|
||||
contact?: {
|
||||
content?: boolean | undefined;
|
||||
} | undefined;
|
||||
booking?: {
|
||||
content?: boolean | undefined;
|
||||
} | undefined;
|
||||
bookingConfirmation?: {
|
||||
summary?: boolean | undefined;
|
||||
actions?: boolean | undefined;
|
||||
hero?: boolean | undefined;
|
||||
} | undefined;
|
||||
} | undefined;
|
||||
}, {
|
||||
showOffers?: boolean | undefined;
|
||||
showVehicles?: boolean | undefined;
|
||||
showPricing?: boolean | undefined;
|
||||
aboutLabel?: string | null | undefined;
|
||||
vehiclesLabel?: string | null | undefined;
|
||||
offersLabel?: string | null | undefined;
|
||||
pricingLabel?: string | null | undefined;
|
||||
blogLabel?: string | null | undefined;
|
||||
contactLabel?: string | null | undefined;
|
||||
bookCarLabel?: string | null | undefined;
|
||||
siteNavigationLabel?: string | null | undefined;
|
||||
showAbout?: boolean | undefined;
|
||||
showBlog?: boolean | undefined;
|
||||
showContact?: boolean | undefined;
|
||||
pageSections?: {
|
||||
vehicles?: {
|
||||
header?: boolean | undefined;
|
||||
grid?: boolean | undefined;
|
||||
filters?: boolean | undefined;
|
||||
} | undefined;
|
||||
pricing?: {
|
||||
plans?: boolean | undefined;
|
||||
hero?: boolean | undefined;
|
||||
payments?: boolean | undefined;
|
||||
faq?: boolean | undefined;
|
||||
} | undefined;
|
||||
offers?: {
|
||||
header?: boolean | undefined;
|
||||
grid?: boolean | undefined;
|
||||
} | undefined;
|
||||
home?: {
|
||||
hero?: boolean | undefined;
|
||||
vehicles?: boolean | undefined;
|
||||
pricing?: boolean | undefined;
|
||||
offers?: boolean | undefined;
|
||||
} | undefined;
|
||||
about?: {
|
||||
details?: boolean | undefined;
|
||||
hero?: boolean | undefined;
|
||||
highlights?: boolean | undefined;
|
||||
} | undefined;
|
||||
vehicleDetail?: {
|
||||
summary?: boolean | undefined;
|
||||
gallery?: boolean | undefined;
|
||||
} | undefined;
|
||||
blog?: {
|
||||
hero?: boolean | undefined;
|
||||
posts?: boolean | undefined;
|
||||
} | undefined;
|
||||
contact?: {
|
||||
content?: boolean | undefined;
|
||||
} | undefined;
|
||||
booking?: {
|
||||
content?: boolean | undefined;
|
||||
} | undefined;
|
||||
bookingConfirmation?: {
|
||||
summary?: boolean | undefined;
|
||||
actions?: boolean | undefined;
|
||||
hero?: boolean | undefined;
|
||||
} | undefined;
|
||||
} | undefined;
|
||||
}>>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
displayName?: string | undefined;
|
||||
tagline?: string | undefined;
|
||||
publicEmail?: string | undefined;
|
||||
publicPhone?: string | undefined;
|
||||
publicAddress?: string | undefined;
|
||||
publicCity?: string | undefined;
|
||||
publicCountry?: string | undefined;
|
||||
websiteUrl?: string | undefined;
|
||||
whatsappNumber?: string | undefined;
|
||||
defaultLocale?: string | undefined;
|
||||
defaultCurrency?: "MAD" | undefined;
|
||||
isListedOnMarketplace?: boolean | undefined;
|
||||
homePageConfig?: {
|
||||
heroTitle?: string | null | undefined;
|
||||
heroDescription?: string | null | undefined;
|
||||
viewOffersLabel?: string | null | undefined;
|
||||
viewPricingLabel?: string | null | undefined;
|
||||
contactCompanyLabel?: string | null | undefined;
|
||||
activeOffersTitle?: string | null | undefined;
|
||||
seeAllOffersLabel?: string | null | undefined;
|
||||
noActiveOffersLabel?: string | null | undefined;
|
||||
publishedVehiclesTitle?: string | null | undefined;
|
||||
viewVehicleLabel?: string | null | undefined;
|
||||
pricingEyebrow?: string | null | undefined;
|
||||
pricingTitle?: string | null | undefined;
|
||||
pricingDescription?: string | null | undefined;
|
||||
showOffers?: boolean | undefined;
|
||||
showVehicles?: boolean | undefined;
|
||||
showPricing?: boolean | undefined;
|
||||
layout?: {
|
||||
items: {
|
||||
type: "hero" | "vehicles" | "pricing" | "offers";
|
||||
id: string;
|
||||
x: number;
|
||||
y: number;
|
||||
w: number;
|
||||
h: number;
|
||||
}[];
|
||||
} | undefined;
|
||||
} | undefined;
|
||||
menuConfig?: {
|
||||
showOffers?: boolean | undefined;
|
||||
showVehicles?: boolean | undefined;
|
||||
showPricing?: boolean | undefined;
|
||||
aboutLabel?: string | null | undefined;
|
||||
vehiclesLabel?: string | null | undefined;
|
||||
offersLabel?: string | null | undefined;
|
||||
pricingLabel?: string | null | undefined;
|
||||
blogLabel?: string | null | undefined;
|
||||
contactLabel?: string | null | undefined;
|
||||
bookCarLabel?: string | null | undefined;
|
||||
siteNavigationLabel?: string | null | undefined;
|
||||
showAbout?: boolean | undefined;
|
||||
showBlog?: boolean | undefined;
|
||||
showContact?: boolean | undefined;
|
||||
pageSections?: {
|
||||
vehicles?: {
|
||||
header?: boolean | undefined;
|
||||
grid?: boolean | undefined;
|
||||
filters?: boolean | undefined;
|
||||
} | undefined;
|
||||
pricing?: {
|
||||
plans?: boolean | undefined;
|
||||
hero?: boolean | undefined;
|
||||
payments?: boolean | undefined;
|
||||
faq?: boolean | undefined;
|
||||
} | undefined;
|
||||
offers?: {
|
||||
header?: boolean | undefined;
|
||||
grid?: boolean | undefined;
|
||||
} | undefined;
|
||||
home?: {
|
||||
hero?: boolean | undefined;
|
||||
vehicles?: boolean | undefined;
|
||||
pricing?: boolean | undefined;
|
||||
offers?: boolean | undefined;
|
||||
} | undefined;
|
||||
about?: {
|
||||
details?: boolean | undefined;
|
||||
hero?: boolean | undefined;
|
||||
highlights?: boolean | undefined;
|
||||
} | undefined;
|
||||
vehicleDetail?: {
|
||||
summary?: boolean | undefined;
|
||||
gallery?: boolean | undefined;
|
||||
} | undefined;
|
||||
blog?: {
|
||||
hero?: boolean | undefined;
|
||||
posts?: boolean | undefined;
|
||||
} | undefined;
|
||||
contact?: {
|
||||
content?: boolean | undefined;
|
||||
} | undefined;
|
||||
booking?: {
|
||||
content?: boolean | undefined;
|
||||
} | undefined;
|
||||
bookingConfirmation?: {
|
||||
summary?: boolean | undefined;
|
||||
actions?: boolean | undefined;
|
||||
hero?: boolean | undefined;
|
||||
} | undefined;
|
||||
} | undefined;
|
||||
} | undefined;
|
||||
amanpaySecretKey?: string | undefined;
|
||||
amanpayMerchantId?: string | undefined;
|
||||
paypalEmail?: string | undefined;
|
||||
paypalMerchantId?: string | undefined;
|
||||
primaryColor?: string | undefined;
|
||||
accentColor?: string | undefined;
|
||||
}, {
|
||||
displayName?: string | undefined;
|
||||
tagline?: string | undefined;
|
||||
publicEmail?: string | undefined;
|
||||
publicPhone?: string | undefined;
|
||||
publicAddress?: string | undefined;
|
||||
publicCity?: string | undefined;
|
||||
publicCountry?: string | undefined;
|
||||
websiteUrl?: string | undefined;
|
||||
whatsappNumber?: string | undefined;
|
||||
defaultLocale?: string | undefined;
|
||||
defaultCurrency?: "MAD" | undefined;
|
||||
isListedOnMarketplace?: boolean | undefined;
|
||||
homePageConfig?: {
|
||||
heroTitle?: string | null | undefined;
|
||||
heroDescription?: string | null | undefined;
|
||||
viewOffersLabel?: string | null | undefined;
|
||||
viewPricingLabel?: string | null | undefined;
|
||||
contactCompanyLabel?: string | null | undefined;
|
||||
activeOffersTitle?: string | null | undefined;
|
||||
seeAllOffersLabel?: string | null | undefined;
|
||||
noActiveOffersLabel?: string | null | undefined;
|
||||
publishedVehiclesTitle?: string | null | undefined;
|
||||
viewVehicleLabel?: string | null | undefined;
|
||||
pricingEyebrow?: string | null | undefined;
|
||||
pricingTitle?: string | null | undefined;
|
||||
pricingDescription?: string | null | undefined;
|
||||
showOffers?: boolean | undefined;
|
||||
showVehicles?: boolean | undefined;
|
||||
showPricing?: boolean | undefined;
|
||||
layout?: {
|
||||
items: {
|
||||
type: "hero" | "vehicles" | "pricing" | "offers";
|
||||
id: string;
|
||||
x: number;
|
||||
y: number;
|
||||
w: number;
|
||||
h: number;
|
||||
}[];
|
||||
} | undefined;
|
||||
} | undefined;
|
||||
menuConfig?: {
|
||||
showOffers?: boolean | undefined;
|
||||
showVehicles?: boolean | undefined;
|
||||
showPricing?: boolean | undefined;
|
||||
aboutLabel?: string | null | undefined;
|
||||
vehiclesLabel?: string | null | undefined;
|
||||
offersLabel?: string | null | undefined;
|
||||
pricingLabel?: string | null | undefined;
|
||||
blogLabel?: string | null | undefined;
|
||||
contactLabel?: string | null | undefined;
|
||||
bookCarLabel?: string | null | undefined;
|
||||
siteNavigationLabel?: string | null | undefined;
|
||||
showAbout?: boolean | undefined;
|
||||
showBlog?: boolean | undefined;
|
||||
showContact?: boolean | undefined;
|
||||
pageSections?: {
|
||||
vehicles?: {
|
||||
header?: boolean | undefined;
|
||||
grid?: boolean | undefined;
|
||||
filters?: boolean | undefined;
|
||||
} | undefined;
|
||||
pricing?: {
|
||||
plans?: boolean | undefined;
|
||||
hero?: boolean | undefined;
|
||||
payments?: boolean | undefined;
|
||||
faq?: boolean | undefined;
|
||||
} | undefined;
|
||||
offers?: {
|
||||
header?: boolean | undefined;
|
||||
grid?: boolean | undefined;
|
||||
} | undefined;
|
||||
home?: {
|
||||
hero?: boolean | undefined;
|
||||
vehicles?: boolean | undefined;
|
||||
pricing?: boolean | undefined;
|
||||
offers?: boolean | undefined;
|
||||
} | undefined;
|
||||
about?: {
|
||||
details?: boolean | undefined;
|
||||
hero?: boolean | undefined;
|
||||
highlights?: boolean | undefined;
|
||||
} | undefined;
|
||||
vehicleDetail?: {
|
||||
summary?: boolean | undefined;
|
||||
gallery?: boolean | undefined;
|
||||
} | undefined;
|
||||
blog?: {
|
||||
hero?: boolean | undefined;
|
||||
posts?: boolean | undefined;
|
||||
} | undefined;
|
||||
contact?: {
|
||||
content?: boolean | undefined;
|
||||
} | undefined;
|
||||
booking?: {
|
||||
content?: boolean | undefined;
|
||||
} | undefined;
|
||||
bookingConfirmation?: {
|
||||
summary?: boolean | undefined;
|
||||
actions?: boolean | undefined;
|
||||
hero?: boolean | undefined;
|
||||
} | undefined;
|
||||
} | undefined;
|
||||
} | undefined;
|
||||
amanpaySecretKey?: string | undefined;
|
||||
amanpayMerchantId?: string | undefined;
|
||||
paypalEmail?: string | undefined;
|
||||
paypalMerchantId?: string | undefined;
|
||||
primaryColor?: string | undefined;
|
||||
accentColor?: string | undefined;
|
||||
}>;
|
||||
export declare const contractSettingsSchema: z.ZodObject<{
|
||||
legalName: z.ZodOptional<z.ZodString>;
|
||||
registrationNumber: z.ZodOptional<z.ZodString>;
|
||||
taxId: z.ZodOptional<z.ZodString>;
|
||||
terms: z.ZodOptional<z.ZodString>;
|
||||
fuelPolicy: z.ZodOptional<z.ZodString>;
|
||||
depositPolicy: z.ZodOptional<z.ZodString>;
|
||||
lateFeePolicy: z.ZodOptional<z.ZodString>;
|
||||
damagePolicy: z.ZodOptional<z.ZodString>;
|
||||
contractFooterNote: z.ZodOptional<z.ZodString>;
|
||||
invoiceFooterNote: z.ZodOptional<z.ZodString>;
|
||||
signatureRequired: z.ZodOptional<z.ZodBoolean>;
|
||||
showTax: z.ZodOptional<z.ZodBoolean>;
|
||||
taxRate: z.ZodOptional<z.ZodNumber>;
|
||||
taxLabel: z.ZodOptional<z.ZodString>;
|
||||
fuelPolicyType: z.ZodOptional<z.ZodEnum<["FULL_TO_FULL", "FULL_TO_EMPTY", "SAME_TO_SAME", "PREPAID", "FREE"]>>;
|
||||
fuelPolicyNote: z.ZodOptional<z.ZodString>;
|
||||
fuelChargePerLiter: z.ZodOptional<z.ZodNumber>;
|
||||
fuelShortfallFee: z.ZodOptional<z.ZodNumber>;
|
||||
lateFeePerHour: z.ZodOptional<z.ZodNumber>;
|
||||
additionalDriverCharge: z.ZodOptional<z.ZodEnum<["FREE", "PER_DAY", "FLAT"]>>;
|
||||
additionalDriverDailyRate: z.ZodOptional<z.ZodNumber>;
|
||||
additionalDriverFlatRate: z.ZodOptional<z.ZodNumber>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
legalName?: string | undefined;
|
||||
registrationNumber?: string | undefined;
|
||||
taxId?: string | undefined;
|
||||
terms?: string | undefined;
|
||||
fuelPolicyType?: "FULL_TO_FULL" | "FULL_TO_EMPTY" | "SAME_TO_SAME" | "PREPAID" | "FREE" | undefined;
|
||||
lateFeePerHour?: number | undefined;
|
||||
taxRate?: number | undefined;
|
||||
signatureRequired?: boolean | undefined;
|
||||
showTax?: boolean | undefined;
|
||||
fuelPolicy?: string | undefined;
|
||||
depositPolicy?: string | undefined;
|
||||
lateFeePolicy?: string | undefined;
|
||||
damagePolicy?: string | undefined;
|
||||
contractFooterNote?: string | undefined;
|
||||
invoiceFooterNote?: string | undefined;
|
||||
taxLabel?: string | undefined;
|
||||
fuelPolicyNote?: string | undefined;
|
||||
fuelChargePerLiter?: number | undefined;
|
||||
fuelShortfallFee?: number | undefined;
|
||||
additionalDriverCharge?: "FREE" | "PER_DAY" | "FLAT" | undefined;
|
||||
additionalDriverDailyRate?: number | undefined;
|
||||
additionalDriverFlatRate?: number | undefined;
|
||||
}, {
|
||||
legalName?: string | undefined;
|
||||
registrationNumber?: string | undefined;
|
||||
taxId?: string | undefined;
|
||||
terms?: string | undefined;
|
||||
fuelPolicyType?: "FULL_TO_FULL" | "FULL_TO_EMPTY" | "SAME_TO_SAME" | "PREPAID" | "FREE" | undefined;
|
||||
lateFeePerHour?: number | undefined;
|
||||
taxRate?: number | undefined;
|
||||
signatureRequired?: boolean | undefined;
|
||||
showTax?: boolean | undefined;
|
||||
fuelPolicy?: string | undefined;
|
||||
depositPolicy?: string | undefined;
|
||||
lateFeePolicy?: string | undefined;
|
||||
damagePolicy?: string | undefined;
|
||||
contractFooterNote?: string | undefined;
|
||||
invoiceFooterNote?: string | undefined;
|
||||
taxLabel?: string | undefined;
|
||||
fuelPolicyNote?: string | undefined;
|
||||
fuelChargePerLiter?: number | undefined;
|
||||
fuelShortfallFee?: number | undefined;
|
||||
additionalDriverCharge?: "FREE" | "PER_DAY" | "FLAT" | undefined;
|
||||
additionalDriverDailyRate?: number | undefined;
|
||||
additionalDriverFlatRate?: number | undefined;
|
||||
}>;
|
||||
export declare const insurancePolicySchema: z.ZodObject<{
|
||||
name: z.ZodString;
|
||||
description: z.ZodOptional<z.ZodString>;
|
||||
type: z.ZodEnum<["CDW", "SCDW", "THEFT", "THIRD_PARTY", "FULL", "BASIC", "ROADSIDE", "PERSONAL", "CUSTOM"]>;
|
||||
chargeType: z.ZodEnum<["PER_DAY", "PER_RENTAL", "PERCENTAGE_OF_RENTAL"]>;
|
||||
chargeValue: z.ZodNumber;
|
||||
isRequired: z.ZodDefault<z.ZodBoolean>;
|
||||
isActive: z.ZodDefault<z.ZodBoolean>;
|
||||
sortOrder: z.ZodDefault<z.ZodNumber>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
type: "FULL" | "CDW" | "SCDW" | "THEFT" | "THIRD_PARTY" | "BASIC" | "ROADSIDE" | "PERSONAL" | "CUSTOM";
|
||||
name: string;
|
||||
isActive: boolean;
|
||||
sortOrder: number;
|
||||
isRequired: boolean;
|
||||
chargeType: "PER_DAY" | "PER_RENTAL" | "PERCENTAGE_OF_RENTAL";
|
||||
chargeValue: number;
|
||||
description?: string | undefined;
|
||||
}, {
|
||||
type: "FULL" | "CDW" | "SCDW" | "THEFT" | "THIRD_PARTY" | "BASIC" | "ROADSIDE" | "PERSONAL" | "CUSTOM";
|
||||
name: string;
|
||||
chargeType: "PER_DAY" | "PER_RENTAL" | "PERCENTAGE_OF_RENTAL";
|
||||
chargeValue: number;
|
||||
description?: string | undefined;
|
||||
isActive?: boolean | undefined;
|
||||
sortOrder?: number | undefined;
|
||||
isRequired?: boolean | undefined;
|
||||
}>;
|
||||
export declare const pricingRuleSchema: z.ZodObject<{
|
||||
name: z.ZodString;
|
||||
type: z.ZodEnum<["SURCHARGE", "DISCOUNT"]>;
|
||||
condition: z.ZodEnum<["AGE_LESS_THAN", "AGE_GREATER_THAN", "LICENSE_YEARS_LESS_THAN", "LICENSE_YEARS_GREATER_THAN"]>;
|
||||
conditionValue: z.ZodNumber;
|
||||
adjustmentType: z.ZodEnum<["PERCENTAGE", "FLAT_PER_DAY", "FLAT_TOTAL"]>;
|
||||
adjustmentValue: z.ZodNumber;
|
||||
isActive: z.ZodDefault<z.ZodBoolean>;
|
||||
description: z.ZodOptional<z.ZodString>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
type: "DISCOUNT" | "SURCHARGE";
|
||||
name: string;
|
||||
isActive: boolean;
|
||||
condition: "AGE_LESS_THAN" | "AGE_GREATER_THAN" | "LICENSE_YEARS_LESS_THAN" | "LICENSE_YEARS_GREATER_THAN";
|
||||
conditionValue: number;
|
||||
adjustmentType: "PERCENTAGE" | "FLAT_PER_DAY" | "FLAT_TOTAL";
|
||||
adjustmentValue: number;
|
||||
description?: string | undefined;
|
||||
}, {
|
||||
type: "DISCOUNT" | "SURCHARGE";
|
||||
name: string;
|
||||
condition: "AGE_LESS_THAN" | "AGE_GREATER_THAN" | "LICENSE_YEARS_LESS_THAN" | "LICENSE_YEARS_GREATER_THAN";
|
||||
conditionValue: number;
|
||||
adjustmentType: "PERCENTAGE" | "FLAT_PER_DAY" | "FLAT_TOTAL";
|
||||
adjustmentValue: number;
|
||||
description?: string | undefined;
|
||||
isActive?: boolean | undefined;
|
||||
}>;
|
||||
export declare const accountingSettingsSchema: z.ZodObject<{
|
||||
reportingPeriod: z.ZodOptional<z.ZodEnum<["WEEKLY", "MONTHLY", "QUARTERLY", "ANNUAL"]>>;
|
||||
fiscalYearStart: z.ZodOptional<z.ZodNumber>;
|
||||
currency: z.ZodOptional<z.ZodLiteral<"MAD">>;
|
||||
accountantEmail: z.ZodOptional<z.ZodString>;
|
||||
accountantName: z.ZodOptional<z.ZodString>;
|
||||
autoSendReport: z.ZodOptional<z.ZodBoolean>;
|
||||
reportFormat: z.ZodOptional<z.ZodEnum<["PDF", "CSV", "BOTH"]>>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
currency?: "MAD" | undefined;
|
||||
reportingPeriod?: "MONTHLY" | "ANNUAL" | "WEEKLY" | "QUARTERLY" | undefined;
|
||||
fiscalYearStart?: number | undefined;
|
||||
accountantEmail?: string | undefined;
|
||||
accountantName?: string | undefined;
|
||||
autoSendReport?: boolean | undefined;
|
||||
reportFormat?: "CSV" | "PDF" | "BOTH" | undefined;
|
||||
}, {
|
||||
currency?: "MAD" | undefined;
|
||||
reportingPeriod?: "MONTHLY" | "ANNUAL" | "WEEKLY" | "QUARTERLY" | undefined;
|
||||
fiscalYearStart?: number | undefined;
|
||||
accountantEmail?: string | undefined;
|
||||
accountantName?: string | undefined;
|
||||
autoSendReport?: boolean | undefined;
|
||||
reportFormat?: "CSV" | "PDF" | "BOTH" | undefined;
|
||||
}>;
|
||||
export declare const subdomainSchema: z.ZodObject<{
|
||||
subdomain: z.ZodString;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
subdomain: string;
|
||||
}, {
|
||||
subdomain: string;
|
||||
}>;
|
||||
export declare const customDomainSchema: z.ZodObject<{
|
||||
customDomain: z.ZodString;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
customDomain: string;
|
||||
}, {
|
||||
customDomain: string;
|
||||
}>;
|
||||
export declare const idParamSchema: z.ZodObject<{
|
||||
id: z.ZodString;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
id: string;
|
||||
}, {
|
||||
id: string;
|
||||
}>;
|
||||
//# sourceMappingURL=company.schemas.d.ts.map
|
||||
Reference in New Issue
Block a user