@riocrypto/common 1.0.1349 → 1.0.1350
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.
|
@@ -43,6 +43,8 @@ import { UBOUpdate } from "../types/UBO-update";
|
|
|
43
43
|
import { IdentityVerificationType } from "../types/IdentityVerificationType";
|
|
44
44
|
import { AdminAuth } from "../types/admin-auth";
|
|
45
45
|
import { AdminAuthInput } from "../types/admin-auth-input";
|
|
46
|
+
import { BidInput } from "../types/bid-input";
|
|
47
|
+
import { Bid } from "../types/bid";
|
|
46
48
|
export declare class RioAdminClient {
|
|
47
49
|
private axios;
|
|
48
50
|
constructor(axios: AxiosStatic | AxiosInstance);
|
|
@@ -55,6 +57,7 @@ export declare class RioAdminClient {
|
|
|
55
57
|
}>;
|
|
56
58
|
updateQuote(id: string, update: any): Promise<Quote>;
|
|
57
59
|
getQuote(id: string): Promise<Quote>;
|
|
60
|
+
createBid(input: BidInput): Promise<Bid>;
|
|
58
61
|
getUsers(page: number, limit?: number, query?: UserQuery): Promise<User[]>;
|
|
59
62
|
signinAdmin(email: string, password: string, authenticatorCode: string): Promise<any>;
|
|
60
63
|
updateUser(update: UserUpdate, userId?: string): Promise<User>;
|
|
@@ -65,6 +65,12 @@ class RioAdminClient {
|
|
|
65
65
|
return data;
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
+
createBid(input) {
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
const { data } = yield this.axios.post(`/api/bids`, input);
|
|
71
|
+
return data;
|
|
72
|
+
});
|
|
73
|
+
}
|
|
68
74
|
getUsers(page, limit, query) {
|
|
69
75
|
return __awaiter(this, void 0, void 0, function* () {
|
|
70
76
|
const { data } = yield this.axios.get(`/api/users?`, {
|
|
@@ -38,6 +38,8 @@ import { UBOInput } from "../types/UBO-input";
|
|
|
38
38
|
import { UBO } from "../types/UBO";
|
|
39
39
|
import { UBOUpdate } from "../types/UBO-update";
|
|
40
40
|
import { IdentityVerificationType } from "../types/IdentityVerificationType";
|
|
41
|
+
import { BidInput } from "../types/bid-input";
|
|
42
|
+
import { Bid } from "../types/bid";
|
|
41
43
|
export declare class RioClient {
|
|
42
44
|
private axios;
|
|
43
45
|
constructor(axios: AxiosStatic | AxiosInstance);
|
|
@@ -53,7 +55,7 @@ export declare class RioClient {
|
|
|
53
55
|
uploadCOI(id: string, formData: FormData): Promise<User>;
|
|
54
56
|
uploadFile(id: string, country: CountryOfOrigin, fileType: KYCFileType, formData: FormData): Promise<User>;
|
|
55
57
|
uploadKYCReport(id: string, formData: FormData): Promise<User>;
|
|
56
|
-
createBid(
|
|
58
|
+
createBid(input: BidInput): Promise<Bid>;
|
|
57
59
|
uploadCSF(id: string, formData: FormData): Promise<User>;
|
|
58
60
|
getRioSettings(): Promise<RioSettings>;
|
|
59
61
|
sendVerificationEmail(type: IdentityVerificationType, id: string, country: Country): Promise<void>;
|
|
@@ -116,9 +116,9 @@ class RioClient {
|
|
|
116
116
|
return data;
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
|
-
createBid(
|
|
119
|
+
createBid(input) {
|
|
120
120
|
return __awaiter(this, void 0, void 0, function* () {
|
|
121
|
-
const { data } = yield this.axios.post(`/api/
|
|
121
|
+
const { data } = yield this.axios.post(`/api/bids`, input);
|
|
122
122
|
return data;
|
|
123
123
|
});
|
|
124
124
|
}
|