user type graphql added

This commit is contained in:
2025-11-25 20:16:11 +03:00
parent eedfed1a65
commit 2062aa7a1d
52 changed files with 3111 additions and 45 deletions

View File

@@ -0,0 +1,31 @@
import { z } from "zod";
export const schema = z.object({
_id: z.string(),
buildType: z.object({
token: z.string(),
typeToken: z.string(),
type: z.string(),
}),
collectionToken: z.string(),
info: z.object({
govAddressCode: z.string(),
buildName: z.string(),
buildNo: z.string(),
maxFloor: z.number(),
undergroundFloor: z.number(),
buildDate: z.string(),
decisionPeriodDate: z.string(),
taxNo: z.string(),
liftCount: z.number(),
heatingSystem: z.boolean(),
coolingSystem: z.boolean(),
hotWaterSystem: z.boolean(),
blockServiceManCount: z.number(),
securityServiceManCount: z.number(),
garageCount: z.number(),
managementRoomId: z.number(),
})
});
export type schemaType = z.infer<typeof schema>;