2.0info: 2.1.2 techtouch description: Servico x-senior-domain: Plataforma x-senior-domain-path: platform x-senior-service-path: techtouch 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/platformsecurityDefinitions: APIKeyHeader: type: apiKey in: header name: Authorizationsecurity: – APIKeyHeader: [] – application/json – application/jsonpaths: /techtouch/queries/getNotifications: post: description: Busca as campanhas/notificacoes criadas tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object properties: pageNumber: type: integer format: int64 description: O número da página a ser retornada. A primeira página corresponde ao índice 0. default: 0 pageSize: type: integer format: int64 description: Quantidade de registros por página. default: 10 search: type: string description: String para filtrar nome da campanha e produto responses: 200: description: Ok schema: type: object required: – listInformation properties: notifications: type: array items: type: object allOf: – #/definitions/notification description: listInformation: type: object allOf: – #/definitions/listInformation description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Busca as campanhas/notificacoes criadas tags: – Queries x-senior-visibility: PRIVATE parameters: – name: pageNumber description: O número da página a ser retornada. A primeira página corresponde ao índice 0. in: query type: integer format: int64 – name: pageSize description: Quantidade de registros por página. in: query type: integer format: int64 – name: search description: String para filtrar nome da campanha e produto in: query type: string responses: 200: description: Ok schema: type: object required: – listInformation properties: notifications: type: array items: type: object allOf: – #/definitions/notification description: listInformation: type: object allOf: – #/definitions/listInformation description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /techtouch/queries/getNotificationById: post: description: Busca uma campanha/notificacao pela id tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – id properties: id: type: string description: responses: 200: description: Ok schema: type: object required: – id – name – title – sendType – sendCategory – content – summary – product – status – scheduleDate – active properties: id: type: string description: name: type: string description: type: string description: sendType: type: string description: sendCategory: type: string description: content: type: string description: summary: type: string description: product: type: string description: status: type: string description: scheduleDate: type: string format: YYYY-MM-DDTHH:mm:ss.SSS pattern: ^[0-9]{4}-(1[0-2]|0[1-9])-(3[01]|[12][0-9]|0[1-9])T(1[0-9]|0[1-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])[.][0-9]{3}$ description: active: type: boolean description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Busca uma campanha/notificacao pela id tags: – Queries x-senior-visibility: PRIVATE parameters: – name: id description: in: query required: true type: string responses: 200: description: Ok schema: type: object required: – id – name – title – sendType – sendCategory – content – summary – product – status – scheduleDate – active properties: id: type: string description: name: type: string description: type: string description: sendType: type: string description: sendCategory: type: string description: content: type: string description: summary: type: string description: product: type: string description: status: type: string description: scheduleDate: type: string format: YYYY-MM-DDTHH:mm:ss.SSS pattern: ^[0-9]{4}-(1[0-2]|0[1-9])-(3[01]|[12][0-9]|0[1-9])T(1[0-9]|0[1-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])[.][0-9]{3}$ description: active: type: boolean description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /techtouch/queries/getNewestNotifications: post: description: Busca as campanhas/notificacoes mais recentes para visualização no modal tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object properties: unread: type: boolean description: responses: 200: description: Ok schema: type: object properties: newestNotifications: type: array items: type: object allOf: – #/definitions/newestNotification description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Busca as campanhas/notificacoes mais recentes para visualização no modal tags: – Queries x-senior-visibility: PRIVATE parameters: – name: unread description: in: query type: boolean responses: 200: description: Ok schema: type: object properties: newestNotifications: type: array items: type: object allOf: – #/definitions/newestNotification description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /techtouch/queries/checkForNewNotificationsByProfile: post: description: Verifica se existe novas notificações pro usuário tags: – Queries x-senior-visibility: PRIVATE responses: 200: description: Ok schema: type: object required: – hasNewNotifications properties: hasNewNotifications: type: boolean description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Verifica se existe novas notificações pro usuário tags: – Queries x-senior-visibility: PRIVATE responses: 200: description: Ok schema: type: object required: – hasNewNotifications properties: hasNewNotifications: type: boolean description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /techtouch/queries/checkForNewNotifications: post: description: Verifica se existe novas notificações para serem publicadas considerando a data corrente. tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object properties: destinationAllUsers: type: boolean description: default: true responses: 200: description: Ok schema: type: object required: – hasNewNotifications properties: hasNewNotifications: type: boolean description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Verifica se existe novas notificações para serem publicadas considerando a data corrente. tags: – Queries x-senior-visibility: PRIVATE parameters: – name: destinationAllUsers description: in: query type: boolean responses: 200: description: Ok schema: type: object required: – hasNewNotifications properties: hasNewNotifications: type: boolean description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /techtouch/queries/getNotificationByNotificationProfileId: post: description: Busca os detalhes de uma campanha/notificacao através do id da NotificationProfile tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – id properties: id: type: string description: responses: 200: description: Ok schema: type: object required: – title – content – sendCategory – sendDate properties: type: string description: content: type: string description: sendCategory: type: string description: sendDate: type: string format: YYYY-MM-DDTHH:mm:ss.SSS pattern: ^[0-9]{4}-(1[0-2]|0[1-9])-(3[01]|[12][0-9]|0[1-9])T(1[0-9]|0[1-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])[.][0-9]{3}$ description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Busca os detalhes de uma campanha/notificacao através do id da NotificationProfile tags: – Queries x-senior-visibility: PRIVATE parameters: – name: id description: in: query required: true type: string responses: 200: description: Ok schema: type: object required: – title – content – sendCategory – sendDate properties: type: string description: content: type: string description: sendCategory: type: string description: sendDate: type: string format: YYYY-MM-DDTHH:mm:ss.SSS pattern: ^[0-9]{4}-(1[0-2]|0[1-9])-(3[01]|[12][0-9]|0[1-9])T(1[0-9]|0[1-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])[.][0-9]{3}$ description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /techtouch/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 /techtouch/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 /techtouch/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 /techtouch/actions/createNotification: post: description: Cria uma nova campanha/notificação tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – name – title – sendType – sendCategory – content – isDraft – summary properties: name: type: string maxLength: 95 description: Nome da campanha type: string maxLength: 95 description: Titulo da campanha sendType: type: string allOf: – #/definitions/notificationSendType description: Tipo de envio sendCategory: type: string allOf: – #/definitions/notificationSendCategory description: Categoria de envio product: type: string description: Produto alvo content: type: string description: Conteudo da mensagem scheduleDate: type: string format: YYYY-MM-DDTHH:mm:ss.SSS pattern: ^[0-9]{4}-(1[0-2]|0[1-9])-(3[01]|[12][0-9]|0[1-9])T(1[0-9]|0[1-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])[.][0-9]{3}$ description: Data e hora no padrão UTC para divulgação da campanha timezoneOffset: type: integer format: int64 description: Valor do offset do timezone isDraft: type: boolean description: Se é rascunho summary: type: string maxLength: 180 description: Resumo do assunto da campanha allUsers: type: boolean description: Indica se a notificação deve ser entregue a todos os usuários default: true responses: 200: description: Ok schema: type: object required: – id – name – title properties: id: type: string description: ID da campanha/notificação name: type: string description: Nome da campanha/notificação type: string description: Título da campanha/notificação 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /techtouch/actions/updateNotificationsToRead: post: description: Atualiza as campanhas/notificacoes selecionadas para lidas tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – notificationIds properties: notificationIds: type: array items: type: string minimum: 1 description: responses: 200: description: Ok schema: type: object 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /techtouch/actions/updateNotificationsToUnread: post: description: Atualiza as campanhas/notificacoes selecionadas para não lidas tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – notificationIds properties: notificationIds: type: array items: type: string minimum: 1 description: responses: 200: description: Ok schema: type: object 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /techtouch/actions/deleteNotification: post: description: Deleta a notificação/campanha e o usuário não será mais capaz de acessar tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – id properties: id: type: string description: responses: 200: description: Ok schema: type: object 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /techtouch/signals/signalCreateNotification: post: description: tags: – Signals parameters: – name: input in: body required: true schema: type: object allOf: – #/definitions/notificationPayload responses: 202: description: Accepted default: description: Error response schema: #/definitions/genericError /techtouch/signals/validateProfile: post: description: Valida se o usuário logado na plataforma tem perfil criado tags: – Signals parameters: – name: input in: body required: true schema: type: object responses: 202: description: Accepted default: description: Error response schema: #/definitions/genericError /techtouch/events/newNotificationPublished: post: description: Evento que sinaliza que existe novas notificações publicadas x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object required: – hasNewNotificationPublished – destinationAllUsers properties: hasNewNotificationPublished: type: boolean description: destinationAllUsers: type: boolean description: responses: 200: description: OK default: description: Error response schema: #/definitions/genericErrordefinitions: notificationSendType: description: Status da campanha/notificação type: string enum: – IMMEDIATE – SCHEDULED notificationSendCategory: description: Categoria da campanha/notificação type: string enum: – ANNOUNCEMENT – RELEASES – RELEASE_NOTES – INSIGHTS – ALERT 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 healthcheckDTO: description: Status do healthcheck type: string enum: – UP – DOWN basicNotification: description: discriminator: _discriminator type: object required: – _discriminator properties: name: type: string description: Nome da campanha type: string description: Titulo da campanha sendType: type: string allOf: – #/definitions/notificationSendType description: Tipo de envio sendCategory: type: string allOf: – #/definitions/notificationSendCategory description: Categoria de envio product: type: string description: Produto alvo content: type: string description: Conteudo da mensagem scheduleDate: type: string format: YYYY-MM-DDTHH:mm:ss.SSS pattern: ^[0-9]{4}-(1[0-2]|0[1-9])-(3[01]|[12][0-9]|0[1-9])T(1[0-9]|0[1-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])[.][0-9]{3}$ description: Data e hora no padrão UTC para divulgação da campanha timezoneOffset: type: integer format: int64 description: Valor do offset do timezone isDraft: type: boolean description: Se é rascunho summary: type: string description: Resumo do assunto da campanha _discriminator: type: string description: notificationPayload: description: allOf: – #/definitions/basicNotification – type: object properties: allUsers: type: boolean description: Indica se a notificação deve ser entregue a todos os usuários default: false notifyTenantsAndRoles: description: allOf: – #/definitions/notificationPayload – type: object properties: tenants: type: array items: type: string description: Lista de tenants a ser notificados, se não informado seram notificado todos os tenants roles: type: array items: type: string description: Lista de papeis que contém os usuários que deveram ser notificados. notification: description: type: object required: – id – name – product – sendCategory – status – sendDate – active properties: id: type: string description: name: type: string description: product: type: string description: sendCategory: type: string description: status: type: string description: sendDate: type: string format: YYYY-MM-DDTHH:mm:ss.SSS pattern: ^[0-9]{4}-(1[0-2]|0[1-9])-(3[01]|[12][0-9]|0[1-9])T(1[0-9]|0[1-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])[.][0-9]{3}$ description: active: type: boolean description: newestNotification: description: type: object required: – id – sendCategory – title – summary – sendDate – read properties: id: type: string description: sendCategory: type: string description: type: string description: summary: type: string description: sendDate: type: string format: YYYY-MM-DDTHH:mm:ss.SSS pattern: ^[0-9]{4}-(1[0-2]|0[1-9])-(3[01]|[12][0-9]|0[1-9])T(1[0-9]|0[1-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])[.][0-9]{3}$ description: read: type: boolean description: listInformation: description: As informações sobre os resultados de listagem realizada type: object required: – totalElements – totalPages properties: totalElements: type: integer format: int64 description: Quantidade total de resultados encontrados. totalPages: type: integer format: int64 description: Quantidade total de páginas encontradas. 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. 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 checkDTO: description: Retorno status usados de retorno type: object required: – status – name properties: status: type: string allOf: – #/definitions/healthcheckDTO description: Status name: type: string description: Status 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