echadospalante-core 11.3.4 → 12.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 (63) hide show
  1. package/dist/app/modules/domain/auth/index.d.ts +3 -0
  2. package/dist/app/modules/domain/contributions/donation.d.ts +10 -0
  3. package/dist/app/modules/domain/contributions/index.d.ts +2 -0
  4. package/dist/app/modules/domain/contributions/sponsor.d.ts +10 -0
  5. package/dist/app/modules/domain/events/event-category.d.ts +10 -0
  6. package/dist/app/modules/domain/events/event-contact.d.ts +7 -0
  7. package/dist/app/modules/domain/events/event-contact.js +2 -0
  8. package/dist/app/modules/domain/events/event-location.d.ts +8 -0
  9. package/dist/app/modules/domain/events/event.d.ts +39 -0
  10. package/dist/app/modules/domain/events/event.js +2 -0
  11. package/dist/app/modules/domain/events/index.d.ts +4 -0
  12. package/dist/app/modules/domain/events/index.js +2 -0
  13. package/dist/app/modules/domain/notifications/index.d.ts +2 -0
  14. package/dist/app/modules/domain/notifications/notification.d.ts +25 -0
  15. package/dist/app/modules/domain/publications/clap.d.ts +8 -0
  16. package/dist/app/modules/domain/publications/comment.d.ts +9 -0
  17. package/dist/app/modules/domain/publications/content.d.ts +10 -0
  18. package/dist/app/modules/domain/publications/index.d.ts +6 -0
  19. package/dist/app/modules/domain/publications/publication.d.ts +27 -0
  20. package/dist/app/modules/domain/shared/geo.d.ts +16 -0
  21. package/dist/app/modules/domain/user/contact.d.ts +13 -0
  22. package/dist/app/modules/domain/user/detail.d.ts +20 -0
  23. package/dist/app/modules/domain/user/index.d.ts +4 -0
  24. package/dist/app/modules/domain/user/role.d.ts +15 -0
  25. package/dist/app/modules/domain/user/user.d.ts +21 -0
  26. package/dist/app/modules/domain/ventures/category.d.ts +13 -0
  27. package/dist/app/modules/domain/ventures/contact.d.ts +9 -0
  28. package/dist/app/modules/domain/ventures/detail.d.ts +13 -0
  29. package/dist/app/modules/domain/ventures/index.d.ts +5 -0
  30. package/dist/app/modules/domain/ventures/location.d.ts +10 -0
  31. package/dist/app/modules/domain/ventures/subscription.d.ts +8 -0
  32. package/dist/app/modules/domain/ventures/venture.d.ts +49 -0
  33. package/dist/app/modules/infrastructure/database/entities/department.data.d.ts +8 -0
  34. package/dist/app/modules/infrastructure/database/entities/event-category.data.d.ts +10 -0
  35. package/dist/app/modules/infrastructure/database/entities/event-contact.data.d.ts +7 -0
  36. package/dist/app/modules/infrastructure/database/entities/event-contact.data.js +40 -0
  37. package/dist/app/modules/infrastructure/database/entities/event-donation.data.d.ts +10 -0
  38. package/dist/app/modules/infrastructure/database/entities/event-location.data.d.ts +8 -0
  39. package/dist/app/modules/infrastructure/database/entities/index.d.ts +23 -0
  40. package/dist/app/modules/infrastructure/database/entities/index.js +49 -0
  41. package/dist/app/modules/infrastructure/database/entities/municipality.data.d.ts +10 -0
  42. package/dist/app/modules/infrastructure/database/entities/notification.data.d.ts +14 -0
  43. package/dist/app/modules/infrastructure/database/entities/publication-clap.data.d.ts +8 -0
  44. package/dist/app/modules/infrastructure/database/entities/publication-comment.data.d.ts +9 -0
  45. package/dist/app/modules/infrastructure/database/entities/publication-content.data.d.ts +10 -0
  46. package/dist/app/modules/infrastructure/database/entities/role.data.d.ts +10 -0
  47. package/dist/app/modules/infrastructure/database/entities/user-contact.data.d.ts +13 -0
  48. package/dist/app/modules/infrastructure/database/entities/user-detail.data.d.ts +23 -0
  49. package/dist/app/modules/infrastructure/database/entities/user.data.d.ts +20 -0
  50. package/dist/app/modules/infrastructure/database/entities/venture-category.data.d.ts +12 -0
  51. package/dist/app/modules/infrastructure/database/entities/venture-contact.data.d.ts +9 -0
  52. package/dist/app/modules/infrastructure/database/entities/venture-detail.data.d.ts +15 -0
  53. package/dist/app/modules/infrastructure/database/entities/venture-event.data.d.ts +21 -0
  54. package/dist/app/modules/infrastructure/database/entities/venture-event.data.js +101 -0
  55. package/dist/app/modules/infrastructure/database/entities/venture-location.data.d.ts +10 -0
  56. package/dist/app/modules/infrastructure/database/entities/venture-publication.data.d.ts +18 -0
  57. package/dist/app/modules/infrastructure/database/entities/venture-sponsorship.data.d.ts +10 -0
  58. package/dist/app/modules/infrastructure/database/entities/venture-subscription.data.d.ts +8 -0
  59. package/dist/app/modules/infrastructure/database/entities/venture.data.d.ts +21 -0
  60. package/dist/index.d.ts +11 -0
  61. package/package.json +1 -1
  62. package/src/app/modules/domain/events/event-contact.ts +2 -2
  63. package/src/app/modules/infrastructure/database/entities/event-contact.data.ts +2 -2
