90dc-core 1.0.11 → 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/index.js +36 -0
- package/build/lib/db/models/Exercise.d.ts +17 -0
- package/build/lib/db/models/Exercise.js +72 -0
- package/build/lib/db/models/ExerciseBlueprint.d.ts +15 -0
- package/build/lib/db/models/ExerciseBlueprint.js +70 -0
- package/build/lib/db/models/ExerciseModels.d.ts +15 -0
- package/build/lib/db/models/ExerciseModels.js +69 -0
- package/build/lib/db/models/ExerciseProgress.d.ts +9 -0
- package/build/lib/db/models/ExerciseProgress.js +46 -0
- package/build/lib/db/models/ForgotPasswordTokens.d.ts +7 -0
- package/build/lib/db/models/ForgotPasswordTokens.js +36 -0
- package/build/lib/db/models/PersistedUser.d.ts +24 -0
- package/build/lib/db/models/PersistedUser.js +99 -0
- package/build/lib/db/models/Program.d.ts +10 -0
- package/build/lib/db/models/Program.js +38 -0
- package/build/lib/db/models/ProgramBlueprint.d.ts +11 -0
- package/build/lib/db/models/ProgramBlueprint.js +54 -0
- package/build/lib/db/models/RefreshToken.d.ts +4 -0
- package/build/lib/db/models/RefreshToken.js +23 -0
- package/build/lib/db/models/Superset.d.ts +9 -0
- package/build/lib/db/models/Superset.js +35 -0
- package/build/lib/db/models/SupersetExercise.d.ts +6 -0
- package/build/lib/db/models/SupersetExercise.js +47 -0
- package/build/lib/db/models/UserInfo.d.ts +10 -0
- package/build/lib/db/models/UserInfo.js +45 -0
- package/build/lib/db/models/UserProgressPhoto.d.ts +9 -0
- package/build/lib/db/models/UserProgressPhoto.js +41 -0
- package/build/lib/db/models/Workout.d.ts +13 -0
- package/build/lib/db/models/Workout.js +53 -0
- package/build/lib/db/models/WorkoutExercise.d.ts +6 -0
- package/build/lib/db/models/WorkoutExercise.js +47 -0
- package/{src/lib/models/ExerciseInterfaces.ts → build/lib/models/ExerciseInterfaces.d.ts} +0 -0
- package/build/lib/models/ExerciseInterfaces.js +2 -0
- package/{src/lib/models/ProgramInterfaces.ts → build/lib/models/ProgramInterfaces.d.ts} +0 -0
- package/build/lib/models/ProgramInterfaces.js +2 -0
- package/build/lib/models/UserInterfaces.d.ts +75 -0
- package/build/lib/models/UserInterfaces.js +2 -0
- package/{src/lib/models/WorkoutInterfaces.ts → build/lib/models/WorkoutInterfaces.d.ts} +0 -0
- package/build/lib/models/WorkoutInterfaces.js +2 -0
- package/package.json +6 -2
- package/.idea/90DC-core.iml +0 -12
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/.idea/workspace.xml +0 -201
- package/src/index.ts +0 -21
- package/src/lib/db/models/Exercise.ts +0 -47
- package/src/lib/db/models/ExerciseBlueprint.ts +0 -51
- package/src/lib/db/models/ExerciseModels.ts +0 -44
- package/src/lib/db/models/ExerciseProgress.ts +0 -26
- package/src/lib/db/models/ForgotPasswordTokens.ts +0 -22
- package/src/lib/db/models/PersistedUser.ts +0 -72
- package/src/lib/db/models/Program.ts +0 -22
- package/src/lib/db/models/ProgramBlueprint.ts +0 -39
- package/src/lib/db/models/RefreshToken.ts +0 -8
- package/src/lib/db/models/Superset.ts +0 -20
- package/src/lib/db/models/SupersetExercise.ts +0 -35
- package/src/lib/db/models/UserInfo.ts +0 -27
- package/src/lib/db/models/UserProgressPhoto.ts +0 -23
- package/src/lib/db/models/Workout.ts +0 -42
- package/src/lib/db/models/WorkoutExercise.ts +0 -34
- package/src/lib/models/UserInterfaces.ts +0 -91
- package/tsconfig.json +0 -14
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";
|
package/build/index.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
//Interfaces
|
|
18
|
+
__exportStar(require("./lib/models/ProgramInterfaces"), exports);
|
|
19
|
+
__exportStar(require("./lib/models/ExerciseInterfaces"), exports);
|
|
20
|
+
__exportStar(require("./lib/models/WorkoutInterfaces"), exports);
|
|
21
|
+
//DB
|
|
22
|
+
__exportStar(require("./lib/db/models/Exercise"), exports);
|
|
23
|
+
__exportStar(require("./lib/db/models/ExerciseModels"), exports);
|
|
24
|
+
__exportStar(require("./lib/db/models/ExerciseBlueprint"), exports);
|
|
25
|
+
__exportStar(require("./lib/db/models/ExerciseProgress"), exports);
|
|
26
|
+
__exportStar(require("./lib/db/models/ForgotPasswordTokens"), exports);
|
|
27
|
+
__exportStar(require("./lib/db/models/PersistedUser"), exports);
|
|
28
|
+
__exportStar(require("./lib/db/models/Program"), exports);
|
|
29
|
+
__exportStar(require("./lib/db/models/ProgramBlueprint"), exports);
|
|
30
|
+
__exportStar(require("./lib/db/models/RefreshToken"), exports);
|
|
31
|
+
__exportStar(require("./lib/db/models/Superset"), exports);
|
|
32
|
+
__exportStar(require("./lib/db/models/SupersetExercise"), exports);
|
|
33
|
+
__exportStar(require("./lib/db/models/UserInfo"), exports);
|
|
34
|
+
__exportStar(require("./lib/db/models/UserProgressPhoto"), exports);
|
|
35
|
+
__exportStar(require("./lib/db/models/Workout"), exports);
|
|
36
|
+
__exportStar(require("./lib/db/models/WorkoutExercise"), exports);
|
|
@@ -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,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Exercise = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
let Exercise = class Exercise extends sequelize_typescript_1.Model {
|
|
15
|
+
};
|
|
16
|
+
__decorate([
|
|
17
|
+
(0, sequelize_typescript_1.Default)(sequelize_typescript_1.DataType.UUIDV4),
|
|
18
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.UUID, defaultValue: sequelize_typescript_1.DataType.UUID, allowNull: false, primaryKey: true }),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], Exercise.prototype, "uuid", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.STRING, allowNull: false }),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], Exercise.prototype, "name", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.ARRAY(sequelize_typescript_1.DataType.STRING), allowNull: false }),
|
|
27
|
+
__metadata("design:type", Array)
|
|
28
|
+
], Exercise.prototype, "level", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.BOOLEAN, allowNull: false }),
|
|
31
|
+
__metadata("design:type", Boolean)
|
|
32
|
+
], Exercise.prototype, "hasPriority", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.BOOLEAN, allowNull: false }),
|
|
35
|
+
__metadata("design:type", Boolean)
|
|
36
|
+
], Exercise.prototype, "isCompound", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.BOOLEAN, allowNull: false }),
|
|
39
|
+
__metadata("design:type", Boolean)
|
|
40
|
+
], Exercise.prototype, "hasVariations", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.BOOLEAN, allowNull: false }),
|
|
43
|
+
__metadata("design:type", Boolean)
|
|
44
|
+
], Exercise.prototype, "needsEquipment", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.JSONB, allowNull: false }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], Exercise.prototype, "variations", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.ARRAY(sequelize_typescript_1.DataType.STRING), allowNull: false }),
|
|
51
|
+
__metadata("design:type", Array)
|
|
52
|
+
], Exercise.prototype, "muscles", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.STRING, allowNull: false }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], Exercise.prototype, "reps", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.STRING, allowNull: false }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], Exercise.prototype, "sets", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.INTEGER, allowNull: false }),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], Exercise.prototype, "order", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.BOOLEAN, allowNull: false }),
|
|
67
|
+
__metadata("design:type", Boolean)
|
|
68
|
+
], Exercise.prototype, "homeWorkout", void 0);
|
|
69
|
+
Exercise = __decorate([
|
|
70
|
+
sequelize_typescript_1.Table
|
|
71
|
+
], Exercise);
|
|
72
|
+
exports.Exercise = Exercise;
|
|
@@ -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,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ExerciseBlueprint = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const ProgramBlueprint_1 = require("./ProgramBlueprint");
|
|
15
|
+
let ExerciseBlueprint = class ExerciseBlueprint extends sequelize_typescript_1.Model {
|
|
16
|
+
};
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, sequelize_typescript_1.Default)(sequelize_typescript_1.DataType.UUIDV4),
|
|
19
|
+
(0, sequelize_typescript_1.Column)({
|
|
20
|
+
type: sequelize_typescript_1.DataType.UUID,
|
|
21
|
+
defaultValue: sequelize_typescript_1.DataType.UUID,
|
|
22
|
+
allowNull: false,
|
|
23
|
+
primaryKey: true,
|
|
24
|
+
}),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ExerciseBlueprint.prototype, "uuid", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.BOOLEAN, allowNull: false }),
|
|
29
|
+
__metadata("design:type", Boolean)
|
|
30
|
+
], ExerciseBlueprint.prototype, "hasPriority", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.BOOLEAN, allowNull: false }),
|
|
33
|
+
__metadata("design:type", Boolean)
|
|
34
|
+
], ExerciseBlueprint.prototype, "isCompound", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.BOOLEAN, allowNull: false }),
|
|
37
|
+
__metadata("design:type", Boolean)
|
|
38
|
+
], ExerciseBlueprint.prototype, "needsEquipment", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.BOOLEAN, allowNull: false }),
|
|
41
|
+
__metadata("design:type", Boolean)
|
|
42
|
+
], ExerciseBlueprint.prototype, "isSuperset", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.BOOLEAN, allowNull: false }),
|
|
45
|
+
__metadata("design:type", Boolean)
|
|
46
|
+
], ExerciseBlueprint.prototype, "isFixed", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.STRING, allowNull: false }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], ExerciseBlueprint.prototype, "muscle", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.INTEGER, allowNull: false }),
|
|
53
|
+
__metadata("design:type", Number)
|
|
54
|
+
], ExerciseBlueprint.prototype, "rir", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.STRING, allowNull: false }),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], ExerciseBlueprint.prototype, "reps", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.STRING, allowNull: false }),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], ExerciseBlueprint.prototype, "sets", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, sequelize_typescript_1.BelongsTo)(() => ProgramBlueprint_1.ProgramBlueprint, { foreignKey: "programId" }),
|
|
65
|
+
__metadata("design:type", ProgramBlueprint_1.ProgramBlueprint)
|
|
66
|
+
], ExerciseBlueprint.prototype, "program", void 0);
|
|
67
|
+
ExerciseBlueprint = __decorate([
|
|
68
|
+
sequelize_typescript_1.Table
|
|
69
|
+
], ExerciseBlueprint);
|
|
70
|
+
exports.ExerciseBlueprint = ExerciseBlueprint;
|
|
@@ -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,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ExercisesModels = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
let ExercisesModels = class ExercisesModels extends sequelize_typescript_1.Model {
|
|
15
|
+
};
|
|
16
|
+
__decorate([
|
|
17
|
+
(0, sequelize_typescript_1.Default)(sequelize_typescript_1.DataType.UUIDV4),
|
|
18
|
+
(0, sequelize_typescript_1.Column)({
|
|
19
|
+
type: sequelize_typescript_1.DataType.UUID,
|
|
20
|
+
defaultValue: sequelize_typescript_1.DataType.UUID,
|
|
21
|
+
allowNull: false,
|
|
22
|
+
primaryKey: true,
|
|
23
|
+
}),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], ExercisesModels.prototype, "uuid", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.STRING, allowNull: false }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], ExercisesModels.prototype, "name", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.ARRAY(sequelize_typescript_1.DataType.STRING), allowNull: false }),
|
|
32
|
+
__metadata("design:type", Array)
|
|
33
|
+
], ExercisesModels.prototype, "level", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.BOOLEAN, allowNull: false }),
|
|
36
|
+
__metadata("design:type", Boolean)
|
|
37
|
+
], ExercisesModels.prototype, "hasPriority", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.BOOLEAN, allowNull: false }),
|
|
40
|
+
__metadata("design:type", Boolean)
|
|
41
|
+
], ExercisesModels.prototype, "isCompound", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.BOOLEAN, allowNull: false }),
|
|
44
|
+
__metadata("design:type", Boolean)
|
|
45
|
+
], ExercisesModels.prototype, "hasVariations", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.BOOLEAN, allowNull: false }),
|
|
48
|
+
__metadata("design:type", Boolean)
|
|
49
|
+
], ExercisesModels.prototype, "needsEquipment", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.JSONB, allowNull: false }),
|
|
52
|
+
__metadata("design:type", Object)
|
|
53
|
+
], ExercisesModels.prototype, "variations", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.JSONB, allowNull: false }),
|
|
56
|
+
__metadata("design:type", Object)
|
|
57
|
+
], ExercisesModels.prototype, "variationIfNoVariations", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.ARRAY(sequelize_typescript_1.DataType.STRING), allowNull: false }),
|
|
60
|
+
__metadata("design:type", Array)
|
|
61
|
+
], ExercisesModels.prototype, "muscles", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.BOOLEAN, allowNull: false }),
|
|
64
|
+
__metadata("design:type", Boolean)
|
|
65
|
+
], ExercisesModels.prototype, "homeWorkout", void 0);
|
|
66
|
+
ExercisesModels = __decorate([
|
|
67
|
+
sequelize_typescript_1.Table
|
|
68
|
+
], ExercisesModels);
|
|
69
|
+
exports.ExercisesModels = ExercisesModels;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ExerciseProgress = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const PersistedUser_1 = require("./PersistedUser");
|
|
15
|
+
let ExerciseProgress = class ExerciseProgress extends sequelize_typescript_1.Model {
|
|
16
|
+
};
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, sequelize_typescript_1.Default)(sequelize_typescript_1.DataType.UUIDV4),
|
|
19
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.UUID, defaultValue: sequelize_typescript_1.DataType.UUID, allowNull: false, primaryKey: true }),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], ExerciseProgress.prototype, "uuid", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, sequelize_typescript_1.ForeignKey)(() => PersistedUser_1.PersistedUser),
|
|
24
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.UUID, defaultValue: sequelize_typescript_1.DataType.UUID, allowNull: false }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ExerciseProgress.prototype, "userUuid", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: false }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], ExerciseProgress.prototype, "exerciseUuid", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: false }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], ExerciseProgress.prototype, "reps", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: false }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], ExerciseProgress.prototype, "weight", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DATE, allowNull: false }),
|
|
41
|
+
__metadata("design:type", Date)
|
|
42
|
+
], ExerciseProgress.prototype, "date", void 0);
|
|
43
|
+
ExerciseProgress = __decorate([
|
|
44
|
+
sequelize_typescript_1.Table
|
|
45
|
+
], ExerciseProgress);
|
|
46
|
+
exports.ExerciseProgress = ExerciseProgress;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ForgotPasswordTokens = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
let ForgotPasswordTokens = class ForgotPasswordTokens extends sequelize_typescript_1.Model {
|
|
15
|
+
};
|
|
16
|
+
__decorate([
|
|
17
|
+
(0, sequelize_typescript_1.Default)(sequelize_typescript_1.DataType.UUIDV4),
|
|
18
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.UUID, defaultValue: sequelize_typescript_1.DataType.UUID, allowNull: false, primaryKey: true }),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], ForgotPasswordTokens.prototype, "uuid", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.UUID, allowNull: false }),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], ForgotPasswordTokens.prototype, "userUuid", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: false }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], ForgotPasswordTokens.prototype, "token", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DATE, allowNull: false }),
|
|
31
|
+
__metadata("design:type", Date)
|
|
32
|
+
], ForgotPasswordTokens.prototype, "date", void 0);
|
|
33
|
+
ForgotPasswordTokens = __decorate([
|
|
34
|
+
sequelize_typescript_1.Table
|
|
35
|
+
], ForgotPasswordTokens);
|
|
36
|
+
exports.ForgotPasswordTokens = ForgotPasswordTokens;
|
|
@@ -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,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PersistedUser = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const Program_1 = require("./Program");
|
|
15
|
+
const UserInfo_1 = require("./UserInfo");
|
|
16
|
+
const UserProgressPhoto_1 = require("./UserProgressPhoto");
|
|
17
|
+
let PersistedUser = class PersistedUser extends sequelize_typescript_1.Model {
|
|
18
|
+
};
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, sequelize_typescript_1.Default)(sequelize_typescript_1.DataType.UUIDV4),
|
|
21
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.UUID, defaultValue: sequelize_typescript_1.DataType.UUID, allowNull: false, primaryKey: true }),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], PersistedUser.prototype, "userUuid", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: false, unique: true }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], PersistedUser.prototype, "email", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: false }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], PersistedUser.prototype, "password", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: true }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], PersistedUser.prototype, "firstName", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: true }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], PersistedUser.prototype, "lastName", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: true }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], PersistedUser.prototype, "avatar", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: true }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], PersistedUser.prototype, "sex", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: true }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], PersistedUser.prototype, "goal", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: true }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], PersistedUser.prototype, "weightGoal", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: true }),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], PersistedUser.prototype, "level", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: true }),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], PersistedUser.prototype, "type", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: true }),
|
|
66
|
+
__metadata("design:type", Number)
|
|
67
|
+
], PersistedUser.prototype, "days", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: true }),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], PersistedUser.prototype, "dateOfBirth", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: true }),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], PersistedUser.prototype, "metricSystem", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: true }),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], PersistedUser.prototype, "height", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: true }),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], PersistedUser.prototype, "weight", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, sequelize_typescript_1.HasOne)(() => Program_1.Program, { foreignKey: "userUuid" }),
|
|
86
|
+
__metadata("design:type", Program_1.Program)
|
|
87
|
+
], PersistedUser.prototype, "program", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, sequelize_typescript_1.HasOne)(() => UserInfo_1.UserInfo, { foreignKey: "userUuid" }),
|
|
90
|
+
__metadata("design:type", UserInfo_1.UserInfo)
|
|
91
|
+
], PersistedUser.prototype, "userInfo", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, sequelize_typescript_1.HasMany)(() => UserProgressPhoto_1.UserProgressPhoto, { foreignKey: "userUuid" }),
|
|
94
|
+
__metadata("design:type", Array)
|
|
95
|
+
], PersistedUser.prototype, "progressPhotos", void 0);
|
|
96
|
+
PersistedUser = __decorate([
|
|
97
|
+
sequelize_typescript_1.Table
|
|
98
|
+
], PersistedUser);
|
|
99
|
+
exports.PersistedUser = PersistedUser;
|
|
@@ -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,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Program = void 0;
|
|
13
|
+
const Workout_1 = require("./Workout");
|
|
14
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
15
|
+
const PersistedUser_1 = require("./PersistedUser");
|
|
16
|
+
let Program = class Program extends sequelize_typescript_1.Model {
|
|
17
|
+
};
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, sequelize_typescript_1.Default)(sequelize_typescript_1.DataType.UUIDV4),
|
|
20
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.UUID, defaultValue: sequelize_typescript_1.DataType.UUID, allowNull: false, primaryKey: true }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], Program.prototype, "programId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.UUID, allowNull: false }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], Program.prototype, "userUuid", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, sequelize_typescript_1.BelongsTo)(() => PersistedUser_1.PersistedUser, { foreignKey: "userUuid" }),
|
|
29
|
+
__metadata("design:type", PersistedUser_1.PersistedUser)
|
|
30
|
+
], Program.prototype, "user", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, sequelize_typescript_1.HasMany)(() => Workout_1.Workout, { foreignKey: "programId" }),
|
|
33
|
+
__metadata("design:type", Array)
|
|
34
|
+
], Program.prototype, "workout", void 0);
|
|
35
|
+
Program = __decorate([
|
|
36
|
+
sequelize_typescript_1.Table
|
|
37
|
+
], Program);
|
|
38
|
+
exports.Program = Program;
|
|
@@ -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
|
+
}
|