2.0info:   0.9.0   Hub de Integração  description: Hub de Integração com origem no WMS  x-senior-domain: Gestão de Armazenagem – Integrações  x-senior-domain-path: wms_int  x-senior-service-path: hub  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/wms_intsecurityDefinitions:   APIKeyHeader:     type: apiKey     in: header     name: Authorizationsecurity:  – APIKeyHeader: []  – application/json  – application/jsonpaths:  /hub/queries/healthcheck:    post:      description: Verificação disponibilidade do serviço      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 do serviço              checks:                type: object                allOf:                 –  #/definitions/checkDTO                description: Verificações para assegurar o status        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    get:      description: Verificação disponibilidade do serviço      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 do serviço              checks:                type: object                allOf:                 –  #/definitions/checkDTO                description: Verificações para assegurar o status        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/queries/requestEtlPendencies:    post:      description: Solicita comandos pendentes      tags:        – Queries      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – domain              – service            properties:              domain:                type: string                description: Dominio              service:                type: string                description: Serviço      responses:        200:          description: Ok          schema:            type: object            properties:              contents:                type: array                items:                  type: object                  allOf:                   –  #/definitions/etlRequest                description:         401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    get:      description: Solicita comandos pendentes      tags:        – Queries      x-senior-visibility: PRIVATE      parameters:        – name: domain          description: Dominio          in: query          required: true          type: string        – name: service          description: Serviço          in: query          required: true          type: string      responses:        200:          description: Ok          schema:            type: object            properties:              contents:                type: array                items:                  type: object                  allOf:                   –  #/definitions/etlRequest                description:         401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/queries/waitForEtlCommand:    post:      description: Espera pelo retorno do comando solicitado previamente      tags:        – Queries      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – id            properties:              id:                type: string                description: id da requisição ETL      responses:        200:          description: Ok          schema:            type: object            required:              – response            properties:              response:                type: object                allOf:                 –  #/definitions/etlRequest                description: Resposta da Solicitação        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    get:      description: Espera pelo retorno do comando solicitado previamente      tags:        – Queries      x-senior-visibility: PRIVATE      parameters:        – name: id          description: id da requisição ETL          in: query          required: true          type: string      responses:        200:          description: Ok          schema:            type: object            required:              – response            properties:              response:                type: object                allOf:                 –  #/definitions/etlRequest                description: Resposta da Solicitação        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/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                description:       responses:        200:          description: Ok          schema:            type: object            required:              – metadata            properties:              metadata:                type: string                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      responses:        200:          description: Ok          schema:            type: object            required:              – metadata            properties:              metadata:                type: string                description:         401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/queries/exportReplicationData:    post:      description:       tags:        – Queries      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – config            properties:              config:                type: object                allOf:                 –  #/definitions/exportConfig                description:       responses:        200:          description: Ok          schema:            type: object            required:              – exportJobId            properties:              exportJobId:                type: string                description:         401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/queries/exportReplicationOrder:    post:      description:       tags:        – Queries      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – config            properties:              config:                type: object                allOf:                 –  #/definitions/exportConfig                description:       responses:        200:          description: Ok          schema:            type: object            required:              – exportJobId            properties:              exportJobId:                type: string                description:         401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/queries/exportSubscribeReplicationService:    post:      description:       tags:        – Queries      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – config            properties:              config:                type: object                allOf:                 –  #/definitions/exportConfig                description:       responses:        200:          description: Ok          schema:            type: object            required:              – exportJobId            properties:              exportJobId:                type: string                description:         401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/queries/exportSchedulerByTenant:    post:      description:       tags:        – Queries      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – config            properties:              config:                type: object                allOf:                 –  #/definitions/exportConfig                description:       responses:        200:          description: Ok          schema:            type: object            required:              – exportJobId            properties:              exportJobId:                type: string                description:         401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/queries/exportEtlRequest:    post:      description:       tags:        – Queries      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – config            properties:              config:                type: object                allOf:                 –  #/definitions/exportConfig                description:       responses:        200:          description: Ok          schema:            type: object            required:              – exportJobId            properties:              exportJobId:                type: string                description:         401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/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  /hub/actions/notifyFinishedReplication:    post:      description: Notificar replicação finalizada      tags:        – Actions      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – replicationData            properties:              replicationData:                type: string                description: ID da replicação      responses:        200:          description: Ok          schema:            type: object        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/actions/replicationTableData:    post:      description: Recebe uma replicação com origem no WMS      tags:        – Actions      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – table              – type            properties:              table:                type: string                description: Tabela Replicada              type:                type: string                description: Tipo de Repositório              fileName:                type: string                description: Nome do Arquivo              uri:                type: string                description: URI do Arquivo              firstOperation:                type: integer                format: int64                description: Número da primeira operação do arquivo      responses:        200:          description: Ok          schema:            type: object            required:              – id            properties:              id:                type: string                description: Id da replicação pendente        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/actions/loadTableData:    post:      description: Carga inicial dos dados      tags:        – Actions      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – domainName              – serviceName              – table              – type              – container              – columns            properties:              domainName:                type: string                description: Nome dominio do serviço Carga inicial              serviceName:                type: string                description: Nome serviço da carga inicial              table:                type: string                description: Tabela Replicada              type:                type: string                description: Tipo de Repositório              container:                type: string                description: Container              columns:                type: array                items:                  type: string                  minimum: 1                description: Nome das Colunas              fileName:                type: string                description: Nome do Arquivo              uri:                type: string                description: URI do Arquivo      responses:        200:          description: Ok          schema:            type: object        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/actions/queueManagement:    post:      description:       tags:        – Actions      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – tableName            properties:              tableName:                type: string                description: Tabela Replicada              status:                type: string                allOf:                –  #/definitions/replicationStatus                description: Status da Replicação      responses:        200:          description: Ok          schema:            type: object            required:              – finished              – processing              – pending              – replications            properties:              finished:                type: integer                format: int64                description: Qtde de replicações concluidas              processing:                type: integer                format: int64                description: Qtde de replicações em andamento              pending:                type: integer                format: int64                description: Qtde de replicações pendentes              replications:                type: array                items:                  type: object                  allOf:                   –  #/definitions/replicationData                  minimum: 1                description: Lista de replicações        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/actions/reprocessReplication:    post:      description:       tags:        – Actions      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – replicationId              – replicationStatus            properties:              replicationId:                type: string                description: Id da replicação              replicationStatus:                type: string                allOf:                –  #/definitions/replicationStatus                description: Novo status      responses:        200:          description: Ok          schema:            type: object            required:              – success            properties:              success:                type: boolean                description:         401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/actions/requestEtlCommand:    post:      description: Cria uma requisição assincrona para o ETL      tags:        – Actions      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – domain              – service              – primitive              – body            properties:              domain:                type: string                description: Dominio              service:                type: string                description: Serviço              primitive:                type: string                description: Primitva Chamada              body:                type: string                description: Corpo  da Requisição      responses:        200:          description: Ok          schema:            type: object            required:              – requestId            properties:              requestId:                type: string                description:         401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/actions/responseEtlCommand:    post:      description: Confirma entrega do comando pelo ETL      tags:        – Actions      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – id              – result            properties:              id:                type: string                description: id da requisição ETL              result:                type: string                description: Resposta do comando solicitado              errorCode:                type: string                maxLength: 50                description: Código HTTP de retorno/erro      responses:        200:          description: Ok          schema:            type: object            required:              – success            properties:              success:                type: boolean                description:         401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/actions/importReplicationData:    post:      description:       tags:        – Actions      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – config            properties:              config:                type: object                allOf:                 –  #/definitions/importConfig                description:       responses:        200:          description: Ok          schema:            type: object            required:              – importJobId            properties:              importJobId:                type: string                description:         401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/actions/importReplicationOrder:    post:      description:       tags:        – Actions      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – config            properties:              config:                type: object                allOf:                 –  #/definitions/importConfig                description:       responses:        200:          description: Ok          schema:            type: object            required:              – importJobId            properties:              importJobId:                type: string                description:         401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/actions/importSubscribeReplicationService:    post:      description:       tags:        – Actions      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – config            properties:              config:                type: object                allOf:                 –  #/definitions/importConfig                description:       responses:        200:          description: Ok          schema:            type: object            required:              – importJobId            properties:              importJobId:                type: string                description:         401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/actions/importSchedulerByTenant:    post:      description:       tags:        – Actions      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – config            properties:              config:                type: object                allOf:                 –  #/definitions/importConfig                description:       responses:        200:          description: Ok          schema:            type: object            required:              – importJobId            properties:              importJobId:                type: string                description:         401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/actions/importEtlRequest:    post:      description:       tags:        – Actions      x-senior-visibility: PRIVATE      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – config            properties:              config:                type: object                allOf:                 –  #/definitions/importConfig                description:       responses:        200:          description: Ok          schema:            type: object            required:              – importJobId            properties:              importJobId:                type: string                description:         401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError  /hub/signals/checkForReadyReplication:    post:      description: Verifica se novas replicações podem ser lançadas      tags:        – Signals      parameters:        – name: input          in: body          required: true          schema:            type: object      responses:        202:          description: Accepted        default:          description: Error response          schema:             #/definitions/genericError    /hub/signals/cleanOldReplications:    post:      description:       tags:        – Signals      parameters:        – name: input          in: body          required: true          schema:            type: object            properties:              days:                type: integer                format: int64                description:                 minimum: 30                default: 90      responses:        202:          description: Accepted        default:          description: Error response          schema:             #/definitions/genericError  /hub/events/wsCommandReady:    post:      description: Evento que notifica uma resposta do ETL por webSocket      x-senior-event: true      tags:        – Events      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – command              – ws_users            properties:              command:                type: object                allOf:                 –  #/definitions/etlRequest                description: Comando Respondido pelo ETL              ws_users:                type: string                description: Usuários que vão receber a chamada      responses:        200:          description: OK        default:          description: Error response          schema:             #/definitions/genericError    /hub/events/importReplicationDataEvent:    post:      description:       x-senior-event: true      tags:        – Events      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – eventpl            properties:              eventpl:                type: object                allOf:                 –  #/definitions/importEventStatus                description:       responses:        200:          description: OK        default:          description: Error response          schema:             #/definitions/genericError    /hub/events/exportReplicationDataEvent:    post:      description:       x-senior-event: true      tags:        – Events      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – eventpl            properties:              eventpl:                type: object                allOf:                 –  #/definitions/exportEventStatus                description:       responses:        200:          description: OK        default:          description: Error response          schema:             #/definitions/genericError    /hub/events/importReplicationOrderEvent:    post:      description:       x-senior-event: true      tags:        – Events      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – eventpl            properties:              eventpl:                type: object                allOf:                 –  #/definitions/importEventStatus                description:       responses:        200:          description: OK        default:          description: Error response          schema:             #/definitions/genericError    /hub/events/exportReplicationOrderEvent:    post:      description:       x-senior-event: true      tags:        – Events      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – eventpl            properties:              eventpl:                type: object                allOf:                 –  #/definitions/exportEventStatus                description:       responses:        200:          description: OK        default:          description: Error response          schema:             #/definitions/genericError    /hub/events/importSubscribeReplicationServiceEvent:    post:      description:       x-senior-event: true      tags:        – Events      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – eventpl            properties:              eventpl:                type: object                allOf:                 –  #/definitions/importEventStatus                description:       responses:        200:          description: OK        default:          description: Error response          schema:             #/definitions/genericError    /hub/events/exportSubscribeReplicationServiceEvent:    post:      description:       x-senior-event: true      tags:        – Events      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – eventpl            properties:              eventpl:                type: object                allOf:                 –  #/definitions/exportEventStatus                description:       responses:        200:          description: OK        default:          description: Error response          schema:             #/definitions/genericError    /hub/events/importSchedulerByTenantEvent:    post:      description:       x-senior-event: true      tags:        – Events      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – eventpl            properties:              eventpl:                type: object                allOf:                 –  #/definitions/importEventStatus                description:       responses:        200:          description: OK        default:          description: Error response          schema:             #/definitions/genericError    /hub/events/exportSchedulerByTenantEvent:    post:      description:       x-senior-event: true      tags:        – Events      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – eventpl            properties:              eventpl:                type: object                allOf:                 –  #/definitions/exportEventStatus                description:       responses:        200:          description: OK        default:          description: Error response          schema:             #/definitions/genericError    /hub/events/importEtlRequestEvent:    post:      description:       x-senior-event: true      tags:        – Events      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – eventpl            properties:              eventpl:                type: object                allOf:                 –  #/definitions/importEventStatus                description:       responses:        200:          description: OK        default:          description: Error response          schema:             #/definitions/genericError    /hub/events/exportEtlRequestEvent:    post:      description:       x-senior-event: true      tags:        – Events      parameters:        – name: input          in: body          required: true          schema:            type: object            required:              – eventpl            properties:              eventpl:                type: object                allOf:                 –  #/definitions/exportEventStatus                description:       responses:        200:          description: OK        default:          description: Error response          schema:             #/definitions/genericError  /hub/entities/replicationData:    post:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: entity          in: body          required: true          schema:            type: object            allOf:             –  #/definitions/replicationData      responses:        200:          description: The created resource          schema:             #/definitions/replicationData        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    patch:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: entity          in: body          required: true          schema:            type: object            allOf:             –  #/definitions/replicationData      responses:        200:          description: The created resource          schema:             #/definitions/replicationData        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    get:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: offset          in: query          type: number        – name: size          in: query          type: number      responses:        200:          description: Ok          schema:            type: array            items:               #/definitions/replicationData        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/entities/replicationData/{id}:    put:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: id          in: path          required: true          type: string        – name: entity          in: body          required: true          schema:             #/definitions/replicationData      responses:        200:          description: Ok          schema:             #/definitions/replicationData        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    patch:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: id          in: path          required: true          type: string        – name: entity          in: body          required: true          schema:             #/definitions/replicationData      responses:        200:          description: Ok          schema:             #/definitions/replicationData        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    get:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: id          in: path          required: true          type: string      responses:        200:          description: Ok          schema:             #/definitions/replicationData        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    delete:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: id          in: path          required: true          type: string      responses:        200:          description: Ok        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/entities/replicationData/bulk:    post:      tags:        – Bulk      parameters:        – name: entities          in: body          required: true          schema:            type: array            items:               #/definitions/replicationData      responses:        200:          description: The bulk creation has created resources        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/entities/replicationOrder:    post:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: entity          in: body          required: true          schema:            type: object            allOf:             –  #/definitions/replicationOrder      responses:        200:          description: The created resource          schema:             #/definitions/replicationOrder        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    patch:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: entity          in: body          required: true          schema:            type: object            allOf:             –  #/definitions/replicationOrder      responses:        200:          description: The created resource          schema:             #/definitions/replicationOrder        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    get:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: offset          in: query          type: number        – name: size          in: query          type: number      responses:        200:          description: Ok          schema:            type: array            items:               #/definitions/replicationOrder        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/entities/replicationOrder/{id}:    put:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: id          in: path          required: true          type: string        – name: entity          in: body          required: true          schema:             #/definitions/replicationOrder      responses:        200:          description: Ok          schema:             #/definitions/replicationOrder        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    patch:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: id          in: path          required: true          type: string        – name: entity          in: body          required: true          schema:             #/definitions/replicationOrder      responses:        200:          description: Ok          schema:             #/definitions/replicationOrder        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    get:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: id          in: path          required: true          type: string      responses:        200:          description: Ok          schema:             #/definitions/replicationOrder        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    delete:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: id          in: path          required: true          type: string      responses:        200:          description: Ok        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/entities/replicationOrder/bulk:    post:      tags:        – Bulk      parameters:        – name: entities          in: body          required: true          schema:            type: array            items:               #/definitions/replicationOrder      responses:        200:          description: The bulk creation has created resources        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/entities/subscribeReplicationService:    post:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: entity          in: body          required: true          schema:            type: object            allOf:             –  #/definitions/subscribeReplicationService      responses:        200:          description: The created resource          schema:             #/definitions/subscribeReplicationService        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    patch:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: entity          in: body          required: true          schema:            type: object            allOf:             –  #/definitions/subscribeReplicationService      responses:        200:          description: The created resource          schema:             #/definitions/subscribeReplicationService        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    get:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: offset          in: query          type: number        – name: size          in: query          type: number      responses:        200:          description: Ok          schema:            type: array            items:               #/definitions/subscribeReplicationService        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/entities/subscribeReplicationService/{id}:    put:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: id          in: path          required: true          type: string        – name: entity          in: body          required: true          schema:             #/definitions/subscribeReplicationService      responses:        200:          description: Ok          schema:             #/definitions/subscribeReplicationService        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    patch:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: id          in: path          required: true          type: string        – name: entity          in: body          required: true          schema:             #/definitions/subscribeReplicationService      responses:        200:          description: Ok          schema:             #/definitions/subscribeReplicationService        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    get:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: id          in: path          required: true          type: string      responses:        200:          description: Ok          schema:             #/definitions/subscribeReplicationService        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    delete:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: id          in: path          required: true          type: string      responses:        200:          description: Ok        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/entities/subscribeReplicationService/bulk:    post:      tags:        – Bulk      parameters:        – name: entities          in: body          required: true          schema:            type: array            items:               #/definitions/subscribeReplicationService      responses:        200:          description: The bulk creation has created resources        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/entities/schedulerByTenant:    post:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: entity          in: body          required: true          schema:            type: object            allOf:             –  #/definitions/schedulerByTenant      responses:        200:          description: The created resource          schema:             #/definitions/schedulerByTenant        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    patch:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: entity          in: body          required: true          schema:            type: object            allOf:             –  #/definitions/schedulerByTenant      responses:        200:          description: The created resource          schema:             #/definitions/schedulerByTenant        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    get:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: offset          in: query          type: number        – name: size          in: query          type: number      responses:        200:          description: Ok          schema:            type: array            items:               #/definitions/schedulerByTenant        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/entities/schedulerByTenant/{id}:    put:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: id          in: path          required: true          type: string        – name: entity          in: body          required: true          schema:             #/definitions/schedulerByTenant      responses:        200:          description: Ok          schema:             #/definitions/schedulerByTenant        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    patch:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: id          in: path          required: true          type: string        – name: entity          in: body          required: true          schema:             #/definitions/schedulerByTenant      responses:        200:          description: Ok          schema:             #/definitions/schedulerByTenant        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    get:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: id          in: path          required: true          type: string      responses:        200:          description: Ok          schema:             #/definitions/schedulerByTenant        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    delete:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: id          in: path          required: true          type: string      responses:        200:          description: Ok        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/entities/schedulerByTenant/bulk:    post:      tags:        – Bulk      parameters:        – name: entities          in: body          required: true          schema:            type: array            items:               #/definitions/schedulerByTenant      responses:        200:          description: The bulk creation has created resources        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/entities/etlRequest:    post:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: entity          in: body          required: true          schema:            type: object            allOf:             –  #/definitions/etlRequest      responses:        200:          description: The created resource          schema:             #/definitions/etlRequest        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    patch:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: entity          in: body          required: true          schema:            type: object            allOf:             –  #/definitions/etlRequest      responses:        200:          description: The created resource          schema:             #/definitions/etlRequest        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    get:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: offset          in: query          type: number        – name: size          in: query          type: number      responses:        200:          description: Ok          schema:            type: array            items:               #/definitions/etlRequest        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/entities/etlRequest/{id}:    put:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: id          in: path          required: true          type: string        – name: entity          in: body          required: true          schema:             #/definitions/etlRequest      responses:        200:          description: Ok          schema:             #/definitions/etlRequest        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    patch:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: id          in: path          required: true          type: string        – name: entity          in: body          required: true          schema:             #/definitions/etlRequest      responses:        200:          description: Ok          schema:             #/definitions/etlRequest        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    get:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: id          in: path          required: true          type: string      responses:        200:          description: Ok          schema:             #/definitions/etlRequest        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    delete:      tags:        – CRUD      x-senior-visibility: PRIVATE      parameters:        – name: id          in: path          required: true          type: string      responses:        200:          description: Ok        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError    /hub/entities/etlRequest/bulk:    post:      tags:        – Bulk      parameters:        – name: entities          in: body          required: true          schema:            type: array            items:               #/definitions/etlRequest      responses:        200:          description: The bulk creation has created resources        401:          description: Invalid Credentials        default:          description: Error response          schema:             #/definitions/genericError  definitions:  healthcheckDTO:    description: Define o Status do serviço    type: string    enum:      – UP      – DOWN      replicationStatus:    description: Status Replicação    type: string    enum:      – PENDING      – READY      – PROCESSING      – FINISHED      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      fieldType:    description:     type: string    enum:      – BINARY      – BOOLEAN      – DATE      – DATETIME      – DOUBLE      – ENUM      – INTEGER      – MONEY      – STRING      – TIME      fileFormat:    description:     type: string    enum:      – CSV      – FLAT      – JSON      – XML      hookFunction:    description:     type: string    enum:      – BEFORE_PARSE      – BEFORE_CONVERSION      – ON_ERROR      – VALIDATE      eventType:    description:     type: string    enum:      – CHUNK      – DOWNLOAD      – ERROR      – FINISH      – START      errorStrategy:    description:     type: string    enum:      – CALL_SCRIPT      – IGNORE      – STOP      status:    description:     type: string    enum:      – DONE      – DONE_WITH_ERRORS      – DOWNLOADING      – ERROR      – NOT_STARTED      – RUNNING      errorType:    description:     type: string    enum:      – CONVERT_ERROR      – SERVICE_ERROR    checkDTO:    description: Dados do healthcheck    type: object    required:      – name      – status    properties:      name:        type: string        description: Nome do healthcheck      status:        type: string        allOf:        –  #/definitions/healthcheckDTO        description: Status do healthcheck    replicationData:    description: Tabela de Replicações com origem no ETL    type: object    required:      – tenant      – tableName      – fileName      – uri      – status    properties:      id:        type: string        format: uuid        description: Identificador único do registro      tenant:        type: string        description: Tenant      tableName:        type: string        description: Tabela Replicada      fileName:        type: string        maxLength: 512        description: Arquivo com dados replicados      uri:        type: string        maxLength: 1024        description: Endereço para obter o arquivo      firstOperation:        type: integer        format: int64        description: Número primeira operação do arquivo      status:        type: string        allOf:        –  #/definitions/replicationStatus        description: Status do andamento da replicação      dependencyOrder:        type: integer        format: int64        description: Ordem dependencias para processar replicação        default: 0      createdBy:        type: string        description:       createdDate:        type: string        format: date-time        description:       lastModifiedBy:        type: string        description:       lastModifiedDate:        type: string        format: date-time        description:     replicationOrder:    description: Ordem indicando dependencias entre as tabelas replicadass    type: object    required:      – tableName    properties:      id:        type: string        format: uuid        description: Identificador único do registro      tableName:        type: string        description: Tabela Replicada      dependencyOrder:        type: integer        format: int64        description: Ordem dependencias para processar replicação        default: 0      createdBy:        type: string        description:       createdDate:        type: string        format: date-time        description:       lastModifiedBy:        type: string        description:       lastModifiedDate:        type: string        format: date-time        description:     subscribeReplicationService:    description: Serviços que assinam a replicação de tabelas    type: object    required:      – tenant      – domain      – service      – tableName    properties:      id:        type: string        format: uuid        description: Identificador único do registro      tenant:        type: string        description: Tenant Ativo      domain:        type: string        description: Dominio      service:        type: string        description: Serviço      tableName:        type: string        description: Tabela Replicada      createdBy:        type: string        description:       createdDate:        type: string        format: date-time        description:       lastModifiedBy:        type: string        description:       lastModifiedDate:        type: string        format: date-time        description:     schedulerByTenant:    description: Tenants que possuem agendamento de replicação    type: object    required:      – tenant      – jobId    properties:      id:        type: string        format: uuid        description: Identificador único do registro      tenant:        type: string        description: Tenant Ativo      jobId:        type: string        description: Id da job criada no tenant      createdBy:        type: string        description:       createdDate:        type: string        format: date-time        description:       lastModifiedBy:        type: string        description:       lastModifiedDate:        type: string        format: date-time        description:     etlRequest:    description: Requisições para o ETL    type: object    required:      – tenant      – domain      – service      – primitive      – body    properties:      id:        type: string        format: uuid        description: Identificador único do registro      tenant:        type: string        maxLength: 100        description: Tenant Ativo      domain:        type: string        maxLength: 100        description: Dominio      service:        type: string        maxLength: 100        description: Serviço      primitive:        type: string        maxLength: 100        description: Primitva Chamada      body:        type: string        maxLength: 1024        description: Corpo com dados entrada da Requisição      result:        type: string        maxLength: 4000        description: Resposta do ETL      executed:        type: boolean        description: Indica se já foi executado        default: false      errorCode:        type: string        maxLength: 50        description: Código HTTP de retorno/erro      createdBy:        type: string        description:       createdDate:        type: string        format: date-time        description:       lastModifiedBy:        type: string        description:       lastModifiedDate:        type: string        format: date-time        description:     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        description: Class of notification      notificationOrigin:        type: string        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        description: Notification subject.      notificationContent:        type: string        description: Notification content.      sourceDomain:        type: string        description: Domain that generates the notification.      sourceService:        type: string        description: Service that generates the notification.      destinationUser:        type: string        description: Username of the destination user.      link:        type: string        description: Notification link      _discriminator:        type: string        description:     emailNotifyUserEventPayload:    description: Represents an email notification payload    allOf:    –  #/definitions/notifyUserEventPayload    –      type: object      required:        – from      properties:        from:          type: string          description: Email sender address        sendTo:          type: array          items:            type: string          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          description: Apple/Google application id    blobReference:    description: Default blob reference type. Every service defines its own.    type: object    required:      – targetObjectId    properties:      domainName:        type: string        description: The domain the blob belongs to.      serviceName:        type: string        description: The service the blob belongs to.      targetObjectId:        type: string        description: The basic id of the blob.      targetCopyId:        type: string        description: The id of the blob copy.    basicErrorPayload:    description: Default error payload type. Every service defines its own.    type: object    properties:      message:        type: string        description: The user-facing error message, if any.      errorCode:        type: string        description: The program-accessible (and service-specific) error code.    importError:    description:     type: object    required:      – errorType      – lineNumber      – bean      – message      – exceptionClass    properties:      errorType:        type: string        allOf:        –  #/definitions/errorType        description:       lineNumber:        type: integer        format: int64        description:       bean:        type: string        description:       message:        type: string        description:       exceptionClass:        type: string        description:     fielddto:    description:     type: object    required:      – id      – name      – fieldType    properties:      id:        type: integer        format: int64        description:       name:        type: string        description:       fieldType:        type: string        allOf:        –  #/definitions/fieldType        description:       start:        type: integer        format: int64        description:       size:        type: integer        format: int64        description:       maskPattern:        type: string        description:     hookdto:    description:     type: object    required:      – hookFunction      – script    properties:      hookFunction:        type: string        allOf:        –  #/definitions/hookFunction        description:       script:        type: string        description:     layoutdto:    description:     type: object    required:      – id      – description      – fileFormat      – errorStrategy      – skipLines      – fields    properties:      id:        type: integer        format: int64        description:       description:        type: string        description:       fileFormat:        type: string        allOf:        –  #/definitions/fileFormat        description:       errorStrategy:        type: string        allOf:        –  #/definitions/errorStrategy        description:       delimiter:        type: string        description:       skipLines:        type: integer        format: int64        description:       fields:        type: array        items:          type: object          allOf:           –  #/definitions/fielddto          minimum: 1        description:       hooks:        type: array        items:          type: object          allOf:           –  #/definitions/hookdto        description:     importReport:    description:     type: object    required:      – id      – startTime      – endTime      – uri      – beanClass      – serviceClass      – layout      – sucessCount      – errorsCount      – filteredCount      – skippedCount    properties:      id:        type: string        description:       startTime:        type: string        format: date-time        description:       endTime:        type: string        format: date-time        description:       uri:        type: string        description:       beanClass:        type: string        description:       serviceClass:        type: string        description:       layout:        type: object        allOf:         –  #/definitions/layoutdto        description:       sucessCount:        type: integer        format: int64        description:       errorsCount:        type: integer        format: int64        description:       filteredCount:        type: integer        format: int64        description:       skippedCount:        type: integer        format: int64        description:       importErrors:        type: array        items:          type: object          allOf:           –  #/definitions/importError        description:     exportEventStatus:    description:     type: object    required:      – importerId      – eventType      – recordCount    properties:      importerId:        type: string        description:       eventType:        type: string        allOf:        –  #/definitions/eventType        description:       recordCount:        type: integer        format: int64        description:     importEventStatus:    description:     type: object    required:      – importerId      – eventType      – status      – recordCount    properties:      importerId:        type: string        description:       eventType:        type: string        allOf:        –  #/definitions/eventType        description:       status:        type: string        allOf:        –  #/definitions/status        description:       errorMessage:        type: string        description:       recordCount:        type: integer        format: int64        description:       importReport:        type: object        allOf:         –  #/definitions/importReport        description:     exportConfig:    description:     type: object    required:      – uri      – layout      – async      – errorStrategy    properties:      uri:        type: string        description:       layout:        type: object        allOf:         –  #/definitions/layoutdto        description:       async:        type: boolean        description:       errorStrategy:        type: string        description:     importConfig:    description:     type: object    required:      – uri      – layout      – async      – batchSize      – errorStrategy    properties:      uri:        type: string        description:       layout:        type: object        allOf:         –  #/definitions/layoutdto        description:       async:        type: boolean        description:       batchSize:        type: integer        format: int64        description:       errorStrategy:        type: string        allOf:        –  #/definitions/errorStrategy        description:     dependency:    description: Represents a service dependency    type: object    required:      – domain      – service      – version    properties:      domain:        type: string        description: Domain of the dependency service      service:        type: string        description: Name of the dependency service              type: string        description: Version of the dependency service  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