* Retrieves information about the current instance * @returns {Promise } Promise resolving to instance information * @throws {Error} If the API request fails * @remarks This method uses the validateStatus: null option to bypass interceptors for unauthorized errors.
()
| 38 | * @remarks This method uses the validateStatus: null option to bypass interceptors for unauthorized errors. |
| 39 | */ |
| 40 | async info(): Promise<IInstanceInfo> { |
| 41 | return this.get("/api/instances/", { validateStatus: null }) |
| 42 | .then((response) => response.data) |
| 43 | .catch((error) => { |
| 44 | throw error?.response?.data; |
| 45 | }); |
| 46 | } |
| 47 | |
| 48 | /** |
| 49 | * Fetches the changelog for the current instance |
no test coverage detected