Skip to content

Commit

Permalink
Merge pull request #117 from nginformatica/feat/registry-type-add-2221
Browse files Browse the repository at this point in the history
feat(esocial): update registryType field to add 2221 esocial event
  • Loading branch information
juliakon authored Jul 26, 2024
2 parents ebb1622 + 0ea80d5 commit 4d3519f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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.131",
"version": "0.0.1-alpha.132",
"description": "A small library to expose the broker types",
"typings": "index.d.ts",
"types": "index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/middleware-totvs/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const PostMessage = t.type({
lote: t.array(
t.type({
// Código do Evento
registryType: t.union([t.literal('S-2210'), t.literal('S-2220'), t.literal('S-2240'), t.literal('S-3000')]),
registryType: t.union([t.literal('S-2210'), t.literal('S-2220'), t.literal('S-2240'), t.literal('S-2221'), t.literal('S-3000')]),
// Chave do Registro.
registryKey: t.string,
// Arquivo/Evento a ser integrado, a mensagem deve ser enviada com criptografia BASE64.
Expand Down Expand Up @@ -66,7 +66,7 @@ export const GetMessage = t.type({
// Estrutura dos itens (1-50)
lote: t.array(t.type({
// Código do Evento
registryType: t.union([t.literal('S-2210'), t.literal('S-2220'), t.literal('S-2240'), t.literal('S-3000')]),
registryType: t.union([t.literal('S-2210'), t.literal('S-2220'), t.literal('S-2240'), t.literal('S-2221'), t.literal('S-3000')]),
// Código do TAFTICKET, Obrigatório caso registryKey não seja informado.
ticketCode: t.string,
// Código do TAFKEY, Obrigatório caso ticketCode não seja informado.
Expand Down
2 changes: 1 addition & 1 deletion src/taf/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const PostMessage = t.type({
// Sequência do arquivo; A Mensagem em TAFMSG pode ser enviada em mais de 1 registro, para isso deve-se repetir as informações dos demais campos e alterar a sequencia de acordo com a ordem das informações enviadas.
messageSequential: t.string,
// Código do Evento
registryType: t.union([t.literal('S-2210'), t.literal('S-2220'), t.literal('S-2240'), t.literal('S-3000')]),
registryType: t.union([t.literal('S-2210'), t.literal('S-2220'), t.literal('S-2240'), t.literal('S-2221'), t.literal('S-3000')]),
// Chave do Registro.
registryKey: t.string,
// Arquivo/Evento a ser integrado, a mensagem deve ser enviada com criptografia BASE64.
Expand Down

0 comments on commit 4d3519f

Please sign in to comment.