@riocrypto/common 1.0.1319 → 1.0.1320
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,8 @@ 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
|
+
getAuths(): Promise<Auth[]>;
|
|
92
93
|
getSecurityQuestion(): Promise<SecurityQuestion>;
|
|
93
94
|
authHasSecurityQuestion(): Promise<Boolean>;
|
|
94
95
|
signout(): Promise<void>;
|
|
@@ -163,7 +164,7 @@ export declare class RioClient {
|
|
|
163
164
|
addAuthorizedPhoneNumber(phoneNumber: string): Promise<User>;
|
|
164
165
|
deleteAuthorizedPhoneNumber(phoneNumber: string): Promise<User>;
|
|
165
166
|
createKushkiBankPayment(orderId: string): Promise<any>;
|
|
166
|
-
updateAuth(update: AuthUpdate, id
|
|
167
|
+
updateAuth(update: AuthUpdate, id: string): Promise<Auth>;
|
|
167
168
|
getInvoice(orderId: string): Promise<Invoice>;
|
|
168
169
|
getCryptoBalance(asset: Crypto, userId?: string): Promise<number>;
|
|
169
170
|
}
|
|
@@ -281,9 +281,15 @@ 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
|
+
getAuths() {
|
|
291
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
292
|
+
const response = yield this.axios.get(`/api/auth`);
|
|
287
293
|
return response.data;
|
|
288
294
|
});
|
|
289
295
|
}
|
|
@@ -578,7 +584,7 @@ class RioClient {
|
|
|
578
584
|
}
|
|
579
585
|
updateAuth(update, id) {
|
|
580
586
|
return __awaiter(this, void 0, void 0, function* () {
|
|
581
|
-
const { data } = yield this.axios.patch(`/api/auth/${id
|
|
587
|
+
const { data } = yield this.axios.patch(`/api/auth/${id}`, update);
|
|
582
588
|
return data;
|
|
583
589
|
});
|
|
584
590
|
}
|