90dc-core 1.0.0 → 1.0.2
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.d.ts +4 -0
- package/dist/index.js +18 -0
- package/dist/lib/models/ExerciseInterfaces.d.ts +20 -0
- package/dist/lib/models/ExerciseInterfaces.js +2 -0
- package/dist/lib/models/ProgramInterfaces.d.ts +16 -0
- package/dist/lib/models/ProgramInterfaces.js +2 -0
- package/dist/lib/models/UserInterfaces.d.ts +52 -0
- package/dist/lib/models/UserInterfaces.js +2 -0
- package/dist/lib/models/WorkoutInterfaces.d.ts +15 -0
- package/dist/lib/models/WorkoutInterfaces.js +2 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
17
|
exports.Greeter = void 0;
|
|
4
18
|
const Greeter = (name) => `Hello ${name}`;
|
|
5
19
|
exports.Greeter = Greeter;
|
|
20
|
+
__exportStar(require("./lib/models/ProgramInterfaces"), exports);
|
|
21
|
+
__exportStar(require("./lib/models/ExerciseInterfaces"), exports);
|
|
22
|
+
__exportStar(require("./lib/models/WorkoutInterfaces"), exports);
|
|
23
|
+
__exportStar(require("./lib/models/ProgramInterfaces"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface ExerciseModel {
|
|
2
|
+
uuid: string;
|
|
3
|
+
name: string;
|
|
4
|
+
level: string[];
|
|
5
|
+
isCompound: boolean;
|
|
6
|
+
needsEquipment: boolean;
|
|
7
|
+
hasPriority: boolean;
|
|
8
|
+
hasVariations: boolean;
|
|
9
|
+
variations: object;
|
|
10
|
+
muscles: string[];
|
|
11
|
+
homeWorkout: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface ExerciseProgressRequest {
|
|
14
|
+
exerciseUuid: string;
|
|
15
|
+
reps: string;
|
|
16
|
+
weight: string;
|
|
17
|
+
}
|
|
18
|
+
export interface ExerciseProgressGetRequest {
|
|
19
|
+
exerciseUuid: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface ProgramModel {
|
|
2
|
+
programId: string;
|
|
3
|
+
userUuid: string;
|
|
4
|
+
}
|
|
5
|
+
export interface ProgramIdRequest {
|
|
6
|
+
programId: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ProgramUserRequest {
|
|
9
|
+
userUuid: string;
|
|
10
|
+
}
|
|
11
|
+
export interface UserProgramOptions {
|
|
12
|
+
level: string;
|
|
13
|
+
type: string;
|
|
14
|
+
numberOfDays: number;
|
|
15
|
+
userUuid: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export interface UserTypes {
|
|
2
|
+
userUuid: string;
|
|
3
|
+
email: string;
|
|
4
|
+
firstName: string;
|
|
5
|
+
lastName: string;
|
|
6
|
+
avatar: string;
|
|
7
|
+
}
|
|
8
|
+
export interface UserInfoModel {
|
|
9
|
+
userUuid: string;
|
|
10
|
+
height: string;
|
|
11
|
+
weight: string;
|
|
12
|
+
}
|
|
13
|
+
export interface LoginRequest {
|
|
14
|
+
email: string;
|
|
15
|
+
password: string;
|
|
16
|
+
}
|
|
17
|
+
export interface UserPhotoRequest {
|
|
18
|
+
base64: string;
|
|
19
|
+
}
|
|
20
|
+
export interface ProgressPhoto {
|
|
21
|
+
date: Date;
|
|
22
|
+
progressPhoto: string;
|
|
23
|
+
userUuid: string;
|
|
24
|
+
}
|
|
25
|
+
export interface ForgotPassword {
|
|
26
|
+
uuid: string;
|
|
27
|
+
userUuid: string;
|
|
28
|
+
token: string;
|
|
29
|
+
date: Date;
|
|
30
|
+
}
|
|
31
|
+
export interface RefreshPayload {
|
|
32
|
+
userUuid: string;
|
|
33
|
+
}
|
|
34
|
+
export interface TokenRequest {
|
|
35
|
+
token: string;
|
|
36
|
+
}
|
|
37
|
+
export interface RefreshRequest {
|
|
38
|
+
refreshToken: string;
|
|
39
|
+
}
|
|
40
|
+
export interface UuidRequest {
|
|
41
|
+
userUuid: string;
|
|
42
|
+
}
|
|
43
|
+
export interface EmailRequest {
|
|
44
|
+
email: string;
|
|
45
|
+
}
|
|
46
|
+
export default interface AuthenticationToken {
|
|
47
|
+
type: string;
|
|
48
|
+
contents: string;
|
|
49
|
+
}
|
|
50
|
+
export interface RestorePasswordRequest {
|
|
51
|
+
email: string;
|
|
52
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface WorkoutModel {
|
|
2
|
+
uuid: string;
|
|
3
|
+
isFinished: boolean;
|
|
4
|
+
}
|
|
5
|
+
export interface SupersetModel {
|
|
6
|
+
uuid: string;
|
|
7
|
+
}
|
|
8
|
+
export interface WorkoutExerciseModel {
|
|
9
|
+
WorkoutUuid: string;
|
|
10
|
+
ExerciseUuid: string;
|
|
11
|
+
}
|
|
12
|
+
export interface SupersetExerciseModel {
|
|
13
|
+
SupersetUuid: string;
|
|
14
|
+
ExerciseUuid: string;
|
|
15
|
+
}
|