@milobedini/shared-types 1.0.52 → 1.0.54

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 -4
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -247,11 +247,15 @@ export type MyAttemptsResponse = {
247
247
  export type TherapistUserPreview = Pick<AuthUser, '_id' | 'username' | 'email' | 'name'>;
248
248
  export type TherapistModulePreview = Pick<Module, '_id' | 'title'>;
249
249
  export type TherapistLatestRow = {
250
+ _id: string;
250
251
  user: TherapistUserPreview;
251
252
  module: TherapistModulePreview;
252
- lastAttempt: AttemptListItem & {
253
- band?: ScoreBandSummary;
254
- };
253
+ iteration?: number;
254
+ completedAt?: string;
255
+ totalScore?: number;
256
+ scoreBandLabel?: string;
257
+ weekStart?: string;
258
+ band?: ScoreBandSummary;
255
259
  };
256
260
  export type TherapistLatestResponse = {
257
261
  success: boolean;
@@ -343,7 +347,11 @@ export type ModulePreviewForAssignment = Pick<Module, '_id' | 'title' | 'type' |
343
347
  export type ProgramPreviewForAssignment = Pick<Program, '_id' | 'title'>;
344
348
  export type MyAssignmentView = {
345
349
  _id: string;
346
- user: string;
350
+ user: {
351
+ _id: string;
352
+ name: string;
353
+ username: string;
354
+ };
347
355
  therapist: {
348
356
  _id: string;
349
357
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milobedini/shared-types",
3
- "version": "1.0.52",
3
+ "version": "1.0.54",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [