feat: implement complex selection flow

This commit is contained in:
Jose Selesan
2026-04-20 15:47:47 -03:00
parent a5e39c94c5
commit 28fd51f926
17 changed files with 453 additions and 38 deletions

View File

@@ -113,6 +113,24 @@ export const updateComplexSchema = z
},
)
export const complexUserRoleSchema = z.enum(['ADMIN', 'EMPLOYEE'])
export type ComplexUserRole = z.infer<typeof complexUserRoleSchema>
export const selectComplexSchema = z.object({
complexId: z.string().uuid(),
})
export type SelectComplexInput = z.infer<typeof selectComplexSchema>
export const complexWithRoleSchema = complexSchema.merge(
z.object({
role: complexUserRoleSchema,
})
)
export type ComplexWithRole = z.infer<typeof complexWithRoleSchema>
export type Complex = z.infer<typeof complexSchema>
export type CreateComplexInput = z.infer<typeof createComplexSchema>
export type UpdateComplexInput = z.infer<typeof updateComplexSchema>