90dc-core 1.0.12 → 1.0.13
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/build/index.d.ts +18 -0
- package/build/lib/db/models/Exercise.d.ts +17 -0
- package/build/lib/db/models/ExerciseBlueprint.d.ts +15 -0
- package/build/lib/db/models/ExerciseModels.d.ts +15 -0
- package/build/lib/db/models/ExerciseProgress.d.ts +9 -0
- package/build/lib/db/models/ForgotPasswordTokens.d.ts +7 -0
- package/build/lib/db/models/PersistedUser.d.ts +24 -0
- package/build/lib/db/models/Program.d.ts +10 -0
- package/build/lib/db/models/ProgramBlueprint.d.ts +11 -0
- package/build/lib/db/models/RefreshToken.d.ts +4 -0
- package/build/lib/db/models/Superset.d.ts +9 -0
- package/build/lib/db/models/SupersetExercise.d.ts +6 -0
- package/build/lib/db/models/UserInfo.d.ts +10 -0
- package/build/lib/db/models/UserProgressPhoto.d.ts +9 -0
- package/build/lib/db/models/Workout.d.ts +13 -0
- package/build/lib/db/models/WorkoutExercise.d.ts +6 -0
- package/build/lib/models/ExerciseInterfaces.d.ts +20 -0
- package/build/lib/models/ProgramInterfaces.d.ts +16 -0
- package/build/lib/models/UserInterfaces.d.ts +75 -0
- package/build/lib/models/WorkoutInterfaces.d.ts +15 -0
- package/package.json +1 -1
package/build/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from "./lib/models/ProgramInterfaces";
|
|
2
|
+
export * from "./lib/models/ExerciseInterfaces";
|
|
3
|
+
export * from "./lib/models/WorkoutInterfaces";
|
|
4
|
+
export * from "./lib/db/models/Exercise";
|
|
5
|
+
export * from "./lib/db/models/ExerciseModels";
|
|
6
|
+
export * from "./lib/db/models/ExerciseBlueprint";
|
|
7
|
+
export * from "./lib/db/models/ExerciseProgress";
|
|
8
|
+
export * from "./lib/db/models/ForgotPasswordTokens";
|
|
9
|
+
export * from "./lib/db/models/PersistedUser";
|
|
10
|
+
export * from "./lib/db/models/Program";
|
|
11
|
+
export * from "./lib/db/models/ProgramBlueprint";
|
|
12
|
+
export * from "./lib/db/models/RefreshToken";
|
|
13
|
+
export * from "./lib/db/models/Superset";
|
|
14
|
+
export * from "./lib/db/models/SupersetExercise";
|
|
15
|
+
export * from "./lib/db/models/UserInfo";
|
|
16
|
+
export * from "./lib/db/models/UserProgressPhoto";
|
|
17
|
+
export * from "./lib/db/models/Workout";
|
|
18
|
+
export * from "./lib/db/models/WorkoutExercise";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Model } from "sequelize-typescript";
|
|
2
|
+
import { ExerciseModel } from "../../models/ExerciseInterfaces";
|
|
3
|
+
export declare class Exercise extends Model<Exercise> implements ExerciseModel {
|
|
4
|
+
uuid: string;
|
|
5
|
+
name: string;
|
|
6
|
+
level: string[];
|
|
7
|
+
hasPriority: boolean;
|
|
8
|
+
isCompound: boolean;
|
|
9
|
+
hasVariations: boolean;
|
|
10
|
+
needsEquipment: boolean;
|
|
11
|
+
variations: Object;
|
|
12
|
+
muscles: string[];
|
|
13
|
+
reps: string;
|
|
14
|
+
sets: string;
|
|
15
|
+
order: number;
|
|
16
|
+
homeWorkout: boolean;
|
|
17
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Model } from "sequelize-typescript";
|
|
2
|
+
import { ProgramBlueprint } from "./ProgramBlueprint";
|
|
3
|
+
export declare class ExerciseBlueprint extends Model {
|
|
4
|
+
uuid: string;
|
|
5
|
+
hasPriority: boolean;
|
|
6
|
+
isCompound: boolean;
|
|
7
|
+
needsEquipment: boolean;
|
|
8
|
+
isSuperset: boolean;
|
|
9
|
+
isFixed: boolean;
|
|
10
|
+
muscle: string;
|
|
11
|
+
rir: number;
|
|
12
|
+
reps: string;
|
|
13
|
+
sets: string;
|
|
14
|
+
program: ProgramBlueprint;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Model } from "sequelize-typescript";
|
|
2
|
+
import { ExerciseModel } from "../../models/ExerciseInterfaces";
|
|
3
|
+
export declare class ExercisesModels extends Model implements ExerciseModel {
|
|
4
|
+
uuid: string;
|
|
5
|
+
name: string;
|
|
6
|
+
level: string[];
|
|
7
|
+
hasPriority: boolean;
|
|
8
|
+
isCompound: boolean;
|
|
9
|
+
hasVariations: boolean;
|
|
10
|
+
needsEquipment: boolean;
|
|
11
|
+
variations: object;
|
|
12
|
+
variationIfNoVariations: object;
|
|
13
|
+
muscles: string[];
|
|
14
|
+
homeWorkout: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Model } from "sequelize-typescript";
|
|
2
|
+
import { Program } from "./Program";
|
|
3
|
+
import { UserInfo } from "./UserInfo";
|
|
4
|
+
export declare class PersistedUser extends Model {
|
|
5
|
+
userUuid: string;
|
|
6
|
+
email: string;
|
|
7
|
+
password: string;
|
|
8
|
+
firstName: string;
|
|
9
|
+
lastName: string;
|
|
10
|
+
avatar: string;
|
|
11
|
+
sex: string;
|
|
12
|
+
goal: string;
|
|
13
|
+
weightGoal: string;
|
|
14
|
+
level: string;
|
|
15
|
+
type: string;
|
|
16
|
+
days: number;
|
|
17
|
+
dateOfBirth: string;
|
|
18
|
+
metricSystem: string;
|
|
19
|
+
height: string;
|
|
20
|
+
weight: string;
|
|
21
|
+
program: Program;
|
|
22
|
+
userInfo: UserInfo;
|
|
23
|
+
progressPhotos: UserInfo[];
|
|
24
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Workout } from "./Workout";
|
|
2
|
+
import { Model } from "sequelize-typescript";
|
|
3
|
+
import { PersistedUser } from "./PersistedUser";
|
|
4
|
+
import { ProgramModel } from "../../models/ProgramInterfaces";
|
|
5
|
+
export declare class Program extends Model implements ProgramModel {
|
|
6
|
+
programId: string;
|
|
7
|
+
userUuid: string;
|
|
8
|
+
user: PersistedUser;
|
|
9
|
+
workout: Workout[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Model } from "sequelize-typescript";
|
|
2
|
+
import { ExerciseBlueprint } from "./ExerciseBlueprint";
|
|
3
|
+
export declare class ProgramBlueprint extends Model {
|
|
4
|
+
programId: string;
|
|
5
|
+
title: string;
|
|
6
|
+
level: string;
|
|
7
|
+
numberOfDays: number;
|
|
8
|
+
exercisesPerWorkout: number;
|
|
9
|
+
workoutNames: object[];
|
|
10
|
+
exercises: ExerciseBlueprint[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Exercise } from "./Exercise";
|
|
2
|
+
import { Model } from "sequelize-typescript";
|
|
3
|
+
import { Workout } from "./Workout";
|
|
4
|
+
import { SupersetModel } from "../../models/WorkoutInterfaces";
|
|
5
|
+
export declare class Superset extends Model implements SupersetModel {
|
|
6
|
+
uuid: string;
|
|
7
|
+
workout: Workout;
|
|
8
|
+
exercise: Exercise[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Model } from "sequelize-typescript";
|
|
2
|
+
import { SupersetExerciseModel } from "../../models/WorkoutInterfaces";
|
|
3
|
+
export declare class SupersetExercise extends Model<SupersetExercise> implements SupersetExerciseModel {
|
|
4
|
+
SupersetUuid: string;
|
|
5
|
+
ExerciseUuid: string;
|
|
6
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PersistedUser } from "./PersistedUser";
|
|
2
|
+
import { Model } from "sequelize-typescript";
|
|
3
|
+
export declare class UserInfo extends Model {
|
|
4
|
+
userUuid: string;
|
|
5
|
+
height: string;
|
|
6
|
+
weight: string;
|
|
7
|
+
beforePhoto: string;
|
|
8
|
+
afterPhoto: string;
|
|
9
|
+
user: PersistedUser;
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Exercise } from "./Exercise";
|
|
2
|
+
import { Program } from "./Program";
|
|
3
|
+
import { Superset } from "./Superset";
|
|
4
|
+
import { Model } from "sequelize-typescript";
|
|
5
|
+
import { WorkoutModel } from "../../models/WorkoutInterfaces";
|
|
6
|
+
export declare class Workout extends Model implements WorkoutModel {
|
|
7
|
+
uuid: string;
|
|
8
|
+
isFinished: boolean;
|
|
9
|
+
info: object;
|
|
10
|
+
exercise: Exercise;
|
|
11
|
+
program: Program;
|
|
12
|
+
superset: Superset[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Model } from "sequelize-typescript";
|
|
2
|
+
import { WorkoutExerciseModel } from "../../models/WorkoutInterfaces";
|
|
3
|
+
export declare class WorkoutExercise extends Model<WorkoutExercise> implements WorkoutExerciseModel {
|
|
4
|
+
WorkoutUuid: string;
|
|
5
|
+
ExerciseUuid: string;
|
|
6
|
+
}
|
|
@@ -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,75 @@
|
|
|
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 interface TitleRequest {
|
|
47
|
+
title: string;
|
|
48
|
+
}
|
|
49
|
+
export interface UserPhoto {
|
|
50
|
+
base64: string;
|
|
51
|
+
title: string;
|
|
52
|
+
}
|
|
53
|
+
export default interface AuthenticationToken {
|
|
54
|
+
type: string;
|
|
55
|
+
contents: string;
|
|
56
|
+
}
|
|
57
|
+
export interface RestorePasswordRequest {
|
|
58
|
+
email: string;
|
|
59
|
+
}
|
|
60
|
+
export interface BeforeSubscriptionOptions {
|
|
61
|
+
firstName: string;
|
|
62
|
+
lastName: string;
|
|
63
|
+
sex: string;
|
|
64
|
+
goal: string;
|
|
65
|
+
weightGoal: string;
|
|
66
|
+
level: string;
|
|
67
|
+
type: string;
|
|
68
|
+
days: number;
|
|
69
|
+
}
|
|
70
|
+
export interface AfterSubscriptionOptions {
|
|
71
|
+
dateOfBirth: string;
|
|
72
|
+
metricSystem: string;
|
|
73
|
+
height: string;
|
|
74
|
+
weight: string;
|
|
75
|
+
}
|
|
@@ -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
|
+
}
|