2.0info: 3.18.2 decision_center description: Service to manage objects related to the task approval mobile solution x-senior-domain: platform x-senior-domain-path: platform x-senior-service-path: decision_center contact: name: Senior X Platform url: http://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: /decision_center/queries/getPendingTasks: post: description: Retrieve all Pending tasks (according to execution status) related to the account owner.\n Set the execution status as Waiting Action when done.\n For mobile perspective only.\n tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object properties: page: type: integer format: int64 description: When empty, default value is 0 count: type: integer format: int64 description: When empty, default value is 60 responses: 200: description: Ok schema: type: object required: – tasklist – total properties: tasklist: type: array items: type: object allOf: – #/definitions/task minimum: 1 description: List of tasks total: type: integer format: int64 description: Total of tasks default: description: Error response schema: #/definitions/genericError get: description: Retrieve all Pending tasks (according to execution status) related to the account owner.\n Set the execution status as Waiting Action when done.\n For mobile perspective only.\n tags: – Queries x-senior-visibility: PRIVATE parameters: – name: page description: When empty, default value is 0 in: query type: integer format: int64 – name: count description: When empty, default value is 60 in: query type: integer format: int64 responses: 200: description: Ok schema: type: object required: – tasklist – total properties: tasklist: type: array items: type: object allOf: – #/definitions/task minimum: 1 description: List of tasks total: type: integer format: int64 description: Total of tasks default: description: Error response schema: #/definitions/genericError /decision_center/queries/listTasks: post: description: Retrieve all tasks paginated and filtered tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – executionFilter properties: executionFilter: type: array items: type: string allOf: – #/definitions/executionFilter minimum: 1 description: Permite filtrar as tarefas por respondidas, não respondidas e expiradas search: type: string description: Search terms box: type: string description: The box subject: type: array items: type: string description: The subject offset: type: integer format: int64 description: When empty, default value is 0 default: 0 limit: type: integer format: int64 description: When empty, default value is 10 default: 10 sortField: type: string description: Sort field default: creationDate sortDirection: type: string allOf: – #/definitions/sortDirection description: Sort direction responses: 200: description: Ok schema: type: object required: – tasks – total properties: tasks: type: array items: type: object allOf: – #/definitions/task minimum: 1 description: List of tasks total: type: integer format: int64 description: Total of tasks default: description: Error response schema: #/definitions/genericError /decision_center/queries/listTasks__2: post: description: Retrieve all tasks paginated and filtered tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – executionFilter properties: executionFilter: type: array items: type: string allOf: – #/definitions/executionFilter minimum: 1 description: Permite filtrar as tarefas por respondidas, não respondidas e expiradas search: type: string description: Search terms box: type: string description: The box subject: type: array items: type: string description: The subject offset: type: integer format: int64 description: When empty, default value is 0 default: 0 limit: type: integer format: int64 description: When empty, default value is 10 default: 10 sortField: type: string description: Sort field default: creationDate sortDirection: type: string allOf: – #/definitions/sortDirection description: Sort direction responses: 200: description: Ok schema: type: object required: – tasks – total properties: tasks: type: array items: type: object allOf: – #/definitions/task minimum: 1 description: List of tasks total: type: integer format: int64 description: Total of tasks default: description: Error response schema: #/definitions/genericError /decision_center/queries/listTasksByUser: post: description: Retrieve all tasks by user.\n Set the execution status of the Pending tasks to Waiting Action when done.\n For mobile perspective.\n tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object properties: answeredFilter: type: string allOf: – #/definitions/executionFilter description: Permite filtrar as tarefas por respondidas, não respondidas e expiradas (mantido o nome answeredFilter para não gerar quebra) page: type: integer format: int64 description: When empty, default value is 0 count: type: integer format: int64 description: When empty, default value is 60 responses: 200: description: Ok schema: type: object required: – tasks – total properties: tasks: type: array items: type: object allOf: – #/definitions/task minimum: 1 description: List of tasks total: type: integer format: int64 description: Total of tasks default: description: Error response schema: #/definitions/genericError /decision_center/queries/listTasksByUser__2: post: description: Retrieve all tasks by user.\n Set the execution status of the Pending tasks to Waiting Action when done.\n For mobile perspective.\n tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object properties: answeredFilter: type: array items: type: string allOf: – #/definitions/executionFilter description: Permite filtrar as tarefas por respondidas, não respondidas e expiradas (mantido o nome answeredFilter para não gerar quebra) months: type: integer format: int64 description: Number of months to search for default: 6 page: type: integer format: int64 description: When empty, default value is 0 count: type: integer format: int64 description: When empty, default value is 60 responses: 200: description: Ok schema: type: object required: – tasks – total properties: tasks: type: array items: type: object allOf: – #/definitions/task minimum: 1 description: List of tasks total: type: integer format: int64 description: Total of tasks default: description: Error response schema: #/definitions/genericError /decision_center/queries/searchUserTasks: post: description: Permitir buscar por um termo nas tarefas do usuário tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object properties: answeredFilter: type: string allOf: – #/definitions/executionFilter description: Permite filtrar as tarefas por respondidas, não respondidas e expiradas (mantido o nome answeredFilter para não gerar quebra) search: type: string description: Search terms page: type: integer format: int64 description: When empty, default value is 0 default: 0 count: type: integer format: int64 description: When empty, default value is 60 default: 60 responses: 200: description: Ok schema: type: object required: – tasks – total properties: tasks: type: array items: type: object allOf: – #/definitions/task minimum: 1 description: List of tasks total: type: integer format: int64 description: Total of tasks default: description: Error response schema: #/definitions/genericError /decision_center/queries/getStatusesByTaskId: post: description: Obtains a single task with its execution status, filtered by task id.\n Designed for the third-party perspective.\n tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – taskId properties: taskId: type: string description: The task id responses: 200: description: Ok schema: type: object required: – id – id_thirdParty – status properties: id: type: string description: The task id id_thirdParty: type: string description: The task third party id status: type: string allOf: – #/definitions/executionStatus description: The task status default: description: Error response schema: #/definitions/genericError get: description: Obtains a single task with its execution status, filtered by task id.\n Designed for the third-party perspective.\n tags: – Queries x-senior-visibility: PRIVATE parameters: – name: taskId description: The task id in: query required: true type: string responses: 200: description: Ok schema: type: object required: – id – id_thirdParty – status properties: id: type: string description: The task id id_thirdParty: type: string description: The task third party id status: type: string allOf: – #/definitions/executionStatus description: The task status default: description: Error response schema: #/definitions/genericError /decision_center/queries/getStatusesByIdThirdParty: post: description: Obtains tasks with its execution statuses, filtered by idThirdParty.\n Designed for the third-party perspective.\n tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – idThirdParty properties: idThirdParty: type: string description: The task third party id responses: 200: description: Ok schema: type: object required: – taskStatuses properties: taskStatuses: type: array items: type: object allOf: – #/definitions/taskStatus minimum: 1 description: The task status list default: description: Error response schema: #/definitions/genericError get: description: Obtains tasks with its execution statuses, filtered by idThirdParty.\n Designed for the third-party perspective.\n tags: – Queries x-senior-visibility: PRIVATE parameters: – name: idThirdParty description: The task third party id in: query required: true type: string responses: 200: description: Ok schema: type: object required: – taskStatuses properties: taskStatuses: type: array items: type: object allOf: – #/definitions/taskStatus minimum: 1 description: The task status list default: description: Error response schema: #/definitions/genericError /decision_center/queries/getStatuses: post: description: Obtains all tasks with their execution statuses.\n Designed for the third-party perspective.\n tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object properties: before: type: string format: date description: When before and after are empty return all tasks with creation date = current date, time 00:00 after: type: string format: date description: The after date executionStatus: type: string allOf: – #/definitions/executionStatus description: The status page: type: integer format: int64 description: When empty, default value is 0 count: type: integer format: int64 description: When empty, default value is 60 responses: 200: description: Ok schema: type: object required: – taskStatuses – total properties: taskStatuses: type: array items: type: object allOf: – #/definitions/taskStatus minimum: 1 description: The task status list total: type: integer format: int64 description: The total default: description: Error response schema: #/definitions/genericError /decision_center/queries/listTasksByThirdParty: post: description: Obtains all tasks filtered by idThirdParty.\n Designed for the third-party perspective.\n tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – idThirdParty properties: idThirdParty: type: string description: The task third party id before: type: string format: date description: When before and after are empty return all tasks with creation date = current date, time 00:00 after: type: string format: date description: The after date page: type: integer format: int64 description: When empty, default value is 0 count: type: integer format: int64 description: When empty, default value is 60 responses: 200: description: Ok schema: type: object required: – tasklist – total properties: tasklist: type: array items: type: object allOf: – #/definitions/task minimum: 1 description: The task list total: type: integer format: int64 description: The list total default: description: Error response schema: #/definitions/genericError get: description: Obtains all tasks filtered by idThirdParty.\n Designed for the third-party perspective.\n tags: – Queries x-senior-visibility: PRIVATE parameters: – name: idThirdParty description: The task third party id in: query required: true type: string – name: before description: When before and after are empty return all tasks with creation date = current date, time 00:00 in: query type: string format: date – name: after description: The after date in: query type: string format: date – name: page description: When empty, default value is 0 in: query type: integer format: int64 – name: count description: When empty, default value is 60 in: query type: integer format: int64 responses: 200: description: Ok schema: type: object required: – tasklist – total properties: tasklist: type: array items: type: object allOf: – #/definitions/task minimum: 1 description: The task list total: type: integer format: int64 description: The list total default: description: Error response schema: #/definitions/genericError /decision_center/queries/listTasksByBox: post: description: Obtains all tasks filtered by box and creation date.\n Designed for the third-party perspective.\n tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – box properties: box: type: string description: The task box subject: type: string description: The task subjct before: type: string format: date description: When before and after are empty return all tasks with creation date = current date, time 00:00 after: type: string format: date description: The task after date page: type: integer format: int64 description: When empty, default value is 0 count: type: integer format: int64 description: When empty, default value is 60 responses: 200: description: Ok schema: type: object required: – tasklist – total properties: tasklist: type: array items: type: object allOf: – #/definitions/task minimum: 1 description: The task list total: type: integer format: int64 description: The task list total default: description: Error response schema: #/definitions/genericError get: description: Obtains all tasks filtered by box and creation date.\n Designed for the third-party perspective.\n tags: – Queries x-senior-visibility: PRIVATE parameters: – name: box description: The task box in: query required: true type: string – name: subject description: The task subjct in: query type: string – name: before description: When before and after are empty return all tasks with creation date = current date, time 00:00 in: query type: string format: date – name: after description: The task after date in: query type: string format: date – name: page description: When empty, default value is 0 in: query type: integer format: int64 – name: count description: When empty, default value is 60 in: query type: integer format: int64 responses: 200: description: Ok schema: type: object required: – tasklist – total properties: tasklist: type: array items: type: object allOf: – #/definitions/task minimum: 1 description: The task list total: type: integer format: int64 description: The task list total default: description: Error response schema: #/definitions/genericError /decision_center/queries/listTasksByExecutionStatus: post: description: Obtains all tasks filtered by execution status.\n Designed for the third-party perspective.\n tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – executionStatus properties: executionStatus: type: string allOf: – #/definitions/executionStatus description: The execution status box: type: string description: The task status page: type: integer format: int64 description: When empty, default value is 0 count: type: integer format: int64 description: When empty, default value is 60 before: type: string format: date description: When before and after are empty return all tasks with creation date = current date, time 00:00 after: type: string format: date description: The task after date responses: 200: description: Ok schema: type: object required: – tasklist – total properties: tasklist: type: array items: type: object allOf: – #/definitions/task minimum: 1 description: The task list total: type: integer format: int64 description: The task list total default: description: Error response schema: #/definitions/genericError /decision_center/queries/listTasksModelByExecutionStatus: post: description: Obtains all tasks filtered by execution status.\n Designed for the third-party perspective.\n Returns less information about the tasks for data transfer and consume optimization.\n tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – executionStatus properties: executionStatus: type: string allOf: – #/definitions/executionStatus description: The execution status box: type: string description: The task status page: type: integer format: int64 description: When empty, default value is 0 count: type: integer format: int64 description: When empty, default value is 60 before: type: string format: date description: When before and after are empty return all tasks with creation date = current date, time 00:00 after: type: string format: date description: The task after date responses: 200: description: Ok schema: type: object required: – tasklist – total properties: tasklist: type: array items: type: object allOf: – #/definitions/taskModel minimum: 1 description: The task list total: type: integer format: int64 description: The task list total default: description: Error response schema: #/definitions/genericError /decision_center/queries/listTasksByResponseStatus: post: description: Obtains all tasks filtered by responseStatus\n Designed for the third-party perspective.\n tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – responseStatus properties: responseStatus: type: string allOf: – #/definitions/responseStatus description: The task response status box: type: string description: The task box page: type: integer format: int64 description: When empty, default value is 0 count: type: integer format: int64 description: When empty, default value is 60 before: type: string format: date description: When before and after are empty return all tasks with creation date = current date, time 00:00 after: type: string format: date description: The task after date responses: 200: description: Ok schema: type: object required: – tasklist – total properties: tasklist: type: array items: type: object allOf: – #/definitions/task minimum: 1 description: The task list total: type: integer format: int64 description: The task list total default: description: Error response schema: #/definitions/genericError /decision_center/queries/getBoxes: post: description: Obtains a list of boxes from all tasks\n tags: – Queries x-senior-visibility: PRIVATE responses: 200: description: Ok schema: type: object required: – boxes – totalUnanswered properties: boxes: type: array items: type: object allOf: – #/definitions/box minimum: 1 description: The box list totalUnanswered: type: integer format: int64 description: The total of unanswered default: description: Error response schema: #/definitions/genericError get: description: Obtains a list of boxes from all tasks\n tags: – Queries x-senior-visibility: PRIVATE responses: 200: description: Ok schema: type: object required: – boxes – totalUnanswered properties: boxes: type: array items: type: object allOf: – #/definitions/box minimum: 1 description: The box list totalUnanswered: type: integer format: int64 description: The total of unanswered default: description: Error response schema: #/definitions/genericError /decision_center/queries/listTasksByBoxAndSubject: post: description: Obtains all tasks from the box informed, or\n all tasks from the box and subject.\n Set the execution status of the Pending tasks to Waiting Action when done.\n tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – box properties: box: type: string description: The box subject: type: string description: The subject answeredFilter: type: string allOf: – #/definitions/executionFilter description: Permite filtrar as tarefas por respondidas, não respondidas e expiradas (mantido o nome answeredFilter para não gerar quebra) page: type: integer format: int64 description: When empty, default value is 0 count: type: integer format: int64 description: When empty, default value is 60 responses: 200: description: Ok schema: type: object required: – tasks – total properties: tasks: type: array items: type: object allOf: – #/definitions/task minimum: 1 description: The task list total: type: integer format: int64 description: The task list total default: description: Error response schema: #/definitions/genericError /decision_center/queries/listTasksByBoxAndSubject__2: post: description: Obtains all tasks from the box informed, or\n all tasks from the box and subject.\n Set the execution status of the Pending tasks to Waiting Action when done.\n tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – box properties: box: type: string description: The box subject: type: array items: type: string description: The subject answeredFilter: type: array items: type: string allOf: – #/definitions/executionFilter description: Permite filtrar as tarefas por respondidas, não respondidas e expiradas (mantido o nome answeredFilter para não gerar quebra) page: type: integer format: int64 description: When empty, default value is 0 count: type: integer format: int64 description: When empty, default value is 60 responses: 200: description: Ok schema: type: object required: – tasks – total properties: tasks: type: array items: type: object allOf: – #/definitions/task minimum: 1 description: The task list total: type: integer format: int64 description: The task list total default: description: Error response schema: #/definitions/genericError /decision_center/queries/healthcheck: post: description: Query para o SRE verificar a disponibilidade do serviço tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object responses: 200: description: Ok schema: type: object required: – status – checks properties: status: type: string allOf: – #/definitions/upDown description: Status geral do serviço checks: type: array items: type: object allOf: – #/definitions/checkData minimum: 1 description: Verificações para assegurar o status default: description: Error response schema: #/definitions/genericError get: description: Query para o SRE verificar a disponibilidade do serviço tags: – Queries x-senior-visibility: PRIVATE parameters: responses: 200: description: Ok schema: type: object required: – status – checks properties: status: type: string allOf: – #/definitions/upDown description: Status geral do serviço checks: type: array items: type: object allOf: – #/definitions/checkData minimum: 1 description: Verificações para assegurar o status default: description: Error response schema: #/definitions/genericError /decision_center/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: 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: default: description: Error response schema: #/definitions/genericError /decision_center/queries/getDependencies: post: description: Returns a list with all dependencies from this service, along with their respective versions tags: – Queries x-senior-visibility: PUBLIC 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 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: PUBLIC 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 default: description: Error response schema: #/definitions/genericError /decision_center/actions/setTaskAsExpired: post: description: Change the status of an especific task to expired tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – taskId – message properties: taskId: type: string description: The task id message: type: string description: The message responses: 200: description: Ok schema: type: object required: – executionStatus properties: executionStatus: type: string allOf: – #/definitions/executionStatus description: The task execution status default: description: Error response schema: #/definitions/genericError /decision_center/actions/removeTasks: post: description: Remove tasks tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – idsThirdParty properties: idsThirdParty: type: array items: type: string minimum: 1 description: The task third party id responses: 200: description: Ok schema: type: object default: description: Error response schema: #/definitions/genericError /decision_center/actions/processSynchronizedTasks: post: description: Obtains all Synchronized tasks, changes them to Finished and then return them.\n Updates the tasks according to paging.\n tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object properties: page: type: integer format: int64 description: When empty, default value is 0 count: type: integer format: int64 description: When empty, default value is 60 responses: 200: description: Ok schema: type: object required: – tasks – total properties: tasks: type: array items: type: object allOf: – #/definitions/processedTask minimum: 1 description: The task list total: type: integer format: int64 description: The task list total default: description: Error response schema: #/definitions/genericError /decision_center/actions/setResponseStatus: post: description: Allow the third party to set a responseStatus to the task after getting the synchronized tasks tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – taskId – responseStatus properties: taskId: type: string description: The task id responseStatus: type: string allOf: – #/definitions/responseStatus description: The response status responseMessage: type: string description: The response message responses: 200: description: Ok schema: type: object required: – taskId – responseStatus – responseDate properties: taskId: type: string description: The task id responseStatus: type: string allOf: – #/definitions/responseStatus description: The response status responseDate: type: string format: date-time description: The response date default: description: Error response schema: #/definitions/genericError /decision_center/actions/updateAnsweredTasks: post: description: Receives a list of actions taken by users in the mobile application and update the tasks with this data.\n Sets the execution status to Finished when done.\n tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – tasksAnswers properties: tasksAnswers: type: array items: type: object allOf: – #/definitions/taskAnswer minimum: 1 description: The total of answers responses: 200: description: Ok schema: type: object required: – ok properties: ok: type: boolean description: ok flag default: description: Error response schema: #/definitions/genericError /decision_center/signals/notifyTasksAboutToExpire: post: description: Sends one notification for each task about to expire in the interval informed.\n The defaut value for hours is 1.\n tags: – Signals parameters: – name: input in: body required: true schema: type: object properties: hours: type: integer format: int64 description: The hours filter responses: 202: description: Accepted default: description: Error response schema: #/definitions/genericError /decision_center/entities/task: post: tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: entity in: body required: true schema: type: object allOf: – #/definitions/task responses: 200: description: The created resource schema: #/definitions/task 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/task responses: 200: description: The created resource schema: #/definitions/task 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/task default: description: Error response schema: #/definitions/genericError /decision_center/entities/task/{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/task responses: 200: description: Ok schema: #/definitions/task 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/task responses: 200: description: Ok schema: #/definitions/task 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/task 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 default: description: Error response schema: #/definitions/genericError /decision_center/entities/task/bulk: post: tags: – Bulk parameters: – name: entities in: body required: true schema: type: array items: #/definitions/task responses: 200: description: The bulk creation has created resources default: description: Error response schema: #/definitions/genericError definitions: executionStatus: description: executionStatus type: string enum: – Pending – Waiting_Action – Waiting_Sync – Synchronized – Finished – Expired – Unrecognized responseStatus: description: responseStatus type: string enum: – OK – Error – Warning – Info executionFilter: description: Filtro rápido de tarefas para o mobile type: string enum: – answered – unanswered – expired upDown: description: Up or down type: string enum: – UP – DOWN sortDirection: description: Sort Direction type: string enum: – ASC – DESC 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 taskOption: description: The task option record type: object required: – code – description properties: id: type: string description: ID taskId: type: string description: Task ID code: type: string description: Code description: type: string description: Description box: description: The Box record type: object required: – box – subjects – totalUnanswered properties: box: type: string description: box subjects: type: array items: type: object allOf: – #/definitions/subject minimum: 1 description: subject list totalUnanswered: type: integer format: int64 description: total of unanswered subject: description: subject record type: object required: – subject – totalUnanswered properties: subject: type: string description: subject totalUnanswered: type: integer format: int64 description: total of unanswered processedTask: description: process taks type: object required: – taskId – id_thirdParty – takenOptionId – takenOptionCode – answerDate properties: taskId: type: string description: taskId id_thirdParty: type: string description: id_thirdParty takenOptionId: type: string description: takenOptionId takenOptionCode: type: string description: takenOptionCode answerDate: type: string format: date-time description: answerDate taskAnswer: description: taskAnswer type: object required: – taskId – answerDate – takenOptionId properties: taskId: type: string description: taskId answerDate: type: string format: date-time description: answerDate takenOptionId: type: string description: takenOptionId note: type: string description: note taskModel: description: Task representation with less information and a concise data type: object required: – id_thirdParty – description – owner properties: id: type: string description: Task identifier id_thirdParty: type: string description: Identifier for Third party description: type: string description: Task description owner: type: string description: Owner note: type: string description: Note takenOption: type: object allOf: – #/definitions/taskOption description: Taken Option checkData: description: Dados do healthcheck type: object required: – name – status properties: name: type: string description: Nome do healthcheck status: type: string allOf: – #/definitions/upDown description: Status do healthcheck taskStatus: description: taskStatus type: object required: – id – id_thirdParty – status properties: id: type: string description: id id_thirdParty: type: string description: id_thirdParty status: type: string allOf: – #/definitions/executionStatus description: status task: description: This entity can be used to list all tasks to the mobile perspective,\n and also for the third-party to send tasks to the cloud (in this case, the executionStatus must be sent as Pending).\n type: object required: – id_thirdParty – box – subject – description – sender – owner – allowNote – options – expirationDate – executionStatus properties: id: type: string description: id id_thirdParty: type: string description: id_thirdParty box: type: string description: box subject: type: string description: subject description: type: string description: description content: type: string description: content sender: type: string description: sender senderName: type: string description: Tenta obter o nome do solicitante caso seja um usuário na G7 ou retorna o próprio sender owner: type: string description: owner allowNote: type: boolean description: allowNote note: type: string description: note options: type: array items: type: object allOf: – #/definitions/taskOption minimum: 1 description: options takenOptionId: type: string description: takenOptionId creationDate: type: string format: date-time description: creationDate receivedDate: type: string format: date-time description: receivedDate answerDate: type: string format: date-time description: answerDate cloudSyncDate: type: string format: date-time description: cloudSyncDate sysSyncDate: type: string format: date-time description: sysSyncDate expirationDate: type: string format: date-time description: expirationDate expirationMessage: type: string description: expirationMessage executionStatus: type: string allOf: – #/definitions/executionStatus description: executionStatus responseStatus: type: string allOf: – #/definitions/responseStatus description: responseStatus responseMessage: type: string description: responseMessage responseDate: type: string format: date-time description: responseDate 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 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