tessl install tessl/npm-lightdash--common@0.2231.5Shared TypeScript library for the Lightdash platform containing common types, utilities, and business logic for analytics workflows
Agent Success
Agent success rate when using this tile
72%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.09x
Baseline
Agent success rate without this tile
66%
A utility tool for analyzing and validating dashboard filter configurations in BI applications.
Extract all individual filter rules from nested filter groups into a flat array.
Count the total number of filter rules across all nesting levels.
Combine extraction and counting into a summary report.
@generates
/**
* Extracts all individual filter rules from a nested filter group structure.
*
* @param filterGroup - A filter group that may contain nested groups with AND/OR logic
* @returns An array of all individual filter rules
*/
export function extractAllFilters(filterGroup: FilterGroup): FilterRule[];
/**
* Counts the total number of filter rules in a filter group structure.
*
* @param filterGroup - A filter group that may contain nested groups
* @returns The total count of filter rules
*/
export function countFilters(filterGroup: FilterGroup): number;
/**
* Generates a summary report for a filter group.
*
* @param filterGroup - A filter group to analyze
* @returns A summary object containing the total count and all extracted rules
*/
export function generateFilterSummary(filterGroup: FilterGroup): FilterSummary;
export interface FilterSummary {
totalFilters: number;
rules: FilterRule[];
}Provides filter utilities for working with dashboard filter groups and rules.
@satisfied-by
docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10
scenario-11
scenario-12
scenario-13
scenario-14
scenario-15
scenario-16
scenario-17
scenario-18
scenario-19
scenario-20