echadospalante-core 13.0.5 → 14.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/dist/app/modules/domain/auth/index.d.ts +0 -2
  2. package/dist/app/modules/domain/common/geo.d.ts +2 -2
  3. package/dist/app/modules/domain/contributions/donation.d.ts +2 -2
  4. package/dist/app/modules/domain/contributions/sponsor.d.ts +4 -4
  5. package/dist/app/modules/domain/events/event.d.ts +2 -2
  6. package/dist/app/modules/domain/notifications/notification.d.ts +2 -2
  7. package/dist/app/modules/domain/publications/clap.d.ts +2 -2
  8. package/dist/app/modules/domain/publications/comment.d.ts +2 -2
  9. package/dist/app/modules/domain/publications/index.d.ts +0 -3
  10. package/dist/app/modules/domain/user/index.d.ts +0 -1
  11. package/dist/app/modules/domain/user/user.d.ts +14 -3
  12. package/dist/app/modules/domain/ventures/category.d.ts +1 -1
  13. package/dist/app/modules/domain/ventures/index.d.ts +0 -1
  14. package/dist/app/modules/domain/ventures/subscription.d.ts +4 -4
  15. package/dist/app/modules/domain/ventures/venture.d.ts +10 -4
  16. package/dist/app/modules/infrastructure/database/entities/event-donation.data.d.ts +2 -2
  17. package/dist/app/modules/infrastructure/database/entities/event-donation.data.js +4 -4
  18. package/dist/app/modules/infrastructure/database/entities/index.d.ts +0 -2
  19. package/dist/app/modules/infrastructure/database/entities/index.js +1 -5
  20. package/dist/app/modules/infrastructure/database/entities/municipality.data.d.ts +2 -2
  21. package/dist/app/modules/infrastructure/database/entities/municipality.data.js +4 -4
  22. package/dist/app/modules/infrastructure/database/entities/notification.data.d.ts +2 -3
  23. package/dist/app/modules/infrastructure/database/entities/notification.data.js +7 -12
  24. package/dist/app/modules/infrastructure/database/entities/publication-clap.data.d.ts +2 -2
  25. package/dist/app/modules/infrastructure/database/entities/publication-clap.data.js +4 -4
  26. package/dist/app/modules/infrastructure/database/entities/publication-comment.data.d.ts +2 -2
  27. package/dist/app/modules/infrastructure/database/entities/publication-comment.data.js +4 -4
  28. package/dist/app/modules/infrastructure/database/entities/role.data.d.ts +0 -1
  29. package/dist/app/modules/infrastructure/database/entities/role.data.js +0 -5
  30. package/dist/app/modules/infrastructure/database/entities/user.data.d.ts +18 -2
  31. package/dist/app/modules/infrastructure/database/entities/user.data.js +59 -7
  32. package/dist/app/modules/infrastructure/database/entities/venture-event.data.d.ts +2 -2
  33. package/dist/app/modules/infrastructure/database/entities/venture-event.data.js +5 -5
  34. package/dist/app/modules/infrastructure/database/entities/venture-publication.data.d.ts +2 -3
  35. package/dist/app/modules/infrastructure/database/entities/venture-publication.data.js +6 -11
  36. package/dist/app/modules/infrastructure/database/entities/venture-sponsorship.data.d.ts +4 -4
  37. package/dist/app/modules/infrastructure/database/entities/venture-sponsorship.data.js +10 -10
  38. package/dist/app/modules/infrastructure/database/entities/venture-subscription.data.d.ts +4 -4
  39. package/dist/app/modules/infrastructure/database/entities/venture-subscription.data.js +9 -9
  40. package/dist/app/modules/infrastructure/database/entities/venture.data.d.ts +12 -6
  41. package/dist/app/modules/infrastructure/database/entities/venture.data.js +32 -17
  42. package/package.json +1 -1
  43. package/src/app/modules/domain/auth/index.ts +0 -2
  44. package/src/app/modules/domain/common/geo.ts +2 -2
  45. package/src/app/modules/domain/contributions/donation.ts +2 -3
  46. package/src/app/modules/domain/contributions/sponsor.ts +4 -4
  47. package/src/app/modules/domain/events/event.ts +2 -2
  48. package/src/app/modules/domain/notifications/notification.ts +2 -2
  49. package/src/app/modules/domain/publications/clap.ts +2 -3
  50. package/src/app/modules/domain/publications/comment.ts +2 -3
  51. package/src/app/modules/domain/publications/index.ts +0 -3
  52. package/src/app/modules/domain/user/index.ts +0 -1
  53. package/src/app/modules/domain/user/user.ts +14 -3
  54. package/src/app/modules/domain/ventures/category.ts +1 -1
  55. package/src/app/modules/domain/ventures/index.ts +0 -1
  56. package/src/app/modules/domain/ventures/subscription.ts +3 -5
  57. package/src/app/modules/domain/ventures/venture.ts +10 -4
  58. package/src/app/modules/infrastructure/database/entities/event-donation.data.ts +4 -4
  59. package/src/app/modules/infrastructure/database/entities/index.ts +0 -2
  60. package/src/app/modules/infrastructure/database/entities/municipality.data.ts +3 -3
  61. package/src/app/modules/infrastructure/database/entities/notification.data.ts +5 -8
  62. package/src/app/modules/infrastructure/database/entities/publication-clap.data.ts +4 -4
  63. package/src/app/modules/infrastructure/database/entities/publication-comment.data.ts +4 -4
  64. package/src/app/modules/infrastructure/database/entities/role.data.ts +0 -3
  65. package/src/app/modules/infrastructure/database/entities/user.data.ts +53 -5
  66. package/src/app/modules/infrastructure/database/entities/venture-event.data.ts +3 -3
  67. package/src/app/modules/infrastructure/database/entities/venture-publication.data.ts +4 -10
  68. package/src/app/modules/infrastructure/database/entities/venture-sponsorship.data.ts +8 -11
  69. package/src/app/modules/infrastructure/database/entities/venture-subscription.data.ts +7 -11
  70. package/src/app/modules/infrastructure/database/entities/venture.data.ts +39 -20
  71. package/src/app/modules/domain/user/detail.ts +0 -23
  72. package/src/app/modules/domain/ventures/detail.ts +0 -14
  73. package/src/app/modules/infrastructure/database/entities/user-detail.data.ts +0 -72
  74. package/src/app/modules/infrastructure/database/entities/venture-detail.data.ts +0 -53
