From c1d69900704789d9b16341d9892fcc9586363fd0 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Fri, 15 Sep 2023 23:17:00 -0400 Subject: [PATCH] fix(striker-ui): add /api/anvil response type --- striker-ui/types/APIAnvil.d.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/striker-ui/types/APIAnvil.d.ts b/striker-ui/types/APIAnvil.d.ts index 37c40f77..fa6e0003 100644 --- a/striker-ui/types/APIAnvil.d.ts +++ b/striker-ui/types/APIAnvil.d.ts @@ -86,3 +86,24 @@ type AnvilListItem = { type AnvilList = { anvils: AnvilListItem[]; }; + +type APIAnvilOverviewArray = Array<{ + anvilName: string; + anvilUUID: string; + hosts: Array<{ hostName: string; hostUUID: string }>; +}>; + +type APIAnvilOverview = { + hosts: { + [uuid: string]: { + name: string; + uuid: string; + }; + }; + name: string; + uuid: string; +}; + +type APIAnvilOverviewList = { + [uuid: string]: APIAnvilOverview; +};