@openinc/parse-server-opendash
Version:
Parse Server Cloud Code for open.INC Stack.
35 lines (34 loc) • 1.14 kB
TypeScript
import { DocumentationFolder, DocumentationFile } from "../types";
/**
* Feature-based filtering service for documentation
*/
export declare class FeatureFilter {
/**
* Filter folders and files based on their feature configuration
*/
static filterByFeature(root: DocumentationFolder): DocumentationFolder;
/**
* Recursively filter a folder and its contents based on feature enablement
*/
private static filterFolder;
/**
* Check if a folder has any content (files or non-empty subfolders)
*/
private static hasContent;
/**
* Filter the flat file list to match the filtered folder structure
*/
static filterFileList(files: DocumentationFile[], filteredRoot: DocumentationFolder): DocumentationFile[];
/**
* Recursively collect all allowed file paths from the filtered folder structure
*/
private static collectAllowedPaths;
/**
* Count total files recursively in a folder structure
*/
private static countTotalFiles;
/**
* Count total folders recursively in a folder structure
*/
private static countTotalFolders;
}