Skip to content

Commit

Permalink
fix: sick note type
Browse files Browse the repository at this point in the history
  • Loading branch information
danielamarioti committed Jul 25, 2024
1 parent e1c5425 commit 20735b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "quirons-broker",
"version": "0.0.1-alpha.130",
"version": "0.0.1-alpha.131",
"description": "A small library to expose the broker types",
"typings": "index.d.ts",
"types": "index.d.ts",
Expand Down
7 changes: 6 additions & 1 deletion src/ttalk/schemas/SickNote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ export const SickNoteInfo = t.intersection([
/** Dias de Tratamento */
length: t.number,
/** Tipo do Atestado */
type: t.string
type: t.union([
t.literal(0),
t.literal(1),
t.literal(2),
t.literal(3),
])
}),
t.partial({
/** Origem do Atestado */
Expand Down

0 comments on commit 20735b7

Please sign in to comment.