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
@@ -7,14 +7,12 @@ export declare class VentureEventData {
|
|
7
7
|
title: string;
|
8
8
|
description: string;
|
9
9
|
coverPhoto: string;
|
10
|
-
|
10
|
+
ventureDetail?: VentureDetailData;
|
11
|
+
location: EventLocationData;
|
12
|
+
categories: EventCategoryData[];
|
13
|
+
donations: EventDonationData[];
|
11
14
|
startDate: Date;
|
12
15
|
endDate: Date;
|
13
16
|
createdAt: Date;
|
14
17
|
updatedAt: Date;
|
15
|
-
locationId: string;
|
16
|
-
ventureDetail: VentureDetailData;
|
17
|
-
location: EventLocationData;
|
18
|
-
donations: EventDonationData[];
|
19
|
-
EventCategory: EventCategoryData[];
|
20
18
|
}
|
@@ -20,16 +20,14 @@ let VentureEventData = class VentureEventData {
|
|
20
20
|
title;
|
21
21
|
description;
|
22
22
|
coverPhoto;
|
23
|
-
|
23
|
+
ventureDetail;
|
24
|
+
location;
|
25
|
+
categories;
|
26
|
+
donations;
|
24
27
|
startDate;
|
25
28
|
endDate;
|
26
29
|
createdAt;
|
27
30
|
updatedAt;
|
28
|
-
locationId;
|
29
|
-
ventureDetail;
|
30
|
-
location;
|
31
|
-
donations;
|
32
|
-
EventCategory;
|
33
31
|
};
|
34
32
|
exports.VentureEventData = VentureEventData;
|
35
33
|
__decorate([
|
@@ -49,9 +47,23 @@ __decorate([
|
|
49
47
|
__metadata("design:type", String)
|
50
48
|
], VentureEventData.prototype, "coverPhoto", void 0);
|
51
49
|
__decorate([
|
52
|
-
(0, typeorm_1.
|
53
|
-
|
54
|
-
|
50
|
+
(0, typeorm_1.ManyToOne)(() => venture_detail_data_1.VentureDetailData, (ventureDetail) => ventureDetail.events),
|
51
|
+
(0, typeorm_1.JoinColumn)({ name: "ventureId" }),
|
52
|
+
__metadata("design:type", venture_detail_data_1.VentureDetailData)
|
53
|
+
], VentureEventData.prototype, "ventureDetail", void 0);
|
54
|
+
__decorate([
|
55
|
+
(0, typeorm_1.OneToOne)(() => event_location_data_1.EventLocationData, (eventLocation) => eventLocation.event),
|
56
|
+
(0, typeorm_1.JoinColumn)({ name: "locationId" }),
|
57
|
+
__metadata("design:type", event_location_data_1.EventLocationData)
|
58
|
+
], VentureEventData.prototype, "location", void 0);
|
59
|
+
__decorate([
|
60
|
+
(0, typeorm_1.ManyToMany)(() => event_category_data_1.EventCategoryData, (eventCategory) => eventCategory.events),
|
61
|
+
__metadata("design:type", Array)
|
62
|
+
], VentureEventData.prototype, "categories", void 0);
|
63
|
+
__decorate([
|
64
|
+
(0, typeorm_1.OneToMany)(() => event_donation_data_1.EventDonationData, (eventDonation) => eventDonation.event),
|
65
|
+
__metadata("design:type", Array)
|
66
|
+
], VentureEventData.prototype, "donations", void 0);
|
55
67
|
__decorate([
|
56
68
|
(0, typeorm_1.Column)(),
|
57
69
|
__metadata("design:type", Date)
|
@@ -68,28 +80,6 @@ __decorate([
|
|
68
80
|
(0, typeorm_1.UpdateDateColumn)(),
|
69
81
|
__metadata("design:type", Date)
|
70
82
|
], VentureEventData.prototype, "updatedAt", void 0);
|
71
|
-
__decorate([
|
72
|
-
(0, typeorm_1.Column)({ unique: true }),
|
73
|
-
__metadata("design:type", String)
|
74
|
-
], VentureEventData.prototype, "locationId", void 0);
|
75
|
-
__decorate([
|
76
|
-
(0, typeorm_1.ManyToOne)(() => venture_detail_data_1.VentureDetailData, (ventureDetail) => ventureDetail.events),
|
77
|
-
(0, typeorm_1.JoinColumn)({ name: "ventureId" }),
|
78
|
-
__metadata("design:type", venture_detail_data_1.VentureDetailData)
|
79
|
-
], VentureEventData.prototype, "ventureDetail", void 0);
|
80
|
-
__decorate([
|
81
|
-
(0, typeorm_1.OneToOne)(() => event_location_data_1.EventLocationData, (eventLocation) => eventLocation.event),
|
82
|
-
(0, typeorm_1.JoinColumn)({ name: "locationId" }),
|
83
|
-
__metadata("design:type", event_location_data_1.EventLocationData)
|
84
|
-
], VentureEventData.prototype, "location", void 0);
|
85
|
-
__decorate([
|
86
|
-
(0, typeorm_1.OneToMany)(() => event_donation_data_1.EventDonationData, (eventDonation) => eventDonation.event),
|
87
|
-
__metadata("design:type", Array)
|
88
|
-
], VentureEventData.prototype, "donations", void 0);
|
89
|
-
__decorate([
|
90
|
-
(0, typeorm_1.ManyToMany)(() => event_category_data_1.EventCategoryData, (eventCategory) => eventCategory.ventureEvent),
|
91
|
-
__metadata("design:type", Array)
|
92
|
-
], VentureEventData.prototype, "EventCategory", void 0);
|
93
83
|
exports.VentureEventData = VentureEventData = __decorate([
|
94
84
|
(0, typeorm_1.Entity)()
|
95
85
|
], VentureEventData);
|
@@ -1,11 +1,10 @@
|
|
1
1
|
import { VentureData } from "./venture.data";
|
2
2
|
export declare class VentureLocationData {
|
3
3
|
id: string;
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
description: string;
|
4
|
+
lat?: number;
|
5
|
+
lng?: number;
|
6
|
+
description?: string;
|
8
7
|
createdAt: Date;
|
9
8
|
updatedAt: Date;
|
10
|
-
Venture
|
9
|
+
Venture?: VentureData;
|
11
10
|
}
|
@@ -14,7 +14,6 @@ const typeorm_1 = require("typeorm");
|
|
14
14
|
const venture_data_1 = require("./venture.data");
|
15
15
|
let VentureLocationData = class VentureLocationData {
|
16
16
|
id;
|
17
|
-
ventureId;
|
18
17
|
lat;
|
19
18
|
lng;
|
20
19
|
description;
|
@@ -27,10 +26,6 @@ __decorate([
|
|
27
26
|
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
28
27
|
__metadata("design:type", String)
|
29
28
|
], VentureLocationData.prototype, "id", void 0);
|
30
|
-
__decorate([
|
31
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
32
|
-
__metadata("design:type", String)
|
33
|
-
], VentureLocationData.prototype, "ventureId", void 0);
|
34
29
|
__decorate([
|
35
30
|
(0, typeorm_1.Column)("float", { nullable: true }),
|
36
31
|
__metadata("design:type", Number)
|
@@ -2,7 +2,7 @@ import { PublicationClapData } from "./publication-clap.data";
|
|
2
2
|
import { PublicationCommentData } from "./publication-comment.data";
|
3
3
|
import { VentureDetailData } from "./venture-detail.data";
|
4
4
|
import { PublicationContentData } from "./publication-content.data";
|
5
|
-
import { PublicationType } from "../../../domain/
|
5
|
+
import { PublicationType } from "../../../domain/publications";
|
6
6
|
export declare class VenturePublicationData {
|
7
7
|
id: string;
|
8
8
|
description: string;
|
@@ -15,7 +15,7 @@ const publication_clap_data_1 = require("./publication-clap.data");
|
|
15
15
|
const publication_comment_data_1 = require("./publication-comment.data");
|
16
16
|
const venture_detail_data_1 = require("./venture-detail.data");
|
17
17
|
const publication_content_data_1 = require("./publication-content.data");
|
18
|
-
const
|
18
|
+
const publications_1 = require("../../../domain/publications");
|
19
19
|
let VenturePublicationData = class VenturePublicationData {
|
20
20
|
id;
|
21
21
|
description;
|
@@ -39,7 +39,7 @@ __decorate([
|
|
39
39
|
__metadata("design:type", String)
|
40
40
|
], VenturePublicationData.prototype, "description", void 0);
|
41
41
|
__decorate([
|
42
|
-
(0, typeorm_1.Column)({ type: "enum", enum:
|
42
|
+
(0, typeorm_1.Column)({ type: "enum", enum: publications_1.PublicationType }),
|
43
43
|
__metadata("design:type", String)
|
44
44
|
], VenturePublicationData.prototype, "type", void 0);
|
45
45
|
__decorate([
|
@@ -64,15 +64,15 @@ __decorate([
|
|
64
64
|
__metadata("design:type", venture_detail_data_1.VentureDetailData)
|
65
65
|
], VenturePublicationData.prototype, "detail", void 0);
|
66
66
|
__decorate([
|
67
|
-
(0, typeorm_1.OneToMany)(() => publication_clap_data_1.PublicationClapData, (publicationClap) => publicationClap.
|
67
|
+
(0, typeorm_1.OneToMany)(() => publication_clap_data_1.PublicationClapData, (publicationClap) => publicationClap.publication),
|
68
68
|
__metadata("design:type", Array)
|
69
69
|
], VenturePublicationData.prototype, "claps", void 0);
|
70
70
|
__decorate([
|
71
|
-
(0, typeorm_1.OneToMany)(() => publication_comment_data_1.PublicationCommentData, (publicationComment) => publicationComment.
|
71
|
+
(0, typeorm_1.OneToMany)(() => publication_comment_data_1.PublicationCommentData, (publicationComment) => publicationComment.publication),
|
72
72
|
__metadata("design:type", Array)
|
73
73
|
], VenturePublicationData.prototype, "comments", void 0);
|
74
74
|
__decorate([
|
75
|
-
(0, typeorm_1.OneToMany)(() => publication_content_data_1.PublicationContentData, (publicationContent) => publicationContent.
|
75
|
+
(0, typeorm_1.OneToMany)(() => publication_content_data_1.PublicationContentData, (publicationContent) => publicationContent.publication),
|
76
76
|
__metadata("design:type", Array)
|
77
77
|
], VenturePublicationData.prototype, "contents", void 0);
|
78
78
|
exports.VenturePublicationData = VenturePublicationData = __decorate([
|
@@ -2,11 +2,9 @@ import { UserDetailData } from "./user-detail.data";
|
|
2
2
|
import { VentureDetailData } from "./venture-detail.data";
|
3
3
|
export declare class VentureSponsorshipData {
|
4
4
|
id: string;
|
5
|
-
ventureDetailId: string;
|
6
5
|
monthlyAmount: number;
|
7
6
|
createdAt: Date;
|
8
7
|
updatedAt: Date;
|
9
|
-
|
10
|
-
|
11
|
-
detail: VentureDetailData;
|
8
|
+
sponsor?: UserDetailData;
|
9
|
+
detail?: VentureDetailData;
|
12
10
|
}
|
@@ -15,12 +15,10 @@ const user_detail_data_1 = require("./user-detail.data");
|
|
15
15
|
const venture_detail_data_1 = require("./venture-detail.data");
|
16
16
|
let VentureSponsorshipData = class VentureSponsorshipData {
|
17
17
|
id;
|
18
|
-
ventureDetailId;
|
19
18
|
monthlyAmount;
|
20
19
|
createdAt;
|
21
20
|
updatedAt;
|
22
|
-
|
23
|
-
user;
|
21
|
+
sponsor;
|
24
22
|
detail;
|
25
23
|
};
|
26
24
|
exports.VentureSponsorshipData = VentureSponsorshipData;
|
@@ -28,10 +26,6 @@ __decorate([
|
|
28
26
|
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
29
27
|
__metadata("design:type", String)
|
30
28
|
], VentureSponsorshipData.prototype, "id", void 0);
|
31
|
-
__decorate([
|
32
|
-
(0, typeorm_1.Column)(),
|
33
|
-
__metadata("design:type", String)
|
34
|
-
], VentureSponsorshipData.prototype, "ventureDetailId", void 0);
|
35
29
|
__decorate([
|
36
30
|
(0, typeorm_1.Column)("float"),
|
37
31
|
__metadata("design:type", Number)
|
@@ -44,15 +38,11 @@ __decorate([
|
|
44
38
|
(0, typeorm_1.UpdateDateColumn)(),
|
45
39
|
__metadata("design:type", Date)
|
46
40
|
], VentureSponsorshipData.prototype, "updatedAt", void 0);
|
47
|
-
__decorate([
|
48
|
-
(0, typeorm_1.Column)(),
|
49
|
-
__metadata("design:type", String)
|
50
|
-
], VentureSponsorshipData.prototype, "sponsorDetailId", void 0);
|
51
41
|
__decorate([
|
52
42
|
(0, typeorm_1.ManyToOne)(() => user_detail_data_1.UserDetailData, (userDetail) => userDetail.sponsorships),
|
53
43
|
(0, typeorm_1.JoinColumn)({ name: "sponsorDetailId" }),
|
54
44
|
__metadata("design:type", user_detail_data_1.UserDetailData)
|
55
|
-
], VentureSponsorshipData.prototype, "
|
45
|
+
], VentureSponsorshipData.prototype, "sponsor", void 0);
|
56
46
|
__decorate([
|
57
47
|
(0, typeorm_1.ManyToOne)(() => venture_detail_data_1.VentureDetailData, (ventureDetail) => ventureDetail.sponsorships),
|
58
48
|
(0, typeorm_1.JoinColumn)({ name: "ventureDetailId" }),
|
@@ -2,9 +2,7 @@ import { UserDetailData } from "./user-detail.data";
|
|
2
2
|
import { VentureDetailData } from "./venture-detail.data";
|
3
3
|
export declare class VentureSubscriptionData {
|
4
4
|
id: string;
|
5
|
-
ventureId: string;
|
6
5
|
createdAt: Date;
|
7
|
-
|
8
|
-
|
9
|
-
detail: VentureDetailData;
|
6
|
+
subscriber?: UserDetailData;
|
7
|
+
detail?: VentureDetailData;
|
10
8
|
}
|
@@ -15,10 +15,8 @@ const user_detail_data_1 = require("./user-detail.data");
|
|
15
15
|
const venture_detail_data_1 = require("./venture-detail.data");
|
16
16
|
let VentureSubscriptionData = class VentureSubscriptionData {
|
17
17
|
id;
|
18
|
-
ventureId;
|
19
18
|
createdAt;
|
20
|
-
|
21
|
-
user;
|
19
|
+
subscriber;
|
22
20
|
detail;
|
23
21
|
};
|
24
22
|
exports.VentureSubscriptionData = VentureSubscriptionData;
|
@@ -26,23 +24,15 @@ __decorate([
|
|
26
24
|
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
27
25
|
__metadata("design:type", String)
|
28
26
|
], VentureSubscriptionData.prototype, "id", void 0);
|
29
|
-
__decorate([
|
30
|
-
(0, typeorm_1.Column)(),
|
31
|
-
__metadata("design:type", String)
|
32
|
-
], VentureSubscriptionData.prototype, "ventureId", void 0);
|
33
27
|
__decorate([
|
34
28
|
(0, typeorm_1.CreateDateColumn)(),
|
35
29
|
__metadata("design:type", Date)
|
36
30
|
], VentureSubscriptionData.prototype, "createdAt", void 0);
|
37
|
-
__decorate([
|
38
|
-
(0, typeorm_1.Column)(),
|
39
|
-
__metadata("design:type", String)
|
40
|
-
], VentureSubscriptionData.prototype, "subscriberDetailId", void 0);
|
41
31
|
__decorate([
|
42
32
|
(0, typeorm_1.ManyToOne)(() => user_detail_data_1.UserDetailData, (userDetail) => userDetail.subscriptions),
|
43
33
|
(0, typeorm_1.JoinColumn)({ name: "subscriberDetailId" }),
|
44
34
|
__metadata("design:type", user_detail_data_1.UserDetailData)
|
45
|
-
], VentureSubscriptionData.prototype, "
|
35
|
+
], VentureSubscriptionData.prototype, "subscriber", void 0);
|
46
36
|
__decorate([
|
47
37
|
(0, typeorm_1.ManyToOne)(() => venture_detail_data_1.VentureDetailData, (ventureDetail) => ventureDetail.subscriptions),
|
48
38
|
(0, typeorm_1.JoinColumn)({ name: "ventureId" }),
|
@@ -11,15 +11,11 @@ export declare class VentureData {
|
|
11
11
|
description: string;
|
12
12
|
active: boolean;
|
13
13
|
verified: boolean;
|
14
|
-
detailId: string;
|
15
14
|
createdAt: Date;
|
16
15
|
updatedAt: Date;
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
location: VentureLocationData;
|
22
|
-
ownerDetail: UserDetailData;
|
23
|
-
contact: VentureContactData;
|
16
|
+
detail?: VentureDetailData;
|
17
|
+
location?: VentureLocationData;
|
18
|
+
ownerDetail?: UserDetailData;
|
19
|
+
contact?: VentureContactData;
|
24
20
|
categories: VentureCategoryData[];
|
25
21
|
}
|
@@ -24,12 +24,8 @@ let VentureData = class VentureData {
|
|
24
24
|
description;
|
25
25
|
active;
|
26
26
|
verified;
|
27
|
-
detailId;
|
28
27
|
createdAt;
|
29
28
|
updatedAt;
|
30
|
-
locationId;
|
31
|
-
ownerDetailId;
|
32
|
-
ventureContactId;
|
33
29
|
detail;
|
34
30
|
location;
|
35
31
|
ownerDetail;
|
@@ -65,10 +61,6 @@ __decorate([
|
|
65
61
|
(0, typeorm_1.Column)({ default: false }),
|
66
62
|
__metadata("design:type", Boolean)
|
67
63
|
], VentureData.prototype, "verified", void 0);
|
68
|
-
__decorate([
|
69
|
-
(0, typeorm_1.Column)({ unique: true }),
|
70
|
-
__metadata("design:type", String)
|
71
|
-
], VentureData.prototype, "detailId", void 0);
|
72
64
|
__decorate([
|
73
65
|
(0, typeorm_1.CreateDateColumn)(),
|
74
66
|
__metadata("design:type", Date)
|
@@ -77,18 +69,6 @@ __decorate([
|
|
77
69
|
(0, typeorm_1.UpdateDateColumn)(),
|
78
70
|
__metadata("design:type", Date)
|
79
71
|
], VentureData.prototype, "updatedAt", void 0);
|
80
|
-
__decorate([
|
81
|
-
(0, typeorm_1.Column)({ unique: true }),
|
82
|
-
__metadata("design:type", String)
|
83
|
-
], VentureData.prototype, "locationId", void 0);
|
84
|
-
__decorate([
|
85
|
-
(0, typeorm_1.Column)(),
|
86
|
-
__metadata("design:type", String)
|
87
|
-
], VentureData.prototype, "ownerDetailId", void 0);
|
88
|
-
__decorate([
|
89
|
-
(0, typeorm_1.Column)({ unique: true }),
|
90
|
-
__metadata("design:type", String)
|
91
|
-
], VentureData.prototype, "ventureContactId", void 0);
|
92
72
|
__decorate([
|
93
73
|
(0, typeorm_1.OneToOne)(() => venture_detail_data_1.VentureDetailData, (ventureDetail) => ventureDetail.venture),
|
94
74
|
(0, typeorm_1.JoinColumn)({ name: "detailId" }),
|
package/dist/index.d.ts
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
import "reflect-metadata";
|
2
2
|
export * from "./app/modules/domain/auth";
|
3
|
-
export * from "./app/modules/domain/
|
4
|
-
export * from "./app/modules/domain/
|
5
|
-
export * from "./app/modules/domain/news";
|
3
|
+
export * from "./app/modules/domain/contributions";
|
4
|
+
export * from "./app/modules/domain/publications";
|
6
5
|
export * from "./app/modules/domain/notifications";
|
7
6
|
export * from "./app/modules/domain/shared";
|
8
7
|
export * from "./app/modules/domain/user";
|
package/dist/index.js
CHANGED
@@ -16,9 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
require("reflect-metadata");
|
18
18
|
__exportStar(require("./app/modules/domain/auth"), exports);
|
19
|
-
__exportStar(require("./app/modules/domain/
|
20
|
-
__exportStar(require("./app/modules/domain/
|
21
|
-
__exportStar(require("./app/modules/domain/news"), exports);
|
19
|
+
__exportStar(require("./app/modules/domain/contributions"), exports);
|
20
|
+
__exportStar(require("./app/modules/domain/publications"), exports);
|
22
21
|
__exportStar(require("./app/modules/domain/notifications"), exports);
|
23
22
|
__exportStar(require("./app/modules/domain/shared"), exports);
|
24
23
|
__exportStar(require("./app/modules/domain/user"), exports);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "echadospalante-core",
|
3
|
-
"version": "9.
|
3
|
+
"version": "9.5.0",
|
4
4
|
"description": "This package contains the core of the echadospalante project, it contains the domain entities, helpers, and other utilities that are shared between the different services.",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -1,10 +1,12 @@
|
|
1
1
|
import { User } from "../auth";
|
2
|
-
import { VentureEvent } from "../
|
2
|
+
import { VentureEvent } from "../events/event";
|
3
3
|
import { UserDetail } from "../user";
|
4
4
|
|
5
5
|
export interface EventDonation {
|
6
6
|
id: string;
|
7
|
-
|
8
|
-
|
7
|
+
amount: number;
|
8
|
+
currency: string;
|
9
9
|
createdAt: Date;
|
10
|
+
donor: UserDetail;
|
11
|
+
event: VentureEvent;
|
10
12
|
}
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import { User } from "../auth";
|
2
1
|
import { UserDetail } from "../user";
|
3
|
-
import {
|
2
|
+
import { VentureDetail } from "../ventures";
|
4
3
|
|
5
4
|
export interface VentureSponsorship {
|
6
5
|
id: string;
|
7
6
|
sponsor?: UserDetail;
|
8
|
-
venture?:
|
7
|
+
venture?: VentureDetail;
|
9
8
|
monthlyAmount: number;
|
10
9
|
createdAt: Date;
|
10
|
+
updatedAt: Date;
|
11
11
|
}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { EventDonation } from "../
|
1
|
+
import { EventDonation } from "../contributions";
|
2
2
|
import { Venture, VentureDetail } from "../ventures";
|
3
|
-
import { EventCategory } from "./category";
|
4
|
-
import { EventLocation } from "./location";
|
3
|
+
import { EventCategory } from "./event-category";
|
4
|
+
import { EventLocation } from "./event-location";
|
5
5
|
|
6
6
|
export interface VentureEvent {
|
7
7
|
id: string;
|
@@ -15,4 +15,5 @@ export interface VentureEvent {
|
|
15
15
|
startDate: Date;
|
16
16
|
endDate: Date;
|
17
17
|
createdAt: Date;
|
18
|
+
updatedAt: Date;
|
18
19
|
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { ContentType } from "../shared";
|
2
|
+
import { VenturePublication } from "./publication";
|
3
|
+
|
4
|
+
export class PublicationContent {
|
5
|
+
id: string;
|
6
|
+
type: ContentType;
|
7
|
+
content: string;
|
8
|
+
createdAt: Date;
|
9
|
+
updatedAt: Date;
|
10
|
+
publication: VenturePublication;
|
11
|
+
}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
export { EventCategory } from "
|
1
|
+
export { EventCategory } from "../events/event-category";
|
2
2
|
export { PublicationClap } from "./clap";
|
3
3
|
export { PublicationComment } from "./comment";
|
4
|
-
export { VentureEvent } from "
|
5
|
-
export { EventLocation } from "
|
4
|
+
export { VentureEvent } from "../events/event";
|
5
|
+
export { EventLocation } from "../events/event-location";
|
6
6
|
export {
|
7
7
|
PublicationContent,
|
8
8
|
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 { NewsClap } from "../news";
|
4
4
|
import { Municipality } from "../shared/geo";
|
5
5
|
import { Venture, VentureCategory, VentureSubscription } from "../ventures";
|
@@ -6,8 +6,10 @@ export interface VentureCategory {
|
|
6
6
|
name: string;
|
7
7
|
slug: string;
|
8
8
|
description: string;
|
9
|
-
ventures
|
10
|
-
users
|
9
|
+
ventures?: Venture[];
|
10
|
+
users?: User[];
|
11
|
+
createdAt: Date;
|
12
|
+
updatedAt: Date;
|
11
13
|
}
|
12
14
|
|
13
15
|
export type VentureCategoryCreate = Pick<
|
@@ -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
|
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import { User } from "../auth";
|
2
2
|
import { UserDetail } from "../user";
|
3
|
+
import { VentureDetail } from "./detail";
|
3
4
|
import { Venture } from "./venture";
|
4
5
|
|
5
6
|
export interface VentureSubscription {
|
6
7
|
id: string;
|
7
|
-
subscriber
|
8
|
-
venture
|
8
|
+
subscriber?: UserDetail;
|
9
|
+
venture?: VentureDetail;
|
9
10
|
createdAt: Date;
|
10
11
|
}
|
@@ -18,6 +18,7 @@ export interface Venture {
|
|
18
18
|
contact?: VentureContact;
|
19
19
|
location?: VentureLocation;
|
20
20
|
createdAt: Date;
|
21
|
+
updatedAt: Date;
|
21
22
|
}
|
22
23
|
|
23
24
|
export interface VentureCreate {
|
@@ -34,4 +35,4 @@ export interface VentureCreate {
|
|
34
35
|
lng?: number;
|
35
36
|
description?: string;
|
36
37
|
};
|
37
|
-
}
|
38
|
+
}
|
@@ -30,14 +30,11 @@ export class EventCategoryData {
|
|
30
30
|
@UpdateDateColumn()
|
31
31
|
updatedAt: Date;
|
32
32
|
|
33
|
-
@ManyToMany(
|
34
|
-
() => VentureEventData,
|
35
|
-
(ventureEvent) => ventureEvent.EventCategory
|
36
|
-
)
|
33
|
+
@ManyToMany(() => VentureEventData, (ventureEvent) => ventureEvent.categories)
|
37
34
|
@JoinTable({
|
38
35
|
name: "x_event_category",
|
39
36
|
joinColumn: { name: "categoryId", referencedColumnName: "id" },
|
40
37
|
inverseJoinColumn: { name: "eventId", referencedColumnName: "id" },
|
41
38
|
})
|
42
|
-
|
39
|
+
events: VentureEventData[];
|
43
40
|
}
|
@@ -16,20 +16,14 @@ export class EventDonationData {
|
|
16
16
|
id: string;
|
17
17
|
|
18
18
|
@Column()
|
19
|
-
|
20
|
-
|
21
|
-
@Column("float")
|
22
|
-
amount: number;
|
19
|
+
currency: string;
|
23
20
|
|
24
21
|
@Column()
|
25
|
-
|
22
|
+
amount: number;
|
26
23
|
|
27
24
|
@CreateDateColumn()
|
28
25
|
createdAt: Date;
|
29
26
|
|
30
|
-
@Column()
|
31
|
-
donorDetailId: string;
|
32
|
-
|
33
27
|
@ManyToOne(() => UserDetailData, (userDetail) => userDetail.donations)
|
34
28
|
@JoinColumn({ name: "donorDetailId" })
|
35
29
|
donor: UserDetailData;
|
@@ -7,14 +7,14 @@ export class EventLocationData {
|
|
7
7
|
id: string;
|
8
8
|
|
9
9
|
@Column("float", { nullable: true })
|
10
|
-
lat
|
10
|
+
lat?: number;
|
11
11
|
|
12
12
|
@Column("float", { nullable: true })
|
13
|
-
lng
|
13
|
+
lng?: number;
|
14
14
|
|
15
15
|
@Column({ nullable: true })
|
16
|
-
description
|
16
|
+
description?: string;
|
17
17
|
|
18
18
|
@OneToOne(() => VentureEventData, (ventureEvent) => ventureEvent.location)
|
19
|
-
event
|
19
|
+
event?: VentureEventData;
|
20
20
|
}
|