@riocrypto/common 1.0.1596 → 1.0.1599
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 +8 -11
- package/build/clients/rio-admin-client.js +2 -23
- package/build/clients/rio-client.d.ts +8 -3
- package/build/clients/rio-client.js +2 -10
- package/build/types/bank-account.d.ts +1 -0
- package/build/types/crypto.js +0 -2
- package/build/types/order-input.d.ts +1 -0
- package/build/types/order-status.d.ts +1 -0
- package/build/types/order-status.js +2 -0
- package/build/types/order.d.ts +3 -0
- package/package.json +1 -1
|
@@ -33,7 +33,6 @@ import { ChainedQuoteInput } from "../types/chained-quote-input";
|
|
|
33
33
|
import { ChainedQuote } from "../types/chained-quote";
|
|
34
34
|
import { ChainedOrderInput } from "../types/chained-order-input";
|
|
35
35
|
import { InternalSwap } from "../types/internal-swap";
|
|
36
|
-
import { BridgeExternalAccountQuery } from "../types/bridge-external-account-query";
|
|
37
36
|
import { CountryOfOrigin } from "../types/country-of-origin";
|
|
38
37
|
import { KYCFileType } from "../types/kyc-file-type";
|
|
39
38
|
import { UserType } from "../types/user-type";
|
|
@@ -190,7 +189,6 @@ export declare class RioAdminClient {
|
|
|
190
189
|
tosLink: string;
|
|
191
190
|
kycLink: string;
|
|
192
191
|
}>;
|
|
193
|
-
getBridgeExternalAccounts(query: BridgeExternalAccountQuery): Promise<BankAccount[]>;
|
|
194
192
|
getAdminAuth(id: string): Promise<AdminAuth>;
|
|
195
193
|
deleteAdminAuth(id: string): Promise<void>;
|
|
196
194
|
getAdminAuthWithoutId(): Promise<AdminAuth>;
|
|
@@ -226,14 +224,6 @@ export declare class RioAdminClient {
|
|
|
226
224
|
createBridgePlaidLink(userId: string): Promise<string>;
|
|
227
225
|
refreshAdminToken(): Promise<void>;
|
|
228
226
|
createOrder(order: OrderInput): Promise<Order>;
|
|
229
|
-
createBridgeExternalAccount(userId: string, bankName: string, accountNumber: string, routingNumber: string, accountOwnerName: string, address: {
|
|
230
|
-
street1: string;
|
|
231
|
-
street2?: string;
|
|
232
|
-
city: string;
|
|
233
|
-
state: string;
|
|
234
|
-
postalCode: string;
|
|
235
|
-
country: CountryOfOrigin;
|
|
236
|
-
}): Promise<string>;
|
|
237
227
|
getChainedOrders(page: number, limit?: number, query?: ChainedOrderQuery): Promise<ChainedOrder[]>;
|
|
238
228
|
getChainedQuote(id: string): Promise<ChainedQuote>;
|
|
239
229
|
getChainedOrder(id: string): Promise<ChainedOrder>;
|
|
@@ -269,7 +259,14 @@ export declare class RioAdminClient {
|
|
|
269
259
|
chainedQuote: ChainedQuote;
|
|
270
260
|
sufficientLiquidity: boolean;
|
|
271
261
|
}>;
|
|
272
|
-
createBankAccount(userId: string, country: Country, fiat: Fiat, bankName: string, accountHolderName: string, accountNumber: string,
|
|
262
|
+
createBankAccount(userId: string, country: Country, fiat: Fiat, bankName: string, accountHolderName: string, accountNumber: string, CLABE?: string, CCI?: string, notes?: string, address?: {
|
|
263
|
+
street1: string;
|
|
264
|
+
street2?: string;
|
|
265
|
+
city: string;
|
|
266
|
+
state: string;
|
|
267
|
+
postalCode: string;
|
|
268
|
+
country: CountryOfOrigin;
|
|
269
|
+
}): Promise<BankAccount>;
|
|
273
270
|
updateBankAccount(id: string, data: {
|
|
274
271
|
notes?: string;
|
|
275
272
|
approved?: boolean;
|
|
@@ -365,14 +365,6 @@ class RioAdminClient {
|
|
|
365
365
|
return data;
|
|
366
366
|
});
|
|
367
367
|
}
|
|
368
|
-
getBridgeExternalAccounts(query) {
|
|
369
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
370
|
-
const { data } = yield this.axios.get(`/api/bank/us/accounts`, {
|
|
371
|
-
params: Object.assign({}, query),
|
|
372
|
-
});
|
|
373
|
-
return data;
|
|
374
|
-
});
|
|
375
|
-
}
|
|
376
368
|
getAdminAuth(id) {
|
|
377
369
|
return __awaiter(this, void 0, void 0, function* () {
|
|
378
370
|
const { data } = yield this.axios.get(`/api/auth/admin/${id}`);
|
|
@@ -571,19 +563,6 @@ class RioAdminClient {
|
|
|
571
563
|
return response.data;
|
|
572
564
|
});
|
|
573
565
|
}
|
|
574
|
-
createBridgeExternalAccount(userId, bankName, accountNumber, routingNumber, accountOwnerName, address) {
|
|
575
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
576
|
-
const response = yield this.axios.post("/api/bank/us/accounts", {
|
|
577
|
-
userId,
|
|
578
|
-
bankName,
|
|
579
|
-
accountNumber,
|
|
580
|
-
routingNumber,
|
|
581
|
-
accountOwnerName,
|
|
582
|
-
address,
|
|
583
|
-
});
|
|
584
|
-
return response.data.id;
|
|
585
|
-
});
|
|
586
|
-
}
|
|
587
566
|
getChainedOrders(page, limit, query) {
|
|
588
567
|
return __awaiter(this, void 0, void 0, function* () {
|
|
589
568
|
const { data } = yield this.axios.get(`/api/orders/chained?`, {
|
|
@@ -808,7 +787,7 @@ class RioAdminClient {
|
|
|
808
787
|
return data;
|
|
809
788
|
});
|
|
810
789
|
}
|
|
811
|
-
createBankAccount(userId, country, fiat, bankName, accountHolderName, accountNumber,
|
|
790
|
+
createBankAccount(userId, country, fiat, bankName, accountHolderName, accountNumber, CLABE, CCI, notes, address) {
|
|
812
791
|
return __awaiter(this, void 0, void 0, function* () {
|
|
813
792
|
const response = yield this.axios.post(`/api/bank/accounts`, {
|
|
814
793
|
userId,
|
|
@@ -817,10 +796,10 @@ class RioAdminClient {
|
|
|
817
796
|
bankName,
|
|
818
797
|
accountHolderName,
|
|
819
798
|
accountNumber,
|
|
820
|
-
swiftCode,
|
|
821
799
|
CLABE,
|
|
822
800
|
CCI,
|
|
823
801
|
notes,
|
|
802
|
+
address,
|
|
824
803
|
});
|
|
825
804
|
return response.data;
|
|
826
805
|
});
|
|
@@ -29,7 +29,6 @@ import { ChainedQuote } from "../types/chained-quote";
|
|
|
29
29
|
import { ChainedOrderInput } from "../types/chained-order-input";
|
|
30
30
|
import { ChainedOrder } from "../types/chained-order";
|
|
31
31
|
import { ChainedOrderQuery } from "../types/chained-order-query";
|
|
32
|
-
import { BridgeExternalAccountQuery } from "../types/bridge-external-account-query";
|
|
33
32
|
import { SecurityQuestion } from "../types/security-question";
|
|
34
33
|
import { KYCFileType } from "../types/kyc-file-type";
|
|
35
34
|
import { CountryOfOrigin } from "../types/country-of-origin";
|
|
@@ -180,7 +179,6 @@ export declare class RioClient {
|
|
|
180
179
|
tosLink: string;
|
|
181
180
|
kycLink: string;
|
|
182
181
|
}>;
|
|
183
|
-
getBridgeExternalAccounts(query: BridgeExternalAccountQuery): Promise<BankAccount[]>;
|
|
184
182
|
getCryptoAddresses(page: number, limit?: number, query?: CryptoAddressQuery): Promise<CryptoAddress[]>;
|
|
185
183
|
startAddressVerification(addressId: string): Promise<void>;
|
|
186
184
|
completeAddressVerification(addressId: string, amount: Number): Promise<void>;
|
|
@@ -197,7 +195,14 @@ export declare class RioClient {
|
|
|
197
195
|
postalCode: string;
|
|
198
196
|
country: CountryOfOrigin;
|
|
199
197
|
}): Promise<string>;
|
|
200
|
-
createBankAccount(userId: string, country: Country, fiat: Fiat, bankName: string, accountHolderName: string, accountNumber: string,
|
|
198
|
+
createBankAccount(userId: string, country: Country, fiat: Fiat, bankName: string, accountHolderName: string, accountNumber: string, CLABE?: string, CCI?: string, notes?: string, address?: {
|
|
199
|
+
street1: string;
|
|
200
|
+
street2?: string;
|
|
201
|
+
city: string;
|
|
202
|
+
state: string;
|
|
203
|
+
postalCode: string;
|
|
204
|
+
country: CountryOfOrigin;
|
|
205
|
+
}): Promise<BankAccount>;
|
|
201
206
|
updateBankAccount(id: string, data: {
|
|
202
207
|
notes?: string;
|
|
203
208
|
}): Promise<BankAccount>;
|
|
@@ -535,14 +535,6 @@ class RioClient {
|
|
|
535
535
|
return data;
|
|
536
536
|
});
|
|
537
537
|
}
|
|
538
|
-
getBridgeExternalAccounts(query) {
|
|
539
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
540
|
-
const { data } = yield this.axios.get(`/api/bank/us/accounts`, {
|
|
541
|
-
params: Object.assign({}, query),
|
|
542
|
-
});
|
|
543
|
-
return data;
|
|
544
|
-
});
|
|
545
|
-
}
|
|
546
538
|
getCryptoAddresses(page, limit, query) {
|
|
547
539
|
return __awaiter(this, void 0, void 0, function* () {
|
|
548
540
|
const { data } = yield this.axios.get(`/api/addresses?`, {
|
|
@@ -618,7 +610,7 @@ class RioClient {
|
|
|
618
610
|
return response.data.id;
|
|
619
611
|
});
|
|
620
612
|
}
|
|
621
|
-
createBankAccount(userId, country, fiat, bankName, accountHolderName, accountNumber,
|
|
613
|
+
createBankAccount(userId, country, fiat, bankName, accountHolderName, accountNumber, CLABE, CCI, notes, address) {
|
|
622
614
|
return __awaiter(this, void 0, void 0, function* () {
|
|
623
615
|
const response = yield this.axios.post(`/api/bank/accounts`, {
|
|
624
616
|
userId,
|
|
@@ -627,10 +619,10 @@ class RioClient {
|
|
|
627
619
|
bankName,
|
|
628
620
|
accountHolderName,
|
|
629
621
|
accountNumber,
|
|
630
|
-
swiftCode,
|
|
631
622
|
CLABE,
|
|
632
623
|
CCI,
|
|
633
624
|
notes,
|
|
625
|
+
address,
|
|
634
626
|
});
|
|
635
627
|
return response.data;
|
|
636
628
|
});
|
package/build/types/crypto.js
CHANGED
|
@@ -17,6 +17,7 @@ export declare enum OrderStatus {
|
|
|
17
17
|
PaymentFailed = "failedPayment",
|
|
18
18
|
BankPayoutDetailsAdded = "bankPayoutDetailsAdded",
|
|
19
19
|
AwaitingPayment = "awaitingPayment",
|
|
20
|
+
AwaitingOriginOrderCompletion = "awaitingOriginOrderCompletion",
|
|
20
21
|
AwaitingTransferReissue = "awaitingTransferReissue",
|
|
21
22
|
AwaitingPayout = "awaitingPayout",
|
|
22
23
|
AwaitingBridgeRouting = "awaitingBridgeRouting",
|
|
@@ -38,6 +38,8 @@ var OrderStatus;
|
|
|
38
38
|
OrderStatus["BankPayoutDetailsAdded"] = "bankPayoutDetailsAdded";
|
|
39
39
|
// When waiting for asynchronous payment
|
|
40
40
|
OrderStatus["AwaitingPayment"] = "awaitingPayment";
|
|
41
|
+
// When waiting for asynchronous payment
|
|
42
|
+
OrderStatus["AwaitingOriginOrderCompletion"] = "awaitingOriginOrderCompletion";
|
|
41
43
|
// During chained order, when waiting for the transfer to be reissued by the Bridge in case of requote
|
|
42
44
|
OrderStatus["AwaitingTransferReissue"] = "awaitingTransferReissue";
|
|
43
45
|
// When waiting for asynchronous payout
|
package/build/types/order.d.ts
CHANGED