Comparing version 2.8.2 to 2.9.0
# Changelog | ||
## 2.9.0 | ||
* Update sender signature name field to match documentation by being required | ||
* Updated dev libraries to resolve security issues (typedoc, typescript) | ||
* Updated axios http client version | ||
## 2.8.2 | ||
@@ -4,0 +10,0 @@ |
@@ -6,6 +6,8 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -50,3 +52,3 @@ function __() { this.constructor = d; } | ||
AccountClient.prototype.getServer = function (id, callback) { | ||
return this.processRequestWithoutBody(models_1.ClientOptions.HttpMethod.GET, "/servers/" + id, {}, callback); | ||
return this.processRequestWithoutBody(models_1.ClientOptions.HttpMethod.GET, "/servers/".concat(id), {}, callback); | ||
}; | ||
@@ -72,3 +74,3 @@ /** | ||
AccountClient.prototype.editServer = function (id, options, callback) { | ||
return this.processRequestWithBody(models_1.ClientOptions.HttpMethod.PUT, "/servers/" + id, options, callback); | ||
return this.processRequestWithBody(models_1.ClientOptions.HttpMethod.PUT, "/servers/".concat(id), options, callback); | ||
}; | ||
@@ -83,3 +85,3 @@ /** | ||
AccountClient.prototype.deleteServer = function (id, callback) { | ||
return this.processRequestWithoutBody(models_1.ClientOptions.HttpMethod.DELETE, "/servers/" + id, {}, callback); | ||
return this.processRequestWithoutBody(models_1.ClientOptions.HttpMethod.DELETE, "/servers/".concat(id), {}, callback); | ||
}; | ||
@@ -106,3 +108,3 @@ /** | ||
AccountClient.prototype.getDomain = function (id, callback) { | ||
return this.processRequestWithoutBody(models_1.ClientOptions.HttpMethod.GET, "/domains/" + id, {}, callback); | ||
return this.processRequestWithoutBody(models_1.ClientOptions.HttpMethod.GET, "/domains/".concat(id), {}, callback); | ||
}; | ||
@@ -128,3 +130,3 @@ /** | ||
AccountClient.prototype.editDomain = function (id, options, callback) { | ||
return this.processRequestWithBody(models_1.ClientOptions.HttpMethod.PUT, "/domains/" + id, options, callback); | ||
return this.processRequestWithBody(models_1.ClientOptions.HttpMethod.PUT, "/domains/".concat(id), options, callback); | ||
}; | ||
@@ -140,3 +142,3 @@ /** | ||
AccountClient.prototype.deleteDomain = function (id, callback) { | ||
return this.processRequestWithoutBody(models_1.ClientOptions.HttpMethod.DELETE, "/domains/" + id, {}, callback); | ||
return this.processRequestWithoutBody(models_1.ClientOptions.HttpMethod.DELETE, "/domains/".concat(id), {}, callback); | ||
}; | ||
@@ -151,3 +153,3 @@ /** | ||
AccountClient.prototype.verifyDomainDKIM = function (id, callback) { | ||
return this.processRequestWithoutBody(models_1.ClientOptions.HttpMethod.PUT, "/domains/" + id + "/verifyDKIM", {}, callback); | ||
return this.processRequestWithoutBody(models_1.ClientOptions.HttpMethod.PUT, "/domains/".concat(id, "/verifyDKIM"), {}, callback); | ||
}; | ||
@@ -162,3 +164,3 @@ /** | ||
AccountClient.prototype.verifyDomainReturnPath = function (id, callback) { | ||
return this.processRequestWithoutBody(models_1.ClientOptions.HttpMethod.PUT, "/domains/" + id + "/verifyReturnPath", {}, callback); | ||
return this.processRequestWithoutBody(models_1.ClientOptions.HttpMethod.PUT, "/domains/".concat(id, "/verifyReturnPath"), {}, callback); | ||
}; | ||
@@ -173,3 +175,3 @@ /** | ||
AccountClient.prototype.verifyDomainSPF = function (id, callback) { | ||
return this.processRequestWithoutBody(models_1.ClientOptions.HttpMethod.PUT, "/domains/" + id + "/verifySPF", {}, callback); | ||
return this.processRequestWithoutBody(models_1.ClientOptions.HttpMethod.PUT, "/domains/".concat(id, "/verifySPF"), {}, callback); | ||
}; | ||
@@ -184,3 +186,3 @@ /** | ||
AccountClient.prototype.rotateDomainDKIM = function (id, callback) { | ||
return this.processRequestWithoutBody(models_1.ClientOptions.HttpMethod.PUT, "/domains/" + id + "/rotateDKIM", {}, callback); | ||
return this.processRequestWithoutBody(models_1.ClientOptions.HttpMethod.PUT, "/domains/".concat(id, "/rotateDKIM"), {}, callback); | ||
}; | ||
@@ -195,3 +197,3 @@ /** | ||
AccountClient.prototype.getSenderSignature = function (id, callback) { | ||
return this.processRequestWithoutBody(models_1.ClientOptions.HttpMethod.GET, "/senders/" + id, {}, callback); | ||
return this.processRequestWithoutBody(models_1.ClientOptions.HttpMethod.GET, "/senders/".concat(id), {}, callback); | ||
}; | ||
@@ -229,3 +231,3 @@ /** | ||
AccountClient.prototype.editSenderSignature = function (id, options, callback) { | ||
return this.processRequestWithBody(models_1.ClientOptions.HttpMethod.PUT, "/senders/" + id, options, callback); | ||
return this.processRequestWithBody(models_1.ClientOptions.HttpMethod.PUT, "/senders/".concat(id), options, callback); | ||
}; | ||
@@ -241,3 +243,3 @@ /** | ||
AccountClient.prototype.deleteSenderSignature = function (id, callback) { | ||
return this.processRequestWithoutBody(models_1.ClientOptions.HttpMethod.DELETE, "/senders/" + id, {}, callback); | ||
return this.processRequestWithoutBody(models_1.ClientOptions.HttpMethod.DELETE, "/senders/".concat(id), {}, callback); | ||
}; | ||
@@ -252,3 +254,3 @@ /** | ||
AccountClient.prototype.resendSenderSignatureConfirmation = function (id, callback) { | ||
return this.processRequestWithoutBody(models_1.ClientOptions.HttpMethod.POST, "/senders/" + id + "/resend", {}, callback); | ||
return this.processRequestWithoutBody(models_1.ClientOptions.HttpMethod.POST, "/senders/".concat(id, "/resend"), {}, callback); | ||
}; | ||
@@ -263,3 +265,3 @@ /** | ||
AccountClient.prototype.verifySenderSignatureSPF = function (id, callback) { | ||
return this.processRequestWithoutBody(models_1.ClientOptions.HttpMethod.POST, "/senders/" + id + "/verifySpf", {}, callback); | ||
return this.processRequestWithoutBody(models_1.ClientOptions.HttpMethod.POST, "/senders/".concat(id, "/verifySpf"), {}, callback); | ||
}; | ||
@@ -274,3 +276,3 @@ /** | ||
AccountClient.prototype.requestNewDKIMForSenderSignature = function (id, callback) { | ||
return this.processRequestWithoutBody(models_1.ClientOptions.HttpMethod.POST, "/senders/" + id + "/requestNewDkim", {}, callback); | ||
return this.processRequestWithoutBody(models_1.ClientOptions.HttpMethod.POST, "/senders/".concat(id, "/requestNewDkim"), {}, callback); | ||
}; | ||
@@ -277,0 +279,0 @@ /** |
@@ -24,12 +24,12 @@ "use strict"; | ||
function BaseClient(token, authHeader, configOptions) { | ||
this.errorHandler = new ErrorHandler_1.ErrorHandler(); | ||
this.verifyToken(token); | ||
this.clientVersion = CLIENT_VERSION; | ||
this.token = token.trim(); | ||
this.authHeader = authHeader; | ||
this.clientOptions = __assign({}, BaseClient.DefaultOptions, configOptions); | ||
this.clientOptions = __assign(__assign({}, BaseClient.DefaultOptions), configOptions); | ||
this.httpClient = this.buildDefaultHttpClient(); | ||
this.errorHandler = new ErrorHandler_1.ErrorHandler(); | ||
this.verifyToken(token); | ||
} | ||
BaseClient.prototype.setClientOptions = function (configOptions) { | ||
this.clientOptions = __assign({}, BaseClient.DefaultOptions, configOptions); | ||
this.clientOptions = __assign(__assign({}, BaseClient.DefaultOptions), configOptions); | ||
this.buildDefaultHttpClient(); | ||
@@ -48,3 +48,3 @@ }; | ||
_a["Accept"] = "application/json", | ||
_a["User-Agent"] = "Postmark.JS - " + this.clientVersion, | ||
_a["User-Agent"] = "Postmark.JS - ".concat(this.clientVersion), | ||
_a; | ||
@@ -164,3 +164,3 @@ }; | ||
var scheme = this.clientOptions.useHttps ? "https" : "http"; | ||
return scheme + "://" + this.clientOptions.requestHost; | ||
return "".concat(scheme, "://").concat(this.clientOptions.requestHost); | ||
}; | ||
@@ -167,0 +167,0 @@ /** |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ErrorHandler = void 0; | ||
var Errors = require("./models/client/Errors"); | ||
@@ -4,0 +5,0 @@ /** |
@@ -6,6 +6,8 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -17,2 +19,3 @@ function __() { this.constructor = d; } | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.BounceFilteringParameters = exports.BounceType = void 0; | ||
var FilteringParameters_1 = require("../client/FilteringParameters"); | ||
@@ -19,0 +22,0 @@ var BounceType; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ClientOptions = void 0; | ||
var ClientOptions; | ||
@@ -4,0 +5,0 @@ (function (ClientOptions) { |
@@ -6,6 +6,8 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -17,2 +19,3 @@ function __() { this.constructor = d; } | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.UnknownError = exports.ServiceUnavailablerError = exports.InternalServerError = exports.ApiInputError = exports.InvalidAPIKeyError = exports.HttpError = exports.PostmarkError = void 0; | ||
/** | ||
@@ -19,0 +22,0 @@ * Standard Postmark error on which all sub-errors are based. |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.FilteringParameters = void 0; | ||
/** | ||
@@ -4,0 +5,0 @@ * Describes default filtering parameters that can be used. |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.UpdateDomainRequest = exports.CreateDomainRequest = void 0; | ||
var CreateDomainRequest = /** @class */ (function () { | ||
@@ -4,0 +5,0 @@ function CreateDomainRequest(Name, ReturnPathDomain) { |
export * from "./client/ClientOptions"; | ||
export * from "./client/SupportingTypes"; | ||
export * from "./client/Callback"; | ||
@@ -20,2 +21,3 @@ export * from "./client/DefaultResponse"; | ||
export * from "./senders/Signature"; | ||
export * from "./suppressions/Suppression"; | ||
export * from "./stats/Stats"; | ||
@@ -22,0 +24,0 @@ export * from "./stats/StatsFilteringParameters"; |
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./client/ClientOptions")); | ||
__export(require("./client/FilteringParameters")); | ||
__export(require("./bounces/BounceFilteringParameters")); | ||
__export(require("./message/Message")); | ||
__export(require("./message/SupportingTypes")); | ||
__export(require("./messages/MessageFilteringParameters")); | ||
__export(require("./templates/Template")); | ||
__export(require("./server/Server")); | ||
__export(require("./server/ServerFilteringParameters")); | ||
__export(require("./domains/Domain")); | ||
__export(require("./senders/Signature")); | ||
__export(require("./stats/StatsFilteringParameters")); | ||
__export(require("./triggers/InboundRule")); | ||
__export(require("./webhooks/Webhook")); | ||
__export(require("./webhooks/WebhookFilteringParameters")); | ||
__export(require("./streams/MessageStream")); | ||
__export(require("./streams/MessageStreamsFilteringParameters")); | ||
__exportStar(require("./client/ClientOptions"), exports); | ||
__exportStar(require("./client/SupportingTypes"), exports); | ||
__exportStar(require("./client/Callback"), exports); | ||
__exportStar(require("./client/DefaultResponse"), exports); | ||
__exportStar(require("./client/FilteringParameters"), exports); | ||
__exportStar(require("./bounces/Bounce"), exports); | ||
__exportStar(require("./bounces/BounceFilteringParameters"), exports); | ||
__exportStar(require("./message/Message"), exports); | ||
__exportStar(require("./message/SupportingTypes"), exports); | ||
__exportStar(require("./messages/OutboundMessage"), exports); | ||
__exportStar(require("./messages/OutboundMessageOpen"), exports); | ||
__exportStar(require("./messages/OutboundMessageClick"), exports); | ||
__exportStar(require("./messages/InboundMessage"), exports); | ||
__exportStar(require("./messages/MessageFilteringParameters"), exports); | ||
__exportStar(require("./templates/Template"), exports); | ||
__exportStar(require("./server/Server"), exports); | ||
__exportStar(require("./server/Servers"), exports); | ||
__exportStar(require("./server/ServerFilteringParameters"), exports); | ||
__exportStar(require("./domains/Domain"), exports); | ||
__exportStar(require("./senders/Signature"), exports); | ||
__exportStar(require("./suppressions/Suppression"), exports); | ||
__exportStar(require("./stats/Stats"), exports); | ||
__exportStar(require("./stats/StatsFilteringParameters"), exports); | ||
__exportStar(require("./triggers/InboundRule"), exports); | ||
__exportStar(require("./webhooks/Webhooks"), exports); | ||
__exportStar(require("./webhooks/Webhook"), exports); | ||
__exportStar(require("./webhooks/WebhookFilteringParameters"), exports); | ||
__exportStar(require("./suppressions/Suppression"), exports); | ||
__exportStar(require("./streams/MessageStream"), exports); | ||
__exportStar(require("./streams/MessageStreamsFilteringParameters"), exports); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Message = void 0; | ||
var Message = /** @class */ (function () { | ||
@@ -4,0 +5,0 @@ function Message(From, Subject, HtmlBody, TextBody, To, Cc, Bcc, ReplyTo, Tag, TrackOpens, TrackLinks, Headers, Attachments, Metadata) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Attachment = exports.Header = exports.ServerDeliveryTypes = exports.LinkClickLocation = exports.LinkTrackingOptions = void 0; | ||
var LinkTrackingOptions; | ||
@@ -4,0 +5,0 @@ (function (LinkTrackingOptions) { |
@@ -6,6 +6,8 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -17,2 +19,3 @@ function __() { this.constructor = d; } | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.OutboundMessageClicksFilteringParameters = exports.OutboundMessageOpensFilteringParameters = exports.OutboundMessageTrackingFilteringParameters = exports.InboundMessagesFilteringParameters = exports.OutboundMessagesFilteringParameters = exports.InboundMessageStatus = exports.OutboundMessageStatus = void 0; | ||
var FilteringParameters_1 = require("../client/FilteringParameters"); | ||
@@ -19,0 +22,0 @@ var OutboundMessageStatus; |
@@ -22,7 +22,7 @@ import { DomainDetails } from "../domains/Domain"; | ||
export declare class UpdateSignatureRequest { | ||
Name?: string; | ||
Name: string; | ||
ReplyToEmail?: string; | ||
ReturnPathDomain?: string; | ||
ConfirmationPersonalNote?: string; | ||
constructor(Name?: string, ReplyToEmail?: string, ReturnPathDomain?: string, ConfirmationPersonalNote?: string); | ||
constructor(Name: string, ReplyToEmail?: string, ReturnPathDomain?: string, ConfirmationPersonalNote?: string); | ||
} | ||
@@ -29,0 +29,0 @@ export declare class CreateSignatureRequest { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CreateSignatureRequest = exports.UpdateSignatureRequest = void 0; | ||
var UpdateSignatureRequest = /** @class */ (function () { | ||
@@ -4,0 +5,0 @@ function UpdateSignatureRequest(Name, ReplyToEmail, ReturnPathDomain, ConfirmationPersonalNote) { |
@@ -6,6 +6,8 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -17,2 +19,3 @@ function __() { this.constructor = d; } | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CreateServerRequest = exports.UpdateServerRequest = void 0; | ||
var UpdateServerRequest = /** @class */ (function () { | ||
@@ -19,0 +22,0 @@ function UpdateServerRequest(Name, Color, SmtpApiActivated, RawEmailEnabled, InboundHookUrl, BounceHookUrl, OpenHookUrl, DeliveryHookUrl, ClickHookUrl, PostFirstOpenOnly, InboundSpamThreshold, TrackOpens, TrackLinks, IncludeBounceContentInHook, EnableSmtpApiErrorHooks, InboundDomain) { |
@@ -6,6 +6,8 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -17,2 +19,3 @@ function __() { this.constructor = d; } | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ServerFilteringParameters = void 0; | ||
var FilteringParameters_1 = require("../client/FilteringParameters"); | ||
@@ -19,0 +22,0 @@ /** |
@@ -21,6 +21,8 @@ export interface OutboundStatistics { | ||
export interface SentCounts { | ||
Days: [{ | ||
Date: string; | ||
Sent: number; | ||
}]; | ||
Days: [ | ||
{ | ||
Date: string; | ||
Sent: number; | ||
} | ||
]; | ||
Sent: number; | ||
@@ -32,21 +34,27 @@ } | ||
export interface SpamCounts { | ||
Days: [{ | ||
Date: string; | ||
SpamComplaint: number; | ||
}]; | ||
Days: [ | ||
{ | ||
Date: string; | ||
SpamComplaint: number; | ||
} | ||
]; | ||
SpamComplaint: number; | ||
} | ||
export interface TrackedEmailCounts { | ||
Days: [{ | ||
Date: string; | ||
Tracked: number; | ||
}]; | ||
Days: [ | ||
{ | ||
Date: string; | ||
Tracked: number; | ||
} | ||
]; | ||
Tracked: number; | ||
} | ||
export interface OpenCounts { | ||
Days: [{ | ||
Date: string; | ||
Opens: number; | ||
Unique: number; | ||
}]; | ||
Days: [ | ||
{ | ||
Date: string; | ||
Opens: number; | ||
Unique: number; | ||
} | ||
]; | ||
Opens: number; | ||
@@ -56,9 +64,11 @@ Unique: number; | ||
export interface EmailPlaformUsageCounts { | ||
Days: [{ | ||
Date: string; | ||
Desktop?: number; | ||
WebMail?: number; | ||
Mobile?: number; | ||
Unknown?: number; | ||
}]; | ||
Days: [ | ||
{ | ||
Date: string; | ||
Desktop?: number; | ||
WebMail?: number; | ||
Mobile?: number; | ||
Unknown?: number; | ||
} | ||
]; | ||
Desktop?: number; | ||
@@ -70,21 +80,27 @@ WebMail?: number; | ||
export interface EmailClientUsageCounts { | ||
Days: [{ | ||
Date: string; | ||
[key: string]: any; | ||
}]; | ||
Days: [ | ||
{ | ||
Date: string; | ||
[key: string]: any; | ||
} | ||
]; | ||
[key: string]: any; | ||
} | ||
export interface EmailReadTimesCounts { | ||
Days: [{ | ||
Date: string; | ||
[key: string]: any; | ||
}]; | ||
Days: [ | ||
{ | ||
Date: string; | ||
[key: string]: any; | ||
} | ||
]; | ||
[key: string]: any; | ||
} | ||
export interface ClickCounts { | ||
Days: [{ | ||
Date: string; | ||
Clicks: number; | ||
Unique: number; | ||
}]; | ||
Days: [ | ||
{ | ||
Date: string; | ||
Clicks: number; | ||
Unique: number; | ||
} | ||
]; | ||
Clicks: number; | ||
@@ -94,15 +110,19 @@ Unique: number; | ||
export interface BrowserUsageCounts { | ||
Days: [{ | ||
Date: string; | ||
[key: string]: any; | ||
}]; | ||
Days: [ | ||
{ | ||
Date: string; | ||
[key: string]: any; | ||
} | ||
]; | ||
[key: string]: any; | ||
} | ||
export interface ClickPlaformUsageCounts { | ||
Days: [{ | ||
Date: string; | ||
Desktop: number; | ||
Mobile: number; | ||
Unknown: number; | ||
}]; | ||
Days: [ | ||
{ | ||
Date: string; | ||
Desktop: number; | ||
Mobile: number; | ||
Unknown: number; | ||
} | ||
]; | ||
Desktop: number; | ||
@@ -113,9 +133,11 @@ Mobile: number; | ||
export interface ClickLocationCounts { | ||
Days: [{ | ||
Date: string; | ||
HTML: number; | ||
Text: number; | ||
}]; | ||
Days: [ | ||
{ | ||
Date: string; | ||
HTML: number; | ||
Text: number; | ||
} | ||
]; | ||
HTML: number; | ||
Text: number; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.StatisticsFilteringParameters = void 0; | ||
var StatisticsFilteringParameters = /** @class */ (function () { | ||
@@ -4,0 +5,0 @@ function StatisticsFilteringParameters(tag, fromDate, toDate) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CreateMessageStreamRequest = exports.UpdateMessageStreamRequest = exports.UnsubscribeHandlingTypes = void 0; | ||
var UnsubscribeHandlingTypes; | ||
@@ -4,0 +5,0 @@ (function (UnsubscribeHandlingTypes) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.MessageStreamsFilteringParameters = void 0; | ||
/** | ||
@@ -4,0 +5,0 @@ * Describes filtering parameters that can be used when retrieving message streams. |
@@ -18,9 +18,8 @@ export interface Suppression { | ||
} | ||
interface SuppressionEntries { | ||
Suppressions: Array<{ | ||
export interface SuppressionEntries { | ||
Suppressions: { | ||
EmailAddress: string; | ||
}>; | ||
}[]; | ||
} | ||
export declare type CreateSuppressionsRequest = SuppressionEntries; | ||
export declare type DeleteSuppressionsRequest = CreateSuppressionsRequest; | ||
export {}; |
@@ -6,6 +6,8 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -17,2 +19,3 @@ function __() { this.constructor = d; } | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TemplateFilteringParameters = exports.TemplatedMessage = exports.TemplatesPushRequest = exports.TemplateTypes = exports.TemplateValidationOptions = exports.CreateTemplateRequest = exports.UpdateTemplateRequest = void 0; | ||
var FilteringParameters_1 = require("../client/FilteringParameters"); | ||
@@ -19,0 +22,0 @@ var UpdateTemplateRequest = /** @class */ (function () { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CreateInboundRuleRequest = void 0; | ||
var CreateInboundRuleRequest = /** @class */ (function () { | ||
@@ -4,0 +5,0 @@ function CreateInboundRuleRequest(Rule) { |
import { Header } from "../message/SupportingTypes"; | ||
interface WebhookRequestTriggers { | ||
export interface WebhookRequestTriggers { | ||
Open?: OpenWebhookTrigger; | ||
@@ -52,2 +52,1 @@ Click?: WebhookTrigger; | ||
} | ||
export {}; |
@@ -6,6 +6,8 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -17,2 +19,3 @@ function __() { this.constructor = d; } | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CreateWebhookRequest = exports.UpdateWebhookRequest = void 0; | ||
var UpdateWebhookRequest = /** @class */ (function () { | ||
@@ -19,0 +22,0 @@ function UpdateWebhookRequest(url, triggers, httpAuth, httpHeaders) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.WebhookFilteringParameters = void 0; | ||
/** | ||
@@ -4,0 +5,0 @@ * Describes filtering parameters that can be used when retrieving webhooks. |
@@ -6,6 +6,8 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -102,3 +104,3 @@ function __() { this.constructor = d; } | ||
ServerClient.prototype.getBounce = function (id, callback) { | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.GET, "/bounces/" + id, {}, callback); | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.GET, "/bounces/".concat(id), {}, callback); | ||
}; | ||
@@ -113,3 +115,3 @@ /** | ||
ServerClient.prototype.getBounceDump = function (id, callback) { | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.GET, "/bounces/" + id + "/dump", {}, callback); | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.GET, "/bounces/".concat(id, "/dump"), {}, callback); | ||
}; | ||
@@ -124,3 +126,3 @@ /** | ||
ServerClient.prototype.activateBounce = function (id, callback) { | ||
return this.processRequestWithBody(index_1.ClientOptions.HttpMethod.PUT, "/bounces/" + id + "/activate", {}, callback); | ||
return this.processRequestWithBody(index_1.ClientOptions.HttpMethod.PUT, "/bounces/".concat(id, "/activate"), {}, callback); | ||
}; | ||
@@ -147,3 +149,3 @@ /** | ||
ServerClient.prototype.getTemplate = function (idOrAlias, callback) { | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.GET, "/templates/" + idOrAlias, {}, callback); | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.GET, "/templates/".concat(idOrAlias), {}, callback); | ||
}; | ||
@@ -158,3 +160,3 @@ /** | ||
ServerClient.prototype.deleteTemplate = function (idOrAlias, callback) { | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.DELETE, "/templates/" + idOrAlias, {}, callback); | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.DELETE, "/templates/".concat(idOrAlias), {}, callback); | ||
}; | ||
@@ -180,3 +182,3 @@ /** | ||
ServerClient.prototype.editTemplate = function (idOrAlias, options, callback) { | ||
return this.processRequestWithBody(index_1.ClientOptions.HttpMethod.PUT, "/templates/" + idOrAlias, options, callback); | ||
return this.processRequestWithBody(index_1.ClientOptions.HttpMethod.PUT, "/templates/".concat(idOrAlias), options, callback); | ||
}; | ||
@@ -233,3 +235,3 @@ /** | ||
ServerClient.prototype.getOutboundMessageDetails = function (messageId, callback) { | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.GET, "/messages/outbound/" + messageId, {}, callback); | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.GET, "/messages/outbound/".concat(messageId), {}, callback); | ||
}; | ||
@@ -244,3 +246,3 @@ /** | ||
ServerClient.prototype.getOutboundMessageDump = function (messageId, callback) { | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.GET, "/messages/outbound/" + messageId + "/dump", {}, callback); | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.GET, "/messages/outbound/".concat(messageId, "/dump"), {}, callback); | ||
}; | ||
@@ -267,3 +269,3 @@ /** | ||
ServerClient.prototype.getInboundMessageDetails = function (messageId, callback) { | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.GET, "/messages/inbound/" + messageId + "/details", {}, callback); | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.GET, "/messages/inbound/".concat(messageId, "/details"), {}, callback); | ||
}; | ||
@@ -278,3 +280,3 @@ /** | ||
ServerClient.prototype.bypassBlockedInboundMessage = function (messageId, callback) { | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.PUT, "/messages/inbound/" + messageId + "/bypass", {}, callback); | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.PUT, "/messages/inbound/".concat(messageId, "/bypass"), {}, callback); | ||
}; | ||
@@ -289,3 +291,3 @@ /** | ||
ServerClient.prototype.retryInboundHookForMessage = function (messageId, callback) { | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.PUT, "/messages/inbound/" + messageId + "/retry", {}, callback); | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.PUT, "/messages/inbound/".concat(messageId, "/retry"), {}, callback); | ||
}; | ||
@@ -314,3 +316,3 @@ /** | ||
this.setDefaultPaginationValues(filter); | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.GET, "/messages/outbound/opens/" + messageId, filter, callback); | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.GET, "/messages/outbound/opens/".concat(messageId), filter, callback); | ||
}; | ||
@@ -340,3 +342,3 @@ /** | ||
this.setDefaultPaginationValues(filter); | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.GET, "/messages/outbound/clicks/" + messageId, filter, callback); | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.GET, "/messages/outbound/clicks/".concat(messageId), filter, callback); | ||
}; | ||
@@ -503,3 +505,3 @@ /** | ||
ServerClient.prototype.deleteInboundRuleTrigger = function (id, callback) { | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.DELETE, "/triggers/inboundRules/" + id, {}, callback); | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.DELETE, "/triggers/inboundRules/".concat(id), {}, callback); | ||
}; | ||
@@ -537,3 +539,3 @@ /** | ||
ServerClient.prototype.getWebhook = function (id, callback) { | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.GET, "/webhooks/" + id, {}, callback); | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.GET, "/webhooks/".concat(id), {}, callback); | ||
}; | ||
@@ -559,3 +561,3 @@ /** | ||
ServerClient.prototype.editWebhook = function (id, options, callback) { | ||
return this.processRequestWithBody(index_1.ClientOptions.HttpMethod.PUT, "/webhooks/" + id, options, callback); | ||
return this.processRequestWithBody(index_1.ClientOptions.HttpMethod.PUT, "/webhooks/".concat(id), options, callback); | ||
}; | ||
@@ -570,3 +572,3 @@ /** | ||
ServerClient.prototype.deleteWebhook = function (id, callback) { | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.DELETE, "/webhooks/" + id, {}, callback); | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.DELETE, "/webhooks/".concat(id), {}, callback); | ||
}; | ||
@@ -591,3 +593,3 @@ /** | ||
ServerClient.prototype.getMessageStream = function (id, callback) { | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.GET, "/message-streams/" + id, {}, callback); | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.GET, "/message-streams/".concat(id), {}, callback); | ||
}; | ||
@@ -603,3 +605,3 @@ /** | ||
ServerClient.prototype.editMessageStream = function (id, options, callback) { | ||
return this.processRequestWithBody(index_1.ClientOptions.HttpMethod.PATCH, "/message-streams/" + id, options, callback); | ||
return this.processRequestWithBody(index_1.ClientOptions.HttpMethod.PATCH, "/message-streams/".concat(id), options, callback); | ||
}; | ||
@@ -624,3 +626,3 @@ /** | ||
ServerClient.prototype.archiveMessageStream = function (id, callback) { | ||
return this.processRequestWithBody(index_1.ClientOptions.HttpMethod.POST, "/message-streams/" + id + "/archive", {}, callback); | ||
return this.processRequestWithBody(index_1.ClientOptions.HttpMethod.POST, "/message-streams/".concat(id, "/archive"), {}, callback); | ||
}; | ||
@@ -635,3 +637,3 @@ /** | ||
ServerClient.prototype.unarchiveMessageStream = function (id, callback) { | ||
return this.processRequestWithBody(index_1.ClientOptions.HttpMethod.POST, "/message-streams/" + id + "/unarchive", {}, callback); | ||
return this.processRequestWithBody(index_1.ClientOptions.HttpMethod.POST, "/message-streams/".concat(id, "/unarchive"), {}, callback); | ||
}; | ||
@@ -646,3 +648,3 @@ /** | ||
ServerClient.prototype.getSuppressions = function (messageStream, callback) { | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.GET, "/message-streams/" + messageStream + "/suppressions/dump", callback); | ||
return this.processRequestWithoutBody(index_1.ClientOptions.HttpMethod.GET, "/message-streams/".concat(messageStream, "/suppressions/dump"), callback); | ||
}; | ||
@@ -658,3 +660,3 @@ /** | ||
ServerClient.prototype.createSuppressions = function (messageStream, options, callback) { | ||
return this.processRequestWithBody(index_1.ClientOptions.HttpMethod.POST, "/message-streams/" + messageStream + "/suppressions", options, callback); | ||
return this.processRequestWithBody(index_1.ClientOptions.HttpMethod.POST, "/message-streams/".concat(messageStream, "/suppressions"), options, callback); | ||
}; | ||
@@ -670,3 +672,3 @@ /** | ||
ServerClient.prototype.deleteSuppressions = function (messageStream, options, callback) { | ||
return this.processRequestWithBody(index_1.ClientOptions.HttpMethod.POST, "/message-streams/" + messageStream + "/suppressions/delete", options, callback); | ||
return this.processRequestWithBody(index_1.ClientOptions.HttpMethod.POST, "/message-streams/".concat(messageStream, "/suppressions/delete"), options, callback); | ||
}; | ||
@@ -673,0 +675,0 @@ return ServerClient; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Header = exports.Attachment = exports.TemplatedMessage = exports.Message = exports.Errors = exports.Models = exports.AdminClient = exports.AccountClient = exports.Client = exports.ServerClient = void 0; | ||
var AccountClient_1 = require("./client/AccountClient"); | ||
@@ -16,9 +17,9 @@ exports.AccountClient = AccountClient_1.default; | ||
var models_1 = require("./client/models"); | ||
exports.Message = models_1.Message; | ||
Object.defineProperty(exports, "Message", { enumerable: true, get: function () { return models_1.Message; } }); | ||
var models_2 = require("./client/models"); | ||
exports.TemplatedMessage = models_2.TemplatedMessage; | ||
Object.defineProperty(exports, "TemplatedMessage", { enumerable: true, get: function () { return models_2.TemplatedMessage; } }); | ||
var models_3 = require("./client/models"); | ||
exports.Attachment = models_3.Attachment; | ||
Object.defineProperty(exports, "Attachment", { enumerable: true, get: function () { return models_3.Attachment; } }); | ||
var models_4 = require("./client/models"); | ||
exports.Header = models_4.Header; | ||
Object.defineProperty(exports, "Header", { enumerable: true, get: function () { return models_4.Header; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -12,3 +12,3 @@ { | ||
], | ||
"version": "2.8.2", | ||
"version": "2.9.0", | ||
"author": "Igor Balos", | ||
@@ -77,9 +77,9 @@ "contributors": [ | ||
"ts-node": "^7.0.1", | ||
"tslint": "^5.12.0", | ||
"typedoc": "^0.15.0", | ||
"typescript": "3.5.1" | ||
"tslint": "^6.1.3", | ||
"typedoc": "^0.22.11", | ||
"typescript": "4.5.5" | ||
}, | ||
"dependencies": { | ||
"axios": "^0.24.0" | ||
"axios": "^0.25.0" | ||
} | ||
} |
{ | ||
"mode": "file", | ||
"out": "docs", | ||
"hideGenerator": true, | ||
"theme": "minimal", | ||
"theme": "default", | ||
"name": "Postmark.js", | ||
"module": "postmark", | ||
"entryPoints": ["./src/index.ts"], | ||
"excludePrivate": true, | ||
"excludeProtected": true, | ||
"excludeNotExported": true, | ||
"excludeExternals": true, | ||
"externalPattern": "node_modules/**", | ||
"exclude": ["node_modules/**"], | ||
"ignoreCompilerErrors":false | ||
"exclude": ["node_modules/**"] | ||
} |
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
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
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
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
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
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
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
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
295570
5163
+ Addedaxios@0.25.0(transitive)
- Removedaxios@0.24.0(transitive)
Updatedaxios@^0.25.0