90dc-core 1.0.12 → 1.1.0

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/build/index.d.ts +18 -0
  2. package/build/index.js +18 -34
  3. package/build/lib/db/models/Exercise.d.ts +17 -0
  4. package/build/lib/db/models/Exercise.js +18 -21
  5. package/build/lib/db/models/ExerciseBlueprint.d.ts +15 -0
  6. package/build/lib/db/models/ExerciseBlueprint.js +20 -23
  7. package/build/lib/db/models/ExerciseModels.d.ts +15 -0
  8. package/build/lib/db/models/ExerciseModels.js +18 -21
  9. package/build/lib/db/models/ExerciseProgress.d.ts +9 -0
  10. package/build/lib/db/models/ExerciseProgress.js +13 -16
  11. package/build/lib/db/models/ForgotPasswordTokens.d.ts +7 -0
  12. package/build/lib/db/models/ForgotPasswordTokens.js +9 -12
  13. package/build/lib/db/models/PersistedUser.d.ts +24 -0
  14. package/build/lib/db/models/PersistedUser.js +29 -32
  15. package/build/lib/db/models/Program.d.ts +10 -0
  16. package/build/lib/db/models/Program.js +12 -15
  17. package/build/lib/db/models/ProgramBlueprint.d.ts +11 -0
  18. package/build/lib/db/models/ProgramBlueprint.js +15 -18
  19. package/build/lib/db/models/RefreshToken.d.ts +4 -0
  20. package/build/lib/db/models/RefreshToken.js +5 -8
  21. package/build/lib/db/models/Superset.d.ts +9 -0
  22. package/build/lib/db/models/Superset.js +12 -15
  23. package/build/lib/db/models/SupersetExercise.d.ts +6 -0
  24. package/build/lib/db/models/SupersetExercise.js +14 -17
  25. package/build/lib/db/models/UserInfo.d.ts +10 -0
  26. package/build/lib/db/models/UserInfo.js +13 -16
  27. package/build/lib/db/models/UserProgressPhoto.d.ts +9 -0
  28. package/build/lib/db/models/UserProgressPhoto.js +12 -15
  29. package/build/lib/db/models/Workout.d.ts +13 -0
  30. package/build/lib/db/models/Workout.js +19 -22
  31. package/build/lib/db/models/WorkoutExercise.d.ts +6 -0
  32. package/build/lib/db/models/WorkoutExercise.js +12 -15
  33. package/build/lib/models/ExerciseInterfaces.d.ts +20 -0
  34. package/build/lib/models/ExerciseInterfaces.js +1 -2
  35. package/build/lib/models/ProgramInterfaces.d.ts +16 -0
  36. package/build/lib/models/ProgramInterfaces.js +1 -2
  37. package/build/lib/models/UserInterfaces.d.ts +75 -0
  38. package/build/lib/models/UserInterfaces.js +1 -2
  39. package/build/lib/models/WorkoutInterfaces.d.ts +15 -0
  40. package/build/lib/models/WorkoutInterfaces.js +1 -2
  41. package/package.json +1 -1
@@ -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 CHANGED
@@ -1,36 +1,20 @@
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
1
  //Interfaces
18
- __exportStar(require("./lib/models/ProgramInterfaces"), exports);
19
- __exportStar(require("./lib/models/ExerciseInterfaces"), exports);
20
- __exportStar(require("./lib/models/WorkoutInterfaces"), exports);
2
+ export * from "./lib/models/ProgramInterfaces";
3
+ export * from "./lib/models/ExerciseInterfaces";
4
+ export * from "./lib/models/WorkoutInterfaces";
21
5
  //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);
