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.
- package/dist/app/modules/auth/index.d.ts +3 -0
- package/dist/app/modules/auth/index.js +2 -0
- package/dist/app/modules/auth/token-payload.d.ts +5 -0
- package/dist/app/modules/auth/token-payload.js +2 -0
- package/dist/app/modules/donations/donation.d.ts +8 -0
- package/dist/app/modules/donations/donation.js +2 -0
- package/dist/app/modules/donations/index.d.ts +2 -0
- package/dist/app/modules/donations/index.js +2 -0
- package/dist/app/modules/donations/sponsor.d.ts +9 -0
- package/dist/app/modules/donations/sponsor.js +2 -0
- package/dist/app/modules/feeds/category.d.ts +8 -0
- package/dist/app/modules/feeds/category.js +2 -0
- package/dist/app/modules/feeds/clap.d.ts +8 -0
- package/dist/app/modules/feeds/clap.js +2 -0
- package/dist/app/modules/feeds/comment.d.ts +8 -0
- package/dist/app/modules/feeds/comment.js +2 -0
- package/dist/app/modules/feeds/event.d.ts +15 -0
- package/dist/app/modules/feeds/event.js +2 -0
- package/dist/app/modules/feeds/index.d.ts +5 -0
- package/dist/app/modules/feeds/index.js +5 -0
- package/dist/app/modules/feeds/publication.d.ts +27 -0
- package/dist/app/modules/feeds/publication.js +11 -0
- package/dist/app/modules/news/category.d.ts +8 -0
- package/dist/app/modules/news/category.js +2 -0
- package/dist/app/modules/news/clap.d.ts +8 -0
- package/dist/app/modules/news/clap.js +2 -0
- package/dist/app/modules/news/index.d.ts +4 -0
- package/dist/app/modules/news/index.js +2 -0
- package/dist/app/modules/news/news.d.ts +18 -0
- package/dist/app/modules/news/news.js +2 -0
- package/dist/app/modules/notifications/index.d.ts +2 -0
- package/dist/app/modules/notifications/index.js +5 -0
- package/dist/app/modules/notifications/notification.d.ts +25 -0
- package/dist/app/modules/notifications/notification.js +19 -0
- package/dist/app/modules/shared/content-type.d.ts +7 -0
- package/dist/app/modules/shared/content-type.js +11 -0
- package/dist/app/modules/shared/geo.d.ts +32 -0
- package/dist/app/modules/shared/geo.js +2 -0
- package/dist/app/modules/shared/index.d.ts +3 -0
- package/dist/app/modules/shared/index.js +5 -0
- package/dist/app/modules/shared/pagination.d.ts +4 -0
- package/dist/app/modules/shared/pagination.js +2 -0
- package/dist/app/modules/user/contact.d.ts +7 -0
- package/dist/app/modules/user/contact.js +2 -0
- package/dist/app/modules/user/detail.d.ts +6 -0
- package/dist/app/modules/user/detail.js +2 -0
- package/dist/app/modules/user/index.d.ts +5 -0
- package/dist/app/modules/user/index.js +5 -0
- package/dist/app/modules/user/profile.d.ts +11 -0
- package/dist/app/modules/user/profile.js +2 -0
- package/dist/app/modules/user/role.d.ts +15 -0
- package/dist/app/modules/user/role.js +10 -0
- package/dist/app/modules/user/user.d.ts +25 -0
- package/dist/app/modules/user/user.js +2 -0
- package/dist/app/modules/utility/index.d.ts +3 -0
- package/dist/app/modules/utility/index.js +2 -0
- package/dist/app/modules/utility/object-utilities.d.ts +16 -0
- package/dist/app/modules/utility/object-utilities.js +2 -0
- package/dist/app/modules/ventures/category.d.ts +8 -0
- package/dist/app/modules/ventures/category.js +2 -0
- package/dist/app/modules/ventures/detail.d.ts +13 -0
- package/dist/app/modules/ventures/detail.js +2 -0
- package/dist/app/modules/ventures/index.d.ts +4 -0
- package/dist/app/modules/ventures/index.js +2 -0
- package/dist/app/modules/ventures/subscription.d.ts +8 -0
- package/dist/app/modules/ventures/subscription.js +2 -0
- package/dist/app/modules/ventures/venture.d.ts +16 -0
- package/dist/app/modules/ventures/venture.js +2 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +25 -0
- package/package.json +27 -0
- package/src/app/modules/auth/index.ts +3 -0
- package/src/app/modules/auth/token-payload.ts +6 -0
- package/src/app/modules/donations/donation.ts +9 -0
- package/src/app/modules/donations/index.ts +2 -0
- package/src/app/modules/donations/sponsor.ts +10 -0
- package/src/app/modules/feeds/category.ts +9 -0
- package/src/app/modules/feeds/clap.ts +9 -0
- package/src/app/modules/feeds/comment.ts +9 -0
- package/src/app/modules/feeds/event.ts +16 -0
- package/src/app/modules/feeds/index.ts +9 -0
- package/src/app/modules/feeds/publication.ts +30 -0
- package/src/app/modules/news/category.ts +9 -0
- package/src/app/modules/news/clap.ts +9 -0
- package/src/app/modules/news/index.ts +5 -0
- package/src/app/modules/news/news.ts +20 -0
- package/src/app/modules/notifications/index.ts +2 -0
- package/src/app/modules/notifications/notification.ts +28 -0
- package/src/app/modules/shared/content-type.ts +7 -0
- package/src/app/modules/shared/geo.ts +36 -0
- package/src/app/modules/shared/index.ts +3 -0
- package/src/app/modules/shared/pagination.ts +4 -0
- package/src/app/modules/user/contact.ts +8 -0
- package/src/app/modules/user/detail.ts +7 -0
- package/src/app/modules/user/index.ts +5 -0
- package/src/app/modules/user/profile.ts +12 -0
- package/src/app/modules/user/role.ts +17 -0
- package/src/app/modules/user/user.ts +30 -0
- package/src/app/modules/utility/index.ts +3 -0
- package/src/app/modules/utility/object-utilities.ts +24 -0
- package/src/app/modules/ventures/category.ts +10 -0
- package/src/app/modules/ventures/detail.ts +15 -0
- package/src/app/modules/ventures/index.ts +4 -0
- package/src/app/modules/ventures/subscription.ts +9 -0
- package/src/app/modules/ventures/venture.ts +17 -0
- package/src/index.ts +9 -0
- package/tsconfig.json +109 -0
@@ -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,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,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,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,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,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,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,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,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,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,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
|
+
}
|
package/dist/index.d.ts
ADDED
@@ -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";
|