echadospalante-core 12.2.0 → 12.3.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.
Files changed (54) hide show
  1. package/dist/app/modules/domain/auth/index.js +2 -0
  2. package/dist/app/modules/domain/auth/token-payload.d.ts +5 -0
  3. package/dist/app/modules/domain/auth/token-payload.js +2 -0
  4. package/dist/app/modules/domain/contributions/donation.js +2 -0
  5. package/dist/app/modules/domain/contributions/index.js +2 -0
  6. package/dist/app/modules/domain/contributions/sponsor.js +2 -0
  7. package/dist/app/modules/domain/events/event-category.js +2 -0
  8. package/dist/app/modules/domain/events/event-contact.js +2 -0
  9. package/dist/app/modules/domain/notifications/index.js +5 -0
  10. package/dist/app/modules/domain/notifications/notification.js +19 -0
  11. package/dist/app/modules/domain/publications/clap.js +2 -0
  12. package/dist/app/modules/domain/publications/comment.js +2 -0
  13. package/dist/app/modules/domain/shared/content-type.d.ts +7 -0
  14. package/dist/app/modules/domain/shared/content-type.js +11 -0
  15. package/dist/app/modules/domain/shared/geo.js +2 -0
  16. package/dist/app/modules/domain/shared/pagination.d.ts +4 -0
  17. package/dist/app/modules/domain/shared/pagination.js +2 -0
  18. package/dist/app/modules/domain/user/contact.js +2 -0
  19. package/dist/app/modules/domain/user/detail.js +2 -0
  20. package/dist/app/modules/domain/user/index.js +5 -0
  21. package/dist/app/modules/domain/user/role.js +10 -0
  22. package/dist/app/modules/domain/user/user.js +2 -0
  23. package/dist/app/modules/domain/ventures/category.js +2 -0
  24. package/dist/app/modules/domain/ventures/contact.js +2 -0
  25. package/dist/app/modules/domain/ventures/detail.js +2 -0
  26. package/dist/app/modules/domain/ventures/index.js +2 -0
  27. package/dist/app/modules/domain/ventures/location.js +2 -0
  28. package/dist/app/modules/domain/ventures/subscription.js +2 -0
  29. package/dist/app/modules/domain/ventures/venture.js +2 -0
  30. package/dist/app/modules/infrastructure/database/entities/department.data.js +47 -0
  31. package/dist/app/modules/infrastructure/database/entities/event-category.data.js +62 -0
  32. package/dist/app/modules/infrastructure/database/entities/event-contact.data.js +40 -0
  33. package/dist/app/modules/infrastructure/database/entities/event-donation.data.js +53 -0
  34. package/dist/app/modules/infrastructure/database/entities/municipality.data.js +52 -0
  35. package/dist/app/modules/infrastructure/database/entities/notification.data.js +68 -0
  36. package/dist/app/modules/infrastructure/database/entities/publication-clap.data.js +43 -0
  37. package/dist/app/modules/infrastructure/database/entities/publication-comment.data.js +48 -0
  38. package/dist/app/modules/infrastructure/database/entities/role.data.js +51 -0
  39. package/dist/app/modules/infrastructure/database/entities/user-contact.data.js +70 -0
  40. package/dist/app/modules/infrastructure/database/entities/user-detail.data.js +89 -0
  41. package/dist/app/modules/infrastructure/database/entities/user.data.js +97 -0
  42. package/dist/app/modules/infrastructure/database/entities/venture-category.data.js +61 -0
  43. package/dist/app/modules/infrastructure/database/entities/venture-contact.data.js +50 -0
  44. package/dist/app/modules/infrastructure/database/entities/venture-detail.data.js +64 -0
  45. package/dist/app/modules/infrastructure/database/entities/venture-location.data.js +51 -0
  46. package/dist/app/modules/infrastructure/database/entities/venture-publication.data.js +80 -0
  47. package/dist/app/modules/infrastructure/database/entities/venture-sponsorship.data.js +53 -0
  48. package/dist/app/modules/infrastructure/database/entities/venture-subscription.data.js +43 -0
  49. package/dist/app/modules/infrastructure/database/entities/venture.data.js +105 -0
  50. package/dist/app/modules/utilities/index.d.ts +3 -0
  51. package/dist/app/modules/utilities/index.js +2 -0
  52. package/dist/app/modules/utilities/object-utilities.d.ts +16 -0
  53. package/dist/app/modules/utilities/object-utilities.js +2 -0
  54. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export interface AccessTokenPayload {
2
+ email: string;
3
+ iat: number;
4
+ exp: number;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationType = void 0;
4
+ var notification_1 = require("./notification");
5
+ Object.defineProperty(exports, "NotificationType", { enumerable: true, get: function () { return notification_1.NotificationType; } });
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationStatus = exports.NotificationType = void 0;
4
+ var NotificationType;
5
+ (function (NotificationType) {
6
+ NotificationType["WELCOME"] = "WELCOME";
7
+ NotificationType["ACCOUNT_VERIFIED"] = "ACCOUNT_VERIFIED";
8
+ NotificationType["ACCOUNT_LOCKED"] = "ACCOUNT_LOCKED";
9
+ NotificationType["ACCOUNT_UNLOCKED"] = "ACCOUNT_UNLOCKED";
10
+ NotificationType["NEW_FOLLOWER"] = "NEW_FOLLOWER";
11
+ NotificationType["NEW_COMMENT"] = "NEW_COMMENT";
12
+ NotificationType["NEW_SPONSOR"] = "NEW_SPONSOR";
13
+ NotificationType["NEW_DONATION"] = "NEW_DONATION";
14
+ })(NotificationType || (exports.NotificationType = NotificationType = {}));
15
+ var NotificationStatus;
16
+ (function (NotificationStatus) {
17
+ NotificationStatus["READ"] = "READ";
18
+ NotificationStatus["UNREAD"] = "UNREAD";
19
+ })(NotificationStatus || (exports.NotificationStatus = NotificationStatus = {}));
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ export declare enum ContentType {
2
+ TEXT = "TEXT",
3
+ IMAGE = "IMAGE",
4
+ VIDEO = "VIDEO",
5
+ LINK = "LINK",
6
+ FILE = "FILE"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContentType = void 0;
4
+ var ContentType;
5
+ (function (ContentType) {
6
+ ContentType["TEXT"] = "TEXT";
7
+ ContentType["IMAGE"] = "IMAGE";
8
+ ContentType["VIDEO"] = "VIDEO";
9
+ ContentType["LINK"] = "LINK";
10
+ ContentType["FILE"] = "FILE";
11
+ })(ContentType || (exports.ContentType = ContentType = {}));
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface Pagination {
2
+ skip: number;
3
+ take: number;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AppRole = void 0;
4
+ var role_1 = require("./role");
5
+ Object.defineProperty(exports, "AppRole", { enumerable: true, get: function () { return role_1.AppRole; } });
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AppRole = void 0;
4
+ var AppRole;
5
+ (function (AppRole) {
6
+ AppRole["ADMIN"] = "ADMIN";
7
+ AppRole["USER"] = "USER";
8
+ AppRole["MODERATOR"] = "MODERATOR";
9
+ AppRole["NEWS_WRITER"] = "NEWS_WRITER";
10
+ })(AppRole || (exports.AppRole = AppRole = {}));
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.DepartmentData = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const municipality_data_1 = require("./municipality.data");
15
+ let DepartmentData = class DepartmentData {
16
+ id;
17
+ name;
18
+ createdAt;
19
+ updatedAt;
20
+ municipalities;
21
+ };
22
+ exports.DepartmentData = DepartmentData;
23
+ __decorate([
24
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
25
+ __metadata("design:type", Number)
26
+ ], DepartmentData.prototype, "id", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)(),
29
+ __metadata("design:type", String)
30
+ ], DepartmentData.prototype, "name", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.CreateDateColumn)(),
33
+ __metadata("design:type", Date)
34
+ ], DepartmentData.prototype, "createdAt", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.UpdateDateColumn)(),
37
+ __metadata("design:type", Date)
38
+ ], DepartmentData.prototype, "updatedAt", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.OneToMany)(() => municipality_data_1.MunicipalityData, (municipality) => municipality.department),
41
+ __metadata("design:type", Array)
42
+ ], DepartmentData.prototype, "municipalities", void 0);
43
+ exports.DepartmentData = DepartmentData = __decorate([
44
+ (0, typeorm_1.Entity)({
45
+ name: "department",
46
+ })
47
+ ], DepartmentData);
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.EventCategoryData = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const venture_event_data_1 = require("./venture-event.data");
15
+ let EventCategoryData = class EventCategoryData {
16
+ id;
17
+ name;
18
+ slug;
19
+ description;
20
+ createdAt;
21
+ updatedAt;
22
+ events;
23
+ };
24
+ exports.EventCategoryData = EventCategoryData;
25
+ __decorate([
26
+ (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
27
+ __metadata("design:type", String)
28
+ ], EventCategoryData.prototype, "id", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ unique: true }),
31
+ __metadata("design:type", String)
32
+ ], EventCategoryData.prototype, "name", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ unique: true }),
35
+ __metadata("design:type", String)
36
+ ], EventCategoryData.prototype, "slug", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)(),
39
+ __metadata("design:type", String)
40
+ ], EventCategoryData.prototype, "description", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.CreateDateColumn)(),
43
+ __metadata("design:type", Date)
44
+ ], EventCategoryData.prototype, "createdAt", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.UpdateDateColumn)(),
47
+ __metadata("design:type", Date)
48
+ ], EventCategoryData.prototype, "updatedAt", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.ManyToMany)(() => venture_event_data_1.VentureEventData, (ventureEvent) => ventureEvent.categories),
51
+ (0, typeorm_1.JoinTable)({
52
+ name: "x_event_event_category",
53
+ joinColumn: { name: "categoryId", referencedColumnName: "id" },
54
+ inverseJoinColumn: { name: "eventId", referencedColumnName: "id" },
55
+ }),
56
+ __metadata("design:type", Array)
57
+ ], EventCategoryData.prototype, "events", void 0);
58
+ exports.EventCategoryData = EventCategoryData = __decorate([
59
+ (0, typeorm_1.Entity)({
60
+ name: "event_category",
61
+ })
62
+ ], EventCategoryData);
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.EventContactData = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const venture_event_data_1 = require("./venture-event.data");
15
+ let EventContactData = class EventContactData {
16
+ id;
17
+ phoneNumber;
18
+ email;
19
+ event;
20
+ };
21
+ exports.EventContactData = EventContactData;
22
+ __decorate([
23
+ (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
24
+ __metadata("design:type", String)
25
+ ], EventContactData.prototype, "id", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)("varchar", { nullable: true }),
28
+ __metadata("design:type", String)
29
+ ], EventContactData.prototype, "phoneNumber", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)("varchar", { nullable: true }),
32
+ __metadata("design:type", String)
33
+ ], EventContactData.prototype, "email", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.OneToOne)(() => venture_event_data_1.VentureEventData, (ventureEvent) => ventureEvent.contact),
36
+ __metadata("design:type", venture_event_data_1.VentureEventData)
37
+ ], EventContactData.prototype, "event", void 0);
38
+ exports.EventContactData = EventContactData = __decorate([
39
+ (0, typeorm_1.Entity)({ name: "event_contact" })
40
+ ], EventContactData);
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.EventDonationData = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const user_detail_data_1 = require("./user-detail.data");
15
+ const venture_event_data_1 = require("./venture-event.data");
16
+ let EventDonationData = class EventDonationData {
17
+ id;
18
+ currency;
19
+ amount;
20
+ createdAt;
21
+ donor;
22
+ event;
23
+ };
24
+ exports.EventDonationData = EventDonationData;
25
+ __decorate([
26
+ (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
27
+ __metadata("design:type", String)
28
+ ], EventDonationData.prototype, "id", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)(),
31
+ __metadata("design:type", String)
32
+ ], EventDonationData.prototype, "currency", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)(),
35
+ __metadata("design:type", Number)
36
+ ], EventDonationData.prototype, "amount", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.CreateDateColumn)(),
39
+ __metadata("design:type", Date)
40
+ ], EventDonationData.prototype, "createdAt", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.ManyToOne)(() => user_detail_data_1.UserDetailData, (userDetail) => userDetail.donations),
43
+ (0, typeorm_1.JoinColumn)({ name: "donorDetailId" }),
44
+ __metadata("design:type", user_detail_data_1.UserDetailData)
45
+ ], EventDonationData.prototype, "donor", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.ManyToOne)(() => venture_event_data_1.VentureEventData, (ventureEvent) => ventureEvent.donations),
48
+ (0, typeorm_1.JoinColumn)({ name: "eventId" }),
49
+ __metadata("design:type", venture_event_data_1.VentureEventData)
50
+ ], EventDonationData.prototype, "event", void 0);
51
+ exports.EventDonationData = EventDonationData = __decorate([
52
+ (0, typeorm_1.Entity)({ name: "event_donation" })
53
+ ], EventDonationData);
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.MunicipalityData = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const department_data_1 = require("./department.data");
15
+ const user_detail_data_1 = require("./user-detail.data");
16
+ let MunicipalityData = class MunicipalityData {
17
+ id;
18
+ name;
19
+ createdAt;
20
+ updatedAt;
21
+ department;
22
+ userDetails;
23
+ };
24
+ exports.MunicipalityData = MunicipalityData;
25
+ __decorate([
26
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
27
+ __metadata("design:type", Number)
28
+ ], MunicipalityData.prototype, "id", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)(),
31
+ __metadata("design:type", String)
32
+ ], MunicipalityData.prototype, "name", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.CreateDateColumn)(),
35
+ __metadata("design:type", Date)
36
+ ], MunicipalityData.prototype, "createdAt", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.UpdateDateColumn)(),
39
+ __metadata("design:type", Date)
40
+ ], MunicipalityData.prototype, "updatedAt", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.ManyToOne)(() => department_data_1.DepartmentData, (department) => department.municipalities),
43
+ (0, typeorm_1.JoinColumn)({ name: "departmentId" }),
44
+ __metadata("design:type", department_data_1.DepartmentData)
45
+ ], MunicipalityData.prototype, "department", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.OneToMany)(() => user_detail_data_1.UserDetailData, (ud) => ud.municipality),
48
+ __metadata("design:type", Array)
49
+ ], MunicipalityData.prototype, "userDetails", void 0);
50
+ exports.MunicipalityData = MunicipalityData = __decorate([
51
+ (0, typeorm_1.Entity)({ name: "municipality" })
52
+ ], MunicipalityData);
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.NotificationData = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const notifications_1 = require("../../../domain/notifications");
15
+ const notification_1 = require("../../../domain/notifications/notification");
16
+ const user_detail_data_1 = require("./user-detail.data");
17
+ let NotificationData = class NotificationData {
18
+ id;
19
+ title;
20
+ type;
21
+ status;
22
+ description;
23
+ createdAt;
24
+ updatedAt;
25
+ userDetailId;
26
+ user;
27
+ };
28
+ exports.NotificationData = NotificationData;
29
+ __decorate([
30
+ (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
31
+ __metadata("design:type", String)
32
+ ], NotificationData.prototype, "id", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)(),
35
+ __metadata("design:type", String)
36
+ ], NotificationData.prototype, "title", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: "enum", enum: notifications_1.NotificationType }),
39
+ __metadata("design:type", String)
40
+ ], NotificationData.prototype, "type", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ type: "enum", enum: notification_1.NotificationStatus }),
43
+ __metadata("design:type", String)
44
+ ], NotificationData.prototype, "status", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)(),
47
+ __metadata("design:type", String)
48
+ ], NotificationData.prototype, "description", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.CreateDateColumn)(),
51
+ __metadata("design:type", Date)
52
+ ], NotificationData.prototype, "createdAt", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.UpdateDateColumn)(),
55
+ __metadata("design:type", Date)
56
+ ], NotificationData.prototype, "updatedAt", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)(),
59
+ __metadata("design:type", String)
60
+ ], NotificationData.prototype, "userDetailId", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.ManyToOne)(() => user_detail_data_1.UserDetailData, (userDetail) => userDetail.notifications),
63
+ (0, typeorm_1.JoinColumn)({ name: "userDetailId" }),
64
+ __metadata("design:type", user_detail_data_1.UserDetailData)
65
+ ], NotificationData.prototype, "user", void 0);
66
+ exports.NotificationData = NotificationData = __decorate([
67
+ (0, typeorm_1.Entity)({ name: "notification" })
68
+ ], NotificationData);
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.PublicationClapData = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const user_detail_data_1 = require("./user-detail.data");
15
+ const venture_publication_data_1 = require("./venture-publication.data");
16
+ let PublicationClapData = class PublicationClapData {
17
+ id;
18
+ publication;
19
+ user;
20
+ createdAt;
21
+ };
22
+ exports.PublicationClapData = PublicationClapData;
23
+ __decorate([
24
+ (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
25
+ __metadata("design:type", String)
26
+ ], PublicationClapData.prototype, "id", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.ManyToOne)(() => venture_publication_data_1.VenturePublicationData, (venturePublication) => venturePublication.claps),
29
+ (0, typeorm_1.JoinColumn)({ name: "publicationId" }),
30
+ __metadata("design:type", venture_publication_data_1.VenturePublicationData)
31
+ ], PublicationClapData.prototype, "publication", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.ManyToOne)(() => user_detail_data_1.UserDetailData, (userDetail) => userDetail.publicationClaps),
34
+ (0, typeorm_1.JoinColumn)({ name: "userDetailId" }),
35
+ __metadata("design:type", user_detail_data_1.UserDetailData)
36
+ ], PublicationClapData.prototype, "user", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.CreateDateColumn)(),
39
+ __metadata("design:type", Date)
40
+ ], PublicationClapData.prototype, "createdAt", void 0);
41
+ exports.PublicationClapData = PublicationClapData = __decorate([
42
+ (0, typeorm_1.Entity)({ name: "publication_clap" })
43
+ ], PublicationClapData);
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.PublicationCommentData = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const user_detail_data_1 = require("./user-detail.data");
15
+ const venture_publication_data_1 = require("./venture-publication.data");
16
+ let PublicationCommentData = class PublicationCommentData {
17
+ id;
18
+ author;
19
+ content;
20
+ publication;
21
+ createdAt;
22
+ };
23
+ exports.PublicationCommentData = PublicationCommentData;
24
+ __decorate([
25
+ (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
26
+ __metadata("design:type", String)
27
+ ], PublicationCommentData.prototype, "id", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.ManyToOne)(() => user_detail_data_1.UserDetailData, (userDetail) => userDetail.comments),
30
+ (0, typeorm_1.JoinColumn)({ name: "authorDetailId" }),
31
+ __metadata("design:type", user_detail_data_1.UserDetailData)
32
+ ], PublicationCommentData.prototype, "author", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)(),
35
+ __metadata("design:type", String)
36
+ ], PublicationCommentData.prototype, "content", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.ManyToOne)(() => venture_publication_data_1.VenturePublicationData, (venturePublication) => venturePublication.comments),
39
+ (0, typeorm_1.JoinColumn)({ name: "publicationId" }),
40
+ __metadata("design:type", venture_publication_data_1.VenturePublicationData)
41
+ ], PublicationCommentData.prototype, "publication", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.CreateDateColumn)(),
44
+ __metadata("design:type", Date)
45
+ ], PublicationCommentData.prototype, "createdAt", void 0);
46
+ exports.PublicationCommentData = PublicationCommentData = __decorate([
47
+ (0, typeorm_1.Entity)({ name: "publication_comment" })
48
+ ], PublicationCommentData);
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.RoleData = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const user_1 = require("../../../domain/user");
15
+ const user_data_1 = require("./user.data");
16
+ let RoleData = class RoleData {
17
+ id;
18
+ name;
19
+ label;
20
+ createdAt;
21
+ updatedAt;
22
+ users;
23
+ };
24
+ exports.RoleData = RoleData;
25
+ __decorate([
26
+ (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
27
+ __metadata("design:type", String)
28
+ ], RoleData.prototype, "id", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ type: "enum", enum: user_1.AppRole, unique: true }),
31
+ __metadata("design:type", String)
32
+ ], RoleData.prototype, "name", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ default: "" }),
35
+ __metadata("design:type", String)
36
+ ], RoleData.prototype, "label", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.CreateDateColumn)(),
39
+ __metadata("design:type", Date)
40
+ ], RoleData.prototype, "createdAt", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.UpdateDateColumn)(),
43
+ __metadata("design:type", Date)
44
+ ], RoleData.prototype, "updatedAt", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.ManyToMany)(() => user_data_1.UserData, (user) => user.roles, { eager: false }),
47
+ __metadata("design:type", Array)
48
+ ], RoleData.prototype, "users", void 0);
49
+ exports.RoleData = RoleData = __decorate([
50
+ (0, typeorm_1.Entity)({ name: "role" })
51
+ ], RoleData);