@bytexbyte/ike-app-api 1.0.4 → 1.0.5

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.
package/README.md CHANGED
@@ -14,4 +14,4 @@ const ikeAppApi = new IKEAppApi({
14
14
  3. View Documentation for details on individual APIs. (https://app.swaggerhub.com/apis/terry1022/ike-app/1.0.0)
15
15
 
16
16
  ## Learn More
17
- To Learn more about IKE, check out https://ike.com/
17
+ To Learn more about IKE, check out https://iketech.com/
@@ -153,5 +153,13 @@ declare class IKEAppAuthApi extends BxBApi {
153
153
  url: string;
154
154
  error?: undefined;
155
155
  }>;
156
+ sendCodeMFA(body: {
157
+ phone: string;
158
+ }): Promise<{
159
+ success: 'ok';
160
+ expiredAt: Date;
161
+ } | {
162
+ error: 'User not found.';
163
+ }>;
156
164
  }
157
165
  export default IKEAppAuthApi;
package/lib/Auth/index.js CHANGED
@@ -387,6 +387,25 @@ var IKEAppAuthApi = /** @class */ (function (_super) {
387
387
  });
388
388
  });
389
389
  };
390
+ IKEAppAuthApi.prototype.sendCodeMFA = function (body) {
391
+ return __awaiter(this, void 0, void 0, function () {
392
+ var response;
393
+ return __generator(this, function (_a) {
394
+ switch (_a.label) {
395
+ case 0: return [4 /*yield*/, this.bxbFetch({
396
+ method: 'POST',
397
+ headers: {
398
+ 'Content-Type': 'application/json',
399
+ },
400
+ body: JSON.stringify(body),
401
+ }, "send-code-mfa")];
402
+ case 1:
403
+ response = _a.sent();
404
+ return [2 /*return*/, response.json()];
405
+ }
406
+ });
407
+ });
408
+ };
390
409
  return IKEAppAuthApi;
391
410
  }(bxb_api_1.default));
392
411
  exports.default = IKEAppAuthApi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytexbyte/ike-app-api",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "app api",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -76,4 +76,4 @@
76
76
  "tsutils": "^2.29.0",
77
77
  "wrappy": "^1.0.2"
78
78
  }
79
- }
79
+ }