Files
agentic-dev/packages/blog/src/index.ts

37 lines
1.4 KiB
TypeScript

export type { Article, ArticleStatus } from "./entities/models/article";
export type { BlogRouter } from "./integrations/api/router";
export { ArticleNotFoundError } from "./entities/errors/article";
export { InputParseError } from "./entities/errors/common";
// Use case schemas + types
export {
getArticlesInputSchema,
getArticlesOutputSchema,
type GetArticlesInput,
type GetArticlesOutput,
type IGetArticlesUseCase,
} from "./application/use-cases/get-articles.use-case";
export {
createArticleInputSchema,
createArticleOutputSchema,
type CreateArticleInput,
type CreateArticleOutput,
type ICreateArticleUseCase,
} from "./application/use-cases/create-article.use-case";
export {
getArticleBySlugInputSchema,
getArticleBySlugOutputSchema,
type GetArticleBySlugInput,
type GetArticleBySlugOutput,
type IGetArticleBySlugUseCase,
} from "./application/use-cases/get-article-by-slug.use-case";
// Controller type aliases
export type { IGetArticlesController } from "./interface-adapters/controllers/get-articles.controller";
export type { ICreateArticleController } from "./interface-adapters/controllers/create-article.controller";
export type { IGetArticleBySlugController } from "./interface-adapters/controllers/get-article-by-slug.controller";
// <gen:events>
// <gen:realtime-channels>
export { blogManifest, type BlogManifest } from "./feature.manifest";