sinfactura-types 1.10.282 → 1.10.283

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -52,11 +52,24 @@ declare global {
52
52
  * Soft anomaly markers surfaced for supervisor review. Never hard gates —
53
53
  * none of these may block a punch or withhold a shift.
54
54
  *
55
- * ⚠️ **Membership here is not evidence the api sets it.** Three of the four
55
+ * ⚠️ **Membership here is not evidence the api sets it.** Four of the five
56
56
  * are written; one is published ahead of any emitter:
57
57
  *
58
58
  * - `OVERTIME` — LIVE, from `attendance/_postClockOut.ts`.
59
59
  * - `MISSED_CLOCK_OUT` — LIVE, from `attendanceSweep/index.ts`.
60
+ * - `NO_CLOCK_IN` — LIVE, DERIVED by `projectShiftFromClockEvents`
61
+ * (`services/attendance.ts`), so the live and correction paths share one
62
+ * implementation. It marks a day whose effective punches hold no
63
+ * `CLOCK_IN` at all — only a break pair, or a clock-out that closes
64
+ * nothing — which yields no hours and would otherwise surface nowhere: the
65
+ * missed-clock-out sweep reads the `OpenShift` sentinel, and such a day has
66
+ * none because no clock-in ever claimed one. The day stays `OPEN`, and the
67
+ * flag is what puts it in `GET /attendance/flagged`. ⚠️ It CLEARS the
68
+ * moment a clock-in is supplied — by re-derivation on the correction path,
69
+ * and by subtraction at clock-in, which is the one merging writer that
70
+ * takes a flag away (the punch it is writing is the flag's own refutation).
71
+ * Read its absence as "the day has a clock-in", never as "the day is
72
+ * complete".
60
73
  * - `LATE` — LIVE, from `attendance/_postClockIn.ts` via
61
74
  * `resolveClockInFlagFields`, which resolves the employee's expected start
62
75
  * from the api-local `SCHED#`/`SCHEDEX#` schedule config and compares
@@ -76,7 +89,7 @@ declare global {
76
89
  * believe the anomaly surface is covered. It has already cost one
77
90
  * cross-repo investigation.
78
91
  */
79
- type AttendanceShiftFlag = 'LATE' | 'MISSED_CLOCK_OUT' | 'OUTSIDE_GEOFENCE' | 'OVERTIME';
92
+ type AttendanceShiftFlag = 'LATE' | 'MISSED_CLOCK_OUT' | 'NO_CLOCK_IN' | 'OUTSIDE_GEOFENCE' | 'OVERTIME';
80
93
  /**
81
94
  * The derived daily roll-up — one per employee per day. PK `STORE#{storeId}`,
82
95
  * SK `SHIFT#{date}#{userId}`. The composite id mirrors `CashShift`'s
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinfactura-types",
3
- "version": "1.10.282",
3
+ "version": "1.10.283",
4
4
  "description": "Shared wire and entity contracts for the SINFACTURA platform.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",