hvp-shared 14.3.0 → 14.5.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.
@@ -80,6 +80,26 @@ export interface ChecklistCollaboratorStat {
80
80
  /** sum of estimatedMinutes of the DONE activities credited to the person */
81
81
  doneMinutes: number;
82
82
  }
83
+ /**
84
+ * Per-recorder rollup over the period: how many cells each person REGISTERED
85
+ * (captured / last updated), regardless of who performed the activity. Surfaces
86
+ * who actually fills the checklist vs who never records anything. A cell's
87
+ * recorder is its last updater (or creator). Sorted by recordedCount desc.
88
+ */
89
+ export interface ChecklistRecorderStat {
90
+ collaboratorId: string;
91
+ name: string;
92
+ /** total cells this person registered in range */
93
+ recordedCount: number;
94
+ /** of those, cells whose status is done */
95
+ doneCount: number;
96
+ /** of those, cells marked "No hacía falta" */
97
+ skippedCount: number;
98
+ /** of those, cells marked "No se pudo" */
99
+ notDoneCount: number;
100
+ /** most recent registration in range (ISO 8601), or null */
101
+ lastRecordedAt: string | null;
102
+ }
83
103
  /**
84
104
  * Per-branch checklist statistics over a period.
85
105
  */
@@ -113,6 +133,8 @@ export interface ChecklistStatsResponse {
113
133
  byBranch: ChecklistBranchStats[];
114
134
  /** participation per collaborator over the period (sorted by doneCount desc) */
115
135
  byCollaborator: ChecklistCollaboratorStat[];
136
+ /** who REGISTERED cells over the period (sorted by recordedCount desc) */
137
+ byRecorder: ChecklistRecorderStat[];
116
138
  /** done cells in range */
117
139
  totalDone: number;
118
140
  /** all acted cells in range (done + skipped + not_done) */
@@ -64,6 +64,13 @@ export interface ChecklistViewItem {
64
64
  } | null;
65
65
  /** A full cadence was missed (Philosophy B). False when no cadence or never done. */
66
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;
67
74
  /** today's matrix cell for this activity at this branch, if acted on */
68
75
  today: ChecklistTodayStatus | null;
69
76
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hvp-shared",
3
- "version": "14.3.0",
3
+ "version": "14.5.0",
4
4
  "description": "Shared types and utilities for HVP backend and frontend",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",