JOB
👷 Technical Specification: Job Setup
📋 Feature Overview
🛠️ Technical Implementation
A. Permissions & Access Control
Note: Access is controlled via
PermissionGuard and component-level checks.| Scope | Permission Code | Description & Page Usage |
|---|---|---|
| Menu Visibility | JOB.MENU |
|
| Page Routing | JOB.LISTING |
Access to listing route.\new-job-listing |
| Page Routing | JOB.VIEW |
Access to view route.
|
| Action: Accept Job | ACCEPT_JOB.VIEW |
Accept job on driver's behalf.\new-job-listing |
| Action: Complete | MANUAL_COMPLETE_ORDER.VIEW |
Manually complete order from listing.\new-job-listing |
| Action: Reschedule | RESCHEDULE_JOB.VIEW |
Reschedule job dates.\view-job |
| Action: Assign | ASSIGN_CARRIER.VIEW |
Assign a carrier to a job.\view-job |
| Action: Reassign | REASSIGN_CARRIER.VIEW |
Change the assigned carrier.\view-job |
| Action: Transfer | TRANSFER_CARRIER.VIEW |
Transfer job to another carrier mid-process.\view-job |
| Action: Update Transfer | UPDATE_TRANSFER_CARRIER.VIEW |
Edit transfer details.\view-job |
| Action: Hold | HOLD_JOB.VIEW |
Put a job on hold.\view-job |
| Action: Resume | RESUME_JOB.VIEW |
Resume a held job.\view-job |
| Action: Unassign | UNASSIGN_CARRIER.VIEW |
Remove carrier assignment.\view-job |
B. API Interaction
Base URL:
${environment.baseApiUrl}1. New Job Listing
\new-job-listing/companies/getQuery
POSTFilter:
isDeleted=0/clients/getQuery
POSTFilter:
isDeleted=0/products/getQuery
POSTFilter:
isDeleted=0/jobs/getQuery
POSTFilter:
jobProgress (Failed, Hold, Pending...), isClosed=0/job/updateJobStatus
POSTPurpose: Accept Job / Update Status
/order/manualCompleteOrder
POSTPurpose: Manually Complete Job
2. View Job Manage
\view-job/jobs/getQuery
POSTPurpose: Fetch specific record details (id)
/orderDocuments/getQuery
POSTFilter:
orderId/driver/getAvailableDriver
POSTPurpose: Fetch drivers for assignment
/mover/getAvailableMover
POSTPurpose: Fetch movers for assignment
/tanker/getAvailableTanker
POSTPurpose: Fetch tankers for assignment
/job/assignCarrier
POSTPurpose: Assign carrier to job
/job/reassignCarrier
POSTPurpose: Re-assign carrier
/job/transferCarrier
POSTPurpose: Transfer job to another carrier
/job/rescheduleJob
POSTPurpose: Reschedule delivery datetime
/job/holdJob
POSTPurpose: Hold job
/job/resumeJob
POSTPurpose: Resume held job
/job/unassignCarrier
POSTPurpose: Unassign carrier from job
/order/markDelay
POSTPurpose: Mark/Update Delay Status
/orderJobTrackingLogs/getQuery
POSTFilter:
orderId, jobId/orderDocuments/updateWithFile
POSTPurpose: Upload Order Documents
