echadospalante-core 11.3.2 → 11.3.4

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 (122) hide show
  1. package/package.json +1 -1
  2. package/src/app/modules/infrastructure/database/entities/event-contact.data.ts +2 -2
  3. package/dist/app/modules/domain/auth/index.d.ts +0 -3
  4. package/dist/app/modules/domain/auth/index.js +0 -2
  5. package/dist/app/modules/domain/auth/token-payload.d.ts +0 -5
  6. package/dist/app/modules/domain/auth/token-payload.js +0 -2
  7. package/dist/app/modules/domain/contributions/donation.d.ts +0 -10
  8. package/dist/app/modules/domain/contributions/donation.js +0 -2
  9. package/dist/app/modules/domain/contributions/index.d.ts +0 -2
  10. package/dist/app/modules/domain/contributions/index.js +0 -2
  11. package/dist/app/modules/domain/contributions/sponsor.d.ts +0 -10
  12. package/dist/app/modules/domain/contributions/sponsor.js +0 -2
  13. package/dist/app/modules/domain/events/event-category.d.ts +0 -10
  14. package/dist/app/modules/domain/events/event-category.js +0 -2
  15. package/dist/app/modules/domain/events/event-contact.d.ts +0 -7
  16. package/dist/app/modules/domain/events/event-contact.js +0 -2
  17. package/dist/app/modules/domain/events/event-location.d.ts +0 -8
  18. package/dist/app/modules/domain/events/event-location.js +0 -2
  19. package/dist/app/modules/domain/events/event.d.ts +0 -39
  20. package/dist/app/modules/domain/events/event.js +0 -2
  21. package/dist/app/modules/domain/events/index.d.ts +0 -4
  22. package/dist/app/modules/domain/events/index.js +0 -2
  23. package/dist/app/modules/domain/notifications/index.d.ts +0 -2
  24. package/dist/app/modules/domain/notifications/index.js +0 -5
  25. package/dist/app/modules/domain/notifications/notification.d.ts +0 -25
  26. package/dist/app/modules/domain/notifications/notification.js +0 -19
  27. package/dist/app/modules/domain/publications/clap.d.ts +0 -8
  28. package/dist/app/modules/domain/publications/clap.js +0 -2
  29. package/dist/app/modules/domain/publications/comment.d.ts +0 -9
  30. package/dist/app/modules/domain/publications/comment.js +0 -2
  31. package/dist/app/modules/domain/publications/content.d.ts +0 -10
  32. package/dist/app/modules/domain/publications/content.js +0 -12
  33. package/dist/app/modules/domain/publications/index.d.ts +0 -6
  34. package/dist/app/modules/domain/publications/index.js +0 -5
  35. package/dist/app/modules/domain/publications/publication.d.ts +0 -27
  36. package/dist/app/modules/domain/publications/publication.js +0 -11
  37. package/dist/app/modules/domain/shared/content-type.d.ts +0 -7
  38. package/dist/app/modules/domain/shared/content-type.js +0 -11
  39. package/dist/app/modules/domain/shared/geo.d.ts +0 -16
  40. package/dist/app/modules/domain/shared/geo.js +0 -2
  41. package/dist/app/modules/domain/shared/index.d.ts +0 -2
  42. package/dist/app/modules/domain/shared/index.js +0 -5
  43. package/dist/app/modules/domain/shared/pagination.d.ts +0 -4
  44. package/dist/app/modules/domain/shared/pagination.js +0 -2
  45. package/dist/app/modules/domain/user/contact.d.ts +0 -13
  46. package/dist/app/modules/domain/user/contact.js +0 -2
  47. package/dist/app/modules/domain/user/detail.d.ts +0 -20
  48. package/dist/app/modules/domain/user/detail.js +0 -2
  49. package/dist/app/modules/domain/user/index.d.ts +0 -4
  50. package/dist/app/modules/domain/user/index.js +0 -5
  51. package/dist/app/modules/domain/user/role.d.ts +0 -15
  52. package/dist/app/modules/domain/user/role.js +0 -10
  53. package/dist/app/modules/domain/user/user.d.ts +0 -21
  54. package/dist/app/modules/domain/user/user.js +0 -2
  55. package/dist/app/modules/domain/ventures/category.d.ts +0 -13
  56. package/dist/app/modules/domain/ventures/category.js +0 -2
  57. package/dist/app/modules/domain/ventures/contact.d.ts +0 -9
  58. package/dist/app/modules/domain/ventures/contact.js +0 -2
  59. package/dist/app/modules/domain/ventures/detail.d.ts +0 -13
  60. package/dist/app/modules/domain/ventures/detail.js +0 -2
  61. package/dist/app/modules/domain/ventures/index.d.ts +0 -5
  62. package/dist/app/modules/domain/ventures/index.js +0 -2
  63. package/dist/app/modules/domain/ventures/location.d.ts +0 -10
  64. package/dist/app/modules/domain/ventures/location.js +0 -2
  65. package/dist/app/modules/domain/ventures/subscription.d.ts +0 -8
  66. package/dist/app/modules/domain/ventures/subscription.js +0 -2
  67. package/dist/app/modules/domain/ventures/venture.d.ts +0 -49
  68. package/dist/app/modules/domain/ventures/venture.js +0 -2
  69. package/dist/app/modules/infrastructure/database/entities/department.data.d.ts +0 -8
  70. package/dist/app/modules/infrastructure/database/entities/department.data.js +0 -47
  71. package/dist/app/modules/infrastructure/database/entities/event-category.data.d.ts +0 -10
  72. package/dist/app/modules/infrastructure/database/entities/event-category.data.js +0 -62
  73. package/dist/app/modules/infrastructure/database/entities/event-contact.data.d.ts +0 -7
  74. package/dist/app/modules/infrastructure/database/entities/event-contact.data.js +0 -40
  75. package/dist/app/modules/infrastructure/database/entities/event-donation.data.d.ts +0 -10
  76. package/dist/app/modules/infrastructure/database/entities/event-donation.data.js +0 -53
  77. package/dist/app/modules/infrastructure/database/entities/event-location.data.d.ts +0 -8
  78. package/dist/app/modules/infrastructure/database/entities/event-location.data.js +0 -45
  79. package/dist/app/modules/infrastructure/database/entities/index.d.ts +0 -23
  80. package/dist/app/modules/infrastructure/database/entities/index.js +0 -49
  81. package/dist/app/modules/infrastructure/database/entities/municipality.data.d.ts +0 -10
  82. package/dist/app/modules/infrastructure/database/entities/municipality.data.js +0 -52
  83. package/dist/app/modules/infrastructure/database/entities/notification.data.d.ts +0 -14
  84. package/dist/app/modules/infrastructure/database/entities/notification.data.js +0 -68
  85. package/dist/app/modules/infrastructure/database/entities/publication-clap.data.d.ts +0 -8
  86. package/dist/app/modules/infrastructure/database/entities/publication-clap.data.js +0 -43
  87. package/dist/app/modules/infrastructure/database/entities/publication-comment.data.d.ts +0 -9
  88. package/dist/app/modules/infrastructure/database/entities/publication-comment.data.js +0 -48
  89. package/dist/app/modules/infrastructure/database/entities/publication-content.data.d.ts +0 -10
  90. package/dist/app/modules/infrastructure/database/entities/publication-content.data.js +0 -52
  91. package/dist/app/modules/infrastructure/database/entities/role.data.d.ts +0 -10
  92. package/dist/app/modules/infrastructure/database/entities/role.data.js +0 -51
  93. package/dist/app/modules/infrastructure/database/entities/user-contact.data.d.ts +0 -13
  94. package/dist/app/modules/infrastructure/database/entities/user-contact.data.js +0 -70
  95. package/dist/app/modules/infrastructure/database/entities/user-detail.data.d.ts +0 -23
  96. package/dist/app/modules/infrastructure/database/entities/user-detail.data.js +0 -89
  97. package/dist/app/modules/infrastructure/database/entities/user.data.d.ts +0 -20
  98. package/dist/app/modules/infrastructure/database/entities/user.data.js +0 -97
  99. package/dist/app/modules/infrastructure/database/entities/venture-category.data.d.ts +0 -12
  100. package/dist/app/modules/infrastructure/database/entities/venture-category.data.js +0 -61
  101. package/dist/app/modules/infrastructure/database/entities/venture-contact.data.d.ts +0 -9
  102. package/dist/app/modules/infrastructure/database/entities/venture-contact.data.js +0 -50
  103. package/dist/app/modules/infrastructure/database/entities/venture-detail.data.d.ts +0 -15
  104. package/dist/app/modules/infrastructure/database/entities/venture-detail.data.js +0 -64
  105. package/dist/app/modules/infrastructure/database/entities/venture-event.data.d.ts +0 -21
  106. package/dist/app/modules/infrastructure/database/entities/venture-event.data.js +0 -101
  107. package/dist/app/modules/infrastructure/database/entities/venture-location.data.d.ts +0 -10
  108. package/dist/app/modules/infrastructure/database/entities/venture-location.data.js +0 -51
  109. package/dist/app/modules/infrastructure/database/entities/venture-publication.data.d.ts +0 -18
  110. package/dist/app/modules/infrastructure/database/entities/venture-publication.data.js +0 -80
  111. package/dist/app/modules/infrastructure/database/entities/venture-sponsorship.data.d.ts +0 -10
  112. package/dist/app/modules/infrastructure/database/entities/venture-sponsorship.data.js +0 -53
  113. package/dist/app/modules/infrastructure/database/entities/venture-subscription.data.d.ts +0 -8
  114. package/dist/app/modules/infrastructure/database/entities/venture-subscription.data.js +0 -43
  115. package/dist/app/modules/infrastructure/database/entities/venture.data.d.ts +0 -21
  116. package/dist/app/modules/infrastructure/database/entities/venture.data.js +0 -105
  117. package/dist/app/modules/utilities/index.d.ts +0 -3
  118. package/dist/app/modules/utilities/index.js +0 -2
  119. package/dist/app/modules/utilities/object-utilities.d.ts +0 -16
  120. package/dist/app/modules/utilities/object-utilities.js +0 -2
  121. package/dist/index.d.ts +0 -11
  122. package/dist/index.js +0 -27
