@milobedini/shared-types 1.0.56 → 1.0.58

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 +12 -8
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -141,7 +141,10 @@ export type ModuleAttempt = {
141
141
  user: string;
142
142
  therapist?: string;
143
143
  program: string;
144
- module: string;
144
+ module: {
145
+ id: string;
146
+ title: string;
147
+ };
145
148
  moduleType: ModuleType;
146
149
  status: AttemptStatus;
147
150
  startedAt: string;
@@ -162,7 +165,7 @@ export type ModuleAttempt = {
162
165
  createdAt: string;
163
166
  updatedAt: string;
164
167
  };
165
- export type AttemptListItem = Pick<ModuleAttempt, '_id' | 'module' | 'program' | 'moduleType' | 'totalScore' | 'scoreBandLabel' | 'band' | 'weekStart' | 'completedAt' | 'iteration'>;
168
+ export type AttemptListItem = Pick<ModuleAttempt, '_id' | 'module' | 'program' | 'moduleType' | 'totalScore' | 'scoreBandLabel' | 'band' | 'weekStart' | 'completedAt' | 'iteration' | 'status'>;
166
169
  export type AssignmentStatus = 'assigned' | 'in_progress' | 'completed' | 'cancelled';
167
170
  export type AssignmentRecurrence = {
168
171
  freq: 'weekly' | 'monthly' | 'none';
@@ -399,12 +402,13 @@ export type AttemptDetail = {
399
402
  totalQuestions: number;
400
403
  percentComplete: number;
401
404
  };
405
+ export type AttemptDetailResponseItem = ModuleAttempt & {
406
+ band?: ScoreBandSummary;
407
+ detail: AttemptDetail;
408
+ patient?: Pick<AuthUser, '_id' | 'name' | 'username' | 'email'>;
409
+ module?: Pick<Module, '_id' | 'title' | 'type'>;
410
+ };
402
411
  export type AttemptDetailResponse = {
403
412
  success: boolean;
404
- attempt: ModuleAttempt & {
405
- band?: ScoreBandSummary;
406
- detail: AttemptDetail;
407
- patient?: Pick<AuthUser, '_id' | 'name' | 'username' | 'email'>;
408
- module?: Pick<Module, '_id' | 'title' | 'type'>;
409
- };
413
+ attempt: AttemptDetailResponseItem;
410
414
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milobedini/shared-types",
3
- "version": "1.0.56",
3
+ "version": "1.0.58",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [