UNPKG

pswincom-gateway-typed

Version:

Send SMS messages through LINK Mobility / PSWinCom Gateway, TypeScript version.

49 lines 2.85 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MessageOperation = exports.DeliveryMessageState = exports.XmlResponseLoginStatus = exports.XmlResponseMessageStatus = void 0; var XmlResponseMessageStatus; (function (XmlResponseMessageStatus) { XmlResponseMessageStatus["OK"] = "OK"; XmlResponseMessageStatus["FAIL"] = "FAIL"; })(XmlResponseMessageStatus || (exports.XmlResponseMessageStatus = XmlResponseMessageStatus = {})); var XmlResponseLoginStatus; (function (XmlResponseLoginStatus) { XmlResponseLoginStatus["OK"] = "OK"; XmlResponseLoginStatus["FAIL"] = "FAIL"; })(XmlResponseLoginStatus || (exports.XmlResponseLoginStatus = XmlResponseLoginStatus = {})); var DeliveryMessageState; (function (DeliveryMessageState) { // Message was successfully delivered to destination. // Premium messages: The receiver number is charged, SMS delivered. DeliveryMessageState["DELIVRD"] = "DELIVRD"; // Message validity period has expired. DeliveryMessageState["EXPIRED"] = "EXPIRED"; // Message has been deleted. DeliveryMessageState["DELETED"] = "DELETED"; // The SMS was undeliverable (not a valid number or no available route to destination). DeliveryMessageState["UNDELIV"] = "UNDELIV"; // No information of delivery status available. DeliveryMessageState["UNKNOWN"] = "UNKNOWN"; // Message was rejected. DeliveryMessageState["REJECTD"] = "REJECTD"; // The SMS failed to be delivered because no operator accepted the message or due to internal Gateway error. DeliveryMessageState["FAILED"] = "FAILED"; // No delivery report received from operator. Unknown delivery status. DeliveryMessageState["NULL"] = "NULL"; // The receiver number is barred/blocked/not in use. Do not retry message, and remove number from any subscriber list. DeliveryMessageState["BARRED"] = "BARRED"; // Premium messages: The receiver could not receive the message because his/her age is below the specified AgeLimit. DeliveryMessageState["BARREDA"] = "BARREDA"; // Premium messages: The receiver has an empty prepaid account. DeliveryMessageState["ZEROBAL"] = "ZEROBAL"; })(DeliveryMessageState || (exports.DeliveryMessageState = DeliveryMessageState = {})); var MessageOperation; (function (MessageOperation) { // Message text should be encoded using ISO-8859-1/ASCII MessageOperation[MessageOperation["PlainText"] = 1] = "PlainText"; // Message bytes should be HEX-encoded MessageOperation[MessageOperation["RawBinary"] = 8] = "RawBinary"; // Message text should be the HEX representation of UCS2 (aka Big Endian Unicode) encoded message MessageOperation[MessageOperation["Unicode"] = 9] = "Unicode"; })(MessageOperation || (exports.MessageOperation = MessageOperation = {})); //# sourceMappingURL=types.js.map