@@ -1,3 +1 @@
1
- export { User } from "../user/user";
2
- export { Role } from "../user/role";
3
1
  export { AccessTokenPayload } from "./token-payload";
@@ -1,4 +1,4 @@
1
- import { UserDetail } from "../user";
1
+ import { User } from "../user";
2
2
  export interface Department {
3
3
  id: number;
4
4
  name: string;
@@ -10,7 +10,7 @@ export interface Municipality {
10
10
  id: number;
11
11
  name: string;
12
12
  department: Department;
13
- userDetails: UserDetail[];
13
+ users: User[];
14
14
  createdAt: Date;
15
15
  updatedAt: Date;
16
16
  }
@@ -1,10 +1,10 @@
1
1
  import { VentureEvent } from "../events/event";
2
- import { UserDetail } from "../user";
2
+ import { User } from "../user";
3
3
  export interface EventDonation {
4
4
  id: string;
5
5
  amount: number;
6
6
  currency: string;
7
7
  createdAt: Date;
8
- donor: UserDetail;
8
+ donor: User;
9
9
  event: VentureEvent;
10
10
  }
@@ -1,9 +1,9 @@
1
- import { UserDetail } from "../user";
2
- import { VentureDetail } from "../ventures";
1
+ import { User } from "../user";
2
+ import { Venture } from "../ventures";
3
3
  export interface VentureSponsorship {
4
4
  id: string;
5
- sponsor?: UserDetail;
6
- venture?: VentureDetail;
5
+ sponsor?: User;
6
+ venture?: Venture;
7
7
  monthlyAmount: number;
8
8
  createdAt: Date;
9
9
  updatedAt: Date;
@@ -1,5 +1,5 @@
1
1
  import { EventDonation } from "../contributions";
2
- import { VentureDetail } from "../ventures";
2
+ import { Venture } from "../ventures";
3
3
  import { EventCategory } from "./event-category";
4
4
  import { EventContact } from "./event-contact";
5
5
  import { EventLocation } from "./event-location";
@@ -9,7 +9,7 @@ export interface VentureEvent {
9
9
  slug: string;
10
10
  description: string;
11
11
  coverPhoto: string;
12
- ventureDetail?: VentureDetail;
12
+ venture?: Venture;
13
13
  location: EventLocation;
14
14
  contact: EventContact;
15
15
  categories: EventCategory[];
@@ -1,8 +1,8 @@
1
- import { UserDetail } from "../user";
1
+ import { User } from "../user";
2
2
  export interface Notification {
3
3
  id: string;
4
4
  title: string;
5
- user: UserDetail;
5
+ user: User;
6
6
  type: NotificationType;
7
7
  status: NotificationStatus;
8
8
  description: string;
@@ -1,8 +1,8 @@
1
- import { UserDetail } from "../user";
1
+ import { User } from "../user";
2
2
  import { VenturePublication } from "./publication";
3
3
  export interface PublicationClap {
4
4
  id: string;
5
- user: UserDetail;
5
+ user: User;
6
6
  publication: VenturePublication;
7
7
  createdAt: Date;
8
8
  }
@@ -1,8 +1,8 @@
1
- import { UserDetail } from "../user";
1
+ import { User } from "../user";
2
2
  import { VenturePublication } from "./publication";
3
3
  export interface PublicationComment {
4
4
  id: string;
5
- author: UserDetail;
5
+ author: User;
6
6
  content: string;
7
7
  publication: VenturePublication;
8
8
  createdAt: Date;
@@ -1,6 +1,3 @@
1
- export { EventCategory } from "../events/event-category";
2
1
  export { PublicationClap } from "./clap";
3
2
  export { PublicationComment } from "./comment";
4
- export { VentureEvent } from "../events/event";
5
- export { EventLocation } from "../events/event-location";
6
3
  export { PublicationContent, PublicationType, VenturePublication, } from "./publication";
@@ -1,4 +1,3 @@
1
1
  export { UserContact } from "./contact";
2
2
  export { Role, AppRole } from "./role";
3
3
  export { User, UserCreate } from "./user";
4
- export { UserDetail } from "./detail";
@@ -1,6 +1,8 @@
1
- import { VentureCategory } from "../ventures";
1
+ import { Municipality } from "../common";
2
+ import { EventDonation, VentureSponsorship } from "../contributions";
3
+ import { PublicationClap, PublicationComment } from "../publications";
4
+ import { Venture, VentureCategory, VentureSubscription } from "../ventures";
2
5
  import { UserContact } from "./contact";
3
- import { UserDetail } from "./detail";
4
6
  import { Role } from "./role";
5
7
  export interface User {
6
8
  id: string;
@@ -10,11 +12,20 @@ export interface User {
10
12
  lastName: string;
11
13
  active: boolean;
12
14
  contact?: UserContact;
13
- detail?: UserDetail;
14
15
  verified: boolean;
15
16
  onboardingCompleted: boolean;
16
17
  roles: Role[];
17
18
  preferences: VentureCategory[];
19
+ gender: "M" | "F" | "O";
20
+ birthDate: Date;
21
+ municipality?: Municipality;
22
+ comments: PublicationComment[];
23
+ donations: EventDonation[];
24
+ notifications: Notification[];
25
+ publicationClaps: PublicationClap[];
26
+ sponsorships: VentureSponsorship[];
27
+ subscriptions: VentureSubscription[];
28
+ ventures: Venture[];
18
29
  createdAt: Date;
19
30
  updatedAt: Date;
20
31
  }
@@ -1,4 +1,4 @@
1
- import { User } from "../auth";
1
+ import { User } from "../user";
2
2
  import { Venture } from "./venture";
3
3
  export interface VentureCategory {
4
4
  id: string;
@@ -1,5 +1,4 @@
1
1
  export { VentureCategory } from "./category";
2
- export { VentureDetail } from "./detail";
3
2
  export { VentureSubscription } from "./subscription";
4
3
  export { Venture, VentureCreate, VentureUpdate } from "./venture";
5
4
  export { VentureCategoryCreate } from "./category";
@@ -1,8 +1,8 @@
1
- import { UserDetail } from "../user";
2
- import { VentureDetail } from "./detail";
1
+ import { User } from "../user";
2
+ import { Venture } from "./venture";
3
3
  export interface VentureSubscription {
4
4
  id: string;
5
- subscriber?: UserDetail;
6
- venture?: VentureDetail;
5
+ subscriber?: User;
6
+ venture?: Venture;
7
7
  createdAt: Date;
8
8
  }
@@ -1,8 +1,11 @@
1
- import { UserDetail } from "../user";
1
+ import { VentureSponsorship } from "../contributions";
2
+ import { VentureEvent } from "../events";
3
+ import { VenturePublication } from "../publications";
4
+ import { User } from "../user";
2
5
  import { VentureCategory } from "./category";
3
6
  import { VentureContact } from "./contact";
4
- import { VentureDetail } from "./detail";
5
7
  import { VentureLocation } from "./location";
8
+ import { VentureSubscription } from "./subscription";
6
9
  export interface Venture {
7
10
  id: string;
8
11
  name: string;
@@ -11,11 +14,14 @@ export interface Venture {
11
14
  description: string;
12
15
  active: boolean;
13
16
  verified: boolean;
14
- detail?: VentureDetail;
15
- ownerDetail?: UserDetail;
17
+ owner?: User;
16
18
  categories: VentureCategory[];
17
19
  contact?: VentureContact;
18
20
  location?: VentureLocation;
21
+ events: VentureEvent[];
22
+ sponsorships: VentureSponsorship[];
23
+ subscriptions: VentureSubscription[];
24
+ publications: VenturePublication[];
19
25
  createdAt: Date;
20
26
  updatedAt: Date;
21
27
  }
@@ -1,10 +1,10 @@
1
- import { UserDetailData } from "./user-detail.data";
2
1
  import { VentureEventData } from "./venture-event.data";
2
+ import { UserData } from "./user.data";
3
3
  export declare class EventDonationData {
4
4
  id: string;
5
5
  currency: string;
6
6
  amount: number;
7
7
  createdAt: Date;
8
- donor: UserDetailData;
8
+ donor: UserData;
9
9
  event: VentureEventData;
10
10
  }
@@ -11,8 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.EventDonationData = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
- const user_detail_data_1 = require("./user-detail.data");
15
14
  const venture_event_data_1 = require("./venture-event.data");
15
+ const user_data_1 = require("./user.data");
16
16
  let EventDonationData = class EventDonationData {
17
17
  id;
18
18
  currency;
@@ -39,9 +39,9 @@ __decorate([
39
39
  __metadata("design:type", Date)
40
40
  ], EventDonationData.prototype, "createdAt", void 0);
41
41
  __decorate([
42
- (0, typeorm_1.ManyToOne)(() => user_detail_data_1.UserDetailData, (userDetail) => userDetail.donations),
43
- (0, typeorm_1.JoinColumn)({ name: "donorDetailId" }),
44
- __metadata("design:type", user_detail_data_1.UserDetailData)
42
+ (0, typeorm_1.ManyToOne)(() => user_data_1.UserData, (user) => user.donations),
43
+ (0, typeorm_1.JoinColumn)({ name: "donorId" }),
44
+ __metadata("design:type", user_data_1.UserData)
45
45
  ], EventDonationData.prototype, "donor", void 0);
46
46
  __decorate([
47
47
  (0, typeorm_1.ManyToOne)(() => venture_event_data_1.VentureEventData, (ventureEvent) => ventureEvent.donations),
@@ -10,11 +10,9 @@ export { PublicationCommentData } from "./publication-comment.data";
10
10
  export { PublicationContentData } from "./publication-content.data";
11
11
  export { RoleData } from "./role.data";
12
12
  export { UserContactData } from "./user-contact.data";
13
- export { UserDetailData } from "./user-detail.data";
14
13
  export { UserData } from "./user.data";
15
14
  export { VentureCategoryData } from "./venture-category.data";
16
15
  export { VentureContactData } from "./venture-contact.data";
17
- export { VentureDetailData } from "./venture-detail.data";
18
16
  export { VentureEventData } from "./venture-event.data";
19
17
  export { VentureLocationData } from "./venture-location.data";
20
18
  export { VenturePublicationData } from "./venture-publication.data";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VentureData = exports.VentureSubscriptionData = exports.VentureSponsorshipData = exports.VenturePublicationData = exports.VentureLocationData = exports.VentureEventData = exports.VentureDetailData = exports.VentureContactData = exports.VentureCategoryData = exports.UserData = exports.UserDetailData = exports.UserContactData = exports.RoleData = exports.PublicationContentData = exports.PublicationCommentData = exports.PublicationClapData = exports.NotificationData = exports.MunicipalityData = exports.EventLocationData = exports.EventDonationData = exports.EventContactData = exports.EventCategoryData = exports.DepartmentData = void 0;
3
+ exports.VentureData = exports.VentureSubscriptionData = exports.VentureSponsorshipData = exports.VenturePublicationData = exports.VentureLocationData = exports.VentureEventData = exports.VentureContactData = exports.VentureCategoryData = exports.UserData = exports.UserContactData = exports.RoleData = exports.PublicationContentData = exports.PublicationCommentData = exports.PublicationClapData = exports.NotificationData = exports.MunicipalityData = exports.EventLocationData = exports.EventDonationData = exports.EventContactData = exports.EventCategoryData = exports.DepartmentData = void 0;
4
4
  var department_data_1 = require("./department.data");
5
5
  Object.defineProperty(exports, "DepartmentData", { enumerable: true, get: function () { return department_data_1.DepartmentData; } });
6
6
  var event_category_data_1 = require("./event-category.data");
@@ -25,16 +25,12 @@ var role_data_1 = require("./role.data");
25
25
  Object.defineProperty(exports, "RoleData", { enumerable: true, get: function () { return role_data_1.RoleData; } });
26
26
  var user_contact_data_1 = require("./user-contact.data");
27
27
  Object.defineProperty(exports, "UserContactData", { enumerable: true, get: function () { return user_contact_data_1.UserContactData; } });
28
- var user_detail_data_1 = require("./user-detail.data");
29
- Object.defineProperty(exports, "UserDetailData", { enumerable: true, get: function () { return user_detail_data_1.UserDetailData; } });
30
28
  var user_data_1 = require("./user.data");
31
29
  Object.defineProperty(exports, "UserData", { enumerable: true, get: function () { return user_data_1.UserData; } });
32
30
  var venture_category_data_1 = require("./venture-category.data");
33
31
  Object.defineProperty(exports, "VentureCategoryData", { enumerable: true, get: function () { return venture_category_data_1.VentureCategoryData; } });
34
32
  var venture_contact_data_1 = require("./venture-contact.data");
35
33
  Object.defineProperty(exports, "VentureContactData", { enumerable: true, get: function () { return venture_contact_data_1.VentureContactData; } });
36
- var venture_detail_data_1 = require("./venture-detail.data");
37
- Object.defineProperty(exports, "VentureDetailData", { enumerable: true, get: function () { return venture_detail_data_1.VentureDetailData; } });
38
34
  var venture_event_data_1 = require("./venture-event.data");
39
35
  Object.defineProperty(exports, "VentureEventData", { enumerable: true, get: function () { return venture_event_data_1.VentureEventData; } });
40
36
  var venture_location_data_1 = require("./venture-location.data");
@@ -1,10 +1,10 @@
1
1
  import { DepartmentData } from "./department.data";
2
- import { UserDetailData } from "./user-detail.data";
2
+ import { UserData } from "./user.data";
3
3
  export declare class MunicipalityData {
4
4
  id: number;
5
5
  name: string;
6
6
  createdAt: Date;
7
7
  updatedAt: Date;
8
8
  department: DepartmentData;
9
- userDetails: UserDetailData[];
9
+ users: UserData[];
10
10
  }
@@ -12,14 +12,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.MunicipalityData = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
14
  const department_data_1 = require("./department.data");
15
- const user_detail_data_1 = require("./user-detail.data");
15
+ const user_data_1 = require("./user.data");
16
16
  let MunicipalityData = class MunicipalityData {
17
17
  id;
18
18
  name;
19
19
  createdAt;
20
20
  updatedAt;
21
21
  department;
22
- userDetails;
22
+ users;
23
23
  };
24
24
  exports.MunicipalityData = MunicipalityData;
25
25
  __decorate([
@@ -44,9 +44,9 @@ __decorate([
44
44
  __metadata("design:type", department_data_1.DepartmentData)
45
45
  ], MunicipalityData.prototype, "department", void 0);
46
46
  __decorate([
47
- (0, typeorm_1.OneToMany)(() => user_detail_data_1.UserDetailData, (ud) => ud.municipality),
47
+ (0, typeorm_1.OneToMany)(() => user_data_1.UserData, (user) => user.municipality),
48
48
  __metadata("design:type", Array)
49
- ], MunicipalityData.prototype, "userDetails", void 0);
49
+ ], MunicipalityData.prototype, "users", void 0);
50
50
  exports.MunicipalityData = MunicipalityData = __decorate([
51
51
  (0, typeorm_1.Entity)({ name: "municipality" })
52
52
  ], MunicipalityData);
@@ -1,14 +1,13 @@
1
1
  import { NotificationType } from "../../../domain/notifications";
2
2
  import { NotificationStatus } from "../../../domain/notifications/notification";
3
- import { UserDetailData } from "./user-detail.data";
3
+ import { UserData } from "./user.data";
4
4
  export declare class NotificationData {
5
5
  id: string;
6
6
  title: string;
7
7
  type: NotificationType;
8
8
  status: NotificationStatus;
9
9
  description: string;
10
+ user: UserData;
10
11
  createdAt: Date;
11
12
  updatedAt: Date;
12
- userDetailId: string;
13
- user: UserDetailData;
14
13
  }
@@ -13,17 +13,16 @@ exports.NotificationData = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
14
  const notifications_1 = require("../../../domain/notifications");
15
15
  const notification_1 = require("../../../domain/notifications/notification");
16
- const user_detail_data_1 = require("./user-detail.data");
16
+ const user_data_1 = require("./user.data");
17
17
  let NotificationData = class NotificationData {
18
18
  id;
19
19
  title;
20
20
  type;
21
21
  status;
22
22
  description;
23
+ user;
23
24
  createdAt;
24
25
  updatedAt;
25
- userDetailId;
26
- user;
27
26
  };
28
27
  exports.NotificationData = NotificationData;
29
28
  __decorate([
@@ -46,6 +45,11 @@ __decorate([
46
45
  (0, typeorm_1.Column)(),
47
46
  __metadata("design:type", String)
48
47
  ], NotificationData.prototype, "description", void 0);
48
+ __decorate([
49
+ (0, typeorm_1.ManyToOne)(() => user_data_1.UserData, (user) => user.notifications),
50
+ (0, typeorm_1.JoinColumn)({ name: "userId" }),
51
+ __metadata("design:type", user_data_1.UserData)
52
+ ], NotificationData.prototype, "user", void 0);
49
53
  __decorate([
50
54
  (0, typeorm_1.CreateDateColumn)(),
51
55
  __metadata("design:type", Date)
@@ -54,15 +58,6 @@ __decorate([
54
58
  (0, typeorm_1.UpdateDateColumn)(),
55
59
  __metadata("design:type", Date)
56
60
  ], NotificationData.prototype, "updatedAt", void 0);
57
- __decorate([
58
- (0, typeorm_1.Column)(),
59
- __metadata("design:type", String)
60
- ], NotificationData.prototype, "userDetailId", void 0);
61
- __decorate([
62
- (0, typeorm_1.ManyToOne)(() => user_detail_data_1.UserDetailData, (userDetail) => userDetail.notifications),
63
- (0, typeorm_1.JoinColumn)({ name: "userDetailId" }),
64
- __metadata("design:type", user_detail_data_1.UserDetailData)
65
- ], NotificationData.prototype, "user", void 0);
66
61
  exports.NotificationData = NotificationData = __decorate([
67
62
  (0, typeorm_1.Entity)({ name: "notification" })
68
63
  ], NotificationData);
@@ -1,8 +1,8 @@
1
- import { UserDetailData } from "./user-detail.data";
2
1
  import { VenturePublicationData } from "./venture-publication.data";
2
+ import { UserData } from "./user.data";
3
3
  export declare class PublicationClapData {
4
4
  id: string;
5
5
  publication: VenturePublicationData;
6
- user: UserDetailData;
6
+ user: UserData;
7
7
  createdAt: Date;
8
8
  }
@@ -11,8 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.PublicationClapData = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
- const user_detail_data_1 = require("./user-detail.data");
15
14
  const venture_publication_data_1 = require("./venture-publication.data");
15
+ const user_data_1 = require("./user.data");
16
16
  let PublicationClapData = class PublicationClapData {
17
17
  id;
18
18
  publication;
@@ -30,9 +30,9 @@ __decorate([
30
30
  __metadata("design:type", venture_publication_data_1.VenturePublicationData)
31
31
  ], PublicationClapData.prototype, "publication", void 0);
32
32
  __decorate([
33
- (0, typeorm_1.ManyToOne)(() => user_detail_data_1.UserDetailData, (userDetail) => userDetail.publicationClaps),
34
- (0, typeorm_1.JoinColumn)({ name: "userDetailId" }),
35
- __metadata("design:type", user_detail_data_1.UserDetailData)
33
+ (0, typeorm_1.ManyToOne)(() => user_data_1.UserData, (user) => user.publicationClaps),
34
+ (0, typeorm_1.JoinColumn)({ name: "userId" }),
35
+ __metadata("design:type", user_data_1.UserData)
36
36
  ], PublicationClapData.prototype, "user", void 0);
37
37
  __decorate([
38
38
  (0, typeorm_1.CreateDateColumn)(),
@@ -1,8 +1,8 @@
1
- import { UserDetailData } from "./user-detail.data";
2
1
  import { VenturePublicationData } from "./venture-publication.data";
2
+ import { UserData } from "./user.data";
3
3
  export declare class PublicationCommentData {
4
4
  id: string;
5
- author: UserDetailData;
5
+ author: UserData;
6
6
  content: string;
7
7
  publication: VenturePublicationData;
8
8
  createdAt: Date;
@@ -11,8 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.PublicationCommentData = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
- const user_detail_data_1 = require("./user-detail.data");
15
14
  const venture_publication_data_1 = require("./venture-publication.data");
15
+ const user_data_1 = require("./user.data");
16
16
  let PublicationCommentData = class PublicationCommentData {
17
17
  id;
18
18
  author;
@@ -26,9 +26,9 @@ __decorate([
26
26
  __metadata("design:type", String)
27
27
  ], PublicationCommentData.prototype, "id", void 0);
28
28
  __decorate([
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)
29
+ (0, typeorm_1.ManyToOne)(() => user_data_1.UserData, (user) => user.comments),
30
+ (0, typeorm_1.JoinColumn)({ name: "authorId" }),
31
+ __metadata("design:type", user_data_1.UserData)
32
32
  ], PublicationCommentData.prototype, "author", void 0);
33
33
  __decorate([
34
34
  (0, typeorm_1.Column)(),
@@ -3,7 +3,6 @@ import { UserData } from "./user.data";
3
3
  export declare class RoleData {
4
4
  id: string;
5
5
  name: AppRole;
6
- label2: string;
7
6
  label: string;
8
7
  createdAt: Date;
9
8
  updatedAt: Date;
@@ -16,7 +16,6 @@ const user_data_1 = require("./user.data");
16
16
  let RoleData = class RoleData {
17
17
  id;
18
18
  name;
19
- label2;
20
19
  label;
21
20
  createdAt;
22
21
  updatedAt;
@@ -31,10 +30,6 @@ __decorate([
31
30
  (0, typeorm_1.Column)({ type: "enum", enum: user_1.AppRole, unique: true }),
32
31
  __metadata("design:type", String)
33
32
  ], RoleData.prototype, "name", void 0);
34
- __decorate([
35
- (0, typeorm_1.Column)({ type: "enum", enum: user_1.AppRole, default: user_1.AppRole.USER }),
36
- __metadata("design:type", String)
37
- ], RoleData.prototype, "label2", void 0);
38
33
  __decorate([
39
34
  (0, typeorm_1.Column)({ default: "" }),
40
35
  __metadata("design:type", String)
@@ -1,7 +1,14 @@
1
+ import { EventDonationData } from "./event-donation.data";
2
+ import { MunicipalityData } from "./municipality.data";
3
+ import { NotificationData } from "./notification.data";
4
+ import { PublicationClapData } from "./publication-clap.data";
5
+ import { PublicationCommentData } from "./publication-comment.data";
1
6
  import { RoleData } from "./role.data";
2
7
  import { UserContactData } from "./user-contact.data";
3
- import { UserDetailData } from "./user-detail.data";
4
8
  import { VentureCategoryData } from "./venture-category.data";
9
+ import { VentureSponsorshipData } from "./venture-sponsorship.data";
10
+ import { VentureSubscriptionData } from "./venture-subscription.data";
11
+ import { VentureData } from "./venture.data";
5
12
  export declare class UserData {
6
13
  id: string;
7
14
  picture: string;
@@ -14,7 +21,16 @@ export declare class UserData {
14
21
  onboardingCompleted: boolean;
15
22
  verified: boolean;
16
23
  contact?: UserContactData;
17
- detail?: UserDetailData;
18
24
  preferences: VentureCategoryData[];
19
25
  roles: RoleData[];
26
+ gender: "M" | "F" | "O";
27
+ birthDate: Date;
28
+ municipality?: MunicipalityData;
29
+ comments: PublicationCommentData[];
30
+ donations: EventDonationData[];
31
+ notifications: NotificationData[];
32
+ publicationClaps: PublicationClapData[];
33
+ sponsorships: VentureSponsorshipData[];
34
+ subscriptions: VentureSubscriptionData[];
35
+ ventures: VentureData[];
20
36
  }
@@ -11,10 +11,17 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.UserData = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
+ const event_donation_data_1 = require("./event-donation.data");
15
+ const municipality_data_1 = require("./municipality.data");
16
+ const notification_data_1 = require("./notification.data");
17
+ const publication_clap_data_1 = require("./publication-clap.data");
18
+ const publication_comment_data_1 = require("./publication-comment.data");
14
19
  const role_data_1 = require("./role.data");
15
20
  const user_contact_data_1 = require("./user-contact.data");
16
- const user_detail_data_1 = require("./user-detail.data");
17
21
  const venture_category_data_1 = require("./venture-category.data");
22
+ const venture_sponsorship_data_1 = require("./venture-sponsorship.data");
23
+ const venture_subscription_data_1 = require("./venture-subscription.data");
24
+ const venture_data_1 = require("./venture.data");
18
25
  let UserData = class UserData {
19
26
  id;
20
27
  picture;
@@ -27,9 +34,18 @@ let UserData = class UserData {
27
34
  onboardingCompleted;
28
35
  verified;
29
36
  contact;
30
- detail;
31
37
  preferences;
32
38
  roles;
39
+ gender;
40
+ birthDate;
41
+ municipality;
42
+ comments;
43
+ donations;
44
+ notifications;
45
+ publicationClaps;
46
+ sponsorships;
47
+ subscriptions;
48
+ ventures;
33
49
  };
34
50
  exports.UserData = UserData;
35
51
  __decorate([
@@ -77,11 +93,6 @@ __decorate([
77
93
  (0, typeorm_1.JoinColumn)({ name: "contactId" }),
78
94
  __metadata("design:type", user_contact_data_1.UserContactData)
79
95
  ], UserData.prototype, "contact", void 0);
80
- __decorate([
81
- (0, typeorm_1.OneToOne)(() => user_detail_data_1.UserDetailData, (detail) => detail.user),
82
- (0, typeorm_1.JoinColumn)({ name: "detailId" }),
83
- __metadata("design:type", user_detail_data_1.UserDetailData)
84
- ], UserData.prototype, "detail", void 0);
85
96
  __decorate([
86
97
  (0, typeorm_1.ManyToMany)(() => venture_category_data_1.VentureCategoryData, (vc) => vc.users),
87
98
  (0, typeorm_1.JoinTable)({ name: "x_user_preference" }),
@@ -92,6 +103,47 @@ __decorate([
92
103
  (0, typeorm_1.JoinTable)({ name: "x_user_role" }),
93
104
  __metadata("design:type", Array)
94
105
  ], UserData.prototype, "roles", void 0);
106
+ __decorate([
107
+ (0, typeorm_1.Column)({ type: "enum", enum: ["M", "F", "O"] }),
108
+ __metadata("design:type", String)
109
+ ], UserData.prototype, "gender", void 0);
110
+ __decorate([
111
+ (0, typeorm_1.Column)(),
112
+ __metadata("design:type", Date)
113
+ ], UserData.prototype, "birthDate", void 0);
114
+ __decorate([
115
+ (0, typeorm_1.ManyToOne)(() => municipality_data_1.MunicipalityData, (municipality) => municipality.users),
116
+ (0, typeorm_1.JoinColumn)({ name: "municipalityId" }),
117
+ __metadata("design:type", municipality_data_1.MunicipalityData)
118
+ ], UserData.prototype, "municipality", void 0);
119
+ __decorate([
120
+ (0, typeorm_1.OneToMany)(() => publication_comment_data_1.PublicationCommentData, (publicationComment) => publicationComment.author),
121
+ __metadata("design:type", Array)
122
+ ], UserData.prototype, "comments", void 0);
123
+ __decorate([
124
+ (0, typeorm_1.OneToMany)(() => event_donation_data_1.EventDonationData, (eventDonation) => eventDonation.donor),
125
+ __metadata("design:type", Array)
126
+ ], UserData.prototype, "donations", void 0);
127
+ __decorate([
128
+ (0, typeorm_1.OneToMany)(() => notification_data_1.NotificationData, (notification) => notification.user),
129
+ __metadata("design:type", Array)
130
+ ], UserData.prototype, "notifications", void 0);
131
+ __decorate([
132
+ (0, typeorm_1.OneToMany)(() => publication_clap_data_1.PublicationClapData, (publicationClap) => publicationClap.user),
133
+ __metadata("design:type", Array)
134
+ ], UserData.prototype, "publicationClaps", void 0);
135
+ __decorate([
136
+ (0, typeorm_1.OneToMany)(() => venture_sponsorship_data_1.VentureSponsorshipData, (ventureSponsorship) => ventureSponsorship.sponsor),
137
+ __metadata("design:type", Array)
138
+ ], UserData.prototype, "sponsorships", void 0);
139
+ __decorate([
140
+ (0, typeorm_1.OneToMany)(() => venture_subscription_data_1.VentureSubscriptionData, (ventureSubscription) => ventureSubscription.subscriber),
141
+ __metadata("design:type", Array)
142
+ ], UserData.prototype, "subscriptions", void 0);
143
+ __decorate([
144
+ (0, typeorm_1.OneToMany)(() => venture_data_1.VentureData, (venture) => venture.owner),
145
+ __metadata("design:type", Array)
146
+ ], UserData.prototype, "ventures", void 0);
95
147
  exports.UserData = UserData = __decorate([
96
148
  (0, typeorm_1.Entity)({ name: "user" })
97
149
  ], UserData);