Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postmark

Package Overview
Dependencies
Maintainers
2
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postmark - npm Package Compare versions

Comparing version 2.3.4 to 2.3.5

dist/client/models/suppressions/Suppression.d.ts

1

dist/client/models/index.d.ts

@@ -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));

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc