@milobedini/shared-types 1.0.47 → 1.0.49
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 +12 -3
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -186,10 +186,15 @@ export type ProgramResponse = {
|
|
|
186
186
|
export type ProgramsResponse = {
|
|
187
187
|
programs: Program[];
|
|
188
188
|
};
|
|
189
|
-
export type
|
|
189
|
+
export type ModulesPlainResponse = {
|
|
190
190
|
success: boolean;
|
|
191
191
|
modules: Module[];
|
|
192
192
|
};
|
|
193
|
+
export type ModulesWithMetaResponse = {
|
|
194
|
+
success: boolean;
|
|
195
|
+
items: AvailableModulesItem[];
|
|
196
|
+
};
|
|
197
|
+
export type ModulesResponse = ModulesPlainResponse | ModulesWithMetaResponse;
|
|
193
198
|
export type ModuleResponse = {
|
|
194
199
|
success: boolean;
|
|
195
200
|
module: Module;
|
|
@@ -314,8 +319,8 @@ export type AvailableSourceTag = 'open' | 'enrolled' | 'assigned';
|
|
|
314
319
|
export type AvailableModulesItem = {
|
|
315
320
|
module: Module;
|
|
316
321
|
meta: {
|
|
317
|
-
canStart: boolean;
|
|
318
|
-
canStartReason: 'ok' | 'not_enrolled' | 'requires_assignment';
|
|
322
|
+
canStart: boolean | undefined;
|
|
323
|
+
canStartReason: 'ok' | 'not_enrolled' | 'requires_assignment' | 'unauthenticated';
|
|
319
324
|
source: AvailableSourceTag[];
|
|
320
325
|
activeAssignmentId?: string;
|
|
321
326
|
assignmentStatus?: 'assigned' | 'in_progress';
|
|
@@ -354,3 +359,7 @@ export type MyAssignmentsResponse = {
|
|
|
354
359
|
success: boolean;
|
|
355
360
|
assignments: MyAssignmentView[];
|
|
356
361
|
};
|
|
362
|
+
export type ModulesQuery = {
|
|
363
|
+
program?: string;
|
|
364
|
+
withMeta?: boolean | string;
|
|
365
|
+
};
|