@milobedini/shared-types 1.0.64 → 1.0.65
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.
- package/dist/types.d.ts +6 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -164,7 +164,9 @@ export type ModuleAttempt = {
|
|
|
164
164
|
createdAt: string;
|
|
165
165
|
updatedAt: string;
|
|
166
166
|
};
|
|
167
|
-
export type AttemptListItem = Pick<ModuleAttempt, '_id' | 'module' | 'program' | 'moduleType' | 'iteration' | 'status' | 'totalScore' | 'scoreBandLabel' | 'band' | 'weekStart' | 'completedAt' | 'startedAt' | 'lastInteractionAt' | 'dueAt' | 'userNote'
|
|
167
|
+
export type AttemptListItem = Pick<ModuleAttempt, '_id' | 'module' | 'program' | 'moduleType' | 'iteration' | 'status' | 'totalScore' | 'scoreBandLabel' | 'band' | 'weekStart' | 'completedAt' | 'startedAt' | 'lastInteractionAt' | 'dueAt' | 'userNote'> & {
|
|
168
|
+
percentComplete?: number;
|
|
169
|
+
};
|
|
168
170
|
export type AssignmentStatus = 'assigned' | 'in_progress' | 'completed' | 'cancelled';
|
|
169
171
|
export type AssignmentRecurrence = {
|
|
170
172
|
freq: 'weekly' | 'monthly' | 'none';
|
|
@@ -263,6 +265,7 @@ export type TherapistLatestRow = {
|
|
|
263
265
|
scoreBandLabel?: string;
|
|
264
266
|
weekStart?: string;
|
|
265
267
|
band?: ScoreBandSummary;
|
|
268
|
+
percentComplete?: number;
|
|
266
269
|
};
|
|
267
270
|
export type TherapistLatestResponse = {
|
|
268
271
|
success: boolean;
|
|
@@ -333,6 +336,7 @@ export type AssignmentLatestAttemptPreview = {
|
|
|
333
336
|
completedAt?: string;
|
|
334
337
|
totalScore?: number;
|
|
335
338
|
scoreBandLabel?: string;
|
|
339
|
+
percentComplete?: number;
|
|
336
340
|
};
|
|
337
341
|
export type ModulePreviewForAssignment = Pick<Module, '_id' | 'title' | 'type' | 'accessPolicy'> & {
|
|
338
342
|
program?: never;
|
|
@@ -358,6 +362,7 @@ export type MyAssignmentView = {
|
|
|
358
362
|
latestAttempt?: AssignmentLatestAttemptPreview;
|
|
359
363
|
createdAt: string;
|
|
360
364
|
updatedAt: string;
|
|
365
|
+
percentComplete?: number;
|
|
361
366
|
};
|
|
362
367
|
export type MyAssignmentsResponse = {
|
|
363
368
|
success: boolean;
|