This commit is contained in:
J Francisco Rader committed 2021-03-30 02:08:53 -03:00
1 parent b83a890f48
commit a9b824d026
3 files changed
+55 -4

No files matched your search

+21 -3
View File
@@ -1,10 +1,15 @@
export interface IEmailPhoneAction {
path: string;
href: string;
label: string;
deleteEmail?: boolean;
closePhone?: boolean;
}
export interface IEmailExternalAction {
eventName: string;
args: Array<string | number>;
callbackEvent: string;
callbackArg: string | number | boolean | void;
label: string;
deleteEmail?: boolean;
closePhone?: boolean;
}
@@ -36,6 +41,19 @@ export interface EmailMessageInput {
receivers: string;
}
export interface SendEmailToIdentifierInput {
identifier: string;
provider: string;
subject: string;
body: string;
phoneActions: IEmailPhoneAction[];
externalActions: IEmailExternalAction[];
}
export enum GlobalEmailEvents {
SEND_EMAIL_TO_IDENTIFIER = 'npwd:sendEmailToIdentifier',
}
export enum EmailEvents {
FETCH_INBOX = 'npwd:fetchEmailInbox',
FETCH_INBOX_SUCCESS = 'npwd:fetchEmailInboxSuccess',