hvp-shared 14.0.0 → 14.1.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.
@@ -60,6 +60,20 @@ export interface ChecklistActivityStat {
60
60
  /** distinct days marked "No se pudo" */
61
61
  notDoneDays: number;
62
62
  }
63
+ /**
64
+ * Per-collaborator rollup over the period: how many activity cells each person
65
+ * was credited on, by status (a cell done by N people counts for each of them).
66
+ */
67
+ export interface ChecklistCollaboratorStat {
68
+ collaboratorId: string;
69
+ name: string;
70
+ /** cells with status done the person was credited on */
71
+ doneCount: number;
72
+ /** cells marked "No hacía falta" the person recorded */
73
+ skippedCount: number;
74
+ /** cells marked "No se pudo" the person recorded */
75
+ notDoneCount: number;
76
+ }
63
77
  /**
64
78
  * Per-branch checklist statistics over a period.
65
79
  */
@@ -85,6 +99,8 @@ export interface ChecklistStatsResponse {
85
99
  from: string | null;
86
100
  to: string | null;
87
101
  byBranch: ChecklistBranchStats[];
102
+ /** participation per collaborator over the period (sorted by doneCount desc) */
103
+ byCollaborator: ChecklistCollaboratorStat[];
88
104
  /** done cells in range */
89
105
  totalDone: number;
90
106
  /** all acted cells in range (done + skipped + not_done) */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hvp-shared",
3
- "version": "14.0.0",
3
+ "version": "14.1.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",