@trii/types 2.10.79
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/README.md +9 -0
- package/dist/AI/Credential.d.ts +13 -0
- package/dist/AI/Credential.js +2 -0
- package/dist/AI/Documents/Document.d.ts +36 -0
- package/dist/AI/Documents/Document.js +15 -0
- package/dist/AI/Documents/Store.d.ts +25 -0
- package/dist/AI/Documents/Store.js +10 -0
- package/dist/AI/Map.d.ts +13 -0
- package/dist/AI/Map.js +2 -0
- package/dist/AI/MapPolygon.d.ts +22 -0
- package/dist/AI/MapPolygon.js +2 -0
- package/dist/AI/Provider.d.ts +6 -0
- package/dist/AI/Provider.js +2 -0
- package/dist/AI/Threads/API.d.ts +55 -0
- package/dist/AI/Threads/API.js +2 -0
- package/dist/AI/Threads/Message.d.ts +61 -0
- package/dist/AI/Threads/Message.js +2 -0
- package/dist/AI/Threads/Thread.d.ts +22 -0
- package/dist/AI/Threads/Thread.js +2 -0
- package/dist/AI/Threads/index.d.ts +3 -0
- package/dist/AI/Threads/index.js +19 -0
- package/dist/AI/aiModuleStatus.d.ts +3 -0
- package/dist/AI/aiModuleStatus.js +2 -0
- package/dist/AI/index.d.ts +4 -0
- package/dist/AI/index.js +20 -0
- package/dist/Accounts/accounts.d.ts +88 -0
- package/dist/Accounts/accounts.js +24 -0
- package/dist/Accounts/device.d.ts +31 -0
- package/dist/Accounts/device.js +19 -0
- package/dist/Accounts/index.d.ts +2 -0
- package/dist/Accounts/index.js +18 -0
- package/dist/ApiResponses/index.d.ts +9 -0
- package/dist/ApiResponses/index.js +2 -0
- package/dist/AuditLogs/auditLog.d.ts +9 -0
- package/dist/AuditLogs/auditLog.js +2 -0
- package/dist/AuditLogs/auditLogType.d.ts +5 -0
- package/dist/AuditLogs/auditLogType.js +9 -0
- package/dist/AuditLogs/index.d.ts +2 -0
- package/dist/AuditLogs/index.js +18 -0
- package/dist/Automations/Capabilities/Capability.d.ts +81 -0
- package/dist/Automations/Capabilities/Capability.js +23 -0
- package/dist/Automations/Capabilities/index.d.ts +1 -0
- package/dist/Automations/Capabilities/index.js +17 -0
- package/dist/Automations/Common.d.ts +94 -0
- package/dist/Automations/Common.js +40 -0
- package/dist/Automations/Events/Event.d.ts +96 -0
- package/dist/Automations/Events/Event.js +19 -0
- package/dist/Automations/Events/index.d.ts +1 -0
- package/dist/Automations/Events/index.js +17 -0
- package/dist/Automations/Executions/Execution.d.ts +298 -0
- package/dist/Automations/Executions/Execution.js +76 -0
- package/dist/Automations/Executions/Testing.d.ts +166 -0
- package/dist/Automations/Executions/Testing.js +54 -0
- package/dist/Automations/Executions/index.d.ts +2 -0
- package/dist/Automations/Executions/index.js +18 -0
- package/dist/Automations/Flows/Canvas.d.ts +109 -0
- package/dist/Automations/Flows/Canvas.js +43 -0
- package/dist/Automations/Flows/Flow.d.ts +154 -0
- package/dist/Automations/Flows/Flow.js +58 -0
- package/dist/Automations/Flows/Requests.d.ts +71 -0
- package/dist/Automations/Flows/Requests.js +2 -0
- package/dist/Automations/Flows/Validation.d.ts +28 -0
- package/dist/Automations/Flows/Validation.js +9 -0
- package/dist/Automations/Flows/index.d.ts +4 -0
- package/dist/Automations/Flows/index.js +20 -0
- package/dist/Automations/Nodes/Node.d.ts +116 -0
- package/dist/Automations/Nodes/Node.js +27 -0
- package/dist/Automations/Nodes/index.d.ts +1 -0
- package/dist/Automations/Nodes/index.js +17 -0
- package/dist/Automations/Triggers/Trigger.d.ts +112 -0
- package/dist/Automations/Triggers/Trigger.js +66 -0
- package/dist/Automations/Triggers/index.d.ts +1 -0
- package/dist/Automations/Triggers/index.js +17 -0
- package/dist/Automations/index.d.ts +7 -0
- package/dist/Automations/index.js +23 -0
- package/dist/Calendar/Calendar.d.ts +18 -0
- package/dist/Calendar/Calendar.js +2 -0
- package/dist/Calendar/Common.d.ts +77 -0
- package/dist/Calendar/Common.js +16 -0
- package/dist/Calendar/Event.d.ts +64 -0
- package/dist/Calendar/Event.js +16 -0
- package/dist/Calendar/Events.d.ts +61 -0
- package/dist/Calendar/Events.js +5 -0
- package/dist/Calendar/Task.d.ts +12 -0
- package/dist/Calendar/Task.js +2 -0
- package/dist/Calendar/Tasks.d.ts +18 -0
- package/dist/Calendar/Tasks.js +5 -0
- package/dist/Calendar/index.d.ts +3 -0
- package/dist/Calendar/index.js +19 -0
- package/dist/Calls/Audio.d.ts +17 -0
- package/dist/Calls/Audio.js +8 -0
- package/dist/Calls/Call.d.ts +59 -0
- package/dist/Calls/Call.js +25 -0
- package/dist/Calls/Codecs.d.ts +5 -0
- package/dist/Calls/Codecs.js +21 -0
- package/dist/Calls/Extension.d.ts +24 -0
- package/dist/Calls/Extension.js +2 -0
- package/dist/Calls/Options.d.ts +5 -0
- package/dist/Calls/Options.js +2 -0
- package/dist/Calls/Queue.d.ts +52 -0
- package/dist/Calls/Queue.js +12 -0
- package/dist/Calls/RingGroup.d.ts +46 -0
- package/dist/Calls/RingGroup.js +27 -0
- package/dist/Calls/Transport.d.ts +6 -0
- package/dist/Calls/Transport.js +11 -0
- package/dist/Calls/Trunk.d.ts +31 -0
- package/dist/Calls/Trunk.js +2 -0
- package/dist/Calls/index.d.ts +6 -0
- package/dist/Calls/index.js +22 -0
- package/dist/Chats/Chat.d.ts +63 -0
- package/dist/Chats/Chat.js +28 -0
- package/dist/Collections/Api.d.ts +41 -0
- package/dist/Collections/Api.js +2 -0
- package/dist/Collections/Commission.d.ts +52 -0
- package/dist/Collections/Commission.js +10 -0
- package/dist/Collections/Common.d.ts +78 -0
- package/dist/Collections/Common.js +39 -0
- package/dist/Collections/Dashboard.d.ts +27 -0
- package/dist/Collections/Dashboard.js +2 -0
- package/dist/Collections/Debt.d.ts +97 -0
- package/dist/Collections/Debt.js +12 -0
- package/dist/Collections/Interest.d.ts +38 -0
- package/dist/Collections/Interest.js +25 -0
- package/dist/Collections/Payment.d.ts +87 -0
- package/dist/Collections/Payment.js +21 -0
- package/dist/Collections/PaymentPlan.d.ts +87 -0
- package/dist/Collections/PaymentPlan.js +21 -0
- package/dist/Collections/PaymentPlanConfiguration.d.ts +100 -0
- package/dist/Collections/PaymentPlanConfiguration.js +34 -0
- package/dist/Collections/Portfolio.d.ts +52 -0
- package/dist/Collections/Portfolio.js +12 -0
- package/dist/Collections/Promise.d.ts +49 -0
- package/dist/Collections/Promise.js +25 -0
- package/dist/Collections/index.d.ts +11 -0
- package/dist/Collections/index.js +27 -0
- package/dist/Common/API/AuthApiKey.d.ts +5 -0
- package/dist/Common/API/AuthApiKey.js +2 -0
- package/dist/Common/API/AuthBasic.d.ts +4 -0
- package/dist/Common/API/AuthBasic.js +2 -0
- package/dist/Common/API/AuthBearer.d.ts +5 -0
- package/dist/Common/API/AuthBearer.js +2 -0
- package/dist/Common/API/AuthType.d.ts +6 -0
- package/dist/Common/API/AuthType.js +10 -0
- package/dist/Common/API/Method.d.ts +4 -0
- package/dist/Common/API/Method.js +8 -0
- package/dist/Common/API/index.d.ts +5 -0
- package/dist/Common/API/index.js +21 -0
- package/dist/Common/Channels/Channel.d.ts +143 -0
- package/dist/Common/Channels/Channel.js +33 -0
- package/dist/Common/Channels/ChannelAccount.d.ts +35 -0
- package/dist/Common/Channels/ChannelAccount.js +17 -0
- package/dist/Common/Channels/ChannelType.d.ts +24 -0
- package/dist/Common/Channels/ChannelType.js +28 -0
- package/dist/Common/Channels/Email.d.ts +88 -0
- package/dist/Common/Channels/Email.js +49 -0
- package/dist/Common/Channels/Facebook.d.ts +26 -0
- package/dist/Common/Channels/Facebook.js +6 -0
- package/dist/Common/Channels/Form.d.ts +119 -0
- package/dist/Common/Channels/Form.js +32 -0
- package/dist/Common/Channels/GoogleBusiness.d.ts +21 -0
- package/dist/Common/Channels/GoogleBusiness.js +9 -0
- package/dist/Common/Channels/Instagram.d.ts +35 -0
- package/dist/Common/Channels/Instagram.js +14 -0
- package/dist/Common/Channels/MercadoLibre.d.ts +28 -0
- package/dist/Common/Channels/MercadoLibre.js +9 -0
- package/dist/Common/Channels/Pbx.d.ts +2 -0
- package/dist/Common/Channels/Pbx.js +6 -0
- package/dist/Common/Channels/Permission.d.ts +6 -0
- package/dist/Common/Channels/Permission.js +6 -0
- package/dist/Common/Channels/RCS.d.ts +37 -0
- package/dist/Common/Channels/RCS.js +9 -0
- package/dist/Common/Channels/Sip.d.ts +2 -0
- package/dist/Common/Channels/Sip.js +6 -0
- package/dist/Common/Channels/Sms.d.ts +46 -0
- package/dist/Common/Channels/Sms.js +16 -0
- package/dist/Common/Channels/WebChat.d.ts +68 -0
- package/dist/Common/Channels/WebChat.js +13 -0
- package/dist/Common/Channels/WhatsApp.d.ts +89 -0
- package/dist/Common/Channels/WhatsApp.js +18 -0
- package/dist/Common/Channels/index.d.ts +16 -0
- package/dist/Common/Channels/index.js +32 -0
- package/dist/Common/EventsQueue/Data/postComment.d.ts +26 -0
- package/dist/Common/EventsQueue/Data/postComment.js +2 -0
- package/dist/Common/EventsQueue/EmailTemplate.d.ts +10 -0
- package/dist/Common/EventsQueue/EmailTemplate.js +2 -0
- package/dist/Common/EventsQueue/EventQueue.d.ts +31 -0
- package/dist/Common/EventsQueue/EventQueue.js +2 -0
- package/dist/Common/EventsQueue/UserUpdate.d.ts +8 -0
- package/dist/Common/EventsQueue/UserUpdate.js +2 -0
- package/dist/Common/EventsQueue/index.d.ts +3 -0
- package/dist/Common/EventsQueue/index.js +19 -0
- package/dist/Common/Logs/Log.d.ts +18 -0
- package/dist/Common/Logs/Log.js +13 -0
- package/dist/Common/Logs/index.d.ts +1 -0
- package/dist/Common/Logs/index.js +17 -0
- package/dist/Common/Messages/MediaFile.d.ts +5 -0
- package/dist/Common/Messages/MediaFile.js +2 -0
- package/dist/Common/Messages/Message.d.ts +600 -0
- package/dist/Common/Messages/Message.js +64 -0
- package/dist/Common/Messages/Template.d.ts +86 -0
- package/dist/Common/Messages/Template.js +26 -0
- package/dist/Common/Messages/index.d.ts +3 -0
- package/dist/Common/Messages/index.js +19 -0
- package/dist/Common/Notifications/Notification.d.ts +19 -0
- package/dist/Common/Notifications/Notification.js +10 -0
- package/dist/Common/Notifications/UserNotificationsConfig.d.ts +33 -0
- package/dist/Common/Notifications/UserNotificationsConfig.js +18 -0
- package/dist/Common/Notifications/index.d.ts +2 -0
- package/dist/Common/Notifications/index.js +18 -0
- package/dist/Common/Schedules/Schedules.d.ts +32 -0
- package/dist/Common/Schedules/Schedules.js +2 -0
- package/dist/Common/Schedules/index.d.ts +1 -0
- package/dist/Common/Schedules/index.js +17 -0
- package/dist/Common/index.d.ts +6 -0
- package/dist/Common/index.js +42 -0
- package/dist/Contacts/CommunicationEndpoint.d.ts +107 -0
- package/dist/Contacts/CommunicationEndpoint.js +39 -0
- package/dist/Contacts/CommunicationMethod.d.ts +9 -0
- package/dist/Contacts/CommunicationMethod.js +2 -0
- package/dist/Contacts/DuplicateContact.d.ts +11 -0
- package/dist/Contacts/DuplicateContact.js +2 -0
- package/dist/Contacts/File.d.ts +17 -0
- package/dist/Contacts/File.js +2 -0
- package/dist/Contacts/Import.d.ts +18 -0
- package/dist/Contacts/Import.js +2 -0
- package/dist/Contacts/Label.d.ts +9 -0
- package/dist/Contacts/Label.js +2 -0
- package/dist/Contacts/Note.d.ts +15 -0
- package/dist/Contacts/Note.js +2 -0
- package/dist/Contacts/Relationship.d.ts +28 -0
- package/dist/Contacts/Relationship.js +16 -0
- package/dist/Contacts/contacts.d.ts +291 -0
- package/dist/Contacts/contacts.js +54 -0
- package/dist/Contacts/index.d.ts +11 -0
- package/dist/Contacts/index.js +27 -0
- package/dist/Contacts/options.d.ts +5 -0
- package/dist/Contacts/options.js +2 -0
- package/dist/Contacts/segments.d.ts +53 -0
- package/dist/Contacts/segments.js +54 -0
- package/dist/Conversations/Assignment.d.ts +188 -0
- package/dist/Conversations/Assignment.js +2 -0
- package/dist/Conversations/Classifications/ClassificationTaxonomy.d.ts +78 -0
- package/dist/Conversations/Classifications/ClassificationTaxonomy.js +2 -0
- package/dist/Conversations/Classifications/ConversationClassificationEvaluation.d.ts +67 -0
- package/dist/Conversations/Classifications/ConversationClassificationEvaluation.js +2 -0
- package/dist/Conversations/Classifications/ConversationClassificationEvents.d.ts +31 -0
- package/dist/Conversations/Classifications/ConversationClassificationEvents.js +8 -0
- package/dist/Conversations/Classifications/index.d.ts +3 -0
- package/dist/Conversations/Classifications/index.js +19 -0
- package/dist/Conversations/Conversation.d.ts +522 -0
- package/dist/Conversations/Conversation.js +37 -0
- package/dist/Conversations/ConversationAutomationState.d.ts +49 -0
- package/dist/Conversations/ConversationAutomationState.js +2 -0
- package/dist/Conversations/ConversationPendingTransfer.d.ts +18 -0
- package/dist/Conversations/ConversationPendingTransfer.js +2 -0
- package/dist/Conversations/ConversationReadState.d.ts +16 -0
- package/dist/Conversations/ConversationReadState.js +2 -0
- package/dist/Conversations/ConversationSlaClockState.d.ts +70 -0
- package/dist/Conversations/ConversationSlaClockState.js +2 -0
- package/dist/Conversations/ConversationTransferRouting.d.ts +77 -0
- package/dist/Conversations/ConversationTransferRouting.js +2 -0
- package/dist/Conversations/DashBoard/dashboard.d.ts +115 -0
- package/dist/Conversations/DashBoard/dashboard.js +65 -0
- package/dist/Conversations/DashBoard/dashboardChannels.d.ts +5 -0
- package/dist/Conversations/DashBoard/dashboardChannels.js +6 -0
- package/dist/Conversations/DashBoard/dashboardForms.d.ts +44 -0
- package/dist/Conversations/DashBoard/dashboardForms.js +24 -0
- package/dist/Conversations/DashBoard/dashboardMessages.d.ts +13 -0
- package/dist/Conversations/DashBoard/dashboardMessages.js +9 -0
- package/dist/Conversations/Ending.d.ts +17 -0
- package/dist/Conversations/Ending.js +2 -0
- package/dist/Conversations/Flows/Definitions.d.ts +10 -0
- package/dist/Conversations/Flows/Definitions.js +2 -0
- package/dist/Conversations/Flows/Flow.d.ts +222 -0
- package/dist/Conversations/Flows/Flow.js +50 -0
- package/dist/Conversations/Flows/FlowInfo.d.ts +9 -0
- package/dist/Conversations/Flows/FlowInfo.js +2 -0
- package/dist/Conversations/Flows/Nodes/NodeAIChatBot.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeAIChatBot.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeApi.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeApi.js +183 -0
- package/dist/Conversations/Flows/Nodes/NodeBotIA.d.ts +15 -0
- package/dist/Conversations/Flows/Nodes/NodeBotIA.js +6 -0
- package/dist/Conversations/Flows/Nodes/NodeChatBotIA.d.ts +15 -0
- package/dist/Conversations/Flows/Nodes/NodeChatBotIA.js +6 -0
- package/dist/Conversations/Flows/Nodes/NodeConditional.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConditional.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeContactSearch.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeContactSearch.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeContactUpdate.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeContactUpdate.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeFillForm.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeFillForm.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeFillTicket.d.ts +1 -0
- package/dist/Conversations/Flows/Nodes/NodeFillTicket.js +9 -0
- package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.d.ts +20 -0
- package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.js +2 -0
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.d.ts +12 -0
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.js +6 -0
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.d.ts +15 -0
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.js +2 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgReply.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgReply.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgSend.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgSend.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgText.d.ts +1 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgText.js +27 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeRedirect.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeRedirect.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeSendEmail.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeSendEmail.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeSqlQuery.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeSqlQuery.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeStart.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeStart.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeTimer.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeTimer.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeToolCalculator.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolCalculator.js +37 -0
- package/dist/Conversations/Flows/Nodes/NodeToolContacts.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolContacts.js +59 -0
- package/dist/Conversations/Flows/Nodes/NodeToolFunction.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolFunction.js +45 -0
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.js +87 -0
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.d.ts +1 -0
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.js +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.js +52 -0
- package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.js +59 -0
- package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.js +45 -0
- package/dist/Conversations/Flows/Nodes/NodeToolShoppingCart.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolShoppingCart.js +81 -0
- package/dist/Conversations/Flows/Nodes/index.d.ts +24 -0
- package/dist/Conversations/Flows/Nodes/index.js +40 -0
- package/dist/Conversations/Flows/Workflows/Workflow.d.ts +336 -0
- package/dist/Conversations/Flows/Workflows/Workflow.js +98 -0
- package/dist/Conversations/Flows/Workflows/index.d.ts +1 -0
- package/dist/Conversations/Flows/Workflows/index.js +17 -0
- package/dist/Conversations/Flows/index.d.ts +4 -0
- package/dist/Conversations/Flows/index.js +20 -0
- package/dist/Conversations/Groups/Group.d.ts +17 -0
- package/dist/Conversations/Groups/Group.js +2 -0
- package/dist/Conversations/InboxCounters.d.ts +18 -0
- package/dist/Conversations/InboxCounters.js +2 -0
- package/dist/Conversations/InboxQueries.d.ts +133 -0
- package/dist/Conversations/InboxQueries.js +2 -0
- package/dist/Conversations/Label.d.ts +10 -0
- package/dist/Conversations/Label.js +2 -0
- package/dist/Conversations/Outbox.d.ts +23 -0
- package/dist/Conversations/Outbox.js +2 -0
- package/dist/Conversations/Queue.d.ts +103 -0
- package/dist/Conversations/Queue.js +2 -0
- package/dist/Conversations/QuickResponse.d.ts +34 -0
- package/dist/Conversations/QuickResponse.js +2 -0
- package/dist/Conversations/Routing.d.ts +159 -0
- package/dist/Conversations/Routing.js +2 -0
- package/dist/Conversations/Sla.d.ts +236 -0
- package/dist/Conversations/Sla.js +2 -0
- package/dist/Conversations/SocialWalls.d.ts +88 -0
- package/dist/Conversations/SocialWalls.js +2 -0
- package/dist/Conversations/Survey.d.ts +19 -0
- package/dist/Conversations/Survey.js +9 -0
- package/dist/Conversations/Transfer.d.ts +74 -0
- package/dist/Conversations/Transfer.js +2 -0
- package/dist/Conversations/WebHook.d.ts +22 -0
- package/dist/Conversations/WebHook.js +2 -0
- package/dist/Conversations/index.d.ts +26 -0
- package/dist/Conversations/index.js +65 -0
- package/dist/Docs/Document.d.ts +58 -0
- package/dist/Docs/Document.js +29 -0
- package/dist/Docs/Store.d.ts +37 -0
- package/dist/Docs/Store.js +17 -0
- package/dist/Docs/index.d.ts +2 -0
- package/dist/Docs/index.js +18 -0
- package/dist/Events/DomainEventTypes.d.ts +51 -0
- package/dist/Events/DomainEventTypes.js +49 -0
- package/dist/Events/index.d.ts +1 -0
- package/dist/Events/index.js +17 -0
- package/dist/Forms/API.d.ts +53 -0
- package/dist/Forms/API.js +2 -0
- package/dist/Forms/SubmittedForm.d.ts +56 -0
- package/dist/Forms/SubmittedForm.js +9 -0
- package/dist/Forms/index.d.ts +2 -0
- package/dist/Forms/index.js +18 -0
- package/dist/Marketing/Campaign.d.ts +115 -0
- package/dist/Marketing/Campaign.js +29 -0
- package/dist/Marketing/CampaignContract.d.ts +3 -0
- package/dist/Marketing/CampaignContract.js +54 -0
- package/dist/Marketing/Dashboard.d.ts +48 -0
- package/dist/Marketing/Dashboard.js +2 -0
- package/dist/Marketing/Options.d.ts +12 -0
- package/dist/Marketing/Options.js +9 -0
- package/dist/Marketing/Template.d.ts +19 -0
- package/dist/Marketing/Template.js +8 -0
- package/dist/Marketing/index.d.ts +5 -0
- package/dist/Marketing/index.js +21 -0
- package/dist/Presence/AgentPause.d.ts +24 -0
- package/dist/Presence/AgentPause.js +19 -0
- package/dist/Presence/ChannelRoutingState.d.ts +17 -0
- package/dist/Presence/ChannelRoutingState.js +9 -0
- package/dist/Presence/QueueParticipation.d.ts +17 -0
- package/dist/Presence/QueueParticipation.js +2 -0
- package/dist/Presence/QueueRoutingState.d.ts +27 -0
- package/dist/Presence/QueueRoutingState.js +9 -0
- package/dist/Presence/index.d.ts +3 -0
- package/dist/Presence/index.js +19 -0
- package/dist/PublicAPI/apiKey.d.ts +101 -0
- package/dist/PublicAPI/apiKey.js +29 -0
- package/dist/Reports/ScheduledReport.d.ts +205 -0
- package/dist/Reports/ScheduledReport.js +57 -0
- package/dist/Reports/aiReport.d.ts +20 -0
- package/dist/Reports/aiReport.js +2 -0
- package/dist/Reports/apiResult.d.ts +5 -0
- package/dist/Reports/apiResult.js +2 -0
- package/dist/Reports/index.d.ts +3 -0
- package/dist/Reports/index.js +19 -0
- package/dist/Sales/Api.d.ts +40 -0
- package/dist/Sales/Api.js +2 -0
- package/dist/Sales/Common.d.ts +72 -0
- package/dist/Sales/Common.js +31 -0
- package/dist/Sales/Dashboard.d.ts +25 -0
- package/dist/Sales/Dashboard.js +2 -0
- package/dist/Sales/Lead.d.ts +99 -0
- package/dist/Sales/Lead.js +8 -0
- package/dist/Sales/index.d.ts +4 -0
- package/dist/Sales/index.js +20 -0
- package/dist/Security/Security.d.ts +5 -0
- package/dist/Security/Security.js +2 -0
- package/dist/Security/index.d.ts +1 -0
- package/dist/Security/index.js +17 -0
- package/dist/Shop/Cart/cart.d.ts +19 -0
- package/dist/Shop/Cart/cart.js +2 -0
- package/dist/Shop/index.d.ts +1 -0
- package/dist/Shop/index.js +17 -0
- package/dist/Spaces/Dashboard.d.ts +4 -0
- package/dist/Spaces/Dashboard.js +2 -0
- package/dist/Spaces/index.d.ts +2 -0
- package/dist/Spaces/index.js +18 -0
- package/dist/Spaces/spaces.d.ts +104 -0
- package/dist/Spaces/spaces.js +85 -0
- package/dist/Tickets/AI.d.ts +448 -0
- package/dist/Tickets/AI.js +113 -0
- package/dist/Tickets/AccessLevel.d.ts +5 -0
- package/dist/Tickets/AccessLevel.js +9 -0
- package/dist/Tickets/AdvancedApi.d.ts +641 -0
- package/dist/Tickets/AdvancedApi.js +135 -0
- package/dist/Tickets/Api.d.ts +79 -0
- package/dist/Tickets/Api.js +8 -0
- package/dist/Tickets/Approval.d.ts +155 -0
- package/dist/Tickets/Approval.js +30 -0
- package/dist/Tickets/Automation.d.ts +285 -0
- package/dist/Tickets/Automation.js +78 -0
- package/dist/Tickets/Category.d.ts +89 -0
- package/dist/Tickets/Category.js +2 -0
- package/dist/Tickets/Common.d.ts +172 -0
- package/dist/Tickets/Common.js +38 -0
- package/dist/Tickets/Conversation.d.ts +134 -0
- package/dist/Tickets/Conversation.js +43 -0
- package/dist/Tickets/CustomerNotification.d.ts +192 -0
- package/dist/Tickets/CustomerNotification.js +54 -0
- package/dist/Tickets/Dashboard.d.ts +710 -0
- package/dist/Tickets/Dashboard.js +284 -0
- package/dist/Tickets/Fields.d.ts +235 -0
- package/dist/Tickets/Fields.js +44 -0
- package/dist/Tickets/Group.d.ts +74 -0
- package/dist/Tickets/Group.js +2 -0
- package/dist/Tickets/Layouts.d.ts +65 -0
- package/dist/Tickets/Layouts.js +22 -0
- package/dist/Tickets/Notes.d.ts +30 -0
- package/dist/Tickets/Notes.js +13 -0
- package/dist/Tickets/QuickResponse.d.ts +64 -0
- package/dist/Tickets/QuickResponse.js +41 -0
- package/dist/Tickets/Routing.d.ts +459 -0
- package/dist/Tickets/Routing.js +116 -0
- package/dist/Tickets/Satisfaction.d.ts +31 -0
- package/dist/Tickets/Satisfaction.js +9 -0
- package/dist/Tickets/Security.d.ts +573 -0
- package/dist/Tickets/Security.js +117 -0
- package/dist/Tickets/SelfService.d.ts +670 -0
- package/dist/Tickets/SelfService.js +62 -0
- package/dist/Tickets/Sla.d.ts +430 -0
- package/dist/Tickets/Sla.js +75 -0
- package/dist/Tickets/Task.d.ts +133 -0
- package/dist/Tickets/Task.js +17 -0
- package/dist/Tickets/Ticket.d.ts +167 -0
- package/dist/Tickets/Ticket.js +2 -0
- package/dist/Tickets/Views.d.ts +77 -0
- package/dist/Tickets/Views.js +23 -0
- package/dist/Tickets/Workflow.d.ts +183 -0
- package/dist/Tickets/Workflow.js +48 -0
- package/dist/Tickets/index.d.ts +24 -0
- package/dist/Tickets/index.js +40 -0
- package/dist/Users/Signature.d.ts +81 -0
- package/dist/Users/Signature.js +2 -0
- package/dist/Users/UserActivitySummary.d.ts +5 -0
- package/dist/Users/UserActivitySummary.js +2 -0
- package/dist/Users/UserProfile.d.ts +121 -0
- package/dist/Users/UserProfile.js +5 -0
- package/dist/Users/UserTrii.d.ts +112 -0
- package/dist/Users/UserTrii.js +17 -0
- package/dist/Users/UserType.d.ts +10 -0
- package/dist/Users/UserType.js +13 -0
- package/dist/Users/index.d.ts +5 -0
- package/dist/Users/index.js +21 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +61 -0
- package/package.json +12 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { ITicketAuditedEntity } from './Common';
|
|
2
|
+
export declare enum TicketLayoutViewType {
|
|
3
|
+
CREATE = "CREATE",
|
|
4
|
+
EDIT = "EDIT",
|
|
5
|
+
DETAIL = "DETAIL",
|
|
6
|
+
TABLE = "TABLE",
|
|
7
|
+
KANBAN_CARD = "KANBAN_CARD",
|
|
8
|
+
CARD = "CARD",
|
|
9
|
+
FILTER = "FILTER",
|
|
10
|
+
PORTAL_CREATE = "PORTAL_CREATE",
|
|
11
|
+
PORTAL_DETAIL = "PORTAL_DETAIL"
|
|
12
|
+
}
|
|
13
|
+
export declare enum TicketLayoutVisibility {
|
|
14
|
+
ALWAYS = "ALWAYS",
|
|
15
|
+
CREATE_ONLY = "CREATE_ONLY",
|
|
16
|
+
EDIT_ONLY = "EDIT_ONLY",
|
|
17
|
+
READ_ONLY = "READ_ONLY"
|
|
18
|
+
}
|
|
19
|
+
export interface ITicketLayoutField {
|
|
20
|
+
fieldNameKey: string;
|
|
21
|
+
order: number;
|
|
22
|
+
column: number;
|
|
23
|
+
width: number;
|
|
24
|
+
visible: boolean;
|
|
25
|
+
visibility?: TicketLayoutVisibility;
|
|
26
|
+
labelOverride?: string;
|
|
27
|
+
placeholderOverride?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface ITicketLayoutSection {
|
|
30
|
+
id: string;
|
|
31
|
+
title?: string;
|
|
32
|
+
description?: string;
|
|
33
|
+
order: number;
|
|
34
|
+
columns?: number;
|
|
35
|
+
collapsible?: boolean;
|
|
36
|
+
collapsedByDefault?: boolean;
|
|
37
|
+
fields: ITicketLayoutField[];
|
|
38
|
+
}
|
|
39
|
+
export interface ITicketLayoutSectionDTO extends Omit<ITicketLayoutSection, 'id'> {
|
|
40
|
+
}
|
|
41
|
+
/** Controls presentation only; validation remains authoritative in ITicketFieldDefinition. */
|
|
42
|
+
export interface ITicketLayout extends ITicketAuditedEntity {
|
|
43
|
+
name: string;
|
|
44
|
+
description?: string;
|
|
45
|
+
viewType: TicketLayoutViewType;
|
|
46
|
+
isDefault: boolean;
|
|
47
|
+
categoryIds?: string[];
|
|
48
|
+
requestTypeIds?: string[];
|
|
49
|
+
roleIds?: string[];
|
|
50
|
+
sections: ITicketLayoutSection[];
|
|
51
|
+
enabled: boolean;
|
|
52
|
+
}
|
|
53
|
+
export interface ICreateTicketLayoutDto {
|
|
54
|
+
name: string;
|
|
55
|
+
description?: string;
|
|
56
|
+
viewType: TicketLayoutViewType;
|
|
57
|
+
isDefault?: boolean;
|
|
58
|
+
categoryIds?: string[];
|
|
59
|
+
requestTypeIds?: string[];
|
|
60
|
+
roleIds?: string[];
|
|
61
|
+
sections: ITicketLayoutSectionDTO[];
|
|
62
|
+
}
|
|
63
|
+
export interface IUpdateTicketLayoutDto extends Partial<ICreateTicketLayoutDto> {
|
|
64
|
+
enabled?: boolean;
|
|
65
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TicketLayoutVisibility = exports.TicketLayoutViewType = void 0;
|
|
4
|
+
var TicketLayoutViewType;
|
|
5
|
+
(function (TicketLayoutViewType) {
|
|
6
|
+
TicketLayoutViewType["CREATE"] = "CREATE";
|
|
7
|
+
TicketLayoutViewType["EDIT"] = "EDIT";
|
|
8
|
+
TicketLayoutViewType["DETAIL"] = "DETAIL";
|
|
9
|
+
TicketLayoutViewType["TABLE"] = "TABLE";
|
|
10
|
+
TicketLayoutViewType["KANBAN_CARD"] = "KANBAN_CARD";
|
|
11
|
+
TicketLayoutViewType["CARD"] = "CARD";
|
|
12
|
+
TicketLayoutViewType["FILTER"] = "FILTER";
|
|
13
|
+
TicketLayoutViewType["PORTAL_CREATE"] = "PORTAL_CREATE";
|
|
14
|
+
TicketLayoutViewType["PORTAL_DETAIL"] = "PORTAL_DETAIL";
|
|
15
|
+
})(TicketLayoutViewType || (exports.TicketLayoutViewType = TicketLayoutViewType = {}));
|
|
16
|
+
var TicketLayoutVisibility;
|
|
17
|
+
(function (TicketLayoutVisibility) {
|
|
18
|
+
TicketLayoutVisibility["ALWAYS"] = "ALWAYS";
|
|
19
|
+
TicketLayoutVisibility["CREATE_ONLY"] = "CREATE_ONLY";
|
|
20
|
+
TicketLayoutVisibility["EDIT_ONLY"] = "EDIT_ONLY";
|
|
21
|
+
TicketLayoutVisibility["READ_ONLY"] = "READ_ONLY";
|
|
22
|
+
})(TicketLayoutVisibility || (exports.TicketLayoutVisibility = TicketLayoutVisibility = {}));
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ITicketAuditedEntity } from "./Common";
|
|
2
|
+
import type { TicketMessageActorType } from "./Conversation";
|
|
3
|
+
/**
|
|
4
|
+
* The four actor fields exist because ITicketAuditedEntity.createdBy is a
|
|
5
|
+
* single uuid-shaped string, which a contact cannot occupy. They follow the
|
|
6
|
+
* same pairing rule as ITicketActivity: AGENT is identified by createdBy /
|
|
7
|
+
* updatedBy, CONTACT, BOT and EXTERNAL_COLLABORATOR by the *ExternalId field,
|
|
8
|
+
* and SYSTEM by neither.
|
|
9
|
+
*/
|
|
10
|
+
export interface ITicketNote extends ITicketAuditedEntity {
|
|
11
|
+
ticketId: string;
|
|
12
|
+
text: string;
|
|
13
|
+
version: number;
|
|
14
|
+
isPublic: boolean;
|
|
15
|
+
createdByType?: TicketMessageActorType;
|
|
16
|
+
createdByExternalId?: string;
|
|
17
|
+
updatedByType?: TicketMessageActorType;
|
|
18
|
+
updatedByExternalId?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface CreateTicketNoteDto {
|
|
21
|
+
text: string;
|
|
22
|
+
/** Defaults to false. */
|
|
23
|
+
isPublic?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/** At least one of `text` / `isPublic` must be present. */
|
|
26
|
+
export interface UpdateTicketNoteDto {
|
|
27
|
+
expectedVersion: number;
|
|
28
|
+
text?: string;
|
|
29
|
+
isPublic?: boolean;
|
|
30
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// ---------------------------------------------------------------------------
|
|
3
|
+
// Ticket notes.
|
|
4
|
+
//
|
|
5
|
+
// Free-text annotations attached to a ticket. A note is either internal or
|
|
6
|
+
// public, and `isPublic` governs which: internal notes stay on the agent side,
|
|
7
|
+
// public notes are the customer-visible reply channel while Conversations is
|
|
8
|
+
// not wired to the public portal surface.
|
|
9
|
+
//
|
|
10
|
+
// Optimistic concurrency via version + expectedVersion on update, same pattern
|
|
11
|
+
// as the rest of the module.
|
|
12
|
+
// ---------------------------------------------------------------------------
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { ITicketAuditedEntity } from "./Common";
|
|
2
|
+
/** Whether the response is meant for a customer-visible reply, an internal note, or both. */
|
|
3
|
+
export declare enum QuickResponseContentType {
|
|
4
|
+
PUBLIC = "PUBLIC",
|
|
5
|
+
INTERNAL = "INTERNAL",
|
|
6
|
+
BOTH = "BOTH"
|
|
7
|
+
}
|
|
8
|
+
/** Per-response lifecycle status. `DISABLED` keeps the response persisted and assigned to its category. */
|
|
9
|
+
export declare enum QuickResponseStatus {
|
|
10
|
+
ENABLED = "ENABLED",
|
|
11
|
+
DISABLED = "DISABLED"
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Fixed, closed list of supported content languages. Extending this list is a
|
|
15
|
+
* deliberate, versioned change — a caller cannot introduce an arbitrary
|
|
16
|
+
* locale.
|
|
17
|
+
*/
|
|
18
|
+
export declare enum LanguageCode {
|
|
19
|
+
ES = "ES",
|
|
20
|
+
EN = "EN",
|
|
21
|
+
PT = "PT"
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Own category taxonomy for quick responses. A response count is intentionally
|
|
25
|
+
* NOT part of this interface: it is DERIVED (COUNT of active responses in the
|
|
26
|
+
* category) and never persisted.
|
|
27
|
+
*/
|
|
28
|
+
export interface ITicketQuickResponseCategory extends ITicketAuditedEntity {
|
|
29
|
+
name: string;
|
|
30
|
+
displayOrder: number;
|
|
31
|
+
enabled: boolean;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* One prepared text. `applicableCategoryIds`/`applicableSubcategoryIds` point
|
|
35
|
+
* at real `ITicketCategory` rows. `roleIds`/`groupIds`/`userIds` express
|
|
36
|
+
* VISIBILITY only (discoverability), never extra ticket permissions. Empty
|
|
37
|
+
* visibility arrays mean "everyone".
|
|
38
|
+
*/
|
|
39
|
+
export interface ITicketQuickResponse extends ITicketAuditedEntity {
|
|
40
|
+
title: string;
|
|
41
|
+
description?: string;
|
|
42
|
+
categoryId: string;
|
|
43
|
+
content: string;
|
|
44
|
+
contentType: QuickResponseContentType;
|
|
45
|
+
language: LanguageCode;
|
|
46
|
+
/** Catalog variable keys referenced by `content` (e.g. `ticketNumber`, `customerName`). */
|
|
47
|
+
variablesUsed: string[];
|
|
48
|
+
applicableCategoryIds: string[];
|
|
49
|
+
applicableSubcategoryIds: string[];
|
|
50
|
+
applicableRequestTypeIds: string[];
|
|
51
|
+
applicablePortalIds: string[];
|
|
52
|
+
/** Agent-group scope dimension (mirrors `groupIds`/`roleIds`/`userIds`). */
|
|
53
|
+
applicableGroupIds: string[];
|
|
54
|
+
roleIds: string[];
|
|
55
|
+
groupIds: string[];
|
|
56
|
+
userIds: string[];
|
|
57
|
+
status: QuickResponseStatus;
|
|
58
|
+
}
|
|
59
|
+
type AuditKeys = keyof ITicketAuditedEntity;
|
|
60
|
+
export type CreateTicketQuickResponseCategoryDto = Omit<ITicketQuickResponseCategory, AuditKeys>;
|
|
61
|
+
export type UpdateTicketQuickResponseCategoryDto = Partial<CreateTicketQuickResponseCategoryDto>;
|
|
62
|
+
export type CreateTicketQuickResponseDto = Omit<ITicketQuickResponse, AuditKeys>;
|
|
63
|
+
export type UpdateTicketQuickResponseDto = Partial<CreateTicketQuickResponseDto>;
|
|
64
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// ---------------------------------------------------------------------------
|
|
3
|
+
// Ticket quick responses ("Respuestas rápidas").
|
|
4
|
+
//
|
|
5
|
+
// A Tickets-owned library of prepared texts that agents insert manually into a
|
|
6
|
+
// public reply or an internal note. Fully independent from Conversaciones'
|
|
7
|
+
// `IQuickResponse` — there is no cross-reference to Conversaciones in the
|
|
8
|
+
// persisted schema.
|
|
9
|
+
//
|
|
10
|
+
// Category storage is a DEDICATED taxonomy (`ITicketQuickResponseCategory`),
|
|
11
|
+
// NOT a reuse of `ITicketCategory`. `applicableCategoryIds` /
|
|
12
|
+
// `applicableSubcategoryIds` are the only place this feature relates to
|
|
13
|
+
// `ITicketCategory` (subcategories are child `ticket_categories` rows via
|
|
14
|
+
// `parentId`, not a separate entity).
|
|
15
|
+
// ---------------------------------------------------------------------------
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.LanguageCode = exports.QuickResponseStatus = exports.QuickResponseContentType = void 0;
|
|
18
|
+
/** Whether the response is meant for a customer-visible reply, an internal note, or both. */
|
|
19
|
+
var QuickResponseContentType;
|
|
20
|
+
(function (QuickResponseContentType) {
|
|
21
|
+
QuickResponseContentType["PUBLIC"] = "PUBLIC";
|
|
22
|
+
QuickResponseContentType["INTERNAL"] = "INTERNAL";
|
|
23
|
+
QuickResponseContentType["BOTH"] = "BOTH";
|
|
24
|
+
})(QuickResponseContentType || (exports.QuickResponseContentType = QuickResponseContentType = {}));
|
|
25
|
+
/** Per-response lifecycle status. `DISABLED` keeps the response persisted and assigned to its category. */
|
|
26
|
+
var QuickResponseStatus;
|
|
27
|
+
(function (QuickResponseStatus) {
|
|
28
|
+
QuickResponseStatus["ENABLED"] = "ENABLED";
|
|
29
|
+
QuickResponseStatus["DISABLED"] = "DISABLED";
|
|
30
|
+
})(QuickResponseStatus || (exports.QuickResponseStatus = QuickResponseStatus = {}));
|
|
31
|
+
/**
|
|
32
|
+
* Fixed, closed list of supported content languages. Extending this list is a
|
|
33
|
+
* deliberate, versioned change — a caller cannot introduce an arbitrary
|
|
34
|
+
* locale.
|
|
35
|
+
*/
|
|
36
|
+
var LanguageCode;
|
|
37
|
+
(function (LanguageCode) {
|
|
38
|
+
LanguageCode["ES"] = "ES";
|
|
39
|
+
LanguageCode["EN"] = "EN";
|
|
40
|
+
LanguageCode["PT"] = "PT";
|
|
41
|
+
})(LanguageCode || (exports.LanguageCode = LanguageCode = {}));
|
|
@@ -0,0 +1,459 @@
|
|
|
1
|
+
import { ChannelType } from "../Common/Channels/ChannelType";
|
|
2
|
+
import { ITicketAuditedEntity, TicketPriority, TicketPropertyValue } from "./Common";
|
|
3
|
+
import { TicketConditionOperator } from "./Workflow";
|
|
4
|
+
export declare enum TicketRoutingStrategy {
|
|
5
|
+
ROUND_ROBIN = "ROUND_ROBIN",
|
|
6
|
+
LEAST_BUSY = "LEAST_BUSY",
|
|
7
|
+
MOST_SKILLED = "MOST_SKILLED",
|
|
8
|
+
LONGEST_IDLE = "LONGEST_IDLE",
|
|
9
|
+
MANUAL_PULL = "MANUAL_PULL",
|
|
10
|
+
RANDOM = "RANDOM",
|
|
11
|
+
WEIGHTED = "WEIGHTED"
|
|
12
|
+
}
|
|
13
|
+
/** Marks a queue the platform creates and owns in every space. */
|
|
14
|
+
export declare enum TicketQueueSystemKey {
|
|
15
|
+
/**
|
|
16
|
+
* Catches every ticket that no routing policy routes. It cannot be disabled or
|
|
17
|
+
* deleted and its strategy is always MANUAL_PULL. With no groups configured any
|
|
18
|
+
* agent can pull from it; once groups are set, the usual membership rule applies.
|
|
19
|
+
*/
|
|
20
|
+
FALLBACK = "FALLBACK"
|
|
21
|
+
}
|
|
22
|
+
export declare enum TicketRoutingStatus {
|
|
23
|
+
NOT_ROUTED = "NOT_ROUTED",
|
|
24
|
+
QUEUED = "QUEUED",
|
|
25
|
+
ROUTING = "ROUTING",
|
|
26
|
+
/** @deprecated Assignment is direct: there is no offer/accept flow. Never produced. */
|
|
27
|
+
OFFERED = "OFFERED",
|
|
28
|
+
/** @deprecated Assignment is direct (born ACCEPTED). Never produced. */
|
|
29
|
+
ASSIGNED = "ASSIGNED",
|
|
30
|
+
/** Every assignment (pull, manual, automatic) is direct and lands here. */
|
|
31
|
+
ACCEPTED = "ACCEPTED",
|
|
32
|
+
/** @deprecated There is no offer to decline. Never produced. */
|
|
33
|
+
DECLINED = "DECLINED",
|
|
34
|
+
RETURNED = "RETURNED",
|
|
35
|
+
ESCALATED = "ESCALATED",
|
|
36
|
+
FAILED = "FAILED"
|
|
37
|
+
}
|
|
38
|
+
export declare enum AgentAvailabilityStatus {
|
|
39
|
+
AVAILABLE = "AVAILABLE",
|
|
40
|
+
BUSY = "BUSY",
|
|
41
|
+
AWAY = "AWAY",
|
|
42
|
+
OFFLINE = "OFFLINE"
|
|
43
|
+
}
|
|
44
|
+
export declare enum TicketRoutingConditionGroupOperator {
|
|
45
|
+
AND = "AND",
|
|
46
|
+
OR = "OR"
|
|
47
|
+
}
|
|
48
|
+
export declare enum TicketQueueOrderCriterion {
|
|
49
|
+
SLA_BREACH_AT = "SLA_BREACH_AT",
|
|
50
|
+
PRIORITY = "PRIORITY",
|
|
51
|
+
CREATED_AT = "CREATED_AT",
|
|
52
|
+
DUE_AT = "DUE_AT",
|
|
53
|
+
CUSTOM_FIELD = "CUSTOM_FIELD",
|
|
54
|
+
CALCULATED_SCORE = "CALCULATED_SCORE"
|
|
55
|
+
}
|
|
56
|
+
export declare enum TicketQueueOrderDirection {
|
|
57
|
+
ASC = "ASC",
|
|
58
|
+
DESC = "DESC"
|
|
59
|
+
}
|
|
60
|
+
export declare enum TicketSkillRelaxationMode {
|
|
61
|
+
NEVER = "NEVER",
|
|
62
|
+
AFTER_TIMEOUT = "AFTER_TIMEOUT"
|
|
63
|
+
}
|
|
64
|
+
export declare enum TicketEscalationTrigger {
|
|
65
|
+
QUEUE_WAIT = "QUEUE_WAIT",
|
|
66
|
+
/** @deprecated Assignment is direct: there are no offers to time out. */
|
|
67
|
+
OFFER_TIMEOUT = "OFFER_TIMEOUT",
|
|
68
|
+
SLA_WARNING = "SLA_WARNING",
|
|
69
|
+
SLA_BREACH = "SLA_BREACH",
|
|
70
|
+
NO_ELIGIBLE_AGENT = "NO_ELIGIBLE_AGENT",
|
|
71
|
+
/** @deprecated Assignment is direct: there is no offer to decline. */
|
|
72
|
+
DECLINED = "DECLINED"
|
|
73
|
+
}
|
|
74
|
+
export declare enum TicketEscalationActionType {
|
|
75
|
+
ADD_GROUP = "ADD_GROUP",
|
|
76
|
+
CHANGE_QUEUE = "CHANGE_QUEUE",
|
|
77
|
+
INCREASE_PRIORITY = "INCREASE_PRIORITY",
|
|
78
|
+
NOTIFY_USERS = "NOTIFY_USERS",
|
|
79
|
+
NOTIFY_ROLES = "NOTIFY_ROLES",
|
|
80
|
+
RELAX_OPTIONAL_SKILLS = "RELAX_OPTIONAL_SKILLS",
|
|
81
|
+
ASSIGN_USER = "ASSIGN_USER",
|
|
82
|
+
ASSIGN_GROUP = "ASSIGN_GROUP",
|
|
83
|
+
WEBHOOK = "WEBHOOK"
|
|
84
|
+
}
|
|
85
|
+
export declare enum TicketAssignmentEndReason {
|
|
86
|
+
COMPLETED = "COMPLETED",
|
|
87
|
+
REASSIGNED = "REASSIGNED",
|
|
88
|
+
RETURNED = "RETURNED",
|
|
89
|
+
/** @deprecated Assignment is direct: there is no offer to decline. Never produced. */
|
|
90
|
+
DECLINED = "DECLINED",
|
|
91
|
+
/** @deprecated Assignment is direct: there are no offers to expire. Never produced. */
|
|
92
|
+
EXPIRED = "EXPIRED",
|
|
93
|
+
MANUAL = "MANUAL"
|
|
94
|
+
}
|
|
95
|
+
export interface ITicketRoutingCondition {
|
|
96
|
+
fieldNameKey: string;
|
|
97
|
+
operator: TicketConditionOperator;
|
|
98
|
+
expectedValue?: TicketPropertyValue;
|
|
99
|
+
}
|
|
100
|
+
export interface ITicketRoutingConditionGroup {
|
|
101
|
+
operator: TicketRoutingConditionGroupOperator;
|
|
102
|
+
conditions?: ITicketRoutingCondition[];
|
|
103
|
+
groups?: ITicketRoutingConditionGroup[];
|
|
104
|
+
}
|
|
105
|
+
export interface ITicketQueueOrder {
|
|
106
|
+
criterion: TicketQueueOrderCriterion;
|
|
107
|
+
direction: TicketQueueOrderDirection;
|
|
108
|
+
fieldNameKey?: string;
|
|
109
|
+
weight?: number;
|
|
110
|
+
}
|
|
111
|
+
export interface ITicketSkill extends ITicketAuditedEntity {
|
|
112
|
+
name: string;
|
|
113
|
+
description?: string;
|
|
114
|
+
enabled: boolean;
|
|
115
|
+
}
|
|
116
|
+
export interface ITicketSkillRequirement {
|
|
117
|
+
skillId: string;
|
|
118
|
+
required: boolean;
|
|
119
|
+
priority: number;
|
|
120
|
+
minimumProficiency?: number;
|
|
121
|
+
relaxationMode?: TicketSkillRelaxationMode;
|
|
122
|
+
timeoutMinutes?: number;
|
|
123
|
+
}
|
|
124
|
+
export interface IAgentTicketSkill {
|
|
125
|
+
userId: string;
|
|
126
|
+
skillId: string;
|
|
127
|
+
proficiency?: number;
|
|
128
|
+
priority?: number;
|
|
129
|
+
enabled: boolean;
|
|
130
|
+
validFrom?: Date;
|
|
131
|
+
validUntil?: Date;
|
|
132
|
+
}
|
|
133
|
+
export interface IAgentChannelCapacity {
|
|
134
|
+
channelType?: ChannelType;
|
|
135
|
+
maximumConcurrent: number;
|
|
136
|
+
currentAssignments: number;
|
|
137
|
+
reservedCapacity?: number;
|
|
138
|
+
}
|
|
139
|
+
export interface IAgentRoutingState {
|
|
140
|
+
spaceId: string;
|
|
141
|
+
userId: string;
|
|
142
|
+
status: AgentAvailabilityStatus;
|
|
143
|
+
capacities: IAgentChannelCapacity[];
|
|
144
|
+
activeAssignmentCount: number;
|
|
145
|
+
lastAssignedAt?: Date;
|
|
146
|
+
availableSince?: Date;
|
|
147
|
+
updatedAt: Date;
|
|
148
|
+
}
|
|
149
|
+
export interface ITicketQueue extends ITicketAuditedEntity {
|
|
150
|
+
name: string;
|
|
151
|
+
description?: string;
|
|
152
|
+
enabled: boolean;
|
|
153
|
+
priority: number;
|
|
154
|
+
primaryGroupIds: string[];
|
|
155
|
+
fallbackGroupIds?: string[];
|
|
156
|
+
strategy: TicketRoutingStrategy;
|
|
157
|
+
ordering: ITicketQueueOrder[];
|
|
158
|
+
skillRequirements?: ITicketSkillRequirement[];
|
|
159
|
+
/**
|
|
160
|
+
* How long a ticket may wait in this queue before `escalationPolicyId` starts:
|
|
161
|
+
* escalation starts at the ticket's enqueue time + this value (0 = as soon as it
|
|
162
|
+
* waits). Without it the queue never escalates. Pulling or assigning the ticket
|
|
163
|
+
* stops the clock; re-enqueueing restarts it. Wall-clock minutes (no calendar).
|
|
164
|
+
*/
|
|
165
|
+
maximumWaitMinutes?: number;
|
|
166
|
+
escalationPolicyId?: string;
|
|
167
|
+
/** Set only on a system queue; absent on queues an admin created. */
|
|
168
|
+
systemKey?: TicketQueueSystemKey;
|
|
169
|
+
}
|
|
170
|
+
export interface ITicketRoutingPolicy extends ITicketAuditedEntity {
|
|
171
|
+
name: string;
|
|
172
|
+
description?: string;
|
|
173
|
+
enabled: boolean;
|
|
174
|
+
priority: number;
|
|
175
|
+
conditions?: ITicketRoutingConditionGroup;
|
|
176
|
+
queueId: string;
|
|
177
|
+
strategyOverride?: TicketRoutingStrategy;
|
|
178
|
+
skillRequirements?: ITicketSkillRequirement[];
|
|
179
|
+
validFrom?: Date;
|
|
180
|
+
validUntil?: Date;
|
|
181
|
+
}
|
|
182
|
+
export interface ITicketEscalationAction {
|
|
183
|
+
type: TicketEscalationActionType;
|
|
184
|
+
groupIds?: string[];
|
|
185
|
+
userIds?: string[];
|
|
186
|
+
roleIds?: string[];
|
|
187
|
+
queueId?: string;
|
|
188
|
+
priority?: TicketPriority;
|
|
189
|
+
webhookId?: string;
|
|
190
|
+
}
|
|
191
|
+
export interface ITicketEscalationStep {
|
|
192
|
+
id: string;
|
|
193
|
+
order: number;
|
|
194
|
+
trigger: TicketEscalationTrigger;
|
|
195
|
+
/** Minutes after the escalation started (see ITicketQueue.maximumWaitMinutes) until the first run. Default 0. */
|
|
196
|
+
thresholdMinutes?: number;
|
|
197
|
+
/** Runs again every N minutes after the first one. Without it the step runs once. */
|
|
198
|
+
repeatEveryMinutes?: number;
|
|
199
|
+
/** Cap on runs per stay in the queue (a re-enqueue starts a new stay). */
|
|
200
|
+
maximumExecutions?: number;
|
|
201
|
+
actions: ITicketEscalationAction[];
|
|
202
|
+
}
|
|
203
|
+
export interface ITicketEscalationPolicy extends ITicketAuditedEntity {
|
|
204
|
+
name: string;
|
|
205
|
+
description?: string;
|
|
206
|
+
enabled: boolean;
|
|
207
|
+
steps: ITicketEscalationStep[];
|
|
208
|
+
}
|
|
209
|
+
export interface ITicketAssignment {
|
|
210
|
+
id: string;
|
|
211
|
+
spaceId: string;
|
|
212
|
+
ticketId: string;
|
|
213
|
+
queueId?: string;
|
|
214
|
+
groupId?: string;
|
|
215
|
+
agentId?: string;
|
|
216
|
+
status: TicketRoutingStatus;
|
|
217
|
+
assignedAt?: Date;
|
|
218
|
+
acceptedAt?: Date;
|
|
219
|
+
endedAt?: Date;
|
|
220
|
+
endedReason?: TicketAssignmentEndReason;
|
|
221
|
+
assignedBy?: string;
|
|
222
|
+
routingDecisionId?: string;
|
|
223
|
+
}
|
|
224
|
+
export interface ITicketRoutingCandidate {
|
|
225
|
+
agentId: string;
|
|
226
|
+
eligible: boolean;
|
|
227
|
+
score?: number;
|
|
228
|
+
matchedSkillIds: string[];
|
|
229
|
+
missingSkillIds?: string[];
|
|
230
|
+
availableCapacity?: number;
|
|
231
|
+
exclusionReasons?: string[];
|
|
232
|
+
}
|
|
233
|
+
export interface ITicketRoutingDecision {
|
|
234
|
+
id: string;
|
|
235
|
+
spaceId: string;
|
|
236
|
+
ticketId: string;
|
|
237
|
+
attemptId: string;
|
|
238
|
+
policyId?: string;
|
|
239
|
+
queueId: string;
|
|
240
|
+
strategy: TicketRoutingStrategy;
|
|
241
|
+
selectedAgentId?: string;
|
|
242
|
+
selectedGroupId?: string;
|
|
243
|
+
candidates?: ITicketRoutingCandidate[];
|
|
244
|
+
matchedSkillIds: string[];
|
|
245
|
+
relaxedSkillIds?: string[];
|
|
246
|
+
reasonCode: string;
|
|
247
|
+
explanation?: string;
|
|
248
|
+
decidedAt: Date;
|
|
249
|
+
}
|
|
250
|
+
export interface ITicketRoutingAttempt {
|
|
251
|
+
id: string;
|
|
252
|
+
spaceId: string;
|
|
253
|
+
ticketId: string;
|
|
254
|
+
queueId?: string;
|
|
255
|
+
status: TicketRoutingStatus;
|
|
256
|
+
startedAt: Date;
|
|
257
|
+
completedAt?: Date;
|
|
258
|
+
trigger: string;
|
|
259
|
+
decisionId?: string;
|
|
260
|
+
errorCode?: string;
|
|
261
|
+
errorMessage?: string;
|
|
262
|
+
}
|
|
263
|
+
export interface ITicketEscalationExecution {
|
|
264
|
+
id: string;
|
|
265
|
+
spaceId: string;
|
|
266
|
+
ticketId: string;
|
|
267
|
+
policyId: string;
|
|
268
|
+
stepId: string;
|
|
269
|
+
executedAt: Date;
|
|
270
|
+
actionsExecuted: TicketEscalationActionType[];
|
|
271
|
+
error?: string;
|
|
272
|
+
}
|
|
273
|
+
export interface ITicketRoutingState {
|
|
274
|
+
status: TicketRoutingStatus;
|
|
275
|
+
queueId?: string;
|
|
276
|
+
policyId?: string;
|
|
277
|
+
currentAssignmentId?: string;
|
|
278
|
+
enqueuedAt?: Date;
|
|
279
|
+
assignedAt?: Date;
|
|
280
|
+
acceptedAt?: Date;
|
|
281
|
+
priorityScore?: number;
|
|
282
|
+
nextEscalationAt?: Date;
|
|
283
|
+
requiredSkills?: ITicketSkillRequirement[];
|
|
284
|
+
lastDecisionId?: string;
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* Body of POST /tickets/{id}/routing/enqueue. `queueId` is optional in the
|
|
288
|
+
* contract for automatic routing (the router picks the queue); until that
|
|
289
|
+
* exists the endpoint requires it and answers 422 without it.
|
|
290
|
+
*/
|
|
291
|
+
export interface IEnqueueTicketDto {
|
|
292
|
+
expectedVersion: number;
|
|
293
|
+
queueId?: string;
|
|
294
|
+
reason?: string;
|
|
295
|
+
}
|
|
296
|
+
export interface IManualRouteTicketDto {
|
|
297
|
+
expectedVersion: number;
|
|
298
|
+
queueId?: string;
|
|
299
|
+
groupId?: string;
|
|
300
|
+
agentId?: string;
|
|
301
|
+
reason?: string;
|
|
302
|
+
}
|
|
303
|
+
export interface ICreateTicketQueueDto {
|
|
304
|
+
name: string;
|
|
305
|
+
description?: string;
|
|
306
|
+
enabled: boolean;
|
|
307
|
+
priority: number;
|
|
308
|
+
primaryGroupIds: string[];
|
|
309
|
+
fallbackGroupIds?: string[];
|
|
310
|
+
strategy: TicketRoutingStrategy;
|
|
311
|
+
ordering: ITicketQueueOrder[];
|
|
312
|
+
skillRequirements?: ITicketSkillRequirement[];
|
|
313
|
+
maximumWaitMinutes?: number;
|
|
314
|
+
escalationPolicyId?: string;
|
|
315
|
+
}
|
|
316
|
+
export type IUpdateTicketQueueDto = Partial<ICreateTicketQueueDto>;
|
|
317
|
+
export interface ICreateTicketSkillDto {
|
|
318
|
+
name: string;
|
|
319
|
+
description?: string;
|
|
320
|
+
enabled?: boolean;
|
|
321
|
+
}
|
|
322
|
+
export type IUpdateTicketSkillDto = Partial<ICreateTicketSkillDto>;
|
|
323
|
+
export interface ICreateTicketEscalationPolicyDto {
|
|
324
|
+
name: string;
|
|
325
|
+
description?: string;
|
|
326
|
+
enabled?: boolean;
|
|
327
|
+
steps: ITicketEscalationStep[];
|
|
328
|
+
}
|
|
329
|
+
export type IUpdateTicketEscalationPolicyDto = Partial<ICreateTicketEscalationPolicyDto>;
|
|
330
|
+
export interface ICreateTicketRoutingPolicyDto {
|
|
331
|
+
name: string;
|
|
332
|
+
description?: string;
|
|
333
|
+
enabled: boolean;
|
|
334
|
+
priority: number;
|
|
335
|
+
conditions?: ITicketRoutingConditionGroup;
|
|
336
|
+
queueId: string;
|
|
337
|
+
strategyOverride?: TicketRoutingStrategy;
|
|
338
|
+
skillRequirements?: ITicketSkillRequirement[];
|
|
339
|
+
validFrom?: Date;
|
|
340
|
+
validUntil?: Date;
|
|
341
|
+
}
|
|
342
|
+
export type IUpdateTicketRoutingPolicyDto = Partial<ICreateTicketRoutingPolicyDto>;
|
|
343
|
+
export interface IReorderTicketRoutingPoliciesDto {
|
|
344
|
+
orderedIds: string[];
|
|
345
|
+
}
|
|
346
|
+
export declare enum TicketSkillWarningCode {
|
|
347
|
+
ENABLED_BUT_UNASSIGNED = "ENABLED_BUT_UNASSIGNED",
|
|
348
|
+
DISABLED_BUT_REFERENCED = "DISABLED_BUT_REFERENCED",
|
|
349
|
+
REQUIRED_BY_QUEUE_BUT_UNMET = "REQUIRED_BY_QUEUE_BUT_UNMET"
|
|
350
|
+
}
|
|
351
|
+
export interface ITicketSkillUsageSummary {
|
|
352
|
+
agentsCount: number;
|
|
353
|
+
queuesCount: number;
|
|
354
|
+
policiesCount: number;
|
|
355
|
+
}
|
|
356
|
+
export interface ITicketSkillUsageRef {
|
|
357
|
+
id: string;
|
|
358
|
+
name: string;
|
|
359
|
+
}
|
|
360
|
+
export interface ITicketSkillUsage {
|
|
361
|
+
agents: number;
|
|
362
|
+
queues: ITicketSkillUsageRef[];
|
|
363
|
+
policies: ITicketSkillUsageRef[];
|
|
364
|
+
}
|
|
365
|
+
export interface ITicketSkillWithUsage extends ITicketSkill {
|
|
366
|
+
usage: ITicketSkillUsageSummary;
|
|
367
|
+
warnings: TicketSkillWarningCode[];
|
|
368
|
+
}
|
|
369
|
+
export interface ICreateAgentTicketSkillDto {
|
|
370
|
+
userId: string;
|
|
371
|
+
skillId: string;
|
|
372
|
+
proficiency?: number;
|
|
373
|
+
priority?: number;
|
|
374
|
+
enabled?: boolean;
|
|
375
|
+
validFrom?: Date;
|
|
376
|
+
validUntil?: Date;
|
|
377
|
+
}
|
|
378
|
+
export type IUpdateAgentTicketSkillDto = Partial<Omit<ICreateAgentTicketSkillDto, "userId" | "skillId">>;
|
|
379
|
+
export interface IAgentChannelCapacityConfig {
|
|
380
|
+
id: string;
|
|
381
|
+
userId: string;
|
|
382
|
+
channelType?: ChannelType;
|
|
383
|
+
maximumConcurrent: number;
|
|
384
|
+
reservedCapacity?: number;
|
|
385
|
+
effectiveCapacity: number;
|
|
386
|
+
}
|
|
387
|
+
export interface ICreateAgentChannelCapacityDto {
|
|
388
|
+
userId: string;
|
|
389
|
+
channelType?: ChannelType;
|
|
390
|
+
maximumConcurrent: number;
|
|
391
|
+
reservedCapacity?: number;
|
|
392
|
+
}
|
|
393
|
+
export type IUpdateAgentChannelCapacityDto = Partial<Omit<ICreateAgentChannelCapacityDto, "userId" | "channelType">>;
|
|
394
|
+
export interface IEscalationPolicyUsageRef {
|
|
395
|
+
id: string;
|
|
396
|
+
name: string;
|
|
397
|
+
enabled: boolean;
|
|
398
|
+
}
|
|
399
|
+
/** Body of GET /routing/escalation-policies/{id}/usages. */
|
|
400
|
+
export interface IEscalationPolicyUsage {
|
|
401
|
+
queues: IEscalationPolicyUsageRef[];
|
|
402
|
+
}
|
|
403
|
+
export interface IEscalationPolicyUsageSummary {
|
|
404
|
+
queuesCount: number;
|
|
405
|
+
}
|
|
406
|
+
export interface ITicketQueueUsageRef {
|
|
407
|
+
id: string;
|
|
408
|
+
name: string;
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* Body of GET /routing/queues/{id}/usages: live (non-deleted) resources in the
|
|
412
|
+
* space that point at a work queue. Any non-empty entry blocks DELETE (409
|
|
413
|
+
* QUEUE_IN_USE); disabling is always allowed.
|
|
414
|
+
*/
|
|
415
|
+
export interface ITicketQueueUsages {
|
|
416
|
+
/** Tickets currently waiting in the queue (routing status QUEUED). */
|
|
417
|
+
tickets: number;
|
|
418
|
+
/** Routing policies whose target is the queue. */
|
|
419
|
+
routingPolicies: ITicketQueueUsageRef[];
|
|
420
|
+
/** Escalation steps with a CHANGE_QUEUE action targeting the queue. */
|
|
421
|
+
escalationPolicies: ITicketQueueUsageRef[];
|
|
422
|
+
/** Macros with an ENQUEUE action targeting the queue. */
|
|
423
|
+
macros: ITicketQueueUsageRef[];
|
|
424
|
+
/** Dashboards whose default filter or any widget query filters by the queue. */
|
|
425
|
+
dashboards: ITicketQueueUsageRef[];
|
|
426
|
+
/** Analytics goals whose filter includes the queue. */
|
|
427
|
+
analyticsGoals: ITicketQueueUsageRef[];
|
|
428
|
+
}
|
|
429
|
+
/** Mirror of TicketSkillWarningCode; only one member is needed today. */
|
|
430
|
+
export declare enum EscalationPolicyWarningCode {
|
|
431
|
+
DISABLED_BUT_REFERENCED = "DISABLED_BUT_REFERENCED"
|
|
432
|
+
}
|
|
433
|
+
/** List/get view: the base DTO plus a usage summary and warnings. */
|
|
434
|
+
export interface ITicketEscalationPolicyWithUsage extends ITicketEscalationPolicy {
|
|
435
|
+
usage: IEscalationPolicyUsageSummary;
|
|
436
|
+
warnings: EscalationPolicyWarningCode[];
|
|
437
|
+
}
|
|
438
|
+
export interface ICreateAgentSkillDto {
|
|
439
|
+
userId: string;
|
|
440
|
+
skillId: string;
|
|
441
|
+
proficiency?: number;
|
|
442
|
+
priority?: number;
|
|
443
|
+
enabled?: boolean;
|
|
444
|
+
validFrom?: string;
|
|
445
|
+
validUntil?: string;
|
|
446
|
+
}
|
|
447
|
+
/** `channelType` null means "the agent's global capacity", not "unknown". */
|
|
448
|
+
export interface ICreateAgentCapacityDto {
|
|
449
|
+
userId: string;
|
|
450
|
+
channelType?: number | null;
|
|
451
|
+
maximumConcurrent: number;
|
|
452
|
+
reservedCapacity?: number;
|
|
453
|
+
enabled?: boolean;
|
|
454
|
+
}
|
|
455
|
+
export interface IListAgentSkillsFilters {
|
|
456
|
+
userId?: string;
|
|
457
|
+
skillId?: string;
|
|
458
|
+
enabled?: boolean;
|
|
459
|
+
}
|