6
+ export * from "./lib/db/models/Exercise";
7
+ export * from "./lib/db/models/ExerciseModels";
8
+ export * from "./lib/db/models/ExerciseBlueprint";
9
+ export * from "./lib/db/models/ExerciseProgress";
10
+ export * from "./lib/db/models/ForgotPasswordTokens";
11
+ export * from "./lib/db/models/PersistedUser";
12
+ export * from "./lib/db/models/Program";
13
+ export * from "./lib/db/models/ProgramBlueprint";
14
+ export * from "./lib/db/models/RefreshToken";
15
+ export * from "./lib/db/models/Superset";
16
+ export * from "./lib/db/models/SupersetExercise";
17
+ export * from "./lib/db/models/UserInfo";
18
+ export * from "./lib/db/models/UserProgressPhoto";
19
+ export * from "./lib/db/models/Workout";
20
+ export * from "./lib/db/models/WorkoutExercise";
@@ -0,0 +1,17 @@
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,4 +1,3 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -8,65 +7,63 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
7
  var __metadata = (this && this.__metadata) || function (k, v) {
9
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
9
  };
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 {
10
+ import { Column, DataType, Default, Model, Table } from "sequelize-typescript";
11
+ let Exercise = class Exercise extends Model {
15
12
  };
16
13
  __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 }),
14
+ Default(DataType.UUIDV4),
15
+ Column({ type: DataType.UUID, defaultValue: DataType.UUID, allowNull: false, primaryKey: true }),
19
16
  __metadata("design:type", String)
20
17
  ], Exercise.prototype, "uuid", void 0);
21
18
  __decorate([
22
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.STRING, allowNull: false }),
19
+ Column({ type: DataType.STRING, allowNull: false }),
23
20
  __metadata("design:type", String)
24
21
  ], Exercise.prototype, "name", void 0);
25
22
  __decorate([
26
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.ARRAY(sequelize_typescript_1.DataType.STRING), allowNull: false }),
23
+ Column({ type: DataType.ARRAY(DataType.STRING), allowNull: false }),
27
24
  __metadata("design:type", Array)
28
25
  ], Exercise.prototype, "level", void 0);
29
26
  __decorate([
30
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.BOOLEAN, allowNull: false }),
27
+ Column({ type: DataType.BOOLEAN, allowNull: false }),
31
28
  __metadata("design:type", Boolean)
32
29
  ], Exercise.prototype, "hasPriority", void 0);
33
30
  __decorate([
34
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.BOOLEAN, allowNull: false }),
31
+ Column({ type: DataType.BOOLEAN, allowNull: false }),
35
32
  __metadata("design:type", Boolean)
36
33
  ], Exercise.prototype, "isCompound", void 0);
37
34
  __decorate([
38
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.BOOLEAN, allowNull: false }),
35
+ Column({ type: DataType.BOOLEAN, allowNull: false }),
39
36
  __metadata("design:type", Boolean)
40
37
  ], Exercise.prototype, "hasVariations", void 0);
41
38
  __decorate([
42
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.BOOLEAN, allowNull: false }),
39
+ Column({ type: DataType.BOOLEAN, allowNull: false }),
43
40
  __metadata("design:type", Boolean)
44
41
  ], Exercise.prototype, "needsEquipment", void 0);
45
42
  __decorate([
46
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.JSONB, allowNull: false }),
43
+ Column({ type: DataType.JSONB, allowNull: false }),
47
44
  __metadata("design:type", Object)
48
45
  ], Exercise.prototype, "variations", void 0);
49
46
  __decorate([
50
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.ARRAY(sequelize_typescript_1.DataType.STRING), allowNull: false }),
47
+ Column({ type: DataType.ARRAY(DataType.STRING), allowNull: false }),
51
48
  __metadata("design:type", Array)
52
49
  ], Exercise.prototype, "muscles", void 0);
53
50
  __decorate([
54
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.STRING, allowNull: false }),
51
+ Column({ type: DataType.STRING, allowNull: false }),
55
52
  __metadata("design:type", String)
56
53
  ], Exercise.prototype, "reps", void 0);
57
54
  __decorate([
58
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.STRING, allowNull: false }),
55
+ Column({ type: DataType.STRING, allowNull: false }),
59
56
  __metadata("design:type", String)
60
57
  ], Exercise.prototype, "sets", void 0);
61
58
  __decorate([
62
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.INTEGER, allowNull: false }),
59
+ Column({ type: DataType.INTEGER, allowNull: false }),
63
60
  __metadata("design:type", Number)
64
61
  ], Exercise.prototype, "order", void 0);
