@milobedini/shared-types 1.0.61 → 1.0.62
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 +20 -6
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -266,12 +266,6 @@ export type TherapistLatestResponse = {
|
|
|
266
266
|
success: boolean;
|
|
267
267
|
rows: TherapistLatestRow[];
|
|
268
268
|
};
|
|
269
|
-
export type PatientModuleTimelineResponse = {
|
|
270
|
-
success: boolean;
|
|
271
|
-
attempts: (AttemptListItem & {
|
|
272
|
-
band?: ScoreBandSummary;
|
|
273
|
-
})[];
|
|
274
|
-
};
|
|
275
269
|
export type CreateAssignmentInput = {
|
|
276
270
|
userId: string;
|
|
277
271
|
moduleId: string;
|
|
@@ -457,3 +451,23 @@ export type GetUsersResponse = {
|
|
|
457
451
|
items: UsersListItem[];
|
|
458
452
|
facets: UsersFacets;
|
|
459
453
|
};
|
|
454
|
+
export type PatientModuleTimelineQuery = {
|
|
455
|
+
moduleId?: string;
|
|
456
|
+
limit?: number;
|
|
457
|
+
cursor?: Cursor;
|
|
458
|
+
/**
|
|
459
|
+
* Status filter:
|
|
460
|
+
* - 'submitted' (default) = completed timeline (sorted by completedAt)
|
|
461
|
+
* - 'active' = alias for in-progress (maps to ['started'])
|
|
462
|
+
* - 'started' | 'abandoned' | csv (e.g. "started,abandoned")
|
|
463
|
+
* - 'all' = no status filter (sorted by lastInteractionAt)
|
|
464
|
+
*/
|
|
465
|
+
status?: 'submitted' | 'active' | AttemptStatus | `${AttemptStatus},${string}` | 'all' | string;
|
|
466
|
+
};
|
|
467
|
+
export type PatientModuleTimelineResponse = {
|
|
468
|
+
success: boolean;
|
|
469
|
+
attempts: (AttemptListItem & {
|
|
470
|
+
band?: ScoreBandSummary;
|
|
471
|
+
})[];
|
|
472
|
+
nextCursor: string | null;
|
|
473
|
+
};
|