handover.briefing
Auto-compiled shift briefing — the operational state the incoming shift needs at a glance, shown above the free-text notes. All counts are tenant-scoped via RLS (`tenantDb`); the unanswered count mirrors `messages.listConversations` (latest message per booking is inbound, cancelled bookings excluded) so the two never disagree. Read-only query.
Input parameters
Returns object.
Output fields
| Field | Type | Required | Notes |
|---|---|---|---|
arrivals | integer | yes | |
departures | integer | yes | |
tasksOpen | integer | yes | |
tasksUrgent | integer | yes | |
cleaningPending | integer | yes | |
roomsMaintenance | integer | yes | |
lostFoundOpen | integer | yes | |
messagesUnanswered | integer | yes | |
tillBalance | number | yes |
handover.getToday
Get today's shift-handover note.
Input parameters
Returns object.
Output fields
The whole object may be null.
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
tenantId | string | yes | |
shiftDate | string | yes | |
authorId | string · nullable | yes | |
body | string | yes | |
openItems | array of string | yes | |
createdAt | string | yes | |
updatedAt | string | yes |
handover.getYesterday
Get yesterday's note (read-only context for incoming shift)
Input parameters
Returns object.
Output fields
The whole object may be null.
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
tenantId | string | yes | |
shiftDate | string | yes | |
authorId | string · nullable | yes | |
body | string | yes | |
openItems | array of string | yes | |
createdAt | string | yes | |
updatedAt | string | yes |
handover.listRecent
List last N shifts. Read-only query.
Input parameters
| Field | Type | Required | Notes |
|---|---|---|---|
limit | integer | no | Default: 7 |
Output fields
Returns array of object. Fields of each element:
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
tenantId | string | yes | |
shiftDate | string | yes | |
authorId | string · nullable | yes | |
body | string | yes | |
openItems | array of string | yes | |
createdAt | string | yes | |
updatedAt | string | yes |
handover.save
Save the shift-handover note for the day.
Input parameters
| Field | Type | Required | Notes |
|---|---|---|---|
body | string | yes | |
openItems | array of string | no | Default: [] |
Output fields
| Field | Type | Required | Notes |
|---|---|---|---|
ok | literal | yes | One of: true |