@riocrypto/common 1.0.522 → 1.0.524
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.
|
@@ -48,13 +48,16 @@ export declare class RioClient {
|
|
|
48
48
|
createUser(user: UserInput): Promise<void>;
|
|
49
49
|
createBusinessUser(businessUser: BusinessUserInput): Promise<BusinessUser>;
|
|
50
50
|
sendPhoneAuthCode(phoneNumber: string): Promise<void>;
|
|
51
|
-
getAuth(): Promise<{
|
|
51
|
+
getAuth(phoneNumber?: string): Promise<{
|
|
52
52
|
auth: Auth;
|
|
53
53
|
missing: string[];
|
|
54
54
|
}>;
|
|
55
55
|
signout(): Promise<void>;
|
|
56
56
|
verifyPhoneCode(phoneNumber: string, code: string): Promise<void>;
|
|
57
|
-
signin(password: string): Promise<
|
|
57
|
+
signin(password: string): Promise<{
|
|
58
|
+
auth: Auth;
|
|
59
|
+
missing: string[];
|
|
60
|
+
}>;
|
|
58
61
|
createOrder(order: OrderInput): Promise<Order>;
|
|
59
62
|
getOrder(id: string): Promise<Order>;
|
|
60
63
|
createBankPayout(oid: string, accountNumber: string): Promise<BankPayout>;
|
|
@@ -137,9 +137,9 @@ class RioClient {
|
|
|
137
137
|
});
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
|
-
getAuth() {
|
|
140
|
+
getAuth(phoneNumber) {
|
|
141
141
|
return __awaiter(this, void 0, void 0, function* () {
|
|
142
|
-
const response = yield this.axios.get(
|
|
142
|
+
const response = yield this.axios.get(`/api/auth?${phoneNumber ? "phoneNumber=" + phoneNumber : ""}`);
|
|
143
143
|
return response.data;
|
|
144
144
|
});
|
|
145
145
|
}
|
|
@@ -158,9 +158,10 @@ class RioClient {
|
|
|
158
158
|
}
|
|
159
159
|
signin(password) {
|
|
160
160
|
return __awaiter(this, void 0, void 0, function* () {
|
|
161
|
-
yield this.axios.post("/api/auth", {
|
|
161
|
+
const response = yield this.axios.post("/api/auth", {
|
|
162
162
|
password,
|
|
163
163
|
});
|
|
164
|
+
return response.data;
|
|
164
165
|
});
|
|
165
166
|
}
|
|
166
167
|
createOrder(order) {
|