refactor(yachts): rename schema + consolidate tests per project conventions

This commit is contained in:
Matt Ciaccio
2026-04-23 23:35:30 +02:00
parent 899e588a0c
commit 27d438929b
5 changed files with 83 additions and 59 deletions

View File

@@ -39,7 +39,7 @@ export const transferOwnershipSchema = z.object({
transferNotes: z.string().optional(),
});
export const listYachtsQuery = baseListQuerySchema.extend({
export const listYachtsSchema = baseListQuerySchema.extend({
ownerType: z.enum(['client', 'company']).optional(),
ownerId: z.string().optional(),
status: z.enum(['active', 'retired', 'sold_away']).optional(),
@@ -49,4 +49,4 @@ export const listYachtsQuery = baseListQuerySchema.extend({
export type CreateYachtInput = z.infer<typeof createYachtSchema>;
export type UpdateYachtInput = z.infer<typeof updateYachtSchema>;
export type TransferOwnershipInput = z.infer<typeof transferOwnershipSchema>;
export type ListYachtsInput = z.infer<typeof listYachtsQuery>;
export type ListYachtsInput = z.infer<typeof listYachtsSchema>;