Persist circuit reorders

This commit is contained in:
Julian Appel 2026-07-25 21:22:10 +02:00
parent 08a2775a88
commit abcb468807
26 changed files with 914 additions and 372 deletions

View file

@ -1,9 +1,5 @@
import { z } from "zod";
export const reorderSectionCircuitsSchema = z.object({
orderedCircuitIds: z.array(z.string().min(1)).min(1),
});
export const updateSectionEquipmentIdentifiersSchema = z.object({
identifiers: z
.array(
@ -15,5 +11,4 @@ export const updateSectionEquipmentIdentifiersSchema = z.object({
.min(1),
});
export type ReorderSectionCircuitsInput = z.infer<typeof reorderSectionCircuitsSchema>;
export type UpdateSectionEquipmentIdentifiersInput = z.infer<typeof updateSectionEquipmentIdentifiersSchema>;