@milobedini/shared-types 1.0.78 → 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 +57 -0
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -271,6 +271,27 @@ export type TherapistLatestRow = {
271
271
  export type TherapistLatestResponse = {
272
272
  success: boolean;
273
273
  rows: TherapistLatestRow[];
274
+ nextCursor: string | null;
275
+ totalCount: number;
276
+ };
277
+ export type SeverityOption = 'severe' | 'moderate' | 'mild';
278
+ export type SortOption = 'newest' | 'oldest' | 'severity';
279
+ export type TherapistLatestFilters = {
280
+ patientId?: string;
281
+ moduleId?: string;
282
+ severity?: SeverityOption;
283
+ status?: string;
284
+ sort?: SortOption;
285
+ limit?: number;
286
+ };
287
+ export type TherapistAttemptModule = {
288
+ _id: string;
289
+ title: string;
290
+ moduleType: ModuleType;
291
+ };
292
+ export type TherapistAttemptModulesResponse = {
293
+ success: boolean;
294
+ modules: TherapistAttemptModule[];
274
295
  };
275
296
  export type CreateAssignmentInput = {
276
297
  userId: string;
@@ -522,3 +543,39 @@ export type BasicMutationResponse = {
522
543
  message?: string;
523
544
  data?: any;
524
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.78",
4
+ "version": "1.0.80",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "sideEffects": false,