From 8c2c03eba5266249abeed8e6e5493a5093253953 Mon Sep 17 00:00:00 2001 From: Liam Date: Fri, 19 Apr 2024 17:28:50 +0100 Subject: [PATCH] use new endpoint status model --- package.json | 2 +- src/types/mojang/endpoint-status.ts | 21 ++++++++++++++++++--- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 176ea7a..a50303e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mcutils-library", - "version": "1.2.2", + "version": "1.2.3", "description": "", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/types/mojang/endpoint-status.ts b/src/types/mojang/endpoint-status.ts index 17370be..0ffd000 100644 --- a/src/types/mojang/endpoint-status.ts +++ b/src/types/mojang/endpoint-status.ts @@ -1,10 +1,25 @@ import { Status } from "../status"; -export interface CachedEndpointStatus extends Cache, EndpointStatus {} +export interface CachedEndpointStatus extends Cache, EndpointStatus { + /** + * The endpoint statuses. + */ + endpoints: EndpointStatus[]; +} type EndpointStatus = { /** - * The cached endpoint status. + * The name of the service. */ - endpoints: Record; + name: string; + + /** + * The hostname of the service. + */ + hostname: string; + + /** + * The status of the service. + */ + status: Status; };