@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.
- package/build/helpers/humanize-kyc-status.d.ts +2 -0
- package/build/helpers/humanize-kyc-status.js +21 -0
- package/build/helpers/humanize-order-status.js +1 -1
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/types/user-input.d.ts +1 -0
- package/build/types/user-update.d.ts +2 -1
- package/build/types/user.d.ts +2 -1
- package/package.json +1 -1
|
@@ -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
|
|
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,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 {};
|
package/build/types/user.d.ts
CHANGED
|
@@ -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 {};
|