@plus45/types 1.1.10 → 1.1.12

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/index.ts CHANGED
@@ -9,6 +9,9 @@ import {
9
9
  WeightUnits
10
10
  } from "./types/exercise/exercise_units";
11
11
  import Workout from "./types/workout/workout";
12
+ import Schedule from "./types/schedule/schedule";
13
+ import ScheduleDays from "./types/schedule/schedule_days";
14
+ import ScheduleRecurrence from "./types/schedule/schedule_recurrence";
12
15
 
13
16
  export {
14
17
  // User Type Structures
@@ -21,9 +24,14 @@ export {
21
24
  // Workout Type Structures
22
25
  type Workout,
23
26
 
27
+ // Schedule Type Structures
28
+ type Schedule,
29
+
24
30
  // Enums
25
31
  ExerciseType,
26
32
  ExerciseUnit,
33
+ ScheduleDay,
34
+ ScheduleRecurrence,
27
35
 
28
36
  // Collections
29
37
  WeightUnits,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plus45/types",
3
- "version": "1.1.10",
3
+ "version": "1.1.12",
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
+ };
@@ -0,0 +1,9 @@
1
+ export enum ScheduleDay {
2
+ "SUNDAY" = 0,
3
+ "MONDAY" = 1,
4
+ "TUESDAY" = 2,
5
+ "WEDNESDAY" = 3,
6
+ "THURSDAY" = 4,
7
+ "FRIDAY" = 5,
8
+ "SATURDAY" = 6
9
+ }
@@ -0,0 +1,4 @@
1
+ enum ScheduleRecurrence {
2
+ Weekly = "WEEKLY",
3
+ BIWEEKLY = "BIWEEKLY"
4
+ }