106 lines
3.5 KiB
TypeScript

import { z } from "zod";
export declare const emailSchema: z.ZodString;
export declare const passwordSchema: z.ZodString;
export declare const nameSchema: z.ZodString;
export declare const phoneSchema: z.ZodString;
export declare const countryCodeSchema: z.ZodString;
export declare const currencyCodeSchema: z.ZodString;
export declare const timestampSchema: z.ZodString;
export declare const dateSchema: z.ZodString;
export declare const moneyAmountSchema: z.ZodNumber;
export declare const percentageSchema: z.ZodNumber;
export declare const genderEnum: z.ZodEnum<{
male: "male";
female: "female";
other: "other";
}>;
export declare const statusEnum: z.ZodEnum<{
active: "active";
inactive: "inactive";
pending: "pending";
suspended: "suspended";
}>;
export declare const priorityEnum: z.ZodEnum<{
low: "low";
medium: "medium";
high: "high";
urgent: "urgent";
}>;
export declare const categoryEnum: z.ZodEnum<{
technical: "technical";
billing: "billing";
account: "account";
general: "general";
}>;
export declare const billingCycleEnum: z.ZodEnum<{
Monthly: "Monthly";
Quarterly: "Quarterly";
Annually: "Annually";
Onetime: "Onetime";
Free: "Free";
}>;
export declare const subscriptionBillingCycleEnum: z.ZodEnum<{
Monthly: "Monthly";
Quarterly: "Quarterly";
Annually: "Annually";
Free: "Free";
"Semi-Annually": "Semi-Annually";
Biennially: "Biennially";
Triennially: "Triennially";
"One-time": "One-time";
}>;
export declare const apiSuccessResponseSchema: <T extends z.ZodTypeAny>(dataSchema: T) => z.ZodObject<{
success: z.ZodLiteral<true>;
data: T;
}, z.core.$strip>;
export declare const apiErrorResponseSchema: z.ZodObject<{
success: z.ZodLiteral<false>;
error: z.ZodObject<{
code: z.ZodString;
message: z.ZodString;
details: z.ZodOptional<z.ZodUnknown>;
}, z.core.$strip>;
}, z.core.$strip>;
export declare const apiResponseSchema: <T extends z.ZodTypeAny>(dataSchema: T) => z.ZodDiscriminatedUnion<[z.ZodObject<{
success: z.ZodLiteral<true>;
data: T;
}, z.core.$strip>, z.ZodObject<{
success: z.ZodLiteral<false>;
error: z.ZodObject<{
code: z.ZodString;
message: z.ZodString;
details: z.ZodOptional<z.ZodUnknown>;
}, z.core.$strip>;
}, z.core.$strip>], "success">;
export declare const paginationParamsSchema: z.ZodObject<{
page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
offset: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
}, z.core.$strip>;
export declare const paginatedResponseSchema: <T extends z.ZodTypeAny>(itemSchema: T) => z.ZodObject<{
items: z.ZodArray<T>;
total: z.ZodNumber;
page: z.ZodNumber;
limit: z.ZodNumber;
hasMore: z.ZodBoolean;
}, z.core.$strip>;
export declare const filterParamsSchema: z.ZodObject<{
search: z.ZodOptional<z.ZodString>;
sortBy: z.ZodOptional<z.ZodString>;
sortOrder: z.ZodOptional<z.ZodEnum<{
asc: "asc";
desc: "desc";
}>>;
}, z.core.$strip>;
export declare const queryParamsSchema: z.ZodObject<{
page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
offset: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
search: z.ZodOptional<z.ZodString>;
sortBy: z.ZodOptional<z.ZodString>;
sortOrder: z.ZodOptional<z.ZodEnum<{
asc: "asc";
desc: "desc";
}>>;
}, z.core.$strip>;