echadospalante-core 8.8.2 → 9.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 (186) hide show
  1. package/dist/app/modules/infrastructure/database/entities/department.data.d.ts +8 -0
  2. package/dist/app/modules/infrastructure/database/entities/department.data.js +45 -0
  3. package/dist/app/modules/infrastructure/database/entities/event-category.data.d.ts +10 -0
  4. package/dist/app/modules/infrastructure/database/entities/event-category.data.js +60 -0
  5. package/dist/app/modules/infrastructure/database/entities/event-donation.data.d.ts +12 -0
  6. package/dist/app/modules/infrastructure/database/entities/event-donation.data.js +63 -0
  7. package/dist/app/modules/infrastructure/database/entities/event-location.data.d.ts +8 -0
  8. package/dist/app/modules/infrastructure/database/entities/event-location.data.js +45 -0
  9. package/dist/app/modules/infrastructure/database/entities/index.d.ts +22 -0
  10. package/dist/app/modules/infrastructure/database/entities/index.js +47 -0
  11. package/dist/app/modules/infrastructure/database/entities/municipality.data.d.ts +11 -0
  12. package/dist/app/modules/infrastructure/database/entities/municipality.data.js +57 -0
  13. package/dist/app/modules/infrastructure/database/entities/notification.data.d.ts +14 -0
  14. package/dist/app/modules/infrastructure/database/entities/notification.data.js +68 -0
  15. package/dist/app/modules/infrastructure/database/entities/publication-clap.data.d.ts +10 -0
  16. package/dist/app/modules/infrastructure/database/entities/publication-clap.data.js +53 -0
  17. package/dist/app/modules/infrastructure/database/entities/publication-comment.data.d.ts +12 -0
  18. package/dist/app/modules/infrastructure/database/entities/publication-comment.data.js +63 -0
  19. package/dist/app/modules/infrastructure/database/entities/publication-content.data.d.ts +11 -0
  20. package/dist/app/modules/infrastructure/database/entities/publication-content.data.js +57 -0
  21. package/dist/app/modules/infrastructure/database/entities/role.data.d.ts +10 -0
  22. package/dist/app/modules/infrastructure/database/entities/role.data.js +51 -0
  23. package/dist/app/modules/infrastructure/database/entities/user-contact.data.d.ts +13 -0
  24. package/dist/app/modules/infrastructure/database/entities/user-contact.data.js +70 -0
  25. package/dist/app/modules/infrastructure/database/entities/user-detail.data.d.ts +24 -0
  26. package/dist/app/modules/infrastructure/database/entities/user-detail.data.js +94 -0
  27. package/dist/app/modules/infrastructure/database/entities/user.data.d.ts +22 -0
  28. package/dist/app/modules/infrastructure/database/entities/user.data.js +107 -0
  29. package/dist/app/modules/infrastructure/database/entities/venture-category.data.d.ts +12 -0
  30. package/dist/app/modules/infrastructure/database/entities/venture-category.data.js +61 -0
  31. package/dist/app/modules/infrastructure/database/entities/venture-contact.data.d.ts +9 -0
  32. package/dist/app/modules/infrastructure/database/entities/venture-contact.data.js +50 -0
  33. package/dist/app/modules/infrastructure/database/entities/venture-detail.data.d.ts +15 -0
  34. package/dist/app/modules/infrastructure/database/entities/venture-detail.data.js +64 -0
  35. package/dist/app/modules/infrastructure/database/entities/venture-event.data.d.ts +20 -0
  36. package/dist/app/modules/infrastructure/database/entities/venture-event.data.js +95 -0
  37. package/dist/app/modules/infrastructure/database/entities/venture-location.data.d.ts +11 -0
  38. package/dist/app/modules/infrastructure/database/entities/venture-location.data.js +60 -0
  39. package/dist/app/modules/infrastructure/database/entities/venture-publication.data.d.ts +18 -0
  40. package/dist/app/modules/infrastructure/database/entities/venture-publication.data.js +80 -0
  41. package/dist/app/modules/infrastructure/database/entities/venture-sponsorship.data.d.ts +12 -0
  42. package/dist/app/modules/infrastructure/database/entities/venture-sponsorship.data.js +63 -0
  43. package/dist/app/modules/infrastructure/database/entities/venture-subscription.data.d.ts +10 -0
  44. package/dist/app/modules/infrastructure/database/entities/venture-subscription.data.js +53 -0
  45. package/dist/app/modules/infrastructure/database/entities/venture-suscription.data.d.ts +10 -0
  46. package/dist/app/modules/infrastructure/database/entities/venture-suscription.data.js +53 -0
  47. package/dist/app/modules/infrastructure/database/entities/venture.data.d.ts +25 -0
  48. package/dist/app/modules/infrastructure/database/entities/venture.data.js +123 -0
  49. package/dist/app/modules/utilities/object-utilities.js +2 -0
  50. package/dist/index.d.ts +11 -9
  51. package/dist/index.js +11 -10
  52. package/package.json +7 -1
  53. package/src/app/modules/infrastructure/database/entities/department.data.ts +28 -0
  54. package/src/app/modules/infrastructure/database/entities/event-category.data.ts +43 -0
  55. package/src/app/modules/infrastructure/database/entities/event-donation.data.ts +40 -0
  56. package/src/app/modules/infrastructure/database/entities/event-location.data.ts +20 -0
  57. package/src/app/modules/infrastructure/database/entities/index.ts +22 -0
  58. package/src/app/modules/infrastructure/database/entities/municipality.data.ts +38 -0
  59. package/src/app/modules/infrastructure/database/entities/notification.data.ts +44 -0
  60. package/src/app/modules/infrastructure/database/entities/publication-clap.data.ts +37 -0
  61. package/src/app/modules/infrastructure/database/entities/publication-comment.data.ts +44 -0
  62. package/src/app/modules/infrastructure/database/entities/publication-content.data.ts +40 -0
  63. package/src/app/modules/infrastructure/database/entities/role.data.ts +32 -0
  64. package/src/app/modules/infrastructure/database/entities/user-contact.data.ts +43 -0
  65. package/src/app/modules/infrastructure/database/entities/user-detail.data.ts +75 -0
  66. package/src/app/modules/infrastructure/database/entities/user.data.ts +71 -0
  67. package/src/app/modules/infrastructure/database/entities/venture-category.data.ts +38 -0
  68. package/src/app/modules/infrastructure/database/entities/venture-contact.data.ts +30 -0
  69. package/src/app/modules/infrastructure/database/entities/venture-detail.data.ts +53 -0
  70. package/src/app/modules/infrastructure/database/entities/venture-event.data.ts +66 -0
  71. package/src/app/modules/infrastructure/database/entities/venture-location.data.ts +36 -0
  72. package/src/app/modules/infrastructure/database/entities/venture-publication.data.ts +65 -0
  73. package/src/app/modules/infrastructure/database/entities/venture-sponsorship.data.ts +43 -0
  74. package/src/app/modules/infrastructure/database/entities/venture-subscription.data.ts +37 -0
  75. package/src/app/modules/infrastructure/database/entities/venture.data.ts +92 -0
  76. package/src/index.ts +12 -10
  77. package/tsconfig.json +23 -106
  78. package/tsconfig.tsbuildinfo +1 -0
  79. package/dist/app/modules/shared/geo.js +0 -10
  80. /package/dist/app/modules/{auth → domain/auth}/index.d.ts +0 -0
  81. /package/dist/app/modules/{auth → domain/auth}/index.js +0 -0
  82. /package/dist/app/modules/{auth → domain/auth}/token-payload.d.ts +0 -0
  83. /package/dist/app/modules/{auth → domain/auth}/token-payload.js +0 -0
  84. /package/dist/app/modules/{donations → domain/donations}/donation.d.ts +0 -0
  85. /package/dist/app/modules/{donations → domain/donations}/donation.js +0 -0
  86. /package/dist/app/modules/{donations → domain/donations}/index.d.ts +0 -0
  87. /package/dist/app/modules/{donations → domain/donations}/index.js +0 -0
  88. /package/dist/app/modules/{donations → domain/donations}/sponsor.d.ts +0 -0
  89. /package/dist/app/modules/{donations → domain/donations}/sponsor.js +0 -0
  90. /package/dist/app/modules/{feeds → domain/feeds}/category.d.ts +0 -0
  91. /package/dist/app/modules/{feeds → domain/feeds}/category.js +0 -0
  92. /package/dist/app/modules/{feeds → domain/feeds}/clap.d.ts +0 -0
  93. /package/dist/app/modules/{feeds → domain/feeds}/clap.js +0 -0
  94. /package/dist/app/modules/{feeds → domain/feeds}/comment.d.ts +0 -0
  95. /package/dist/app/modules/{feeds → domain/feeds}/comment.js +0 -0
  96. /package/dist/app/modules/{feeds → domain/feeds}/event.d.ts +0 -0
  97. /package/dist/app/modules/{feeds → domain/feeds}/event.js +0 -0
  98. /package/dist/app/modules/{feeds → domain/feeds}/index.d.ts +0 -0
  99. /package/dist/app/modules/{feeds → domain/feeds}/index.js +0 -0
  100. /package/dist/app/modules/{feeds → domain/feeds}/location.d.ts +0 -0
  101. /package/dist/app/modules/{feeds → domain/feeds}/location.js +0 -0
  102. /package/dist/app/modules/{feeds → domain/feeds}/publication.d.ts +0 -0
  103. /package/dist/app/modules/{feeds → domain/feeds}/publication.js +0 -0
  104. /package/dist/app/modules/{news → domain/news}/category.d.ts +0 -0
  105. /package/dist/app/modules/{news → domain/news}/category.js +0 -0
  106. /package/dist/app/modules/{news → domain/news}/clap.d.ts +0 -0
  107. /package/dist/app/modules/{news → domain/news}/clap.js +0 -0
  108. /package/dist/app/modules/{news → domain/news}/index.d.ts +0 -0
  109. /package/dist/app/modules/{news → domain/news}/index.js +0 -0
  110. /package/dist/app/modules/{news → domain/news}/news.d.ts +0 -0
  111. /package/dist/app/modules/{news → domain/news}/news.js +0 -0
  112. /package/dist/app/modules/{notifications → domain/notifications}/index.d.ts +0 -0
  113. /package/dist/app/modules/{notifications → domain/notifications}/index.js +0 -0
  114. /package/dist/app/modules/{notifications → domain/notifications}/notification.d.ts +0 -0
  115. /package/dist/app/modules/{notifications → domain/notifications}/notification.js +0 -0
  116. /package/dist/app/modules/{shared → domain/shared}/content-type.d.ts +0 -0
  117. /package/dist/app/modules/{shared → domain/shared}/content-type.js +0 -0
  118. /package/dist/app/modules/{shared → domain/shared}/geo.d.ts +0 -0
  119. /package/dist/app/modules/{shared/pagination.js → domain/shared/geo.js} +0 -0
  120. /package/dist/app/modules/{shared → domain/shared}/index.d.ts +0 -0
  121. /package/dist/app/modules/{shared → domain/shared}/index.js +0 -0
  122. /package/dist/app/modules/{shared → domain/shared}/pagination.d.ts +0 -0
  123. /package/dist/app/modules/{user/contact.js → domain/shared/pagination.js} +0 -0
  124. /package/dist/app/modules/{user → domain/user}/contact.d.ts +0 -0
  125. /package/dist/app/modules/{ventures → domain/user}/contact.js +0 -0
  126. /package/dist/app/modules/{user → domain/user}/detail.d.ts +0 -0
  127. /package/dist/app/modules/{user → domain/user}/detail.js +0 -0
  128. /package/dist/app/modules/{user → domain/user}/index.d.ts +0 -0
  129. /package/dist/app/modules/{user → domain/user}/index.js +0 -0
  130. /package/dist/app/modules/{user → domain/user}/role.d.ts +0 -0
  131. /package/dist/app/modules/{user → domain/user}/role.js +0 -0
  132. /package/dist/app/modules/{user → domain/user}/user.d.ts +0 -0
  133. /package/dist/app/modules/{user → domain/user}/user.js +0 -0
  134. /package/dist/app/modules/{ventures → domain/ventures}/category.d.ts +0 -0
  135. /package/dist/app/modules/{ventures → domain/ventures}/category.js +0 -0
  136. /package/dist/app/modules/{ventures → domain/ventures}/contact.d.ts +0 -0
  137. /package/dist/app/modules/{utility/index.js → domain/ventures/contact.js} +0 -0
  138. /package/dist/app/modules/{ventures → domain/ventures}/detail.d.ts +0 -0
  139. /package/dist/app/modules/{ventures → domain/ventures}/detail.js +0 -0
  140. /package/dist/app/modules/{ventures → domain/ventures}/index.d.ts +0 -0
  141. /package/dist/app/modules/{ventures → domain/ventures}/index.js +0 -0
  142. /package/dist/app/modules/{ventures → domain/ventures}/location.d.ts +0 -0
  143. /package/dist/app/modules/{ventures → domain/ventures}/location.js +0 -0
  144. /package/dist/app/modules/{ventures → domain/ventures}/subscription.d.ts +0 -0
  145. /package/dist/app/modules/{ventures → domain/ventures}/subscription.js +0 -0
  146. /package/dist/app/modules/{ventures → domain/ventures}/venture.d.ts +0 -0
  147. /package/dist/app/modules/{ventures → domain/ventures}/venture.js +0 -0
  148. /package/dist/app/modules/{utility → utilities}/index.d.ts +0 -0
  149. /package/dist/app/modules/{utility/object-utilities.js → utilities/index.js} +0 -0
  150. /package/dist/app/modules/{utility → utilities}/object-utilities.d.ts +0 -0
  151. /package/src/app/modules/{auth → domain/auth}/index.ts +0 -0
  152. /package/src/app/modules/{auth → domain/auth}/token-payload.ts +0 -0
  153. /package/src/app/modules/{donations → domain/donations}/donation.ts +0 -0
  154. /package/src/app/modules/{donations → domain/donations}/index.ts +0 -0
  155. /package/src/app/modules/{donations → domain/donations}/sponsor.ts +0 -0
  156. /package/src/app/modules/{feeds → domain/feeds}/category.ts +0 -0
  157. /package/src/app/modules/{feeds → domain/feeds}/clap.ts +0 -0
  158. /package/src/app/modules/{feeds → domain/feeds}/comment.ts +0 -0
  159. /package/src/app/modules/{feeds → domain/feeds}/event.ts +0 -0
  160. /package/src/app/modules/{feeds → domain/feeds}/index.ts +0 -0
  161. /package/src/app/modules/{feeds → domain/feeds}/location.ts +0 -0
  162. /package/src/app/modules/{feeds → domain/feeds}/publication.ts +0 -0
  163. /package/src/app/modules/{news → domain/news}/category.ts +0 -0
  164. /package/src/app/modules/{news → domain/news}/clap.ts +0 -0
  165. /package/src/app/modules/{news → domain/news}/index.ts +0 -0
  166. /package/src/app/modules/{news → domain/news}/news.ts +0 -0
  167. /package/src/app/modules/{notifications → domain/notifications}/index.ts +0 -0
  168. /package/src/app/modules/{notifications → domain/notifications}/notification.ts +0 -0
  169. /package/src/app/modules/{shared → domain/shared}/content-type.ts +0 -0
  170. /package/src/app/modules/{shared → domain/shared}/geo.ts +0 -0
  171. /package/src/app/modules/{shared → domain/shared}/index.ts +0 -0
  172. /package/src/app/modules/{shared → domain/shared}/pagination.ts +0 -0
  173. /package/src/app/modules/{user → domain/user}/contact.ts +0 -0
  174. /package/src/app/modules/{user → domain/user}/detail.ts +0 -0
  175. /package/src/app/modules/{user → domain/user}/index.ts +0 -0
  176. /package/src/app/modules/{user → domain/user}/role.ts +0 -0
  177. /package/src/app/modules/{user → domain/user}/user.ts +0 -0
  178. /package/src/app/modules/{ventures → domain/ventures}/category.ts +0 -0
  179. /package/src/app/modules/{ventures → domain/ventures}/contact.ts +0 -0
  180. /package/src/app/modules/{ventures → domain/ventures}/detail.ts +0 -0
  181. /package/src/app/modules/{ventures → domain/ventures}/index.ts +0 -0
  182. /package/src/app/modules/{ventures → domain/ventures}/location.ts +0 -0
  183. /package/src/app/modules/{ventures → domain/ventures}/subscription.ts +0 -0
  184. /package/src/app/modules/{ventures → domain/ventures}/venture.ts +0 -0
  185. /package/src/app/modules/{utility → utilities}/index.ts +0 -0
  186. /package/src/app/modules/{utility → utilities}/object-utilities.ts +0 -0
