fix(core): update

This commit is contained in:
2020-01-13 08:09:37 +00:00
parent 9d5907a7a7
commit 815b455dbb
7 changed files with 109 additions and 42 deletions

1
ts/interfaces/index.ts Normal file
View File

@ -0,0 +1 @@
export * from './message';

30
ts/interfaces/message.ts Normal file
View File

@ -0,0 +1,30 @@
export interface IMailgunMessage {
Received: string;
From: string;
'X-Envelope-From': string;
recipients: string;
'X-Google-Dkim-Signature': string;
To: string;
'message-headers': [[string, string]];
'Dkim-Signature': string;
'content-id-map': any;
subject: 'test2';
'stripped-html': string;
'X-Mailgun-Incoming': 'Yes';
'X-Received': string;
'X-Gm-Message-State': string;
'body-plain': string;
attachments: Array<{
url: string,
'content-type': string,
name: string,
size: number
}>;
'body-html': string;
'Mime-Version': string;
Date: string,
'Message-Id': string;
'Content-Type': string;
'X-Google-Smtp-Source': string;
Subject: string;
}