forked from jappel/leistungsbilanz-ts
Add public building project setting
This commit is contained in:
parent
43a3bb0b69
commit
44b6fde940
29 changed files with 2057 additions and 54 deletions
|
|
@ -8,6 +8,7 @@ export const createProjectSchema = z.object({
|
|||
externalProjectNumber: z.string().trim().max(100).optional(),
|
||||
buildingOwner: z.string().trim().max(200).optional(),
|
||||
description: z.string().trim().max(2000).optional(),
|
||||
isPublicBuilding: z.boolean().optional(),
|
||||
singlePhaseVoltageV: z.number().positive().optional(),
|
||||
threePhaseVoltageV: z.number().positive().optional(),
|
||||
});
|
||||
|
|
@ -20,6 +21,7 @@ export const updateProjectSettingsSchema = z
|
|||
externalProjectNumber: z.string().trim().max(100).nullable(),
|
||||
buildingOwner: z.string().trim().max(200).nullable(),
|
||||
description: z.string().trim().max(2000).nullable(),
|
||||
isPublicBuilding: z.boolean(),
|
||||
singlePhaseVoltageV: z.number().positive(),
|
||||
threePhaseVoltageV: z.number().positive(),
|
||||
enabledDistributionBoardSupplyTypes: z
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue