90dc-core 1.7.4 → 1.7.6
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/nonconsprogram/NonConsumableProgram.d.ts +2 -0
- package/dist/lib/dbmodels/nonconsprogram/NonConsumableProgram.js +5 -1
- package/dist/lib/dbmodels/nonconsprogram/NonConsumableProgram.js.map +1 -1
- package/dist/lib/dbmodels/nonconsprogram/NonConsumableProgramWebContent.d.ts +18 -0
- package/dist/lib/dbmodels/nonconsprogram/NonConsumableProgramWebContent.js +98 -0
- package/dist/lib/dbmodels/nonconsprogram/NonConsumableProgramWebContent.js.map +1 -0
- package/dist/lib/dbmodels/nonconsprogram/TranslatedNonConsumableProgramWebContent.d.ts +20 -0
- package/dist/lib/dbmodels/nonconsprogram/TranslatedNonConsumableProgramWebContent.js +109 -0
- package/dist/lib/dbmodels/nonconsprogram/TranslatedNonConsumableProgramWebContent.js.map +1 -0
- package/package.json +1 -1
- package/src/lib/dbmodels/nonconsprogram/NonConsumableProgram.ts +5 -1
- package/src/lib/dbmodels/nonconsprogram/NonConsumableProgramWebContent.ts +56 -0
- package/src/lib/dbmodels/nonconsprogram/TranslatedNonConsumableProgramWebContent.ts +68 -0
|
@@ -3,6 +3,7 @@ import { ConsumableProgramGoals, ConsumableProgramTypes, ConsumableProgramWeight
|
|
|
3
3
|
import { TranslatedConsumableProgram } from "./TranslatedConsumableProgram";
|
|
4
4
|
import { PersistedUser } from "../PersistedUser";
|
|
5
5
|
import { Program } from "../program/Program";
|
|
6
|
+
import { NonConsumableProgramWebContent } from "./NonConsumableProgramWebContent";
|
|
6
7
|
export declare class NonConsumableProgram extends Model {
|
|
7
8
|
uuid: string;
|
|
8
9
|
title: string;
|
|
@@ -20,6 +21,7 @@ export declare class NonConsumableProgram extends Model {
|
|
|
20
21
|
header: string | null;
|
|
21
22
|
isCustom: boolean;
|
|
22
23
|
translatedPrograms: TranslatedConsumableProgram[];
|
|
24
|
+
nonConsumableProgramWebContent: NonConsumableProgramWebContent;
|
|
23
25
|
users: PersistedUser[];
|
|
24
26
|
programs: Program[];
|
|
25
27
|
}
|
|
@@ -4,11 +4,12 @@ var __decorate = this && this.__decorate || function(decorators, target, key, de
|
|
|
4
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
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { BelongsToMany, Column, DataType, Default, HasMany, Model, Table } from "sequelize-typescript";
|
|
7
|
+
import { BelongsToMany, Column, DataType, Default, HasMany, HasOne, Model, Table } from "sequelize-typescript";
|
|
8
8
|
import { TranslatedConsumableProgram } from "./TranslatedConsumableProgram";
|
|
9
9
|
import { UserPrograms } from "./UserNonConsumableProgram";
|
|
10
10
|
import { PersistedUser } from "../PersistedUser";
|
|
11
11
|
import { Program } from "../program/Program";
|
|
12
|
+
import { NonConsumableProgramWebContent } from "./NonConsumableProgramWebContent";
|
|
12
13
|
export let NonConsumableProgram = class NonConsumableProgram extends Model {
|
|
13
14
|
};
|
|
14
15
|
__decorate([
|
|
@@ -109,6 +110,9 @@ __decorate([
|
|
|
109
110
|
__decorate([
|
|
110
111
|
HasMany(()=>TranslatedConsumableProgram)
|
|
111
112
|
], NonConsumableProgram.prototype, "translatedPrograms", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
HasOne(()=>NonConsumableProgramWebContent)
|
|
115
|
+
], NonConsumableProgram.prototype, "nonConsumableProgramWebContent", void 0);
|
|
112
116
|
__decorate([
|
|
113
117
|
BelongsToMany(()=>PersistedUser, {
|
|
114
118
|
through: ()=>UserPrograms
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/lib/dbmodels/nonconsprogram/NonConsumableProgram.ts"],"sourcesContent":["import {\n BelongsToMany,\n Column,\n DataType,\n Default,\n HasMany,\n Model,\n Table,\n} from \"sequelize-typescript\";\nimport {\n ConsumableProgramGoals,\n ConsumableProgramTypes,\n ConsumableProgramWeightGoals,\n} from \"../../enums/ProgramEnums\";\nimport { TranslatedConsumableProgram } from \"./TranslatedConsumableProgram\";\nimport { UserPrograms } from \"./UserNonConsumableProgram\";\nimport { PersistedUser } from \"../PersistedUser\";\nimport {Program} from \"../program/Program\";\n\n@Table\nexport class NonConsumableProgram extends Model {\n @Default(DataType.UUIDV4)\n @Column({\n type: DataType.UUID,\n defaultValue: DataType.UUID,\n allowNull: false,\n primaryKey: true,\n })\n declare uuid: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare title: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare description: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare coverImageUri: string;\n\n @Column({ type: DataType.INTEGER, allowNull: false })\n declare order: number;\n\n @Column({ type: DataType.INTEGER, allowNull: false, defaultValue: 0 })\n declare popularityOrder: number;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare weightGoal: ConsumableProgramWeightGoals;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare goal: ConsumableProgramGoals;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare type: ConsumableProgramTypes;\n\n @Column({ type: DataType.BOOLEAN, allowNull: false })\n declare isFree: boolean;\n\n @Column({ type: DataType.BOOLEAN, allowNull: false, defaultValue: false })\n declare isHighlighted: boolean;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare productIdAndroid: string | null;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare productIdIos: string | null;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare header: string | null;\n\n @Column({ type: DataType.BOOLEAN, defaultValue: false })\n declare isCustom: boolean;\n\n @HasMany(() => TranslatedConsumableProgram)\n declare translatedPrograms: TranslatedConsumableProgram[];\n\n @BelongsToMany(() => PersistedUser, { through: () => UserPrograms })\n declare users: PersistedUser[];\n\n @HasMany(() => Program)\n declare programs: Program[];\n}\n"],"names":["BelongsToMany","Column","DataType","Default","HasMany","Model","Table","TranslatedConsumableProgram","UserPrograms","PersistedUser","Program","NonConsumableProgram","UUIDV4","type","UUID","defaultValue","allowNull","primaryKey","TEXT","INTEGER","BOOLEAN","through"],"mappings":";;;;;;AAAA,SACEA,aAAa,EACbC,MAAM,EACNC,QAAQ,EACRC,OAAO,EACPC,OAAO,
|
|
1
|
+
{"version":3,"sources":["../../../../src/lib/dbmodels/nonconsprogram/NonConsumableProgram.ts"],"sourcesContent":["import {\n BelongsToMany,\n Column,\n DataType,\n Default,\n HasMany, HasOne,\n Model,\n Table,\n} from \"sequelize-typescript\";\nimport {\n ConsumableProgramGoals,\n ConsumableProgramTypes,\n ConsumableProgramWeightGoals,\n} from \"../../enums/ProgramEnums\";\nimport { TranslatedConsumableProgram } from \"./TranslatedConsumableProgram\";\nimport { UserPrograms } from \"./UserNonConsumableProgram\";\nimport { PersistedUser } from \"../PersistedUser\";\nimport {Program} from \"../program/Program\";\nimport {NonConsumableProgramWebContent} from \"./NonConsumableProgramWebContent\";\n\n@Table\nexport class NonConsumableProgram extends Model {\n @Default(DataType.UUIDV4)\n @Column({\n type: DataType.UUID,\n defaultValue: DataType.UUID,\n allowNull: false,\n primaryKey: true,\n })\n declare uuid: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare title: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare description: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare coverImageUri: string;\n\n @Column({ type: DataType.INTEGER, allowNull: false })\n declare order: number;\n\n @Column({ type: DataType.INTEGER, allowNull: false, defaultValue: 0 })\n declare popularityOrder: number;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare weightGoal: ConsumableProgramWeightGoals;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare goal: ConsumableProgramGoals;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare type: ConsumableProgramTypes;\n\n @Column({ type: DataType.BOOLEAN, allowNull: false })\n declare isFree: boolean;\n\n @Column({ type: DataType.BOOLEAN, allowNull: false, defaultValue: false })\n declare isHighlighted: boolean;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare productIdAndroid: string | null;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare productIdIos: string | null;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare header: string | null;\n\n @Column({ type: DataType.BOOLEAN, defaultValue: false })\n declare isCustom: boolean;\n\n @HasMany(() => TranslatedConsumableProgram)\n declare translatedPrograms: TranslatedConsumableProgram[];\n\n @HasOne(() => NonConsumableProgramWebContent)\n declare nonConsumableProgramWebContent: NonConsumableProgramWebContent;\n\n @BelongsToMany(() => PersistedUser, { through: () => UserPrograms })\n declare users: PersistedUser[];\n\n @HasMany(() => Program)\n declare programs: Program[];\n}\n"],"names":["BelongsToMany","Column","DataType","Default","HasMany","HasOne","Model","Table","TranslatedConsumableProgram","UserPrograms","PersistedUser","Program","NonConsumableProgramWebContent","NonConsumableProgram","UUIDV4","type","UUID","defaultValue","allowNull","primaryKey","TEXT","INTEGER","BOOLEAN","through"],"mappings":";;;;;;AAAA,SACEA,aAAa,EACbC,MAAM,EACNC,QAAQ,EACRC,OAAO,EACPC,OAAO,EAAEC,MAAM,EACfC,KAAK,EACLC,KAAK,QACA,uBAAuB;AAM9B,SAASC,2BAA2B,QAAQ,gCAAgC;AAC5E,SAASC,YAAY,QAAQ,6BAA6B;AAC1D,SAASC,aAAa,QAAQ,mBAAmB;AACjD,SAASC,OAAO,QAAO,qBAAqB;AAC5C,SAAQC,8BAA8B,QAAO,mCAAmC;AAGhF,WAAaC,uBAAN,mCAAmCP;AA+D1C,EAAC;;IA9DEH,QAAQD,SAASY,MAAM;IACvBb,OAAO;QACNc,MAAMb,SAASc,IAAI;QACnBC,cAAcf,SAASc,IAAI;QAC3BE,WAAW,KAAK;QAChBC,YAAY,IAAI;IAClB;GAPWN;;IAUVZ,OAAO;QAAEc,MAAMb,SAASkB,IA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A6DVT,QAAQ,IAAMO;GA7DJE;AAAAA;IADZN;GACYM"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Model } from "sequelize-typescript";
|
|
2
|
+
import { NonConsumableProgram } from "./NonConsumableProgram";
|
|
3
|
+
export declare class NonConsumableProgramWebContent extends Model {
|
|
4
|
+
nonConsumableProgramUuid: string;
|
|
5
|
+
title: string;
|
|
6
|
+
subtitle: string;
|
|
7
|
+
description: string;
|
|
8
|
+
block1_text: string;
|
|
9
|
+
block1_image_uri: string;
|
|
10
|
+
block2_text: string;
|
|
11
|
+
block2_image_uri: string;
|
|
12
|
+
checkmark1_text: string;
|
|
13
|
+
checkmark2_text: string;
|
|
14
|
+
checkmark3_text: string;
|
|
15
|
+
conclusion: string;
|
|
16
|
+
testimonials_image_url: string;
|
|
17
|
+
program: NonConsumableProgram[];
|
|
18
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
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, PrimaryKey, Table } from "sequelize-typescript";
|
|
8
|
+
import { NonConsumableProgram } from "./NonConsumableProgram";
|
|
9
|
+
export let NonConsumableProgramWebContent = class NonConsumableProgramWebContent extends Model {
|
|
10
|
+
};
|
|
11
|
+
__decorate([
|
|
12
|
+
PrimaryKey,
|
|
13
|
+
ForeignKey(()=>NonConsumableProgram),
|
|
14
|
+
Column({
|
|
15
|
+
type: DataType.UUID,
|
|
16
|
+
allowNull: true
|
|
17
|
+
})
|
|
18
|
+
], NonConsumableProgramWebContent.prototype, "nonConsumableProgramUuid", void 0);
|
|
19
|
+
__decorate([
|
|
20
|
+
Column({
|
|
21
|
+
type: DataType.TEXT,
|
|
22
|
+
allowNull: false
|
|
23
|
+
})
|
|
24
|
+
], NonConsumableProgramWebContent.prototype, "title", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
Column({
|
|
27
|
+
type: DataType.TEXT,
|
|
28
|
+
allowNull: false
|
|
29
|
+
})
|
|
30
|
+
], NonConsumableProgramWebContent.prototype, "subtitle", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
Column({
|
|
33
|
+
type: DataType.TEXT,
|
|
34
|
+
allowNull: false
|
|
35
|
+
})
|
|
36
|
+
], NonConsumableProgramWebContent.prototype, "description", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
Column({
|
|
39
|
+
type: DataType.TEXT,
|
|
40
|
+
allowNull: false
|
|
41
|
+
})
|
|
42
|
+
], NonConsumableProgramWebContent.prototype, "block1_text", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
Column({
|
|
45
|
+
type: DataType.TEXT,
|
|
46
|
+
allowNull: false
|
|
47
|
+
})
|
|
48
|
+
], NonConsumableProgramWebContent.prototype, "block1_image_uri", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
Column({
|
|
51
|
+
type: DataType.TEXT,
|
|
52
|
+
allowNull: false
|
|
53
|
+
})
|
|
54
|
+
], NonConsumableProgramWebContent.prototype, "block2_text", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
Column({
|
|
57
|
+
type: DataType.TEXT,
|
|
58
|
+
allowNull: false
|
|
59
|
+
})
|
|
60
|
+
], NonConsumableProgramWebContent.prototype, "block2_image_uri", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
Column({
|
|
63
|
+
type: DataType.TEXT,
|
|
64
|
+
allowNull: false
|
|
65
|
+
})
|
|
66
|
+
], NonConsumableProgramWebContent.prototype, "checkmark1_text", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
Column({
|
|
69
|
+
type: DataType.TEXT,
|
|
70
|
+
allowNull: false
|
|
71
|
+
})
|
|
72
|
+
], NonConsumableProgramWebContent.prototype, "checkmark2_text", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
Column({
|
|
75
|
+
type: DataType.TEXT,
|
|
76
|
+
allowNull: false
|
|
77
|
+
})
|
|
78
|
+
], NonConsumableProgramWebContent.prototype, "checkmark3_text", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
Column({
|
|
81
|
+
type: DataType.TEXT,
|
|
82
|
+
allowNull: false
|
|
83
|
+
})
|
|
84
|
+
], NonConsumableProgramWebContent.prototype, "conclusion", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
Column({
|
|
87
|
+
type: DataType.TEXT,
|
|
88
|
+
allowNull: false
|
|
89
|
+
})
|
|
90
|
+
], NonConsumableProgramWebContent.prototype, "testimonials_image_url", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
BelongsTo(()=>NonConsumableProgram)
|
|
93
|
+
], NonConsumableProgramWebContent.prototype, "program", void 0);
|
|
94
|
+
NonConsumableProgramWebContent = __decorate([
|
|
95
|
+
Table
|
|
96
|
+
], NonConsumableProgramWebContent);
|
|
97
|
+
|
|
98
|
+
//# sourceMappingURL=NonConsumableProgramWebContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/lib/dbmodels/nonconsprogram/NonConsumableProgramWebContent.ts"],"sourcesContent":["import {\n BelongsTo,\n Column,\n DataType,\n ForeignKey,\n Model, PrimaryKey,\n Table,\n} from \"sequelize-typescript\";\nimport {NonConsumableProgram} from \"./NonConsumableProgram\";\n\n@Table\nexport class NonConsumableProgramWebContent extends Model {\n @PrimaryKey\n @ForeignKey(() => NonConsumableProgram)\n @Column({type: DataType.UUID, allowNull: true})\n declare nonConsumableProgramUuid: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare title: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare subtitle: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare description: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare block1_text: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare block1_image_uri: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare block2_text: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare block2_image_uri: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare checkmark1_text: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare checkmark2_text: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare checkmark3_text: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare conclusion: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare testimonials_image_url: string;\n\n @BelongsTo(() => NonConsumableProgram)\n declare program: NonConsumableProgram[];\n}\n"],"names":["BelongsTo","Column","DataType","ForeignKey","Model","PrimaryKey","Table","NonConsumableProgram","NonConsumableProgramWebContent","type","UUID","allowNull","TEXT"],"mappings":";;;;;;AAAA,SACEA,SAAS,EACTC,MAAM,EACNC,QAAQ,EACRC,UAAU,EACVC,KAAK,EAAEC,UAAU,EACjBC,KAAK,QACA,uBAAuB;AAC9B,SAAQC,oBAAoB,QAAO,yBAAyB;AAG5D,WAAaC,iCAAN,6CAA6CJ;AA4CpD,EAAC;;IA3CEC;IACAF,WAAW,IAAMI;IACjBN,OAAO;QAACQ,MAAMP,SAASQ,IAAI;QAAEC,WAAW,IAAI;IAAA;GAHlCH;;IAMVP,OAAO;QAAEQ,MAAMP,SAASU,IAAI;QAAED,WAAW,KAAK;IAAC;GANrCH;;IASVP,OAAO;QAAEQ,MAAMP,SAASU,IAAI;QAAED,WAAW,KAAK;IAAC;GATrCH;;IAYVP,OAAO;QAAEQ,MAAMP,SAASU,IAAI;QAAED,WAAW,KAAK;IAAC;GAZrCH;;IAeVP,OAAO;QAAEQ,MAAMP,SAASU,IAAI;QAAED,WAAW,KAAK;IAAC;GAfrCH;;IAkBVP,OAAO;QAAEQ,MAAMP,SAASU,IAAI;QAAED,WAAW,KAAK;IAAC;GAlBrCH;;IAqBVP,OAAO;QAAEQ,MAAMP,SAASU,IAAI;QAAED,WAAW,KAAK;IAAC;GArBrCH;;IAwBVP,OAAO;QAAEQ,MAAMP,SAASU,IAAI;QAAED,WAAW,KAAK;IAAC;GAxBrCH;;IA2BVP,OAAO;QAAEQ,MAAMP,SAASU,IAAI;QAAED,WAAW,KAAK;IAAC;GA3BrCH;;IA8BVP,OAAO;QAAEQ,MAAMP,SAASU,IAAI;QAAED,WAAW,KAAK;IAAC;GA9BrCH;;IAiCVP,OAAO;QAAEQ,MAAMP,SAASU,IAAI;QAAED,WAAW,KAAK;IAAC;GAjCrCH;;IAoCVP,OAAO;QAAEQ,MAAMP,SAASU,IAAI;QAAED,WAAW,KAAK;IAAC;GApCrCH;;IAuCVP,OAAO;QAAEQ,MAAMP,SAASU,IAAI;QAAED,WAAW,KAAK;IAAC;GAvCrCH;;IA0CVR,UAAU,IAAMO;GA1CNC;AAAAA;IADZF;GACYE"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Model } from "sequelize-typescript";
|
|
2
|
+
import { NonConsumableProgramWebContent } from "./NonConsumableProgramWebContent";
|
|
3
|
+
export declare class TranslatedNonConsumableProgramWebContent extends Model {
|
|
4
|
+
uuid: string;
|
|
5
|
+
originalWebContentUuid: string;
|
|
6
|
+
language: string;
|
|
7
|
+
title: string;
|
|
8
|
+
subtitle: string;
|
|
9
|
+
description: string;
|
|
10
|
+
block1_text: string;
|
|
11
|
+
block1_image_uri: string;
|
|
12
|
+
block2_text: string;
|
|
13
|
+
block2_image_uri: string;
|
|
14
|
+
checkmark1_text: string;
|
|
15
|
+
checkmark2_text: string;
|
|
16
|
+
checkmark3_text: string;
|
|
17
|
+
conclusion: string;
|
|
18
|
+
testimonials_image_url: string;
|
|
19
|
+
program: NonConsumableProgramWebContent[];
|
|
20
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
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, Table } from "sequelize-typescript";
|
|
8
|
+
import { NonConsumableProgramWebContent } from "./NonConsumableProgramWebContent";
|
|
9
|
+
export let TranslatedNonConsumableProgramWebContent = class TranslatedNonConsumableProgramWebContent extends Model {
|
|
10
|
+
};
|
|
11
|
+
__decorate([
|
|
12
|
+
Default(DataType.UUIDV4),
|
|
13
|
+
Column({
|
|
14
|
+
type: DataType.UUID,
|
|
15
|
+
defaultValue: DataType.UUID,
|
|
16
|
+
allowNull: false,
|
|
17
|
+
primaryKey: true
|
|
18
|
+
})
|
|
19
|
+
], TranslatedNonConsumableProgramWebContent.prototype, "uuid", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
ForeignKey(()=>NonConsumableProgramWebContent),
|
|
22
|
+
Column(DataType.UUID)
|
|
23
|
+
], TranslatedNonConsumableProgramWebContent.prototype, "originalWebContentUuid", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
Column({
|
|
26
|
+
type: DataType.TEXT,
|
|
27
|
+
allowNull: false
|
|
28
|
+
})
|
|
29
|
+
], TranslatedNonConsumableProgramWebContent.prototype, "language", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
Column({
|
|
32
|
+
type: DataType.TEXT,
|
|
33
|
+
allowNull: false
|
|
34
|
+
})
|
|
35
|
+
], TranslatedNonConsumableProgramWebContent.prototype, "title", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
Column({
|
|
38
|
+
type: DataType.TEXT,
|
|
39
|
+
allowNull: false
|
|
40
|
+
})
|
|
41
|
+
], TranslatedNonConsumableProgramWebContent.prototype, "subtitle", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
Column({
|
|
44
|
+
type: DataType.TEXT,
|
|
45
|
+
allowNull: false
|
|
46
|
+
})
|
|
47
|
+
], TranslatedNonConsumableProgramWebContent.prototype, "description", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
Column({
|
|
50
|
+
type: DataType.TEXT,
|
|
51
|
+
allowNull: false
|
|
52
|
+
})
|
|
53
|
+
], TranslatedNonConsumableProgramWebContent.prototype, "block1_text", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
Column({
|
|
56
|
+
type: DataType.TEXT,
|
|
57
|
+
allowNull: false
|
|
58
|
+
})
|
|
59
|
+
], TranslatedNonConsumableProgramWebContent.prototype, "block1_image_uri", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
Column({
|
|
62
|
+
type: DataType.TEXT,
|
|
63
|
+
allowNull: false
|
|
64
|
+
})
|
|
65
|
+
], TranslatedNonConsumableProgramWebContent.prototype, "block2_text", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
Column({
|
|
68
|
+
type: DataType.TEXT,
|
|
69
|
+
allowNull: false
|
|
70
|
+
})
|
|
71
|
+
], TranslatedNonConsumableProgramWebContent.prototype, "block2_image_uri", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
Column({
|
|
74
|
+
type: DataType.TEXT,
|
|
75
|
+
allowNull: false
|
|
76
|
+
})
|
|
77
|
+
], TranslatedNonConsumableProgramWebContent.prototype, "checkmark1_text", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
Column({
|
|
80
|
+
type: DataType.TEXT,
|
|
81
|
+
allowNull: false
|
|
82
|
+
})
|
|
83
|
+
], TranslatedNonConsumableProgramWebContent.prototype, "checkmark2_text", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
Column({
|
|
86
|
+
type: DataType.TEXT,
|
|
87
|
+
allowNull: false
|
|
88
|
+
})
|
|
89
|
+
], TranslatedNonConsumableProgramWebContent.prototype, "checkmark3_text", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
Column({
|
|
92
|
+
type: DataType.TEXT,
|
|
93
|
+
allowNull: false
|
|
94
|
+
})
|
|
95
|
+
], TranslatedNonConsumableProgramWebContent.prototype, "conclusion", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
Column({
|
|
98
|
+
type: DataType.TEXT,
|
|
99
|
+
allowNull: false
|
|
100
|
+
})
|
|
101
|
+
], TranslatedNonConsumableProgramWebContent.prototype, "testimonials_image_url", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
BelongsTo(()=>NonConsumableProgramWebContent)
|
|
104
|
+
], TranslatedNonConsumableProgramWebContent.prototype, "program", void 0);
|
|
105
|
+
TranslatedNonConsumableProgramWebContent = __decorate([
|
|
106
|
+
Table
|
|
107
|
+
], TranslatedNonConsumableProgramWebContent);
|
|
108
|
+
|
|
109
|
+
//# sourceMappingURL=TranslatedNonConsumableProgramWebContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/lib/dbmodels/nonconsprogram/TranslatedNonConsumableProgramWebContent.ts"],"sourcesContent":["import {\n BelongsTo,\n Column,\n DataType, Default,\n ForeignKey,\n Model,\n Table,\n} from \"sequelize-typescript\";\nimport {NonConsumableProgramWebContent} from \"./NonConsumableProgramWebContent\";\n\n@Table\nexport class TranslatedNonConsumableProgramWebContent extends Model {\n\n @Default(DataType.UUIDV4)\n @Column({\n type: DataType.UUID,\n defaultValue: DataType.UUID,\n allowNull: false,\n primaryKey: true,\n })\n declare uuid: string;\n\n @ForeignKey(() => NonConsumableProgramWebContent)\n @Column(DataType.UUID)\n declare originalWebContentUuid: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare language: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare title: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare subtitle: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare description: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare block1_text: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare block1_image_uri: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare block2_text: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare block2_image_uri: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare checkmark1_text: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare checkmark2_text: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare checkmark3_text: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare conclusion: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare testimonials_image_url: string;\n\n @BelongsTo(() => NonConsumableProgramWebContent)\n declare program: NonConsumableProgramWebContent[];\n}\n"],"names":["BelongsTo","Column","DataType","Default","ForeignKey","Model","Table","NonConsumableProgramWebContent","TranslatedNonConsumableProgramWebContent","UUIDV4","type","UUID","defaultValue","allowNull","primaryKey","TEXT"],"mappings":";;;;;;AAAA,SACIA,SAAS,EACTC,MAAM,EACNC,QAAQ,EAAEC,OAAO,EACjBC,UAAU,EACVC,KAAK,EACLC,KAAK,QACF,uBAAuB;AAC9B,SAAQC,8BAA8B,QAAO,mCAAmC;AAGhF,WAAaC,2CAAN,uDAAuDH;AAwD9D,EAAC;;IAtDIF,QAAQD,SAASO,MAAM;IACvBR,OAAO;QACJS,MAAMR,SAASS,IAAI;QACnBC,cAAcV,SAASS,IAAI;QAC3BE,WAAW,KAAK;QAChBC,YAAY,IAAI;IACpB;GARSN;;IAWRJ,WAAW,IAAMG;IACjBN,OAAOC,SAAS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
|
} from "sequelize-typescript";
|
|
@@ -16,6 +16,7 @@ import { TranslatedConsumableProgram } from "./TranslatedConsumableProgram";
|
|
|
16
16
|
import { UserPrograms } from "./UserNonConsumableProgram";
|
|
17
17
|
import { PersistedUser } from "../PersistedUser";
|
|
18
18
|
import {Program} from "../program/Program";
|
|
19
|
+
import {NonConsumableProgramWebContent} from "./NonConsumableProgramWebContent";
|
|
19
20
|
|
|
20
21
|
@Table
|
|
21
22
|
export class NonConsumableProgram extends Model {
|
|
@@ -73,6 +74,9 @@ export class NonConsumableProgram extends Model {
|
|
|
73
74
|
@HasMany(() => TranslatedConsumableProgram)
|
|
74
75
|
declare translatedPrograms: TranslatedConsumableProgram[];
|
|
75
76
|
|
|
77
|
+
@HasOne(() => NonConsumableProgramWebContent)
|
|
78
|
+
declare nonConsumableProgramWebContent: NonConsumableProgramWebContent;
|
|
79
|
+
|
|
76
80
|
@BelongsToMany(() => PersistedUser, { through: () => UserPrograms })
|
|
77
81
|
declare users: PersistedUser[];
|
|
78
82
|
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BelongsTo,
|
|
3
|
+
Column,
|
|
4
|
+
DataType,
|
|
5
|
+
ForeignKey,
|
|
6
|
+
Model, PrimaryKey,
|
|
7
|
+
Table,
|
|
8
|
+
} from "sequelize-typescript";
|
|
9
|
+
import {NonConsumableProgram} from "./NonConsumableProgram";
|
|
10
|
+
|
|
11
|
+
@Table
|
|
12
|
+
export class NonConsumableProgramWebContent extends Model {
|
|
13
|
+
@PrimaryKey
|
|
14
|
+
@ForeignKey(() => NonConsumableProgram)
|
|
15
|
+
@Column({type: DataType.UUID, allowNull: true})
|
|
16
|
+
declare nonConsumableProgramUuid: string;
|
|
17
|
+
|
|
18
|
+
@Column({ type: DataType.TEXT, allowNull: false })
|
|
19
|
+
declare title: string;
|
|
20
|
+
|
|
21
|
+
@Column({ type: DataType.TEXT, allowNull: false })
|
|
22
|
+
declare subtitle: string;
|
|
23
|
+
|
|
24
|
+
@Column({ type: DataType.TEXT, allowNull: false })
|
|
25
|
+
declare description: string;
|
|
26
|
+
|
|
27
|
+
@Column({ type: DataType.TEXT, allowNull: false })
|
|
28
|
+
declare block1_text: string;
|
|
29
|
+
|
|
30
|
+
@Column({ type: DataType.TEXT, allowNull: false })
|
|
31
|
+
declare block1_image_uri: string;
|
|
32
|
+
|
|
33
|
+
@Column({ type: DataType.TEXT, allowNull: false })
|
|
34
|
+
declare block2_text: string;
|
|
35
|
+
|
|
36
|
+
@Column({ type: DataType.TEXT, allowNull: false })
|
|
37
|
+
declare block2_image_uri: string;
|
|
38
|
+
|
|
39
|
+
@Column({ type: DataType.TEXT, allowNull: false })
|
|
40
|
+
declare checkmark1_text: string;
|
|
41
|
+
|
|
42
|
+
@Column({ type: DataType.TEXT, allowNull: false })
|
|
43
|
+
declare checkmark2_text: string;
|
|
44
|
+
|
|
45
|
+
@Column({ type: DataType.TEXT, allowNull: false })
|
|
46
|
+
declare checkmark3_text: string;
|
|
47
|
+
|
|
48
|
+
@Column({ type: DataType.TEXT, allowNull: false })
|
|
49
|
+
declare conclusion: string;
|
|
50
|
+
|
|
51
|
+
@Column({ type: DataType.TEXT, allowNull: false })
|
|
52
|
+
declare testimonials_image_url: string;
|
|
53
|
+
|
|
54
|
+
@BelongsTo(() => NonConsumableProgram)
|
|
55
|
+
declare program: NonConsumableProgram[];
|
|
56
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BelongsTo,
|
|
3
|
+
Column,
|
|
4
|
+
DataType, Default,
|
|
5
|
+
ForeignKey,
|
|
6
|
+
Model,
|
|
7
|
+
Table,
|
|
8
|
+
} from "sequelize-typescript";
|
|
9
|
+
import {NonConsumableProgramWebContent} from "./NonConsumableProgramWebContent";
|
|
10
|
+
|
|
11
|
+
@Table
|
|
12
|
+
export class TranslatedNonConsumableProgramWebContent extends Model {
|
|
13
|
+
|
|
14
|
+
@Default(DataType.UUIDV4)
|
|
15
|
+
@Column({
|
|
16
|
+
type: DataType.UUID,
|
|
17
|
+
defaultValue: DataType.UUID,
|
|
18
|
+
allowNull: false,
|
|
19
|
+
primaryKey: true,
|
|
20
|
+
})
|
|
21
|
+
declare uuid: string;
|
|
22
|
+
|
|
23
|
+
@ForeignKey(() => NonConsumableProgramWebContent)
|
|
24
|
+
@Column(DataType.UUID)
|
|
25
|
+
declare originalWebContentUuid: string;
|
|
26
|
+
|
|
27
|
+
@Column({ type: DataType.TEXT, allowNull: false })
|
|
28
|
+
declare language: string;
|
|
29
|
+
|
|
30
|
+
@Column({ type: DataType.TEXT, allowNull: false })
|
|
31
|
+
declare title: string;
|
|
32
|
+
|
|
33
|
+
@Column({ type: DataType.TEXT, allowNull: false })
|
|
34
|
+
declare subtitle: string;
|
|
35
|
+
|
|
36
|
+
@Column({ type: DataType.TEXT, allowNull: false })
|
|
37
|
+
declare description: string;
|
|
38
|
+
|
|
39
|
+
@Column({ type: DataType.TEXT, allowNull: false })
|
|
40
|
+
declare block1_text: string;
|
|
41
|
+
|
|
42
|
+
@Column({ type: DataType.TEXT, allowNull: false })
|
|
43
|
+
declare block1_image_uri: string;
|
|
44
|
+
|
|
45
|
+
@Column({ type: DataType.TEXT, allowNull: false })
|
|
46
|
+
declare block2_text: string;
|
|
47
|
+
|
|
48
|
+
@Column({ type: DataType.TEXT, allowNull: false })
|
|
49
|
+
declare block2_image_uri: string;
|
|
50
|
+
|
|
51
|
+
@Column({ type: DataType.TEXT, allowNull: false })
|
|
52
|
+
declare checkmark1_text: string;
|
|
53
|
+
|
|
54
|
+
@Column({ type: DataType.TEXT, allowNull: false })
|
|
55
|
+
declare checkmark2_text: string;
|
|
56
|
+
|
|
57
|
+
@Column({ type: DataType.TEXT, allowNull: false })
|
|
58
|
+
declare checkmark3_text: string;
|
|
59
|
+
|
|
60
|
+
@Column({ type: DataType.TEXT, allowNull: false })
|
|
61
|
+
declare conclusion: string;
|
|
62
|
+
|
|
63
|
+
@Column({ type: DataType.TEXT, allowNull: false })
|
|
64
|
+
declare testimonials_image_url: string;
|
|
65
|
+
|
|
66
|
+
@BelongsTo(() => NonConsumableProgramWebContent)
|
|
67
|
+
declare program: NonConsumableProgramWebContent[];
|
|
68
|
+
}
|