echadospalante-core 9.3.4 → 9.5.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/contributions/donation.d.ts +10 -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.d.ts +10 -0
- package/dist/app/modules/domain/contributions/sponsor.js +2 -0
- package/dist/app/modules/domain/events/event-category.d.ts +10 -0
- package/dist/app/modules/domain/events/event-category.js +2 -0
- package/dist/app/modules/domain/events/event-location.d.ts +8 -0
- package/dist/app/modules/domain/events/event-location.js +2 -0
- package/dist/app/modules/domain/events/event.d.ts +18 -0
- package/dist/app/modules/domain/events/event.js +2 -0
- package/dist/app/modules/domain/publications/clap.d.ts +8 -0
- package/dist/app/modules/domain/publications/clap.js +2 -0
- package/dist/app/modules/domain/publications/comment.d.ts +9 -0
- package/dist/app/modules/domain/publications/comment.js +2 -0
- package/dist/app/modules/domain/publications/content.d.ts +10 -0
- package/dist/app/modules/domain/publications/content.js +12 -0
- package/dist/app/modules/domain/publications/index.d.ts +6 -0
- package/dist/app/modules/domain/publications/index.js +5 -0
- package/dist/app/modules/domain/publications/publication.d.ts +27 -0
- package/dist/app/modules/domain/publications/publication.js +11 -0
- package/dist/app/modules/domain/user/detail.d.ts +2 -2
- package/dist/app/modules/domain/ventures/category.d.ts +4 -2
- package/dist/app/modules/domain/ventures/detail.d.ts +3 -3
- package/dist/app/modules/domain/ventures/subscription.d.ts +3 -3
- package/dist/app/modules/domain/ventures/venture.d.ts +1 -0
- package/dist/app/modules/infrastructure/database/entities/event-category.data.d.ts +1 -1
- package/dist/app/modules/infrastructure/database/entities/event-category.data.js +3 -3
- package/dist/app/modules/infrastructure/database/entities/event-donation.data.d.ts +1 -3
- package/dist/app/modules/infrastructure/database/entities/event-donation.data.js +3 -13
- package/dist/app/modules/infrastructure/database/entities/event-location.data.d.ts +4 -4
- package/dist/app/modules/infrastructure/database/entities/municipality.data.d.ts +0 -1
- package/dist/app/modules/infrastructure/database/entities/municipality.data.js +0 -5
- package/dist/app/modules/infrastructure/database/entities/publication-clap.data.d.ts +2 -4
- package/dist/app/modules/infrastructure/database/entities/publication-clap.data.js +7 -17
- package/dist/app/modules/infrastructure/database/entities/publication-comment.data.d.ts +3 -6
- package/dist/app/modules/infrastructure/database/entities/publication-comment.data.js +12 -27
- package/dist/app/modules/infrastructure/database/entities/publication-content.data.d.ts +1 -2
- package/dist/app/modules/infrastructure/database/entities/publication-content.data.js +2 -7
- package/dist/app/modules/infrastructure/database/entities/role.data.d.ts +1 -1
- package/dist/app/modules/infrastructure/database/entities/user-detail.data.d.ts +0 -1
- package/dist/app/modules/infrastructure/database/entities/user-detail.data.js +3 -8
- package/dist/app/modules/infrastructure/database/entities/venture-category.data.d.ts +2 -2
- package/dist/app/modules/infrastructure/database/entities/venture-contact.data.d.ts +1 -1
- package/dist/app/modules/infrastructure/database/entities/venture-detail.data.d.ts +1 -1
- package/dist/app/modules/infrastructure/database/entities/venture-event.data.d.ts +4 -6
- package/dist/app/modules/infrastructure/database/entities/venture-event.data.js +21 -31
- package/dist/app/modules/infrastructure/database/entities/venture-location.data.d.ts +4 -5
- package/dist/app/modules/infrastructure/database/entities/venture-location.data.js +0 -5
- package/dist/app/modules/infrastructure/database/entities/venture-publication.data.d.ts +1 -1
- package/dist/app/modules/infrastructure/database/entities/venture-publication.data.js +5 -5
- package/dist/app/modules/infrastructure/database/entities/venture-sponsorship.data.d.ts +2 -4
- package/dist/app/modules/infrastructure/database/entities/venture-sponsorship.data.js +2 -12
- package/dist/app/modules/infrastructure/database/entities/venture-subscription.data.d.ts +2 -4
- package/dist/app/modules/infrastructure/database/entities/venture-subscription.data.js +2 -12
- package/dist/app/modules/infrastructure/database/entities/venture.data.d.ts +4 -8
- package/dist/app/modules/infrastructure/database/entities/venture.data.js +0 -20
- package/dist/index.d.ts +2 -3
- package/dist/index.js +2 -3
- package/package.json +1 -1
- package/src/app/modules/domain/{donations → contributions}/donation.ts +5 -3
- package/src/app/modules/domain/contributions/index.ts +2 -0
- package/src/app/modules/domain/{donations → contributions}/sponsor.ts +3 -3
- package/src/app/modules/domain/{feeds/category.ts → events/event-category.ts} +3 -1
- package/src/app/modules/domain/{feeds → events}/event.ts +4 -3
- package/src/app/modules/domain/{feeds → publications}/clap.ts +1 -1
- package/src/app/modules/domain/{feeds → publications}/comment.ts +1 -0
- package/src/app/modules/domain/publications/content.ts +11 -0
- package/src/app/modules/domain/{feeds → publications}/index.ts +3 -3
- package/src/app/modules/domain/user/detail.ts +2 -2
- package/src/app/modules/domain/ventures/category.ts +4 -2
- package/src/app/modules/domain/ventures/detail.ts +3 -3
- package/src/app/modules/domain/ventures/subscription.ts +3 -2
- package/src/app/modules/domain/ventures/venture.ts +2 -1
- package/src/app/modules/infrastructure/database/entities/event-category.data.ts +2 -5
- package/src/app/modules/infrastructure/database/entities/event-donation.data.ts +2 -8
- package/src/app/modules/infrastructure/database/entities/event-location.data.ts +4 -4
- package/src/app/modules/infrastructure/database/entities/municipality.data.ts +0 -3
- package/src/app/modules/infrastructure/database/entities/publication-clap.data.ts +4 -10
- package/src/app/modules/infrastructure/database/entities/publication-comment.data.ts +8 -17
- package/src/app/modules/infrastructure/database/entities/publication-content.data.ts +1 -4
- package/src/app/modules/infrastructure/database/entities/role.data.ts +1 -1
- package/src/app/modules/infrastructure/database/entities/user-detail.data.ts +3 -6
- package/src/app/modules/infrastructure/database/entities/venture-category.data.ts +2 -2
- package/src/app/modules/infrastructure/database/entities/venture-contact.data.ts +1 -1
- package/src/app/modules/infrastructure/database/entities/venture-detail.data.ts +1 -1
- package/src/app/modules/infrastructure/database/entities/venture-event.data.ts +13 -22
- package/src/app/modules/infrastructure/database/entities/venture-location.data.ts +4 -7
- package/src/app/modules/infrastructure/database/entities/venture-publication.data.ts +4 -4
- package/src/app/modules/infrastructure/database/entities/venture-sponsorship.data.ts +2 -8
- package/src/app/modules/infrastructure/database/entities/venture-subscription.data.ts +2 -8
- package/src/app/modules/infrastructure/database/entities/venture.data.ts +5 -16
- package/src/index.ts +2 -3
- package/src/app/modules/domain/news/category.ts +0 -9
- package/src/app/modules/domain/news/clap.ts +0 -9
- package/src/app/modules/domain/news/index.ts +0 -5
- package/src/app/modules/domain/news/news.ts +0 -20
- /package/{src/app/modules/domain/donations/index.ts → dist/app/modules/domain/contributions/index.d.ts} +0 -0
- /package/src/app/modules/domain/{feeds/location.ts → events/event-location.ts} +0 -0
- /package/src/app/modules/domain/{feeds → publications}/publication.ts +0 -0
@@ -0,0 +1,18 @@
|
|
1
|
+
import { EventDonation } from "../contributions";
|
2
|
+
import { VentureDetail } from "../ventures";
|
3
|
+
import { EventCategory } from "./event-category";
|
4
|
+
import { EventLocation } from "./event-location";
|
5
|
+
export interface VentureEvent {
|
6
|
+
id: string;
|
7
|
+
title: string;
|
8
|
+
description: string;
|
9
|
+
coverPhoto: string;
|
10
|
+
ventureDetail?: VentureDetail;
|
11
|
+
location: EventLocation;
|
12
|
+
categories: EventCategory[];
|
13
|
+
donations: EventDonation[];
|
14
|
+
startDate: Date;
|
15
|
+
endDate: Date;
|
16
|
+
createdAt: Date;
|
17
|
+
updatedAt: Date;
|
18
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { ContentType } from "../shared";
|
2
|
+
import { VenturePublication } from "./publication";
|
3
|
+
export declare class PublicationContent {
|
4
|
+
id: string;
|
5
|
+
type: ContentType;
|
6
|
+
content: string;
|
7
|
+
createdAt: Date;
|
8
|
+
updatedAt: Date;
|
9
|
+
publication: VenturePublication;
|
10
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PublicationContent = void 0;
|
4
|
+
class PublicationContent {
|
5
|
+
id;
|
6
|
+
type;
|
7
|
+
content;
|
8
|
+
createdAt;
|
9
|
+
updatedAt;
|
10
|
+
publication;
|
11
|
+
}
|
12
|
+
exports.PublicationContent = PublicationContent;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
export { EventCategory } from "../events/event-category";
|
2
|
+
export { PublicationClap } from "./clap";
|
3
|
+
export { PublicationComment } from "./comment";
|
4
|
+
export { VentureEvent } from "../events/event";
|
5
|
+
export { EventLocation } from "../events/event-location";
|
6
|
+
export { PublicationContent, PublicationType, VenturePublication, } from "./publication";
|
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PublicationType = void 0;
|
4
|
+
var publication_1 = require("./publication");
|
5
|
+
Object.defineProperty(exports, "PublicationType", { enumerable: true, get: function () { return publication_1.PublicationType; } });
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { ContentType } from "../shared";
|
2
|
+
import { Venture } from "../ventures/venture";
|
3
|
+
import { PublicationClap } from "./clap";
|
4
|
+
import { PublicationComment } from "./comment";
|
5
|
+
export interface VenturePublication {
|
6
|
+
id: string;
|
7
|
+
description: string;
|
8
|
+
active: boolean;
|
9
|
+
venture?: Venture;
|
10
|
+
type: PublicationType;
|
11
|
+
claps: PublicationClap[];
|
12
|
+
comments: PublicationComment[];
|
13
|
+
body: PublicationContent[];
|
14
|
+
createdAt: Date;
|
15
|
+
}
|
16
|
+
export declare enum PublicationType {
|
17
|
+
STANDARD = "STANDARD",
|
18
|
+
ANNOUNCEMENT = "ANNOUNCEMENT",
|
19
|
+
ACHIEVEMENT = "ACHIEVEMENT",
|
20
|
+
PROMOTION = "PROMOTION",
|
21
|
+
BEHIND_THE_SCENES = "BEHIND_THE_SCENES"
|
22
|
+
}
|
23
|
+
export interface PublicationContent {
|
24
|
+
id: string;
|
25
|
+
type: ContentType;
|
26
|
+
content: string;
|
27
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PublicationType = void 0;
|
4
|
+
var PublicationType;
|
5
|
+
(function (PublicationType) {
|
6
|
+
PublicationType["STANDARD"] = "STANDARD";
|
7
|
+
PublicationType["ANNOUNCEMENT"] = "ANNOUNCEMENT";
|
8
|
+
PublicationType["ACHIEVEMENT"] = "ACHIEVEMENT";
|
9
|
+
PublicationType["PROMOTION"] = "PROMOTION";
|
10
|
+
PublicationType["BEHIND_THE_SCENES"] = "BEHIND_THE_SCENES";
|
11
|
+
})(PublicationType || (exports.PublicationType = PublicationType = {}));
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { EventDonation, VentureSponsorship } from "../
|
2
|
-
import { PublicationClap, PublicationComment } from "../
|
1
|
+
import { EventDonation, VentureSponsorship } from "../contributions";
|
2
|
+
import { PublicationClap, PublicationComment } from "../publications";
|
3
3
|
import { Municipality } from "../shared/geo";
|
4
4
|
import { Venture, VentureSubscription } from "../ventures";
|
5
5
|
import { User } from "./user";
|
@@ -5,7 +5,9 @@ export interface VentureCategory {
|
|
5
5
|
name: string;
|
6
6
|
slug: string;
|
7
7
|
description: string;
|
8
|
-
ventures
|
9
|
-
users
|
8
|
+
ventures?: Venture[];
|
9
|
+
users?: User[];
|
10
|
+
createdAt: Date;
|
11
|
+
updatedAt: Date;
|
10
12
|
}
|
11
13
|
export type VentureCategoryCreate = Pick<VentureCategory, "name" | "description">;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { VentureSponsorship } from "../
|
2
|
-
import { VentureEvent } from "../
|
3
|
-
import { VenturePublication } from "../
|
1
|
+
import { VentureSponsorship } from "../contributions/sponsor";
|
2
|
+
import { VentureEvent } from "../events/event";
|
3
|
+
import { VenturePublication } from "../publications/publication";
|
4
4
|
import { VentureSubscription } from "./subscription";
|
5
5
|
import { Venture } from "./venture";
|
6
6
|
export interface VentureDetail {
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { UserDetail } from "../user";
|
2
|
-
import {
|
2
|
+
import { VentureDetail } from "./detail";
|
3
3
|
export interface VentureSubscription {
|
4
4
|
id: string;
|
5
|
-
subscriber
|
6
|
-
venture
|
5
|
+
subscriber?: UserDetail;
|
6
|
+
venture?: VentureDetail;
|
7
7
|
createdAt: Date;
|
8
8
|
}
|
@@ -19,7 +19,7 @@ let EventCategoryData = class EventCategoryData {
|
|
19
19
|
description;
|
20
20
|
createdAt;
|
21
21
|
updatedAt;
|
22
|
-
|
22
|
+
events;
|
23
23
|
};
|
24
24
|
exports.EventCategoryData = EventCategoryData;
|
25
25
|
__decorate([
|
@@ -47,14 +47,14 @@ __decorate([
|
|
47
47
|
__metadata("design:type", Date)
|
48
48
|
], EventCategoryData.prototype, "updatedAt", void 0);
|
49
49
|
__decorate([
|
50
|
-
(0, typeorm_1.ManyToMany)(() => venture_event_data_1.VentureEventData, (ventureEvent) => ventureEvent.
|
50
|
+
(0, typeorm_1.ManyToMany)(() => venture_event_data_1.VentureEventData, (ventureEvent) => ventureEvent.categories),
|
51
51
|
(0, typeorm_1.JoinTable)({
|
52
52
|
name: "x_event_category",
|
53
53
|
joinColumn: { name: "categoryId", referencedColumnName: "id" },
|
54
54
|
inverseJoinColumn: { name: "eventId", referencedColumnName: "id" },
|
55
55
|
}),
|
56
56
|
__metadata("design:type", Array)
|
57
|
-
], EventCategoryData.prototype, "
|
57
|
+
], EventCategoryData.prototype, "events", void 0);
|
58
58
|
exports.EventCategoryData = EventCategoryData = __decorate([
|
59
59
|
(0, typeorm_1.Entity)()
|
60
60
|
], EventCategoryData);
|
@@ -2,11 +2,9 @@ import { UserDetailData } from "./user-detail.data";
|
|
2
2
|
import { VentureEventData } from "./venture-event.data";
|
3
3
|
export declare class EventDonationData {
|
4
4
|
id: string;
|
5
|
-
eventId: string;
|
6
|
-
amount: number;
|
7
5
|
currency: string;
|
6
|
+
amount: number;
|
8
7
|
createdAt: Date;
|
9
|
-
donorDetailId: string;
|
10
8
|
donor: UserDetailData;
|
11
9
|
event: VentureEventData;
|
12
10
|
}
|
@@ -15,11 +15,9 @@ const user_detail_data_1 = require("./user-detail.data");
|
|
15
15
|
const venture_event_data_1 = require("./venture-event.data");
|
16
16
|
let EventDonationData = class EventDonationData {
|
17
17
|
id;
|
18
|
-
eventId;
|
19
|
-
amount;
|
20
18
|
currency;
|
19
|
+
amount;
|
21
20
|
createdAt;
|
22
|
-
donorDetailId;
|
23
21
|
donor;
|
24
22
|
event;
|
25
23
|
};
|
@@ -31,23 +29,15 @@ __decorate([
|
|
31
29
|
__decorate([
|
32
30
|
(0, typeorm_1.Column)(),
|
33
31
|
__metadata("design:type", String)
|
34
|
-
], EventDonationData.prototype, "
|
32
|
+
], EventDonationData.prototype, "currency", void 0);
|
35
33
|
__decorate([
|
36
|
-
(0, typeorm_1.Column)(
|
34
|
+
(0, typeorm_1.Column)(),
|
37
35
|
__metadata("design:type", Number)
|
38
36
|
], EventDonationData.prototype, "amount", void 0);
|
39
|
-
__decorate([
|
40
|
-
(0, typeorm_1.Column)(),
|
41
|
-
__metadata("design:type", String)
|
42
|
-
], EventDonationData.prototype, "currency", void 0);
|
43
37
|
__decorate([
|
44
38
|
(0, typeorm_1.CreateDateColumn)(),
|
45
39
|
__metadata("design:type", Date)
|
46
40
|
], EventDonationData.prototype, "createdAt", void 0);
|
47
|
-
__decorate([
|
48
|
-
(0, typeorm_1.Column)(),
|
49
|
-
__metadata("design:type", String)
|
50
|
-
], EventDonationData.prototype, "donorDetailId", void 0);
|
51
41
|
__decorate([
|
52
42
|
(0, typeorm_1.ManyToOne)(() => user_detail_data_1.UserDetailData, (userDetail) => userDetail.donations),
|
53
43
|
(0, typeorm_1.JoinColumn)({ name: "donorDetailId" }),
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { VentureEventData } from "./venture-event.data";
|
2
2
|
export declare class EventLocationData {
|
3
3
|
id: string;
|
4
|
-
lat
|
5
|
-
lng
|
6
|
-
description
|
7
|
-
event
|
4
|
+
lat?: number;
|
5
|
+
lng?: number;
|
6
|
+
description?: string;
|
7
|
+
event?: VentureEventData;
|
8
8
|
}
|
@@ -16,7 +16,6 @@ const user_detail_data_1 = require("./user-detail.data");
|
|
16
16
|
let MunicipalityData = class MunicipalityData {
|
17
17
|
id;
|
18
18
|
name;
|
19
|
-
departmentId;
|
20
19
|
createdAt;
|
21
20
|
updatedAt;
|
22
21
|
department;
|
@@ -31,10 +30,6 @@ __decorate([
|
|
31
30
|
(0, typeorm_1.Column)(),
|
32
31
|
__metadata("design:type", String)
|
33
32
|
], MunicipalityData.prototype, "name", void 0);
|
34
|
-
__decorate([
|
35
|
-
(0, typeorm_1.Column)(),
|
36
|
-
__metadata("design:type", Number)
|
37
|
-
], MunicipalityData.prototype, "departmentId", void 0);
|
38
33
|
__decorate([
|
39
34
|
(0, typeorm_1.CreateDateColumn)(),
|
40
35
|
__metadata("design:type", Date)
|
@@ -2,9 +2,7 @@ import { UserDetailData } from "./user-detail.data";
|
|
2
2
|
import { VenturePublicationData } from "./venture-publication.data";
|
3
3
|
export declare class PublicationClapData {
|
4
4
|
id: string;
|
5
|
-
|
6
|
-
createdAt: Date;
|
7
|
-
userDetailId: string;
|
8
|
-
venturePublication: VenturePublicationData;
|
5
|
+
publication: VenturePublicationData;
|
9
6
|
user: UserDetailData;
|
7
|
+
createdAt: Date;
|
10
8
|
}
|
@@ -15,39 +15,29 @@ const user_detail_data_1 = require("./user-detail.data");
|
|
15
15
|
const venture_publication_data_1 = require("./venture-publication.data");
|
16
16
|
let PublicationClapData = class PublicationClapData {
|
17
17
|
id;
|
18
|
-
|
19
|
-
createdAt;
|
20
|
-
userDetailId;
|
21
|
-
venturePublication;
|
18
|
+
publication;
|
22
19
|
user;
|
20
|
+
createdAt;
|
23
21
|
};
|
24
22
|
exports.PublicationClapData = PublicationClapData;
|
25
23
|
__decorate([
|
26
24
|
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
27
25
|
__metadata("design:type", String)
|
28
26
|
], 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
27
|
__decorate([
|
42
28
|
(0, typeorm_1.ManyToOne)(() => venture_publication_data_1.VenturePublicationData, (venturePublication) => venturePublication.claps),
|
43
29
|
(0, typeorm_1.JoinColumn)({ name: "publicationId" }),
|
44
30
|
__metadata("design:type", venture_publication_data_1.VenturePublicationData)
|
45
|
-
], PublicationClapData.prototype, "
|
31
|
+
], PublicationClapData.prototype, "publication", void 0);
|
46
32
|
__decorate([
|
47
33
|
(0, typeorm_1.ManyToOne)(() => user_detail_data_1.UserDetailData, (userDetail) => userDetail.publicationClaps),
|
48
34
|
(0, typeorm_1.JoinColumn)({ name: "userDetailId" }),
|
49
35
|
__metadata("design:type", user_detail_data_1.UserDetailData)
|
50
36
|
], PublicationClapData.prototype, "user", void 0);
|
37
|
+
__decorate([
|
38
|
+
(0, typeorm_1.CreateDateColumn)(),
|
39
|
+
__metadata("design:type", Date)
|
40
|
+
], PublicationClapData.prototype, "createdAt", void 0);
|
51
41
|
exports.PublicationClapData = PublicationClapData = __decorate([
|
52
42
|
(0, typeorm_1.Entity)()
|
53
43
|
], PublicationClapData);
|
@@ -2,11 +2,8 @@ import { UserDetailData } from "./user-detail.data";
|
|
2
2
|
import { VenturePublicationData } from "./venture-publication.data";
|
3
3
|
export declare class PublicationCommentData {
|
4
4
|
id: string;
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
author: UserDetailData;
|
6
|
+
content: string;
|
7
|
+
publication: VenturePublicationData;
|
8
8
|
createdAt: Date;
|
9
|
-
updatedAt: Date;
|
10
|
-
User: UserDetailData;
|
11
|
-
venturePublication: VenturePublicationData;
|
12
9
|
}
|
@@ -15,13 +15,10 @@ const user_detail_data_1 = require("./user-detail.data");
|
|
15
15
|
const venture_publication_data_1 = require("./venture-publication.data");
|
16
16
|
let PublicationCommentData = class PublicationCommentData {
|
17
17
|
id;
|
18
|
-
|
19
|
-
|
20
|
-
|
18
|
+
author;
|
19
|
+
content;
|
20
|
+
publication;
|
21
21
|
createdAt;
|
22
|
-
updatedAt;
|
23
|
-
User;
|
24
|
-
venturePublication;
|
25
22
|
};
|
26
23
|
exports.PublicationCommentData = PublicationCommentData;
|
27
24
|
__decorate([
|
@@ -29,35 +26,23 @@ __decorate([
|
|
29
26
|
__metadata("design:type", String)
|
30
27
|
], PublicationCommentData.prototype, "id", void 0);
|
31
28
|
__decorate([
|
32
|
-
(0, typeorm_1.
|
33
|
-
|
34
|
-
|
29
|
+
(0, typeorm_1.ManyToOne)(() => user_detail_data_1.UserDetailData, (userDetail) => userDetail.comments),
|
30
|
+
(0, typeorm_1.JoinColumn)({ name: "authorDetailId" }),
|
31
|
+
__metadata("design:type", user_detail_data_1.UserDetailData)
|
32
|
+
], PublicationCommentData.prototype, "author", void 0);
|
35
33
|
__decorate([
|
36
34
|
(0, typeorm_1.Column)(),
|
37
35
|
__metadata("design:type", String)
|
38
|
-
], PublicationCommentData.prototype, "
|
36
|
+
], PublicationCommentData.prototype, "content", void 0);
|
39
37
|
__decorate([
|
40
|
-
(0, typeorm_1.
|
41
|
-
|
42
|
-
|
38
|
+
(0, typeorm_1.ManyToOne)(() => venture_publication_data_1.VenturePublicationData, (venturePublication) => venturePublication.comments),
|
39
|
+
(0, typeorm_1.JoinColumn)({ name: "publicationId" }),
|
40
|
+
__metadata("design:type", venture_publication_data_1.VenturePublicationData)
|
41
|
+
], PublicationCommentData.prototype, "publication", void 0);
|
43
42
|
__decorate([
|
44
43
|
(0, typeorm_1.CreateDateColumn)(),
|
45
44
|
__metadata("design:type", Date)
|
46
45
|
], 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
46
|
exports.PublicationCommentData = PublicationCommentData = __decorate([
|
62
47
|
(0, typeorm_1.Entity)()
|
63
48
|
], PublicationCommentData);
|
@@ -17,10 +17,9 @@ let PublicationContentData = class PublicationContentData {
|
|
17
17
|
id;
|
18
18
|
type;
|
19
19
|
content;
|
20
|
-
publicationId;
|
21
20
|
createdAt;
|
22
21
|
updatedAt;
|
23
|
-
|
22
|
+
publication;
|
24
23
|
};
|
25
24
|
exports.PublicationContentData = PublicationContentData;
|
26
25
|
__decorate([
|
@@ -35,10 +34,6 @@ __decorate([
|
|
35
34
|
(0, typeorm_1.Column)(),
|
36
35
|
__metadata("design:type", String)
|
37
36
|
], PublicationContentData.prototype, "content", void 0);
|
38
|
-
__decorate([
|
39
|
-
(0, typeorm_1.Column)(),
|
40
|
-
__metadata("design:type", String)
|
41
|
-
], PublicationContentData.prototype, "publicationId", void 0);
|
42
37
|
__decorate([
|
43
38
|
(0, typeorm_1.CreateDateColumn)(),
|
44
39
|
__metadata("design:type", Date)
|
@@ -51,7 +46,7 @@ __decorate([
|
|
51
46
|
(0, typeorm_1.ManyToOne)(() => venture_publication_data_1.VenturePublicationData, (venturePublication) => venturePublication.contents),
|
52
47
|
(0, typeorm_1.JoinColumn)({ name: "publicationId" }),
|
53
48
|
__metadata("design:type", venture_publication_data_1.VenturePublicationData)
|
54
|
-
], PublicationContentData.prototype, "
|
49
|
+
], PublicationContentData.prototype, "publication", void 0);
|
55
50
|
exports.PublicationContentData = PublicationContentData = __decorate([
|
56
51
|
(0, typeorm_1.Entity)()
|
57
52
|
], PublicationContentData);
|
@@ -24,7 +24,6 @@ let UserDetailData = class UserDetailData {
|
|
24
24
|
id;
|
25
25
|
gender;
|
26
26
|
birthDate;
|
27
|
-
municipalityId;
|
28
27
|
user;
|
29
28
|
municipality;
|
30
29
|
comments;
|
@@ -48,10 +47,6 @@ __decorate([
|
|
48
47
|
(0, typeorm_1.Column)(),
|
49
48
|
__metadata("design:type", Date)
|
50
49
|
], UserDetailData.prototype, "birthDate", void 0);
|
51
|
-
__decorate([
|
52
|
-
(0, typeorm_1.Column)(),
|
53
|
-
__metadata("design:type", Number)
|
54
|
-
], UserDetailData.prototype, "municipalityId", void 0);
|
55
50
|
__decorate([
|
56
51
|
(0, typeorm_1.OneToOne)(() => user_data_1.UserData, (user) => user.detail),
|
57
52
|
__metadata("design:type", user_data_1.UserData)
|
@@ -62,7 +57,7 @@ __decorate([
|
|
62
57
|
__metadata("design:type", municipality_data_1.MunicipalityData)
|
63
58
|
], UserDetailData.prototype, "municipality", void 0);
|
64
59
|
__decorate([
|
65
|
-
(0, typeorm_1.OneToMany)(() => publication_comment_data_1.PublicationCommentData, (publicationComment) => publicationComment.
|
60
|
+
(0, typeorm_1.OneToMany)(() => publication_comment_data_1.PublicationCommentData, (publicationComment) => publicationComment.author),
|
66
61
|
__metadata("design:type", Array)
|
67
62
|
], UserDetailData.prototype, "comments", void 0);
|
68
63
|
__decorate([
|
@@ -78,11 +73,11 @@ __decorate([
|
|
78
73
|
__metadata("design:type", Array)
|
79
74
|
], UserDetailData.prototype, "publicationClaps", void 0);
|
80
75
|
__decorate([
|
81
|
-
(0, typeorm_1.OneToMany)(() => venture_sponsorship_data_1.VentureSponsorshipData, (ventureSponsorship) => ventureSponsorship.
|
76
|
+
(0, typeorm_1.OneToMany)(() => venture_sponsorship_data_1.VentureSponsorshipData, (ventureSponsorship) => ventureSponsorship.sponsor),
|
82
77
|
__metadata("design:type", Array)
|
83
78
|
], UserDetailData.prototype, "sponsorships", void 0);
|
84
79
|
__decorate([
|
85
|
-
(0, typeorm_1.OneToMany)(() => venture_subscription_data_1.VentureSubscriptionData, (ventureSubscription) => ventureSubscription.
|
80
|
+
(0, typeorm_1.OneToMany)(() => venture_subscription_data_1.VentureSubscriptionData, (ventureSubscription) => ventureSubscription.subscriber),
|
86
81
|
__metadata("design:type", Array)
|
87
82
|
], UserDetailData.prototype, "subscriptions", void 0);
|
88
83
|
__decorate([
|