Skip to content

Commit 2e72cc3

Browse files
Merge pull request #82 from eshtek/dev
dev -> main
2 parents 13f788a + 8a05827 commit 2e72cc3

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

eshtek/server-schema.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ import {
2727
} from "./server";
2828

2929
import { vMSHealthSchema } from "./vms-schema";
30-
const appsHealthSchema = z.any();
31-
3230

3331
export 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-
146138
export const serverSystemDataVirtualizationSchema =
147139
serverStatusBasicsSchema.extend({
148140
type: z.literal(ServerStatusType.VIRTUALIZATION),
@@ -228,6 +220,8 @@ const fileTypeSchema = z.any();
228220

229221
const topologyItemStatusSchema = z.any();
230222

223+
const appsHealthSchema = z.any();
224+
231225
const networkInterfaceTypeSchema = z.any();
232226

233227
export 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+
325325
export const serverSystemDataSchema = z.union([
326326
serverSystemDataSystemSchema,
327327
serverSystemDataStorageSchema,

ts-to-zod.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = [
22
{
3-
name: "apps",
3+
name: "vms",
44
input: "eshtek/vms.ts",
55
output: "eshtek/vms-schema.ts",
66
},

0 commit comments

Comments
 (0)