@milobedini/shared-types 1.0.46 → 1.0.48

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 +14 -3
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -58,6 +58,13 @@ export type ProfileResponse = {
58
58
  patients: string[];
59
59
  therapist: User | null;
60
60
  };
61
+ export type VerifyTherapistInput = {
62
+ therapistId: string;
63
+ };
64
+ export type VerifyTherapistResponse = {
65
+ message: string;
66
+ therapist: AuthUser;
67
+ };
61
68
  export type ProgramBase = {
62
69
  _id: string;
63
70
  title: string;
@@ -181,7 +188,7 @@ export type ProgramsResponse = {
181
188
  };
182
189
  export type ModulesResponse = {
183
190
  success: boolean;
184
- modules: Module[];
191
+ modules: Module[] | AvailableModulesItem[];
185
192
  };
186
193
  export type ModuleResponse = {
187
194
  success: boolean;
@@ -307,8 +314,8 @@ export type AvailableSourceTag = 'open' | 'enrolled' | 'assigned';
307
314
  export type AvailableModulesItem = {
308
315
  module: Module;
309
316
  meta: {
310
- canStart: boolean;
311
- canStartReason: 'ok' | 'not_enrolled' | 'requires_assignment';
317
+ canStart: boolean | undefined;
318
+ canStartReason: 'ok' | 'not_enrolled' | 'requires_assignment' | 'unauthenticated';
312
319
  source: AvailableSourceTag[];
313
320
  activeAssignmentId?: string;
314
321
  assignmentStatus?: 'assigned' | 'in_progress';
@@ -347,3 +354,7 @@ export type MyAssignmentsResponse = {
347
354
  success: boolean;
348
355
  assignments: MyAssignmentView[];
349
356
  };
357
+ export type ModulesQuery = {
358
+ program?: string;
359
+ withMeta?: boolean | string;
360
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milobedini/shared-types",
3
- "version": "1.0.46",
3
+ "version": "1.0.48",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [