From 20735b7c06925bc0cf05b9e877d6459148683fd5 Mon Sep 17 00:00:00 2001 From: Daniela Marioti Date: Thu, 25 Jul 2024 14:34:00 -0300 Subject: [PATCH] fix: sick note type --- package.json | 2 +- src/ttalk/schemas/SickNote.ts | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 560afd8..46fcdee 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/ttalk/schemas/SickNote.ts b/src/ttalk/schemas/SickNote.ts index b320963..eb5413e 100644 --- a/src/ttalk/schemas/SickNote.ts +++ b/src/ttalk/schemas/SickNote.ts @@ -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 */