@trii/types 2.10.782 → 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.
@@ -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;
@@ -570,7 +589,12 @@ export interface IAgentDashboardMetrics {
570
589
  * start of the oldest open response clock. Absent when awaitingResponseCount is 0.
571
590
  */
572
591
  oldestAwaitingResponseMinutes?: number;
573
- averageFirstResponseMinutes: 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;
574
598
  averageResolutionMinutes: number;
575
599
  slaAttentionCount: number;
576
600
  slaBreachedCount: number;
@@ -586,13 +610,16 @@ export interface IAgentDashboardMetrics {
586
610
  series: ITicketMetricPoint[];
587
611
  changePercentage?: number;
588
612
  };
613
+ slaCompliance: IAgentDashboardSlaCompliance[];
614
+ /** @deprecated Fixed SLA goals; use slaCompliance, which covers every defined metric. */
589
615
  qualityGoals: {
590
616
  firstResponseSla: IAgentDashboardQualityGoal;
591
617
  resolutionSla: IAgentDashboardQualityGoal;
592
618
  /** @deprecated Assignment is direct: nothing is accepted, so this rate has no source. */
593
619
  assignmentAcceptanceRate: IAgentDashboardQualityGoal;
594
620
  };
595
- csatScore: IAgentDashboardQualityGoal;
621
+ /** Absent until the satisfaction module exists: there is no CSAT source yet. */
622
+ csatScore?: IAgentDashboardQualityGoal;
596
623
  warnings: string[];
597
624
  }
598
625
  /** A metric of the catalog, plus the dimensions a query MUST supply for it. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.782",
3
+ "version": "2.10.783",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",