@bytexbyte/ike-app-api 1.0.3 → 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/
@@ -1,5 +1,5 @@
1
1
  import BxBApi from '@bytexbyte/bxb-api';
2
- import { SignInAppleMobile, SignInEmailBiometrics, SignInEmailPassword, SignInFacebookMobile, SignInGoogleAndroid, SignInGoogleIos } from './type';
2
+ import { SignInAppleMobile, SignInEmailBiometrics, SignInEmailPassword, SignInFacebookMobile, SignInGoogleAndroid, SignInGoogleIos, SignInKyc } from './type';
3
3
  declare type User = {
4
4
  id: string;
5
5
  image: string | null;
@@ -110,6 +110,7 @@ declare class IKEAppAuthApi extends BxBApi {
110
110
  signIn(provider: Parameters<SignInFacebookMobile>[0], form: Parameters<SignInFacebookMobile>[1]): Promise<Awaited<ReturnType<SignInFacebookMobile>>>;
111
111
  signIn(provider: Parameters<SignInAppleMobile>[0], form: Parameters<SignInAppleMobile>[1]): Promise<Awaited<ReturnType<SignInAppleMobile>>>;
112
112
  signIn(provider: Parameters<SignInEmailBiometrics>[0], form: Parameters<SignInEmailBiometrics>[1]): Promise<Awaited<ReturnType<SignInEmailBiometrics>>>;
113
+ signIn(provider: Parameters<SignInKyc>[0], form: Parameters<SignInKyc>[1]): Promise<Awaited<ReturnType<SignInKyc>>>;
113
114
  signOut(): Promise<any>;
114
115
  getSession(): Promise<Session>;
115
116
  createToken(): Promise<{
@@ -152,5 +153,13 @@ declare class IKEAppAuthApi extends BxBApi {
152
153
  url: string;
153
154
  error?: undefined;
154
155
  }>;
156
+ sendCodeMFA(body: {
157
+ phone: string;
158
+ }): Promise<{
159
+ success: 'ok';
160
+ expiredAt: Date;
161
+ } | {
162
+ error: 'User not found.';
163
+ }>;
155
164
  }
156
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.3",
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
+ }