90dc-core 1.5.12 → 1.5.13

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,7 +3,7 @@ import { PersistedUser } from "./PersistedUser";
3
3
  export declare class Badge extends Model {
4
4
  uuid: string;
5
5
  title: string;
6
- type: string;
6
+ imageURL: string;
7
7
  description: string;
8
8
  users: PersistedUser[];
9
9
  }
@@ -29,7 +29,7 @@ __decorate([
29
29
  type: DataType.TEXT,
30
30
  allowNull: false
31
31
  })
32
- ], Badge.prototype, "type", void 0);
32
+ ], Badge.prototype, "imageURL", void 0);
33
33
  __decorate([
34
34
  Column({
35
35
  type: DataType.TEXT,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/lib/dbmodels/Badge.ts"],"sourcesContent":["import { BelongsToMany, Column, DataType, Default, Model, Table } from \"sequelize-typescript\";\nimport { UserBadges } from \"./UserBadges\";\nimport { PersistedUser } from \"./PersistedUser\";\n\n@Table\nexport class Badge 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 type: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare description: string;\n\n @BelongsToMany(() => PersistedUser, () => UserBadges)\n declare users: PersistedUser[];\n}\n"],"names":["BelongsToMany","Column","DataType","Default","Model","Table","UserBadges","PersistedUser","Badge","UUIDV4","type","UUID","defaultValue","allowNull","primaryKey","TEXT"],"mappings":";;;;;;AAAA,SAASA,aAAa,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,KAAK,EAAEC,KAAK,QAAQ,uBAAuB;AAC9F,SAASC,UAAU,QAAQ,eAAe;AAC1C,SAASC,aAAa,QAAQ,kBAAkB;AAGhD,WAAaC,QAAN,oBAAoBJ;AAqB3B,EAAC;;IApBID,QAAQD,SAASO,MAAM;IACvBR,OAAO;QACJS,MAAMR,SAASS,IAAI;QACnBC,cAAcV,SAASS,IAAI;QAC3BE,WAAW,KAAK;QAChBC,YAAY,IAAI;IACpB;GAPSN;;IAURP,OAAO;QAAES,MAAMR,SAASa,IAAI;QAAEF,WAAW,KAAK;IAAC;GAVvCL;;IAaRP,OAAO;QAAES,MAAMR,SAASa,IAAI;QAAEF,WAAW,KAAK;IAAC;GAbvCL;;IAgBRP,OAAO;QAAES,MAAMR,SAASa,IAAI;QAAEF,WAAW,KAAK;IAAC;GAhBvCL;;IAmBRR,cAAc,IAAMO,eAAe,IAAMD;GAnBjCE;AAAAA;IADZH;GACYG"}
1
+ {"version":3,"sources":["../../../src/lib/dbmodels/Badge.ts"],"sourcesContent":["import { BelongsToMany, Column, DataType, Default, Model, Table } from \"sequelize-typescript\";\nimport { UserBadges } from \"./UserBadges\";\nimport { PersistedUser } from \"./PersistedUser\";\n\n@Table\nexport class Badge 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 imageURL: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare description: string;\n\n @BelongsToMany(() => PersistedUser, () => UserBadges)\n declare users: PersistedUser[];\n}\n"],"names":["BelongsToMany","Column","DataType","Default","Model","Table","UserBadges","PersistedUser","Badge","UUIDV4","type","UUID","defaultValue","allowNull","primaryKey","TEXT"],"mappings":";;;;;;AAAA,SAASA,aAAa,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,KAAK,EAAEC,KAAK,QAAQ,uBAAuB;AAC9F,SAASC,UAAU,QAAQ,eAAe;AAC1C,SAASC,aAAa,QAAQ,kBAAkB;AAGhD,WAAaC,QAAN,oBAAoBJ;AAqB3B,EAAC;;IApBID,QAAQD,SAASO,MAAM;IACvBR,OAAO;QACJS,MAAMR,SAASS,IAAI;QACnBC,cAAcV,SAASS,IAAI;QAC3BE,WAAW,KAAK;QAChBC,YAAY,IAAI;IACpB;GAPSN;;IAURP,OAAO;QAAES,MAAMR,SAASa,IAAI;QAAEF,WAAW,KAAK;IAAC;GAVvCL;;IAaRP,OAAO;QAAES,MAAMR,SAASa,IAAI;QAAEF,WAAW,KAAK;IAAC;GAbvCL;;IAgBRP,OAAO;QAAES,MAAMR,SAASa,IAAI;QAAEF,WAAW,KAAK;IAAC;GAhBvCL;;IAmBRR,cAAc,IAAMO,eAAe,IAAMD;GAnBjCE;AAAAA;IADZH;GACYG"}
@@ -5,6 +5,7 @@ export declare class UserBadges extends Model {
5
5
  userUuid: string;
6
6
  badgeUuid: string;
7
7
  timesEarned: number;
8
+ hasBeenShown: boolean;
8
9
  user: PersistedUser;
9
10
  badge: Badge;
10
11
  }
@@ -30,6 +30,13 @@ __decorate([
30
30
  defaultValue: 1
31
31
  })
32
32
  ], UserBadges.prototype, "timesEarned", void 0);