@@ -0,0 +1,57 @@
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
+ publicationId;
21
+ createdAt;
22
+ updatedAt;
23
+ venturePublication;
24
+ };
25
+ exports.PublicationContentData = PublicationContentData;
26
+ __decorate([
27
+ (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
28
+ __metadata("design:type", String)
29
+ ], PublicationContentData.prototype, "id", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)({ type: "enum", enum: shared_1.ContentType }),
32
+ __metadata("design:type", String)
33
+ ], PublicationContentData.prototype, "type", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)(),
36
+ __metadata("design:type", String)
37
+ ], PublicationContentData.prototype, "content", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)(),
40
+ __metadata("design:type", String)
41
+ ], PublicationContentData.prototype, "publicationId", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.CreateDateColumn)(),
44
+ __metadata("design:type", Date)
45
+ ], PublicationContentData.prototype, "createdAt", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.UpdateDateColumn)(),
48
+ __metadata("design:type", Date)
49
+ ], PublicationContentData.prototype, "updatedAt", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.ManyToOne)(() => venture_publication_data_1.VenturePublicationData, (venturePublication) => venturePublication.contents),
52
+ (0, typeorm_1.JoinColumn)({ name: "publicationId" }),
53
+ __metadata("design:type", venture_publication_data_1.VenturePublicationData)
54
+ ], PublicationContentData.prototype, "venturePublication", void 0);
55
+ exports.PublicationContentData = PublicationContentData = __decorate([
56
+ (0, typeorm_1.Entity)()
57
+ ], PublicationContentData);
@@ -0,0 +1,10 @@
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
+ }
@@ -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.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),
47
+ __metadata("design:type", Array)
48
+ ], RoleData.prototype, "users", void 0);
49
+ exports.RoleData = RoleData = __decorate([
50
+ (0, typeorm_1.Entity)()
51
+ ], RoleData);
@@ -0,0 +1,13 @@
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
+ }
@@ -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)()
70
+ ], UserContactData);
@@ -0,0 +1,24 @@
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: string;
13
+ birthDate: Date;
14
+ municipalityId: number;
15
+ user: UserData;
16
+ municipality: MunicipalityData;
17
+ donations: EventDonationData[];
18
+ notifications: NotificationData[];
19
+ claps: PublicationClapData[];
20
+ comments: PublicationCommentData[];
21
+ ventures: VentureData[];
22
+ sponsorships: VentureSponsorshipData[];
23
+ subscriptions: VentureSubscriptionData[];
24
+ }
@@ -0,0 +1,94 @@
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
+ municipalityId;
28
+ user;
29
+ municipality;
30
+ donations;
31
+ notifications;
32
+ claps;
33
+ comments;
34
+ ventures;
35
+ sponsorships;
36
+ subscriptions;
37
+ };
38
+ exports.UserDetailData = UserDetailData;
39
+ __decorate([
40
+ (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
41
+ __metadata("design:type", String)
42
+ ], UserDetailData.prototype, "id", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)(),
45
+ __metadata("design:type", String)
46
+ ], UserDetailData.prototype, "gender", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)(),
49
+ __metadata("design:type", Date)
50
+ ], UserDetailData.prototype, "birthDate", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.Column)(),
53
+ __metadata("design:type", Number)
54
+ ], UserDetailData.prototype, "municipalityId", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.OneToOne)(() => user_data_1.UserData, (user) => user.detail),
57
+ __metadata("design:type", user_data_1.UserData)
58
+ ], UserDetailData.prototype, "user", void 0);
59
+ __decorate([
60
+ (0, typeorm_1.ManyToOne)(() => municipality_data_1.MunicipalityData, (municipality) => municipality.userDetails),
61
+ (0, typeorm_1.JoinColumn)({ name: "municipalityId" }),
62
+ __metadata("design:type", municipality_data_1.MunicipalityData)
63
+ ], UserDetailData.prototype, "municipality", void 0);
64
+ __decorate([
65
+ (0, typeorm_1.OneToMany)(() => event_donation_data_1.EventDonationData, (eventDonation) => eventDonation.donor),
66
+ __metadata("design:type", Array)
67
+ ], UserDetailData.prototype, "donations", void 0);
68
+ __decorate([
69
+ (0, typeorm_1.OneToMany)(() => notification_data_1.NotificationData, (notification) => notification.user),
70
+ __metadata("design:type", Array)
71
+ ], UserDetailData.prototype, "notifications", void 0);
72
+ __decorate([
73
+ (0, typeorm_1.OneToMany)(() => publication_clap_data_1.PublicationClapData, (publicationClap) => publicationClap.user),
74
+ __metadata("design:type", Array)
75
+ ], UserDetailData.prototype, "claps", void 0);
76
+ __decorate([
77
+ (0, typeorm_1.OneToMany)(() => publication_comment_data_1.PublicationCommentData, (publicationComment) => publicationComment.User),
78
+ __metadata("design:type", Array)
79
+ ], UserDetailData.prototype, "comments", void 0);
80
+ __decorate([
81
+ (0, typeorm_1.OneToMany)(() => venture_data_1.VentureData, (venture) => venture.ownerDetail),
82
+ __metadata("design:type", Array)
83
+ ], UserDetailData.prototype, "ventures", void 0);
84
+ __decorate([
85
+ (0, typeorm_1.OneToMany)(() => venture_sponsorship_data_1.VentureSponsorshipData, (ventureSponsorship) => ventureSponsorship.user),
86
+ __metadata("design:type", Array)
87
+ ], UserDetailData.prototype, "sponsorships", void 0);
88
+ __decorate([
89
+ (0, typeorm_1.OneToMany)(() => venture_subscription_data_1.VentureSubscriptionData, (ventureSubscription) => ventureSubscription.user),
90
+ __metadata("design:type", Array)
91
+ ], UserDetailData.prototype, "subscriptions", void 0);
92
+ exports.UserDetailData = UserDetailData = __decorate([
93
+ (0, typeorm_1.Entity)()
94
+ ], UserDetailData);
@@ -0,0 +1,22 @@
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
+ contactId?: string;
17
+ detailId?: string;
18
+ contact?: UserContactData;
19
+ detail?: UserDetailData;
20
+ preferences: VentureCategoryData[];
21
+ roles: RoleData[];
22
+ }
@@ -0,0 +1,107 @@
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
+ contactId;
30
+ detailId;
31
+ contact;
32
+ detail;
33
+ preferences;
34
+ roles;
35
+ };
36
+ exports.UserData = UserData;
37
+ __decorate([
38
+ (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
39
+ __metadata("design:type", String)
40
+ ], UserData.prototype, "id", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)(),
43
+ __metadata("design:type", String)
44
+ ], UserData.prototype, "picture", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ unique: true }),
47
+ __metadata("design:type", String)
48
+ ], UserData.prototype, "email", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)(),
51
+ __metadata("design:type", String)
52
+ ], UserData.prototype, "firstName", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)(),
55
+ __metadata("design:type", String)
56
+ ], UserData.prototype, "lastName", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ default: true }),
59
+ __metadata("design:type", Boolean)
60
+ ], UserData.prototype, "active", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.CreateDateColumn)(),
63
+ __metadata("design:type", Date)
64
+ ], UserData.prototype, "createdAt", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.UpdateDateColumn)(),
67
+ __metadata("design:type", Date)
68
+ ], UserData.prototype, "updatedAt", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({ default: false }),
71
+ __metadata("design:type", Boolean)
72
+ ], UserData.prototype, "onboardingCompleted", void 0);
73
+ __decorate([
74
+ (0, typeorm_1.Column)({ default: false }),
75
+ __metadata("design:type", Boolean)
76
+ ], UserData.prototype, "verified", void 0);
77
+ __decorate([
78
+ (0, typeorm_1.Column)({ nullable: true, unique: true }),
79
+ __metadata("design:type", String)
80
+ ], UserData.prototype, "contactId", void 0);
81
+ __decorate([
82
+ (0, typeorm_1.Column)({ nullable: true, unique: true }),
83
+ __metadata("design:type", String)
84
+ ], UserData.prototype, "detailId", void 0);
85
+ __decorate([
86
+ (0, typeorm_1.OneToOne)(() => user_contact_data_1.UserContactData, (contact) => contact.user),
87
+ (0, typeorm_1.JoinColumn)({ name: "contactId" }),
88
+ __metadata("design:type", user_contact_data_1.UserContactData)
89
+ ], UserData.prototype, "contact", void 0);
90
+ __decorate([
91
+ (0, typeorm_1.OneToOne)(() => user_detail_data_1.UserDetailData, (detail) => detail.user),
92
+ (0, typeorm_1.JoinColumn)({ name: "detailId" }),
93
+ __metadata("design:type", user_detail_data_1.UserDetailData)
94
+ ], UserData.prototype, "detail", void 0);
95
+ __decorate([
96
+ (0, typeorm_1.ManyToMany)(() => venture_category_data_1.VentureCategoryData, (vc) => vc.users),
97
+ (0, typeorm_1.JoinTable)({ name: "XUserPreferences" }),
98
+ __metadata("design:type", Array)
99
+ ], UserData.prototype, "preferences", void 0);
100
+ __decorate([
101
+ (0, typeorm_1.ManyToMany)(() => role_data_1.RoleData, (role) => role.users),
102
+ (0, typeorm_1.JoinTable)({ name: "XUserRoles" }),
103
+ __metadata("design:type", Array)
104
+ ], UserData.prototype, "roles", void 0);
105
+ exports.UserData = UserData = __decorate([
106
+ (0, typeorm_1.Entity)()
107
+ ], UserData);
@@ -0,0 +1,12 @@
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
+ }
@@ -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)()
61
+ ], VentureCategoryData);
@@ -0,0 +1,9 @@
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
+ }
@@ -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)()
50
+ ], VentureContactData);
@@ -0,0 +1,15 @@
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
+ }