65
62
  __decorate([
66
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.BOOLEAN, allowNull: false }),
63
+ Column({ type: DataType.BOOLEAN, allowNull: false }),
67
64
  __metadata("design:type", Boolean)
68
65
  ], Exercise.prototype, "homeWorkout", void 0);
69
66
  Exercise = __decorate([
70
- sequelize_typescript_1.Table
67
+ Table
71
68
  ], Exercise);
72
- exports.Exercise = Exercise;
69
+ export { 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
+ }
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -8,63 +7,61 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
7
  var __metadata = (this && this.__metadata) || function (k, v) {
9
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
9
  };
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 {
10
+ import { BelongsTo, Column, DataType, Default, Model, Table, } from "sequelize-typescript";
11
+ import { ProgramBlueprint } from "./ProgramBlueprint";
12
+ let ExerciseBlueprint = class ExerciseBlueprint extends Model {
16
13
  };
17
14
  __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,
15
+ Default(DataType.UUIDV4),
16
+ Column({
17
+ type: DataType.UUID,
18
+ defaultValue: DataType.UUID,
22
19
  allowNull: false,
23
20
  primaryKey: true,
24
21
  }),
25
22
  __metadata("design:type", String)
26
23
  ], ExerciseBlueprint.prototype, "uuid", void 0);
27
24
  __decorate([
28
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.BOOLEAN, allowNull: false }),
25
+ Column({ type: DataType.BOOLEAN, allowNull: false }),
29
26
  __metadata("design:type", Boolean)
30
27
  ], ExerciseBlueprint.prototype, "hasPriority", void 0);
31
28
  __decorate([
32
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.BOOLEAN, allowNull: false }),
29
+ Column({ type: DataType.BOOLEAN, allowNull: false }),
33
30
  __metadata("design:type", Boolean)
34
31
  ], ExerciseBlueprint.prototype, "isCompound", void 0);
35
32
  __decorate([
36
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.BOOLEAN, allowNull: false }),
33
+ Column({ type: DataType.BOOLEAN, allowNull: false }),
37
34
  __metadata("design:type", Boolean)
38
35
  ], ExerciseBlueprint.prototype, "needsEquipment", void 0);
39
36
  __decorate([
40
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.BOOLEAN, allowNull: false }),
37
+ Column({ type: DataType.BOOLEAN, allowNull: false }),
41
38
  __metadata("design:type", Boolean)
42
39
  ], ExerciseBlueprint.prototype, "isSuperset", void 0);
43
40
  __decorate([
44
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.BOOLEAN, allowNull: false }),
41
+ Column({ type: DataType.BOOLEAN, allowNull: false }),
45
42
  __metadata("design:type", Boolean)
46
43
  ], ExerciseBlueprint.prototype, "isFixed", void 0);
47
44
  __decorate([
48
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.STRING, allowNull: false }),
45
+ Column({ type: DataType.STRING, allowNull: false }),
49
46
  __metadata("design:type", String)
50
47
  ], ExerciseBlueprint.prototype, "muscle", void 0);
51
48
  __decorate([
52
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.INTEGER, allowNull: false }),
49
+ Column({ type: DataType.INTEGER, allowNull: false }),
53
50
  __metadata("design:type", Number)
54
51
  ], ExerciseBlueprint.prototype, "rir", void 0);
55
52
  __decorate([
56
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.STRING, allowNull: false }),
53
+ Column({ type: DataType.STRING, allowNull: false }),
57
54
  __metadata("design:type", String)
58
55
  ], ExerciseBlueprint.prototype, "reps", void 0);
59
56
  __decorate([
60
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.STRING, allowNull: false }),
57
+ Column({ type: DataType.STRING, allowNull: false }),
61
58
  __metadata("design:type", String)
62
59
  ], ExerciseBlueprint.prototype, "sets", void 0);
63
60
  __decorate([
64
- (0, sequelize_typescript_1.BelongsTo)(() => ProgramBlueprint_1.ProgramBlueprint, { foreignKey: "programId" }),
65
- __metadata("design:type", ProgramBlueprint_1.ProgramBlueprint)
61
+ BelongsTo(() => ProgramBlueprint, { foreignKey: "programId" }),
62
+ __metadata("design:type", ProgramBlueprint)
66
63
  ], ExerciseBlueprint.prototype, "program", void 0);
