@milobedini/shared-types 1.0.24 → 1.0.26

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.
Files changed (2) hide show
  1. package/dist/program.d.ts +14 -3
  2. package/package.json +1 -1
package/dist/program.d.ts CHANGED
@@ -9,14 +9,19 @@ export interface Module {
9
9
  createdAt: string;
10
10
  updatedAt: string;
11
11
  }
12
- export interface Program {
12
+ export interface ProgramBase {
13
13
  _id: string;
14
14
  title: string;
15
15
  description: string;
16
- modules: string[];
17
16
  createdAt: string;
18
17
  updatedAt: string;
19
18
  }
19
+ export interface Program extends ProgramBase {
20
+ modules: string[];
21
+ }
22
+ export interface ProgramWithModules extends ProgramBase {
23
+ modules: Module[];
24
+ }
20
25
  export interface Choice {
21
26
  text: string;
22
27
  score: number;
@@ -52,7 +57,7 @@ export interface AssessmentResponse {
52
57
  updatedAt: string;
53
58
  }
54
59
  export interface ProgramResponse {
55
- program: Program;
60
+ program: ProgramWithModules;
56
61
  }
57
62
  export interface ProgramsResponse {
58
63
  programs: Program[];
@@ -63,6 +68,12 @@ export interface ModulesResponse {
63
68
  export interface ModuleResponse {
64
69
  module: Module;
65
70
  }
71
+ export interface ModuleDetailResponse {
72
+ success: boolean;
73
+ module: Module;
74
+ questions: Question[];
75
+ scoreBands: ScoreBand[];
76
+ }
66
77
  export interface QuestionListResponse {
67
78
  questions: Question[];
68
79
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milobedini/shared-types",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [