@trii/types 2.10.708 → 2.10.710

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.
Files changed (114) hide show
  1. package/dist/Automations/Events/Event.d.ts +3 -3
  2. package/dist/Common/Channels/Email.d.ts +1 -0
  3. package/dist/Common/Channels/Facebook.d.ts +1 -0
  4. package/dist/Common/Channels/Form.d.ts +1 -0
  5. package/dist/Common/Channels/GoogleBusiness.d.ts +1 -0
  6. package/dist/Common/Channels/Instagram.d.ts +1 -0
  7. package/dist/Common/Channels/MercadoLibre.d.ts +1 -0
  8. package/dist/Common/Channels/WebChat.d.ts +1 -0
  9. package/dist/Common/index.js +17 -7
  10. package/dist/Contacts/CommunicationEndpoint.d.ts +107 -0
  11. package/dist/Contacts/CommunicationEndpoint.js +39 -0
  12. package/dist/Contacts/CommunicationMethod.d.ts +9 -0
  13. package/dist/Contacts/index.d.ts +2 -0
  14. package/dist/Contacts/index.js +2 -0
  15. package/dist/Conversations/Conversation.d.ts +8 -8
  16. package/dist/Conversations/DashBoard/dashboardForms.d.ts +44 -0
  17. package/dist/Conversations/DashBoard/dashboardForms.js +24 -0
  18. package/dist/Conversations/InboxCounters.d.ts +18 -0
  19. package/dist/Conversations/InboxMongo.d.ts +12 -12
  20. package/dist/Conversations/Routing.d.ts +10 -10
  21. package/dist/Conversations/index.js +17 -7
  22. package/dist/Tickets/Sla.d.ts +51 -0
  23. package/dist/index.d.ts +23 -23
  24. package/dist/index.js +59 -49
  25. package/dist/src/Common/Channels/Channel.d.ts +1 -28
  26. package/dist/src/Contacts/contacts.d.ts +2 -2
  27. package/dist/src/Conversations/Conversation.d.ts +48 -331
  28. package/dist/src/Conversations/Conversation.js +34 -14
  29. package/dist/src/Conversations/DashBoard/dashboard.d.ts +2 -2
  30. package/dist/src/Conversations/DashBoard/dashboardForms.d.ts +44 -0
  31. package/dist/src/Conversations/DashBoard/dashboardForms.js +24 -0
  32. package/dist/src/Conversations/Flows/Workflows/Workflow.d.ts +123 -280
  33. package/dist/src/Conversations/Flows/Workflows/Workflow.js +35 -85
  34. package/dist/src/Conversations/Groups/Group.d.ts +8 -2
  35. package/dist/src/Conversations/Groups/Group.js +6 -0
  36. package/dist/src/Conversations/Label.d.ts +1 -1
  37. package/dist/src/Conversations/WebHook.d.ts +1 -1
  38. package/dist/src/Conversations/index.d.ts +1 -9
  39. package/dist/src/Conversations/index.js +1 -9
  40. package/dist/src/Tickets/Category.d.ts +0 -18
  41. package/dist/src/Tickets/Dashboard.d.ts +0 -78
  42. package/dist/src/Tickets/Dashboard.js +1 -13
  43. package/dist/src/Tickets/Fields.d.ts +0 -1
  44. package/dist/src/Tickets/Layouts.d.ts +1 -3
  45. package/dist/src/Tickets/Workflow.d.ts +0 -20
  46. package/dist/src/Users/UserTrii.d.ts +0 -10
  47. package/dist/src/Users/UserTrii.js +1 -8
  48. package/dist/src/index.d.ts +0 -3
  49. package/dist/src/index.js +1 -4
  50. package/package.json +2 -5
  51. package/dist/src/Automations/Capabilities/Capability.d.ts +0 -81
  52. package/dist/src/Automations/Capabilities/Capability.js +0 -23
  53. package/dist/src/Automations/Capabilities/index.d.ts +0 -1
  54. package/dist/src/Automations/Capabilities/index.js +0 -17
  55. package/dist/src/Automations/Common.d.ts +0 -94
  56. package/dist/src/Automations/Common.js +0 -40
  57. package/dist/src/Automations/Events/Event.d.ts +0 -69
  58. package/dist/src/Automations/Events/Event.js +0 -14
  59. package/dist/src/Automations/Events/index.d.ts +0 -1
  60. package/dist/src/Automations/Events/index.js +0 -17
  61. package/dist/src/Automations/Executions/Execution.d.ts +0 -254
  62. package/dist/src/Automations/Executions/Execution.js +0 -62
  63. package/dist/src/Automations/Executions/Testing.d.ts +0 -166
  64. package/dist/src/Automations/Executions/Testing.js +0 -54
  65. package/dist/src/Automations/Executions/index.d.ts +0 -2
  66. package/dist/src/Automations/Executions/index.js +0 -18
  67. package/dist/src/Automations/Flows/Canvas.d.ts +0 -103
  68. package/dist/src/Automations/Flows/Canvas.js +0 -38
  69. package/dist/src/Automations/Flows/Flow.d.ts +0 -147
  70. package/dist/src/Automations/Flows/Flow.js +0 -58
  71. package/dist/src/Automations/Flows/Requests.d.ts +0 -71
  72. package/dist/src/Automations/Flows/Validation.d.ts +0 -28
  73. package/dist/src/Automations/Flows/Validation.js +0 -9
  74. package/dist/src/Automations/Flows/index.d.ts +0 -4
  75. package/dist/src/Automations/Flows/index.js +0 -20
  76. package/dist/src/Automations/Nodes/Node.d.ts +0 -113
  77. package/dist/src/Automations/Nodes/Node.js +0 -27
  78. package/dist/src/Automations/Nodes/index.d.ts +0 -1
  79. package/dist/src/Automations/Nodes/index.js +0 -17
  80. package/dist/src/Automations/index.d.ts +0 -6
  81. package/dist/src/Automations/index.js +0 -22
  82. package/dist/src/Chats/Chat.d.ts +0 -61
  83. package/dist/src/Chats/Chat.js +0 -28
  84. package/dist/src/Conversations/Assignment.d.ts +0 -81
  85. package/dist/src/Conversations/Assignment.js +0 -4
  86. package/dist/src/Conversations/InboxMongo.d.ts +0 -154
  87. package/dist/src/Conversations/InboxMongo.js +0 -128
  88. package/dist/src/Conversations/InboxProjection.d.ts +0 -162
  89. package/dist/src/Conversations/Outbox.d.ts +0 -24
  90. package/dist/src/Conversations/Outbox.js +0 -4
  91. package/dist/src/Conversations/Queue.d.ts +0 -107
  92. package/dist/src/Conversations/Queue.js +0 -4
  93. package/dist/src/Conversations/Routing.d.ts +0 -164
  94. package/dist/src/Conversations/Routing.js +0 -2
  95. package/dist/src/Conversations/Sla.d.ts +0 -227
  96. package/dist/src/Conversations/Sla.js +0 -6
  97. package/dist/src/Conversations/Transfer.d.ts +0 -73
  98. package/dist/src/Conversations/Transfer.js +0 -2
  99. package/dist/src/Forms/API.d.ts +0 -53
  100. package/dist/src/Forms/API.js +0 -2
  101. package/dist/src/Forms/SubmittedForm.d.ts +0 -56
  102. package/dist/src/Forms/SubmittedForm.js +0 -9
  103. package/dist/src/Forms/index.d.ts +0 -2
  104. package/dist/src/Forms/index.js +0 -18
  105. package/dist/src/Presence/AgentPause.d.ts +0 -24
  106. package/dist/src/Presence/AgentPause.js +0 -19
  107. package/dist/src/Presence/QueueParticipation.d.ts +0 -17
  108. package/dist/src/Presence/QueueParticipation.js +0 -2
  109. package/dist/src/Presence/QueueRoutingState.d.ts +0 -27
  110. package/dist/src/Presence/QueueRoutingState.js +0 -9
  111. package/dist/src/Presence/index.d.ts +0 -3
  112. package/dist/src/Presence/index.js +0 -19
  113. /package/dist/{src/Automations/Flows/Requests.js → Contacts/CommunicationMethod.js} +0 -0
  114. /package/dist/{src/Conversations/InboxProjection.js → Conversations/InboxCounters.js} +0 -0
@@ -1,93 +1,43 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WorkflowStatus = exports.FlowTrigger = exports.TranscriptionPersistenceStatus = exports.AudioTranscriptionStatus = exports.ExecutionMessageContentType = exports.ExecutionMessageDeliveryStatus = exports.ExecutionMessageDirection = exports.LlmOutputType = exports.ExecutionStatus = exports.ExecutionOperationType = void 0;
4
- var ExecutionOperationType;
5
- (function (ExecutionOperationType) {
6
- ExecutionOperationType["Node"] = "Node";
7
- ExecutionOperationType["Agent"] = "Agent";
8
- ExecutionOperationType["Worker"] = "Worker";
9
- ExecutionOperationType["LlmCall"] = "LlmCall";
10
- ExecutionOperationType["ToolCall"] = "ToolCall";
11
- ExecutionOperationType["Handoff"] = "Handoff";
12
- ExecutionOperationType["MessageReceived"] = "MessageReceived";
13
- ExecutionOperationType["MessageSent"] = "MessageSent";
14
- })(ExecutionOperationType || (exports.ExecutionOperationType = ExecutionOperationType = {}));
15
- var ExecutionStatus;
16
- (function (ExecutionStatus) {
17
- ExecutionStatus["Queued"] = "Queued";
18
- ExecutionStatus["Running"] = "Running";
19
- ExecutionStatus["Waiting"] = "Waiting";
20
- ExecutionStatus["Completed"] = "Completed";
21
- ExecutionStatus["Incomplete"] = "Incomplete";
22
- ExecutionStatus["Failed"] = "Failed";
23
- ExecutionStatus["Cancelled"] = "Cancelled";
24
- ExecutionStatus["TimedOut"] = "TimedOut";
25
- ExecutionStatus["Skipped"] = "Skipped";
26
- })(ExecutionStatus || (exports.ExecutionStatus = ExecutionStatus = {}));
27
- var LlmOutputType;
28
- (function (LlmOutputType) {
29
- LlmOutputType["Text"] = "Text";
30
- LlmOutputType["ToolCall"] = "ToolCall";
31
- LlmOutputType["Refusal"] = "Refusal";
32
- LlmOutputType["Image"] = "Image";
33
- LlmOutputType["Audio"] = "Audio";
34
- LlmOutputType["File"] = "File";
35
- LlmOutputType["Unknown"] = "Unknown";
36
- })(LlmOutputType || (exports.LlmOutputType = LlmOutputType = {}));
37
- var ExecutionMessageDirection;
38
- (function (ExecutionMessageDirection) {
39
- ExecutionMessageDirection["Unknown"] = "Unknown";
40
- ExecutionMessageDirection["Incoming"] = "Incoming";
41
- ExecutionMessageDirection["Outgoing"] = "Outgoing";
42
- })(ExecutionMessageDirection || (exports.ExecutionMessageDirection = ExecutionMessageDirection = {}));
43
- var ExecutionMessageDeliveryStatus;
44
- (function (ExecutionMessageDeliveryStatus) {
45
- ExecutionMessageDeliveryStatus["Unknown"] = "Unknown";
46
- ExecutionMessageDeliveryStatus["Received"] = "Received";
47
- ExecutionMessageDeliveryStatus["Queued"] = "Queued";
48
- ExecutionMessageDeliveryStatus["Sent"] = "Sent";
49
- ExecutionMessageDeliveryStatus["Delivered"] = "Delivered";
50
- ExecutionMessageDeliveryStatus["Read"] = "Read";
51
- ExecutionMessageDeliveryStatus["Failed"] = "Failed";
52
- })(ExecutionMessageDeliveryStatus || (exports.ExecutionMessageDeliveryStatus = ExecutionMessageDeliveryStatus = {}));
53
- var ExecutionMessageContentType;
54
- (function (ExecutionMessageContentType) {
55
- ExecutionMessageContentType["Text"] = "Text";
56
- ExecutionMessageContentType["Image"] = "Image";
57
- ExecutionMessageContentType["Audio"] = "Audio";
58
- ExecutionMessageContentType["Video"] = "Video";
59
- ExecutionMessageContentType["Document"] = "Document";
60
- ExecutionMessageContentType["Location"] = "Location";
61
- ExecutionMessageContentType["Contact"] = "Contact";
62
- ExecutionMessageContentType["Template"] = "Template";
63
- ExecutionMessageContentType["Interactive"] = "Interactive";
64
- })(ExecutionMessageContentType || (exports.ExecutionMessageContentType = ExecutionMessageContentType = {}));
65
- var AudioTranscriptionStatus;
66
- (function (AudioTranscriptionStatus) {
67
- AudioTranscriptionStatus["Pending"] = "Pending";
68
- AudioTranscriptionStatus["Processing"] = "Processing";
69
- AudioTranscriptionStatus["Completed"] = "Completed";
70
- AudioTranscriptionStatus["Failed"] = "Failed";
71
- })(AudioTranscriptionStatus || (exports.AudioTranscriptionStatus = AudioTranscriptionStatus = {}));
72
- var TranscriptionPersistenceStatus;
73
- (function (TranscriptionPersistenceStatus) {
74
- TranscriptionPersistenceStatus["Pending"] = "Pending";
75
- TranscriptionPersistenceStatus["Persisted"] = "Persisted";
76
- TranscriptionPersistenceStatus["Failed"] = "Failed";
77
- })(TranscriptionPersistenceStatus || (exports.TranscriptionPersistenceStatus = TranscriptionPersistenceStatus = {}));
3
+ exports.WorkflowStatus = exports.MessageType = exports.FlowTrigger = exports.DisplayPanel = exports.NodeStatus = void 0;
4
+ var NodeStatus;
5
+ (function (NodeStatus) {
6
+ NodeStatus[NodeStatus["QUEUED"] = 0] = "QUEUED";
7
+ NodeStatus[NodeStatus["ERROR"] = 1] = "ERROR";
8
+ NodeStatus[NodeStatus["RUNNING"] = 10] = "RUNNING";
9
+ NodeStatus[NodeStatus["WAITING"] = 15] = "WAITING";
10
+ NodeStatus[NodeStatus["SKIPPED"] = 16] = "SKIPPED";
11
+ NodeStatus[NodeStatus["COMPLETED"] = 20] = "COMPLETED";
12
+ })(NodeStatus || (exports.NodeStatus = NodeStatus = {}));
13
+ var DisplayPanel;
14
+ (function (DisplayPanel) {
15
+ DisplayPanel[DisplayPanel["Right"] = 0] = "Right";
16
+ DisplayPanel[DisplayPanel["Center"] = 1] = "Center";
17
+ DisplayPanel[DisplayPanel["Left"] = 2] = "Left";
18
+ })(DisplayPanel || (exports.DisplayPanel = DisplayPanel = {}));
78
19
  var FlowTrigger;
