@plus45/types 1.1.48 → 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 +18 -13
- package/dist/types/authorization/authorization.js +4 -1
- package/dist/types/exercise/exercise.js +2 -1
- package/dist/types/exercise/exercise_types.js +4 -1
- package/dist/types/exercise/exercise_units.js +12 -9
- package/dist/types/generics/week_layout.js +5 -1
- package/dist/types/schedule/schedule.js +2 -1
- package/dist/types/schedule/schedule_days.js +4 -1
- package/dist/types/schedule/schedule_recurrence.js +4 -1
- package/dist/types/user/access_token.js +2 -1
- package/dist/types/user/session_info.js +2 -1
- package/dist/types/user/user.js +2 -1
- package/dist/types/workout/workout.js +2 -1
- package/dist/types/workout/workout_execution.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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 +1,2 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
7
|
+
exports.ExerciseType = {
|
|
5
8
|
/**
|
|
6
9
|
* Sets-Reps based exercise (e.g. 3x10)
|
|
7
10
|
*/
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/types/user/user.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|