38 lines
805 B
TypeScript
38 lines
805 B
TypeScript
import { z } from "zod"
|
|
|
|
export const getUserInputSchema = z
|
|
.object({
|
|
mask: z.boolean().default(true),
|
|
})
|
|
.default({})
|
|
|
|
export const staysInput = z
|
|
.object({
|
|
cursor: z.number().optional(),
|
|
limit: z.number().min(0).default(6),
|
|
})
|
|
.default({})
|
|
|
|
export const soonestUpcomingStaysInput = z
|
|
.object({
|
|
limit: z.number().int().positive(),
|
|
})
|
|
.default({ limit: 3 })
|
|
|
|
export const initiateSaveCardInput = z.object({
|
|
language: z.string(),
|
|
mobileToken: z.boolean(),
|
|
redirectUrl: z.string(),
|
|
})
|
|
|
|
export const saveCardInput = z.object({
|
|
transactionId: z.string(),
|
|
merchantId: z.string().optional(),
|
|
})
|
|
export const friendTransactionsInput = z
|
|
.object({
|
|
limit: z.number().int().positive(),
|
|
page: z.number().int().positive(),
|
|
})
|
|
.default({ limit: 5, page: 1 })
|