import { createModuleEvents } from "@open-mercato/shared/modules/events";
const events = [
  // Workflow Definitions
  { id: "workflows.definition.created", label: "Workflow Definition Created", entity: "definition", category: "crud" },
  { id: "workflows.definition.updated", label: "Workflow Definition Updated", entity: "definition", category: "crud" },
  { id: "workflows.definition.deleted", label: "Workflow Definition Deleted", entity: "definition", category: "crud" },
  { id: "workflows.definition.customized", label: "Workflow Definition Customized", entity: "definition", category: "lifecycle" },
  { id: "workflows.definition.reset_to_code", label: "Workflow Definition Reset to Code", entity: "definition", category: "lifecycle" },
  // Workflow Instances
  { id: "workflows.instance.created", label: "Workflow Instance Created", entity: "instance", category: "crud" },
  { id: "workflows.instance.updated", label: "Workflow Instance Updated", entity: "instance", category: "crud" },
  { id: "workflows.instance.deleted", label: "Workflow Instance Deleted", entity: "instance", category: "crud" },
  // Workflow Lifecycle Events
  { id: "workflows.instance.started", label: "Workflow Started", category: "lifecycle" },
  { id: "workflows.instance.completed", label: "Workflow Completed", category: "lifecycle" },
  { id: "workflows.instance.failed", label: "Workflow Failed", category: "lifecycle" },
  { id: "workflows.instance.cancelled", label: "Workflow Cancelled", category: "lifecycle" },
  { id: "workflows.instance.paused", label: "Workflow Paused", category: "lifecycle" },
  { id: "workflows.instance.resumed", label: "Workflow Resumed", category: "lifecycle" },
  // Activity Events
  { id: "workflows.activity.started", label: "Activity Started", category: "lifecycle" },
  { id: "workflows.activity.completed", label: "Activity Completed", category: "lifecycle" },
  { id: "workflows.activity.failed", label: "Activity Failed", category: "lifecycle" },
  // Event Triggers
  { id: "workflows.trigger.created", label: "Trigger Created", entity: "trigger", category: "crud" },
  { id: "workflows.trigger.updated", label: "Trigger Updated", entity: "trigger", category: "crud" },
  { id: "workflows.trigger.deleted", label: "Trigger Deleted", entity: "trigger", category: "crud" },
  // Parallel Fork / Join (branch lifecycle)
  { id: "workflows.branch.opened", label: "Parallel Branch Opened", entity: "branch", category: "lifecycle" },
  { id: "workflows.branch.completed", label: "Parallel Branch Completed", entity: "branch", category: "lifecycle" },
  { id: "workflows.branch.cancelled", label: "Parallel Branch Cancelled", entity: "branch", category: "lifecycle" },
  { id: "workflows.branch.failed", label: "Parallel Branch Failed", entity: "branch", category: "lifecycle" },
  { id: "workflows.join.completed", label: "Parallel Join Completed", entity: "branch", category: "lifecycle" }
];
const eventsConfig = createModuleEvents({
  moduleId: "workflows",
  events
});
const emitWorkflowsEvent = eventsConfig.emit;
var events_default = eventsConfig;
export {
  events_default as default,
  emitWorkflowsEvent,
  eventsConfig
};
//# sourceMappingURL=events.js.map
