diff --git a/package.json b/package.json index dfeb099..1ee1897 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mcutils-library", - "version": "1.1.1", + "version": "1.1.2", "description": "", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/types/cache/cachedEndpointStatus.ts b/src/types/cache/cachedEndpointStatus.ts index 0298fd9..89a85d9 100644 --- a/src/types/cache/cachedEndpointStatus.ts +++ b/src/types/cache/cachedEndpointStatus.ts @@ -1,8 +1,24 @@ -import { EndpointStatus } from "../mojang/endpointStatus"; - export interface CachedEndpointStatus extends Cache { /** * The cached endpoint status. */ - status: EndpointStatus; + endpoints: Map; +} + +enum Status { + /** + * The service is online and operational. + */ + ONLINE, + + /** + * The service is online, but may be experiencing issues. + * This could be due to high load or other issues. + */ + DEGRADED, + + /** + * The service is offline and not operational. + */ + OFFLINE, } diff --git a/src/types/mojang/endpointStatus.ts b/src/types/mojang/endpointStatus.ts deleted file mode 100644 index 7c78a90..0000000 --- a/src/types/mojang/endpointStatus.ts +++ /dev/null @@ -1,24 +0,0 @@ -export type EndpointStatus = { - /** - * The status of the endpoints. - */ - endpoints: Map; -}; - -enum Status { - /** - * The service is online and operational. - */ - ONLINE, - - /** - * The service is online, but may be experiencing issues. - * This could be due to high load or other issues. - */ - DEGRADED, - - /** - * The service is offline and not operational. - */ - OFFLINE, -}