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

Daily Closing Policy

ID du schéma
daily_closing_policy
Collection
daily_closing_policies
Autorisations
  • Liredaily_closing_admin
  • Créerdaily_closing_admin
  • Modifierdaily_closing_admin
  • Supprimerdaily_closing_admin

Champs

Daily Closing Policy

daily_closing_policies4 autorisations

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

scopeobjectobligatoire
typestringobligatoire
tenantorg_unitroleuser
targetIdstringfacultatif

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

nullable
userIdsstring[]facultatif

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

max. 500 élémentséléments uniques
enabledbooleanobligatoire
Par défaut : false
effectiveFromstringfacultatif

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

Motifnullable
reminderobjectobligatoire
triggersstring[]obligatoire

Ordered priority list — first match wins

min. 1 éléments
fixedTimestringfacultatif

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

Motifnullable
minHoursForClockOutTriggerintegerfacultatif

Minutes — minimum logged work-shift time before clock_out_min_hours fires

0 – 1440Par défaut : 360
inactivityMinutesintegerfacultatif
1 – 1440nullable
channelsstring[]obligatoire
min. 1 éléments
guardsobject[]obligatoire
Par défaut : []
idstringobligatoire
min. 1 caractères
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
severitystringobligatoire
blockwarninfo
configobjectfacultatif
toleranceMinutesintegerfacultatif
≥ 0
i18nKeystringobligatoire
min. 1 caractères
hardBlockbooleanfacultatif

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

Par défaut : true
notesobjectfacultatif
requiredbooleanfacultatif
Par défaut : false
promptstringfacultatif
max. 500 caractèresnullable
overdueEscalationobjectfacultatif
teamLeadThresholdintegerfacultatif
≥ 1Par défaut : 3
teamLeadCooldownDaysintegerfacultatif
≥ 1Par défaut : 7
missingClosingSignalsobjectfacultatif

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.

todayCountsFromstringfacultatif

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
todayFixedTimestringfacultatif

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

Motifnullable
badgeobjectfacultatif
enabledbooleanobligatoire
minOpenDaysintegerobligatoire

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

1 – 14
redDateobjectfacultatif
enabledbooleanobligatoire
minOpenDaysintegerobligatoire

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

1 – 14
pulseobjectfacultatif
enabledbooleanobligatoire
minOpenDaysintegerobligatoire

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

1 – 14
popupobjectfacultatif
enabledbooleanobligatoire
minOpenDaysintegerobligatoire

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

1 – 14
repeatMinutesintegerfacultatif

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

5 – 480nullable
missingClosingLocksobjectfacultatif

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.

insistentPopupobjectfacultatif
enabledbooleanobligatoire
minOpenDaysintegerobligatoire

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

1 – 14
snoozeMinutesintegerfacultatif

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

5 – 480nullable
noNewTimeobjectfacultatif
enabledbooleanobligatoire
minOpenDaysintegerobligatoire

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

1 – 14
readOnlyobjectfacultatif
enabledbooleanobligatoire
minOpenDaysintegerobligatoire

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

1 – 14
fullLockobjectfacultatif
enabledbooleanobligatoire
minOpenDaysintegerobligatoire

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

1 – 14
emergencyUnlockobjectfacultatif
enabledbooleanobligatoire
minutesintegerfacultatif

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

15 – 480
maxPer7Daysintegerfacultatif

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

1 – 20

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_closing_policies — Liste, paginée et filtrable
  • GET /api/v1/daily_closing_policies/<id> — Une entité
  • POST /api/v1/daily_closing_policies — Créer
  • PATCH /api/v1/daily_closing_policies/<id> — Mise à jour partielle
  • DELETE /api/v1/daily_closing_policies/<id> — Suppression logique
  • GET /api/v1/daily_closing_policies/<id>/timeline — Audit et activités

Recherche