import { defineFeature } from "@repo/core-shared/conformance";

/**
 * The blog feature's conformance manifest.
 */
export const blogManifest = defineFeature({
  name: "blog",
  requiredCores: [],
  useCases: {
    getArticles: {
      mutates: false,
      audits: [],
      publishes: [],
      consumes: [],
    },
    getArticleBySlug: {
      mutates: false,
      audits: [],
      publishes: [],
      consumes: [],
    },
    createArticle: {
      mutates: true,
      audits: [],
      publishes: [],
      consumes: [],
    },
  },
  realtimeChannels: [],
  jobs: [],
  coverage: {
    bands: {
      baseline: { statements: 80, branches: 75, functions: 80, lines: 80 },
      entities: { statements: 100, branches: 100, functions: 100, lines: 100 },
      "use-cases": {
        statements: 100,
        branches: 95,
        functions: 100,
        lines: 100,
      },
      controllers: {
        statements: 100,
        branches: 95,
        functions: 100,
        lines: 100,
      },
    },
    mutationTargets: ["entities", "use-cases"],
  },
} as const);

export type BlogManifest = typeof blogManifest;
