echadospalante-core 9.3.3 → 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 +5 -6
- package/dist/app/modules/infrastructure/database/entities/user-detail.data.js +13 -18
- 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 +15 -18
- 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
@@ -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
|
}
|
@@ -16,23 +16,17 @@ export class PublicationClapData {
|
|
16
16
|
@PrimaryGeneratedColumn("uuid")
|
17
17
|
id: string;
|
18
18
|
|
19
|
-
@Column()
|
20
|
-
publicationId: string;
|
21
|
-
|
22
|
-
@CreateDateColumn()
|
23
|
-
createdAt: Date;
|
24
|
-
|
25
|
-
@Column()
|
26
|
-
userDetailId: string;
|
27
|
-
|
28
19
|
@ManyToOne(
|
29
20
|
() => VenturePublicationData,
|
30
21
|
(venturePublication) => venturePublication.claps
|
31
22
|
)
|
32
23
|
@JoinColumn({ name: "publicationId" })
|
33
|
-
|
24
|
+
publication: VenturePublicationData;
|
34
25
|
|
35
26
|
@ManyToOne(() => UserDetailData, (userDetail) => userDetail.publicationClaps)
|
36
27
|
@JoinColumn({ name: "userDetailId" })
|
37
28
|
user: UserDetailData;
|
29
|
+
|
30
|
+
@CreateDateColumn()
|
31
|
+
createdAt: Date;
|
38
32
|
}
|
@@ -16,29 +16,20 @@ export class PublicationCommentData {
|
|
16
16
|
@PrimaryGeneratedColumn("uuid")
|
17
17
|
id: string;
|
18
18
|
|
19
|
-
@Column()
|
20
|
-
authorDetailId: string;
|
21
|
-
|
22
|
-
@Column()
|
23
|
-
publicationId: string;
|
24
|
-
|
25
|
-
@Column()
|
26
|
-
body: string;
|
27
|
-
|
28
|
-
@CreateDateColumn()
|
29
|
-
createdAt: Date;
|
30
|
-
|
31
|
-
@UpdateDateColumn()
|
32
|
-
updatedAt: Date;
|
33
|
-
|
34
19
|
@ManyToOne(() => UserDetailData, (userDetail) => userDetail.comments)
|
35
20
|
@JoinColumn({ name: "authorDetailId" })
|
36
|
-
|
21
|
+
author: UserDetailData;
|
22
|
+
|
23
|
+
@Column()
|
24
|
+
content: string;
|
37
25
|
|
38
26
|
@ManyToOne(
|
39
27
|
() => VenturePublicationData,
|
40
28
|
(venturePublication) => venturePublication.comments
|
41
29
|
)
|
42
30
|
@JoinColumn({ name: "publicationId" })
|
43
|
-
|
31
|
+
publication: VenturePublicationData;
|
32
|
+
|
33
|
+
@CreateDateColumn()
|
34
|
+
createdAt: Date;
|
44
35
|
}
|
@@ -22,9 +22,6 @@ export class PublicationContentData {
|
|
22
22
|
@Column()
|
23
23
|
content: string;
|
24
24
|
|
25
|
-
@Column()
|
26
|
-
publicationId: string;
|
27
|
-
|
28
25
|
@CreateDateColumn()
|
29
26
|
createdAt: Date;
|
30
27
|
|
@@ -36,5 +33,5 @@ export class PublicationContentData {
|
|
36
33
|
(venturePublication) => venturePublication.contents
|
37
34
|
)
|
38
35
|
@JoinColumn({ name: "publicationId" })
|
39
|
-
|
36
|
+
publication: VenturePublicationData;
|
40
37
|
}
|
@@ -24,21 +24,24 @@ export class UserDetailData {
|
|
24
24
|
@PrimaryGeneratedColumn("uuid")
|
25
25
|
id: string;
|
26
26
|
|
27
|
-
@Column()
|
28
|
-
gender:
|
27
|
+
@Column({ type: "enum", enum: ["M", "F", "O"] })
|
28
|
+
gender: "M" | "F" | "O";
|
29
29
|
|
30
30
|
@Column()
|
31
31
|
birthDate: Date;
|
32
32
|
|
33
|
-
@Column()
|
34
|
-
municipalityId: number;
|
35
|
-
|
36
33
|
@OneToOne(() => UserData, (user) => user.detail)
|
37
|
-
user
|
34
|
+
user?: UserData;
|
38
35
|
|
39
36
|
@ManyToOne(() => MunicipalityData, (municipality) => municipality.userDetails)
|
40
37
|
@JoinColumn({ name: "municipalityId" })
|
41
|
-
municipality
|
38
|
+
municipality?: MunicipalityData;
|
39
|
+
|
40
|
+
@OneToMany(
|
41
|
+
() => PublicationCommentData,
|
42
|
+
(publicationComment) => publicationComment.author
|
43
|
+
)
|
44
|
+
comments: PublicationCommentData[];
|
42
45
|
|
43
46
|
@OneToMany(() => EventDonationData, (eventDonation) => eventDonation.donor)
|
44
47
|
donations: EventDonationData[];
|
@@ -52,24 +55,18 @@ export class UserDetailData {
|
|
52
55
|
)
|
53
56
|
publicationClaps: PublicationClapData[];
|
54
57
|
|
55
|
-
@OneToMany(
|
56
|
-
() => PublicationCommentData,
|
57
|
-
(publicationComment) => publicationComment.User
|
58
|
-
)
|
59
|
-
comments: PublicationCommentData[];
|
60
|
-
|
61
|
-
@OneToMany(() => VentureData, (venture) => venture.ownerDetail)
|
62
|
-
ventures: VentureData[];
|
63
|
-
|
64
58
|
@OneToMany(
|
65
59
|
() => VentureSponsorshipData,
|
66
|
-
(ventureSponsorship) => ventureSponsorship.
|
60
|
+
(ventureSponsorship) => ventureSponsorship.sponsor
|
67
61
|
)
|
68
62
|
sponsorships: VentureSponsorshipData[];
|
69
63
|
|
70
64
|
@OneToMany(
|
71
65
|
() => VentureSubscriptionData,
|
72
|
-
(ventureSubscription) => ventureSubscription.
|
66
|
+
(ventureSubscription) => ventureSubscription.subscriber
|
73
67
|
)
|
74
68
|
subscriptions: VentureSubscriptionData[];
|
69
|
+
|
70
|
+
@OneToMany(() => VentureData, (venture) => venture.ownerDetail)
|
71
|
+
ventures: VentureData[];
|
75
72
|
}
|
@@ -31,8 +31,8 @@ export class VentureCategoryData {
|
|
31
31
|
updatedAt: Date;
|
32
32
|
|
33
33
|
@ManyToMany(() => UserData, (user) => user.preferences)
|
34
|
-
users
|
34
|
+
users?: UserData[];
|
35
35
|
|
36
36
|
@ManyToMany(() => VentureData, (venture) => venture.categories)
|
37
|
-
ventures
|
37
|
+
ventures?: VentureData[];
|
38
38
|
}
|
@@ -29,8 +29,19 @@ export class VentureEventData {
|
|
29
29
|
@Column()
|
30
30
|
coverPhoto: string;
|
31
31
|
|
32
|
-
@
|
33
|
-
|
32
|
+
@ManyToOne(() => VentureDetailData, (ventureDetail) => ventureDetail.events)
|
33
|
+
@JoinColumn({ name: "ventureId" })
|
34
|
+
ventureDetail?: VentureDetailData;
|
35
|
+
|
36
|
+
@OneToOne(() => EventLocationData, (eventLocation) => eventLocation.event)
|
37
|
+
@JoinColumn({ name: "locationId" })
|
38
|
+
location: EventLocationData;
|
39
|
+
|
40
|
+
@ManyToMany(() => EventCategoryData, (eventCategory) => eventCategory.events)
|
41
|
+
categories: EventCategoryData[];
|
42
|
+
|
43
|
+
@OneToMany(() => EventDonationData, (eventDonation) => eventDonation.event)
|
44
|
+
donations: EventDonationData[];
|
34
45
|
|
35
46
|
@Column()
|
36
47
|
startDate: Date;
|
@@ -43,24 +54,4 @@ export class VentureEventData {
|
|
43
54
|
|
44
55
|
@UpdateDateColumn()
|
45
56
|
updatedAt: Date;
|
46
|
-
|
47
|
-
@Column({ unique: true })
|
48
|
-
locationId: string;
|
49
|
-
|
50
|
-
@ManyToOne(() => VentureDetailData, (ventureDetail) => ventureDetail.events)
|
51
|
-
@JoinColumn({ name: "ventureId" })
|
52
|
-
ventureDetail: VentureDetailData;
|
53
|
-
|
54
|
-
@OneToOne(() => EventLocationData, (eventLocation) => eventLocation.event)
|
55
|
-
@JoinColumn({ name: "locationId" })
|
56
|
-
location: EventLocationData;
|
57
|
-
|
58
|
-
@OneToMany(() => EventDonationData, (eventDonation) => eventDonation.event)
|
59
|
-
donations: EventDonationData[];
|
60
|
-
|
61
|
-
@ManyToMany(
|
62
|
-
() => EventCategoryData,
|
63
|
-
(eventCategory) => eventCategory.ventureEvent
|
64
|
-
)
|
65
|
-
EventCategory: EventCategoryData[];
|
66
57
|
}
|
@@ -13,17 +13,14 @@ export class VentureLocationData {
|
|
13
13
|
@PrimaryGeneratedColumn("uuid")
|
14
14
|
id: string;
|
15
15
|
|
16
|
-
@Column({ nullable: true })
|
17
|
-
ventureId: string;
|
18
|
-
|
19
16
|
@Column("float", { nullable: true })
|
20
|
-
lat
|
17
|
+
lat?: number;
|
21
18
|
|
22
19
|
@Column("float", { nullable: true })
|
23
|
-
lng
|
20
|
+
lng?: number;
|
24
21
|
|
25
22
|
@Column({ nullable: true })
|
26
|
-
description
|
23
|
+
description?: string;
|
27
24
|
|
28
25
|
@CreateDateColumn()
|
29
26
|
createdAt: Date;
|
@@ -32,5 +29,5 @@ export class VentureLocationData {
|
|
32
29
|
updatedAt: Date;
|
33
30
|
|
34
31
|
@OneToOne(() => VentureData, (venture) => venture.location)
|
35
|
-
Venture
|
32
|
+
Venture?: VentureData;
|
36
33
|
}
|
@@ -13,7 +13,7 @@ import { PublicationClapData } from "./publication-clap.data";
|
|
13
13
|
import { PublicationCommentData } from "./publication-comment.data";
|
14
14
|
import { VentureDetailData } from "./venture-detail.data";
|
15
15
|
import { PublicationContentData } from "./publication-content.data";
|
16
|
-
import { PublicationType } from "../../../domain/
|
16
|
+
import { PublicationType } from "../../../domain/publications";
|
17
17
|
|
18
18
|
@Entity()
|
19
19
|
export class VenturePublicationData {
|
@@ -47,19 +47,19 @@ export class VenturePublicationData {
|
|
47
47
|
|
48
48
|
@OneToMany(
|
49
49
|
() => PublicationClapData,
|
50
|
-
(publicationClap) => publicationClap.
|
50
|
+
(publicationClap) => publicationClap.publication
|
51
51
|
)
|
52
52
|
claps: PublicationClapData[];
|
53
53
|
|
54
54
|
@OneToMany(
|
55
55
|
() => PublicationCommentData,
|
56
|
-
(publicationComment) => publicationComment.
|
56
|
+
(publicationComment) => publicationComment.publication
|
57
57
|
)
|
58
58
|
comments: PublicationCommentData[];
|
59
59
|
|
60
60
|
@OneToMany(
|
61
61
|
() => PublicationContentData,
|
62
|
-
(publicationContent) => publicationContent.
|
62
|
+
(publicationContent) => publicationContent.publication
|
63
63
|
)
|
64
64
|
contents: PublicationContentData[];
|
65
65
|
}
|
@@ -15,9 +15,6 @@ export class VentureSponsorshipData {
|
|
15
15
|
@PrimaryGeneratedColumn("uuid")
|
16
16
|
id: string;
|
17
17
|
|
18
|
-
@Column()
|
19
|
-
ventureDetailId: string;
|
20
|
-
|
21
18
|
@Column("float")
|
22
19
|
monthlyAmount: number;
|
23
20
|
|
@@ -27,17 +24,14 @@ export class VentureSponsorshipData {
|
|
27
24
|
@UpdateDateColumn()
|
28
25
|
updatedAt: Date;
|
29
26
|
|
30
|
-
@Column()
|
31
|
-
sponsorDetailId: string;
|
32
|
-
|
33
27
|
@ManyToOne(() => UserDetailData, (userDetail) => userDetail.sponsorships)
|
34
28
|
@JoinColumn({ name: "sponsorDetailId" })
|
35
|
-
|
29
|
+
sponsor?: UserDetailData;
|
36
30
|
|
37
31
|
@ManyToOne(
|
38
32
|
() => VentureDetailData,
|
39
33
|
(ventureDetail) => ventureDetail.sponsorships
|
40
34
|
)
|
41
35
|
@JoinColumn({ name: "ventureDetailId" })
|
42
|
-
detail
|
36
|
+
detail?: VentureDetailData;
|
43
37
|
}
|
@@ -15,23 +15,17 @@ export class VentureSubscriptionData {
|
|
15
15
|
@PrimaryGeneratedColumn("uuid")
|
16
16
|
id: string;
|
17
17
|
|
18
|
-
@Column()
|
19
|
-
ventureId: string;
|
20
|
-
|
21
18
|
@CreateDateColumn()
|
22
19
|
createdAt: Date;
|
23
20
|
|
24
|
-
@Column()
|
25
|
-
subscriberDetailId: string;
|
26
|
-
|
27
21
|
@ManyToOne(() => UserDetailData, (userDetail) => userDetail.subscriptions)
|
28
22
|
@JoinColumn({ name: "subscriberDetailId" })
|
29
|
-
|
23
|
+
subscriber?: UserDetailData;
|
30
24
|
|
31
25
|
@ManyToOne(
|
32
26
|
() => VentureDetailData,
|
33
27
|
(ventureDetail) => ventureDetail.subscriptions
|
34
28
|
)
|
35
29
|
@JoinColumn({ name: "ventureId" })
|
36
|
-
detail
|
30
|
+
detail?: VentureDetailData;
|
37
31
|
}
|
@@ -10,6 +10,7 @@ import {
|
|
10
10
|
JoinTable,
|
11
11
|
JoinColumn,
|
12
12
|
} from "typeorm";
|
13
|
+
|
13
14
|
import { VentureDetailData } from "./venture-detail.data";
|
14
15
|
import { VentureLocationData } from "./venture-location.data";
|
15
16
|
import { UserDetailData } from "./user-detail.data";
|
@@ -39,45 +40,33 @@ export class VentureData {
|
|
39
40
|
@Column({ default: false })
|
40
41
|
verified: boolean;
|
41
42
|
|
42
|
-
@Column({ unique: true })
|
43
|
-
detailId: string;
|
44
|
-
|
45
43
|
@CreateDateColumn()
|
46
44
|
createdAt: Date;
|
47
45
|
|
48
46
|
@UpdateDateColumn()
|
49
47
|
updatedAt: Date;
|
50
48
|
|
51
|
-
@Column({ unique: true })
|
52
|
-
locationId: string;
|
53
|
-
|
54
|
-
@Column()
|
55
|
-
ownerDetailId: string;
|
56
|
-
|
57
|
-
@Column({ unique: true })
|
58
|
-
ventureContactId: string;
|
59
|
-
|
60
49
|
@OneToOne(() => VentureDetailData, (ventureDetail) => ventureDetail.venture)
|
61
50
|
@JoinColumn({ name: "detailId" })
|
62
|
-
detail
|
51
|
+
detail?: VentureDetailData;
|
63
52
|
|
64
53
|
@OneToOne(
|
65
54
|
() => VentureLocationData,
|
66
55
|
(ventureLocation) => ventureLocation.Venture
|
67
56
|
)
|
68
57
|
@JoinColumn({ name: "locationId" })
|
69
|
-
location
|
58
|
+
location?: VentureLocationData;
|
70
59
|
|
71
60
|
@ManyToOne(() => UserDetailData, (userDetail) => userDetail.ventures)
|
72
61
|
@JoinColumn({ name: "ownerDetailId" })
|
73
|
-
ownerDetail
|
62
|
+
ownerDetail?: UserDetailData;
|
74
63
|
|
75
64
|
@OneToOne(
|
76
65
|
() => VentureContactData,
|
77
66
|
(ventureContact) => ventureContact.Venture
|
78
67
|
)
|
79
68
|
@JoinColumn({ name: "ventureContactId" })
|
80
|
-
contact
|
69
|
+
contact?: VentureContactData;
|
81
70
|
|
82
71
|
@ManyToMany(
|
83
72
|
() => VentureCategoryData,
|
package/src/index.ts
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
import "reflect-metadata";
|
2
2
|
|
3
3
|
export * from "./app/modules/domain/auth";
|
4
|
-
export * from "./app/modules/domain/
|
5
|
-
export * from "./app/modules/domain/
|
6
|
-
export * from "./app/modules/domain/news";
|
4
|
+
export * from "./app/modules/domain/contributions";
|
5
|
+
export * from "./app/modules/domain/publications";
|
7
6
|
export * from "./app/modules/domain/notifications";
|
8
7
|
export * from "./app/modules/domain/shared";
|
9
8
|
export * from "./app/modules/domain/user";
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { ContentType } from "../shared";
|
2
|
-
import { NewsCategory } from "./category";
|
3
|
-
import { NewsClap } from "./clap";
|
4
|
-
|
5
|
-
export interface News {
|
6
|
-
id: string;
|
7
|
-
title: string;
|
8
|
-
slug: string;
|
9
|
-
claps: NewsClap[];
|
10
|
-
comments: Comment[];
|
11
|
-
body: NewsContent[];
|
12
|
-
categories: NewsCategory[];
|
13
|
-
createdAt: Date;
|
14
|
-
}
|
15
|
-
|
16
|
-
export interface NewsContent {
|
17
|
-
id: string;
|
18
|
-
type: ContentType;
|
19
|
-
content: string; // JSON string
|
20
|
-
}
|
File without changes
|
File without changes
|
File without changes
|