@milobedini/shared-types 1.0.24 → 1.0.25

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/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[];
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.25",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [