@trii/types 2.10.781 → 2.10.783
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Tickets/Dashboard.d.ts +36 -3
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChannelType } from "../Common/Channels/ChannelType";
|
|
2
2
|
import { ITicketDateRange, ITicketMetricGroup, ITicketMetricPoint, TicketPriority, TicketPropertyValue } from "./Common";
|
|
3
3
|
import { ITicketFilter } from "./Api";
|
|
4
|
-
import type { ServiceCommitmentType, SlaStatus } from "./Sla";
|
|
4
|
+
import type { ServiceCommitmentType, SlaMetricType, SlaStatus } from "./Sla";
|
|
5
5
|
import type { AgentAvailabilityStatus } from "./Routing";
|
|
6
6
|
export declare enum TicketAnalyticsAudience {
|
|
7
7
|
AGENT = "AGENT",
|
|
@@ -545,6 +545,25 @@ export interface IAgentDashboardCapacity {
|
|
|
545
545
|
waitingCustomer: number;
|
|
546
546
|
new: number;
|
|
547
547
|
}
|
|
548
|
+
/**
|
|
549
|
+
* Compliance of one SLA metric over the agent's root-policy clocks (customer SLA;
|
|
550
|
+
* OLA/UC excluded) decided in the period: met when completed on time, breached when
|
|
551
|
+
* it went past due. One entry per enabled metric definition, plus legacy metric
|
|
552
|
+
* types (no definition) that have clocks.
|
|
553
|
+
*/
|
|
554
|
+
export interface IAgentDashboardSlaCompliance {
|
|
555
|
+
/** Absent for legacy clocks that have no metric definition. */
|
|
556
|
+
metricDefinitionId?: string;
|
|
557
|
+
metricType: SlaMetricType;
|
|
558
|
+
/** Definition code, or the metric type for legacy clocks. */
|
|
559
|
+
code: string;
|
|
560
|
+
/** Definition name; absent for legacy clocks (label them by metricType). */
|
|
561
|
+
name?: string;
|
|
562
|
+
met: number;
|
|
563
|
+
breached: number;
|
|
564
|
+
/** met / (met + breached) * 100, one decimal. Absent when no clock was decided in the period. */
|
|
565
|
+
actual?: number;
|
|
566
|
+
}
|
|
548
567
|
export interface IAgentDashboardQualityGoal {
|
|
549
568
|
actual: number;
|
|
550
569
|
target: number;
|
|
@@ -563,8 +582,19 @@ export interface IAgentDashboardMetrics {
|
|
|
563
582
|
resolvedCount: number;
|
|
564
583
|
resolvedChangePercentage?: number;
|
|
565
584
|
receivedCount: number;
|
|
585
|
+
/** Open tickets of the agent with an open (PENDING or BREACHED) FIRST_RESPONSE/NEXT_RESPONSE clock. */
|
|
566
586
|
awaitingResponseCount: number;
|
|
567
|
-
|
|
587
|
+
/**
|
|
588
|
+
* Minutes the longest-waiting of those tickets has been waiting: now minus the
|
|
589
|
+
* start of the oldest open response clock. Absent when awaitingResponseCount is 0.
|
|
590
|
+
*/
|
|
591
|
+
oldestAwaitingResponseMinutes?: number;
|
|
592
|
+
/**
|
|
593
|
+
* Average of the agent's FIRST_RESPONSE clocks (root policy) met or breached in the
|
|
594
|
+
* period, in clock minutes (business hours and pauses already discounted).
|
|
595
|
+
* Absent when no first-response clock was decided in the period.
|
|
596
|
+
*/
|
|
597
|
+
averageFirstResponseMinutes?: number;
|
|
568
598
|
averageResolutionMinutes: number;
|
|
569
599
|
slaAttentionCount: number;
|
|
570
600
|
slaBreachedCount: number;
|
|
@@ -580,13 +610,16 @@ export interface IAgentDashboardMetrics {
|
|
|
580
610
|
series: ITicketMetricPoint[];
|
|
581
611
|
changePercentage?: number;
|
|
582
612
|
};
|
|
613
|
+
slaCompliance: IAgentDashboardSlaCompliance[];
|
|
614
|
+
/** @deprecated Fixed SLA goals; use slaCompliance, which covers every defined metric. */
|
|
583
615
|
qualityGoals: {
|
|
584
616
|
firstResponseSla: IAgentDashboardQualityGoal;
|
|
585
617
|
resolutionSla: IAgentDashboardQualityGoal;
|
|
586
618
|
/** @deprecated Assignment is direct: nothing is accepted, so this rate has no source. */
|
|
587
619
|
assignmentAcceptanceRate: IAgentDashboardQualityGoal;
|
|
588
620
|
};
|
|
589
|
-
|
|
621
|
+
/** Absent until the satisfaction module exists: there is no CSAT source yet. */
|
|
622
|
+
csatScore?: IAgentDashboardQualityGoal;
|
|
590
623
|
warnings: string[];
|
|
591
624
|
}
|
|
592
625
|
/** A metric of the catalog, plus the dimensions a query MUST supply for it. */
|