@twilio/flex-ui
Version:
Twilio Flex UI
21 lines (20 loc) • 1.41 kB
TypeScript
import { FlexInAppNotification, FlexNotification } from "../../core/FlexDataClient";
import { NotificationMessage, NotificationSeverity, NotificationType } from "./NotificationPanel/Notifications.definitions";
export declare function getFormattedTimestamp(timestamp: string): string;
export declare function getNotificationSeverity(severity?: string | null): NotificationSeverity;
export declare function getNotificationSeverityForAlert(message: FlexNotification): NotificationSeverity;
export declare function getMetricName(key: string): string;
export declare function constructConditionalAlertingMessage(notification: FlexNotification): NotificationMessage | null;
export declare function constructConditionalAlertingToastMessage(notification: FlexNotification): {
title: string;
message: string;
} | null;
export declare function mapSubscriptionDataToMessage(subscriptionMessage: FlexInAppNotification): FlexNotification;
export declare function filterUnresolvedAlerts(messages: NotificationMessage[]): NotificationMessage[];
export declare function getToastTemplateVariables(message: FlexNotification): {
metricName: string;
queueName: string;
taskChannelName: string;
};
export declare function getNotificationIdBySeverity(severity: NotificationSeverity): string;
export declare function compareNotificationTypes(notification: FlexNotification, givenType: NotificationType): boolean;