@riocrypto/common 1.0.667 → 1.0.669
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.
|
@@ -3,6 +3,6 @@ import { Asset } from "./Asset";
|
|
|
3
3
|
export declare class FiatAsset extends Asset {
|
|
4
4
|
symbol: Fiat;
|
|
5
5
|
constructor(symbol: Fiat);
|
|
6
|
-
getName(): "Brazilian Real" | "United States Dollar" | "Peruvian Sol" | "ERR";
|
|
6
|
+
getName(): "Brazilian Real" | "Mexican Peso" | "United States Dollar" | "Peruvian Sol" | "ERR";
|
|
7
7
|
getImageUri(): string;
|
|
8
8
|
}
|
|
@@ -15,59 +15,60 @@ class FiatAsset extends Asset_1.Asset {
|
|
|
15
15
|
// // return "Bulgarian Lev";
|
|
16
16
|
if (this.symbol === fiat_1.Fiat.BRL) {
|
|
17
17
|
return "Brazilian Real";
|
|
18
|
+
// } else if (this.symbol === Fiat.CAD) {
|
|
19
|
+
// return "Canadian Dollar";
|
|
20
|
+
// } else if (this.symbol === Fiat.CHF) {
|
|
21
|
+
// return "Swiss Franc";
|
|
22
|
+
// } else if (this.symbol === Fiat.CLP) {
|
|
23
|
+
// return "Chilean Peso";
|
|
24
|
+
// } else if (this.symbol === Fiat.CNY) {
|
|
25
|
+
// return "Renminbi";
|
|
26
|
+
// } else if (this.symbol === Fiat.CZK) {
|
|
27
|
+
// return "Czech Koruna";
|
|
28
|
+
// } else if (this.symbol === Fiat.DKK) {
|
|
29
|
+
// return "Danish Krone";
|
|
30
|
+
// } else if (this.symbol === Fiat.EUR) {
|
|
31
|
+
// return "Euro";
|
|
32
|
+
// } else if (this.symbol === Fiat.GBP) {
|
|
33
|
+
// return "British Pound";
|
|
34
|
+
// } else if (this.symbol === Fiat.HRK) {
|
|
35
|
+
// return "Croatian Kuna";
|
|
36
|
+
// } else if (this.symbol === Fiat.HUF) {
|
|
37
|
+
// return "Hungarian Forint";
|
|
38
|
+
// } else if (this.symbol === Fiat.IDR) {
|
|
39
|
+
// return "Indonesian Rupiah";
|
|
40
|
+
// } else if (this.symbol === Fiat.ILS) {
|
|
41
|
+
// return "Israeli Shekel";
|
|
42
|
+
// } else if (this.symbol === Fiat.INR) {
|
|
43
|
+
// return "Indian Rupee";
|
|
44
|
+
// } else if (this.symbol === Fiat.JPY) {
|
|
45
|
+
// return "Japanese Yen";
|
|
46
|
+
// } else if (this.symbol === Fiat.KRW) {
|
|
47
|
+
// return "South Korean Won";
|
|
48
|
+
}
|
|
49
|
+
else if (this.symbol === fiat_1.Fiat.MXN) {
|
|
50
|
+
return "Mexican Peso";
|
|
51
|
+
// } else if (this.symbol === Fiat.MYR) {
|
|
52
|
+
// return "Malaysian Ringgit";
|
|
53
|
+
// } else if (this.symbol === Fiat.NOK) {
|
|
54
|
+
// return "Norwegian Krone";
|
|
55
|
+
// } else if (this.symbol === Fiat.NZD) {
|
|
56
|
+
// return "New Zealand Dollar";
|
|
57
|
+
// } else if (this.symbol === Fiat.PHP) {
|
|
58
|
+
// return "Philippine Peso";
|
|
59
|
+
// } else if (this.symbol === Fiat.PLN) {
|
|
60
|
+
// return "Polish Złoty";
|
|
61
|
+
// } else if (this.symbol === Fiat.RON) {
|
|
62
|
+
// return "Swedish Krona";
|
|
63
|
+
// } else if (this.symbol === Fiat.RUB) {
|
|
64
|
+
// return "Russian Ruble";
|
|
65
|
+
// } else if (this.symbol === Fiat.SEK) {
|
|
66
|
+
// return "Swedish Krona";
|
|
67
|
+
// } else if (this.symbol === Fiat.THB) {
|
|
68
|
+
// return "Thai Baht";
|
|
69
|
+
// } else if (this.symbol === Fiat.TRY) {
|
|
70
|
+
// return "Turkish Lira";
|
|
18
71
|
}
|
|
19
|
-
// } else if (this.symbol === Fiat.CAD) {
|
|
20
|
-
// return "Canadian Dollar";
|
|
21
|
-
// } else if (this.symbol === Fiat.CHF) {
|
|
22
|
-
// return "Swiss Franc";
|
|
23
|
-
// } else if (this.symbol === Fiat.CLP) {
|
|
24
|
-
// return "Chilean Peso";
|
|
25
|
-
// } else if (this.symbol === Fiat.CNY) {
|
|
26
|
-
// return "Renminbi";
|
|
27
|
-
// } else if (this.symbol === Fiat.CZK) {
|
|
28
|
-
// return "Czech Koruna";
|
|
29
|
-
// } else if (this.symbol === Fiat.DKK) {
|
|
30
|
-
// return "Danish Krone";
|
|
31
|
-
// } else if (this.symbol === Fiat.EUR) {
|
|
32
|
-
// return "Euro";
|
|
33
|
-
// } else if (this.symbol === Fiat.GBP) {
|
|
34
|
-
// return "British Pound";
|
|
35
|
-
// } else if (this.symbol === Fiat.HRK) {
|
|
36
|
-
// return "Croatian Kuna";
|
|
37
|
-
// } else if (this.symbol === Fiat.HUF) {
|
|
38
|
-
// return "Hungarian Forint";
|
|
39
|
-
// } else if (this.symbol === Fiat.IDR) {
|
|
40
|
-
// return "Indonesian Rupiah";
|
|
41
|
-
// } else if (this.symbol === Fiat.ILS) {
|
|
42
|
-
// return "Israeli Shekel";
|
|
43
|
-
// } else if (this.symbol === Fiat.INR) {
|
|
44
|
-
// return "Indian Rupee";
|
|
45
|
-
// } else if (this.symbol === Fiat.JPY) {
|
|
46
|
-
// return "Japanese Yen";
|
|
47
|
-
// } else if (this.symbol === Fiat.KRW) {
|
|
48
|
-
// return "South Korean Won";
|
|
49
|
-
// } else if (this.symbol === Fiat.MXN) {
|
|
50
|
-
// return "Mexican Peso";
|
|
51
|
-
// } else if (this.symbol === Fiat.MYR) {
|
|
52
|
-
// return "Malaysian Ringgit";
|
|
53
|
-
// } else if (this.symbol === Fiat.NOK) {
|
|
54
|
-
// return "Norwegian Krone";
|
|
55
|
-
// } else if (this.symbol === Fiat.NZD) {
|
|
56
|
-
// return "New Zealand Dollar";
|
|
57
|
-
// } else if (this.symbol === Fiat.PHP) {
|
|
58
|
-
// return "Philippine Peso";
|
|
59
|
-
// } else if (this.symbol === Fiat.PLN) {
|
|
60
|
-
// return "Polish Złoty";
|
|
61
|
-
// } else if (this.symbol === Fiat.RON) {
|
|
62
|
-
// return "Swedish Krona";
|
|
63
|
-
// } else if (this.symbol === Fiat.RUB) {
|
|
64
|
-
// return "Russian Ruble";
|
|
65
|
-
// } else if (this.symbol === Fiat.SEK) {
|
|
66
|
-
// return "Swedish Krona";
|
|
67
|
-
// } else if (this.symbol === Fiat.THB) {
|
|
68
|
-
// return "Thai Baht";
|
|
69
|
-
// } else if (this.symbol === Fiat.TRY) {
|
|
70
|
-
// return "Turkish Lira";
|
|
71
72
|
if (this.symbol === fiat_1.Fiat.USD) {
|
|
72
73
|
return "United States Dollar";
|
|
73
74
|
// } else if (this.symbol === Fiat.VND) {
|
|
@@ -28,7 +28,7 @@ export declare class RioAdminClient {
|
|
|
28
28
|
getOrders(): Promise<Order[]>;
|
|
29
29
|
getQuote(crypto: Crypto, fiat: Fiat, quoteInCrypto: boolean, side: Side, amountFiat?: Number, amountCrypto?: Number, country?: Country, paymentMethod?: PaymentMethod, payoutMethod?: PayoutMethod): Promise<Quote>;
|
|
30
30
|
getUsers(type?: UserType, brokerId?: string): Promise<User[]>;
|
|
31
|
-
signinAdmin(email: string, password: string): Promise<any>;
|
|
31
|
+
signinAdmin(email: string, password: string, authenticatorCode: string): Promise<any>;
|
|
32
32
|
updateUser(update: UserUpdate, userId?: string): Promise<User>;
|
|
33
33
|
uploadBusinessCOI(id: string, formData: FormData): Promise<User>;
|
|
34
34
|
uploadBusinessKYCReport(id: string, formData: FormData): Promise<User>;
|
|
@@ -58,11 +58,12 @@ class RioAdminClient {
|
|
|
58
58
|
return data;
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
signinAdmin(email, password) {
|
|
61
|
+
signinAdmin(email, password, authenticatorCode) {
|
|
62
62
|
return __awaiter(this, void 0, void 0, function* () {
|
|
63
63
|
const { data } = yield this.axios.post(`/api/auth/admin/signin`, {
|
|
64
64
|
email,
|
|
65
65
|
password,
|
|
66
|
+
authenticatorCode,
|
|
66
67
|
});
|
|
67
68
|
return data;
|
|
68
69
|
});
|