@trii/types 2.10.782 → 2.10.784
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 +33 -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,28 @@ export interface IAgentDashboardCapacity {
|
|
|
545
545
|
waitingCustomer: number;
|
|
546
546
|
new: number;
|
|
547
547
|
}
|
|
548
|
+
/**
|
|
549
|
+
* Compliance of one SLA metric for one commitment type over the agent's clocks decided
|
|
550
|
+
* in the period: met when completed on time, breached when it went past due. The customer
|
|
551
|
+
* SLA (root policy targets or SLA-type commitments) is always listed per enabled metric
|
|
552
|
+
* definition; OLA/UC entries appear only when they have decided clocks. Legacy metric
|
|
553
|
+
* types (no definition) appear when they have decided clocks.
|
|
554
|
+
*/
|
|
555
|
+
export interface IAgentDashboardSlaCompliance {
|
|
556
|
+
/** Absent for legacy clocks that have no metric definition. */
|
|
557
|
+
metricDefinitionId?: string;
|
|
558
|
+
metricType: SlaMetricType;
|
|
559
|
+
/** Which commitment the clocks belong to: SLA (customer), OLA or UC. */
|
|
560
|
+
commitmentType: ServiceCommitmentType;
|
|
561
|
+
/** Definition code, or the metric type for legacy clocks. */
|
|
562
|
+
code: string;
|
|
563
|
+
/** Definition name; absent for legacy clocks (label them by metricType). */
|
|
564
|
+
name?: string;
|
|
565
|
+
met: number;
|
|
566
|
+
breached: number;
|
|
567
|
+
/** met / (met + breached) * 100, one decimal. Absent when no clock was decided in the period. */
|
|
568
|
+
actual?: number;
|
|
569
|
+
}
|
|
548
570
|
export interface IAgentDashboardQualityGoal {
|
|
549
571
|
actual: number;
|
|
550
572
|
target: number;
|
|
@@ -570,7 +592,12 @@ export interface IAgentDashboardMetrics {
|
|
|
570
592
|
* start of the oldest open response clock. Absent when awaitingResponseCount is 0.
|
|
571
593
|
*/
|
|
572
594
|
oldestAwaitingResponseMinutes?: number;
|
|
573
|
-
|
|
595
|
+
/**
|
|
596
|
+
* Average of the agent's FIRST_RESPONSE clocks (root policy) met or breached in the
|
|
597
|
+
* period, in clock minutes (business hours and pauses already discounted).
|
|
598
|
+
* Absent when no first-response clock was decided in the period.
|
|
599
|
+
*/
|
|
600
|
+
averageFirstResponseMinutes?: number;
|
|
574
601
|
averageResolutionMinutes: number;
|
|
575
602
|
slaAttentionCount: number;
|
|
576
603
|
slaBreachedCount: number;
|
|
@@ -586,13 +613,16 @@ export interface IAgentDashboardMetrics {
|
|
|
586
613
|
series: ITicketMetricPoint[];
|
|
587
614
|
changePercentage?: number;
|
|
588
615
|
};
|
|
616
|
+
slaCompliance: IAgentDashboardSlaCompliance[];
|
|
617
|
+
/** @deprecated Fixed SLA goals; use slaCompliance, which covers every defined metric. */
|
|
589
618
|
qualityGoals: {
|
|
590
619
|
firstResponseSla: IAgentDashboardQualityGoal;
|
|
591
620
|
resolutionSla: IAgentDashboardQualityGoal;
|
|
592
621
|
/** @deprecated Assignment is direct: nothing is accepted, so this rate has no source. */
|
|
593
622
|
assignmentAcceptanceRate: IAgentDashboardQualityGoal;
|
|
594
623
|
};
|
|
595
|
-
|
|
624
|
+
/** Absent until the satisfaction module exists: there is no CSAT source yet. */
|
|
625
|
+
csatScore?: IAgentDashboardQualityGoal;
|
|
596
626
|
warnings: string[];
|
|
597
627
|
}
|
|
598
628
|
/** A metric of the catalog, plus the dimensions a query MUST supply for it. */
|