downtimeRecordedRevertedDataSchema
@mineflow/contracts / downtimeRecordedRevertedDataSchema
Variable: downtimeRecordedRevertedDataSchema
const downtimeRecordedRevertedDataSchema: ZodObject<{
assetId: ZodNullable<ZodUUID>;
assetUsageId: ZodNullable<ZodUUID>;
description: ZodNullable<ZodString>;
downtimeEventId: ZodUUID;
durationMinutes: ZodNumber;
endedAt: ZodISODateTime;
productionObjectId: ZodUUID;
reason: ZodString;
reasonCode: ZodEnum<{
breakdown: "breakdown";
maintenance: "maintenance";
no_fuel: "no_fuel";
other: "other";
weather: "weather";
}>;
reversalSagaId: ZodUUID;
sagaId: ZodUUID;
shiftDate: ZodISODateTime;
shiftReportId: ZodUUID;
startedAt: ZodISODateTime;
}, $strip>;
Defined in: events/ana/downtime.ts:49
ana.downtime.recorded-reverted — counter-event для сторно.
Подписчики откатывают записанный простой из KTG/КИО.