@trii/types 2.11.1 → 2.11.3

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.
@@ -87,6 +87,16 @@ export interface ITicketTaskSummary {
87
87
  overdue: number;
88
88
  requiredIncomplete: number;
89
89
  }
90
+ /**
91
+ * Tasks of a ticket assigned to the REQUESTING user (per-request projection of ticket searches and GET /tickets/{id}).
92
+ * `pending` counts every task not COMPLETED nor CANCELLED; cancelled tasks are not counted.
93
+ * `overdue` is the part of `pending` whose `dueAt` already passed. Optional: older API versions do not send it.
94
+ */
95
+ export interface ITicketAssignedTaskSummary {
96
+ pending: number;
97
+ completed: number;
98
+ overdue?: number;
99
+ }
90
100
  export interface ICreateTicketTaskDto {
91
101
  expectedTicketVersion: number;
92
102
  parentTaskId?: string;
@@ -4,7 +4,7 @@ import { ITicketFormSubmissionReference, TicketActivityType } from "./Workflow";
4
4
  import { ITicketSlaState } from "./Sla";
5
5
  import { ITicketSecurityState } from "./Security";
6
6
  import { ITicketApprovalSummary } from "./Approval";
7
- import { ITicketTaskSummary } from "./Task";
7
+ import { ITicketAssignedTaskSummary, ITicketTaskSummary } from "./Task";
8
8
  import { ITicketConversationReference, TicketMessageActorType } from "./Conversation";
9
9
  import { ITicketRoutingState } from "./Routing";
10
10
  import { ITicketAISummary } from "./AI";
@@ -70,6 +70,11 @@ export interface ITicket {
70
70
  security?: ITicketSecurityState;
71
71
  approvalSummary?: ITicketApprovalSummary;
72
72
  taskSummary?: ITicketTaskSummary;
73
+ /**
74
+ * Tasks assigned to the requesting user. Sent by searches and GET /tickets/{id} (zeros when the
75
+ * user has none); absent on mutation responses, where it means "unknown", not "none".
76
+ */
77
+ assignedTaskSummary?: ITicketAssignedTaskSummary;
73
78
  resolution?: ITicketResolution;
74
79
  formSubmissions?: ITicketFormSubmissionReference[];
75
80
  reopenedAt?: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.11.1",
3
+ "version": "2.11.3",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",