booking_request_progress
Shows who still has to approve a CONFIRMED user request, level by level. It now takes the user
request id directly.
It is a GraphQL query returning BookingRequestProgress. Any signed-in user can call it:
ADMIN users for any company, other users only for their own company's requests.
Input
input: BookingRequestProgressInput!
| Field | Type | Required | Description |
|---|---|---|---|
id | String | One of the two | A booking request id, as before. Now optional. |
user_request_id new | String | One of the two | Find the booking request created for this user request. |
Send one of the two; sending neither returns id_or_user_request_id_required.
Query
query {
booking_request_progress(input: { user_request_id: "3JMY..." }) {
approve_by { role level review { status note } reviewing_users { email first_name last_name } }
}
}
A request that never reached approvers has no booking request, so this returns not_found. That
covers any status before CONFIRMED, and requests that resolved without needing approval.
The progress field on UserRequest that briefly existed on staging is removed; use this query
instead.
Errors
| Error | Meaning |
|---|---|
id_or_user_request_id_required | Neither input field was sent. |
not_found | Unknown id, or the request has no booking request yet. |
corporate_unauthorized | A non-admin who belongs to no company. |
It can also return Middleware Errors.