Skip to content

Commit

Permalink
Merge pull request #116 from nginformatica/fix/types-sick-note
Browse files Browse the repository at this point in the history
fix: sick note type
  • Loading branch information
danielamarioti authored Jul 25, 2024
2 parents e1c5425 + 20735b7 commit ebb1622
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 ebb1622

Please sign in to comment.