From 8b6cd8a88ed60e401ad114433cb46ee48574e3e9 Mon Sep 17 00:00:00 2001 From: Gabriel Rosa Date: Fri, 21 Jun 2024 09:21:27 -0300 Subject: [PATCH] FEAT: customer monitoring dashboard --- docsfera.external.json | 41 ++++++++++++++++++- docsfera.json | 2 +- src/modules/customers/customers.controller.ts | 4 +- 3 files changed, 44 insertions(+), 3 deletions(-) diff --git a/docsfera.external.json b/docsfera.external.json index 5823882..eb7906d 100644 --- a/docsfera.external.json +++ b/docsfera.external.json @@ -490,6 +490,45 @@ ] } }, + "/pipelinesV2/monitoring-dashboard": { + "get": { + "operationId": "PipelinesController_getMonitoringDashboard", + "parameters": [ + { + "name": "dadosfera-lang", + "in": "header", + "required": false, + "schema": { + "enum": [ + "pt-br", + "en-us" + ], + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + } + }, + "tags": [ + "PipelinesV2" + ], + "security": [ + { + "access-token": [] + } + ] + } + }, "/pipelinesV2": { "post": { "operationId": "PipelinesController_create", @@ -1752,7 +1791,7 @@ } }, "info": { - "title": "Maestro - feat/generate-token", + "title": "Maestro - feat/new-customer-monitoring", "description": "This is the Maestro API", "version": "1.0.0", "contact": {} diff --git a/docsfera.json b/docsfera.json index c300887..8719479 100644 --- a/docsfera.json +++ b/docsfera.json @@ -5137,7 +5137,7 @@ } }, "info": { - "title": "Maestro - main", + "title": "Maestro - feat/new-customer-monitoring", "description": "This is the Maestro API", "version": "1.0.0", "contact": {} diff --git a/src/modules/customers/customers.controller.ts b/src/modules/customers/customers.controller.ts index d40de80..66a9fe9 100644 --- a/src/modules/customers/customers.controller.ts +++ b/src/modules/customers/customers.controller.ts @@ -74,7 +74,9 @@ export class CustomersController { } @Get('monitoring-dashboard') - @RequireAllPermissions(PERMISSIONS_GROUPS.AUTH.permissions.GENERATE_TOKEN) + @RequireAllPermissions( + PERMISSIONS_GROUPS.CUSTOMER.permissions.MONITORING_DASHBOARD, + ) async getCustomerMonitoringDashboard( @User() user: RequestUser, ): Promise<{ url: string }> {