build
This commit is contained in:
parent
27b38a491c
commit
8ae85ce359
5 changed files with 32 additions and 5 deletions
|
|
@ -80,19 +80,29 @@ export const zCredenciaisIema = z.object({
|
|||
senha: z.string().optional(),
|
||||
})
|
||||
|
||||
export const teste = z.object({
|
||||
documento: z.string().optional(),
|
||||
procom: z.string().optional(),
|
||||
unidadeTop: z.string().optional(),
|
||||
senhaSecreta: z.string().optional(),
|
||||
})
|
||||
|
||||
export const orgaos: { [k in keyof TipoCredenciais]: k } = {
|
||||
IEMA: "IEMA",
|
||||
SINIR: "SINIR",
|
||||
teste: "teste",
|
||||
} as const
|
||||
|
||||
export const objetoCredencial: { [k in keyof typeof orgaos]: z.ZodObject } = {
|
||||
IEMA: zCredenciaisIema,
|
||||
SINIR: zCredenciaisSinir,
|
||||
teste: teste,
|
||||
}
|
||||
|
||||
export type TipoCredenciais = {
|
||||
SINIR: z.infer<typeof zCredenciaisSinir>
|
||||
IEMA: z.infer<typeof zCredenciaisIema>
|
||||
teste: z.infer<typeof teste>
|
||||
}
|
||||
|
||||
export type TipoCredenciaisLista = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue