mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-27 03:14:11 +00:00
feat(asset): add move to and copy to functionalities
This commit is contained in:
@@ -220,6 +220,14 @@ export const reparentAssetsRequestSchema = z.object({
|
||||
})
|
||||
export type ReparentAssetsRequest = z.infer<typeof reparentAssetsRequestSchema>
|
||||
|
||||
export const copyAssetsRequestSchema = z.object({
|
||||
newParentId: z.string(),
|
||||
assetIds: z.array(z.string()),
|
||||
withComments: z.boolean().default(false),
|
||||
creatorId: z.string().optional(),
|
||||
})
|
||||
export type CopyAssetsRequest = z.infer<typeof copyAssetsRequestSchema>
|
||||
|
||||
export const updateFileRequestSchema = z.object({
|
||||
name: z.string(),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user