echadospalante-core 12.2.0 → 13.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/domain/auth/index.js +2 -0
- package/dist/app/modules/domain/auth/token-payload.d.ts +5 -0
- package/dist/app/modules/domain/auth/token-payload.js +2 -0
- package/dist/app/modules/domain/common/content-type.d.ts +7 -0
- package/dist/app/modules/domain/common/content-type.js +11 -0
- package/dist/app/modules/domain/common/geo.d.ts +16 -0
- package/dist/app/modules/domain/common/geo.js +2 -0
- package/dist/app/modules/domain/common/index.js +5 -0
- package/dist/app/modules/domain/common/pagination.d.ts +4 -0
- package/dist/app/modules/domain/common/pagination.js +2 -0
- package/dist/app/modules/domain/contributions/donation.js +2 -0
- package/dist/app/modules/domain/contributions/index.js +2 -0
- package/dist/app/modules/domain/contributions/sponsor.js +2 -0
- package/dist/app/modules/domain/events/event-category.js +2 -0
- package/dist/app/modules/domain/events/event-contact.js +2 -0
- package/dist/app/modules/domain/notifications/index.js +5 -0
- package/dist/app/modules/domain/notifications/notification.js +19 -0
- package/dist/app/modules/domain/publications/clap.js +2 -0
- package/dist/app/modules/domain/publications/comment.js +2 -0
- package/dist/app/modules/domain/publications/content.d.ts +1 -1
- package/dist/app/modules/domain/publications/publication.d.ts +1 -1
- package/dist/app/modules/domain/shared/content-type.d.ts +7 -0
- package/dist/app/modules/domain/shared/content-type.js +11 -0
- package/dist/app/modules/domain/shared/geo.js +2 -0
- package/dist/app/modules/domain/shared/pagination.d.ts +4 -0
- package/dist/app/modules/domain/shared/pagination.js +2 -0
- package/dist/app/modules/domain/user/contact.js +2 -0
- package/dist/app/modules/domain/user/detail.d.ts +1 -1
- package/dist/app/modules/domain/user/detail.js +2 -0
- package/dist/app/modules/domain/user/index.js +5 -0
- package/dist/app/modules/domain/user/role.js +10 -0
- package/dist/app/modules/domain/user/user.js +2 -0
- package/dist/app/modules/domain/ventures/category.js +2 -0
- package/dist/app/modules/domain/ventures/contact.js +2 -0
- package/dist/app/modules/domain/ventures/detail.js +2 -0
- package/dist/app/modules/domain/ventures/index.js +2 -0
- package/dist/app/modules/domain/ventures/location.js +2 -0
- package/dist/app/modules/domain/ventures/subscription.js +2 -0
- package/dist/app/modules/domain/ventures/venture.js +2 -0
- package/dist/app/modules/infrastructure/database/entities/department.data.js +47 -0
- package/dist/app/modules/infrastructure/database/entities/event-category.data.js +62 -0
- package/dist/app/modules/infrastructure/database/entities/event-contact.data.js +40 -0
- package/dist/app/modules/infrastructure/database/entities/event-donation.data.js +53 -0
- package/dist/app/modules/infrastructure/database/entities/municipality.data.js +52 -0
- package/dist/app/modules/infrastructure/database/entities/notification.data.js +68 -0
- package/dist/app/modules/infrastructure/database/entities/publication-clap.data.js +43 -0
- package/dist/app/modules/infrastructure/database/entities/publication-comment.data.js +48 -0
- package/dist/app/modules/infrastructure/database/entities/publication-content.data.d.ts +1 -1
- package/dist/app/modules/infrastructure/database/entities/publication-content.data.js +2 -2
- package/dist/app/modules/infrastructure/database/entities/role.data.js +51 -0
- package/dist/app/modules/infrastructure/database/entities/user-contact.data.js +70 -0
- package/dist/app/modules/infrastructure/database/entities/user-detail.data.js +89 -0
- package/dist/app/modules/infrastructure/database/entities/user.data.js +97 -0
- package/dist/app/modules/infrastructure/database/entities/venture-category.data.js +61 -0
- package/dist/app/modules/infrastructure/database/entities/venture-contact.data.js +50 -0
- package/dist/app/modules/infrastructure/database/entities/venture-detail.data.js +64 -0
- package/dist/app/modules/infrastructure/database/entities/venture-location.data.js +51 -0
- package/dist/app/modules/infrastructure/database/entities/venture-publication.data.js +80 -0
- package/dist/app/modules/infrastructure/database/entities/venture-sponsorship.data.js +53 -0
- package/dist/app/modules/infrastructure/database/entities/venture-subscription.data.js +43 -0
- package/dist/app/modules/infrastructure/database/entities/venture.data.js +105 -0
- package/dist/app/modules/utilities/index.d.ts +3 -0
- package/dist/app/modules/utilities/index.js +2 -0
- package/dist/app/modules/utilities/object-utilities.d.ts +16 -0
- package/dist/app/modules/utilities/object-utilities.js +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/app/modules/domain/common/index.ts +3 -0
- package/src/app/modules/domain/publications/content.ts +1 -1
- package/src/app/modules/domain/publications/publication.ts +1 -1
- package/src/app/modules/domain/user/detail.ts +1 -1
- package/src/app/modules/infrastructure/database/entities/publication-content.data.ts +1 -1
- package/src/index.ts +1 -1
- /package/{src/app/modules/domain/shared/index.ts → dist/app/modules/domain/common/index.d.ts} +0 -0
- /package/src/app/modules/domain/{shared → common}/content-type.ts +0 -0
- /package/src/app/modules/domain/{shared → common}/geo.ts +0 -0
- /package/src/app/modules/domain/{shared → common}/pagination.ts +0 -0
@@ -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,16 @@
|
|
1
|
+
import { UserDetail } from "../user";
|
2
|
+
export interface Department {
|
3
|
+
id: number;
|
4
|
+
name: string;
|
5
|
+
municipalities: Municipality[];
|
6
|
+
createdAt: Date;
|
7
|
+
updatedAt: Date;
|
8
|
+
}
|
9
|
+
export interface Municipality {
|
10
|
+
id: number;
|
11
|
+
name: string;
|
12
|
+
department: Department;
|
13
|
+
userDetails: UserDetail[];
|
14
|
+
createdAt: Date;
|
15
|
+
updatedAt: Date;
|
16
|
+
}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ContentType = void 0;
|
4
|
+
var content_type_1 = require("./content-type");
|
5
|
+
Object.defineProperty(exports, "ContentType", { enumerable: true, get: function () { return content_type_1.ContentType; } });
|
@@ -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,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 = {}));
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { EventDonation, VentureSponsorship } from "../contributions";
|
2
2
|
import { PublicationClap, PublicationComment } from "../publications";
|
3
|
-
import { Municipality } from "../
|
3
|
+
import { Municipality } from "../common/geo";
|
4
4
|
import { Venture, VentureSubscription } from "../ventures";
|
5
5
|
import { User } from "./user";
|
6
6
|
import { Notification } from "../notifications";
|
@@ -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,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);
|