90dc-core 1.9.2 → 1.9.3

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.
@@ -17,6 +17,8 @@ export declare class NonConsumableProgram extends Model {
17
17
  isFree: boolean;
18
18
  isHighlighted: boolean;
19
19
  is30DC: boolean;
20
+ isUnique: boolean;
21
+ uniqueProgramUuid: string;
20
22
  productIdAndroid: string | null;
21
23
  productIdIos: string | null;
22
24
  header: string | null;
@@ -90,6 +90,19 @@ __decorate([
90
90
  defaultValue: false
91
91
  })
92
92
  ], NonConsumableProgram.prototype, "is30DC", void 0);
93
+ __decorate([
94
+ Column({
95
+ type: DataType.BOOLEAN,
96
+ allowNull: false,
97
+ defaultValue: false
98
+ })
99
+ ], NonConsumableProgram.prototype, "isUnique", void 0);
100
+ __decorate([
101
+ Column({
102
+ type: DataType.TEXT,
103
+ allowNull: true
104
+ })
105
+ ], NonConsumableProgram.prototype, "uniqueProgramUuid", void 0);
93
106
  __decorate([
94
107
  Column({
95
108
  type: DataType.TEXT,
@@ -1 +1 @@
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.BOOLEAN, allowNull: false, defaultValue: false })\n declare is30DC: 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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c,KAAK;IAAC;GArC7DJ;;IAwCVZ,OAAO;QAAEc,MAAMb,SAASoB,OAAO;QAAEJ,WAAW,KAAK;QAAED,cAAc,KAAK;IAAC;GAxC7DJ;;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,SAASkB,IAAI;QAAEF,WAAW,IAAI;IAAC;GAjDpCL;;IAoDVZ,OAAO;QAAEc,MAAMb,SAASoB,OAAO;QAAEL,cAAc,KAAK;IAAC;GApD3CJ;;IAuDVT,QAAQ,IAAMI;GAvDJK;;IA0DVR,OAAO,IAAMO;GA1DHC;;IA6DVb,cAAc,IAAMU,eAAe;QAAEa,SAAS,IAAMd;IAAa;GA7DvDI;;IAgEVT,QAAQ,IAAMO;GAhEJE;AAAAA;IADZN;GACYM"}
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.BOOLEAN, allowNull: false, defaultValue: false })\n declare is30DC: boolean;\n\n @Column({ type: DataType.BOOLEAN, allowNull: false, defaultValue: false })\n declare isUnique: boolean;\n\n @Column({ type: DataType.TEXT, allowNull: true })\n declare uniqueProgramUuid: string;\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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CVZ,OAAO;QAAEc,MAAMb,SAASoB,OAAO;QAAEJ,WAAW,KAAK;QAAED,cAAc,KAAK;IAAC;GArC7DJ;;IAwCVZ,OAAO;QAAEc,MAAMb,SAASoB,OAAO;QAAEJ,WAAW,KAAK;QAAED,cAAc,KAAK;IAAC;GAxC7DJ;;IA2CVZ,OAAO;QAAEc,MAAMb,SAASoB,OAAO;QAAEJ,WAAW,KAAK;QAAED,cAAc,KAAK;IAAC;GA3C7DJ;;IA8CVZ,OAAO;QAAEc,MAAMb,SAASkB,IAAI;QAAEF,WAAW,IAAI;IAAC;GA9CpCL;;IAiDVZ,OAAO;QAAEc,MAAMb,SAASkB,IAAI;QAAEF,WAAW,IAAI;IAAC;GAjDpCL;;IAoDVZ,OAAO;QAAEc,MAAMb,SAASkB,IAAI;QAAEF,WAAW,IAAI;IAAC;GApDpCL;;IAuDVZ,OAAO;QAAEc,MAAMb,SAASkB,IAAI;QAAEF,WAAW,IAAI;IAAC;GAvDpCL;;IA0DVZ,OAAO;QAAEc,MAAMb,SAASoB,OAAO;QAAEL,cAAc,KAAK;IAAC;GA1D3CJ;;IA6DVT,QAAQ,IAAMI;GA7DJK;;IAgEVR,OAAO,IAAMO;GAhEHC;;IAmEVb,cAAc,IAAMU,eAAe;QAAEa,SAAS,IAAMd;IAAa;GAnEvDI;;IAsEVT,QAAQ,IAAMO;GAtEJE;AAAAA;IADZN;GACYM"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "90dc-core",
3
- "version": "1.9.2",
3
+ "version": "1.9.3",
4
4
  "description": "A package that contains utils and interfaces used to create 90dc",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -62,6 +62,12 @@ export class NonConsumableProgram extends Model {
62
62
  @Column({ type: DataType.BOOLEAN, allowNull: false, defaultValue: false })
63
63
  declare is30DC: boolean;
64
64
 
65
+ @Column({ type: DataType.BOOLEAN, allowNull: false, defaultValue: false })
66
+ declare isUnique: boolean;
67
+
68
+ @Column({ type: DataType.TEXT, allowNull: true })
69
+ declare uniqueProgramUuid: string;
70
+
65
71
  @Column({ type: DataType.TEXT, allowNull: true })
66
72
  declare productIdAndroid: string | null;
67
73