Comparing version 2.2.5 to 2.2.6
@@ -16,2 +16,9 @@ export declare enum LinkTrackingOptions { | ||
} | ||
/** | ||
* Attachment content | ||
* | ||
* @param Name - name of the attachment, for example book.pdf | ||
* @param Content - Base64 encoded content, for example: fs.readFileSync('/Folder/book.pdf').toString('base64') | ||
* @param ContentID - id of the attachment, in case we are referencing it, for example: cid:123book.pdf | ||
*/ | ||
export declare class Attachment { | ||
@@ -18,0 +25,0 @@ constructor(Name: string, Content: string, ContentType: string, ContentID?: string | null); |
@@ -23,2 +23,9 @@ "use strict"; | ||
exports.Header = Header; | ||
/** | ||
* Attachment content | ||
* | ||
* @param Name - name of the attachment, for example book.pdf | ||
* @param Content - Base64 encoded content, for example: fs.readFileSync('/Folder/book.pdf').toString('base64') | ||
* @param ContentID - id of the attachment, in case we are referencing it, for example: cid:123book.pdf | ||
*/ | ||
var Attachment = /** @class */ (function () { | ||
@@ -25,0 +32,0 @@ function Attachment(Name, Content, ContentType, ContentID) { |
import { Attachment, Header, LinkTrackingOptions } from "../message/SupportingTypes"; | ||
import { Hash } from "../client/SupportingTypes"; | ||
export declare class UpdateTemplateRequest { | ||
@@ -78,3 +79,4 @@ constructor(Name?: string, Subject?: string, HtmlBody?: string, TextBody?: string, Alias?: string | null); | ||
Headers?: Header[]; | ||
Metadata?: Hash<string>; | ||
Attachments?: Attachment[]; | ||
} |
@@ -12,3 +12,3 @@ { | ||
], | ||
"version": "2.2.5", | ||
"version": "2.2.6", | ||
"author": "Igor Balos", | ||
@@ -15,0 +15,0 @@ "contributors": [ |
@@ -90,2 +90,4 @@ import * as postmark from "../../src/index"; | ||
fromAddress, template.TemplateId, {}, toAddress); | ||
templatedMessage.Metadata = { "Key": "Value"}; | ||
const result = await client.sendEmailWithTemplate(templatedMessage); | ||
@@ -92,0 +94,0 @@ expect(result.Message).to.eq("OK"); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
237555
4151