UNPKG

mt-flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

21 lines (20 loc) 1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.deleteByIdSchema = exports.EntityItemBaseSchema = exports.commonByIdSchema = exports.commonListInputSchema = exports.jsonSchema = exports.literalSchema = void 0; const zod_1 = require("zod"); exports.literalSchema = zod_1.z.union([zod_1.z.string(), zod_1.z.number(), zod_1.z.boolean()]); exports.jsonSchema = zod_1.z.lazy(() => zod_1.z.union([exports.literalSchema, zod_1.z.array(exports.jsonSchema), zod_1.z.record(exports.jsonSchema)])); exports.commonListInputSchema = zod_1.z.object({ keyword: zod_1.z.string().optional(), limit: zod_1.z.number().min(1).max(100).optional(), cursor: zod_1.z.string().nullish(), }); exports.commonByIdSchema = zod_1.z.object({ id: zod_1.z.string(), }); exports.EntityItemBaseSchema = zod_1.z.object({ id: zod_1.z.string().or(zod_1.z.number()).optional() }); exports.deleteByIdSchema = zod_1.z.object({ id: zod_1.z.string().or(zod_1.z.number()).optional() });