@trii/types 2.10.757 → 2.10.759

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 (181) hide show
  1. package/dist/Automations/Events/Event.d.ts +3 -3
  2. package/dist/Contacts/CommunicationEndpoint.d.ts +8 -8
  3. package/dist/Conversations/Classifications/ConversationClassificationEvents.d.ts +2 -2
  4. package/dist/Conversations/Conversation.d.ts +8 -8
  5. package/dist/Conversations/Routing.d.ts +10 -10
  6. package/dist/Events/DomainEventTypes.d.ts +23 -23
  7. package/dist/Tickets/Automation.d.ts +2 -0
  8. package/dist/Tickets/Automation.js +2 -0
  9. package/dist/Tickets/Group.d.ts +74 -0
  10. package/dist/Tickets/Routing.d.ts +28 -0
  11. package/dist/Tickets/Ticket.d.ts +7 -0
  12. package/dist/Tickets/Workflow.d.ts +3 -1
  13. package/dist/Tickets/Workflow.js +2 -0
  14. package/dist/Tickets/index.d.ts +1 -0
  15. package/dist/Tickets/index.js +1 -0
  16. package/dist/src/Common/Channels/Channel.d.ts +1 -26
  17. package/dist/src/Contacts/contacts.d.ts +2 -2
  18. package/dist/src/Conversations/Conversation.d.ts +48 -241
  19. package/dist/src/Conversations/Conversation.js +34 -14
  20. package/dist/src/Conversations/DashBoard/dashboard.d.ts +2 -2
  21. package/dist/src/Conversations/DashBoard/dashboardForms.d.ts +44 -0
  22. package/dist/src/Conversations/DashBoard/dashboardForms.js +24 -0
  23. package/dist/src/Conversations/Flows/Workflows/Workflow.d.ts +123 -280
  24. package/dist/src/Conversations/Flows/Workflows/Workflow.js +35 -85
  25. package/dist/src/Conversations/Groups/Group.d.ts +8 -2
  26. package/dist/src/Conversations/Groups/Group.js +6 -0
  27. package/dist/src/Conversations/Label.d.ts +1 -1
  28. package/dist/src/Conversations/WebHook.d.ts +1 -1
  29. package/dist/src/Conversations/index.d.ts +1 -9
  30. package/dist/src/Conversations/index.js +1 -9
  31. package/dist/src/Tickets/Category.d.ts +0 -18
  32. package/dist/src/Tickets/Dashboard.d.ts +0 -77
  33. package/dist/src/Tickets/Dashboard.js +1 -13
  34. package/dist/src/Tickets/Fields.d.ts +0 -1
  35. package/dist/src/Tickets/Layouts.d.ts +1 -3
  36. package/dist/src/Tickets/Workflow.d.ts +0 -20
  37. package/dist/src/Users/UserTrii.d.ts +0 -10
  38. package/dist/src/Users/UserTrii.js +1 -8
  39. package/dist/src/index.d.ts +0 -3
  40. package/dist/src/index.js +1 -4
  41. package/package.json +1 -1
  42. package/dist/AI/MapPolygon.d.ts +0 -22
  43. package/dist/Conversations/Flows/Nodes/NodeAIChatBot.d.ts +0 -0
  44. package/dist/Conversations/Flows/Nodes/NodeAIChatBot.js +0 -0
  45. package/dist/Conversations/Flows/Nodes/NodeApi.d.ts +0 -2
  46. package/dist/Conversations/Flows/Nodes/NodeApi.js +0 -183
  47. package/dist/Conversations/Flows/Nodes/NodeBotIA.d.ts +0 -15
  48. package/dist/Conversations/Flows/Nodes/NodeBotIA.js +0 -6
  49. package/dist/Conversations/Flows/Nodes/NodeChatBotIA.d.ts +0 -15
  50. package/dist/Conversations/Flows/Nodes/NodeChatBotIA.js +0 -6
  51. package/dist/Conversations/Flows/Nodes/NodeConditional.d.ts +0 -0
  52. package/dist/Conversations/Flows/Nodes/NodeConditional.js +0 -0
  53. package/dist/Conversations/Flows/Nodes/NodeContactSearch.d.ts +0 -0
  54. package/dist/Conversations/Flows/Nodes/NodeContactSearch.js +0 -0
  55. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.d.ts +0 -0
  56. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.js +0 -0
  57. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.d.ts +0 -0
  58. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.js +0 -0
  59. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.d.ts +0 -0
  60. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.js +0 -0
  61. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.d.ts +0 -0
  62. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.js +0 -0
  63. package/dist/Conversations/Flows/Nodes/NodeFillForm.d.ts +0 -0
  64. package/dist/Conversations/Flows/Nodes/NodeFillForm.js +0 -0
  65. package/dist/Conversations/Flows/Nodes/NodeFillTicket.d.ts +0 -1
  66. package/dist/Conversations/Flows/Nodes/NodeFillTicket.js +0 -9
  67. package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.d.ts +0 -20
  68. package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.js +0 -2
  69. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.d.ts +0 -12
  70. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.js +0 -6
  71. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.d.ts +0 -15
  72. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.js +0 -2
  73. package/dist/Conversations/Flows/Nodes/NodeMsgReply.d.ts +0 -0
  74. package/dist/Conversations/Flows/Nodes/NodeMsgReply.js +0 -0
  75. package/dist/Conversations/Flows/Nodes/NodeMsgSend.d.ts +0 -0
  76. package/dist/Conversations/Flows/Nodes/NodeMsgSend.js +0 -0
  77. package/dist/Conversations/Flows/Nodes/NodeMsgText.d.ts +0 -1
  78. package/dist/Conversations/Flows/Nodes/NodeMsgText.js +0 -27
  79. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.d.ts +0 -0
  80. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.js +0 -0
  81. package/dist/Conversations/Flows/Nodes/NodeRedirect.d.ts +0 -0
  82. package/dist/Conversations/Flows/Nodes/NodeRedirect.js +0 -0
  83. package/dist/Conversations/Flows/Nodes/NodeSendEmail.d.ts +0 -0
  84. package/dist/Conversations/Flows/Nodes/NodeSendEmail.js +0 -0
  85. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.d.ts +0 -0
  86. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.js +0 -0
  87. package/dist/Conversations/Flows/Nodes/NodeStart.d.ts +0 -0
  88. package/dist/Conversations/Flows/Nodes/NodeStart.js +0 -0
  89. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.d.ts +0 -0
  90. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.js +0 -0
  91. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.d.ts +0 -0
  92. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.js +0 -0
  93. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.d.ts +0 -0
  94. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.js +0 -0
  95. package/dist/Conversations/Flows/Nodes/NodeToolCalculator.d.ts +0 -2
  96. package/dist/Conversations/Flows/Nodes/NodeToolCalculator.js +0 -37
  97. package/dist/Conversations/Flows/Nodes/NodeToolContacts.d.ts +0 -2
  98. package/dist/Conversations/Flows/Nodes/NodeToolContacts.js +0 -59
  99. package/dist/Conversations/Flows/Nodes/NodeToolFunction.d.ts +0 -2
  100. package/dist/Conversations/Flows/Nodes/NodeToolFunction.js +0 -45
  101. package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.d.ts +0 -2
  102. package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.js +0 -87
  103. package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.d.ts +0 -1
  104. package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.js +0 -2
  105. package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.d.ts +0 -2
  106. package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.js +0 -52
  107. package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.d.ts +0 -2
  108. package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.js +0 -59
  109. package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.d.ts +0 -2
  110. package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.js +0 -45
  111. package/dist/Conversations/Flows/Nodes/NodeToolShoppingCart.d.ts +0 -2
  112. package/dist/Conversations/Flows/Nodes/NodeToolShoppingCart.js +0 -81
  113. package/dist/Conversations/Flows/Nodes/index.d.ts +0 -24
  114. package/dist/Conversations/Flows/Nodes/index.js +0 -40
  115. package/dist/Presence/ChannelRoutingState.d.ts +0 -17
  116. package/dist/Presence/ChannelRoutingState.js +0 -9
  117. package/dist/Tickets/AccessLevel.d.ts +0 -5
  118. package/dist/Tickets/AccessLevel.js +0 -9
  119. package/dist/src/Automations/Capabilities/Capability.d.ts +0 -48
  120. package/dist/src/Automations/Capabilities/Capability.js +0 -9
  121. package/dist/src/Automations/Capabilities/index.d.ts +0 -1
  122. package/dist/src/Automations/Capabilities/index.js +0 -17
  123. package/dist/src/Automations/Common.d.ts +0 -47
  124. package/dist/src/Automations/Common.js +0 -18
  125. package/dist/src/Automations/Events/Event.d.ts +0 -41
  126. package/dist/src/Automations/Events/Event.js +0 -2
  127. package/dist/src/Automations/Events/index.d.ts +0 -1
  128. package/dist/src/Automations/Events/index.js +0 -17
  129. package/dist/src/Automations/Executions/Execution.d.ts +0 -114
  130. package/dist/src/Automations/Executions/Execution.js +0 -23
  131. package/dist/src/Automations/Executions/index.d.ts +0 -1
  132. package/dist/src/Automations/Executions/index.js +0 -17
  133. package/dist/src/Automations/Flows/Canvas.d.ts +0 -86
  134. package/dist/src/Automations/Flows/Canvas.js +0 -34
  135. package/dist/src/Automations/Flows/Flow.d.ts +0 -102
  136. package/dist/src/Automations/Flows/Flow.js +0 -34
  137. package/dist/src/Automations/Flows/Requests.d.ts +0 -71
  138. package/dist/src/Automations/Flows/Requests.js +0 -2
  139. package/dist/src/Automations/Flows/Validation.d.ts +0 -28
  140. package/dist/src/Automations/Flows/Validation.js +0 -9
  141. package/dist/src/Automations/Flows/index.d.ts +0 -4
  142. package/dist/src/Automations/Flows/index.js +0 -20
  143. package/dist/src/Automations/Nodes/Node.d.ts +0 -75
  144. package/dist/src/Automations/Nodes/Node.js +0 -18
  145. package/dist/src/Automations/Nodes/index.d.ts +0 -1
  146. package/dist/src/Automations/Nodes/index.js +0 -17
  147. package/dist/src/Automations/index.d.ts +0 -6
  148. package/dist/src/Automations/index.js +0 -22
  149. package/dist/src/Chats/Chat.d.ts +0 -61
  150. package/dist/src/Chats/Chat.js +0 -28
  151. package/dist/src/Conversations/Assignment.d.ts +0 -81
  152. package/dist/src/Conversations/Assignment.js +0 -4
  153. package/dist/src/Conversations/Outbox.d.ts +0 -24
  154. package/dist/src/Conversations/Outbox.js +0 -4
  155. package/dist/src/Conversations/Queue.d.ts +0 -107
  156. package/dist/src/Conversations/Queue.js +0 -4
  157. package/dist/src/Conversations/Routing.d.ts +0 -164
  158. package/dist/src/Conversations/Routing.js +0 -2
  159. package/dist/src/Conversations/Sla.d.ts +0 -227
  160. package/dist/src/Conversations/Sla.js +0 -6
  161. package/dist/src/Conversations/Transfer.d.ts +0 -73
  162. package/dist/src/Conversations/Transfer.js +0 -2
  163. package/dist/src/Forms/API.d.ts +0 -53
  164. package/dist/src/Forms/API.js +0 -2
  165. package/dist/src/Forms/SubmittedForm.d.ts +0 -56
  166. package/dist/src/Forms/SubmittedForm.js +0 -9
  167. package/dist/src/Forms/index.d.ts +0 -2
  168. package/dist/src/Forms/index.js +0 -18
  169. package/dist/src/Presence/AgentPause.d.ts +0 -24
  170. package/dist/src/Presence/AgentPause.js +0 -19
  171. package/dist/src/Presence/QueueParticipation.d.ts +0 -17
  172. package/dist/src/Presence/QueueParticipation.js +0 -2
  173. package/dist/src/Presence/QueueRoutingState.d.ts +0 -27
  174. package/dist/src/Presence/QueueRoutingState.js +0 -9
  175. package/dist/src/Presence/index.d.ts +0 -3
  176. package/dist/src/Presence/index.js +0 -19
  177. /package/dist/{src/Conversations → Conversations}/InboxMongo.d.ts +0 -0
  178. /package/dist/{src/Conversations → Conversations}/InboxMongo.js +0 -0
  179. /package/dist/{src/Conversations → Conversations}/InboxProjection.d.ts +0 -0
  180. /package/dist/{src/Conversations → Conversations}/InboxProjection.js +0 -0
  181. /package/dist/{AI/MapPolygon.js → Tickets/Group.js} +0 -0
