@riocrypto/common 1.0.1113 → 1.0.1115
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 +0 -6
- package/build/clients/rio-admin-client.js +0 -21
- package/build/clients/rio-client.d.ts +4 -10
- package/build/clients/rio-client.js +11 -3
- package/build/types/user-input.d.ts +20 -5
- package/build/types/user-update.d.ts +20 -5
- package/build/types/user.d.ts +20 -5
- package/package.json +1 -1
|
@@ -98,12 +98,6 @@ export declare class RioAdminClient {
|
|
|
98
98
|
}>;
|
|
99
99
|
authHasSecurityQuestion(): Promise<Boolean>;
|
|
100
100
|
createBridgePlaidLink(userId: string): Promise<string>;
|
|
101
|
-
signout(): Promise<void>;
|
|
102
|
-
verifyPhoneCode(phoneNumber: string, code: string): Promise<void>;
|
|
103
|
-
signin(password: string): Promise<{
|
|
104
|
-
auth: Auth;
|
|
105
|
-
missing: string[];
|
|
106
|
-
}>;
|
|
107
101
|
refreshAdminToken(): Promise<void>;
|
|
108
102
|
createOrder(order: OrderInput): Promise<Order>;
|
|
109
103
|
createBridgeExternalAccount(userId: string, bankName: string, accountNumber: string, routingNumber: string, accountOwnerName: string, streetLine1: string, streetLine2: string, city: string, state: string, postalCode: string, country: CountryOfOrigin): Promise<string>;
|
|
@@ -288,27 +288,6 @@ class RioAdminClient {
|
|
|
288
288
|
return response.data.url;
|
|
289
289
|
});
|
|
290
290
|
}
|
|
291
|
-
signout() {
|
|
292
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
293
|
-
yield this.axios.post("/api/auth/signout", {});
|
|
294
|
-
});
|
|
295
|
-
}
|
|
296
|
-
verifyPhoneCode(phoneNumber, code) {
|
|
297
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
298
|
-
yield this.axios.post("/api/auth/phone/verify", {
|
|
299
|
-
phoneNumber,
|
|
300
|
-
code,
|
|
301
|
-
});
|
|
302
|
-
});
|
|
303
|
-
}
|
|
304
|
-
signin(password) {
|
|
305
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
306
|
-
const response = yield this.axios.post("/api/auth", {
|
|
307
|
-
password,
|
|
308
|
-
});
|
|
309
|
-
return response.data;
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
291
|
refreshAdminToken() {
|
|
313
292
|
return __awaiter(this, void 0, void 0, function* () {
|
|
314
293
|
yield this.axios.post("/api/auth/admin/refresh");
|
|
@@ -56,16 +56,13 @@ export declare class RioClient {
|
|
|
56
56
|
getBankPayment(orderId: string): Promise<BankPayment>;
|
|
57
57
|
verifyBankPayment(orderId: string): Promise<any>;
|
|
58
58
|
sendPhoneAuthCode(phoneNumber: string, isNewPhoneNumber: boolean): Promise<void>;
|
|
59
|
-
getAuth(phoneNumber?: string): Promise<
|
|
60
|
-
auth: Auth;
|
|
61
|
-
missing: string[];
|
|
62
|
-
}>;
|
|
59
|
+
getAuth(phoneNumber?: string): Promise<Auth>;
|
|
63
60
|
authHasSecurityQuestion(): Promise<Boolean>;
|
|
64
61
|
signout(): Promise<void>;
|
|
65
62
|
verifyPhoneCode(phoneNumber: string, code: string): Promise<void>;
|
|
66
|
-
signin(password: string): Promise<
|
|
63
|
+
signin(password: string): Promise<Auth>;
|
|
64
|
+
signup(password: string): Promise<{
|
|
67
65
|
auth: Auth;
|
|
68
|
-
missing: string[];
|
|
69
66
|
isAuthorizedPhoneNumberAuth: boolean;
|
|
70
67
|
}>;
|
|
71
68
|
refreshToken(): Promise<void>;
|
|
@@ -115,10 +112,7 @@ export declare class RioClient {
|
|
|
115
112
|
addAuthorizedPhoneNumber(phoneNumber: string): Promise<User>;
|
|
116
113
|
deleteAuthorizedPhoneNumber(phoneNumber: string): Promise<User>;
|
|
117
114
|
createKushkiBankPayment(orderId: string): Promise<any>;
|
|
118
|
-
updateAuth(update: AuthUpdate, id?: string): Promise<
|
|
119
|
-
auth: Auth;
|
|
120
|
-
missing: string[];
|
|
121
|
-
}>;
|
|
115
|
+
updateAuth(update: AuthUpdate, id?: string): Promise<Auth>;
|
|
122
116
|
getInvoice(orderId: string): Promise<Invoice>;
|
|
123
117
|
getCryptoBalance(asset: Crypto, userId?: string): Promise<number>;
|
|
124
118
|
}
|
|
@@ -155,7 +155,7 @@ class RioClient {
|
|
|
155
155
|
}
|
|
156
156
|
sendPhoneAuthCode(phoneNumber, isNewPhoneNumber) {
|
|
157
157
|
return __awaiter(this, void 0, void 0, function* () {
|
|
158
|
-
yield this.axios.post("/api/auth/
|
|
158
|
+
yield this.axios.post("/api/auth/send-code", {
|
|
159
159
|
phoneNumber,
|
|
160
160
|
isNewPhoneNumber,
|
|
161
161
|
});
|
|
@@ -180,7 +180,7 @@ class RioClient {
|
|
|
180
180
|
}
|
|
181
181
|
verifyPhoneCode(phoneNumber, code) {
|
|
182
182
|
return __awaiter(this, void 0, void 0, function* () {
|
|
183
|
-
yield this.axios.post("/api/auth/
|
|
183
|
+
yield this.axios.post("/api/auth/verify-code", {
|
|
184
184
|
phoneNumber,
|
|
185
185
|
code,
|
|
186
186
|
});
|
|
@@ -188,7 +188,15 @@ class RioClient {
|
|
|
188
188
|
}
|
|
189
189
|
signin(password) {
|
|
190
190
|
return __awaiter(this, void 0, void 0, function* () {
|
|
191
|
-
const response = yield this.axios.post("/api/auth", {
|
|
191
|
+
const response = yield this.axios.post("/api/auth/signin", {
|
|
192
|
+
password,
|
|
193
|
+
});
|
|
194
|
+
return response.data;
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
signup(password) {
|
|
198
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
199
|
+
const response = yield this.axios.post("/api/auth/signup", {
|
|
192
200
|
password,
|
|
193
201
|
});
|
|
194
202
|
return response.data;
|
|
@@ -32,11 +32,26 @@ export declare type UserInput = {
|
|
|
32
32
|
countriesToInvoice?: Country[];
|
|
33
33
|
economicActivity?: string;
|
|
34
34
|
platformFeeRanges?: {
|
|
35
|
-
MX?:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
MX?: {
|
|
36
|
+
buy?: PlatformFeeRange[];
|
|
37
|
+
sell?: PlatformFeeRange[];
|
|
38
|
+
};
|
|
39
|
+
PE?: {
|
|
40
|
+
buy?: PlatformFeeRange[];
|
|
41
|
+
sell?: PlatformFeeRange[];
|
|
42
|
+
};
|
|
43
|
+
CO?: {
|
|
44
|
+
buy?: PlatformFeeRange[];
|
|
45
|
+
sell?: PlatformFeeRange[];
|
|
46
|
+
};
|
|
47
|
+
BR?: {
|
|
48
|
+
buy?: PlatformFeeRange[];
|
|
49
|
+
sell?: PlatformFeeRange[];
|
|
50
|
+
};
|
|
51
|
+
US?: {
|
|
52
|
+
buy?: PlatformFeeRange[];
|
|
53
|
+
sell?: PlatformFeeRange[];
|
|
54
|
+
};
|
|
40
55
|
};
|
|
41
56
|
attributes?: UserAttribute[];
|
|
42
57
|
brokerId?: string;
|
|
@@ -34,11 +34,26 @@ export declare type UserUpdate = {
|
|
|
34
34
|
ruc?: string;
|
|
35
35
|
economicActivity?: string;
|
|
36
36
|
platformFeeRanges?: {
|
|
37
|
-
MX?:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
MX?: {
|
|
38
|
+
buy?: PlatformFeeRange[];
|
|
39
|
+
sell?: PlatformFeeRange[];
|
|
40
|
+
};
|
|
41
|
+
PE?: {
|
|
42
|
+
buy?: PlatformFeeRange[];
|
|
43
|
+
sell?: PlatformFeeRange[];
|
|
44
|
+
};
|
|
45
|
+
CO?: {
|
|
46
|
+
buy?: PlatformFeeRange[];
|
|
47
|
+
sell?: PlatformFeeRange[];
|
|
48
|
+
};
|
|
49
|
+
BR?: {
|
|
50
|
+
buy?: PlatformFeeRange[];
|
|
51
|
+
sell?: PlatformFeeRange[];
|
|
52
|
+
};
|
|
53
|
+
US?: {
|
|
54
|
+
buy?: PlatformFeeRange[];
|
|
55
|
+
sell?: PlatformFeeRange[];
|
|
56
|
+
};
|
|
42
57
|
};
|
|
43
58
|
attributes?: UserAttribute[];
|
|
44
59
|
brokerId?: string;
|
package/build/types/user.d.ts
CHANGED
|
@@ -33,11 +33,26 @@ export declare type User = {
|
|
|
33
33
|
curp?: string;
|
|
34
34
|
economicActivity?: string;
|
|
35
35
|
platformFeeRanges?: {
|
|
36
|
-
MX?:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
MX?: {
|
|
37
|
+
buy?: PlatformFeeRange[];
|
|
38
|
+
sell?: PlatformFeeRange[];
|
|
39
|
+
};
|
|
40
|
+
PE?: {
|
|
41
|
+
buy?: PlatformFeeRange[];
|
|
42
|
+
sell?: PlatformFeeRange[];
|
|
43
|
+
};
|
|
44
|
+
CO?: {
|
|
45
|
+
buy?: PlatformFeeRange[];
|
|
46
|
+
sell?: PlatformFeeRange[];
|
|
47
|
+
};
|
|
48
|
+
BR?: {
|
|
49
|
+
buy?: PlatformFeeRange[];
|
|
50
|
+
sell?: PlatformFeeRange[];
|
|
51
|
+
};
|
|
52
|
+
US?: {
|
|
53
|
+
buy?: PlatformFeeRange[];
|
|
54
|
+
sell?: PlatformFeeRange[];
|
|
55
|
+
};
|
|
41
56
|
};
|
|
42
57
|
attributes?: UserAttribute[];
|
|
43
58
|
brokerId?: string;
|