@milobedini/shared-types 1.0.55 → 1.0.57

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 +8 -7
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -78,7 +78,7 @@ export type Program = ProgramBase & {
78
78
  export type ProgramWithModules = ProgramBase & {
79
79
  modules: Module[];
80
80
  };
81
- export type ProgramRef = string | Pick<Program, '_id' | 'title' | 'description'> | Program;
81
+ export type ProgramRef = Pick<Program, '_id' | 'title' | 'description'>;
82
82
  export type ModuleType = 'questionnaire' | 'psychoeducation' | 'exercise';
83
83
  export type Module = {
84
84
  _id: string;
@@ -399,12 +399,13 @@ export type AttemptDetail = {
399
399
  totalQuestions: number;
400
400
  percentComplete: number;
401
401
  };
402
+ export type AttemptDetailResponseItem = ModuleAttempt & {
403
+ band?: ScoreBandSummary;
404
+ detail: AttemptDetail;
405
+ patient?: Pick<AuthUser, '_id' | 'name' | 'username' | 'email'>;
406
+ module?: Pick<Module, '_id' | 'title' | 'type'>;
407
+ };
402
408
  export type AttemptDetailResponse = {
403
409
  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
- };
410
+ attempt: AttemptDetailResponseItem;
410
411
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milobedini/shared-types",
3
- "version": "1.0.55",
3
+ "version": "1.0.57",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [