@plus45/types 1.1.9 → 1.1.11

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/README.md CHANGED
@@ -16,8 +16,8 @@ Make sure to push changes to the plus45-types directory to main when updating.
16
16
 
17
17
  # Updating Packages
18
18
 
19
- If a new update is published for the @plus45/types package, you must manually update and install the new packages. You can do so by entering this in the `frontend` or `backend` directories:
19
+ If a new update is published for the @plus45/types package, you must manually update and install the new packages. You can do so by entering this in the `root` directory (you may also filter this to the frontend or backend):
20
20
 
21
21
  ```bash
22
- pnpm add @plus45/types@latest
22
+ pnpm update-types
23
23
  ```
package/index.ts CHANGED
@@ -9,6 +9,7 @@ import {
9
9
  WeightUnits
10
10
  } from "./types/exercise/exercise_units";
11
11
  import Workout from "./types/workout/workout";
12
+ import Schedule from "./type/schedule/schedule";
12
13
 
13
14
  export {
14
15
  // User Type Structures
@@ -21,6 +22,9 @@ export {
21
22
  // Workout Type Structures
22
23
  type Workout,
23
24
 
25
+ // Schedule Type Structures
26
+ type Schedule,
27
+
24
28
  // Enums
25
29
  ExerciseType,
26
30
  ExerciseUnit,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plus45/types",
3
- "version": "1.1.9",
3
+ "version": "1.1.11",
4
4
  "main": "index.ts",
5
5
  "types": "index.ts"
6
6
  }
@@ -0,0 +1,10 @@
1
+ export type Schedule = {
2
+ id: string;
3
+ user_id: string;
4
+ workout_id: string;
5
+ days_of_week: number[];
6
+ start_time: string | null;
7
+ recurrence: string;
8
+ created_at: string;
9
+ updated_at: string;
10
+ };
@@ -2,6 +2,7 @@ import { Exercise } from "../exercise/exercise";
2
2
 
3
3
  type Workout = {
4
4
  id: string;
5
+ name: string;
5
6
  created_by: string;
6
7
  exercises: Exercise[];
7
8
  created_at: Date;