refactor(yachts): rename schema + consolidate tests per project conventions
This commit is contained in:
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user