67
64
  ExerciseBlueprint = __decorate([
68
- sequelize_typescript_1.Table
65
+ Table
69
66
  ], ExerciseBlueprint);
70
- exports.ExerciseBlueprint = ExerciseBlueprint;
67
+ export { ExerciseBlueprint };
@@ -0,0 +1,15 @@
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,4 +1,3 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -8,62 +7,60 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
7
  var __metadata = (this && this.__metadata) || function (k, v) {
9
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
9
  };
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 {
10
+ import { Column, DataType, Default, Model, Table } from "sequelize-typescript";
11
+ let ExercisesModels = class ExercisesModels extends Model {
15
12
  };
16
13
  __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,
14
+ Default(DataType.UUIDV4),
15
+ Column({
16
+ type: DataType.UUID,
17
+ defaultValue: DataType.UUID,
21
18
  allowNull: false,
22
19
  primaryKey: true,
23
20
  }),
24
21
  __metadata("design:type", String)
25
22
  ], ExercisesModels.prototype, "uuid", void 0);
26
23
  __decorate([
27
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.STRING, allowNull: false }),
24
+ Column({ type: DataType.STRING, allowNull: false }),
28
25
  __metadata("design:type", String)
29
26
  ], ExercisesModels.prototype, "name", void 0);
30
27
  __decorate([
31
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.ARRAY(sequelize_typescript_1.DataType.STRING), allowNull: false }),
28
+ Column({ type: DataType.ARRAY(DataType.STRING), allowNull: false }),
32
29
  __metadata("design:type", Array)
33
30
  ], ExercisesModels.prototype, "level", void 0);
34
31
  __decorate([
35
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.BOOLEAN, allowNull: false }),
32
+ Column({ type: DataType.BOOLEAN, allowNull: false }),
36
33
  __metadata("design:type", Boolean)
37
34
  ], ExercisesModels.prototype, "hasPriority", void 0);
38
35
  __decorate([
39
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.BOOLEAN, allowNull: false }),
36
+ Column({ type: DataType.BOOLEAN, allowNull: false }),
40
37
  __metadata("design:type", Boolean)
41
38
  ], ExercisesModels.prototype, "isCompound", void 0);
42
39
  __decorate([
43
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.BOOLEAN, allowNull: false }),
40
+ Column({ type: DataType.BOOLEAN, allowNull: false }),
44
41
  __metadata("design:type", Boolean)
45
42
  ], ExercisesModels.prototype, "hasVariations", void 0);
46
43
  __decorate([
47
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.BOOLEAN, allowNull: false }),
44
+ Column({ type: DataType.BOOLEAN, allowNull: false }),
48
45
  __metadata("design:type", Boolean)
49
46
  ], ExercisesModels.prototype, "needsEquipment", void 0);
50
47
  __decorate([
51
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.JSONB, allowNull: false }),
48
+ Column({ type: DataType.JSONB, allowNull: false }),
52
49
  __metadata("design:type", Object)
53
50
  ], ExercisesModels.prototype, "variations", void 0);
54
51
  __decorate([
55
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.JSONB, allowNull: false }),
52
+ Column({ type: DataType.JSONB, allowNull: false }),
56
53
  __metadata("design:type", Object)
57
54
  ], ExercisesModels.prototype, "variationIfNoVariations", void 0);
58
55
  __decorate([
59
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.ARRAY(sequelize_typescript_1.DataType.STRING), allowNull: false }),
56
+ Column({ type: DataType.ARRAY(DataType.STRING), allowNull: false }),
60
57
  __metadata("design:type", Array)
61
58
  ], ExercisesModels.prototype, "muscles", void 0);
62
59
  __decorate([
63
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.BOOLEAN, allowNull: false }),
60
+ Column({ type: DataType.BOOLEAN, allowNull: false }),
64
61
  __metadata("design:type", Boolean)
65
62
  ], ExercisesModels.prototype, "homeWorkout", void 0);
66
63
  ExercisesModels = __decorate([
67
- sequelize_typescript_1.Table
64
+ Table
68
65
  ], ExercisesModels);
