All files / libs/reporting/dashboards-v2/shared/src/lib/business-rules/identifiers identifiers.ts

0% Statements 0/13
0% Branches 0/1
0% Functions 0/1
0% Lines 0/13

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14                           
import { type ChartDisplaySettingsCountIdentifier as ChartDisplaySettingsCountIdentifierType } from '@amalia/reporting/dashboards-v2/types';

export const buildAccumulatedIdentifier = (identifier: string) => `${identifier}__accumulated`;
export const buildAverageIdentifier = (identifier: string) => `${identifier}__average`;
export const buildProgressIdentifier = (identifier: string) => `${identifier}__progress`;
export const buildProgressTo100Identifier = (identifier: string) => `${identifier}__progressTo100`;

export const buildCountIdentifier = (identifier: string, countType: ChartDisplaySettingsCountIdentifierType) =>
  `${identifier}__${countType}Count`;
export const buildPercentIdentifier = (identifier: string, countType: ChartDisplaySettingsCountIdentifierType) =>
  `${identifier}__${countType}Percent`;

export const DISTRIBUTION_SEGMENT_LABEL_IDENTIFIER = 'distributionSegmentLabel';