mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-02 14:04:50 +00:00
initial commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import { z } from 'zod'
|
||||
|
||||
export const createFolderRequestSchema = z.object({
|
||||
name: z.string(),
|
||||
parentId: z.string(),
|
||||
})
|
||||
export type CreateFolderRequest = z.infer<typeof createFolderRequestSchema>
|
||||
|
||||
export const updateFolderRequestSchema = z.object({
|
||||
name: z.string(),
|
||||
})
|
||||
export type UpdateFolderRequest = z.infer<typeof updateFolderRequestSchema>
|
||||
|
||||
export const deleteFoldersRequestSchema = z.object({
|
||||
ids: z.array(z.string()),
|
||||
})
|
||||
export type DeleteFoldersRequest = z.infer<typeof deleteFoldersRequestSchema>
|
||||
|
||||
export const restoreFoldersRequestSchema = z.object({
|
||||
ids: z.array(z.string()),
|
||||
})
|
||||
export type RestoreFoldersRequest = z.infer<typeof restoreFoldersRequestSchema>
|
||||
Reference in New Issue
Block a user