mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-03 06:24:30 +00:00
refactor: establish workspaces and extract db and dtos packages
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import { z } from 'zod'
|
||||
|
||||
export const createVersionStackRequestSchema = z.object({
|
||||
fileIds: z.array(z.string()),
|
||||
})
|
||||
export type CreateVersionStackRequest = z.infer<typeof createVersionStackRequestSchema>
|
||||
|
||||
export interface CreateVersionStackParams {
|
||||
fileIds: string[]
|
||||
projectId: string
|
||||
creatorId: string
|
||||
}
|
||||
|
||||
export const changeStackFileVersionRequestSchema = z.object({
|
||||
fileId: z.string(),
|
||||
beforeId: z.string(),
|
||||
})
|
||||
export type ChangeStackFileVersionRequest = z.infer<typeof changeStackFileVersionRequestSchema>
|
||||
|
||||
export interface ChangeStackFileVersionParams {
|
||||
stackId: string
|
||||
fileId: string
|
||||
beforeId: string
|
||||
}
|
||||
Reference in New Issue
Block a user