@milobedini/shared-types 1.0.64 → 1.0.66

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 +10 -1
  2. 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;
@@ -516,3 +521,7 @@ export type BasicMutationResponse = {
516
521
  message?: string;
517
522
  data?: any;
518
523
  };
524
+ export declare const SLOT_START_HOUR: 6;
525
+ export declare const SLOT_END_HOUR: 24;
526
+ export declare const SLOT_STEP_HOURS: 2;
527
+ export declare const LONDON_TZ: "Europe/London";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milobedini/shared-types",
3
- "version": "1.0.64",
3
+ "version": "1.0.66",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [