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.
Files changed (100) hide show
  1. package/dist/app/modules/domain/contributions/donation.d.ts +10 -0
  2. package/dist/app/modules/domain/contributions/donation.js +2 -0
  3. package/dist/app/modules/domain/contributions/index.js +2 -0
  4. package/dist/app/modules/domain/contributions/sponsor.d.ts +10 -0
  5. package/dist/app/modules/domain/contributions/sponsor.js +2 -0
  6. package/dist/app/modules/domain/events/event-category.d.ts +10 -0
  7. package/dist/app/modules/domain/events/event-category.js +2 -0
  8. package/dist/app/modules/domain/events/event-location.d.ts +8 -0
  9. package/dist/app/modules/domain/events/event-location.js +2 -0
  10. package/dist/app/modules/domain/events/event.d.ts +18 -0
  11. package/dist/app/modules/domain/events/event.js +2 -0
  12. package/dist/app/modules/domain/publications/clap.d.ts +8 -0
  13. package/dist/app/modules/domain/publications/clap.js +2 -0
  14. package/dist/app/modules/domain/publications/comment.d.ts +9 -0
  15. package/dist/app/modules/domain/publications/comment.js +2 -0
  16. package/dist/app/modules/domain/publications/content.d.ts +10 -0
  17. package/dist/app/modules/domain/publications/content.js +12 -0
  18. package/dist/app/modules/domain/publications/index.d.ts +6 -0
  19. package/dist/app/modules/domain/publications/index.js +5 -0
  20. package/dist/app/modules/domain/publications/publication.d.ts +27 -0
  21. package/dist/app/modules/domain/publications/publication.js +11 -0
  22. package/dist/app/modules/domain/user/detail.d.ts +2 -2
  23. package/dist/app/modules/domain/ventures/category.d.ts +4 -2
  24. package/dist/app/modules/domain/ventures/detail.d.ts +3 -3
  25. package/dist/app/modules/domain/ventures/subscription.d.ts +3 -3
  26. package/dist/app/modules/domain/ventures/venture.d.ts +1 -0
  27. package/dist/app/modules/infrastructure/database/entities/event-category.data.d.ts +1 -1
  28. package/dist/app/modules/infrastructure/database/entities/event-category.data.js +3 -3
  29. package/dist/app/modules/infrastructure/database/entities/event-donation.data.d.ts +1 -3
  30. package/dist/app/modules/infrastructure/database/entities/event-donation.data.js +3 -13
  31. package/dist/app/modules/infrastructure/database/entities/event-location.data.d.ts +4 -4
  32. package/dist/app/modules/infrastructure/database/entities/municipality.data.d.ts +0 -1
  33. package/dist/app/modules/infrastructure/database/entities/municipality.data.js +0 -5
  34. package/dist/app/modules/infrastructure/database/entities/publication-clap.data.d.ts +2 -4
  35. package/dist/app/modules/infrastructure/database/entities/publication-clap.data.js +7 -17
  36. package/dist/app/modules/infrastructure/database/entities/publication-comment.data.d.ts +3 -6
  37. package/dist/app/modules/infrastructure/database/entities/publication-comment.data.js +12 -27
  38. package/dist/app/modules/infrastructure/database/entities/publication-content.data.d.ts +1 -2
  39. package/dist/app/modules/infrastructure/database/entities/publication-content.data.js +2 -7
  40. package/dist/app/modules/infrastructure/database/entities/role.data.d.ts +1 -1
  41. package/dist/app/modules/infrastructure/database/entities/user-detail.data.d.ts +0 -1
  42. package/dist/app/modules/infrastructure/database/entities/user-detail.data.js +3 -8
  43. package/dist/app/modules/infrastructure/database/entities/venture-category.data.d.ts +2 -2
  44. package/dist/app/modules/infrastructure/database/entities/venture-contact.data.d.ts +1 -1
  45. package/dist/app/modules/infrastructure/database/entities/venture-detail.data.d.ts +1 -1
  46. package/dist/app/modules/infrastructure/database/entities/venture-event.data.d.ts +4 -6
  47. package/dist/app/modules/infrastructure/database/entities/venture-event.data.js +21 -31
  48. package/dist/app/modules/infrastructure/database/entities/venture-location.data.d.ts +4 -5
  49. package/dist/app/modules/infrastructure/database/entities/venture-location.data.js +0 -5
  50. package/dist/app/modules/infrastructure/database/entities/venture-publication.data.d.ts +1 -1
  51. package/dist/app/modules/infrastructure/database/entities/venture-publication.data.js +5 -5
  52. package/dist/app/modules/infrastructure/database/entities/venture-sponsorship.data.d.ts +2 -4
  53. package/dist/app/modules/infrastructure/database/entities/venture-sponsorship.data.js +2 -12
  54. package/dist/app/modules/infrastructure/database/entities/venture-subscription.data.d.ts +2 -4
  55. package/dist/app/modules/infrastructure/database/entities/venture-subscription.data.js +2 -12
  56. package/dist/app/modules/infrastructure/database/entities/venture.data.d.ts +4 -8
  57. package/dist/app/modules/infrastructure/database/entities/venture.data.js +0 -20
  58. package/dist/index.d.ts +2 -3
  59. package/dist/index.js +2 -3
  60. package/package.json +1 -1
  61. package/src/app/modules/domain/{donations → contributions}/donation.ts +5 -3
  62. package/src/app/modules/domain/contributions/index.ts +2 -0
  63. package/src/app/modules/domain/{donations → contributions}/sponsor.ts +3 -3
  64. package/src/app/modules/domain/{feeds/category.ts → events/event-category.ts} +3 -1
  65. package/src/app/modules/domain/{feeds → events}/event.ts +4 -3
  66. package/src/app/modules/domain/{feeds → publications}/clap.ts +1 -1
  67. package/src/app/modules/domain/{feeds → publications}/comment.ts +1 -0
  68. package/src/app/modules/domain/publications/content.ts +11 -0
  69. package/src/app/modules/domain/{feeds → publications}/index.ts +3 -3
  70. package/src/app/modules/domain/user/detail.ts +2 -2
  71. package/src/app/modules/domain/ventures/category.ts +4 -2
  72. package/src/app/modules/domain/ventures/detail.ts +3 -3
  73. package/src/app/modules/domain/ventures/subscription.ts +3 -2
  74. package/src/app/modules/domain/ventures/venture.ts +2 -1
  75. package/src/app/modules/infrastructure/database/entities/event-category.data.ts +2 -5
  76. package/src/app/modules/infrastructure/database/entities/event-donation.data.ts +2 -8
  77. package/src/app/modules/infrastructure/database/entities/event-location.data.ts +4 -4
  78. package/src/app/modules/infrastructure/database/entities/municipality.data.ts +0 -3
  79. package/src/app/modules/infrastructure/database/entities/publication-clap.data.ts +4 -10
  80. package/src/app/modules/infrastructure/database/entities/publication-comment.data.ts +8 -17
  81. package/src/app/modules/infrastructure/database/entities/publication-content.data.ts +1 -4
  82. package/src/app/modules/infrastructure/database/entities/role.data.ts +1 -1
  83. package/src/app/modules/infrastructure/database/entities/user-detail.data.ts +3 -6
  84. package/src/app/modules/infrastructure/database/entities/venture-category.data.ts +2 -2
  85. package/src/app/modules/infrastructure/database/entities/venture-contact.data.ts +1 -1
  86. package/src/app/modules/infrastructure/database/entities/venture-detail.data.ts +1 -1
  87. package/src/app/modules/infrastructure/database/entities/venture-event.data.ts +13 -22
  88. package/src/app/modules/infrastructure/database/entities/venture-location.data.ts +4 -7
  89. package/src/app/modules/infrastructure/database/entities/venture-publication.data.ts +4 -4
  90. package/src/app/modules/infrastructure/database/entities/venture-sponsorship.data.ts +2 -8
  91. package/src/app/modules/infrastructure/database/entities/venture-subscription.data.ts +2 -8
  92. package/src/app/modules/infrastructure/database/entities/venture.data.ts +5 -16
  93. package/src/index.ts +2 -3
  94. package/src/app/modules/domain/news/category.ts +0 -9
  95. package/src/app/modules/domain/news/clap.ts +0 -9
  96. package/src/app/modules/domain/news/index.ts +0 -5
  97. package/src/app/modules/domain/news/news.ts +0 -20
  98. /package/{src/app/modules/domain/donations/index.ts → dist/app/modules/domain/contributions/index.d.ts} +0 -0
  99. /package/src/app/modules/domain/{feeds/location.ts → events/event-location.ts} +0 -0
  100. /package/src/app/modules/domain/{feeds → publications}/publication.ts +0 -0