@@ -1,56 +0,0 @@
1
- import { FormItemType } from "../Common/Channels/Form";
2
- export interface SubmittedForm {
3
- id: string;
4
- shardKey: string;
5
- spaceId: string;
6
- formId: string;
7
- contractVersion: number;
8
- formRevision: number;
9
- schemaHash: string | null;
10
- tags: FormTag[];
11
- /** Compatibilidad con formularios V1. */
12
- responses?: FormResponse[] | null;
13
- answers: FormAnswerV2[];
14
- createdAt: Date;
15
- expireAt: Date | null;
16
- completedAt: Date | null;
17
- }
18
- export interface FormTag {
19
- name: string;
20
- value: string;
21
- }
22
- export declare enum FormStatus {
23
- pending = 0,
24
- completed = 1,
25
- expired = 2
26
- }
27
- export interface FormResponse {
28
- questionId: string;
29
- type: FormItemType;
30
- response: unknown;
31
- }
32
- export interface FormAnswerV2 {
33
- fieldId: string;
34
- fieldType: string;
35
- /** Snapshot útil para exportaciones históricas. */
36
- fieldLabel: string | null;
37
- textValue: string | null;
38
- numericValue: number | null;
39
- /** Formatos canónicos: yyyy-MM-dd y HH:mm:ss. */
40
- dateValue: string | null;
41
- timeValue: string | null;
42
- selectedOptions: FormSelectedOption[] | null;
43
- files: FormSubmittedFile[] | null;
44
- }
45
- export interface FormSelectedOption {
46
- id: string;
47
- /** Snapshot histórico de la etiqueta. */
48
- label: string | null;
49
- }
50
- export interface FormSubmittedFile {
51
- storageId: string;
52
- fileName: string;
53
- contentType: string | null;
54
- sizeBytes: number;
55
- url: string | null;
56
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FormStatus = void 0;
4
- var FormStatus;
5
- (function (FormStatus) {
6
- FormStatus[FormStatus["pending"] = 0] = "pending";
7
- FormStatus[FormStatus["completed"] = 1] = "completed";
8
- FormStatus[FormStatus["expired"] = 2] = "expired";
9
- })(FormStatus || (exports.FormStatus = FormStatus = {}));
@@ -1,2 +0,0 @@
1
- export * from './API';
2
- export * from './SubmittedForm';
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./API"), exports);
18
- __exportStar(require("./SubmittedForm"), exports);
@@ -1,24 +0,0 @@
1
- export interface AgentPause {
2
- id: string;
3
- spaceId: string;
4
- userId: string;
5
- reason: PauseReason;
6
- startedAt: Date;
7
- startedByUserId?: string;
8
- startedBy: PauseActorType;
9
- endedAt?: Date;
10
- }
11
- export declare enum PauseReason {
12
- LUNCH = 0,
13
- RESTROOM = 1,
14
- BREAK = 2,
15
- MEETING = 3,
16
- TRAINING = 4,
17
- ADMINISTRATIVE_WORK = 5,
18
- OTHER = 6
19
- }
20
- export declare enum PauseActorType {
21
- AGENT = 0,
22
- SUPERVISOR = 1,
23
- SYSTEM = 2
24
- }
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PauseActorType = exports.PauseReason = void 0;
4
- var PauseReason;
5
- (function (PauseReason) {
6
- PauseReason[PauseReason["LUNCH"] = 0] = "LUNCH";
7
- PauseReason[PauseReason["RESTROOM"] = 1] = "RESTROOM";
8
- PauseReason[PauseReason["BREAK"] = 2] = "BREAK";
9
- PauseReason[PauseReason["MEETING"] = 3] = "MEETING";
10
- PauseReason[PauseReason["TRAINING"] = 4] = "TRAINING";
11
- PauseReason[PauseReason["ADMINISTRATIVE_WORK"] = 5] = "ADMINISTRATIVE_WORK";
12
- PauseReason[PauseReason["OTHER"] = 6] = "OTHER";
13
- })(PauseReason || (exports.PauseReason = PauseReason = {}));
14
- var PauseActorType;
15
- (function (PauseActorType) {
16
- PauseActorType[PauseActorType["AGENT"] = 0] = "AGENT";
17
- PauseActorType[PauseActorType["SUPERVISOR"] = 1] = "SUPERVISOR";
18
- PauseActorType[PauseActorType["SYSTEM"] = 2] = "SYSTEM";
19
- })(PauseActorType || (exports.PauseActorType = PauseActorType = {}));
@@ -1,17 +0,0 @@
1
- import { ConversationQueueInfo } from "../Conversations/Queue";
2
- export interface QueueParticipation {
3
- spaceId: string;
4
- userId: string;
5
- queueId: string;
6
- authorized: boolean;
7
- active: boolean;
8
- updatedAt: Date;
9
- updatedByUserId?: string;
10
- }
11
- export interface QueueParticipationDto {
12
- queueId: string;
13
- authorized: boolean;
14
- active: boolean;
15
- updatedAt: Date;
16
- queue?: ConversationQueueInfo | null;
17
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,27 +0,0 @@
1
- import { ConversationQueueInfo } from "../Conversations/Queue";
2
- export interface QueueRoutingState {
3
- spaceId: string;
4
- userId: string;
5
- queueId: string;
6
- isEligible: boolean;
7
- presenceStatus: RoutingPresenceStatus;
8
- activeJobCount: number;
9
- maxCapacity?: number;
10
- notRespondingDetectedAt?: Date;
11
- updatedAt: Date;
12
- }
13
- export declare enum RoutingPresenceStatus {
14
- IDLE = 0,
15
- INTERACTING = 1,
16
- BUSY = 2
17
- }
18
- export interface RoutingStateDto {
19
- queueId: string;
20
- queue?: ConversationQueueInfo | null;
21
- isEligible: boolean;
22
- presenceStatus?: RoutingPresenceStatus;
23
- activeJobCount: number;
24
- maxCapacity?: number | null;
25
- notRespondingDetectedAt?: Date;
26
- updatedAt?: Date;
27
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RoutingPresenceStatus = void 0;
4
- var RoutingPresenceStatus;
5
- (function (RoutingPresenceStatus) {
6
- RoutingPresenceStatus[RoutingPresenceStatus["IDLE"] = 0] = "IDLE";
7
- RoutingPresenceStatus[RoutingPresenceStatus["INTERACTING"] = 1] = "INTERACTING";
8
- RoutingPresenceStatus[RoutingPresenceStatus["BUSY"] = 2] = "BUSY";
9
- })(RoutingPresenceStatus || (exports.RoutingPresenceStatus = RoutingPresenceStatus = {}));
@@ -1,3 +0,0 @@
1
- export * from './AgentPause';
2
- export * from './QueueParticipation';
3
- export * from './QueueRoutingState';
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./AgentPause"), exports);
18
- __exportStar(require("./QueueParticipation"), exports);
19
- __exportStar(require("./QueueRoutingState"), exports);
File without changes