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

Daily Closing Policy

ID del esquema
daily_closing_policy
Colección
daily_closing_policies
Permisos
  • Leerdaily_closing_admin
  • Creardaily_closing_admin
  • Modificardaily_closing_admin
  • Eliminardaily_closing_admin

Campos

Daily Closing Policy

daily_closing_policies4 permisos

Configurable closing policy at tenant, org-unit, role, or user scope.Defines reminder trigger, guards, notes requirement, and overdue escalation behaviour.

scopeobjectobligatorio
typestringobligatorio
tenantorg_unitroleuser
targetIdstringopcional

orgUnitId or roleId; null for tenant-default and user scope

admite null
userIdsstring[]opcional

Tenant-scoped users._id the policy applies to; only for scope type "user".

máx. 500 elementoselementos únicos
enabledbooleanobligatorio
Valor por defecto: false
effectiveFromstringopcional

YYYY-MM-DD — missed closings are only counted from this day on. Overrides the policy creation date. Null = fall back to creation date.

Patrónadmite null
reminderobjectobligatorio
triggersstring[]obligatorio

Ordered priority list — first match wins

mín. 1 elementos
fixedTimestringopcional

HH:MM tenant-local time, required when triggers contains fixed_time

Patrónadmite null
minHoursForClockOutTriggerintegeropcional

Minutes — minimum logged work-shift time before clock_out_min_hours fires

0 – 1440Valor por defecto: 360
inactivityMinutesintegeropcional
1 – 1440admite null
channelsstring[]obligatorio
mín. 1 elementos
guardsobject[]obligatorio
Valor por defecto: []
idstringobligatorio
mín. 1 caracteres
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
severitystringobligatorio
blockwarninfo
configobjectopcional
toleranceMinutesintegeropcional
≥ 0
i18nKeystringobligatorio
mín. 1 caracteres
hardBlockbooleanopcional

DEPRECATED (ADR 0478) — accepted for backwards compatibility, no longer read. Every failing block/warn guard is overridable with a written reason.

Valor por defecto: true
notesobjectopcional
requiredbooleanopcional
Valor por defecto: false
promptstringopcional
máx. 500 caracteresadmite null
overdueEscalationobjectopcional
teamLeadThresholdintegeropcional
≥ 1Valor por defecto: 3
teamLeadCooldownDaysintegeropcional
≥ 1Valor por defecto: 7
missingClosingSignalsobjectopcional

Signals at the top-bar date while daily closings are missing (badge, red date, pulse, popup), each from its own number of open days. Missing = all off.

todayCountsFromstringopcional

When the current day counts as open: never (past days only), clock_out (worked and no shift open any more), fixed_time (from todayFixedTime, when worked today).

neverclock_outfixed_time
todayFixedTimestringopcional

HH:MM tenant-local time, required when todayCountsFrom is fixed_time

Patrónadmite null
badgeobjectopcional
enabledbooleanobligatorio
minOpenDaysintegerobligatorio

The signal shows from this many open days on (today included when it counts).

1 – 14
redDateobjectopcional
enabledbooleanobligatorio
minOpenDaysintegerobligatorio

The signal shows from this many open days on (today included when it counts).

1 – 14
pulseobjectopcional
enabledbooleanobligatorio
minOpenDaysintegerobligatorio

The signal shows from this many open days on (today included when it counts).

1 – 14
popupobjectopcional
enabledbooleanobligatorio
minOpenDaysintegerobligatorio

The signal shows from this many open days on (today included when it counts).

1 – 14
repeatMinutesintegeropcional

Show the popup again this many minutes after "later"; null = once per day and device.

5 – 480admite null
missingClosingLocksobjectopcional

Escalating locks while daily closings are missing (ADR 1179): insistent popup, no new time capture, read-only, full lock — each from its own number of open past days. Missing = all off; the emergency unlock stays available unless explicitly disabled.

insistentPopupobjectopcional
enabledbooleanobligatorio
minOpenDaysintegerobligatorio

The level applies from this many open PAST days on; today never counts.

1 – 14
snoozeMinutesintegeropcional

"Later" (with a reason) postpones the popup this many minutes; null = the popup repeat interval of missingClosingSignals, else 30.

5 – 480admite null
noNewTimeobjectopcional
enabledbooleanobligatorio
minOpenDaysintegerobligatorio

The level applies from this many open PAST days on; today never counts.

1 – 14
readOnlyobjectopcional
enabledbooleanobligatorio
minOpenDaysintegerobligatorio

The level applies from this many open PAST days on; today never counts.

1 – 14
fullLockobjectopcional
enabledbooleanobligatorio
minOpenDaysintegerobligatorio

The level applies from this many open PAST days on; today never counts.

1 – 14
emergencyUnlockobjectopcional
enabledbooleanobligatorio
minutesintegeropcional

Duration of one self-service emergency unlock (default 60).

15 – 480
maxPer7Daysintegeropcional

Emergency unlocks allowed per rolling 7 days (default 3).

1 – 20

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_closing_policies — Lista, paginada y filtrable
  • GET /api/v1/daily_closing_policies/<id> — Una entidad
  • POST /api/v1/daily_closing_policies — Crear
  • PATCH /api/v1/daily_closing_policies/<id> — Actualización parcial
  • DELETE /api/v1/daily_closing_policies/<id> — Eliminación lógica
  • GET /api/v1/daily_closing_policies/<id>/timeline — Auditoría y actividades

Búsqueda