import { createModuleEvents } from "@open-mercato/shared/modules/events";
const events = [
  // People
  { id: "customers.person.created", label: "Customer (Person) Created", entity: "person", category: "crud" },
  { id: "customers.person.updated", label: "Customer (Person) Updated", entity: "person", category: "crud" },
  { id: "customers.person.deleted", label: "Customer (Person) Deleted", entity: "person", category: "crud" },
  // Companies
  { id: "customers.company.created", label: "Customer (Company) Created", entity: "company", category: "crud" },
  { id: "customers.company.updated", label: "Customer (Company) Updated", entity: "company", category: "crud" },
  { id: "customers.company.deleted", label: "Customer (Company) Deleted", entity: "company", category: "crud" },
  // Deals
  { id: "customers.deal.created", label: "Deal Created", entity: "deal", category: "crud" },
  { id: "customers.deal.updated", label: "Deal Updated", entity: "deal", category: "crud" },
  { id: "customers.deal.deleted", label: "Deal Deleted", entity: "deal", category: "crud" },
  { id: "customers.deal.won", label: "Deal Won", entity: "deal", category: "lifecycle" },
  { id: "customers.deal.lost", label: "Deal Lost", entity: "deal", category: "lifecycle" },
  // Comments
  { id: "customers.comment.created", label: "Comment Created", entity: "comment", category: "crud" },
  { id: "customers.comment.updated", label: "Comment Updated", entity: "comment", category: "crud" },
  { id: "customers.comment.deleted", label: "Comment Deleted", entity: "comment", category: "crud" },
  // Addresses
  { id: "customers.address.created", label: "Address Created", entity: "address", category: "crud" },
  { id: "customers.address.updated", label: "Address Updated", entity: "address", category: "crud" },
  { id: "customers.address.deleted", label: "Address Deleted", entity: "address", category: "crud" },
  // Activities
  { id: "customers.activity.created", label: "Activity Created", entity: "activity", category: "crud" },
  { id: "customers.activity.updated", label: "Activity Updated", entity: "activity", category: "crud" },
  { id: "customers.activity.deleted", label: "Activity Deleted", entity: "activity", category: "crud" },
  // Tags
  { id: "customers.tag.created", label: "Tag Created", entity: "tag", category: "crud" },
  { id: "customers.tag.updated", label: "Tag Updated", entity: "tag", category: "crud" },
  { id: "customers.tag.deleted", label: "Tag Deleted", entity: "tag", category: "crud" },
  { id: "customers.tag.assigned", label: "Tag Assigned", entity: "tag", category: "crud" },
  { id: "customers.tag.removed", label: "Tag Removed", entity: "tag", category: "crud" },
  // Todos
  { id: "customers.todo.created", label: "Todo Created", entity: "todo", category: "crud" },
  { id: "customers.todo.updated", label: "Todo Updated", entity: "todo", category: "crud" },
  { id: "customers.todo.deleted", label: "Todo Deleted", entity: "todo", category: "crud" },
  // Interactions (canonical)
  { id: "customers.interaction.created", label: "Interaction Created", entity: "interaction", category: "crud" },
  { id: "customers.interaction.updated", label: "Interaction Updated", entity: "interaction", category: "crud" },
  { id: "customers.interaction.completed", label: "Interaction Completed", entity: "interaction", category: "lifecycle" },
  { id: "customers.interaction.canceled", label: "Interaction Canceled", entity: "interaction", category: "lifecycle" },
  { id: "customers.interaction.reverted", label: "Interaction Reverted", entity: "interaction", category: "lifecycle" },
  { id: "customers.interaction.deleted", label: "Interaction Deleted", entity: "interaction", category: "crud" },
  { id: "customers.next_interaction.updated", label: "Next Interaction Updated", entity: "interaction", category: "lifecycle" },
  // Entity Roles
  { id: "customers.entity_role.created", label: "Entity Role Created", entity: "entity_role", category: "crud" },
  { id: "customers.entity_role.updated", label: "Entity Role Updated", entity: "entity_role", category: "crud" },
  { id: "customers.entity_role.deleted", label: "Entity Role Deleted", entity: "entity_role", category: "crud" },
  // Labels
  { id: "customers.label.created", label: "Label Created", entity: "label", category: "crud" },
  { id: "customers.label.updated", label: "Label Updated", entity: "label", category: "crud" },
  { id: "customers.label.deleted", label: "Label Deleted", entity: "label", category: "crud" },
  // Label Assignments
  { id: "customers.label_assignment.created", label: "Label Assigned", entity: "label_assignment", category: "crud" },
  { id: "customers.label_assignment.updated", label: "Label Assignment Updated", entity: "label_assignment", category: "crud" },
  { id: "customers.label_assignment.deleted", label: "Label Unassigned", entity: "label_assignment", category: "crud" },
  // Person-Company Links
  { id: "customers.person_company_link.created", label: "Person Linked To Company", entity: "person_company_link", category: "crud", clientBroadcast: true },
  { id: "customers.person_company_link.updated", label: "Person-Company Link Updated", entity: "person_company_link", category: "crud", clientBroadcast: true },
  { id: "customers.person_company_link.deleted", label: "Person Unlinked From Company", entity: "person_company_link", category: "crud", clientBroadcast: true },
  // ── Email integration (2026-05-27) ────────────────────────────────────────
  { id: "customers.email.linked", label: "Email Linked To Person", entity: "email_link", category: "lifecycle", clientBroadcast: true },
  { id: "customers.email.visibility_changed", label: "Email Visibility Changed", entity: "email_link", category: "lifecycle", clientBroadcast: true }
];
const eventsConfig = createModuleEvents({
  moduleId: "customers",
  events
});
const emitCustomersEvent = eventsConfig.emit;
var events_default = eventsConfig;
export {
  events_default as default,
  emitCustomersEvent,
  eventsConfig
};
//# sourceMappingURL=events.js.map
