Add public API for methods and values

This commit is contained in:
adilallo
2026-05-22 14:32:15 -06:00
parent cef7c98205
commit 9e11063a11
14 changed files with 727 additions and 134 deletions
+8 -1
View File
@@ -1,5 +1,8 @@
import { z } from "zod";
import { METHOD_FACET_API_SECTION_IDS } from "../../create/customRuleFacets";
import {
CATALOG_SECTION_IDS,
METHOD_FACET_API_SECTION_IDS,
} from "../../create/customRuleFacets";
/**
* Zod schemas for the recommendation matrix (CR-88).
@@ -20,6 +23,10 @@ export const SECTION_IDS = METHOD_FACET_API_SECTION_IDS;
export type SectionId = (typeof SECTION_IDS)[number];
export const sectionIdSchema = z.enum(SECTION_IDS);
/** `GET /api/create-flow/methods?section=` including core values (CR-115). */
export type CatalogSectionId = (typeof CATALOG_SECTION_IDS)[number];
export const catalogSectionIdSchema = z.enum(CATALOG_SECTION_IDS);
export const FACET_GROUP_IDS = [
"size",
"orgType",