mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
Merge pull request #1097 from Tria-plc/freight_feature/usermanagement
Freight feature/usermanagement
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
export type OverviewRange = '7d' | '30d' | '90d';
|
||||
|
||||
export interface IOverviewBookingKpis {
|
||||
/** All bookings ever recorded (excluding deleted / GENERAL umbrella rows). */
|
||||
total: number;
|
||||
totalActive: number;
|
||||
needsAction: number;
|
||||
urgent: number;
|
||||
@@ -13,6 +15,8 @@ export interface IOverviewOperationsKpis {
|
||||
wagonsAvailable: number;
|
||||
containersInTransit: number;
|
||||
cargoesLoaded: number;
|
||||
schedulesUpcoming: number;
|
||||
dispatchedToday: number;
|
||||
}
|
||||
|
||||
export interface IOverviewCustomerKpis {
|
||||
@@ -33,6 +37,8 @@ export interface IOverviewStaffKpis {
|
||||
}
|
||||
|
||||
export interface IOverviewContractKpis {
|
||||
/** All contracts ever recorded (excluding deleted). */
|
||||
total: number;
|
||||
totalActive: number;
|
||||
needsAction: number;
|
||||
inApproval: number;
|
||||
@@ -151,8 +157,27 @@ export interface IOverviewBillingTab {
|
||||
generatedAt: string;
|
||||
}
|
||||
|
||||
/** Scheduled train departures per day, split by trade direction. */
|
||||
export interface IOverviewDirectionTrendPoint {
|
||||
date: string;
|
||||
importCount: number;
|
||||
exportCount: number;
|
||||
domesticCount: number;
|
||||
}
|
||||
|
||||
export interface IOverviewTonnagePoint {
|
||||
label: string;
|
||||
tons: number;
|
||||
}
|
||||
|
||||
export interface IOverviewOperationsTab {
|
||||
kpis: IOverviewOperationsKpis;
|
||||
departureTrend: IOverviewDirectionTrendPoint[];
|
||||
scheduleStatusBreakdown: IOverviewStatusCount[];
|
||||
wagonsByType: IOverviewLabelCount[];
|
||||
wagonsByYard: IOverviewLabelCount[];
|
||||
containersBySize: IOverviewLabelCount[];
|
||||
cargoTonnageByType: IOverviewTonnagePoint[];
|
||||
trainStatusBreakdown: IOverviewStatusCount[];
|
||||
wagonStatusBreakdown: IOverviewStatusCount[];
|
||||
containerStatusBreakdown: IOverviewStatusCount[];
|
||||
@@ -181,5 +206,6 @@ export type OverviewTabKey =
|
||||
| 'contracts'
|
||||
| 'billing'
|
||||
| 'operations'
|
||||
| 'fleet'
|
||||
| 'customers'
|
||||
| 'staff';
|
||||
|
||||
Reference in New Issue
Block a user