@@ -0,0 +1,3 @@
1
+ export { User } from "../user/user";
2
+ export { Role } from "../user/role";
3
+ export { AccessTokenPayload } from "./token-payload";
@@ -0,0 +1,10 @@
1
+ import { VentureEvent } from "../events/event";
2
+ import { UserDetail } from "../user";
3
+ export interface EventDonation {
4
+ id: string;
5
+ amount: number;
6
+ currency: string;
7
+ createdAt: Date;
8
+ donor: UserDetail;
9
+ event: VentureEvent;
10
+ }
@@ -0,0 +1,2 @@
1
+ export { EventDonation } from "./donation";
2
+ export { VentureSponsorship } from "./sponsor";
@@ -0,0 +1,10 @@
1
+ import { UserDetail } from "../user";
2
+ import { VentureDetail } from "../ventures";
3
+ export interface VentureSponsorship {
4
+ id: string;
5
+ sponsor?: UserDetail;
6
+ venture?: VentureDetail;
7
+ monthlyAmount: number;
8
+ createdAt: Date;
9
+ updatedAt: Date;
10
+ }
@@ -0,0 +1,10 @@
1
+ import { VentureEvent } from "./event";
2
+ export interface EventCategory {
3
+ id: string;
4
+ name: string;
5
+ slug: string;
6
+ description: string;
7
+ events: VentureEvent[];
8
+ createdAt: Date;
9
+ updatedAt: Date;
10
+ }
@@ -0,0 +1,7 @@
1
+ import { VentureEvent } from "./event";
2
+ export interface EventContact {
3
+ id: string;
4
+ email?: string;
5
+ phoneNumber?: string;
6
+ event?: VentureEvent;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { VentureEvent } from "./event";
2
+ export interface EventLocation {
3
+ id: string;
4
+ lat?: number;
5
+ lng?: number;
6
+ description?: string;
7
+ event?: VentureEvent;
8
+ }
@@ -0,0 +1,39 @@
1
+ import { EventDonation } from "../contributions";
2
+ import { VentureDetail } from "../ventures";
3
+ import { EventCategory } from "./event-category";
4
+ import { EventContact } from "./event-contact";
5
+ import { EventLocation } from "./event-location";
6
+ export interface VentureEvent {
7
+ id: string;
8
+ title: string;
9
+ slug: string;
10
+ description: string;
11
+ coverPhoto: string;
12
+ ventureDetail?: VentureDetail;
13
+ location: EventLocation;
14
+ contact: EventContact;
15
+ categories: EventCategory[];
16
+ donations: EventDonation[];
17
+ startDate: Date;
18
+ endDate: Date;
19
+ createdAt: Date;
20
+ updatedAt: Date;
21
+ }
22
+ export interface EventCreate {
23
+ title: string;
24
+ description: string;
25
+ coverPhoto: string;
26
+ location: EventLocation;
27
+ categoriesIds: string[];
28
+ startDate: Date;
29
+ contactEmail?: string;
30
+ contactPhoneNumber?: string;
31
+ endDate: Date;
32
+ }
33
+ export interface EventUpdate {
34
+ coverPhoto: string;
35
+ location: EventLocation;
36
+ categoriesIds: string[];
37
+ startDate: Date;
38
+ endDate: Date;
39
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export { EventCreate, EventUpdate, VentureEvent } from "./event";
2
+ export { EventCategory } from "./event-category";
3
+ export { EventContact } from "./event-contact";
4
+ export { EventLocation } from "./event-location";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { Notification } from "./notification";
2
+ export { NotificationType } from "./notification";
@@ -0,0 +1,25 @@
1
+ import { UserDetail } from "../user";
2
+ export interface Notification {
3
+ id: string;
4
+ title: string;
5
+ user: UserDetail;
6
+ type: NotificationType;
7
+ status: NotificationStatus;
8
+ description: string;
9
+ createdAt: Date;
10
+ updatedAt: Date;
11
+ }
12
+ export declare enum NotificationType {
13
+ WELCOME = "WELCOME",
14
+ ACCOUNT_VERIFIED = "ACCOUNT_VERIFIED",
15
+ ACCOUNT_LOCKED = "ACCOUNT_LOCKED",
16
+ ACCOUNT_UNLOCKED = "ACCOUNT_UNLOCKED",
17
+ NEW_FOLLOWER = "NEW_FOLLOWER",
18
+ NEW_COMMENT = "NEW_COMMENT",
19
+ NEW_SPONSOR = "NEW_SPONSOR",
20
+ NEW_DONATION = "NEW_DONATION"
21
+ }
22
+ export declare enum NotificationStatus {
23
+ READ = "READ",
24
+ UNREAD = "UNREAD"
25
+ }
@@ -0,0 +1,8 @@
1
+ import { UserDetail } from "../user";
2
+ import { VenturePublication } from "./publication";
3
+ export interface PublicationClap {
4
+ id: string;
5
+ user: UserDetail;
6
+ publication: VenturePublication;
7
+ createdAt: Date;
8
+ }
@@ -0,0 +1,9 @@
1
+ import { UserDetail } from "../user";
2
+ import { VenturePublication } from "./publication";
3
+ export interface PublicationComment {
4
+ id: string;
5
+ author: UserDetail;
6
+ content: string;
7
+ publication: VenturePublication;
8
+ createdAt: Date;
9
+ }
@@ -0,0 +1,10 @@
1
+ import { ContentType } from "../shared";
2
+ import { VenturePublication } from "./publication";
3
+ export declare class PublicationContent {
4
+ id: string;
5
+ type: ContentType;
6
+ content: string;
7
+ createdAt: Date;
8
+ updatedAt: Date;
9
+ publication: VenturePublication;
10
+ }
@@ -0,0 +1,6 @@
1
+ export { EventCategory } from "../events/event-category";
2
+ export { PublicationClap } from "./clap";
3
+ export { PublicationComment } from "./comment";
4
+ export { VentureEvent } from "../events/event";
5
+ export { EventLocation } from "../events/event-location";
6
+ export { PublicationContent, PublicationType, VenturePublication, } from "./publication";
@@ -0,0 +1,27 @@
1
+ import { ContentType } from "../shared";
2
+ import { Venture } from "../ventures/venture";
3
+ import { PublicationClap } from "./clap";
4
+ import { PublicationComment } from "./comment";
5
+ export interface VenturePublication {
6
+ id: string;
7
+ description: string;
8
+ active: boolean;
9
+ venture?: Venture;
10
+ type: PublicationType;
11
+ claps: PublicationClap[];
12
+ comments: PublicationComment[];
13
+ body: PublicationContent[];
14
+ createdAt: Date;
15
+ }
16
+ export declare enum PublicationType {
17
+ STANDARD = "STANDARD",
18
+ ANNOUNCEMENT = "ANNOUNCEMENT",
19
+ ACHIEVEMENT = "ACHIEVEMENT",
20
+ PROMOTION = "PROMOTION",
21
+ BEHIND_THE_SCENES = "BEHIND_THE_SCENES"
22
+ }
23
+ export interface PublicationContent {
24
+ id: string;
25
+ type: ContentType;
26
+ content: string;
27
+ }
@@ -0,0 +1,16 @@
1
+ import { UserDetail } from "../user";
2
+ export interface Department {
3
+ id: number;
4
+ name: string;
5
+ municipalities: Municipality[];
6
+ createdAt: Date;
7
+ updatedAt: Date;
8
+ }
9
+ export interface Municipality {
10
+ id: number;
11
+ name: string;
12
+ department: Department;
13
+ userDetails: UserDetail[];
14
+ createdAt: Date;
15
+ updatedAt: Date;
16
+ }
@@ -0,0 +1,13 @@
1
+ import { User } from "./user";
2
+ export interface UserContact {
3
+ id: string;
4
+ phoneNumber: string;
5
+ address: string;
6
+ facebookUrl: string;
7
+ linkedinUrl: string;
8
+ twitterUrl: string;
9
+ instagramUrl: string;
10
+ user?: User;
11
+ updatedAt: Date;
12
+ createdAt: Date;
13
+ }
@@ -0,0 +1,20 @@
1
+ import { EventDonation, VentureSponsorship } from "../contributions";
2
+ import { PublicationClap, PublicationComment } from "../publications";
3
+ import { Municipality } from "../shared/geo";
4
+ import { Venture, VentureSubscription } from "../ventures";
5
+ import { User } from "./user";
6
+ import { Notification } from "../notifications";
7
+ export interface UserDetail {
8
+ id: string;
9
+ gender: "M" | "F" | "O";
10
+ birthDate: Date;
11
+ user?: User;
12
+ municipality?: Municipality;
13
+ comments: PublicationComment[];
14
+ donations: EventDonation[];
15
+ notifications: Notification[];
16
+ publicationClaps: PublicationClap[];
17
+ sponsorships: VentureSponsorship[];
18
+ subscriptions: VentureSubscription[];
19
+ ventures: Venture[];
20
+ }
@@ -0,0 +1,4 @@
1
+ export { UserContact } from "./contact";
2
+ export { Role, AppRole } from "./role";
3
+ export { User, UserCreate } from "./user";
4
+ export { UserDetail } from "./detail";
@@ -0,0 +1,15 @@
1
+ import { User } from "./user";
2
+ export declare enum AppRole {
3
+ ADMIN = "ADMIN",
4
+ USER = "USER",
5
+ MODERATOR = "MODERATOR",
6
+ NEWS_WRITER = "NEWS_WRITER"
7
+ }
8
+ export interface Role {
9
+ id: string;
10
+ name: AppRole;
11
+ label: string;
12
+ createdAt: Date;
13
+ updatedAt: Date;
14
+ users?: User[];
15
+ }
@@ -0,0 +1,21 @@
1
+ import { VentureCategory } from "../ventures";
2
+ import { UserContact } from "./contact";
3
+ import { UserDetail } from "./detail";
4
+ import { Role } from "./role";
5
+ export interface User {
6
+ id: string;
7
+ picture: string;
8
+ email: string;
9
+ firstName: string;
10
+ lastName: string;
11
+ active: boolean;
12
+ contact?: UserContact;
13
+ detail?: UserDetail;
14
+ verified: boolean;
15
+ onboardingCompleted: boolean;
16
+ roles: Role[];
17
+ preferences: VentureCategory[];
18
+ createdAt: Date;
19
+ updatedAt: Date;
20
+ }
21
+ export type UserCreate = Pick<User, "email" | "firstName" | "lastName" | "picture">;
@@ -0,0 +1,13 @@
1
+ import { User } from "../auth";
2
+ import { Venture } from "./venture";
3
+ export interface VentureCategory {
4
+ id: string;
5
+ name: string;
6
+ slug: string;
7
+ description: string;
8
+ ventures?: Venture[];
9
+ users?: User[];
10
+ createdAt: Date;
11
+ updatedAt: Date;
12
+ }
13
+ export type VentureCategoryCreate = Pick<VentureCategory, "name" | "description">;
@@ -0,0 +1,9 @@
1
+ import { Venture } from "./venture";
2
+ export interface VentureContact {
3
+ id: string;
4
+ email: string;
5
+ phoneNumber: string;
6
+ venture?: Venture;
7
+ createdAt: Date;
8
+ updatedAt: Date;
9
+ }
@@ -0,0 +1,13 @@
1
+ import { VentureSponsorship } from "../contributions/sponsor";
2
+ import { VentureEvent } from "../events/event";
3
+ import { VenturePublication } from "../publications/publication";
4
+ import { VentureSubscription } from "./subscription";
5
+ import { Venture } from "./venture";
6
+ export interface VentureDetail {
7
+ id: string;
8
+ venture?: Venture;
9
+ events: VentureEvent[];
10
+ sponsorships: VentureSponsorship[];
11
+ subscriptions: VentureSubscription[];
12
+ publications: VenturePublication[];
13
+ }
@@ -0,0 +1,5 @@
1
+ export { VentureCategory } from "./category";
2
+ export { VentureDetail } from "./detail";
3
+ export { VentureSubscription } from "./subscription";
4
+ export { Venture, VentureCreate, VentureUpdate } from "./venture";
5
+ export { VentureCategoryCreate } from "./category";
@@ -0,0 +1,10 @@
1
+ import { Point } from "geojson";
2
+ import { Venture } from "./venture";
3
+ export interface VentureLocation {
4
+ id: string;
5
+ location?: Point;
6
+ description?: string;
7
+ createdAt: Date;
8
+ updatedAt: Date;
9
+ venture?: Venture;
10
+ }
@@ -0,0 +1,8 @@
1
+ import { UserDetail } from "../user";
2
+ import { VentureDetail } from "./detail";
3
+ export interface VentureSubscription {
4
+ id: string;
5
+ subscriber?: UserDetail;
6
+ venture?: VentureDetail;
7
+ createdAt: Date;
8
+ }
@@ -0,0 +1,49 @@
1
+ import { UserDetail } from "../user";
2
+ import { VentureCategory } from "./category";
3
+ import { VentureContact } from "./contact";
4
+ import { VentureDetail } from "./detail";
5
+ import { VentureLocation } from "./location";
6
+ export interface Venture {
7
+ id: string;
8
+ name: string;
9
+ slug: string;
10
+ coverPhoto: string;
11
+ description: string;
12
+ active: boolean;
13
+ verified: boolean;
14
+ detail?: VentureDetail;
15
+ ownerDetail?: UserDetail;
16
+ categories: VentureCategory[];
17
+ contact?: VentureContact;
18
+ location?: VentureLocation;
19
+ createdAt: Date;
20
+ updatedAt: Date;
21
+ }
22
+ export interface VentureCreate {
23
+ name: string;
24
+ description: string;
25
+ coverPhoto: string;
26
+ categoriesIds: string[];
27
+ contact?: {
28
+ email?: string;
29
+ phoneNumber?: string;
30
+ };
31
+ location?: {
32
+ lat?: number;
33
+ lng?: number;
34
+ description?: string;
35
+ };
36
+ }
37
+ export interface VentureUpdate {
38
+ coverPhoto: string;
39
+ categoriesIds: string[];
40
+ contact?: {
41
+ email?: string;
42
+ phoneNumber?: string;
43
+ };
44
+ location?: {
45
+ lat?: number;
46
+ lng?: number;
47
+ description?: string;
48
+ };
49
+ }
@@ -0,0 +1,8 @@
1
+ import { MunicipalityData } from "./municipality.data";
2
+ export declare class DepartmentData {
3
+ id: number;
4
+ name: string;
5
+ createdAt: Date;
6
+ updatedAt: Date;
7
+ municipalities: MunicipalityData[];
8
+ }
@@ -0,0 +1,10 @@
1
+ import { VentureEventData } from "./venture-event.data";
2
+ export declare class EventCategoryData {
3
+ id: string;
4
+ name: string;
5
+ slug: string;
6
+ description: string;
7
+ createdAt: Date;
8
+ updatedAt: Date;
9
+ events: VentureEventData[];
10
+ }
@@ -0,0 +1,7 @@
1
+ import { VentureEventData } from "./venture-event.data";
2
+ export declare class EventContactData {
3
+ id: string;
4
+ phoneNumber?: string;
5
+ email?: string;
6
+ event?: VentureEventData;
7
+ }
@@ -0,0 +1,40 @@
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.EventContactData = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const venture_event_data_1 = require("./venture-event.data");
15
+ let EventContactData = class EventContactData {
16
+ id;
17
+ phoneNumber;
18
+ email;
19
+ event;
20
+ };
21
+ exports.EventContactData = EventContactData;
22
+ __decorate([
23
+ (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
24
+ __metadata("design:type", String)
25
+ ], EventContactData.prototype, "id", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)("varchar", { nullable: true }),
28
+ __metadata("design:type", String)
29
+ ], EventContactData.prototype, "phoneNumber", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)("varchar", { nullable: true }),
32
+ __metadata("design:type", String)
33
+ ], EventContactData.prototype, "email", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.OneToOne)(() => venture_event_data_1.VentureEventData, (ventureEvent) => ventureEvent.contact),
36
+ __metadata("design:type", venture_event_data_1.VentureEventData)
37
+ ], EventContactData.prototype, "event", void 0);
38
+ exports.EventContactData = EventContactData = __decorate([
39
+ (0, typeorm_1.Entity)({ name: "event_contact" })
40
+ ], EventContactData);
@@ -0,0 +1,10 @@
1
+ import { UserDetailData } from "./user-detail.data";
2
+ import { VentureEventData } from "./venture-event.data";
3
+ export declare class EventDonationData {
4
+ id: string;
5
+ currency: string;
6
+ amount: number;
7
+ createdAt: Date;
8
+ donor: UserDetailData;
9
+ event: VentureEventData;
10
+ }
@@ -0,0 +1,8 @@
1
+ import { VentureEventData } from "./venture-event.data";
2
+ export declare class EventLocationData {
3
+ id: string;
4
+ lat?: number;
5
+ lng?: number;
6
+ description?: string;
7
+ event?: VentureEventData;
8
+ }
@@ -0,0 +1,23 @@
1
+ export { DepartmentData } from "./department.data";
2
+ export { EventCategoryData } from "./event-category.data";
3
+ export { EventContactData } from "./event-contact.data";
4
+ export { EventDonationData } from "./event-donation.data";
5
+ export { EventLocationData } from "./event-location.data";
6
+ export { MunicipalityData } from "./municipality.data";
7
+ export { NotificationData } from "./notification.data";
8
+ export { PublicationClapData } from "./publication-clap.data";
9
+ export { PublicationCommentData } from "./publication-comment.data";
10
+ export { PublicationContentData } from "./publication-content.data";
11
+ export { RoleData } from "./role.data";
12
+ export { UserContactData } from "./user-contact.data";
13
+ export { UserDetailData } from "./user-detail.data";
14
+ export { UserData } from "./user.data";
15
+ export { VentureCategoryData } from "./venture-category.data";
16
+ export { VentureContactData } from "./venture-contact.data";
17
+ export { VentureDetailData } from "./venture-detail.data";
18
+ export { VentureEventData } from "./venture-event.data";
19
+ export { VentureLocationData } from "./venture-location.data";
20
+ export { VenturePublicationData } from "./venture-publication.data";
21
+ export { VentureSponsorshipData } from "./venture-sponsorship.data";
22
+ export { VentureSubscriptionData } from "./venture-subscription.data";
23
+ export { VentureData } from "./venture.data";
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VentureData = exports.VentureSubscriptionData = exports.VentureSponsorshipData = exports.VenturePublicationData = exports.VentureLocationData = exports.VentureEventData = exports.VentureDetailData = exports.VentureContactData = exports.VentureCategoryData = exports.UserData = exports.UserDetailData = exports.UserContactData = exports.RoleData = exports.PublicationContentData = exports.PublicationCommentData = exports.PublicationClapData = exports.NotificationData = exports.MunicipalityData = exports.EventLocationData = exports.EventDonationData = exports.EventContactData = exports.EventCategoryData = exports.DepartmentData = void 0;
4
+ var department_data_1 = require("./department.data");
5
+ Object.defineProperty(exports, "DepartmentData", { enumerable: true, get: function () { return department_data_1.DepartmentData; } });
6
+ var event_category_data_1 = require("./event-category.data");
7
+ Object.defineProperty(exports, "EventCategoryData", { enumerable: true, get: function () { return event_category_data_1.EventCategoryData; } });
8
+ var event_contact_data_1 = require("./event-contact.data");
9
+ Object.defineProperty(exports, "EventContactData", { enumerable: true, get: function () { return event_contact_data_1.EventContactData; } });
10
+ var event_donation_data_1 = require("./event-donation.data");
11
+ Object.defineProperty(exports, "EventDonationData", { enumerable: true, get: function () { return event_donation_data_1.EventDonationData; } });
12
+ var event_location_data_1 = require("./event-location.data");
13
+ Object.defineProperty(exports, "EventLocationData", { enumerable: true, get: function () { return event_location_data_1.EventLocationData; } });
14
+ var municipality_data_1 = require("./municipality.data");
15
+ Object.defineProperty(exports, "MunicipalityData", { enumerable: true, get: function () { return municipality_data_1.MunicipalityData; } });
16
+ var notification_data_1 = require("./notification.data");
17
+ Object.defineProperty(exports, "NotificationData", { enumerable: true, get: function () { return notification_data_1.NotificationData; } });
18
+ var publication_clap_data_1 = require("./publication-clap.data");
19
+ Object.defineProperty(exports, "PublicationClapData", { enumerable: true, get: function () { return publication_clap_data_1.PublicationClapData; } });
20
+ var publication_comment_data_1 = require("./publication-comment.data");
21
+ Object.defineProperty(exports, "PublicationCommentData", { enumerable: true, get: function () { return publication_comment_data_1.PublicationCommentData; } });
22
+ var publication_content_data_1 = require("./publication-content.data");
23
+ Object.defineProperty(exports, "PublicationContentData", { enumerable: true, get: function () { return publication_content_data_1.PublicationContentData; } });
24
+ var role_data_1 = require("./role.data");
25
+ Object.defineProperty(exports, "RoleData", { enumerable: true, get: function () { return role_data_1.RoleData; } });
26
+ var user_contact_data_1 = require("./user-contact.data");
27
+ Object.defineProperty(exports, "UserContactData", { enumerable: true, get: function () { return user_contact_data_1.UserContactData; } });
28
+ var user_detail_data_1 = require("./user-detail.data");
29
+ Object.defineProperty(exports, "UserDetailData", { enumerable: true, get: function () { return user_detail_data_1.UserDetailData; } });
30
+ var user_data_1 = require("./user.data");
31
+ Object.defineProperty(exports, "UserData", { enumerable: true, get: function () { return user_data_1.UserData; } });
32
+ var venture_category_data_1 = require("./venture-category.data");
33
+ Object.defineProperty(exports, "VentureCategoryData", { enumerable: true, get: function () { return venture_category_data_1.VentureCategoryData; } });
34
+ var venture_contact_data_1 = require("./venture-contact.data");
35
+ Object.defineProperty(exports, "VentureContactData", { enumerable: true, get: function () { return venture_contact_data_1.VentureContactData; } });
36
+ var venture_detail_data_1 = require("./venture-detail.data");
37
+ Object.defineProperty(exports, "VentureDetailData", { enumerable: true, get: function () { return venture_detail_data_1.VentureDetailData; } });
38
+ var venture_event_data_1 = require("./venture-event.data");
39
+ Object.defineProperty(exports, "VentureEventData", { enumerable: true, get: function () { return venture_event_data_1.VentureEventData; } });
40
+ var venture_location_data_1 = require("./venture-location.data");
41
+ Object.defineProperty(exports, "VentureLocationData", { enumerable: true, get: function () { return venture_location_data_1.VentureLocationData; } });
42
+ var venture_publication_data_1 = require("./venture-publication.data");
43
+ Object.defineProperty(exports, "VenturePublicationData", { enumerable: true, get: function () { return venture_publication_data_1.VenturePublicationData; } });
44
+ var venture_sponsorship_data_1 = require("./venture-sponsorship.data");
45
+ Object.defineProperty(exports, "VentureSponsorshipData", { enumerable: true, get: function () { return venture_sponsorship_data_1.VentureSponsorshipData; } });
46
+ var venture_subscription_data_1 = require("./venture-subscription.data");
47
+ Object.defineProperty(exports, "VentureSubscriptionData", { enumerable: true, get: function () { return venture_subscription_data_1.VentureSubscriptionData; } });
48
+ var venture_data_1 = require("./venture.data");
49
+ Object.defineProperty(exports, "VentureData", { enumerable: true, get: function () { return venture_data_1.VentureData; } });
@@ -0,0 +1,10 @@
1
+ import { DepartmentData } from "./department.data";
2
+ import { UserDetailData } from "./user-detail.data";
3
+ export declare class MunicipalityData {
4
+ id: number;
5
+ name: string;
6
+ createdAt: Date;
7
+ updatedAt: Date;
8
+ department: DepartmentData;
9
+ userDetails: UserDetailData[];
10
+ }
@@ -0,0 +1,14 @@
1
+ import { NotificationType } from "../../../domain/notifications";
2
+ import { NotificationStatus } from "../../../domain/notifications/notification";
3
+ import { UserDetailData } from "./user-detail.data";
4
+ export declare class NotificationData {
5
+ id: string;
6
+ title: string;
7
+ type: NotificationType;
8
+ status: NotificationStatus;
9
+ description: string;
10
+ createdAt: Date;
11
+ updatedAt: Date;
12
+ userDetailId: string;
13
+ user: UserDetailData;
14
+ }
@@ -0,0 +1,8 @@
1
+ import { UserDetailData } from "./user-detail.data";
2
+ import { VenturePublicationData } from "./venture-publication.data";
3
+ export declare class PublicationClapData {
4
+ id: string;
5
+ publication: VenturePublicationData;
6
+ user: UserDetailData;
7
+ createdAt: Date;
8
+ }
@@ -0,0 +1,9 @@
1
+ import { UserDetailData } from "./user-detail.data";
2
+ import { VenturePublicationData } from "./venture-publication.data";
3
+ export declare class PublicationCommentData {
4
+ id: string;
5
+ author: UserDetailData;
6
+ content: string;
7
+ publication: VenturePublicationData;
8
+ createdAt: Date;
9
+ }
@@ -0,0 +1,10 @@
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
+ }
@@ -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,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,23 @@
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
+ }
@@ -0,0 +1,20 @@
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
+ }
@@ -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,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,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
+ }
@@ -0,0 +1,21 @@
1
+ import { EventLocationData } from "./event-location.data";
2
+ import { EventDonationData } from "./event-donation.data";
3
+ import { VentureDetailData } from "./venture-detail.data";
4
+ import { EventCategoryData } from "./event-category.data";
5
+ import { EventContactData } from "./event-contact.data";
6
+ export declare class VentureEventData {
7
+ id: string;
8
+ title: string;
9
+ description: string;
10
+ coverPhoto: string;
11
+ slug: string;
12
+ ventureDetail?: VentureDetailData;
13
+ location: EventLocationData;
14
+ contact: EventContactData;
15
+ categories: EventCategoryData[];
16
+ donations: EventDonationData[];
17
+ startDate: Date;
18
+ endDate: Date;
19
+ createdAt: Date;
20
+ updatedAt: Date;
21
+ }
@@ -0,0 +1,101 @@
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.VentureEventData = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const event_location_data_1 = require("./event-location.data");
15
+ const event_donation_data_1 = require("./event-donation.data");
16
+ const venture_detail_data_1 = require("./venture-detail.data");
17
+ const event_category_data_1 = require("./event-category.data");
18
+ const event_contact_data_1 = require("./event-contact.data");
19
+ let VentureEventData = class VentureEventData {
20
+ id;
21
+ title;
22
+ description;
23
+ coverPhoto;
24
+ slug;
25
+ ventureDetail;
26
+ location;
27
+ contact;
28
+ categories;
29
+ donations;
30
+ startDate;
31
+ endDate;
32
+ createdAt;
33
+ updatedAt;
34
+ };
35
+ exports.VentureEventData = VentureEventData;
36
+ __decorate([
37
+ (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
38
+ __metadata("design:type", String)
39
+ ], VentureEventData.prototype, "id", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)(),
42
+ __metadata("design:type", String)
43
+ ], VentureEventData.prototype, "title", void 0);
44
+ __decorate([
45
+ (0, typeorm_1.Column)(),
46
+ __metadata("design:type", String)
47
+ ], VentureEventData.prototype, "description", void 0);
48
+ __decorate([
49
+ (0, typeorm_1.Column)(),
50
+ __metadata("design:type", String)
51
+ ], VentureEventData.prototype, "coverPhoto", void 0);
52
+ __decorate([
53
+ (0, typeorm_1.Column)({ type: "varchar", unique: true }),
54
+ __metadata("design:type", String)
55
+ ], VentureEventData.prototype, "slug", void 0);
56
+ __decorate([
57
+ (0, typeorm_1.ManyToOne)(() => venture_detail_data_1.VentureDetailData, (ventureDetail) => ventureDetail.events),
58
+ (0, typeorm_1.JoinColumn)({ name: "ventureId" }),
59
+ __metadata("design:type", venture_detail_data_1.VentureDetailData)
60
+ ], VentureEventData.prototype, "ventureDetail", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.JoinColumn)({ name: "locationId" }),
63
+ (0, typeorm_1.OneToOne)(() => event_location_data_1.EventLocationData, (eventLocation) => eventLocation.event, {
64
+ cascade: true,
65
+ }),
66
+ __metadata("design:type", event_location_data_1.EventLocationData)
67
+ ], VentureEventData.prototype, "location", void 0);
68
+ __decorate([
69
+ (0, typeorm_1.JoinColumn)({ name: "contactId" }),
70
+ (0, typeorm_1.OneToOne)(() => event_contact_data_1.EventContactData, (eventLocation) => eventLocation.event, {
71
+ cascade: true,
72
+ }),
73
+ __metadata("design:type", event_contact_data_1.EventContactData)
74
+ ], VentureEventData.prototype, "contact", void 0);
75
+ __decorate([
76
+ (0, typeorm_1.ManyToMany)(() => event_category_data_1.EventCategoryData, (eventCategory) => eventCategory.events),
77
+ __metadata("design:type", Array)
78
+ ], VentureEventData.prototype, "categories", void 0);
79
+ __decorate([
80
+ (0, typeorm_1.OneToMany)(() => event_donation_data_1.EventDonationData, (eventDonation) => eventDonation.event),
81
+ __metadata("design:type", Array)
82
+ ], VentureEventData.prototype, "donations", void 0);
83
+ __decorate([
84
+ (0, typeorm_1.Column)(),
85
+ __metadata("design:type", Date)
86
+ ], VentureEventData.prototype, "startDate", void 0);
87
+ __decorate([
88
+ (0, typeorm_1.Column)(),
89
+ __metadata("design:type", Date)
90
+ ], VentureEventData.prototype, "endDate", void 0);
91
+ __decorate([
92
+ (0, typeorm_1.CreateDateColumn)(),
93
+ __metadata("design:type", Date)
94
+ ], VentureEventData.prototype, "createdAt", void 0);
95
+ __decorate([
96
+ (0, typeorm_1.UpdateDateColumn)(),
97
+ __metadata("design:type", Date)
98
+ ], VentureEventData.prototype, "updatedAt", void 0);
99
+ exports.VentureEventData = VentureEventData = __decorate([
100
+ (0, typeorm_1.Entity)({ name: "venture_event" })
101
+ ], VentureEventData);
@@ -0,0 +1,10 @@
1
+ import { Point } from "geojson";
2
+ import { VentureData } from "./venture.data";
3
+ export declare class VentureLocationData {
4
+ id: string;
5
+ location: Point;
6
+ description?: string;
7
+ createdAt: Date;
8
+ updatedAt: Date;
9
+ Venture?: VentureData;
10
+ }
@@ -0,0 +1,18 @@
1
+ import { PublicationClapData } from "./publication-clap.data";
2
+ import { PublicationCommentData } from "./publication-comment.data";
3
+ import { VentureDetailData } from "./venture-detail.data";
4
+ import { PublicationContentData } from "./publication-content.data";
5
+ import { PublicationType } from "../../../domain/publications";
6
+ export declare class VenturePublicationData {
7
+ id: string;
8
+ description: string;
9
+ type: PublicationType;
10
+ clapsCount: number;
11
+ createdAt: Date;
12
+ updatedAt: Date;
13
+ detailId: string;
14
+ detail: VentureDetailData;
15
+ claps: PublicationClapData[];
16
+ comments: PublicationCommentData[];
17
+ contents: PublicationContentData[];
18
+ }
@@ -0,0 +1,10 @@
1
+ import { UserDetailData } from "./user-detail.data";
2
+ import { VentureDetailData } from "./venture-detail.data";
3
+ export declare class VentureSponsorshipData {
4
+ id: string;
5
+ monthlyAmount: number;
6
+ createdAt: Date;
7
+ updatedAt: Date;
8
+ sponsor?: UserDetailData;
9
+ detail?: VentureDetailData;
10
+ }
@@ -0,0 +1,8 @@
1
+ import { UserDetailData } from "./user-detail.data";
2
+ import { VentureDetailData } from "./venture-detail.data";
3
+ export declare class VentureSubscriptionData {
4
+ id: string;
5
+ createdAt: Date;
6
+ subscriber?: UserDetailData;
7
+ detail?: VentureDetailData;
8
+ }
@@ -0,0 +1,21 @@
1
+ import { VentureDetailData } from "./venture-detail.data";
2
+ import { VentureLocationData } from "./venture-location.data";
3
+ import { UserDetailData } from "./user-detail.data";
4
+ import { VentureContactData } from "./venture-contact.data";
5
+ import { VentureCategoryData } from "./venture-category.data";
6
+ export declare class VentureData {
7
+ id: string;
8
+ name: string;
9
+ slug: string;
10
+ coverPhoto: string;
11
+ description: string;
12
+ active: boolean;
13
+ verified: boolean;
14
+ createdAt: Date;
15
+ updatedAt: Date;
16
+ detail?: VentureDetailData;
17
+ location?: VentureLocationData;
18
+ ownerDetail?: UserDetailData;
19
+ contact?: VentureContactData;
20
+ categories: VentureCategoryData[];
21
+ }
@@ -0,0 +1,11 @@
1
+ import "reflect-metadata";
2
+ export * from "./app/modules/domain/auth";
3
+ export * from "./app/modules/domain/contributions";
4
+ export * from "./app/modules/domain/publications";
5
+ export * from "./app/modules/domain/notifications";
6
+ export * from "./app/modules/domain/shared";
7
+ export * from "./app/modules/domain/user";
8
+ export * from "./app/modules/domain/events";
9
+ export * from "./app/modules/domain/ventures";
10
+ export * from "./app/modules/infrastructure/database/entities";
11
+ export * from "./app/modules/utilities";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "echadospalante-core",
3
- "version": "11.3.4",
3
+ "version": "12.0.0",
4
4
  "description": "This package contains the core of the echadospalante project, it contains the domain entities, helpers, and other utilities that are shared between the different services.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -2,7 +2,7 @@ import { VentureEvent } from "./event";
2
2
 
3
3
  export interface EventContact {
4
4
  id: string;
5
- contactEmail?: string;
6
- contactPhoneNumber?: string;
5
+ email?: string;
6
+ phoneNumber?: string;
7
7
  event?: VentureEvent;
8
8
  }
@@ -7,10 +7,10 @@ export class EventContactData {
7
7
  id: string;
8
8
 
9
9
  @Column("varchar", { nullable: true })
10
- contactPhoneNumber?: string;
10
+ phoneNumber?: string;
11
11
 
12
12
  @Column("varchar", { nullable: true })
13
- contactEmail?: string;
13
+ email?: string;
14
14
 
15
15
  @OneToOne(() => VentureEventData, (ventureEvent) => ventureEvent.contact)
16
16
  event?: VentureEventData;