UNPKG

2.93 kBJavaScriptView Raw
1"use strict";
2var __extends = (this && this.__extends) || (function () {
3 var extendStatics = Object.setPrototypeOf ||
4 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5 function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6 return function (d, b) {
7 extendStatics(d, b);
8 function __() { this.constructor = d; }
9 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10 };
11})();
12Object.defineProperty(exports, "__esModule", { value: true });
13var FilteringParameters_1 = require("../client/FilteringParameters");
14var BounceType;
15(function (BounceType) {
16 BounceType["HardBounce"] = "HardBounce";
17 BounceType["Transient"] = "Transient";
18 BounceType["Unsubscribe"] = "Unsubscribe";
19 BounceType["Subscribe"] = "Subscribe";
20 BounceType["AutoResponder"] = "AutoResponder";
21 BounceType["AddressChange"] = "AddressChange";
22 BounceType["DnsError"] = "DnsError";
23 BounceType["SpamNotification"] = "SpamNotification";
24 BounceType["OpenRelayTest"] = "OpenRelayTest";
25 BounceType["Unknown"] = "Unknown";
26 BounceType["SoftBounce"] = "SoftBounce";
27 BounceType["VirusNotification"] = "VirusNotification";
28 BounceType["ChallengeVerification"] = "ChallengeVerification";
29 BounceType["BadEmailAddress"] = "BadEmailAddress";
30 BounceType["SpamComplaint"] = "SpamComplaint";
31 BounceType["ManuallyDeactivated"] = "ManuallyDeactivated";
32 BounceType["Unconfirmed"] = "Unconfirmed";
33 BounceType["Blocked"] = "Blocked";
34 BounceType["SMTPApiError"] = "SMTPApiError";
35 BounceType["InboundError"] = "InboundError";
36 BounceType["DMARCPolicy"] = "DMARCPolicy";
37 BounceType["TemplateRenderingFailed"] = "TemplateRenderingFailed";
38})(BounceType = exports.BounceType || (exports.BounceType = {}));
39/**
40 * Describes filtering parameters that can be used when retrieving bounces.
41 * When pagination parameters are not specified, default values are set.
42 */
43var BounceFilteringParameters = /** @class */ (function (_super) {
44 __extends(BounceFilteringParameters, _super);
45 function BounceFilteringParameters(count, offset, type, inactive, emailFilter, tag, messageID, fromDate, toDate, messageStream) {
46 if (count === void 0) { count = 100; }
47 if (offset === void 0) { offset = 0; }
48 var _this = _super.call(this, count, offset) || this;
49 _this.type = type;
50 _this.inactive = inactive;
51 _this.emailFilter = emailFilter;
52 _this.tag = tag;
53 _this.messageID = messageID;
54 _this.fromDate = fromDate;
55 _this.toDate = toDate;
56 _this.messageStream = messageStream;
57 return _this;
58 }
59 return BounceFilteringParameters;
60}(FilteringParameters_1.FilteringParameters));
61exports.BounceFilteringParameters = BounceFilteringParameters;
62//# sourceMappingURL=BounceFilteringParameters.js.map
\No newline at end of file