@riocrypto/common 1.0.1348 → 1.0.1349
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.
|
@@ -53,6 +53,7 @@ export declare class RioClient {
|
|
|
53
53
|
uploadCOI(id: string, formData: FormData): Promise<User>;
|
|
54
54
|
uploadFile(id: string, country: CountryOfOrigin, fileType: KYCFileType, formData: FormData): Promise<User>;
|
|
55
55
|
uploadKYCReport(id: string, formData: FormData): Promise<User>;
|
|
56
|
+
createBid(id: string, formData: FormData): Promise<User>;
|
|
56
57
|
uploadCSF(id: string, formData: FormData): Promise<User>;
|
|
57
58
|
getRioSettings(): Promise<RioSettings>;
|
|
58
59
|
sendVerificationEmail(type: IdentityVerificationType, id: string, country: Country): Promise<void>;
|
|
@@ -116,6 +116,12 @@ class RioClient {
|
|
|
116
116
|
return data;
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
|
+
createBid(id, formData) {
|
|
120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
121
|
+
const { data } = yield this.axios.post(`/api/users/${id}/kyc-report`, formData);
|
|
122
|
+
return data;
|
|
123
|
+
});
|
|
124
|
+
}
|
|
119
125
|
uploadCSF(id, formData) {
|
|
120
126
|
return __awaiter(this, void 0, void 0, function* () {
|
|
121
127
|
const { data } = yield this.axios.post(`/api/users/${id}/csf`, formData);
|
package/build/index.d.ts
CHANGED
|
@@ -145,6 +145,7 @@ export * from "./types/side";
|
|
|
145
145
|
export * from "./types/auth";
|
|
146
146
|
export * from "./types/auth-update";
|
|
147
147
|
export * from "./types/user";
|
|
148
|
+
export * from "./types/bid-input";
|
|
148
149
|
export * from "./types/user-input";
|
|
149
150
|
export * from "./types/order";
|
|
150
151
|
export * from "./types/order-input";
|
package/build/index.js
CHANGED
|
@@ -161,6 +161,7 @@ __exportStar(require("./types/side"), exports);
|
|
|
161
161
|
__exportStar(require("./types/auth"), exports);
|
|
162
162
|
__exportStar(require("./types/auth-update"), exports);
|
|
163
163
|
__exportStar(require("./types/user"), exports);
|
|
164
|
+
__exportStar(require("./types/bid-input"), exports);
|
|
164
165
|
__exportStar(require("./types/user-input"), exports);
|
|
165
166
|
__exportStar(require("./types/order"), exports);
|
|
166
167
|
__exportStar(require("./types/order-input"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Side } from "./side";
|
|
2
|
+
import { Crypto } from "./crypto";
|
|
3
|
+
import { Fiat } from "./fiat";
|
|
4
|
+
import { Country } from "./country";
|
|
5
|
+
export interface BidInput {
|
|
6
|
+
userId?: string;
|
|
7
|
+
side: Side;
|
|
8
|
+
crypto: Crypto;
|
|
9
|
+
fiat: Fiat;
|
|
10
|
+
country: Country;
|
|
11
|
+
amountFiat?: number;
|
|
12
|
+
amountCrypto?: number;
|
|
13
|
+
brokerFeeRate?: number;
|
|
14
|
+
netPrice?: number;
|
|
15
|
+
orderId?: string;
|
|
16
|
+
USBankTransferMethod?: "wire" | "ach_push";
|
|
17
|
+
}
|