@riocrypto/common 1.0.947 → 1.0.949
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.
|
@@ -80,7 +80,7 @@ export declare class RioAdminClient {
|
|
|
80
80
|
createUser(user: UserInput): Promise<User>;
|
|
81
81
|
getBankPayment(orderId: string): Promise<BankPayment>;
|
|
82
82
|
verifyBankPayment(orderId: string): Promise<any>;
|
|
83
|
-
sendPhoneAuthCode(phoneNumber: string): Promise<void>;
|
|
83
|
+
sendPhoneAuthCode(phoneNumber: string, isNewPhoneNumber: boolean): Promise<void>;
|
|
84
84
|
getAuth(phoneNumber?: string): Promise<{
|
|
85
85
|
auth: Auth;
|
|
86
86
|
missing: string[];
|
|
@@ -238,10 +238,11 @@ class RioAdminClient {
|
|
|
238
238
|
});
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
|
-
sendPhoneAuthCode(phoneNumber) {
|
|
241
|
+
sendPhoneAuthCode(phoneNumber, isNewPhoneNumber) {
|
|
242
242
|
return __awaiter(this, void 0, void 0, function* () {
|
|
243
243
|
yield this.axios.post("/api/auth/phone/send", {
|
|
244
244
|
phoneNumber,
|
|
245
|
+
isNewPhoneNumber,
|
|
245
246
|
});
|
|
246
247
|
});
|
|
247
248
|
}
|
|
@@ -46,7 +46,7 @@ export declare class RioClient {
|
|
|
46
46
|
uploadProofOfAddress(id: string, formData: FormData): Promise<User>;
|
|
47
47
|
getBankPayment(orderId: string): Promise<BankPayment>;
|
|
48
48
|
verifyBankPayment(orderId: string): Promise<any>;
|
|
49
|
-
sendPhoneAuthCode(phoneNumber: string): Promise<void>;
|
|
49
|
+
sendPhoneAuthCode(phoneNumber: string, isNewPhoneNumber: boolean): Promise<void>;
|
|
50
50
|
getAuth(phoneNumber?: string): Promise<{
|
|
51
51
|
auth: Auth;
|
|
52
52
|
missing: string[];
|
|
@@ -134,10 +134,11 @@ class RioClient {
|
|
|
134
134
|
});
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
|
-
sendPhoneAuthCode(phoneNumber) {
|
|
137
|
+
sendPhoneAuthCode(phoneNumber, isNewPhoneNumber) {
|
|
138
138
|
return __awaiter(this, void 0, void 0, function* () {
|
|
139
139
|
yield this.axios.post("/api/auth/phone/send", {
|
|
140
140
|
phoneNumber,
|
|
141
|
+
isNewPhoneNumber,
|
|
141
142
|
});
|
|
142
143
|
});
|
|
143
144
|
}
|