@riocrypto/common 1.0.798 → 1.0.800

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.
@@ -0,0 +1,6 @@
1
+ import { SecurityQuestion } from "../types/security-question";
2
+ export declare class SecurityQuestionClass {
3
+ private key;
4
+ constructor(key: SecurityQuestion);
5
+ getQuestionText(): "ERR" | "What city were you born in?" | "What was the brand of your first car?" | "What was the name of your first pet?" | "What was the name of your first school?";
6
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SecurityQuestionClass = void 0;
4
+ const security_question_1 = require("../types/security-question");
5
+ class SecurityQuestionClass {
6
+ constructor(key) {
7
+ this.key = key;
8
+ }
9
+ getQuestionText() {
10
+ if (this.key === security_question_1.SecurityQuestion.cityOfBirth) {
11
+ return "What city were you born in?";
12
+ }
13
+ else if (this.key === security_question_1.SecurityQuestion.firstCarBrand) {
14
+ return "What was the brand of your first car?";
15
+ }
16
+ else if (this.key === security_question_1.SecurityQuestion.firstPetName) {
17
+ return "What was the name of your first pet?";
18
+ }
19
+ else if (this.key === security_question_1.SecurityQuestion.firstSchoolName) {
20
+ return "What was the name of your first school?";
21
+ }
22
+ else
23
+ return "ERR";
24
+ }
25
+ }
26
+ exports.SecurityQuestionClass = SecurityQuestionClass;
@@ -99,5 +99,8 @@ export declare class RioClient {
99
99
  addAuthorizedPhoneNumber(phoneNumber: string): Promise<User>;
100
100
  deleteAuthorizedPhoneNumber(phoneNumber: string): Promise<User>;
101
101
  createKushkiBankPayment(orderId: string): Promise<any>;
102
- updateAuth(update: AuthUpdate, id?: string): Promise<Auth>;
102
+ updateAuth(update: AuthUpdate, id?: string): Promise<{
103
+ auth: Auth;
104
+ missing: string[];
105
+ }>;
103
106
  }
package/build/index.d.ts CHANGED
@@ -160,6 +160,7 @@ export * from "./classes/PaymentMethodAsset";
160
160
  export * from "./classes/PayoutMethodAsset";
161
161
  export * from "./classes/USStateAsset";
162
162
  export * from "./classes/WyrePaymentMethodAsset";
163
+ export * from "./classes/SecurityQuestionClass";
163
164
  export * from "./helpers/get-user-from-client-helper";
164
165
  export * from "./helpers/validate-address";
165
166
  export * from "./helpers/round-down-to-two-decimal-places";
package/build/index.js CHANGED
@@ -176,6 +176,7 @@ __exportStar(require("./classes/PaymentMethodAsset"), exports);
176
176
  __exportStar(require("./classes/PayoutMethodAsset"), exports);
177
177
  __exportStar(require("./classes/USStateAsset"), exports);
178
178
  __exportStar(require("./classes/WyrePaymentMethodAsset"), exports);
179
+ __exportStar(require("./classes/SecurityQuestionClass"), exports);
179
180
  __exportStar(require("./helpers/get-user-from-client-helper"), exports);
180
181
  __exportStar(require("./helpers/validate-address"), exports);
181
182
  __exportStar(require("./helpers/round-down-to-two-decimal-places"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.798",
3
+ "version": "1.0.800",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",