@milobedini/shared-types 1.0.73 → 1.0.79

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 +22 -0
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -259,6 +259,7 @@ export type TherapistLatestRow = {
259
259
  _id: string;
260
260
  user: TherapistUserPreview;
261
261
  module: TherapistModulePreview;
262
+ moduleType?: 'questionnaire' | 'psychoeducation' | 'exercise' | 'activity_diary';
262
263
  iteration?: number;
263
264
  completedAt?: string;
264
265
  totalScore?: number;
@@ -270,6 +271,27 @@ export type TherapistLatestRow = {
270
271
  export type TherapistLatestResponse = {
271
272
  success: boolean;
272
273
  rows: TherapistLatestRow[];
274
+ nextCursor: string | null;
275
+ totalCount: number;
276
+ };
277
+ export type SeverityOption = 'severe' | 'moderate' | 'mild';
278
+ export type SortOption = 'newest' | 'oldest' | 'severity';
279
+ export type TherapistLatestFilters = {
280
+ patientId?: string;
281
+ moduleId?: string;
282
+ severity?: SeverityOption;
283
+ status?: string;
284
+ sort?: SortOption;
285
+ limit?: number;
286
+ };
287
+ export type TherapistAttemptModule = {
288
+ _id: string;
289
+ title: string;
290
+ moduleType: ModuleType;
291
+ };
292
+ export type TherapistAttemptModulesResponse = {
293
+ success: boolean;
294
+ modules: TherapistAttemptModule[];
273
295
  };
274
296
  export type CreateAssignmentInput = {
275
297
  userId: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@milobedini/shared-types",
3
3
  "type": "commonjs",
4
- "version": "1.0.73",
4
+ "version": "1.0.79",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "sideEffects": false,