90dc-core 1.1.8 → 1.1.10

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.
Files changed (41) hide show
  1. package/package.json +8 -9
  2. package/build/index.d.ts +0 -19
  3. package/build/index.js +0 -21
  4. package/build/lib/db/models/Exercise.d.ts +0 -17
  5. package/build/lib/db/models/Exercise.js +0 -69
  6. package/build/lib/db/models/ExerciseBlueprint.d.ts +0 -13
  7. package/build/lib/db/models/ExerciseBlueprint.js +0 -62
  8. package/build/lib/db/models/ExerciseModels.d.ts +0 -15
  9. package/build/lib/db/models/ExerciseModels.js +0 -66
  10. package/build/lib/db/models/ExerciseProgress.d.ts +0 -9
  11. package/build/lib/db/models/ExerciseProgress.js +0 -43
  12. package/build/lib/db/models/ForgotPasswordTokens.d.ts +0 -7
  13. package/build/lib/db/models/ForgotPasswordTokens.js +0 -33
  14. package/build/lib/db/models/PersistedUser.d.ts +0 -24
  15. package/build/lib/db/models/PersistedUser.js +0 -96
  16. package/build/lib/db/models/Program.d.ts +0 -8
  17. package/build/lib/db/models/Program.js +0 -30
  18. package/build/lib/db/models/ProgramBlueprint.d.ts +0 -11
  19. package/build/lib/db/models/ProgramBlueprint.js +0 -51
  20. package/build/lib/db/models/RefreshToken.d.ts +0 -4
  21. package/build/lib/db/models/RefreshToken.js +0 -20
  22. package/build/lib/db/models/Superset.d.ts +0 -6
  23. package/build/lib/db/models/Superset.js +0 -27
  24. package/build/lib/db/models/SupersetExercise.d.ts +0 -5
  25. package/build/lib/db/models/SupersetExercise.js +0 -44
  26. package/build/lib/db/models/UserInfo.d.ts +0 -8
  27. package/build/lib/db/models/UserInfo.js +0 -37
  28. package/build/lib/db/models/UserProgressPhoto.d.ts +0 -7
  29. package/build/lib/db/models/UserProgressPhoto.js +0 -34
  30. package/build/lib/db/models/Workout.d.ts +0 -11
  31. package/build/lib/db/models/Workout.js +0 -45
  32. package/build/lib/db/models/WorkoutExercise.d.ts +0 -6
  33. package/build/lib/db/models/WorkoutExercise.js +0 -44
  34. package/build/lib/models/ExerciseInterfaces.d.ts +0 -20
  35. package/build/lib/models/ExerciseInterfaces.js +0 -1
  36. package/build/lib/models/ProgramInterfaces.d.ts +0 -16
  37. package/build/lib/models/ProgramInterfaces.js +0 -1
  38. package/build/lib/models/UserInterfaces.d.ts +0 -75
  39. package/build/lib/models/UserInterfaces.js +0 -1
  40. package/build/lib/models/WorkoutInterfaces.d.ts +0 -15
  41. package/build/lib/models/WorkoutInterfaces.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "90dc-core",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "description": "A package that contains utils and interfaces used to create 90dc",
5
5
  "main": "build/index.js",
6
6
  "files": [
@@ -9,23 +9,22 @@
9
9
  ],
10
10
  "type": "module",
11
11
  "devDependencies": {
12
+ "@swc/cli": "^0.1.62",
13
+ "@swc/core": "^1.3.36",
12
14
  "@types/jest": "^29.2.6",
13
15
  "@types/node": "^18.13.0",
14
16
  "@types/validator": "^13.7.12",
17
+ "@typescript-eslint/eslint-plugin": "^5.53.0",
15
18
  "jest": "^29.3.1",
16
19
  "prettier": "^2.8.3",
17
20
  "ts-jest": "^29.0.5",
18
21
  "ts-node": "^10.9.1",
19
22
  "ts-node-dev": "^2.0.0",
20
- "tslint": "^6.1.3",
21
- "tslint-config-prettier": "^1.18.0",
22
23
  "typescript": "^4.9.4"
23
24
  },
24
25
  "dependencies": {
25
- "reflect-metadata": "^0.1.13",
26
- "sequelize": "^6.28.0",
27
- "sequelize-typescript": "^2.1.5",
28
- "winston": "^3.8.2"
26
+ "@typescript-eslint/parser": "^5.53.0",
27
+ "eslint": "^8.34.0"
29
28
  },
