mirror of
https://github.com/Xevion/rdap.git
synced 2025-12-13 22:12:39 -06:00
Move types into schema, prepare for full lookup implementation
This commit is contained in:
26
src/types.ts
26
src/types.ts
@@ -1,8 +1,26 @@
|
||||
import type {z} from "zod";
|
||||
import type {ObjectTypeEnum} from "@/responses";
|
||||
import type {StatusEnum} from "@/responses";
|
||||
import type {
|
||||
AutonomousNumberSchema,
|
||||
DomainSchema,
|
||||
EntitySchema,
|
||||
EventSchema,
|
||||
IpNetworkSchema,
|
||||
LinkSchema,
|
||||
NameserverSchema,
|
||||
ObjectTypeEnum,
|
||||
RegisterSchema,
|
||||
StatusEnum
|
||||
} from "@/schema";
|
||||
|
||||
export type ObjectType = z.infer<typeof ObjectTypeEnum>
|
||||
export type ExtendedUri = Omit<ObjectType, 'ip'> | 'ip4' | 'ip6';
|
||||
export type RegistryType = Exclude<ObjectType, 'ip'> | 'ip4' | 'ip6';
|
||||
|
||||
export type RdapStatusType = z.infer<typeof StatusEnum>;
|
||||
export type RdapStatusType = z.infer<typeof StatusEnum>;
|
||||
export type Link = z.infer<typeof LinkSchema>;
|
||||
export type Entity = z.infer<typeof EntitySchema>;
|
||||
export type Nameserver = z.infer<typeof NameserverSchema>;
|
||||
export type Event = z.infer<typeof EventSchema>;
|
||||
export type IpNetwork = z.infer<typeof IpNetworkSchema>;
|
||||
export type AutonomousNumber = z.infer<typeof AutonomousNumberSchema>;
|
||||
export type Register = z.infer<typeof RegisterSchema>;
|
||||
export type Domain = z.infer<typeof DomainSchema>;
|
||||
|
||||
Reference in New Issue
Block a user