@milobedini/shared-types 1.0.79 → 1.0.80

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.
Files changed (2) hide show
  1. package/dist/types.d.ts +36 -0
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -543,3 +543,39 @@ export type BasicMutationResponse = {
543
543
  message?: string;
544
544
  data?: any;
545
545
  };
546
+ export type DashboardScorePreview = {
547
+ moduleTitle: string;
548
+ moduleId: string;
549
+ score: number;
550
+ band: string;
551
+ scoreBandLabel: string;
552
+ submittedAt: string;
553
+ };
554
+ export type DashboardAssignmentSummary = {
555
+ total: number;
556
+ completed: number;
557
+ overdue: number;
558
+ };
559
+ export type DashboardClientItem = {
560
+ patient: Pick<User, '_id' | 'username' | 'email' | 'name'>;
561
+ latestScore: DashboardScorePreview | null;
562
+ previousScore: {
563
+ score: number;
564
+ } | null;
565
+ assignments: DashboardAssignmentSummary;
566
+ lastActive: string | null;
567
+ reasons: Array<'severe_score' | 'worsening' | 'overdue'>;
568
+ };
569
+ export type DashboardStats = {
570
+ totalClients: number;
571
+ needsAttention: number;
572
+ submittedThisWeek: number;
573
+ overdueAssignments: number;
574
+ };
575
+ export type TherapistDashboardResponse = {
576
+ weekStart: string;
577
+ stats: DashboardStats;
578
+ needsAttention: DashboardClientItem[];
579
+ completedThisWeek: DashboardClientItem[];
580
+ noActivity: DashboardClientItem[];
581
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@milobedini/shared-types",
3
3
  "type": "commonjs",
4
- "version": "1.0.79",
4
+ "version": "1.0.80",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "sideEffects": false,