tasko/actions/update-card-order/schema.ts

16 lines
292 B
TypeScript
Raw Normal View History

2024-02-16 01:49:19 +00:00
import { z } from 'zod';
2024-02-15 02:30:10 +00:00
export const UpdateCardOrder = z.object({
items: z.array(
z.object({
id: z.string(),
title: z.string(),
order: z.number(),
listId: z.string(),
createdAt: z.date(),
updatedAt: z.date(),
})
),
boardId: z.string(),
});