2.0info: 3.4.0 HCM – Clocking Event Time Evaluation Engine BFF description: HCM – Clocking Event Time Evaluation Engine BFF x-senior-domain: HCM – Clocking Event Time Evaluation Engine BFF x-senior-domain-path: hcm_clocking_event_time_evaluation x-senior-service-path: engine_bff contact: name: Senior X Platform url: https://dev.senior.com.br email: seniorx-dev@senior.com.brhost: platform.senior.com.br /t/senior.com.br/bridge/1.0/rest/hcm_clocking_event_time_evaluationsecurityDefinitions: APIKeyHeader: type: apiKey in: header name: Authorizationsecurity: – APIKeyHeader: [] – application/json – application/jsonpaths: /engine_bff/queries/healthcheck: post: description: HealthCheck plataforma tags: – Queries x-senior-visibility: PRIVATE responses: 200: description: Ok schema: type: object required: – status – checks properties: status: type: string allOf: – #/definitions/healthcheckDTO description: Status de retorno checks: type: object allOf: – #/definitions/checkDTO description: Checks executados 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: HealthCheck plataforma tags: – Queries x-senior-visibility: PRIVATE responses: 200: description: Ok schema: type: object required: – status – checks properties: status: type: string allOf: – #/definitions/healthcheckDTO description: Status de retorno checks: type: object allOf: – #/definitions/checkDTO description: Checks executados 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /engine_bff/queries/getTimeEvaluationsByEmployeesAndDates: post: description: Busca uma lista de apurações para os colaboradores nas datas de apuração informadas tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – employeesIds – timeEvaluationDate properties: employeesIds: type: array items: type: string maxLength: 255 minimum: 1 description: Id do colaborador timeEvaluationDate: type: array items: type: string format: date minimum: 1 description: Data da apuração responses: 200: description: Ok schema: type: object required: – timeEvaluation properties: timeEvaluation: type: array items: type: object allOf: – #/definitions/timeEvaluationDTO minimum: 1 description: DTO da apuração 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /engine_bff/queries/checkBlockedDaysByEmployeeDateIntervals: post: description: Verifica os dias bloqueados considerando os intervalos informados, limitados em 60 dias. tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – employeeId – dateIntervals properties: employeeId: type: string maxLength: 255 description: Id do Colaborador dateIntervals: type: array items: type: object allOf: – #/definitions/dateIntervalDTO minimum: 1 description: Intervalos a serem validados, incluído o início e o término responses: 200: description: Ok schema: type: object allOf: – #/definitions/blockedDaysResultDTO 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /engine_bff/queries/hasLeaveWithESocialReasonTypeInPeriodBFF: post: description: Verifica se existe um afastamento para o colaborador nos período pesquisado com um dos motivos eSocial pesquisados tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – employeeId – periodStartDate – periodEndDate – eSocialReasonTypes properties: employeeId: type: string maxLength: 36 description: Identificador único do colabroador periodStartDate: type: string format: date description: Data de inicio do periodo consultado periodEndDate: type: string format: date description: Data fim do periodo consultado eSocialReasonTypes: type: array items: type: string allOf: – #/definitions/eSocialReasonType minimum: 1 description: Motivos eSocial pesquisados responses: 200: description: Ok schema: type: object required: – result properties: result: type: boolean description: Resultado da consulta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /engine_bff/queries/getMetadata: post: description: Default getMetadata query. Every service must handle this command and return metadata in the format requested. tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object properties: metadataFormat: type: string maxLength: 255 description: responses: 200: description: Ok schema: type: object required: – metadata properties: metadata: type: string maxLength: 255 description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Default getMetadata query. Every service must handle this command and return metadata in the format requested. tags: – Queries x-senior-visibility: PRIVATE parameters: – name: metadataFormat description: in: query type: string maxLength: 255 responses: 200: description: Ok schema: type: object required: – metadata properties: metadata: type: string maxLength: 255 description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /engine_bff/queries/getDependencies: post: description: Returns a list with all dependencies from this service, along with their respective versions tags: – Queries x-senior-visibility: PRIVATE responses: 200: description: Ok schema: type: object required: – dependencies properties: dependencies: type: array items: type: object allOf: – #/definitions/dependency minimum: 1 description: List with this service dependencies 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Returns a list with all dependencies from this service, along with their respective versions tags: – Queries x-senior-visibility: PRIVATE responses: 200: description: Ok schema: type: object required: – dependencies properties: dependencies: type: array items: type: object allOf: – #/definitions/dependency minimum: 1 description: List with this service dependencies 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /engine_bff/actions/reevaluateScheduleHistory: post: description: Recalculo de apuração para históricos e programações (Interno) tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – reevaluateInput properties: reevaluateInput: type: object allOf: – #/definitions/reevaluateEmployeeDTO description: DTO para reapurar o ponto do colaborador responses: 200: description: Ok schema: type: object 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /engine_bff/actions/reevaluateEmployeeDay: post: description: Recalculo de apuração para tela de acerto tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – reevaluateInput properties: reevaluateInput: type: object allOf: – #/definitions/timeEvaluationVersionDTO description: DTO para reapurar o ponto do colaborador responses: 200: description: Ok schema: type: object 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /engine_bff/actions/timeEvaluationChangesBatch: post: description: Endpoint que salva ou exclui marcações para uma data tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – timeEvaluation – clockingEventBatch properties: timeEvaluation: type: object allOf: – #/definitions/timeEvaluationVersionDTO description: Apuração clockingEventBatch: type: object allOf: – #/definitions/clockingEventBatchDTO description: Lote de marcações responses: 200: description: Ok schema: type: object 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /engine_bff/actions/allowsShiftingClockingEvent: post: description: Endpoint que verifca se permite mover marcação tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – timeEvaluation – shiftingClockingEvent – clockingEventBatch – forwards properties: timeEvaluation: type: object allOf: – #/definitions/timeEvaluationDTO description: Id da apuração shiftingClockingEvent: type: object allOf: – #/definitions/clockingEventShiftedDTO description: Marcação à ser movida clockingEventBatch: type: object allOf: – #/definitions/clockingEventBatchDTO description: Lote de marcações forwards: type: boolean description: Sentido da ação de mover marcação responses: 200: description: Ok schema: type: object required: – result properties: result: type: boolean description: Resultado da chamada 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /engine_bff/actions/timeEvaluationSituationChangesBatch: post: description: Endpoint que salva ou exclui situações para uma data tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – timeEvaluation properties: timeEvaluation: type: object allOf: – #/definitions/timeEvaluationVersionDTO description: Apuração situations: type: array items: type: object allOf: – #/definitions/timeEvaluationSituationDTO description: Situações para incluir ou editar responses: 200: description: Ok schema: type: object 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /engine_bff/actions/verifyEmployeeTimeEvaluation: post: description: Ação para verificação das pendências do dia apurado do colaborador tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – verified – timeEvaluationId – version properties: verified: type: boolean description: Estado da verificação timeEvaluationId: type: string maxLength: 36 description: Dia apurado type: integer format: int64 description: Versão do dia apurado responses: 200: description: Ok schema: type: object required: – version properties: type: integer format: int64 description: Versão do dia apurado atualizado 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /engine_bff/actions/verifyEmployeeTimeEvaluationPeriod: post: description: Ação para verificação das pendências do dia apurado do colaborador tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – employeeId – days – verified properties: employeeId: type: string maxLength: 36 description: Colaborador days: type: array items: type: string format: date minimum: 1 description: Dias apurados à serem verificados verified: type: boolean description: Estado da verificação responses: 200: description: Ok schema: type: object 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /engine_bff/actions/verifyEmployeeTimeEvaluationByCompetence: post: description: Ação para verificação das pendências de dia apurado para uma lista de colaboradores em uma determinada competência tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – employeeId – competence – verified properties: employeeId: type: string maxLength: 255 description: Colaboradores competence: type: string format: date description: Competência verified: type: boolean description: Estado da verificação responses: 200: description: Ok schema: type: object 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /engine_bff/actions/verifyEmployeesTimeEvaluationsByCompetence: post: description: Ação para verificação das pendências de dia apurado para uma lista de colaboradores em uma determinada competência tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – employees – competence – verified properties: employees: type: array items: type: string maxLength: 255 minimum: 1 description: Colaboradores competence: type: string format: date description: Competência verified: type: boolean description: Estado da verificação responses: 200: description: Ok schema: type: object 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /engine_bff/actions/verifyAllEmployeesTimeEvaluationsByCompetenceBatchAsync: post: description: Ação para verificação das pendências do dia apurado do colaborador em lote tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – competence – verified – filters properties: competence: type: string format: date description: Competência verified: type: boolean description: Estado da verificação filters: type: object allOf: – #/definitions/findEmployeeByCompetenceFilterDTO description: Filtros responses: 200: description: Ok schema: type: object required: – processId properties: processId: type: string maxLength: 255 description: Id do processo 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /engine_bff/signals/reevaluateScheduleHistoryAsync: post: description: recálculo de apuração a partir de históricos e programações tags: – Signals parameters: – name: input in: body required: true schema: type: object required: – reevaluateInput properties: reevaluateInput: type: object allOf: – #/definitions/reevaluateEmployeeDTO description: DTO para reapurar o ponto do colaborador responses: 202: description: Accepted default: description: Error response schema: #/definitions/genericError /engine_bff/signals/reevaluateDaysScheduleHistoryAsync: post: description: recálculo de apuração a partir de históricos e programações tags: – Signals parameters: – name: input in: body required: true schema: type: object required: – reevaluateInput properties: reevaluateInput: type: object allOf: – #/definitions/reevaluateEmployeeDTO description: DTO para reapurar o ponto do colaborador responses: 202: description: Accepted default: description: Error response schema: #/definitions/genericError /engine_bff/events/reevaluateScheduleHistoryEvent: post: description: Evento para recálculo de apuração a partir de históricos e programações x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object required: – reevaluateInput properties: reevaluateInput: type: object allOf: – #/definitions/reevaluateEmployeeDTO description: DTO para reapurar o ponto do colaborador responses: 200: description: OK default: description: Error response schema: #/definitions/genericError /engine_bff/events/employeeReevaluateFinished: post: description: Evento websocket para avisar que o recálculo do colaborador foi finalizado x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object required: – reevaluateInput – result properties: reevaluateInput: type: object allOf: – #/definitions/reevaluateEmployeeDTO description: DTO para reapurar o ponto do colaborador result: type: object allOf: – #/definitions/messageStatus description: DTO com o resultado da operação responses: 200: description: OK default: description: Error response schema: #/definitions/genericError /engine_bff/apis/workshiftHistoryAdjustment: post: description: Histórico de escala para tela de acerto tags: – APIS x-senior-visibility: PUBLIC parameters: – name: input in: body required: true schema: type: object allOf: – #/definitions/workshiftHistoryAdjustmentFacade responses: 200: description: Ok schema: #/definitions/workshiftHistoryAdjustmentFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /engine_bff/apis/workshiftHistoryAdjustment/{id}: get: description: Histórico de escala para tela de acerto tags: – APIS x-senior-visibility: PUBLIC parameters: – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/workshiftHistoryAdjustmentFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError put: description: Histórico de escala para tela de acerto tags: – APIS x-senior-visibility: PUBLIC parameters: – name: id in: path required: true type: string – name: input in: body required: true schema: #/definitions/workshiftHistoryAdjustmentFacade responses: 200: description: Ok schema: #/definitions/workshiftHistoryAdjustmentFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError delete: description: Histórico de escala para tela de acerto tags: – APIS x-senior-visibility: PUBLIC parameters: – name: id in: path required: true type: string responses: 200: description: Ok 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /engine_bff/apis/leaveHistoryAdjustment: post: description: Histórico de escala para tela de acerto tags: – APIS x-senior-visibility: PUBLIC parameters: – name: input in: body required: true schema: type: object allOf: – #/definitions/leaveHistoryAdjustmentFacade responses: 200: description: Ok schema: #/definitions/leaveHistoryAdjustmentFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /engine_bff/apis/leaveHistoryAdjustment/{id}: get: description: Histórico de escala para tela de acerto tags: – APIS x-senior-visibility: PUBLIC parameters: – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/leaveHistoryAdjustmentFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError put: description: Histórico de escala para tela de acerto tags: – APIS x-senior-visibility: PUBLIC parameters: – name: id in: path required: true type: string – name: input in: body required: true schema: #/definitions/leaveHistoryAdjustmentFacade responses: 200: description: Ok schema: #/definitions/leaveHistoryAdjustmentFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError delete: description: Histórico de escala para tela de acerto tags: – APIS x-senior-visibility: PUBLIC parameters: – name: id in: path required: true type: string responses: 200: description: Ok 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError definitions: healthcheckDTO: description: Status do healthcheck type: string enum: – UP – DOWN messageStatusType: description: Status da execução do request type: string enum: – SUCCESS – FAIL clockingEventOriginType: description: Origem Marcação type: string enum: – V1 – V2 – V3 clockingUseType: description: Uso da marcação type: string enum: – V1 identificationType: description: Tipo de Identificação type: string enum: – V1 – V2 – V3 – V4 scheduleType: description: Tipo de horário type: string enum: – RIGID – MOBILE – FLEXIBLE – MOBILE_ENTRANCE_EXIT – MOBILE_MEAL – FLEXIBLE_AT_INTERVALS workscheduleDefinitionType: description: Tipo de Horário type: string enum: – NORMAL – DAYOFF – HOLIDAY – OFFSET – DSR periodType: description: Tipo de período type: string enum: – V1 – V2 – V3 – V4 – V5 – V6 – V7 – V8 – V9 compensationType: description: Tipo de compensação type: string enum: – V1 – V2 – V4 – V5 – V6 timeEvaluationType: description: Tipo de apuração type: string enum: – V1 – V2 – V7 article62CltType: description: Artigo 62 da CLT type: string enum: – V1 – V2 – V3 – V4 sourceReasonChange: description: Origem da mudança type: string enum: – V1 – V2 – V3 processType: description: Tipo do Processo type: string enum: – V1 – V2 – V3 onusRemuneration: description: Ônus pela remuneração type: string enum: – V1 – V2 – V3 workAccidentType: description: Tipo de acidente de trabalho type: string enum: – V1 – V2 – V3 eSocialReasonType: description: Motivo afastamento e-social type: string enum: – V0 – V1 – V3 – V5 – V6 – V7 – V8 – V10 – V11 – V12 – V13 – V14 – V15 – V16 – V17 – V18 – V19 – V20 – V21 – V22 – V23 – V24 – V25 – V26 – V27 – V28 – V29 – V30 – V31 – V33 – V34 – V35 – V36 – V37 – V38 contractType: description: Tipo de contrato type: string enum: – EMPLOYEE – DIRECTOR – TRAINEE – APRENTICE – THIRD_PARTY situationType: description: Tipo da situação type: string enum: – WORKING – VACATION – ILLNESSAID – LABORACCIDENT – MILITARYSERVICE – MATERNITYLEAVE – MATERNITYLEAVENONCRIMINALABORTION – MATERNITYLEAVEANTICIPATIONEXTENSION – CITIZENCOMPANYMATERNITY – INSSMATERNITYLEAVE – LEAVEWITHOUTCOMPENSATION – PAIDLEAVE – PATERNITYLEAVE – CITIZENCOMPANYPATERNITY – COLLECTIVEVACATION – MEDICALLEAVE – MEDICALLEAVEWITHOUTINSS – ABSENCES – OVERTIME – TIMEEVALUATIONSITUATION – PRECAUTIONREADINESS – TRADEUNIONMANDATE – WORKACCIDENTLEAVE – WORKACCIDENTLEAVEWITHOUTINSS – RETIREMENTDUETODISABILITY – OTHERS workshiftType: description: Tipo de escala type: string enum: – PERMANENT – AUTOMATIC_SEARCH managerFilterType: description: Filtro do gestor type: string enum: – ALL – PENDING – EXCEPTION userNotificationKind: description: User notification kind. type: string enum: – Operational – Management – News userNotificationPriority: description: User notification priority. type: string enum: – Error – Alert – None eventEmailFormat: description: Format of the email type: string enum: – HTML – PLAIN_TEXT checkDTO: description: Retorno status usados de retorno type: object required: – name – status properties: name: type: string maxLength: 255 description: Nome do status status: type: string allOf: – #/definitions/healthcheckDTO description: Status messageStatus: description: DTO com o resultado da operação type: object required: – domain – service – status – errorMessage properties: domain: type: string maxLength: 255 description: Domínio service: type: string maxLength: 255 description: Serviço status: type: string allOf: – #/definitions/messageStatusType description: Status errorMessage: type: string maxLength: 255 description: Mensagem de erro reevaluateEmployeeDTO: description: DTO para reapurar o ponto do colaborador type: object required: – employee properties: employee: type: array items: type: string maxLength: 255 minimum: 1 description: Id do colaborador startDate: type: string format: date description: Data início endDate: type: string format: date description: Data final days: type: array items: type: string format: date description: Dias de recálculo reevaluateEmployeeDayDTO: description: DTO para reapurar um dia de ponto do colaborador type: object required: – employee – date properties: employee: type: string maxLength: 255 description: Id do colaborador date: type: string format: date description: Data do cálculo registerJustificationDTO: description: DTO da justificativa de acerto type: object properties: id: type: string maxLength: 255 description: Identificador clockingEventDTO: description: DTO da marcação type: object required: – clockingEventDate – clockingEventTime properties: id: type: string maxLength: 255 description: Identificador clockingEventDate: type: string format: date description: Data da Marcação clockingEventTime: type: string maxLength: 255 description: Hora da Marcação justification: type: object allOf: – #/definitions/registerJustificationDTO description: Justificativa da marcação zoneOffset: type: string maxLength: 255 description: Fuso horário clockingEventDeleteDTO: description: DTO para a exclusão da marcação type: object properties: id: type: string maxLength: 255 description: Identificador justification: type: object allOf: – #/definitions/registerJustificationDTO description: Justificativa da marcação timeEvaluationDTO: description: DTO da apuração type: object required: – id properties: id: type: string maxLength: 255 description: Identificador único workSchedule: type: string maxLength: 255 description: Horário timeEvaluationDate: type: string format: date description: Data da apuração timeEvaluationSituationDTO: description: DTO da situação da apuração type: object required: – situation – numberOfHours properties: id: type: string maxLength: 255 description: Situação da apuração situation: type: object allOf: – #/definitions/situationDTO description: Situação numberOfHours: type: integer format: int64 description: Quantidade de horas da situação em minutos minimum: 1 adjustmentReason: type: object allOf: – #/definitions/adjustmentReasonDTO description: Motivo de acerto situationDTO: description: DTO da situatção com o id type: object required: – id properties: id: type: string maxLength: 255 description: Identificador único name: type: string maxLength: 255 description: Descrição code: type: integer format: int64 description: Código situationType: type: string allOf: – #/definitions/situationType description: Tipo da situação adjustmentReasonDTO: description: DTO do motivo de acerto com o id type: object required: – id properties: id: type: string maxLength: 255 description: Identificador único clockingEventBatchDTO: description: Lote de marcações type: object properties: clockingEvents: type: array items: type: object allOf: – #/definitions/clockingEventDTO description: Marcações para incluir ou editar clockingEventsDelete: type: array items: type: object allOf: – #/definitions/clockingEventDeleteDTO description: Marcações para excluir clockingEventsShiftedForwards: type: array items: type: object allOf: – #/definitions/clockingEventShiftedDTO description: Marcações para mover para frente clockingEventsShiftedBackwards: type: array items: type: object allOf: – #/definitions/clockingEventShiftedDTO description: Marcações para mover para trás clockingEventShiftedDTO: description: DTO da marcação à ser movida type: object required: – dateTime properties: id: type: string maxLength: 255 description: Identificação dateTime: type: string format: date-time description: Data da Marcação justification: type: object allOf: – #/definitions/registerJustificationDTO description: Justificativa zoneOffset: type: string maxLength: 255 description: Fuso horário genericIdDTO: description: DTO para representar identiticador de entidades type: object required: – id properties: id: type: string maxLength: 255 description: Identificador dateIntervalDTO: description: Intervalo de datas type: object required: – startDate – endDate properties: startDate: type: string format: date description: Início do período endDate: type: string format: date description: Fim do período blockedDaysResultDTO: description: Resultado da verificação de dias bloqueados type: object required: – blockedDays properties: blockedDays: type: array items: type: object allOf: – #/definitions/blockDaysReasonDTO minimum: 1 description: Dias bloqueados blockDaysReasonDTO: description: Informação de um dia bloqueado type: object required: – day – reason properties: day: type: string format: date description: Dia reason: type: string maxLength: 255 description: Motivo timeEvaluationVersionDTO: description: DTO da apuração type: object required: – id – version properties: id: type: string maxLength: 255 description: Identificador único type: integer format: int64 description: Versão leaveHistoryAttachmentDTO: description: Anexos do histórico de afastamento type: object required: – name – locationURI properties: id: type: string maxLength: 255 description: Identificador único leaveHistory: type: object allOf: – #/definitions/genericIdDTO description: Histórico de afastamento name: type: string maxLength: 255 description: Nome do arquivo locationURI: type: string maxLength: 2048 description: URI do local documentId: type: string maxLength: 255 description: Id do documento employeeDTO: description: Anexos do histórico de afastamento type: object properties: id: type: string maxLength: 255 description: Identificador único person: type: object allOf: – #/definitions/personDTO description: Pessoa code: type: integer format: int64 description: Cadastro employer: type: object allOf: – #/definitions/companyDTO description: Empresa que o contratou employmentRelationship: type: object allOf: – #/definitions/employmentRelationshipDTO description: Vínculo empregatício personDTO: description: Pessoa type: object properties: id: type: string maxLength: 255 description: Identificador único nomPes: type: string maxLength: 255 description: Nome companyDTO: description: Empresa type: object properties: id: type: string maxLength: 255 description: Identificador único codEmp: type: integer format: int64 description: Código da empresa employmentRelationshipDTO: description: Vínculo empregatício type: object properties: id: type: string maxLength: 255 description: Identificador único contractType: type: string allOf: – #/definitions/contractType description: Tipo de contrato workshiftGroupDTO: description: DTO para Turma de escala type: object required: – id properties: id: type: string maxLength: 255 description: Identificador único code: type: integer format: int64 description: Código baseDate: type: string format: date description: Data base da turma workshiftDTO: description: DTO para escala type: object required: – id properties: id: type: string maxLength: 255 description: Identificador único code: type: integer format: int64 description: Código name: type: string maxLength: 255 description: Nome workshiftType: type: string allOf: – #/definitions/workshiftType description: Tipo de escala findEmployeeByCompetenceFilterDTO: description: Filtro para busca de colaboradores por competência type: object required: – type properties: employeeQuery: type: string maxLength: 255 description: Filtrar pelo código ou nome do colaborador situationId: type: string maxLength: 255 description: Id da Situação employeeId: type: string maxLength: 255 description: Id do colaborador companyId: type: string maxLength: 255 description: Id da empresa type: type: string allOf: – #/definitions/managerFilterType description: Tipo de filtro do gestor notifyUserEventPayload: description: Represents a regular user event notification payload discriminator: _discriminator type: object required: – notificationKind – notificationPriority – notificationSubject – notificationContent – sourceDomain – sourceService – destinationUser – _discriminator properties: notificationClass: type: string maxLength: 255 description: Class of notification notificationOrigin: type: string maxLength: 255 description: Origin of notification. Free text. Optional. notificationKind: type: string allOf: – #/definitions/userNotificationKind description: Notification kind. notificationPriority: type: string allOf: – #/definitions/userNotificationPriority description: Notification priority. notificationSubject: type: string maxLength: 255 description: Notification subject. notificationContent: type: string maxLength: 255 description: Notification content. sourceDomain: type: string maxLength: 255 description: Domain that generates the notification. sourceService: type: string maxLength: 255 description: Service that generates the notification. destinationUser: type: string maxLength: 255 description: Username of the destination user. link: type: string maxLength: 255 description: Notification link _discriminator: type: string maxLength: 255 description: emailNotifyUserEventPayload: description: Represents an email notification payload allOf: – #/definitions/notifyUserEventPayload – type: object required: – from properties: from: type: string maxLength: 255 description: Email sender address sendTo: type: array items: type: string maxLength: 255 description: Additional recipients to send the email to format: type: string allOf: – #/definitions/eventEmailFormat description: Email format pushNotifyUserEventPayload: description: Represents a push notification payload allOf: – #/definitions/notifyUserEventPayload – type: object required: – applicationId properties: applicationId: type: string maxLength: 255 description: Apple/Google application id blobReference: description: Default blob reference type. Every service defines its own. type: object required: – targetObjectId properties: domainName: type: string maxLength: 255 description: The domain the blob belongs to. serviceName: type: string maxLength: 255 description: The service the blob belongs to. targetObjectId: type: string maxLength: 255 description: The basic id of the blob. targetCopyId: type: string maxLength: 255 description: The id of the blob copy. basicErrorPayload: description: Default error payload type. Every service defines its own. type: object properties: message: type: string maxLength: 255 description: The user-facing error message, if any. errorCode: type: string maxLength: 255 description: The program-accessible (and service-specific) error code. dependency: description: Represents a service dependency type: object required: – domain – service – version properties: domain: type: string maxLength: 255 description: Domain of the dependency service service: type: string maxLength: 255 description: Name of the dependency service type: string maxLength: 255 description: Version of the dependency service workshiftHistoryAdjustmentFacade: description: Histórico de escala para tela de acerto type: object required: – employee – startDate – workshift – workshiftGroup properties: id: type: string format: uuid description: Identificador único employee: type: object allOf: – #/definitions/employeeDTO description: Colaborador startDate: type: string format: date description: Data de início endDate: type: string format: date description: Data de término workshift: type: object allOf: – #/definitions/workshiftDTO description: Escala workshiftGroup: type: object allOf: – #/definitions/workshiftGroupDTO description: Turma da escala custom: type: string format: byte description: Custom leaveHistoryAdjustmentFacade: description: Histórico de escala para tela de acerto type: object required: – employee – startDate – situation properties: id: type: string format: uuid description: Identificador único employee: type: object allOf: – #/definitions/employeeDTO description: Colaborador employeeEmployer: type: object allOf: – #/definitions/genericIdDTO description: Empresa do colaborador startDate: type: string format: date description: Data de início startTime: type: integer format: int64 description: Hora de início minimum: 0 maximum: 1439 default: 0 endDate: type: string format: date description: Data de término endTime: type: integer format: int64 description: Hora final (Caso uma data final seja definida, o valor padrão desse campo passa a ser 1439) minimum: 0 maximum: 1439 situation: type: object allOf: – #/definitions/situationDTO description: Situação numberHoursLeft: type: integer format: int64 description: Quantidade de horas faltas sourceReasonChange: type: string allOf: – #/definitions/sourceReasonChange description: Origem da mudança processType: type: string allOf: – #/definitions/processType description: Tipo do processo processNumber: type: string maxLength: 21 description: Número do processo birthDate: type: string format: date description: Data do parto diseaseCid: type: object allOf: – #/definitions/genericIdDTO description: CID da doença subgroupCid: type: object allOf: – #/definitions/genericIdDTO description: CID do subgrupo cnpjUnion: type: integer format: int64 description: CNPJ onusRemuneration: type: string allOf: – #/definitions/onusRemuneration description: Ônus pela remuneração workAccidentType: type: string allOf: – #/definitions/workAccidentType description: Tipo de acidente de trabalho justifiedDays: type: integer format: int64 description: Dias justificados observation: type: string maxLength: 255 description: Observação sameReasonEsocial: type: boolean description: Mesma razão e-social resultedSicknessAssistance: type: boolean description: Resultou em assistência médica estimatedEndDate: type: string format: date description: Data final estimada estimatedDayEnd: type: integer format: int64 description: Dia final estimado maximum: 9999 leaveHistoryAttachments: type: array items: type: object allOf: – #/definitions/leaveHistoryAttachmentDTO description: Anexos custom: type: string format: byte description: Custom genericError: properties: message: type: string description: Messaging describing the error. reason: type: string description: A symbolic code identifying the category of the reason of the error. enum: – BAD_REQUEST – UNAUTHORIZED – PAYMENT_REQUIRED – FORBIDDEN – OBJECT_NOT_FOUND – REQUEST_TIMEOUT – GONE – UNPROCESSABLE – INTERNAL_ERROR – NOT_IMPLEMENTED – SERVICE_UNAVAILABLE – INSUFFICIENT_STORAGE