quirons-broker
Advanced tools
Comparing version 0.0.1-alpha.120 to 0.0.1-alpha.121
{ | ||
"name": "quirons-broker", | ||
"version": "0.0.1-alpha.120", | ||
"version": "0.0.1-alpha.121", | ||
"description": "A small library to expose the broker types", | ||
@@ -5,0 +5,0 @@ "main": "index.ts", |
@@ -56,5 +56,8 @@ import * as t from 'io-ts'; | ||
export declare type ExpandablesType = t.TypeOf<typeof ExpandablesType>; | ||
export declare const Paging: t.TypeC<{ | ||
export declare const Paging: t.IntersectionC<[t.TypeC<{ | ||
hasNext: t.BooleanC; | ||
}>; | ||
}>, t.PartialC<{ | ||
totalAmount: t.NumberC; | ||
amount: t.NumberC; | ||
}>]>; | ||
export declare type Paging = t.TypeOf<typeof Paging>; |
@@ -49,4 +49,10 @@ "use strict"; | ||
}); | ||
exports.Paging = t.type({ | ||
hasNext: t.boolean | ||
}); | ||
exports.Paging = t.intersection([ | ||
t.type({ | ||
hasNext: t.boolean | ||
}), | ||
t.partial({ | ||
totalAmount: t.number, | ||
amount: t.number, | ||
}) | ||
]); |
@@ -17,2 +17,13 @@ import * as t from 'io-ts'; | ||
import { MedicalConsultationInfo } from './schemas/MedicalConsultation'; | ||
/** SST imports informations */ | ||
import { AccreditedInfo } from './schemas/Accredited'; | ||
import { ClinicalQuizInfo } from './schemas/ClinicalQuiz'; | ||
import { DeficienciesInfo } from './schemas/Deficiencies'; | ||
import { DocumentInfo } from './schemas/Document'; | ||
import { IpeDeliveryInfo } from './schemas/IpeDelivery'; | ||
import { MedicalRecordInfo } from './schemas/MedicalRecord'; | ||
import { OccupationInfo } from './schemas/Occupation'; | ||
import { QuizInfo } from './schemas/Quiz'; | ||
import { RiskInfo } from './schemas/Risk'; | ||
import { VaccineInfo } from './schemas/Vaccine'; | ||
/** | ||
@@ -177,2 +188,3 @@ * An object as returned by TOTVS' TTalk API. | ||
numberOfBenefit: t.StringC; | ||
erpId: t.StringC; | ||
}>]>, t.IntersectionC<[t.TypeC<{ | ||
@@ -201,2 +213,251 @@ companyId: t.StringC; | ||
}>]>>; | ||
erpId: t.StringC; | ||
}>]>, t.IntersectionC<[t.TypeC<{ | ||
companyId: t.StringC; | ||
branchId: t.StringC; | ||
erpId: t.StringC; | ||
name: t.StringC; | ||
documentNumber: t.StringC; | ||
contractStart: t.Type<Date, string, unknown>; | ||
}>, t.PartialC<{ | ||
exams: t.ArrayC<t.TypeC<{ | ||
name: t.StringC; | ||
price: t.NumberC; | ||
eSocialCode: t.StringC; | ||
}>>; | ||
}>]>, t.IntersectionC<[t.TypeC<{ | ||
companyId: t.StringC; | ||
branchId: t.StringC; | ||
erpId: t.StringC; | ||
realizationDate: t.Type<Date, string, unknown>; | ||
quiz: t.StringC; | ||
response: t.ArrayC<t.IntersectionC<[t.TypeC<{ | ||
order: t.NumberC; | ||
option: t.NumberC; | ||
}>, t.PartialC<{ | ||
description: t.StringC; | ||
}>]>>; | ||
}>, t.PartialC<{}>]>, t.IntersectionC<[t.TypeC<{ | ||
companyId: t.StringC; | ||
branchId: t.StringC; | ||
erpId: t.StringC; | ||
employeeId: t.StringC; | ||
type: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>, t.LiteralC<6>, t.LiteralC<7>]>; | ||
date: t.Type<Date, string, unknown>; | ||
recoveryDate: t.Type<Date, string, unknown>; | ||
}>, t.PartialC<{ | ||
icd: t.StringC; | ||
observation: t.StringC; | ||
}>]>, t.IntersectionC<[t.TypeC<{ | ||
companyId: t.StringC; | ||
branchId: t.StringC; | ||
erpId: t.StringC; | ||
objective: t.StringC; | ||
type: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>, t.LiteralC<6>, t.LiteralC<7>, t.LiteralC<8>]>; | ||
finality: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>; | ||
startDate: t.Type<Date, string, unknown>; | ||
endDate: t.Type<Date, string, unknown>; | ||
expirationDate: t.Type<Date, string, unknown>; | ||
review: t.StringC; | ||
responsible: t.TypeC<{ | ||
erpId: t.StringC; | ||
name: t.StringC; | ||
individualRegistration: t.StringC; | ||
birthday: t.Type<Date, string, unknown>; | ||
gender: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>]>; | ||
}>; | ||
documentNumber: t.StringC; | ||
documentState: t.StringC; | ||
entityType: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>; | ||
}>, t.PartialC<{ | ||
costCenter: t.TypeC<{ | ||
erpId: t.StringC; | ||
description: t.StringC; | ||
}>; | ||
entityDescription: t.StringC; | ||
}>]>, t.IntersectionC<[t.TypeC<{ | ||
companyId: t.StringC; | ||
branchId: t.StringC; | ||
erpId: t.StringC; | ||
employeeId: t.StringC; | ||
ca: t.StringC; | ||
deliveryDate: t.Type<Date, string, unknown>; | ||
caExpirationDate: t.Type<Date, string, unknown>; | ||
deliveryAmount: t.NumberC; | ||
reason: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>, t.LiteralC<6>, t.LiteralC<7>, t.LiteralC<8>, t.LiteralC<9>]>; | ||
effective: t.BooleanC; | ||
}>, t.PartialC<{ | ||
returnDate: t.Type<Date, string, unknown>; | ||
amountReturned: t.NumberC; | ||
returnReason: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>]>; | ||
observation: t.StringC; | ||
issueDate: t.Type<Date, string, unknown>; | ||
lastMaintenanceDate: t.Type<Date, string, unknown>; | ||
cost: t.NumberC; | ||
}>]>, t.IntersectionC<[t.TypeC<{ | ||
companyId: t.StringC; | ||
branchId: t.StringC; | ||
erpId: t.StringC; | ||
employeeId: t.StringC; | ||
candidate: t.BooleanC; | ||
name: t.StringC; | ||
bloodDonator: t.BooleanC; | ||
type: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>, t.LiteralC<6>, t.LiteralC<7>, t.LiteralC<8>]>; | ||
birthday: t.Type<Date, string, unknown>; | ||
gender: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>]>; | ||
weight: t.NumberC; | ||
height: t.NumberC; | ||
smoker: t.BooleanC; | ||
}>, t.PartialC<{ | ||
eyeHeight: t.NumberC; | ||
nippleLine: t.NumberC; | ||
pubicHeight: t.NumberC; | ||
kneeHeight: t.NumberC; | ||
elbowHeight: t.NumberC; | ||
armSize: t.NumberC; | ||
forearmSize: t.NumberC; | ||
handSize: t.NumberC; | ||
legSize: t.NumberC; | ||
shoesSize: t.NumberC; | ||
genderEnum: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>]>; | ||
eyeColor: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>, t.LiteralC<6>, t.LiteralC<7>, t.LiteralC<8>, t.LiteralC<9>, t.LiteralC<10>]>; | ||
hairColor: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>, t.LiteralC<6>, t.LiteralC<7>]>; | ||
skinColor: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>]>; | ||
tamagistPeriod: t.NumberC; | ||
amountConsumed: t.NumberC; | ||
historic: t.StringC; | ||
systolicPressure: t.NumberC; | ||
diastolicPressure: t.NumberC; | ||
temperature: t.NumberC; | ||
pulse: t.NumberC; | ||
}>]>, t.IntersectionC<[t.TypeC<{ | ||
companyId: t.StringC; | ||
branchId: t.StringC; | ||
erpId: t.StringC; | ||
ipe: t.ArrayC<t.StringC>; | ||
exams: t.ArrayC<t.IntersectionC<[t.TypeC<{ | ||
description: t.StringC; | ||
type: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>, t.LiteralC<6>, t.LiteralC<7>, t.LiteralC<8>, t.LiteralC<9>]>; | ||
admission: t.BooleanC; | ||
periodic: t.BooleanC; | ||
backToWork: t.BooleanC; | ||
dismissal: t.BooleanC; | ||
changeOfFunction: t.BooleanC; | ||
}>, t.PartialC<{ | ||
periodicity: t.TypeC<{ | ||
description: t.StringC; | ||
fromAge: t.NumberC; | ||
toAge: t.NumberC; | ||
periodicity: t.NumberC; | ||
postAdmission: t.NumberC; | ||
}>; | ||
}>]>>; | ||
}>, t.PartialC<{}>]>, t.IntersectionC<[t.TypeC<{ | ||
companyId: t.StringC; | ||
branchId: t.StringC; | ||
erpId: t.StringC; | ||
description: t.StringC; | ||
questionsGroup: t.ArrayC<t.TypeC<{ | ||
question: t.StringC; | ||
answers: t.ArrayC<t.TypeC<{ | ||
description: t.StringC; | ||
}>>; | ||
}>>; | ||
}>, t.PartialC<{}>]>, t.IntersectionC<[t.TypeC<{ | ||
companyId: t.StringC; | ||
/** | ||
* Convert a TOTVS' TTalk message to an internal model of our own. | ||
* | ||
* @param from Original message | ||
*/ | ||
branchId: t.StringC; | ||
erpId: t.StringC; | ||
recognitionDate: t.Type<Date, string, unknown>; | ||
riskAgent: t.IntersectionC<[t.TypeC<{ | ||
description: t.StringC; | ||
group: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>, t.LiteralC<6>, t.LiteralC<7>]>; | ||
evaluation: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>]>; | ||
}>, t.PartialC<{ | ||
eSocialCode: t.StringC; | ||
}>]>; | ||
generatingSource: t.StringC; | ||
environment: t.StringC; | ||
costCenter: t.ArrayC<t.TypeC<{ | ||
erpId: t.StringC; | ||
description: t.StringC; | ||
}>>; | ||
department: t.ArrayC<t.TypeC<{ | ||
erpId: t.StringC; | ||
description: t.StringC; | ||
}>>; | ||
occupation: t.ArrayC<t.TypeC<{ | ||
erpId: t.StringC; | ||
description: t.StringC; | ||
}>>; | ||
task: t.ArrayC<t.TypeC<{ | ||
description: t.StringC; | ||
}>>; | ||
person: t.ArrayC<t.TypeC<{ | ||
erpId: t.StringC; | ||
name: t.StringC; | ||
individualRegistration: t.StringC; | ||
birthday: t.Type<Date, string, unknown>; | ||
gender: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>]>; | ||
}>>; | ||
measurement: t.ArrayC<t.TypeC<{ | ||
date: t.Type<Date, string, unknown>; | ||
value: t.NumberC; | ||
instrument: t.StringC; | ||
}>>; | ||
controlMeasure: t.ArrayC<t.TypeC<{ | ||
description: t.StringC; | ||
type: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>]>; | ||
}>>; | ||
ipe: t.ArrayC<t.StringC>; | ||
training: t.ArrayC<t.TypeC<{ | ||
erpId: t.StringC; | ||
description: t.StringC; | ||
urgency: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>; | ||
}>>; | ||
exam: t.ArrayC<t.IntersectionC<[t.TypeC<{ | ||
description: t.StringC; | ||
type: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>, t.LiteralC<6>, t.LiteralC<7>, t.LiteralC<8>, t.LiteralC<9>]>; | ||
admission: t.BooleanC; | ||
periodic: t.BooleanC; | ||
backToWork: t.BooleanC; | ||
dismissal: t.BooleanC; | ||
changeOfFunction: t.BooleanC; | ||
}>, t.PartialC<{ | ||
periodicity: t.TypeC<{ | ||
description: t.StringC; | ||
fromAge: t.NumberC; | ||
toAge: t.NumberC; | ||
periodicity: t.NumberC; | ||
postAdmission: t.NumberC; | ||
}>; | ||
}>]>>; | ||
}>, t.PartialC<{ | ||
icd: t.StringC; | ||
observation: t.StringC; | ||
}>]>, t.IntersectionC<[t.TypeC<{ | ||
companyId: t.StringC; | ||
branchId: t.StringC; | ||
erpId: t.StringC; | ||
employeeId: t.StringC; | ||
vaccine: t.TypeC<{ | ||
description: t.StringC; | ||
gender: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>; | ||
fromAge: t.NumberC; | ||
toAge: t.NumberC; | ||
reinforcement: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>; | ||
reinforcementInterval: t.NumberC; | ||
secondDoseInterval: t.NumberC; | ||
thirdDoseInterval: t.NumberC; | ||
}>; | ||
date: t.StringC; | ||
status: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>; | ||
currentDose: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>]>; | ||
dose: t.NumberC; | ||
}>, t.PartialC<{ | ||
batch: t.StringC; | ||
}>]>]>; | ||
@@ -365,2 +626,3 @@ export declare type Object = t.TypeOf<typeof Object>; | ||
numberOfBenefit: t.StringC; | ||
erpId: t.StringC; | ||
}>]>, t.IntersectionC<[t.TypeC<{ | ||
@@ -389,2 +651,251 @@ companyId: t.StringC; | ||
}>]>>; | ||
erpId: t.StringC; | ||
}>]>, t.IntersectionC<[t.TypeC<{ | ||
companyId: t.StringC; | ||
branchId: t.StringC; | ||
erpId: t.StringC; | ||
name: t.StringC; | ||
documentNumber: t.StringC; | ||
contractStart: t.Type<Date, string, unknown>; | ||
}>, t.PartialC<{ | ||
exams: t.ArrayC<t.TypeC<{ | ||
name: t.StringC; | ||
price: t.NumberC; | ||
eSocialCode: t.StringC; | ||
}>>; | ||
}>]>, t.IntersectionC<[t.TypeC<{ | ||
companyId: t.StringC; | ||
branchId: t.StringC; | ||
erpId: t.StringC; | ||
realizationDate: t.Type<Date, string, unknown>; | ||
quiz: t.StringC; | ||
response: t.ArrayC<t.IntersectionC<[t.TypeC<{ | ||
order: t.NumberC; | ||
option: t.NumberC; | ||
}>, t.PartialC<{ | ||
description: t.StringC; | ||
}>]>>; | ||
}>, t.PartialC<{}>]>, t.IntersectionC<[t.TypeC<{ | ||
companyId: t.StringC; | ||
branchId: t.StringC; | ||
erpId: t.StringC; | ||
employeeId: t.StringC; | ||
type: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>, t.LiteralC<6>, t.LiteralC<7>]>; | ||
date: t.Type<Date, string, unknown>; | ||
recoveryDate: t.Type<Date, string, unknown>; | ||
}>, t.PartialC<{ | ||
icd: t.StringC; | ||
observation: t.StringC; | ||
}>]>, t.IntersectionC<[t.TypeC<{ | ||
companyId: t.StringC; | ||
branchId: t.StringC; | ||
erpId: t.StringC; | ||
objective: t.StringC; | ||
type: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>, t.LiteralC<6>, t.LiteralC<7>, t.LiteralC<8>]>; | ||
finality: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>; | ||
startDate: t.Type<Date, string, unknown>; | ||
endDate: t.Type<Date, string, unknown>; | ||
expirationDate: t.Type<Date, string, unknown>; | ||
review: t.StringC; | ||
responsible: t.TypeC<{ | ||
erpId: t.StringC; | ||
name: t.StringC; | ||
individualRegistration: t.StringC; | ||
birthday: t.Type<Date, string, unknown>; | ||
gender: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>]>; | ||
}>; | ||
documentNumber: t.StringC; | ||
documentState: t.StringC; | ||
entityType: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>; | ||
}>, t.PartialC<{ | ||
costCenter: t.TypeC<{ | ||
erpId: t.StringC; | ||
description: t.StringC; | ||
}>; | ||
entityDescription: t.StringC; | ||
}>]>, t.IntersectionC<[t.TypeC<{ | ||
companyId: t.StringC; | ||
branchId: t.StringC; | ||
erpId: t.StringC; | ||
employeeId: t.StringC; | ||
ca: t.StringC; | ||
deliveryDate: t.Type<Date, string, unknown>; | ||
caExpirationDate: t.Type<Date, string, unknown>; | ||
deliveryAmount: t.NumberC; | ||
reason: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>, t.LiteralC<6>, t.LiteralC<7>, t.LiteralC<8>, t.LiteralC<9>]>; | ||
effective: t.BooleanC; | ||
}>, t.PartialC<{ | ||
returnDate: t.Type<Date, string, unknown>; | ||
amountReturned: t.NumberC; | ||
returnReason: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>]>; | ||
observation: t.StringC; | ||
issueDate: t.Type<Date, string, unknown>; | ||
lastMaintenanceDate: t.Type<Date, string, unknown>; | ||
cost: t.NumberC; | ||
}>]>, t.IntersectionC<[t.TypeC<{ | ||
companyId: t.StringC; | ||
branchId: t.StringC; | ||
erpId: t.StringC; | ||
employeeId: t.StringC; | ||
candidate: t.BooleanC; | ||
name: t.StringC; | ||
bloodDonator: t.BooleanC; | ||
type: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>, t.LiteralC<6>, t.LiteralC<7>, t.LiteralC<8>]>; | ||
birthday: t.Type<Date, string, unknown>; | ||
gender: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>]>; | ||
weight: t.NumberC; | ||
height: t.NumberC; | ||
smoker: t.BooleanC; | ||
}>, t.PartialC<{ | ||
eyeHeight: t.NumberC; | ||
nippleLine: t.NumberC; | ||
pubicHeight: t.NumberC; | ||
kneeHeight: t.NumberC; | ||
elbowHeight: t.NumberC; | ||
armSize: t.NumberC; | ||
forearmSize: t.NumberC; | ||
handSize: t.NumberC; | ||
legSize: t.NumberC; | ||
shoesSize: t.NumberC; | ||
genderEnum: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>]>; | ||
eyeColor: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>, t.LiteralC<6>, t.LiteralC<7>, t.LiteralC<8>, t.LiteralC<9>, t.LiteralC<10>]>; | ||
hairColor: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>, t.LiteralC<6>, t.LiteralC<7>]>; | ||
skinColor: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>]>; | ||
tamagistPeriod: t.NumberC; | ||
amountConsumed: t.NumberC; | ||
historic: t.StringC; | ||
systolicPressure: t.NumberC; | ||
diastolicPressure: t.NumberC; | ||
temperature: t.NumberC; | ||
pulse: t.NumberC; | ||
}>]>, t.IntersectionC<[t.TypeC<{ | ||
companyId: t.StringC; | ||
branchId: t.StringC; | ||
erpId: t.StringC; | ||
ipe: t.ArrayC<t.StringC>; | ||
exams: t.ArrayC<t.IntersectionC<[t.TypeC<{ | ||
description: t.StringC; | ||
type: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>, t.LiteralC<6>, t.LiteralC<7>, t.LiteralC<8>, t.LiteralC<9>]>; | ||
admission: t.BooleanC; | ||
periodic: t.BooleanC; | ||
backToWork: t.BooleanC; | ||
dismissal: t.BooleanC; | ||
changeOfFunction: t.BooleanC; | ||
}>, t.PartialC<{ | ||
periodicity: t.TypeC<{ | ||
description: t.StringC; | ||
fromAge: t.NumberC; | ||
toAge: t.NumberC; | ||
periodicity: t.NumberC; | ||
postAdmission: t.NumberC; | ||
}>; | ||
}>]>>; | ||
}>, t.PartialC<{}>]>, t.IntersectionC<[t.TypeC<{ | ||
companyId: t.StringC; | ||
branchId: t.StringC; | ||
erpId: t.StringC; | ||
description: t.StringC; | ||
questionsGroup: t.ArrayC<t.TypeC<{ | ||
question: t.StringC; | ||
answers: t.ArrayC<t.TypeC<{ | ||
description: t.StringC; | ||
}>>; | ||
}>>; | ||
}>, t.PartialC<{}>]>, t.IntersectionC<[t.TypeC<{ | ||
companyId: t.StringC; | ||
/** | ||
* Convert a TOTVS' TTalk message to an internal model of our own. | ||
* | ||
* @param from Original message | ||
*/ | ||
branchId: t.StringC; | ||
erpId: t.StringC; | ||
recognitionDate: t.Type<Date, string, unknown>; | ||
riskAgent: t.IntersectionC<[t.TypeC<{ | ||
description: t.StringC; | ||
group: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>, t.LiteralC<6>, t.LiteralC<7>]>; | ||
evaluation: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>]>; | ||
}>, t.PartialC<{ | ||
eSocialCode: t.StringC; | ||
}>]>; | ||
generatingSource: t.StringC; | ||
environment: t.StringC; | ||
costCenter: t.ArrayC<t.TypeC<{ | ||
erpId: t.StringC; | ||
description: t.StringC; | ||
}>>; | ||
department: t.ArrayC<t.TypeC<{ | ||
erpId: t.StringC; | ||
description: t.StringC; | ||
}>>; | ||
occupation: t.ArrayC<t.TypeC<{ | ||
erpId: t.StringC; | ||
description: t.StringC; | ||
}>>; | ||
task: t.ArrayC<t.TypeC<{ | ||
description: t.StringC; | ||
}>>; | ||
person: t.ArrayC<t.TypeC<{ | ||
erpId: t.StringC; | ||
name: t.StringC; | ||
individualRegistration: t.StringC; | ||
birthday: t.Type<Date, string, unknown>; | ||
gender: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>]>; | ||
}>>; | ||
measurement: t.ArrayC<t.TypeC<{ | ||
date: t.Type<Date, string, unknown>; | ||
value: t.NumberC; | ||
instrument: t.StringC; | ||
}>>; | ||
controlMeasure: t.ArrayC<t.TypeC<{ | ||
description: t.StringC; | ||
type: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>]>; | ||
}>>; | ||
ipe: t.ArrayC<t.StringC>; | ||
training: t.ArrayC<t.TypeC<{ | ||
erpId: t.StringC; | ||
description: t.StringC; | ||
urgency: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>; | ||
}>>; | ||
exam: t.ArrayC<t.IntersectionC<[t.TypeC<{ | ||
description: t.StringC; | ||
type: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>, t.LiteralC<6>, t.LiteralC<7>, t.LiteralC<8>, t.LiteralC<9>]>; | ||
admission: t.BooleanC; | ||
periodic: t.BooleanC; | ||
backToWork: t.BooleanC; | ||
dismissal: t.BooleanC; | ||
changeOfFunction: t.BooleanC; | ||
}>, t.PartialC<{ | ||
periodicity: t.TypeC<{ | ||
description: t.StringC; | ||
fromAge: t.NumberC; | ||
toAge: t.NumberC; | ||
periodicity: t.NumberC; | ||
postAdmission: t.NumberC; | ||
}>; | ||
}>]>>; | ||
}>, t.PartialC<{ | ||
icd: t.StringC; | ||
observation: t.StringC; | ||
}>]>, t.IntersectionC<[t.TypeC<{ | ||
companyId: t.StringC; | ||
branchId: t.StringC; | ||
erpId: t.StringC; | ||
employeeId: t.StringC; | ||
vaccine: t.TypeC<{ | ||
description: t.StringC; | ||
gender: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>; | ||
fromAge: t.NumberC; | ||
toAge: t.NumberC; | ||
reinforcement: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>; | ||
reinforcementInterval: t.NumberC; | ||
secondDoseInterval: t.NumberC; | ||
thirdDoseInterval: t.NumberC; | ||
}>; | ||
date: t.StringC; | ||
status: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>; | ||
currentDose: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>]>; | ||
dose: t.NumberC; | ||
}>, t.PartialC<{ | ||
batch: t.StringC; | ||
}>]>]>>; | ||
@@ -410,3 +921,3 @@ }>; | ||
} | ||
export { PayRollCostCenterInfo, LeaveOfAbsenceTypeInfo, AllowanceTypesInfo, PositionInfo, StabilityTypeInfo, ClassInfo, WorkingShiftInfo, AdditionalInfo, InformationDeficienciesInfo, AllowanceInfo, LeaveOfAbsenceInfo, StabilityControlInfo, TrainingNecessityInfo, SickNoteInfo, MedicalConsultationInfo }; | ||
export { PayRollCostCenterInfo, LeaveOfAbsenceTypeInfo, AllowanceTypesInfo, PositionInfo, StabilityTypeInfo, ClassInfo, WorkingShiftInfo, AdditionalInfo, InformationDeficienciesInfo, AllowanceInfo, LeaveOfAbsenceInfo, StabilityControlInfo, TrainingNecessityInfo, SickNoteInfo, MedicalConsultationInfo, AccreditedInfo, ClinicalQuizInfo, DeficienciesInfo, DocumentInfo, IpeDeliveryInfo, MedicalRecordInfo, OccupationInfo, QuizInfo, RiskInfo, VaccineInfo, }; | ||
/** | ||
@@ -627,2 +1138,3 @@ * The Person entity, as provided through our API to TOTVS. | ||
numberOfBenefit: t.StringC; | ||
erpId: t.StringC; | ||
}>]>; | ||
@@ -653,3 +1165,272 @@ export declare type SickNote = t.TypeOf<typeof SickNote>; | ||
}>]>>; | ||
erpId: t.StringC; | ||
}>]>; | ||
export declare type MedicalConsultation = t.TypeOf<typeof MedicalConsultation>; | ||
export declare const Accredited: t.IntersectionC<[t.TypeC<{ | ||
companyId: t.StringC; | ||
branchId: t.StringC; | ||
erpId: t.StringC; | ||
name: t.StringC; | ||
documentNumber: t.StringC; | ||
contractStart: t.Type<Date, string, unknown>; | ||
}>, t.PartialC<{ | ||
exams: t.ArrayC<t.TypeC<{ | ||
name: t.StringC; | ||
price: t.NumberC; | ||
eSocialCode: t.StringC; | ||
}>>; | ||
}>]>; | ||
export declare type Accredited = t.TypeOf<typeof Accredited>; | ||
export declare const ClinicalQuiz: t.IntersectionC<[t.TypeC<{ | ||
companyId: t.StringC; | ||
branchId: t.StringC; | ||
erpId: t.StringC; | ||
realizationDate: t.Type<Date, string, unknown>; | ||
quiz: t.StringC; | ||
response: t.ArrayC<t.IntersectionC<[t.TypeC<{ | ||
order: t.NumberC; | ||
option: t.NumberC; | ||
}>, t.PartialC<{ | ||
description: t.StringC; | ||
}>]>>; | ||
}>, t.PartialC<{}>]>; | ||
export declare type ClinicalQuiz = t.TypeOf<typeof ClinicalQuiz>; | ||
export declare const Deficiencies: t.IntersectionC<[t.TypeC<{ | ||
companyId: t.StringC; | ||
branchId: t.StringC; | ||
erpId: t.StringC; | ||
employeeId: t.StringC; | ||
type: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>, t.LiteralC<6>, t.LiteralC<7>]>; | ||
date: t.Type<Date, string, unknown>; | ||
recoveryDate: t.Type<Date, string, unknown>; | ||
}>, t.PartialC<{ | ||
icd: t.StringC; | ||
observation: t.StringC; | ||
}>]>; | ||
export declare type Deficiencies = t.TypeOf<typeof Deficiencies>; | ||
export declare const Document: t.IntersectionC<[t.TypeC<{ | ||
companyId: t.StringC; | ||
branchId: t.StringC; | ||
erpId: t.StringC; | ||
objective: t.StringC; | ||
type: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>, t.LiteralC<6>, t.LiteralC<7>, t.LiteralC<8>]>; | ||
finality: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>; | ||
startDate: t.Type<Date, string, unknown>; | ||
endDate: t.Type<Date, string, unknown>; | ||
expirationDate: t.Type<Date, string, unknown>; | ||
review: t.StringC; | ||
responsible: t.TypeC<{ | ||
erpId: t.StringC; | ||
name: t.StringC; | ||
individualRegistration: t.StringC; | ||
birthday: t.Type<Date, string, unknown>; | ||
gender: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>]>; | ||
}>; | ||
documentNumber: t.StringC; | ||
documentState: t.StringC; | ||
entityType: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>; | ||
}>, t.PartialC<{ | ||
costCenter: t.TypeC<{ | ||
erpId: t.StringC; | ||
description: t.StringC; | ||
}>; | ||
entityDescription: t.StringC; | ||
}>]>; | ||
export declare type Document = t.TypeOf<typeof Document>; | ||
export declare const IpeDelivery: t.IntersectionC<[t.TypeC<{ | ||
companyId: t.StringC; | ||
branchId: t.StringC; | ||
erpId: t.StringC; | ||
employeeId: t.StringC; | ||
ca: t.StringC; | ||
deliveryDate: t.Type<Date, string, unknown>; | ||
caExpirationDate: t.Type<Date, string, unknown>; | ||
deliveryAmount: t.NumberC; | ||
reason: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>, t.LiteralC<6>, t.LiteralC<7>, t.LiteralC<8>, t.LiteralC<9>]>; | ||
effective: t.BooleanC; | ||
}>, t.PartialC<{ | ||
returnDate: t.Type<Date, string, unknown>; | ||
amountReturned: t.NumberC; | ||
returnReason: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>]>; | ||
observation: t.StringC; | ||
issueDate: t.Type<Date, string, unknown>; | ||
lastMaintenanceDate: t.Type<Date, string, unknown>; | ||
cost: t.NumberC; | ||
}>]>; | ||
export declare type IpeDelivery = t.TypeOf<typeof IpeDelivery>; | ||
export declare const MedicalRecord: t.IntersectionC<[t.TypeC<{ | ||
companyId: t.StringC; | ||
branchId: t.StringC; | ||
erpId: t.StringC; | ||
employeeId: t.StringC; | ||
candidate: t.BooleanC; | ||
name: t.StringC; | ||
bloodDonator: t.BooleanC; | ||
type: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>, t.LiteralC<6>, t.LiteralC<7>, t.LiteralC<8>]>; | ||
birthday: t.Type<Date, string, unknown>; | ||
gender: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>]>; | ||
weight: t.NumberC; | ||
height: t.NumberC; | ||
smoker: t.BooleanC; | ||
}>, t.PartialC<{ | ||
eyeHeight: t.NumberC; | ||
nippleLine: t.NumberC; | ||
pubicHeight: t.NumberC; | ||
kneeHeight: t.NumberC; | ||
elbowHeight: t.NumberC; | ||
armSize: t.NumberC; | ||
forearmSize: t.NumberC; | ||
handSize: t.NumberC; | ||
legSize: t.NumberC; | ||
shoesSize: t.NumberC; | ||
genderEnum: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>]>; | ||
eyeColor: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>, t.LiteralC<6>, t.LiteralC<7>, t.LiteralC<8>, t.LiteralC<9>, t.LiteralC<10>]>; | ||
hairColor: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>, t.LiteralC<6>, t.LiteralC<7>]>; | ||
skinColor: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>]>; | ||
tamagistPeriod: t.NumberC; | ||
amountConsumed: t.NumberC; | ||
historic: t.StringC; | ||
systolicPressure: t.NumberC; | ||
diastolicPressure: t.NumberC; | ||
temperature: t.NumberC; | ||
pulse: t.NumberC; | ||
}>]>; | ||
export declare type MedicalRecord = t.TypeOf<typeof MedicalRecord>; | ||
export declare const SSTOccupation: t.IntersectionC<[t.TypeC<{ | ||
companyId: t.StringC; | ||
branchId: t.StringC; | ||
erpId: t.StringC; | ||
ipe: t.ArrayC<t.StringC>; | ||
exams: t.ArrayC<t.IntersectionC<[t.TypeC<{ | ||
description: t.StringC; | ||
type: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>, t.LiteralC<6>, t.LiteralC<7>, t.LiteralC<8>, t.LiteralC<9>]>; | ||
admission: t.BooleanC; | ||
periodic: t.BooleanC; | ||
backToWork: t.BooleanC; | ||
dismissal: t.BooleanC; | ||
changeOfFunction: t.BooleanC; | ||
}>, t.PartialC<{ | ||
periodicity: t.TypeC<{ | ||
description: t.StringC; | ||
fromAge: t.NumberC; | ||
toAge: t.NumberC; | ||
periodicity: t.NumberC; | ||
postAdmission: t.NumberC; | ||
}>; | ||
}>]>>; | ||
}>, t.PartialC<{}>]>; | ||
export declare type SSTOccupation = t.TypeOf<typeof SSTOccupation>; | ||
export declare const Quiz: t.IntersectionC<[t.TypeC<{ | ||
companyId: t.StringC; | ||
branchId: t.StringC; | ||
erpId: t.StringC; | ||
description: t.StringC; | ||
questionsGroup: t.ArrayC<t.TypeC<{ | ||
question: t.StringC; | ||
answers: t.ArrayC<t.TypeC<{ | ||
description: t.StringC; | ||
}>>; | ||
}>>; | ||
}>, t.PartialC<{}>]>; | ||
export declare type Quiz = t.TypeOf<typeof Quiz>; | ||
export declare const Risk: t.IntersectionC<[t.TypeC<{ | ||
companyId: t.StringC; | ||
/** | ||
* Convert a TOTVS' TTalk message to an internal model of our own. | ||
* | ||
* @param from Original message | ||
*/ | ||
branchId: t.StringC; | ||
erpId: t.StringC; | ||
recognitionDate: t.Type<Date, string, unknown>; | ||
riskAgent: t.IntersectionC<[t.TypeC<{ | ||
description: t.StringC; | ||
group: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>, t.LiteralC<6>, t.LiteralC<7>]>; | ||
evaluation: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>]>; | ||
}>, t.PartialC<{ | ||
eSocialCode: t.StringC; | ||
}>]>; | ||
generatingSource: t.StringC; | ||
environment: t.StringC; | ||
costCenter: t.ArrayC<t.TypeC<{ | ||
erpId: t.StringC; | ||
description: t.StringC; | ||
}>>; | ||
department: t.ArrayC<t.TypeC<{ | ||
erpId: t.StringC; | ||
description: t.StringC; | ||
}>>; | ||
occupation: t.ArrayC<t.TypeC<{ | ||
erpId: t.StringC; | ||
description: t.StringC; | ||
}>>; | ||
task: t.ArrayC<t.TypeC<{ | ||
description: t.StringC; | ||
}>>; | ||
person: t.ArrayC<t.TypeC<{ | ||
erpId: t.StringC; | ||
name: t.StringC; | ||
individualRegistration: t.StringC; | ||
birthday: t.Type<Date, string, unknown>; | ||
gender: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>]>; | ||
}>>; | ||
measurement: t.ArrayC<t.TypeC<{ | ||
date: t.Type<Date, string, unknown>; | ||
value: t.NumberC; | ||
instrument: t.StringC; | ||
}>>; | ||
controlMeasure: t.ArrayC<t.TypeC<{ | ||
description: t.StringC; | ||
type: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>]>; | ||
}>>; | ||
ipe: t.ArrayC<t.StringC>; | ||
training: t.ArrayC<t.TypeC<{ | ||
erpId: t.StringC; | ||
description: t.StringC; | ||
urgency: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>; | ||
}>>; | ||
exam: t.ArrayC<t.IntersectionC<[t.TypeC<{ | ||
description: t.StringC; | ||
type: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>, t.LiteralC<4>, t.LiteralC<5>, t.LiteralC<6>, t.LiteralC<7>, t.LiteralC<8>, t.LiteralC<9>]>; | ||
admission: t.BooleanC; | ||
periodic: t.BooleanC; | ||
backToWork: t.BooleanC; | ||
dismissal: t.BooleanC; | ||
changeOfFunction: t.BooleanC; | ||
}>, t.PartialC<{ | ||
periodicity: t.TypeC<{ | ||
description: t.StringC; | ||
fromAge: t.NumberC; | ||
toAge: t.NumberC; | ||
periodicity: t.NumberC; | ||
postAdmission: t.NumberC; | ||
}>; | ||
}>]>>; | ||
}>, t.PartialC<{ | ||
icd: t.StringC; | ||
observation: t.StringC; | ||
}>]>; | ||
export declare type Risk = t.TypeOf<typeof Risk>; | ||
export declare const Vaccine: t.IntersectionC<[t.TypeC<{ | ||
companyId: t.StringC; | ||
branchId: t.StringC; | ||
erpId: t.StringC; | ||
employeeId: t.StringC; | ||
vaccine: t.TypeC<{ | ||
description: t.StringC; | ||
gender: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>; | ||
fromAge: t.NumberC; | ||
toAge: t.NumberC; | ||
reinforcement: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>; | ||
reinforcementInterval: t.NumberC; | ||
secondDoseInterval: t.NumberC; | ||
thirdDoseInterval: t.NumberC; | ||
}>; | ||
date: t.StringC; | ||
status: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>; | ||
currentDose: t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>, t.LiteralC<3>]>; | ||
dose: t.NumberC; | ||
}>, t.PartialC<{ | ||
batch: t.StringC; | ||
}>]>; | ||
export declare type Vaccine = t.TypeOf<typeof Vaccine>; |
@@ -22,3 +22,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.MedicalConsultation = exports.SickNote = exports.Position = exports.Department = exports.WorkingShift = exports.Training = exports.StabilityType = exports.Occupation = exports.CostCenter = exports.AllowanceType = exports.AbsenceType = exports.TrainingHistory = exports.FunctionalHistory = exports.Dependant = exports.Employee = exports.Person = exports.MedicalConsultationInfo = exports.SickNoteInfo = exports.TrainingNecessityInfo = exports.StabilityControlInfo = exports.LeaveOfAbsenceInfo = exports.AllowanceInfo = exports.InformationDeficienciesInfo = exports.AdditionalInfo = exports.WorkingShiftInfo = exports.ClassInfo = exports.StabilityTypeInfo = exports.PositionInfo = exports.AllowanceTypesInfo = exports.LeaveOfAbsenceTypeInfo = exports.PayRollCostCenterInfo = exports.PaginatedObject = exports.Object = void 0; | ||
exports.Vaccine = exports.Risk = exports.Quiz = exports.SSTOccupation = exports.MedicalRecord = exports.IpeDelivery = exports.Document = exports.Deficiencies = exports.ClinicalQuiz = exports.Accredited = exports.MedicalConsultation = exports.SickNote = exports.Position = exports.Department = exports.WorkingShift = exports.Training = exports.StabilityType = exports.Occupation = exports.CostCenter = exports.AllowanceType = exports.AbsenceType = exports.TrainingHistory = exports.FunctionalHistory = exports.Dependant = exports.Employee = exports.Person = exports.VaccineInfo = exports.RiskInfo = exports.QuizInfo = exports.OccupationInfo = exports.MedicalRecordInfo = exports.IpeDeliveryInfo = exports.DocumentInfo = exports.DeficienciesInfo = exports.ClinicalQuizInfo = exports.AccreditedInfo = exports.MedicalConsultationInfo = exports.SickNoteInfo = exports.TrainingNecessityInfo = exports.StabilityControlInfo = exports.LeaveOfAbsenceInfo = exports.AllowanceInfo = exports.InformationDeficienciesInfo = exports.AdditionalInfo = exports.WorkingShiftInfo = exports.ClassInfo = exports.StabilityTypeInfo = exports.PositionInfo = exports.AllowanceTypesInfo = exports.LeaveOfAbsenceTypeInfo = exports.PayRollCostCenterInfo = exports.PaginatedObject = exports.Object = void 0; | ||
const t = __importStar(require("io-ts")); | ||
@@ -56,2 +56,23 @@ const Additional_1_000_1 = require("./schemas/Additional_1_000"); | ||
Object.defineProperty(exports, "MedicalConsultationInfo", { enumerable: true, get: function () { return MedicalConsultation_1.MedicalConsultationInfo; } }); | ||
/** SST imports informations */ | ||
const Accredited_1 = require("./schemas/Accredited"); | ||
Object.defineProperty(exports, "AccreditedInfo", { enumerable: true, get: function () { return Accredited_1.AccreditedInfo; } }); | ||
const ClinicalQuiz_1 = require("./schemas/ClinicalQuiz"); | ||
Object.defineProperty(exports, "ClinicalQuizInfo", { enumerable: true, get: function () { return ClinicalQuiz_1.ClinicalQuizInfo; } }); | ||
const Deficiencies_1 = require("./schemas/Deficiencies"); | ||
Object.defineProperty(exports, "DeficienciesInfo", { enumerable: true, get: function () { return Deficiencies_1.DeficienciesInfo; } }); | ||
const Document_1 = require("./schemas/Document"); | ||
Object.defineProperty(exports, "DocumentInfo", { enumerable: true, get: function () { return Document_1.DocumentInfo; } }); | ||
const IpeDelivery_1 = require("./schemas/IpeDelivery"); | ||
Object.defineProperty(exports, "IpeDeliveryInfo", { enumerable: true, get: function () { return IpeDelivery_1.IpeDeliveryInfo; } }); | ||
const MedicalRecord_1 = require("./schemas/MedicalRecord"); | ||
Object.defineProperty(exports, "MedicalRecordInfo", { enumerable: true, get: function () { return MedicalRecord_1.MedicalRecordInfo; } }); | ||
const Occupation_1 = require("./schemas/Occupation"); | ||
Object.defineProperty(exports, "OccupationInfo", { enumerable: true, get: function () { return Occupation_1.OccupationInfo; } }); | ||
const Quiz_1 = require("./schemas/Quiz"); | ||
Object.defineProperty(exports, "QuizInfo", { enumerable: true, get: function () { return Quiz_1.QuizInfo; } }); | ||
const Risk_1 = require("./schemas/Risk"); | ||
Object.defineProperty(exports, "RiskInfo", { enumerable: true, get: function () { return Risk_1.RiskInfo; } }); | ||
const Vaccine_1 = require("./schemas/Vaccine"); | ||
Object.defineProperty(exports, "VaccineInfo", { enumerable: true, get: function () { return Vaccine_1.VaccineInfo; } }); | ||
/** | ||
@@ -75,3 +96,13 @@ * An object as returned by TOTVS' TTalk API. | ||
SickNote_1.SickNoteInfo, | ||
MedicalConsultation_1.MedicalConsultationInfo | ||
MedicalConsultation_1.MedicalConsultationInfo, | ||
Accredited_1.AccreditedInfo, | ||
ClinicalQuiz_1.ClinicalQuizInfo, | ||
Deficiencies_1.DeficienciesInfo, | ||
Document_1.DocumentInfo, | ||
IpeDelivery_1.IpeDeliveryInfo, | ||
MedicalRecord_1.MedicalRecordInfo, | ||
Occupation_1.OccupationInfo, | ||
Quiz_1.QuizInfo, | ||
Risk_1.RiskInfo, | ||
Vaccine_1.VaccineInfo | ||
]); | ||
@@ -282,1 +313,11 @@ /** | ||
exports.MedicalConsultation = MedicalConsultation_1.MedicalConsultationInfo; | ||
exports.Accredited = Accredited_1.AccreditedInfo; | ||
exports.ClinicalQuiz = ClinicalQuiz_1.ClinicalQuizInfo; | ||
exports.Deficiencies = Deficiencies_1.DeficienciesInfo; | ||
exports.Document = Document_1.DocumentInfo; | ||
exports.IpeDelivery = IpeDelivery_1.IpeDeliveryInfo; | ||
exports.MedicalRecord = MedicalRecord_1.MedicalRecordInfo; | ||
exports.SSTOccupation = Occupation_1.OccupationInfo; | ||
exports.Quiz = Quiz_1.QuizInfo; | ||
exports.Risk = Risk_1.RiskInfo; | ||
exports.Vaccine = Vaccine_1.VaccineInfo; |
@@ -90,3 +90,13 @@ "use strict"; | ||
constructors_1.userMessage('sicknote', t.array(index_1.SickNote)), | ||
constructors_1.userMessage('medicalconsultation', t.array(index_1.MedicalConsultation)) | ||
constructors_1.userMessage('medicalconsultation', t.array(index_1.MedicalConsultation)), | ||
constructors_1.userMessage('accredited', t.array(index_1.Accredited)), | ||
constructors_1.userMessage('clinicalquiz', t.array(index_1.ClinicalQuiz)), | ||
constructors_1.userMessage('deficiencies', t.array(index_1.Deficiencies)), | ||
constructors_1.userMessage('document', t.array(index_1.Document)), | ||
constructors_1.userMessage('ipedelivery', t.array(index_1.IpeDelivery)), | ||
constructors_1.userMessage('medicalrecord', t.array(index_1.MedicalRecord)), | ||
constructors_1.userMessage('sstoccupation', t.array(index_1.SSTOccupation)), | ||
constructors_1.userMessage('quiz', t.array(index_1.Quiz)), | ||
constructors_1.userMessage('risk', t.array(index_1.Risk)), | ||
constructors_1.userMessage('vaccine', t.array(index_1.Vaccine)), | ||
]); | ||
@@ -93,0 +103,0 @@ exports.SenderMessageContent = t.union([ |
@@ -20,5 +20,8 @@ import * as t from 'io-ts'; | ||
export declare type AdditionalInfo = t.TypeOf<typeof AdditionalInfo>; | ||
export declare const PagedAdditional: t.IntersectionC<[t.TypeC<{ | ||
export declare const PagedAdditional: t.IntersectionC<[t.IntersectionC<[t.TypeC<{ | ||
hasNext: t.BooleanC; | ||
}>, t.TypeC<{ | ||
}>, t.PartialC<{ | ||
totalAmount: t.NumberC; | ||
amount: t.NumberC; | ||
}>]>, t.TypeC<{ | ||
items: t.ArrayC<t.IntersectionC<[t.TypeC<{ | ||
@@ -25,0 +28,0 @@ /** Codigo da Empresa */ |
@@ -26,5 +26,8 @@ import * as t from 'io-ts'; | ||
export declare type AllowanceInfo = t.TypeOf<typeof AllowanceInfo>; | ||
export declare const PagedAllowance: t.IntersectionC<[t.TypeC<{ | ||
export declare const PagedAllowance: t.IntersectionC<[t.IntersectionC<[t.TypeC<{ | ||
hasNext: t.BooleanC; | ||
}>, t.TypeC<{ | ||
}>, t.PartialC<{ | ||
totalAmount: t.NumberC; | ||
amount: t.NumberC; | ||
}>]>, t.TypeC<{ | ||
items: t.ArrayC<t.IntersectionC<[t.TypeC<{ | ||
@@ -31,0 +34,0 @@ /** Codigo da Empresa */ |
@@ -16,5 +16,8 @@ import * as t from 'io-ts'; | ||
export declare type AllowanceTypesInfo = t.TypeOf<typeof AllowanceTypesInfo>; | ||
export declare const PagedAllowanceTypes: t.IntersectionC<[t.TypeC<{ | ||
export declare const PagedAllowanceTypes: t.IntersectionC<[t.IntersectionC<[t.TypeC<{ | ||
hasNext: t.BooleanC; | ||
}>, t.PartialC<{ | ||
totalAmount: t.NumberC; | ||
amount: t.NumberC; | ||
}>]>, t.PartialC<{ | ||
items: t.ArrayC<t.IntersectionC<[t.TypeC<{ | ||
@@ -21,0 +24,0 @@ /** Descrição do Tipo de Abono */ |
@@ -36,5 +36,8 @@ import * as t from 'io-ts'; | ||
export declare type Classes = t.TypeOf<typeof Classes>; | ||
export declare const PagedClasses: t.IntersectionC<[t.TypeC<{ | ||
export declare const PagedClasses: t.IntersectionC<[t.IntersectionC<[t.TypeC<{ | ||
hasNext: t.BooleanC; | ||
}>, t.PartialC<{ | ||
totalAmount: t.NumberC; | ||
amount: t.NumberC; | ||
}>]>, t.PartialC<{ | ||
items: t.ArrayC<t.IntersectionC<[t.TypeC<{ | ||
@@ -41,0 +44,0 @@ /** Código da Empresa */ |
@@ -28,5 +28,8 @@ import * as t from 'io-ts'; | ||
export declare type InformationDeficienciesInfo = t.TypeOf<typeof InformationDeficienciesInfo>; | ||
export declare const PagedInformationDeficiencies: t.IntersectionC<[t.TypeC<{ | ||
hasNext: t.BooleanC; | ||
}>, t.TypeC<{ | ||
export declare const PagedInformationDeficiencies: t.IntersectionC<[t.IntersectionC<[t.TypeC<{ | ||
hasNext: t.BooleanC; /** Identificador de Reabilitação */ | ||
}>, t.PartialC<{ | ||
totalAmount: t.NumberC; | ||
amount: t.NumberC; | ||
}>]>, t.TypeC<{ | ||
items: t.ArrayC<t.IntersectionC<[t.TypeC<{ | ||
@@ -33,0 +36,0 @@ /** Codigo da Empresa */ |
@@ -46,5 +46,8 @@ import * as t from 'io-ts'; | ||
export declare type LeaveOfAbsenceInfo = t.TypeOf<typeof LeaveOfAbsenceInfo>; | ||
export declare const PagedLeaveOfAbsence: t.IntersectionC<[t.TypeC<{ | ||
export declare const PagedLeaveOfAbsence: t.IntersectionC<[t.IntersectionC<[t.TypeC<{ | ||
hasNext: t.BooleanC; | ||
}>, t.TypeC<{ | ||
}>, t.PartialC<{ | ||
totalAmount: t.NumberC; | ||
amount: t.NumberC; | ||
}>]>, t.TypeC<{ | ||
items: t.ArrayC<t.IntersectionC<[t.TypeC<{ | ||
@@ -51,0 +54,0 @@ /** Codigo da Empresa */ |
@@ -36,5 +36,8 @@ import * as t from 'io-ts'; | ||
export declare type LeaveOfAbsenceTypes = t.TypeOf<typeof LeaveOfAbsenceTypes>; | ||
export declare const PagedLeaveOfAbsenceTypes: t.IntersectionC<[t.TypeC<{ | ||
export declare const PagedLeaveOfAbsenceTypes: t.IntersectionC<[t.IntersectionC<[t.TypeC<{ | ||
hasNext: t.BooleanC; | ||
}>, t.PartialC<{ | ||
totalAmount: t.NumberC; | ||
amount: t.NumberC; | ||
}>]>, t.PartialC<{ | ||
items: t.ArrayC<t.IntersectionC<[t.TypeC<{ | ||
@@ -41,0 +44,0 @@ /** Codigo da Empresa */ |
@@ -44,7 +44,12 @@ import * as t from 'io-ts'; | ||
}>]>>; | ||
/** Chave única do registro */ | ||
erpId: t.StringC; | ||
}>]>; | ||
export declare type MedicalConsultationInfo = t.TypeOf<typeof MedicalConsultationInfo>; | ||
export declare const PagedMedicalConsultation: t.IntersectionC<[t.TypeC<{ | ||
export declare const PagedMedicalConsultation: t.IntersectionC<[t.IntersectionC<[t.TypeC<{ | ||
hasNext: t.BooleanC; | ||
}>, t.TypeC<{ | ||
}>, t.PartialC<{ | ||
totalAmount: t.NumberC; | ||
amount: t.NumberC; | ||
}>]>, t.TypeC<{ | ||
items: t.ArrayC<t.IntersectionC<[t.TypeC<{ | ||
@@ -92,4 +97,6 @@ /** Codigo da Empresa */ | ||
}>]>>; | ||
/** Chave única do registro */ | ||
erpId: t.StringC; | ||
}>]>>; | ||
}>]>; | ||
export declare type PagedMedicalConsultation = t.TypeOf<typeof PagedMedicalConsultation>; |
@@ -74,3 +74,5 @@ "use strict"; | ||
/** Lista de Exames */ | ||
examList: t.array(ExamInfo) | ||
examList: t.array(ExamInfo), | ||
/** Chave única do registro */ | ||
erpId: t.string | ||
}) | ||
@@ -77,0 +79,0 @@ ]); |
@@ -36,5 +36,8 @@ import * as t from 'io-ts'; | ||
export declare type PayRollCostCenters = t.TypeOf<typeof PayRollCostCenters>; | ||
export declare const PagedPayRollCostCenter: t.IntersectionC<[t.TypeC<{ | ||
export declare const PagedPayRollCostCenter: t.IntersectionC<[t.IntersectionC<[t.TypeC<{ | ||
hasNext: t.BooleanC; | ||
}>, t.PartialC<{ | ||
totalAmount: t.NumberC; | ||
amount: t.NumberC; | ||
}>]>, t.PartialC<{ | ||
items: t.ArrayC<t.IntersectionC<[t.TypeC<{ | ||
@@ -41,0 +44,0 @@ /** Código da Empresa */ |
@@ -40,5 +40,8 @@ import * as t from 'io-ts'; | ||
export declare type Positions = t.TypeOf<typeof Positions>; | ||
export declare const PagedPositions: t.IntersectionC<[t.TypeC<{ | ||
export declare const PagedPositions: t.IntersectionC<[t.IntersectionC<[t.TypeC<{ | ||
hasNext: t.BooleanC; | ||
}>, t.PartialC<{ | ||
totalAmount: t.NumberC; | ||
amount: t.NumberC; | ||
}>]>, t.PartialC<{ | ||
items: t.ArrayC<t.IntersectionC<[t.TypeC<{ | ||
@@ -45,0 +48,0 @@ /** Código da Empresa */ |
@@ -48,7 +48,13 @@ import * as t from 'io-ts'; | ||
numberOfBenefit: t.StringC; | ||
/** Chave única do registro */ | ||
erpId: t.StringC; | ||
}>]>; | ||
export declare type SickNoteInfo = t.TypeOf<typeof SickNoteInfo>; | ||
export declare const PagedSickNote: t.IntersectionC<[t.TypeC<{ | ||
hasNext: t.BooleanC; /** Observações */ | ||
}>, t.TypeC<{ | ||
export declare const PagedSickNote: t.IntersectionC<[t.IntersectionC<[t.TypeC<{ | ||
/** Observações */ | ||
hasNext: t.BooleanC; | ||
}>, t.PartialC<{ | ||
totalAmount: t.NumberC; | ||
amount: t.NumberC; | ||
}>]>, t.TypeC<{ | ||
items: t.ArrayC<t.IntersectionC<[t.TypeC<{ | ||
@@ -100,4 +106,6 @@ /** Codigo da Empresa */ | ||
numberOfBenefit: t.StringC; | ||
/** Chave única do registro */ | ||
erpId: t.StringC; | ||
}>]>>; | ||
}>]>; | ||
export declare type PagedSickNote = t.TypeOf<typeof PagedSickNote>; |
@@ -74,3 +74,5 @@ "use strict"; | ||
/** */ | ||
numberOfBenefit: t.string | ||
numberOfBenefit: t.string, | ||
/** Chave única do registro */ | ||
erpId: t.string | ||
}) | ||
@@ -77,0 +79,0 @@ ]); |
@@ -20,5 +20,8 @@ import * as t from 'io-ts'; | ||
export declare type StabilityControlInfo = t.TypeOf<typeof StabilityControlInfo>; | ||
export declare const PagedStabilityControl: t.IntersectionC<[t.TypeC<{ | ||
export declare const PagedStabilityControl: t.IntersectionC<[t.IntersectionC<[t.TypeC<{ | ||
hasNext: t.BooleanC; | ||
}>, t.TypeC<{ | ||
}>, t.PartialC<{ | ||
totalAmount: t.NumberC; | ||
amount: t.NumberC; | ||
}>]>, t.TypeC<{ | ||
items: t.ArrayC<t.IntersectionC<[t.TypeC<{ | ||
@@ -25,0 +28,0 @@ /** Codigo da Empresa */ |
@@ -32,5 +32,8 @@ import * as t from 'io-ts'; | ||
export declare type StabilityTypes = t.TypeOf<typeof StabilityTypes>; | ||
export declare const PagedStabilityTypes: t.IntersectionC<[t.TypeC<{ | ||
export declare const PagedStabilityTypes: t.IntersectionC<[t.IntersectionC<[t.TypeC<{ | ||
hasNext: t.BooleanC; | ||
}>, t.PartialC<{ | ||
totalAmount: t.NumberC; | ||
amount: t.NumberC; | ||
}>]>, t.PartialC<{ | ||
items: t.ArrayC<t.IntersectionC<[t.TypeC<{ | ||
@@ -37,0 +40,0 @@ /** Codigo da Empresa */ |
@@ -24,5 +24,8 @@ import * as t from 'io-ts'; | ||
export declare type TrainingNecessityInfo = t.TypeOf<typeof TrainingNecessityInfo>; | ||
export declare const PagedTrainingNecessity: t.IntersectionC<[t.TypeC<{ | ||
export declare const PagedTrainingNecessity: t.IntersectionC<[t.IntersectionC<[t.TypeC<{ | ||
hasNext: t.BooleanC; | ||
}>, t.TypeC<{ | ||
}>, t.PartialC<{ | ||
totalAmount: t.NumberC; | ||
amount: t.NumberC; | ||
}>]>, t.TypeC<{ | ||
items: t.ArrayC<t.IntersectionC<[t.TypeC<{ | ||
@@ -29,0 +32,0 @@ /** Codigo da Empresa */ |
@@ -40,5 +40,8 @@ import * as t from 'io-ts'; | ||
export declare type WorkingShifts = t.TypeOf<typeof WorkingShifts>; | ||
export declare const PagedWorkingShifts: t.IntersectionC<[t.TypeC<{ | ||
export declare const PagedWorkingShifts: t.IntersectionC<[t.IntersectionC<[t.TypeC<{ | ||
hasNext: t.BooleanC; | ||
}>, t.PartialC<{ | ||
totalAmount: t.NumberC; | ||
amount: t.NumberC; | ||
}>]>, t.PartialC<{ | ||
items: t.ArrayC<t.IntersectionC<[t.TypeC<{ | ||
@@ -45,0 +48,0 @@ /** Código da Empresa */ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1154144
164
27303