@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,11 @@
|
|
|
1
|
+
export * from './Common';
|
|
2
|
+
export * from './Debt';
|
|
3
|
+
export * from './Api';
|
|
4
|
+
export * from './Portfolio';
|
|
5
|
+
export * from './Interest';
|
|
6
|
+
export * from './PaymentPlan';
|
|
7
|
+
export * from './PaymentPlanConfiguration';
|
|
8
|
+
export * from './Payment';
|
|
9
|
+
export * from './Promise';
|
|
10
|
+
export * from './Commission';
|
|
11
|
+
export * from './Dashboard';
|
|
@@ -0,0 +1,27 @@
|
|
|
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("./Common"), exports);
|
|
18
|
+
__exportStar(require("./Debt"), exports);
|
|
19
|
+
__exportStar(require("./Api"), exports);
|
|
20
|
+
__exportStar(require("./Portfolio"), exports);
|
|
21
|
+
__exportStar(require("./Interest"), exports);
|
|
22
|
+
__exportStar(require("./PaymentPlan"), exports);
|
|
23
|
+
__exportStar(require("./PaymentPlanConfiguration"), exports);
|
|
24
|
+
__exportStar(require("./Payment"), exports);
|
|
25
|
+
__exportStar(require("./Promise"), exports);
|
|
26
|
+
__exportStar(require("./Commission"), exports);
|
|
27
|
+
__exportStar(require("./Dashboard"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuthType = void 0;
|
|
4
|
+
var AuthType;
|
|
5
|
+
(function (AuthType) {
|
|
6
|
+
AuthType[AuthType["NONE"] = 0] = "NONE";
|
|
7
|
+
AuthType[AuthType["BASIC"] = 1] = "BASIC";
|
|
8
|
+
AuthType[AuthType["APIKEY"] = 2] = "APIKEY";
|
|
9
|
+
AuthType[AuthType["BEARER"] = 3] = "BEARER";
|
|
10
|
+
})(AuthType || (exports.AuthType = AuthType = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Method = void 0;
|
|
4
|
+
var Method;
|
|
5
|
+
(function (Method) {
|
|
6
|
+
Method[Method["GET"] = 1] = "GET";
|
|
7
|
+
Method[Method["POST"] = 2] = "POST";
|
|
8
|
+
})(Method || (exports.Method = Method = {}));
|
|
@@ -0,0 +1,21 @@
|
|
|
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("./AuthApiKey"), exports);
|
|
18
|
+
__exportStar(require("./AuthBasic"), exports);
|
|
19
|
+
__exportStar(require("./AuthBearer"), exports);
|
|
20
|
+
__exportStar(require("./AuthType"), exports);
|
|
21
|
+
__exportStar(require("./Method"), exports);
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { AssignMethod, ConversationAssigned } from '../../Conversations/Conversation';
|
|
2
|
+
import { ChannelType } from './ChannelType';
|
|
3
|
+
import { EmailConfig } from './Email';
|
|
4
|
+
import { FacebookConfig } from './Facebook';
|
|
5
|
+
import { FormConfig } from './Form';
|
|
6
|
+
import { GoogleBusinessConfig } from './GoogleBusiness';
|
|
7
|
+
import { InstagramConfig } from './Instagram';
|
|
8
|
+
import { MercadoLibreConfig } from './MercadoLibre';
|
|
9
|
+
import { PbxConfig } from './Pbx';
|
|
10
|
+
import { Permission } from './Permission';
|
|
11
|
+
import { SipConfig } from './Sip';
|
|
12
|
+
import { SmsConfig } from './Sms';
|
|
13
|
+
import { WebChatConfig } from './WebChat';
|
|
14
|
+
import { WhatsAppConectionType, WhatsAppConfig } from './WhatsApp';
|
|
15
|
+
import { RCSConfig } from './RCS';
|
|
16
|
+
interface IChannelInfo {
|
|
17
|
+
id?: string | null;
|
|
18
|
+
name?: string | null;
|
|
19
|
+
description?: string | null;
|
|
20
|
+
type?: ChannelType | null;
|
|
21
|
+
/**
|
|
22
|
+
* Whatsapp specific - indicates the type of connection (Cloud API or APIQR)
|
|
23
|
+
*/
|
|
24
|
+
connectionType?: WhatsAppConectionType | null;
|
|
25
|
+
/**
|
|
26
|
+
* Indicates if the WhatsApp business is on the WhatsApp Business App
|
|
27
|
+
*/
|
|
28
|
+
cloudApiIsOnBizApp?: boolean | null;
|
|
29
|
+
/** WhatsApp Web instance configured for coexistence. */
|
|
30
|
+
apiqrId?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* ID of the channel in the external system.
|
|
33
|
+
*/
|
|
34
|
+
externalChannelId?: string | null;
|
|
35
|
+
/**
|
|
36
|
+
* Indicates the status of the channel.
|
|
37
|
+
* actually each channel type has its own status values, so this property is a string to accommodate that.
|
|
38
|
+
* TODO: which can be one of the following values: "ACTIVE", "INACTIVE", "DELETED", "ERROR", "PROVISIONING", "DEPROVISIONING", "SUSPENDED", or "CONFIGURATION_PENDING".
|
|
39
|
+
*/
|
|
40
|
+
status?: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Fallback routing used only when no published Flow entry point matches the
|
|
44
|
+
* channel, or when the selected Flow cannot produce a valid disposition.
|
|
45
|
+
*
|
|
46
|
+
* Flow-to-channel bindings remain authoritative in FlowEntryPoint.
|
|
47
|
+
*/
|
|
48
|
+
interface ChannelConversationRoutingConfig {
|
|
49
|
+
/** Stable id of a ConversationQueue in the same space as the channel. */
|
|
50
|
+
defaultQueueId: string;
|
|
51
|
+
}
|
|
52
|
+
interface IChannel {
|
|
53
|
+
id?: string | null;
|
|
54
|
+
spaceId?: string | null;
|
|
55
|
+
name?: string | null;
|
|
56
|
+
description?: string | null;
|
|
57
|
+
type?: ChannelType | null;
|
|
58
|
+
permissions?: Permission[] | null;
|
|
59
|
+
/**
|
|
60
|
+
* @deprecated Legacy channel assignment configuration. Use
|
|
61
|
+
* ChannelConversationRoutingConfig; Flow bindings live in FlowEntryPoint.
|
|
62
|
+
*/
|
|
63
|
+
assignTo?: ConversationAssigned;
|
|
64
|
+
/**
|
|
65
|
+
* @deprecated Legacy channel assignment configuration. Use
|
|
66
|
+
* ChannelConversationRoutingConfig; QueueRoutingPolicy controls agent
|
|
67
|
+
* distribution only after a Queue has been selected.
|
|
68
|
+
*/
|
|
69
|
+
assignMethod: AssignMethod;
|
|
70
|
+
/**
|
|
71
|
+
* @deprecated Ownership is produced by the routing decision.
|
|
72
|
+
*/
|
|
73
|
+
assignToOwner?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* habilita la creacion de conversaciones para este canal, si esta en false, los mensajes entrantes no generaran conversaciones
|
|
76
|
+
*/
|
|
77
|
+
conversationsEnabled: boolean | false;
|
|
78
|
+
/**
|
|
79
|
+
* Default Queue for newly-created conversations that are not handled by a
|
|
80
|
+
* Flow. Store only the Queue id;
|
|
81
|
+
*/
|
|
82
|
+
conversationRouting?: ChannelConversationRoutingConfig | null;
|
|
83
|
+
/**
|
|
84
|
+
* Gets or sets a value indicating whether webhook notifications are enabled.
|
|
85
|
+
* Redirects incoming messages to the specified webhook URL when set to true.
|
|
86
|
+
*/
|
|
87
|
+
webhookEnabled: boolean | false;
|
|
88
|
+
/**Gets or sets the URL of the webhook endpoint to which notifications are sent. */
|
|
89
|
+
webhookUrl?: string | null;
|
|
90
|
+
/**Used to sign the webhook payloads, to verify that they come from Trii. The receiver webhook endpoint should have the logic to verify the signature using this secret. */
|
|
91
|
+
webhookSecret?: string | null;
|
|
92
|
+
email?: EmailConfig | null;
|
|
93
|
+
sms?: SmsConfig | null;
|
|
94
|
+
webChat?: WebChatConfig | null;
|
|
95
|
+
form?: FormConfig | null;
|
|
96
|
+
pbx?: PbxConfig | null;
|
|
97
|
+
sip?: SipConfig | null;
|
|
98
|
+
whatsApp?: WhatsAppConfig | null;
|
|
99
|
+
instagram?: InstagramConfig | null;
|
|
100
|
+
facebook?: FacebookConfig | null;
|
|
101
|
+
mercadoLibre?: MercadoLibreConfig | null;
|
|
102
|
+
googleBusiness?: GoogleBusinessConfig | null;
|
|
103
|
+
rcsBusiness?: RCSConfig | null;
|
|
104
|
+
createdAt?: string | null;
|
|
105
|
+
createdBy?: string | null;
|
|
106
|
+
updatedAt?: string | null;
|
|
107
|
+
deletedAt?: string | null;
|
|
108
|
+
statusCode: channelStatus | channelStatus.UNKNOWN;
|
|
109
|
+
statusDetails: string | '';
|
|
110
|
+
statusUpdateAt?: Date | null;
|
|
111
|
+
messagingAvailability: MessagingAvailability;
|
|
112
|
+
lifecycleStatus?: ChannelLifecycleStatus;
|
|
113
|
+
lifecycleStatusUpdatedAt?: Date | null;
|
|
114
|
+
lifecycleStatusUpdatedBy?: string | null;
|
|
115
|
+
}
|
|
116
|
+
declare enum MessagingAvailability {
|
|
117
|
+
AVAILABLE = 0,
|
|
118
|
+
BLOCKED = 1
|
|
119
|
+
}
|
|
120
|
+
declare enum ChannelLifecycleStatus {
|
|
121
|
+
ACTIVE = 0,
|
|
122
|
+
/** Pausado por el usuario: conserva configuración y suscripciones, no envía ni recibe mensajes. */
|
|
123
|
+
PAUSED = 1,
|
|
124
|
+
/** Desconectado por el usuario (soft delete): se puede volver a conectar reutilizando el mismo canal. */
|
|
125
|
+
ARCHIVED = 2
|
|
126
|
+
}
|
|
127
|
+
declare enum channelStatus {
|
|
128
|
+
UNKNOWN = 0,
|
|
129
|
+
ACTIVE = 1,
|
|
130
|
+
INACTIVE = 2,
|
|
131
|
+
DELETED = 3,
|
|
132
|
+
ERROR = 4,
|
|
133
|
+
PROVISIONING = 5,
|
|
134
|
+
DEPROVISIONING = 6,
|
|
135
|
+
SUSPENDED = 7,
|
|
136
|
+
CONFIGURATION_PENDING = 9,
|
|
137
|
+
/**
|
|
138
|
+
* La credencial del proveedor es inválida, expiró o perdió permisos (por ejemplo, token de Meta):
|
|
139
|
+
* el usuario debe volver a conectar la cuenta. El motivo va en statusDetails.
|
|
140
|
+
*/
|
|
141
|
+
REAUTH_REQUIRED = 10
|
|
142
|
+
}
|
|
143
|
+
export { IChannel, IChannelInfo, ChannelConversationRoutingConfig, channelStatus, MessagingAvailability, ChannelLifecycleStatus };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChannelLifecycleStatus = exports.MessagingAvailability = exports.channelStatus = void 0;
|
|
4
|
+
var MessagingAvailability;
|
|
5
|
+
(function (MessagingAvailability) {
|
|
6
|
+
MessagingAvailability[MessagingAvailability["AVAILABLE"] = 0] = "AVAILABLE";
|
|
7
|
+
MessagingAvailability[MessagingAvailability["BLOCKED"] = 1] = "BLOCKED";
|
|
8
|
+
})(MessagingAvailability || (exports.MessagingAvailability = MessagingAvailability = {}));
|
|
9
|
+
var ChannelLifecycleStatus;
|
|
10
|
+
(function (ChannelLifecycleStatus) {
|
|
11
|
+
ChannelLifecycleStatus[ChannelLifecycleStatus["ACTIVE"] = 0] = "ACTIVE";
|
|
12
|
+
/** Pausado por el usuario: conserva configuración y suscripciones, no envía ni recibe mensajes. */
|
|
13
|
+
ChannelLifecycleStatus[ChannelLifecycleStatus["PAUSED"] = 1] = "PAUSED";
|
|
14
|
+
/** Desconectado por el usuario (soft delete): se puede volver a conectar reutilizando el mismo canal. */
|
|
15
|
+
ChannelLifecycleStatus[ChannelLifecycleStatus["ARCHIVED"] = 2] = "ARCHIVED";
|
|
16
|
+
})(ChannelLifecycleStatus || (exports.ChannelLifecycleStatus = ChannelLifecycleStatus = {}));
|
|
17
|
+
var channelStatus;
|
|
18
|
+
(function (channelStatus) {
|
|
19
|
+
channelStatus[channelStatus["UNKNOWN"] = 0] = "UNKNOWN";
|
|
20
|
+
channelStatus[channelStatus["ACTIVE"] = 1] = "ACTIVE";
|
|
21
|
+
channelStatus[channelStatus["INACTIVE"] = 2] = "INACTIVE";
|
|
22
|
+
channelStatus[channelStatus["DELETED"] = 3] = "DELETED";
|
|
23
|
+
channelStatus[channelStatus["ERROR"] = 4] = "ERROR";
|
|
24
|
+
channelStatus[channelStatus["PROVISIONING"] = 5] = "PROVISIONING";
|
|
25
|
+
channelStatus[channelStatus["DEPROVISIONING"] = 6] = "DEPROVISIONING";
|
|
26
|
+
channelStatus[channelStatus["SUSPENDED"] = 7] = "SUSPENDED";
|
|
27
|
+
channelStatus[channelStatus["CONFIGURATION_PENDING"] = 9] = "CONFIGURATION_PENDING";
|
|
28
|
+
/**
|
|
29
|
+
* La credencial del proveedor es inválida, expiró o perdió permisos (por ejemplo, token de Meta):
|
|
30
|
+
* el usuario debe volver a conectar la cuenta. El motivo va en statusDetails.
|
|
31
|
+
*/
|
|
32
|
+
channelStatus[channelStatus["REAUTH_REQUIRED"] = 10] = "REAUTH_REQUIRED";
|
|
33
|
+
})(channelStatus || (exports.channelStatus = channelStatus = {}));
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare enum ChannelPlatform {
|
|
2
|
+
unknown = "unknown",
|
|
3
|
+
facebook = "facebook",
|
|
4
|
+
instagram = "instagram",
|
|
5
|
+
whatsapp = "whatsapp"
|
|
6
|
+
}
|
|
7
|
+
export declare enum ChannelAccountStatus {
|
|
8
|
+
connected = "connected",
|
|
9
|
+
disconnected = "disconnected",
|
|
10
|
+
connecting = "connecting",
|
|
11
|
+
error = "error"
|
|
12
|
+
}
|
|
13
|
+
export interface ChannelAccount {
|
|
14
|
+
id: string;
|
|
15
|
+
spaceId: string;
|
|
16
|
+
platform: ChannelPlatform;
|
|
17
|
+
externalUserId: string;
|
|
18
|
+
externalUserName: string;
|
|
19
|
+
email?: string;
|
|
20
|
+
avatarUrl?: string | null;
|
|
21
|
+
createdAt: Date;
|
|
22
|
+
createdBy: string;
|
|
23
|
+
updatedAt?: Date;
|
|
24
|
+
updatedBy?: string;
|
|
25
|
+
resources: ChannelAccountResource[];
|
|
26
|
+
}
|
|
27
|
+
export interface ChannelAccountResource {
|
|
28
|
+
resourceId: string;
|
|
29
|
+
resourceName: string;
|
|
30
|
+
avatarUrl?: string | null;
|
|
31
|
+
status: ChannelAccountStatus;
|
|
32
|
+
accessToken?: string;
|
|
33
|
+
accessTokenExpiration?: Date;
|
|
34
|
+
channelId?: string;
|
|
35
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChannelAccountStatus = exports.ChannelPlatform = void 0;
|
|
4
|
+
var ChannelPlatform;
|
|
5
|
+
(function (ChannelPlatform) {
|
|
6
|
+
ChannelPlatform["unknown"] = "unknown";
|
|
7
|
+
ChannelPlatform["facebook"] = "facebook";
|
|
8
|
+
ChannelPlatform["instagram"] = "instagram";
|
|
9
|
+
ChannelPlatform["whatsapp"] = "whatsapp";
|
|
10
|
+
})(ChannelPlatform || (exports.ChannelPlatform = ChannelPlatform = {}));
|
|
11
|
+
var ChannelAccountStatus;
|
|
12
|
+
(function (ChannelAccountStatus) {
|
|
13
|
+
ChannelAccountStatus["connected"] = "connected";
|
|
14
|
+
ChannelAccountStatus["disconnected"] = "disconnected";
|
|
15
|
+
ChannelAccountStatus["connecting"] = "connecting";
|
|
16
|
+
ChannelAccountStatus["error"] = "error";
|
|
17
|
+
})(ChannelAccountStatus || (exports.ChannelAccountStatus = ChannelAccountStatus = {}));
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare enum ChannelType {
|
|
2
|
+
NULL = 0,
|
|
3
|
+
CALLBACK = 1,
|
|
4
|
+
EMAIL = 3,
|
|
5
|
+
SMS = 4,
|
|
6
|
+
CALL = 5,
|
|
7
|
+
PHONE = 5,
|
|
8
|
+
INFO = 9,
|
|
9
|
+
NOTA = 10,
|
|
10
|
+
WHATSAPP = 13,
|
|
11
|
+
FACEBOOK = 14,
|
|
12
|
+
TWITTER = 15,
|
|
13
|
+
INSTAGRAM = 16,
|
|
14
|
+
TELEGRAM = 17,
|
|
15
|
+
TRII = 18,
|
|
16
|
+
FACEBOOKPAGE = 19,
|
|
17
|
+
WEBCHAT = 20,
|
|
18
|
+
RCS = 21,
|
|
19
|
+
PBX = 31,
|
|
20
|
+
SIP = 32,
|
|
21
|
+
FORM = 33,
|
|
22
|
+
MERCADOLIBRE = 41,
|
|
23
|
+
GOOGLEBUSINESS = 42
|
|
24
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChannelType = void 0;
|
|
4
|
+
var ChannelType;
|
|
5
|
+
(function (ChannelType) {
|
|
6
|
+
ChannelType[ChannelType["NULL"] = 0] = "NULL";
|
|
7
|
+
ChannelType[ChannelType["CALLBACK"] = 1] = "CALLBACK";
|
|
8
|
+
ChannelType[ChannelType["EMAIL"] = 3] = "EMAIL";
|
|
9
|
+
ChannelType[ChannelType["SMS"] = 4] = "SMS";
|
|
10
|
+
ChannelType[ChannelType["CALL"] = 5] = "CALL";
|
|
11
|
+
ChannelType[ChannelType["PHONE"] = 5] = "PHONE";
|
|
12
|
+
ChannelType[ChannelType["INFO"] = 9] = "INFO";
|
|
13
|
+
ChannelType[ChannelType["NOTA"] = 10] = "NOTA";
|
|
14
|
+
ChannelType[ChannelType["WHATSAPP"] = 13] = "WHATSAPP";
|
|
15
|
+
ChannelType[ChannelType["FACEBOOK"] = 14] = "FACEBOOK";
|
|
16
|
+
ChannelType[ChannelType["TWITTER"] = 15] = "TWITTER";
|
|
17
|
+
ChannelType[ChannelType["INSTAGRAM"] = 16] = "INSTAGRAM";
|
|
18
|
+
ChannelType[ChannelType["TELEGRAM"] = 17] = "TELEGRAM";
|
|
19
|
+
ChannelType[ChannelType["TRII"] = 18] = "TRII";
|
|
20
|
+
ChannelType[ChannelType["FACEBOOKPAGE"] = 19] = "FACEBOOKPAGE";
|
|
21
|
+
ChannelType[ChannelType["WEBCHAT"] = 20] = "WEBCHAT";
|
|
22
|
+
ChannelType[ChannelType["RCS"] = 21] = "RCS";
|
|
23
|
+
ChannelType[ChannelType["PBX"] = 31] = "PBX";
|
|
24
|
+
ChannelType[ChannelType["SIP"] = 32] = "SIP";
|
|
25
|
+
ChannelType[ChannelType["FORM"] = 33] = "FORM";
|
|
26
|
+
ChannelType[ChannelType["MERCADOLIBRE"] = 41] = "MERCADOLIBRE";
|
|
27
|
+
ChannelType[ChannelType["GOOGLEBUSINESS"] = 42] = "GOOGLEBUSINESS";
|
|
28
|
+
})(ChannelType || (exports.ChannelType = ChannelType = {}));
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { GoogleAccountInfo } from "./GoogleBusiness";
|
|
2
|
+
export declare enum EmailConfigOutboundConnectionType {
|
|
3
|
+
NULL = 0,
|
|
4
|
+
TRII = 1,
|
|
5
|
+
SMTP = 2,
|
|
6
|
+
GOOGLE = 3
|
|
7
|
+
}
|
|
8
|
+
export declare enum EmailConfigOutboundSecurityType {
|
|
9
|
+
NONE = 0,
|
|
10
|
+
SSL = 1,
|
|
11
|
+
TLS = 2
|
|
12
|
+
}
|
|
13
|
+
export declare enum EmailConfigOutboundStatus {
|
|
14
|
+
NOT_CONFIGURED = 1,
|
|
15
|
+
SUCCESS = 2
|
|
16
|
+
}
|
|
17
|
+
export declare enum EmailConfigFromNameType {
|
|
18
|
+
CHANNEL_NAME = 1,
|
|
19
|
+
USER_NAME = 2,
|
|
20
|
+
CUSTOM = 3
|
|
21
|
+
}
|
|
22
|
+
export declare enum EmailConfigInboundConnectionType {
|
|
23
|
+
NULL = 0,
|
|
24
|
+
IMAP = 1,
|
|
25
|
+
GOOGLE = 2,
|
|
26
|
+
MICROSOFT = 3
|
|
27
|
+
}
|
|
28
|
+
export declare class EmailConfig {
|
|
29
|
+
useInCampaigns?: boolean;
|
|
30
|
+
token?: string;
|
|
31
|
+
emailAddress: string;
|
|
32
|
+
emailFromNameType: EmailConfigFromNameType;
|
|
33
|
+
emailFromNameCustom: string;
|
|
34
|
+
apiPauseBetweenMessages: number | 0;
|
|
35
|
+
apiSendOnBusinessTime: boolean | false;
|
|
36
|
+
reassign?: boolean;
|
|
37
|
+
reassignTime?: number;
|
|
38
|
+
reassignGroupId?: string;
|
|
39
|
+
reOpenTime?: number;
|
|
40
|
+
connectedEmailDoamin: string;
|
|
41
|
+
inboundConnectedEmail: string;
|
|
42
|
+
inboundConnectedEmailStatus: EmailConfigOutboundStatus;
|
|
43
|
+
outboundConnectionType: EmailConfigOutboundConnectionType;
|
|
44
|
+
outboundSmtStatus: EmailConfigOutboundStatus;
|
|
45
|
+
outboundSmtSecurityType: EmailConfigOutboundSecurityType;
|
|
46
|
+
outboundSmtpServer: string;
|
|
47
|
+
outboundSmtpPort: number | 25;
|
|
48
|
+
outboundSmtpUser: string;
|
|
49
|
+
outboundSmtPasword: string;
|
|
50
|
+
outboundTrii?: EmailDomain;
|
|
51
|
+
outboundGoogleStatus: EmailConfigOutboundStatus;
|
|
52
|
+
outboundGoogleAccount: GoogleAccountInfo;
|
|
53
|
+
inboundConnectionType: EmailConfigInboundConnectionType;
|
|
54
|
+
inboundSyncStatus: EmailConfigOutboundStatus;
|
|
55
|
+
inboundImapServer?: string;
|
|
56
|
+
inboundImapPort: number | 993;
|
|
57
|
+
inboundImapSecurityType: EmailConfigOutboundSecurityType;
|
|
58
|
+
inboundImapUser?: string;
|
|
59
|
+
inboundImapPassword?: string;
|
|
60
|
+
inboundMicrosoftAccount?: MicrosoftAccountInfo;
|
|
61
|
+
inboundMicrosoftAccessData?: MicrosoftAccountDataAccess;
|
|
62
|
+
signature: string;
|
|
63
|
+
}
|
|
64
|
+
export declare class MicrosoftAccountInfo {
|
|
65
|
+
name: string;
|
|
66
|
+
email: string;
|
|
67
|
+
}
|
|
68
|
+
export declare class MicrosoftAccountDataAccess {
|
|
69
|
+
access_token?: string;
|
|
70
|
+
access_token_expiration: Date;
|
|
71
|
+
refresh_token?: string;
|
|
72
|
+
scope?: string;
|
|
73
|
+
}
|
|
74
|
+
export declare class EmailDomain {
|
|
75
|
+
id: string;
|
|
76
|
+
spaceId: string;
|
|
77
|
+
domain: string;
|
|
78
|
+
outboundTriiDkimStatus: EmailConfigOutboundStatus;
|
|
79
|
+
outboundTriiDkimRecords: DNSRecord[];
|
|
80
|
+
outboundTriiDmarcStatus: EmailConfigOutboundStatus;
|
|
81
|
+
outboundTriiDmarcRecords: DNSRecord[];
|
|
82
|
+
outboundTriiDmarcReadedRecord: string;
|
|
83
|
+
}
|
|
84
|
+
export declare class DNSRecord {
|
|
85
|
+
name: string;
|
|
86
|
+
type: string;
|
|
87
|
+
value: string;
|
|
88
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DNSRecord = exports.EmailDomain = exports.MicrosoftAccountDataAccess = exports.MicrosoftAccountInfo = exports.EmailConfig = exports.EmailConfigInboundConnectionType = exports.EmailConfigFromNameType = exports.EmailConfigOutboundStatus = exports.EmailConfigOutboundSecurityType = exports.EmailConfigOutboundConnectionType = void 0;
|
|
4
|
+
var EmailConfigOutboundConnectionType;
|
|
5
|
+
(function (EmailConfigOutboundConnectionType) {
|
|
6
|
+
EmailConfigOutboundConnectionType[EmailConfigOutboundConnectionType["NULL"] = 0] = "NULL";
|
|
7
|
+
EmailConfigOutboundConnectionType[EmailConfigOutboundConnectionType["TRII"] = 1] = "TRII";
|
|
8
|
+
EmailConfigOutboundConnectionType[EmailConfigOutboundConnectionType["SMTP"] = 2] = "SMTP";
|
|
9
|
+
EmailConfigOutboundConnectionType[EmailConfigOutboundConnectionType["GOOGLE"] = 3] = "GOOGLE";
|
|
10
|
+
})(EmailConfigOutboundConnectionType || (exports.EmailConfigOutboundConnectionType = EmailConfigOutboundConnectionType = {}));
|
|
11
|
+
var EmailConfigOutboundSecurityType;
|
|
12
|
+
(function (EmailConfigOutboundSecurityType) {
|
|
13
|
+
EmailConfigOutboundSecurityType[EmailConfigOutboundSecurityType["NONE"] = 0] = "NONE";
|
|
14
|
+
EmailConfigOutboundSecurityType[EmailConfigOutboundSecurityType["SSL"] = 1] = "SSL";
|
|
15
|
+
EmailConfigOutboundSecurityType[EmailConfigOutboundSecurityType["TLS"] = 2] = "TLS";
|
|
16
|
+
})(EmailConfigOutboundSecurityType || (exports.EmailConfigOutboundSecurityType = EmailConfigOutboundSecurityType = {}));
|
|
17
|
+
var EmailConfigOutboundStatus;
|
|
18
|
+
(function (EmailConfigOutboundStatus) {
|
|
19
|
+
EmailConfigOutboundStatus[EmailConfigOutboundStatus["NOT_CONFIGURED"] = 1] = "NOT_CONFIGURED";
|
|
20
|
+
EmailConfigOutboundStatus[EmailConfigOutboundStatus["SUCCESS"] = 2] = "SUCCESS";
|
|
21
|
+
})(EmailConfigOutboundStatus || (exports.EmailConfigOutboundStatus = EmailConfigOutboundStatus = {}));
|
|
22
|
+
var EmailConfigFromNameType;
|
|
23
|
+
(function (EmailConfigFromNameType) {
|
|
24
|
+
EmailConfigFromNameType[EmailConfigFromNameType["CHANNEL_NAME"] = 1] = "CHANNEL_NAME";
|
|
25
|
+
EmailConfigFromNameType[EmailConfigFromNameType["USER_NAME"] = 2] = "USER_NAME";
|
|
26
|
+
EmailConfigFromNameType[EmailConfigFromNameType["CUSTOM"] = 3] = "CUSTOM";
|
|
27
|
+
})(EmailConfigFromNameType || (exports.EmailConfigFromNameType = EmailConfigFromNameType = {}));
|
|
28
|
+
var EmailConfigInboundConnectionType;
|
|
29
|
+
(function (EmailConfigInboundConnectionType) {
|
|
30
|
+
EmailConfigInboundConnectionType[EmailConfigInboundConnectionType["NULL"] = 0] = "NULL";
|
|
31
|
+
EmailConfigInboundConnectionType[EmailConfigInboundConnectionType["IMAP"] = 1] = "IMAP";
|
|
32
|
+
EmailConfigInboundConnectionType[EmailConfigInboundConnectionType["GOOGLE"] = 2] = "GOOGLE";
|
|
33
|
+
EmailConfigInboundConnectionType[EmailConfigInboundConnectionType["MICROSOFT"] = 3] = "MICROSOFT";
|
|
34
|
+
})(EmailConfigInboundConnectionType || (exports.EmailConfigInboundConnectionType = EmailConfigInboundConnectionType = {}));
|
|
35
|
+
class EmailConfig {
|
|
36
|
+
}
|
|
37
|
+
exports.EmailConfig = EmailConfig;
|
|
38
|
+
class MicrosoftAccountInfo {
|
|
39
|
+
}
|
|
40
|
+
exports.MicrosoftAccountInfo = MicrosoftAccountInfo;
|
|
41
|
+
class MicrosoftAccountDataAccess {
|
|
42
|
+
}
|
|
43
|
+
exports.MicrosoftAccountDataAccess = MicrosoftAccountDataAccess;
|
|
44
|
+
class EmailDomain {
|
|
45
|
+
}
|
|
46
|
+
exports.EmailDomain = EmailDomain;
|
|
47
|
+
class DNSRecord {
|
|
48
|
+
}
|
|
49
|
+
exports.DNSRecord = DNSRecord;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ISchedule } from "../Schedules/Schedules";
|
|
2
|
+
export declare class FacebookConfig {
|
|
3
|
+
token?: string | '';
|
|
4
|
+
reOpenTime?: number;
|
|
5
|
+
fbAccessToken: string;
|
|
6
|
+
fbAccessTokenExpiration: Date;
|
|
7
|
+
fbUserId: string;
|
|
8
|
+
fbUserName: string;
|
|
9
|
+
fbPageId: string;
|
|
10
|
+
fbPageName: string;
|
|
11
|
+
fbLink: string;
|
|
12
|
+
fbSubscribedEvents: string[];
|
|
13
|
+
reassign?: boolean;
|
|
14
|
+
reassignTime?: number;
|
|
15
|
+
reassignGroupId?: string;
|
|
16
|
+
signatureEnabled?: boolean;
|
|
17
|
+
signatureText?: string;
|
|
18
|
+
autoResponseBusinessHours?: boolean;
|
|
19
|
+
autoResponseOutOfBusinessHours?: boolean;
|
|
20
|
+
autoResponseHoliday?: boolean;
|
|
21
|
+
autoResponseBusinessHoursMessage?: string | '';
|
|
22
|
+
autoResponseOutOfBusinessHoursMessage?: string | '';
|
|
23
|
+
autoResponseHolidayMessage?: string | '';
|
|
24
|
+
scheduleId?: string | null;
|
|
25
|
+
schedule?: ISchedule | null;
|
|
26
|
+
}
|