Comparing version 3.0.18 to 3.0.19
# Changelog | ||
## 3.0.19 | ||
* updated model to contain webhook types | ||
## 3.0.18 | ||
@@ -4,0 +8,0 @@ |
@@ -29,4 +29,10 @@ export * from "./client/ClientOptions"; | ||
export * from "./webhooks/WebhookFilteringParameters"; | ||
export * from "./webhooks/payload/BounceWebhook"; | ||
export * from "./webhooks/payload/DeliveryWebhook"; | ||
export * from "./webhooks/payload/ClickWebhook"; | ||
export * from "./webhooks/payload/OpenWebhook"; | ||
export * from "./webhooks/payload/SubscriptionChangeWebhook"; | ||
export * from "./webhooks/payload/InboundWebhook"; | ||
export * from "./suppressions/Suppression"; | ||
export * from "./streams/MessageStream"; | ||
export * from "./streams/MessageStreamsFilteringParameters"; |
@@ -41,2 +41,8 @@ "use strict"; | ||
__exportStar(require("./webhooks/WebhookFilteringParameters"), exports); | ||
__exportStar(require("./webhooks/payload/BounceWebhook"), exports); | ||
__exportStar(require("./webhooks/payload/DeliveryWebhook"), exports); | ||
__exportStar(require("./webhooks/payload/ClickWebhook"), exports); | ||
__exportStar(require("./webhooks/payload/OpenWebhook"), exports); | ||
__exportStar(require("./webhooks/payload/SubscriptionChangeWebhook"), exports); | ||
__exportStar(require("./webhooks/payload/InboundWebhook"), exports); | ||
__exportStar(require("./suppressions/Suppression"), exports); | ||
@@ -43,0 +49,0 @@ __exportStar(require("./streams/MessageStream"), exports); |
@@ -12,3 +12,3 @@ { | ||
], | ||
"version": "3.0.18", | ||
"version": "3.0.19", | ||
"author": "Igor Balos", | ||
@@ -15,0 +15,0 @@ "contributors": [ |
@@ -13,3 +13,3 @@ import * as postmark from "../../src/index"; | ||
const client = new postmark.AccountClient(accountToken); | ||
const domainName: string = process.env.DOMAIN_NAME || ""; | ||
const domainName: string = `nodejs-test.${process.env.DOMAIN_NAME}`; | ||
@@ -16,0 +16,0 @@ function returnPathToTest(domainNameForReturnPath: string) { |
@@ -14,12 +14,15 @@ import { expect } from "chai"; | ||
const domainName: string = testDomainName; | ||
const signatureTag: string = 'nodejs-sig-test' | ||
function signatureToTest() { | ||
return new CreateSignatureRequest("John Smith", `mailing+${Date.now()}@${domainName}`); | ||
return new CreateSignatureRequest("John Smith", `qa+${signatureTag}-${Date.now()}@${domainName}`); | ||
} | ||
async function cleanup() { | ||
const domains = await client.getDomains(); | ||
const signatures = await client.getSenderSignatures(); | ||
for (const domain of domains.Domains) { | ||
if (domain.Name.includes(domainName)) { await client.deleteDomain(domain.ID); } | ||
for (const sig of signatures.SenderSignatures) { | ||
if (sig.EmailAddress.includes(signatureTag)) { | ||
await client.deleteSenderSignature(sig.ID); | ||
} | ||
} | ||
@@ -26,0 +29,0 @@ } |
Sorry, the diff of this file is not supported yet
317572
167
5531