@riocrypto/common 1.0.1121 → 1.0.1123
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.
|
@@ -384,6 +384,8 @@ class CountryAsset extends Asset_1.Asset {
|
|
|
384
384
|
return "New Zealand";
|
|
385
385
|
case country_of_origin_1.CountryOfOrigin.BritishVirginIslands:
|
|
386
386
|
return "Virgin Islands (British)";
|
|
387
|
+
case country_of_origin_1.CountryOfOrigin.ElSalvador:
|
|
388
|
+
return "El Salvador";
|
|
387
389
|
// case CountryOfOrigin.NewCaledonia:
|
|
388
390
|
// return "New Caledonia";
|
|
389
391
|
// case CountryOfOrigin.NewCaledonia:
|
|
@@ -63,7 +63,7 @@ export declare class RioClient {
|
|
|
63
63
|
signout(): Promise<void>;
|
|
64
64
|
verifyPhoneCode(phoneNumber: string, code: string): Promise<void>;
|
|
65
65
|
signin(password: string): Promise<Auth>;
|
|
66
|
-
signup(password: string): Promise<{
|
|
66
|
+
signup(password: string, securityQuestion: SecurityQuestion, securityAnswer: string): Promise<{
|
|
67
67
|
auth: Auth;
|
|
68
68
|
isAuthorizedPhoneNumberAuth: boolean;
|
|
69
69
|
}>;
|
|
@@ -200,10 +200,12 @@ class RioClient {
|
|
|
200
200
|
return response.data;
|
|
201
201
|
});
|
|
202
202
|
}
|
|
203
|
-
signup(password) {
|
|
203
|
+
signup(password, securityQuestion, securityAnswer) {
|
|
204
204
|
return __awaiter(this, void 0, void 0, function* () {
|
|
205
205
|
const response = yield this.axios.post("/api/auth/signup", {
|
|
206
206
|
password,
|
|
207
|
+
securityQuestion,
|
|
208
|
+
securityAnswer,
|
|
207
209
|
});
|
|
208
210
|
return response.data;
|
|
209
211
|
});
|
|
@@ -49,6 +49,7 @@ var CountryOfOrigin;
|
|
|
49
49
|
CountryOfOrigin["Singapore"] = "SG";
|
|
50
50
|
CountryOfOrigin["Slovakia"] = "SK";
|
|
51
51
|
CountryOfOrigin["Slovenia"] = "SI";
|
|
52
|
+
CountryOfOrigin["ElSalvador"] = "SV";
|
|
52
53
|
CountryOfOrigin["SouthAfrica"] = "ZA";
|
|
53
54
|
CountryOfOrigin["Panama"] = "PA";
|
|
54
55
|
CountryOfOrigin["Spain"] = "ES";
|