@riocrypto/common 1.0.1319 → 1.0.1321
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.
|
@@ -128,10 +128,8 @@ export declare class RioAdminClient {
|
|
|
128
128
|
sendPhoneAuthCode(phoneNumber: string): Promise<{
|
|
129
129
|
hasAuthenticatorEnabled: boolean;
|
|
130
130
|
}>;
|
|
131
|
-
getAuth(
|
|
132
|
-
|
|
133
|
-
missing: string[];
|
|
134
|
-
}>;
|
|
131
|
+
getAuth(id: string): Promise<Auth>;
|
|
132
|
+
getAuths(): Promise<Auth[]>;
|
|
135
133
|
authHasSecurityQuestion(): Promise<Boolean>;
|
|
136
134
|
createBridgePlaidLink(userId: string): Promise<string>;
|
|
137
135
|
refreshAdminToken(): Promise<void>;
|
|
@@ -214,6 +212,6 @@ export declare class RioAdminClient {
|
|
|
214
212
|
addAuthorizedPhoneNumber(phoneNumber: string): Promise<User>;
|
|
215
213
|
deleteAuthorizedPhoneNumber(phoneNumber: string): Promise<User>;
|
|
216
214
|
createKushkiBankPayment(orderId: string): Promise<any>;
|
|
217
|
-
updateAuth(update: AuthUpdate, id
|
|
215
|
+
updateAuth(update: AuthUpdate, id: string): Promise<Auth>;
|
|
218
216
|
getInvoice(orderId: string): Promise<Invoice>;
|
|
219
217
|
}
|
|
@@ -394,9 +394,15 @@ class RioAdminClient {
|
|
|
394
394
|
return response.data;
|
|
395
395
|
});
|
|
396
396
|
}
|
|
397
|
-
getAuth(
|
|
397
|
+
getAuth(id) {
|
|
398
398
|
return __awaiter(this, void 0, void 0, function* () {
|
|
399
|
-
const response = yield this.axios.get(`/api/auth
|
|
399
|
+
const response = yield this.axios.get(`/api/auth/${id}`);
|
|
400
|
+
return response.data;
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
getAuths() {
|
|
404
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
405
|
+
const response = yield this.axios.get(`/api/auth`);
|
|
400
406
|
return response.data;
|
|
401
407
|
});
|
|
402
408
|
}
|
|
@@ -721,7 +727,7 @@ class RioAdminClient {
|
|
|
721
727
|
}
|
|
722
728
|
updateAuth(update, id) {
|
|
723
729
|
return __awaiter(this, void 0, void 0, function* () {
|
|
724
|
-
const { data } = yield this.axios.patch(`/api/auth/${id
|
|
730
|
+
const { data } = yield this.axios.patch(`/api/auth/${id}`, update);
|
|
725
731
|
return data;
|
|
726
732
|
});
|
|
727
733
|
}
|
|
@@ -88,7 +88,9 @@ export declare class RioClient {
|
|
|
88
88
|
sendPhoneAuthCode(phoneNumber: string): Promise<{
|
|
89
89
|
hasAuthenticatorEnabled: boolean;
|
|
90
90
|
}>;
|
|
91
|
-
getAuth(
|
|
91
|
+
getAuth(id: string): Promise<Auth>;
|
|
92
|
+
getAuthWithNotId(): Promise<Auth>;
|
|
93
|
+
getAuths(): Promise<Auth[]>;
|
|
92
94
|
getSecurityQuestion(): Promise<SecurityQuestion>;
|
|
93
95
|
authHasSecurityQuestion(): Promise<Boolean>;
|
|
94
96
|
signout(): Promise<void>;
|
|
@@ -163,7 +165,7 @@ export declare class RioClient {
|
|
|
163
165
|
addAuthorizedPhoneNumber(phoneNumber: string): Promise<User>;
|
|
164
166
|
deleteAuthorizedPhoneNumber(phoneNumber: string): Promise<User>;
|
|
165
167
|
createKushkiBankPayment(orderId: string): Promise<any>;
|
|
166
|
-
updateAuth(update: AuthUpdate, id
|
|
168
|
+
updateAuth(update: AuthUpdate, id: string): Promise<Auth>;
|
|
167
169
|
getInvoice(orderId: string): Promise<Invoice>;
|
|
168
170
|
getCryptoBalance(asset: Crypto, userId?: string): Promise<number>;
|
|
169
171
|
}
|
|
@@ -281,9 +281,21 @@ class RioClient {
|
|
|
281
281
|
return response.data;
|
|
282
282
|
});
|
|
283
283
|
}
|
|
284
|
-
getAuth(
|
|
284
|
+
getAuth(id) {
|
|
285
285
|
return __awaiter(this, void 0, void 0, function* () {
|
|
286
|
-
const response = yield this.axios.get(`/api/auth
|
|
286
|
+
const response = yield this.axios.get(`/api/auth/${id}`);
|
|
287
|
+
return response.data;
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
getAuthWithNotId() {
|
|
291
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
292
|
+
const response = yield this.axios.get(`/api/auth/self`);
|
|
293
|
+
return response.data;
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
getAuths() {
|
|
297
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
298
|
+
const response = yield this.axios.get(`/api/auth`);
|
|
287
299
|
return response.data;
|
|
288
300
|
});
|
|
289
301
|
}
|
|
@@ -578,7 +590,7 @@ class RioClient {
|
|
|
578
590
|
}
|
|
579
591
|
updateAuth(update, id) {
|
|
580
592
|
return __awaiter(this, void 0, void 0, function* () {
|
|
581
|
-
const { data } = yield this.axios.patch(`/api/auth/${id
|
|
593
|
+
const { data } = yield this.axios.patch(`/api/auth/${id}`, update);
|
|
582
594
|
return data;
|
|
583
595
|
});
|
|
584
596
|
}
|