30
29
  "repository": {
31
30
  "type": "git",
@@ -39,9 +38,9 @@
39
38
  "homepage": "https://github.com/RomaPchel/90DC-core#readme",
40
39
  "scripts": {
41
40
  "dev": "tsnd --respawn src/index.ts",
42
- "build": "tsc",
41
+ "build": "npx swc --config-file .swcrc ./src -d dist",
43
42
  "format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
44
- "lint": "tslint -p tsconfig.json",
43
+ "lint": "eslint './src/**/*.ts' --ext .ts",
45
44
  "preversion": "npm run lint",
46
45
  "version": "npm run format && git add -A src",
47
46
  "postversion": "git push && git push --tags"
package/build/index.d.ts DELETED
@@ -1,19 +0,0 @@
1
- export * from "./lib/models/ProgramInterfaces";
2
- export * from "./lib/models/ExerciseInterfaces";
3
- export * from "./lib/models/WorkoutInterfaces";
4
- export * from "./lib/models/UserInterfaces";
5
- export * from "./lib/db/models/Exercise";
6
- export * from "./lib/db/models/ExerciseModels";
7
- export * from "./lib/db/models/ExerciseBlueprint";
8
- export * from "./lib/db/models/ExerciseProgress";
9
- export * from "./lib/db/models/ForgotPasswordTokens";
10
- export * from "./lib/db/models/PersistedUser";
11
- export * from "./lib/db/models/Program";
12
- export * from "./lib/db/models/ProgramBlueprint";
13
- export * from "./lib/db/models/RefreshToken";
14
- export * from "./lib/db/models/Superset";
15
- export * from "./lib/db/models/SupersetExercise";
16
- export * from "./lib/db/models/UserInfo";
17
- export * from "./lib/db/models/UserProgressPhoto";
18
- export * from "./lib/db/models/Workout";
19
- export * from "./lib/db/models/WorkoutExercise";
package/build/index.js DELETED
@@ -1,21 +0,0 @@
1
- //Interfaces
2
- export * from "./lib/models/ProgramInterfaces";
3
- export * from "./lib/models/ExerciseInterfaces";
4
- export * from "./lib/models/WorkoutInterfaces";
5
- export * from "./lib/models/UserInterfaces";
6
- //DB
7
- export * from "./lib/db/models/Exercise";
8
- export * from "./lib/db/models/ExerciseModels";
9
- export * from "./lib/db/models/ExerciseBlueprint";
10
- export * from "./lib/db/models/ExerciseProgress";
11
- export * from "./lib/db/models/ForgotPasswordTokens";
12
- export * from "./lib/db/models/PersistedUser";
13
- export * from "./lib/db/models/Program";
14
- export * from "./lib/db/models/ProgramBlueprint";
15
- export * from "./lib/db/models/RefreshToken";
16
- export * from "./lib/db/models/Superset";
17
- export * from "./lib/db/models/SupersetExercise";
18
- export * from "./lib/db/models/UserInfo";
19
- export * from "./lib/db/models/UserProgressPhoto";
20
- export * from "./lib/db/models/Workout";
21
- export * from "./lib/db/models/WorkoutExercise";
@@ -1,17 +0,0 @@
1
- import { Model } from "sequelize-typescript";
2
- import type { 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
- }
@@ -1,69 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- 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;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { Column, DataType, Default, Model, Table } from "sequelize-typescript";
11
- let Exercise = class Exercise extends Model {
12
- };
13
- __decorate([
14
- Default(DataType.UUIDV4),
15
- Column({ type: DataType.UUID, defaultValue: DataType.UUID, allowNull: false, primaryKey: true }),
16
- __metadata("design:type", String)
17
- ], Exercise.prototype, "uuid", void 0);
18
- __decorate([
19
- Column({ type: DataType.STRING, allowNull: false }),
20
- __metadata("design:type", String)
21
- ], Exercise.prototype, "name", void 0);
22
- __decorate([
23
- Column({ type: DataType.ARRAY(DataType.STRING), allowNull: false }),
24
- __metadata("design:type", Array)
25
- ], Exercise.prototype, "level", void 0);
26
- __decorate([
27
- Column({ type: DataType.BOOLEAN, allowNull: false }),
28
- __metadata("design:type", Boolean)
29
- ], Exercise.prototype, "hasPriority", void 0);
30
- __decorate([
31
- Column({ type: DataType.BOOLEAN, allowNull: false }),
32
- __metadata("design:type", Boolean)
33
- ], Exercise.prototype, "isCompound", void 0);
34
- __decorate([
35
- Column({ type: DataType.BOOLEAN, allowNull: false }),
36
- __metadata("design:type", Boolean)
37
- ], Exercise.prototype, "hasVariations", void 0);
38
- __decorate([
39
- Column({ type: DataType.BOOLEAN, allowNull: false }),
40
- __metadata("design:type", Boolean)
41
- ], Exercise.prototype, "needsEquipment", void 0);
42
- __decorate([
43
- Column({ type: DataType.JSONB, allowNull: false }),
44
- __metadata("design:type", Object)
45
- ], Exercise.prototype, "variations", void 0);
46
- __decorate([
47
- Column({ type: DataType.ARRAY(DataType.STRING), allowNull: false }),
48
- __metadata("design:type", Array)
49
- ], Exercise.prototype, "muscles", void 0);
50
- __decorate([
51
- Column({ type: DataType.STRING, allowNull: false }),
52
- __metadata("design:type", String)
53
- ], Exercise.prototype, "reps", void 0);
54
- __decorate([
55
- Column({ type: DataType.STRING, allowNull: false }),
56
- __metadata("design:type", String)
57
- ], Exercise.prototype, "sets", void 0);
58
- __decorate([
59
- Column({ type: DataType.INTEGER, allowNull: false }),
60
- __metadata("design:type", Number)
61
- ], Exercise.prototype, "order", void 0);
62
- __decorate([
63
- Column({ type: DataType.BOOLEAN, allowNull: false }),
64
- __metadata("design:type", Boolean)
65
- ], Exercise.prototype, "homeWorkout", void 0);
66
- Exercise = __decorate([
67
- Table
68
- ], Exercise);
69
- export { Exercise };
@@ -1,13 +0,0 @@
1
- import { Model } from "sequelize-typescript";
2
- export declare class ExerciseBlueprint extends Model {
3
- uuid: string;
4
- hasPriority: boolean;
5
- isCompound: boolean;
6
- needsEquipment: boolean;
7
- isSuperset: boolean;
8
- isFixed: boolean;
9
- muscle: string;
10
- rir: number;
11
- reps: string;
12
- sets: string;
13
- }
@@ -1,62 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- 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;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { Column, DataType, Default, Model, Table, } from "sequelize-typescript";
11
- let ExerciseBlueprint = class ExerciseBlueprint extends Model {
12
- };
13
- __decorate([
14
- Default(DataType.UUIDV4),
15
- Column({
16
- type: DataType.UUID,
17
- defaultValue: DataType.UUID,
18
- allowNull: false,
19
- primaryKey: true,
20
- }),
21
- __metadata("design:type", String)
22
- ], ExerciseBlueprint.prototype, "uuid", void 0);
23
- __decorate([
24
- Column({ type: DataType.BOOLEAN, allowNull: false }),
25
- __metadata("design:type", Boolean)
26
- ], ExerciseBlueprint.prototype, "hasPriority", void 0);
27
- __decorate([
28
- Column({ type: DataType.BOOLEAN, allowNull: false }),
29
- __metadata("design:type", Boolean)
30
- ], ExerciseBlueprint.prototype, "isCompound", void 0);
31
- __decorate([
32
- Column({ type: DataType.BOOLEAN, allowNull: false }),
33
- __metadata("design:type", Boolean)
34
- ], ExerciseBlueprint.prototype, "needsEquipment", void 0);
35
- __decorate([
36
- Column({ type: DataType.BOOLEAN, allowNull: false }),
37
- __metadata("design:type", Boolean)
38
- ], ExerciseBlueprint.prototype, "isSuperset", void 0);
39
- __decorate([
40
- Column({ type: DataType.BOOLEAN, allowNull: false }),
41
- __metadata("design:type", Boolean)
42
- ], ExerciseBlueprint.prototype, "isFixed", void 0);
43
- __decorate([
44
- Column({ type: DataType.STRING, allowNull: false }),
45
- __metadata("design:type", String)
46
- ], ExerciseBlueprint.prototype, "muscle", void 0);
47
- __decorate([
48
- Column({ type: DataType.INTEGER, allowNull: false }),
49
- __metadata("design:type", Number)
50
- ], ExerciseBlueprint.prototype, "rir", void 0);
51
- __decorate([
52
- Column({ type: DataType.STRING, allowNull: false }),
53
- __metadata("design:type", String)
54
- ], ExerciseBlueprint.prototype, "reps", void 0);
55
- __decorate([
56
- Column({ type: DataType.STRING, allowNull: false }),
57
- __metadata("design:type", String)
58
- ], ExerciseBlueprint.prototype, "sets", void 0);
59
- ExerciseBlueprint = __decorate([
60
- Table
61
- ], ExerciseBlueprint);
62
- export { ExerciseBlueprint };
@@ -1,15 +0,0 @@
1
- import { Model } from "sequelize-typescript";
2
- import type { 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
- }
@@ -1,66 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- 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;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { Column, DataType, Default, Model, Table } from "sequelize-typescript";
11
- let ExercisesModels = class ExercisesModels extends Model {
12
- };
13
- __decorate([
14
- Default(DataType.UUIDV4),
15
- Column({
16
- type: DataType.UUID,
17
- defaultValue: DataType.UUID,
18
- allowNull: false,
19
- primaryKey: true,
20
- }),
21
- __metadata("design:type", String)
22
- ], ExercisesModels.prototype, "uuid", void 0);
23
- __decorate([
24
- Column({ type: DataType.STRING, allowNull: false }),
25
- __metadata("design:type", String)
26
- ], ExercisesModels.prototype, "name", void 0);
27
- __decorate([
28
- Column({ type: DataType.ARRAY(DataType.STRING), allowNull: false }),
29
- __metadata("design:type", Array)
30
- ], ExercisesModels.prototype, "level", void 0);
31
- __decorate([
32
- Column({ type: DataType.BOOLEAN, allowNull: false }),
33
- __metadata("design:type", Boolean)
34
- ], ExercisesModels.prototype, "hasPriority", void 0);
35
- __decorate([
36
- Column({ type: DataType.BOOLEAN, allowNull: false }),
37
- __metadata("design:type", Boolean)
38
- ], ExercisesModels.prototype, "isCompound", void 0);
39
- __decorate([
40
- Column({ type: DataType.BOOLEAN, allowNull: false }),
41
- __metadata("design:type", Boolean)
42
- ], ExercisesModels.prototype, "hasVariations", void 0);
43
- __decorate([
44
- Column({ type: DataType.BOOLEAN, allowNull: false }),
45
- __metadata("design:type", Boolean)
46
- ], ExercisesModels.prototype, "needsEquipment", void 0);
47
- __decorate([
48
- Column({ type: DataType.JSONB, allowNull: false }),
49
- __metadata("design:type", Object)
50
- ], ExercisesModels.prototype, "variations", void 0);
51
- __decorate([
52
- Column({ type: DataType.JSONB, allowNull: false }),
53
- __metadata("design:type", Object)
54
- ], ExercisesModels.prototype, "variationIfNoVariations", void 0);
55
- __decorate([
56
- Column({ type: DataType.ARRAY(DataType.STRING), allowNull: false }),
57
- __metadata("design:type", Array)
58
- ], ExercisesModels.prototype, "muscles", void 0);
59
- __decorate([
60
- Column({ type: DataType.BOOLEAN, allowNull: false }),
61
- __metadata("design:type", Boolean)
62
- ], ExercisesModels.prototype, "homeWorkout", void 0);
63
- ExercisesModels = __decorate([
64
- Table
65
- ], ExercisesModels);
66
- export { ExercisesModels };
@@ -1,9 +0,0 @@
1
- import { Model } from "sequelize-typescript";
2
- export declare class ExerciseProgress extends Model<ExerciseProgress> {
3
- uuid: string;
4
- userUuid: string;
5
- exerciseUuid: string;
6
- reps: string;
7
- weight: string;
8
- date: Date;
9
- }
@@ -1,43 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- 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;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { Column, DataType, Default, ForeignKey, Model, Table } from "sequelize-typescript";
11
- import { PersistedUser } from "./PersistedUser";
12
- let ExerciseProgress = class ExerciseProgress extends Model {
13
- };
14
- __decorate([
15
- Default(DataType.UUIDV4),
16
- Column({ type: DataType.UUID, defaultValue: DataType.UUID, allowNull: false, primaryKey: true }),
17
- __metadata("design:type", String)
18
- ], ExerciseProgress.prototype, "uuid", void 0);
19
- __decorate([
20
- ForeignKey(() => PersistedUser),
21
- Column({ type: DataType.UUID, defaultValue: DataType.UUID, allowNull: false }),
22
- __metadata("design:type", String)
23
- ], ExerciseProgress.prototype, "userUuid", void 0);
24
- __decorate([
25
- Column({ type: DataType.TEXT, allowNull: false }),
26
- __metadata("design:type", String)
27
- ], ExerciseProgress.prototype, "exerciseUuid", void 0);
28
- __decorate([
29
- Column({ type: DataType.TEXT, allowNull: false }),
30
- __metadata("design:type", String)
31
- ], ExerciseProgress.prototype, "reps", void 0);
32
- __decorate([
33
- Column({ type: DataType.TEXT, allowNull: false }),
34
- __metadata("design:type", String)
35
- ], ExerciseProgress.prototype, "weight", void 0);
36
- __decorate([
37
- Column({ type: DataType.DATE, allowNull: false }),
38
- __metadata("design:type", Date)
39
- ], ExerciseProgress.prototype, "date", void 0);
40
- ExerciseProgress = __decorate([
41
- Table
42
- ], ExerciseProgress);
43
- export { ExerciseProgress };
@@ -1,7 +0,0 @@
1
- import { Model } from "sequelize-typescript";
2
- export declare class ForgotPasswordTokens extends Model<ForgotPasswordTokens> {
3
- uuid: string;
4
- userUuid: string;
5
- token: string;
6
- date: Date;
7
- }
@@ -1,33 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- 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;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { Column, DataType, Default, Model, Table } from "sequelize-typescript";
11
- let ForgotPasswordTokens = class ForgotPasswordTokens extends Model {
12
- };
13
- __decorate([
14
- Default(DataType.UUIDV4),
15
- Column({ type: DataType.UUID, defaultValue: DataType.UUID, allowNull: false, primaryKey: true }),
16
- __metadata("design:type", String)
17
- ], ForgotPasswordTokens.prototype, "uuid", void 0);
18
- __decorate([
19
- Column({ type: DataType.UUID, allowNull: false }),
20
- __metadata("design:type", String)
21
- ], ForgotPasswordTokens.prototype, "userUuid", void 0);
22
- __decorate([
23
- Column({ type: DataType.TEXT, allowNull: false }),
24
- __metadata("design:type", String)
25
- ], ForgotPasswordTokens.prototype, "token", void 0);
26
- __decorate([
27
- Column({ type: DataType.DATE, allowNull: false }),
28
- __metadata("design:type", Date)
29
- ], ForgotPasswordTokens.prototype, "date", void 0);
30
- ForgotPasswordTokens = __decorate([
31
- Table
32
- ], ForgotPasswordTokens);
33
- export { ForgotPasswordTokens };
@@ -1,24 +0,0 @@
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
- }
@@ -1,96 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- 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;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { Column, DataType, Default, HasMany, HasOne, Model, Table } from "sequelize-typescript";
11
- import { Program } from "./Program";
12
- import { UserInfo } from "./UserInfo";
13
- import { UserProgressPhoto } from "./UserProgressPhoto";
14
- let PersistedUser = class PersistedUser extends Model {
15
- };
16
- __decorate([
17
- Default(DataType.UUIDV4),
18
- Column({ type: DataType.UUID, defaultValue: DataType.UUID, allowNull: false, primaryKey: true }),
19
- __metadata("design:type", String)
20
- ], PersistedUser.prototype, "userUuid", void 0);
21
- __decorate([
22
- Column({ type: DataType.TEXT, allowNull: false, unique: true }),
23
- __metadata("design:type", String)
24
- ], PersistedUser.prototype, "email", void 0);
25
- __decorate([
26
- Column({ type: DataType.TEXT, allowNull: false }),
27
- __metadata("design:type", String)
28
- ], PersistedUser.prototype, "password", void 0);
29
- __decorate([
30
- Column({ type: DataType.TEXT, allowNull: true }),
31
- __metadata("design:type", String)
32
- ], PersistedUser.prototype, "firstName", void 0);
33
- __decorate([
34
- Column({ type: DataType.TEXT, allowNull: true }),
35
- __metadata("design:type", String)
36
- ], PersistedUser.prototype, "lastName", void 0);
37
- __decorate([
38
- Column({ type: DataType.TEXT, allowNull: true }),
39
- __metadata("design:type", String)
40
- ], PersistedUser.prototype, "avatar", void 0);
41
- __decorate([
42
- Column({ type: DataType.TEXT, allowNull: true }),
43
- __metadata("design:type", String)
44
- ], PersistedUser.prototype, "sex", void 0);
45
- __decorate([
46
- Column({ type: DataType.TEXT, allowNull: true }),
47
- __metadata("design:type", String)
48
- ], PersistedUser.prototype, "goal", void 0);
49
- __decorate([
50
- Column({ type: DataType.TEXT, allowNull: true }),
51
- __metadata("design:type", String)
52
- ], PersistedUser.prototype, "weightGoal", void 0);
53
- __decorate([
54
- Column({ type: DataType.TEXT, allowNull: true }),
55
- __metadata("design:type", String)
56
- ], PersistedUser.prototype, "level", void 0);
57
- __decorate([
58
- Column({ type: DataType.TEXT, allowNull: true }),
59
- __metadata("design:type", String)
60
- ], PersistedUser.prototype, "type", void 0);
61
- __decorate([
62
- Column({ type: DataType.TEXT, allowNull: true }),
63
- __metadata("design:type", Number)
64
- ], PersistedUser.prototype, "days", void 0);
65
- __decorate([
66
- Column({ type: DataType.TEXT, allowNull: true }),
67
- __metadata("design:type", String)
68
- ], PersistedUser.prototype, "dateOfBirth", void 0);
69
- __decorate([
70
- Column({ type: DataType.TEXT, allowNull: true }),
71
- __metadata("design:type", String)
72
- ], PersistedUser.prototype, "metricSystem", void 0);
73
- __decorate([
74
- Column({ type: DataType.TEXT, allowNull: true }),
75
- __metadata("design:type", String)
76
- ], PersistedUser.prototype, "height", void 0);
77
- __decorate([
78
- Column({ type: DataType.TEXT, allowNull: true }),
79
- __metadata("design:type", String)
80
- ], PersistedUser.prototype, "weight", void 0);
81
- __decorate([
82
- HasOne(() => Program, { foreignKey: "userUuid" }),
83
- __metadata("design:type", Program)
84
- ], PersistedUser.prototype, "program", void 0);
85
- __decorate([
86
- HasOne(() => UserInfo, { foreignKey: "userUuid" }),
87
- __metadata("design:type", UserInfo)
88
- ], PersistedUser.prototype, "userInfo", void 0);
89
- __decorate([
90
- HasMany(() => UserProgressPhoto, { foreignKey: "userUuid" }),
91
- __metadata("design:type", Array)
92
- ], PersistedUser.prototype, "progressPhotos", void 0);
93
- PersistedUser = __decorate([
94
- Table
95
- ], PersistedUser);
96
- export { PersistedUser };
@@ -1,8 +0,0 @@
1
- import { Workout } from "./Workout";
2
- import { Model } from "sequelize-typescript";
3
- import type { ProgramModel } from "../../models/ProgramInterfaces";
4
- export declare class Program extends Model implements ProgramModel {
5
- programId: string;
6
- userUuid: string;
7
- workout: Workout[];
8
- }
@@ -1,30 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- 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;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { Workout } from "./Workout";
11
- import { Column, DataType, Default, HasMany, Model, Table } from "sequelize-typescript";
12
- let Program = class Program extends Model {
13
- };
14
- __decorate([
15
- Default(DataType.UUIDV4),
16
- Column({ type: DataType.UUID, defaultValue: DataType.UUID, allowNull: false, primaryKey: true }),
17
- __metadata("design:type", String)
18
- ], Program.prototype, "programId", void 0);
19
- __decorate([
20
- Column({ type: DataType.UUID, allowNull: false }),
21
- __metadata("design:type", String)
22
- ], Program.prototype, "userUuid", void 0);
23
- __decorate([
24
- HasMany(() => Workout, { foreignKey: "programId" }),
25
- __metadata("design:type", Array)
26
- ], Program.prototype, "workout", void 0);
27
- Program = __decorate([
28
- Table
29
- ], Program);
30
- export { Program };
@@ -1,11 +0,0 @@
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
- }
@@ -1,51 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- 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;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { Column, DataType, Default, HasMany, Model, Table, } from "sequelize-typescript";
11
- import { ExerciseBlueprint } from "./ExerciseBlueprint";
12
- let ProgramBlueprint = class ProgramBlueprint extends Model {
13
- };
14
- __decorate([
15
- Default(DataType.UUIDV4),
16
- Column({
17
- type: DataType.UUID,
18
- defaultValue: DataType.UUID,
19
- allowNull: false,
20
- primaryKey: true,
21
- }),
22
- __metadata("design:type", String)
23
- ], ProgramBlueprint.prototype, "programId", void 0);
24
- __decorate([
25
- Column({ type: DataType.TEXT, allowNull: false, unique: true }),
26
- __metadata("design:type", String)
27
- ], ProgramBlueprint.prototype, "title", void 0);
28
- __decorate([
29
- Column({ type: DataType.TEXT, allowNull: false }),
30
- __metadata("design:type", String)
31
- ], ProgramBlueprint.prototype, "level", void 0);
32
- __decorate([
33
- Column({ type: DataType.INTEGER, allowNull: false }),
34
- __metadata("design:type", Number)
35
- ], ProgramBlueprint.prototype, "numberOfDays", void 0);
36
- __decorate([
37
- Column({ type: DataType.INTEGER, allowNull: false }),
38
- __metadata("design:type", Number)
39
- ], ProgramBlueprint.prototype, "exercisesPerWorkout", void 0);
40
- __decorate([
41
- Column({ type: DataType.ARRAY(DataType.JSONB), allowNull: false }),
42
- __metadata("design:type", Array)
43
- ], ProgramBlueprint.prototype, "workoutNames", void 0);
44
- __decorate([
45
- HasMany(() => ExerciseBlueprint, { foreignKey: "programId" }),
46
- __metadata("design:type", Array)
47
- ], ProgramBlueprint.prototype, "exercises", void 0);
48
- ProgramBlueprint = __decorate([
49
- Table
50
- ], ProgramBlueprint);
51
- export { ProgramBlueprint };
@@ -1,4 +0,0 @@
1
- import { Model } from "sequelize-typescript";
2
- export declare class RefreshToken extends Model<RefreshToken> {
3
- refreshToken: string;
4
- }
@@ -1,20 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- 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;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { Column, DataType, Model, Table } from "sequelize-typescript";
11
- let RefreshToken = class RefreshToken extends Model {
12
- };
13
- __decorate([
14
- Column({ type: DataType.TEXT, allowNull: false }),
15
- __metadata("design:type", String)
16
- ], RefreshToken.prototype, "refreshToken", void 0);
17
- RefreshToken = __decorate([
18
- Table
19
- ], RefreshToken);
20
- export { RefreshToken };
@@ -1,6 +0,0 @@
1
- import { Exercise } from "./Exercise";
2
- import { Model } from "sequelize-typescript";
3
- export declare class Superset extends Model {
4
- uuid: string;
5
- exercise: Exercise[];
6
- }
@@ -1,27 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- 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;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { Exercise } from "./Exercise";
11
- import { SupersetExercise } from "./SupersetExercise";
12
- import { BelongsToMany, Column, DataType, Default, Model, Table } from "sequelize-typescript";
13
- let Superset = class Superset extends Model {
14
- };
15
- __decorate([
16
- Default(DataType.UUIDV4),
17
- Column({ type: DataType.UUID, defaultValue: DataType.UUID, allowNull: false, primaryKey: true }),
18
- __metadata("design:type", String)
19
- ], Superset.prototype, "uuid", void 0);
20
- __decorate([
21
- BelongsToMany(() => Exercise, () => SupersetExercise),
22
- __metadata("design:type", Array)
23
- ], Superset.prototype, "exercise", void 0);
24
- Superset = __decorate([
25
- Table
26
- ], Superset);
27
- export { Superset };
@@ -1,5 +0,0 @@
1
- import { Model } from "sequelize-typescript";
2
- export declare class SupersetExercise extends Model {
3
- SupersetUuid: string;
4
- ExerciseUuid: string;
5
- }
@@ -1,44 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- 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;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { Exercise } from "./Exercise";
11
- import { Superset } from "./Superset";
12
- import { Column, DataType, ForeignKey, Model, Table } from "sequelize-typescript";
13
- let SupersetExercise = class SupersetExercise extends Model {
14
- };
15
- __decorate([
16
- ForeignKey(() => Superset),
17
- Column({
18
- type: DataType.UUID,
19
- allowNull: false,
20
- primaryKey: true,
21
- references: {
22
- model: "Superset",
23
- key: 'uuid'
24
- }
25
- }),
26
- __metadata("design:type", String)
27
- ], SupersetExercise.prototype, "SupersetUuid", void 0);
28
- __decorate([
29
- ForeignKey(() => Exercise),
30
- Column({
31
- type: DataType.UUID,
32
- allowNull: false,
33
- primaryKey: true,
34
- references: {
35
- model: "Exercise",
36
- key: 'uuid',
37
- }
38
- }),
39
- __metadata("design:type", String)
40
- ], SupersetExercise.prototype, "ExerciseUuid", void 0);
41
- SupersetExercise = __decorate([
42
- Table
43
- ], SupersetExercise);
44
- export { SupersetExercise };
@@ -1,8 +0,0 @@
1
- import { Model } from "sequelize-typescript";
2
- export declare class UserInfo extends Model {
3
- userUuid: string;
4
- height: string;
5
- weight: string;
6
- beforePhoto: string;
7
- afterPhoto: string;
8
- }
@@ -1,37 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- 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;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { Column, DataType, Default, Model, Table } from "sequelize-typescript";
11
- let UserInfo = class UserInfo extends Model {
12
- };
13
- __decorate([
14
- Default(DataType.UUIDV4),
15
- Column({ type: DataType.UUID, defaultValue: DataType.UUID, allowNull: false, primaryKey: true }),
16
- __metadata("design:type", String)
17
- ], UserInfo.prototype, "userUuid", void 0);
18
- __decorate([
19
- Column({ type: DataType.TEXT, allowNull: false }),
20
- __metadata("design:type", String)
21
- ], UserInfo.prototype, "height", void 0);
22
- __decorate([
23
- Column({ type: DataType.TEXT, allowNull: false }),
24
- __metadata("design:type", String)
25
- ], UserInfo.prototype, "weight", void 0);
26
- __decorate([
27
- Column({ type: DataType.TEXT, allowNull: true }),
28
- __metadata("design:type", String)
29
- ], UserInfo.prototype, "beforePhoto", void 0);
30
- __decorate([
31
- Column({ type: DataType.TEXT, allowNull: true }),
32
- __metadata("design:type", String)
33
- ], UserInfo.prototype, "afterPhoto", void 0);
34
- UserInfo = __decorate([
35
- Table
36
- ], UserInfo);
37
- export { UserInfo };
@@ -1,7 +0,0 @@
1
- import { Model } from "sequelize-typescript";
2
- export declare class UserProgressPhoto extends Model {
3
- uuid: string;
4
- userUuid: string;
5
- progressPhoto: string;
6
- date: Date;
7
- }
@@ -1,34 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- 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;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { PersistedUser } from "./PersistedUser";
11
- import { Column, DataType, ForeignKey, Model, Table } from "sequelize-typescript";
12
- let UserProgressPhoto = class UserProgressPhoto extends Model {
13
- };
14
- __decorate([
15
- Column({ type: DataType.UUID, defaultValue: DataType.UUID, allowNull: false, primaryKey: true }),
16
- __metadata("design:type", String)
17
- ], UserProgressPhoto.prototype, "uuid", void 0);
18
- __decorate([
19
- ForeignKey(() => PersistedUser),
20
- Column({ type: DataType.UUID, defaultValue: DataType.UUID, allowNull: false }),
21
- __metadata("design:type", String)
22
- ], UserProgressPhoto.prototype, "userUuid", void 0);
23
- __decorate([
24
- Column({ type: DataType.TEXT, allowNull: true }),
25
- __metadata("design:type", String)
26
- ], UserProgressPhoto.prototype, "progressPhoto", void 0);
27
- __decorate([
28
- Column({ type: DataType.DATE, allowNull: false }),
29
- __metadata("design:type", Date)
30
- ], UserProgressPhoto.prototype, "date", void 0);
31
- UserProgressPhoto = __decorate([
32
- Table
33
- ], UserProgressPhoto);
34
- export { UserProgressPhoto };
@@ -1,11 +0,0 @@
1
- import { Exercise } from "./Exercise";
2
- import { Superset } from "./Superset";
3
- import { Model } from "sequelize-typescript";
4
- import type { WorkoutModel } from "../../models/WorkoutInterfaces";
5
- export declare class Workout extends Model implements WorkoutModel {
6
- uuid: string;
7
- isFinished: boolean;
8
- info: object;
9
- exercise: Exercise[];
10
- superset: Superset[];
11
- }
@@ -1,45 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- 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;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { Exercise } from "./Exercise";
11
- import { WorkoutExercise } from "./WorkoutExercise";
12
- import { Superset } from "./Superset";
13
- import { BelongsToMany, Column, DataType, Default, HasMany, Model, Table, } from "sequelize-typescript";
14
- let Workout = class Workout extends Model {
15
- };
16
- __decorate([
17
- Default(DataType.UUIDV4),
18
- Column({
19
- type: DataType.UUID,
20
- defaultValue: DataType.UUID,
21
- allowNull: false,
22
- primaryKey: true,
23
- }),
24
- __metadata("design:type", String)
25
- ], Workout.prototype, "uuid", void 0);
26
- __decorate([
27
- Column({ type: DataType.BOOLEAN, allowNull: false }),
28
- __metadata("design:type", Boolean)
29
- ], Workout.prototype, "isFinished", void 0);
30
- __decorate([
31
- Column({ type: DataType.JSONB, allowNull: false }),
32
- __metadata("design:type", Object)
33
- ], Workout.prototype, "info", void 0);
34
- __decorate([
35
- BelongsToMany(() => Exercise, () => WorkoutExercise),
36
- __metadata("design:type", Array)
37
- ], Workout.prototype, "exercise", void 0);
38
- __decorate([
39
- HasMany(() => Superset, { foreignKey: "uuid" }),
40
- __metadata("design:type", Array)
41
- ], Workout.prototype, "superset", void 0);
42
- Workout = __decorate([
43
- Table
44
- ], Workout);
45
- export { Workout };
@@ -1,6 +0,0 @@
1
- import { Model } from "sequelize-typescript";
2
- import type { WorkoutExerciseModel } from "../../models/WorkoutInterfaces";
3
- export declare class WorkoutExercise extends Model<WorkoutExercise> implements WorkoutExerciseModel {
4
- WorkoutUuid: string;
5
- ExerciseUuid: string;
6
- }
@@ -1,44 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- 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;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { Workout } from "./Workout";
11
- import { Exercise } from "./Exercise";
12
- import { Column, DataType, ForeignKey, Model, Table } from "sequelize-typescript";
13
- let WorkoutExercise = class WorkoutExercise extends Model {
14
- };
15
- __decorate([
16
- ForeignKey(() => Workout),
17
- Column({
18
- type: DataType.UUID,
19
- allowNull: false,
20
- primaryKey: true,
21
- references: {
22
- model: "Workout",
23
- key: 'uuid'
24
- }
25
- }),
26
- __metadata("design:type", String)
27
- ], WorkoutExercise.prototype, "WorkoutUuid", void 0);
28
- __decorate([
29
- ForeignKey(() => Exercise),
30
- Column({
31
- type: DataType.UUID,
32
- allowNull: false,
33
- primaryKey: true,
34
- references: {
35
- model: "Exercise",
36
- key: 'uuid',
37
- }
38
- }),
39
- __metadata("design:type", String)
40
- ], WorkoutExercise.prototype, "ExerciseUuid", void 0);
41
- WorkoutExercise = __decorate([
42
- Table
43
- ], WorkoutExercise);
44
- export { WorkoutExercise };
@@ -1,20 +0,0 @@
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
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,16 +0,0 @@
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
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,75 +0,0 @@
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
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,15 +0,0 @@
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
- }
@@ -1 +0,0 @@
1
- export {};