Comparing version 2.6.0 to 2.6.1
@@ -28,2 +28,3 @@ import { FilteringParameters } from "../client/FilteringParameters"; | ||
messageStream?: string; | ||
[key: string]: any; | ||
constructor(count?: number, offset?: number, recipient?: string, fromEmail?: string, tag?: string, status?: OutboundMessageStatus, fromDate?: string, toDate?: string, subject?: string, messageStream?: string); | ||
@@ -30,0 +31,0 @@ } |
@@ -17,3 +17,4 @@ import { Header } from "../message/SupportingTypes"; | ||
export declare class CreateWebhookRequest extends UpdateWebhookRequest { | ||
constructor(url?: string, triggers?: WebhookRequestTriggers, httpAuth?: HttpAuth, httpHeaders?: Header[]); | ||
MessageStream?: string; | ||
constructor(url?: string, triggers?: WebhookRequestTriggers, httpAuth?: HttpAuth, httpHeaders?: Header[], messageStream?: string); | ||
} | ||
@@ -20,0 +21,0 @@ export interface WebhookTrigger { |
@@ -25,4 +25,6 @@ "use strict"; | ||
__extends(CreateWebhookRequest, _super); | ||
function CreateWebhookRequest(url, triggers, httpAuth, httpHeaders) { | ||
return _super.call(this, url, triggers, httpAuth, httpHeaders) || this; | ||
function CreateWebhookRequest(url, triggers, httpAuth, httpHeaders, messageStream) { | ||
var _this = _super.call(this, url, triggers, httpAuth, httpHeaders) || this; | ||
_this.MessageStream = messageStream; | ||
return _this; | ||
} | ||
@@ -29,0 +31,0 @@ return CreateWebhookRequest; |
@@ -12,3 +12,3 @@ { | ||
], | ||
"version": "2.6.0", | ||
"version": "2.6.1", | ||
"author": "Igor Balos", | ||
@@ -44,5 +44,5 @@ "contributors": [ | ||
"compile": "rm -r -f ./dist && node_modules/.bin/tsc", | ||
"test": "node_modules/mocha/bin/mocha --timeout 10000 --retries 1 -r ts-node/register test/**/*test.ts", | ||
"unittest": "node_modules/mocha/bin/mocha --timeout 10000 --retries 1 -r ts-node/register test/unit/**/*test.ts", | ||
"watchtests": "node_modules/.bin/mocha --timeout 10000 --retries 1 -r ts-node/register -R list -w --recursive -G test/**/*test.ts", | ||
"test": "node_modules/mocha/bin/mocha --timeout 30000 --retries 1 -r ts-node/register test/**/*test.ts", | ||
"unittest": "node_modules/mocha/bin/mocha --timeout 30000 --retries 1 -r ts-node/register test/unit/**/*test.ts", | ||
"watchtests": "node_modules/.bin/mocha --timeout 30000 --retries 1 -r ts-node/register -R list -w --recursive -G test/**/*test.ts", | ||
"lint": "tslint -c tslint.json 'src/**/*.ts'", | ||
@@ -49,0 +49,0 @@ "lintfix": "tslint -c tslint.json 'src/**/*.ts' --fix", |
@@ -5,4 +5,6 @@ <a href="https://postmarkapp.com"> | ||
# Postmark Node.js Library | ||
[![Build Status](https://travis-ci.org/wildbit/postmark.js.svg?branch=master)](https://travis-ci.org/wildbit/postmark.js) | ||
[![Build Status](https://circleci.com/gh/wildbit/postmark.js.svg?style=shield)](https://circleci.com/gh/wildbit/postmark.js) | ||
[![License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](http://www.opensource.org/licenses/MIT) | ||
@@ -9,0 +11,0 @@ [![npm version](https://badge.fury.io/js/postmark.svg)](https://badge.fury.io/js/postmark) |
@@ -21,4 +21,4 @@ <a href="https://postmarkapp.com"> | ||
6. Push the changes to Github and wait for tests to pass | ||
7. Push the changes to NPM with `npm-publish` | ||
7. Push the changes to NPM with `npm publish` | ||
8. Update any related content in the [Github wiki](https://github.com/wildbit/postmark.js/wiki) | ||
9. Add release version in the [Github releases](https://github.com/wildbit/postmark.js/releases) |
@@ -10,3 +10,3 @@ import * as postmark from "../../src/index"; | ||
describe("Bounce", () => { | ||
const serverToken: string = testingKeys.get("SERVER_TOKEN"); | ||
const serverToken: string = testingKeys.get("SERVER_API_TOKEN"); | ||
const client = new postmark.ServerClient(serverToken); | ||
@@ -13,0 +13,0 @@ |
@@ -10,3 +10,3 @@ import * as postmark from "../../src/index"; | ||
describe("Client - Click Statistics", () => { | ||
const serverToken: string = testingKeys.get("SERVER_TOKEN"); | ||
const serverToken: string = testingKeys.get("SERVER_API_TOKEN"); | ||
const client = new postmark.ServerClient(serverToken); | ||
@@ -13,0 +13,0 @@ |
@@ -11,3 +11,3 @@ import * as postmark from "../../src/index"; | ||
describe("Client - Domains", () => { | ||
const accountToken: string = testingKeys.get("ACCOUNT_TOKEN"); | ||
const accountToken: string = testingKeys.get("ACCOUNT_API_TOKEN"); | ||
const client = new postmark.AccountClient(accountToken); | ||
@@ -14,0 +14,0 @@ const domainName: string = testingKeys.get("DOMAIN_NAME"); |
@@ -11,3 +11,3 @@ import * as postmark from "../../src/index"; | ||
describe("Client - Message Statistics", () => { | ||
const serverToken: string = testingKeys.get("SERVER_TOKEN"); | ||
const serverToken: string = testingKeys.get("SERVER_API_TOKEN"); | ||
const client = new postmark.ServerClient(serverToken); | ||
@@ -14,0 +14,0 @@ const filter = new OutboundMessagesFilteringParameters(1, 0); |
@@ -10,3 +10,3 @@ import * as postmark from "../../src/index"; | ||
describe("Client - Message Statistics", () => { | ||
const serverToken: string = testingKeys.get("SERVER_TOKEN"); | ||
const serverToken: string = testingKeys.get("SERVER_API_TOKEN"); | ||
const client = new postmark.ServerClient(serverToken); | ||
@@ -13,0 +13,0 @@ |
@@ -10,3 +10,3 @@ import * as postmark from "../../src/index"; | ||
describe("Client - Message Statistics", () => { | ||
const serverToken: string = testingKeys.get("SERVER_TOKEN"); | ||
const serverToken: string = testingKeys.get("SERVER_API_TOKEN"); | ||
const client = new postmark.ServerClient(serverToken); | ||
@@ -13,0 +13,0 @@ |
@@ -11,3 +11,3 @@ import { expect } from "chai"; | ||
const serverNamePrefix: string = "node-js-test-message-streams"; | ||
const accountToken: string = testingKeys.get("ACCOUNT_TOKEN"); | ||
const accountToken: string = testingKeys.get("ACCOUNT_API_TOKEN"); | ||
const accountClient = new postmark.AccountClient(accountToken); | ||
@@ -14,0 +14,0 @@ |
@@ -10,7 +10,7 @@ import * as postmark from "../../src/index"; | ||
describe("Sending", () => { | ||
const serverToken: string = testingKeys.get("SERVER_TOKEN"); | ||
const serverToken: string = testingKeys.get("SERVER_API_TOKEN"); | ||
const client = new postmark.ServerClient(serverToken); | ||
const fromAddress: string = testingKeys.get("SENDER_EMAIL_ADDRESS"); | ||
const toAddress: string = testingKeys.get("EMAIL_RECIPIENT_ADDRESS"); | ||
const toAddress: string = testingKeys.get("RECIPIENT_EMAIL_ADDRESS"); | ||
@@ -17,0 +17,0 @@ function messageToSend() { |
@@ -10,3 +10,3 @@ import * as postmark from "../../src/index"; | ||
describe("Server", () => { | ||
const serverToken: string = testingKeys.get("SERVER_TOKEN"); | ||
const serverToken: string = testingKeys.get("SERVER_API_TOKEN"); | ||
const client: postmark.ServerClient = new postmark.ServerClient(serverToken); | ||
@@ -13,0 +13,0 @@ |
@@ -10,3 +10,3 @@ import { expect } from "chai"; | ||
describe("Servers", () => { | ||
const accountToken: string = testingKeys.get("ACCOUNT_TOKEN"); | ||
const accountToken: string = testingKeys.get("ACCOUNT_API_TOKEN"); | ||
const client = new postmark.AccountClient(accountToken); | ||
@@ -13,0 +13,0 @@ const serverNamePrefix: string = "node-js-test-server"; |
@@ -10,3 +10,3 @@ import { expect } from "chai"; | ||
describe("Client - Signatures", () => { | ||
const accountToken: string = testingKeys.get("ACCOUNT_TOKEN"); | ||
const accountToken: string = testingKeys.get("ACCOUNT_API_TOKEN"); | ||
const testDomainName: string = testingKeys.get("DOMAIN_NAME"); | ||
@@ -13,0 +13,0 @@ const client: postmark.AccountClient = new postmark.AccountClient(accountToken); |
@@ -11,3 +11,3 @@ import * as postmark from "../../src/index"; | ||
describe("Client - Suppressions", () => { | ||
const serverToken: string = testingKeys.get("SERVER_TOKEN"); | ||
const serverToken: string = testingKeys.get("SERVER_API_TOKEN"); | ||
const client = new postmark.ServerClient(serverToken); | ||
@@ -14,0 +14,0 @@ const suppression_email_domain:string = 'supression.example.com'; |
@@ -11,4 +11,4 @@ import * as postmark from "../../src/index"; | ||
describe("Client - Templates", () => { | ||
const serverToken: string = testingKeys.get("SERVER_TOKEN"); | ||
const accountToken: string = testingKeys.get("ACCOUNT_TOKEN"); | ||
const serverToken: string = testingKeys.get("SERVER_API_TOKEN"); | ||
const accountToken: string = testingKeys.get("ACCOUNT_API_TOKEN"); | ||
const client = new postmark.ServerClient(serverToken); | ||
@@ -147,3 +147,3 @@ const accountClient = new postmark.AccountClient(accountToken); | ||
const fromAddress = testingKeys.get("SENDER_EMAIL_ADDRESS"); | ||
const toAddress = testingKeys.get("EMAIL_RECIPIENT_ADDRESS"); | ||
const toAddress = testingKeys.get("RECIPIENT_EMAIL_ADDRESS"); | ||
@@ -150,0 +150,0 @@ it("sendEmailWithTemplate", async () => { |
@@ -10,3 +10,3 @@ import { expect } from "chai"; | ||
describe("Client - Triggers", () => { | ||
const serverToken: string = testingKeys.get("SERVER_TOKEN"); | ||
const serverToken: string = testingKeys.get("SERVER_API_TOKEN"); | ||
const client = new postmark.ServerClient(serverToken); | ||
@@ -13,0 +13,0 @@ const triggerName: string = "node-js"; |
@@ -10,3 +10,3 @@ import * as postmark from "../../src/index"; | ||
describe("Client - Webhooks", () => { | ||
const serverToken: string = testingKeys.get("SERVER_TOKEN"); | ||
const serverToken: string = testingKeys.get("SERVER_API_TOKEN"); | ||
const client = new postmark.ServerClient(serverToken); | ||
@@ -13,0 +13,0 @@ |
@@ -15,4 +15,4 @@ import * as postmark from "../../src/index"; | ||
let client: postmark.AccountClient; | ||
const accountToken: string = testingKeys.get("ACCOUNT_TOKEN"); | ||
const serverToken: string = testingKeys.get("SERVER_TOKEN"); | ||
const accountToken: string = testingKeys.get("ACCOUNT_API_TOKEN"); | ||
const serverToken: string = testingKeys.get("SERVER_API_TOKEN"); | ||
@@ -19,0 +19,0 @@ beforeEach(() => { |
@@ -10,3 +10,3 @@ import * as postmark from "../../src/index"; | ||
describe("Clients initialization", () => { | ||
const serverToken: string = testingKeys.get("SERVER_TOKEN"); | ||
const serverToken: string = testingKeys.get("SERVER_API_TOKEN"); | ||
@@ -13,0 +13,0 @@ it("#new ServerClient", () => { |
@@ -15,3 +15,3 @@ import * as postmark from "../../src/index"; | ||
let client: postmark.ServerClient; | ||
const serverToken: string = testingKeys.get("SERVER_TOKEN"); | ||
const serverToken: string = testingKeys.get("SERVER_API_TOKEN"); | ||
@@ -18,0 +18,0 @@ beforeEach(() => { |
@@ -13,3 +13,3 @@ import * as postmark from "../../src/index"; | ||
let client: postmark.ServerClient; | ||
const serverToken: string = testingKeys.get("SERVER_TOKEN"); | ||
const serverToken: string = testingKeys.get("SERVER_API_TOKEN"); | ||
@@ -33,3 +33,3 @@ beforeEach(() => { | ||
describe("handling errors", () => { | ||
const serverToken: string = testingKeys.get("SERVER_TOKEN"); | ||
const serverToken: string = testingKeys.get("SERVER_API_TOKEN"); | ||
const client: postmark.ServerClient = new postmark.ServerClient(serverToken); | ||
@@ -36,0 +36,0 @@ |
Sorry, the diff of this file is not supported yet
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
282186
4968
43
140