@milobedini/shared-types 1.0.82 → 1.0.84
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 +8 -2
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -79,7 +79,7 @@ export type ProgramWithModules = ProgramBase & {
|
|
|
79
79
|
modules: Module[];
|
|
80
80
|
};
|
|
81
81
|
export type ProgramRef = Pick<Program, '_id' | 'title' | 'description'>;
|
|
82
|
-
export type ModuleType = 'questionnaire' | '
|
|
82
|
+
export type ModuleType = 'questionnaire' | 'reading' | 'activity_diary';
|
|
83
83
|
export type Module = {
|
|
84
84
|
_id: string;
|
|
85
85
|
title: string;
|
|
@@ -88,6 +88,7 @@ export type Module = {
|
|
|
88
88
|
type: ModuleType;
|
|
89
89
|
disclaimer?: string;
|
|
90
90
|
imageUrl?: string;
|
|
91
|
+
content?: string;
|
|
91
92
|
createdAt: string;
|
|
92
93
|
updatedAt: string;
|
|
93
94
|
accessPolicy: 'open' | 'assigned';
|
|
@@ -133,6 +134,7 @@ export type ModuleSnapshotQuestion = {
|
|
|
133
134
|
export type ModuleSnapshot = {
|
|
134
135
|
title: string;
|
|
135
136
|
disclaimer?: string;
|
|
137
|
+
content?: string;
|
|
136
138
|
questions?: ModuleSnapshotQuestion[];
|
|
137
139
|
};
|
|
138
140
|
export type ModuleAttempt = {
|
|
@@ -161,6 +163,7 @@ export type ModuleAttempt = {
|
|
|
161
163
|
moduleSnapshot?: ModuleSnapshot;
|
|
162
164
|
userNote?: string;
|
|
163
165
|
therapistNote?: string;
|
|
166
|
+
readerNote?: string;
|
|
164
167
|
createdAt: string;
|
|
165
168
|
updatedAt: string;
|
|
166
169
|
};
|
|
@@ -225,6 +228,7 @@ export type SaveProgressInput = {
|
|
|
225
228
|
answers?: AttemptAnswer[];
|
|
226
229
|
diaryEntries?: DiaryEntryInput[];
|
|
227
230
|
merge?: boolean;
|
|
231
|
+
readerNote?: string;
|
|
228
232
|
userNote?: string;
|
|
229
233
|
};
|
|
230
234
|
export type SaveProgressResponse = {
|
|
@@ -233,6 +237,7 @@ export type SaveProgressResponse = {
|
|
|
233
237
|
};
|
|
234
238
|
export type SubmitAttemptInput = {
|
|
235
239
|
assignmentId?: string;
|
|
240
|
+
readerNote?: string;
|
|
236
241
|
};
|
|
237
242
|
export type SubmitAttemptResponse = {
|
|
238
243
|
success: boolean;
|
|
@@ -259,7 +264,7 @@ export type TherapistLatestRow = {
|
|
|
259
264
|
_id: string;
|
|
260
265
|
user: TherapistUserPreview;
|
|
261
266
|
module: TherapistModulePreview;
|
|
262
|
-
moduleType?:
|
|
267
|
+
moduleType?: ModuleType;
|
|
263
268
|
iteration?: number;
|
|
264
269
|
completedAt?: string;
|
|
265
270
|
totalScore?: number;
|
|
@@ -322,6 +327,7 @@ export type CreateModuleInput = {
|
|
|
322
327
|
program: string;
|
|
323
328
|
disclaimer?: string;
|
|
324
329
|
imageUrl?: string;
|
|
330
|
+
content?: string;
|
|
325
331
|
accessPolicy?: 'open' | 'assigned';
|
|
326
332
|
};
|
|
327
333
|
export type CreateQuestionInput = {
|