@riocrypto/common 1.0.929 → 1.0.931
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/clients/rio-admin-client.d.ts +2 -2
- package/build/clients/rio-admin-client.js +4 -2
- package/build/clients/rio-client.d.ts +2 -2
- package/build/clients/rio-client.js +2 -2
- package/build/events/subjects.d.ts +0 -2
- package/build/events/subjects.js +0 -2
- package/build/index.d.ts +1 -3
- package/build/index.js +1 -3
- package/build/types/crypto-address.d.ts +9 -0
- package/package.json +1 -1
- package/build/events/checked-address-created-event.d.ts +0 -11
- package/build/events/checked-address-updated-event.d.ts +0 -10
- package/build/events/checked-address-updated-event.js +0 -2
- package/build/types/checked-address.d.ts +0 -7
- package/build/types/checked-address.js +0 -2
- /package/build/{events/checked-address-created-event.js → types/crypto-address.js} +0 -0
|
@@ -3,7 +3,7 @@ import { Admin } from "../types/admin";
|
|
|
3
3
|
import { Auth } from "../types/auth";
|
|
4
4
|
import { AuthUpdate } from "../types/auth-update";
|
|
5
5
|
import { BankPayout } from "../types/bank-payout";
|
|
6
|
-
import {
|
|
6
|
+
import { CryptoAddress } from "../types/crypto-address";
|
|
7
7
|
import { Country } from "../types/country";
|
|
8
8
|
import { Fiat } from "../types/fiat";
|
|
9
9
|
import { Order } from "../types/order";
|
|
@@ -100,7 +100,7 @@ export declare class RioAdminClient {
|
|
|
100
100
|
getOrder(id: string): Promise<Order>;
|
|
101
101
|
createBankPayout(oid: string, bankAccountId: string): Promise<BankPayout>;
|
|
102
102
|
getBankPayout(orderId: string): Promise<BankPayout>;
|
|
103
|
-
|
|
103
|
+
createCryptoAddress(address: string, crypto: Crypto, userId: string, label?: string): Promise<CryptoAddress>;
|
|
104
104
|
createBankAccount(userId: string, country: Country, fiat: Fiat, bankName: string, accountHolderName: string, accountNumber: string, swiftCode?: string, notes?: string): Promise<BankAccount>;
|
|
105
105
|
updateBankAccount(id: string, userId?: string, country?: Country, fiat?: Fiat, bankName?: string, accountHolderName?: string, accountNumber?: string, swiftCode?: string, notes?: string, approved?: boolean): Promise<BankAccount>;
|
|
106
106
|
deleteBankAccount(id: string): Promise<void>;
|
|
@@ -336,11 +336,13 @@ class RioAdminClient {
|
|
|
336
336
|
return response.data;
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
|
-
|
|
339
|
+
createCryptoAddress(address, crypto, userId, label) {
|
|
340
340
|
return __awaiter(this, void 0, void 0, function* () {
|
|
341
|
-
const response = yield this.axios.post(`/api/
|
|
341
|
+
const response = yield this.axios.post(`/api/address`, {
|
|
342
342
|
address,
|
|
343
343
|
crypto,
|
|
344
|
+
userId,
|
|
345
|
+
label,
|
|
344
346
|
});
|
|
345
347
|
return response.data;
|
|
346
348
|
});
|
|
@@ -2,7 +2,7 @@ import { AxiosInstance, AxiosStatic } from "axios";
|
|
|
2
2
|
import { Auth } from "../types/auth";
|
|
3
3
|
import { AuthUpdate } from "../types/auth-update";
|
|
4
4
|
import { BankPayout } from "../types/bank-payout";
|
|
5
|
-
import {
|
|
5
|
+
import { CryptoAddress } from "../types/crypto-address";
|
|
6
6
|
import { Country } from "../types/country";
|
|
7
7
|
import { Fiat } from "../types/fiat";
|
|
8
8
|
import { Order } from "../types/order";
|
|
@@ -74,7 +74,7 @@ export declare class RioClient {
|
|
|
74
74
|
account_owner_name: string;
|
|
75
75
|
last_4: string;
|
|
76
76
|
}[]>;
|
|
77
|
-
|
|
77
|
+
createCryptoAddress(address: string, crypto: Crypto, userId?: string, label?: string): Promise<CryptoAddress>;
|
|
78
78
|
createBridgePlaidLink(userId: string): Promise<string>;
|
|
79
79
|
createBankAccount(userId: string, country: Country, fiat: Fiat, bankName: string, accountHolderName: string, accountNumber: string, swiftCode?: string, notes?: string): Promise<BankAccount>;
|
|
80
80
|
updateBankAccount(id: string, userId?: string, country?: Country, fiat?: Fiat, accountNumber?: string, swiftCode?: string, notes?: string, approved?: boolean): Promise<BankAccount>;
|
|
@@ -228,9 +228,9 @@ class RioClient {
|
|
|
228
228
|
return data;
|
|
229
229
|
});
|
|
230
230
|
}
|
|
231
|
-
|
|
231
|
+
createCryptoAddress(address, crypto, userId, label) {
|
|
232
232
|
return __awaiter(this, void 0, void 0, function* () {
|
|
233
|
-
const response = yield this.axios.post(`/api/
|
|
233
|
+
const response = yield this.axios.post(`/api/address`, {
|
|
234
234
|
address,
|
|
235
235
|
crypto,
|
|
236
236
|
});
|
|
@@ -35,8 +35,6 @@ export declare enum Subjects {
|
|
|
35
35
|
LiquidityRoutingFailed = "liquidity:routingFailed",
|
|
36
36
|
FeesFailed = "fees:failed",
|
|
37
37
|
DepositAddressFailed = "deposit:addressFailed",
|
|
38
|
-
CheckedAddressCreated = "checkedAddress:created",
|
|
39
|
-
CheckedAddressUpdated = "checkedAddress:updated",
|
|
40
38
|
KYCPassed = "kyc:passed",
|
|
41
39
|
KYCReview = "kyc:review",
|
|
42
40
|
KYCFailed = "kyc:failed",
|
package/build/events/subjects.js
CHANGED
|
@@ -39,8 +39,6 @@ var Subjects;
|
|
|
39
39
|
Subjects["LiquidityRoutingFailed"] = "liquidity:routingFailed";
|
|
40
40
|
Subjects["FeesFailed"] = "fees:failed";
|
|
41
41
|
Subjects["DepositAddressFailed"] = "deposit:addressFailed";
|
|
42
|
-
Subjects["CheckedAddressCreated"] = "checkedAddress:created";
|
|
43
|
-
Subjects["CheckedAddressUpdated"] = "checkedAddress:updated";
|
|
44
42
|
Subjects["KYCPassed"] = "kyc:passed";
|
|
45
43
|
Subjects["KYCReview"] = "kyc:review";
|
|
46
44
|
Subjects["KYCFailed"] = "kyc:failed";
|
package/build/index.d.ts
CHANGED
|
@@ -73,8 +73,6 @@ export * from "./events/processor-routing-failed-event";
|
|
|
73
73
|
export * from "./events/liquidity-routing-failed-event";
|
|
74
74
|
export * from "./events/fees-failed-event";
|
|
75
75
|
export * from "./events/deposit-address-failed-event";
|
|
76
|
-
export * from "./events/checked-address-created-event";
|
|
77
|
-
export * from "./events/checked-address-updated-event";
|
|
78
76
|
export * from "./events/kyc-passed-event";
|
|
79
77
|
export * from "./events/kyc-review-event";
|
|
80
78
|
export * from "./events/kyc-failed-event";
|
|
@@ -127,7 +125,7 @@ export * from "./types/rio-settings";
|
|
|
127
125
|
export * from "./types/rio-settings-update";
|
|
128
126
|
export * from "./types/rio-env";
|
|
129
127
|
export * from "./types/bank-payout";
|
|
130
|
-
export * from "./types/
|
|
128
|
+
export * from "./types/crypto-address";
|
|
131
129
|
export * from "./types/address-check-result";
|
|
132
130
|
export * from "./types/fireblocks-vault";
|
|
133
131
|
export * from "./types/fireblocks-transfer";
|
package/build/index.js
CHANGED
|
@@ -89,8 +89,6 @@ __exportStar(require("./events/processor-routing-failed-event"), exports);
|
|
|
89
89
|
__exportStar(require("./events/liquidity-routing-failed-event"), exports);
|
|
90
90
|
__exportStar(require("./events/fees-failed-event"), exports);
|
|
91
91
|
__exportStar(require("./events/deposit-address-failed-event"), exports);
|
|
92
|
-
__exportStar(require("./events/checked-address-created-event"), exports);
|
|
93
|
-
__exportStar(require("./events/checked-address-updated-event"), exports);
|
|
94
92
|
__exportStar(require("./events/kyc-passed-event"), exports);
|
|
95
93
|
__exportStar(require("./events/kyc-review-event"), exports);
|
|
96
94
|
__exportStar(require("./events/kyc-failed-event"), exports);
|
|
@@ -143,7 +141,7 @@ __exportStar(require("./types/rio-settings"), exports);
|
|
|
143
141
|
__exportStar(require("./types/rio-settings-update"), exports);
|
|
144
142
|
__exportStar(require("./types/rio-env"), exports);
|
|
145
143
|
__exportStar(require("./types/bank-payout"), exports);
|
|
146
|
-
__exportStar(require("./types/
|
|
144
|
+
__exportStar(require("./types/crypto-address"), exports);
|
|
147
145
|
__exportStar(require("./types/address-check-result"), exports);
|
|
148
146
|
__exportStar(require("./types/fireblocks-vault"), exports);
|
|
149
147
|
__exportStar(require("./types/fireblocks-transfer"), exports);
|
package/package.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AddressCheckResult } from "../types/address-check-result";
|
|
2
|
-
import { Subjects } from "./subjects";
|
|
3
|
-
export interface CheckedAddressCreatedEvent {
|
|
4
|
-
subject: Subjects.CheckedAddressCreated;
|
|
5
|
-
data: {
|
|
6
|
-
id: string;
|
|
7
|
-
address: string;
|
|
8
|
-
result: AddressCheckResult;
|
|
9
|
-
lastChecked: Date;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AddressCheckResult } from "../types/address-check-result";
|
|
2
|
-
import { Subjects } from "./subjects";
|
|
3
|
-
export interface CheckedAddressUpdatedEvent {
|
|
4
|
-
subject: Subjects.CheckedAddressUpdated;
|
|
5
|
-
data: {
|
|
6
|
-
id: string;
|
|
7
|
-
result: AddressCheckResult;
|
|
8
|
-
lastChecked: Date;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
File without changes
|