@riocrypto/common 1.0.1116 → 1.0.1118

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.
@@ -31,6 +31,7 @@ import { ChainedOrder } from "../types/chained-order";
31
31
  import { ChainedOrderQuery } from "../types/chained-order-query";
32
32
  import { CountryOfOrigin } from "../types/country-of-origin";
33
33
  import { BridgeExternalAccountQuery } from "../types/bridge-external-account-query";
34
+ import { SecurityQuestion } from "../types/security-question";
34
35
  export declare class RioClient {
35
36
  private axios;
36
37
  constructor(axios: AxiosStatic | AxiosInstance);
@@ -57,6 +58,7 @@ export declare class RioClient {
57
58
  verifyBankPayment(orderId: string): Promise<any>;
58
59
  sendPhoneAuthCode(phoneNumber: string, isNewPhoneNumber: boolean): Promise<void>;
59
60
  getAuth(phoneNumber?: string): Promise<Auth>;
61
+ getSecurityQuestion(): Promise<SecurityQuestion>;
60
62
  authHasSecurityQuestion(): Promise<Boolean>;
61
63
  signout(): Promise<void>;
62
64
  verifyPhoneCode(phoneNumber: string, code: string): Promise<void>;
@@ -167,6 +167,12 @@ class RioClient {
167
167
  return response.data;
168
168
  });
169
169
  }
170
+ getSecurityQuestion() {
171
+ return __awaiter(this, void 0, void 0, function* () {
172
+ const response = yield this.axios.get(`/api/auth/security-question`);
173
+ return response.data.securityQuestion;
174
+ });
175
+ }
170
176
  authHasSecurityQuestion() {
171
177
  return __awaiter(this, void 0, void 0, function* () {
172
178
  const response = yield this.axios.get(`/api/auth?checkSecurityQuestion=true`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1116",
3
+ "version": "1.0.1118",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",