@konplit-services/common 1.0.51 → 1.0.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -112,6 +112,7 @@ exports.email_lang = {
|
|
|
112
112
|
//Registration Email Responses
|
|
113
113
|
email_otp: "Email Verification Code (OTP) ",
|
|
114
114
|
verify_success: "Email Verification Success",
|
|
115
|
+
authtoken: "Auth Verification",
|
|
115
116
|
welcome_email: "Account Activated! Welcome to Valuepay System",
|
|
116
117
|
verify_fail: "Email Verification Failure",
|
|
117
118
|
phone_verify: "Phone Number Verified",
|
|
@@ -14,11 +14,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.sendSms = void 0;
|
|
16
16
|
const axios_1 = __importDefault(require("axios"));
|
|
17
|
+
const node_querystring_1 = __importDefault(require("node:querystring"));
|
|
17
18
|
const sendSms = (request) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
19
|
var _a;
|
|
19
20
|
const url = "https://api.ng.termii.com/api/sms/send";
|
|
20
21
|
try {
|
|
21
|
-
const response = yield axios_1.default.post(url, request)
|
|
22
|
+
const response = yield axios_1.default.post(url, node_querystring_1.default.encode(Object.assign({}, request)), {
|
|
23
|
+
headers: {
|
|
24
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
25
|
+
},
|
|
26
|
+
});
|
|
22
27
|
return response.data;
|
|
23
28
|
}
|
|
24
29
|
catch (error) {
|