quirons-broker
Advanced tools
Comparing version 0.0.1-alpha.125 to 0.0.1-alpha.126
import * as t from 'io-ts'; | ||
import { eSocial as evtCAT } from './schemas/evtCAT'; | ||
import { eSocial as evtMonit } from './schemas/evtMonit'; | ||
import { eSocial as evtToxic } from './schemas/evtMonit'; | ||
import { eSocial as evtExpRisco } from './schemas/evtExpRisco'; | ||
@@ -9,3 +10,3 @@ import { eSocial as evtExclusao } from './schemas/evtExclusao'; | ||
import { T_ideEmpregador } from './schemas/tipos'; | ||
export { evtCAT, evtMonit, evtExpRisco, evtExclusao, evtInfoEmpregador, EnvioLote }; | ||
export { evtCAT, evtMonit, evtToxic, evtExpRisco, evtExclusao, evtInfoEmpregador, EnvioLote }; | ||
export declare const IdeEmpregador: t.TypeC<{ | ||
@@ -16,3 +17,3 @@ tpInsc: t.UnionC<[t.LiteralC<1>, t.LiteralC<2>]>; | ||
export declare type IdeEmpregador = t.TypeOf<typeof T_ideEmpregador>; | ||
export declare type eSocialObject = evtCAT | evtMonit | evtExpRisco | evtExclusao | evtInfoEmpregador; | ||
export declare type eSocialObject = evtCAT | evtMonit | evtToxic | evtExpRisco | evtExclusao | evtInfoEmpregador; | ||
export declare type eSocialKey = Keys<eSocialObject>; | ||
@@ -19,0 +20,0 @@ export declare type eSocialBody = Values<eSocialObject>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isProductionRestricted = exports.isProductionReady = exports.IdeEmpregador = exports.EnvioLote = exports.evtInfoEmpregador = exports.evtExclusao = exports.evtExpRisco = exports.evtMonit = exports.evtCAT = void 0; | ||
exports.isProductionRestricted = exports.isProductionReady = exports.IdeEmpregador = exports.EnvioLote = exports.evtInfoEmpregador = exports.evtExclusao = exports.evtExpRisco = exports.evtToxic = exports.evtMonit = exports.evtCAT = void 0; | ||
const evtCAT_1 = require("./schemas/evtCAT"); | ||
@@ -8,2 +8,4 @@ Object.defineProperty(exports, "evtCAT", { enumerable: true, get: function () { return evtCAT_1.eSocial; } }); | ||
Object.defineProperty(exports, "evtMonit", { enumerable: true, get: function () { return evtMonit_1.eSocial; } }); | ||
const evtMonit_2 = require("./schemas/evtMonit"); | ||
Object.defineProperty(exports, "evtToxic", { enumerable: true, get: function () { return evtMonit_2.eSocial; } }); | ||
const evtExpRisco_1 = require("./schemas/evtExpRisco"); | ||
@@ -10,0 +12,0 @@ Object.defineProperty(exports, "evtExpRisco", { enumerable: true, get: function () { return evtExpRisco_1.eSocial; } }); |
@@ -163,2 +163,38 @@ import * as t from 'io-ts'; | ||
}>, t.TypeC<{ | ||
kind: t.LiteralC<"evtToxic">; | ||
data: t.TypeC<{ | ||
evtToxic: t.TypeC<{ | ||
$: t.TypeC<{ | ||
Id: t.StringC; | ||
}>; | ||
ideEvento: t.IntersectionC<[t.TypeC<{ | ||
indRetif: t.UnionC<[t.LiteralC<1>, t.LiteralC<2>]>; | ||
tpAmb: t.UnionC<[t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<7>, t.LiteralC<8>, t.LiteralC<9>]>; | ||
procEmi: t.UnionC<[t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<22>, t.LiteralC<81>, t.LiteralC<91>]>; | ||
verProc: t.StringC; | ||
}>, t.PartialC<{ | ||
nrRecibo: t.StringC; | ||
}>]>; | ||
ideEmpregador: t.TypeC<{ | ||
tpInsc: t.UnionC<[t.LiteralC<1>, t.LiteralC<2>]>; | ||
nrInsc: t.StringC; | ||
}>; | ||
ideVinculo: t.IntersectionC<[t.TypeC<{ | ||
cpfTrab: t.StringC; | ||
}>, t.PartialC<{ | ||
matricula: t.StringC; | ||
codCateg: t.StringC; | ||
}>]>; | ||
toxicologico: t.IntersectionC<[t.TypeC<{ | ||
dtExame: t.StringC; | ||
cnpjLab: t.StringC; | ||
codSeqExame: t.StringC; | ||
nmMed: t.StringC; | ||
}>, t.PartialC<{ | ||
nrCRM: t.StringC; | ||
ufCRM: t.UnionC<[t.LiteralC<"AC">, t.LiteralC<"AL">, t.LiteralC<"AP">, t.LiteralC<"AM">, t.LiteralC<"BA">, t.LiteralC<"CE">, t.LiteralC<"DF">, t.LiteralC<"ES">, t.LiteralC<"GO">, t.LiteralC<"MA">, t.LiteralC<"MT">, t.LiteralC<"MS">, t.LiteralC<"MG">, t.LiteralC<"PA">, t.LiteralC<"PB">, t.LiteralC<"PR">, t.LiteralC<"PE">, t.LiteralC<"PI">, t.LiteralC<"RJ">, t.LiteralC<"RN">, t.LiteralC<"RS">, t.LiteralC<"RO">, t.LiteralC<"RR">, t.LiteralC<"SC">, t.LiteralC<"SP">, t.LiteralC<"SE">, t.LiteralC<"TO">]>; | ||
}>]>; | ||
}>; | ||
}>; | ||
}>, t.TypeC<{ | ||
kind: t.LiteralC<"evtExclusao">; | ||
@@ -565,2 +601,38 @@ data: t.TypeC<{ | ||
}>, t.TypeC<{ | ||
kind: t.LiteralC<"evtToxic">; | ||
data: t.TypeC<{ | ||
evtToxic: t.TypeC<{ | ||
$: t.TypeC<{ | ||
Id: t.StringC; | ||
}>; | ||
ideEvento: t.IntersectionC<[t.TypeC<{ | ||
indRetif: t.UnionC<[t.LiteralC<1>, t.LiteralC<2>]>; | ||
tpAmb: t.UnionC<[t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<7>, t.LiteralC<8>, t.LiteralC<9>]>; | ||
procEmi: t.UnionC<[t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<22>, t.LiteralC<81>, t.LiteralC<91>]>; | ||
verProc: t.StringC; | ||
}>, t.PartialC<{ | ||
nrRecibo: t.StringC; | ||
}>]>; | ||
ideEmpregador: t.TypeC<{ | ||
tpInsc: t.UnionC<[t.LiteralC<1>, t.LiteralC<2>]>; | ||
nrInsc: t.StringC; | ||
}>; | ||
ideVinculo: t.IntersectionC<[t.TypeC<{ | ||
cpfTrab: t.StringC; | ||
}>, t.PartialC<{ | ||
matricula: t.StringC; | ||
codCateg: t.StringC; | ||
}>]>; | ||
toxicologico: t.IntersectionC<[t.TypeC<{ | ||
dtExame: t.StringC; | ||
cnpjLab: t.StringC; | ||
codSeqExame: t.StringC; | ||
nmMed: t.StringC; | ||
}>, t.PartialC<{ | ||
nrCRM: t.StringC; | ||
ufCRM: t.UnionC<[t.LiteralC<"AC">, t.LiteralC<"AL">, t.LiteralC<"AP">, t.LiteralC<"AM">, t.LiteralC<"BA">, t.LiteralC<"CE">, t.LiteralC<"DF">, t.LiteralC<"ES">, t.LiteralC<"GO">, t.LiteralC<"MA">, t.LiteralC<"MT">, t.LiteralC<"MS">, t.LiteralC<"MG">, t.LiteralC<"PA">, t.LiteralC<"PB">, t.LiteralC<"PR">, t.LiteralC<"PE">, t.LiteralC<"PI">, t.LiteralC<"RJ">, t.LiteralC<"RN">, t.LiteralC<"RS">, t.LiteralC<"RO">, t.LiteralC<"RR">, t.LiteralC<"SC">, t.LiteralC<"SP">, t.LiteralC<"SE">, t.LiteralC<"TO">]>; | ||
}>]>; | ||
}>; | ||
}>; | ||
}>, t.TypeC<{ | ||
kind: t.LiteralC<"evtExclusao">; | ||
@@ -567,0 +639,0 @@ data: t.TypeC<{ |
@@ -26,2 +26,3 @@ "use strict"; | ||
const evtMonit_1 = require("./schemas/evtMonit"); | ||
const evtToxic_1 = require("./schemas/evtToxic"); | ||
const evtExclusao_1 = require("./schemas/evtExclusao"); | ||
@@ -53,2 +54,3 @@ const evtExpRisco_1 = require("./schemas/evtExpRisco"); | ||
constructors_1.dataMessage('evtMonit', evtMonit_1.eSocial), | ||
constructors_1.dataMessage('evtToxic', evtToxic_1.eSocial), | ||
constructors_1.dataMessage('evtExclusao', evtExclusao_1.eSocial), | ||
@@ -55,0 +57,0 @@ constructors_1.dataMessage('evtExpRisco', evtExpRisco_1.eSocial), |
{ | ||
"name": "quirons-broker", | ||
"version": "0.0.1-alpha.125", | ||
"version": "0.0.1-alpha.126", | ||
"description": "A small library to expose the broker types", | ||
@@ -5,0 +5,0 @@ "main": "index.ts", |
Sorry, the diff of this file is too big to display
1170322
166
27672