33
+ __decorate([
34
+ Column({
35
+ type: DataType.BOOLEAN,
36
+ allowNull: false,
37
+ defaultValue: false
38
+ })
39
+ ], UserBadges.prototype, "hasBeenShown", void 0);
33
40
  __decorate([
34
41
  BelongsTo(()=>PersistedUser)
35
42
  ], UserBadges.prototype, "user", void 0);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/lib/dbmodels/UserBadges.ts"],"sourcesContent":["import { BelongsTo, Column, DataType, ForeignKey, Model, Table } from \"sequelize-typescript\";\nimport { Badge } from \"./Badge\";\nimport { PersistedUser } from \"./PersistedUser\";\n\n@Table({\n timestamps: true,\n})export class UserBadges extends Model {\n @ForeignKey(() => PersistedUser)\n @Column({\n type: DataType.UUID,\n allowNull: false,\n })\n declare userUuid: string;\n\n @ForeignKey(() => Badge)\n @Column({\n type: DataType.UUID,\n allowNull: false,\n })\n declare badgeUuid: string;\n\n @Column({ type: DataType.INTEGER, allowNull: false, defaultValue: 1})\n declare timesEarned: number;\n\n @BelongsTo(() => PersistedUser)\n declare user: PersistedUser;\n\n @BelongsTo(() => Badge)\n declare badge: Badge;\n}\n"],"names":["BelongsTo","Column","DataType","ForeignKey","Model","Table","Badge","PersistedUser","UserBadges","type","UUID","allowNull","INTEGER","defaultValue","timestamps"],"mappings":";;;;;;AAAA,SAASA,SAAS,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,UAAU,EAAEC,KAAK,EAAEC,KAAK,QAAQ,uBAAuB;AAC7F,SAASC,KAAK,QAAQ,UAAU;AAChC,SAASC,aAAa,QAAQ,kBAAkB;AAI9C,WAAaC,aAAN,yBAAyBJ;AAuBlC,EAAC;;IAtBID,WAAW,IAAMI;IACjBN,OAAO;QACJQ,MAAMP,SAASQ,IAAI;QACnBC,WAAW,KAAK;IACpB;GALWH;;IAQVL,WAAW,IAAMG;IACjBL,OAAO;QACJQ,MAAMP,SAASQ,IAAI;QACnBC,WAAW,KAAK;IACpB;GAZWH;;IAeVP,OAAO;QAAEQ,MAAMP,SAASU,OAAO;QAAED,WAAW,KAAK;QAAEE,cAAc;IAAC;GAfxDL;;IAkBVR,UAAU,IAAMO;GAlBNC;;IAqBVR,UAAU,IAAMM;GArBNE;AAAAA;IAFdH,MAAM;QACHS,YAAY,IAAI;IACpB;GAAeN"}
