@milobedini/shared-types 1.0.48 → 1.0.50
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 -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
|
-
modules: Module[]
|
|
191
|
+
modules: Module[];
|
|
192
|
+
};
|
|
193
|
+
export type ModulesWithMetaResponse = {
|
|
194
|
+
success: boolean;
|
|
195
|
+
modules: AvailableModulesItem[];
|
|
192
196
|
};
|
|
197
|
+
export type ModulesResponse = ModulesPlainResponse | ModulesWithMetaResponse;
|
|
193
198
|
export type ModuleResponse = {
|
|
194
199
|
success: boolean;
|
|
195
200
|
module: Module;
|
|
@@ -324,7 +329,7 @@ export type AvailableModulesItem = {
|
|
|
324
329
|
};
|
|
325
330
|
export type AvailableModulesResponse = {
|
|
326
331
|
success: boolean;
|
|
327
|
-
|
|
332
|
+
modules: AvailableModulesItem[];
|
|
328
333
|
};
|
|
329
334
|
export type AssignmentLatestAttemptPreview = {
|
|
330
335
|
_id: string;
|