Comparing version 3.1.2 to 3.11.0
# Changelog | ||
## 3.11.0 | ||
* added filtering to get suppressions endpoint | ||
## 3.1.2 | ||
@@ -4,0 +8,0 @@ |
@@ -36,4 +36,5 @@ export * from "./client/ClientOptions"; | ||
export * from "./suppressions/Suppression"; | ||
export * from "./suppressions/SuppressionFilteringParameters"; | ||
export * from "./streams/MessageStream"; | ||
export * from "./streams/MessageStreamsFilteringParameters"; | ||
export * from "./data_removal/DataRemovals"; |
@@ -48,2 +48,3 @@ "use strict"; | ||
__exportStar(require("./suppressions/Suppression"), exports); | ||
__exportStar(require("./suppressions/SuppressionFilteringParameters"), exports); | ||
__exportStar(require("./streams/MessageStream"), exports); | ||
@@ -50,0 +51,0 @@ __exportStar(require("./streams/MessageStreamsFilteringParameters"), exports); |
import BaseClient from "./BaseClient"; | ||
import { Callback, ClientOptions, DefaultResponse, FilteringParameters } from "./models/index"; | ||
import { Bounce, BounceActivationResponse, BounceCounts, BounceDump, BounceFilteringParameters, Bounces, BrowserUsageCounts, ClickCounts, ClickLocationCounts, ClickPlatformUsageCounts, CreateInboundRuleRequest, CreateMessageStreamRequest, CreateSuppressionsRequest, CreateTemplateRequest, CreateWebhookRequest, DeleteSuppressionsRequest, DeliveryStatistics, EmailClientUsageCounts, EmailPlaformUsageCounts, EmailReadTimesCounts, InboundMessageDetails, InboundMessages, InboundMessagesFilteringParameters, InboundRule, InboundRules, Message, MessageSendingResponse, MessageStream, MessageStreamArchiveResponse, MessageStreams, MessageStreamsFilteringParameters, MessageStreamUnarchiveResponse, OpenCounts, OutboundMessageClicks, OutboundMessageClicksFilteringParameters, OutboundMessageDetails, OutboundMessageDump, OutboundMessageOpens, OutboundMessageOpensFilteringParameters, OutboundMessages, OutboundMessagesFilteringParameters, OutboundStatistics, SentCounts, Server, SpamCounts, StatisticsFilteringParameters, Suppressions, SuppressionStatuses, Template, TemplatedMessage, TemplateFilteringParameters, Templates, TemplateValidation, TemplateValidationOptions, TrackedEmailCounts, UpdateMessageStreamRequest, UpdateServerRequest, UpdateTemplateRequest, UpdateWebhookRequest, Webhook, WebhookFilteringParameters, Webhooks } from "./models/index"; | ||
import { Bounce, BounceActivationResponse, BounceCounts, BounceDump, BounceFilteringParameters, Bounces, BrowserUsageCounts, ClickCounts, ClickLocationCounts, ClickPlatformUsageCounts, CreateInboundRuleRequest, CreateMessageStreamRequest, CreateSuppressionsRequest, CreateTemplateRequest, CreateWebhookRequest, DeleteSuppressionsRequest, DeliveryStatistics, EmailClientUsageCounts, EmailPlaformUsageCounts, EmailReadTimesCounts, InboundMessageDetails, InboundMessages, InboundMessagesFilteringParameters, InboundRule, InboundRules, Message, MessageSendingResponse, MessageStream, MessageStreamArchiveResponse, MessageStreams, MessageStreamsFilteringParameters, MessageStreamUnarchiveResponse, OpenCounts, OutboundMessageClicks, OutboundMessageClicksFilteringParameters, OutboundMessageDetails, OutboundMessageDump, OutboundMessageOpens, OutboundMessageOpensFilteringParameters, OutboundMessages, OutboundMessagesFilteringParameters, OutboundStatistics, SentCounts, Server, SpamCounts, StatisticsFilteringParameters, Suppressions, SuppressionFilteringParameters, SuppressionStatuses, Template, TemplatedMessage, TemplateFilteringParameters, Templates, TemplateValidation, TemplateValidationOptions, TrackedEmailCounts, UpdateMessageStreamRequest, UpdateServerRequest, UpdateTemplateRequest, UpdateWebhookRequest, Webhook, WebhookFilteringParameters, Webhooks } from "./models/index"; | ||
/** | ||
@@ -462,3 +462,3 @@ * Server client class that can be used to interact with an individual Postmark Server. | ||
*/ | ||
getSuppressions(messageStream: string, callback?: Callback<Suppressions>): Promise<Suppressions>; | ||
getSuppressions(messageStream: string, filter?: SuppressionFilteringParameters, callback?: Callback<Suppressions>): Promise<Suppressions>; | ||
/** | ||
@@ -465,0 +465,0 @@ * Add email addresses to a suppressions list on a message stream on a server. |
@@ -625,4 +625,5 @@ "use strict"; | ||
*/ | ||
ServerClient.prototype.getSuppressions = function (messageStream, callback) { | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.GET, "/message-streams/".concat(messageStream, "/suppressions/dump"), callback); | ||
ServerClient.prototype.getSuppressions = function (messageStream, filter, callback) { | ||
if (filter === void 0) { filter = new index_2.SuppressionFilteringParameters(); } | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.GET, "/message-streams/".concat(messageStream, "/suppressions/dump"), filter, callback); | ||
}; | ||
@@ -629,0 +630,0 @@ /** |
@@ -12,3 +12,3 @@ { | ||
], | ||
"version": "3.1.2", | ||
"version": "3.11.0", | ||
"author": "Igor Balos", | ||
@@ -15,0 +15,0 @@ "contributors": [ |
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
329253
174
5722