hrWatchEvents
@mineflow/contracts / hrWatchEvents
Variable: hrWatchEvents
const hrWatchEvents: object;
Defined in: events/hr/watch.ts:178
Записи каталога HR/Watches: имя события → { version, schema }.
Type Declaration
| Name | Type | Default value | Defined in |
|---|---|---|---|
hr.shift.created | object | - | events/hr/watch.ts:196 |
hr.shift.created.schema | ZodObject<{ actorId: ZodUUID; durationHours: ZodNumber; objectId: ZodUUID; shiftDate: ZodISODateTime; shiftId: ZodUUID; shiftType: ZodEnum<{ day: "day"; night: "night"; }>; watchId: ZodNullable<ZodUUID>; }, $strip> | shiftCreatedDataSchema | events/hr/watch.ts:196 |
hr.shift.created.version | "1.0" | '1.0' | events/hr/watch.ts:196 |
hr.shift.foreman-assigned | object | - | events/hr/watch.ts:197 |
hr.shift.foreman-assigned.schema | ZodObject<{ actorId: ZodUUID; foremanId: ZodUUID; objectId: ZodUUID; previousForemanId: ZodNullable<ZodUUID>; shiftDate: ZodISODateTime; shiftId: ZodUUID; shiftType: ZodEnum<{ day: "day"; night: "night"; }>; watchId: ZodNullable<ZodUUID>; }, $strip> | shiftForemanAssignedDataSchema | events/hr/watch.ts:197 |
hr.shift.foreman-assigned.version | "1.0" | '1.0' | events/hr/watch.ts:197 |
hr.shift.foreman-missing | object | - | events/hr/watch.ts:198 |
hr.shift.foreman-missing.schema | ZodObject<{ detectedAt: ZodISODateTime; objectId: ZodUUID; shiftDate: ZodISODateTime; shiftId: ZodUUID; shiftType: ZodEnum<{ day: "day"; night: "night"; }>; }, $strip> | shiftForemanMissingDataSchema | events/hr/watch.ts:198 |
hr.shift.foreman-missing.version | "1.0" | '1.0' | events/hr/watch.ts:198 |
hr.shift.substitution-registered | object | - | events/hr/watch.ts:199 |
hr.shift.substitution-registered.schema | ZodObject<{ actorId: ZodUUID; objectId: ZodUUID; reason: ZodOptional<ZodString>; replacedPersonnelId: ZodUUID; shiftDate: ZodISODateTime; shiftId: ZodUUID; shiftType: ZodEnum<{ day: "day"; night: "night"; }>; substitutePersonnelId: ZodUUID; }, $strip> | shiftSubstitutionRegisteredDataSchema | events/hr/watch.ts:201 |
hr.shift.substitution-registered.version | "1.0" | '1.0' | events/hr/watch.ts:200 |
hr.watch-assignment.activated | object | - | events/hr/watch.ts:184 |
hr.watch-assignment.activated.schema | ZodObject<{ actorId: ZodUUID; arrivalDate: ZodISODateTime; objectId: ZodUUID; personnelId: ZodUUID; watchAssignmentId: ZodUUID; watchId: ZodUUID; }, $strip> | watchAssignmentActivatedDataSchema | events/hr/watch.ts:186 |
hr.watch-assignment.activated.version | "1.0" | '1.0' | events/hr/watch.ts:185 |
hr.watch-assignment.cancelled | object | - | events/hr/watch.ts:192 |
hr.watch-assignment.cancelled.schema | ZodObject<{ actorId: ZodUUID; personnelId: ZodUUID; reason: ZodOptional<ZodString>; watchAssignmentId: ZodUUID; watchId: ZodUUID; }, $strip> | watchAssignmentCancelledDataSchema | events/hr/watch.ts:194 |
hr.watch-assignment.cancelled.version | "1.0" | '1.0' | events/hr/watch.ts:193 |
hr.watch-assignment.completed | object | - | events/hr/watch.ts:188 |
hr.watch-assignment.completed.schema | ZodObject<{ actorId: ZodUUID; departureDate: ZodISODateTime; personnelId: ZodUUID; watchAssignmentId: ZodUUID; watchId: ZodUUID; }, $strip> | watchAssignmentCompletedDataSchema | events/hr/watch.ts:190 |
hr.watch-assignment.completed.version | "1.0" | '1.0' | events/hr/watch.ts:189 |
hr.watch-assignment.scheduled | object | - | events/hr/watch.ts:180 |
hr.watch-assignment.scheduled.schema | ZodObject<{ actorId: ZodUUID; arrivalDate: ZodISODateTime; departureDate: ZodISODateTime; objectId: ZodUUID; personnelId: ZodUUID; watchAssignmentId: ZodUUID; watchId: ZodUUID; }, $strip> | watchAssignmentScheduledDataSchema | events/hr/watch.ts:182 |
hr.watch-assignment.scheduled.version | "1.0" | '1.0' | events/hr/watch.ts:181 |
hr.watch.created | object | - | events/hr/watch.ts:179 |
hr.watch.created.schema | ZodObject<{ actorId: ZodUUID; endDate: ZodISODateTime; objectId: ZodUUID; startDate: ZodISODateTime; watchId: ZodUUID; }, $strip> | watchCreatedDataSchema | events/hr/watch.ts:179 |
hr.watch.created.version | "1.0" | '1.0' | events/hr/watch.ts:179 |