damage report and inspections
This commit is contained in:
parent
0ea9601ea3
commit
a49babe48d
48 changed files with 701 additions and 117 deletions
|
@ -1,5 +1,3 @@
|
|||
import type { EquipmentViewModel } from "../equipment/equipment.models";
|
||||
|
||||
export interface DamageReportViewModel {
|
||||
id: string;
|
||||
reported: Date;
|
||||
|
@ -7,13 +5,12 @@ export interface DamageReportViewModel {
|
|||
done: boolean;
|
||||
description: string;
|
||||
providedImage?: string;
|
||||
affectedId: string;
|
||||
affected: EquipmentViewModel;
|
||||
}
|
||||
|
||||
export interface CreateDamageReportViewModel {
|
||||
description: string;
|
||||
affectedId: string;
|
||||
affected: "equipment" | "vehicle" | "wearable";
|
||||
}
|
||||
|
||||
export interface UpdateDamageReportViewModel {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import type { EquipmentTypeViewModel } from "../equipmentType/equipmentType.models";
|
||||
import type { InspectionViewMoel } from "../inspectionPlan/inspectionPlan.models";
|
||||
import type { InspectionViewModel } from "../inspectionPlan/inspectionPlan.models";
|
||||
|
||||
export interface EquipmentViewModel {
|
||||
id: string;
|
||||
|
@ -8,7 +8,7 @@ export interface EquipmentViewModel {
|
|||
location: string;
|
||||
equipmentTypeId: string;
|
||||
equipmentType: EquipmentTypeViewModel;
|
||||
inspections: Array<InspectionViewMoel>;
|
||||
inspections: Array<InspectionViewModel>;
|
||||
}
|
||||
|
||||
export interface CreateEquipmentViewModel {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import type { EquipmentTypeViewModel } from "../equipmentType/equipmentType.models";
|
||||
|
||||
export type PlanTimeDefinition = `${number}-${"d" | "m" | "y"}` | `${number}/${number | "*"}`;
|
||||
|
||||
export interface InspectionPlanViewModel {
|
||||
|
@ -10,8 +8,6 @@ export interface InspectionPlanViewModel {
|
|||
version: number;
|
||||
created: Date;
|
||||
inspectionPoints: InspectionPointViewModel[];
|
||||
equipmentTypeId: string;
|
||||
equipmentType: EquipmentTypeViewModel;
|
||||
}
|
||||
|
||||
export interface InspectionVersionedPlanViewModel {
|
||||
|
@ -19,15 +15,14 @@ export interface InspectionVersionedPlanViewModel {
|
|||
version: number;
|
||||
created: Date;
|
||||
inspectionPoints: InspectionPointViewModel[];
|
||||
equipmentTypeId: string;
|
||||
equipmentType: EquipmentTypeViewModel;
|
||||
}
|
||||
|
||||
export interface CreateInspectionPlanViewModel {
|
||||
title: string;
|
||||
inspectionInterval: PlanTimeDefinition;
|
||||
remindTime: PlanTimeDefinition;
|
||||
equipmentTypeId: string;
|
||||
typeId: string;
|
||||
assigned: "vehicle" | "equipment";
|
||||
}
|
||||
|
||||
export interface UpdateInspectionPlanViewModel {
|
||||
|
@ -44,8 +39,10 @@ export interface InspectionPointViewModel {
|
|||
type: "iO-niO" | "text" | "number";
|
||||
}
|
||||
|
||||
export interface InspectionViewMoel {
|
||||
export interface InspectionViewModel {
|
||||
id: string;
|
||||
inspectionPlanId: string;
|
||||
inspectionPlan: InspectionPlanViewModel;
|
||||
inspectionVersionedPlanId: string;
|
||||
inspectionVersionedPlan: InspectionVersionedPlanViewModel;
|
||||
context: string;
|
||||
|
@ -53,10 +50,10 @@ export interface InspectionViewMoel {
|
|||
finished?: Date;
|
||||
isOpen: boolean;
|
||||
nextInspection?: Date;
|
||||
checks: Array<InspectionPointResultViewMoel>;
|
||||
checks: Array<InspectionPointResultViewModel>;
|
||||
}
|
||||
|
||||
export interface InspectionPointResultViewMoel {
|
||||
export interface InspectionPointResultViewModel {
|
||||
inspectionId: string;
|
||||
inspectionVersionedPlanId: string;
|
||||
inspectionVersionedPlan: InspectionVersionedPlanViewModel;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MemberViewModel } from "../../club/member/member.models";
|
||||
import type { MemberViewModel } from "@/club/member/member.models";
|
||||
|
||||
export interface RespiratoryWearerViewModel {
|
||||
id: string;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { InspectionViewMoel } from "../inspectionPlan/inspectionPlan.models";
|
||||
import type { InspectionViewModel } from "../inspectionPlan/inspectionPlan.models";
|
||||
import type { VehicleTypeViewModel } from "../vehicleType/vehicleType.models";
|
||||
|
||||
export interface VehicleViewModel {
|
||||
|
@ -8,7 +8,7 @@ export interface VehicleViewModel {
|
|||
location: string;
|
||||
vehicleTypeId: string;
|
||||
vehicleType: VehicleTypeViewModel;
|
||||
inspections: Array<InspectionViewMoel>;
|
||||
inspections: Array<InspectionViewModel>;
|
||||
}
|
||||
|
||||
export interface CreateVehicleViewModel {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MemberViewModel } from "../../club/member/member.models";
|
||||
import type { MemberViewModel } from "@/club/member/member.models";
|
||||
import type { WearableTypeViewModel } from "../wearableType/wearableType.models";
|
||||
|
||||
export interface WearableViewModel {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue