@riocrypto/common 1.0.1417 → 1.0.1419
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 +1 -0
- package/build/clients/rio-admin-client.js +6 -0
- package/build/clients/rio-client.d.ts +1 -0
- package/build/clients/rio-client.js +6 -0
- package/build/events/address-verification-sent-event.d.ts +7 -0
- package/build/events/address-verification-sent-event.js +2 -0
- package/build/events/subjects.d.ts +1 -0
- package/build/events/subjects.js +1 -0
- package/build/types/address-verification-status.d.ts +1 -0
- package/build/types/address-verification-status.js +1 -0
- package/build/types/crypto-address.d.ts +5 -0
- package/package.json +1 -1
|
@@ -159,6 +159,7 @@ export declare class RioAdminClient {
|
|
|
159
159
|
createInternalSwap(originCrypto: Crypto, destinationCrypto: Crypto, amount: number, provider: "coinbase" | "circle"): Promise<void>;
|
|
160
160
|
getInternalSwaps(page: number, limit?: number): Promise<InternalSwap[]>;
|
|
161
161
|
getBankPayout(orderId: string): Promise<BankPayout>;
|
|
162
|
+
startAddressVerification(addressId: string): Promise<void>;
|
|
162
163
|
getCryptoAddresses(page: number, limit?: number, query?: CryptoAddressQuery): Promise<CryptoAddress[]>;
|
|
163
164
|
getCryptoAddress(id: string): Promise<CryptoAddress>;
|
|
164
165
|
createChainedOrder(order: ChainedOrderInput): Promise<ChainedOrder>;
|
|
@@ -571,6 +571,12 @@ class RioAdminClient {
|
|
|
571
571
|
return response.data;
|
|
572
572
|
});
|
|
573
573
|
}
|
|
574
|
+
startAddressVerification(addressId) {
|
|
575
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
576
|
+
const response = yield this.axios.post(`/api/addresses/${addressId}/start-verification`);
|
|
577
|
+
return response.data;
|
|
578
|
+
});
|
|
579
|
+
}
|
|
574
580
|
getCryptoAddresses(page, limit, query) {
|
|
575
581
|
return __awaiter(this, void 0, void 0, function* () {
|
|
576
582
|
const { data } = yield this.axios.get(`/api/addresses?`, {
|
|
@@ -130,6 +130,7 @@ export declare class RioClient {
|
|
|
130
130
|
}>;
|
|
131
131
|
getBridgeExternalAccounts(query: BridgeExternalAccountQuery): Promise<BankAccount[]>;
|
|
132
132
|
getCryptoAddresses(page: number, limit?: number, query?: CryptoAddressQuery): Promise<CryptoAddress[]>;
|
|
133
|
+
startAddressVerification(addressId: string): Promise<void>;
|
|
133
134
|
getCryptoAddress(id: string): Promise<CryptoAddress>;
|
|
134
135
|
createCryptoAddress(address: string, crypto: Crypto, userId?: string, label?: string): Promise<CryptoAddress>;
|
|
135
136
|
createBridgePlaidLink(userId: string): Promise<string>;
|
|
@@ -473,6 +473,12 @@ class RioClient {
|
|
|
473
473
|
return data;
|
|
474
474
|
});
|
|
475
475
|
}
|
|
476
|
+
startAddressVerification(addressId) {
|
|
477
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
478
|
+
const response = yield this.axios.post(`/api/addresses/${addressId}/start-verification`);
|
|
479
|
+
return response.data;
|
|
480
|
+
});
|
|
481
|
+
}
|
|
476
482
|
getCryptoAddress(id) {
|
|
477
483
|
return __awaiter(this, void 0, void 0, function* () {
|
|
478
484
|
const { data } = yield this.axios.get(`/api/addresses/${id}`);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare enum Subjects {
|
|
2
2
|
AuthDeleted = "auth:deleted",
|
|
3
3
|
AddressVerificationInitiated = "addressVerification:initiated",
|
|
4
|
+
AddressVerificationSent = "addressVerification:sent",
|
|
4
5
|
AddressCheckPassed = "addressCheck:passed",
|
|
5
6
|
AddressCheckFailed = "addressCheck:Failed",
|
|
6
7
|
CircleAddressReady = "circleAddress:ready",
|
package/build/events/subjects.js
CHANGED
|
@@ -5,6 +5,7 @@ var Subjects;
|
|
|
5
5
|
(function (Subjects) {
|
|
6
6
|
Subjects["AuthDeleted"] = "auth:deleted";
|
|
7
7
|
Subjects["AddressVerificationInitiated"] = "addressVerification:initiated";
|
|
8
|
+
Subjects["AddressVerificationSent"] = "addressVerification:sent";
|
|
8
9
|
Subjects["AddressCheckPassed"] = "addressCheck:passed";
|
|
9
10
|
Subjects["AddressCheckFailed"] = "addressCheck:Failed";
|
|
10
11
|
Subjects["CircleAddressReady"] = "circleAddress:ready";
|
|
@@ -4,5 +4,6 @@ exports.AddressVerificationStatus = void 0;
|
|
|
4
4
|
var AddressVerificationStatus;
|
|
5
5
|
(function (AddressVerificationStatus) {
|
|
6
6
|
AddressVerificationStatus["initiated"] = "initiated";
|
|
7
|
+
AddressVerificationStatus["sent"] = "sent";
|
|
7
8
|
AddressVerificationStatus["passed"] = "passed";
|
|
8
9
|
})(AddressVerificationStatus = exports.AddressVerificationStatus || (exports.AddressVerificationStatus = {}));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AddressVerificationStatus } from "./address-verification-status";
|
|
1
2
|
export interface CryptoAddress {
|
|
2
3
|
id: string;
|
|
3
4
|
userId: string;
|
|
@@ -7,4 +8,8 @@ export interface CryptoAddress {
|
|
|
7
8
|
userApproved: boolean;
|
|
8
9
|
lastChecked: Date;
|
|
9
10
|
label?: string;
|
|
11
|
+
verification?: {
|
|
12
|
+
status?: AddressVerificationStatus;
|
|
13
|
+
amount?: number;
|
|
14
|
+
};
|
|
10
15
|
}
|