@bytexbyte/ike-app-api 1.0.5 → 1.0.7

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.
@@ -153,13 +153,13 @@ declare class IKEAppAuthApi extends BxBApi {
153
153
  url: string;
154
154
  error?: undefined;
155
155
  }>;
156
- sendCodeMFA(body: {
156
+ sendMFACode(body: {
157
157
  phone: string;
158
158
  }): Promise<{
159
159
  success: 'ok';
160
160
  expiredAt: Date;
161
161
  } | {
162
- error: 'User not found.';
162
+ error: 'Phone number is required.' | 'User not found.' | 'Code already exists. Please check your messages.';
163
163
  }>;
164
164
  }
165
165
  export default IKEAppAuthApi;
package/lib/Auth/index.js CHANGED
@@ -387,7 +387,7 @@ var IKEAppAuthApi = /** @class */ (function (_super) {
387
387
  });
388
388
  });
389
389
  };
390
- IKEAppAuthApi.prototype.sendCodeMFA = function (body) {
390
+ IKEAppAuthApi.prototype.sendMFACode = function (body) {
391
391
  return __awaiter(this, void 0, void 0, function () {
392
392
  var response;
393
393
  return __generator(this, function (_a) {
@@ -398,7 +398,7 @@ var IKEAppAuthApi = /** @class */ (function (_super) {
398
398
  'Content-Type': 'application/json',
399
399
  },
400
400
  body: JSON.stringify(body),
401
- }, "send-code-mfa")];
401
+ }, "send-mfa-code")];
402
402
  case 1:
403
403
  response = _a.sent();
404
404
  return [2 /*return*/, response.json()];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytexbyte/ike-app-api",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "app api",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",