@riocrypto/common 1.0.1114 → 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.
|
@@ -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");
|
|
@@ -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;
|