@plus45/types 1.2.0 → 1.2.1

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/index.js CHANGED
@@ -1,13 +1,18 @@
1
- import { ExerciseType } from "./types/exercise/exercise_types";
2
- import { DistanceUnits, ExerciseUnit, TimeUnits, WeightUnits } from "./types/exercise/exercise_units";
3
- import { ScheduleDay } from "./types/schedule/schedule_days";
4
- import { ScheduleRecurrence } from "./types/schedule/schedule_recurrence";
5
- import { WeekLayout } from "./types/generics/week_layout";
6
- import { AuthType } from "./types/authorization/authorization";
7
- export {
8
- // Generics
9
- WeekLayout,
10
- // Enums
11
- ExerciseType, ExerciseUnit, ScheduleDay, ScheduleRecurrence, AuthType,
12
- // Collections
13
- WeightUnits, DistanceUnits, TimeUnits };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TimeUnits = exports.DistanceUnits = exports.WeightUnits = exports.AuthType = exports.ScheduleRecurrence = exports.ScheduleDay = exports.ExerciseUnit = exports.ExerciseType = exports.WeekLayout = void 0;
4
+ const exercise_types_1 = require("./types/exercise/exercise_types");
5
+ Object.defineProperty(exports, "ExerciseType", { enumerable: true, get: function () { return exercise_types_1.ExerciseType; } });
6
+ const exercise_units_1 = require("./types/exercise/exercise_units");
7
+ Object.defineProperty(exports, "DistanceUnits", { enumerable: true, get: function () { return exercise_units_1.DistanceUnits; } });
8
+ Object.defineProperty(exports, "ExerciseUnit", { enumerable: true, get: function () { return exercise_units_1.ExerciseUnit; } });
9
+ Object.defineProperty(exports, "TimeUnits", { enumerable: true, get: function () { return exercise_units_1.TimeUnits; } });
10
+ Object.defineProperty(exports, "WeightUnits", { enumerable: true, get: function () { return exercise_units_1.WeightUnits; } });
11
+ const schedule_days_1 = require("./types/schedule/schedule_days");
12
+ Object.defineProperty(exports, "ScheduleDay", { enumerable: true, get: function () { return schedule_days_1.ScheduleDay; } });
13
+ const schedule_recurrence_1 = require("./types/schedule/schedule_recurrence");
14
+ Object.defineProperty(exports, "ScheduleRecurrence", { enumerable: true, get: function () { return schedule_recurrence_1.ScheduleRecurrence; } });
15
+ const week_layout_1 = require("./types/generics/week_layout");
16
+ Object.defineProperty(exports, "WeekLayout", { enumerable: true, get: function () { return week_layout_1.WeekLayout; } });
17
+ const authorization_1 = require("./types/authorization/authorization");
18
+ Object.defineProperty(exports, "AuthType", { enumerable: true, get: function () { return authorization_1.AuthType; } });
@@ -1,3 +1,6 @@
1
- export const AuthType = {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuthType = void 0;
4
+ exports.AuthType = {
2
5
  PASSWORD_CHANGE: "PASSWORD_CHANGE"
3
6
  };
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExerciseType = void 0;
1
4
  /**
2
5
  * Object for different types of exercises.
3
6
  */
4
- export const ExerciseType = {
7
+ exports.ExerciseType = {
5
8
  /**
6
9
  * Sets-Reps based exercise (e.g. 3x10)
7
10
  */
@@ -1,4 +1,7 @@
1
- export const ExerciseUnit = {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DistanceUnits = exports.TimeUnits = exports.WeightUnits = exports.ExerciseUnit = void 0;
4
+ exports.ExerciseUnit = {
2
5
  // Time
3
6
  seconds: "SECONDS",
4
7
  minutes: "MINUTES",
@@ -12,12 +15,12 @@ export const ExerciseUnit = {
12
15
  feet: "FEET",
13
16
  meters: "METERS"
14
17
  };
15
- export const WeightUnits = [ExerciseUnit.pounds, ExerciseUnit.kilograms];
16
- export const TimeUnits = [ExerciseUnit.seconds, ExerciseUnit.minutes];
17
- export const DistanceUnits = [
18
- ExerciseUnit.miles,
19
- ExerciseUnit.kilometers,
20
- ExerciseUnit.yards,
21
- ExerciseUnit.feet,
22
- ExerciseUnit.meters
18
+ exports.WeightUnits = [exports.ExerciseUnit.pounds, exports.ExerciseUnit.kilograms];
19
+ exports.TimeUnits = [exports.ExerciseUnit.seconds, exports.ExerciseUnit.minutes];
20
+ exports.DistanceUnits = [
21
+ exports.ExerciseUnit.miles,
22
+ exports.ExerciseUnit.kilometers,
23
+ exports.ExerciseUnit.yards,
24
+ exports.ExerciseUnit.feet,
25
+ exports.ExerciseUnit.meters
23
26
  ];
@@ -1,4 +1,7 @@
1
- export class WeekLayout {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WeekLayout = void 0;
4
+ class WeekLayout {
2
5
  Sunday;
3
6
  Monday;
4
7
  Tuesday;
@@ -48,3 +51,4 @@ export class WeekLayout {
48
51
  return this[this.getDayFromIndex[index]];
49
52
  }
50
53
  }
54
+ exports.WeekLayout = WeekLayout;
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,7 @@
1
- export const ScheduleDay = {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ScheduleDay = void 0;
4
+ exports.ScheduleDay = {
2
5
  SUNDAY: 0,
3
6
  MONDAY: 1,
4
7
  TUESDAY: 2,
@@ -1,4 +1,7 @@
1
- export const ScheduleRecurrence = {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ScheduleRecurrence = void 0;
4
+ exports.ScheduleRecurrence = {
2
5
  WEEKLY: "WEEKLY",
3
6
  BIWEEKLY: "BIWEEKLY"
4
7
  };
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plus45/types",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [