2 Commits

Author SHA1 Message Date
6bb3bb7d9a 1.0.9 2020-01-13 15:19:48 +00:00
7fcbd39166 fix(core): update 2020-01-13 15:19:47 +00:00
3 changed files with 7 additions and 6 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/smartmail", "name": "@pushrocks/smartmail",
"version": "1.0.8", "version": "1.0.9",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/smartmail", "name": "@pushrocks/smartmail",
"version": "1.0.8", "version": "1.0.9",
"private": false, "private": false,
"description": "a unified format for representing and dealing with mails", "description": "a unified format for representing and dealing with mails",
"main": "dist/index.js", "main": "dist/index.js",

View File

@ -1,19 +1,20 @@
import * as plugins from './smartmail.plugins'; import * as plugins from './smartmail.plugins';
export interface ISmartmailOptions { export interface ISmartmailOptions<T> {
from: string; from: string;
subject: string; subject: string;
body: string; body: string;
creationObjectRef?: T;
} }
/** /**
* a standard representation for mails * a standard representation for mails
*/ */
export class Smartmail { export class Smartmail<T> {
public options: ISmartmailOptions; public options: ISmartmailOptions<T>;
public attachments: plugins.smartfile.Smartfile[] = []; public attachments: plugins.smartfile.Smartfile[] = [];
constructor(optionsArg: ISmartmailOptions) { constructor(optionsArg: ISmartmailOptions<T>) {
this.options = optionsArg; this.options = optionsArg;
} }