79
20
  (function (FlowTrigger) {
80
- FlowTrigger["Message"] = "Message";
81
- FlowTrigger["ConversationOpened"] = "ConversationOpened";
82
- FlowTrigger["ConversationClosed"] = "ConversationClosed";
83
- FlowTrigger["ContactTagUpdated"] = "ContactTagUpdated";
84
- FlowTrigger["ContactFieldUpdated"] = "ContactFieldUpdated";
85
- FlowTrigger["ContactFieldDates"] = "ContactFieldDates";
86
- FlowTrigger["ContactEventDate"] = "ContactEventDate";
87
- FlowTrigger["Manual"] = "Manual";
88
- FlowTrigger["Retry"] = "Retry";
89
- FlowTrigger["Api"] = "Api";
21
+ FlowTrigger[FlowTrigger["Message"] = 0] = "Message";
22
+ FlowTrigger[FlowTrigger["ConversationOpened"] = 10] = "ConversationOpened";
23
+ FlowTrigger[FlowTrigger["ConversationClosed"] = 11] = "ConversationClosed";
24
+ FlowTrigger[FlowTrigger["ContactTagUpdated"] = 20] = "ContactTagUpdated";
25
+ FlowTrigger[FlowTrigger["ContactFieldUpdated"] = 21] = "ContactFieldUpdated";
26
+ FlowTrigger[FlowTrigger["ContactFieldDates"] = 22] = "ContactFieldDates";
27
+ FlowTrigger[FlowTrigger["ContactEventDate"] = 23] = "ContactEventDate";
28
+ FlowTrigger[FlowTrigger["Manual"] = 90] = "Manual";
29
+ FlowTrigger[FlowTrigger["Retry"] = 91] = "Retry";
30
+ FlowTrigger[FlowTrigger["Api"] = 92] = "Api";
90
31
  })(FlowTrigger || (exports.FlowTrigger = FlowTrigger = {}));
