17 lines
348 B
TypeScript
17 lines
348 B
TypeScript
import { z } from "zod";
|
|
|
|
export const ZUpdateInputSchema = z.object({
|
|
orgId: z
|
|
.string()
|
|
.regex(/^\d+$/)
|
|
.transform((id) => parseInt(id)),
|
|
bio: z.string().optional(),
|
|
logo: z
|
|
.string()
|
|
.optional()
|
|
.nullable()
|
|
.transform((v) => v || null),
|
|
});
|
|
|
|
export type TUpdateInputSchema = z.infer<typeof ZUpdateInputSchema>;
|