UNPKG

alepha

Version:

Easy-to-use modern TypeScript framework for building many kind of applications.

11 lines (8 loc) 404 B
import type { Static } from "alepha"; import { z } from "alepha"; import { pageQuerySchema } from "alepha/orm"; export const organizationQuerySchema = pageQuerySchema.extend({ name: z.text({ description: "Filter by name (partial match)" }).optional(), enabled: z.boolean().describe("Filter by enabled status").optional(), }); export type OrganizationQuery = Static<typeof organizationQuerySchema>;