bigbuffet-rw/packages/pl-api/lib/entities/admin/domain.ts
marcin mikołajczak 036fa32cd3 Add pl-api to workspace
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-08-28 13:43:23 +02:00

13 lines
349 B
TypeScript

import z from 'zod';
const adminDomainSchema = z.object({
domain: z.string().catch(''),
id: z.coerce.string(),
public: z.boolean().catch(false),
resolves: z.boolean().catch(false),
last_checked_at: z.string().datetime().catch(''),
});
type AdminDomain = z.infer<typeof adminDomainSchema>
export { adminDomainSchema, type AdminDomain };