90dc-core 1.9.8 → 1.9.10
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/UserDiscount.js +1 -1
- package/dist/lib/dbmodels/UserDiscount.js.map +1 -1
- package/dist/lib/dbmodels/nonconsprogram/NonConsumableProgram.d.ts +1 -0
- package/dist/lib/dbmodels/nonconsprogram/NonConsumableProgram.js +7 -0
- package/dist/lib/dbmodels/nonconsprogram/NonConsumableProgram.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/dbmodels/UserDiscount.ts +1 -1
- package/src/lib/dbmodels/nonconsprogram/NonConsumableProgram.ts +8 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/lib/dbmodels/UserDiscount.ts"],"sourcesContent":["import { Table, Model, Column, DataType, ForeignKey } from \"sequelize-typescript\";\nimport {PersistedUser} from \"./PersistedUser.js\";\n\n@Table({\n timestamps: true,\n})\nexport class UserDiscount extends Model {\n @ForeignKey(() => PersistedUser)\n @Column(DataType.UUID)\n declare userUuid: string;\n\n @Column(DataType.
|
|
1
|
+
{"version":3,"sources":["../../../src/lib/dbmodels/UserDiscount.ts"],"sourcesContent":["import { Table, Model, Column, DataType, ForeignKey } from \"sequelize-typescript\";\nimport {PersistedUser} from \"./PersistedUser.js\";\n\n@Table({\n timestamps: true,\n})\nexport class UserDiscount extends Model {\n @ForeignKey(() => PersistedUser)\n @Column(DataType.UUID)\n declare userUuid: string;\n\n @Column(DataType.INTEGER)\n declare discountAmount: number;\n}\n"],"names":["Table","Model","Column","DataType","ForeignKey","PersistedUser","UserDiscount","UUID","INTEGER","timestamps"],"mappings":";;;;;;AAAA,SAASA,KAAK,EAAEC,KAAK,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,UAAU,QAAQ,uBAAuB;AAClF,SAAQC,aAAa,QAAO,qBAAqB;AAKjD,WAAaC,eAAN,2BAA2BL;AAOlC,EAAC;;IANIG,WAAW,IAAMC;IACjBH,OAAOC,SAASI,IAAI;GAFZD;;IAKRJ,OAAOC,SAASK,OAAO;GALfF;AAAAA;IAHZN,MAAM;QACHS,YAAY,IAAI;IACpB;GACaH"}
|
|
@@ -23,6 +23,7 @@ export declare class NonConsumableProgram extends Model {
|
|
|
23
23
|
productIdIos: string | null;
|
|
24
24
|
header: string | null;
|
|
25
25
|
isCustom: boolean;
|
|
26
|
+
isHidden: boolean;
|
|
26
27
|
translatedPrograms: TranslatedConsumableProgram[];
|
|
27
28
|
nonConsumableProgramWebContent: NonConsumableProgramWebContent;
|
|
28
29
|
users: PersistedUser[];
|
|
@@ -127,6 +127,13 @@ __decorate([
|
|
|
127
127
|
defaultValue: false
|
|
128
128
|
})
|
|
129
129
|
], NonConsumableProgram.prototype, "isCustom", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
Column({
|
|
132
|
+
type: DataType.BOOLEAN,
|
|
133
|
+
allowNull: false,
|
|
134
|
+
defaultValue: false
|
|
135
|
+
})
|
|
136
|
+
], NonConsumableProgram.prototype, "isHidden", void 0);
|
|
130
137
|
__decorate([
|
|
131
138
|
HasMany(()=>TranslatedConsumableProgram)
|
|
132
139
|
], 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
|
|
1
|
+
{"version":3,"sources":["../../../../src/lib/dbmodels/nonconsprogram/NonConsumableProgram.ts"],"sourcesContent":["import {\n BelongsToMany,\n Column,\n DataType,\n Default,\n HasMany,\n 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 @Column({ type: DataType.BOOLEAN, allowNull: false, defaultValue: false })\n declare isHidden: 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}"],"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,EACPC,MAAM,EACNC,KAAK,EACLC,KAAK,QACA,uBAAuB;AAM9B,SAASC,2BAA2B,QAAQ,gCAAgC;AAC5E,SAASC,YAAY,QAAQ,6BAA6B;AAC1D,SAASC,aAAa,QAAQ,mBAAmB;AACjD,SAASC,OAAO,QAAQ,qBAAqB;AAC7C,SAASC,8BAA8B,QAAQ,mCAAmC;AAGlF,WAAaC,uBAAN,mCAAmCP;AA2E1C,EAAC;;IA1EEH,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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AMU,eAAe;QAAEa,SAAS,IAAMd;IAAa;GAtEvDI;;IAyEVT,QAAQ,IAAMO;GAzEJE;AAAAA;IADZN;GACYM"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,8 @@ import {
|
|
|
3
3
|
Column,
|
|
4
4
|
DataType,
|
|
5
5
|
Default,
|
|
6
|
-
HasMany,
|
|
6
|
+
HasMany,
|
|
7
|
+
HasOne,
|
|
7
8
|
Model,
|
|
8
9
|
Table,
|
|
9
10
|
} from "sequelize-typescript";
|
|
@@ -15,8 +16,8 @@ import {
|
|
|
15
16
|
import { TranslatedConsumableProgram } from "./TranslatedConsumableProgram";
|
|
16
17
|
import { UserPrograms } from "./UserNonConsumableProgram";
|
|
17
18
|
import { PersistedUser } from "../PersistedUser";
|
|
18
|
-
import
|
|
19
|
-
import {NonConsumableProgramWebContent} from "./NonConsumableProgramWebContent";
|
|
19
|
+
import { Program } from "../program/Program";
|
|
20
|
+
import { NonConsumableProgramWebContent } from "./NonConsumableProgramWebContent";
|
|
20
21
|
|
|
21
22
|
@Table
|
|
22
23
|
export class NonConsumableProgram extends Model {
|
|
@@ -80,6 +81,9 @@ export class NonConsumableProgram extends Model {
|
|
|
80
81
|
@Column({ type: DataType.BOOLEAN, defaultValue: false })
|
|
81
82
|
declare isCustom: boolean;
|
|
82
83
|
|
|
84
|
+
@Column({ type: DataType.BOOLEAN, allowNull: false, defaultValue: false })
|
|
85
|
+
declare isHidden: boolean;
|
|
86
|
+
|
|
83
87
|
@HasMany(() => TranslatedConsumableProgram)
|
|
84
88
|
declare translatedPrograms: TranslatedConsumableProgram[];
|
|
85
89
|
|
|
@@ -91,4 +95,4 @@ export class NonConsumableProgram extends Model {
|
|
|
91
95
|
|
|
92
96
|
@HasMany(() => Program)
|
|
93
97
|
declare programs: Program[];
|
|
94
|
-
}
|
|
98
|
+
}
|