Refine elevator sync and viewer rebuild handling

This commit is contained in:
sudhir
2026-05-13 22:28:19 +05:30
parent 9838d2cd4f
commit ce69433a1a
8 changed files with 76 additions and 40 deletions
@@ -1,6 +1,7 @@
import { z } from 'zod'
export const SurfaceHoleMetadata = z.object({
// Stair/elevator auto-openings use stairId/elevatorId so sync can replace only its own holes.
source: z.enum(['manual', 'stair', 'elevator']).default('manual'),
stairId: z.string().optional(),
elevatorId: z.string().optional(),