90dc-core 1.7.2 → 1.7.4

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.
@@ -14,8 +14,11 @@ export declare class NonConsumableProgram extends Model {
14
14
  goal: ConsumableProgramGoals;
15
15
  type: ConsumableProgramTypes;
16
16
  isFree: boolean;
17
+ isHighlighted: boolean;
17
18
  productIdAndroid: string | null;
18
19
  productIdIos: string | null;
20
+ header: string | null;
21
+ isCustom: boolean;
19
22
  translatedPrograms: TranslatedConsumableProgram[];
20
23
  users: PersistedUser[];
21
24
  programs: Program[];
@@ -75,6 +75,13 @@ __decorate([
75
75
  allowNull: false
76
76
  })
77
77
  ], NonConsumableProgram.prototype, "isFree", void 0);
78
+ __decorate([
79
+ Column({
80
+ type: DataType.BOOLEAN,
81
+ allowNull: false,
82
+ defaultValue: false
83
+ })
84
+ ], NonConsumableProgram.prototype, "isHighlighted", void 0);
78
85
  __decorate([
79
86
  Column({
80
87
  type: DataType.TEXT,
@@ -87,6 +94,18 @@ __decorate([
87
94
  allowNull: true
88
95
  })
89
96
  ], NonConsumableProgram.prototype, "productIdIos", void 0);
97
+ __decorate([
98
+ Column({
99
+ type: DataType.TEXT,
100
+ allowNull: true
101
+ })
102
+ ], NonConsumableProgram.prototype, "header", void 0);
103
+ __decorate([
104
+ Column({
105
+ type: DataType.BOOLEAN,
106
+ defaultValue: false
107
+ })
108
+ ], NonConsumableProgram.prototype, "isCustom", void 0);
90
109
  __decorate([
91
110
  HasMany(()=>TranslatedConsumableProgram)
92
111
  ], NonConsumableProgram.prototype, "translatedPrograms", void 0);
@@ -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 @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,KA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A2CVP,QAAQ,IAAMG;GA3CJI;;IA8CVX,cAAc,IAAMS,eAAe;QAAEY,SAAS,IAAMb;IAAa;GA9CvDG;;IAiDVP,QAAQ,IAAMM;GAjDJC;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,\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,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;AA4D1C,EAAC;;IA3DEF,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,SAASkB,OAAO;QAAEJ,WAAW,KAAK;QAAED,cAAc,KAAK;IAAC;GArC7DJ;;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,SAASgB,IAAI;QAAEF,WAAW,IAAI;IAAC;GA9CpCL;;IAiDVV,OAAO;QAAEY,MAAMX,SAASkB,OAAO;QAAEL,cAAc,KAAK;IAAC;GAjD3CJ;;IAoDVP,QAAQ,IAAMG;GApDJI;;IAuDVX,cAAc,IAAMS,eAAe;QAAEY,SAAS,IAAMb;IAAa;GAvDvDG;;IA0DVP,QAAQ,IAAMM;GA1DJC;AAAAA;IADZL;GACYK"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "90dc-core",
3
- "version": "1.7.2",
3
+ "version": "1.7.4",
4
4
  "description": "A package that contains utils and interfaces used to create 90dc",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -55,12 +55,21 @@ export class NonConsumableProgram extends Model {
55
55
  @Column({ type: DataType.BOOLEAN, allowNull: false })
56
56
  declare isFree: boolean;
57
57
 
58
+ @Column({ type: DataType.BOOLEAN, allowNull: false, defaultValue: false })
59
+ declare isHighlighted: boolean;
60
+
58
61
  @Column({ type: DataType.TEXT, allowNull: true })
59
62
  declare productIdAndroid: string | null;
60
63
 
61
64
  @Column({ type: DataType.TEXT, allowNull: true })
62
65
  declare productIdIos: string | null;
63
66
 
67
+ @Column({ type: DataType.TEXT, allowNull: true })
68
+ declare header: string | null;
69
+
70
+ @Column({ type: DataType.BOOLEAN, defaultValue: false })
71
+ declare isCustom: boolean;
72
+
64
73
  @HasMany(() => TranslatedConsumableProgram)
65
74
  declare translatedPrograms: TranslatedConsumableProgram[];
66
75