@riocrypto/common 1.0.931 → 1.0.933
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 -0
- package/build/clients/rio-admin-client.js +9 -0
- package/build/clients/rio-client.d.ts +2 -0
- package/build/clients/rio-client.js +9 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/types/crypto-address-query.d.ts +5 -0
- package/build/types/crypto-address-query.js +2 -0
- package/package.json +1 -1
|
@@ -28,6 +28,7 @@ import { AdminTask } from "../types/admin-task";
|
|
|
28
28
|
import { AdminTaskType } from "../types/admin-task-type";
|
|
29
29
|
import { ImportOrderInput } from "../types/import-order-input";
|
|
30
30
|
import { Invoice } from "../types/invoice";
|
|
31
|
+
import { AddressQuery } from "../types/crypto-address-query";
|
|
31
32
|
export declare class RioAdminClient {
|
|
32
33
|
private axios;
|
|
33
34
|
constructor(axios: AxiosStatic | AxiosInstance);
|
|
@@ -100,6 +101,7 @@ export declare class RioAdminClient {
|
|
|
100
101
|
getOrder(id: string): Promise<Order>;
|
|
101
102
|
createBankPayout(oid: string, bankAccountId: string): Promise<BankPayout>;
|
|
102
103
|
getBankPayout(orderId: string): Promise<BankPayout>;
|
|
104
|
+
getCryptoAddresses(page: number, limit?: number, query?: AddressQuery): Promise<CryptoAddress[]>;
|
|
103
105
|
createCryptoAddress(address: string, crypto: Crypto, userId: string, label?: string): Promise<CryptoAddress>;
|
|
104
106
|
createBankAccount(userId: string, country: Country, fiat: Fiat, bankName: string, accountHolderName: string, accountNumber: string, swiftCode?: string, notes?: string): Promise<BankAccount>;
|
|
105
107
|
updateBankAccount(id: string, userId?: string, country?: Country, fiat?: Fiat, bankName?: string, accountHolderName?: string, accountNumber?: string, swiftCode?: string, notes?: string, approved?: boolean): Promise<BankAccount>;
|
|
@@ -336,6 +336,15 @@ class RioAdminClient {
|
|
|
336
336
|
return response.data;
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
|
+
getCryptoAddresses(page, limit, query) {
|
|
340
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
341
|
+
const { data } = yield this.axios.get(`/api/addresses?`, {
|
|
342
|
+
params: Object.assign({ page,
|
|
343
|
+
limit }, query),
|
|
344
|
+
});
|
|
345
|
+
return data;
|
|
346
|
+
});
|
|
347
|
+
}
|
|
339
348
|
createCryptoAddress(address, crypto, userId, label) {
|
|
340
349
|
return __awaiter(this, void 0, void 0, function* () {
|
|
341
350
|
const response = yield this.axios.post(`/api/address`, {
|
|
@@ -23,6 +23,7 @@ import { UserQuery } from "../types/user-query";
|
|
|
23
23
|
import { OrderQuery } from "../types/order-query";
|
|
24
24
|
import { BankAccountQuery } from "../types/bank-account-query";
|
|
25
25
|
import { Invoice } from "../types/invoice";
|
|
26
|
+
import { AddressQuery } from "../types/crypto-address-query";
|
|
26
27
|
export declare class RioClient {
|
|
27
28
|
private axios;
|
|
28
29
|
constructor(axios: AxiosStatic | AxiosInstance);
|
|
@@ -74,6 +75,7 @@ export declare class RioClient {
|
|
|
74
75
|
account_owner_name: string;
|
|
75
76
|
last_4: string;
|
|
76
77
|
}[]>;
|
|
78
|
+
getCryptoAddresses(page: number, limit?: number, query?: AddressQuery): Promise<CryptoAddress[]>;
|
|
77
79
|
createCryptoAddress(address: string, crypto: Crypto, userId?: string, label?: string): Promise<CryptoAddress>;
|
|
78
80
|
createBridgePlaidLink(userId: string): Promise<string>;
|
|
79
81
|
createBankAccount(userId: string, country: Country, fiat: Fiat, bankName: string, accountHolderName: string, accountNumber: string, swiftCode?: string, notes?: string): Promise<BankAccount>;
|
|
@@ -228,6 +228,15 @@ class RioClient {
|
|
|
228
228
|
return data;
|
|
229
229
|
});
|
|
230
230
|
}
|
|
231
|
+
getCryptoAddresses(page, limit, query) {
|
|
232
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
233
|
+
const { data } = yield this.axios.get(`/api/addresses?`, {
|
|
234
|
+
params: Object.assign({ page,
|
|
235
|
+
limit }, query),
|
|
236
|
+
});
|
|
237
|
+
return data;
|
|
238
|
+
});
|
|
239
|
+
}
|
|
231
240
|
createCryptoAddress(address, crypto, userId, label) {
|
|
232
241
|
return __awaiter(this, void 0, void 0, function* () {
|
|
233
242
|
const response = yield this.axios.post(`/api/address`, {
|
package/build/index.d.ts
CHANGED
|
@@ -140,6 +140,7 @@ export * from "./types/bank-account";
|
|
|
140
140
|
export * from "./types/quote-input";
|
|
141
141
|
export * from "./types/order-query";
|
|
142
142
|
export * from "./types/user-query";
|
|
143
|
+
export * from "./types/crypto-address-query";
|
|
143
144
|
export * from "./types/bank-account-query";
|
|
144
145
|
export * from "./types/mexico-fiscal-regimen";
|
|
145
146
|
export * from "./types/bridge-customer";
|
package/build/index.js
CHANGED
|
@@ -156,6 +156,7 @@ __exportStar(require("./types/bank-account"), exports);
|
|
|
156
156
|
__exportStar(require("./types/quote-input"), exports);
|
|
157
157
|
__exportStar(require("./types/order-query"), exports);
|
|
158
158
|
__exportStar(require("./types/user-query"), exports);
|
|
159
|
+
__exportStar(require("./types/crypto-address-query"), exports);
|
|
159
160
|
__exportStar(require("./types/bank-account-query"), exports);
|
|
160
161
|
__exportStar(require("./types/mexico-fiscal-regimen"), exports);
|
|
161
162
|
__exportStar(require("./types/bridge-customer"), exports);
|