userAccountDeactivatedDataSchema
@mineflow/contracts / userAccountDeactivatedDataSchema
Variable: userAccountDeactivatedDataSchema
const userAccountDeactivatedDataSchema: ZodObject<{
actorId: ZodUUID;
deactivatedAt: ZodISODateTime;
keycloakSubject: ZodNullable<ZodString>;
login: ZodString;
personnelId: ZodUUID;
reason: ZodString;
systemRoleCodes: ZodArray<ZodString>;
triggerSource: ZodEnum<{
manual: "manual";
personnel_terminated: "personnel_terminated";
}>;
userAccountId: ZodUUID;
}, $strip>;
Defined in: events/hr/user-account.ts:39
hr.user-account.deactivated — учётная запись деактивирована.
triggerSource различает ручную деактивацию и каскад от увольнения
сотрудника. Подписчики: Keycloak (отключение subject), Notifications.