90dc-core 1.6.0 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/dbmodels/DeviceTokens.d.ts +6 -0
- package/dist/lib/dbmodels/DeviceTokens.js +34 -0
- package/dist/lib/dbmodels/DeviceTokens.js.map +1 -0
- package/dist/lib/dbmodels/NotificationModels.d.ts +8 -0
- package/dist/lib/dbmodels/NotificationModels.js +38 -0
- package/dist/lib/dbmodels/NotificationModels.js.map +1 -0
- package/dist/lib/dbmodels/TranslatedNotification.d.ts +9 -0
- package/dist/lib/dbmodels/TranslatedNotification.js +45 -0
- package/dist/lib/dbmodels/TranslatedNotification.js.map +1 -0
- package/dist/lib/dbmodels/program/ThirtyDayChallenge.d.ts +13 -0
- package/dist/lib/dbmodels/program/ThirtyDayChallenge.js +70 -0
- package/dist/lib/dbmodels/program/ThirtyDayChallenge.js.map +1 -0
- package/dist/lib/dbmodels/program/ThirtyDayChallengeStrengthTest.d.ts +11 -0
- package/dist/lib/dbmodels/program/ThirtyDayChallengeStrengthTest.js +55 -0
- package/dist/lib/dbmodels/program/ThirtyDayChallengeStrengthTest.js.map +1 -0
- package/dist/lib/enums/ProgramTemplates.d.ts +8 -0
- package/dist/lib/enums/ProgramTemplates.js +738 -0
- package/dist/lib/enums/ProgramTemplates.js.map +1 -0
- package/dist/lib/enums/cert.d.ts +13 -0
- package/dist/lib/enums/cert.js +15 -0
- package/dist/lib/enums/cert.js.map +1 -0
- package/dist/lib/models/NotificationInterfaces.d.ts +50 -0
- package/dist/lib/models/NotificationInterfaces.js +11 -0
- package/dist/lib/models/NotificationInterfaces.js.map +1 -0
- package/dist/lib/utils/NotificationsUtil.d.ts +14 -0
- package/dist/lib/utils/NotificationsUtil.js +147 -0
- package/dist/lib/utils/NotificationsUtil.js.map +1 -0
- package/package.json +4 -1
- package/src/lib/dbmodels/DeviceTokens.ts +24 -0
- package/src/lib/dbmodels/NotificationModels.ts +39 -0
- package/src/lib/dbmodels/TranslatedNotification.ts +42 -0
- package/src/lib/dbmodels/program/ThirtyDayChallenge.ts +46 -0
- package/src/lib/dbmodels/program/ThirtyDayChallengeStrengthTest.ts +39 -0
- package/src/lib/enums/ProgramTemplates.ts +881 -0
- package/src/lib/enums/cert.ts +16 -0
- package/src/lib/models/NotificationInterfaces.ts +66 -0
- package/src/lib/utils/NotificationsUtil.ts +188 -0
- package/tsconfig.json +1 -1
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
import { Column, DataType, Model, Table } from "sequelize-typescript";
|
|
8
|
+
export let DeviceTokens = class DeviceTokens extends Model {
|
|
9
|
+
};
|
|
10
|
+
__decorate([
|
|
11
|
+
Column({
|
|
12
|
+
type: DataType.UUID,
|
|
13
|
+
defaultValue: DataType.UUID,
|
|
14
|
+
allowNull: false,
|
|
15
|
+
primaryKey: true
|
|
16
|
+
})
|
|
17
|
+
], DeviceTokens.prototype, "userUuid", void 0);
|
|
18
|
+
__decorate([
|
|
19
|
+
Column({
|
|
20
|
+
type: DataType.TEXT,
|
|
21
|
+
allowNull: false
|
|
22
|
+
})
|
|
23
|
+
], DeviceTokens.prototype, "deviceToken", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
Column({
|
|
26
|
+
type: DataType.TEXT,
|
|
27
|
+
allowNull: true
|
|
28
|
+
})
|
|
29
|
+
], DeviceTokens.prototype, "platform", void 0);
|
|
30
|
+
DeviceTokens = __decorate([
|
|
31
|
+
Table
|
|
32
|
+
], DeviceTokens);
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=DeviceTokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/lib/dbmodels/DeviceTokens.ts"],"sourcesContent":["import { Column, DataType, Model, Table } from \"sequelize-typescript\";\n\n@Table\nexport class DeviceTokens extends Model {\n @Column({\n type: DataType.UUID,\n defaultValue: DataType.UUID,\n allowNull: false,\n primaryKey: true,\n })\n declare userUuid: string;\n\n @Column({\n type: DataType.TEXT,\n allowNull: false,\n })\n declare deviceToken: string;\n\n @Column({\n type: DataType.TEXT,\n allowNull: true,\n })\n declare platform: \"ios\" | \"android\";\n}\n"],"names":["Column","DataType","Model","Table","DeviceTokens","type","UUID","defaultValue","allowNull","primaryKey","TEXT"],"mappings":";;;;;;AAAA,SAASA,MAAM,EAAEC,QAAQ,EAAEC,KAAK,EAAEC,KAAK,QAAQ,uBAAuB;AAGtE,WAAaC,eAAN,2BAA2BF;AAoBlC,EAAC;;IAnBEF,OAAO;QACNK,MAAMJ,SAASK,IAAI;QACnBC,cAAcN,SAASK,IAAI;QAC3BE,WAAW,KAAK;QAChBC,YAAY,IAAI;IAClB;GANWL;;IASVJ,OAAO;QACNK,MAAMJ,SAASS,IAAI;QACnBF,WAAW,KAAK;IAClB;GAZWJ;;IAeVJ,OAAO;QACNK,MAAMJ,SAASS,IAAI;QACnBF,WAAW,IAAI;IACjB;GAlBWJ;AAAAA;IADZD;GACYC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Model } from "sequelize-typescript";
|
|
2
|
+
import { TranslatedNotification } from "./TranslatedNotification";
|
|
3
|
+
export declare class NotificationModels extends Model {
|
|
4
|
+
uuid: string;
|
|
5
|
+
type: "challenge_reminder_no_streak" | "challenge_reminder_streak" | "workout_reminder_no_streak" | "workout_reminder" | "rest_reminder_no_streak" | "rest_reminder" | "challenge_alert" | "workout_alert" | "rest_alert" | "workout_exp_alert" | "challenge_exp_alert";
|
|
6
|
+
text: string;
|
|
7
|
+
translations: TranslatedNotification[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
import { Column, DataType, HasMany, Model, Table } from "sequelize-typescript";
|
|
8
|
+
import { TranslatedNotification } from "./TranslatedNotification";
|
|
9
|
+
export let NotificationModels = class NotificationModels extends Model {
|
|
10
|
+
};
|
|
11
|
+
__decorate([
|
|
12
|
+
Column({
|
|
13
|
+
type: DataType.UUID,
|
|
14
|
+
defaultValue: DataType.UUID,
|
|
15
|
+
allowNull: false,
|
|
16
|
+
primaryKey: true
|
|
17
|
+
})
|
|
18
|
+
], NotificationModels.prototype, "uuid", void 0);
|
|
19
|
+
__decorate([
|
|
20
|
+
Column({
|
|
21
|
+
type: DataType.TEXT,
|
|
22
|
+
allowNull: false
|
|
23
|
+
})
|
|
24
|
+
], NotificationModels.prototype, "type", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
Column({
|
|
27
|
+
type: DataType.TEXT,
|
|
28
|
+
allowNull: false
|
|
29
|
+
})
|
|
30
|
+
], NotificationModels.prototype, "text", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
HasMany(()=>TranslatedNotification)
|
|
33
|
+
], NotificationModels.prototype, "translations", void 0);
|
|
34
|
+
NotificationModels = __decorate([
|
|
35
|
+
Table
|
|
36
|
+
], NotificationModels);
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=NotificationModels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/lib/dbmodels/NotificationModels.ts"],"sourcesContent":["import { Column, DataType, HasMany, Model, Table } from \"sequelize-typescript\";\nimport {TranslatedNotification} from \"./TranslatedNotification\";\n\n@Table\nexport class NotificationModels extends Model {\n @Column({\n type: DataType.UUID,\n defaultValue: DataType.UUID,\n allowNull: false,\n primaryKey: true,\n })\n declare uuid: string;\n\n @Column({\n type: DataType.TEXT,\n allowNull: false,\n })\n declare type:\n | \"challenge_reminder_no_streak\"\n | \"challenge_reminder_streak\"\n | \"workout_reminder_no_streak\"\n | \"workout_reminder\"\n | \"rest_reminder_no_streak\"\n | \"rest_reminder\"\n | \"challenge_alert\"\n | \"workout_alert\"\n | \"rest_alert\"\n | \"workout_exp_alert\"\n | \"challenge_exp_alert\";\n\n @Column({\n type: DataType.TEXT,\n allowNull: false,\n })\n declare text: string;\n\n @HasMany(() => TranslatedNotification)\n declare translations: TranslatedNotification[];\n}\n"],"names":["Column","DataType","HasMany","Model","Table","TranslatedNotification","NotificationModels","type","UUID","defaultValue","allowNull","primaryKey","TEXT"],"mappings":";;;;;;AAAA,SAASA,MAAM,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,KAAK,EAAEC,KAAK,QAAQ,uBAAuB;AAC/E,SAAQC,sBAAsB,QAAO,2BAA2B;AAGhE,WAAaC,qBAAN,iCAAiCH;AAkCxC,EAAC;;IAjCEH,OAAO;QACNO,MAAMN,SAASO,IAAI;QACnBC,cAAcR,SAASO,IAAI;QAC3BE,WAAW,KAAK;QAChBC,YAAY,IAAI;IAClB;GANWL;;IASVN,OAAO;QACNO,MAAMN,SAASW,IAAI;QACnBF,WAAW,KAAK;IAClB;GAZWJ;;IA0BVN,OAAO;QACNO,MAAMN,SAASW,IAAI;QACnBF,WAAW,KAAK;IAClB;GA7BWJ;;IAgCVJ,QAAQ,IAAMG;GAhCJC;AAAAA;IADZF;GACYE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Model } from "sequelize-typescript";
|
|
2
|
+
import { NotificationModels } from "./NotificationModels";
|
|
3
|
+
export declare class TranslatedNotification extends Model {
|
|
4
|
+
uuid: string;
|
|
5
|
+
notificationUuid: string;
|
|
6
|
+
language: string;
|
|
7
|
+
text: string;
|
|
8
|
+
notification: NotificationModels;
|
|
9
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
import { BelongsTo, Column, DataType, ForeignKey, Model, Table } from "sequelize-typescript";
|
|
8
|
+
import { NotificationModels } from "./NotificationModels";
|
|
9
|
+
export let TranslatedNotification = class TranslatedNotification extends Model {
|
|
10
|
+
};
|
|
11
|
+
__decorate([
|
|
12
|
+
Column({
|
|
13
|
+
type: DataType.UUID,
|
|
14
|
+
defaultValue: DataType.UUID,
|
|
15
|
+
allowNull: false,
|
|
16
|
+
primaryKey: true
|
|
17
|
+
})
|
|
18
|
+
], TranslatedNotification.prototype, "uuid", void 0);
|
|
19
|
+
__decorate([
|
|
20
|
+
ForeignKey(()=>NotificationModels),
|
|
21
|
+
Column({
|
|
22
|
+
type: DataType.UUID,
|
|
23
|
+
allowNull: false
|
|
24
|
+
})
|
|
25
|
+
], TranslatedNotification.prototype, "notificationUuid", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
Column({
|
|
28
|
+
type: DataType.STRING,
|
|
29
|
+
allowNull: false
|
|
30
|
+
})
|
|
31
|
+
], TranslatedNotification.prototype, "language", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
Column({
|
|
34
|
+
type: DataType.TEXT,
|
|
35
|
+
allowNull: false
|
|
36
|
+
})
|
|
37
|
+
], TranslatedNotification.prototype, "text", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
BelongsTo(()=>NotificationModels)
|
|
40
|
+
], TranslatedNotification.prototype, "notification", void 0);
|
|
41
|
+
TranslatedNotification = __decorate([
|
|
42
|
+
Table
|
|
43
|
+
], TranslatedNotification);
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=TranslatedNotification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/lib/dbmodels/TranslatedNotification.ts"],"sourcesContent":["import {\n BelongsTo,\n Column,\n DataType,\n ForeignKey,\n Model,\n Table,\n} from \"sequelize-typescript\";\nimport { NotificationModels } from \"./NotificationModels\";\n\n@Table\nexport class TranslatedNotification extends Model {\n @Column({\n type: DataType.UUID,\n defaultValue: DataType.UUID,\n allowNull: false,\n primaryKey: true,\n })\n declare uuid: string;\n\n @ForeignKey(() => NotificationModels)\n @Column({\n type: DataType.UUID,\n allowNull: false,\n })\n declare notificationUuid: string;\n\n @Column({\n type: DataType.STRING,\n allowNull: false,\n })\n declare language: string;\n\n @Column({\n type: DataType.TEXT,\n allowNull: false,\n })\n declare text: string;\n\n @BelongsTo(() => NotificationModels)\n declare notification: NotificationModels;\n}\n"],"names":["BelongsTo","Column","DataType","ForeignKey","Model","Table","NotificationModels","TranslatedNotification","type","UUID","defaultValue","allowNull","primaryKey","STRING","TEXT"],"mappings":";;;;;;AAAA,SACEA,SAAS,EACTC,MAAM,EACNC,QAAQ,EACRC,UAAU,EACVC,KAAK,EACLC,KAAK,QACA,uBAAuB;AAC9B,SAASC,kBAAkB,QAAQ,uBAAuB;AAG1D,WAAaC,yBAAN,qCAAqCH;AA8B5C,EAAC;;IA7BEH,OAAO;QACNO,MAAMN,SAASO,IAAI;QACnBC,cAAcR,SAASO,IAAI;QAC3BE,WAAW,KAAK;QAChBC,YAAY,IAAI;IAClB;GANWL;;IASVJ,WAAW,IAAMG;IACjBL,OAAO;QACNO,MAAMN,SAASO,IAAI;QACnBE,WAAW,KAAK;IAClB;GAbWJ;;IAgBVN,OAAO;QACNO,MAAMN,SAASW,MAAM;QACrBF,WAAW,KAAK;IAClB;GAnBWJ;;IAsBVN,OAAO;QACNO,MAAMN,SAASY,IAAI;QACnBH,WAAW,KAAK;IAClB;GAzBWJ;;IA4BVP,UAAU,IAAMM;GA5BNC;AAAAA;IADZF;GACYE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Model } from "sequelize-typescript";
|
|
2
|
+
import { Program } from "./Program";
|
|
3
|
+
export declare class ThirtyDayChallenge extends Model {
|
|
4
|
+
uuid: string;
|
|
5
|
+
programUuid: string;
|
|
6
|
+
challengeType: string;
|
|
7
|
+
goal: number;
|
|
8
|
+
order: number;
|
|
9
|
+
currentReps: number;
|
|
10
|
+
isFinished: boolean;
|
|
11
|
+
isLocked: boolean;
|
|
12
|
+
program: Program;
|
|
13
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
import { BelongsTo, Column, DataType, Default, ForeignKey, Index, Model, PrimaryKey, Table } from "sequelize-typescript";
|
|
8
|
+
import { Program } from "./Program";
|
|
9
|
+
export let ThirtyDayChallenge = class ThirtyDayChallenge extends Model {
|
|
10
|
+
};
|
|
11
|
+
__decorate([
|
|
12
|
+
PrimaryKey,
|
|
13
|
+
Default(DataType.UUIDV4),
|
|
14
|
+
Column(DataType.UUID)
|
|
15
|
+
], ThirtyDayChallenge.prototype, "uuid", void 0);
|
|
16
|
+
__decorate([
|
|
17
|
+
Index,
|
|
18
|
+
ForeignKey(()=>Program),
|
|
19
|
+
Column(DataType.UUID)
|
|
20
|
+
], ThirtyDayChallenge.prototype, "programUuid", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
Column({
|
|
23
|
+
type: DataType.STRING,
|
|
24
|
+
allowNull: false
|
|
25
|
+
})
|
|
26
|
+
], ThirtyDayChallenge.prototype, "challengeType", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
Column({
|
|
29
|
+
type: DataType.INTEGER,
|
|
30
|
+
allowNull: false,
|
|
31
|
+
defaultValue: 100
|
|
32
|
+
})
|
|
33
|
+
], ThirtyDayChallenge.prototype, "goal", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
Column({
|
|
36
|
+
type: DataType.INTEGER,
|
|
37
|
+
allowNull: false
|
|
38
|
+
})
|
|
39
|
+
], ThirtyDayChallenge.prototype, "order", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
Column({
|
|
42
|
+
type: DataType.INTEGER,
|
|
43
|
+
allowNull: false,
|
|
44
|
+
defaultValue: 0
|
|
45
|
+
})
|
|
46
|
+
], ThirtyDayChallenge.prototype, "currentReps", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
Column({
|
|
49
|
+
type: DataType.BOOLEAN,
|
|
50
|
+
allowNull: false,
|
|
51
|
+
defaultValue: false
|
|
52
|
+
})
|
|
53
|
+
], ThirtyDayChallenge.prototype, "isFinished", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
Column({
|
|
56
|
+
type: DataType.BOOLEAN,
|
|
57
|
+
allowNull: false,
|
|
58
|
+
defaultValue: false
|
|
59
|
+
})
|
|
60
|
+
], ThirtyDayChallenge.prototype, "isLocked", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
BelongsTo(()=>Program)
|
|
63
|
+
], ThirtyDayChallenge.prototype, "program", void 0);
|
|
64
|
+
ThirtyDayChallenge = __decorate([
|
|
65
|
+
Table({
|
|
66
|
+
timestamps: true
|
|
67
|
+
})
|
|
68
|
+
], ThirtyDayChallenge);
|
|
69
|
+
|
|
70
|
+
//# sourceMappingURL=ThirtyDayChallenge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/lib/dbmodels/program/ThirtyDayChallenge.ts"],"sourcesContent":["import {\n BelongsTo,\n Column,\n DataType,\n Default,\n ForeignKey,\n Index,\n Model,\n PrimaryKey,\n Table,\n} from \"sequelize-typescript\";\nimport { Program } from \"./Program\";\n\n@Table({ timestamps: true })\nexport class ThirtyDayChallenge extends Model {\n @PrimaryKey\n @Default(DataType.UUIDV4)\n @Column(DataType.UUID)\n declare uuid: string;\n\n @Index\n @ForeignKey(() => Program)\n @Column(DataType.UUID)\n declare programUuid: string;\n\n @Column({ type: DataType.STRING, allowNull: false })\n declare challengeType: string;\n\n @Column({ type: DataType.INTEGER, allowNull: false, defaultValue: 100 })\n declare goal: number;\n\n @Column({ type: DataType.INTEGER, allowNull: false })\n declare order: number;\n\n @Column({ type: DataType.INTEGER, allowNull: false, defaultValue: 0 })\n declare currentReps: number;\n\n @Column({ type: DataType.BOOLEAN, allowNull: false, defaultValue: false })\n declare isFinished: boolean;\n\n @Column({ type: DataType.BOOLEAN, allowNull: false, defaultValue: false })\n declare isLocked: boolean;\n\n @BelongsTo(() => Program)\n declare program: Program;\n}\n"],"names":["BelongsTo","Column","DataType","Default","ForeignKey","Index","Model","PrimaryKey","Table","Program","ThirtyDayChallenge","UUIDV4","UUID","type","STRING","allowNull","INTEGER","defaultValue","BOOLEAN","timestamps"],"mappings":";;;;;;AAAA,SACEA,SAAS,EACTC,MAAM,EACNC,QAAQ,EACRC,OAAO,EACPC,UAAU,EACVC,KAAK,EACLC,KAAK,EACLC,UAAU,EACVC,KAAK,QACA,uBAAuB;AAC9B,SAASC,OAAO,QAAQ,YAAY;AAGpC,WAAaC,qBAAN,iCAAiCJ;AA+BxC,EAAC;;IA9BEC;IACAJ,QAAQD,SAASS,MAAM;IACvBV,OAAOC,SAASU,IAAI;GAHVF;;IAMVL;IACAD,WAAW,IAAMK;IACjBR,OAAOC,SAASU,IAAI;GARVF;;IAWVT,OAAO;QAAEY,MAAMX,SAASY,MAAM;QAAEC,WAAW,KAAK;IAAC;GAXvCL;;IAcVT,OAAO;QAAEY,MAAMX,SAASc,OAAO;QAAED,WAAW,KAAK;QAAEE,cAAc;IAAI;GAd3DP;;IAiBVT,OAAO;QAAEY,MAAMX,SAASc,OAAO;QAAED,WAAW,KAAK;IAAC;GAjBxCL;;IAoBVT,OAAO;QAAEY,MAAMX,SAASc,OAAO;QAAED,WAAW,KAAK;QAAEE,cAAc;IAAE;GApBzDP;;IAuBVT,OAAO;QAAEY,MAAMX,SAASgB,OAAO;QAAEH,WAAW,KAAK;QAAEE,cAAc,KAAK;IAAC;GAvB7DP;;IA0BVT,OAAO;QAAEY,MAAMX,SAASgB,OAAO;QAAEH,WAAW,KAAK;QAAEE,cAAc,KAAK;IAAC;GA1B7DP;;IA6BVV,UAAU,IAAMS;GA7BNC;AAAAA;IADZF,MAAM;QAAEW,YAAY,IAAI;IAAC;GACbT"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Model } from "sequelize-typescript";
|
|
2
|
+
import { Program } from "./Program";
|
|
3
|
+
export declare class ThirtyDayChallengeStrengthTest extends Model {
|
|
4
|
+
uuid: string;
|
|
5
|
+
programUuid: string;
|
|
6
|
+
challengeType: string;
|
|
7
|
+
maxReps: number;
|
|
8
|
+
order: number;
|
|
9
|
+
isFinished: boolean;
|
|
10
|
+
program: Program;
|
|
11
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
import { BelongsTo, Column, DataType, Default, ForeignKey, Model, PrimaryKey, Table } from "sequelize-typescript";
|
|
8
|
+
import { Program } from "./Program";
|
|
9
|
+
export let ThirtyDayChallengeStrengthTest = class ThirtyDayChallengeStrengthTest extends Model {
|
|
10
|
+
};
|
|
11
|
+
__decorate([
|
|
12
|
+
PrimaryKey,
|
|
13
|
+
Default(DataType.UUIDV4),
|
|
14
|
+
Column(DataType.UUID)
|
|
15
|
+
], ThirtyDayChallengeStrengthTest.prototype, "uuid", void 0);
|
|
16
|
+
__decorate([
|
|
17
|
+
ForeignKey(()=>Program),
|
|
18
|
+
Column(DataType.UUID)
|
|
19
|
+
], ThirtyDayChallengeStrengthTest.prototype, "programUuid", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
Column({
|
|
22
|
+
type: DataType.STRING,
|
|
23
|
+
allowNull: false
|
|
24
|
+
})
|
|
25
|
+
], ThirtyDayChallengeStrengthTest.prototype, "challengeType", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
Column({
|
|
28
|
+
type: DataType.INTEGER,
|
|
29
|
+
allowNull: false,
|
|
30
|
+
defaultValue: 0
|
|
31
|
+
})
|
|
32
|
+
], ThirtyDayChallengeStrengthTest.prototype, "maxReps", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
Column({
|
|
35
|
+
type: DataType.INTEGER,
|
|
36
|
+
allowNull: false
|
|
37
|
+
})
|
|
38
|
+
], ThirtyDayChallengeStrengthTest.prototype, "order", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
Column({
|
|
41
|
+
type: DataType.BOOLEAN,
|
|
42
|
+
allowNull: false,
|
|
43
|
+
defaultValue: false
|
|
44
|
+
})
|
|
45
|
+
], ThirtyDayChallengeStrengthTest.prototype, "isFinished", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
BelongsTo(()=>Program)
|
|
48
|
+
], ThirtyDayChallengeStrengthTest.prototype, "program", void 0);
|
|
49
|
+
ThirtyDayChallengeStrengthTest = __decorate([
|
|
50
|
+
Table({
|
|
51
|
+
timestamps: true
|
|
52
|
+
})
|
|
53
|
+
], ThirtyDayChallengeStrengthTest);
|
|
54
|
+
|
|
55
|
+
//# sourceMappingURL=ThirtyDayChallengeStrengthTest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/lib/dbmodels/program/ThirtyDayChallengeStrengthTest.ts"],"sourcesContent":["import {\n BelongsTo,\n Column,\n DataType,\n Default,\n ForeignKey,\n Index,\n Model,\n PrimaryKey,\n Table,\n} from \"sequelize-typescript\";\nimport { Program } from \"./Program\";\n\n@Table({ timestamps: true })\nexport class ThirtyDayChallengeStrengthTest extends Model {\n @PrimaryKey\n @Default(DataType.UUIDV4)\n @Column(DataType.UUID)\n declare uuid: string;\n\n @ForeignKey(() => Program)\n @Column(DataType.UUID)\n declare programUuid: string;\n\n @Column({ type: DataType.STRING, allowNull: false })\n declare challengeType: string;\n\n @Column({ type: DataType.INTEGER, allowNull: false, defaultValue: 0 })\n declare maxReps: number;\n\n @Column({ type: DataType.INTEGER, allowNull: false })\n declare order: number;\n\n @Column({ type: DataType.BOOLEAN, allowNull: false, defaultValue: false })\n declare isFinished: boolean;\n\n @BelongsTo(() => Program)\n declare program: Program;\n}\n"],"names":["BelongsTo","Column","DataType","Default","ForeignKey","Model","PrimaryKey","Table","Program","ThirtyDayChallengeStrengthTest","UUIDV4","UUID","type","STRING","allowNull","INTEGER","defaultValue","BOOLEAN","timestamps"],"mappings":";;;;;;AAAA,SACEA,SAAS,EACTC,MAAM,EACNC,QAAQ,EACRC,OAAO,EACPC,UAAU,EAEVC,KAAK,EACLC,UAAU,EACVC,KAAK,QACA,uBAAuB;AAC9B,SAASC,OAAO,QAAQ,YAAY;AAGpC,WAAaC,iCAAN,6CAA6CJ;AAwBpD,EAAC;;IAvBEC;IACAH,QAAQD,SAASQ,MAAM;IACvBT,OAAOC,SAASS,IAAI;GAHVF;;IAMVL,WAAW,IAAMI;IACjBP,OAAOC,SAASS,IAAI;GAPVF;;IAUVR,OAAO;QAAEW,MAAMV,SAASW,MAAM;QAAEC,WAAW,KAAK;IAAC;GAVvCL;;IAaVR,OAAO;QAAEW,MAAMV,SAASa,OAAO;QAAED,WAAW,KAAK;QAAEE,cAAc;IAAE;GAbzDP;;IAgBVR,OAAO;QAAEW,MAAMV,SAASa,OAAO;QAAED,WAAW,KAAK;IAAC;GAhBxCL;;IAmBVR,OAAO;QAAEW,MAAMV,SAASe,OAAO;QAAEH,WAAW,KAAK;QAAEE,cAAc,KAAK;IAAC;GAnB7DP;;IAsBVT,UAAU,IAAMQ;GAtBNC;AAAAA;IADZF,MAAM;QAAEW,YAAY,IAAI;IAAC;GACbT"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const ThreeDaysTemplate: string[];
|
|
2
|
+
export declare const FourDaysTemplate: string[];
|
|
3
|
+
export declare const FourDaysBodyWeightTemplate: string[];
|
|
4
|
+
export declare const FiveDaysTemplate: string[];
|
|
5
|
+
export declare const FiveDaysHomeWorkoutTemplate: string[];
|
|
6
|
+
export declare const FiveDaysBodyWeightTemplate: string[];
|
|
7
|
+
export declare const SixDaysTemplate: string[];
|
|
8
|
+
export declare const SixDaysHomeWorkoutTemplate: string[];
|