mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-28 23:00:57 +00:00
feat: dashbaord overview
This commit is contained in:
@@ -15,8 +15,10 @@ import { OverviewResponseDto } from './dto/overview-response.dto';
|
||||
import {
|
||||
OverviewBillingTabDto,
|
||||
OverviewBookingsTabDto,
|
||||
OverviewClearanceTabDto,
|
||||
OverviewContractsTabDto,
|
||||
OverviewCustomersTabDto,
|
||||
OverviewFleetTabDto,
|
||||
OverviewOperationsTabDto,
|
||||
OverviewStaffTabDto,
|
||||
} from './dto/overview-tab-response.dto';
|
||||
@@ -106,6 +108,22 @@ export class OverviewController {
|
||||
return this.overviewService.getOperationsTab(query.range ?? '30d');
|
||||
}
|
||||
|
||||
@Get('fleet')
|
||||
@BookingStaff(FREIGHT_PERMS.overview.view)
|
||||
@ApiOperation({ summary: 'Wagon and locomotive fleet detail, plus turnaround' })
|
||||
@ApiOkResponse({ type: OverviewFleetTabDto })
|
||||
getFleetTab(@Query() query: OverviewQueryDto): Promise<OverviewFleetTabDto> {
|
||||
return this.overviewService.getFleetTab(query.range ?? '30d');
|
||||
}
|
||||
|
||||
@Get('clearance')
|
||||
@BookingStaff(FREIGHT_PERMS.overview.view)
|
||||
@ApiOperation({ summary: 'Document review and invoice queues' })
|
||||
@ApiOkResponse({ type: OverviewClearanceTabDto })
|
||||
getClearanceTab(): Promise<OverviewClearanceTabDto> {
|
||||
return this.overviewService.getClearanceTab();
|
||||
}
|
||||
|
||||
@Get('customers')
|
||||
@BookingStaff(FREIGHT_PERMS.overview.view)
|
||||
@ApiOperation({ summary: 'Customers tab metrics and charts' })
|
||||
|
||||
Reference in New Issue
Block a user