index.ts1.2 KBView on GitHub
/**
 * User Tasks Module
 *
 * Exports hooks, types, and slice for managing user tasks and scheduled executions.
 */

// Export the main hooks
export { useOptimisticTaskActions } from './hooks/use-optimistic-task-actions';

// Export components
export { TaskCommandBar } from './components/TaskCommandBar';

// Export slice types and creator
export type {
  // Task-centric types
  TaskChannel,
  TaskType,
  TaskActionData,
  EmailTaskActionData,
  SlackTaskActionData,
  FollowupTaskDefinition,
  // Other types
  HydratedUserTask,
  HydratedTaskConversation,
  ScheduledExecution,
  UserTasksState,
  UserTasksSlice,
  SortableAttribute,
  SortingConfiguration,
  TaskDateKey,
  TaskIdsByDateKey,
  ExecutionIdsByDateKey,
} from './slice/userTasksSlice';

// Export the task output axis — what a task produces (supersedes TaskChannel for all reads)
export {
  TASK_OUTPUT_KINDS,
  TASK_OUTPUT_KIND_LABELS,
  UNDECIDED_OUTPUT_KEY,
  taskOutputKind,
  taskOutputLabel,
} from './utils/task-output';
export type { TaskOutputKind } from './utils/task-output';

// Export enums
export { TASK_CHANNELS, TASK_TYPES } from './slice/userTasksSlice';

export { createUserTasksSlice } from './slice/userTasksSlice';