echadospalante-core 11.3.3 → 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 (121) hide show
  1. package/package.json +1 -1
  2. package/dist/app/modules/domain/auth/index.d.ts +0 -3
  3. package/dist/app/modules/domain/auth/index.js +0 -2
  4. package/dist/app/modules/domain/auth/token-payload.d.ts +0 -5
  5. package/dist/app/modules/domain/auth/token-payload.js +0 -2
  6. package/dist/app/modules/domain/contributions/donation.d.ts +0 -10
  7. package/dist/app/modules/domain/contributions/donation.js +0 -2
  8. package/dist/app/modules/domain/contributions/index.d.ts +0 -2
  9. package/dist/app/modules/domain/contributions/index.js +0 -2
  10. package/dist/app/modules/domain/contributions/sponsor.d.ts +0 -10
  11. package/dist/app/modules/domain/contributions/sponsor.js +0 -2
  12. package/dist/app/modules/domain/events/event-category.d.ts +0 -10
  13. package/dist/app/modules/domain/events/event-category.js +0 -2
  14. package/dist/app/modules/domain/events/event-contact.d.ts +0 -7
  15. package/dist/app/modules/domain/events/event-contact.js +0 -2
  16. package/dist/app/modules/domain/events/event-location.d.ts +0 -8
  17. package/dist/app/modules/domain/events/event-location.js +0 -2
  18. package/dist/app/modules/domain/events/event.d.ts +0 -39
  19. package/dist/app/modules/domain/events/event.js +0 -2
  20. package/dist/app/modules/domain/events/index.d.ts +0 -4
  21. package/dist/app/modules/domain/events/index.js +0 -2
  22. package/dist/app/modules/domain/notifications/index.d.ts +0 -2
  23. package/dist/app/modules/domain/notifications/index.js +0 -5
  24. package/dist/app/modules/domain/notifications/notification.d.ts +0 -25
  25. package/dist/app/modules/domain/notifications/notification.js +0 -19
  26. package/dist/app/modules/domain/publications/clap.d.ts +0 -8
  27. package/dist/app/modules/domain/publications/clap.js +0 -2
  28. package/dist/app/modules/domain/publications/comment.d.ts +0 -9
  29. package/dist/app/modules/domain/publications/comment.js +0 -2
  30. package/dist/app/modules/domain/publications/content.d.ts +0 -10
  31. package/dist/app/modules/domain/publications/content.js +0 -12
  32. package/dist/app/modules/domain/publications/index.d.ts +0 -6
  33. package/dist/app/modules/domain/publications/index.js +0 -5
  34. package/dist/app/modules/domain/publications/publication.d.ts +0 -27
  35. package/dist/app/modules/domain/publications/publication.js +0 -11
  36. package/dist/app/modules/domain/shared/content-type.d.ts +0 -7
  37. package/dist/app/modules/domain/shared/content-type.js +0 -11
  38. package/dist/app/modules/domain/shared/geo.d.ts +0 -16
  39. package/dist/app/modules/domain/shared/geo.js +0 -2
  40. package/dist/app/modules/domain/shared/index.d.ts +0 -2
  41. package/dist/app/modules/domain/shared/index.js +0 -5
  42. package/dist/app/modules/domain/shared/pagination.d.ts +0 -4
  43. package/dist/app/modules/domain/shared/pagination.js +0 -2
  44. package/dist/app/modules/domain/user/contact.d.ts +0 -13
  45. package/dist/app/modules/domain/user/contact.js +0 -2
  46. package/dist/app/modules/domain/user/detail.d.ts +0 -20
  47. package/dist/app/modules/domain/user/detail.js +0 -2
  48. package/dist/app/modules/domain/user/index.d.ts +0 -4
  49. package/dist/app/modules/domain/user/index.js +0 -5
  50. package/dist/app/modules/domain/user/role.d.ts +0 -15
  51. package/dist/app/modules/domain/user/role.js +0 -10
  52. package/dist/app/modules/domain/user/user.d.ts +0 -21
  53. package/dist/app/modules/domain/user/user.js +0 -2
  54. package/dist/app/modules/domain/ventures/category.d.ts +0 -13
  55. package/dist/app/modules/domain/ventures/category.js +0 -2
  56. package/dist/app/modules/domain/ventures/contact.d.ts +0 -9
  57. package/dist/app/modules/domain/ventures/contact.js +0 -2
  58. package/dist/app/modules/domain/ventures/detail.d.ts +0 -13
  59. package/dist/app/modules/domain/ventures/detail.js +0 -2
  60. package/dist/app/modules/domain/ventures/index.d.ts +0 -5
  61. package/dist/app/modules/domain/ventures/index.js +0 -2
  62. package/dist/app/modules/domain/ventures/location.d.ts +0 -10
  63. package/dist/app/modules/domain/ventures/location.js +0 -2
  64. package/dist/app/modules/domain/ventures/subscription.d.ts +0 -8
  65. package/dist/app/modules/domain/ventures/subscription.js +0 -2
  66. package/dist/app/modules/domain/ventures/venture.d.ts +0 -49
  67. package/dist/app/modules/domain/ventures/venture.js +0 -2
  68. package/dist/app/modules/infrastructure/database/entities/department.data.d.ts +0 -8
  69. package/dist/app/modules/infrastructure/database/entities/department.data.js +0 -47
  70. package/dist/app/modules/infrastructure/database/entities/event-category.data.d.ts +0 -10
  71. package/dist/app/modules/infrastructure/database/entities/event-category.data.js +0 -62
  72. package/dist/app/modules/infrastructure/database/entities/event-contact.data.d.ts +0 -7
  73. package/dist/app/modules/infrastructure/database/entities/event-contact.data.js +0 -40
  74. package/dist/app/modules/infrastructure/database/entities/event-donation.data.d.ts +0 -10
  75. package/dist/app/modules/infrastructure/database/entities/event-donation.data.js +0 -53
  76. package/dist/app/modules/infrastructure/database/entities/event-location.data.d.ts +0 -8
  77. package/dist/app/modules/infrastructure/database/entities/event-location.data.js +0 -45
  78. package/dist/app/modules/infrastructure/database/entities/index.d.ts +0 -23
  79. package/dist/app/modules/infrastructure/database/entities/index.js +0 -49
  80. package/dist/app/modules/infrastructure/database/entities/municipality.data.d.ts +0 -10
  81. package/dist/app/modules/infrastructure/database/entities/municipality.data.js +0 -52
  82. package/dist/app/modules/infrastructure/database/entities/notification.data.d.ts +0 -14
  83. package/dist/app/modules/infrastructure/database/entities/notification.data.js +0 -68
  84. package/dist/app/modules/infrastructure/database/entities/publication-clap.data.d.ts +0 -8
  85. package/dist/app/modules/infrastructure/database/entities/publication-clap.data.js +0 -43
  86. package/dist/app/modules/infrastructure/database/entities/publication-comment.data.d.ts +0 -9
  87. package/dist/app/modules/infrastructure/database/entities/publication-comment.data.js +0 -48
  88. package/dist/app/modules/infrastructure/database/entities/publication-content.data.d.ts +0 -10
  89. package/dist/app/modules/infrastructure/database/entities/publication-content.data.js +0 -52
  90. package/dist/app/modules/infrastructure/database/entities/role.data.d.ts +0 -10
  91. package/dist/app/modules/infrastructure/database/entities/role.data.js +0 -51
  92. package/dist/app/modules/infrastructure/database/entities/user-contact.data.d.ts +0 -13
  93. package/dist/app/modules/infrastructure/database/entities/user-contact.data.js +0 -70
  94. package/dist/app/modules/infrastructure/database/entities/user-detail.data.d.ts +0 -23
  95. package/dist/app/modules/infrastructure/database/entities/user-detail.data.js +0 -89
  96. package/dist/app/modules/infrastructure/database/entities/user.data.d.ts +0 -20
  97. package/dist/app/modules/infrastructure/database/entities/user.data.js +0 -97
  98. package/dist/app/modules/infrastructure/database/entities/venture-category.data.d.ts +0 -12
  99. package/dist/app/modules/infrastructure/database/entities/venture-category.data.js +0 -61
  100. package/dist/app/modules/infrastructure/database/entities/venture-contact.data.d.ts +0 -9
  101. package/dist/app/modules/infrastructure/database/entities/venture-contact.data.js +0 -50
  102. package/dist/app/modules/infrastructure/database/entities/venture-detail.data.d.ts +0 -15
  103. package/dist/app/modules/infrastructure/database/entities/venture-detail.data.js +0 -64
  104. package/dist/app/modules/infrastructure/database/entities/venture-event.data.d.ts +0 -21
  105. package/dist/app/modules/infrastructure/database/entities/venture-event.data.js +0 -101
  106. package/dist/app/modules/infrastructure/database/entities/venture-location.data.d.ts +0 -10
  107. package/dist/app/modules/infrastructure/database/entities/venture-location.data.js +0 -51
  108. package/dist/app/modules/infrastructure/database/entities/venture-publication.data.d.ts +0 -18
  109. package/dist/app/modules/infrastructure/database/entities/venture-publication.data.js +0 -80
  110. package/dist/app/modules/infrastructure/database/entities/venture-sponsorship.data.d.ts +0 -10
  111. package/dist/app/modules/infrastructure/database/entities/venture-sponsorship.data.js +0 -53
  112. package/dist/app/modules/infrastructure/database/entities/venture-subscription.data.d.ts +0 -8
  113. package/dist/app/modules/infrastructure/database/entities/venture-subscription.data.js +0 -43
  114. package/dist/app/modules/infrastructure/database/entities/venture.data.d.ts +0 -21
  115. package/dist/app/modules/infrastructure/database/entities/venture.data.js +0 -105
  116. package/dist/app/modules/utilities/index.d.ts +0 -3
  117. package/dist/app/modules/utilities/index.js +0 -2
  118. package/dist/app/modules/utilities/object-utilities.d.ts +0 -16
  119. package/dist/app/modules/utilities/object-utilities.js +0 -2
  120. package/dist/index.d.ts +0 -11
  121. package/dist/index.js +0 -27
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "echadospalante-core",
3
- "version": "11.3.3",
3
+ "version": "11.3.4",
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",
@@ -1,3 +0,0 @@
1
- export { User } from "../user/user";
2
- export { Role } from "../user/role";
3
- export { AccessTokenPayload } from "./token-payload";
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- export interface AccessTokenPayload {
2
- email: string;
3
- iat: number;
4
- exp: number;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- export { EventDonation } from "./donation";
2
- export { VentureSponsorship } from "./sponsor";
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- import { VentureEvent } from "./event";
2
- export interface EventContact {
3
- id: string;
4
- contactEmail?: string;
5
- contactPhoneNumber?: string;
6
- event?: VentureEvent;
7
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,39 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
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";
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- export { Notification } from "./notification";
2
- export { NotificationType } from "./notification";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NotificationType = void 0;
4
- var notification_1 = require("./notification");
5
- Object.defineProperty(exports, "NotificationType", { enumerable: true, get: function () { return notification_1.NotificationType; } });
@@ -1,25 +0,0 @@
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
- }
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NotificationStatus = exports.NotificationType = void 0;
4
- var NotificationType;
5
- (function (NotificationType) {
6
- NotificationType["WELCOME"] = "WELCOME";
7
- NotificationType["ACCOUNT_VERIFIED"] = "ACCOUNT_VERIFIED";
8
- NotificationType["ACCOUNT_LOCKED"] = "ACCOUNT_LOCKED";
9
- NotificationType["ACCOUNT_UNLOCKED"] = "ACCOUNT_UNLOCKED";
10
- NotificationType["NEW_FOLLOWER"] = "NEW_FOLLOWER";
11
- NotificationType["NEW_COMMENT"] = "NEW_COMMENT";
12
- NotificationType["NEW_SPONSOR"] = "NEW_SPONSOR";
13
- NotificationType["NEW_DONATION"] = "NEW_DONATION";
14
- })(NotificationType || (exports.NotificationType = NotificationType = {}));
15
- var NotificationStatus;
16
- (function (NotificationStatus) {
17
- NotificationStatus["READ"] = "READ";
18
- NotificationStatus["UNREAD"] = "UNREAD";
19
- })(NotificationStatus || (exports.NotificationStatus = NotificationStatus = {}));
@@ -1,8 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
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
- }
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PublicationContent = void 0;
4
- class PublicationContent {
5
- id;
6
- type;
7
- content;
8
- createdAt;
9
- updatedAt;
10
- publication;
11
- }
12
- exports.PublicationContent = PublicationContent;
@@ -1,6 +0,0 @@
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";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PublicationType = void 0;
4
- var publication_1 = require("./publication");
5
- Object.defineProperty(exports, "PublicationType", { enumerable: true, get: function () { return publication_1.PublicationType; } });
@@ -1,27 +0,0 @@
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
- }
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PublicationType = void 0;
4
- var PublicationType;
5
- (function (PublicationType) {
6
- PublicationType["STANDARD"] = "STANDARD";
7
- PublicationType["ANNOUNCEMENT"] = "ANNOUNCEMENT";
8
- PublicationType["ACHIEVEMENT"] = "ACHIEVEMENT";
9
- PublicationType["PROMOTION"] = "PROMOTION";
10
- PublicationType["BEHIND_THE_SCENES"] = "BEHIND_THE_SCENES";
11
- })(PublicationType || (exports.PublicationType = PublicationType = {}));
@@ -1,7 +0,0 @@
1
- export declare enum ContentType {
2
- TEXT = "TEXT",
3
- IMAGE = "IMAGE",
4
- VIDEO = "VIDEO",
5
- LINK = "LINK",
6
- FILE = "FILE"
7
- }
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ContentType = void 0;
4
- var ContentType;
5
- (function (ContentType) {
6
- ContentType["TEXT"] = "TEXT";
7
- ContentType["IMAGE"] = "IMAGE";
8
- ContentType["VIDEO"] = "VIDEO";
9
- ContentType["LINK"] = "LINK";
10
- ContentType["FILE"] = "FILE";
11
- })(ContentType || (exports.ContentType = ContentType = {}));
@@ -1,16 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- export { ContentType } from "./content-type";
2
- export { Pagination } from "./pagination";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ContentType = void 0;
4
- var content_type_1 = require("./content-type");
5
- Object.defineProperty(exports, "ContentType", { enumerable: true, get: function () { return content_type_1.ContentType; } });
@@ -1,4 +0,0 @@
1
- export interface Pagination {
2
- skip: number;
3
- take: number;
4
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,20 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- export { UserContact } from "./contact";
2
- export { Role, AppRole } from "./role";
3
- export { User, UserCreate } from "./user";
4
- export { UserDetail } from "./detail";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AppRole = void 0;
4
- var role_1 = require("./role");
5
- Object.defineProperty(exports, "AppRole", { enumerable: true, get: function () { return role_1.AppRole; } });
@@ -1,15 +0,0 @@
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
- }
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AppRole = void 0;
4
- var AppRole;
5
- (function (AppRole) {
6
- AppRole["ADMIN"] = "ADMIN";
7
- AppRole["USER"] = "USER";
8
- AppRole["MODERATOR"] = "MODERATOR";
9
- AppRole["NEWS_WRITER"] = "NEWS_WRITER";
10
- })(AppRole || (exports.AppRole = AppRole = {}));
@@ -1,21 +0,0 @@
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">;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
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">;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
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";
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });