@riocrypto/common 1.0.531 → 1.0.532
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.
|
@@ -58,6 +58,7 @@ export declare class RioClient {
|
|
|
58
58
|
auth: Auth;
|
|
59
59
|
missing: string[];
|
|
60
60
|
}>;
|
|
61
|
+
refreshToken(): Promise<void>;
|
|
61
62
|
createOrder(order: OrderInput): Promise<Order>;
|
|
62
63
|
getOrder(id: string): Promise<Order>;
|
|
63
64
|
createBankPayout(oid: string, accountNumber: string): Promise<BankPayout>;
|
|
@@ -164,6 +164,11 @@ class RioClient {
|
|
|
164
164
|
return response.data;
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
|
+
refreshToken() {
|
|
168
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
169
|
+
yield this.axios.post("/api/auth/refresh");
|
|
170
|
+
});
|
|
171
|
+
}
|
|
167
172
|
createOrder(order) {
|
|
168
173
|
return __awaiter(this, void 0, void 0, function* () {
|
|
169
174
|
const response = yield this.axios.post("/api/orders", order);
|