FoyerDevelopers

Generated · Live registry

handover tools

5 tools in this domain, generated from the running registry.

All tool domains

handover.briefing

read-only

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

FieldTypeRequiredNotes
arrivalsintegeryes
departuresintegeryes
tasksOpenintegeryes
tasksUrgentintegeryes
cleaningPendingintegeryes
roomsMaintenanceintegeryes
lostFoundOpenintegeryes
messagesUnansweredintegeryes
tillBalancenumberyes

handover.getToday

read-only

Get today's shift-handover note.

Input parameters

Returns object.

Output fields

The whole object may be null.

FieldTypeRequiredNotes
idstringyes
tenantIdstringyes
shiftDatestringyes
authorIdstring · nullableyes
bodystringyes
openItemsarray of stringyes
createdAtstringyes
updatedAtstringyes

handover.getYesterday

read-only

Get yesterday's note (read-only context for incoming shift)

Input parameters

Returns object.

Output fields

The whole object may be null.

FieldTypeRequiredNotes
idstringyes
tenantIdstringyes
shiftDatestringyes
authorIdstring · nullableyes
bodystringyes
openItemsarray of stringyes
createdAtstringyes
updatedAtstringyes

handover.listRecent

read-only

List last N shifts. Read-only query.

Input parameters

FieldTypeRequiredNotes
limitintegernoDefault: 7

Output fields

Returns array of object. Fields of each element:

FieldTypeRequiredNotes
idstringyes
tenantIdstringyes
shiftDatestringyes
authorIdstring · nullableyes
bodystringyes
openItemsarray of stringyes
createdAtstringyes
updatedAtstringyes

handover.save

writes

Save the shift-handover note for the day.

Input parameters

FieldTypeRequiredNotes
bodystringyes
openItemsarray of stringnoDefault: []

Output fields

FieldTypeRequiredNotes
okliteralyesOne of: true