Skip to content

GET /yms/yard-truck-drivers/staff-state

YMS > yms.yard-move

What it does

/yms/yard-truck-drivers/staff-state accepts GET and is declared in app/systems/YMS/yard-move/api_routes.php:374 as a path.

The route handler delegates to ymsYardTruckDriverStaffState(). That function is the owner of this behaviour; the route entry is only dispatch.

Call chain:

  1. → ymsYardTruckDriverStaffState() — app/systems/YMS/yard-move/api_routes.php:177
  2. ↳ getMenuRouteAccessDecision() — config/config.php:1114
  3. ↳ normalizeMenuRouteFull() — config/config.php:634

Who calls it

Called from:

  • public/assets/js/modules/yms/yard-dispatch.js

A caller is the strongest available evidence of the intended use.

Input

No named input key is visible in the handler or its owner function. The endpoint either takes no parameters or reads them through a shared helper in app/shared/api/.

Output

Key
CLAIMED_DISPATCH_COUNT
IS_YARD_TRUCK_DEDICATED
ROLE_NAMES
STAFF_DISPLAY
USERNAME
WORK_CONTEXT

Success is { "data": …, "requestId": "…" }. Failure is { "error": { "code", "message" }, "requestId": "…" }.

SQL executed

SELECT MENU_URL, MODULE_PAGE_ID, MENU_ROLE_LIST FROM T_MENU WHERE CLIENT_ID = ? AND MENU_URL <> '' AND DELETED_AT IS NULL ORDER BY ID

Data

No table reference is visible in the owner function body.

Access

  • module-gated on yms.yard-move, so tenant module access applies; strictTenantPrincipal => true