echadospalante-core 8.8.1 → 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/{donations → domain/donations}/sponsor.d.ts +2 -2
- 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/{donations → domain/donations}/sponsor.ts +2 -2
- 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.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/{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
@@ -2,8 +2,8 @@ import { UserDetail } from "../user";
|
|
2
2
|
import { Venture } from "../ventures/venture";
|
3
3
|
export interface VentureSponsorship {
|
4
4
|
id: string;
|
5
|
-
sponsor
|
6
|
-
venture
|
5
|
+
sponsor?: UserDetail;
|
6
|
+
venture?: Venture;
|
7
7
|
monthlyAmount: number;
|
8
8
|
createdAt: Date;
|
9
9
|
}
|
@@ -0,0 +1,45 @@
|
|
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
|
+
], DepartmentData);
|
@@ -0,0 +1,60 @@
|
|
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
|
+
ventureEvent;
|
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.EventCategory),
|
51
|
+
(0, typeorm_1.JoinTable)({
|
52
|
+
name: "x_event_category",
|
53
|
+
joinColumn: { name: "categoryId", referencedColumnName: "id" },
|
54
|
+
inverseJoinColumn: { name: "eventId", referencedColumnName: "id" },
|
55
|
+
}),
|
56
|
+
__metadata("design:type", Array)
|
57
|
+
], EventCategoryData.prototype, "ventureEvent", void 0);
|
58
|
+
exports.EventCategoryData = EventCategoryData = __decorate([
|
59
|
+
(0, typeorm_1.Entity)()
|
60
|
+
], EventCategoryData);
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { UserDetailData } from "./user-detail.data";
|
2
|
+
import { VentureEventData } from "./venture-event.data";
|
3
|
+
export declare class EventDonationData {
|
4
|
+
id: string;
|
5
|
+
eventId: string;
|
6
|
+
amount: number;
|
7
|
+
currency: string;
|
8
|
+
createdAt: Date;
|
9
|
+
donorDetailId: string;
|
10
|
+
donor: UserDetailData;
|
11
|
+
event: VentureEventData;
|
12
|
+
}
|
@@ -0,0 +1,63 @@
|
|
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
|
+
eventId;
|
19
|
+
amount;
|
20
|
+
currency;
|
21
|
+
createdAt;
|
22
|
+
donorDetailId;
|
23
|
+
donor;
|
24
|
+
event;
|
25
|
+
};
|
26
|
+
exports.EventDonationData = EventDonationData;
|
27
|
+
__decorate([
|
28
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
29
|
+
__metadata("design:type", String)
|
30
|
+
], EventDonationData.prototype, "id", void 0);
|
31
|
+
__decorate([
|
32
|
+
(0, typeorm_1.Column)(),
|
33
|
+
__metadata("design:type", String)
|
34
|
+
], EventDonationData.prototype, "eventId", void 0);
|
35
|
+
__decorate([
|
36
|
+
(0, typeorm_1.Column)("float"),
|
37
|
+
__metadata("design:type", Number)
|
38
|
+
], EventDonationData.prototype, "amount", void 0);
|
39
|
+
__decorate([
|
40
|
+
(0, typeorm_1.Column)(),
|
41
|
+
__metadata("design:type", String)
|
42
|
+
], EventDonationData.prototype, "currency", void 0);
|
43
|
+
__decorate([
|
44
|
+
(0, typeorm_1.CreateDateColumn)(),
|
45
|
+
__metadata("design:type", Date)
|
46
|
+
], EventDonationData.prototype, "createdAt", void 0);
|
47
|
+
__decorate([
|
48
|
+
(0, typeorm_1.Column)(),
|
49
|
+
__metadata("design:type", String)
|
50
|
+
], EventDonationData.prototype, "donorDetailId", void 0);
|
51
|
+
__decorate([
|
52
|
+
(0, typeorm_1.ManyToOne)(() => user_detail_data_1.UserDetailData, (userDetail) => userDetail.donations),
|
53
|
+
(0, typeorm_1.JoinColumn)({ name: "donorDetailId" }),
|
54
|
+
__metadata("design:type", user_detail_data_1.UserDetailData)
|
55
|
+
], EventDonationData.prototype, "donor", void 0);
|
56
|
+
__decorate([
|
57
|
+
(0, typeorm_1.ManyToOne)(() => venture_event_data_1.VentureEventData, (ventureEvent) => ventureEvent.donations),
|
58
|
+
(0, typeorm_1.JoinColumn)({ name: "eventId" }),
|
59
|
+
__metadata("design:type", venture_event_data_1.VentureEventData)
|
60
|
+
], EventDonationData.prototype, "event", void 0);
|
61
|
+
exports.EventDonationData = EventDonationData = __decorate([
|
62
|
+
(0, typeorm_1.Entity)()
|
63
|
+
], EventDonationData);
|
@@ -0,0 +1,45 @@
|
|
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.EventLocationData = void 0;
|
13
|
+
const typeorm_1 = require("typeorm");
|
14
|
+
const venture_event_data_1 = require("./venture-event.data");
|
15
|
+
let EventLocationData = class EventLocationData {
|
16
|
+
id;
|
17
|
+
lat;
|
18
|
+
lng;
|
19
|
+
description;
|
20
|
+
event;
|
21
|
+
};
|
22
|
+
exports.EventLocationData = EventLocationData;
|
23
|
+
__decorate([
|
24
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
25
|
+
__metadata("design:type", String)
|
26
|
+
], EventLocationData.prototype, "id", void 0);
|
27
|
+
__decorate([
|
28
|
+
(0, typeorm_1.Column)("float", { nullable: true }),
|
29
|
+
__metadata("design:type", Number)
|
30
|
+
], EventLocationData.prototype, "lat", void 0);
|
31
|
+
__decorate([
|
32
|
+
(0, typeorm_1.Column)("float", { nullable: true }),
|
33
|
+
__metadata("design:type", Number)
|
34
|
+
], EventLocationData.prototype, "lng", void 0);
|
35
|
+
__decorate([
|
36
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
37
|
+
__metadata("design:type", String)
|
38
|
+
], EventLocationData.prototype, "description", void 0);
|
39
|
+
__decorate([
|
40
|
+
(0, typeorm_1.OneToOne)(() => venture_event_data_1.VentureEventData, (ventureEvent) => ventureEvent.location),
|
41
|
+
__metadata("design:type", venture_event_data_1.VentureEventData)
|
42
|
+
], EventLocationData.prototype, "event", void 0);
|
43
|
+
exports.EventLocationData = EventLocationData = __decorate([
|
44
|
+
(0, typeorm_1.Entity)()
|
45
|
+
], EventLocationData);
|
@@ -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,47 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.VentureLocationData = exports.VentureContactData = exports.UserContactData = exports.PublicationClapData = exports.EventLocationData = exports.VentureSubscriptionData = exports.VentureEventData = exports.VentureCategoryData = exports.RoleData = exports.NotificationData = exports.EventDonationData = exports.VentureSponsorshipData = exports.VentureDetailData = exports.UserDetailData = exports.PublicationContentData = exports.MunicipalityData = exports.EventCategoryData = exports.VenturePublicationData = exports.VentureData = exports.UserData = exports.PublicationCommentData = exports.DepartmentData = void 0;
|
4
|
+
var department_data_1 = require("./department.data");
|
5
|
+
Object.defineProperty(exports, "DepartmentData", { enumerable: true, get: function () { return department_data_1.DepartmentData; } });
|
6
|
+
var publication_comment_data_1 = require("./publication-comment.data");
|
7
|
+
Object.defineProperty(exports, "PublicationCommentData", { enumerable: true, get: function () { return publication_comment_data_1.PublicationCommentData; } });
|
8
|
+
var user_data_1 = require("./user.data");
|
9
|
+
Object.defineProperty(exports, "UserData", { enumerable: true, get: function () { return user_data_1.UserData; } });
|
10
|
+
var venture_data_1 = require("./venture.data");
|
11
|
+
Object.defineProperty(exports, "VentureData", { enumerable: true, get: function () { return venture_data_1.VentureData; } });
|
12
|
+
var venture_publication_data_1 = require("./venture-publication.data");
|
13
|
+
Object.defineProperty(exports, "VenturePublicationData", { enumerable: true, get: function () { return venture_publication_data_1.VenturePublicationData; } });
|
14
|
+
var event_category_data_1 = require("./event-category.data");
|
15
|
+
Object.defineProperty(exports, "EventCategoryData", { enumerable: true, get: function () { return event_category_data_1.EventCategoryData; } });
|
16
|
+
var municipality_data_1 = require("./municipality.data");
|
17
|
+
Object.defineProperty(exports, "MunicipalityData", { enumerable: true, get: function () { return municipality_data_1.MunicipalityData; } });
|
18
|
+
var publication_content_data_1 = require("./publication-content.data");
|
19
|
+
Object.defineProperty(exports, "PublicationContentData", { enumerable: true, get: function () { return publication_content_data_1.PublicationContentData; } });
|
20
|
+
var user_detail_data_1 = require("./user-detail.data");
|
21
|
+
Object.defineProperty(exports, "UserDetailData", { enumerable: true, get: function () { return user_detail_data_1.UserDetailData; } });
|
22
|
+
var venture_detail_data_1 = require("./venture-detail.data");
|
23
|
+
Object.defineProperty(exports, "VentureDetailData", { enumerable: true, get: function () { return venture_detail_data_1.VentureDetailData; } });
|
24
|
+
var venture_sponsorship_data_1 = require("./venture-sponsorship.data");
|
25
|
+
Object.defineProperty(exports, "VentureSponsorshipData", { enumerable: true, get: function () { return venture_sponsorship_data_1.VentureSponsorshipData; } });
|
26
|
+
var event_donation_data_1 = require("./event-donation.data");
|
27
|
+
Object.defineProperty(exports, "EventDonationData", { enumerable: true, get: function () { return event_donation_data_1.EventDonationData; } });
|
28
|
+
var notification_data_1 = require("./notification.data");
|
29
|
+
Object.defineProperty(exports, "NotificationData", { enumerable: true, get: function () { return notification_data_1.NotificationData; } });
|
30
|
+
var role_data_1 = require("./role.data");
|
31
|
+
Object.defineProperty(exports, "RoleData", { enumerable: true, get: function () { return role_data_1.RoleData; } });
|
32
|
+
var venture_category_data_1 = require("./venture-category.data");
|
33
|
+
Object.defineProperty(exports, "VentureCategoryData", { enumerable: true, get: function () { return venture_category_data_1.VentureCategoryData; } });
|
34
|
+
var venture_event_data_1 = require("./venture-event.data");
|
35
|
+
Object.defineProperty(exports, "VentureEventData", { enumerable: true, get: function () { return venture_event_data_1.VentureEventData; } });
|
36
|
+
var venture_subscription_data_1 = require("./venture-subscription.data");
|
37
|
+
Object.defineProperty(exports, "VentureSubscriptionData", { enumerable: true, get: function () { return venture_subscription_data_1.VentureSubscriptionData; } });
|
38
|
+
var event_location_data_1 = require("./event-location.data");
|
39
|
+
Object.defineProperty(exports, "EventLocationData", { enumerable: true, get: function () { return event_location_data_1.EventLocationData; } });
|
40
|
+
var publication_clap_data_1 = require("./publication-clap.data");
|
41
|
+
Object.defineProperty(exports, "PublicationClapData", { enumerable: true, get: function () { return publication_clap_data_1.PublicationClapData; } });
|
42
|
+
var user_contact_data_1 = require("./user-contact.data");
|
43
|
+
Object.defineProperty(exports, "UserContactData", { enumerable: true, get: function () { return user_contact_data_1.UserContactData; } });
|
44
|
+
var venture_contact_data_1 = require("./venture-contact.data");
|
45
|
+
Object.defineProperty(exports, "VentureContactData", { enumerable: true, get: function () { return venture_contact_data_1.VentureContactData; } });
|
46
|
+
var venture_location_data_1 = require("./venture-location.data");
|
47
|
+
Object.defineProperty(exports, "VentureLocationData", { enumerable: true, get: function () { return venture_location_data_1.VentureLocationData; } });
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { DepartmentData } from "./department.data";
|
2
|
+
import { UserDetailData } from "./user-detail.data";
|
3
|
+
export declare class MunicipalityData {
|
4
|
+
id: number;
|
5
|
+
name: string;
|
6
|
+
departmentId: number;
|
7
|
+
createdAt: Date;
|
8
|
+
updatedAt: Date;
|
9
|
+
department: DepartmentData;
|
10
|
+
userDetails: UserDetailData[];
|
11
|
+
}
|
@@ -0,0 +1,57 @@
|
|
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
|
+
departmentId;
|
20
|
+
createdAt;
|
21
|
+
updatedAt;
|
22
|
+
department;
|
23
|
+
userDetails;
|
24
|
+
};
|
25
|
+
exports.MunicipalityData = MunicipalityData;
|
26
|
+
__decorate([
|
27
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
28
|
+
__metadata("design:type", Number)
|
29
|
+
], MunicipalityData.prototype, "id", void 0);
|
30
|
+
__decorate([
|
31
|
+
(0, typeorm_1.Column)(),
|
32
|
+
__metadata("design:type", String)
|
33
|
+
], MunicipalityData.prototype, "name", void 0);
|
34
|
+
__decorate([
|
35
|
+
(0, typeorm_1.Column)(),
|
36
|
+
__metadata("design:type", Number)
|
37
|
+
], MunicipalityData.prototype, "departmentId", void 0);
|
38
|
+
__decorate([
|
39
|
+
(0, typeorm_1.CreateDateColumn)(),
|
40
|
+
__metadata("design:type", Date)
|
41
|
+
], MunicipalityData.prototype, "createdAt", void 0);
|
42
|
+
__decorate([
|
43
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
44
|
+
__metadata("design:type", Date)
|
45
|
+
], MunicipalityData.prototype, "updatedAt", void 0);
|
46
|
+
__decorate([
|
47
|
+
(0, typeorm_1.ManyToOne)(() => department_data_1.DepartmentData, (department) => department.municipalities),
|
48
|
+
(0, typeorm_1.JoinColumn)({ name: "departmentId" }),
|
49
|
+
__metadata("design:type", department_data_1.DepartmentData)
|
50
|
+
], MunicipalityData.prototype, "department", void 0);
|
51
|
+
__decorate([
|
52
|
+
(0, typeorm_1.OneToMany)(() => user_detail_data_1.UserDetailData, (ud) => ud.municipality),
|
53
|
+
__metadata("design:type", Array)
|
54
|
+
], MunicipalityData.prototype, "userDetails", void 0);
|
55
|
+
exports.MunicipalityData = MunicipalityData = __decorate([
|
56
|
+
(0, typeorm_1.Entity)()
|
57
|
+
], MunicipalityData);
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { NotificationType } from "../../../domain/notifications";
|
2
|
+
import { NotificationStatus } from "../../../domain/notifications/notification";
|
3
|
+
import { UserDetailData } from "./user-detail.data";
|
4
|
+
export declare class NotificationData {
|
5
|
+
id: string;
|
6
|
+
title: string;
|
7
|
+
type: NotificationType;
|
8
|
+
status: NotificationStatus;
|
9
|
+
description: string;
|
10
|
+
createdAt: Date;
|
11
|
+
updatedAt: Date;
|
12
|
+
userDetailId: string;
|
13
|
+
user: UserDetailData;
|
14
|
+
}
|
@@ -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)()
|
68
|
+
], NotificationData);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { UserDetailData } from "./user-detail.data";
|
2
|
+
import { VenturePublicationData } from "./venture-publication.data";
|
3
|
+
export declare class PublicationClapData {
|
4
|
+
id: string;
|
5
|
+
publicationId: string;
|
6
|
+
createdAt: Date;
|
7
|
+
userDetailId: string;
|
8
|
+
venturePublication: VenturePublicationData;
|
9
|
+
user: UserDetailData;
|
10
|
+
}
|
@@ -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.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
|
+
publicationId;
|
19
|
+
createdAt;
|
20
|
+
userDetailId;
|
21
|
+
venturePublication;
|
22
|
+
user;
|
23
|
+
};
|
24
|
+
exports.PublicationClapData = PublicationClapData;
|
25
|
+
__decorate([
|
26
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
27
|
+
__metadata("design:type", String)
|
28
|
+
], PublicationClapData.prototype, "id", void 0);
|
29
|
+
__decorate([
|
30
|
+
(0, typeorm_1.Column)(),
|
31
|
+
__metadata("design:type", String)
|
32
|
+
], PublicationClapData.prototype, "publicationId", void 0);
|
33
|
+
__decorate([
|
34
|
+
(0, typeorm_1.CreateDateColumn)(),
|
35
|
+
__metadata("design:type", Date)
|
36
|
+
], PublicationClapData.prototype, "createdAt", void 0);
|
37
|
+
__decorate([
|
38
|
+
(0, typeorm_1.Column)(),
|
39
|
+
__metadata("design:type", String)
|
40
|
+
], PublicationClapData.prototype, "userDetailId", void 0);
|
41
|
+
__decorate([
|
42
|
+
(0, typeorm_1.ManyToOne)(() => venture_publication_data_1.VenturePublicationData, (venturePublication) => venturePublication.claps),
|
43
|
+
(0, typeorm_1.JoinColumn)({ name: "publicationId" }),
|
44
|
+
__metadata("design:type", venture_publication_data_1.VenturePublicationData)
|
45
|
+
], PublicationClapData.prototype, "venturePublication", void 0);
|
46
|
+
__decorate([
|
47
|
+
(0, typeorm_1.ManyToOne)(() => user_detail_data_1.UserDetailData, (userDetail) => userDetail.claps),
|
48
|
+
(0, typeorm_1.JoinColumn)({ name: "userDetailId" }),
|
49
|
+
__metadata("design:type", user_detail_data_1.UserDetailData)
|
50
|
+
], PublicationClapData.prototype, "user", void 0);
|
51
|
+
exports.PublicationClapData = PublicationClapData = __decorate([
|
52
|
+
(0, typeorm_1.Entity)()
|
53
|
+
], PublicationClapData);
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { UserDetailData } from "./user-detail.data";
|
2
|
+
import { VenturePublicationData } from "./venture-publication.data";
|
3
|
+
export declare class PublicationCommentData {
|
4
|
+
id: string;
|
5
|
+
authorDetailId: string;
|
6
|
+
publicationId: string;
|
7
|
+
body: string;
|
8
|
+
createdAt: Date;
|
9
|
+
updatedAt: Date;
|
10
|
+
User: UserDetailData;
|
11
|
+
venturePublication: VenturePublicationData;
|
12
|
+
}
|
@@ -0,0 +1,63 @@
|
|
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
|
+
authorDetailId;
|
19
|
+
publicationId;
|
20
|
+
body;
|
21
|
+
createdAt;
|
22
|
+
updatedAt;
|
23
|
+
User;
|
24
|
+
venturePublication;
|
25
|
+
};
|
26
|
+
exports.PublicationCommentData = PublicationCommentData;
|
27
|
+
__decorate([
|
28
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
29
|
+
__metadata("design:type", String)
|
30
|
+
], PublicationCommentData.prototype, "id", void 0);
|
31
|
+
__decorate([
|
32
|
+
(0, typeorm_1.Column)(),
|
33
|
+
__metadata("design:type", String)
|
34
|
+
], PublicationCommentData.prototype, "authorDetailId", void 0);
|
35
|
+
__decorate([
|
36
|
+
(0, typeorm_1.Column)(),
|
37
|
+
__metadata("design:type", String)
|
38
|
+
], PublicationCommentData.prototype, "publicationId", void 0);
|
39
|
+
__decorate([
|
40
|
+
(0, typeorm_1.Column)(),
|
41
|
+
__metadata("design:type", String)
|
42
|
+
], PublicationCommentData.prototype, "body", void 0);
|
43
|
+
__decorate([
|
44
|
+
(0, typeorm_1.CreateDateColumn)(),
|
45
|
+
__metadata("design:type", Date)
|
46
|
+
], PublicationCommentData.prototype, "createdAt", void 0);
|
47
|
+
__decorate([
|
48
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
49
|
+
__metadata("design:type", Date)
|
50
|
+
], PublicationCommentData.prototype, "updatedAt", void 0);
|
51
|
+
__decorate([
|
52
|
+
(0, typeorm_1.ManyToOne)(() => user_detail_data_1.UserDetailData, (userDetail) => userDetail.comments),
|
53
|
+
(0, typeorm_1.JoinColumn)({ name: "authorDetailId" }),
|
54
|
+
__metadata("design:type", user_detail_data_1.UserDetailData)
|
55
|
+
], PublicationCommentData.prototype, "User", void 0);
|
56
|
+
__decorate([
|
57
|
+
(0, typeorm_1.ManyToOne)(() => venture_publication_data_1.VenturePublicationData, (venturePublication) => venturePublication.comments),
|
58
|
+
(0, typeorm_1.JoinColumn)({ name: "publicationId" }),
|
59
|
+
__metadata("design:type", venture_publication_data_1.VenturePublicationData)
|
60
|
+
], PublicationCommentData.prototype, "venturePublication", void 0);
|
61
|
+
exports.PublicationCommentData = PublicationCommentData = __decorate([
|
62
|
+
(0, typeorm_1.Entity)()
|
63
|
+
], PublicationCommentData);
|