@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.
@@ -90,6 +90,7 @@ export declare const email_lang: {
90
90
  doc_field_empty: string;
91
91
  email_otp: string;
92
92
  verify_success: string;
93
+ authtoken: string;
93
94
  welcome_email: string;
94
95
  verify_fail: string;
95
96
  phone_verify: string;
@@ -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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.51",
3
+ "version": "1.0.53",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",