@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,670 @@
|
|
|
1
|
+
import { ChannelType } from "../Common/Channels/ChannelType";
|
|
2
|
+
import { ITicketAuditedEntity, ITicketProperty, TicketPriority, TicketPropertyValue } from "./Common";
|
|
3
|
+
import { ITicketMessageReference } from "./Conversation";
|
|
4
|
+
import type { ITicketCursorResponse } from "./Api";
|
|
5
|
+
import type { ITicketAttachmentUploadSession } from "./AdvancedApi";
|
|
6
|
+
import type { ITicketFieldOption, ITicketFieldValidation, ITicketObjectField, TicketFieldType } from "./Fields";
|
|
7
|
+
export declare enum TicketPortalAuthenticationMode {
|
|
8
|
+
PUBLIC = "PUBLIC",
|
|
9
|
+
OPTIONAL = "OPTIONAL",
|
|
10
|
+
REQUIRED = "REQUIRED"
|
|
11
|
+
}
|
|
12
|
+
export declare enum TicketRequestDraftStatus {
|
|
13
|
+
DRAFT = "DRAFT",
|
|
14
|
+
VALIDATING = "VALIDATING",
|
|
15
|
+
READY = "READY",
|
|
16
|
+
SUBMITTED = "SUBMITTED",
|
|
17
|
+
EXPIRED = "EXPIRED",
|
|
18
|
+
CANCELLED = "CANCELLED"
|
|
19
|
+
}
|
|
20
|
+
export declare enum TicketCustomerAction {
|
|
21
|
+
COMMENT = "COMMENT",
|
|
22
|
+
ADD_ATTACHMENT = "ADD_ATTACHMENT",
|
|
23
|
+
CANCEL = "CANCEL",
|
|
24
|
+
REOPEN = "REOPEN",
|
|
25
|
+
COMPLETE_FORM = "COMPLETE_FORM",
|
|
26
|
+
APPROVE = "APPROVE"
|
|
27
|
+
}
|
|
28
|
+
export declare enum TicketAudienceRuleEffect {
|
|
29
|
+
ALLOW = "ALLOW",
|
|
30
|
+
DENY = "DENY"
|
|
31
|
+
}
|
|
32
|
+
export declare enum TicketNotificationEvent {
|
|
33
|
+
CREATED = "CREATED",
|
|
34
|
+
PUBLIC_REPLY = "PUBLIC_REPLY",
|
|
35
|
+
PUBLIC_STATUS_CHANGED = "PUBLIC_STATUS_CHANGED",
|
|
36
|
+
ACTION_REQUIRED = "ACTION_REQUIRED",
|
|
37
|
+
RESOLVED = "RESOLVED",
|
|
38
|
+
REOPENED = "REOPENED",
|
|
39
|
+
SATISFACTION_REQUESTED = "SATISFACTION_REQUESTED"
|
|
40
|
+
}
|
|
41
|
+
export declare enum TicketDeflectionOutcome {
|
|
42
|
+
SUGGESTION_SHOWN = "SUGGESTION_SHOWN",
|
|
43
|
+
ARTICLE_OPENED = "ARTICLE_OPENED",
|
|
44
|
+
KNOWN_ISSUE_OPENED = "KNOWN_ISSUE_OPENED",
|
|
45
|
+
ABANDONED = "ABANDONED",
|
|
46
|
+
TICKET_CREATED = "TICKET_CREATED"
|
|
47
|
+
}
|
|
48
|
+
export declare enum TicketKnowledgeReferenceType {
|
|
49
|
+
ARTICLE = "ARTICLE",
|
|
50
|
+
COLLECTION = "COLLECTION",
|
|
51
|
+
FOLDER = "FOLDER"
|
|
52
|
+
}
|
|
53
|
+
export interface ITicketPortal extends ITicketAuditedEntity {
|
|
54
|
+
name: string;
|
|
55
|
+
slug: string;
|
|
56
|
+
title: string;
|
|
57
|
+
description?: string;
|
|
58
|
+
logoUrl?: string;
|
|
59
|
+
faviconUrl?: string;
|
|
60
|
+
primaryColor?: string;
|
|
61
|
+
defaultLocale: string;
|
|
62
|
+
supportedLocales?: string[];
|
|
63
|
+
authenticationMode: TicketPortalAuthenticationMode;
|
|
64
|
+
allowTicketCreation: boolean;
|
|
65
|
+
allowTicketTracking: boolean;
|
|
66
|
+
allowComments: boolean;
|
|
67
|
+
allowReopen: boolean;
|
|
68
|
+
allowCancellation: boolean;
|
|
69
|
+
allowAttachments: boolean;
|
|
70
|
+
termsDocumentId?: string;
|
|
71
|
+
privacyDocumentId?: string;
|
|
72
|
+
enabled: boolean;
|
|
73
|
+
}
|
|
74
|
+
export interface ICreateTicketPortalDto {
|
|
75
|
+
name: string;
|
|
76
|
+
slug: string;
|
|
77
|
+
title: string;
|
|
78
|
+
description?: string;
|
|
79
|
+
logoUrl?: string;
|
|
80
|
+
faviconUrl?: string;
|
|
81
|
+
primaryColor?: string;
|
|
82
|
+
defaultLocale: string;
|
|
83
|
+
supportedLocales?: string[];
|
|
84
|
+
authenticationMode: TicketPortalAuthenticationMode;
|
|
85
|
+
allowTicketCreation?: boolean;
|
|
86
|
+
allowTicketTracking?: boolean;
|
|
87
|
+
allowComments?: boolean;
|
|
88
|
+
allowReopen?: boolean;
|
|
89
|
+
allowCancellation?: boolean;
|
|
90
|
+
allowAttachments?: boolean;
|
|
91
|
+
termsDocumentId?: string;
|
|
92
|
+
privacyDocumentId?: string;
|
|
93
|
+
enabled?: boolean;
|
|
94
|
+
}
|
|
95
|
+
export interface IUpdateTicketPortalDto {
|
|
96
|
+
name?: string;
|
|
97
|
+
slug?: string;
|
|
98
|
+
title?: string;
|
|
99
|
+
description?: string | null;
|
|
100
|
+
logoUrl?: string | null;
|
|
101
|
+
faviconUrl?: string | null;
|
|
102
|
+
primaryColor?: string | null;
|
|
103
|
+
defaultLocale?: string;
|
|
104
|
+
supportedLocales?: string[] | null;
|
|
105
|
+
authenticationMode?: TicketPortalAuthenticationMode;
|
|
106
|
+
allowTicketCreation?: boolean;
|
|
107
|
+
allowTicketTracking?: boolean;
|
|
108
|
+
allowComments?: boolean;
|
|
109
|
+
allowReopen?: boolean;
|
|
110
|
+
allowCancellation?: boolean;
|
|
111
|
+
allowAttachments?: boolean;
|
|
112
|
+
termsDocumentId?: string | null;
|
|
113
|
+
privacyDocumentId?: string | null;
|
|
114
|
+
enabled?: boolean;
|
|
115
|
+
}
|
|
116
|
+
export interface ITicketRequestType extends ITicketAuditedEntity {
|
|
117
|
+
name: string;
|
|
118
|
+
description?: string;
|
|
119
|
+
categoryId: string;
|
|
120
|
+
icon?: string;
|
|
121
|
+
formId: string;
|
|
122
|
+
formVersion?: number;
|
|
123
|
+
workflowId?: string;
|
|
124
|
+
defaultPriority?: TicketPriority;
|
|
125
|
+
defaultAssignedGroupId?: string;
|
|
126
|
+
slaPolicyId?: string;
|
|
127
|
+
/**
|
|
128
|
+
* @deprecated Never used. Public status resolution is space-level, not per
|
|
129
|
+
* request type - see the public portal surface. Always undefined; will be
|
|
130
|
+
* removed in a later release.
|
|
131
|
+
*/
|
|
132
|
+
publicStatusSchemeId?: string;
|
|
133
|
+
fieldDefinitionIds?: string[];
|
|
134
|
+
layoutIds?: string[];
|
|
135
|
+
audiencePolicyId?: string;
|
|
136
|
+
enabled: boolean;
|
|
137
|
+
}
|
|
138
|
+
export interface ICreateTicketRequestTypeDto {
|
|
139
|
+
name: string;
|
|
140
|
+
description?: string;
|
|
141
|
+
categoryId: string;
|
|
142
|
+
icon?: string;
|
|
143
|
+
formId?: string;
|
|
144
|
+
formVersion?: number;
|
|
145
|
+
workflowId?: string;
|
|
146
|
+
defaultPriority?: TicketPriority;
|
|
147
|
+
defaultAssignedGroupId?: string;
|
|
148
|
+
slaPolicyId?: string;
|
|
149
|
+
fieldDefinitionIds?: string[];
|
|
150
|
+
layoutIds?: string[];
|
|
151
|
+
audiencePolicyId?: string;
|
|
152
|
+
enabled?: boolean;
|
|
153
|
+
}
|
|
154
|
+
export interface IUpdateTicketRequestTypeDto {
|
|
155
|
+
name?: string;
|
|
156
|
+
description?: string | null;
|
|
157
|
+
categoryId?: string;
|
|
158
|
+
icon?: string | null;
|
|
159
|
+
formId?: string;
|
|
160
|
+
formVersion?: number | null;
|
|
161
|
+
workflowId?: string | null;
|
|
162
|
+
defaultPriority?: TicketPriority | null;
|
|
163
|
+
defaultAssignedGroupId?: string | null;
|
|
164
|
+
slaPolicyId?: string | null;
|
|
165
|
+
fieldDefinitionIds?: string[] | null;
|
|
166
|
+
layoutIds?: string[] | null;
|
|
167
|
+
audiencePolicyId?: string | null;
|
|
168
|
+
enabled?: boolean;
|
|
169
|
+
}
|
|
170
|
+
export interface IServiceCatalog extends ITicketAuditedEntity {
|
|
171
|
+
portalId: string;
|
|
172
|
+
name: string;
|
|
173
|
+
description?: string;
|
|
174
|
+
order?: number;
|
|
175
|
+
enabled: boolean;
|
|
176
|
+
}
|
|
177
|
+
export interface ICreateServiceCatalogDto {
|
|
178
|
+
portalId: string;
|
|
179
|
+
name: string;
|
|
180
|
+
description?: string;
|
|
181
|
+
order?: number;
|
|
182
|
+
enabled?: boolean;
|
|
183
|
+
}
|
|
184
|
+
export interface IUpdateServiceCatalogDto {
|
|
185
|
+
portalId?: string;
|
|
186
|
+
name?: string;
|
|
187
|
+
description?: string | null;
|
|
188
|
+
order?: number | null;
|
|
189
|
+
enabled?: boolean;
|
|
190
|
+
}
|
|
191
|
+
export interface IServiceCatalogSection extends ITicketAuditedEntity {
|
|
192
|
+
catalogId: string;
|
|
193
|
+
parentSectionId?: string;
|
|
194
|
+
name: string;
|
|
195
|
+
description?: string;
|
|
196
|
+
icon?: string;
|
|
197
|
+
order: number;
|
|
198
|
+
enabled: boolean;
|
|
199
|
+
}
|
|
200
|
+
export interface ICreateServiceCatalogSectionDto {
|
|
201
|
+
catalogId: string;
|
|
202
|
+
parentSectionId?: string;
|
|
203
|
+
name: string;
|
|
204
|
+
description?: string;
|
|
205
|
+
icon?: string;
|
|
206
|
+
order?: number;
|
|
207
|
+
enabled?: boolean;
|
|
208
|
+
}
|
|
209
|
+
export interface IUpdateServiceCatalogSectionDto {
|
|
210
|
+
catalogId?: string;
|
|
211
|
+
parentSectionId?: string | null;
|
|
212
|
+
name?: string;
|
|
213
|
+
description?: string | null;
|
|
214
|
+
icon?: string | null;
|
|
215
|
+
order?: number;
|
|
216
|
+
enabled?: boolean;
|
|
217
|
+
}
|
|
218
|
+
export interface IServiceCatalogItem extends ITicketAuditedEntity {
|
|
219
|
+
catalogId: string;
|
|
220
|
+
sectionId?: string;
|
|
221
|
+
requestTypeId: string;
|
|
222
|
+
name: string;
|
|
223
|
+
shortDescription?: string;
|
|
224
|
+
imageUrl?: string;
|
|
225
|
+
order: number;
|
|
226
|
+
estimatedDeliveryMinutes?: number;
|
|
227
|
+
audiencePolicyId?: string;
|
|
228
|
+
enabled: boolean;
|
|
229
|
+
}
|
|
230
|
+
export interface ICreateServiceCatalogItemDto {
|
|
231
|
+
catalogId: string;
|
|
232
|
+
sectionId?: string;
|
|
233
|
+
requestTypeId: string;
|
|
234
|
+
name: string;
|
|
235
|
+
shortDescription?: string;
|
|
236
|
+
imageUrl?: string;
|
|
237
|
+
order?: number;
|
|
238
|
+
estimatedDeliveryMinutes?: number;
|
|
239
|
+
audiencePolicyId?: string;
|
|
240
|
+
enabled?: boolean;
|
|
241
|
+
}
|
|
242
|
+
export interface IUpdateServiceCatalogItemDto {
|
|
243
|
+
catalogId?: string;
|
|
244
|
+
sectionId?: string | null;
|
|
245
|
+
requestTypeId?: string;
|
|
246
|
+
name?: string;
|
|
247
|
+
shortDescription?: string | null;
|
|
248
|
+
imageUrl?: string | null;
|
|
249
|
+
order?: number;
|
|
250
|
+
estimatedDeliveryMinutes?: number | null;
|
|
251
|
+
audiencePolicyId?: string | null;
|
|
252
|
+
enabled?: boolean;
|
|
253
|
+
}
|
|
254
|
+
export interface ITicketAudienceRule {
|
|
255
|
+
id: string;
|
|
256
|
+
effect: TicketAudienceRuleEffect;
|
|
257
|
+
authenticatedOnly?: boolean;
|
|
258
|
+
organizationIds?: string[];
|
|
259
|
+
contactSegmentIds?: string[];
|
|
260
|
+
contactIds?: string[];
|
|
261
|
+
roleIds?: string[];
|
|
262
|
+
countries?: string[];
|
|
263
|
+
}
|
|
264
|
+
export interface ITicketAudiencePolicy extends ITicketAuditedEntity {
|
|
265
|
+
name: string;
|
|
266
|
+
description?: string;
|
|
267
|
+
defaultEffect: TicketAudienceRuleEffect;
|
|
268
|
+
rules: ITicketAudienceRule[];
|
|
269
|
+
enabled: boolean;
|
|
270
|
+
}
|
|
271
|
+
export interface ICreateTicketAudiencePolicyDto {
|
|
272
|
+
name: string;
|
|
273
|
+
description?: string;
|
|
274
|
+
defaultEffect: TicketAudienceRuleEffect;
|
|
275
|
+
rules?: ITicketAudienceRule[];
|
|
276
|
+
enabled?: boolean;
|
|
277
|
+
}
|
|
278
|
+
export interface IUpdateTicketAudiencePolicyDto {
|
|
279
|
+
name?: string;
|
|
280
|
+
description?: string | null;
|
|
281
|
+
defaultEffect?: TicketAudienceRuleEffect;
|
|
282
|
+
rules?: ITicketAudienceRule[];
|
|
283
|
+
enabled?: boolean;
|
|
284
|
+
}
|
|
285
|
+
export interface ITicketRequestDraft {
|
|
286
|
+
id: string;
|
|
287
|
+
spaceId: string;
|
|
288
|
+
portalId: string;
|
|
289
|
+
requestTypeId: string;
|
|
290
|
+
contactId?: string;
|
|
291
|
+
formId: string;
|
|
292
|
+
formVersion?: number;
|
|
293
|
+
formSubmissionId?: string;
|
|
294
|
+
status: TicketRequestDraftStatus;
|
|
295
|
+
createdAt: Date;
|
|
296
|
+
updatedAt?: Date;
|
|
297
|
+
expiresAt: Date;
|
|
298
|
+
submittedTicketId?: string;
|
|
299
|
+
}
|
|
300
|
+
export interface ITicketPublicStatus extends ITicketAuditedEntity {
|
|
301
|
+
name: string;
|
|
302
|
+
description?: string;
|
|
303
|
+
color?: string;
|
|
304
|
+
icon?: string;
|
|
305
|
+
order: number;
|
|
306
|
+
}
|
|
307
|
+
export interface ITicketPublicStatusMapping extends ITicketAuditedEntity {
|
|
308
|
+
schemeId: string;
|
|
309
|
+
publicStatusId: string;
|
|
310
|
+
internalStatusIds: string[];
|
|
311
|
+
}
|
|
312
|
+
export interface ITicketPublicStatusScheme extends ITicketAuditedEntity {
|
|
313
|
+
name: string;
|
|
314
|
+
description?: string;
|
|
315
|
+
defaultPublicStatusId?: string;
|
|
316
|
+
enabled: boolean;
|
|
317
|
+
}
|
|
318
|
+
export interface ICreateTicketPublicStatusDto {
|
|
319
|
+
name: string;
|
|
320
|
+
description?: string;
|
|
321
|
+
color?: string;
|
|
322
|
+
icon?: string;
|
|
323
|
+
order: number;
|
|
324
|
+
}
|
|
325
|
+
export interface IUpdateTicketPublicStatusDto extends Partial<ICreateTicketPublicStatusDto> {
|
|
326
|
+
}
|
|
327
|
+
export interface ICreateTicketPublicStatusSchemeDto {
|
|
328
|
+
name: string;
|
|
329
|
+
description?: string;
|
|
330
|
+
defaultPublicStatusId?: string;
|
|
331
|
+
enabled?: boolean;
|
|
332
|
+
}
|
|
333
|
+
export interface IUpdateTicketPublicStatusSchemeDto extends Partial<ICreateTicketPublicStatusSchemeDto> {
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* `schemeId` is absent on purpose: mappings are a sub-resource of a scheme
|
|
337
|
+
* (`/public-status-schemes/:schemeId/mappings`), so the parent id comes from the
|
|
338
|
+
* path.
|
|
339
|
+
*/
|
|
340
|
+
export interface ICreateTicketPublicStatusMappingDto {
|
|
341
|
+
publicStatusId: string;
|
|
342
|
+
internalStatusIds: string[];
|
|
343
|
+
}
|
|
344
|
+
export interface IUpdateTicketPublicStatusMappingDto extends Partial<ICreateTicketPublicStatusMappingDto> {
|
|
345
|
+
}
|
|
346
|
+
/** Customer-facing projection of ITicketPublicStatus: no audit or tenant fields. */
|
|
347
|
+
export interface ICustomerPublicStatusView {
|
|
348
|
+
id: string;
|
|
349
|
+
name: string;
|
|
350
|
+
description?: string;
|
|
351
|
+
color?: string;
|
|
352
|
+
icon?: string;
|
|
353
|
+
order: number;
|
|
354
|
+
}
|
|
355
|
+
/** Safe customer projection; internal activity, notes, routing and SLA details are intentionally excluded. */
|
|
356
|
+
export interface ICustomerTicketView {
|
|
357
|
+
id: string;
|
|
358
|
+
number: number;
|
|
359
|
+
title: string;
|
|
360
|
+
description?: string;
|
|
361
|
+
contactId: string;
|
|
362
|
+
requestTypeId?: string;
|
|
363
|
+
categoryId: string;
|
|
364
|
+
publicStatus: ICustomerPublicStatusView;
|
|
365
|
+
priority?: TicketPriority;
|
|
366
|
+
publicProperties?: ITicketProperty[];
|
|
367
|
+
version: number;
|
|
368
|
+
createdAt: Date;
|
|
369
|
+
updatedAt?: Date;
|
|
370
|
+
resolvedAt?: Date;
|
|
371
|
+
messages?: ITicketMessageReference[];
|
|
372
|
+
availableActions: TicketCustomerAction[];
|
|
373
|
+
}
|
|
374
|
+
export interface ICustomerTicketFilter {
|
|
375
|
+
/** Mandatory. The surface never serves tickets across contacts. */
|
|
376
|
+
contactId: string;
|
|
377
|
+
search?: string;
|
|
378
|
+
publicStatusIds?: string[];
|
|
379
|
+
requestTypeIds?: string[];
|
|
380
|
+
categoryIds?: string[];
|
|
381
|
+
createdFrom?: Date;
|
|
382
|
+
createdTo?: Date;
|
|
383
|
+
}
|
|
384
|
+
export declare enum CustomerTicketSortField {
|
|
385
|
+
CREATED_AT = "CREATED_AT",
|
|
386
|
+
UPDATED_AT = "UPDATED_AT",
|
|
387
|
+
NUMBER = "NUMBER"
|
|
388
|
+
}
|
|
389
|
+
export interface ICustomerTicketQuery {
|
|
390
|
+
filter: ICustomerTicketFilter;
|
|
391
|
+
sort?: {
|
|
392
|
+
field: CustomerTicketSortField;
|
|
393
|
+
direction: 'ASC' | 'DESC';
|
|
394
|
+
}[];
|
|
395
|
+
cursor?: string;
|
|
396
|
+
limit?: number;
|
|
397
|
+
}
|
|
398
|
+
export type CustomerTicketPage = ITicketCursorResponse<ICustomerTicketView>;
|
|
399
|
+
/** Reference only. Article content and lifecycle remain authoritative in Docs/Knowledge. */
|
|
400
|
+
export interface ITicketKnowledgeReference extends ITicketAuditedEntity {
|
|
401
|
+
referenceType: TicketKnowledgeReferenceType;
|
|
402
|
+
documentId: string;
|
|
403
|
+
portalIds?: string[];
|
|
404
|
+
requestTypeIds?: string[];
|
|
405
|
+
categoryIds?: string[];
|
|
406
|
+
locales?: string[];
|
|
407
|
+
audiencePolicyId?: string;
|
|
408
|
+
order?: number;
|
|
409
|
+
enabled: boolean;
|
|
410
|
+
}
|
|
411
|
+
export interface ICreateTicketKnowledgeReferenceDto {
|
|
412
|
+
referenceType: TicketKnowledgeReferenceType;
|
|
413
|
+
documentId: string;
|
|
414
|
+
portalIds?: string[];
|
|
415
|
+
requestTypeIds?: string[];
|
|
416
|
+
categoryIds?: string[];
|
|
417
|
+
locales?: string[];
|
|
418
|
+
audiencePolicyId?: string;
|
|
419
|
+
order?: number;
|
|
420
|
+
enabled?: boolean;
|
|
421
|
+
}
|
|
422
|
+
export interface IUpdateTicketKnowledgeReferenceDto {
|
|
423
|
+
referenceType?: TicketKnowledgeReferenceType;
|
|
424
|
+
documentId?: string;
|
|
425
|
+
portalIds?: string[] | null;
|
|
426
|
+
requestTypeIds?: string[] | null;
|
|
427
|
+
categoryIds?: string[] | null;
|
|
428
|
+
locales?: string[] | null;
|
|
429
|
+
audiencePolicyId?: string | null;
|
|
430
|
+
order?: number | null;
|
|
431
|
+
enabled?: boolean;
|
|
432
|
+
}
|
|
433
|
+
/** Rules may work globally at portal level and become more specific by request type/category. */
|
|
434
|
+
export interface ITicketDeflectionRule extends ITicketAuditedEntity {
|
|
435
|
+
name: string;
|
|
436
|
+
portalId: string;
|
|
437
|
+
requestTypeIds?: string[];
|
|
438
|
+
categoryIds?: string[];
|
|
439
|
+
knowledgeReferenceIds?: string[];
|
|
440
|
+
includeKnownIssues?: boolean;
|
|
441
|
+
minimumScore?: number;
|
|
442
|
+
maximumSuggestions?: number;
|
|
443
|
+
audiencePolicyId?: string;
|
|
444
|
+
enabled: boolean;
|
|
445
|
+
}
|
|
446
|
+
export interface ICreateTicketDeflectionRuleDto {
|
|
447
|
+
name: string;
|
|
448
|
+
portalId: string;
|
|
449
|
+
requestTypeIds?: string[];
|
|
450
|
+
categoryIds?: string[];
|
|
451
|
+
knowledgeReferenceIds?: string[];
|
|
452
|
+
includeKnownIssues?: boolean;
|
|
453
|
+
minimumScore?: number;
|
|
454
|
+
maximumSuggestions?: number;
|
|
455
|
+
audiencePolicyId?: string;
|
|
456
|
+
enabled?: boolean;
|
|
457
|
+
}
|
|
458
|
+
export interface IUpdateTicketDeflectionRuleDto {
|
|
459
|
+
name?: string;
|
|
460
|
+
portalId?: string;
|
|
461
|
+
requestTypeIds?: string[] | null;
|
|
462
|
+
categoryIds?: string[] | null;
|
|
463
|
+
knowledgeReferenceIds?: string[] | null;
|
|
464
|
+
includeKnownIssues?: boolean;
|
|
465
|
+
minimumScore?: number | null;
|
|
466
|
+
maximumSuggestions?: number | null;
|
|
467
|
+
audiencePolicyId?: string | null;
|
|
468
|
+
enabled?: boolean;
|
|
469
|
+
}
|
|
470
|
+
export interface ITicketDeflectionSuggestion {
|
|
471
|
+
knowledgeReferenceId?: string;
|
|
472
|
+
knownIssueTicketId?: string;
|
|
473
|
+
score?: number;
|
|
474
|
+
position: number;
|
|
475
|
+
}
|
|
476
|
+
export interface ITicketDeflectionEvent {
|
|
477
|
+
id: string;
|
|
478
|
+
spaceId: string;
|
|
479
|
+
portalId: string;
|
|
480
|
+
sessionId: string;
|
|
481
|
+
contactId?: string;
|
|
482
|
+
requestTypeId?: string;
|
|
483
|
+
categoryId?: string;
|
|
484
|
+
query: string;
|
|
485
|
+
suggestions: ITicketDeflectionSuggestion[];
|
|
486
|
+
selectedKnowledgeReferenceId?: string;
|
|
487
|
+
selectedKnownIssueTicketId?: string;
|
|
488
|
+
outcome: TicketDeflectionOutcome;
|
|
489
|
+
createdTicketId?: string;
|
|
490
|
+
occurredAt: Date;
|
|
491
|
+
}
|
|
492
|
+
export interface ITicketCustomerNotificationPreference {
|
|
493
|
+
id: string;
|
|
494
|
+
spaceId: string;
|
|
495
|
+
contactId: string;
|
|
496
|
+
portalId?: string;
|
|
497
|
+
locale?: string;
|
|
498
|
+
channelTypes: ChannelType[];
|
|
499
|
+
enabledEvents: TicketNotificationEvent[];
|
|
500
|
+
mutedTicketIds?: string[];
|
|
501
|
+
updatedAt: Date;
|
|
502
|
+
}
|
|
503
|
+
export interface ICreateTicketRequestDraftDto {
|
|
504
|
+
portalId: string;
|
|
505
|
+
requestTypeId: string;
|
|
506
|
+
contactId?: string;
|
|
507
|
+
}
|
|
508
|
+
export interface ISubmitTicketRequestDto {
|
|
509
|
+
draftId: string;
|
|
510
|
+
formSubmissionId: string;
|
|
511
|
+
idempotencyKey: string;
|
|
512
|
+
}
|
|
513
|
+
/** Just enough of the category to render a grouped catalog: a heading, its order,
|
|
514
|
+
* and the id the portal has to send back in ICreateCustomerTicketDto. */
|
|
515
|
+
export interface ICustomerRequestTypeCategoryView {
|
|
516
|
+
id: string;
|
|
517
|
+
name: string;
|
|
518
|
+
description?: string;
|
|
519
|
+
order: number;
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* One entry of the portal's catalog.
|
|
523
|
+
*
|
|
524
|
+
* A customer-safe projection of ITicketRequestType, built as an allowlist rather
|
|
525
|
+
* than by removing keys: the agent shape carries defaultAssignedGroupId (which
|
|
526
|
+
* internal group handles what), workflowId, slaPolicyId, audiencePolicyId,
|
|
527
|
+
* fieldDefinitionIds, layoutIds and the createdBy/updatedBy uuids of agents,
|
|
528
|
+
* none of which belong on a public surface.
|
|
529
|
+
*
|
|
530
|
+
* `formId` / `formVersion` travel because the portal renders the form.
|
|
531
|
+
* `defaultPriority` is a hint for preselection; the create endpoint applies its
|
|
532
|
+
* own default regardless.
|
|
533
|
+
*/
|
|
534
|
+
export interface ICustomerRequestTypeView {
|
|
535
|
+
id: string;
|
|
536
|
+
name: string;
|
|
537
|
+
description?: string;
|
|
538
|
+
icon?: string;
|
|
539
|
+
formId?: string;
|
|
540
|
+
formVersion?: number;
|
|
541
|
+
defaultPriority?: TicketPriority;
|
|
542
|
+
category: ICustomerRequestTypeCategoryView;
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* One field of the portal's create form.
|
|
546
|
+
*
|
|
547
|
+
* Allowlist over ITicketFieldDefinition: classification, maskingStrategy,
|
|
548
|
+
* containsPii, readRoleIds, writeRoleIds, retentionPolicyId, conditions and the
|
|
549
|
+
* scope arrays stay server-side. `validation`, `options` and `objectFields` do
|
|
550
|
+
* travel — without them the portal cannot render a select or give the customer
|
|
551
|
+
* feedback before a round trip that ends in a 422.
|
|
552
|
+
*
|
|
553
|
+
* `required` is the EFFECTIVE value for the creation context, not the field's
|
|
554
|
+
* own flag: it already folds in requiredForStatusIds for the initial status and
|
|
555
|
+
* any condition that makes the field mandatory.
|
|
556
|
+
*/
|
|
557
|
+
export interface ICustomerFormFieldView {
|
|
558
|
+
nameKey: string;
|
|
559
|
+
label: string;
|
|
560
|
+
description?: string;
|
|
561
|
+
placeholder?: string;
|
|
562
|
+
type: TicketFieldType;
|
|
563
|
+
required: boolean;
|
|
564
|
+
defaultValue?: TicketPropertyValue;
|
|
565
|
+
options?: ITicketFieldOption[];
|
|
566
|
+
objectFields?: ITicketObjectField[];
|
|
567
|
+
validation?: ITicketFieldValidation;
|
|
568
|
+
}
|
|
569
|
+
/**
|
|
570
|
+
* What the portal renders so a customer can fill in `properties` on
|
|
571
|
+
* ICreateCustomerTicketDto.
|
|
572
|
+
*
|
|
573
|
+
* NO LAYOUT, unlike the agent form schema: layouts are selected by roleIds and a
|
|
574
|
+
* contact has no role, so "the effective layout for a customer" is not a
|
|
575
|
+
* question the layout model can answer. Presentation belongs to the portal; this
|
|
576
|
+
* answers membership, obligation and shape.
|
|
577
|
+
*/
|
|
578
|
+
export interface ICustomerFormSchemaView {
|
|
579
|
+
requestTypeId: string;
|
|
580
|
+
categoryId: string;
|
|
581
|
+
fields: ICustomerFormFieldView[];
|
|
582
|
+
}
|
|
583
|
+
/**
|
|
584
|
+
* One file the portal declares BEFORE any byte exists in storage.
|
|
585
|
+
*
|
|
586
|
+
* `sizeBytes` and `mimeType` are the client's DECLARATION and stay that way for
|
|
587
|
+
* the life of the attachment: tickets-api never sees the bytes (media-api owns
|
|
588
|
+
* storage), so there is nothing to compare them against.
|
|
589
|
+
*/
|
|
590
|
+
export interface ICreateCustomerTicketAttachmentDto {
|
|
591
|
+
fileName: string;
|
|
592
|
+
mimeType: string;
|
|
593
|
+
sizeBytes: number;
|
|
594
|
+
checksum?: string;
|
|
595
|
+
}
|
|
596
|
+
/**
|
|
597
|
+
* Direct ticket creation from a portal, without going through a request draft.
|
|
598
|
+
*
|
|
599
|
+
* What is ABSENT is the contract, not an oversight: there is no channelType,
|
|
600
|
+
* channelId, primaryConversationId, assigneeId, assigneeName, assignedGroupId,
|
|
601
|
+
* statusId, origin, tagIds or externalReferences. Routing, channel provenance
|
|
602
|
+
* and the internal taxonomy are decisions of the agent side; the server fills
|
|
603
|
+
* them in (origin WEB_FORM, the space's initial status, the routing defaults of
|
|
604
|
+
* the category and the request type).
|
|
605
|
+
*/
|
|
606
|
+
export interface ICreateCustomerTicketDto {
|
|
607
|
+
/** Mongo ObjectId of the contact opening the ticket. Row-level authorisation
|
|
608
|
+
* of the whole customer surface: required, never defaulted. */
|
|
609
|
+
contactId: string;
|
|
610
|
+
title: string;
|
|
611
|
+
description?: string;
|
|
612
|
+
categoryId: string;
|
|
613
|
+
requestTypeId?: string;
|
|
614
|
+
/** Optional: a portal may or may not let the customer choose. Absent means the
|
|
615
|
+
* server default (MEDIUM). */
|
|
616
|
+
priority?: TicketPriority;
|
|
617
|
+
properties?: ITicketProperty[];
|
|
618
|
+
/** Files the customer is about to upload. Declaring them here is what puts the
|
|
619
|
+
* upload destinations inside the create transaction. */
|
|
620
|
+
attachments?: ICreateCustomerTicketAttachmentDto[];
|
|
621
|
+
/** REQUIRED, unlike ICreateTicketDto where it is optional: a portal submit is
|
|
622
|
+
* the canonical double-click. `source` is NOT part of the contract - the
|
|
623
|
+
* server derives it from the portal slug, so one portal's keys cannot collide
|
|
624
|
+
* with another's. */
|
|
625
|
+
idempotencyKey: string;
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* The answer to a create, and the reason the flow is ordered ticket-first.
|
|
629
|
+
*
|
|
630
|
+
* `attachmentUploads` carries one session per declared attachment, in the order
|
|
631
|
+
* they were declared, each already bound to the new ticket. The portal uploads
|
|
632
|
+
* the bytes to `uploadUrl` and then completes each session. Until it does, the
|
|
633
|
+
* ticket has no attachments - the deliberate trade: no byte is ever uploaded for
|
|
634
|
+
* a ticket that failed to be created.
|
|
635
|
+
*/
|
|
636
|
+
export interface ICustomerTicketCreatedView {
|
|
637
|
+
ticket: ICustomerTicketView;
|
|
638
|
+
attachmentUploads: ITicketAttachmentUploadSession[];
|
|
639
|
+
}
|
|
640
|
+
export interface ICustomerTicketActionDto {
|
|
641
|
+
expectedVersion: number;
|
|
642
|
+
action: TicketCustomerAction;
|
|
643
|
+
comment?: string;
|
|
644
|
+
attachmentIds?: string[];
|
|
645
|
+
formSubmissionId?: string;
|
|
646
|
+
}
|
|
647
|
+
/**
|
|
648
|
+
* Confirmation that an uploaded file became an attachment of the ticket.
|
|
649
|
+
*
|
|
650
|
+
* An allowlist over ITicketAttachment, and note the two absences:
|
|
651
|
+
*
|
|
652
|
+
* - `storageKey` is the blob layout tickets-api and media-api agree on. It is
|
|
653
|
+
* internal plumbing, and a client that learned to build one could address
|
|
654
|
+
* blobs of tickets it never saw.
|
|
655
|
+
* - `downloadUrl` is omitted because there is NO customer read path for
|
|
656
|
+
* attachments yet: ICustomerTicketView has no attachments field, and the url
|
|
657
|
+
* the agent surface hands out is an unsigned blob url that only resolves with
|
|
658
|
+
* a container SAS this surface has never discussed. Returning one would be
|
|
659
|
+
* offering a link that 403s.
|
|
660
|
+
*
|
|
661
|
+
* `createdBy` is absent too, for a duller reason: on this path it is the nil
|
|
662
|
+
* uuid marker, which says nothing to anyone.
|
|
663
|
+
*/
|
|
664
|
+
export interface ICustomerTicketAttachmentView {
|
|
665
|
+
id: string;
|
|
666
|
+
fileName: string;
|
|
667
|
+
mimeType: string;
|
|
668
|
+
sizeBytes: number;
|
|
669
|
+
createdAt: Date;
|
|
670
|
+
}
|