@@ -0,0 +1,10 @@
1
+ import { VentureEvent } from "../events/event";
2
+ import { UserDetail } from "../user";
3
+ export interface EventDonation {
4
+ id: string;
5
+ amount: number;
6
+ currency: string;
7
+ createdAt: Date;
8
+ donor: UserDetail;
9
+ event: VentureEvent;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { UserDetail } from "../user";
2
+ import { VentureDetail } from "../ventures";
3
+ export interface VentureSponsorship {
4
+ id: string;
5
+ sponsor?: UserDetail;
6
+ venture?: VentureDetail;
7
+ monthlyAmount: number;
8
+ createdAt: Date;
9
+ updatedAt: Date;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { VentureEvent } from "./event";
2
+ export interface EventCategory {
3
+ id: string;
4
+ name: string;
5
+ slug: string;
6
+ description: string;
7
+ events: VentureEvent[];
8
+ createdAt: Date;
9
+ updatedAt: Date;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { VentureEvent } from "./event";
2
+ export interface EventLocation {
3
+ id: string;
4
+ lat?: number;
5
+ lng?: number;
6
+ description?: string;
7
+ event?: VentureEvent;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { UserDetail } from "../user";
2
+ import { VenturePublication } from "./publication";
3
+ export interface PublicationClap {
4
+ id: string;
5
+ user: UserDetail;
6
+ publication: VenturePublication;
7
+ createdAt: Date;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { UserDetail } from "../user";
2
+ import { VenturePublication } from "./publication";
3
+ export interface PublicationComment {
4
+ id: string;
5
+ author: UserDetail;
6
+ content: string;
7
+ publication: VenturePublication;
8
+ createdAt: Date;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 "../donations";
2
- import { PublicationClap, PublicationComment } from "../feeds";
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: Venture[];
9
- users: User[];
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 "../donations/sponsor";
2
- import { VentureEvent } from "../feeds/event";
3
- import { VenturePublication } from "../feeds/publication";
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 { Venture } from "./venture";
2
+ import { VentureDetail } from "./detail";
3
3
  export interface VentureSubscription {
4
4
  id: string;
5
- subscriber: UserDetail;
6
- venture: Venture;
5
+ subscriber?: UserDetail;
6
+ venture?: VentureDetail;
7
7
  createdAt: Date;
8
8
  }
@@ -17,6 +17,7 @@ export interface Venture {
17
17
  contact?: VentureContact;
18
18
  location?: VentureLocation;
19
19
  createdAt: Date;
20
+ updatedAt: Date;
20
21
  }
21
22
  export interface VentureCreate {
22
23
  name: string;
@@ -6,5 +6,5 @@ export declare class EventCategoryData {
6
6
  description: string;
7
7
  createdAt: Date;
8
8
  updatedAt: Date;
9
- ventureEvent: VentureEventData[];
9
+ events: VentureEventData[];
10
10
  }
@@ -19,7 +19,7 @@ let EventCategoryData = class EventCategoryData {
19
19
  description;
20
20
  createdAt;
21
21
  updatedAt;
22
- ventureEvent;
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.EventCategory),
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, "ventureEvent", void 0);
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, "eventId", void 0);
32
+ ], EventDonationData.prototype, "currency", void 0);
35
33
  __decorate([
36
- (0, typeorm_1.Column)("float"),
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: number;
5
- lng: number;
6
- description: string;
7
- event: VentureEventData;
4
+ lat?: number;
5
+ lng?: number;
6
+ description?: string;
7
+ event?: VentureEventData;
8
8
  }
@@ -3,7 +3,6 @@ import { UserDetailData } from "./user-detail.data";
3
3
  export declare class MunicipalityData {
4
4
  id: number;
5
5
  name: string;
6
- departmentId: number;
7
6
  createdAt: Date;
8
7
  updatedAt: Date;
9
8
  department: DepartmentData;
@@ -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
- publicationId: string;
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
- publicationId;
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, "venturePublication", void 0);
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
- authorDetailId: string;
6
- publicationId: string;
7
- body: string;
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
- authorDetailId;
19
- publicationId;
20
- body;
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.Column)(),
33
- __metadata("design:type", String)
34
- ], PublicationCommentData.prototype, "authorDetailId", void 0);
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, "publicationId", void 0);
36
+ ], PublicationCommentData.prototype, "content", void 0);
39
37
  __decorate([
40
- (0, typeorm_1.Column)(),
41
- __metadata("design:type", String)
42
- ], PublicationCommentData.prototype, "body", void 0);
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);
@@ -4,8 +4,7 @@ export declare class PublicationContentData {
4
4
  id: string;
5
5
  type: ContentType;
6
6
  content: string;
7
- publicationId: string;
8
7
  createdAt: Date;
9
8
  updatedAt: Date;
10
- venturePublication: VenturePublicationData;
9
+ publication: VenturePublicationData;
11
10
  }
