import { ContentFragment, Theme } from "../../../flex-ui-core/src"; import * as React from "react"; /** * QueuesStats.AggregatedQueuesDataTiles Props. * @typedef QueuesStats․AggregatedQueuesDataTilesProps * @memberof QueuesStats․AggregatedQueuesDataTiles * @property {React.ReactElement} [children=undefined] - Add * additional tiles using `AggregatedDataTileV2` components wrapped in `ContentFragment`. * @property {Function} [dataTileFilter] - Callback to filter data tiles from the component. * Return false to exclude a card with a given id from the view. Default card ids are 'agents-by-activity-chart-tile' * and 'all'. Channel tiles are identified by their task channel sid e.g. 'TC...', and can be removed accordingly. */ export interface AggregatedQueuesDataTilesProps { children?: React.ReactElement; dataTileFilter: (id: string) => boolean; } /** * Props passed to children of QueuesStats.AggregatedQueuesDataTiles * @typedef QueuesStats․AggregatedQueuesDataTilesChildrenProps * @memberof QueuesStats․AggregatedQueuesDataTiles * @property {Theme} theme theme */ export type AggregatedQueuesDataTilesChildrenProps = Omit & { theme: Theme; }; export declare enum AggregatedQueuesDataTilesChildrenKeys { aggregatedDataView = "aggregated-data-view", dataTilesHeaderV2 = "data-tiles-header-v2", aggregatedDataViewV2 = "aggregated-data-view-v2", /** * @name "data-tiles-header" * @deprecated * @since 2.0.0 * @deprecatedSince 2.5.0 * @altRecommendation Please use "data-tiles-header-v2" instead: Dynamic components programmable actions are no longer done using this child key, instead the Cumulative Stats feature was created to replace this functionality. * @altRecommendationExample * Flex.QueuesStats.AggregatedQueuesDataTiles.Content.remove("data-tiles-header-v2") * @example * Flex.QueuesStats.AggregatedQueuesDataTiles.Content.remove("data-tiles-header") */ dataTilesHeader = "data-tiles-header", /** * @name "active-tasks-tile" * @deprecated * @since 2.0.0 * @deprecatedSince 2.5.0 * @altRecommendation This is no more programmable. Dynamic components programmable actions are no longer done using this child key, instead the Cumulative Stats feature was created to replace this functionality with cumulative data. * @altRecommendationExample N/A * @example Flex.QueuesStats.AggregatedQueuesDataTiles.Content.remove("active-tasks-tile") */ activeTasksTile = "active-tasks-tile", /** * @name "waiting-tasks-tile" * @deprecated * @since 2.0.0 * @deprecatedSince 2.5.0 * @altRecommendation This is no more programmable. Dynamic components programmable actions are no longer done using this child key, instead the Cumulative Stats feature was created to replace this functionality with cumulative data. * @altRecommendationExample N/A * @example Flex.QueuesStats.AggregatedQueuesDataTiles.Content.remove("waiting-tasks-tile") */ waitingTasksTile = "waiting-tasks-tile", /** * @name "longest-wait-time-tile" * @deprecated * @since 2.0.0 * @deprecatedSince 2.5.0 * @altRecommendation This is no more programmable. Dynamic components programmable actions are no longer done using this child key, instead the Cumulative Stats feature was created to replace this functionality with cumulative data. * @altRecommendationExample N/A * @example Flex.QueuesStats.AggregatedQueuesDataTiles.Content.remove("longest-wait-time-tile") */ longestWaitTimeTile = "longest-wait-time-tile", /** * @name "aggregated-active-tasks-tile" * @deprecated * @since 2.0.0 * @deprecatedSince 2.5.0 * @altRecommendation This is no more programmable. Dynamic components programmable actions are no longer done using this child key, instead the Cumulative Stats feature was created to replace this functionality with cumulative data. * @altRecommendationExample N/A * @example Flex.QueuesStats.AggregatedQueuesDataTiles.Content.remove("aggregated-active-tasks-tile") */ aggregatedActiveTasksTile = "aggregated-active-tasks-tile", /** * @name "aggregated-waiting-tasks-tile" * @deprecated * @since 2.0.0 * @deprecatedSince 2.5.0 * @altRecommendation This is no more programmable. Dynamic components programmable actions are no longer done using this child key, instead the Cumulative Stats feature was created to replace this functionality with cumulative data. * @altRecommendationExample N/A * @example Flex.QueuesStats.AggregatedQueuesDataTiles.Content.remove("aggregated-waiting-tasks-tile") */ aggregatedWaitingTasksTile = "aggregated-waiting-tasks-tile", /** * @name "aggregated-longest-wait-time-tile" * @deprecated * @since 2.0.0 * @deprecatedSince 2.5.0 * @altRecommendation This is no more programmable. Dynamic components programmable actions are no longer done using this child key, instead the Cumulative Stats feature was created to replace this functionality with cumulative data. * @altRecommendationExample N/A * @example Flex.QueuesStats.AggregatedQueuesDataTiles.Content.remove("aggregated-longest-wait-time-tile") */ aggregatedLongestWaitTimeTile = "aggregated-longest-wait-time-tile", /** * @name "agents-by-activity-chart-tile" * @deprecated * @since 2.0.0 * @deprecatedSince 2.5.0 * @altRecommendation Please use "aggregated-data-view-v2" instead(This requires Flex UI version to be 2.8 and above to work). Dynamic components programmable actions are no longer done using this child key, instead the Cumulative Stats feature was created to replace this functionality. * @altRecommendationExample * // For removal of Aggregated Tiles: * Flex.QueuesStats.AggregatedQueuesDataTiles.defaultProps.dataTileFilter = (cardId => { * if() { * return false * } * return true; // true means the card will be shown * }) * // For Addition of new Card: * Flex.QueuesStats.AggregatedQueuesDataTiles.Content.add(
Hello
) * @example * // For removal of Aggregated Tiles: * Flex.QueuesStats.AggregatedQueuesDataTiles.Content.remove("agents-by-activity-chart-tile") * // For Addition of new Card: * Flex.QueuesStats.AggregatedQueuesDataTiles.Content.add(
Hello
) */ agentsByActivityChartTile = "agents-by-activity-chart-tile" }