hvp-shared 14.2.0 → 14.4.0
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.
|
@@ -79,12 +79,15 @@ export interface GetChecklistViewQuery {
|
|
|
79
79
|
*/
|
|
80
80
|
export interface RecordChecklistStatusItem {
|
|
81
81
|
activityId: string;
|
|
82
|
-
|
|
82
|
+
/** Required unless `clear` is true. */
|
|
83
|
+
status?: ChecklistCompletionStatus;
|
|
83
84
|
/** who did it; defaults to [current user]. Multiple for shared tasks. */
|
|
84
85
|
performedByIds?: string[];
|
|
85
86
|
/** optional reason when status is "skipped" / "not_done" */
|
|
86
87
|
skipReason?: string;
|
|
87
88
|
notes?: string;
|
|
89
|
+
/** When true, REMOVE the day's cell for this activity (un-mark / undo). */
|
|
90
|
+
clear?: boolean;
|
|
88
91
|
}
|
|
89
92
|
/**
|
|
90
93
|
* Batch upsert the day's status for one branch (idempotent per activity).
|
|
@@ -23,6 +23,8 @@ export interface ChecklistTodayStatus {
|
|
|
23
23
|
notes: string;
|
|
24
24
|
/** when the latest action was recorded today */
|
|
25
25
|
lastActionAt: string | null;
|
|
26
|
+
/** who last registered/updated this cell (the reporter, not the performer) */
|
|
27
|
+
recordedById: string | null;
|
|
26
28
|
}
|
|
27
29
|
/**
|
|
28
30
|
* One row in the day view: a master activity plus its last-done history and
|
|
@@ -62,6 +64,13 @@ export interface ChecklistViewItem {
|
|
|
62
64
|
} | null;
|
|
63
65
|
/** A full cadence was missed (Philosophy B). False when no cadence or never done. */
|
|
64
66
|
isOverdue: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Whether the activity is "due" today (Pendiente or Vencida) vs "Al día" (done
|
|
69
|
+
* within its cadence, not due yet). When false, the UI should NOT allow
|
|
70
|
+
* "No hacía falta" / "No se pudo" — those only make sense when it actually
|
|
71
|
+
* applies. "Hecho" is always allowed (doing it early resets the cycle).
|
|
72
|
+
*/
|
|
73
|
+
isDue: boolean;
|
|
65
74
|
/** today's matrix cell for this activity at this branch, if acted on */
|
|
66
75
|
today: ChecklistTodayStatus | null;
|
|
67
76
|
}
|