20 lines
418 B
TypeScript
20 lines
418 B
TypeScript
import { z } from "zod"
|
|
|
|
export const staysInput = z
|
|
.object({
|
|
cursor: z.string().optional(),
|
|
limit: z.number().min(0).default(6),
|
|
})
|
|
.default({})
|
|
|
|
export const soonestUpcomingStaysInput = z
|
|
.object({
|
|
limit: z.number().int().positive(),
|
|
})
|
|
.default({ limit: 3 })
|
|
|
|
export const friendTransactionsInput = z.object({
|
|
cursor: z.number().int().nullish(),
|
|
limit: z.number().min(0).default(5),
|
|
})
|