@riocrypto/common 1.0.493 → 1.0.494
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AxiosInstance, AxiosStatic } from "axios";
|
|
2
2
|
import { Admin } from "../types/admin";
|
|
3
3
|
import { Auth } from "../types/auth";
|
|
4
|
+
import { AuthUpdate } from "../types/auth-update";
|
|
4
5
|
import { BankPayout } from "../types/bank-payout";
|
|
5
6
|
import { BusinessUser } from "../types/business-user";
|
|
6
7
|
import { BusinessUserInput } from "../types/business-user-input";
|
|
@@ -80,5 +81,5 @@ export declare class RioClient {
|
|
|
80
81
|
createSPIDPayment(orderId: string): Promise<any>;
|
|
81
82
|
createSWIFTPayment(orderId: string): Promise<any>;
|
|
82
83
|
createInterbankPayment(orderId: string): Promise<any>;
|
|
83
|
-
updateAuth(): Promise<Auth>;
|
|
84
|
+
updateAuth(update: AuthUpdate, id?: string): Promise<Auth>;
|
|
84
85
|
}
|
|
@@ -327,9 +327,9 @@ class RioClient {
|
|
|
327
327
|
return data;
|
|
328
328
|
});
|
|
329
329
|
}
|
|
330
|
-
updateAuth() {
|
|
330
|
+
updateAuth(update, id) {
|
|
331
331
|
return __awaiter(this, void 0, void 0, function* () {
|
|
332
|
-
const { data } = yield this.axios.patch(`/api/auth
|
|
332
|
+
const { data } = yield this.axios.patch(`/api/auth/${id}`, update);
|
|
333
333
|
return data;
|
|
334
334
|
});
|
|
335
335
|
}
|