Skip to content
Snippets Groups Projects
Commit 52e67bf5 authored by Adrian Orłów's avatar Adrian Orłów
Browse files

fix: models non consistent

parent bc3e620a
No related branches found
No related tags found
2 merge requests!223reset the pin numbers before search results are fetch (so the results will be...,!43feat: add map full data mgmt
import { z } from 'zod';
import { positionSchema } from './positionSchema';
export const overviewImageLink = z.union([
z.object({
idObject: z.number(),
polygon: z.array(positionSchema),
imageLinkId: z.number(),
type: z.string(),
}),
z.object({
idObject: z.number(),
polygon: z.array(positionSchema),
zoomLevel: z.number(),
modelPoint: positionSchema,
modelLinkId: z.number(),
type: z.string(),
}),
]);
import { z } from 'zod'; import { z } from 'zod';
import { overviewImageLink } from './overviewImageLink';
export const overviewImageView = z.object({ export const overviewImageView = z.object({
idObject: z.number(), idObject: z.number(),
filename: z.string(), filename: z.string(),
width: z.number(), width: z.number(),
height: z.number(), height: z.number(),
links: z.array( links: z.array(overviewImageLink),
z.union([
z.object({
idObject: z.number(),
polygon: z.array(z.object({ x: z.number(), y: z.number() })),
imageLinkId: z.number(),
type: z.string(),
}),
z.object({
idObject: z.number(),
polygon: z.array(z.object({ x: z.number(), y: z.number() })),
zoomLevel: z.number(),
modelPoint: z.object({ x: z.number(), y: z.number() }),
modelLinkId: z.number(),
type: z.string(),
}),
]),
),
}); });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment