echadospalante-core 1.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 (107) hide show
  1. package/dist/app/modules/auth/index.d.ts +3 -0
  2. package/dist/app/modules/auth/index.js +2 -0
  3. package/dist/app/modules/auth/token-payload.d.ts +5 -0
  4. package/dist/app/modules/auth/token-payload.js +2 -0
  5. package/dist/app/modules/donations/donation.d.ts +8 -0
  6. package/dist/app/modules/donations/donation.js +2 -0
  7. package/dist/app/modules/donations/index.d.ts +2 -0
  8. package/dist/app/modules/donations/index.js +2 -0
  9. package/dist/app/modules/donations/sponsor.d.ts +9 -0
  10. package/dist/app/modules/donations/sponsor.js +2 -0
  11. package/dist/app/modules/feeds/category.d.ts +8 -0
  12. package/dist/app/modules/feeds/category.js +2 -0
  13. package/dist/app/modules/feeds/clap.d.ts +8 -0
  14. package/dist/app/modules/feeds/clap.js +2 -0
  15. package/dist/app/modules/feeds/comment.d.ts +8 -0
  16. package/dist/app/modules/feeds/comment.js +2 -0
  17. package/dist/app/modules/feeds/event.d.ts +15 -0
  18. package/dist/app/modules/feeds/event.js +2 -0
  19. package/dist/app/modules/feeds/index.d.ts +5 -0
  20. package/dist/app/modules/feeds/index.js +5 -0
  21. package/dist/app/modules/feeds/publication.d.ts +27 -0
  22. package/dist/app/modules/feeds/publication.js +11 -0
  23. package/dist/app/modules/news/category.d.ts +8 -0
  24. package/dist/app/modules/news/category.js +2 -0
  25. package/dist/app/modules/news/clap.d.ts +8 -0
  26. package/dist/app/modules/news/clap.js +2 -0
  27. package/dist/app/modules/news/index.d.ts +4 -0
  28. package/dist/app/modules/news/index.js +2 -0
  29. package/dist/app/modules/news/news.d.ts +18 -0
  30. package/dist/app/modules/news/news.js +2 -0
  31. package/dist/app/modules/notifications/index.d.ts +2 -0
  32. package/dist/app/modules/notifications/index.js +5 -0
  33. package/dist/app/modules/notifications/notification.d.ts +25 -0
  34. package/dist/app/modules/notifications/notification.js +19 -0
  35. package/dist/app/modules/shared/content-type.d.ts +7 -0
  36. package/dist/app/modules/shared/content-type.js +11 -0
  37. package/dist/app/modules/shared/geo.d.ts +32 -0
  38. package/dist/app/modules/shared/geo.js +2 -0
  39. package/dist/app/modules/shared/index.d.ts +3 -0
  40. package/dist/app/modules/shared/index.js +5 -0
  41. package/dist/app/modules/shared/pagination.d.ts +4 -0
  42. package/dist/app/modules/shared/pagination.js +2 -0
  43. package/dist/app/modules/user/contact.d.ts +7 -0
  44. package/dist/app/modules/user/contact.js +2 -0
  45. package/dist/app/modules/user/detail.d.ts +6 -0
  46. package/dist/app/modules/user/detail.js +2 -0
  47. package/dist/app/modules/user/index.d.ts +5 -0
  48. package/dist/app/modules/user/index.js +5 -0
  49. package/dist/app/modules/user/profile.d.ts +11 -0
  50. package/dist/app/modules/user/profile.js +2 -0
  51. package/dist/app/modules/user/role.d.ts +15 -0
  52. package/dist/app/modules/user/role.js +10 -0
  53. package/dist/app/modules/user/user.d.ts +25 -0
  54. package/dist/app/modules/user/user.js +2 -0
  55. package/dist/app/modules/utility/index.d.ts +3 -0
  56. package/dist/app/modules/utility/index.js +2 -0
  57. package/dist/app/modules/utility/object-utilities.d.ts +16 -0
  58. package/dist/app/modules/utility/object-utilities.js +2 -0
  59. package/dist/app/modules/ventures/category.d.ts +8 -0
  60. package/dist/app/modules/ventures/category.js +2 -0
  61. package/dist/app/modules/ventures/detail.d.ts +13 -0
  62. package/dist/app/modules/ventures/detail.js +2 -0
  63. package/dist/app/modules/ventures/index.d.ts +4 -0
  64. package/dist/app/modules/ventures/index.js +2 -0
  65. package/dist/app/modules/ventures/subscription.d.ts +8 -0
  66. package/dist/app/modules/ventures/subscription.js +2 -0
  67. package/dist/app/modules/ventures/venture.d.ts +16 -0
  68. package/dist/app/modules/ventures/venture.js +2 -0
  69. package/dist/index.d.ts +9 -0
  70. package/dist/index.js +25 -0
  71. package/package.json +27 -0
  72. package/src/app/modules/auth/index.ts +3 -0
  73. package/src/app/modules/auth/token-payload.ts +6 -0
  74. package/src/app/modules/donations/donation.ts +9 -0
  75. package/src/app/modules/donations/index.ts +2 -0
  76. package/src/app/modules/donations/sponsor.ts +10 -0
  77. package/src/app/modules/feeds/category.ts +9 -0
  78. package/src/app/modules/feeds/clap.ts +9 -0
  79. package/src/app/modules/feeds/comment.ts +9 -0
  80. package/src/app/modules/feeds/event.ts +16 -0
  81. package/src/app/modules/feeds/index.ts +9 -0
  82. package/src/app/modules/feeds/publication.ts +30 -0
  83. package/src/app/modules/news/category.ts +9 -0
  84. package/src/app/modules/news/clap.ts +9 -0
  85. package/src/app/modules/news/index.ts +5 -0
  86. package/src/app/modules/news/news.ts +20 -0
  87. package/src/app/modules/notifications/index.ts +2 -0
  88. package/src/app/modules/notifications/notification.ts +28 -0
  89. package/src/app/modules/shared/content-type.ts +7 -0
  90. package/src/app/modules/shared/geo.ts +36 -0
  91. package/src/app/modules/shared/index.ts +3 -0
  92. package/src/app/modules/shared/pagination.ts +4 -0
  93. package/src/app/modules/user/contact.ts +8 -0
  94. package/src/app/modules/user/detail.ts +7 -0
  95. package/src/app/modules/user/index.ts +5 -0
  96. package/src/app/modules/user/profile.ts +12 -0
  97. package/src/app/modules/user/role.ts +17 -0
  98. package/src/app/modules/user/user.ts +30 -0
  99. package/src/app/modules/utility/index.ts +3 -0
  100. package/src/app/modules/utility/object-utilities.ts +24 -0
  101. package/src/app/modules/ventures/category.ts +10 -0
  102. package/src/app/modules/ventures/detail.ts +15 -0
  103. package/src/app/modules/ventures/index.ts +4 -0
  104. package/src/app/modules/ventures/subscription.ts +9 -0
  105. package/src/app/modules/ventures/venture.ts +17 -0
  106. package/src/index.ts +9 -0
  107. package/tsconfig.json +109 -0
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export interface AccessTokenPayload {
2
+ email: string;
3
+ iat: number;
4
+ exp: number;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { User } from "../auth";
2
+ import { Venture } from "../ventures/venture";
3
+ export interface Donation {
4
+ id: string;
5
+ donor: User;
6
+ venture: Venture;
7
+ createdAt: Date;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { Donation } from "./donation";
2
+ export { Sponsorship } from "./sponsor";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { User } from "../auth";
2
+ import { Venture } from "../ventures/venture";
3
+ export interface Sponsorship {
4
+ id: string;
5
+ sponsor: User;
6
+ venture: Venture;
7
+ monthlyAmount: number;
8
+ createdAt: Date;
9
+ }
@@ -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 EventCategory {
3
+ id: number;
4
+ name: string;
5
+ slug: string;
6
+ description: string;
7
+ events: VentureEvent[];
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { User } from "../auth";
2
+ import { Publication } from "./publication";
3
+ export interface PublicationClap {
4
+ id: number;
5
+ user: User;
6
+ publication: Publication;
7
+ createdAt: Date;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { User } from "../auth";
2
+ import { Publication } from "./publication";
3
+ export interface Comment {
4
+ id: string;
5
+ author: User;
6
+ content: string;
7
+ publication: Publication;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ import { Donation } from "../donations";
2
+ import { Location } from "../shared/geo";
3
+ import { EventCategory } from "./category";
4
+ export interface VentureEvent {
5
+ id: string;
6
+ title: string;
7
+ description: string;
8
+ coverPhoto: string;
9
+ location: Location;
10
+ categories: EventCategory[];
11
+ donations: Donation[];
12
+ startDate: Date;
13
+ endDate: Date;
14
+ createdAt: Date;
15
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export { EventCategory } from "./category";
2
+ export { PublicationClap } from "./clap";
3
+ export { Comment } from "./comment";
4
+ export { VentureEvent } from "./event";
5
+ export { Publication, PublicationContent, PublicationType, } from "./publication";
@@ -0,0 +1,5 @@
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; } });
@@ -0,0 +1,27 @@
1
+ import { User } from "../auth";
2
+ import { ContentType } from "../shared";
3
+ import { Venture } from "../ventures/venture";
4
+ import { PublicationClap } from "./clap";
5
+ export interface Publication {
6
+ id: string;
7
+ author: User;
8
+ description: string;
9
+ venture: Venture;
10
+ type: PublicationType;
11
+ claps: PublicationClap[];
12
+ comments: Comment[];
13
+ body: PublicationContent[];
14
+ createdAt: Date;
15
+ }
16
+ export declare enum PublicationType {
17
+ TEXTUAL = "TEXTUAL",
18
+ VIDEO = "VIDEO",
19
+ IMAGE = "IMAGE",
20
+ ANNOUNCEMENT = "ANNOUNCEMENT",
21
+ ACHIEVEMENT = "ACHIEVEMENT"
22
+ }
23
+ export interface PublicationContent {
24
+ id: string;
25
+ type: ContentType;
26
+ content: string;
27
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PublicationType = void 0;
4
+ var PublicationType;
5
+ (function (PublicationType) {
6
+ PublicationType["TEXTUAL"] = "TEXTUAL";
7
+ PublicationType["VIDEO"] = "VIDEO";
8
+ PublicationType["IMAGE"] = "IMAGE";
9
+ PublicationType["ANNOUNCEMENT"] = "ANNOUNCEMENT";
10
+ PublicationType["ACHIEVEMENT"] = "ACHIEVEMENT";
11
+ })(PublicationType || (exports.PublicationType = PublicationType = {}));
@@ -0,0 +1,8 @@
1
+ import { News } from "./news";
2
+ export interface NewsCategory {
3
+ id: number;
4
+ name: string;
5
+ slug: string;
6
+ description: string;
7
+ news: News[];
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { User } from "../auth";
2
+ import { News } from "./news";
3
+ export interface NewsClap {
4
+ id: number;
5
+ user: User;
6
+ news: News;
7
+ createdAt: Date;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export { NewsCategory } from "./category";
2
+ export { NewsClap } from "./clap";
3
+ export { News } from "./news";
4
+ export { NewsContent } from "./news";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ import { ContentType } from "../shared";
2
+ import { NewsCategory } from "./category";
3
+ import { NewsClap } from "./clap";
4
+ export interface News {
5
+ id: string;
6
+ title: string;
7
+ slug: string;
8
+ claps: NewsClap[];
9
+ comments: Comment[];
10
+ body: NewsContent[];
11
+ categories: NewsCategory[];
12
+ createdAt: Date;
13
+ }
14
+ export interface NewsContent {
15
+ id: string;
16
+ type: ContentType;
17
+ content: string;
18
+ }
@@ -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,5 @@
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; } });
@@ -0,0 +1,25 @@
1
+ import { User } from "../auth";
2
+ export interface Notification {
3
+ id: string;
4
+ title: string;
5
+ user: User;
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,19 @@
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 = {}));
@@ -0,0 +1,7 @@
1
+ export declare enum ContentType {
2
+ TEXT = "TEXT",
3
+ IMAGE = "IMAGE",
4
+ VIDEO = "VIDEO",
5
+ LINK = "LINK",
6
+ FILE = "FILE"
7
+ }
@@ -0,0 +1,11 @@
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 = {}));
@@ -0,0 +1,32 @@
1
+ export interface Location {
2
+ lat: number;
3
+ lng: number;
4
+ description?: string;
5
+ }
6
+ export interface Country {
7
+ id: number;
8
+ name: string;
9
+ code: string;
10
+ currency: Currency;
11
+ phoneCode: string;
12
+ flag: string;
13
+ }
14
+ export interface Currency {
15
+ id: number;
16
+ name: string;
17
+ code: string;
18
+ symbol: string;
19
+ }
20
+ export interface Department {
21
+ id: number;
22
+ name: string;
23
+ municipalities: Municipality[];
24
+ createdAt: Date;
25
+ updatedAt: Date;
26
+ }
27
+ export interface Municipality {
28
+ id: number;
29
+ name: string;
30
+ createdAt: Date;
31
+ updatedAt: Date;
32
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export { Location, Country, Currency } from "./geo";
2
+ export { ContentType } from "./content-type";
3
+ export { Pagination } from "./pagination";
@@ -0,0 +1,5 @@
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; } });
@@ -0,0 +1,4 @@
1
+ export interface Pagination {
2
+ skip: number;
3
+ take: number;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { Country } from "../shared";
2
+ export interface Contact {
3
+ id: string;
4
+ country: Country;
5
+ phoneNumber: string;
6
+ address: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { Municipality } from "../shared/geo";
2
+ export interface UserDetail {
3
+ gender: "M" | "F" | "O";
4
+ birthDate: Date;
5
+ municipality: Municipality;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export { Contact } from "./contact";
2
+ export { Profile } from "./profile";
3
+ export { Role, AppRole } from "./role";
4
+ export { User, UserCreate } from "./user";
5
+ export { UserDetail } from "./detail";
@@ -0,0 +1,5 @@
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; } });
@@ -0,0 +1,11 @@
1
+ import { User } from "../auth";
2
+ import { VentureCategory } from "../ventures";
3
+ import { Contact } from "./contact";
4
+ export interface Profile {
5
+ id: string;
6
+ verified: boolean;
7
+ user: User;
8
+ preferences: VentureCategory[];
9
+ contact: Contact;
10
+ createdAt: Date;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,10 @@
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 = {}));
@@ -0,0 +1,25 @@
1
+ import { Venture } from "../ventures/venture";
2
+ import { Role } from "./role";
3
+ import { Notification } from "../notifications";
4
+ import { Comment } from "../feeds/comment";
5
+ import { UserDetail } from "./detail";
6
+ import { VentureCategory } from "../ventures";
7
+ export interface User {
8
+ id: string;
9
+ picture: string;
10
+ email: string;
11
+ firstName: string;
12
+ lastName: string;
13
+ roles: Role[];
14
+ detail?: UserDetail;
15
+ notifications: Notification[];
16
+ ventures: Venture[];
17
+ comments: Comment[];
18
+ preferences: VentureCategory[];
19
+ active: boolean;
20
+ verified: boolean;
21
+ onboardingCompleted: boolean;
22
+ createdAt: Date;
23
+ updatedAt: Date;
24
+ }
25
+ export type UserCreate = Pick<User, "email" | "firstName" | "lastName" | "picture">;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export { BasicType } from "./object-utilities";
2
+ export { ComplexType } from "./object-utilities";
3
+ export { ComplexInclude } from "./object-utilities";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ type BasicProperties<T> = {
2
+ [K in keyof T]: T[K] extends boolean | number | string | Date ? T[K] : never;
3
+ };
4
+ type ComplexProperties<T> = {
5
+ [K in keyof T]: T[K] extends object | any[] ? T[K] extends Date ? never : T[K] : never;
6
+ };
7
+ type NonNever<T> = {
8
+ [K in keyof T as T[K] extends never ? never : K]: T[K];
9
+ };
10
+ export type BasicType<T> = NonNever<BasicProperties<T>>;
11
+ export type ComplexType<T> = NonNever<ComplexProperties<T>>;
12
+ type Booleanized<T> = {
13
+ [K in keyof T]: boolean;
14
+ };
15
+ export type ComplexInclude<T> = Booleanized<ComplexType<T>>;
16
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { Venture } from "./venture";
2
+ export interface VentureCategory {
3
+ id: string;
4
+ name: string;
5
+ slug: string;
6
+ description: string;
7
+ ventures: Venture[];
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import { Sponsorship } from "../donations/sponsor";
2
+ import { Publication } from "../feeds/publication";
3
+ import { Subscription } from "./subscription";
4
+ import { Venture } from "./venture";
5
+ import { VentureEvent } from "../feeds/event";
6
+ export interface VentureDetail {
7
+ id: number;
8
+ venture: Venture;
9
+ events: VentureEvent[];
10
+ sponsorships: Sponsorship[];
11
+ subscriptions: Subscription[];
12
+ publications: Publication[];
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export { VentureCategory } from "./category";
2
+ export { VentureDetail } from "./detail";
3
+ export { Subscription } from "./subscription";
4
+ export { Venture } from "./venture";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { User } from "../auth";
2
+ import { Venture } from "./venture";
3
+ export interface Subscription {
4
+ id: string;
5
+ subscriber: User;
6
+ venture: Venture;
7
+ createdAt: Date;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ import { User } from "../auth";
2
+ import { VentureCategory } from "./category";
3
+ import { VentureDetail } from "./detail";
4
+ export interface Venture {
5
+ id: string;
6
+ name: string;
7
+ slug: string;
8
+ coverPhoto: string;
9
+ description: string;
10
+ owner: User;
11
+ active: boolean;
12
+ verified: boolean;
13
+ detail: VentureDetail;
14
+ categories: VentureCategory[];
15
+ createdAt: Date;
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ export * from "./app/modules/auth";
2
+ export * from "./app/modules/donations";
3
+ export * from "./app/modules/feeds";
4
+ export * from "./app/modules/shared";
5
+ export * from "./app/modules/news";
6
+ export * from "./app/modules/news";
7
+ export * from "./app/modules/ventures";
8
+ export * from "./app/modules/user";
9
+ export * from "./app/modules/utility";