@riocrypto/common 1.0.530 → 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);
|
package/build/index.d.ts
CHANGED
|
@@ -130,6 +130,7 @@ export * from "./types/user-type";
|
|
|
130
130
|
export * from "./types/platform-fee-range";
|
|
131
131
|
export * from "./types/api-key";
|
|
132
132
|
export * from "./types/authorization-type";
|
|
133
|
+
export * from "./types/refresh-token";
|
|
133
134
|
export * from "./classes/Asset";
|
|
134
135
|
export * from "./classes/CountryAsset";
|
|
135
136
|
export * from "./classes/CryptoAsset";
|
package/build/index.js
CHANGED
|
@@ -146,6 +146,7 @@ __exportStar(require("./types/user-type"), exports);
|
|
|
146
146
|
__exportStar(require("./types/platform-fee-range"), exports);
|
|
147
147
|
__exportStar(require("./types/api-key"), exports);
|
|
148
148
|
__exportStar(require("./types/authorization-type"), exports);
|
|
149
|
+
__exportStar(require("./types/refresh-token"), exports);
|
|
149
150
|
__exportStar(require("./classes/Asset"), exports);
|
|
150
151
|
__exportStar(require("./classes/CountryAsset"), exports);
|
|
151
152
|
__exportStar(require("./classes/CryptoAsset"), exports);
|