maintainance view and wearable inspection integration

This commit is contained in:
Julian Krauser 2025-06-13 12:45:43 +02:00
parent 50fa0128ea
commit 6575948841
26 changed files with 877 additions and 66 deletions

View file

@ -3,6 +3,7 @@ import type { EquipmentViewModel } from "../equipment/equipment.models";
import type { VehicleViewModel } from "../vehicle/vehicle.models";
import type { EquipmentTypeViewModel } from "../equipment/equipmentType.models";
import type { VehicleTypeViewModel } from "../vehicle/vehicleType.models";
import type { WearableTypeViewModel } from "../wearable/wearableType.models";
export type PlanTimeDefinition = `${number}-${"d" | "m" | "y"}` | `${number}/${number | "*"}`;
@ -24,6 +25,10 @@ export type InspectionPlanViewModel = {
assigned: "vehicle";
related: VehicleTypeViewModel;
}
| {
assigned: "wearable";
related: WearableTypeViewModel;
}
);
export interface InspectionVersionedPlanViewModel {
@ -48,7 +53,7 @@ export interface CreateInspectionPlanViewModel {
inspectionInterval: PlanTimeDefinition;
remindTime: PlanTimeDefinition;
relatedId: string;
assigned: "vehicle" | "equipment";
assigned: "vehicle" | "equipment" | "wearable";
}
export interface UpdateInspectionPlanViewModel {