mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 15:18:11 +00:00
feat: add shipping line companies management
- Implement ShippingLineCompaniesService for registering and managing shipping line companies. - Create ResendActivationAction component for resending activation links to shipping lines. - Develop ShippingLineCompaniesPage for listing and registering shipping lines with validation. - Introduce shippingLineCompanies.service for API interactions related to shipping lines. - Define types for shipping line companies, including registration and pagination. - Add placeholder pages for shipping line portal, including home, bookings, help, invoices, and settings.
This commit is contained in:
@@ -450,6 +450,30 @@ export const CUSTOMER_PERMISSIONS: FreightPermissionSeed[] = [
|
||||
),
|
||||
];
|
||||
|
||||
// C2. Shipping lines — carriers registered by staff (no self-signup).
|
||||
export const SHIPPING_LINE_PERMISSIONS: FreightPermissionSeed[] = [
|
||||
perm(
|
||||
"d1a00002-0001-4000-8000-000000000001",
|
||||
"edr_freight_app:shipping_lines:view",
|
||||
"View shipping lines",
|
||||
),
|
||||
perm(
|
||||
"d1a00002-0001-4000-8000-000000000002",
|
||||
"edr_freight_app:shipping_lines:create",
|
||||
"Register shipping line",
|
||||
),
|
||||
perm(
|
||||
"d1a00002-0001-4000-8000-000000000003",
|
||||
"edr_freight_app:shipping_lines:update",
|
||||
"Update shipping line",
|
||||
),
|
||||
perm(
|
||||
"d1a00002-0001-4000-8000-000000000004",
|
||||
"edr_freight_app:shipping_lines:reset-password",
|
||||
"Resend shipping line activation link",
|
||||
),
|
||||
];
|
||||
|
||||
// D. Finance — payments + invoices
|
||||
export const FINANCE_PERMISSIONS: FreightPermissionSeed[] = [
|
||||
perm(
|
||||
@@ -1493,6 +1517,7 @@ export const NOTIFICATION_PERMISSIONS: FreightPermissionSeed[] = [
|
||||
|
||||
export const ADVANCED_BACKOFFICE_PERMISSIONS: FreightPermissionSeed[] = [
|
||||
...CUSTOMER_PERMISSIONS,
|
||||
...SHIPPING_LINE_PERMISSIONS,
|
||||
...FINANCE_PERMISSIONS,
|
||||
...MILE_PERMISSIONS,
|
||||
...FLEET_RAIL_PERMISSIONS,
|
||||
@@ -1699,6 +1724,12 @@ export const FREIGHT_PERMS = {
|
||||
// Notification selector, not a route guard — see NOTIFICATION_PERMISSIONS.
|
||||
getNotification: "edr_freight_app:customers:get_notification",
|
||||
},
|
||||
shippingLines: {
|
||||
view: "edr_freight_app:shipping_lines:view",
|
||||
create: "edr_freight_app:shipping_lines:create",
|
||||
update: "edr_freight_app:shipping_lines:update",
|
||||
resetPassword: "edr_freight_app:shipping_lines:reset-password",
|
||||
},
|
||||
payments: {
|
||||
view: "edr_freight_app:payments:view",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user