@trii/types 2.10.711 → 2.10.713
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/dist/Tickets/AdvancedApi.d.ts +60 -0
- package/dist/Tickets/AdvancedApi.js +12 -1
- package/dist/Tickets/Sla.d.ts +24 -0
- package/package.json +12 -12
- package/dist/AI/MapPolygon.d.ts +0 -22
- package/dist/AI/MapPolygon.js +0 -2
- package/dist/Conversations/DashBoard/dashboardForms.d.ts +0 -44
- package/dist/Conversations/DashBoard/dashboardForms.js +0 -24
- 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 +0 -2
- package/dist/Conversations/Flows/Nodes/NodeApi.js +0 -183
- package/dist/Conversations/Flows/Nodes/NodeBotIA.d.ts +0 -15
- package/dist/Conversations/Flows/Nodes/NodeBotIA.js +0 -6
- package/dist/Conversations/Flows/Nodes/NodeChatBotIA.d.ts +0 -15
- package/dist/Conversations/Flows/Nodes/NodeChatBotIA.js +0 -6
- 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 +0 -1
- package/dist/Conversations/Flows/Nodes/NodeFillTicket.js +0 -9
- package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.d.ts +0 -20
- package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.js +0 -2
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.d.ts +0 -12
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.js +0 -6
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.d.ts +0 -15
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.js +0 -2
- 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 +0 -1
- package/dist/Conversations/Flows/Nodes/NodeMsgText.js +0 -27
- 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 +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolCalculator.js +0 -37
- package/dist/Conversations/Flows/Nodes/NodeToolContacts.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolContacts.js +0 -59
- package/dist/Conversations/Flows/Nodes/NodeToolFunction.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolFunction.js +0 -45
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.js +0 -87
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.d.ts +0 -1
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.js +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.js +0 -52
- package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.js +0 -59
- package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.js +0 -45
- package/dist/Conversations/Flows/Nodes/NodeToolShoppingCart.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolShoppingCart.js +0 -81
- package/dist/Conversations/Flows/Nodes/index.d.ts +0 -24
- package/dist/Conversations/Flows/Nodes/index.js +0 -40
- package/dist/Conversations/InboxCounters.d.ts +0 -18
- package/dist/Conversations/InboxCounters.js +0 -2
- package/dist/Presence/ChannelRoutingState.d.ts +0 -17
- package/dist/Presence/ChannelRoutingState.js +0 -9
- package/dist/Tickets/AccessLevel.d.ts +0 -5
- package/dist/Tickets/AccessLevel.js +0 -9
- package/dist/src/AI/Credential.d.ts +0 -13
- package/dist/src/AI/Credential.js +0 -2
- package/dist/src/AI/Documents/Document.d.ts +0 -36
- package/dist/src/AI/Documents/Document.js +0 -15
- package/dist/src/AI/Documents/Store.d.ts +0 -25
- package/dist/src/AI/Documents/Store.js +0 -10
- package/dist/src/AI/Map.d.ts +0 -13
- package/dist/src/AI/Map.js +0 -2
- package/dist/src/AI/Provider.d.ts +0 -6
- package/dist/src/AI/Provider.js +0 -2
- package/dist/src/AI/Threads/API.d.ts +0 -55
- package/dist/src/AI/Threads/API.js +0 -2
- package/dist/src/AI/Threads/Message.d.ts +0 -61
- package/dist/src/AI/Threads/Message.js +0 -2
- package/dist/src/AI/Threads/Thread.d.ts +0 -22
- package/dist/src/AI/Threads/Thread.js +0 -2
- package/dist/src/AI/Threads/index.d.ts +0 -3
- package/dist/src/AI/Threads/index.js +0 -19
- package/dist/src/AI/aiModuleStatus.d.ts +0 -3
- package/dist/src/AI/aiModuleStatus.js +0 -2
- package/dist/src/AI/index.d.ts +0 -4
- package/dist/src/AI/index.js +0 -20
- package/dist/src/Accounts/accounts.d.ts +0 -88
- package/dist/src/Accounts/accounts.js +0 -24
- package/dist/src/Accounts/device.d.ts +0 -31
- package/dist/src/Accounts/device.js +0 -19
- package/dist/src/Accounts/index.d.ts +0 -2
- package/dist/src/Accounts/index.js +0 -18
- package/dist/src/ApiResponses/index.d.ts +0 -9
- package/dist/src/ApiResponses/index.js +0 -2
- package/dist/src/AuditLogs/auditLog.d.ts +0 -9
- package/dist/src/AuditLogs/auditLog.js +0 -2
- package/dist/src/AuditLogs/auditLogType.d.ts +0 -5
- package/dist/src/AuditLogs/auditLogType.js +0 -9
- package/dist/src/AuditLogs/index.d.ts +0 -2
- package/dist/src/AuditLogs/index.js +0 -18
- package/dist/src/Automations/Capabilities/Capability.d.ts +0 -48
- package/dist/src/Automations/Capabilities/Capability.js +0 -9
- package/dist/src/Automations/Capabilities/index.d.ts +0 -1
- package/dist/src/Automations/Capabilities/index.js +0 -17
- package/dist/src/Automations/Common.d.ts +0 -47
- package/dist/src/Automations/Common.js +0 -18
- package/dist/src/Automations/Events/Event.d.ts +0 -41
- package/dist/src/Automations/Events/Event.js +0 -2
- package/dist/src/Automations/Events/index.d.ts +0 -1
- package/dist/src/Automations/Events/index.js +0 -17
- package/dist/src/Automations/Executions/Execution.d.ts +0 -114
- package/dist/src/Automations/Executions/Execution.js +0 -23
- package/dist/src/Automations/Executions/index.d.ts +0 -1
- package/dist/src/Automations/Executions/index.js +0 -17
- package/dist/src/Automations/Flows/Canvas.d.ts +0 -86
- package/dist/src/Automations/Flows/Canvas.js +0 -34
- package/dist/src/Automations/Flows/Flow.d.ts +0 -102
- package/dist/src/Automations/Flows/Flow.js +0 -34
- package/dist/src/Automations/Flows/Requests.d.ts +0 -71
- package/dist/src/Automations/Flows/Requests.js +0 -2
- package/dist/src/Automations/Flows/Validation.d.ts +0 -28
- package/dist/src/Automations/Flows/Validation.js +0 -9
- package/dist/src/Automations/Flows/index.d.ts +0 -4
- package/dist/src/Automations/Flows/index.js +0 -20
- package/dist/src/Automations/Nodes/Node.d.ts +0 -75
- package/dist/src/Automations/Nodes/Node.js +0 -18
- package/dist/src/Automations/Nodes/index.d.ts +0 -1
- package/dist/src/Automations/Nodes/index.js +0 -17
- package/dist/src/Automations/index.d.ts +0 -6
- package/dist/src/Automations/index.js +0 -22
- package/dist/src/Calendar/Calendar.d.ts +0 -18
- package/dist/src/Calendar/Calendar.js +0 -2
- package/dist/src/Calendar/Common.d.ts +0 -77
- package/dist/src/Calendar/Common.js +0 -16
- package/dist/src/Calendar/Event.d.ts +0 -64
- package/dist/src/Calendar/Event.js +0 -16
- package/dist/src/Calendar/Events.d.ts +0 -61
- package/dist/src/Calendar/Events.js +0 -5
- package/dist/src/Calendar/Task.d.ts +0 -12
- package/dist/src/Calendar/Task.js +0 -2
- package/dist/src/Calendar/Tasks.d.ts +0 -18
- package/dist/src/Calendar/Tasks.js +0 -5
- package/dist/src/Calendar/index.d.ts +0 -3
- package/dist/src/Calendar/index.js +0 -19
- package/dist/src/Calls/Audio.d.ts +0 -17
- package/dist/src/Calls/Audio.js +0 -8
- package/dist/src/Calls/Call.d.ts +0 -59
- package/dist/src/Calls/Call.js +0 -25
- package/dist/src/Calls/Codecs.d.ts +0 -5
- package/dist/src/Calls/Codecs.js +0 -21
- package/dist/src/Calls/Extension.d.ts +0 -24
- package/dist/src/Calls/Extension.js +0 -2
- package/dist/src/Calls/Options.d.ts +0 -5
- package/dist/src/Calls/Options.js +0 -2
- package/dist/src/Calls/Queue.d.ts +0 -52
- package/dist/src/Calls/Queue.js +0 -12
- package/dist/src/Calls/RingGroup.d.ts +0 -46
- package/dist/src/Calls/RingGroup.js +0 -27
- package/dist/src/Calls/Transport.d.ts +0 -6
- package/dist/src/Calls/Transport.js +0 -11
- package/dist/src/Calls/Trunk.d.ts +0 -31
- package/dist/src/Calls/Trunk.js +0 -2
- package/dist/src/Calls/index.d.ts +0 -6
- package/dist/src/Calls/index.js +0 -22
- package/dist/src/Chats/Chat.d.ts +0 -61
- package/dist/src/Chats/Chat.js +0 -28
- package/dist/src/Collections/Api.d.ts +0 -41
- package/dist/src/Collections/Api.js +0 -2
- package/dist/src/Collections/Commission.d.ts +0 -52
- package/dist/src/Collections/Commission.js +0 -10
- package/dist/src/Collections/Common.d.ts +0 -78
- package/dist/src/Collections/Common.js +0 -39
- package/dist/src/Collections/Dashboard.d.ts +0 -27
- package/dist/src/Collections/Dashboard.js +0 -2
- package/dist/src/Collections/Debt.d.ts +0 -97
- package/dist/src/Collections/Debt.js +0 -12
- package/dist/src/Collections/Interest.d.ts +0 -38
- package/dist/src/Collections/Interest.js +0 -25
- package/dist/src/Collections/Payment.d.ts +0 -87
- package/dist/src/Collections/Payment.js +0 -21
- package/dist/src/Collections/PaymentPlan.d.ts +0 -87
- package/dist/src/Collections/PaymentPlan.js +0 -21
- package/dist/src/Collections/PaymentPlanConfiguration.d.ts +0 -100
- package/dist/src/Collections/PaymentPlanConfiguration.js +0 -34
- package/dist/src/Collections/Portfolio.d.ts +0 -52
- package/dist/src/Collections/Portfolio.js +0 -12
- package/dist/src/Collections/Promise.d.ts +0 -49
- package/dist/src/Collections/Promise.js +0 -25
- package/dist/src/Collections/index.d.ts +0 -11
- package/dist/src/Collections/index.js +0 -27
- package/dist/src/Common/API/AuthApiKey.d.ts +0 -5
- package/dist/src/Common/API/AuthApiKey.js +0 -2
- package/dist/src/Common/API/AuthBasic.d.ts +0 -4
- package/dist/src/Common/API/AuthBasic.js +0 -2
- package/dist/src/Common/API/AuthBearer.d.ts +0 -5
- package/dist/src/Common/API/AuthBearer.js +0 -2
- package/dist/src/Common/API/AuthType.d.ts +0 -6
- package/dist/src/Common/API/AuthType.js +0 -10
- package/dist/src/Common/API/Method.d.ts +0 -4
- package/dist/src/Common/API/Method.js +0 -8
- package/dist/src/Common/API/index.d.ts +0 -5
- package/dist/src/Common/API/index.js +0 -21
- package/dist/src/Common/Channels/Channel.d.ts +0 -124
- package/dist/src/Common/Channels/Channel.js +0 -20
- package/dist/src/Common/Channels/ChannelAccount.d.ts +0 -35
- package/dist/src/Common/Channels/ChannelAccount.js +0 -17
- package/dist/src/Common/Channels/ChannelType.d.ts +0 -24
- package/dist/src/Common/Channels/ChannelType.js +0 -28
- package/dist/src/Common/Channels/Email.d.ts +0 -62
- package/dist/src/Common/Channels/Email.js +0 -36
- package/dist/src/Common/Channels/Facebook.d.ts +0 -25
- package/dist/src/Common/Channels/Facebook.js +0 -6
- package/dist/src/Common/Channels/Form.d.ts +0 -118
- package/dist/src/Common/Channels/Form.js +0 -32
- package/dist/src/Common/Channels/GoogleBusiness.d.ts +0 -20
- package/dist/src/Common/Channels/GoogleBusiness.js +0 -9
- package/dist/src/Common/Channels/Instagram.d.ts +0 -29
- package/dist/src/Common/Channels/Instagram.js +0 -14
- package/dist/src/Common/Channels/MercadoLibre.d.ts +0 -27
- package/dist/src/Common/Channels/MercadoLibre.js +0 -9
- package/dist/src/Common/Channels/Pbx.d.ts +0 -2
- package/dist/src/Common/Channels/Pbx.js +0 -6
- package/dist/src/Common/Channels/Permission.d.ts +0 -6
- package/dist/src/Common/Channels/Permission.js +0 -6
- package/dist/src/Common/Channels/RCS.d.ts +0 -37
- package/dist/src/Common/Channels/RCS.js +0 -9
- package/dist/src/Common/Channels/Sip.d.ts +0 -2
- package/dist/src/Common/Channels/Sip.js +0 -6
- package/dist/src/Common/Channels/Sms.d.ts +0 -46
- package/dist/src/Common/Channels/Sms.js +0 -16
- package/dist/src/Common/Channels/WebChat.d.ts +0 -62
- package/dist/src/Common/Channels/WebChat.js +0 -19
- package/dist/src/Common/Channels/WhatsApp.d.ts +0 -89
- package/dist/src/Common/Channels/WhatsApp.js +0 -18
- package/dist/src/Common/Channels/index.d.ts +0 -16
- package/dist/src/Common/Channels/index.js +0 -32
- package/dist/src/Common/EventsQueue/Data/postComment.d.ts +0 -26
- package/dist/src/Common/EventsQueue/Data/postComment.js +0 -2
- package/dist/src/Common/EventsQueue/EmailTemplate.d.ts +0 -10
- package/dist/src/Common/EventsQueue/EmailTemplate.js +0 -2
- package/dist/src/Common/EventsQueue/EventQueue.d.ts +0 -13
- package/dist/src/Common/EventsQueue/EventQueue.js +0 -2
- package/dist/src/Common/EventsQueue/UserUpdate.d.ts +0 -8
- package/dist/src/Common/EventsQueue/UserUpdate.js +0 -2
- package/dist/src/Common/EventsQueue/index.d.ts +0 -3
- package/dist/src/Common/EventsQueue/index.js +0 -19
- package/dist/src/Common/Logs/Log.d.ts +0 -18
- package/dist/src/Common/Logs/Log.js +0 -13
- package/dist/src/Common/Logs/index.d.ts +0 -1
- package/dist/src/Common/Logs/index.js +0 -17
- package/dist/src/Common/Messages/MediaFile.d.ts +0 -5
- package/dist/src/Common/Messages/MediaFile.js +0 -2
- package/dist/src/Common/Messages/Message.d.ts +0 -423
- package/dist/src/Common/Messages/Message.js +0 -62
- package/dist/src/Common/Messages/Template.d.ts +0 -86
- package/dist/src/Common/Messages/Template.js +0 -26
- package/dist/src/Common/Messages/index.d.ts +0 -3
- package/dist/src/Common/Messages/index.js +0 -19
- package/dist/src/Common/Notifications/Notification.d.ts +0 -19
- package/dist/src/Common/Notifications/Notification.js +0 -10
- package/dist/src/Common/Notifications/UserNotificationsConfig.d.ts +0 -33
- package/dist/src/Common/Notifications/UserNotificationsConfig.js +0 -18
- package/dist/src/Common/Notifications/index.d.ts +0 -2
- package/dist/src/Common/Notifications/index.js +0 -18
- package/dist/src/Common/Schedules/Schedules.d.ts +0 -32
- package/dist/src/Common/Schedules/Schedules.js +0 -2
- package/dist/src/Common/Schedules/index.d.ts +0 -1
- package/dist/src/Common/Schedules/index.js +0 -17
- package/dist/src/Common/index.d.ts +0 -6
- package/dist/src/Common/index.js +0 -42
- package/dist/src/Contacts/DuplicateContact.d.ts +0 -11
- package/dist/src/Contacts/DuplicateContact.js +0 -2
- package/dist/src/Contacts/File.d.ts +0 -17
- package/dist/src/Contacts/File.js +0 -2
- package/dist/src/Contacts/Import.d.ts +0 -18
- package/dist/src/Contacts/Import.js +0 -2
- package/dist/src/Contacts/Label.d.ts +0 -9
- package/dist/src/Contacts/Label.js +0 -2
- package/dist/src/Contacts/Note.d.ts +0 -15
- package/dist/src/Contacts/Note.js +0 -2
- package/dist/src/Contacts/Relationship.d.ts +0 -28
- package/dist/src/Contacts/Relationship.js +0 -16
- package/dist/src/Contacts/contacts.d.ts +0 -269
- package/dist/src/Contacts/contacts.js +0 -54
- package/dist/src/Contacts/index.d.ts +0 -9
- package/dist/src/Contacts/index.js +0 -25
- package/dist/src/Contacts/options.d.ts +0 -5
- package/dist/src/Contacts/options.js +0 -2
- package/dist/src/Contacts/segments.d.ts +0 -52
- package/dist/src/Contacts/segments.js +0 -53
- package/dist/src/Conversations/Assignment.d.ts +0 -81
- package/dist/src/Conversations/Assignment.js +0 -4
- package/dist/src/Conversations/Conversation.d.ts +0 -360
- package/dist/src/Conversations/Conversation.js +0 -36
- package/dist/src/Conversations/DashBoard/dashboard.d.ts +0 -115
- package/dist/src/Conversations/DashBoard/dashboard.js +0 -65
- package/dist/src/Conversations/DashBoard/dashboardChannels.d.ts +0 -5
- package/dist/src/Conversations/DashBoard/dashboardChannels.js +0 -6
- package/dist/src/Conversations/DashBoard/dashboardMessages.d.ts +0 -13
- package/dist/src/Conversations/DashBoard/dashboardMessages.js +0 -9
- package/dist/src/Conversations/Ending.d.ts +0 -17
- package/dist/src/Conversations/Ending.js +0 -2
- package/dist/src/Conversations/Flows/Definitions.d.ts +0 -10
- package/dist/src/Conversations/Flows/Definitions.js +0 -2
- package/dist/src/Conversations/Flows/Flow.d.ts +0 -222
- package/dist/src/Conversations/Flows/Flow.js +0 -50
- package/dist/src/Conversations/Flows/FlowInfo.d.ts +0 -9
- package/dist/src/Conversations/Flows/FlowInfo.js +0 -2
- package/dist/src/Conversations/Flows/Workflows/Workflow.d.ts +0 -336
- package/dist/src/Conversations/Flows/Workflows/Workflow.js +0 -98
- package/dist/src/Conversations/Flows/Workflows/index.d.ts +0 -1
- package/dist/src/Conversations/Flows/Workflows/index.js +0 -17
- package/dist/src/Conversations/Flows/index.d.ts +0 -4
- package/dist/src/Conversations/Flows/index.js +0 -20
- package/dist/src/Conversations/Groups/Group.d.ts +0 -17
- package/dist/src/Conversations/Groups/Group.js +0 -2
- package/dist/src/Conversations/InboxMongo.d.ts +0 -154
- package/dist/src/Conversations/InboxMongo.js +0 -128
- package/dist/src/Conversations/InboxProjection.d.ts +0 -162
- package/dist/src/Conversations/InboxProjection.js +0 -2
- package/dist/src/Conversations/Label.d.ts +0 -10
- package/dist/src/Conversations/Label.js +0 -2
- package/dist/src/Conversations/Outbox.d.ts +0 -24
- package/dist/src/Conversations/Outbox.js +0 -4
- package/dist/src/Conversations/Queue.d.ts +0 -107
- package/dist/src/Conversations/Queue.js +0 -4
- package/dist/src/Conversations/QuickResponse.d.ts +0 -34
- package/dist/src/Conversations/QuickResponse.js +0 -2
- package/dist/src/Conversations/Routing.d.ts +0 -164
- package/dist/src/Conversations/Routing.js +0 -2
- package/dist/src/Conversations/Sla.d.ts +0 -227
- package/dist/src/Conversations/Sla.js +0 -6
- package/dist/src/Conversations/SocialWalls.d.ts +0 -72
- package/dist/src/Conversations/SocialWalls.js +0 -2
- package/dist/src/Conversations/Survey.d.ts +0 -19
- package/dist/src/Conversations/Survey.js +0 -9
- package/dist/src/Conversations/Transfer.d.ts +0 -73
- package/dist/src/Conversations/Transfer.js +0 -2
- package/dist/src/Conversations/WebHook.d.ts +0 -22
- package/dist/src/Conversations/WebHook.js +0 -2
- package/dist/src/Conversations/index.d.ts +0 -21
- package/dist/src/Conversations/index.js +0 -60
- package/dist/src/Docs/Document.d.ts +0 -58
- package/dist/src/Docs/Document.js +0 -29
- package/dist/src/Docs/Store.d.ts +0 -37
- package/dist/src/Docs/Store.js +0 -17
- package/dist/src/Docs/index.d.ts +0 -2
- package/dist/src/Docs/index.js +0 -18
- package/dist/src/Forms/API.d.ts +0 -53
- package/dist/src/Forms/API.js +0 -2
- package/dist/src/Forms/SubmittedForm.d.ts +0 -56
- package/dist/src/Forms/SubmittedForm.js +0 -9
- package/dist/src/Forms/index.d.ts +0 -2
- package/dist/src/Forms/index.js +0 -18
- package/dist/src/Marketing/Campaign.d.ts +0 -69
- package/dist/src/Marketing/Campaign.js +0 -30
- package/dist/src/Marketing/Dashboard.d.ts +0 -48
- package/dist/src/Marketing/Dashboard.js +0 -2
- package/dist/src/Marketing/Options.d.ts +0 -12
- package/dist/src/Marketing/Options.js +0 -9
- package/dist/src/Marketing/Template.d.ts +0 -19
- package/dist/src/Marketing/Template.js +0 -8
- package/dist/src/Marketing/index.d.ts +0 -4
- package/dist/src/Marketing/index.js +0 -20
- package/dist/src/Presence/AgentPause.d.ts +0 -24
- package/dist/src/Presence/AgentPause.js +0 -19
- package/dist/src/Presence/QueueParticipation.d.ts +0 -17
- package/dist/src/Presence/QueueParticipation.js +0 -2
- package/dist/src/Presence/QueueRoutingState.d.ts +0 -27
- package/dist/src/Presence/QueueRoutingState.js +0 -9
- package/dist/src/Presence/index.d.ts +0 -3
- package/dist/src/Presence/index.js +0 -19
- package/dist/src/PublicAPI/apiKey.d.ts +0 -12
- package/dist/src/PublicAPI/apiKey.js +0 -2
- package/dist/src/Reports/ScheduledReport.d.ts +0 -205
- package/dist/src/Reports/ScheduledReport.js +0 -57
- package/dist/src/Reports/aiReport.d.ts +0 -20
- package/dist/src/Reports/aiReport.js +0 -2
- package/dist/src/Reports/apiResult.d.ts +0 -5
- package/dist/src/Reports/apiResult.js +0 -2
- package/dist/src/Reports/index.d.ts +0 -3
- package/dist/src/Reports/index.js +0 -19
- package/dist/src/Sales/Api.d.ts +0 -40
- package/dist/src/Sales/Api.js +0 -2
- package/dist/src/Sales/Common.d.ts +0 -72
- package/dist/src/Sales/Common.js +0 -31
- package/dist/src/Sales/Dashboard.d.ts +0 -25
- package/dist/src/Sales/Dashboard.js +0 -2
- package/dist/src/Sales/Lead.d.ts +0 -99
- package/dist/src/Sales/Lead.js +0 -8
- package/dist/src/Sales/index.d.ts +0 -4
- package/dist/src/Sales/index.js +0 -20
- package/dist/src/Security/Security.d.ts +0 -5
- package/dist/src/Security/Security.js +0 -2
- package/dist/src/Security/index.d.ts +0 -1
- package/dist/src/Security/index.js +0 -17
- package/dist/src/Shop/Cart/cart.d.ts +0 -19
- package/dist/src/Shop/Cart/cart.js +0 -2
- package/dist/src/Shop/index.d.ts +0 -1
- package/dist/src/Shop/index.js +0 -17
- package/dist/src/Spaces/Dashboard.d.ts +0 -4
- package/dist/src/Spaces/Dashboard.js +0 -2
- package/dist/src/Spaces/index.d.ts +0 -2
- package/dist/src/Spaces/index.js +0 -18
- package/dist/src/Spaces/spaces.d.ts +0 -104
- package/dist/src/Spaces/spaces.js +0 -85
- package/dist/src/Tickets/AI.d.ts +0 -400
- package/dist/src/Tickets/AI.js +0 -113
- package/dist/src/Tickets/AdvancedApi.d.ts +0 -486
- package/dist/src/Tickets/AdvancedApi.js +0 -108
- package/dist/src/Tickets/Api.d.ts +0 -62
- package/dist/src/Tickets/Api.js +0 -8
- package/dist/src/Tickets/Approval.d.ts +0 -139
- package/dist/src/Tickets/Approval.js +0 -30
- package/dist/src/Tickets/Automation.d.ts +0 -237
- package/dist/src/Tickets/Automation.js +0 -74
- package/dist/src/Tickets/Category.d.ts +0 -71
- package/dist/src/Tickets/Category.js +0 -2
- package/dist/src/Tickets/Common.d.ts +0 -90
- package/dist/src/Tickets/Common.js +0 -38
- package/dist/src/Tickets/Conversation.d.ts +0 -68
- package/dist/src/Tickets/Conversation.js +0 -30
- package/dist/src/Tickets/Dashboard.d.ts +0 -485
- package/dist/src/Tickets/Dashboard.js +0 -218
- package/dist/src/Tickets/Fields.d.ts +0 -134
- package/dist/src/Tickets/Fields.js +0 -44
- package/dist/src/Tickets/Layouts.d.ts +0 -65
- package/dist/src/Tickets/Layouts.js +0 -22
- package/dist/src/Tickets/Routing.d.ts +0 -290
- package/dist/src/Tickets/Routing.js +0 -87
- package/dist/src/Tickets/Satisfaction.d.ts +0 -31
- package/dist/src/Tickets/Satisfaction.js +0 -9
- package/dist/src/Tickets/Security.d.ts +0 -302
- package/dist/src/Tickets/Security.js +0 -107
- package/dist/src/Tickets/SelfService.d.ts +0 -255
- package/dist/src/Tickets/SelfService.js +0 -56
- package/dist/src/Tickets/Sla.d.ts +0 -253
- package/dist/src/Tickets/Sla.js +0 -73
- package/dist/src/Tickets/Task.d.ts +0 -122
- package/dist/src/Tickets/Task.js +0 -17
- package/dist/src/Tickets/Ticket.d.ts +0 -133
- package/dist/src/Tickets/Ticket.js +0 -2
- package/dist/src/Tickets/Views.d.ts +0 -77
- package/dist/src/Tickets/Views.js +0 -23
- package/dist/src/Tickets/Workflow.d.ts +0 -129
- package/dist/src/Tickets/Workflow.js +0 -44
- package/dist/src/Tickets/index.d.ts +0 -20
- package/dist/src/Tickets/index.js +0 -36
- package/dist/src/Users/Signature.d.ts +0 -74
- package/dist/src/Users/Signature.js +0 -2
- package/dist/src/Users/UserActivitySummary.d.ts +0 -5
- package/dist/src/Users/UserActivitySummary.js +0 -2
- package/dist/src/Users/UserProfile.d.ts +0 -97
- package/dist/src/Users/UserProfile.js +0 -5
- package/dist/src/Users/UserTrii.d.ts +0 -112
- package/dist/src/Users/UserTrii.js +0 -17
- package/dist/src/Users/UserType.d.ts +0 -10
- package/dist/src/Users/UserType.js +0 -13
- package/dist/src/Users/index.d.ts +0 -5
- package/dist/src/Users/index.js +0 -21
- package/dist/src/index.d.ts +0 -23
- package/dist/src/index.js +0 -59
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
export interface IFlow {
|
|
2
|
-
id?: string | null;
|
|
3
|
-
spaceId?: string | null;
|
|
4
|
-
name?: string | null;
|
|
5
|
-
description?: string | null;
|
|
6
|
-
enabled: boolean | false;
|
|
7
|
-
variables: IFlowVariable[];
|
|
8
|
-
nodes?: IReactFlowNode[] | null;
|
|
9
|
-
edges?: IReactFlowEdge[] | null;
|
|
10
|
-
viewport: {
|
|
11
|
-
x: number;
|
|
12
|
-
y: number;
|
|
13
|
-
zoom: number;
|
|
14
|
-
};
|
|
15
|
-
createdAt?: string | null;
|
|
16
|
-
updatedAt?: string | null;
|
|
17
|
-
deletedAt?: string | null;
|
|
18
|
-
}
|
|
19
|
-
export interface IFlowVariable {
|
|
20
|
-
name: string;
|
|
21
|
-
description?: string | '';
|
|
22
|
-
showInConversation?: boolean | false;
|
|
23
|
-
type: 'string' | 'number' | 'boolean' | 'date' | 'json' | 'array';
|
|
24
|
-
}
|
|
25
|
-
export declare enum NodeType {
|
|
26
|
-
NULL = 0,
|
|
27
|
-
START = 11,
|
|
28
|
-
START_CONVERSATION_OPENED = 12,
|
|
29
|
-
START_CONVERSATION_CLOSED = 13,
|
|
30
|
-
START_CONTACT_TAG_UPDATED = 14,
|
|
31
|
-
START_CONTACT_FIELD_UPDATED = 15,
|
|
32
|
-
START_CONTACT_FIELD_DATES = 16,
|
|
33
|
-
START_CONTACT_EVENT_DATE = 17,
|
|
34
|
-
MSG_TEMPLATE = 20,
|
|
35
|
-
MSG_TEXT = 21,
|
|
36
|
-
MSG_WAIT_RESPONSE = 22,
|
|
37
|
-
MSG_TEMPLATE_REPLY = 23,
|
|
38
|
-
MSG_TEXT_REPLY = 24,
|
|
39
|
-
SQL_QUERY = 31,
|
|
40
|
-
API = 32,
|
|
41
|
-
SEND_EMAIL = 33,
|
|
42
|
-
FILL_FORM = 41,
|
|
43
|
-
FILL_TICKET = 42,
|
|
44
|
-
CONTACT_SEARCH = 51,
|
|
45
|
-
CONTACT_UPDATE = 52,
|
|
46
|
-
CONVERSATION_ASSIGN_TO = 61,
|
|
47
|
-
CONVERSATION_UPDATE = 62,
|
|
48
|
-
CONVERSATION_FINALIZE = 63,
|
|
49
|
-
TIME_SCHEDULE_CONTROL = 81,
|
|
50
|
-
TIME_TIMER = 82,
|
|
51
|
-
TIME_WAIT_UNTIL = 83,
|
|
52
|
-
CONDITIONAL = 71,
|
|
53
|
-
REDIRECT = 72,
|
|
54
|
-
AI_CHATBOT = 91,
|
|
55
|
-
TOOL_TRII_CONTACT_UPDATE = 200,
|
|
56
|
-
TOOL_TRII_CONTACT_SEARCH = 201,
|
|
57
|
-
TOOL_TRII_CALENDAR = 202,
|
|
58
|
-
TOOL_MAPS_CHECK_POLYGON = 203,
|
|
59
|
-
TOOL_MCP_CLIENT = 204,
|
|
60
|
-
TOOL_KNOWLEDGE = 205,
|
|
61
|
-
TOOL_FUNCTION = 206,
|
|
62
|
-
TOOL_CALCULATOR = 207,
|
|
63
|
-
TOOL_SHOPPING_CART = 208,
|
|
64
|
-
TOOL_API = 209,
|
|
65
|
-
TOOL_ASSIGN_TO = 210,
|
|
66
|
-
TOOL_OCR = 211,
|
|
67
|
-
TOOL_EXTRACT_VARIABLES = 212,
|
|
68
|
-
TOOL_GOOGLE_CALENDAR = 251,
|
|
69
|
-
TOOL_GOOGLE_MAPS = 252
|
|
70
|
-
}
|
|
71
|
-
export type NodeCategory = 'trigger' | 'action' | 'tool' | 'agent' | 'message';
|
|
72
|
-
export interface IReactFlowNode {
|
|
73
|
-
id: string;
|
|
74
|
-
type: NodeType;
|
|
75
|
-
data: INode;
|
|
76
|
-
position: {
|
|
77
|
-
x: number;
|
|
78
|
-
y: number;
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
export interface IReactFlowEdge {
|
|
82
|
-
id: string | null;
|
|
83
|
-
type: string;
|
|
84
|
-
source: string | null;
|
|
85
|
-
sourceHandle?: string | null;
|
|
86
|
-
target: string | null;
|
|
87
|
-
targetHandle?: string | null;
|
|
88
|
-
data: {
|
|
89
|
-
label: string | '';
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
export interface INode {
|
|
93
|
-
id: string;
|
|
94
|
-
type: NodeType;
|
|
95
|
-
category: NodeCategory;
|
|
96
|
-
description: string | '';
|
|
97
|
-
tags?: string[];
|
|
98
|
-
version: number;
|
|
99
|
-
icon: string;
|
|
100
|
-
color?: string;
|
|
101
|
-
badge?: string;
|
|
102
|
-
hideOutput?: boolean;
|
|
103
|
-
hideInput?: boolean;
|
|
104
|
-
author?: string;
|
|
105
|
-
documentation?: string;
|
|
106
|
-
handlesIn: INodeHandle[];
|
|
107
|
-
handlesOut: INodeHandle[];
|
|
108
|
-
asyncLoadHandlesOut: boolean | false;
|
|
109
|
-
name: string;
|
|
110
|
-
nameKey?: string;
|
|
111
|
-
enableStatics?: boolean | false;
|
|
112
|
-
propertiesTabs: INodeTab[];
|
|
113
|
-
properties: INodeProperty[];
|
|
114
|
-
values?: ICommonObject;
|
|
115
|
-
}
|
|
116
|
-
export interface INodeTab {
|
|
117
|
-
id: string;
|
|
118
|
-
label: string;
|
|
119
|
-
}
|
|
120
|
-
export interface INodeHandle {
|
|
121
|
-
id: string;
|
|
122
|
-
name: string;
|
|
123
|
-
nameKey?: string;
|
|
124
|
-
type: 'source' | 'target';
|
|
125
|
-
position: 'left' | 'right' | 'top' | 'bottom';
|
|
126
|
-
/**
|
|
127
|
-
* Si un handle del tipo (source) permite múltiples conexiones salientes.
|
|
128
|
-
*/
|
|
129
|
-
multiple: boolean;
|
|
130
|
-
/**
|
|
131
|
-
* Si un handle de tipo fuente (source) muestra el nombre definido en la UI
|
|
132
|
-
*/
|
|
133
|
-
showName: boolean;
|
|
134
|
-
/**
|
|
135
|
-
* To limit connections to specific node types.
|
|
136
|
-
* Same tags must be present in the target node.
|
|
137
|
-
*/
|
|
138
|
-
tags?: string[];
|
|
139
|
-
/**
|
|
140
|
-
* Condiciones para mostrar u ocultar el handle, basadas en los valores de las propiedades del nodo
|
|
141
|
-
*/
|
|
142
|
-
show?: INodeDisplay;
|
|
143
|
-
hide?: INodeDisplay;
|
|
144
|
-
}
|
|
145
|
-
export interface INodeProperty {
|
|
146
|
-
/**
|
|
147
|
-
* Identificador/nombre único de la propiedad
|
|
148
|
-
*/
|
|
149
|
-
id: string;
|
|
150
|
-
/**
|
|
151
|
-
* Etiqueta que se muestra en la UI
|
|
152
|
-
*/
|
|
153
|
-
label: string;
|
|
154
|
-
/**
|
|
155
|
-
* Clave para utilizar en diccionario de traducciones
|
|
156
|
-
*/
|
|
157
|
-
labelKey?: string;
|
|
158
|
-
/**
|
|
159
|
-
* Tipo de parámetro, puede ser un tipo predefinido o un tipo personalizado
|
|
160
|
-
* Ejemplo: 'string', 'number', 'boolean', 'asyncOptions', etc.
|
|
161
|
-
*/
|
|
162
|
-
type: NodeParamsType | string;
|
|
163
|
-
/**
|
|
164
|
-
* Valor por defecto del parámetro.
|
|
165
|
-
* Puede ser un valor simple, un objeto o un array de objetos.
|
|
166
|
-
*/
|
|
167
|
-
default?: CommonType | ICommonObject | ICommonObject[];
|
|
168
|
-
description?: string;
|
|
169
|
-
warning?: string;
|
|
170
|
-
placeholder?: string;
|
|
171
|
-
options?: Array<INodeOptionsValue>;
|
|
172
|
-
datagrid?: Array<ICommonObject>;
|
|
173
|
-
credentialNames?: Array<string>;
|
|
174
|
-
optional?: boolean;
|
|
175
|
-
step?: number;
|
|
176
|
-
rows?: number;
|
|
177
|
-
list?: boolean;
|
|
178
|
-
additionalParams?: boolean;
|
|
179
|
-
hidden?: boolean;
|
|
180
|
-
acceptVariable?: boolean;
|
|
181
|
-
acceptEmojis?: boolean;
|
|
182
|
-
allowMaximizeInput?: boolean;
|
|
183
|
-
acceptNodeOutputAsVariable?: boolean;
|
|
184
|
-
fileType?: string;
|
|
185
|
-
loadMethod?: string;
|
|
186
|
-
loadConfig?: boolean;
|
|
187
|
-
hideCodeExecute?: boolean;
|
|
188
|
-
codeExample?: string;
|
|
189
|
-
hint?: Record<string, string>;
|
|
190
|
-
tabId?: string;
|
|
191
|
-
refresh?: boolean;
|
|
192
|
-
freeSolo?: boolean;
|
|
193
|
-
loadPreviousNodes?: boolean;
|
|
194
|
-
array?: Array<INodeProperty>;
|
|
195
|
-
show?: INodeDisplay;
|
|
196
|
-
hide?: INodeDisplay;
|
|
197
|
-
generateDocStoreDescription?: boolean;
|
|
198
|
-
generateInstruction?: boolean;
|
|
199
|
-
numberMin?: number;
|
|
200
|
-
numberMax?: number;
|
|
201
|
-
}
|
|
202
|
-
export type NodeParamsType = 'asyncOptions' | 'asyncMultiOptions' | 'options' | 'multiOptions' | 'datagrid' | 'string' | 'number' | 'boolean' | 'password' | 'json' | 'date' | 'file' | 'folder' | 'tabs' | 'title' | 'code' | 'codeJavascript';
|
|
203
|
-
export type CommonType = string | number | boolean | undefined | null;
|
|
204
|
-
export interface ICommonObject {
|
|
205
|
-
[key: string]: any | CommonType | ICommonObject | CommonType[] | ICommonObject[];
|
|
206
|
-
}
|
|
207
|
-
export interface INodeDisplay {
|
|
208
|
-
[key: string]: string[] | string | boolean | number | ICommonObject;
|
|
209
|
-
}
|
|
210
|
-
export interface INodeOptionsValue {
|
|
211
|
-
label: string;
|
|
212
|
-
id: string;
|
|
213
|
-
description?: string;
|
|
214
|
-
imageSrc?: string;
|
|
215
|
-
}
|
|
216
|
-
export interface IBodyRequest_AsyncNodes {
|
|
217
|
-
propertyId?: string;
|
|
218
|
-
loadMethod?: string;
|
|
219
|
-
nodeId?: string;
|
|
220
|
-
nodeType?: NodeType;
|
|
221
|
-
values?: ICommonObject;
|
|
222
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NodeType = void 0;
|
|
4
|
-
var NodeType;
|
|
5
|
-
(function (NodeType) {
|
|
6
|
-
NodeType[NodeType["NULL"] = 0] = "NULL";
|
|
7
|
-
NodeType[NodeType["START"] = 11] = "START";
|
|
8
|
-
NodeType[NodeType["START_CONVERSATION_OPENED"] = 12] = "START_CONVERSATION_OPENED";
|
|
9
|
-
NodeType[NodeType["START_CONVERSATION_CLOSED"] = 13] = "START_CONVERSATION_CLOSED";
|
|
10
|
-
NodeType[NodeType["START_CONTACT_TAG_UPDATED"] = 14] = "START_CONTACT_TAG_UPDATED";
|
|
11
|
-
NodeType[NodeType["START_CONTACT_FIELD_UPDATED"] = 15] = "START_CONTACT_FIELD_UPDATED";
|
|
12
|
-
NodeType[NodeType["START_CONTACT_FIELD_DATES"] = 16] = "START_CONTACT_FIELD_DATES";
|
|
13
|
-
NodeType[NodeType["START_CONTACT_EVENT_DATE"] = 17] = "START_CONTACT_EVENT_DATE";
|
|
14
|
-
NodeType[NodeType["MSG_TEMPLATE"] = 20] = "MSG_TEMPLATE";
|
|
15
|
-
NodeType[NodeType["MSG_TEXT"] = 21] = "MSG_TEXT";
|
|
16
|
-
NodeType[NodeType["MSG_WAIT_RESPONSE"] = 22] = "MSG_WAIT_RESPONSE";
|
|
17
|
-
NodeType[NodeType["MSG_TEMPLATE_REPLY"] = 23] = "MSG_TEMPLATE_REPLY";
|
|
18
|
-
NodeType[NodeType["MSG_TEXT_REPLY"] = 24] = "MSG_TEXT_REPLY";
|
|
19
|
-
NodeType[NodeType["SQL_QUERY"] = 31] = "SQL_QUERY";
|
|
20
|
-
NodeType[NodeType["API"] = 32] = "API";
|
|
21
|
-
NodeType[NodeType["SEND_EMAIL"] = 33] = "SEND_EMAIL";
|
|
22
|
-
NodeType[NodeType["FILL_FORM"] = 41] = "FILL_FORM";
|
|
23
|
-
NodeType[NodeType["FILL_TICKET"] = 42] = "FILL_TICKET";
|
|
24
|
-
NodeType[NodeType["CONTACT_SEARCH"] = 51] = "CONTACT_SEARCH";
|
|
25
|
-
NodeType[NodeType["CONTACT_UPDATE"] = 52] = "CONTACT_UPDATE";
|
|
26
|
-
NodeType[NodeType["CONVERSATION_ASSIGN_TO"] = 61] = "CONVERSATION_ASSIGN_TO";
|
|
27
|
-
NodeType[NodeType["CONVERSATION_UPDATE"] = 62] = "CONVERSATION_UPDATE";
|
|
28
|
-
NodeType[NodeType["CONVERSATION_FINALIZE"] = 63] = "CONVERSATION_FINALIZE";
|
|
29
|
-
NodeType[NodeType["TIME_SCHEDULE_CONTROL"] = 81] = "TIME_SCHEDULE_CONTROL";
|
|
30
|
-
NodeType[NodeType["TIME_TIMER"] = 82] = "TIME_TIMER";
|
|
31
|
-
NodeType[NodeType["TIME_WAIT_UNTIL"] = 83] = "TIME_WAIT_UNTIL";
|
|
32
|
-
NodeType[NodeType["CONDITIONAL"] = 71] = "CONDITIONAL";
|
|
33
|
-
NodeType[NodeType["REDIRECT"] = 72] = "REDIRECT";
|
|
34
|
-
NodeType[NodeType["AI_CHATBOT"] = 91] = "AI_CHATBOT";
|
|
35
|
-
NodeType[NodeType["TOOL_TRII_CONTACT_UPDATE"] = 200] = "TOOL_TRII_CONTACT_UPDATE";
|
|
36
|
-
NodeType[NodeType["TOOL_TRII_CONTACT_SEARCH"] = 201] = "TOOL_TRII_CONTACT_SEARCH";
|
|
37
|
-
NodeType[NodeType["TOOL_TRII_CALENDAR"] = 202] = "TOOL_TRII_CALENDAR";
|
|
38
|
-
NodeType[NodeType["TOOL_MAPS_CHECK_POLYGON"] = 203] = "TOOL_MAPS_CHECK_POLYGON";
|
|
39
|
-
NodeType[NodeType["TOOL_MCP_CLIENT"] = 204] = "TOOL_MCP_CLIENT";
|
|
40
|
-
NodeType[NodeType["TOOL_KNOWLEDGE"] = 205] = "TOOL_KNOWLEDGE";
|
|
41
|
-
NodeType[NodeType["TOOL_FUNCTION"] = 206] = "TOOL_FUNCTION";
|
|
42
|
-
NodeType[NodeType["TOOL_CALCULATOR"] = 207] = "TOOL_CALCULATOR";
|
|
43
|
-
NodeType[NodeType["TOOL_SHOPPING_CART"] = 208] = "TOOL_SHOPPING_CART";
|
|
44
|
-
NodeType[NodeType["TOOL_API"] = 209] = "TOOL_API";
|
|
45
|
-
NodeType[NodeType["TOOL_ASSIGN_TO"] = 210] = "TOOL_ASSIGN_TO";
|
|
46
|
-
NodeType[NodeType["TOOL_OCR"] = 211] = "TOOL_OCR";
|
|
47
|
-
NodeType[NodeType["TOOL_EXTRACT_VARIABLES"] = 212] = "TOOL_EXTRACT_VARIABLES";
|
|
48
|
-
NodeType[NodeType["TOOL_GOOGLE_CALENDAR"] = 251] = "TOOL_GOOGLE_CALENDAR";
|
|
49
|
-
NodeType[NodeType["TOOL_GOOGLE_MAPS"] = 252] = "TOOL_GOOGLE_MAPS";
|
|
50
|
-
})(NodeType || (exports.NodeType = NodeType = {}));
|
|
@@ -1,336 +0,0 @@
|
|
|
1
|
-
import { IContact } from "../../../Contacts";
|
|
2
|
-
import { IConversation } from "../../Conversation";
|
|
3
|
-
export interface IWorkflowItem {
|
|
4
|
-
id: string;
|
|
5
|
-
spaceId: string;
|
|
6
|
-
flowId: string;
|
|
7
|
-
contactId: string;
|
|
8
|
-
contactName: string;
|
|
9
|
-
userId: string;
|
|
10
|
-
userName: string;
|
|
11
|
-
comment: string | '';
|
|
12
|
-
status: WorkflowStatus;
|
|
13
|
-
enableDebug?: boolean;
|
|
14
|
-
enableDebugAt?: Date | null;
|
|
15
|
-
createdAt: Date;
|
|
16
|
-
}
|
|
17
|
-
export interface IWorkflow {
|
|
18
|
-
id: string;
|
|
19
|
-
spaceId: string;
|
|
20
|
-
flowId: string;
|
|
21
|
-
flowName: string;
|
|
22
|
-
nodeId: string;
|
|
23
|
-
nodeName: string;
|
|
24
|
-
comment: string | '';
|
|
25
|
-
conversation?: IConversation;
|
|
26
|
-
contact?: IContact;
|
|
27
|
-
userId?: string;
|
|
28
|
-
userName?: string;
|
|
29
|
-
enableDebug?: boolean;
|
|
30
|
-
enableDebugAt?: Date | null;
|
|
31
|
-
status: WorkflowStatus;
|
|
32
|
-
createdAt: Date;
|
|
33
|
-
createdBy: string;
|
|
34
|
-
updatedAt?: Date | null;
|
|
35
|
-
updatedBy?: string | null;
|
|
36
|
-
finalizedAt?: Date | null;
|
|
37
|
-
finalizedBy?: string | null;
|
|
38
|
-
}
|
|
39
|
-
export declare enum ExecutionOperationType {
|
|
40
|
-
Node = "Node",
|
|
41
|
-
Agent = "Agent",
|
|
42
|
-
Worker = "Worker",
|
|
43
|
-
LlmCall = "LlmCall",
|
|
44
|
-
ToolCall = "ToolCall",
|
|
45
|
-
Handoff = "Handoff",
|
|
46
|
-
MessageReceived = "MessageReceived",
|
|
47
|
-
MessageSent = "MessageSent"
|
|
48
|
-
}
|
|
49
|
-
export declare enum ExecutionStatus {
|
|
50
|
-
Queued = "Queued",
|
|
51
|
-
Running = "Running",
|
|
52
|
-
Waiting = "Waiting",
|
|
53
|
-
Completed = "Completed",
|
|
54
|
-
Incomplete = "Incomplete",
|
|
55
|
-
Failed = "Failed",
|
|
56
|
-
Cancelled = "Cancelled",
|
|
57
|
-
TimedOut = "TimedOut",
|
|
58
|
-
Skipped = "Skipped"
|
|
59
|
-
}
|
|
60
|
-
export interface ExecutionNodeReference {
|
|
61
|
-
id: string;
|
|
62
|
-
name: string;
|
|
63
|
-
/** Valor real de NodeType. */
|
|
64
|
-
type: string;
|
|
65
|
-
}
|
|
66
|
-
export interface ExecutionPayload {
|
|
67
|
-
/** MIME type, por ejemplo text/plain o application/json. */
|
|
68
|
-
contentType: string;
|
|
69
|
-
value: string | null;
|
|
70
|
-
/** Indica que value no contiene el contenido completo. */
|
|
71
|
-
truncated: boolean;
|
|
72
|
-
/** Referencia estable cuando el contenido se guarda externamente. */
|
|
73
|
-
referenceId: string | null;
|
|
74
|
-
}
|
|
75
|
-
export interface ExecutionError {
|
|
76
|
-
code: string;
|
|
77
|
-
message: string;
|
|
78
|
-
category: string | null;
|
|
79
|
-
providerCode: string | null;
|
|
80
|
-
retryable: boolean;
|
|
81
|
-
/** Información técnica sanitizada. */
|
|
82
|
-
details: string | null;
|
|
83
|
-
occurredAt: Date;
|
|
84
|
-
}
|
|
85
|
-
export interface LlmExecutionData {
|
|
86
|
-
provider: string;
|
|
87
|
-
model: string;
|
|
88
|
-
/** Iteración dentro del agente o worker. Comienza en 1. */
|
|
89
|
-
iteration: number;
|
|
90
|
-
clientRequestId: string | null;
|
|
91
|
-
providerRequestId: string | null;
|
|
92
|
-
transportStatusCode: number | null;
|
|
93
|
-
/** Estado original informado por el proveedor. */
|
|
94
|
-
providerStatus: string | null;
|
|
95
|
-
finishReason: string | null;
|
|
96
|
-
incompleteReason: string | null;
|
|
97
|
-
usage: LlmTokenUsage;
|
|
98
|
-
outputItems: LlmOutputItem[];
|
|
99
|
-
}
|
|
100
|
-
export interface LlmTokenUsage {
|
|
101
|
-
inputTokens: number | null;
|
|
102
|
-
outputTokens: number | null;
|
|
103
|
-
totalTokens: number | null;
|
|
104
|
-
cachedInputTokens: number | null;
|
|
105
|
-
reasoningTokens: number | null;
|
|
106
|
-
}
|
|
107
|
-
export declare enum LlmOutputType {
|
|
108
|
-
Text = "Text",
|
|
109
|
-
ToolCall = "ToolCall",
|
|
110
|
-
Refusal = "Refusal",
|
|
111
|
-
Image = "Image",
|
|
112
|
-
Audio = "Audio",
|
|
113
|
-
File = "File",
|
|
114
|
-
Unknown = "Unknown"
|
|
115
|
-
}
|
|
116
|
-
export interface LlmOutputItem {
|
|
117
|
-
id: string;
|
|
118
|
-
type: LlmOutputType;
|
|
119
|
-
text: string | null;
|
|
120
|
-
toolCallId: string | null;
|
|
121
|
-
toolName: string | null;
|
|
122
|
-
toolArguments: string | null;
|
|
123
|
-
providerStatus: string | null;
|
|
124
|
-
refusalReason: string | null;
|
|
125
|
-
}
|
|
126
|
-
export interface ToolExecutionData {
|
|
127
|
-
toolCallId: string;
|
|
128
|
-
toolName: string;
|
|
129
|
-
replayed: boolean;
|
|
130
|
-
idempotencyProtected: boolean;
|
|
131
|
-
operationKeyHash: string | null;
|
|
132
|
-
argumentsHash: string | null;
|
|
133
|
-
}
|
|
134
|
-
export interface HandoffExecutionData {
|
|
135
|
-
sourceAgentId: string;
|
|
136
|
-
targetAgentId: string;
|
|
137
|
-
reason: string;
|
|
138
|
-
context: ExecutionPayload | null;
|
|
139
|
-
result: ExecutionPayload | null;
|
|
140
|
-
}
|
|
141
|
-
export declare enum ExecutionMessageDirection {
|
|
142
|
-
Unknown = "Unknown",
|
|
143
|
-
Incoming = "Incoming",
|
|
144
|
-
Outgoing = "Outgoing"
|
|
145
|
-
}
|
|
146
|
-
export declare enum ExecutionMessageDeliveryStatus {
|
|
147
|
-
Unknown = "Unknown",
|
|
148
|
-
Received = "Received",
|
|
149
|
-
Queued = "Queued",
|
|
150
|
-
Sent = "Sent",
|
|
151
|
-
Delivered = "Delivered",
|
|
152
|
-
Read = "Read",
|
|
153
|
-
Failed = "Failed"
|
|
154
|
-
}
|
|
155
|
-
export interface ExecutionMessageReference {
|
|
156
|
-
messageId: string;
|
|
157
|
-
shardKey: string;
|
|
158
|
-
spaceId: string;
|
|
159
|
-
conversationId: string;
|
|
160
|
-
contactId: string | null;
|
|
161
|
-
}
|
|
162
|
-
export interface MessageExecutionData {
|
|
163
|
-
source: ExecutionMessageReference;
|
|
164
|
-
direction: ExecutionMessageDirection;
|
|
165
|
-
channel: string | null;
|
|
166
|
-
remoteAddress: string | null;
|
|
167
|
-
deliveryStatus: ExecutionMessageDeliveryStatus;
|
|
168
|
-
receivedAt: Date | null;
|
|
169
|
-
sentAt: Date | null;
|
|
170
|
-
deliveredAt: Date | null;
|
|
171
|
-
readAt: Date | null;
|
|
172
|
-
replyTo: ExecutionMessageReference | null;
|
|
173
|
-
content: ExecutionMessageContent[];
|
|
174
|
-
}
|
|
175
|
-
export declare enum ExecutionMessageContentType {
|
|
176
|
-
Text = "Text",
|
|
177
|
-
Image = "Image",
|
|
178
|
-
Audio = "Audio",
|
|
179
|
-
Video = "Video",
|
|
180
|
-
Document = "Document",
|
|
181
|
-
Location = "Location",
|
|
182
|
-
Contact = "Contact",
|
|
183
|
-
Template = "Template",
|
|
184
|
-
Interactive = "Interactive"
|
|
185
|
-
}
|
|
186
|
-
export interface ExecutionMessageContent {
|
|
187
|
-
id: string;
|
|
188
|
-
type: ExecutionMessageContentType;
|
|
189
|
-
text: string | null;
|
|
190
|
-
/** JSON para ubicación, contacto, template o contenido interactivo. */
|
|
191
|
-
data: string | null;
|
|
192
|
-
media: MediaReference | null;
|
|
193
|
-
transcription: AudioTranscription | null;
|
|
194
|
-
}
|
|
195
|
-
export interface MediaReference {
|
|
196
|
-
mediaId: string | null;
|
|
197
|
-
fileName: string | null;
|
|
198
|
-
mimeType: string | null;
|
|
199
|
-
sizeBytes: number | null;
|
|
200
|
-
storageProvider: string | null;
|
|
201
|
-
storagePath: string | null;
|
|
202
|
-
/** Puede ser una URL temporal. No es la identidad del archivo. */
|
|
203
|
-
url: string | null;
|
|
204
|
-
checksum: string | null;
|
|
205
|
-
width: number | null;
|
|
206
|
-
height: number | null;
|
|
207
|
-
durationSeconds: number | null;
|
|
208
|
-
}
|
|
209
|
-
export declare enum AudioTranscriptionStatus {
|
|
210
|
-
Pending = "Pending",
|
|
211
|
-
Processing = "Processing",
|
|
212
|
-
Completed = "Completed",
|
|
213
|
-
Failed = "Failed"
|
|
214
|
-
}
|
|
215
|
-
export declare enum TranscriptionPersistenceStatus {
|
|
216
|
-
Pending = "Pending",
|
|
217
|
-
Persisted = "Persisted",
|
|
218
|
-
Failed = "Failed"
|
|
219
|
-
}
|
|
220
|
-
export interface AudioTranscription {
|
|
221
|
-
status: AudioTranscriptionStatus;
|
|
222
|
-
text: string | null;
|
|
223
|
-
provider: string | null;
|
|
224
|
-
model: string | null;
|
|
225
|
-
language: string | null;
|
|
226
|
-
confidence: number | null;
|
|
227
|
-
/** Operación STT que produjo la transcripción. */
|
|
228
|
-
sourceOperationId: string | null;
|
|
229
|
-
startedAt: Date | null;
|
|
230
|
-
completedAt: Date | null;
|
|
231
|
-
/** Resultado de actualizar Message.audio.transcript. */
|
|
232
|
-
persistenceStatus: TranscriptionPersistenceStatus;
|
|
233
|
-
persistenceError: ExecutionError | null;
|
|
234
|
-
}
|
|
235
|
-
export interface FlowOperationExecution {
|
|
236
|
-
id: string;
|
|
237
|
-
schemaVersion: number;
|
|
238
|
-
spaceId: string;
|
|
239
|
-
workflowId: string;
|
|
240
|
-
flowExecutionId: string;
|
|
241
|
-
operationType: ExecutionOperationType;
|
|
242
|
-
operationName: string;
|
|
243
|
-
/** Nodo visual asociado. Puede ser null para eventos externos. */
|
|
244
|
-
node: ExecutionNodeReference | null;
|
|
245
|
-
parentOperationId: string | null;
|
|
246
|
-
rootOperationId: string;
|
|
247
|
-
depth: number;
|
|
248
|
-
sequence: number;
|
|
249
|
-
status: ExecutionStatus;
|
|
250
|
-
createdAt: Date;
|
|
251
|
-
startedAt: Date | null;
|
|
252
|
-
completedAt: Date | null;
|
|
253
|
-
durationMs: number | null;
|
|
254
|
-
attempt: number;
|
|
255
|
-
maxAttempts: number;
|
|
256
|
-
input: ExecutionPayload | null;
|
|
257
|
-
output: ExecutionPayload | null;
|
|
258
|
-
llm: LlmExecutionData | null;
|
|
259
|
-
tool: ToolExecutionData | null;
|
|
260
|
-
handoff: HandoffExecutionData | null;
|
|
261
|
-
message: MessageExecutionData | null;
|
|
262
|
-
error: ExecutionError | null;
|
|
263
|
-
}
|
|
264
|
-
export declare enum FlowTrigger {
|
|
265
|
-
Message = "Message",
|
|
266
|
-
ConversationOpened = "ConversationOpened",
|
|
267
|
-
ConversationClosed = "ConversationClosed",
|
|
268
|
-
ContactTagUpdated = "ContactTagUpdated",
|
|
269
|
-
ContactFieldUpdated = "ContactFieldUpdated",
|
|
270
|
-
ContactFieldDates = "ContactFieldDates",
|
|
271
|
-
ContactEventDate = "ContactEventDate",
|
|
272
|
-
Manual = "Manual",
|
|
273
|
-
Retry = "Retry",
|
|
274
|
-
Api = "Api"
|
|
275
|
-
}
|
|
276
|
-
export interface FlowExecutionTrigger {
|
|
277
|
-
type: FlowTrigger;
|
|
278
|
-
/** Id del evento externo cuando el trigger no es un mensaje. */
|
|
279
|
-
referenceId: string | null;
|
|
280
|
-
/** Referencia completa cuando la ejecución fue iniciada por un mensaje. */
|
|
281
|
-
message: ExecutionMessageReference | null;
|
|
282
|
-
}
|
|
283
|
-
export interface FlowExecution {
|
|
284
|
-
id: string;
|
|
285
|
-
schemaVersion: number;
|
|
286
|
-
spaceId: string;
|
|
287
|
-
workflowId: string;
|
|
288
|
-
trigger: FlowExecutionTrigger;
|
|
289
|
-
status: ExecutionStatus;
|
|
290
|
-
createdAt: Date;
|
|
291
|
-
startedAt: Date | null;
|
|
292
|
-
completedAt: Date | null;
|
|
293
|
-
durationMs: number | null;
|
|
294
|
-
counters: FlowExecutionCounters;
|
|
295
|
-
usage: FlowExecutionUsage;
|
|
296
|
-
error: ExecutionError | null;
|
|
297
|
-
}
|
|
298
|
-
export interface FlowExecutionCounters {
|
|
299
|
-
operationsTotal: number;
|
|
300
|
-
operationsCompleted: number;
|
|
301
|
-
operationsIncomplete: number;
|
|
302
|
-
operationsFailed: number;
|
|
303
|
-
operationsCancelled: number;
|
|
304
|
-
operationsTimedOut: number;
|
|
305
|
-
operationsSkipped: number;
|
|
306
|
-
nodes: number;
|
|
307
|
-
agents: number;
|
|
308
|
-
workers: number;
|
|
309
|
-
llmCalls: number;
|
|
310
|
-
toolCalls: number;
|
|
311
|
-
messagesReceived: number;
|
|
312
|
-
messagesSent: number;
|
|
313
|
-
}
|
|
314
|
-
export interface FlowExecutionUsage {
|
|
315
|
-
inputTokens: number;
|
|
316
|
-
outputTokens: number;
|
|
317
|
-
totalTokens: number;
|
|
318
|
-
estimatedCost: number;
|
|
319
|
-
providers: LlmProviderUsage[];
|
|
320
|
-
}
|
|
321
|
-
export interface LlmProviderUsage {
|
|
322
|
-
provider: string;
|
|
323
|
-
model: string;
|
|
324
|
-
calls: number;
|
|
325
|
-
inputTokens: number;
|
|
326
|
-
outputTokens: number;
|
|
327
|
-
totalTokens: number;
|
|
328
|
-
estimatedCost: number;
|
|
329
|
-
}
|
|
330
|
-
export declare enum WorkflowStatus {
|
|
331
|
-
NONE = 0,
|
|
332
|
-
WAITING = 1,
|
|
333
|
-
PROCESSING = 2,
|
|
334
|
-
FINALIZED = 4,
|
|
335
|
-
CANCELED = 5
|
|
336
|
-
}
|