@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,641 @@
|
|
|
1
|
+
import { MessageVisibility } from "../Common/Messages/Message";
|
|
2
|
+
import { ITicketAttachment, ITicketAuditedEntity, ITicketProperty, TicketPriority, TicketPropertyValue, TicketStage } from "./Common";
|
|
3
|
+
import { ITicketFilter, ITicketCursorRequest, ITicketCursorResponse } from "./Api";
|
|
4
|
+
import { ITicketTimelineEntry } from "./Conversation";
|
|
5
|
+
import { ISlaMetricCycle } from "./Sla";
|
|
6
|
+
export declare enum TicketExpand {
|
|
7
|
+
CONTACT = "CONTACT",
|
|
8
|
+
TAGS = "TAGS",
|
|
9
|
+
ATTACHMENTS = "ATTACHMENTS",
|
|
10
|
+
CONVERSATIONS = "CONVERSATIONS",
|
|
11
|
+
SLA = "SLA",
|
|
12
|
+
ROUTING = "ROUTING",
|
|
13
|
+
APPROVAL_SUMMARY = "APPROVAL_SUMMARY",
|
|
14
|
+
TASK_SUMMARY = "TASK_SUMMARY",
|
|
15
|
+
SECURITY = "SECURITY"
|
|
16
|
+
}
|
|
17
|
+
/** Used on detail/list reads to request optional projections without always returning a large ticket graph. */
|
|
18
|
+
export interface ITicketReadOptions {
|
|
19
|
+
expand?: TicketExpand[];
|
|
20
|
+
fieldNameKeys?: string[];
|
|
21
|
+
}
|
|
22
|
+
export declare enum TicketApiErrorCode {
|
|
23
|
+
VALIDATION_ERROR = "VALIDATION_ERROR",
|
|
24
|
+
NOT_FOUND = "NOT_FOUND",
|
|
25
|
+
FORBIDDEN = "FORBIDDEN",
|
|
26
|
+
VERSION_CONFLICT = "VERSION_CONFLICT",
|
|
27
|
+
INVALID_TRANSITION = "INVALID_TRANSITION",
|
|
28
|
+
IDEMPOTENCY_CONFLICT = "IDEMPOTENCY_CONFLICT",
|
|
29
|
+
RATE_LIMITED = "RATE_LIMITED",
|
|
30
|
+
FILE_REJECTED = "FILE_REJECTED",
|
|
31
|
+
SLA_CONFIGURATION_ERROR = "SLA_CONFIGURATION_ERROR",
|
|
32
|
+
BULK_PARTIAL_FAILURE = "BULK_PARTIAL_FAILURE"
|
|
33
|
+
}
|
|
34
|
+
/** Standard error returned by every Tickets endpoint; details contains field-level validation information. */
|
|
35
|
+
export interface ITicketApiError {
|
|
36
|
+
code: TicketApiErrorCode;
|
|
37
|
+
message: string;
|
|
38
|
+
correlationId?: string;
|
|
39
|
+
retryable: boolean;
|
|
40
|
+
currentVersion?: number;
|
|
41
|
+
details?: {
|
|
42
|
+
fieldName?: string;
|
|
43
|
+
code: string;
|
|
44
|
+
message: string;
|
|
45
|
+
}[];
|
|
46
|
+
}
|
|
47
|
+
/** Used to page the unified timeline of domain activity and message references. */
|
|
48
|
+
export interface ITicketTimelineQuery extends ITicketCursorRequest {
|
|
49
|
+
types?: string[];
|
|
50
|
+
occurredFrom?: Date;
|
|
51
|
+
occurredTo?: Date;
|
|
52
|
+
includeInternal?: boolean;
|
|
53
|
+
}
|
|
54
|
+
export type TicketTimelinePage = ITicketCursorResponse<ITicketTimelineEntry>;
|
|
55
|
+
/** Used to publish a public reply or internal note through the authoritative Conversations module. */
|
|
56
|
+
export interface ICreateTicketMessageDto {
|
|
57
|
+
expectedVersion: number;
|
|
58
|
+
conversationId?: string;
|
|
59
|
+
visibility: MessageVisibility;
|
|
60
|
+
text?: string;
|
|
61
|
+
html?: string;
|
|
62
|
+
attachmentIds?: string[];
|
|
63
|
+
replyToMessageId?: string;
|
|
64
|
+
idempotencyKey: string;
|
|
65
|
+
}
|
|
66
|
+
/** Returned after a ticket message is accepted; delivery continues asynchronously in Conversations. */
|
|
67
|
+
export interface ICreateTicketMessageResult {
|
|
68
|
+
ticketId: string;
|
|
69
|
+
conversationId: string;
|
|
70
|
+
messageId: string;
|
|
71
|
+
acceptedAt: Date;
|
|
72
|
+
}
|
|
73
|
+
/** First phase of attachment upload; returns a short-lived destination rather than accepting file bytes in the ticket API. */
|
|
74
|
+
export interface ICreateTicketAttachmentUploadDto {
|
|
75
|
+
fileName: string;
|
|
76
|
+
mimeType: string;
|
|
77
|
+
sizeBytes: number;
|
|
78
|
+
checksum?: string;
|
|
79
|
+
}
|
|
80
|
+
export interface ITicketAttachmentUploadSession {
|
|
81
|
+
uploadId: string;
|
|
82
|
+
uploadUrl: string;
|
|
83
|
+
requiredHeaders?: {
|
|
84
|
+
[key: string]: string;
|
|
85
|
+
};
|
|
86
|
+
expiresAt: Date;
|
|
87
|
+
}
|
|
88
|
+
/** Finalizes a successful upload and associates the immutable attachment metadata with the ticket. */
|
|
89
|
+
export interface ICompleteTicketAttachmentUploadDto {
|
|
90
|
+
expectedVersion: number;
|
|
91
|
+
uploadId: string;
|
|
92
|
+
checksum?: string;
|
|
93
|
+
}
|
|
94
|
+
/** Soft-deletes an attachment; physical retention is controlled by security/retention policy. */
|
|
95
|
+
export interface IDeleteTicketAttachmentDto {
|
|
96
|
+
expectedVersion: number;
|
|
97
|
+
reason?: string;
|
|
98
|
+
}
|
|
99
|
+
export type TicketAttachmentPage = ITicketCursorResponse<ITicketAttachment>;
|
|
100
|
+
export declare enum TicketAttachmentTypeMode {
|
|
101
|
+
RECOMMENDED = "RECOMMENDED",
|
|
102
|
+
ALL = "ALL",
|
|
103
|
+
CUSTOM = "CUSTOM"
|
|
104
|
+
}
|
|
105
|
+
export declare enum TicketAttachmentDownloadMode {
|
|
106
|
+
AUTHENTICATED = "AUTHENTICATED",
|
|
107
|
+
TEMPORARY_LINK = "TEMPORARY_LINK"
|
|
108
|
+
}
|
|
109
|
+
export declare enum TicketSuspiciousFileAction {
|
|
110
|
+
BLOCK = "BLOCK",
|
|
111
|
+
QUARANTINE = "QUARANTINE"
|
|
112
|
+
}
|
|
113
|
+
export interface ITicketAttachmentFileType {
|
|
114
|
+
extension: string;
|
|
115
|
+
mimeType: string;
|
|
116
|
+
}
|
|
117
|
+
export interface ITicketAttachmentPolicyValues {
|
|
118
|
+
agentUploadEnabled: boolean;
|
|
119
|
+
customerUploadEnabled: boolean;
|
|
120
|
+
typeMode: TicketAttachmentTypeMode;
|
|
121
|
+
allowedTypes: ITicketAttachmentFileType[];
|
|
122
|
+
maxFileSizeBytes: number;
|
|
123
|
+
maxFilesPerTicket: number;
|
|
124
|
+
/** null = sin tope total. No es cero ni "ilimitado por defecto". */
|
|
125
|
+
maxTotalSizeBytes: number | null;
|
|
126
|
+
downloadMode: TicketAttachmentDownloadMode;
|
|
127
|
+
temporaryLinkExpirationHours: number;
|
|
128
|
+
}
|
|
129
|
+
export interface ITicketAttachmentPolicyLimits {
|
|
130
|
+
maxFileSizeBytes: number;
|
|
131
|
+
maxFilesPerTicket: number;
|
|
132
|
+
maxTotalSizeBytes: number;
|
|
133
|
+
temporaryLinkExpirationHours: number;
|
|
134
|
+
}
|
|
135
|
+
export interface ITicketAttachmentSecurityInfo {
|
|
136
|
+
checksumEnabled: boolean;
|
|
137
|
+
malwareScanEnabled: boolean;
|
|
138
|
+
suspiciousFileAction: TicketSuspiciousFileAction;
|
|
139
|
+
}
|
|
140
|
+
export interface ITicketAttachmentPolicy extends ITicketAttachmentPolicyValues {
|
|
141
|
+
spaceId: string;
|
|
142
|
+
blockedExtensions: string[];
|
|
143
|
+
limits: ITicketAttachmentPolicyLimits;
|
|
144
|
+
security: ITicketAttachmentSecurityInfo;
|
|
145
|
+
recommendedTypes: ITicketAttachmentFileType[];
|
|
146
|
+
version: number;
|
|
147
|
+
createdAt?: Date;
|
|
148
|
+
createdBy?: string;
|
|
149
|
+
updatedAt?: Date;
|
|
150
|
+
updatedBy?: string;
|
|
151
|
+
}
|
|
152
|
+
export interface IUpdateTicketAttachmentPolicyDto extends ITicketAttachmentPolicyValues {
|
|
153
|
+
expectedVersion: number;
|
|
154
|
+
}
|
|
155
|
+
export declare enum TicketRelationType {
|
|
156
|
+
PARENT = "PARENT",
|
|
157
|
+
CHILD = "CHILD",
|
|
158
|
+
DUPLICATES = "DUPLICATES",
|
|
159
|
+
DUPLICATED_BY = "DUPLICATED_BY",
|
|
160
|
+
BLOCKS = "BLOCKS",
|
|
161
|
+
BLOCKED_BY = "BLOCKED_BY",
|
|
162
|
+
RELATED = "RELATED",
|
|
163
|
+
INCIDENT_OF = "INCIDENT_OF",
|
|
164
|
+
HAS_INCIDENT = "HAS_INCIDENT",
|
|
165
|
+
PROBLEM_OF = "PROBLEM_OF"
|
|
166
|
+
}
|
|
167
|
+
export interface ITicketRelation {
|
|
168
|
+
id: string;
|
|
169
|
+
spaceId: string;
|
|
170
|
+
sourceTicketId: string;
|
|
171
|
+
targetTicketId: string;
|
|
172
|
+
type: TicketRelationType;
|
|
173
|
+
createdAt: Date;
|
|
174
|
+
createdBy: string;
|
|
175
|
+
deletedAt?: Date;
|
|
176
|
+
deletedBy?: string;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Lightweight summary of the OTHER ticket in a relation, embedded in
|
|
180
|
+
* `ITicketRelationView` so a relations list needs no second round trip per row.
|
|
181
|
+
*/
|
|
182
|
+
export interface ITicketRelationTicketSummary {
|
|
183
|
+
id: string;
|
|
184
|
+
number: number;
|
|
185
|
+
title: string;
|
|
186
|
+
statusId: string;
|
|
187
|
+
stage: TicketStage;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* `GET /:id/relations` response row. Unlike the persisted, directional
|
|
191
|
+
* `ITicketRelation` (fixed source -> target), this projects each active relation
|
|
192
|
+
* from the requested ticket's perspective: `type` is inverted when the ticket is
|
|
193
|
+
* the target, and the counterpart ticket is folded in as `relatedTicket`.
|
|
194
|
+
*/
|
|
195
|
+
export interface ITicketRelationView {
|
|
196
|
+
id: string;
|
|
197
|
+
relationId: string;
|
|
198
|
+
type: TicketRelationType;
|
|
199
|
+
comment?: string;
|
|
200
|
+
createdAt: Date;
|
|
201
|
+
createdBy: string;
|
|
202
|
+
relatedTicket: ITicketRelationTicketSummary;
|
|
203
|
+
}
|
|
204
|
+
/** Creates an explicit directional relation between two existing tickets. */
|
|
205
|
+
export interface ICreateTicketRelationDto {
|
|
206
|
+
expectedVersion: number;
|
|
207
|
+
targetTicketId: string;
|
|
208
|
+
type: TicketRelationType;
|
|
209
|
+
comment?: string;
|
|
210
|
+
}
|
|
211
|
+
/** Removes a relationship without deleting either ticket. */
|
|
212
|
+
export interface IDeleteTicketRelationDto {
|
|
213
|
+
expectedVersion: number;
|
|
214
|
+
relationId: string;
|
|
215
|
+
}
|
|
216
|
+
/** Consolidates duplicate tickets into targetTicketId and preserves source history as linked records. */
|
|
217
|
+
export interface IMergeTicketsDto {
|
|
218
|
+
targetTicketId: string;
|
|
219
|
+
sourceTicketIds: string[];
|
|
220
|
+
expectedVersions: {
|
|
221
|
+
ticketId: string;
|
|
222
|
+
version: number;
|
|
223
|
+
}[];
|
|
224
|
+
copyMessages: boolean;
|
|
225
|
+
copyAttachments: boolean;
|
|
226
|
+
closeSourceTickets: boolean;
|
|
227
|
+
comment?: string;
|
|
228
|
+
idempotencyKey: string;
|
|
229
|
+
}
|
|
230
|
+
export interface IMergeTicketsResult {
|
|
231
|
+
targetTicketId: string;
|
|
232
|
+
mergedSourceTicketIds: string[];
|
|
233
|
+
targetVersion: number;
|
|
234
|
+
}
|
|
235
|
+
/** Creates a new ticket from a subset of content while linking it to the original ticket. */
|
|
236
|
+
export interface ISplitTicketDto {
|
|
237
|
+
expectedVersion: number;
|
|
238
|
+
title: string;
|
|
239
|
+
messageIds?: string[];
|
|
240
|
+
attachmentIds?: string[];
|
|
241
|
+
propertyNameKeys?: string[];
|
|
242
|
+
relationType?: TicketRelationType;
|
|
243
|
+
idempotencyKey: string;
|
|
244
|
+
}
|
|
245
|
+
export interface ISplitTicketResult {
|
|
246
|
+
sourceTicketId: string;
|
|
247
|
+
createdTicketId: string;
|
|
248
|
+
relationId: string;
|
|
249
|
+
}
|
|
250
|
+
export declare enum TicketPeriodPreset {
|
|
251
|
+
LAST_24_HOURS = "LAST_24_HOURS",
|
|
252
|
+
LAST_7_DAYS = "LAST_7_DAYS",
|
|
253
|
+
LAST_30_DAYS = "LAST_30_DAYS"
|
|
254
|
+
}
|
|
255
|
+
export declare enum TicketMergeConfirmationLevel {
|
|
256
|
+
CONFIRM = "CONFIRM",
|
|
257
|
+
SUPERVISOR = "SUPERVISOR"
|
|
258
|
+
}
|
|
259
|
+
/** Ticket fields compared by duplicate detection, expressed with the fieldNameKey convention. */
|
|
260
|
+
export type TicketDuplicateMatchField = "title" | "description" | "contactId" | "categoryId";
|
|
261
|
+
/** Space-level configuration for ticket relations and duplicate detection; read model returns effective values. */
|
|
262
|
+
export interface ITicketRelationSettings {
|
|
263
|
+
spaceId: string;
|
|
264
|
+
relationsEnabled: boolean;
|
|
265
|
+
suggestDuplicates: boolean;
|
|
266
|
+
matchFields: string[];
|
|
267
|
+
searchPeriod: TicketPeriodPreset;
|
|
268
|
+
excludedStatusIds: string[];
|
|
269
|
+
minimumScore: number;
|
|
270
|
+
copyMessages: boolean;
|
|
271
|
+
copyAttachments: boolean;
|
|
272
|
+
closeSourceTickets: boolean;
|
|
273
|
+
mergeConfirmation: TicketMergeConfirmationLevel;
|
|
274
|
+
warningMessage?: string;
|
|
275
|
+
version: number;
|
|
276
|
+
createdAt?: Date;
|
|
277
|
+
createdBy?: string;
|
|
278
|
+
updatedAt?: Date;
|
|
279
|
+
updatedBy?: string;
|
|
280
|
+
}
|
|
281
|
+
/** Replaces the whole relation settings record; omitted optional values are cleared. */
|
|
282
|
+
export interface IUpdateTicketRelationSettingsDto {
|
|
283
|
+
expectedVersion: number;
|
|
284
|
+
relationsEnabled: boolean;
|
|
285
|
+
suggestDuplicates: boolean;
|
|
286
|
+
matchFields: TicketDuplicateMatchField[];
|
|
287
|
+
searchPeriod: TicketPeriodPreset;
|
|
288
|
+
excludedStatusIds: string[];
|
|
289
|
+
minimumScore: number;
|
|
290
|
+
copyMessages: boolean;
|
|
291
|
+
copyAttachments: boolean;
|
|
292
|
+
closeSourceTickets: boolean;
|
|
293
|
+
mergeConfirmation: TicketMergeConfirmationLevel;
|
|
294
|
+
warningMessage?: string;
|
|
295
|
+
}
|
|
296
|
+
/** Updates only the provided relation settings; omitted fields keep their stored value. */
|
|
297
|
+
export interface IPatchTicketRelationSettingsDto {
|
|
298
|
+
relationsEnabled?: boolean;
|
|
299
|
+
suggestDuplicates?: boolean;
|
|
300
|
+
matchFields?: TicketDuplicateMatchField[];
|
|
301
|
+
searchPeriod?: TicketPeriodPreset;
|
|
302
|
+
excludedStatusIds?: string[];
|
|
303
|
+
minimumScore?: number;
|
|
304
|
+
copyMessages?: boolean;
|
|
305
|
+
copyAttachments?: boolean;
|
|
306
|
+
closeSourceTickets?: boolean;
|
|
307
|
+
mergeConfirmation?: TicketMergeConfirmationLevel;
|
|
308
|
+
warningMessage?: string | null;
|
|
309
|
+
}
|
|
310
|
+
export declare enum TicketFollowerRole {
|
|
311
|
+
FOLLOWER = "FOLLOWER",
|
|
312
|
+
COLLABORATOR = "COLLABORATOR",
|
|
313
|
+
REQUEST_CC = "REQUEST_CC"
|
|
314
|
+
}
|
|
315
|
+
export interface ITicketFollower {
|
|
316
|
+
id: string;
|
|
317
|
+
ticketId: string;
|
|
318
|
+
contactId?: string;
|
|
319
|
+
userId?: string;
|
|
320
|
+
role: TicketFollowerRole;
|
|
321
|
+
notify: boolean;
|
|
322
|
+
addedAt: Date;
|
|
323
|
+
addedBy: string;
|
|
324
|
+
}
|
|
325
|
+
/** Adds an internal user or external contact that should observe ticket updates. */
|
|
326
|
+
export interface IAddTicketFollowerDto {
|
|
327
|
+
expectedVersion: number;
|
|
328
|
+
contactId?: string;
|
|
329
|
+
userId?: string;
|
|
330
|
+
role: TicketFollowerRole;
|
|
331
|
+
notify?: boolean;
|
|
332
|
+
}
|
|
333
|
+
/** Removes a follower and stops future notifications for that association. */
|
|
334
|
+
export interface IRemoveTicketFollowerDto {
|
|
335
|
+
expectedVersion: number;
|
|
336
|
+
followerId: string;
|
|
337
|
+
}
|
|
338
|
+
export declare enum TicketMacroActionType {
|
|
339
|
+
SET_FIELD = "SET_FIELD",
|
|
340
|
+
SET_PRIORITY = "SET_PRIORITY",
|
|
341
|
+
ASSIGN = "ASSIGN",
|
|
342
|
+
TRANSITION = "TRANSITION",
|
|
343
|
+
ADD_TAG = "ADD_TAG",
|
|
344
|
+
REMOVE_TAG = "REMOVE_TAG",
|
|
345
|
+
ADD_INTERNAL_NOTE = "ADD_INTERNAL_NOTE",
|
|
346
|
+
SEND_PUBLIC_REPLY = "SEND_PUBLIC_REPLY",
|
|
347
|
+
START_APPROVAL = "START_APPROVAL",
|
|
348
|
+
APPLY_TASK_TEMPLATE = "APPLY_TASK_TEMPLATE",
|
|
349
|
+
ENQUEUE = "ENQUEUE"
|
|
350
|
+
}
|
|
351
|
+
export type ITicketMacroAction = {
|
|
352
|
+
type: TicketMacroActionType.SET_FIELD;
|
|
353
|
+
fieldNameKey: string;
|
|
354
|
+
value: TicketPropertyValue;
|
|
355
|
+
} | {
|
|
356
|
+
type: TicketMacroActionType.SET_PRIORITY;
|
|
357
|
+
priority: TicketPriority;
|
|
358
|
+
} | {
|
|
359
|
+
type: TicketMacroActionType.ASSIGN;
|
|
360
|
+
userId: string;
|
|
361
|
+
groupId?: string;
|
|
362
|
+
} | {
|
|
363
|
+
type: TicketMacroActionType.ASSIGN;
|
|
364
|
+
userId?: string;
|
|
365
|
+
groupId: string;
|
|
366
|
+
} | {
|
|
367
|
+
type: TicketMacroActionType.TRANSITION;
|
|
368
|
+
statusId: string;
|
|
369
|
+
} | {
|
|
370
|
+
type: TicketMacroActionType.ADD_TAG;
|
|
371
|
+
tagId: string;
|
|
372
|
+
} | {
|
|
373
|
+
type: TicketMacroActionType.REMOVE_TAG;
|
|
374
|
+
tagId: string;
|
|
375
|
+
} | {
|
|
376
|
+
type: TicketMacroActionType.ADD_INTERNAL_NOTE;
|
|
377
|
+
text: string;
|
|
378
|
+
} | {
|
|
379
|
+
type: TicketMacroActionType.SEND_PUBLIC_REPLY;
|
|
380
|
+
text: string;
|
|
381
|
+
} | {
|
|
382
|
+
type: TicketMacroActionType.START_APPROVAL;
|
|
383
|
+
definitionId: string;
|
|
384
|
+
} | {
|
|
385
|
+
type: TicketMacroActionType.APPLY_TASK_TEMPLATE;
|
|
386
|
+
templateId: string;
|
|
387
|
+
} | {
|
|
388
|
+
type: TicketMacroActionType.ENQUEUE;
|
|
389
|
+
queueId: string;
|
|
390
|
+
};
|
|
391
|
+
export interface ITicketMacro extends ITicketAuditedEntity {
|
|
392
|
+
id: string;
|
|
393
|
+
spaceId: string;
|
|
394
|
+
name: string;
|
|
395
|
+
description?: string;
|
|
396
|
+
actions: ITicketMacroAction[];
|
|
397
|
+
allowedRoleIds?: string[];
|
|
398
|
+
enabled: boolean;
|
|
399
|
+
createdAt: Date;
|
|
400
|
+
createdBy: string;
|
|
401
|
+
updatedAt?: Date;
|
|
402
|
+
updatedBy?: string;
|
|
403
|
+
}
|
|
404
|
+
/** Executes a predefined set of agent actions atomically where possible. */
|
|
405
|
+
export interface IApplyTicketMacroDto {
|
|
406
|
+
expectedVersion: number;
|
|
407
|
+
macroId: string;
|
|
408
|
+
variables?: {
|
|
409
|
+
[key: string]: TicketPropertyValue;
|
|
410
|
+
};
|
|
411
|
+
idempotencyKey: string;
|
|
412
|
+
}
|
|
413
|
+
export interface ICreateTicketMacroDto {
|
|
414
|
+
name: string;
|
|
415
|
+
description?: string;
|
|
416
|
+
actions: ITicketMacroAction[];
|
|
417
|
+
allowedRoleIds?: string[];
|
|
418
|
+
enabled?: boolean;
|
|
419
|
+
}
|
|
420
|
+
export interface IUpdateTicketMacroDto {
|
|
421
|
+
name?: string;
|
|
422
|
+
description?: string;
|
|
423
|
+
actions?: ITicketMacroAction[];
|
|
424
|
+
allowedRoleIds?: string[];
|
|
425
|
+
enabled?: boolean;
|
|
426
|
+
}
|
|
427
|
+
export declare enum TicketBulkOperationType {
|
|
428
|
+
UPDATE = "UPDATE",
|
|
429
|
+
ASSIGN = "ASSIGN",
|
|
430
|
+
TRANSITION = "TRANSITION",
|
|
431
|
+
ADD_TAG = "ADD_TAG",
|
|
432
|
+
REMOVE_TAG = "REMOVE_TAG",
|
|
433
|
+
APPLY_MACRO = "APPLY_MACRO",
|
|
434
|
+
DELETE = "DELETE"
|
|
435
|
+
}
|
|
436
|
+
export interface ITicketBulkTarget {
|
|
437
|
+
ticketIds?: string[];
|
|
438
|
+
filter?: ITicketFilter;
|
|
439
|
+
excludedTicketIds?: string[];
|
|
440
|
+
}
|
|
441
|
+
export interface ITicketBulkUpdatePayload {
|
|
442
|
+
title?: string;
|
|
443
|
+
description?: string;
|
|
444
|
+
priority?: TicketPriority;
|
|
445
|
+
dueAt?: Date;
|
|
446
|
+
categoryId?: string;
|
|
447
|
+
properties?: ITicketProperty[];
|
|
448
|
+
}
|
|
449
|
+
export interface ITicketBulkAssignPayload {
|
|
450
|
+
assigneeId?: string;
|
|
451
|
+
assignedGroupId?: string;
|
|
452
|
+
}
|
|
453
|
+
export interface ITicketBulkTransitionPayload {
|
|
454
|
+
toStatusId: string;
|
|
455
|
+
comment?: string;
|
|
456
|
+
}
|
|
457
|
+
export interface ITicketBulkTagPayload {
|
|
458
|
+
tagId: string;
|
|
459
|
+
}
|
|
460
|
+
export interface ITicketBulkMacroPayload {
|
|
461
|
+
macroId: string;
|
|
462
|
+
variables?: {
|
|
463
|
+
[key: string]: TicketPropertyValue;
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
export interface ITicketBulkDeletePayload {
|
|
467
|
+
reason: string;
|
|
468
|
+
}
|
|
469
|
+
export interface ITicketBulkJobBase {
|
|
470
|
+
target: ITicketBulkTarget;
|
|
471
|
+
expectedVersions?: {
|
|
472
|
+
ticketId: string;
|
|
473
|
+
version: number;
|
|
474
|
+
}[];
|
|
475
|
+
idempotencyKey: string;
|
|
476
|
+
}
|
|
477
|
+
/** Starts an asynchronous operation and requires the payload matching its operation discriminator. */
|
|
478
|
+
export type ICreateTicketBulkJobDto = ITicketBulkJobBase & ({
|
|
479
|
+
operation: TicketBulkOperationType.UPDATE;
|
|
480
|
+
payload: ITicketBulkUpdatePayload;
|
|
481
|
+
} | {
|
|
482
|
+
operation: TicketBulkOperationType.ASSIGN;
|
|
483
|
+
payload: ITicketBulkAssignPayload;
|
|
484
|
+
} | {
|
|
485
|
+
operation: TicketBulkOperationType.TRANSITION;
|
|
486
|
+
payload: ITicketBulkTransitionPayload;
|
|
487
|
+
} | {
|
|
488
|
+
operation: TicketBulkOperationType.ADD_TAG;
|
|
489
|
+
payload: ITicketBulkTagPayload;
|
|
490
|
+
} | {
|
|
491
|
+
operation: TicketBulkOperationType.REMOVE_TAG;
|
|
492
|
+
payload: ITicketBulkTagPayload;
|
|
493
|
+
} | {
|
|
494
|
+
operation: TicketBulkOperationType.APPLY_MACRO;
|
|
495
|
+
payload: ITicketBulkMacroPayload;
|
|
496
|
+
} | {
|
|
497
|
+
operation: TicketBulkOperationType.DELETE;
|
|
498
|
+
payload: ITicketBulkDeletePayload;
|
|
499
|
+
});
|
|
500
|
+
export declare enum TicketJobStatus {
|
|
501
|
+
PENDING = "PENDING",
|
|
502
|
+
PROCESSING = "PROCESSING",
|
|
503
|
+
COMPLETED = "COMPLETED",
|
|
504
|
+
PARTIALLY_COMPLETED = "PARTIALLY_COMPLETED",
|
|
505
|
+
FAILED = "FAILED",
|
|
506
|
+
CANCELLED = "CANCELLED",
|
|
507
|
+
EXPIRED = "EXPIRED"
|
|
508
|
+
}
|
|
509
|
+
export interface ITicketBulkJob {
|
|
510
|
+
id: string;
|
|
511
|
+
spaceId: string;
|
|
512
|
+
operation: TicketBulkOperationType;
|
|
513
|
+
status: TicketJobStatus;
|
|
514
|
+
total?: number;
|
|
515
|
+
processed: number;
|
|
516
|
+
succeeded: number;
|
|
517
|
+
failed: number;
|
|
518
|
+
requestedAt: Date;
|
|
519
|
+
requestedBy: string;
|
|
520
|
+
completedAt?: Date;
|
|
521
|
+
expiresAt?: Date;
|
|
522
|
+
errorFileUrl?: string;
|
|
523
|
+
}
|
|
524
|
+
/** Queries immutable SLA cycles separately from the compact active SLA state on ITicket. */
|
|
525
|
+
export interface ITicketSlaHistoryQuery extends ITicketCursorRequest {
|
|
526
|
+
metricDefinitionIds?: string[];
|
|
527
|
+
breached?: boolean;
|
|
528
|
+
startedFrom?: Date;
|
|
529
|
+
startedTo?: Date;
|
|
530
|
+
}
|
|
531
|
+
export type TicketSlaHistoryPage = ITicketCursorResponse<ISlaMetricCycle>;
|
|
532
|
+
export declare enum TicketExportFormat {
|
|
533
|
+
XLSX = "XLSX",
|
|
534
|
+
CSV = "CSV",
|
|
535
|
+
JSONL = "JSONL"
|
|
536
|
+
}
|
|
537
|
+
/** Starts a permission-aware asynchronous export using the same filter semantics as ticket search. */
|
|
538
|
+
export interface ICreateTicketExportJobDto {
|
|
539
|
+
format: TicketExportFormat;
|
|
540
|
+
filter?: ITicketFilter;
|
|
541
|
+
fieldNameKeys: string[];
|
|
542
|
+
includeTimeline?: boolean;
|
|
543
|
+
includeSlaHistory?: boolean;
|
|
544
|
+
fileName?: string;
|
|
545
|
+
idempotencyKey: string;
|
|
546
|
+
}
|
|
547
|
+
export interface ITicketExportJob {
|
|
548
|
+
id: string;
|
|
549
|
+
spaceId: string;
|
|
550
|
+
format: TicketExportFormat;
|
|
551
|
+
status: TicketJobStatus;
|
|
552
|
+
progress?: number;
|
|
553
|
+
rowCount?: number;
|
|
554
|
+
fileName?: string;
|
|
555
|
+
downloadUrl?: string;
|
|
556
|
+
requestedAt: Date;
|
|
557
|
+
requestedBy: string;
|
|
558
|
+
completedAt?: Date;
|
|
559
|
+
expiresAt?: Date;
|
|
560
|
+
error?: string;
|
|
561
|
+
}
|
|
562
|
+
export declare enum TicketSubscriptionEvent {
|
|
563
|
+
CREATED = "CREATED",
|
|
564
|
+
UPDATED = "UPDATED",
|
|
565
|
+
ASSIGNED = "ASSIGNED",
|
|
566
|
+
STATUS_CHANGED = "STATUS_CHANGED",
|
|
567
|
+
MESSAGE_CREATED = "MESSAGE_CREATED",
|
|
568
|
+
SLA_WARNING = "SLA_WARNING",
|
|
569
|
+
SLA_BREACHED = "SLA_BREACHED",
|
|
570
|
+
RESOLVED = "RESOLVED",
|
|
571
|
+
REOPENED = "REOPENED",
|
|
572
|
+
DELETED = "DELETED"
|
|
573
|
+
}
|
|
574
|
+
export interface ITicketSubscription {
|
|
575
|
+
id: string;
|
|
576
|
+
spaceId: string;
|
|
577
|
+
ticketId?: string;
|
|
578
|
+
filter?: ITicketFilter;
|
|
579
|
+
subscriberUserId?: string;
|
|
580
|
+
subscriberContactId?: string;
|
|
581
|
+
events: TicketSubscriptionEvent[];
|
|
582
|
+
enabled: boolean;
|
|
583
|
+
createdAt: Date;
|
|
584
|
+
}
|
|
585
|
+
/** Creates an in-product/email subscription for a user or contact; not an integration webhook. */
|
|
586
|
+
export interface ICreateTicketSubscriptionDto {
|
|
587
|
+
ticketId?: string;
|
|
588
|
+
filter?: ITicketFilter;
|
|
589
|
+
subscriberUserId?: string;
|
|
590
|
+
subscriberContactId?: string;
|
|
591
|
+
events: TicketSubscriptionEvent[];
|
|
592
|
+
}
|
|
593
|
+
export declare enum TicketWebhookAuthType {
|
|
594
|
+
NONE = "NONE",
|
|
595
|
+
BASIC = "BASIC",
|
|
596
|
+
BEARER = "BEARER",
|
|
597
|
+
API_KEY = "API_KEY",
|
|
598
|
+
HMAC = "HMAC"
|
|
599
|
+
}
|
|
600
|
+
export interface ITicketWebhookEndpoint {
|
|
601
|
+
id: string;
|
|
602
|
+
spaceId: string;
|
|
603
|
+
name: string;
|
|
604
|
+
url: string;
|
|
605
|
+
events: TicketSubscriptionEvent[];
|
|
606
|
+
authType: TicketWebhookAuthType;
|
|
607
|
+
secretReferenceId?: string;
|
|
608
|
+
filter?: ITicketFilter;
|
|
609
|
+
enabled: boolean;
|
|
610
|
+
maxAttempts: number;
|
|
611
|
+
timeoutSeconds: number;
|
|
612
|
+
createdAt: Date;
|
|
613
|
+
createdBy: string;
|
|
614
|
+
}
|
|
615
|
+
export interface ITicketWebhookDelivery {
|
|
616
|
+
id: string;
|
|
617
|
+
webhookId: string;
|
|
618
|
+
eventId: string;
|
|
619
|
+
attempt: number;
|
|
620
|
+
requestedAt: Date;
|
|
621
|
+
respondedAt?: Date;
|
|
622
|
+
responseStatus?: number;
|
|
623
|
+
succeeded: boolean;
|
|
624
|
+
nextRetryAt?: Date;
|
|
625
|
+
error?: string;
|
|
626
|
+
}
|
|
627
|
+
/** Registers an outbound integration endpoint; secrets are referenced, never returned in this contract. */
|
|
628
|
+
export interface ICreateTicketWebhookDto {
|
|
629
|
+
name: string;
|
|
630
|
+
url: string;
|
|
631
|
+
events: TicketSubscriptionEvent[];
|
|
632
|
+
authType: TicketWebhookAuthType;
|
|
633
|
+
secretReferenceId?: string;
|
|
634
|
+
filter?: ITicketFilter;
|
|
635
|
+
maxAttempts?: number;
|
|
636
|
+
timeoutSeconds?: number;
|
|
637
|
+
}
|
|
638
|
+
/** Requests a replay of one failed webhook delivery after configuration is corrected. */
|
|
639
|
+
export interface IRetryTicketWebhookDeliveryDto {
|
|
640
|
+
deliveryId: string;
|
|
641
|
+
}
|