@milobedini/shared-types 1.0.80 → 1.0.82

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
@@ -385,11 +385,36 @@ export type MyAssignmentView = {
385
385
  createdAt: string;
386
386
  updatedAt: string;
387
387
  percentComplete?: number;
388
+ attemptCount?: number;
388
389
  };
389
390
  export type MyAssignmentsResponse = {
390
391
  success: boolean;
391
392
  assignments: MyAssignmentView[];
392
393
  };
394
+ export type UpdateAssignmentInput = {
395
+ status?: AssignmentStatus;
396
+ dueAt?: string;
397
+ notes?: string;
398
+ recurrence?: AssignmentRecurrence;
399
+ };
400
+ export type TherapistAssignmentsResponse = {
401
+ success: boolean;
402
+ items: MyAssignmentView[];
403
+ page: number;
404
+ totalPages: number;
405
+ totalItems: number;
406
+ };
407
+ export type AssignmentSortOption = 'urgency' | 'newest' | 'oldest' | 'module';
408
+ export type AssignmentUrgencyFilter = 'overdue' | 'due_soon' | 'on_track' | 'no_due_date';
409
+ export type TherapistAssignmentFilters = {
410
+ patientId?: string;
411
+ moduleId?: string;
412
+ status?: string;
413
+ urgency?: AssignmentUrgencyFilter;
414
+ sortBy?: AssignmentSortOption;
415
+ page?: number;
416
+ limit?: number;
417
+ };
393
418
  export type ModulesQuery = {
394
419
  program?: string;
395
420
  withMeta?: boolean | string;
@@ -579,3 +604,14 @@ export type TherapistDashboardResponse = {
579
604
  completedThisWeek: DashboardClientItem[];
580
605
  noActivity: DashboardClientItem[];
581
606
  };
607
+ export type ScoreTrendItem = {
608
+ moduleTitle: string;
609
+ moduleId: string;
610
+ latestScore: number;
611
+ previousScore: number | null;
612
+ sparkline: number[];
613
+ };
614
+ export type ScoreTrendsResponse = {
615
+ success: boolean;
616
+ trends: ScoreTrendItem[];
617
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@milobedini/shared-types",
3
3
  "type": "commonjs",
4
- "version": "1.0.80",
4
+ "version": "1.0.82",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "sideEffects": false,