22 lines
466 B
TypeScript
22 lines
466 B
TypeScript
import { z } from 'zod'
|
|
|
|
export const listPyDemosQuerySchema = z.object({
|
|
year: z.string().optional(),
|
|
})
|
|
|
|
export const createPyDemoSchema = z.object({
|
|
name: z.string().min(1),
|
|
year: z.string().min(1),
|
|
month: z.string().min(1),
|
|
folderStructure: z.string().optional(),
|
|
})
|
|
|
|
export const deletePyDemoSchema = z.object({
|
|
path: z.string().min(1),
|
|
})
|
|
|
|
export const renamePyDemoSchema = z.object({
|
|
oldPath: z.string().min(1),
|
|
newName: z.string().min(1),
|
|
})
|