metis-desk/modules/assets/src/api/domain/workstation-values.ts
David b45925f3e2 feat(assets): implement asset picker dialog and selection components
- Added `useAssetPickerController` for managing asset selection logic.
- Created `AssetSelectProps` type for defining asset selection properties.
- Implemented `AssetPickerDialog` for displaying the asset selection interface.
- Developed `AssetPickerList` for rendering the list of selectable assets.
- Introduced `AssetSelect` component for integrating the asset picker into forms.
- Created `AssetList` component for shared asset listing functionality.
- Added tests for workstation creation logic to ensure proper validation.
- Implemented workstation asset fields and association fields for managing workstation assets.
- Developed workstation lifecycle dialog for managing work profile states.
- Added form progress component for visualizing multi-step forms.
2026-10-14 19:42:59 +02:00

13 lines
374 B
TypeScript

import { z } from "zod/v4";
export const WorkstationInputSchema = z.strictObject({
computerAssetId: z.uuid().nullable().optional(),
name: z.string().min(1).max(100),
active: z.boolean(),
siteId: z.uuid().nullable(),
personId: z.uuid().nullable(),
assetIds: z.array(z.uuid()).max(200),
});
export type WorkstationInput = z.infer<typeof WorkstationInputSchema>;