@@ -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
- venturePublication;
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, "venturePublication", void 0);
49
+ ], PublicationContentData.prototype, "publication", void 0);
55
50
  exports.PublicationContentData = PublicationContentData = __decorate([
56
51
  (0, typeorm_1.Entity)()
57
52
  ], PublicationContentData);
@@ -6,5 +6,5 @@ export declare class RoleData {
6
6
  label: string;
7
7
  createdAt: Date;
8
8
  updatedAt: Date;
9
- users: UserData[];
9
+ users?: UserData[];
10
10
  }
@@ -11,7 +11,6 @@ export declare class UserDetailData {
11
11
  id: string;
12
12
  gender: "M" | "F" | "O";
13
13
  birthDate: Date;
14
- municipalityId: number;
15
14
  user?: UserData;
16
15
  municipality?: MunicipalityData;
17
16
  comments: PublicationCommentData[];
@@ -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.User),
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.user),
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.user),
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([
@@ -7,6 +7,6 @@ export declare class VentureCategoryData {
7
7
  description: string;
8
8
  createdAt: Date;
9
9
  updatedAt: Date;
10
- users: UserData[];
11
- ventures: VentureData[];
10
+ users?: UserData[];
11
+ ventures?: VentureData[];
12
12
  }
@@ -5,5 +5,5 @@ export declare class VentureContactData {
5
5
  phoneNumber: string;
6
6
  createdAt: Date;
7
7
  updatedAt: Date;
8
- Venture: VentureData;
8
+ Venture?: VentureData;
9
9
  }