1
+ {"version":3,"sources":["../../../src/lib/dbmodels/UserBadges.ts"],"sourcesContent":["import { BelongsTo, Column, DataType, ForeignKey, Model, Table } from \"sequelize-typescript\";\nimport { Badge } from \"./Badge\";\nimport { PersistedUser } from \"./PersistedUser\";\n\n@Table({\n timestamps: true,\n})export class UserBadges extends Model {\n @ForeignKey(() => PersistedUser)\n @Column({\n type: DataType.UUID,\n allowNull: false,\n })\n declare userUuid: string;\n\n @ForeignKey(() => Badge)\n @Column({\n type: DataType.UUID,\n allowNull: false,\n })\n declare badgeUuid: string;\n\n @Column({ type: DataType.INTEGER, allowNull: false, defaultValue: 1})\n declare timesEarned: number;\n\n @Column({ type: DataType.BOOLEAN, allowNull: false, defaultValue: false})\n declare hasBeenShown: boolean;\n\n @BelongsTo(() => PersistedUser)\n declare user: PersistedUser;\n\n @BelongsTo(() => Badge)\n declare badge: Badge;\n}\n"],"names":["BelongsTo","Column","DataType","ForeignKey","Model","Table","Badge","PersistedUser","UserBadges","type","UUID","allowNull","INTEGER","defaultValue","BOOLEAN","timestamps"],"mappings":";;;;;;AAAA,SAASA,SAAS,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,UAAU,EAAEC,KAAK,EAAEC,KAAK,QAAQ,uBAAuB;AAC7F,SAASC,KAAK,QAAQ,UAAU;AAChC,SAASC,aAAa,QAAQ,kBAAkB;AAI9C,WAAaC,aAAN,yBAAyBJ;AA0BlC,EAAC;;IAzBID,WAAW,IAAMI;IACjBN,OAAO;QACJQ,MAAMP,SAASQ,IAAI;QACnBC,WAAW,KAAK;IACpB;GALWH;;IAQVL,WAAW,IAAMG;IACjBL,OAAO;QACJQ,MAAMP,SAASQ,IAAI;QACnBC,WAAW,KAAK;IACpB;GAZWH;;IAeVP,OAAO;QAAEQ,MAAMP,SAASU,OAAO;QAAED,WAAW,KAAK;QAAEE,cAAc;IAAC;GAfxDL;;IAkBVP,OAAO;QAAEQ,MAAMP,SAASY,OAAO;QAAEH,WAAW,KAAK;QAAEE,cAAc,KAAK;IAAA;GAlB5DL;;IAqBVR,UAAU,IAAMO;GArBNC;;IAwBVR,UAAU,IAAMM;GAxBNE;AAAAA;IAFdH,MAAM;QACHU,YAAY,IAAI;IACpB;GAAeP"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "90dc-core",
3
- "version": "1.5.12",
3
+ "version": "1.5.13",
4
4
  "description": "A package that contains utils and interfaces used to create 90dc",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -17,7 +17,7 @@ export class Badge extends Model {
17
17
  declare title: string;
18
18
 
19
19
  @Column({ type: DataType.TEXT, allowNull: false })
20
- declare type: string;
20
+ declare imageURL: string;
21
21
 
22
22
  @Column({ type: DataType.TEXT, allowNull: false })
23
23
  declare description: string;
@@ -22,6 +22,9 @@ import { PersistedUser } from "./PersistedUser";
22
22
  @Column({ type: DataType.INTEGER, allowNull: false, defaultValue: 1})
23
23
  declare timesEarned: number;
24
24
 
25
+ @Column({ type: DataType.BOOLEAN, allowNull: false, defaultValue: false})
26
+ declare hasBeenShown: boolean;
27
+
25
28
  @BelongsTo(() => PersistedUser)
26
29
  declare user: PersistedUser;
27
30