API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola
Entidad · daily_closings

Daily Closing Schema

ID del esquema
daily_closing
Colección
daily_closings
Permisos
  • Leerdaily_overview_view
  • Creardaily_closing_create
  • Modificardaily_closing_create
  • Eliminardaily_closing_admin

Campos

Daily Closing Schema

daily_closings4 permisos

Persistent confirmation that a user has reviewed and closed their workday. Captures guard results, override reasons, and is automatically superseded when post-close changes happen.

userIduuidobligatorio

User who owns this daily closing

datedateobligatorio

Date of the daily closing (ISO YYYY-MM-DD, tenant-local time)

orgUnitIduuidopcional

Org unit (team) this closing belongs to at closing time. Nullable for tenants without formal org structure.

admite null
policyIduuidobligatorio

Effective policy that governed this closing

solo lectura
closedAtdatetimeobligatorio

Timestamp when the day was closed

solo lectura
guardResultsobject[]opcional

Snapshot of guard evaluations at closing time

Valor por defecto: []solo lectura
idstringobligatorio
kindstringobligatorio
all_calendar_events_bookedall_phone_calls_bookedall_remote_sessions_bookedattendance_vs_booked_matchno_open_tickets_assigned_todayno_overdue_tasks_due_todayno_unread_high_priority_inboxattendance_shift_clocked_out
statusstringobligatorio
passwarnfail
severitystringobligatorio
blockwarninfo
messagestringobligatorio
detailsobject[]opcional
typestringopcional
idstringopcional
titlestringopcional
overridesobject[]opcional

Guards that the user closed with a reason override

Valor por defecto: []
guardIdstringobligatorio
reasonstringobligatorio
1–2000 caracteres
overriddenByuuidobligatorio
notesstringopcional

Snapshot of the daily_note content as of closing time; subsequent edits on the daily_note do not change this field

máx. 8000 caracteresadmite null
recapIduuidopcional

FK to daily_overview_recaps if a self-scope recap was generated for this date

solo lecturaadmite null
supersededAtdatetimeopcional

Set when a post-close mutation (time_record/phone_call/remote_session/calendar_event) invalidates this closing; user must create a fresh closing

solo lecturaadmite null
resetAtdatetimeopcional

Set when the OWNER deliberately took this closing back (ADR 0533). Distinct from supersededAt, which an automatic supersede also sets: only a deliberate reset earns the escalation grace period (the day is not counted as missed until the end of the following day). Absent on closings from before ADR 0533 — treated as "no grace", i.e. the previous behaviour.

solo lecturaadmite null
supersededBystringopcional
time_record_changephone_call_changeremote_session_changecalendar_event_changemanual
solo lecturaadmite null
supersededRefIdstringopcional

ID of the entity whose change triggered the supersede

solo lecturaadmite null

Endpoints estándar

Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:

  • GET /api/v1/daily_closings — Lista, paginada y filtrable
  • GET /api/v1/daily_closings/<id> — Una entidad
  • POST /api/v1/daily_closings — Crear
  • PATCH /api/v1/daily_closings/<id> — Actualización parcial
  • DELETE /api/v1/daily_closings/<id> — Eliminación lógica
  • GET /api/v1/daily_closings/<id>/timeline — Auditoría y actividades

Búsqueda