sinfactura-types 1.10.281 → 1.10.282
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.
- package/dist/attendance.d.ts +25 -0
- package/package.json +1 -1
package/dist/attendance.d.ts
CHANGED
|
@@ -36,6 +36,10 @@ declare global {
|
|
|
36
36
|
* fail at the database rather than at a read-then-write the second tap can
|
|
37
37
|
* race. Disposable state, not audit: it is DELETED on clock-out rather than
|
|
38
38
|
* corrected — the ledger already holds what happened.
|
|
39
|
+
*
|
|
40
|
+
* Written by clock-in, and by `POST /attendance/correction` when a correction
|
|
41
|
+
* leaves TODAY's Buenos Aires day open and the employee holds none. Never for
|
|
42
|
+
* a past day, and never over an existing one.
|
|
39
43
|
*/
|
|
40
44
|
interface OpenShift {
|
|
41
45
|
storeId: string;
|
|
@@ -107,6 +111,27 @@ declare global {
|
|
|
107
111
|
status: AttendanceShiftStatus;
|
|
108
112
|
clockInAt: number;
|
|
109
113
|
clockOutAt?: number;
|
|
114
|
+
/**
|
|
115
|
+
* ms epoch. The start of the day's still-open period, as the api pairs the
|
|
116
|
+
* day's effective clock-ins and clock-outs. DERIVED and read-only: no
|
|
117
|
+
* request body can set it.
|
|
118
|
+
*
|
|
119
|
+
* Present ONLY while the day's last period has no clock-out. That is a row
|
|
120
|
+
* with `status: 'OPEN'`, or `'FLAGGED'` when the missed-clock-out sweep has
|
|
121
|
+
* flagged a day that is still open. It is removed by every write that closes
|
|
122
|
+
* the day, so it never outlives an open period.
|
|
123
|
+
*
|
|
124
|
+
* Not the same as `clockInAt`, which stays the day's FIRST clock-in: on a
|
|
125
|
+
* day worked 09:00–12:00 and reopened at 13:00, `clockInAt` is 09:00 and
|
|
126
|
+
* this is 13:00. Unlike `OpenShift.clockInAt`, it also exists for a PAST
|
|
127
|
+
* day left open, which never gets a sentinel.
|
|
128
|
+
*
|
|
129
|
+
* ⚠️ Forward-only: an open row written before this field existed does not
|
|
130
|
+
* carry it until something re-derives the day. A `status: 'OPEN'` row
|
|
131
|
+
* without it is either such a row, or a day with no clock-in at all (only
|
|
132
|
+
* a break or an unpaired clock-out recorded).
|
|
133
|
+
*/
|
|
134
|
+
openPeriodStartAt?: number;
|
|
110
135
|
totalMinutes?: number;
|
|
111
136
|
breakMinutes?: number;
|
|
112
137
|
overtimeMinutes?: number;
|