API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · daily_closings

Daily Closing Schema

ID du schéma
daily_closing
Collection
daily_closings
Autorisations
  • Liredaily_overview_view
  • Créerdaily_closing_create
  • Modifierdaily_closing_create
  • Supprimerdaily_closing_admin

Champs

Daily Closing Schema

daily_closings4 autorisations

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.

userIduuidobligatoire

User who owns this daily closing

datedateobligatoire

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

orgUnitIduuidfacultatif

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

nullable
policyIduuidobligatoire

Effective policy that governed this closing

lecture seule
closedAtdatetimeobligatoire

Timestamp when the day was closed

lecture seule
guardResultsobject[]facultatif

Snapshot of guard evaluations at closing time

Par défaut : []lecture seule
idstringobligatoire
kindstringobligatoire
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
statusstringobligatoire
passwarnfail
severitystringobligatoire
blockwarninfo
messagestringobligatoire
detailsobject[]facultatif
typestringfacultatif
idstringfacultatif
titlestringfacultatif
overridesobject[]facultatif

Guards that the user closed with a reason override

Par défaut : []
guardIdstringobligatoire
reasonstringobligatoire
1–2000 caractères
overriddenByuuidobligatoire
notesstringfacultatif

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

max. 8000 caractèresnullable
recapIduuidfacultatif

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

lecture seulenullable
supersededAtdatetimefacultatif

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

lecture seulenullable
resetAtdatetimefacultatif

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.

lecture seulenullable
supersededBystringfacultatif
time_record_changephone_call_changeremote_session_changecalendar_event_changemanual
lecture seulenullable
supersededRefIdstringfacultatif

ID of the entity whose change triggered the supersede

lecture seulenullable

Endpoints standard

Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :

  • GET /api/v1/daily_closings — Liste, paginée et filtrable
  • GET /api/v1/daily_closings/<id> — Une entité
  • POST /api/v1/daily_closings — Créer
  • PATCH /api/v1/daily_closings/<id> — Mise à jour partielle
  • DELETE /api/v1/daily_closings/<id> — Suppression logique
  • GET /api/v1/daily_closings/<id>/timeline — Audit et activités

Recherche