@riocrypto/common 1.0.491 → 1.0.493
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,5 +1,6 @@
|
|
|
1
1
|
import { AxiosInstance, AxiosStatic } from "axios";
|
|
2
2
|
import { Admin } from "../types/admin";
|
|
3
|
+
import { Auth } from "../types/auth";
|
|
3
4
|
import { BankPayout } from "../types/bank-payout";
|
|
4
5
|
import { BusinessUser } from "../types/business-user";
|
|
5
6
|
import { BusinessUserInput } from "../types/business-user-input";
|
|
@@ -26,7 +27,7 @@ export declare class RioClient {
|
|
|
26
27
|
getBusinessUsers(): Promise<BusinessUser[]>;
|
|
27
28
|
signin(email: string, password: string): Promise<any>;
|
|
28
29
|
updateUser(update: UserUpdate, userId?: string): Promise<User>;
|
|
29
|
-
updateBusinessUser(
|
|
30
|
+
updateBusinessUser(update: BusinessUserUpdate, businessUserId?: string): Promise<BusinessUser>;
|
|
30
31
|
updateAdminUserPassword({ password, newPassword, }: {
|
|
31
32
|
password: string;
|
|
32
33
|
newPassword: string;
|
|
@@ -79,4 +80,5 @@ export declare class RioClient {
|
|
|
79
80
|
createSPIDPayment(orderId: string): Promise<any>;
|
|
80
81
|
createSWIFTPayment(orderId: string): Promise<any>;
|
|
81
82
|
createInterbankPayment(orderId: string): Promise<any>;
|
|
83
|
+
updateAuth(): Promise<Auth>;
|
|
82
84
|
}
|
|
@@ -47,7 +47,7 @@ class RioClient {
|
|
|
47
47
|
return data;
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
-
updateBusinessUser(
|
|
50
|
+
updateBusinessUser(update, businessUserId) {
|
|
51
51
|
return __awaiter(this, void 0, void 0, function* () {
|
|
52
52
|
const { data } = yield this.axios.patch(`/api/business/users/${businessUserId}`, update);
|
|
53
53
|
return data;
|
|
@@ -327,5 +327,11 @@ class RioClient {
|
|
|
327
327
|
return data;
|
|
328
328
|
});
|
|
329
329
|
}
|
|
330
|
+
updateAuth() {
|
|
331
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
332
|
+
const { data } = yield this.axios.patch(`/api/auth`);
|
|
333
|
+
return data;
|
|
334
|
+
});
|
|
335
|
+
}
|
|
330
336
|
}
|
|
331
337
|
exports.RioClient = RioClient;
|
package/build/index.d.ts
CHANGED
|
@@ -108,6 +108,7 @@ export * from "./types/side";
|
|
|
108
108
|
export * from "./types/wyre-order-status";
|
|
109
109
|
export * from "./types/wyre-address";
|
|
110
110
|
export * from "./types/auth";
|
|
111
|
+
export * from "./types/auth-update";
|
|
111
112
|
export * from "./types/user";
|
|
112
113
|
export * from "./types/user-input";
|
|
113
114
|
export * from "./types/order";
|
package/build/index.js
CHANGED
|
@@ -124,6 +124,7 @@ __exportStar(require("./types/side"), exports);
|
|
|
124
124
|
__exportStar(require("./types/wyre-order-status"), exports);
|
|
125
125
|
__exportStar(require("./types/wyre-address"), exports);
|
|
126
126
|
__exportStar(require("./types/auth"), exports);
|
|
127
|
+
__exportStar(require("./types/auth-update"), exports);
|
|
127
128
|
__exportStar(require("./types/user"), exports);
|
|
128
129
|
__exportStar(require("./types/user-input"), exports);
|
|
129
130
|
__exportStar(require("./types/order"), exports);
|
package/build/types/auth.d.ts
CHANGED