refactor: establish workspaces and extract db and dtos packages

This commit is contained in:
yiling
2026-06-01 23:08:58 +08:00
parent d10c92133d
commit 2362a7f373
210 changed files with 81275 additions and 265 deletions
+24
View File
@@ -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
}