UNPKG

postmark

Version:

Official Node.js client library for the Postmark HTTP API - https://www.postmarkapp.com

68 lines 3.26 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || 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); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.BounceFilteringParameters = exports.BounceType = void 0; var FilteringParameters_1 = require("../client/FilteringParameters"); var BounceType; (function (BounceType) { BounceType["HardBounce"] = "HardBounce"; BounceType["Transient"] = "Transient"; BounceType["Unsubscribe"] = "Unsubscribe"; BounceType["Subscribe"] = "Subscribe"; BounceType["AutoResponder"] = "AutoResponder"; BounceType["AddressChange"] = "AddressChange"; BounceType["DnsError"] = "DnsError"; BounceType["SpamNotification"] = "SpamNotification"; BounceType["OpenRelayTest"] = "OpenRelayTest"; BounceType["Unknown"] = "Unknown"; BounceType["SoftBounce"] = "SoftBounce"; BounceType["VirusNotification"] = "VirusNotification"; BounceType["ChallengeVerification"] = "ChallengeVerification"; BounceType["BadEmailAddress"] = "BadEmailAddress"; BounceType["SpamComplaint"] = "SpamComplaint"; BounceType["ManuallyDeactivated"] = "ManuallyDeactivated"; BounceType["Unconfirmed"] = "Unconfirmed"; BounceType["Blocked"] = "Blocked"; BounceType["SMTPApiError"] = "SMTPApiError"; BounceType["InboundError"] = "InboundError"; BounceType["DMARCPolicy"] = "DMARCPolicy"; BounceType["TemplateRenderingFailed"] = "TemplateRenderingFailed"; })(BounceType = exports.BounceType || (exports.BounceType = {})); /** * Describes filtering parameters that can be used when retrieving bounces. * When pagination parameters are not specified, default values are set. */ var BounceFilteringParameters = /** @class */ (function (_super) { __extends(BounceFilteringParameters, _super); function BounceFilteringParameters(count, offset, type, inactive, emailFilter, tag, messageID, fromDate, toDate, messageStream) { if (count === void 0) { count = 100; } if (offset === void 0) { offset = 0; } var _this = _super.call(this, count, offset) || this; _this.type = type; _this.inactive = inactive; _this.emailFilter = emailFilter; _this.tag = tag; _this.messageID = messageID; _this.fromDate = fromDate; _this.toDate = toDate; _this.messageStream = messageStream; return _this; } return BounceFilteringParameters; }(FilteringParameters_1.FilteringParameters)); exports.BounceFilteringParameters = BounceFilteringParameters; //# sourceMappingURL=BounceFilteringParameters.js.map