@riocrypto/common 1.0.1351 → 1.0.1353
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.
|
@@ -44,7 +44,6 @@ import { IdentityVerificationType } from "../types/IdentityVerificationType";
|
|
|
44
44
|
import { AdminAuth } from "../types/admin-auth";
|
|
45
45
|
import { AdminAuthInput } from "../types/admin-auth-input";
|
|
46
46
|
import { BidInput } from "../types/bid-input";
|
|
47
|
-
import { Bid } from "../types/bid";
|
|
48
47
|
export declare class RioAdminClient {
|
|
49
48
|
private axios;
|
|
50
49
|
constructor(axios: AxiosStatic | AxiosInstance);
|
|
@@ -57,7 +56,8 @@ export declare class RioAdminClient {
|
|
|
57
56
|
}>;
|
|
58
57
|
updateQuote(id: string, update: any): Promise<Quote>;
|
|
59
58
|
getQuote(id: string): Promise<Quote>;
|
|
60
|
-
createBid(input: BidInput): Promise<
|
|
59
|
+
createBid(input: BidInput): Promise<void>;
|
|
60
|
+
getBid(id: string): Promise<void>;
|
|
61
61
|
getUsers(page: number, limit?: number, query?: UserQuery): Promise<User[]>;
|
|
62
62
|
signinAdmin(email: string, password: string, authenticatorCode: string): Promise<any>;
|
|
63
63
|
updateUser(update: UserUpdate, userId?: string): Promise<User>;
|
|
@@ -71,6 +71,12 @@ class RioAdminClient {
|
|
|
71
71
|
return data;
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
+
getBid(id) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
const { data } = yield this.axios.get(`/api/bids/${id}`);
|
|
77
|
+
return data;
|
|
78
|
+
});
|
|
79
|
+
}
|
|
74
80
|
getUsers(page, limit, query) {
|
|
75
81
|
return __awaiter(this, void 0, void 0, function* () {
|
|
76
82
|
const { data } = yield this.axios.get(`/api/users?`, {
|
|
@@ -39,7 +39,6 @@ import { UBO } from "../types/UBO";
|
|
|
39
39
|
import { UBOUpdate } from "../types/UBO-update";
|
|
40
40
|
import { IdentityVerificationType } from "../types/IdentityVerificationType";
|
|
41
41
|
import { BidInput } from "../types/bid-input";
|
|
42
|
-
import { Bid } from "../types/bid";
|
|
43
42
|
export declare class RioClient {
|
|
44
43
|
private axios;
|
|
45
44
|
constructor(axios: AxiosStatic | AxiosInstance);
|
|
@@ -55,7 +54,8 @@ export declare class RioClient {
|
|
|
55
54
|
uploadCOI(id: string, formData: FormData): Promise<User>;
|
|
56
55
|
uploadFile(id: string, country: CountryOfOrigin, fileType: KYCFileType, formData: FormData): Promise<User>;
|
|
57
56
|
uploadKYCReport(id: string, formData: FormData): Promise<User>;
|
|
58
|
-
createBid(input: BidInput): Promise<
|
|
57
|
+
createBid(input: BidInput): Promise<void>;
|
|
58
|
+
getBid(id: string): Promise<void>;
|
|
59
59
|
uploadCSF(id: string, formData: FormData): Promise<User>;
|
|
60
60
|
getRioSettings(): Promise<RioSettings>;
|
|
61
61
|
sendVerificationEmail(type: IdentityVerificationType, id: string, country: Country): Promise<void>;
|
|
@@ -122,6 +122,12 @@ class RioClient {
|
|
|
122
122
|
return data;
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
|
+
getBid(id) {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
+
const { data } = yield this.axios.get(`/api/bids/${id}`);
|
|
128
|
+
return data;
|
|
129
|
+
});
|
|
130
|
+
}
|
|
125
131
|
uploadCSF(id, formData) {
|
|
126
132
|
return __awaiter(this, void 0, void 0, function* () {
|
|
127
133
|
const { data } = yield this.axios.post(`/api/users/${id}/csf`, formData);
|
package/build/types/bid.d.ts
CHANGED