Перейти к основному содержимому

incidentReportedDataSchema

@mineflow/contracts


@mineflow/contracts / incidentReportedDataSchema

Variable: incidentReportedDataSchema

const incidentReportedDataSchema: ZodObject<{
assetId: ZodOptional<ZodNullable<ZodString>>;
incidentId: ZodString;
maxSeverity: ZodNullable<ZodEnum<{
fatal: "fatal";
light: "light";
micro: "micro";
severe: "severe";
}>>;
objectId: ZodString;
occurredAt: ZodString;
performedBy: ZodString;
reportedBy: ZodString;
type: ZodEnum<{
accident: "accident";
environmental: "environmental";
near_miss: "near_miss";
property_damage: "property_damage";
}>;
}, $strict>;

Defined in: events/index.ts:76