mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-27 22:30:55 +00:00
- Introduced OverviewContractKpisDto and OverviewRecentContractDto for contract metrics. - Implemented OverviewContractsTabDto to structure the contracts tab response. - Added contract-related constants for status groupings and pipeline stages. - Created OverviewContractsTabPanel and OverviewRecentContractsTable components for UI representation. - Updated OverviewService and OverviewRepository to fetch contract data. - Integrated contracts tab into OverviewController and OverviewTabContent. - Added hooks for fetching contracts data in useOverview. - Updated types in the overview module to include contracts. - Enhanced the contract detail page with a "View contract" button for generated PDFs.
37 lines
1.2 KiB
TypeScript
37 lines
1.2 KiB
TypeScript
import { Module } from "@nestjs/common";
|
|
import { TypeOrmModule } from "@nestjs/typeorm";
|
|
import { Employee } from "@tria-plc/iamapi-common";
|
|
import { User } from "@tria-plc/iamapi-common/entities/iam/user/user.entity";
|
|
|
|
import { Booking } from "../bookings/entities/booking.entity";
|
|
import { Cargo } from "../cargoes/entities/cargoes.entity";
|
|
import { Container } from "../container-management/entities/container.entity";
|
|
import { Company } from "../companies/entities/company.entity";
|
|
import { Contract } from "../contracts/entities/contract.entity";
|
|
import { PaymentEntity } from "../payment/entities/payment.entity";
|
|
import { Train } from "../trains/entities/train.entity";
|
|
import { Wagon } from "../wagons/entities/wagon.entity";
|
|
import { OverviewController } from "./overview.controller";
|
|
import { OverviewRepository } from "./overview.repository";
|
|
import { OverviewService } from "./overview.service";
|
|
|
|
@Module({
|
|
imports: [
|
|
TypeOrmModule.forFeature([
|
|
Booking,
|
|
PaymentEntity,
|
|
Company,
|
|
Train,
|
|
Wagon,
|
|
Container,
|
|
Cargo,
|
|
Contract,
|
|
Employee,
|
|
User,
|
|
]),
|
|
],
|
|
controllers: [OverviewController],
|
|
providers: [OverviewService, OverviewRepository],
|
|
})
|
|
export class OverviewModule { }
|