Comparing version 2.3.4 to 2.3.5
@@ -26,1 +26,2 @@ export * from "./client/ClientOptions"; | ||
export * from "./webhooks/WebhookFilteringParameters"; | ||
export * from "./suppressions/Suppression"; |
import BaseClient from "./BaseClient"; | ||
import { Callback, ClientOptions, DefaultResponse, FilteringParameters } from "./models/index"; | ||
import { Bounce, BounceActivationResponse, BounceCounts, BounceDump, BounceFilteringParameters, Bounces, BrowserUsageCounts, ClickCounts, ClickLocationCounts, ClickPlaformUsageCounts, CreateInboundRuleRequest, CreateTemplateRequest, CreateWebhookRequest, DeliveryStatistics, EmailClientUsageCounts, EmailPlaformUsageCounts, EmailReadTimesCounts, InboundMessageDetails, InboundMessages, InboundMessagesFilteringParameters, InboundRule, InboundRules, Message, MessageSendingResponse, OpenCounts, OutboundMessageClicks, OutboundMessageClicksFilteringParameters, OutboundMessageDetails, OutboundMessageDump, OutboundMessageOpens, OutboundMessageOpensFilteringParameters, OutboundMessages, OutboundMessagesFilteringParameters, OutboundStatistics, SentCounts, Server, SpamCounts, StatisticsFilteringParameters, Template, TemplatedMessage, TemplateFilteringParameters, Templates, TemplateValidation, TemplateValidationOptions, TrackedEmailCounts, UpdateServerRequest, UpdateTemplateRequest, UpdateWebhookRequest, Webhook, WebhookFilteringParameters, Webhooks } from "./models/index"; | ||
import { Bounce, BounceActivationResponse, BounceCounts, BounceDump, BounceFilteringParameters, Bounces, BrowserUsageCounts, ClickCounts, ClickLocationCounts, ClickPlaformUsageCounts, CreateInboundRuleRequest, CreateTemplateRequest, CreateWebhookRequest, DeliveryStatistics, EmailClientUsageCounts, EmailPlaformUsageCounts, EmailReadTimesCounts, InboundMessageDetails, InboundMessages, InboundMessagesFilteringParameters, InboundRule, InboundRules, Message, MessageSendingResponse, OpenCounts, OutboundMessageClicks, OutboundMessageClicksFilteringParameters, OutboundMessageDetails, OutboundMessageDump, OutboundMessageOpens, OutboundMessageOpensFilteringParameters, OutboundMessages, OutboundMessagesFilteringParameters, OutboundStatistics, SentCounts, Server, SpamCounts, StatisticsFilteringParameters, Template, TemplatedMessage, TemplateFilteringParameters, Templates, TemplateValidation, TemplateValidationOptions, TrackedEmailCounts, UpdateServerRequest, UpdateTemplateRequest, UpdateWebhookRequest, Webhook, WebhookFilteringParameters, Webhooks, Suppressions, SuppressionStatuses, CreateSuppressionsRequest, DeleteSuppressionsRequest } from "./models/index"; | ||
/** | ||
@@ -407,2 +407,28 @@ * Server client class that can be used to interact with an individual Postmark Server. | ||
deleteWebhook(id: number, callback?: Callback<DefaultResponse>): Promise<DefaultResponse>; | ||
/** | ||
* Get the list of suppressions for a message stream on a server. | ||
* | ||
* @param messageStream - Select message stream | ||
* @param callback - If the callback is provided, it will be passed to the resulting promise as a continuation. | ||
* @returns A promise that will complete when the API responds (or an error occurs). | ||
*/ | ||
getSuppressions(messageStream: string, callback?: Callback<Suppressions>): Promise<Suppressions>; | ||
/** | ||
* Add email addresses to a suppressions list on a message stream on a server. | ||
* | ||
* @param messageStream - Select message stream | ||
* @param options - Suppressions you wish to add. | ||
* @param callback - If the callback is provided, it will be passed to the resulting promise as a continuation. | ||
* @returns A promise that will complete when the API responds (or an error occurs). | ||
*/ | ||
createSuppressions(messageStream: string, options: CreateSuppressionsRequest, callback?: Callback<SuppressionStatuses>): Promise<SuppressionStatuses>; | ||
/** | ||
* Delete email addresses from a suppressions list on a message stream on a server. | ||
* | ||
* @param messageStream - Select message stream | ||
* @param options - Suppressions you wish to delete. | ||
* @param callback - If the callback is provided, it will be passed to the resulting promise as a continuation. | ||
* @returns A promise that will complete when the API responds (or an error occurs). | ||
*/ | ||
deleteSuppressions(messageStream: string, options: DeleteSuppressionsRequest, callback?: Callback<SuppressionStatuses>): Promise<SuppressionStatuses>; | ||
} |
@@ -552,2 +552,34 @@ "use strict"; | ||
}; | ||
/** | ||
* Get the list of suppressions for a message stream on a server. | ||
* | ||
* @param messageStream - Select message stream | ||
* @param callback - If the callback is provided, it will be passed to the resulting promise as a continuation. | ||
* @returns A promise that will complete when the API responds (or an error occurs). | ||
*/ | ||
ServerClient.prototype.getSuppressions = function (messageStream, callback) { | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.GET, "/message-streams/" + messageStream + "/suppressions/dump", callback); | ||
}; | ||
/** | ||
* Add email addresses to a suppressions list on a message stream on a server. | ||
* | ||
* @param messageStream - Select message stream | ||
* @param options - Suppressions you wish to add. | ||
* @param callback - If the callback is provided, it will be passed to the resulting promise as a continuation. | ||
* @returns A promise that will complete when the API responds (or an error occurs). | ||
*/ | ||
ServerClient.prototype.createSuppressions = function (messageStream, options, callback) { | ||
return this.processRequestWithBody(index_1.ClientOptions.HttpMethod.POST, "/message-streams/" + messageStream + "/suppressions", options, callback); | ||
}; | ||
/** | ||
* Delete email addresses from a suppressions list on a message stream on a server. | ||
* | ||
* @param messageStream - Select message stream | ||
* @param options - Suppressions you wish to delete. | ||
* @param callback - If the callback is provided, it will be passed to the resulting promise as a continuation. | ||
* @returns A promise that will complete when the API responds (or an error occurs). | ||
*/ | ||
ServerClient.prototype.deleteSuppressions = function (messageStream, options, callback) { | ||
return this.processRequestWithBody(index_1.ClientOptions.HttpMethod.POST, "/message-streams/" + messageStream + "/suppressions/delete", options, callback); | ||
}; | ||
return ServerClient; | ||
@@ -554,0 +586,0 @@ }(BaseClient_1.default)); |
{ | ||
"name": "postmark", | ||
"description": "Official Node.js client library for the Postmark HTTP API - http://www.postmarkapp.com", | ||
"description": "Official Node.js client library for the Postmark HTTP API - https://www.postmarkapp.com", | ||
"license": "MITNFA", | ||
@@ -12,3 +12,3 @@ "tags": [ | ||
], | ||
"version": "2.3.4", | ||
"version": "2.3.5", | ||
"author": "Igor Balos", | ||
@@ -15,0 +15,0 @@ "contributors": [ |
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
263603
132
4676