diff --git a/ts/index.ts b/ts/index.ts index 495d4a5..ead7078 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -1 +1,2 @@ export * from './mailgun.classes.account'; +export * from './interfaces'; diff --git a/ts/interfaces/index.ts b/ts/interfaces/index.ts index f545587..e2bdb61 100644 --- a/ts/interfaces/index.ts +++ b/ts/interfaces/index.ts @@ -1 +1,2 @@ export * from './message'; +export * from './notification'; diff --git a/ts/interfaces/notification.ts b/ts/interfaces/notification.ts new file mode 100644 index 0000000..f07a530 --- /dev/null +++ b/ts/interfaces/notification.ts @@ -0,0 +1,44 @@ +export interface IMailgunNotification { + timestamp: string; + token: string; + signature: string; + domain: string; + 'Received-Spf': string; + From: string; + 'Return-Path': string; + 'Arc-Seal': string[], + 'Delivered-To': string; + 'X-Google-Dkim-Signature': string; + To: string; + 'Dkim-Signature': string; + subject: 'Booking confirmation (Order 12PN8P)'; + from: 'buchungsbestaetigung@bahn.de'; + 'X-Received': string[]; + 'Ironport-Sdr': string; + 'Arc-Authentication-Results': string[]; + 'Arc-Message-Signature': string[]; + Date: string; + 'Message-Id': string; + 'Mime-Version': string; + Received: string[]; + 'Authentication-Results': string[]; + 'X-Ipas-Result': string; + 'message-url': string; + 'message-headers': string; + 'Reply-To': string; + recipient: string; + sender: string; + 'X-Mailgun-Incoming': string; + 'X-Forwarded-For': string; + 'X-Gm-Message-State': string; + 'X-Google-Smtp-Source': string; + 'X-Envelope-From': ''; + 'Content-Type': 'multipart/mixed; boundary="----=_Part_220882_156025801.1578848484963"'; + 'X-Forwarded-To': 'invoiceinbox@mail.lossless.one'; + Subject: string; + attachments: string; + 'body-plain': string; + 'stripped-text': string; + 'stripped-html': string; + 'stripped-signature': string; +} \ No newline at end of file