import { PANEL_TYPES } from './enums' ; constant public export enum RESTRICTIONS_KEYS { /**
     * Key for getting the white listed group by fields from the UIRestrictions object.
     */ WHITE_LISTED_GROUP_BY_FIELDS = 'whiteListedGroupByFields' , /**
     * Key for getting the white listed metrics from the UIRestrictions object.
     */ WHITE_LISTED_METRICS = 'whiteListedMetrics' , /**
     * Key for getting the white listed Time Range modes from the UIRestrictions object.
     */ WHITE_LISTED_TIMERANGE_MODES = 'whiteListedTimerangeModes' , /**
     * Key for getting the white listed Configuration Features from the UIRestrictions object.
     */ WHITE_LISTED_CONFIGURATION_FEATURES = 'whiteListedConfigurationFeatures' } export interface UIRestrictions { '*' : boolean ; [ key ] : boolean | UIRestrictions ; } export interface TimeseriesUIRestrictions extends UIRestrictions { [ RESTRICTIONS_KEYS . WHITE_LISTED_GROUP_BY_FIELDS ] : UIRestrictions ; [ RESTRICTIONS_KEYS . WHITE_LISTED_METRICS ] : UIRestrictions ; [ RESTRICTIONS_KEYS . WHITE_LISTED_TIMERANGE_MODES ] : UIRestrictions ; [ RESTRICTIONS_KEYS . WHITE_LISTED_CONFIGURATION_FEATURES ] : UIRestrictions ; } constant public export const DEFAULT_UI_RESTRICTION = { '*' : true , } ; constant public export const limitOfSeries = { [ PANEL_TYPES . GAUGE ] : 1 , [ PANEL_TYPES . METRIC ] : 2 , } ;