/** * ADO User Story Component Extractor * * Extracts ADO User Story Components from FigJam boards, returning * structured data with IDs, descriptions, states, parent context, and links. * Reduces ~200K raw node data to ~5K structured result. */ import type { SimplifiedDesign } from "./types.js"; export interface AdoStoryItem { /** Node ID of the ADO component */ nodeId: string; /** ADO work item name/title */ adoName: string; /** ADO work item description */ adoDescription: string | null; /** ADO work item state (e.g. "New", "Active", "Closed") */ adoState: string | null; /** Numeric ADO work item ID (null if placeholder) */ adoId: number | null; /** Full ADO URL (null if no ID or missing org/project) */ adoLink: string | null; /** Figma board URL pointing to parent context */ figmaLink: string | null; /** Parent component type (e.g. "Dataverse Table", "API Endpoint") */ parentType: string | null; /** Parent context string "{Header}: {Description}" */ parentContext: string | null; /** Node ID of the parent INSTANCE */ parentNodeId: string | null; } export interface AdoStoryExtractResult { /** All extracted ADO story items */ items: AdoStoryItem[]; /** Total count of items */ totalCount: number; /** Count of items with placeholder IDs that were filtered */ placeholderCount: number; /** Counts by ADO state */ byState: Record; /** Counts by parent type */ byParentType: Record; } export interface AdoStoryExtractOptions { /** Figma file key (for constructing Figma links) */ fileKey: string; /** ADO organization name (for constructing ADO links) */ adoOrganization?: string; /** ADO project name (for constructing ADO links) */ adoProject?: string; /** Whether to include items with placeholder IDs (default: false) */ includePlaceholders?: boolean; } /** * Extract all ADO User Story Components from a simplified Figma design. * * @param design - The simplified design from getFigmaData * @param options - Extraction options (file key, ADO org/project, placeholder filtering) * @returns Structured result with items, counts, and summaries */ export declare function extractAdoStories(design: SimplifiedDesign, options: AdoStoryExtractOptions): AdoStoryExtractResult; //# sourceMappingURL=ado-story-extractor.d.ts.map