Zod 4 마이그레이션

This commit is contained in:
static
2025-12-25 22:53:51 +09:00
parent 6d95059450
commit b92b4a0b1b
13 changed files with 655 additions and 853 deletions

View File

@@ -8,7 +8,7 @@ const fileRouter = router({
get: roleProcedure["activeClient"]
.input(
z.object({
id: z.number().int().positive(),
id: z.int().positive(),
}),
)
.query(async ({ ctx, input }) => {
@@ -42,8 +42,8 @@ const fileRouter = router({
listByHash: roleProcedure["activeClient"]
.input(
z.object({
hskVersion: z.number().int().positive(),
contentHmac: z.string().base64().nonempty(),
hskVersion: z.int().positive(),
contentHmac: z.base64().nonempty(),
}),
)
.query(async ({ ctx, input }) => {
@@ -61,10 +61,10 @@ const fileRouter = router({
rename: roleProcedure["activeClient"]
.input(
z.object({
id: z.number().int().positive(),
id: z.int().positive(),
dekVersion: z.date(),
name: z.string().base64().nonempty(),
nameIv: z.string().base64().nonempty(),
name: z.base64().nonempty(),
nameIv: z.base64().nonempty(),
}),
)
.mutation(async ({ ctx, input }) => {
@@ -88,7 +88,7 @@ const fileRouter = router({
delete: roleProcedure["activeClient"]
.input(
z.object({
id: z.number().int().positive(),
id: z.int().positive(),
}),
)
.mutation(async ({ ctx, input }) => {
@@ -107,7 +107,7 @@ const fileRouter = router({
thumbnail: roleProcedure["activeClient"]
.input(
z.object({
id: z.number().int().positive(),
id: z.int().positive(),
}),
)
.query(async ({ ctx, input }) => {