@@ -1,48 +0,0 @@
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.PublicationCommentData = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const user_detail_data_1 = require("./user-detail.data");
15
- const venture_publication_data_1 = require("./venture-publication.data");
16
- let PublicationCommentData = class PublicationCommentData {
17
- id;
18
- author;
19
- content;
20
- publication;
21
- createdAt;
22
- };
23
- exports.PublicationCommentData = PublicationCommentData;
24
- __decorate([
25
- (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
26
- __metadata("design:type", String)
27
- ], PublicationCommentData.prototype, "id", void 0);
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)
32
- ], PublicationCommentData.prototype, "author", void 0);
33
- __decorate([
34
- (0, typeorm_1.Column)(),
35
- __metadata("design:type", String)
36
- ], PublicationCommentData.prototype, "content", void 0);
37
- __decorate([
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);
42
- __decorate([
43
- (0, typeorm_1.CreateDateColumn)(),
44
- __metadata("design:type", Date)
45
- ], PublicationCommentData.prototype, "createdAt", void 0);
46
- exports.PublicationCommentData = PublicationCommentData = __decorate([
47
- (0, typeorm_1.Entity)({ name: "publication_comment" })
48
- ], PublicationCommentData);
@@ -1,10 +0,0 @@
1
- import { ContentType } from "../../../domain/shared";
2
- import { VenturePublicationData } from "./venture-publication.data";
3
- export declare class PublicationContentData {
4
- id: string;
5
- type: ContentType;
6
- content: string;
7
- createdAt: Date;
8
- updatedAt: Date;
9
- publication: VenturePublicationData;
10
- }
@@ -1,52 +0,0 @@
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.PublicationContentData = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const shared_1 = require("../../../domain/shared");
15
- const venture_publication_data_1 = require("./venture-publication.data");
16
- let PublicationContentData = class PublicationContentData {
17
- id;
18
- type;
19
- content;
20
- createdAt;
21
- updatedAt;
22
- publication;
23
- };
24
- exports.PublicationContentData = PublicationContentData;
25
- __decorate([
26
- (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
27
- __metadata("design:type", String)
28
- ], PublicationContentData.prototype, "id", void 0);
29
- __decorate([
30
- (0, typeorm_1.Column)({ type: "enum", enum: shared_1.ContentType }),
31
- __metadata("design:type", String)
32
- ], PublicationContentData.prototype, "type", void 0);
33
- __decorate([
34
- (0, typeorm_1.Column)(),
35
- __metadata("design:type", String)
36
- ], PublicationContentData.prototype, "content", void 0);
37
- __decorate([
38
- (0, typeorm_1.CreateDateColumn)(),
39
- __metadata("design:type", Date)
40
- ], PublicationContentData.prototype, "createdAt", void 0);
41
- __decorate([
42
- (0, typeorm_1.UpdateDateColumn)(),
43
- __metadata("design:type", Date)
44
- ], PublicationContentData.prototype, "updatedAt", void 0);
45
- __decorate([
46
- (0, typeorm_1.ManyToOne)(() => venture_publication_data_1.VenturePublicationData, (venturePublication) => venturePublication.contents),
47
- (0, typeorm_1.JoinColumn)({ name: "publicationId" }),
48
- __metadata("design:type", venture_publication_data_1.VenturePublicationData)
49
- ], PublicationContentData.prototype, "publication", void 0);
50
- exports.PublicationContentData = PublicationContentData = __decorate([
51
- (0, typeorm_1.Entity)({ name: "publication_content" })
52
- ], PublicationContentData);
@@ -1,10 +0,0 @@
1
- import { AppRole } from "../../../domain/user";
2
- import { UserData } from "./user.data";
3
- export declare class RoleData {
4
- id: string;
5
- name: AppRole;
6
- label: string;
7
- createdAt: Date;
8
- updatedAt: Date;
9
- users?: UserData[];
10
- }
@@ -1,51 +0,0 @@
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.RoleData = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const user_1 = require("../../../domain/user");
15
- const user_data_1 = require("./user.data");
16
- let RoleData = class RoleData {
17
- id;
18
- name;
19
- label;
20
- createdAt;
21
- updatedAt;
22
- users;
23
- };
24
- exports.RoleData = RoleData;
25
- __decorate([
26
- (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
27
- __metadata("design:type", String)
28
- ], RoleData.prototype, "id", void 0);
29
- __decorate([
30
- (0, typeorm_1.Column)({ type: "enum", enum: user_1.AppRole, unique: true }),
31
- __metadata("design:type", String)
32
- ], RoleData.prototype, "name", void 0);
33
- __decorate([
34
- (0, typeorm_1.Column)({ default: "" }),
35
- __metadata("design:type", String)
36
- ], RoleData.prototype, "label", void 0);
37
- __decorate([
38
- (0, typeorm_1.CreateDateColumn)(),
39
- __metadata("design:type", Date)
40
- ], RoleData.prototype, "createdAt", void 0);
41
- __decorate([
42
- (0, typeorm_1.UpdateDateColumn)(),
43
- __metadata("design:type", Date)
44
- ], RoleData.prototype, "updatedAt", void 0);
45
- __decorate([
46
- (0, typeorm_1.ManyToMany)(() => user_data_1.UserData, (user) => user.roles, { eager: false }),
47
- __metadata("design:type", Array)
48
- ], RoleData.prototype, "users", void 0);
49
- exports.RoleData = RoleData = __decorate([
50
- (0, typeorm_1.Entity)({ name: "role" })
51
- ], RoleData);
@@ -1,13 +0,0 @@
1
- import { UserData } from "./user.data";
2
- export declare class UserContactData {
3
- id: string;
4
- phoneNumber: string;
5
- address: string;
6
- facebookUrl: string;
7
- linkedinUrl: string;
8
- twitterUrl: string;
9
- instagramUrl: string;
10
- createdAt: Date;
11
- updatedAt: Date;
12
- user?: UserData;
13
- }
@@ -1,70 +0,0 @@
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);
@@ -1,23 +0,0 @@
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";
6
- import { UserData } from "./user.data";
7
- import { VentureSponsorshipData } from "./venture-sponsorship.data";
8
- import { VentureSubscriptionData } from "./venture-subscription.data";
9
- import { VentureData } from "./venture.data";
10
- export declare class UserDetailData {
11
- id: string;
12
- gender: "M" | "F" | "O";
13
- birthDate: Date;
14
- user?: UserData;
15
- municipality?: MunicipalityData;
16
- comments: PublicationCommentData[];
17
- donations: EventDonationData[];
18
- notifications: NotificationData[];
19
- publicationClaps: PublicationClapData[];
20
- sponsorships: VentureSponsorshipData[];
21
- subscriptions: VentureSubscriptionData[];
22
- ventures: VentureData[];
23
- }
@@ -1,89 +0,0 @@
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);
@@ -1,20 +0,0 @@
1
- import { RoleData } from "./role.data";
2
- import { UserContactData } from "./user-contact.data";
3
- import { UserDetailData } from "./user-detail.data";
4
- import { VentureCategoryData } from "./venture-category.data";
5
- export declare class UserData {
6
- id: string;
7
- picture: string;
8
- email: string;
9
- firstName: string;
10
- lastName: string;
11
- active: boolean;
12
- createdAt: Date;
13
- updatedAt: Date;
14
- onboardingCompleted: boolean;
15
- verified: boolean;
16
- contact?: UserContactData;
17
- detail?: UserDetailData;
18
- preferences: VentureCategoryData[];
19
- roles: RoleData[];
20
- }
@@ -1,97 +0,0 @@
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);
@@ -1,12 +0,0 @@
1
- import { UserData } from "./user.data";
2
- import { VentureData } from "./venture.data";
3
- export declare class VentureCategoryData {
4
- id: string;
5
- name: string;
6
- slug: string;
7
- description: string;
8
- createdAt: Date;
9
- updatedAt: Date;
10
- users?: UserData[];
11
- ventures?: VentureData[];
12
- }
@@ -1,61 +0,0 @@
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);
@@ -1,9 +0,0 @@
1
- import { VentureData } from "./venture.data";
2
- export declare class VentureContactData {
3
- id: string;
4
- email: string;
5
- phoneNumber: string;
6
- createdAt: Date;
7
- updatedAt: Date;
8
- Venture?: VentureData;
9
- }
@@ -1,50 +0,0 @@
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);
@@ -1,15 +0,0 @@
1
- import { VentureEventData } from "./venture-event.data";
2
- import { VenturePublicationData } from "./venture-publication.data";
3
- import { VentureSponsorshipData } from "./venture-sponsorship.data";
4
- import { VentureSubscriptionData } from "./venture-subscription.data";
5
- import { VentureData } from "./venture.data";
6
- export declare class VentureDetailData {
7
- id: string;
8
- createdAt: Date;
9
- updatedAt: Date;
10
- venture?: VentureData;
11
- events: VentureEventData[];
12
- publications: VenturePublicationData[];
13
- sponsorships: VentureSponsorshipData[];
14
- subscriptions: VentureSubscriptionData[];
15
- }