mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-28 09:00:57 +00:00
- Added parameter to and for server-side free-text search on contract reference, company name, and booking details. - Introduced new validation errors in for container clashes and space issues when creating bookings. - Implemented paginated dropdown settings retrieval in . - Updated to fetch active yards using a new method that handles pagination. - Enhanced with a method to fetch all records by walking through pages. - Refactored to support filtering and pagination in schedule listings. - Improved to return a paginated list of facilities. - Updated UI components in and to utilize debounced search inputs for better performance. - Added alerts in to inform users about booking constraints related to splits and capacity. - Enhanced to display notifications for split bookings and capacity usage.
18 lines
909 B
TypeScript
18 lines
909 B
TypeScript
import { PaginatedResponse } from '@edr/types';
|
|
import { FindManyOptions } from 'typeorm';
|
|
import { ListRuleEngineQueryDto } from '../dto/list-rule-engine-query.dto';
|
|
import { ShippingLine } from '../entities/shipping-line.entity';
|
|
|
|
export interface IShippingLinesRepository {
|
|
findById(id: string): Promise<ShippingLine | null>;
|
|
findByCode(code: string): Promise<ShippingLine | null>;
|
|
findAll(options?: FindManyOptions<ShippingLine>): Promise<ShippingLine[]>;
|
|
findAndCount(options?: FindManyOptions<ShippingLine>): Promise<[ShippingLine[], number]>;
|
|
findPaged(query: ListRuleEngineQueryDto): Promise<PaginatedResponse<ShippingLine>>;
|
|
create(data: Partial<ShippingLine>): Promise<ShippingLine>;
|
|
update(id: string, data: Partial<ShippingLine>): Promise<ShippingLine | null>;
|
|
softDelete(id: string): Promise<void>;
|
|
}
|
|
|
|
export const SHIPPING_LINES_REPOSITORY = Symbol('SHIPPING_LINES_REPOSITORY');
|