import type { RequestCollection, ServiceNode } from '@/lib/types';
export const phiServiceCatalog: ServiceNode[] = [
export function cloneServiceCatalog() {
export function toggleService(nodes: ServiceNode[], targetId: string): ServiceNode[] {
export function calculateTotalValue(nodes: ServiceNode[]): number {
const own = node.checked ? node.value : 0;
const child = node.children?.length ? calculateTotalValue(node.children) : 0;
export function flattenServices(nodes: ServiceNode[], inheritedDomain?: string): Array<ServiceNode & { resolvedDomain: string }> {