mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-27 19:00:55 +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.
24 lines
673 B
TypeScript
24 lines
673 B
TypeScript
import { AppDataSource } from "../data-source";
|
|
import { DropdownSettingsSeeder } from "../seed/dropdown-settings.seeder";
|
|
|
|
/**
|
|
* Seed the dropdown settings catalog (codes/labels only, no options) into an
|
|
* EMPTY dropdown_settings table; skips entirely if any rows exist. Run on
|
|
* demand:
|
|
* pnpm --filter @edr/freight-api seed:dropdown-settings
|
|
*/
|
|
async function run() {
|
|
await AppDataSource.initialize();
|
|
try {
|
|
const seeder = new DropdownSettingsSeeder(AppDataSource);
|
|
await seeder.run();
|
|
} finally {
|
|
await AppDataSource.destroy();
|
|
}
|
|
}
|
|
|
|
run().catch((error) => {
|
|
console.error("Failed to seed dropdown settings:", error);
|
|
process.exit(1);
|
|
});
|