@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,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TicketAutomationActionStatus = exports.TicketAutomationEventStatus = exports.TicketAutomationCapabilityKind = exports.TicketAutomationAction = exports.TicketAutomationTrigger = void 0;
|
|
4
|
+
/** Events published by Tickets that may start or resume a Flow execution. */
|
|
5
|
+
var TicketAutomationTrigger;
|
|
6
|
+
(function (TicketAutomationTrigger) {
|
|
7
|
+
TicketAutomationTrigger["TICKET_CREATED"] = "TICKET_CREATED";
|
|
8
|
+
TicketAutomationTrigger["TICKET_UPDATED"] = "TICKET_UPDATED";
|
|
9
|
+
TicketAutomationTrigger["STATUS_CHANGED"] = "STATUS_CHANGED";
|
|
10
|
+
TicketAutomationTrigger["PRIORITY_CHANGED"] = "PRIORITY_CHANGED";
|
|
11
|
+
TicketAutomationTrigger["ASSIGNMENT_CHANGED"] = "ASSIGNMENT_CHANGED";
|
|
12
|
+
TicketAutomationTrigger["CATEGORY_CHANGED"] = "CATEGORY_CHANGED";
|
|
13
|
+
TicketAutomationTrigger["PUBLIC_MESSAGE_RECEIVED"] = "PUBLIC_MESSAGE_RECEIVED";
|
|
14
|
+
TicketAutomationTrigger["PUBLIC_REPLY_SENT"] = "PUBLIC_REPLY_SENT";
|
|
15
|
+
TicketAutomationTrigger["INTERNAL_NOTE_ADDED"] = "INTERNAL_NOTE_ADDED";
|
|
16
|
+
TicketAutomationTrigger["SLA_WARNING"] = "SLA_WARNING";
|
|
17
|
+
TicketAutomationTrigger["SLA_BREACHED"] = "SLA_BREACHED";
|
|
18
|
+
TicketAutomationTrigger["TICKET_OVERDUE"] = "TICKET_OVERDUE";
|
|
19
|
+
TicketAutomationTrigger["APPROVAL_REQUESTED"] = "APPROVAL_REQUESTED";
|
|
20
|
+
TicketAutomationTrigger["APPROVAL_COMPLETED"] = "APPROVAL_COMPLETED";
|
|
21
|
+
TicketAutomationTrigger["APPROVAL_REJECTED"] = "APPROVAL_REJECTED";
|
|
22
|
+
TicketAutomationTrigger["TASK_CREATED"] = "TASK_CREATED";
|
|
23
|
+
TicketAutomationTrigger["TASK_COMPLETED"] = "TASK_COMPLETED";
|
|
24
|
+
TicketAutomationTrigger["TASK_OVERDUE"] = "TASK_OVERDUE";
|
|
25
|
+
TicketAutomationTrigger["SATISFACTION_RECEIVED"] = "SATISFACTION_RECEIVED";
|
|
26
|
+
TicketAutomationTrigger["TICKET_REOPENED"] = "TICKET_REOPENED";
|
|
27
|
+
TicketAutomationTrigger["TICKET_RESOLVED"] = "TICKET_RESOLVED";
|
|
28
|
+
/** The ticket entered a work queue or moved to another one. */
|
|
29
|
+
TicketAutomationTrigger["TICKET_ENQUEUED"] = "TICKET_ENQUEUED";
|
|
30
|
+
/** A step of an escalation policy ran on the ticket. */
|
|
31
|
+
TicketAutomationTrigger["TICKET_ESCALATED"] = "TICKET_ESCALATED";
|
|
32
|
+
TicketAutomationTrigger["SCHEDULED"] = "SCHEDULED";
|
|
33
|
+
TicketAutomationTrigger["MANUAL"] = "MANUAL";
|
|
34
|
+
})(TicketAutomationTrigger || (exports.TicketAutomationTrigger = TicketAutomationTrigger = {}));
|
|
35
|
+
/** Safe commands exposed by Tickets as Flow action nodes; every command uses normal domain validation. */
|
|
36
|
+
var TicketAutomationAction;
|
|
37
|
+
(function (TicketAutomationAction) {
|
|
38
|
+
TicketAutomationAction["UPDATE_FIELDS"] = "UPDATE_FIELDS";
|
|
39
|
+
TicketAutomationAction["CHANGE_STATUS"] = "CHANGE_STATUS";
|
|
40
|
+
TicketAutomationAction["SET_PRIORITY"] = "SET_PRIORITY";
|
|
41
|
+
TicketAutomationAction["ASSIGN_AGENT"] = "ASSIGN_AGENT";
|
|
42
|
+
TicketAutomationAction["ASSIGN_GROUP"] = "ASSIGN_GROUP";
|
|
43
|
+
TicketAutomationAction["ENQUEUE"] = "ENQUEUE";
|
|
44
|
+
TicketAutomationAction["ADD_TAG"] = "ADD_TAG";
|
|
45
|
+
TicketAutomationAction["REMOVE_TAG"] = "REMOVE_TAG";
|
|
46
|
+
TicketAutomationAction["ADD_INTERNAL_NOTE"] = "ADD_INTERNAL_NOTE";
|
|
47
|
+
TicketAutomationAction["SEND_PUBLIC_REPLY"] = "SEND_PUBLIC_REPLY";
|
|
48
|
+
TicketAutomationAction["SEND_NOTIFICATION"] = "SEND_NOTIFICATION";
|
|
49
|
+
TicketAutomationAction["START_APPROVAL"] = "START_APPROVAL";
|
|
50
|
+
TicketAutomationAction["APPLY_TASK_TEMPLATE"] = "APPLY_TASK_TEMPLATE";
|
|
51
|
+
TicketAutomationAction["LINK_TICKET"] = "LINK_TICKET";
|
|
52
|
+
TicketAutomationAction["CREATE_CHILD_TICKET"] = "CREATE_CHILD_TICKET";
|
|
53
|
+
TicketAutomationAction["MERGE_TICKETS"] = "MERGE_TICKETS";
|
|
54
|
+
TicketAutomationAction["PAUSE_SLA"] = "PAUSE_SLA";
|
|
55
|
+
TicketAutomationAction["RESUME_SLA"] = "RESUME_SLA";
|
|
56
|
+
TicketAutomationAction["CALL_WEBHOOK"] = "CALL_WEBHOOK";
|
|
57
|
+
})(TicketAutomationAction || (exports.TicketAutomationAction = TicketAutomationAction = {}));
|
|
58
|
+
var TicketAutomationCapabilityKind;
|
|
59
|
+
(function (TicketAutomationCapabilityKind) {
|
|
60
|
+
TicketAutomationCapabilityKind["TRIGGER"] = "TRIGGER";
|
|
61
|
+
TicketAutomationCapabilityKind["ACTION"] = "ACTION";
|
|
62
|
+
TicketAutomationCapabilityKind["CONDITION"] = "CONDITION";
|
|
63
|
+
})(TicketAutomationCapabilityKind || (exports.TicketAutomationCapabilityKind = TicketAutomationCapabilityKind = {}));
|
|
64
|
+
var TicketAutomationEventStatus;
|
|
65
|
+
(function (TicketAutomationEventStatus) {
|
|
66
|
+
TicketAutomationEventStatus["PENDING"] = "PENDING";
|
|
67
|
+
TicketAutomationEventStatus["PUBLISHED"] = "PUBLISHED";
|
|
68
|
+
TicketAutomationEventStatus["FAILED"] = "FAILED";
|
|
69
|
+
TicketAutomationEventStatus["DEAD_LETTER"] = "DEAD_LETTER";
|
|
70
|
+
})(TicketAutomationEventStatus || (exports.TicketAutomationEventStatus = TicketAutomationEventStatus = {}));
|
|
71
|
+
var TicketAutomationActionStatus;
|
|
72
|
+
(function (TicketAutomationActionStatus) {
|
|
73
|
+
TicketAutomationActionStatus["ACCEPTED"] = "ACCEPTED";
|
|
74
|
+
TicketAutomationActionStatus["COMPLETED"] = "COMPLETED";
|
|
75
|
+
TicketAutomationActionStatus["SKIPPED"] = "SKIPPED";
|
|
76
|
+
TicketAutomationActionStatus["CONFLICT"] = "CONFLICT";
|
|
77
|
+
TicketAutomationActionStatus["FAILED"] = "FAILED";
|
|
78
|
+
})(TicketAutomationActionStatus || (exports.TicketAutomationActionStatus = TicketAutomationActionStatus = {}));
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { ITicketAuditedEntity, TicketPriority } from './Common';
|
|
2
|
+
import { ITicketFormRequirement } from './Workflow';
|
|
3
|
+
export interface ITicketCategory extends ITicketAuditedEntity {
|
|
4
|
+
name: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
parentCategoryId?: string;
|
|
7
|
+
order: number;
|
|
8
|
+
enabled: boolean;
|
|
9
|
+
defaultPriority?: TicketPriority;
|
|
10
|
+
defaultAssignedGroupId?: string;
|
|
11
|
+
defaultSlaPolicyId?: string;
|
|
12
|
+
securityPolicyId?: string;
|
|
13
|
+
formRequirements?: ITicketFormRequirement[];
|
|
14
|
+
fieldDefinitionIds?: string[];
|
|
15
|
+
layoutIds?: string[];
|
|
16
|
+
}
|
|
17
|
+
export interface ITicketResolutionType extends ITicketAuditedEntity {
|
|
18
|
+
name: string;
|
|
19
|
+
description?: string;
|
|
20
|
+
enabled: boolean;
|
|
21
|
+
order: number;
|
|
22
|
+
formRequirements?: ITicketFormRequirement[];
|
|
23
|
+
fieldDefinitionIds?: string[];
|
|
24
|
+
layoutIds?: string[];
|
|
25
|
+
}
|
|
26
|
+
export interface ICreateTicketCategoryDto {
|
|
27
|
+
name: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
parentCategoryId?: string;
|
|
30
|
+
order?: number;
|
|
31
|
+
enabled?: boolean;
|
|
32
|
+
defaultPriority?: TicketPriority;
|
|
33
|
+
defaultAssignedGroupId?: string;
|
|
34
|
+
defaultSlaPolicyId?: string;
|
|
35
|
+
securityPolicyId?: string;
|
|
36
|
+
formRequirements?: ITicketFormRequirement[];
|
|
37
|
+
fieldDefinitionIds?: string[];
|
|
38
|
+
layoutIds?: string[];
|
|
39
|
+
}
|
|
40
|
+
export interface IUpdateTicketCategoryDto {
|
|
41
|
+
name?: string;
|
|
42
|
+
description?: string | null;
|
|
43
|
+
parentCategoryId?: string | null;
|
|
44
|
+
order?: number;
|
|
45
|
+
enabled?: boolean;
|
|
46
|
+
defaultPriority?: TicketPriority | null;
|
|
47
|
+
defaultAssignedGroupId?: string | null;
|
|
48
|
+
defaultSlaPolicyId?: string | null;
|
|
49
|
+
securityPolicyId?: string | null;
|
|
50
|
+
formRequirements?: ITicketFormRequirement[] | null;
|
|
51
|
+
fieldDefinitionIds?: string[] | null;
|
|
52
|
+
layoutIds?: string[] | null;
|
|
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
|
+
}
|
|
72
|
+
/** Body of GET /categories/{id}/usages. */
|
|
73
|
+
export interface ICategoryUsages {
|
|
74
|
+
subcategoryCount: number;
|
|
75
|
+
requestTypeCount: number;
|
|
76
|
+
fieldCount: number;
|
|
77
|
+
layoutCount: number;
|
|
78
|
+
activeTicketCount: number;
|
|
79
|
+
}
|
|
80
|
+
/** Body of GET /resolution-types/{id}/usages. */
|
|
81
|
+
export interface IResolutionTypeUsages {
|
|
82
|
+
ticketCount: number;
|
|
83
|
+
}
|
|
84
|
+
/** One rejected reference in a 422 from the resolution-type write endpoints. */
|
|
85
|
+
export interface IResolutionTypeReferenceProblem {
|
|
86
|
+
fieldName: 'fieldDefinitionIds' | 'layoutIds';
|
|
87
|
+
code: 'REFERENCE_NOT_FOUND' | 'REFERENCE_DISABLED';
|
|
88
|
+
message: string;
|
|
89
|
+
}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { IContactInfo } from "../Contacts/contacts";
|
|
2
|
+
export declare enum TicketStage {
|
|
3
|
+
NEW = "NEW",
|
|
4
|
+
ACTIVE = "ACTIVE",
|
|
5
|
+
RESOLVED = "RESOLVED",
|
|
6
|
+
CLOSED = "CLOSED",
|
|
7
|
+
CANCELLED = "CANCELLED"
|
|
8
|
+
}
|
|
9
|
+
export declare enum TicketPriority {
|
|
10
|
+
LOW = "LOW",
|
|
11
|
+
MEDIUM = "MEDIUM",
|
|
12
|
+
HIGH = "HIGH",
|
|
13
|
+
URGENT = "URGENT"
|
|
14
|
+
}
|
|
15
|
+
export declare enum TicketOrigin {
|
|
16
|
+
MANUAL = "MANUAL",
|
|
17
|
+
API = "API",
|
|
18
|
+
IMPORT = "IMPORT",
|
|
19
|
+
AUTOMATION = "AUTOMATION",
|
|
20
|
+
CONVERSATION = "CONVERSATION",
|
|
21
|
+
WEB_FORM = "WEB_FORM",
|
|
22
|
+
SOCIAL_MEDIA = "SOCIAL_MEDIA",
|
|
23
|
+
EMAIL = "EMAIL",
|
|
24
|
+
PHONE = "PHONE",
|
|
25
|
+
OTHER = "OTHER"
|
|
26
|
+
}
|
|
27
|
+
export declare enum TicketAccessLevel {
|
|
28
|
+
ALL = "ALL",
|
|
29
|
+
GROUP = "GROUP",
|
|
30
|
+
AGENT = "AGENT",
|
|
31
|
+
OWN = "OWN"
|
|
32
|
+
}
|
|
33
|
+
export type TicketPropertyPrimitive = string | number | boolean | Date | null;
|
|
34
|
+
export type TicketPropertyValue = TicketPropertyPrimitive | TicketPropertyValue[] | {
|
|
35
|
+
[key: string]: TicketPropertyValue;
|
|
36
|
+
};
|
|
37
|
+
export interface ITicketProperty {
|
|
38
|
+
nameKey: string;
|
|
39
|
+
value: TicketPropertyValue;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Referencia liviana de una etiqueta tal como aparece embebida en un ticket
|
|
43
|
+
* (solo lo necesario para pintarla). El catálogo administrable usa ITicketTag.
|
|
44
|
+
*/
|
|
45
|
+
export interface ITicketTagInfo {
|
|
46
|
+
id: string;
|
|
47
|
+
name: string;
|
|
48
|
+
color?: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Etiqueta administrable del catálogo. Shape propio (no extiende
|
|
52
|
+
* ITicketAuditedEntity a propósito): solo expone lo necesario para administrar
|
|
53
|
+
* el catálogo, sin `spaceId` ni autores (createdBy/updatedBy), que quedan
|
|
54
|
+
* internos al backend. Las fechas son opcionales porque una etiqueta recién
|
|
55
|
+
* creada aún no tiene `updatedAt`. La unicidad de nombre (con espacios
|
|
56
|
+
* normalizados e insensible a mayúsculas/minúsculas) es responsabilidad del
|
|
57
|
+
* backend, no del contrato.
|
|
58
|
+
*/
|
|
59
|
+
export interface ITicketTag {
|
|
60
|
+
id: string;
|
|
61
|
+
name: string;
|
|
62
|
+
color?: string;
|
|
63
|
+
description?: string;
|
|
64
|
+
enabled: boolean;
|
|
65
|
+
createdAt?: Date;
|
|
66
|
+
updatedAt?: Date;
|
|
67
|
+
}
|
|
68
|
+
export interface ICreateTicketTagDto {
|
|
69
|
+
name: string;
|
|
70
|
+
color?: string;
|
|
71
|
+
description?: string;
|
|
72
|
+
}
|
|
73
|
+
export interface IUpdateTicketTagDto {
|
|
74
|
+
name?: string;
|
|
75
|
+
color?: string | null;
|
|
76
|
+
description?: string | null;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Proyección de consulta: el catálogo con la cantidad de usos y la última
|
|
80
|
+
* utilización. No se persiste en la entidad; el backend la calcula por join
|
|
81
|
+
* sobre las asociaciones ticket↔etiqueta.
|
|
82
|
+
*/
|
|
83
|
+
export interface ITicketTagWithUsage extends ITicketTag {
|
|
84
|
+
usageCount?: number;
|
|
85
|
+
lastUsedAt?: Date;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Dependencias de una etiqueta: dónde se usa. Sirve para mostrar el impacto
|
|
89
|
+
* antes de desactivarla o eliminarla.
|
|
90
|
+
*/
|
|
91
|
+
export interface ITicketTagDependencies {
|
|
92
|
+
tagId: string;
|
|
93
|
+
tickets: number;
|
|
94
|
+
views: number;
|
|
95
|
+
automations: number;
|
|
96
|
+
macros: number;
|
|
97
|
+
}
|
|
98
|
+
/** Reemplaza/fusiona una etiqueta por otra: reasigna los usos y desactiva la fuente. */
|
|
99
|
+
export interface IMergeTicketTagsDto {
|
|
100
|
+
sourceTagId: string;
|
|
101
|
+
targetTagId: string;
|
|
102
|
+
}
|
|
103
|
+
export interface IMergeTicketTagsResult {
|
|
104
|
+
targetTagId: string;
|
|
105
|
+
mergedSourceTagId: string;
|
|
106
|
+
reassignedUsages: number;
|
|
107
|
+
}
|
|
108
|
+
export interface ITicketExternalReference {
|
|
109
|
+
system: string;
|
|
110
|
+
externalId: string;
|
|
111
|
+
externalUrl?: string;
|
|
112
|
+
lastSyncedAt?: Date;
|
|
113
|
+
}
|
|
114
|
+
export interface ITicketAttachment {
|
|
115
|
+
id: string;
|
|
116
|
+
spaceId: string;
|
|
117
|
+
ticketId: string;
|
|
118
|
+
fileName: string;
|
|
119
|
+
mimeType: string;
|
|
120
|
+
sizeBytes: number;
|
|
121
|
+
storageKey: string;
|
|
122
|
+
downloadUrl?: string;
|
|
123
|
+
checksum?: string;
|
|
124
|
+
/**
|
|
125
|
+
* Whether the attachment is visible to the customer (`true`) or internal to
|
|
126
|
+
* the agent side (`false`) — mirrors `isPublic` on `ITicketNote`.
|
|
127
|
+
*/
|
|
128
|
+
isPublic: boolean;
|
|
129
|
+
createdAt: Date;
|
|
130
|
+
createdBy: string;
|
|
131
|
+
deletedAt?: Date;
|
|
132
|
+
deletedBy?: string;
|
|
133
|
+
}
|
|
134
|
+
export interface ITicketAuditedEntity {
|
|
135
|
+
id: string;
|
|
136
|
+
spaceId: string;
|
|
137
|
+
createdAt: Date;
|
|
138
|
+
createdBy: string;
|
|
139
|
+
updatedAt?: Date;
|
|
140
|
+
updatedBy?: string;
|
|
141
|
+
deletedAt?: Date;
|
|
142
|
+
deletedBy?: string;
|
|
143
|
+
}
|
|
144
|
+
export type ITicketContactProjection = IContactInfo;
|
|
145
|
+
export interface ITicketDateRange {
|
|
146
|
+
from: Date;
|
|
147
|
+
to: Date;
|
|
148
|
+
}
|
|
149
|
+
export interface ITicketMetricPoint {
|
|
150
|
+
date: Date;
|
|
151
|
+
value: number;
|
|
152
|
+
}
|
|
153
|
+
export interface ITicketMetricGroup {
|
|
154
|
+
key: string;
|
|
155
|
+
label: string;
|
|
156
|
+
value: number;
|
|
157
|
+
/**
|
|
158
|
+
* Breakdown by the query's second non-TIME dimension (e.g. DAY_OF_WEEK × HOUR_OF_DAY for a
|
|
159
|
+
* HEATMAP). The outer group is a value of the first dimension and `value` is the total of its
|
|
160
|
+
* sub-groups. Absent for single-dimension queries.
|
|
161
|
+
*/
|
|
162
|
+
groups?: ITicketMetricGroup[];
|
|
163
|
+
}
|
|
164
|
+
/** The stored value of a FILE custom field. The blob lives under
|
|
165
|
+
* tickets/{ticketId}/files/ and is written through media-api. */
|
|
166
|
+
export interface ITicketFileValue {
|
|
167
|
+
url: string;
|
|
168
|
+
storageKey: string;
|
|
169
|
+
fileName: string;
|
|
170
|
+
mimeType: string;
|
|
171
|
+
sizeBytes: number;
|
|
172
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TicketAccessLevel = exports.TicketOrigin = exports.TicketPriority = exports.TicketStage = void 0;
|
|
4
|
+
var TicketStage;
|
|
5
|
+
(function (TicketStage) {
|
|
6
|
+
TicketStage["NEW"] = "NEW";
|
|
7
|
+
TicketStage["ACTIVE"] = "ACTIVE";
|
|
8
|
+
TicketStage["RESOLVED"] = "RESOLVED";
|
|
9
|
+
TicketStage["CLOSED"] = "CLOSED";
|
|
10
|
+
TicketStage["CANCELLED"] = "CANCELLED";
|
|
11
|
+
})(TicketStage || (exports.TicketStage = TicketStage = {}));
|
|
12
|
+
var TicketPriority;
|
|
13
|
+
(function (TicketPriority) {
|
|
14
|
+
TicketPriority["LOW"] = "LOW";
|
|
15
|
+
TicketPriority["MEDIUM"] = "MEDIUM";
|
|
16
|
+
TicketPriority["HIGH"] = "HIGH";
|
|
17
|
+
TicketPriority["URGENT"] = "URGENT";
|
|
18
|
+
})(TicketPriority || (exports.TicketPriority = TicketPriority = {}));
|
|
19
|
+
var TicketOrigin;
|
|
20
|
+
(function (TicketOrigin) {
|
|
21
|
+
TicketOrigin["MANUAL"] = "MANUAL";
|
|
22
|
+
TicketOrigin["API"] = "API";
|
|
23
|
+
TicketOrigin["IMPORT"] = "IMPORT";
|
|
24
|
+
TicketOrigin["AUTOMATION"] = "AUTOMATION";
|
|
25
|
+
TicketOrigin["CONVERSATION"] = "CONVERSATION";
|
|
26
|
+
TicketOrigin["WEB_FORM"] = "WEB_FORM";
|
|
27
|
+
TicketOrigin["SOCIAL_MEDIA"] = "SOCIAL_MEDIA";
|
|
28
|
+
TicketOrigin["EMAIL"] = "EMAIL";
|
|
29
|
+
TicketOrigin["PHONE"] = "PHONE";
|
|
30
|
+
TicketOrigin["OTHER"] = "OTHER";
|
|
31
|
+
})(TicketOrigin || (exports.TicketOrigin = TicketOrigin = {}));
|
|
32
|
+
var TicketAccessLevel;
|
|
33
|
+
(function (TicketAccessLevel) {
|
|
34
|
+
TicketAccessLevel["ALL"] = "ALL";
|
|
35
|
+
TicketAccessLevel["GROUP"] = "GROUP";
|
|
36
|
+
TicketAccessLevel["AGENT"] = "AGENT";
|
|
37
|
+
TicketAccessLevel["OWN"] = "OWN";
|
|
38
|
+
})(TicketAccessLevel || (exports.TicketAccessLevel = TicketAccessLevel = {}));
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { MessageDirection, MessageVisibility, MessageType } from '../Common/Messages/Message';
|
|
2
|
+
import { ChannelType } from '../Common/Channels/ChannelType';
|
|
3
|
+
import { ITicketActivity } from './Workflow';
|
|
4
|
+
export declare enum TicketConversationRole {
|
|
5
|
+
PRIMARY = "PRIMARY",
|
|
6
|
+
CUSTOMER = "CUSTOMER",
|
|
7
|
+
INTERNAL_DISCUSSION = "INTERNAL_DISCUSSION",
|
|
8
|
+
EXTERNAL_COLLABORATION = "EXTERNAL_COLLABORATION"
|
|
9
|
+
}
|
|
10
|
+
export interface ITicketConversationReference {
|
|
11
|
+
id: string;
|
|
12
|
+
spaceId: string;
|
|
13
|
+
ticketId: string;
|
|
14
|
+
conversationId: string;
|
|
15
|
+
role: TicketConversationRole;
|
|
16
|
+
sourceMessageId?: string;
|
|
17
|
+
channelType?: ChannelType;
|
|
18
|
+
channelId?: string;
|
|
19
|
+
isPrimary: boolean;
|
|
20
|
+
linkedAt: Date;
|
|
21
|
+
linkedBy?: string;
|
|
22
|
+
unlinkedAt?: Date;
|
|
23
|
+
unlinkedBy?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare enum TicketMessageActorType {
|
|
26
|
+
CONTACT = "CONTACT",
|
|
27
|
+
AGENT = "AGENT",
|
|
28
|
+
BOT = "BOT",
|
|
29
|
+
SYSTEM = "SYSTEM",
|
|
30
|
+
EXTERNAL_COLLABORATOR = "EXTERNAL_COLLABORATOR"
|
|
31
|
+
}
|
|
32
|
+
export declare enum TicketMessageEventType {
|
|
33
|
+
CREATED = "CREATED",
|
|
34
|
+
UPDATED = "UPDATED",
|
|
35
|
+
DELETED = "DELETED",
|
|
36
|
+
DELIVERY_STATUS_CHANGED = "DELIVERY_STATUS_CHANGED"
|
|
37
|
+
}
|
|
38
|
+
export interface ITicketMessageEvent {
|
|
39
|
+
eventId: string;
|
|
40
|
+
spaceId: string;
|
|
41
|
+
ticketId: string;
|
|
42
|
+
conversationId: string;
|
|
43
|
+
messageId: string;
|
|
44
|
+
occurredAt: Date;
|
|
45
|
+
direction: MessageDirection;
|
|
46
|
+
visibility: MessageVisibility;
|
|
47
|
+
actorType: TicketMessageActorType;
|
|
48
|
+
eventType: TicketMessageEventType;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Where a cited message's frozen content came from.
|
|
52
|
+
*
|
|
53
|
+
* There is deliberately no CLIENT value: the content is always resolved
|
|
54
|
+
* server-to-server, never supplied by whoever creates the ticket.
|
|
55
|
+
*/
|
|
56
|
+
export declare enum TicketMessageSnapshotSource {
|
|
57
|
+
/** Row written before server-side resolution existed; `snapshot` is null. */
|
|
58
|
+
PENDING = "PENDING",
|
|
59
|
+
/** Resolved by the backend against the messages service. */
|
|
60
|
+
SERVICE = "SERVICE"
|
|
61
|
+
}
|
|
62
|
+
export interface ITicketMessageSnapshotAttachment {
|
|
63
|
+
id?: string;
|
|
64
|
+
filename?: string;
|
|
65
|
+
mimeType?: string;
|
|
66
|
+
url?: string;
|
|
67
|
+
isInline?: boolean;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Frozen copy of a message cited as the reason a ticket was opened.
|
|
71
|
+
*
|
|
72
|
+
* It is EVIDENCE, not a cache: it is written once, when the ticket is created, and
|
|
73
|
+
* never refreshed. If the message is edited or deleted afterwards, what the agent
|
|
74
|
+
* cited was this version, and that is precisely what is worth keeping. It also
|
|
75
|
+
* outlives the conversation, whose retention policy may be shorter than the
|
|
76
|
+
* ticket's.
|
|
77
|
+
*
|
|
78
|
+
* It is a deliberate projection, not the raw message: transport noise (mail
|
|
79
|
+
* headers, delivery logs, HTML bodies) is dropped, and `body` is plain text capped
|
|
80
|
+
* at a fixed length, with `bodyTruncated` recording whether the cap was hit. Anyone
|
|
81
|
+
* needing the whole message opens it in the conversation.
|
|
82
|
+
*/
|
|
83
|
+
export interface ITicketMessageSnapshot {
|
|
84
|
+
messageId: string;
|
|
85
|
+
conversationId: string;
|
|
86
|
+
/** ISO 8601, as the messages service reports it. */
|
|
87
|
+
timestamp: string | null;
|
|
88
|
+
direction: MessageDirection | null;
|
|
89
|
+
type: MessageType | null;
|
|
90
|
+
channel: {
|
|
91
|
+
id?: string;
|
|
92
|
+
name?: string;
|
|
93
|
+
type?: ChannelType;
|
|
94
|
+
} | null;
|
|
95
|
+
/**
|
|
96
|
+
* Who wrote it. For an inbound message the remote contact's name and address are
|
|
97
|
+
* enough; for an outbound one the author is the agent, named by `userId`. `from`
|
|
98
|
+
* keeps the raw channel-agnostic identifier (e.g. `"email:foo@bar.com"`).
|
|
99
|
+
*/
|
|
100
|
+
author: {
|
|
101
|
+
userId?: string;
|
|
102
|
+
name?: string;
|
|
103
|
+
address?: string;
|
|
104
|
+
from?: string;
|
|
105
|
+
};
|
|
106
|
+
/** Only for channels that carry one, such as email. */
|
|
107
|
+
subject?: string;
|
|
108
|
+
body: string | null;
|
|
109
|
+
bodyTruncated: boolean;
|
|
110
|
+
attachments: ITicketMessageSnapshotAttachment[];
|
|
111
|
+
}
|
|
112
|
+
export declare enum TicketTimelineEntryType {
|
|
113
|
+
ACTIVITY = "ACTIVITY",
|
|
114
|
+
MESSAGE = "MESSAGE"
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Pointer a timeline entry carries. Content, when needed, lives in the cited
|
|
118
|
+
* message's `ITicketMessageSnapshot` or in the conversation itself.
|
|
119
|
+
*/
|
|
120
|
+
export interface ITicketMessageReference {
|
|
121
|
+
conversationId: string;
|
|
122
|
+
messageId: string;
|
|
123
|
+
}
|
|
124
|
+
export type ITicketTimelineEntry = {
|
|
125
|
+
id: string;
|
|
126
|
+
type: TicketTimelineEntryType.ACTIVITY;
|
|
127
|
+
occurredAt: Date;
|
|
128
|
+
activity: ITicketActivity;
|
|
129
|
+
} | {
|
|
130
|
+
id: string;
|
|
131
|
+
type: TicketTimelineEntryType.MESSAGE;
|
|
132
|
+
occurredAt: Date;
|
|
133
|
+
messageReference: ITicketMessageReference;
|
|
134
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TicketTimelineEntryType = exports.TicketMessageSnapshotSource = exports.TicketMessageEventType = exports.TicketMessageActorType = exports.TicketConversationRole = void 0;
|
|
4
|
+
var TicketConversationRole;
|
|
5
|
+
(function (TicketConversationRole) {
|
|
6
|
+
TicketConversationRole["PRIMARY"] = "PRIMARY";
|
|
7
|
+
TicketConversationRole["CUSTOMER"] = "CUSTOMER";
|
|
8
|
+
TicketConversationRole["INTERNAL_DISCUSSION"] = "INTERNAL_DISCUSSION";
|
|
9
|
+
TicketConversationRole["EXTERNAL_COLLABORATION"] = "EXTERNAL_COLLABORATION";
|
|
10
|
+
})(TicketConversationRole || (exports.TicketConversationRole = TicketConversationRole = {}));
|
|
11
|
+
var TicketMessageActorType;
|
|
12
|
+
(function (TicketMessageActorType) {
|
|
13
|
+
TicketMessageActorType["CONTACT"] = "CONTACT";
|
|
14
|
+
TicketMessageActorType["AGENT"] = "AGENT";
|
|
15
|
+
TicketMessageActorType["BOT"] = "BOT";
|
|
16
|
+
TicketMessageActorType["SYSTEM"] = "SYSTEM";
|
|
17
|
+
TicketMessageActorType["EXTERNAL_COLLABORATOR"] = "EXTERNAL_COLLABORATOR";
|
|
18
|
+
})(TicketMessageActorType || (exports.TicketMessageActorType = TicketMessageActorType = {}));
|
|
19
|
+
var TicketMessageEventType;
|
|
20
|
+
(function (TicketMessageEventType) {
|
|
21
|
+
TicketMessageEventType["CREATED"] = "CREATED";
|
|
22
|
+
TicketMessageEventType["UPDATED"] = "UPDATED";
|
|
23
|
+
TicketMessageEventType["DELETED"] = "DELETED";
|
|
24
|
+
TicketMessageEventType["DELIVERY_STATUS_CHANGED"] = "DELIVERY_STATUS_CHANGED";
|
|
25
|
+
})(TicketMessageEventType || (exports.TicketMessageEventType = TicketMessageEventType = {}));
|
|
26
|
+
/**
|
|
27
|
+
* Where a cited message's frozen content came from.
|
|
28
|
+
*
|
|
29
|
+
* There is deliberately no CLIENT value: the content is always resolved
|
|
30
|
+
* server-to-server, never supplied by whoever creates the ticket.
|
|
31
|
+
*/
|
|
32
|
+
var TicketMessageSnapshotSource;
|
|
33
|
+
(function (TicketMessageSnapshotSource) {
|
|
34
|
+
/** Row written before server-side resolution existed; `snapshot` is null. */
|
|
35
|
+
TicketMessageSnapshotSource["PENDING"] = "PENDING";
|
|
36
|
+
/** Resolved by the backend against the messages service. */
|
|
37
|
+
TicketMessageSnapshotSource["SERVICE"] = "SERVICE";
|
|
38
|
+
})(TicketMessageSnapshotSource || (exports.TicketMessageSnapshotSource = TicketMessageSnapshotSource = {}));
|
|
39
|
+
var TicketTimelineEntryType;
|
|
40
|
+
(function (TicketTimelineEntryType) {
|
|
41
|
+
TicketTimelineEntryType["ACTIVITY"] = "ACTIVITY";
|
|
42
|
+
TicketTimelineEntryType["MESSAGE"] = "MESSAGE";
|
|
43
|
+
})(TicketTimelineEntryType || (exports.TicketTimelineEntryType = TicketTimelineEntryType = {}));
|