69
- exports.ExercisesModels = ExercisesModels;
66
+ export { ExercisesModels };
@@ -0,0 +1,9 @@
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,4 +1,3 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -8,39 +7,37 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
7
  var __metadata = (this && this.__metadata) || function (k, v) {
9
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
9
  };
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 {
10
+ import { Column, DataType, Default, ForeignKey, Model, Table } from "sequelize-typescript";
11
+ import { PersistedUser } from "./PersistedUser";
12
+ let ExerciseProgress = class ExerciseProgress extends Model {
16
13
  };
17
14
  __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 }),
15
+ Default(DataType.UUIDV4),
16
+ Column({ type: DataType.UUID, defaultValue: DataType.UUID, allowNull: false, primaryKey: true }),
20
17
  __metadata("design:type", String)
21
18
  ], ExerciseProgress.prototype, "uuid", void 0);
22
19
  __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 }),
20
+ ForeignKey(() => PersistedUser),
21
+ Column({ type: DataType.UUID, defaultValue: DataType.UUID, allowNull: false }),
25
22
  __metadata("design:type", String)
26
23
  ], ExerciseProgress.prototype, "userUuid", void 0);
27
24
  __decorate([
28
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: false }),
25
+ Column({ type: DataType.TEXT, allowNull: false }),
29
26
  __metadata("design:type", String)
30
27
  ], ExerciseProgress.prototype, "exerciseUuid", void 0);
31
28
  __decorate([
32
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: false }),
29
+ Column({ type: DataType.TEXT, allowNull: false }),
33
30
  __metadata("design:type", String)
34
31
  ], ExerciseProgress.prototype, "reps", void 0);
35
32
  __decorate([
36
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: false }),
33
+ Column({ type: DataType.TEXT, allowNull: false }),
37
34
  __metadata("design:type", String)
38
35
  ], ExerciseProgress.prototype, "weight", void 0);
39
36
  __decorate([
40
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DATE, allowNull: false }),
37
+ Column({ type: DataType.DATE, allowNull: false }),
41
38
  __metadata("design:type", Date)
42
39
  ], ExerciseProgress.prototype, "date", void 0);
43
40
  ExerciseProgress = __decorate([
44
- sequelize_typescript_1.Table
41
+ Table
45
42
  ], ExerciseProgress);
46
- exports.ExerciseProgress = ExerciseProgress;
43
+ export { ExerciseProgress };
@@ -0,0 +1,7 @@
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,4 +1,3 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -8,29 +7,27 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
7
  var __metadata = (this && this.__metadata) || function (k, v) {
9
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
9
  };
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 {
10
+ import { Column, DataType, Default, Model, Table } from "sequelize-typescript";
11
+ let ForgotPasswordTokens = class ForgotPasswordTokens extends Model {
15
12
  };
16
13
  __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 }),
14
+ Default(DataType.UUIDV4),
15
+ Column({ type: DataType.UUID, defaultValue: DataType.UUID, allowNull: false, primaryKey: true }),
19
16
  __metadata("design:type", String)
20
17
  ], ForgotPasswordTokens.prototype, "uuid", void 0);
21
18
  __decorate([
22
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.UUID, allowNull: false }),
19
+ Column({ type: DataType.UUID, allowNull: false }),
23
20
  __metadata("design:type", String)
24
21
  ], ForgotPasswordTokens.prototype, "userUuid", void 0);
25
22
  __decorate([
26
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: false }),
23
+ Column({ type: DataType.TEXT, allowNull: false }),
27
24
  __metadata("design:type", String)
28
25
  ], ForgotPasswordTokens.prototype, "token", void 0);
29
26
  __decorate([
30
- (0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DATE, allowNull: false }),
27
+ Column({ type: DataType.DATE, allowNull: false }),
31
28
  __metadata("design:type", Date)
32
29
  ], ForgotPasswordTokens.prototype, "date", void 0);
33
30
  ForgotPasswordTokens = __decorate([
34
- sequelize_typescript_1.Table
31
+ Table
35
32
  ], ForgotPasswordTokens);
36
- exports.ForgotPasswordTokens = ForgotPasswordTokens;
33
+ export { 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
+ }