@milobedini/shared-types 1.0.47 → 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.
- package/dist/types.d.ts +7 -3
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -188,7 +188,7 @@ export type ProgramsResponse = {
|
|
|
188
188
|
};
|
|
189
189
|
export type ModulesResponse = {
|
|
190
190
|
success: boolean;
|
|
191
|
-
modules: Module[];
|
|
191
|
+
modules: Module[] | AvailableModulesItem[];
|
|
192
192
|
};
|
|
193
193
|
export type ModuleResponse = {
|
|
194
194
|
success: boolean;
|
|
@@ -314,8 +314,8 @@ export type AvailableSourceTag = 'open' | 'enrolled' | 'assigned';
|
|
|
314
314
|
export type AvailableModulesItem = {
|
|
315
315
|
module: Module;
|
|
316
316
|
meta: {
|
|
317
|
-
canStart: boolean;
|
|
318
|
-
canStartReason: 'ok' | 'not_enrolled' | 'requires_assignment';
|
|
317
|
+
canStart: boolean | undefined;
|
|
318
|
+
canStartReason: 'ok' | 'not_enrolled' | 'requires_assignment' | 'unauthenticated';
|
|
319
319
|
source: AvailableSourceTag[];
|
|
320
320
|
activeAssignmentId?: string;
|
|
321
321
|
assignmentStatus?: 'assigned' | 'in_progress';
|
|
@@ -354,3 +354,7 @@ export type MyAssignmentsResponse = {
|
|
|
354
354
|
success: boolean;
|
|
355
355
|
assignments: MyAssignmentView[];
|
|
356
356
|
};
|
|
357
|
+
export type ModulesQuery = {
|
|
358
|
+
program?: string;
|
|
359
|
+
withMeta?: boolean | string;
|
|
360
|
+
};
|