Acesso e Segurança (sam)

2.0info: 1.46.0 Gestão de Rotinas description: Serviço do backend do Gestão de Rotinas do Ronda senior X x-senior-domain: Gestão de Acesso e Segurança x-senior-domain-path: sam x-senior-service-path: patrol contact: name: Senior X Platform url: https://dev.senior.com.br email: seniorx-dev@senior.com.brhost: api.senior.com.br /sam/patrolsecurityDefinitions: bearerAuth: type: apiKey in: header name: Authorization – application/json – application/jsonparameters: clientId: name: client_id type: string in: header required: true description: Identificação da aplicação cadastrada no portal do desenvolvedor (api.xplatform.com.br)paths: /lastStatusMobileDevice: post: description: Busca o último status de um determinado dispositvo móvel ativo, pelo seu id x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object required: – id properties: id: type: integer description: Id do dispositivo móvel responses: 200: description: Ok schema: type: object required: – status properties: status: #/definitions/lastStatusMobileDeviceRecord default: description: Error response schema: #/definitions/genericError get: description: Busca o último status de um determinado dispositvo móvel ativo, pelo seu id x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object required: – id properties: id: type: integer description: Id do dispositivo móvel responses: 200: description: Ok schema: type: object required: – status properties: status: #/definitions/lastStatusMobileDeviceRecord default: description: Error response schema: #/definitions/genericError /getChecklistStatusReportFilter: post: description: Busca a situação dos checklists para o campo de lookup do relatório x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object properties: searchText: type: string description: Valor da busca informada pelo usuário searchValue: type: string description: Valor para busca exata por um registro responses: 200: description: Ok schema: type: object required: – records properties: records: #/definitions/reportFilterData default: description: Error response schema: #/definitions/genericError get: description: Busca a situação dos checklists para o campo de lookup do relatório x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object properties: searchText: type: string description: Valor da busca informada pelo usuário searchValue: type: string description: Valor para busca exata por um registro responses: 200: description: Ok schema: type: object required: – records properties: records: #/definitions/reportFilterData default: description: Error response schema: #/definitions/genericError /getPositionReportFilter: post: description: Busca os postos para o campo de lookup do relatório x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object properties: searchText: type: string description: Valor da busca informada pelo usuário searchValue: type: string description: Valor para busca exata por um registro responses: 200: description: Ok schema: type: object required: – records properties: records: #/definitions/reportFilterData default: description: Error response schema: #/definitions/genericError get: description: Busca os postos para o campo de lookup do relatório x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object properties: searchText: type: string description: Valor da busca informada pelo usuário searchValue: type: string description: Valor para busca exata por um registro responses: 200: description: Ok schema: type: object required: – records properties: records: #/definitions/reportFilterData default: description: Error response schema: #/definitions/genericError /getPersonReportFilter: post: description: Busca as pessoas para o campo de lookup do relatório x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object properties: searchText: type: string description: Valor da busca informada pelo usuário searchValue: type: string description: Valor para busca exata por um registro responses: 200: description: Ok schema: type: object required: – records properties: records: #/definitions/reportFilterData default: description: Error response schema: #/definitions/genericError get: description: Busca as pessoas para o campo de lookup do relatório x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object properties: searchText: type: string description: Valor da busca informada pelo usuário searchValue: type: string description: Valor para busca exata por um registro responses: 200: description: Ok schema: type: object required: – records properties: records: #/definitions/reportFilterData default: description: Error response schema: #/definitions/genericError /getPositionRangeItens: post: description: Retorna os Itens de Abrangência do Posto x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object properties: searchText: type: string description: Valor da busca informada pelo usuário searchValue: type: integer description: Valor para busca por identificador de um registro parameters: type: array items: #/definitions/searchParametersItens description: Nome e valor de outros campos filtros responses: 200: description: Ok schema: type: object required: – records properties: records: #/definitions/rangeItens default: description: Error response schema: #/definitions/genericError get: description: Retorna os Itens de Abrangência do Posto x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object properties: searchText: type: string description: Valor da busca informada pelo usuário searchValue: type: integer description: Valor para busca por identificador de um registro parameters: type: array items: #/definitions/searchParametersItens description: Nome e valor de outros campos filtros responses: 200: description: Ok schema: type: object required: – records properties: records: #/definitions/rangeItens default: description: Error response schema: #/definitions/genericError /listOfLastStatusMobileDevice: post: description: Busca o último status dos dispositivos móveis ativos x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId responses: 200: description: Ok schema: type: object required: – status properties: status: #/definitions/lastStatusMobileDeviceRecord default: description: Error response schema: #/definitions/genericError get: description: Busca o último status dos dispositivos móveis ativos x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId responses: 200: description: Ok schema: type: object required: – status properties: status: #/definitions/lastStatusMobileDeviceRecord default: description: Error response schema: #/definitions/genericError /getSchedulingReportFilter: post: description: Busca os agendamentos para o campo de lookup do relatório x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object properties: searchText: type: string description: Valor da busca informada pelo usuário searchValue: type: string description: Valor para busca exata por um registro responses: 200: description: Ok schema: type: object required: – records properties: records: #/definitions/reportFilterData default: description: Error response schema: #/definitions/genericError get: description: Busca os agendamentos para o campo de lookup do relatório x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object properties: searchText: type: string description: Valor da busca informada pelo usuário searchValue: type: string description: Valor para busca exata por um registro responses: 200: description: Ok schema: type: object required: – records properties: records: #/definitions/reportFilterData default: description: Error response schema: #/definitions/genericError /getRoutinePlanTypeRangeItens: post: description: Retorna os Itens de Abrangência dos tipos de plano de rotinas x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object properties: searchText: type: string description: Valor da busca informada pelo usuário searchValue: type: integer description: Valor para busca por identificador de um registro parameters: type: array items: #/definitions/searchParametersItens description: Nome e valor de outros campos filtros responses: 200: description: Ok schema: type: object required: – records properties: records: #/definitions/rangeItens default: description: Error response schema: #/definitions/genericError get: description: Retorna os Itens de Abrangência dos tipos de plano de rotinas x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object properties: searchText: type: string description: Valor da busca informada pelo usuário searchValue: type: integer description: Valor para busca por identificador de um registro parameters: type: array items: #/definitions/searchParametersItens description: Nome e valor de outros campos filtros responses: 200: description: Ok schema: type: object required: – records properties: records: #/definitions/rangeItens default: description: Error response schema: #/definitions/genericError /getRoutinePlanType: post: description: Retorna os tipos de plano de rotinas x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId responses: 200: description: Ok schema: type: object required: – routinePlanTypes properties: routinePlanTypes: #/definitions/routinePlanType default: description: Error response schema: #/definitions/genericError get: description: Retorna os tipos de plano de rotinas x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId responses: 200: description: Ok schema: type: object required: – routinePlanTypes properties: routinePlanTypes: #/definitions/routinePlanType default: description: Error response schema: #/definitions/genericError /getTourStatusReportFilter: post: description: Busca os status de rondas para o campo de lookup do relatório x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object properties: searchText: type: string description: Valor da busca informada pelo usuário searchValue: type: string description: Valor para busca exata por um registro responses: 200: description: Ok schema: type: object required: – records properties: records: #/definitions/reportFilterData default: description: Error response schema: #/definitions/genericError get: description: Busca os status de rondas para o campo de lookup do relatório x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object properties: searchText: type: string description: Valor da busca informada pelo usuário searchValue: type: string description: Valor para busca exata por um registro responses: 200: description: Ok schema: type: object required: – records properties: records: #/definitions/reportFilterData default: description: Error response schema: #/definitions/genericError /getCheckpointReportFilter: post: description: Busca os pontos de controle para o campo de lookup do relatório x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object properties: searchText: type: string description: Valor da busca informada pelo usuário searchValue: type: string description: Valor para busca exata por um registro responses: 200: description: Ok schema: type: object required: – records properties: records: #/definitions/reportFilterData default: description: Error response schema: #/definitions/genericError get: description: Busca os pontos de controle para o campo de lookup do relatório x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object properties: searchText: type: string description: Valor da busca informada pelo usuário searchValue: type: string description: Valor para busca exata por um registro responses: 200: description: Ok schema: type: object required: – records properties: records: #/definitions/reportFilterData default: description: Error response schema: #/definitions/genericErrordefinitions: routinePlanType: type: string enum: – OTHERS – PERIMETER_TOUR – MAINTENANCE – OCCUPATIONAL_SAFETY – PROPERTY_SECURITY – SERVICES – ASSETS_CONTROL – LOBBY – LOGISTICS – ADMINISTRATIVE – ISO – PDCA – QUALITY – HUMAN_RESOURCES – STOCK – WAREHOUSE – CERTIFICATION – DELIVERIES – INSPECTIONS – VEHICLES – LOAD_UNLOAD reportFilterData: type: object required: – text – value properties: text: type: string description: Texto a ser apresentado value: type: string description: Valor armazenado no filtro lastStatusMobileDeviceRecord: type: object required: – mobileDeviceName – personName – collectDate – batteryLevel – latitude – longitude properties: mobileDeviceName: type: string description: Nome do dispositivo personName: type: string description: Nome da pessoa logada no dispositivo collectDate: type: string description: Data da Coleta batteryLevel: type: integer description: Nível da Bateria latitude: type: number description: Latitude da localização format: double longitude: type: number description: Longitude da localização format: double searchParametersItens: type: object required: – key – value properties: key: type: string description: Nome do campo filtro que está sendo enviado como parâmetro value: type: string description: Valor do campo filtro que está sendo enviado como parâmetro rangeItens: type: object required: – text – value properties: text: type: string description: Texto a ser apresentado value: type: string description: Valor armazenado no filtro 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