90dc-core 1.7.3 → 1.7.5

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.
@@ -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;
@@ -14,11 +15,13 @@ export declare class NonConsumableProgram extends Model {
14
15
  goal: ConsumableProgramGoals;
15
16
  type: ConsumableProgramTypes;
16
17
  isFree: boolean;
18
+ isHighlighted: boolean;
17
19
  productIdAndroid: string | null;
18
20
  productIdIos: string | null;
19
21
  header: string | null;
20
22
  isCustom: boolean;
21
23
  translatedPrograms: TranslatedConsumableProgram[];
24
+ nonConsumableProgramWebContent: NonConsumableProgramWebContent;
22
25
  users: PersistedUser[];
23
26
  programs: Program[];
24
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([
@@ -75,6 +76,13 @@ __decorate([
75
76
  allowNull: false
76
77
  })
77
78
  ], NonConsumableProgram.prototype, "isFree", void 0);
79
+ __decorate([
80
+ Column({
81
+ type: DataType.BOOLEAN,
82
+ allowNull: false,
83
+ defaultValue: false
84
+ })
85
+ ], NonConsumableProgram.prototype, "isHighlighted", void 0);
78
86
  __decorate([
79
87
  Column({
80
88
  type: DataType.TEXT,
@@ -102,6 +110,9 @@ __decorate([
102
110
  __decorate([
103
111
  HasMany(()=>TranslatedConsumableProgram)
104
112
  ], NonConsumableProgram.prototype, "translatedPrograms", void 0);
113
+ __decorate([
114
+ HasOne(()=>NonConsumableProgramWebContent)
115
+ ], NonConsumableProgram.prototype, "nonConsumableProgramWebContent", void 0);
105
116
  __decorate([
106
117
  BelongsToMany(()=>PersistedUser, {
107
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.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,EACPC,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;AAG5C,WAAaC,uBAAN,mCAAmCN;AAyD1C,EAAC;;IAxDEF,QAAQD,SAASU,MAAM;IACvBX,OAAO;QACNY,MAAMX,SAASY,IAAI;QACnBC,cAAcb,SAASY,IAAI;QAC3BE,WAAW,KAAK;QAChBC,YAAY,IAAI;IAClB;GAPWN;;IAUVV,OAAO;QAAEY,MAAMX,SAASgB,IAAI;QAAEF,WAAW,KAAK;IAAC;GAVrCL;;IAaVV,OAAO;QAAEY,MAAMX,SAASgB,IAAI;QAAEF,WAAW,KAAK;IAAC;GAbrCL;;IAgBVV,OAAO;QAAEY,MAAMX,SAASgB,IAAI;QAAEF,WAAW,KAAK;IAAC;GAhBrCL;;IAmBVV,OAAO;QAAEY,MAAMX,SAASiB,OAAO;QAAEH,WAAW,KAAK;IAAC;GAnBxCL;;IAsBVV,OAAO;QAAEY,MAAMX,SAASiB,OAAO;QAAEH,WAAW,KAAK;QAAED,cAAc;IAAE;GAtBzDJ;;IAyBVV,OAAO;QAAEY,MAAMX,SAASgB,IAAI;QAAEF,WAAW,KAAK;IAAC;GAzBrCL;;IA4BVV,OAAO;QAAEY,MAAMX,SAASgB,IAAI;QAAEF,WAAW,KAAK;IAAC;GA5BrCL;;IA+BVV,OAAO;QAAEY,MAAMX,SAASgB,IAAI;QAAEF,WAAW,KAAK;IAAC;GA/BrCL;;IAkCVV,OAAO;QAAEY,MAAMX,SAASkB,OAAO;QAAEJ,WAAW,KAAK;IAAC;GAlCxCL;;IAqCVV,OAAO;QAAEY,MAAMX,SAASgB,IAAI;QAAEF,WAAW,IAAI;IAAC;GArCpCL;;IAwCVV,OAAO;QAAEY,MAAMX,SAASgB,IAAI;QAAEF,WAAW,IAAI;IAAC;GAxCpCL;;IA2CVV,OAAO;QAAEY,MAAMX,SAASgB,IAAI;QAAEF,WAAW,IAAI;IAAC;GA3CpCL;;IA8CVV,OAAO;QAAEY,MAAMX,SAASkB,OAAO;QAAEL,cAAc,KAAK;IAAC;GA9C3CJ;;IAiDVP,QAAQ,IAAMG;GAjDJI;;IAoDVX,cAAc,IAAMS,eAAe;QAAEY,SAAS,IAAMb;IAAa;GApDvDG;;IAuDVP,QAAQ,IAAMM;GAvDJC;AAAAA;IADZL;GACYK"}
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,IAAI;QAAEF,WAAW,KAAK;IAAC;GAVrCL;;IAaVZ,OAAO;QAAEc,MAAMb,SAASkB,IAAI;QAAEF,WAAW,KAAK;IAAC;GAbrCL;;IAgBVZ,OAAO;QAAEc,MAAMb,SAASkB,IAAI;QAAEF,WAAW,KAAK;IAAC;GAhBrCL;;IAmBVZ,OAAO;QAAEc,MAAMb,SAASmB,OAAO;QAAEH,WAAW,KAAK;IAAC;GAnBxCL;;IAsBVZ,OAAO;QAAEc,MAAMb,SAASmB,OAAO;QAAEH,WAAW,KAAK;QAAED,cAAc;IAAE;GAtBzDJ;;IAyBVZ,OAAO;QAAEc,MAAMb,SAASkB,IAAI;QAAEF,WAAW,KAAK;IAAC;GAzBrCL;;IA4BVZ,OAAO;QAAEc,MAAMb,SAASkB,IAAI;QAAEF,WAAW,KAAK;IAAC;GA5BrCL;;IA+BVZ,OAAO;QAAEc,MAAMb,SAASkB,IAAI;QAAEF,WAAW,KAAK;IAAC;GA/BrCL;;IAkCVZ,OAAO;QAAEc,MAAMb,SAASoB,OAAO;QAAEJ,WAAW,KAAK;IAAC;GAlCxCL;;IAqCVZ,OAAO;QAAEc,MAAMb,SAASoB,OAAO;QAAEJ,WAAW,KAAK;QAAED,cAAc,KAAK;IAAC;GArC7DJ;;IAwCVZ,OAAO;QAAEc,MAAMb,SAASkB,IAAI;QAAEF,WAAW,IAAI;IAAC;GAxCpCL;;IA2CVZ,OAAO;QAAEc,MAAMb,SAASkB,IAAI;QAAEF,WAAW,IAAI;IAAC;GA3CpCL;;IA8CVZ,OAAO;QAAEc,MAAMb,SAASkB,IAAI;QAAEF,WAAW,IAAI;IAAC;GA9CpCL;;IAiDVZ,OAAO;QAAEc,MAAMb,SAASoB,OAAO;QAAEL,cAAc,KAAK;IAAC;GAjD3CJ;;IAoDVT,QAAQ,IAAMI;GApDJK;;IAuDVR,OAAO,IAAMO;GAvDHC;;IA0DVb,cAAc,IAAMU,eAAe;QAAEa,SAAS,IAAMd;IAAa;GA1DvDI;;IA6DVT,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,19 @@
1
+ import { Model } from "sequelize-typescript";
2
+ export declare class NonConsumableProgramWebContent extends Model {
3
+ uuid: string;
4
+ originalWebContentUuid: string;
5
+ language: string;
6
+ title: string;
7
+ subtitle: string;
8
+ description: string;
9
+ block1_text: string;
10
+ block1_image_uri: string;
11
+ block2_text: string;
12
+ block2_image_uri: string;
13
+ checkmark1_text: string;
14
+ checkmark2_text: string;
15
+ checkmark3_text: string;
16
+ conclusion: string;
17
+ testimonials_image_url: string;
18
+ program: NonConsumableProgramWebContent[];
19
+ }
@@ -0,0 +1,108 @@
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
+ export let NonConsumableProgramWebContent = class NonConsumableProgramWebContent extends Model {
9
+ };
10
+ __decorate([
11
+ Default(DataType.UUIDV4),
12
+ Column({
13
+ type: DataType.UUID,
14
+ defaultValue: DataType.UUID,
15
+ allowNull: false,
16
+ primaryKey: true
17
+ })
18
+ ], NonConsumableProgramWebContent.prototype, "uuid", void 0);
19
+ __decorate([
20
+ ForeignKey(()=>NonConsumableProgramWebContent),
21
+ Column(DataType.UUID)
22
+ ], NonConsumableProgramWebContent.prototype, "originalWebContentUuid", void 0);
23
+ __decorate([
24
+ Column({
25
+ type: DataType.TEXT,
26
+ allowNull: false
27
+ })
28
+ ], NonConsumableProgramWebContent.prototype, "language", void 0);
29
+ __decorate([
30
+ Column({
31
+ type: DataType.TEXT,
32
+ allowNull: false
33
+ })
34
+ ], NonConsumableProgramWebContent.prototype, "title", void 0);
35
+ __decorate([
36
+ Column({
37
+ type: DataType.TEXT,
38
+ allowNull: false
39
+ })
40
+ ], NonConsumableProgramWebContent.prototype, "subtitle", void 0);
41
+ __decorate([
42
+ Column({
43
+ type: DataType.TEXT,
44
+ allowNull: false
45
+ })
46
+ ], NonConsumableProgramWebContent.prototype, "description", void 0);
47
+ __decorate([
48
+ Column({
49
+ type: DataType.TEXT,
50
+ allowNull: false
51
+ })
52
+ ], NonConsumableProgramWebContent.prototype, "block1_text", void 0);
53
+ __decorate([
54
+ Column({
55
+ type: DataType.TEXT,
56
+ allowNull: false
57
+ })
58
+ ], NonConsumableProgramWebContent.prototype, "block1_image_uri", void 0);
59
+ __decorate([
60
+ Column({
61
+ type: DataType.TEXT,
62
+ allowNull: false
63
+ })
64
+ ], NonConsumableProgramWebContent.prototype, "block2_text", void 0);
65
+ __decorate([
66
+ Column({
67
+ type: DataType.TEXT,
68
+ allowNull: false
69
+ })
70
+ ], NonConsumableProgramWebContent.prototype, "block2_image_uri", void 0);
71
+ __decorate([
72
+ Column({
73
+ type: DataType.TEXT,
74
+ allowNull: false
75
+ })
76
+ ], NonConsumableProgramWebContent.prototype, "checkmark1_text", void 0);
77
+ __decorate([
78
+ Column({
79
+ type: DataType.TEXT,
80
+ allowNull: false
81
+ })
82
+ ], NonConsumableProgramWebContent.prototype, "checkmark2_text", void 0);
83
+ __decorate([
84
+ Column({
85
+ type: DataType.TEXT,
86
+ allowNull: false
87
+ })
88
+ ], NonConsumableProgramWebContent.prototype, "checkmark3_text", void 0);
89
+ __decorate([
90
+ Column({
91
+ type: DataType.TEXT,
92
+ allowNull: false
93
+ })
94
+ ], NonConsumableProgramWebContent.prototype, "conclusion", void 0);
95
+ __decorate([
96
+ Column({
97
+ type: DataType.TEXT,
98
+ allowNull: false
99
+ })
100
+ ], NonConsumableProgramWebContent.prototype, "testimonials_image_url", void 0);
101
+ __decorate([
102
+ BelongsTo(()=>NonConsumableProgramWebContent)
103
+ ], NonConsumableProgramWebContent.prototype, "program", void 0);
104
+ NonConsumableProgramWebContent = __decorate([
105
+ Table
106
+ ], NonConsumableProgramWebContent);
107
+
108
+ //# 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\";\n\n@Table\nexport class NonConsumableProgramWebContent 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","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;AAG9B,WAAaC,iCAAN,6CAA6CF;AAwDpD,EAAC;;IAtDIF,QAAQD,SAASM,MAAM;IACvBP,OAAO;QACJQ,MAAMP,SAASQ,IAAI;QACnBC,cAAcT,SAASQ,IAAI;QAC3BE,WAAW,KAAK;QAChBC,YAAY,IAAI;IACpB;GARSN;;IAWRH,WAAW,IAAMG;IACjBN,OAAOC,SAASQ,IAAI;GAZZH;;IAeRN,OAAO;QAAEQ,MAAMP,SAASY,IAAI;QAAEF,WAAW,KAAK;IAAC;GAfvCL;;IAkBRN,OAAO;QAAEQ,MAAMP,SAASY,IAAI;QAAEF,WAAW,KAAK;IAAC;GAlBvCL;;IAqBRN,OAAO;QAAEQ,MAAMP,SAASY,IAAI;QAAEF,WAAW,KAAK;IAAC;GArBvCL;;IAwBRN,OAAO;QAAEQ,MAAMP,SAASY,IAAI;QAAEF,WAAW,KAAK;IAAC;GAxBvCL;;IA2BRN,OAAO;QAAEQ,MAAMP,SAASY,IAAI;QAAEF,WAAW,KAAK;IAAC;GA3BvCL;;IA8BRN,OAAO;QAAEQ,MAAMP,SAASY,IAAI;QAAEF,WAAW,KAAK;IAAC;GA9BvCL;;IAiCRN,OAAO;QAAEQ,MAAMP,SAASY,IAAI;QAAEF,WAAW,KAAK;IAAC;GAjCvCL;;IAoCRN,OAAO;QAAEQ,MAAMP,SAASY,IAAI;QAAEF,WAAW,KAAK;IAAC;GApCvCL;;IAuCRN,OAAO;QAAEQ,MAAMP,SAASY,IAAI;QAAEF,WAAW,KAAK;IAAC;GAvCvCL;;IA0CRN,OAAO;QAAEQ,MAAMP,SAASY,IAAI;QAAEF,WAAW,KAAK;IAAC;GA1CvCL;;IA6CRN,OAAO;QAAEQ,MAAMP,SAASY,IAAI;QAAEF,WAAW,KAAK;IAAC;GA7CvCL;;IAgDRN,OAAO;QAAEQ,MAAMP,SAASY,IAAI;QAAEF,WAAW,KAAK;IAAC;GAhDvCL;;IAmDRN,OAAO;QAAEQ,MAAMP,SAASY,IAAI;QAAEF,WAAW,KAAK;IAAC;GAnDvCL;;IAsDRP,UAAU,IAAMO;GAtDRA;AAAAA;IADZD;GACYC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "90dc-core",
3
- "version": "1.7.3",
3
+ "version": "1.7.5",
4
4
  "description": "A package that contains utils and interfaces used to create 90dc",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -3,7 +3,7 @@ import {
3
3
  Column,
4
4
  DataType,
5
5
  Default,
6
- HasMany,
6
+ HasMany, HasOne,
7
7
  Model,
8
8
  Table,
9
9
  } 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 {
@@ -55,6 +56,9 @@ export class NonConsumableProgram extends Model {
55
56
  @Column({ type: DataType.BOOLEAN, allowNull: false })
56
57
  declare isFree: boolean;
57
58
 
59
+ @Column({ type: DataType.BOOLEAN, allowNull: false, defaultValue: false })
60
+ declare isHighlighted: boolean;
61
+
58
62
  @Column({ type: DataType.TEXT, allowNull: true })
59
63
  declare productIdAndroid: string | null;
60
64
 
@@ -70,6 +74,9 @@ export class NonConsumableProgram extends Model {
70
74
  @HasMany(() => TranslatedConsumableProgram)
71
75
  declare translatedPrograms: TranslatedConsumableProgram[];
72
76
 
77
+ @HasOne(() => NonConsumableProgramWebContent)
78
+ declare nonConsumableProgramWebContent: NonConsumableProgramWebContent;
79
+
73
80
  @BelongsToMany(() => PersistedUser, { through: () => UserPrograms })
74
81
  declare users: PersistedUser[];
75
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,67 @@
1
+ import {
2
+ BelongsTo,
3
+ Column,
4
+ DataType, Default,
5
+ ForeignKey,
6
+ Model,
7
+ Table,
8
+ } from "sequelize-typescript";
9
+
10
+ @Table
11
+ export class NonConsumableProgramWebContent extends Model {
12
+
13
+ @Default(DataType.UUIDV4)
14
+ @Column({
15
+ type: DataType.UUID,
16
+ defaultValue: DataType.UUID,
17
+ allowNull: false,
18
+ primaryKey: true,
19
+ })
20
+ declare uuid: string;
21
+
22
+ @ForeignKey(() => NonConsumableProgramWebContent)
23
+ @Column(DataType.UUID)
24
+ declare originalWebContentUuid: string;
25
+
26
+ @Column({ type: DataType.TEXT, allowNull: false })
27
+ declare language: string;
28
+
29
+ @Column({ type: DataType.TEXT, allowNull: false })
30
+ declare title: string;
31
+
32
+ @Column({ type: DataType.TEXT, allowNull: false })
33
+ declare subtitle: string;
34
+
35
+ @Column({ type: DataType.TEXT, allowNull: false })
36
+ declare description: string;
37
+
38
+ @Column({ type: DataType.TEXT, allowNull: false })
39
+ declare block1_text: string;
40
+
41
+ @Column({ type: DataType.TEXT, allowNull: false })
42
+ declare block1_image_uri: string;
43
+
44
+ @Column({ type: DataType.TEXT, allowNull: false })
45
+ declare block2_text: string;
46
+
47
+ @Column({ type: DataType.TEXT, allowNull: false })
48
+ declare block2_image_uri: string;
49
+
50
+ @Column({ type: DataType.TEXT, allowNull: false })
51
+ declare checkmark1_text: string;
52
+
53
+ @Column({ type: DataType.TEXT, allowNull: false })
54
+ declare checkmark2_text: string;
55
+
56
+ @Column({ type: DataType.TEXT, allowNull: false })
57
+ declare checkmark3_text: string;
58
+
59
+ @Column({ type: DataType.TEXT, allowNull: false })
60
+ declare conclusion: string;
61
+
62
+ @Column({ type: DataType.TEXT, allowNull: false })
63
+ declare testimonials_image_url: string;
64
+
65
+ @BelongsTo(() => NonConsumableProgramWebContent)
66
+ declare program: NonConsumableProgramWebContent[];
67
+ }