32
+ var MessageType;
33
+ (function (MessageType) {
34
+ MessageType[MessageType["Text"] = 0] = "Text";
35
+ MessageType[MessageType["Image"] = 1] = "Image";
36
+ MessageType[MessageType["File"] = 2] = "File";
37
+ MessageType[MessageType["Audio"] = 3] = "Audio";
38
+ MessageType[MessageType["Tool"] = 4] = "Tool";
39
+ MessageType[MessageType["Handoff"] = 5] = "Handoff";
40
+ })(MessageType || (exports.MessageType = MessageType = {}));
91
41
  var WorkflowStatus;
92
42
  (function (WorkflowStatus) {
93
43
  WorkflowStatus[WorkflowStatus["NONE"] = 0] = "NONE";
@@ -1,17 +1,23 @@
1
1
  import { UserInfo } from "../../Users/UserTrii";
2
- export interface IGroup {
2
+ interface IGroup {
3
3
  id?: string | null;
4
4
  spaceId?: string | null;
5
5
  name?: string | null;
6
6
  color?: string | null;
7
7
  description?: string | null;
8
8
  users: UserInfo[];
9
+ distributionMethod: Group_DistributionMethod;
9
10
  createdAt?: string | null;
10
11
  updatedAt?: string | null;
11
12
  deletedAt?: string | null;
12
13
  }
13
- export interface GroupInfo {
14
+ interface GroupInfo {
14
15
  id?: string | null;
15
16
  name?: string | null;
16
17
  color?: string | null;
17
18
  }
19
+ declare enum Group_DistributionMethod {
20
+ All = 0,
21
+ FIFO = 1
22
+ }
23
+ export { IGroup, GroupInfo, Group_DistributionMethod };
@@ -1,2 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Group_DistributionMethod = void 0;
4
+ var Group_DistributionMethod;
5
+ (function (Group_DistributionMethod) {
6
+ Group_DistributionMethod[Group_DistributionMethod["All"] = 0] = "All";
7
+ Group_DistributionMethod[Group_DistributionMethod["FIFO"] = 1] = "FIFO";
8
+ })(Group_DistributionMethod || (exports.Group_DistributionMethod = Group_DistributionMethod = {}));
@@ -1,6 +1,6 @@
1
1
  interface ILabel {
2
2
  id?: string | null;
3
- spaceId?: string | null;
3
+ tenantId?: string | null;
4
4
  name?: string | null;
5
5
  color?: string | null;
6
6
  createdAt?: string | null;
@@ -5,7 +5,7 @@ import { AuthType } from '../Common/API/AuthType';
5
5
  import { Method } from '../Common/API/Method';
6
6
  interface IWebhook {
7
7
  id?: string | null;
8
- spaceId?: string | null;
8
+ tenantId?: string | null;
9
9
  name?: string | null;
10
10
  apiUrl?: string | null;
11
11
  apiMethod?: Method | null;
@@ -1,21 +1,13 @@
1
1
  export * as Flows from './Flows/index';
2
2
  export * as Groups from './Groups/Group';
3
- export * from './Assignment';
4
3
  export * from './Conversation';
5
- export * from './InboxMongo';
6
- export * from './InboxProjection';
7
- export * from './Outbox';
8
4
  export * from './Ending';
9
5
  export * from './Label';
10
6
  export * from './WebHook';
11
7
  export * from './SocialWalls';
12
8
  export * from './QuickResponse';
13
9
  export * from './DashBoard/dashboard';
14
- export * from '../Forms/API';
10
+ export * from './DashBoard/dashboardForms';
15
11
  export * from './DashBoard/dashboardChannels';
16
12
  export * from './DashBoard/dashboardMessages';
17
13
  export * from './Survey';
18
- export * from './Queue';
19
- export * from './Routing';
20
- export * from './Sla';
21
- export * from './Transfer';
@@ -39,22 +39,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.Groups = exports.Flows = void 0;
40
40
  exports.Flows = __importStar(require("./Flows/index"));
41
41
  exports.Groups = __importStar(require("./Groups/Group"));
42
- __exportStar(require("./Assignment"), exports);
43
42
  __exportStar(require("./Conversation"), exports);
44
- __exportStar(require("./InboxMongo"), exports);
45
- __exportStar(require("./InboxProjection"), exports);
46
- __exportStar(require("./Outbox"), exports);
47
43
  __exportStar(require("./Ending"), exports);
48
44
  __exportStar(require("./Label"), exports);
49
45
  __exportStar(require("./WebHook"), exports);
50
46
  __exportStar(require("./SocialWalls"), exports);
51
47
  __exportStar(require("./QuickResponse"), exports);
52
48
  __exportStar(require("./DashBoard/dashboard"), exports);
53
- __exportStar(require("../Forms/API"), exports);
49
+ __exportStar(require("./DashBoard/dashboardForms"), exports);
54
50
  __exportStar(require("./DashBoard/dashboardChannels"), exports);
55
51
  __exportStar(require("./DashBoard/dashboardMessages"), exports);
56
52
  __exportStar(require("./Survey"), exports);
57
- __exportStar(require("./Queue"), exports);
58
- __exportStar(require("./Routing"), exports);
59
- __exportStar(require("./Sla"), exports);
60
- __exportStar(require("./Transfer"), exports);
@@ -51,21 +51,3 @@ export interface IUpdateTicketCategoryDto {
51
51
  fieldDefinitionIds?: string[] | null;
52
52
  layoutIds?: string[] | null;
53
53
  }
54
- export interface ICreateTicketResolutionTypeDto {
55
- name: string;
56
- description?: string;
57
- enabled?: boolean;
58
- order?: number;
59
- formRequirements?: ITicketFormRequirement[];
60
- fieldDefinitionIds?: string[];
61
- layoutIds?: string[];
62
- }
63
- export interface IUpdateTicketResolutionTypeDto {
64
- name?: string;
65
- description?: string | null;
66
- enabled?: boolean;
67
- order?: number;
68
- formRequirements?: ITicketFormRequirement[] | null;
69
- fieldDefinitionIds?: string[] | null;
70
- layoutIds?: string[] | null;
71
- }
@@ -193,17 +193,6 @@ export declare enum TicketMetricCode {
193
193
  SECURITY_DENIAL_COUNT = "SECURITY_DENIAL_COUNT",
194
194
  PII_ACCESS_COUNT = "PII_ACCESS_COUNT"
195
195
  }
196
- export declare enum DashboardIcon {
197
- DASHBOARD = "DASHBOARD",
198
- HOME = "HOME",
199
- SUPPORT = "SUPPORT",
200
- ANALYTICS = "ANALYTICS",
201
- REPORTS = "REPORTS",
202
- USERS = "USERS",
203
- SETTINGS = "SETTINGS",
204
- FAVORITES = "FAVORITES",
205
- QUICK_ACTIONS = "QUICK_ACTIONS"
206
- }
207
196
  export interface ITicketAnalyticsFilter extends ITicketFilter {
208
197
  range: ITicketDateRange;
209
198
  channelTypes?: ChannelType[];
@@ -229,7 +218,6 @@ export interface ITicketMetricDefinition {
229
218
  supportsPercentile?: boolean;
230
219
  supportsRealTime?: boolean;
231
220
  higherIsBetter?: boolean;
232
- supportedFilters: (keyof Omit<ITicketAnalyticsFilter, 'range'>)[];
233
221
  }
234
222
  export interface ITicketMetricQuery {
235
223
  metric: TicketMetricCode;
@@ -330,43 +318,11 @@ export interface ITicketDashboard {
330
318
  refreshMode: TicketWidgetRefreshMode;
331
319
  refreshIntervalSeconds?: number;
332
320
  isDefault?: boolean;
333
- order: number;
334
- icon?: DashboardIcon;
335
321
  createdAt: Date;
336
322
  createdBy: string;
337
323
  updatedAt?: Date;
338
324
  updatedBy?: string;
339
325
  }
340
- export interface ICreateTicketDashboardDto {
341
- name: string;
342
- description?: string;
343
- audience: TicketAnalyticsAudience;
344
- visibility: TicketDashboardVisibility;
345
- sharedRoleIds?: string[];
346
- sharedGroupIds?: string[];
347
- defaultFilter?: ITicketAnalyticsFilter;
348
- widgets?: ITicketWidgetConfiguration[];
349
- refreshMode?: TicketWidgetRefreshMode;
350
- refreshIntervalSeconds?: number;
351
- order?: number;
352
- isDefault?: boolean;
353
- icon?: DashboardIcon;
354
- }
355
- export interface IUpdateTicketDashboardDto {
356
- name?: string;
357
- description?: string;
358
- audience?: TicketAnalyticsAudience;
359
- visibility?: TicketDashboardVisibility;
360
- sharedRoleIds?: string[];
361
- sharedGroupIds?: string[];
362
- defaultFilter?: ITicketAnalyticsFilter;
363
- widgets?: ITicketWidgetConfiguration[];
364
- refreshMode?: TicketWidgetRefreshMode;
365
- refreshIntervalSeconds?: number;
366
- order?: number;
367
- isDefault?: boolean;
368
- icon?: DashboardIcon;
369
- }
370
326
  export interface ITicketDashboardTemplate {
371
327
  id: string;
372
328
  spaceId: string;
@@ -376,20 +332,6 @@ export interface ITicketDashboardTemplate {
376
332
  widgets: ITicketWidgetConfiguration[];
377
333
  enabled: boolean;
378
334
  }
379
- export interface ICreateTicketDashboardTemplateDto {
380
- name: string;
381
- description?: string;
382
- audience: TicketAnalyticsAudience;
383
- widgets?: ITicketWidgetConfiguration[];
384
- enabled?: boolean;
385
- }
386
- export interface IUpdateTicketDashboardTemplateDto {
387
- name?: string;
388
- description?: string;
389
- audience?: TicketAnalyticsAudience;
390
- widgets?: ITicketWidgetConfiguration[];
391
- enabled?: boolean;
392
- }
393
335
  export interface ITicketDashboardSnapshot {
394
336
  id: string;
395
337
  dashboardId: string;
@@ -429,26 +371,6 @@ export interface ITicketAnalyticsGoal {
429
371
  ownerUserId?: string;
430
372
  createdAt: Date;
431
373
  }
432
- export interface ICreateTicketAnalyticsGoalDto {
433
- name: string;
434
- metric: TicketMetricCode;
435
- target: number;
436
- filter: ITicketAnalyticsFilter;
437
- validFrom: Date;
438
- validUntil?: Date;
439
- ownerGroupId?: string;
440
- ownerUserId?: string;
441
- }
442
- export interface IUpdateTicketAnalyticsGoalDto {
443
- name?: string;
444
- metric?: TicketMetricCode;
445
- target?: number;
446
- filter?: ITicketAnalyticsFilter;
447
- validFrom?: Date;
448
- validUntil?: Date;
449
- ownerGroupId?: string;
450
- ownerUserId?: string;
451
- }
452
374
  /** Reports freshness so users know whether a card is real-time, delayed or partial. */
453
375
  export interface ITicketAnalyticsFreshness {
454
376
  metric: TicketMetricCode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DashboardIcon = exports.TicketMetricCode = exports.TicketDrilldownTarget = exports.TicketWidgetRefreshMode = exports.TicketMetricFormat = exports.TicketComparisonMode = exports.TicketTimeGranularity = exports.TicketAnalyticsDimension = exports.TicketMetricAggregation = exports.TicketWidgetType = exports.TicketDashboardVisibility = exports.TicketAnalyticsAudience = void 0;
3
+ exports.TicketMetricCode = exports.TicketDrilldownTarget = exports.TicketWidgetRefreshMode = exports.TicketMetricFormat = exports.TicketComparisonMode = exports.TicketTimeGranularity = exports.TicketAnalyticsDimension = exports.TicketMetricAggregation = exports.TicketWidgetType = exports.TicketDashboardVisibility = exports.TicketAnalyticsAudience = void 0;
4
4
  var TicketAnalyticsAudience;
5
5
  (function (TicketAnalyticsAudience) {
6
6
  TicketAnalyticsAudience["AGENT"] = "AGENT";
@@ -204,15 +204,3 @@ var TicketMetricCode;
204
204
  TicketMetricCode["SECURITY_DENIAL_COUNT"] = "SECURITY_DENIAL_COUNT";
205
205
  TicketMetricCode["PII_ACCESS_COUNT"] = "PII_ACCESS_COUNT";
206
206
  })(TicketMetricCode || (exports.TicketMetricCode = TicketMetricCode = {}));
207
- var DashboardIcon;
208
- (function (DashboardIcon) {
209
- DashboardIcon["DASHBOARD"] = "DASHBOARD";
210
- DashboardIcon["HOME"] = "HOME";
211
- DashboardIcon["SUPPORT"] = "SUPPORT";
212
- DashboardIcon["ANALYTICS"] = "ANALYTICS";
213
- DashboardIcon["REPORTS"] = "REPORTS";
214
- DashboardIcon["USERS"] = "USERS";
215
- DashboardIcon["SETTINGS"] = "SETTINGS";
216
- DashboardIcon["FAVORITES"] = "FAVORITES";
217
- DashboardIcon["QUICK_ACTIONS"] = "QUICK_ACTIONS";
218
- })(DashboardIcon || (exports.DashboardIcon = DashboardIcon = {}));
@@ -90,7 +90,6 @@ export interface ITicketFieldDefinition extends ITicketAuditedEntity {
90
90
  objectFields?: ITicketObjectField[];
91
91
  validation?: ITicketFieldValidation;
92
92
  scopeType: TicketFieldScopeType;
93
- version: number;
94
93
  categoryIds?: string[];
95
94
  requestTypeIds?: string[];
96
95
  conditions?: ITicketFieldCondition[];
@@ -36,8 +36,6 @@ export interface ITicketLayoutSection {
36
36
  collapsedByDefault?: boolean;
37
37
  fields: ITicketLayoutField[];
38
38
  }
39
- export interface ITicketLayoutSectionDTO extends Omit<ITicketLayoutSection, 'id'> {
40
- }
41
39
  /** Controls presentation only; validation remains authoritative in ITicketFieldDefinition. */
42
40
  export interface ITicketLayout extends ITicketAuditedEntity {
43
41
  name: string;
@@ -58,7 +56,7 @@ export interface ICreateTicketLayoutDto {
58
56
  categoryIds?: string[];
59
57
  requestTypeIds?: string[];
60
58
  roleIds?: string[];
61
- sections: ITicketLayoutSectionDTO[];
59
+ sections: ITicketLayoutSection[];
62
60
  }
63
61
  export interface IUpdateTicketLayoutDto extends Partial<ICreateTicketLayoutDto> {
64
62
  enabled?: boolean;
@@ -11,13 +11,6 @@ export interface ITicketStatus extends ITicketAuditedEntity {
11
11
  isInitial: boolean;
12
12
  isFinal: boolean;
13
13
  enabled: boolean;
14
- version: number;
15
- }
16
- export interface ITicketStatusCreateDTO extends Omit<ITicketStatus, keyof ITicketAuditedEntity | 'enabled' | 'version'> {
17
- }
18
- export interface ITicketStatusUpdateDTO extends Partial<Omit<ITicketStatus, keyof ITicketAuditedEntity | 'version'>> {
19
- id: string;
20
- expectedVersion: number;
21
14
  }
22
15
  export declare enum TicketConditionOperator {
23
16
  EQUALS = "EQUALS",
@@ -57,27 +50,14 @@ export interface ITicketTransitionCondition {
57
50
  checklistItemId?: string;
58
51
  expectedValue?: TicketPropertyValue;
59
52
  }
60
- export interface ICreateTicketTransitionConditionDTO extends Omit<ITicketTransitionCondition, 'id'> {
61
- }
62
- export interface IUpdateTicketTransitionConditionDTO extends Partial<Omit<ITicketTransitionCondition, 'id'>> {
63
- id: string;
64
- }
65
53
  export interface ITicketTransition extends ITicketAuditedEntity {
66
54
  name?: string;
67
55
  fromStatusId: string;
68
56
  toStatusId: string;
69
57
  enabled: boolean;
70
- version: number;
71
58
  allowedRoleIds?: string[];
72
59
  conditions: ITicketTransitionCondition[];
73
60
  }
74
- export interface ICreateTicketTransitionDTO extends Omit<ITicketTransition, keyof ITicketAuditedEntity | 'version' | 'conditions'> {
75
- conditions: ICreateTicketTransitionConditionDTO[];
76
- }
77
- export interface IUpdateTicketTransitionDTO extends Partial<Omit<ITicketTransition, keyof ITicketAuditedEntity | 'version'>> {
78
- id: string;
79
- expectedVersion: number;
80
- }
81
61
  export declare enum TicketActivityType {
82
62
  CREATED = "CREATED",
83
63
  UPDATED = "UPDATED",
@@ -1,6 +1,5 @@
1
1
  import UserType from './UserType';
2
2
  import { UserProfile, UserRole } from './UserProfile';
3
- import { PauseReason } from '../Presence/AgentPause';
4
3
  export interface UserInfo {
5
4
  id: string;
6
5
  name: string;
@@ -63,9 +62,6 @@ export interface UserTrii {
63
62
  userType: UserType;
64
63
  verifiedAccount: boolean;
65
64
  status: UserStatus;
66
- availability: AvailabilityStatus;
67
- currentPauseReason?: PauseReason;
68
- currentPauseSince?: Date;
69
65
  firstname: string;
70
66
  lastname: string;
71
67
  display_name: string;
@@ -94,12 +90,6 @@ export interface UserTrii {
94
90
  socialLinkedinID: string;
95
91
  socialTwitterID: string;
96
92
  }
97
- export declare enum AvailabilityStatus {
98
- AVAILABLE = 0,
99
- AWAY = 1,
100
- DO_NOT_DISTURB = 2,
101
- OFFLINE = 3
102
- }
103
93
  export interface NotificationConfig {
104
94
  volume: NotificationVolumeLevel;
105
95
  sound: NotificationSound;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AvailabilityStatus = exports.UserStatus = void 0;
3
+ exports.UserStatus = void 0;
4
4
  var UserStatus;
5
5
  (function (UserStatus) {
6
6
  UserStatus[UserStatus["OFFLINE"] = 0] = "OFFLINE";
@@ -8,10 +8,3 @@ var UserStatus;
8
8
  UserStatus[UserStatus["AWAY"] = 2] = "AWAY";
9
9
  UserStatus[UserStatus["BUSY"] = 3] = "BUSY";
10
10
  })(UserStatus || (exports.UserStatus = UserStatus = {}));
11
- var AvailabilityStatus;
12
- (function (AvailabilityStatus) {
13
- AvailabilityStatus[AvailabilityStatus["AVAILABLE"] = 0] = "AVAILABLE";
14
- AvailabilityStatus[AvailabilityStatus["AWAY"] = 1] = "AWAY";
15
- AvailabilityStatus[AvailabilityStatus["DO_NOT_DISTURB"] = 2] = "DO_NOT_DISTURB";
16
- AvailabilityStatus[AvailabilityStatus["OFFLINE"] = 3] = "OFFLINE";
17
- })(AvailabilityStatus || (exports.AvailabilityStatus = AvailabilityStatus = {}));
@@ -12,12 +12,9 @@ export * as Tickets from './Tickets/index';
12
12
  export * as Sales from './Sales/index';
13
13
  export * as Collections from './Collections/index';
14
14
  export * as Users from './Users/index';
15
- export * as Presence from './Presence/index';
16
15
  export * as ApiResponses from './ApiResponses/index';
17
16
  export * as EventsQueue from './Common/EventsQueue/index';
18
17
  export * as APIKeys from './PublicAPI/apiKey';
19
18
  export * as AI from './AI/index';
20
19
  export * as Shop from './Shop/index';
21
20
  export * as APIResponses from './ApiResponses/index';
22
- export * as Forms from './Forms/index';
23
- export * as Automations from './Automations/index';
package/dist/src/index.js CHANGED
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.Automations = exports.Forms = exports.APIResponses = exports.Shop = exports.AI = exports.APIKeys = exports.EventsQueue = exports.ApiResponses = exports.Presence = exports.Users = exports.Collections = exports.Sales = exports.Tickets = exports.Spaces = exports.Reports = exports.Security = exports.Calls = exports.Conversations = exports.Calendar = exports.Contacts = exports.Common = exports.AuditLogs = exports.Accounts = void 0;
36
+ exports.APIResponses = exports.Shop = exports.AI = exports.APIKeys = exports.EventsQueue = exports.ApiResponses = exports.Users = exports.Collections = exports.Sales = exports.Tickets = exports.Spaces = exports.Reports = exports.Security = exports.Calls = exports.Conversations = exports.Calendar = exports.Contacts = exports.Common = exports.AuditLogs = exports.Accounts = void 0;
37
37
  exports.Accounts = __importStar(require("./Accounts/index"));
38
38
  exports.AuditLogs = __importStar(require("./AuditLogs/index"));
39
39
  exports.Common = __importStar(require("./Common/index"));
@@ -48,12 +48,9 @@ exports.Tickets = __importStar(require("./Tickets/index"));
48
48
  exports.Sales = __importStar(require("./Sales/index"));
49
49
  exports.Collections = __importStar(require("./Collections/index"));
50
50
  exports.Users = __importStar(require("./Users/index"));
51
- exports.Presence = __importStar(require("./Presence/index"));
52
51
  exports.ApiResponses = __importStar(require("./ApiResponses/index"));
53
52
  exports.EventsQueue = __importStar(require("./Common/EventsQueue/index"));
54
53
  exports.APIKeys = __importStar(require("./PublicAPI/apiKey"));
55
54
  exports.AI = __importStar(require("./AI/index"));
56
55
  exports.Shop = __importStar(require("./Shop/index"));
57
56
  exports.APIResponses = __importStar(require("./ApiResponses/index"));
58
- exports.Forms = __importStar(require("./Forms/index"));
59
- exports.Automations = __importStar(require("./Automations/index"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.708",
3
+ "version": "2.10.710",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -8,8 +8,5 @@
8
8
  "/dist"
9
9
  ],
10
10
  "author": "Trii LLC",
11
- "license": "ISC",
12
- "devDependencies": {
13
- "typescript": "^5.4.5"
14
- }
11
+ "license": "ISC"
15
12
  }
@@ -1,81 +0,0 @@
1
- import { AutomationError, AutomationJsonObject, AutomationJsonSchema, AutomationSourceApplication } from '../Common';
2
- export declare enum AutomationCapabilityKind {
3
- TRIGGER = "trigger",
4
- ACTION = "action",
5
- CONDITION = "condition"
6
- }
7
- export declare enum AutomationCapabilityEffectClass {
8
- NONE = "none",
9
- READ = "read",
10
- WRITE = "write",
11
- COMMUNICATION = "communication",
12
- BULK = "bulk"
13
- }
14
- export declare enum AutomationCapabilityIdempotency {
15
- NONE = "none",
16
- SUPPORTED = "supported",
17
- REQUIRED = "required"
18
- }
19
- /** Capacidades operativas que el runtime puede aplicar de forma confiable. */
20
- export interface AutomationCapabilityExecutionSupport {
21
- effectClass: AutomationCapabilityEffectClass;
22
- supportsSimulation: boolean;
23
- supportsTestTargets: boolean;
24
- supportsUntilNode: boolean;
25
- supportsFromNode: boolean;
26
- supportsNodeOnly: boolean;
27
- supportsCancellation: boolean;
28
- idempotency: AutomationCapabilityIdempotency;
29
- defaultTimeoutMs?: number | null;
30
- maxAttempts?: number | null;
31
- maxTestItems?: number | null;
32
- inputSchema?: AutomationJsonSchema | null;
33
- outputSchema?: AutomationJsonSchema | null;
34
- simulationOutputSchema?: AutomationJsonSchema | null;
35
- sensitivePaths?: string[] | null;
36
- requiredPermissions?: string[] | null;
37
- }
38
- /**
39
- * Capacidad publicada por una aplicación de negocio para que Automation pueda
40
- * descubrirla y representarla sin incorporar reglas de ese dominio.
41
- */
42
- export interface AutomationCapability {
43
- code: string;
44
- sourceApplication: AutomationSourceApplication;
45
- kind: AutomationCapabilityKind;
46
- name: string;
47
- description?: string | null;
48
- inputSchema?: AutomationJsonSchema | null;
49
- outputSchema?: AutomationJsonSchema | null;
50
- requiredPermissions: string[];
51
- enabled: boolean;
52
- version: number;
53
- /** Metadata opcional para definitions anteriores a la política de ejecución. */
54
- executionSupport?: AutomationCapabilityExecutionSupport | null;
55
- }
56
- export interface AutomationCapabilityQuery {
57
- sourceApplications?: AutomationSourceApplication[];
58
- kinds?: AutomationCapabilityKind[];
59
- enabledOnly?: boolean;
60
- version?: number;
61
- }
62
- export interface AutomationCapabilityReference {
63
- code: string;
64
- version: number;
65
- sourceApplication: AutomationSourceApplication;
66
- }
67
- export interface AutomationCapabilityInvocation {
68
- invocationId: string;
69
- executionId: string;
70
- nodeId: string;
71
- capability: AutomationCapabilityReference;
72
- input: AutomationJsonObject;
73
- context: AutomationJsonObject;
74
- }
75
- export interface AutomationCapabilityResult {
76
- invocationId: string;
77
- success: boolean;
78
- output?: AutomationJsonObject | null;
79
- error?: AutomationError | null;
80
- completedAt: string;
81
- }