This commit is contained in:
J Francisco Rader authored and J Francisco Rader committed 2021-03-30 02:08:34 -03:00
1 parent 04670233bc
commit 15a8db1293
30 files changed
+530 -187

No files matched your search

+6
View File
@@ -16,6 +16,11 @@ interface MatchConfig {
generateProfileNameFromUsers: boolean;
allowEdtiableProfileName: boolean;
}
interface EmailConfig {
provider: string;
}
interface Debug {
level: 'error' | 'warn' | 'info' | 'verbose' | 'debug';
enabled: boolean;
@@ -46,6 +51,7 @@ export interface IServerConfig {
twitter: TwitterConfig;
match: MatchConfig;
bank: BankConfig;
email: EmailConfig;
notificationPosition: NotificationConfig;
general: General;
debug: Debug;
+46
View File
@@ -0,0 +1,46 @@
export interface IEmailPhoneAction {
path: string;
}
export interface IEmailExternalAction {
eventName: string;
args: Array<string | number>;
closePhone?: boolean;
}
export interface IEmailMessage {
id: number;
parentId?: number | null;
emailId: number;
isRead?: boolean;
isMine?: boolean;
receivers: string[];
sender: string;
sendDate: number;
body: string;
phoneActions?: Array<IEmailPhoneAction>;
externalActions?: Array<IEmailExternalAction>;
}
export interface IEmail {
id: number;
subject: string;
messages: IEmailMessage[];
}
export interface EmailMessageInput {
email_id?: number;
subject?: string;
parent_id?: number;
body: string;
receivers: string;
}
export enum EmailEvents {
FETCH_INBOX = 'npwd:fetchEmailInbox',
FETCH_INBOX_SUCCESS = 'npwd:fetchEmailInboxSuccess',
FETCH_INBOX_ERROR = 'npwd:fetchEmailInboxError',
SEND_EMAIL = 'npwd:sendEmail',
SEND_EMAIL_SUCCESS = 'npwd:sendEmailSuccess',
SEND_EMAIL_ERROR = 'npwd:sendEmailError',
}