@@ -27,8 +27,6 @@ import {
2727} from "./server" ;
2828
2929import { vMSHealthSchema } from "./vms-schema" ;
30- const appsHealthSchema = z . any ( ) ;
31-
3230
3331export const serverUserTypeSchema = z . nativeEnum ( ServerUserType ) ;
3432
@@ -137,12 +135,6 @@ export const serverSystemDataSystemDeviceDataSchema = z.object({
137135 networking : z . array ( serverSystemDataSystemDeviceSchema ) . optional ( ) ,
138136} ) ;
139137
140- export const serverSystemDataApplicationsSchema =
141- serverStatusBasicsSchema . extend ( {
142- type : z . literal ( ServerStatusType . APPLICATIONS ) ,
143- health : appsHealthSchema ,
144- } ) ;
145-
146138export const serverSystemDataVirtualizationSchema =
147139 serverStatusBasicsSchema . extend ( {
148140 type : z . literal ( ServerStatusType . VIRTUALIZATION ) ,
@@ -228,6 +220,8 @@ const fileTypeSchema = z.any();
228220
229221const topologyItemStatusSchema = z . any ( ) ;
230222
223+ const appsHealthSchema = z . any ( ) ;
224+
231225const networkInterfaceTypeSchema = z . any ( ) ;
232226
233227export const serverPoolBasicsSchema = z . object ( {
@@ -322,6 +316,12 @@ export const serverSystemDataStorageSchema = serverStatusBasicsSchema.extend({
322316 } ) ,
323317} ) ;
324318
319+ export const serverSystemDataApplicationsSchema =
320+ serverStatusBasicsSchema . extend ( {
321+ type : z . literal ( ServerStatusType . APPLICATIONS ) ,
322+ health : appsHealthSchema ,
323+ } ) ;
324+
325325export const serverSystemDataSchema = z . union ( [
326326 serverSystemDataSystemSchema ,
327327 serverSystemDataStorageSchema ,
0 commit comments