mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-28 14:50: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
768 B
TypeScript
18 lines
768 B
TypeScript
import { PaginatedResponse } from '@edr/types';
|
|
import { FindManyOptions } from 'typeorm';
|
|
import { ListYardsQueryDto } from '../dto/list-rule-engine-query.dto';
|
|
import { Yard } from '../entities/yard.entity';
|
|
|
|
export interface IYardsRepository {
|
|
findById(id: string): Promise<Yard | null>;
|
|
findByCode(code: string): Promise<Yard | null>;
|
|
findAll(options?: FindManyOptions<Yard>): Promise<Yard[]>;
|
|
findAndCount(options?: FindManyOptions<Yard>): Promise<[Yard[], number]>;
|
|
findPaged(query: ListYardsQueryDto): Promise<PaginatedResponse<Yard>>;
|
|
create(data: Partial<Yard>): Promise<Yard>;
|
|
update(id: string, data: Partial<Yard>): Promise<Yard | null>;
|
|
softDelete(id: string): Promise<void>;
|
|
}
|
|
|
|
export const YARDS_REPOSITORY = Symbol('YARDS_REPOSITORY');
|