echadospalante-core 8.8.2 → 9.0.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/app/modules/infrastructure/database/entities/department.data.d.ts +8 -0
- package/dist/app/modules/infrastructure/database/entities/department.data.js +45 -0
- package/dist/app/modules/infrastructure/database/entities/event-category.data.d.ts +10 -0
- package/dist/app/modules/infrastructure/database/entities/event-category.data.js +60 -0
- package/dist/app/modules/infrastructure/database/entities/event-donation.data.d.ts +12 -0
- package/dist/app/modules/infrastructure/database/entities/event-donation.data.js +63 -0
- package/dist/app/modules/infrastructure/database/entities/event-location.data.d.ts +8 -0
- package/dist/app/modules/infrastructure/database/entities/event-location.data.js +45 -0
- package/dist/app/modules/infrastructure/database/entities/index.d.ts +22 -0
- package/dist/app/modules/infrastructure/database/entities/index.js +47 -0
- package/dist/app/modules/infrastructure/database/entities/municipality.data.d.ts +11 -0
- package/dist/app/modules/infrastructure/database/entities/municipality.data.js +57 -0
- package/dist/app/modules/infrastructure/database/entities/notification.data.d.ts +14 -0
- package/dist/app/modules/infrastructure/database/entities/notification.data.js +68 -0
- package/dist/app/modules/infrastructure/database/entities/publication-clap.data.d.ts +10 -0
- package/dist/app/modules/infrastructure/database/entities/publication-clap.data.js +53 -0
- package/dist/app/modules/infrastructure/database/entities/publication-comment.data.d.ts +12 -0
- package/dist/app/modules/infrastructure/database/entities/publication-comment.data.js +63 -0
- package/dist/app/modules/infrastructure/database/entities/publication-content.data.d.ts +11 -0
- package/dist/app/modules/infrastructure/database/entities/publication-content.data.js +57 -0
- package/dist/app/modules/infrastructure/database/entities/role.data.d.ts +10 -0
- package/dist/app/modules/infrastructure/database/entities/role.data.js +51 -0
- package/dist/app/modules/infrastructure/database/entities/user-contact.data.d.ts +13 -0
- package/dist/app/modules/infrastructure/database/entities/user-contact.data.js +70 -0
- package/dist/app/modules/infrastructure/database/entities/user-detail.data.d.ts +24 -0
- package/dist/app/modules/infrastructure/database/entities/user-detail.data.js +94 -0
- package/dist/app/modules/infrastructure/database/entities/user.data.d.ts +22 -0
- package/dist/app/modules/infrastructure/database/entities/user.data.js +107 -0
- package/dist/app/modules/infrastructure/database/entities/venture-category.data.d.ts +12 -0
- package/dist/app/modules/infrastructure/database/entities/venture-category.data.js +61 -0
- package/dist/app/modules/infrastructure/database/entities/venture-contact.data.d.ts +9 -0
- package/dist/app/modules/infrastructure/database/entities/venture-contact.data.js +50 -0
- package/dist/app/modules/infrastructure/database/entities/venture-detail.data.d.ts +15 -0
- package/dist/app/modules/infrastructure/database/entities/venture-detail.data.js +64 -0
- package/dist/app/modules/infrastructure/database/entities/venture-event.data.d.ts +20 -0
- package/dist/app/modules/infrastructure/database/entities/venture-event.data.js +95 -0
- package/dist/app/modules/infrastructure/database/entities/venture-location.data.d.ts +11 -0
- package/dist/app/modules/infrastructure/database/entities/venture-location.data.js +60 -0
- package/dist/app/modules/infrastructure/database/entities/venture-publication.data.d.ts +18 -0
- package/dist/app/modules/infrastructure/database/entities/venture-publication.data.js +80 -0
- package/dist/app/modules/infrastructure/database/entities/venture-sponsorship.data.d.ts +12 -0
- package/dist/app/modules/infrastructure/database/entities/venture-sponsorship.data.js +63 -0
- package/dist/app/modules/infrastructure/database/entities/venture-subscription.data.d.ts +10 -0
- package/dist/app/modules/infrastructure/database/entities/venture-subscription.data.js +53 -0
- package/dist/app/modules/infrastructure/database/entities/venture-suscription.data.d.ts +10 -0
- package/dist/app/modules/infrastructure/database/entities/venture-suscription.data.js +53 -0
- package/dist/app/modules/infrastructure/database/entities/venture.data.d.ts +25 -0
- package/dist/app/modules/infrastructure/database/entities/venture.data.js +123 -0
- package/dist/app/modules/utilities/object-utilities.js +2 -0
- package/dist/index.d.ts +11 -9
- package/dist/index.js +11 -10
- package/package.json +7 -1
- package/src/app/modules/infrastructure/database/entities/department.data.ts +28 -0
- package/src/app/modules/infrastructure/database/entities/event-category.data.ts +43 -0
- package/src/app/modules/infrastructure/database/entities/event-donation.data.ts +40 -0
- package/src/app/modules/infrastructure/database/entities/event-location.data.ts +20 -0
- package/src/app/modules/infrastructure/database/entities/index.ts +22 -0
- package/src/app/modules/infrastructure/database/entities/municipality.data.ts +38 -0
- package/src/app/modules/infrastructure/database/entities/notification.data.ts +44 -0
- package/src/app/modules/infrastructure/database/entities/publication-clap.data.ts +37 -0
- package/src/app/modules/infrastructure/database/entities/publication-comment.data.ts +44 -0
- package/src/app/modules/infrastructure/database/entities/publication-content.data.ts +40 -0
- package/src/app/modules/infrastructure/database/entities/role.data.ts +32 -0
- package/src/app/modules/infrastructure/database/entities/user-contact.data.ts +43 -0
- package/src/app/modules/infrastructure/database/entities/user-detail.data.ts +75 -0
- package/src/app/modules/infrastructure/database/entities/user.data.ts +71 -0
- package/src/app/modules/infrastructure/database/entities/venture-category.data.ts +38 -0
- package/src/app/modules/infrastructure/database/entities/venture-contact.data.ts +30 -0
- package/src/app/modules/infrastructure/database/entities/venture-detail.data.ts +53 -0
- package/src/app/modules/infrastructure/database/entities/venture-event.data.ts +66 -0
- package/src/app/modules/infrastructure/database/entities/venture-location.data.ts +36 -0
- package/src/app/modules/infrastructure/database/entities/venture-publication.data.ts +65 -0
- package/src/app/modules/infrastructure/database/entities/venture-sponsorship.data.ts +43 -0
- package/src/app/modules/infrastructure/database/entities/venture-subscription.data.ts +37 -0
- package/src/app/modules/infrastructure/database/entities/venture.data.ts +92 -0
- package/src/index.ts +12 -10
- package/tsconfig.json +23 -106
- package/tsconfig.tsbuildinfo +1 -0
- package/dist/app/modules/shared/geo.js +0 -10
- /package/dist/app/modules/{auth → domain/auth}/index.d.ts +0 -0
- /package/dist/app/modules/{auth → domain/auth}/index.js +0 -0
- /package/dist/app/modules/{auth → domain/auth}/token-payload.d.ts +0 -0
- /package/dist/app/modules/{auth → domain/auth}/token-payload.js +0 -0
- /package/dist/app/modules/{donations → domain/donations}/donation.d.ts +0 -0
- /package/dist/app/modules/{donations → domain/donations}/donation.js +0 -0
- /package/dist/app/modules/{donations → domain/donations}/index.d.ts +0 -0
- /package/dist/app/modules/{donations → domain/donations}/index.js +0 -0
- /package/dist/app/modules/{donations → domain/donations}/sponsor.d.ts +0 -0
- /package/dist/app/modules/{donations → domain/donations}/sponsor.js +0 -0
- /package/dist/app/modules/{feeds → domain/feeds}/category.d.ts +0 -0
- /package/dist/app/modules/{feeds → domain/feeds}/category.js +0 -0
- /package/dist/app/modules/{feeds → domain/feeds}/clap.d.ts +0 -0
- /package/dist/app/modules/{feeds → domain/feeds}/clap.js +0 -0
- /package/dist/app/modules/{feeds → domain/feeds}/comment.d.ts +0 -0
- /package/dist/app/modules/{feeds → domain/feeds}/comment.js +0 -0
- /package/dist/app/modules/{feeds → domain/feeds}/event.d.ts +0 -0
- /package/dist/app/modules/{feeds → domain/feeds}/event.js +0 -0
- /package/dist/app/modules/{feeds → domain/feeds}/index.d.ts +0 -0
- /package/dist/app/modules/{feeds → domain/feeds}/index.js +0 -0
- /package/dist/app/modules/{feeds → domain/feeds}/location.d.ts +0 -0
- /package/dist/app/modules/{feeds → domain/feeds}/location.js +0 -0
- /package/dist/app/modules/{feeds → domain/feeds}/publication.d.ts +0 -0
- /package/dist/app/modules/{feeds → domain/feeds}/publication.js +0 -0
- /package/dist/app/modules/{news → domain/news}/category.d.ts +0 -0
- /package/dist/app/modules/{news → domain/news}/category.js +0 -0
- /package/dist/app/modules/{news → domain/news}/clap.d.ts +0 -0
- /package/dist/app/modules/{news → domain/news}/clap.js +0 -0
- /package/dist/app/modules/{news → domain/news}/index.d.ts +0 -0
- /package/dist/app/modules/{news → domain/news}/index.js +0 -0
- /package/dist/app/modules/{news → domain/news}/news.d.ts +0 -0
- /package/dist/app/modules/{news → domain/news}/news.js +0 -0
- /package/dist/app/modules/{notifications → domain/notifications}/index.d.ts +0 -0
- /package/dist/app/modules/{notifications → domain/notifications}/index.js +0 -0
- /package/dist/app/modules/{notifications → domain/notifications}/notification.d.ts +0 -0
- /package/dist/app/modules/{notifications → domain/notifications}/notification.js +0 -0
- /package/dist/app/modules/{shared → domain/shared}/content-type.d.ts +0 -0
- /package/dist/app/modules/{shared → domain/shared}/content-type.js +0 -0
- /package/dist/app/modules/{shared → domain/shared}/geo.d.ts +0 -0
- /package/dist/app/modules/{shared/pagination.js → domain/shared/geo.js} +0 -0
- /package/dist/app/modules/{shared → domain/shared}/index.d.ts +0 -0
- /package/dist/app/modules/{shared → domain/shared}/index.js +0 -0
- /package/dist/app/modules/{shared → domain/shared}/pagination.d.ts +0 -0
- /package/dist/app/modules/{user/contact.js → domain/shared/pagination.js} +0 -0
- /package/dist/app/modules/{user → domain/user}/contact.d.ts +0 -0
- /package/dist/app/modules/{ventures → domain/user}/contact.js +0 -0
- /package/dist/app/modules/{user → domain/user}/detail.d.ts +0 -0
- /package/dist/app/modules/{user → domain/user}/detail.js +0 -0
- /package/dist/app/modules/{user → domain/user}/index.d.ts +0 -0
- /package/dist/app/modules/{user → domain/user}/index.js +0 -0
- /package/dist/app/modules/{user → domain/user}/role.d.ts +0 -0
- /package/dist/app/modules/{user → domain/user}/role.js +0 -0
- /package/dist/app/modules/{user → domain/user}/user.d.ts +0 -0
- /package/dist/app/modules/{user → domain/user}/user.js +0 -0
- /package/dist/app/modules/{ventures → domain/ventures}/category.d.ts +0 -0
- /package/dist/app/modules/{ventures → domain/ventures}/category.js +0 -0
- /package/dist/app/modules/{ventures → domain/ventures}/contact.d.ts +0 -0
- /package/dist/app/modules/{utility/index.js → domain/ventures/contact.js} +0 -0
- /package/dist/app/modules/{ventures → domain/ventures}/detail.d.ts +0 -0
- /package/dist/app/modules/{ventures → domain/ventures}/detail.js +0 -0
- /package/dist/app/modules/{ventures → domain/ventures}/index.d.ts +0 -0
- /package/dist/app/modules/{ventures → domain/ventures}/index.js +0 -0
- /package/dist/app/modules/{ventures → domain/ventures}/location.d.ts +0 -0
- /package/dist/app/modules/{ventures → domain/ventures}/location.js +0 -0
- /package/dist/app/modules/{ventures → domain/ventures}/subscription.d.ts +0 -0
- /package/dist/app/modules/{ventures → domain/ventures}/subscription.js +0 -0
- /package/dist/app/modules/{ventures → domain/ventures}/venture.d.ts +0 -0
- /package/dist/app/modules/{ventures → domain/ventures}/venture.js +0 -0
- /package/dist/app/modules/{utility → utilities}/index.d.ts +0 -0
- /package/dist/app/modules/{utility/object-utilities.js → utilities/index.js} +0 -0
- /package/dist/app/modules/{utility → utilities}/object-utilities.d.ts +0 -0
- /package/src/app/modules/{auth → domain/auth}/index.ts +0 -0
- /package/src/app/modules/{auth → domain/auth}/token-payload.ts +0 -0
- /package/src/app/modules/{donations → domain/donations}/donation.ts +0 -0
- /package/src/app/modules/{donations → domain/donations}/index.ts +0 -0
- /package/src/app/modules/{donations → domain/donations}/sponsor.ts +0 -0
- /package/src/app/modules/{feeds → domain/feeds}/category.ts +0 -0
- /package/src/app/modules/{feeds → domain/feeds}/clap.ts +0 -0
- /package/src/app/modules/{feeds → domain/feeds}/comment.ts +0 -0
- /package/src/app/modules/{feeds → domain/feeds}/event.ts +0 -0
- /package/src/app/modules/{feeds → domain/feeds}/index.ts +0 -0
- /package/src/app/modules/{feeds → domain/feeds}/location.ts +0 -0
- /package/src/app/modules/{feeds → domain/feeds}/publication.ts +0 -0
- /package/src/app/modules/{news → domain/news}/category.ts +0 -0
- /package/src/app/modules/{news → domain/news}/clap.ts +0 -0
- /package/src/app/modules/{news → domain/news}/index.ts +0 -0
- /package/src/app/modules/{news → domain/news}/news.ts +0 -0
- /package/src/app/modules/{notifications → domain/notifications}/index.ts +0 -0
- /package/src/app/modules/{notifications → domain/notifications}/notification.ts +0 -0
- /package/src/app/modules/{shared → domain/shared}/content-type.ts +0 -0
- /package/src/app/modules/{shared → domain/shared}/geo.ts +0 -0
- /package/src/app/modules/{shared → domain/shared}/index.ts +0 -0
- /package/src/app/modules/{shared → domain/shared}/pagination.ts +0 -0
- /package/src/app/modules/{user → domain/user}/contact.ts +0 -0
- /package/src/app/modules/{user → domain/user}/detail.ts +0 -0
- /package/src/app/modules/{user → domain/user}/index.ts +0 -0
- /package/src/app/modules/{user → domain/user}/role.ts +0 -0
- /package/src/app/modules/{user → domain/user}/user.ts +0 -0
- /package/src/app/modules/{ventures → domain/ventures}/category.ts +0 -0
- /package/src/app/modules/{ventures → domain/ventures}/contact.ts +0 -0
- /package/src/app/modules/{ventures → domain/ventures}/detail.ts +0 -0
- /package/src/app/modules/{ventures → domain/ventures}/index.ts +0 -0
- /package/src/app/modules/{ventures → domain/ventures}/location.ts +0 -0
- /package/src/app/modules/{ventures → domain/ventures}/subscription.ts +0 -0
- /package/src/app/modules/{ventures → domain/ventures}/venture.ts +0 -0
- /package/src/app/modules/{utility → utilities}/index.ts +0 -0
- /package/src/app/modules/{utility → utilities}/object-utilities.ts +0 -0
@@ -0,0 +1,123 @@
|
|
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.VentureData = void 0;
|
13
|
+
const typeorm_1 = require("typeorm");
|
14
|
+
const venture_detail_data_1 = require("./venture-detail.data");
|
15
|
+
const venture_location_data_1 = require("./venture-location.data");
|
16
|
+
const user_detail_data_1 = require("./user-detail.data");
|
17
|
+
const venture_contact_data_1 = require("./venture-contact.data");
|
18
|
+
const venture_category_data_1 = require("./venture-category.data");
|
19
|
+
let VentureData = class VentureData {
|
20
|
+
id;
|
21
|
+
name;
|
22
|
+
slug;
|
23
|
+
coverPhoto;
|
24
|
+
description;
|
25
|
+
active;
|
26
|
+
verified;
|
27
|
+
detailId;
|
28
|
+
createdAt;
|
29
|
+
updatedAt;
|
30
|
+
locationId;
|
31
|
+
ownerDetailId;
|
32
|
+
ventureContactId;
|
33
|
+
detail;
|
34
|
+
location;
|
35
|
+
ownerDetail;
|
36
|
+
contact;
|
37
|
+
categories;
|
38
|
+
};
|
39
|
+
exports.VentureData = VentureData;
|
40
|
+
__decorate([
|
41
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
42
|
+
__metadata("design:type", String)
|
43
|
+
], VentureData.prototype, "id", void 0);
|
44
|
+
__decorate([
|
45
|
+
(0, typeorm_1.Column)(),
|
46
|
+
__metadata("design:type", String)
|
47
|
+
], VentureData.prototype, "name", void 0);
|
48
|
+
__decorate([
|
49
|
+
(0, typeorm_1.Column)({ unique: true }),
|
50
|
+
__metadata("design:type", String)
|
51
|
+
], VentureData.prototype, "slug", void 0);
|
52
|
+
__decorate([
|
53
|
+
(0, typeorm_1.Column)(),
|
54
|
+
__metadata("design:type", String)
|
55
|
+
], VentureData.prototype, "coverPhoto", void 0);
|
56
|
+
__decorate([
|
57
|
+
(0, typeorm_1.Column)(),
|
58
|
+
__metadata("design:type", String)
|
59
|
+
], VentureData.prototype, "description", void 0);
|
60
|
+
__decorate([
|
61
|
+
(0, typeorm_1.Column)({ default: true }),
|
62
|
+
__metadata("design:type", Boolean)
|
63
|
+
], VentureData.prototype, "active", void 0);
|
64
|
+
__decorate([
|
65
|
+
(0, typeorm_1.Column)({ default: false }),
|
66
|
+
__metadata("design:type", Boolean)
|
67
|
+
], VentureData.prototype, "verified", void 0);
|
68
|
+
__decorate([
|
69
|
+
(0, typeorm_1.Column)({ unique: true }),
|
70
|
+
__metadata("design:type", String)
|
71
|
+
], VentureData.prototype, "detailId", void 0);
|
72
|
+
__decorate([
|
73
|
+
(0, typeorm_1.CreateDateColumn)(),
|
74
|
+
__metadata("design:type", Date)
|
75
|
+
], VentureData.prototype, "createdAt", void 0);
|
76
|
+
__decorate([
|
77
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
78
|
+
__metadata("design:type", Date)
|
79
|
+
], VentureData.prototype, "updatedAt", void 0);
|
80
|
+
__decorate([
|
81
|
+
(0, typeorm_1.Column)({ unique: true }),
|
82
|
+
__metadata("design:type", String)
|
83
|
+
], VentureData.prototype, "locationId", void 0);
|
84
|
+
__decorate([
|
85
|
+
(0, typeorm_1.Column)(),
|
86
|
+
__metadata("design:type", String)
|
87
|
+
], VentureData.prototype, "ownerDetailId", void 0);
|
88
|
+
__decorate([
|
89
|
+
(0, typeorm_1.Column)({ unique: true }),
|
90
|
+
__metadata("design:type", String)
|
91
|
+
], VentureData.prototype, "ventureContactId", void 0);
|
92
|
+
__decorate([
|
93
|
+
(0, typeorm_1.OneToOne)(() => venture_detail_data_1.VentureDetailData, (ventureDetail) => ventureDetail.venture),
|
94
|
+
(0, typeorm_1.JoinColumn)({ name: "detailId" }),
|
95
|
+
__metadata("design:type", venture_detail_data_1.VentureDetailData)
|
96
|
+
], VentureData.prototype, "detail", void 0);
|
97
|
+
__decorate([
|
98
|
+
(0, typeorm_1.OneToOne)(() => venture_location_data_1.VentureLocationData, (ventureLocation) => ventureLocation.Venture),
|
99
|
+
(0, typeorm_1.JoinColumn)({ name: "locationId" }),
|
100
|
+
__metadata("design:type", venture_location_data_1.VentureLocationData)
|
101
|
+
], VentureData.prototype, "location", void 0);
|
102
|
+
__decorate([
|
103
|
+
(0, typeorm_1.ManyToOne)(() => user_detail_data_1.UserDetailData, (userDetail) => userDetail.ventures),
|
104
|
+
(0, typeorm_1.JoinColumn)({ name: "ownerDetailId" }),
|
105
|
+
__metadata("design:type", user_detail_data_1.UserDetailData)
|
106
|
+
], VentureData.prototype, "ownerDetail", void 0);
|
107
|
+
__decorate([
|
108
|
+
(0, typeorm_1.OneToOne)(() => venture_contact_data_1.VentureContactData, (ventureContact) => ventureContact.Venture),
|
109
|
+
(0, typeorm_1.JoinColumn)({ name: "ventureContactId" }),
|
110
|
+
__metadata("design:type", venture_contact_data_1.VentureContactData)
|
111
|
+
], VentureData.prototype, "contact", void 0);
|
112
|
+
__decorate([
|
113
|
+
(0, typeorm_1.ManyToMany)(() => venture_category_data_1.VentureCategoryData, (ventureCategory) => ventureCategory.ventures),
|
114
|
+
(0, typeorm_1.JoinTable)({
|
115
|
+
name: "x_venture_vencure_category",
|
116
|
+
joinColumn: { name: "ventureId", referencedColumnName: "id" },
|
117
|
+
inverseJoinColumn: { name: "categoryId", referencedColumnName: "id" },
|
118
|
+
}),
|
119
|
+
__metadata("design:type", Array)
|
120
|
+
], VentureData.prototype, "categories", void 0);
|
121
|
+
exports.VentureData = VentureData = __decorate([
|
122
|
+
(0, typeorm_1.Entity)()
|
123
|
+
], VentureData);
|
package/dist/index.d.ts
CHANGED
@@ -1,9 +1,11 @@
|
|
1
|
-
|
2
|
-
export * from "./app/modules/
|
3
|
-
export * from "./app/modules/
|
4
|
-
export * from "./app/modules/
|
5
|
-
export * from "./app/modules/news";
|
6
|
-
export * from "./app/modules/
|
7
|
-
export * from "./app/modules/
|
8
|
-
export * from "./app/modules/user";
|
9
|
-
export * from "./app/modules/
|
1
|
+
import "reflect-metadata";
|
2
|
+
export * from "./app/modules/domain/auth";
|
3
|
+
export * from "./app/modules/domain/donations";
|
4
|
+
export * from "./app/modules/domain/feeds";
|
5
|
+
export * from "./app/modules/domain/news";
|
6
|
+
export * from "./app/modules/domain/notifications";
|
7
|
+
export * from "./app/modules/domain/shared";
|
8
|
+
export * from "./app/modules/domain/user";
|
9
|
+
export * from "./app/modules/domain/ventures";
|
10
|
+
export * from "./app/modules/infrastructure/database/entities";
|
11
|
+
export * from "./app/modules/utilities";
|
package/dist/index.js
CHANGED
@@ -14,13 +14,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
|
18
|
-
__exportStar(require("./app/modules/
|
19
|
-
__exportStar(require("./app/modules/
|
20
|
-
__exportStar(require("./app/modules/
|
21
|
-
__exportStar(require("./app/modules/news"), exports);
|
22
|
-
__exportStar(require("./app/modules/
|
23
|
-
__exportStar(require("./app/modules/
|
24
|
-
__exportStar(require("./app/modules/user"), exports);
|
25
|
-
__exportStar(require("./app/modules/
|
26
|
-
|
17
|
+
require("reflect-metadata");
|
18
|
+
__exportStar(require("./app/modules/domain/auth"), exports);
|
19
|
+
__exportStar(require("./app/modules/domain/donations"), exports);
|
20
|
+
__exportStar(require("./app/modules/domain/feeds"), exports);
|
21
|
+
__exportStar(require("./app/modules/domain/news"), exports);
|
22
|
+
__exportStar(require("./app/modules/domain/notifications"), exports);
|
23
|
+
__exportStar(require("./app/modules/domain/shared"), exports);
|
24
|
+
__exportStar(require("./app/modules/domain/user"), exports);
|
25
|
+
__exportStar(require("./app/modules/domain/ventures"), exports);
|
26
|
+
__exportStar(require("./app/modules/infrastructure/database/entities"), exports);
|
27
|
+
__exportStar(require("./app/modules/utilities"), exports);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "echadospalante-core",
|
3
|
-
"version": "
|
3
|
+
"version": "9.0.0",
|
4
4
|
"description": "This package contains the core of the echadospalante project, it contains the domain entities, helpers, and other utilities that are shared between the different services.",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"private": false,
|
@@ -27,5 +27,11 @@
|
|
27
27
|
"license": "MIT",
|
28
28
|
"devDependencies": {
|
29
29
|
"typescript": "^5.5.4"
|
30
|
+
},
|
31
|
+
"dependencies": {
|
32
|
+
"@nestjs/typeorm": "^11.0.0",
|
33
|
+
"pg": "^8.14.1",
|
34
|
+
"reflect-metadata": "^0.2.2",
|
35
|
+
"typeorm": "^0.3.21"
|
30
36
|
}
|
31
37
|
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import {
|
2
|
+
Column,
|
3
|
+
CreateDateColumn,
|
4
|
+
Entity,
|
5
|
+
OneToMany,
|
6
|
+
PrimaryGeneratedColumn,
|
7
|
+
UpdateDateColumn,
|
8
|
+
} from "typeorm";
|
9
|
+
|
10
|
+
import { MunicipalityData } from "./municipality.data";
|
11
|
+
|
12
|
+
@Entity()
|
13
|
+
export class DepartmentData {
|
14
|
+
@PrimaryGeneratedColumn()
|
15
|
+
id: number;
|
16
|
+
|
17
|
+
@Column()
|
18
|
+
name: string;
|
19
|
+
|
20
|
+
@CreateDateColumn()
|
21
|
+
createdAt: Date;
|
22
|
+
|
23
|
+
@UpdateDateColumn()
|
24
|
+
updatedAt: Date;
|
25
|
+
|
26
|
+
@OneToMany(() => MunicipalityData, (municipality) => municipality.department)
|
27
|
+
municipalities: MunicipalityData[];
|
28
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
// event-category.entity.ts
|
2
|
+
import {
|
3
|
+
Entity,
|
4
|
+
PrimaryGeneratedColumn,
|
5
|
+
Column,
|
6
|
+
CreateDateColumn,
|
7
|
+
UpdateDateColumn,
|
8
|
+
ManyToMany,
|
9
|
+
JoinTable,
|
10
|
+
} from "typeorm";
|
11
|
+
import { VentureEventData } from "./venture-event.data";
|
12
|
+
|
13
|
+
@Entity()
|
14
|
+
export class EventCategoryData {
|
15
|
+
@PrimaryGeneratedColumn("uuid")
|
16
|
+
id: string;
|
17
|
+
|
18
|
+
@Column({ unique: true })
|
19
|
+
name: string;
|
20
|
+
|
21
|
+
@Column({ unique: true })
|
22
|
+
slug: string;
|
23
|
+
|
24
|
+
@Column()
|
25
|
+
description: string;
|
26
|
+
|
27
|
+
@CreateDateColumn()
|
28
|
+
createdAt: Date;
|
29
|
+
|
30
|
+
@UpdateDateColumn()
|
31
|
+
updatedAt: Date;
|
32
|
+
|
33
|
+
@ManyToMany(
|
34
|
+
() => VentureEventData,
|
35
|
+
(ventureEvent) => ventureEvent.EventCategory
|
36
|
+
)
|
37
|
+
@JoinTable({
|
38
|
+
name: "x_event_category",
|
39
|
+
joinColumn: { name: "categoryId", referencedColumnName: "id" },
|
40
|
+
inverseJoinColumn: { name: "eventId", referencedColumnName: "id" },
|
41
|
+
})
|
42
|
+
ventureEvent: VentureEventData[];
|
43
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
// event-donation.entity.ts
|
2
|
+
import {
|
3
|
+
Entity,
|
4
|
+
PrimaryGeneratedColumn,
|
5
|
+
Column,
|
6
|
+
CreateDateColumn,
|
7
|
+
ManyToOne,
|
8
|
+
JoinColumn,
|
9
|
+
} from "typeorm";
|
10
|
+
import { UserDetailData } from "./user-detail.data";
|
11
|
+
import { VentureEventData } from "./venture-event.data";
|
12
|
+
|
13
|
+
@Entity()
|
14
|
+
export class EventDonationData {
|
15
|
+
@PrimaryGeneratedColumn("uuid")
|
16
|
+
id: string;
|
17
|
+
|
18
|
+
@Column()
|
19
|
+
eventId: string;
|
20
|
+
|
21
|
+
@Column("float")
|
22
|
+
amount: number;
|
23
|
+
|
24
|
+
@Column()
|
25
|
+
currency: string;
|
26
|
+
|
27
|
+
@CreateDateColumn()
|
28
|
+
createdAt: Date;
|
29
|
+
|
30
|
+
@Column()
|
31
|
+
donorDetailId: string;
|
32
|
+
|
33
|
+
@ManyToOne(() => UserDetailData, (userDetail) => userDetail.donations)
|
34
|
+
@JoinColumn({ name: "donorDetailId" })
|
35
|
+
donor: UserDetailData;
|
36
|
+
|
37
|
+
@ManyToOne(() => VentureEventData, (ventureEvent) => ventureEvent.donations)
|
38
|
+
@JoinColumn({ name: "eventId" })
|
39
|
+
event: VentureEventData;
|
40
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { Entity, PrimaryGeneratedColumn, Column, OneToOne } from "typeorm";
|
2
|
+
import { VentureEventData } from "./venture-event.data";
|
3
|
+
|
4
|
+
@Entity()
|
5
|
+
export class EventLocationData {
|
6
|
+
@PrimaryGeneratedColumn("uuid")
|
7
|
+
id: string;
|
8
|
+
|
9
|
+
@Column("float", { nullable: true })
|
10
|
+
lat: number;
|
11
|
+
|
12
|
+
@Column("float", { nullable: true })
|
13
|
+
lng: number;
|
14
|
+
|
15
|
+
@Column({ nullable: true })
|
16
|
+
description: string;
|
17
|
+
|
18
|
+
@OneToOne(() => VentureEventData, (ventureEvent) => ventureEvent.location)
|
19
|
+
event: VentureEventData;
|
20
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
export { DepartmentData } from "./department.data";
|
2
|
+
export { PublicationCommentData } from "./publication-comment.data";
|
3
|
+
export { UserData } from "./user.data";
|
4
|
+
export { VentureData } from "./venture.data";
|
5
|
+
export { VenturePublicationData } from "./venture-publication.data";
|
6
|
+
export { EventCategoryData } from "./event-category.data";
|
7
|
+
export { MunicipalityData } from "./municipality.data";
|
8
|
+
export { PublicationContentData } from "./publication-content.data";
|
9
|
+
export { UserDetailData } from "./user-detail.data";
|
10
|
+
export { VentureDetailData } from "./venture-detail.data";
|
11
|
+
export { VentureSponsorshipData } from "./venture-sponsorship.data";
|
12
|
+
export { EventDonationData } from "./event-donation.data";
|
13
|
+
export { NotificationData } from "./notification.data";
|
14
|
+
export { RoleData } from "./role.data";
|
15
|
+
export { VentureCategoryData } from "./venture-category.data";
|
16
|
+
export { VentureEventData } from "./venture-event.data";
|
17
|
+
export { VentureSubscriptionData } from "./venture-subscription.data";
|
18
|
+
export { EventLocationData } from "./event-location.data";
|
19
|
+
export { PublicationClapData } from "./publication-clap.data";
|
20
|
+
export { UserContactData } from "./user-contact.data";
|
21
|
+
export { VentureContactData } from "./venture-contact.data";
|
22
|
+
export { VentureLocationData } from "./venture-location.data";
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import {
|
2
|
+
Column,
|
3
|
+
CreateDateColumn,
|
4
|
+
Entity,
|
5
|
+
JoinColumn,
|
6
|
+
ManyToOne,
|
7
|
+
OneToMany,
|
8
|
+
PrimaryGeneratedColumn,
|
9
|
+
UpdateDateColumn,
|
10
|
+
} from "typeorm";
|
11
|
+
|
12
|
+
import { DepartmentData } from "./department.data";
|
13
|
+
import { UserDetailData } from "./user-detail.data";
|
14
|
+
|
15
|
+
@Entity()
|
16
|
+
export class MunicipalityData {
|
17
|
+
@PrimaryGeneratedColumn()
|
18
|
+
id: number;
|
19
|
+
|
20
|
+
@Column()
|
21
|
+
name: string;
|
22
|
+
|
23
|
+
@Column()
|
24
|
+
departmentId: number;
|
25
|
+
|
26
|
+
@CreateDateColumn()
|
27
|
+
createdAt: Date;
|
28
|
+
|
29
|
+
@UpdateDateColumn()
|
30
|
+
updatedAt: Date;
|
31
|
+
|
32
|
+
@ManyToOne(() => DepartmentData, (department) => department.municipalities)
|
33
|
+
@JoinColumn({ name: "departmentId" })
|
34
|
+
department: DepartmentData;
|
35
|
+
|
36
|
+
@OneToMany(() => UserDetailData, (ud) => ud.municipality)
|
37
|
+
userDetails: UserDetailData[];
|
38
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import {
|
2
|
+
Column,
|
3
|
+
CreateDateColumn,
|
4
|
+
Entity,
|
5
|
+
JoinColumn,
|
6
|
+
ManyToOne,
|
7
|
+
PrimaryGeneratedColumn,
|
8
|
+
UpdateDateColumn,
|
9
|
+
} from "typeorm";
|
10
|
+
|
11
|
+
import { NotificationType } from "../../../domain/notifications";
|
12
|
+
import { NotificationStatus } from "../../../domain/notifications/notification";
|
13
|
+
import { UserDetailData } from "./user-detail.data";
|
14
|
+
|
15
|
+
@Entity()
|
16
|
+
export class NotificationData {
|
17
|
+
@PrimaryGeneratedColumn("uuid")
|
18
|
+
id: string;
|
19
|
+
|
20
|
+
@Column()
|
21
|
+
title: string;
|
22
|
+
|
23
|
+
@Column({ type: "enum", enum: NotificationType })
|
24
|
+
type: NotificationType;
|
25
|
+
|
26
|
+
@Column({ type: "enum", enum: NotificationStatus })
|
27
|
+
status: NotificationStatus;
|
28
|
+
|
29
|
+
@Column()
|
30
|
+
description: string;
|
31
|
+
|
32
|
+
@CreateDateColumn()
|
33
|
+
createdAt: Date;
|
34
|
+
|
35
|
+
@UpdateDateColumn()
|
36
|
+
updatedAt: Date;
|
37
|
+
|
38
|
+
@Column()
|
39
|
+
userDetailId: string;
|
40
|
+
|
41
|
+
@ManyToOne(() => UserDetailData, (userDetail) => userDetail.notifications)
|
42
|
+
@JoinColumn({ name: "userDetailId" })
|
43
|
+
user: UserDetailData;
|
44
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
// publication-clap.entity.ts
|
2
|
+
import {
|
3
|
+
Entity,
|
4
|
+
PrimaryGeneratedColumn,
|
5
|
+
Column,
|
6
|
+
CreateDateColumn,
|
7
|
+
ManyToOne,
|
8
|
+
JoinColumn,
|
9
|
+
} from "typeorm";
|
10
|
+
import { UserDetailData } from "./user-detail.data";
|
11
|
+
import { VenturePublicationData } from "./venture-publication.data";
|
12
|
+
|
13
|
+
@Entity()
|
14
|
+
export class PublicationClapData {
|
15
|
+
@PrimaryGeneratedColumn("uuid")
|
16
|
+
id: string;
|
17
|
+
|
18
|
+
@Column()
|
19
|
+
publicationId: string;
|
20
|
+
|
21
|
+
@CreateDateColumn()
|
22
|
+
createdAt: Date;
|
23
|
+
|
24
|
+
@Column()
|
25
|
+
userDetailId: string;
|
26
|
+
|
27
|
+
@ManyToOne(
|
28
|
+
() => VenturePublicationData,
|
29
|
+
(venturePublication) => venturePublication.claps
|
30
|
+
)
|
31
|
+
@JoinColumn({ name: "publicationId" })
|
32
|
+
venturePublication: VenturePublicationData;
|
33
|
+
|
34
|
+
@ManyToOne(() => UserDetailData, (userDetail) => userDetail.claps)
|
35
|
+
@JoinColumn({ name: "userDetailId" })
|
36
|
+
user: UserDetailData;
|
37
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import {
|
2
|
+
Column,
|
3
|
+
CreateDateColumn,
|
4
|
+
Entity,
|
5
|
+
JoinColumn,
|
6
|
+
ManyToOne,
|
7
|
+
PrimaryGeneratedColumn,
|
8
|
+
UpdateDateColumn,
|
9
|
+
} from "typeorm";
|
10
|
+
|
11
|
+
import { UserDetailData } from "./user-detail.data";
|
12
|
+
import { VenturePublicationData } from "./venture-publication.data";
|
13
|
+
|
14
|
+
@Entity()
|
15
|
+
export class PublicationCommentData {
|
16
|
+
@PrimaryGeneratedColumn("uuid")
|
17
|
+
id: string;
|
18
|
+
|
19
|
+
@Column()
|
20
|
+
authorDetailId: string;
|
21
|
+
|
22
|
+
@Column()
|
23
|
+
publicationId: string;
|
24
|
+
|
25
|
+
@Column()
|
26
|
+
body: string;
|
27
|
+
|
28
|
+
@CreateDateColumn()
|
29
|
+
createdAt: Date;
|
30
|
+
|
31
|
+
@UpdateDateColumn()
|
32
|
+
updatedAt: Date;
|
33
|
+
|
34
|
+
@ManyToOne(() => UserDetailData, (userDetail) => userDetail.comments)
|
35
|
+
@JoinColumn({ name: "authorDetailId" })
|
36
|
+
User: UserDetailData;
|
37
|
+
|
38
|
+
@ManyToOne(
|
39
|
+
() => VenturePublicationData,
|
40
|
+
(venturePublication) => venturePublication.comments
|
41
|
+
)
|
42
|
+
@JoinColumn({ name: "publicationId" })
|
43
|
+
venturePublication: VenturePublicationData;
|
44
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import {
|
2
|
+
Column,
|
3
|
+
CreateDateColumn,
|
4
|
+
Entity,
|
5
|
+
JoinColumn,
|
6
|
+
ManyToOne,
|
7
|
+
PrimaryGeneratedColumn,
|
8
|
+
UpdateDateColumn,
|
9
|
+
} from "typeorm";
|
10
|
+
|
11
|
+
import { ContentType } from "../../../domain/shared";
|
12
|
+
import { VenturePublicationData } from "./venture-publication.data";
|
13
|
+
|
14
|
+
@Entity()
|
15
|
+
export class PublicationContentData {
|
16
|
+
@PrimaryGeneratedColumn("uuid")
|
17
|
+
id: string;
|
18
|
+
|
19
|
+
@Column({ type: "enum", enum: ContentType })
|
20
|
+
type: ContentType;
|
21
|
+
|
22
|
+
@Column()
|
23
|
+
content: string;
|
24
|
+
|
25
|
+
@Column()
|
26
|
+
publicationId: string;
|
27
|
+
|
28
|
+
@CreateDateColumn()
|
29
|
+
createdAt: Date;
|
30
|
+
|
31
|
+
@UpdateDateColumn()
|
32
|
+
updatedAt: Date;
|
33
|
+
|
34
|
+
@ManyToOne(
|
35
|
+
() => VenturePublicationData,
|
36
|
+
(venturePublication) => venturePublication.contents
|
37
|
+
)
|
38
|
+
@JoinColumn({ name: "publicationId" })
|
39
|
+
venturePublication: VenturePublicationData;
|
40
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import {
|
2
|
+
Column,
|
3
|
+
CreateDateColumn,
|
4
|
+
Entity,
|
5
|
+
ManyToMany,
|
6
|
+
PrimaryGeneratedColumn,
|
7
|
+
UpdateDateColumn,
|
8
|
+
} from "typeorm";
|
9
|
+
|
10
|
+
import { AppRole } from "../../../domain/user";
|
11
|
+
import { UserData } from "./user.data";
|
12
|
+
|
13
|
+
@Entity()
|
14
|
+
export class RoleData {
|
15
|
+
@PrimaryGeneratedColumn("uuid")
|
16
|
+
id: string;
|
17
|
+
|
18
|
+
@Column({ type: "enum", enum: AppRole, unique: true })
|
19
|
+
name: AppRole;
|
20
|
+
|
21
|
+
@Column({ default: "" })
|
22
|
+
label: string;
|
23
|
+
|
24
|
+
@CreateDateColumn()
|
25
|
+
createdAt: Date;
|
26
|
+
|
27
|
+
@UpdateDateColumn()
|
28
|
+
updatedAt: Date;
|
29
|
+
|
30
|
+
@ManyToMany(() => UserData, (user) => user.roles)
|
31
|
+
users: UserData[];
|
32
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import {
|
2
|
+
Column,
|
3
|
+
CreateDateColumn,
|
4
|
+
Entity,
|
5
|
+
OneToOne,
|
6
|
+
PrimaryGeneratedColumn,
|
7
|
+
UpdateDateColumn,
|
8
|
+
} from "typeorm";
|
9
|
+
|
10
|
+
import { UserData } from "./user.data";
|
11
|
+
|
12
|
+
@Entity()
|
13
|
+
export class UserContactData {
|
14
|
+
@PrimaryGeneratedColumn("uuid")
|
15
|
+
id: string;
|
16
|
+
|
17
|
+
@Column()
|
18
|
+
phoneNumber: string;
|
19
|
+
|
20
|
+
@Column()
|
21
|
+
address: string;
|
22
|
+
|
23
|
+
@Column()
|
24
|
+
facebookUrl: string;
|
25
|
+
|
26
|
+
@Column()
|
27
|
+
linkedinUrl: string;
|
28
|
+
|
29
|
+
@Column()
|
30
|
+
twitterUrl: string;
|
31
|
+
|
32
|
+
@Column()
|
33
|
+
instagramUrl: string;
|
34
|
+
|
35
|
+
@CreateDateColumn()
|
36
|
+
createdAt: Date;
|
37
|
+
|
38
|
+
@UpdateDateColumn()
|
39
|
+
updatedAt: Date;
|
40
|
+
|
41
|
+
@OneToOne(() => UserData, (user) => user.contact)
|
42
|
+
user?: UserData;
|
43
|
+
}
|