echadospalante-core 12.2.0 → 12.3.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 (54) hide show
  1. package/dist/app/modules/domain/auth/index.js +2 -0
  2. package/dist/app/modules/domain/auth/token-payload.d.ts +5 -0
  3. package/dist/app/modules/domain/auth/token-payload.js +2 -0
  4. package/dist/app/modules/domain/contributions/donation.js +2 -0
  5. package/dist/app/modules/domain/contributions/index.js +2 -0
  6. package/dist/app/modules/domain/contributions/sponsor.js +2 -0
  7. package/dist/app/modules/domain/events/event-category.js +2 -0
  8. package/dist/app/modules/domain/events/event-contact.js +2 -0
  9. package/dist/app/modules/domain/notifications/index.js +5 -0
  10. package/dist/app/modules/domain/notifications/notification.js +19 -0
  11. package/dist/app/modules/domain/publications/clap.js +2 -0
  12. package/dist/app/modules/domain/publications/comment.js +2 -0
  13. package/dist/app/modules/domain/shared/content-type.d.ts +7 -0
  14. package/dist/app/modules/domain/shared/content-type.js +11 -0
  15. package/dist/app/modules/domain/shared/geo.js +2 -0
  16. package/dist/app/modules/domain/shared/pagination.d.ts +4 -0
  17. package/dist/app/modules/domain/shared/pagination.js +2 -0
  18. package/dist/app/modules/domain/user/contact.js +2 -0
  19. package/dist/app/modules/domain/user/detail.js +2 -0
  20. package/dist/app/modules/domain/user/index.js +5 -0
  21. package/dist/app/modules/domain/user/role.js +10 -0
  22. package/dist/app/modules/domain/user/user.js +2 -0
  23. package/dist/app/modules/domain/ventures/category.js +2 -0
  24. package/dist/app/modules/domain/ventures/contact.js +2 -0
  25. package/dist/app/modules/domain/ventures/detail.js +2 -0
  26. package/dist/app/modules/domain/ventures/index.js +2 -0
  27. package/dist/app/modules/domain/ventures/location.js +2 -0
  28. package/dist/app/modules/domain/ventures/subscription.js +2 -0
  29. package/dist/app/modules/domain/ventures/venture.js +2 -0
  30. package/dist/app/modules/infrastructure/database/entities/department.data.js +47 -0
  31. package/dist/app/modules/infrastructure/database/entities/event-category.data.js +62 -0
  32. package/dist/app/modules/infrastructure/database/entities/event-contact.data.js +40 -0
  33. package/dist/app/modules/infrastructure/database/entities/event-donation.data.js +53 -0
  34. package/dist/app/modules/infrastructure/database/entities/municipality.data.js +52 -0
  35. package/dist/app/modules/infrastructure/database/entities/notification.data.js +68 -0
  36. package/dist/app/modules/infrastructure/database/entities/publication-clap.data.js +43 -0
  37. package/dist/app/modules/infrastructure/database/entities/publication-comment.data.js +48 -0
  38. package/dist/app/modules/infrastructure/database/entities/role.data.js +51 -0
  39. package/dist/app/modules/infrastructure/database/entities/user-contact.data.js +70 -0
  40. package/dist/app/modules/infrastructure/database/entities/user-detail.data.js +89 -0
  41. package/dist/app/modules/infrastructure/database/entities/user.data.js +97 -0
  42. package/dist/app/modules/infrastructure/database/entities/venture-category.data.js +61 -0
  43. package/dist/app/modules/infrastructure/database/entities/venture-contact.data.js +50 -0
  44. package/dist/app/modules/infrastructure/database/entities/venture-detail.data.js +64 -0
  45. package/dist/app/modules/infrastructure/database/entities/venture-location.data.js +51 -0
  46. package/dist/app/modules/infrastructure/database/entities/venture-publication.data.js +80 -0
  47. package/dist/app/modules/infrastructure/database/entities/venture-sponsorship.data.js +53 -0
  48. package/dist/app/modules/infrastructure/database/entities/venture-subscription.data.js +43 -0
  49. package/dist/app/modules/infrastructure/database/entities/venture.data.js +105 -0
  50. package/dist/app/modules/utilities/index.d.ts +3 -0
  51. package/dist/app/modules/utilities/index.js +2 -0
  52. package/dist/app/modules/utilities/object-utilities.d.ts +16 -0
  53. package/dist/app/modules/utilities/object-utilities.js +2 -0
  54. package/package.json +1 -1
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.UserContactData = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const user_data_1 = require("./user.data");
15
+ let UserContactData = class UserContactData {
16
+ id;
17
+ phoneNumber;
18
+ address;
19
+ facebookUrl;
20
+ linkedinUrl;
21
+ twitterUrl;
22
+ instagramUrl;
23
+ createdAt;
24
+ updatedAt;
25
+ user;
26
+ };
27
+ exports.UserContactData = UserContactData;
28
+ __decorate([
29
+ (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
30
+ __metadata("design:type", String)
31
+ ], UserContactData.prototype, "id", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)(),
34
+ __metadata("design:type", String)
35
+ ], UserContactData.prototype, "phoneNumber", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.Column)(),
38
+ __metadata("design:type", String)
39
+ ], UserContactData.prototype, "address", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)(),
42
+ __metadata("design:type", String)
43
+ ], UserContactData.prototype, "facebookUrl", void 0);
44
+ __decorate([
45
+ (0, typeorm_1.Column)(),
46
+ __metadata("design:type", String)
47
+ ], UserContactData.prototype, "linkedinUrl", void 0);
48
+ __decorate([
49
+ (0, typeorm_1.Column)(),
50
+ __metadata("design:type", String)
51
+ ], UserContactData.prototype, "twitterUrl", void 0);
52
+ __decorate([
53
+ (0, typeorm_1.Column)(),
54
+ __metadata("design:type", String)
55
+ ], UserContactData.prototype, "instagramUrl", void 0);
56
+ __decorate([
57
+ (0, typeorm_1.CreateDateColumn)(),
58
+ __metadata("design:type", Date)
59
+ ], UserContactData.prototype, "createdAt", void 0);
60
+ __decorate([
61
+ (0, typeorm_1.UpdateDateColumn)(),
62
+ __metadata("design:type", Date)
63
+ ], UserContactData.prototype, "updatedAt", void 0);
64
+ __decorate([
65
+ (0, typeorm_1.OneToOne)(() => user_data_1.UserData, (user) => user.contact),
66
+ __metadata("design:type", user_data_1.UserData)
67
+ ], UserContactData.prototype, "user", void 0);
68
+ exports.UserContactData = UserContactData = __decorate([
69
+ (0, typeorm_1.Entity)({ name: "user_contact" })
70
+ ], UserContactData);
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.UserDetailData = void 0;
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");
19
+ const user_data_1 = require("./user.data");
20
+ const venture_sponsorship_data_1 = require("./venture-sponsorship.data");
21
+ const venture_subscription_data_1 = require("./venture-subscription.data");
22
+ const venture_data_1 = require("./venture.data");
23
+ let UserDetailData = class UserDetailData {
24
+ id;
25
+ gender;
26
+ birthDate;
27
+ user;
28
+ municipality;
29
+ comments;
30
+ donations;
31
+ notifications;
32
+ publicationClaps;
33
+ sponsorships;
34
+ subscriptions;
35
+ ventures;
36
+ };
37
+ exports.UserDetailData = UserDetailData;
38
+ __decorate([
39
+ (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
40
+ __metadata("design:type", String)
41
+ ], UserDetailData.prototype, "id", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: "enum", enum: ["M", "F", "O"] }),
44
+ __metadata("design:type", String)
45
+ ], UserDetailData.prototype, "gender", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)(),
48
+ __metadata("design:type", Date)
49
+ ], UserDetailData.prototype, "birthDate", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.OneToOne)(() => user_data_1.UserData, (user) => user.detail),
52
+ __metadata("design:type", user_data_1.UserData)
53
+ ], UserDetailData.prototype, "user", void 0);
54
+ __decorate([
55
+ (0, typeorm_1.ManyToOne)(() => municipality_data_1.MunicipalityData, (municipality) => municipality.userDetails),
56
+ (0, typeorm_1.JoinColumn)({ name: "municipalityId" }),
57
+ __metadata("design:type", municipality_data_1.MunicipalityData)
58
+ ], UserDetailData.prototype, "municipality", void 0);
59
+ __decorate([
60
+ (0, typeorm_1.OneToMany)(() => publication_comment_data_1.PublicationCommentData, (publicationComment) => publicationComment.author),
61
+ __metadata("design:type", Array)
62
+ ], UserDetailData.prototype, "comments", void 0);
63
+ __decorate([
64
+ (0, typeorm_1.OneToMany)(() => event_donation_data_1.EventDonationData, (eventDonation) => eventDonation.donor),
65
+ __metadata("design:type", Array)
66
+ ], UserDetailData.prototype, "donations", void 0);
67
+ __decorate([
68
+ (0, typeorm_1.OneToMany)(() => notification_data_1.NotificationData, (notification) => notification.user),
69
+ __metadata("design:type", Array)
70
+ ], UserDetailData.prototype, "notifications", void 0);
71
+ __decorate([
72
+ (0, typeorm_1.OneToMany)(() => publication_clap_data_1.PublicationClapData, (publicationClap) => publicationClap.user),
73
+ __metadata("design:type", Array)
74
+ ], UserDetailData.prototype, "publicationClaps", void 0);
75
+ __decorate([
76
+ (0, typeorm_1.OneToMany)(() => venture_sponsorship_data_1.VentureSponsorshipData, (ventureSponsorship) => ventureSponsorship.sponsor),
77
+ __metadata("design:type", Array)
78
+ ], UserDetailData.prototype, "sponsorships", void 0);
79
+ __decorate([
80
+ (0, typeorm_1.OneToMany)(() => venture_subscription_data_1.VentureSubscriptionData, (ventureSubscription) => ventureSubscription.subscriber),
81
+ __metadata("design:type", Array)
82
+ ], UserDetailData.prototype, "subscriptions", void 0);
83
+ __decorate([
84
+ (0, typeorm_1.OneToMany)(() => venture_data_1.VentureData, (venture) => venture.ownerDetail),
85
+ __metadata("design:type", Array)
86
+ ], UserDetailData.prototype, "ventures", void 0);
87
+ exports.UserDetailData = UserDetailData = __decorate([
88
+ (0, typeorm_1.Entity)({ name: "user_detail" })
89
+ ], UserDetailData);
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.UserData = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const role_data_1 = require("./role.data");
15
+ const user_contact_data_1 = require("./user-contact.data");
16
+ const user_detail_data_1 = require("./user-detail.data");
17
+ const venture_category_data_1 = require("./venture-category.data");
18
+ let UserData = class UserData {
19
+ id;
20
+ picture;
21
+ email;
22
+ firstName;
23
+ lastName;
24
+ active;
25
+ createdAt;
26
+ updatedAt;
27
+ onboardingCompleted;
28
+ verified;
29
+ contact;
30
+ detail;
31
+ preferences;
32
+ roles;
33
+ };
34
+ exports.UserData = UserData;
35
+ __decorate([
36
+ (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
37
+ __metadata("design:type", String)
38
+ ], UserData.prototype, "id", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)(),
41
+ __metadata("design:type", String)
42
+ ], UserData.prototype, "picture", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)({ unique: true }),
45
+ __metadata("design:type", String)
46
+ ], UserData.prototype, "email", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)(),
49
+ __metadata("design:type", String)
50
+ ], UserData.prototype, "firstName", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.Column)(),
53
+ __metadata("design:type", String)
54
+ ], UserData.prototype, "lastName", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.Column)({ default: true }),
57
+ __metadata("design:type", Boolean)
58
+ ], UserData.prototype, "active", void 0);
59
+ __decorate([
60
+ (0, typeorm_1.CreateDateColumn)(),
61
+ __metadata("design:type", Date)
62
+ ], UserData.prototype, "createdAt", void 0);
63
+ __decorate([
64
+ (0, typeorm_1.UpdateDateColumn)(),
65
+ __metadata("design:type", Date)
66
+ ], UserData.prototype, "updatedAt", void 0);
67
+ __decorate([
68
+ (0, typeorm_1.Column)({ default: false }),
69
+ __metadata("design:type", Boolean)
70
+ ], UserData.prototype, "onboardingCompleted", void 0);
71
+ __decorate([
72
+ (0, typeorm_1.Column)({ default: false }),
73
+ __metadata("design:type", Boolean)
74
+ ], UserData.prototype, "verified", void 0);
75
+ __decorate([
76
+ (0, typeorm_1.OneToOne)(() => user_contact_data_1.UserContactData, (contact) => contact.user),
77
+ (0, typeorm_1.JoinColumn)({ name: "contactId" }),
78
+ __metadata("design:type", user_contact_data_1.UserContactData)
79
+ ], 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
+ __decorate([
86
+ (0, typeorm_1.ManyToMany)(() => venture_category_data_1.VentureCategoryData, (vc) => vc.users),
87
+ (0, typeorm_1.JoinTable)({ name: "x_user_preference" }),
88
+ __metadata("design:type", Array)
89
+ ], UserData.prototype, "preferences", void 0);
90
+ __decorate([
91
+ (0, typeorm_1.ManyToMany)(() => role_data_1.RoleData, (role) => role.users, { eager: true }),
92
+ (0, typeorm_1.JoinTable)({ name: "x_user_role" }),
93
+ __metadata("design:type", Array)
94
+ ], UserData.prototype, "roles", void 0);
95
+ exports.UserData = UserData = __decorate([
96
+ (0, typeorm_1.Entity)({ name: "user" })
97
+ ], UserData);
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.VentureCategoryData = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const user_data_1 = require("./user.data");
15
+ const venture_data_1 = require("./venture.data");
16
+ let VentureCategoryData = class VentureCategoryData {
17
+ id;
18
+ name;
19
+ slug;
20
+ description;
21
+ createdAt;
22
+ updatedAt;
23
+ users;
24
+ ventures;
25
+ };
26
+ exports.VentureCategoryData = VentureCategoryData;
27
+ __decorate([
28
+ (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
29
+ __metadata("design:type", String)
30
+ ], VentureCategoryData.prototype, "id", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)(),
33
+ __metadata("design:type", String)
34
+ ], VentureCategoryData.prototype, "name", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)({ unique: true }),
37
+ __metadata("design:type", String)
38
+ ], VentureCategoryData.prototype, "slug", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)(),
41
+ __metadata("design:type", String)
42
+ ], VentureCategoryData.prototype, "description", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.CreateDateColumn)(),
45
+ __metadata("design:type", Date)
46
+ ], VentureCategoryData.prototype, "createdAt", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.UpdateDateColumn)(),
49
+ __metadata("design:type", Date)
50
+ ], VentureCategoryData.prototype, "updatedAt", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.ManyToMany)(() => user_data_1.UserData, (user) => user.preferences),
53
+ __metadata("design:type", Array)
54
+ ], VentureCategoryData.prototype, "users", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.ManyToMany)(() => venture_data_1.VentureData, (venture) => venture.categories),
57
+ __metadata("design:type", Array)
58
+ ], VentureCategoryData.prototype, "ventures", void 0);
59
+ exports.VentureCategoryData = VentureCategoryData = __decorate([
60
+ (0, typeorm_1.Entity)({ name: "venture_category" })
61
+ ], VentureCategoryData);
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.VentureContactData = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const venture_data_1 = require("./venture.data");
15
+ let VentureContactData = class VentureContactData {
16
+ id;
17
+ email;
18
+ phoneNumber;
19
+ createdAt;
20
+ updatedAt;
21
+ Venture;
22
+ };
23
+ exports.VentureContactData = VentureContactData;
24
+ __decorate([
25
+ (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
26
+ __metadata("design:type", String)
27
+ ], VentureContactData.prototype, "id", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.Column)(),
30
+ __metadata("design:type", String)
31
+ ], VentureContactData.prototype, "email", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)(),
34
+ __metadata("design:type", String)
35
+ ], VentureContactData.prototype, "phoneNumber", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.CreateDateColumn)(),
38
+ __metadata("design:type", Date)
39
+ ], VentureContactData.prototype, "createdAt", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.UpdateDateColumn)(),
42
+ __metadata("design:type", Date)
43
+ ], VentureContactData.prototype, "updatedAt", void 0);
44
+ __decorate([
45
+ (0, typeorm_1.OneToOne)(() => venture_data_1.VentureData, (venture) => venture.contact),
46
+ __metadata("design:type", venture_data_1.VentureData)
47
+ ], VentureContactData.prototype, "Venture", void 0);
48
+ exports.VentureContactData = VentureContactData = __decorate([
49
+ (0, typeorm_1.Entity)({ name: "venture_contact" })
50
+ ], VentureContactData);
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.VentureDetailData = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const venture_event_data_1 = require("./venture-event.data");
15
+ const venture_publication_data_1 = require("./venture-publication.data");
16
+ const venture_sponsorship_data_1 = require("./venture-sponsorship.data");
17
+ const venture_subscription_data_1 = require("./venture-subscription.data");
18
+ const venture_data_1 = require("./venture.data");
19
+ let VentureDetailData = class VentureDetailData {
20
+ id;
21
+ createdAt;
22
+ updatedAt;
23
+ venture;
24
+ events;
25
+ publications;
26
+ sponsorships;
27
+ subscriptions;
28
+ };
29
+ exports.VentureDetailData = VentureDetailData;
30
+ __decorate([
31
+ (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
32
+ __metadata("design:type", String)
33
+ ], VentureDetailData.prototype, "id", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.CreateDateColumn)(),
36
+ __metadata("design:type", Date)
37
+ ], VentureDetailData.prototype, "createdAt", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.UpdateDateColumn)(),
40
+ __metadata("design:type", Date)
41
+ ], VentureDetailData.prototype, "updatedAt", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.OneToOne)(() => venture_data_1.VentureData, (venture) => venture.detail),
44
+ __metadata("design:type", venture_data_1.VentureData)
45
+ ], VentureDetailData.prototype, "venture", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.OneToMany)(() => venture_event_data_1.VentureEventData, (ventureEvent) => ventureEvent.ventureDetail),
48
+ __metadata("design:type", Array)
49
+ ], VentureDetailData.prototype, "events", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.OneToMany)(() => venture_publication_data_1.VenturePublicationData, (venturePublication) => venturePublication.detail),
52
+ __metadata("design:type", Array)
53
+ ], VentureDetailData.prototype, "publications", void 0);
54
+ __decorate([
55
+ (0, typeorm_1.OneToMany)(() => venture_sponsorship_data_1.VentureSponsorshipData, (ventureSponsorship) => ventureSponsorship.detail),
56
+ __metadata("design:type", Array)
57
+ ], VentureDetailData.prototype, "sponsorships", void 0);
58
+ __decorate([
59
+ (0, typeorm_1.OneToMany)(() => venture_subscription_data_1.VentureSubscriptionData, (ventureSubscription) => ventureSubscription.detail),
60
+ __metadata("design:type", Array)
61
+ ], VentureDetailData.prototype, "subscriptions", void 0);
62
+ exports.VentureDetailData = VentureDetailData = __decorate([
63
+ (0, typeorm_1.Entity)({ name: "venture_detail" })
64
+ ], VentureDetailData);
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.VentureLocationData = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const venture_data_1 = require("./venture.data");
15
+ let VentureLocationData = class VentureLocationData {
16
+ id;
17
+ location;
18
+ description;
19
+ createdAt;
20
+ updatedAt;
21
+ Venture;
22
+ };
23
+ exports.VentureLocationData = VentureLocationData;
24
+ __decorate([
25
+ (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
26
+ __metadata("design:type", String)
27
+ ], VentureLocationData.prototype, "id", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.Column)("geometry", { spatialFeatureType: "Point", srid: 4326 }),
30
+ (0, typeorm_1.Index)({ spatial: true }),
31
+ __metadata("design:type", Object)
32
+ ], VentureLocationData.prototype, "location", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ nullable: true }),
35
+ __metadata("design:type", String)
36
+ ], VentureLocationData.prototype, "description", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.CreateDateColumn)(),
39
+ __metadata("design:type", Date)
40
+ ], VentureLocationData.prototype, "createdAt", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.UpdateDateColumn)(),
43
+ __metadata("design:type", Date)
44
+ ], VentureLocationData.prototype, "updatedAt", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.OneToOne)(() => venture_data_1.VentureData, (venture) => venture.location),
47
+ __metadata("design:type", venture_data_1.VentureData)
48
+ ], VentureLocationData.prototype, "Venture", void 0);
49
+ exports.VentureLocationData = VentureLocationData = __decorate([
50
+ (0, typeorm_1.Entity)({ name: "venture_location" })
51
+ ], VentureLocationData);
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.VenturePublicationData = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const publication_clap_data_1 = require("./publication-clap.data");
15
+ const publication_comment_data_1 = require("./publication-comment.data");
16
+ const venture_detail_data_1 = require("./venture-detail.data");
17
+ const publication_content_data_1 = require("./publication-content.data");
18
+ const publications_1 = require("../../../domain/publications");
19
+ let VenturePublicationData = class VenturePublicationData {
20
+ id;
21
+ description;
22
+ type;
23
+ clapsCount;
24
+ createdAt;
25
+ updatedAt;
26
+ detailId;
27
+ detail;
28
+ claps;
29
+ comments;
30
+ contents;
31
+ };
32
+ exports.VenturePublicationData = VenturePublicationData;
33
+ __decorate([
34
+ (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
35
+ __metadata("design:type", String)
36
+ ], VenturePublicationData.prototype, "id", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)(),
39
+ __metadata("design:type", String)
40
+ ], VenturePublicationData.prototype, "description", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ type: "enum", enum: publications_1.PublicationType }),
43
+ __metadata("design:type", String)
44
+ ], VenturePublicationData.prototype, "type", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)(),
47
+ __metadata("design:type", Number)
48
+ ], VenturePublicationData.prototype, "clapsCount", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.CreateDateColumn)(),
51
+ __metadata("design:type", Date)
52
+ ], VenturePublicationData.prototype, "createdAt", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.UpdateDateColumn)(),
55
+ __metadata("design:type", Date)
56
+ ], VenturePublicationData.prototype, "updatedAt", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)(),
59
+ __metadata("design:type", String)
60
+ ], VenturePublicationData.prototype, "detailId", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.ManyToOne)(() => venture_detail_data_1.VentureDetailData, (ventureDetail) => ventureDetail.publications),
63
+ (0, typeorm_1.JoinColumn)({ name: "detailId" }),
64
+ __metadata("design:type", venture_detail_data_1.VentureDetailData)
65
+ ], VenturePublicationData.prototype, "detail", void 0);
66
+ __decorate([
67
+ (0, typeorm_1.OneToMany)(() => publication_clap_data_1.PublicationClapData, (publicationClap) => publicationClap.publication),
68
+ __metadata("design:type", Array)
69
+ ], VenturePublicationData.prototype, "claps", void 0);
70
+ __decorate([
71
+ (0, typeorm_1.OneToMany)(() => publication_comment_data_1.PublicationCommentData, (publicationComment) => publicationComment.publication),
72
+ __metadata("design:type", Array)
73
+ ], VenturePublicationData.prototype, "comments", void 0);
74
+ __decorate([
75
+ (0, typeorm_1.OneToMany)(() => publication_content_data_1.PublicationContentData, (publicationContent) => publicationContent.publication),
76
+ __metadata("design:type", Array)
77
+ ], VenturePublicationData.prototype, "contents", void 0);
78
+ exports.VenturePublicationData = VenturePublicationData = __decorate([
79
+ (0, typeorm_1.Entity)({ name: "venture_publication" })
80
+ ], VenturePublicationData);
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.VentureSponsorshipData = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const user_detail_data_1 = require("./user-detail.data");
15
+ const venture_detail_data_1 = require("./venture-detail.data");
16
+ let VentureSponsorshipData = class VentureSponsorshipData {
17
+ id;
18
+ monthlyAmount;
19
+ createdAt;
20
+ updatedAt;
21
+ sponsor;
22
+ detail;
23
+ };
24
+ exports.VentureSponsorshipData = VentureSponsorshipData;
25
+ __decorate([
26
+ (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
27
+ __metadata("design:type", String)
28
+ ], VentureSponsorshipData.prototype, "id", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)("float"),
31
+ __metadata("design:type", Number)
32
+ ], VentureSponsorshipData.prototype, "monthlyAmount", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.CreateDateColumn)(),
35
+ __metadata("design:type", Date)
36
+ ], VentureSponsorshipData.prototype, "createdAt", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.UpdateDateColumn)(),
39
+ __metadata("design:type", Date)
40
+ ], VentureSponsorshipData.prototype, "updatedAt", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.ManyToOne)(() => user_detail_data_1.UserDetailData, (userDetail) => userDetail.sponsorships),
43
+ (0, typeorm_1.JoinColumn)({ name: "sponsorDetailId" }),
44
+ __metadata("design:type", user_detail_data_1.UserDetailData)
45
+ ], VentureSponsorshipData.prototype, "sponsor", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.ManyToOne)(() => venture_detail_data_1.VentureDetailData, (ventureDetail) => ventureDetail.sponsorships),
48
+ (0, typeorm_1.JoinColumn)({ name: "ventureDetailId" }),
49
+ __metadata("design:type", venture_detail_data_1.VentureDetailData)
50
+ ], VentureSponsorshipData.prototype, "detail", void 0);
51
+ exports.VentureSponsorshipData = VentureSponsorshipData = __decorate([
52
+ (0, typeorm_1.Entity)({ name: "venture_sponsorship" })
53
+ ], VentureSponsorshipData);
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.VentureSubscriptionData = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const user_detail_data_1 = require("./user-detail.data");
15
+ const venture_detail_data_1 = require("./venture-detail.data");
16
+ let VentureSubscriptionData = class VentureSubscriptionData {
17
+ id;
18
+ createdAt;
19
+ subscriber;
20
+ detail;
21
+ };
22
+ exports.VentureSubscriptionData = VentureSubscriptionData;
23
+ __decorate([
24
+ (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
25
+ __metadata("design:type", String)
26
+ ], VentureSubscriptionData.prototype, "id", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.CreateDateColumn)(),
29
+ __metadata("design:type", Date)
30
+ ], VentureSubscriptionData.prototype, "createdAt", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.ManyToOne)(() => user_detail_data_1.UserDetailData, (userDetail) => userDetail.subscriptions),
33
+ (0, typeorm_1.JoinColumn)({ name: "subscriberDetailId" }),
34
+ __metadata("design:type", user_detail_data_1.UserDetailData)
35
+ ], VentureSubscriptionData.prototype, "subscriber", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.ManyToOne)(() => venture_detail_data_1.VentureDetailData, (ventureDetail) => ventureDetail.subscriptions),
38
+ (0, typeorm_1.JoinColumn)({ name: "ventureId" }),
39
+ __metadata("design:type", venture_detail_data_1.VentureDetailData)
40
+ ], VentureSubscriptionData.prototype, "detail", void 0);
41
+ exports.VentureSubscriptionData = VentureSubscriptionData = __decorate([
42
+ (0, typeorm_1.Entity)({ name: "venture_subscription" })
43
+ ], VentureSubscriptionData);