@riocrypto/common 1.0.1200 → 1.0.1202
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.
|
@@ -91,7 +91,7 @@ export declare class RioAdminClient {
|
|
|
91
91
|
createUser(user: UserInput): Promise<User>;
|
|
92
92
|
getBankPayment(orderId: string): Promise<BankPayment>;
|
|
93
93
|
verifyBankPayment(orderId: string): Promise<any>;
|
|
94
|
-
sendPhoneAuthCode(phoneNumber: string
|
|
94
|
+
sendPhoneAuthCode(phoneNumber: string): Promise<void>;
|
|
95
95
|
getAuth(phoneNumber?: string): Promise<{
|
|
96
96
|
auth: Auth;
|
|
97
97
|
missing: string[];
|
|
@@ -269,12 +269,12 @@ class RioAdminClient {
|
|
|
269
269
|
});
|
|
270
270
|
});
|
|
271
271
|
}
|
|
272
|
-
sendPhoneAuthCode(phoneNumber
|
|
272
|
+
sendPhoneAuthCode(phoneNumber) {
|
|
273
273
|
return __awaiter(this, void 0, void 0, function* () {
|
|
274
|
-
yield this.axios.post("/api/auth/
|
|
274
|
+
const response = yield this.axios.post("/api/auth/send-code", {
|
|
275
275
|
phoneNumber,
|
|
276
|
-
isNewPhoneNumber,
|
|
277
276
|
});
|
|
277
|
+
return response.data;
|
|
278
278
|
});
|
|
279
279
|
}
|
|
280
280
|
getAuth(phoneNumber) {
|
|
@@ -61,7 +61,7 @@ export declare class RioClient {
|
|
|
61
61
|
uploadProofOfAddress(id: string, formData: FormData): Promise<User>;
|
|
62
62
|
getBankPayment(orderId: string): Promise<BankPayment>;
|
|
63
63
|
verifyBankPayment(orderId: string): Promise<any>;
|
|
64
|
-
sendPhoneAuthCode(phoneNumber: string
|
|
64
|
+
sendPhoneAuthCode(phoneNumber: string): Promise<void>;
|
|
65
65
|
getAuth(phoneNumber?: string): Promise<Auth>;
|
|
66
66
|
getSecurityQuestion(): Promise<SecurityQuestion>;
|
|
67
67
|
authHasSecurityQuestion(): Promise<Boolean>;
|
|
@@ -176,12 +176,12 @@ class RioClient {
|
|
|
176
176
|
});
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
|
-
sendPhoneAuthCode(phoneNumber
|
|
179
|
+
sendPhoneAuthCode(phoneNumber) {
|
|
180
180
|
return __awaiter(this, void 0, void 0, function* () {
|
|
181
|
-
yield this.axios.post("/api/auth/send-code", {
|
|
181
|
+
const response = yield this.axios.post("/api/auth/send-code", {
|
|
182
182
|
phoneNumber,
|
|
183
|
-
isNewPhoneNumber,
|
|
184
183
|
});
|
|
184
|
+
return response.data;
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
187
|
getAuth(phoneNumber) {
|
package/build/types/auth.d.ts
CHANGED