mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-08 05:25:41 +00:00
feat: implement consolidation approval process for shared-wagon bookings
- Add migration for consolidation approvals table and status enum - Create ConsolidationApprovalService to handle approval logic - Implement repository for managing consolidation approvals - Add entity for consolidation approval with necessary fields - Develop frontend components for displaying and managing consolidation approvals - Create tests for consolidation approval service to ensure correct behavior
This commit is contained in:
@@ -193,6 +193,15 @@ export const URL_CONSTANTS = {
|
||||
STAFF_ACCEPT: (id: string) => `/bookings/${id}/staff/accept`,
|
||||
// Consolidated pair: one staff decision applied to both halves at once.
|
||||
PAIRED_DECISION: (id: string) => `/bookings/${id}/paired-decision`,
|
||||
// Shared-wagon approval gate: a consolidated pair waits for a human
|
||||
// decision before either half reaches Operations.
|
||||
CONSOLIDATION_APPROVAL_QUEUE: "/bookings/consolidation-approvals/queue",
|
||||
CONSOLIDATION_APPROVAL_HISTORY: (id: string) =>
|
||||
`/bookings/${id}/consolidation-approvals`,
|
||||
CONSOLIDATION_APPROVE: (approvalId: string) =>
|
||||
`/bookings/consolidation-approvals/${approvalId}/approve`,
|
||||
CONSOLIDATION_REJECT: (approvalId: string) =>
|
||||
`/bookings/consolidation-approvals/${approvalId}/reject`,
|
||||
STAFF_REQUEST_CHANGES: (id: string) =>
|
||||
`/bookings/${id}/staff/request-changes`,
|
||||
STAFF_REJECT: (id: string) => `/bookings/${id}/staff/reject`,
|
||||
|
||||
Reference in New Issue
Block a user