@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,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SurveyTimeUnits = void 0;
|
|
4
|
+
var SurveyTimeUnits;
|
|
5
|
+
(function (SurveyTimeUnits) {
|
|
6
|
+
SurveyTimeUnits[SurveyTimeUnits["MINUTES"] = 0] = "MINUTES";
|
|
7
|
+
SurveyTimeUnits[SurveyTimeUnits["HOURS"] = 1] = "HOURS";
|
|
8
|
+
SurveyTimeUnits[SurveyTimeUnits["DAYS"] = 2] = "DAYS";
|
|
9
|
+
})(SurveyTimeUnits || (exports.SurveyTimeUnits = SurveyTimeUnits = {}));
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { OutboxEvent } from './Outbox';
|
|
2
|
+
import { AssignmentActorReference, AssignmentStateReference, ConversationAssignmentReason } from './Assignment';
|
|
3
|
+
import { ID } from './Conversation';
|
|
4
|
+
export type TransferConversationReason = Extract<ConversationAssignmentReason, 'manual_transfer' | 'flow_routing' | 'sla_escalation' | 'system_recovery'>;
|
|
5
|
+
export type TransferConversationTarget = {
|
|
6
|
+
type: 'queue';
|
|
7
|
+
queueId: ID;
|
|
8
|
+
userId?: null;
|
|
9
|
+
} | {
|
|
10
|
+
type: 'user';
|
|
11
|
+
queueId: ID;
|
|
12
|
+
userId: ID;
|
|
13
|
+
};
|
|
14
|
+
export interface TransferConversationCommand {
|
|
15
|
+
commandId: ID;
|
|
16
|
+
spaceId: ID;
|
|
17
|
+
conversationId: ID;
|
|
18
|
+
target: TransferConversationTarget;
|
|
19
|
+
expectedConversationVersion: number;
|
|
20
|
+
actor: AssignmentActorReference;
|
|
21
|
+
reason: TransferConversationReason;
|
|
22
|
+
requestedAt: Date;
|
|
23
|
+
}
|
|
24
|
+
export type TransferConversationRejectionCode = 'conversation_not_found' | 'target_queue_not_found' | 'target_queue_disabled' | 'target_user_not_found' | 'target_user_not_authorized' | 'target_user_not_available' | 'target_user_has_no_capacity' | 'channel_not_supported' | 'same_queue' | 'same_owner' | 'actor_not_authorized' | 'conversation_not_transferable';
|
|
25
|
+
export type TransferConversationResult = {
|
|
26
|
+
status: 'transferred';
|
|
27
|
+
commandId: ID;
|
|
28
|
+
conversationId: ID;
|
|
29
|
+
previousVersion: number;
|
|
30
|
+
conversationVersion: number;
|
|
31
|
+
previous: AssignmentStateReference;
|
|
32
|
+
current: AssignmentStateReference;
|
|
33
|
+
assignmentEventId: ID;
|
|
34
|
+
outboxEventId: ID;
|
|
35
|
+
} | {
|
|
36
|
+
status: 'already_applied';
|
|
37
|
+
commandId: ID;
|
|
38
|
+
conversationId: ID;
|
|
39
|
+
conversationVersion: number;
|
|
40
|
+
assignmentEventId: ID;
|
|
41
|
+
outboxEventId: ID;
|
|
42
|
+
} | {
|
|
43
|
+
status: 'version_conflict';
|
|
44
|
+
commandId: ID;
|
|
45
|
+
conversationId: ID;
|
|
46
|
+
expectedVersion: number;
|
|
47
|
+
currentVersion: number;
|
|
48
|
+
} | {
|
|
49
|
+
status: 'rejected';
|
|
50
|
+
commandId: ID;
|
|
51
|
+
conversationId: ID;
|
|
52
|
+
code: TransferConversationRejectionCode;
|
|
53
|
+
};
|
|
54
|
+
export interface ConversationAssignmentChanged {
|
|
55
|
+
eventId: ID;
|
|
56
|
+
sourceEventId: ID;
|
|
57
|
+
type: 'conversation.assignment.changed';
|
|
58
|
+
schemaVersion: 1;
|
|
59
|
+
spaceId: ID;
|
|
60
|
+
conversationId: ID;
|
|
61
|
+
conversationVersion: number;
|
|
62
|
+
reason: ConversationAssignmentReason;
|
|
63
|
+
previous?: AssignmentStateReference;
|
|
64
|
+
current: AssignmentStateReference;
|
|
65
|
+
actor: AssignmentActorReference;
|
|
66
|
+
correlationId: ID;
|
|
67
|
+
causationId: ID;
|
|
68
|
+
occurredAt: Date;
|
|
69
|
+
}
|
|
70
|
+
export type ConversationAssignmentChangedOutboxEvent = OutboxEvent<ConversationAssignmentChanged> & {
|
|
71
|
+
aggregateType: 'conversation';
|
|
72
|
+
eventType: 'conversation.assignment.changed';
|
|
73
|
+
schemaVersion: 1;
|
|
74
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AuthApiKey } from '../Common/API/AuthApiKey';
|
|
2
|
+
import { AuthBasic } from '../Common/API/AuthBasic';
|
|
3
|
+
import { AuthBearer } from '../Common/API/AuthBearer';
|
|
4
|
+
import { AuthType } from '../Common/API/AuthType';
|
|
5
|
+
import { Method } from '../Common/API/Method';
|
|
6
|
+
interface IWebhook {
|
|
7
|
+
id?: string | null;
|
|
8
|
+
spaceId?: string | null;
|
|
9
|
+
name?: string | null;
|
|
10
|
+
apiUrl?: string | null;
|
|
11
|
+
apiMethod?: Method | null;
|
|
12
|
+
apiAuthType?: AuthType | null;
|
|
13
|
+
apiAuthBasic?: AuthBasic | null;
|
|
14
|
+
apiAuthApiKey?: AuthApiKey | null;
|
|
15
|
+
apiAuthBearer?: AuthBearer | null;
|
|
16
|
+
apiBody?: string | null;
|
|
17
|
+
apiContentType?: string | null;
|
|
18
|
+
createdAt?: string | null;
|
|
19
|
+
updatedAt?: string | null;
|
|
20
|
+
deletedAt?: string | null;
|
|
21
|
+
}
|
|
22
|
+
export { IWebhook };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export * as Flows from './Flows/index';
|
|
2
|
+
export * as Groups from './Groups/Group';
|
|
3
|
+
export * from './Assignment';
|
|
4
|
+
export * from './Conversation';
|
|
5
|
+
export * from './ConversationAutomationState';
|
|
6
|
+
export * from './InboxQueries';
|
|
7
|
+
export * from './ConversationReadState';
|
|
8
|
+
export * from './ConversationPendingTransfer';
|
|
9
|
+
export * from './ConversationSlaClockState';
|
|
10
|
+
export * from './Outbox';
|
|
11
|
+
export * from './Ending';
|
|
12
|
+
export * from './Label';
|
|
13
|
+
export * from './WebHook';
|
|
14
|
+
export * from './SocialWalls';
|
|
15
|
+
export * from './QuickResponse';
|
|
16
|
+
export * from './DashBoard/dashboard';
|
|
17
|
+
export * from '../Forms/API';
|
|
18
|
+
export * from './DashBoard/dashboardChannels';
|
|
19
|
+
export * from './DashBoard/dashboardMessages';
|
|
20
|
+
export * from './Survey';
|
|
21
|
+
export * from './Queue';
|
|
22
|
+
export * from './Routing';
|
|
23
|
+
export * from './Sla';
|
|
24
|
+
export * from './Transfer';
|
|
25
|
+
export * from './Classifications';
|
|
26
|
+
export * from './ConversationTransferRouting';
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Groups = exports.Flows = void 0;
|
|
40
|
+
exports.Flows = __importStar(require("./Flows/index"));
|
|
41
|
+
exports.Groups = __importStar(require("./Groups/Group"));
|
|
42
|
+
__exportStar(require("./Assignment"), exports);
|
|
43
|
+
__exportStar(require("./Conversation"), exports);
|
|
44
|
+
__exportStar(require("./ConversationAutomationState"), exports);
|
|
45
|
+
__exportStar(require("./InboxQueries"), exports);
|
|
46
|
+
__exportStar(require("./ConversationReadState"), exports);
|
|
47
|
+
__exportStar(require("./ConversationPendingTransfer"), exports);
|
|
48
|
+
__exportStar(require("./ConversationSlaClockState"), exports);
|
|
49
|
+
__exportStar(require("./Outbox"), exports);
|
|
50
|
+
__exportStar(require("./Ending"), exports);
|
|
51
|
+
__exportStar(require("./Label"), exports);
|
|
52
|
+
__exportStar(require("./WebHook"), exports);
|
|
53
|
+
__exportStar(require("./SocialWalls"), exports);
|
|
54
|
+
__exportStar(require("./QuickResponse"), exports);
|
|
55
|
+
__exportStar(require("./DashBoard/dashboard"), exports);
|
|
56
|
+
__exportStar(require("../Forms/API"), exports);
|
|
57
|
+
__exportStar(require("./DashBoard/dashboardChannels"), exports);
|
|
58
|
+
__exportStar(require("./DashBoard/dashboardMessages"), exports);
|
|
59
|
+
__exportStar(require("./Survey"), exports);
|
|
60
|
+
__exportStar(require("./Queue"), exports);
|
|
61
|
+
__exportStar(require("./Routing"), exports);
|
|
62
|
+
__exportStar(require("./Sla"), exports);
|
|
63
|
+
__exportStar(require("./Transfer"), exports);
|
|
64
|
+
__exportStar(require("./Classifications"), exports);
|
|
65
|
+
__exportStar(require("./ConversationTransferRouting"), exports);
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export interface Document {
|
|
2
|
+
spaceId: string | "";
|
|
3
|
+
id?: string | null;
|
|
4
|
+
storeId?: string | null;
|
|
5
|
+
parentId?: string | null;
|
|
6
|
+
isFolder?: boolean | false;
|
|
7
|
+
path: string | '';
|
|
8
|
+
name: string | "";
|
|
9
|
+
fileSize: number | 0;
|
|
10
|
+
fileName: string | "";
|
|
11
|
+
fileUrl: string | "";
|
|
12
|
+
status: DocumentStatus | DocumentStatus.SYNCING;
|
|
13
|
+
blobVersionId?: string | null;
|
|
14
|
+
indexingConfig?: IndexingConfig | null;
|
|
15
|
+
chunks: number | 0;
|
|
16
|
+
chars: number | 0;
|
|
17
|
+
embeddingStatus?: EmbeddingStatus | EmbeddingStatus.PENDING;
|
|
18
|
+
indexingError?: string | null;
|
|
19
|
+
portalPublished: boolean;
|
|
20
|
+
portalSlug?: string | null;
|
|
21
|
+
portalLastPublishedAt?: Date | null;
|
|
22
|
+
source?: DocumentSource | DocumentSource.UPLOAD;
|
|
23
|
+
sourceId?: string | null;
|
|
24
|
+
createdAt: Date;
|
|
25
|
+
createdBy: string;
|
|
26
|
+
updatedAt?: Date | null;
|
|
27
|
+
updatedBy?: string | null;
|
|
28
|
+
deletedAt?: Date | null;
|
|
29
|
+
deletedBy?: string | null;
|
|
30
|
+
}
|
|
31
|
+
export declare enum EmbeddingStatus {
|
|
32
|
+
PENDING = 0,
|
|
33
|
+
PROCESSING = 1,
|
|
34
|
+
COMPLETED = 2,
|
|
35
|
+
ERROR = 3
|
|
36
|
+
}
|
|
37
|
+
export declare enum DocumentSource {
|
|
38
|
+
UPLOAD = 1,
|
|
39
|
+
WEBHOOK = 2,
|
|
40
|
+
FILESYSTEM = 3,
|
|
41
|
+
API = 4
|
|
42
|
+
}
|
|
43
|
+
export interface IndexingConfig {
|
|
44
|
+
type: DocumentSplitterType | DocumentSplitterType.characterTextSplitter;
|
|
45
|
+
chunkSize: number | 1000;
|
|
46
|
+
chunkOverlap: number | 200;
|
|
47
|
+
customSeparators?: string[] | [" "];
|
|
48
|
+
}
|
|
49
|
+
export declare enum DocumentSplitterType {
|
|
50
|
+
characterTextSplitter = "characterTextSplitter",
|
|
51
|
+
recursiveCharacterTextSplitter = "recursiveCharacterTextSplitter"
|
|
52
|
+
}
|
|
53
|
+
export declare enum DocumentStatus {
|
|
54
|
+
SYNCING = 0,
|
|
55
|
+
ACTIVE = 1,
|
|
56
|
+
ERROR = 2,
|
|
57
|
+
DELETING = 3
|
|
58
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DocumentStatus = exports.DocumentSplitterType = exports.DocumentSource = exports.EmbeddingStatus = void 0;
|
|
4
|
+
var EmbeddingStatus;
|
|
5
|
+
(function (EmbeddingStatus) {
|
|
6
|
+
EmbeddingStatus[EmbeddingStatus["PENDING"] = 0] = "PENDING";
|
|
7
|
+
EmbeddingStatus[EmbeddingStatus["PROCESSING"] = 1] = "PROCESSING";
|
|
8
|
+
EmbeddingStatus[EmbeddingStatus["COMPLETED"] = 2] = "COMPLETED";
|
|
9
|
+
EmbeddingStatus[EmbeddingStatus["ERROR"] = 3] = "ERROR";
|
|
10
|
+
})(EmbeddingStatus || (exports.EmbeddingStatus = EmbeddingStatus = {}));
|
|
11
|
+
var DocumentSource;
|
|
12
|
+
(function (DocumentSource) {
|
|
13
|
+
DocumentSource[DocumentSource["UPLOAD"] = 1] = "UPLOAD";
|
|
14
|
+
DocumentSource[DocumentSource["WEBHOOK"] = 2] = "WEBHOOK";
|
|
15
|
+
DocumentSource[DocumentSource["FILESYSTEM"] = 3] = "FILESYSTEM";
|
|
16
|
+
DocumentSource[DocumentSource["API"] = 4] = "API";
|
|
17
|
+
})(DocumentSource || (exports.DocumentSource = DocumentSource = {}));
|
|
18
|
+
var DocumentSplitterType;
|
|
19
|
+
(function (DocumentSplitterType) {
|
|
20
|
+
DocumentSplitterType["characterTextSplitter"] = "characterTextSplitter";
|
|
21
|
+
DocumentSplitterType["recursiveCharacterTextSplitter"] = "recursiveCharacterTextSplitter";
|
|
22
|
+
})(DocumentSplitterType || (exports.DocumentSplitterType = DocumentSplitterType = {}));
|
|
23
|
+
var DocumentStatus;
|
|
24
|
+
(function (DocumentStatus) {
|
|
25
|
+
DocumentStatus[DocumentStatus["SYNCING"] = 0] = "SYNCING";
|
|
26
|
+
DocumentStatus[DocumentStatus["ACTIVE"] = 1] = "ACTIVE";
|
|
27
|
+
DocumentStatus[DocumentStatus["ERROR"] = 2] = "ERROR";
|
|
28
|
+
DocumentStatus[DocumentStatus["DELETING"] = 3] = "DELETING";
|
|
29
|
+
})(DocumentStatus || (exports.DocumentStatus = DocumentStatus = {}));
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export interface Store {
|
|
2
|
+
spaceId: string | "";
|
|
3
|
+
id?: string | null;
|
|
4
|
+
name: string | "";
|
|
5
|
+
description: string | "";
|
|
6
|
+
status: StoreStatus | StoreStatus.EMPTY;
|
|
7
|
+
statics: StoreStatics;
|
|
8
|
+
enableIndexing: boolean;
|
|
9
|
+
knowledgePortalEnabled: boolean;
|
|
10
|
+
knowledgePortalIsPublic: boolean;
|
|
11
|
+
knowledgePortalUrl?: string | null;
|
|
12
|
+
knowledgePortalStatus: PortalStatus | PortalStatus.INACTIVE;
|
|
13
|
+
knowledgePortalLastPublishedAt?: Date | null;
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
createdBy: string;
|
|
16
|
+
updatedAt?: Date | null;
|
|
17
|
+
updatedBy?: string | null;
|
|
18
|
+
deletedAt?: Date | null;
|
|
19
|
+
deletedBy?: string | null;
|
|
20
|
+
}
|
|
21
|
+
export declare enum PortalStatus {
|
|
22
|
+
INACTIVE = 0,
|
|
23
|
+
PENDING = 1,
|
|
24
|
+
READY = 2,
|
|
25
|
+
ERROR = 3
|
|
26
|
+
}
|
|
27
|
+
export declare enum StoreStatus {
|
|
28
|
+
EMPTY = 0,
|
|
29
|
+
ACTIVE = 1,
|
|
30
|
+
SYNCING = 2,
|
|
31
|
+
ERROR = 3
|
|
32
|
+
}
|
|
33
|
+
export interface StoreStatics {
|
|
34
|
+
totalDocuments: number | 0;
|
|
35
|
+
diskUsage: number | 0;
|
|
36
|
+
lastUpdatedAt?: Date | null;
|
|
37
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StoreStatus = exports.PortalStatus = void 0;
|
|
4
|
+
var PortalStatus;
|
|
5
|
+
(function (PortalStatus) {
|
|
6
|
+
PortalStatus[PortalStatus["INACTIVE"] = 0] = "INACTIVE";
|
|
7
|
+
PortalStatus[PortalStatus["PENDING"] = 1] = "PENDING";
|
|
8
|
+
PortalStatus[PortalStatus["READY"] = 2] = "READY";
|
|
9
|
+
PortalStatus[PortalStatus["ERROR"] = 3] = "ERROR";
|
|
10
|
+
})(PortalStatus || (exports.PortalStatus = PortalStatus = {}));
|
|
11
|
+
var StoreStatus;
|
|
12
|
+
(function (StoreStatus) {
|
|
13
|
+
StoreStatus[StoreStatus["EMPTY"] = 0] = "EMPTY";
|
|
14
|
+
StoreStatus[StoreStatus["ACTIVE"] = 1] = "ACTIVE";
|
|
15
|
+
StoreStatus[StoreStatus["SYNCING"] = 2] = "SYNCING";
|
|
16
|
+
StoreStatus[StoreStatus["ERROR"] = 3] = "ERROR";
|
|
17
|
+
})(StoreStatus || (exports.StoreStatus = StoreStatus = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Store"), exports);
|
|
18
|
+
__exportStar(require("./Document"), exports);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Identificadores estables de eventos de dominio de Trii.
|
|
3
|
+
* El primer segmento identifica al módulo propietario y productor del evento.
|
|
4
|
+
*
|
|
5
|
+
* Automations, webhooks salientes y otros consumidores comparten este
|
|
6
|
+
* vocabulario, aunque cada mecanismo pueda soportar sólo un subconjunto.
|
|
7
|
+
* Los contratos de transporte conservan `eventType: string` para aceptar
|
|
8
|
+
* eventos incorporados por versiones futuras.
|
|
9
|
+
*/
|
|
10
|
+
export declare const DOMAIN_EVENT_TYPES: {
|
|
11
|
+
readonly AUTOMATIONS: {
|
|
12
|
+
readonly MANUAL: "automations.manual";
|
|
13
|
+
readonly SCHEDULE_TICK: "automations.schedule.tick";
|
|
14
|
+
};
|
|
15
|
+
readonly CONTACTS: {
|
|
16
|
+
readonly CONTACT_CREATED: "contacts.contact.created";
|
|
17
|
+
readonly BUSINESS_CREATED: "contacts.business.created";
|
|
18
|
+
readonly PROPERTY_CHANGED: "contacts.property.changed";
|
|
19
|
+
readonly TAG_ADDED: "contacts.tag.added";
|
|
20
|
+
readonly TAG_REMOVED: "contacts.tag.removed";
|
|
21
|
+
readonly PROPERTY_DATE_REACHED: "contacts.property.date_reached";
|
|
22
|
+
};
|
|
23
|
+
readonly CONVERSATIONS: {
|
|
24
|
+
readonly CONVERSATION_CREATED: "conversations.conversation.created";
|
|
25
|
+
readonly CONVERSATION_CLOSED: "conversations.conversation.closed";
|
|
26
|
+
readonly MESSAGE_RECEIVED: "conversations.message.received";
|
|
27
|
+
readonly AGENT_INTERVENED: "conversations.agent.intervened";
|
|
28
|
+
};
|
|
29
|
+
readonly TICKETS: {
|
|
30
|
+
readonly CREATED: "tickets.created";
|
|
31
|
+
readonly STATUS_CHANGED: "tickets.status_changed";
|
|
32
|
+
readonly PRIORITY_CHANGED: "tickets.priority_changed";
|
|
33
|
+
readonly ASSIGNED: "tickets.assigned";
|
|
34
|
+
readonly CUSTOMER_REPLIED: "tickets.customer_replied";
|
|
35
|
+
readonly SLA_WARNING: "tickets.sla_warning";
|
|
36
|
+
readonly SLA_BREACHED: "tickets.sla_breached";
|
|
37
|
+
readonly CLOSED: "tickets.closed";
|
|
38
|
+
readonly REOPENED: "tickets.reopened";
|
|
39
|
+
};
|
|
40
|
+
readonly FORMS: {
|
|
41
|
+
readonly SUBMITTED: "forms.submitted";
|
|
42
|
+
};
|
|
43
|
+
readonly INTEGRATIONS: {
|
|
44
|
+
readonly WEBHOOK_RECEIVED: "integrations.webhook.received";
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
type Values<T> = T extends unknown ? T[keyof T] : never;
|
|
48
|
+
type DomainEventTypeGroup = Values<typeof DOMAIN_EVENT_TYPES>;
|
|
49
|
+
/** Unión de identificadores conocidos por esta versión de `@trii/types`. */
|
|
50
|
+
export type KnownDomainEventType = Values<DomainEventTypeGroup>;
|
|
51
|
+
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DOMAIN_EVENT_TYPES = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Identificadores estables de eventos de dominio de Trii.
|
|
6
|
+
* El primer segmento identifica al módulo propietario y productor del evento.
|
|
7
|
+
*
|
|
8
|
+
* Automations, webhooks salientes y otros consumidores comparten este
|
|
9
|
+
* vocabulario, aunque cada mecanismo pueda soportar sólo un subconjunto.
|
|
10
|
+
* Los contratos de transporte conservan `eventType: string` para aceptar
|
|
11
|
+
* eventos incorporados por versiones futuras.
|
|
12
|
+
*/
|
|
13
|
+
exports.DOMAIN_EVENT_TYPES = {
|
|
14
|
+
AUTOMATIONS: {
|
|
15
|
+
MANUAL: 'automations.manual',
|
|
16
|
+
SCHEDULE_TICK: 'automations.schedule.tick',
|
|
17
|
+
},
|
|
18
|
+
CONTACTS: {
|
|
19
|
+
CONTACT_CREATED: 'contacts.contact.created',
|
|
20
|
+
BUSINESS_CREATED: 'contacts.business.created',
|
|
21
|
+
PROPERTY_CHANGED: 'contacts.property.changed',
|
|
22
|
+
TAG_ADDED: 'contacts.tag.added',
|
|
23
|
+
TAG_REMOVED: 'contacts.tag.removed',
|
|
24
|
+
PROPERTY_DATE_REACHED: 'contacts.property.date_reached',
|
|
25
|
+
},
|
|
26
|
+
CONVERSATIONS: {
|
|
27
|
+
CONVERSATION_CREATED: 'conversations.conversation.created',
|
|
28
|
+
CONVERSATION_CLOSED: 'conversations.conversation.closed',
|
|
29
|
+
MESSAGE_RECEIVED: 'conversations.message.received',
|
|
30
|
+
AGENT_INTERVENED: 'conversations.agent.intervened',
|
|
31
|
+
},
|
|
32
|
+
TICKETS: {
|
|
33
|
+
CREATED: 'tickets.created',
|
|
34
|
+
STATUS_CHANGED: 'tickets.status_changed',
|
|
35
|
+
PRIORITY_CHANGED: 'tickets.priority_changed',
|
|
36
|
+
ASSIGNED: 'tickets.assigned',
|
|
37
|
+
CUSTOMER_REPLIED: 'tickets.customer_replied',
|
|
38
|
+
SLA_WARNING: 'tickets.sla_warning',
|
|
39
|
+
SLA_BREACHED: 'tickets.sla_breached',
|
|
40
|
+
CLOSED: 'tickets.closed',
|
|
41
|
+
REOPENED: 'tickets.reopened',
|
|
42
|
+
},
|
|
43
|
+
FORMS: {
|
|
44
|
+
SUBMITTED: 'forms.submitted',
|
|
45
|
+
},
|
|
46
|
+
INTEGRATIONS: {
|
|
47
|
+
WEBHOOK_RECEIVED: 'integrations.webhook.received',
|
|
48
|
+
},
|
|
49
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DomainEventTypes';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./DomainEventTypes"), exports);
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { FormItemType } from "../Common/Channels/Form";
|
|
2
|
+
import { FormAnswerV2, FormTag } from "./SubmittedForm";
|
|
3
|
+
export interface RequestInfo {
|
|
4
|
+
formId: string;
|
|
5
|
+
timeStart: Date | null;
|
|
6
|
+
timeEnd: Date | null;
|
|
7
|
+
skip: number | null;
|
|
8
|
+
limit: number | null;
|
|
9
|
+
}
|
|
10
|
+
export interface SummaryInfo {
|
|
11
|
+
formId: string;
|
|
12
|
+
timeStart: Date | null;
|
|
13
|
+
timeEnd: Date | null;
|
|
14
|
+
completedForms: number;
|
|
15
|
+
records: QuestionSummary[];
|
|
16
|
+
}
|
|
17
|
+
export interface QuestionSummary {
|
|
18
|
+
questionId: string;
|
|
19
|
+
question: string;
|
|
20
|
+
type: FormItemType;
|
|
21
|
+
fieldType: string;
|
|
22
|
+
count: number;
|
|
23
|
+
responses: ResponseSummary[];
|
|
24
|
+
}
|
|
25
|
+
export interface ResponseSummary {
|
|
26
|
+
count: number;
|
|
27
|
+
responseTitle: string;
|
|
28
|
+
}
|
|
29
|
+
export interface SubmittedFormsInfo {
|
|
30
|
+
formId: string;
|
|
31
|
+
timeStart: Date | null;
|
|
32
|
+
timeEnd: Date | null;
|
|
33
|
+
completedForms: number;
|
|
34
|
+
records: SubmittedFormRecord[];
|
|
35
|
+
}
|
|
36
|
+
export interface SubmittedFormRecord {
|
|
37
|
+
id: string;
|
|
38
|
+
tags: FormTag[];
|
|
39
|
+
responses: SubmittedFormResponse[];
|
|
40
|
+
expireAt: Date | null;
|
|
41
|
+
createdAt: Date;
|
|
42
|
+
completedAt: Date | null;
|
|
43
|
+
contractVersion: number;
|
|
44
|
+
formRevision: number;
|
|
45
|
+
}
|
|
46
|
+
export interface SubmittedFormResponse {
|
|
47
|
+
type: FormItemType;
|
|
48
|
+
fieldType: string;
|
|
49
|
+
questionId: string;
|
|
50
|
+
question: string;
|
|
51
|
+
response: unknown | null;
|
|
52
|
+
answer?: FormAnswerV2 | null;
|
|
53
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { FormItemType } from "../Common/Channels/Form";
|
|
2
|
+
export interface SubmittedForm {
|
|
3
|
+
id: string;
|
|
4
|
+
shardKey: string;
|
|
5
|
+
spaceId: string;
|
|
6
|
+
formId: string;
|
|
7
|
+
contractVersion: number;
|
|
8
|
+
formRevision: number;
|
|
9
|
+
schemaHash: string | null;
|
|
10
|
+
tags: FormTag[];
|
|
11
|
+
/** Compatibilidad con formularios V1. */
|
|
12
|
+
responses?: FormResponse[] | null;
|
|
13
|
+
answers: FormAnswerV2[];
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
expireAt: Date | null;
|
|
16
|
+
completedAt: Date | null;
|
|
17
|
+
}
|
|
18
|
+
export interface FormTag {
|
|
19
|
+
name: string;
|
|
20
|
+
value: string;
|
|
21
|
+
}
|
|
22
|
+
export declare enum FormStatus {
|
|
23
|
+
pending = 0,
|
|
24
|
+
completed = 1,
|
|
25
|
+
expired = 2
|
|
26
|
+
}
|
|
27
|
+
export interface FormResponse {
|
|
28
|
+
questionId: string;
|
|
29
|
+
type: FormItemType;
|
|
30
|
+
response: unknown;
|
|
31
|
+
}
|
|
32
|
+
export interface FormAnswerV2 {
|
|
33
|
+
fieldId: string;
|
|
34
|
+
fieldType: string;
|
|
35
|
+
/** Snapshot útil para exportaciones históricas. */
|
|
36
|
+
fieldLabel: string | null;
|
|
37
|
+
textValue: string | null;
|
|
38
|
+
numericValue: number | null;
|
|
39
|
+
/** Formatos canónicos: yyyy-MM-dd y HH:mm:ss. */
|
|
40
|
+
dateValue: string | null;
|
|
41
|
+
timeValue: string | null;
|
|
42
|
+
selectedOptions: FormSelectedOption[] | null;
|
|
43
|
+
files: FormSubmittedFile[] | null;
|
|
44
|
+
}
|
|
45
|
+
export interface FormSelectedOption {
|
|
46
|
+
id: string;
|
|
47
|
+
/** Snapshot histórico de la etiqueta. */
|
|
48
|
+
label: string | null;
|
|
49
|
+
}
|
|
50
|
+
export interface FormSubmittedFile {
|
|
51
|
+
storageId: string;
|
|
52
|
+
fileName: string;
|
|
53
|
+
contentType: string | null;
|
|
54
|
+
sizeBytes: number;
|
|
55
|
+
url: string | null;
|
|
56
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FormStatus = void 0;
|
|
4
|
+
var FormStatus;
|
|
5
|
+
(function (FormStatus) {
|
|
6
|
+
FormStatus[FormStatus["pending"] = 0] = "pending";
|
|
7
|
+
FormStatus[FormStatus["completed"] = 1] = "completed";
|
|
8
|
+
FormStatus[FormStatus["expired"] = 2] = "expired";
|
|
9
|
+
})(FormStatus || (exports.FormStatus = FormStatus = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./API"), exports);
|
|
18
|
+
__exportStar(require("./SubmittedForm"), exports);
|