@riocrypto/common 1.0.669 → 1.0.671

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,2 @@
1
+ import { KYCStatus } from "../types/kyc-status";
2
+ export declare const humanizeKYCStatus: (status: KYCStatus) => string;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.humanizeKYCStatus = void 0;
4
+ const kyc_status_1 = require("../types/kyc-status");
5
+ const humanizeKYCStatus = (status) => {
6
+ switch (status) {
7
+ case kyc_status_1.KYCStatus.Failed:
8
+ return "Failed";
9
+ case kyc_status_1.KYCStatus.Review:
10
+ return "Review";
11
+ case kyc_status_1.KYCStatus.businessApproved:
12
+ return "Business approved";
13
+ case kyc_status_1.KYCStatus.Passed:
14
+ return "Passed";
15
+ case kyc_status_1.KYCStatus.None:
16
+ return "None";
17
+ default:
18
+ return "Unknown";
19
+ }
20
+ };
21
+ exports.humanizeKYCStatus = humanizeKYCStatus;
@@ -11,7 +11,7 @@ const humanizeOrderStatus = (status) => {
11
11
  case order_status_1.OrderStatus.Processing:
12
12
  return "Processing";
13
13
  case order_status_1.OrderStatus.AwaitingBankPayoutDetails:
14
- return "Awaiting Bank Payout Details";
14
+ return "Awaiting bank payout details";
15
15
  case order_status_1.OrderStatus.DepositRegistered:
16
16
  return "Deposit Registered";
17
17
  case order_status_1.OrderStatus.DepositConfirmed:
package/build/index.d.ts CHANGED
@@ -137,5 +137,6 @@ export * from "./helpers/get-user-from-client-helper";
137
137
  export * from "./helpers/validate-address";
138
138
  export * from "./helpers/round-down-to-two-decimal-places";
139
139
  export * from "./helpers/humanize-order-status";
140
+ export * from "./helpers/humanize-kyc-status";
140
141
  export * from "./clients/rio-client";
141
142
  export * from "./clients/rio-admin-client";
package/build/index.js CHANGED
@@ -153,5 +153,6 @@ __exportStar(require("./helpers/get-user-from-client-helper"), exports);
153
153
  __exportStar(require("./helpers/validate-address"), exports);
154
154
  __exportStar(require("./helpers/round-down-to-two-decimal-places"), exports);
155
155
  __exportStar(require("./helpers/humanize-order-status"), exports);
156
+ __exportStar(require("./helpers/humanize-kyc-status"), exports);
156
157
  __exportStar(require("./clients/rio-client"), exports);
157
158
  __exportStar(require("./clients/rio-admin-client"), exports);
@@ -8,6 +8,7 @@ export declare type UserInput = {
8
8
  lastName?: string;
9
9
  birthday?: Date;
10
10
  KYCReportFile?: string;
11
+ CSFFile?: string;
11
12
  companyName?: string;
12
13
  legalRepresentative?: string;
13
14
  COIFile?: string;
@@ -8,7 +8,6 @@ interface IndividualUser {
8
8
  firstName?: string;
9
9
  lastName?: string;
10
10
  birthday?: Date;
11
- KYCReportFile?: string;
12
11
  }
13
12
  interface BusinessUser {
14
13
  companyName?: string;
@@ -34,5 +33,7 @@ export declare type UserUpdate = {
34
33
  authorizedPhoneNumbers?: string[];
35
34
  kycStatus?: KYCStatus;
36
35
  notificationUrl?: string;
36
+ KYCReportFile?: string;
37
+ CSFFile?: string;
37
38
  } & (UserType.Individual extends UserType ? IndividualUser : {}) & (UserType.Business extends UserType ? BusinessUser : {});
38
39
  export {};
@@ -8,7 +8,6 @@ interface IndividualUser {
8
8
  firstName: string;
9
9
  lastName: string;
10
10
  birthday: Date;
11
- KYCReportFile?: string;
12
11
  }
13
12
  interface BusinessUser {
14
13
  companyName: string;
@@ -36,5 +35,7 @@ export declare type User = {
36
35
  brokerId?: string;
37
36
  authorizedPhoneNumbers?: string[];
38
37
  notificationUrl?: string;
38
+ KYCReportFile?: string;
39
+ CSFFile?: string;
39
40
  } & (UserType.Individual extends UserType ? IndividualUser : {}) & (UserType.Business extends UserType ? BusinessUser : {});
40
41
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.669",
3
+ "version": "1.0.671",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",