@volontariapp/domain-user 2.1.23 → 2.2.0-next.20260416153009
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 +8 -0
- package/dist/entities/badge.entity.d.ts.map +1 -0
- package/dist/entities/badge.entity.js +8 -0
- package/dist/entities/badge.entity.js.map +1 -0
- package/dist/entities/user.entity.d.ts +12 -0
- package/dist/entities/user.entity.d.ts.map +1 -0
- package/dist/entities/user.entity.js +11 -0
- package/dist/entities/user.entity.js.map +1 -0
- 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 +10 -0
- package/dist/models/badge.model.d.ts.map +1 -0
- package/dist/models/badge.model.js +47 -0
- package/dist/models/badge.model.js.map +1 -0
- package/dist/models/user-badge.model.d.ts +10 -0
- package/dist/models/user-badge.model.d.ts.map +1 -0
- package/dist/models/user-badge.model.js +44 -0
- package/dist/models/user-badge.model.js.map +1 -0
- package/dist/models/user.model.d.ts +15 -0
- package/dist/models/user.model.d.ts.map +1 -0
- package/dist/models/user.model.js +72 -0
- package/dist/models/user.model.js.map +1 -0
- package/package.json +3 -1
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BadgeEntity } from "./badge.entity.js";
|
|
2
|
+
export declare class UserEntity {
|
|
3
|
+
id: string;
|
|
4
|
+
email: string;
|
|
5
|
+
name: string;
|
|
6
|
+
logoPath?: string;
|
|
7
|
+
rna?: string;
|
|
8
|
+
bio?: string;
|
|
9
|
+
totalImpactScore: number;
|
|
10
|
+
badges: BadgeEntity[];
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=user.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { UserBadgeModel } from "./user-badge.model.js";
|
|
2
|
+
export declare class BadgeModel {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
slug: string;
|
|
6
|
+
description: string;
|
|
7
|
+
iconPath?: string;
|
|
8
|
+
userBadges: UserBadgeModel[];
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=badge.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Column, Entity, OneToMany, PrimaryGeneratedColumn } from "typeorm";
|
|
11
|
+
let BadgeModel = class BadgeModel {
|
|
12
|
+
id;
|
|
13
|
+
name;
|
|
14
|
+
slug;
|
|
15
|
+
description;
|
|
16
|
+
iconPath;
|
|
17
|
+
userBadges;
|
|
18
|
+
};
|
|
19
|
+
__decorate([
|
|
20
|
+
PrimaryGeneratedColumn('uuid'),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], BadgeModel.prototype, "id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
Column(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], BadgeModel.prototype, "name", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
Column({ unique: true }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], BadgeModel.prototype, "slug", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
Column({ type: 'text' }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], BadgeModel.prototype, "description", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
Column({ name: "icon_path", type: 'varchar', nullable: true }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], BadgeModel.prototype, "iconPath", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
OneToMany('UserBadgeModel', 'badge'),
|
|
41
|
+
__metadata("design:type", Array)
|
|
42
|
+
], BadgeModel.prototype, "userBadges", void 0);
|
|
43
|
+
BadgeModel = __decorate([
|
|
44
|
+
Entity('badges')
|
|
45
|
+
], BadgeModel);
|
|
46
|
+
export { BadgeModel };
|
|
47
|
+
//# sourceMappingURL=badge.model.js.map
|
|
@@ -0,0 +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;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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BadgeModel } from "./badge.model.js";
|
|
2
|
+
import type { UserModel } from "./user.model.js";
|
|
3
|
+
export declare class UserBadgeModel {
|
|
4
|
+
userId: string;
|
|
5
|
+
badgeId: string;
|
|
6
|
+
user: UserModel;
|
|
7
|
+
badge: BadgeModel;
|
|
8
|
+
awardedAt: Date;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=user-badge.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { CreateDateColumn, Entity, JoinColumn, ManyToOne, PrimaryColumn } from "typeorm";
|
|
11
|
+
let UserBadgeModel = class UserBadgeModel {
|
|
12
|
+
userId;
|
|
13
|
+
badgeId;
|
|
14
|
+
user;
|
|
15
|
+
badge;
|
|
16
|
+
awardedAt;
|
|
17
|
+
};
|
|
18
|
+
__decorate([
|
|
19
|
+
PrimaryColumn({ type: 'uuid', name: "user_id" }),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], UserBadgeModel.prototype, "userId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
PrimaryColumn({ type: 'uuid', name: "badge_id" }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], UserBadgeModel.prototype, "badgeId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
ManyToOne('UserModel', 'userBadges', { onDelete: 'CASCADE' }),
|
|
28
|
+
JoinColumn({ name: "user_id" }),
|
|
29
|
+
__metadata("design:type", Function)
|
|
30
|
+
], UserBadgeModel.prototype, "user", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
ManyToOne('BadgeModel', 'userBadges', { onDelete: 'CASCADE' }),
|
|
33
|
+
JoinColumn({ name: "badge_id" }),
|
|
34
|
+
__metadata("design:type", Function)
|
|
35
|
+
], UserBadgeModel.prototype, "badge", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
CreateDateColumn({ name: "awarded_at" }),
|
|
38
|
+
__metadata("design:type", Date)
|
|
39
|
+
], UserBadgeModel.prototype, "awardedAt", void 0);
|
|
40
|
+
UserBadgeModel = __decorate([
|
|
41
|
+
Entity('user_badges')
|
|
42
|
+
], UserBadgeModel);
|
|
43
|
+
export { UserBadgeModel };
|
|
44
|
+
//# sourceMappingURL=user-badge.model.js.map
|
|
@@ -0,0 +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;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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { UserBadgeModel } from './user-badge.model.js';
|
|
2
|
+
export declare class UserModel {
|
|
3
|
+
id: string;
|
|
4
|
+
email: string;
|
|
5
|
+
phone?: string;
|
|
6
|
+
pseudo: string;
|
|
7
|
+
role: string;
|
|
8
|
+
passwordHash: string;
|
|
9
|
+
bio?: string;
|
|
10
|
+
logoPath?: string;
|
|
11
|
+
rna?: string;
|
|
12
|
+
totalImpactScore: number;
|
|
13
|
+
userBadges: UserBadgeModel[];
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=user.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Entity, PrimaryGeneratedColumn, Column, OneToMany } from 'typeorm';
|
|
11
|
+
let UserModel = class UserModel {
|
|
12
|
+
id;
|
|
13
|
+
email;
|
|
14
|
+
phone;
|
|
15
|
+
pseudo;
|
|
16
|
+
role;
|
|
17
|
+
passwordHash;
|
|
18
|
+
bio;
|
|
19
|
+
logoPath;
|
|
20
|
+
rna;
|
|
21
|
+
totalImpactScore;
|
|
22
|
+
userBadges;
|
|
23
|
+
};
|
|
24
|
+
__decorate([
|
|
25
|
+
PrimaryGeneratedColumn('uuid'),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], UserModel.prototype, "id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
Column({ type: 'varchar', length: 255, unique: true }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], UserModel.prototype, "email", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
Column({ type: 'varchar', nullable: true }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], UserModel.prototype, "phone", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
Column({ type: 'varchar', length: 255 }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], UserModel.prototype, "pseudo", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
Column(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], UserModel.prototype, "role", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
Column({ name: "password_hash" }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], UserModel.prototype, "passwordHash", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
Column({ type: 'text', nullable: true }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], UserModel.prototype, "bio", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
Column({ type: 'varchar', nullable: true }),
|
|
54
|
+
__metadata("design:type", String)
|
|
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);
|
|
60
|
+
__decorate([
|
|
61
|
+
Column({ type: 'int', default: 0, name: "total_impact_score" }),
|
|
62
|
+
__metadata("design:type", Number)
|
|
63
|
+
], UserModel.prototype, "totalImpactScore", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
OneToMany('UserBadgeModel', 'user'),
|
|
66
|
+
__metadata("design:type", Array)
|
|
67
|
+
], UserModel.prototype, "userBadges", void 0);
|
|
68
|
+
UserModel = __decorate([
|
|
69
|
+
Entity('users')
|
|
70
|
+
], UserModel);
|
|
71
|
+
export { UserModel };
|
|
72
|
+
//# sourceMappingURL=user.model.js.map
|
|
@@ -0,0 +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;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.
|
|
3
|
+
"version": "2.2.0-next.20260416153009",
|
|
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
|
}
|