@volontariapp/domain-user 2.2.0-next.20260416090321 → 2.2.0
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/entities/badge.entity.d.ts +3 -4
- package/dist/entities/badge.entity.d.ts.map +1 -1
- package/dist/entities/badge.entity.js +1 -8
- package/dist/entities/badge.entity.js.map +1 -1
- package/dist/entities/user.entity.d.ts +8 -9
- package/dist/entities/user.entity.d.ts.map +1 -1
- package/dist/entities/user.entity.js +4 -14
- package/dist/entities/user.entity.js.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/models/badge.model.d.ts +2 -2
- package/dist/models/badge.model.d.ts.map +1 -1
- package/dist/models/badge.model.js +2 -3
- package/dist/models/badge.model.js.map +1 -1
- package/dist/models/user-badge.model.d.ts +2 -2
- package/dist/models/user-badge.model.d.ts.map +1 -1
- package/dist/models/user-badge.model.js +4 -6
- package/dist/models/user-badge.model.js.map +1 -1
- package/dist/models/user.model.d.ts +2 -2
- package/dist/models/user.model.d.ts.map +1 -1
- package/dist/models/user.model.js +6 -7
- package/dist/models/user.model.js.map +1 -1
- package/package.json +3 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export declare class
|
|
2
|
-
|
|
1
|
+
export declare class BadgeEntity {
|
|
2
|
+
id: string;
|
|
3
3
|
name: string;
|
|
4
4
|
slug: string;
|
|
5
5
|
description: string;
|
|
6
|
-
iconPath
|
|
7
|
-
constructor(id: string, name: string, slug: string, description: string, iconPath: string);
|
|
6
|
+
iconPath?: string;
|
|
8
7
|
}
|
|
9
8
|
//# sourceMappingURL=badge.entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.entity.d.ts","sourceRoot":"","sources":["../../src/entities/badge.entity.ts"],"names":[],"mappings":"AAAA,qBAAa,
|
|
1
|
+
{"version":3,"file":"badge.entity.d.ts","sourceRoot":"","sources":["../../src/entities/badge.entity.ts"],"names":[],"mappings":"AAAA,qBAAa,WAAW;IACtB,EAAE,EAAG,MAAM,CAAC;IACZ,IAAI,EAAG,MAAM,CAAC;IACd,IAAI,EAAG,MAAM,CAAC;IACd,WAAW,EAAG,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
export class
|
|
1
|
+
export class BadgeEntity {
|
|
2
2
|
id;
|
|
3
3
|
name;
|
|
4
4
|
slug;
|
|
5
5
|
description;
|
|
6
6
|
iconPath;
|
|
7
|
-
constructor(id, name, slug, description, iconPath) {
|
|
8
|
-
this.id = id;
|
|
9
|
-
this.name = name;
|
|
10
|
-
this.slug = slug;
|
|
11
|
-
this.description = description;
|
|
12
|
-
this.iconPath = iconPath;
|
|
13
|
-
}
|
|
14
7
|
}
|
|
15
8
|
//# sourceMappingURL=badge.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.entity.js","sourceRoot":"","sources":["../../src/entities/badge.entity.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"badge.entity.js","sourceRoot":"","sources":["../../src/entities/badge.entity.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,WAAW;IACtB,EAAE,CAAU;IACZ,IAAI,CAAU;IACd,IAAI,CAAU;IACd,WAAW,CAAU;IACrB,QAAQ,CAAU;CACnB"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class
|
|
3
|
-
|
|
1
|
+
import { BadgeEntity } from "./badge.entity.js";
|
|
2
|
+
export declare class UserEntity {
|
|
3
|
+
id: string;
|
|
4
4
|
email: string;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
name: string;
|
|
6
|
+
logoPath?: string;
|
|
7
|
+
rna?: string;
|
|
8
|
+
bio?: string;
|
|
9
9
|
totalImpactScore: number;
|
|
10
|
-
badges:
|
|
11
|
-
constructor(id: string, email: string, pseudo: string, role: string, bio?: string | undefined, logoPath?: string | undefined, totalImpactScore?: number, badges?: Badge[]);
|
|
10
|
+
badges: BadgeEntity[];
|
|
12
11
|
}
|
|
13
12
|
//# sourceMappingURL=user.entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.d.ts","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"user.entity.d.ts","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,qBAAa,UAAU;IACrB,EAAE,EAAG,MAAM,CAAC;IACZ,KAAK,EAAG,MAAM,CAAC;IACf,IAAI,EAAG,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAG,MAAM,CAAC;IAC1B,MAAM,EAAG,WAAW,EAAE,CAAC;CACxB"}
|
|
@@ -1,21 +1,11 @@
|
|
|
1
|
-
export class
|
|
1
|
+
export class UserEntity {
|
|
2
2
|
id;
|
|
3
3
|
email;
|
|
4
|
-
|
|
5
|
-
role;
|
|
6
|
-
bio;
|
|
4
|
+
name;
|
|
7
5
|
logoPath;
|
|
6
|
+
rna;
|
|
7
|
+
bio;
|
|
8
8
|
totalImpactScore;
|
|
9
9
|
badges;
|
|
10
|
-
constructor(id, email, pseudo, role, bio, logoPath, totalImpactScore = 0, badges = []) {
|
|
11
|
-
this.id = id;
|
|
12
|
-
this.email = email;
|
|
13
|
-
this.pseudo = pseudo;
|
|
14
|
-
this.role = role;
|
|
15
|
-
this.bio = bio;
|
|
16
|
-
this.logoPath = logoPath;
|
|
17
|
-
this.totalImpactScore = totalImpactScore;
|
|
18
|
-
this.badges = badges;
|
|
19
|
-
}
|
|
20
10
|
}
|
|
21
11
|
//# sourceMappingURL=user.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,UAAU;IACrB,EAAE,CAAU;IACZ,KAAK,CAAU;IACf,IAAI,CAAU;IACd,QAAQ,CAAU;IAClB,GAAG,CAAU;IACb,GAAG,CAAU;IACb,gBAAgB,CAAU;IAC1B,MAAM,CAAiB;CACxB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./entities/user.entity.js";
|
|
2
|
+
export * from "./entities/badge.entity.js";
|
|
3
|
+
export * from "./models/user.model.js";
|
|
4
|
+
export * from "./models/badge.model.js";
|
|
5
|
+
export * from "./models/user-badge.model.js";
|
|
2
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAE3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./entities/user.entity.js";
|
|
2
|
+
export * from "./entities/badge.entity.js";
|
|
3
|
+
export * from "./models/user.model.js";
|
|
4
|
+
export * from "./models/badge.model.js";
|
|
5
|
+
export * from "./models/user-badge.model.js";
|
|
2
6
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAE3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { UserBadgeModel } from "./user-badge.model.js";
|
|
1
|
+
import type { UserBadgeModel } from "./user-badge.model.js";
|
|
2
2
|
export declare class BadgeModel {
|
|
3
3
|
id: string;
|
|
4
4
|
name: string;
|
|
5
5
|
slug: string;
|
|
6
6
|
description: string;
|
|
7
|
-
iconPath
|
|
7
|
+
iconPath?: string;
|
|
8
8
|
userBadges: UserBadgeModel[];
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=badge.model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.model.d.ts","sourceRoot":"","sources":["../../src/models/badge.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"badge.model.d.ts","sourceRoot":"","sources":["../../src/models/badge.model.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D,qBACa,UAAU;IAErB,EAAE,EAAG,MAAM,CAAC;IAGZ,IAAI,EAAG,MAAM,CAAC;IAGd,IAAI,EAAG,MAAM,CAAC;IAGd,WAAW,EAAG,MAAM,CAAC;IAGrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,UAAU,EAAG,cAAc,EAAE,CAAC;CAC/B"}
|
|
@@ -8,7 +8,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import { Column, Entity, OneToMany, PrimaryGeneratedColumn } from "typeorm";
|
|
11
|
-
import { UserBadgeModel } from "./user-badge.model.js";
|
|
12
11
|
let BadgeModel = class BadgeModel {
|
|
13
12
|
id;
|
|
14
13
|
name;
|
|
@@ -34,11 +33,11 @@ __decorate([
|
|
|
34
33
|
__metadata("design:type", String)
|
|
35
34
|
], BadgeModel.prototype, "description", void 0);
|
|
36
35
|
__decorate([
|
|
37
|
-
Column({ name: "icon_path" }),
|
|
36
|
+
Column({ name: "icon_path", type: 'varchar', nullable: true }),
|
|
38
37
|
__metadata("design:type", String)
|
|
39
38
|
], BadgeModel.prototype, "iconPath", void 0);
|
|
40
39
|
__decorate([
|
|
41
|
-
OneToMany(
|
|
40
|
+
OneToMany('UserBadgeModel', 'badge'),
|
|
42
41
|
__metadata("design:type", Array)
|
|
43
42
|
], BadgeModel.prototype, "userBadges", void 0);
|
|
44
43
|
BadgeModel = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.model.js","sourceRoot":"","sources":["../../src/models/badge.model.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"badge.model.js","sourceRoot":"","sources":["../../src/models/badge.model.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAIrE,IAAM,UAAU,GAAhB,MAAM,UAAU;IAErB,EAAE,CAAU;IAGZ,IAAI,CAAU;IAGd,IAAI,CAAU;IAGd,WAAW,CAAU;IAGrB,QAAQ,CAAU;IAGlB,UAAU,CAAoB;CAC/B,CAAA;AAhBC;IADC,sBAAsB,CAAC,MAAM,CAAC;;sCACnB;AAGZ;IADC,MAAM,EAAE;;wCACK;AAGd;IADC,MAAM,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;wCACX;AAGd;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;+CACJ;AAGrB;IADC,MAAM,CAAC,EAAC,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CAC5C;AAGlB;IADC,SAAS,CAAC,gBAAgB,EAAE,OAAO,CAAC;;8CACP;AAjBnB,UAAU;IADtB,MAAM,CAAC,QAAQ,CAAC;GACJ,UAAU,CAkBtB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BadgeModel } from "./badge.model.js";
|
|
2
|
-
import { UserModel } from "./user.model.js";
|
|
1
|
+
import type { BadgeModel } from "./badge.model.js";
|
|
2
|
+
import type { UserModel } from "./user.model.js";
|
|
3
3
|
export declare class UserBadgeModel {
|
|
4
4
|
userId: string;
|
|
5
5
|
badgeId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-badge.model.d.ts","sourceRoot":"","sources":["../../src/models/user-badge.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"user-badge.model.d.ts","sourceRoot":"","sources":["../../src/models/user-badge.model.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,qBACa,cAAc;IAEzB,MAAM,EAAG,MAAM,CAAC;IAGhB,OAAO,EAAG,MAAM,CAAC;IAIjB,IAAI,EAAG,SAAS,CAAC;IAIjB,KAAK,EAAG,UAAU,CAAC;IAGnB,SAAS,EAAG,IAAI,CAAC;CAClB"}
|
|
@@ -8,8 +8,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import { CreateDateColumn, Entity, JoinColumn, ManyToOne, PrimaryColumn } from "typeorm";
|
|
11
|
-
import { BadgeModel } from "./badge.model.js";
|
|
12
|
-
import { UserModel } from "./user.model.js";
|
|
13
11
|
let UserBadgeModel = class UserBadgeModel {
|
|
14
12
|
userId;
|
|
15
13
|
badgeId;
|
|
@@ -26,14 +24,14 @@ __decorate([
|
|
|
26
24
|
__metadata("design:type", String)
|
|
27
25
|
], UserBadgeModel.prototype, "badgeId", void 0);
|
|
28
26
|
__decorate([
|
|
29
|
-
ManyToOne(
|
|
27
|
+
ManyToOne('UserModel', 'userBadges', { onDelete: 'CASCADE' }),
|
|
30
28
|
JoinColumn({ name: "user_id" }),
|
|
31
|
-
__metadata("design:type",
|
|
29
|
+
__metadata("design:type", Function)
|
|
32
30
|
], UserBadgeModel.prototype, "user", void 0);
|
|
33
31
|
__decorate([
|
|
34
|
-
ManyToOne(
|
|
32
|
+
ManyToOne('BadgeModel', 'userBadges', { onDelete: 'CASCADE' }),
|
|
35
33
|
JoinColumn({ name: "badge_id" }),
|
|
36
|
-
__metadata("design:type",
|
|
34
|
+
__metadata("design:type", Function)
|
|
37
35
|
], UserBadgeModel.prototype, "badge", void 0);
|
|
38
36
|
__decorate([
|
|
39
37
|
CreateDateColumn({ name: "awarded_at" }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-badge.model.js","sourceRoot":"","sources":["../../src/models/user-badge.model.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"user-badge.model.js","sourceRoot":"","sources":["../../src/models/user-badge.model.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAKlF,IAAM,cAAc,GAApB,MAAM,cAAc;IAEzB,MAAM,CAAU;IAGhB,OAAO,CAAU;IAIjB,IAAI,CAAa;IAIjB,KAAK,CAAc;IAGnB,SAAS,CAAQ;CAClB,CAAA;AAfC;IADC,aAAa,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;8CACjC;AAGhB;IADC,aAAa,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;;+CACjC;AAIjB;IAFC,SAAS,CAAC,WAAW,EAAE,YAAY,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC7D,UAAU,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;4CACf;AAIjB;IAFC,SAAS,CAAC,YAAY,EAAE,YAAY,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC9D,UAAU,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;;6CACd;AAGnB;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC7B,IAAI;iDAAC;AAhBN,cAAc;IAD1B,MAAM,CAAC,aAAa,CAAC;GACT,cAAc,CAiB1B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UserBadgeModel } from './user-badge.model.js';
|
|
1
|
+
import type { UserBadgeModel } from './user-badge.model.js';
|
|
2
2
|
export declare class UserModel {
|
|
3
3
|
id: string;
|
|
4
4
|
email: string;
|
|
@@ -6,9 +6,9 @@ export declare class UserModel {
|
|
|
6
6
|
pseudo: string;
|
|
7
7
|
role: string;
|
|
8
8
|
passwordHash: string;
|
|
9
|
-
salt: string;
|
|
10
9
|
bio?: string;
|
|
11
10
|
logoPath?: string;
|
|
11
|
+
rna?: string;
|
|
12
12
|
totalImpactScore: number;
|
|
13
13
|
userBadges: UserBadgeModel[];
|
|
14
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.model.d.ts","sourceRoot":"","sources":["../../src/models/user.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"user.model.d.ts","sourceRoot":"","sources":["../../src/models/user.model.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D,qBACa,SAAS;IAEpB,EAAE,EAAG,MAAM,CAAC;IAGZ,KAAK,EAAG,MAAM,CAAC;IAGf,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,MAAM,EAAG,MAAM,CAAC;IAGhB,IAAI,EAAG,MAAM,CAAC;IAGd,YAAY,EAAG,MAAM,CAAC;IAGtB,GAAG,CAAC,EAAE,MAAM,CAAC;IAGb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,GAAG,CAAC,EAAE,MAAM,CAAC;IAGb,gBAAgB,EAAG,MAAM,CAAC;IAG1B,UAAU,EAAG,cAAc,EAAE,CAAC;CAC/B"}
|
|
@@ -8,7 +8,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import { Entity, PrimaryGeneratedColumn, Column, OneToMany } from 'typeorm';
|
|
11
|
-
import { UserBadgeModel } from './user-badge.model.js';
|
|
12
11
|
let UserModel = class UserModel {
|
|
13
12
|
id;
|
|
14
13
|
email;
|
|
@@ -16,9 +15,9 @@ let UserModel = class UserModel {
|
|
|
16
15
|
pseudo;
|
|
17
16
|
role;
|
|
18
17
|
passwordHash;
|
|
19
|
-
salt;
|
|
20
18
|
bio;
|
|
21
19
|
logoPath;
|
|
20
|
+
rna;
|
|
22
21
|
totalImpactScore;
|
|
23
22
|
userBadges;
|
|
24
23
|
};
|
|
@@ -46,10 +45,6 @@ __decorate([
|
|
|
46
45
|
Column({ name: "password_hash" }),
|
|
47
46
|
__metadata("design:type", String)
|
|
48
47
|
], UserModel.prototype, "passwordHash", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
Column(),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], UserModel.prototype, "salt", void 0);
|
|
53
48
|
__decorate([
|
|
54
49
|
Column({ type: 'text', nullable: true }),
|
|
55
50
|
__metadata("design:type", String)
|
|
@@ -58,12 +53,16 @@ __decorate([
|
|
|
58
53
|
Column({ type: 'varchar', nullable: true }),
|
|
59
54
|
__metadata("design:type", String)
|
|
60
55
|
], UserModel.prototype, "logoPath", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
Column({ type: 'varchar', nullable: true }),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], UserModel.prototype, "rna", void 0);
|
|
61
60
|
__decorate([
|
|
62
61
|
Column({ type: 'int', default: 0, name: "total_impact_score" }),
|
|
63
62
|
__metadata("design:type", Number)
|
|
64
63
|
], UserModel.prototype, "totalImpactScore", void 0);
|
|
65
64
|
__decorate([
|
|
66
|
-
OneToMany(
|
|
65
|
+
OneToMany('UserBadgeModel', 'user'),
|
|
67
66
|
__metadata("design:type", Array)
|
|
68
67
|
], UserModel.prototype, "userBadges", void 0);
|
|
69
68
|
UserModel = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.model.js","sourceRoot":"","sources":["../../src/models/user.model.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,sBAAsB,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"user.model.js","sourceRoot":"","sources":["../../src/models/user.model.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,sBAAsB,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAIrE,IAAM,SAAS,GAAf,MAAM,SAAS;IAEpB,EAAE,CAAU;IAGZ,KAAK,CAAU;IAGf,KAAK,CAAU;IAGf,MAAM,CAAU;IAGhB,IAAI,CAAU;IAGd,YAAY,CAAU;IAGtB,GAAG,CAAU;IAGb,QAAQ,CAAU;IAGlB,GAAG,CAAU;IAGb,gBAAgB,CAAU;IAG1B,UAAU,CAAoB;CAC/B,CAAA;AA/BC;IADC,sBAAsB,CAAC,MAAM,CAAC;;qCACnB;AAGZ;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;wCACxC;AAGf;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCAC7B;AAGf;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;yCACzB;AAGhB;IADC,MAAM,EAAE;;uCACK;AAGd;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,eAAe,EAAC,CAAC;;+CACX;AAGtB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCAC5B;AAGb;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CAC1B;AAGlB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCAC/B;AAGb;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC;;mDACtC;AAG1B;IADC,SAAS,CAAC,gBAAgB,EAAE,MAAM,CAAC;;6CACN;AAhCnB,SAAS;IADrB,MAAM,CAAC,OAAO,CAAC;GACH,SAAS,CAiCrB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volontariapp/domain-user",
|
|
3
|
-
"version": "2.2.0
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -36,6 +36,8 @@
|
|
|
36
36
|
"@volontariapp/logger": "0.2.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
+
"@nestjs/typeorm": "^11.0.1",
|
|
40
|
+
"typeorm": "^0.3.20",
|
|
39
41
|
"typescript": "5.7.3"
|
|
40
42
|
}
|
|
41
43
|
}
|