@trii/types 2.10.789 → 2.10.790
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/{src/AI/Map.d.ts → AI/MapPolygon.d.ts} +10 -1
- package/dist/Common/Channels/Channel.d.ts +0 -7
- package/dist/Common/index.js +17 -7
- package/dist/Contacts/contacts.d.ts +4 -0
- package/dist/Conversations/DashBoard/dashboardForms.d.ts +44 -0
- package/dist/Conversations/DashBoard/dashboardForms.js +24 -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/{src/Common/Channels/Sip.js → Conversations/Flows/Nodes/NodeBotIA.js} +3 -3
- 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/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/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/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/InboxCounters.d.ts +18 -0
- package/dist/Conversations/index.js +17 -7
- package/dist/Marketing/CampaignContract.js +1 -2
- package/dist/Presence/ChannelRoutingState.d.ts +17 -0
- package/dist/Tickets/AccessLevel.d.ts +5 -0
- package/dist/Tickets/AccessLevel.js +9 -0
- package/dist/index.js +17 -7
- package/package.json +2 -5
- package/dist/Conversations/InboxMongo.d.ts +0 -154
- package/dist/Conversations/InboxMongo.js +0 -128
- package/dist/Conversations/InboxProjection.d.ts +0 -162
- package/dist/src/AI/Credential.d.ts +0 -13
- 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/Provider.d.ts +0 -6
- package/dist/src/AI/Threads/API.d.ts +0 -55
- 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 -81
- package/dist/src/Automations/Capabilities/Capability.js +0 -23
- 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 -94
- package/dist/src/Automations/Common.js +0 -40
- package/dist/src/Automations/Events/Event.d.ts +0 -69
- package/dist/src/Automations/Events/Event.js +0 -14
- 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 -254
- package/dist/src/Automations/Executions/Execution.js +0 -62
- package/dist/src/Automations/Executions/Testing.d.ts +0 -166
- package/dist/src/Automations/Executions/Testing.js +0 -54
- package/dist/src/Automations/Executions/index.d.ts +0 -2
- package/dist/src/Automations/Executions/index.js +0 -18
- package/dist/src/Automations/Flows/Canvas.d.ts +0 -103
- package/dist/src/Automations/Flows/Canvas.js +0 -38
- package/dist/src/Automations/Flows/Flow.d.ts +0 -147
- package/dist/src/Automations/Flows/Flow.js +0 -58
- 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 -113
- package/dist/src/Automations/Nodes/Node.js +0 -27
- 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 -126
- 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/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 -450
- 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/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 -486
- 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
- /package/dist/{Conversations/InboxProjection.js → AI/MapPolygon.js} +0 -0
- /package/dist/{src/AI/Credential.js → Conversations/Flows/Nodes/NodeGoogleCalendar.js} +0 -0
- /package/dist/{src/AI/Map.js → Conversations/Flows/Nodes/NodeGoogleMaps.js} +0 -0
- /package/dist/{src/AI/Provider.js → Conversations/Flows/Nodes/NodeToolGoogleMaps.js} +0 -0
- /package/dist/{src/AI/Threads/API.js → Conversations/InboxCounters.js} +0 -0
- /package/dist/{src/Presence/QueueRoutingState.js → Presence/ChannelRoutingState.js} +0 -0
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
import type { ISchedule } from '../Common/Schedules/Schedules';
|
|
2
|
-
import type { ConversationEventType, ConversationStatus, ID } from './Conversation';
|
|
3
|
-
import type { OutboxEvent } from './Outbox';
|
|
4
|
-
export declare const CONVERSATION_SLA_POLICIES_COLLECTION = "conversation_sla_policies";
|
|
5
|
-
export declare const CONVERSATION_SLA_CYCLES_COLLECTION = "conversation_sla_cycles";
|
|
6
|
-
export declare const CONVERSATION_SLA_EVENTS_COLLECTION = "conversation_sla_events";
|
|
7
|
-
export type ConversationSlaMetric = 'first_response' | 'next_response' | 'assignment' | 'acceptance' | 'resolution';
|
|
8
|
-
/**
|
|
9
|
-
* continuous counts natural elapsed time, including nights and holidays.
|
|
10
|
-
* schedule counts only ranges allowed by the referenced customer ISchedule.
|
|
11
|
-
*/
|
|
12
|
-
export type ConversationSlaTimeCalculation = {
|
|
13
|
-
mode: 'continuous';
|
|
14
|
-
scheduleId?: never;
|
|
15
|
-
} | {
|
|
16
|
-
mode: 'schedule';
|
|
17
|
-
scheduleId: Exclude<ISchedule['id'], null>;
|
|
18
|
-
};
|
|
19
|
-
export interface ConversationSlaWarningThreshold {
|
|
20
|
-
id: ID;
|
|
21
|
-
percentage: number;
|
|
22
|
-
}
|
|
23
|
-
export interface ConversationSlaTarget {
|
|
24
|
-
metric: ConversationSlaMetric;
|
|
25
|
-
durationSeconds: number;
|
|
26
|
-
warningThresholds: ConversationSlaWarningThreshold[];
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Threshold received by the SLA policy write API.
|
|
30
|
-
*
|
|
31
|
-
* Existing thresholds keep their id. New thresholds may omit it so the
|
|
32
|
-
* backend can assign the canonical identifier returned in
|
|
33
|
-
* ConversationSlaPolicy.
|
|
34
|
-
*/
|
|
35
|
-
export interface ConversationSlaWarningThresholdInput {
|
|
36
|
-
id?: ID;
|
|
37
|
-
percentage: number;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Target received by the SLA policy write API.
|
|
41
|
-
* durationSeconds is stored as seconds regardless of the unit used by the UI.
|
|
42
|
-
*/
|
|
43
|
-
export interface ConversationSlaTargetInput {
|
|
44
|
-
metric: ConversationSlaMetric;
|
|
45
|
-
durationSeconds: number;
|
|
46
|
-
warningThresholds: ConversationSlaWarningThresholdInput[];
|
|
47
|
-
}
|
|
48
|
-
export type ConversationSlaResumeBehavior = 'continue' | 'restart' | 'recalculate';
|
|
49
|
-
export type ConversationSlaReopenBehavior = 'preserve' | 'restart' | 'recalculate' | 'do_not_start';
|
|
50
|
-
export interface ConversationSlaClockBehavior {
|
|
51
|
-
/**
|
|
52
|
-
* Conversation statuses that pause every running SLA cycle.
|
|
53
|
-
*
|
|
54
|
-
* Entering one of these statuses pauses the clock. Leaving all of them
|
|
55
|
-
* resumes it according to onResume. An empty array means that conversation
|
|
56
|
-
* status changes never pause the SLA clock.
|
|
57
|
-
*/
|
|
58
|
-
pauseOnStatuses: ConversationStatus[];
|
|
59
|
-
/**
|
|
60
|
-
* Behavior applied when the conversation leaves the last status included
|
|
61
|
-
* in pauseOnStatuses.
|
|
62
|
-
*
|
|
63
|
-
* continue: keeps the current cycle and its consumed/remaining time.
|
|
64
|
-
* restart: resets the current cycle from the resume timestamp.
|
|
65
|
-
* recalculate: keeps the applied policy snapshot and recalculates the
|
|
66
|
-
* schedule-derived warnings/deadline. It does not select another policy
|
|
67
|
-
* version.
|
|
68
|
-
*/
|
|
69
|
-
onResume: ConversationSlaResumeBehavior;
|
|
70
|
-
/**
|
|
71
|
-
* Behavior applied when a resolved/finalized conversation is reopened.
|
|
72
|
-
* Reopening is independent from resuming a status-paused clock.
|
|
73
|
-
*
|
|
74
|
-
* preserve: preserves the previous cycle state.
|
|
75
|
-
* restart: starts a new cycle from the reopen timestamp.
|
|
76
|
-
* recalculate: recalculates the cycle using the applied policy snapshot.
|
|
77
|
-
* do_not_start: does not start an SLA cycle because of the reopen action.
|
|
78
|
-
*/
|
|
79
|
-
onReopen: ConversationSlaReopenBehavior;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Immutable, versioned policy referenced by ConversationQueue.sla.
|
|
83
|
-
* Editing a published policy creates a new version.
|
|
84
|
-
*/
|
|
85
|
-
export interface ConversationSlaPolicy {
|
|
86
|
-
id: ID;
|
|
87
|
-
spaceId: ID;
|
|
88
|
-
name: string;
|
|
89
|
-
description?: string;
|
|
90
|
-
enabled: boolean;
|
|
91
|
-
version: number;
|
|
92
|
-
timeCalculation: ConversationSlaTimeCalculation;
|
|
93
|
-
targets: ConversationSlaTarget[];
|
|
94
|
-
clockBehavior: ConversationSlaClockBehavior;
|
|
95
|
-
createdAt: Date;
|
|
96
|
-
createdByUserId?: ID;
|
|
97
|
-
updatedAt: Date;
|
|
98
|
-
updatedByUserId?: ID;
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Editable definition sent by clients.
|
|
102
|
-
*
|
|
103
|
-
* It intentionally excludes policy id/version and audit fields controlled by
|
|
104
|
-
* the backend. targets is full-replacement: omitted metrics are disabled in
|
|
105
|
-
* the newly published policy version.
|
|
106
|
-
*/
|
|
107
|
-
export interface ConversationSlaPolicyDefinitionInput {
|
|
108
|
-
name: string;
|
|
109
|
-
description?: string;
|
|
110
|
-
enabled: boolean;
|
|
111
|
-
timeCalculation: ConversationSlaTimeCalculation;
|
|
112
|
-
targets: ConversationSlaTargetInput[];
|
|
113
|
-
clockBehavior: ConversationSlaClockBehavior;
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Creates the first immutable version of an SLA policy.
|
|
117
|
-
*
|
|
118
|
-
* commandId provides idempotency for retries. The authenticated backend
|
|
119
|
-
* context supplies createdByUserId and the audit timestamps.
|
|
120
|
-
*/
|
|
121
|
-
export interface CreateConversationSlaPolicyRequest {
|
|
122
|
-
commandId: ID;
|
|
123
|
-
spaceId: ID;
|
|
124
|
-
definition: ConversationSlaPolicyDefinitionInput;
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* Publishes a new immutable version of an existing SLA policy.
|
|
128
|
-
*
|
|
129
|
-
* expectedVersion implements optimistic concurrency. The backend rejects the
|
|
130
|
-
* request when another version was published after the client loaded it.
|
|
131
|
-
* version, updatedAt and updatedByUserId are always assigned by the backend.
|
|
132
|
-
*/
|
|
133
|
-
export interface PublishConversationSlaPolicyVersionRequest {
|
|
134
|
-
commandId: ID;
|
|
135
|
-
spaceId: ID;
|
|
136
|
-
policyId: ID;
|
|
137
|
-
expectedVersion: number;
|
|
138
|
-
definition: ConversationSlaPolicyDefinitionInput;
|
|
139
|
-
}
|
|
140
|
-
export type ConversationSlaClockAction = 'start' | 'evaluate' | 'pause' | 'resume' | 'complete' | 'recalculate' | 'cancel';
|
|
141
|
-
export type ConversationSlaClockReason = 'conversation_created' | 'conversation_enqueued' | 'customer_message' | 'agent_response' | 'assignment_changed' | 'status_changed' | 'queue_transfer' | 'conversation_reopened' | 'deadline_due' | 'policy_override';
|
|
142
|
-
/**
|
|
143
|
-
* Idempotent input for the conversation-sla-worker.
|
|
144
|
-
* policyId/policyVersion identify the immutable policy snapshot to apply.
|
|
145
|
-
*/
|
|
146
|
-
export interface SlaClockCommand {
|
|
147
|
-
commandId: ID;
|
|
148
|
-
sourceEventId: ID;
|
|
149
|
-
spaceId: ID;
|
|
150
|
-
conversationId: ID;
|
|
151
|
-
expectedConversationVersion: number;
|
|
152
|
-
action: ConversationSlaClockAction;
|
|
153
|
-
reason: ConversationSlaClockReason;
|
|
154
|
-
metric?: ConversationSlaMetric;
|
|
155
|
-
policyId: ID;
|
|
156
|
-
policyVersion: number;
|
|
157
|
-
queueId?: ID;
|
|
158
|
-
occurredAt: Date;
|
|
159
|
-
requestedAt: Date;
|
|
160
|
-
}
|
|
161
|
-
export type ConversationSlaCycleStatus = 'running' | 'paused' | 'met' | 'breached' | 'cancelled';
|
|
162
|
-
export interface ConversationSlaPausePeriod {
|
|
163
|
-
startedAt: Date;
|
|
164
|
-
endedAt?: Date;
|
|
165
|
-
reason: ConversationSlaClockReason;
|
|
166
|
-
sourceEventId: ID;
|
|
167
|
-
}
|
|
168
|
-
/**
|
|
169
|
-
* Durable metric cycle. The target and time calculation are copied from the
|
|
170
|
-
* selected policy version so later policy edits cannot alter active history.
|
|
171
|
-
*/
|
|
172
|
-
export interface ConversationSlaCycle {
|
|
173
|
-
id: ID;
|
|
174
|
-
spaceId: ID;
|
|
175
|
-
conversationId: ID;
|
|
176
|
-
metric: ConversationSlaMetric;
|
|
177
|
-
sequence: number;
|
|
178
|
-
status: ConversationSlaCycleStatus;
|
|
179
|
-
policyId: ID;
|
|
180
|
-
policyVersion: number;
|
|
181
|
-
timeCalculation: ConversationSlaTimeCalculation;
|
|
182
|
-
target: ConversationSlaTarget;
|
|
183
|
-
startedAt: Date;
|
|
184
|
-
deadlineAt?: Date;
|
|
185
|
-
nextWarningAt?: Date;
|
|
186
|
-
pausedAt?: Date;
|
|
187
|
-
completedAt?: Date;
|
|
188
|
-
breachedAt?: Date;
|
|
189
|
-
cancelledAt?: Date;
|
|
190
|
-
elapsedSeconds: number;
|
|
191
|
-
pausedSeconds: number;
|
|
192
|
-
pausePeriods: ConversationSlaPausePeriod[];
|
|
193
|
-
startedByEventId: ID;
|
|
194
|
-
completedByEventId?: ID;
|
|
195
|
-
version: number;
|
|
196
|
-
updatedAt: Date;
|
|
197
|
-
}
|
|
198
|
-
export type ConversationSlaEventType = Extract<ConversationEventType, 'sla_started' | 'sla_paused' | 'sla_resumed' | 'sla_warning' | 'sla_breached' | 'sla_met' | 'sla_overridden'>;
|
|
199
|
-
/**
|
|
200
|
-
* Immutable SLA event. Corrections are represented by a later event.
|
|
201
|
-
*/
|
|
202
|
-
export interface ConversationSlaEvent {
|
|
203
|
-
eventId: ID;
|
|
204
|
-
sourceEventId: ID;
|
|
205
|
-
type: ConversationSlaEventType;
|
|
206
|
-
schemaVersion: 1;
|
|
207
|
-
spaceId: ID;
|
|
208
|
-
conversationId: ID;
|
|
209
|
-
conversationVersion: number;
|
|
210
|
-
cycleId: ID;
|
|
211
|
-
metric: ConversationSlaMetric;
|
|
212
|
-
policyId: ID;
|
|
213
|
-
policyVersion: number;
|
|
214
|
-
status: ConversationSlaCycleStatus;
|
|
215
|
-
deadlineAt?: Date;
|
|
216
|
-
warningThresholdId?: ID;
|
|
217
|
-
reason: ConversationSlaClockReason;
|
|
218
|
-
correlationId: ID;
|
|
219
|
-
causationId: ID;
|
|
220
|
-
occurredAt: Date;
|
|
221
|
-
recordedAt: Date;
|
|
222
|
-
}
|
|
223
|
-
export type ConversationSlaOutboxEvent = OutboxEvent<ConversationSlaEvent> & {
|
|
224
|
-
aggregateType: 'conversation';
|
|
225
|
-
eventType: `conversation.${ConversationSlaEventType}`;
|
|
226
|
-
schemaVersion: 1;
|
|
227
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CONVERSATION_SLA_EVENTS_COLLECTION = exports.CONVERSATION_SLA_CYCLES_COLLECTION = exports.CONVERSATION_SLA_POLICIES_COLLECTION = void 0;
|
|
4
|
-
exports.CONVERSATION_SLA_POLICIES_COLLECTION = 'conversation_sla_policies';
|
|
5
|
-
exports.CONVERSATION_SLA_CYCLES_COLLECTION = 'conversation_sla_cycles';
|
|
6
|
-
exports.CONVERSATION_SLA_EVENTS_COLLECTION = 'conversation_sla_events';
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { Channels } from "../Common/index";
|
|
2
|
-
import { UserInfo } from "../Users/UserTrii";
|
|
3
|
-
export interface Post {
|
|
4
|
-
id: string;
|
|
5
|
-
spaceId: string;
|
|
6
|
-
externalId: string;
|
|
7
|
-
title: string;
|
|
8
|
-
details: string;
|
|
9
|
-
imageUrl: string;
|
|
10
|
-
photos: string[];
|
|
11
|
-
videos: string[];
|
|
12
|
-
reactions: string[];
|
|
13
|
-
channelInfo: Channels.IChannelInfo;
|
|
14
|
-
newMessagesCount: number;
|
|
15
|
-
postUrl?: string;
|
|
16
|
-
counters: PostStats;
|
|
17
|
-
participants: UserInfo[];
|
|
18
|
-
archived: boolean;
|
|
19
|
-
createdAt: Date;
|
|
20
|
-
updatedAt: Date;
|
|
21
|
-
}
|
|
22
|
-
export interface PostStats {
|
|
23
|
-
likes: number;
|
|
24
|
-
comments: number;
|
|
25
|
-
}
|
|
26
|
-
export interface WallMessage {
|
|
27
|
-
id: string;
|
|
28
|
-
spaceId: string;
|
|
29
|
-
postId: string;
|
|
30
|
-
parentId: string;
|
|
31
|
-
readed: boolean;
|
|
32
|
-
externalUserSender?: ExternalUserInfo;
|
|
33
|
-
contactId?: string;
|
|
34
|
-
contactAddressId?: string;
|
|
35
|
-
userSender?: string;
|
|
36
|
-
message?: string;
|
|
37
|
-
imageUrl?: string;
|
|
38
|
-
videoUrl?: string;
|
|
39
|
-
reactions?: WallReaction;
|
|
40
|
-
responses?: WallMessage[];
|
|
41
|
-
createdAt: Date;
|
|
42
|
-
updatedAt: Date;
|
|
43
|
-
}
|
|
44
|
-
export interface WallReaction {
|
|
45
|
-
like: number;
|
|
46
|
-
likeUsers: ExternalUserInfo[];
|
|
47
|
-
love: number;
|
|
48
|
-
loveUsers: ExternalUserInfo[];
|
|
49
|
-
haha: number;
|
|
50
|
-
hahaUsers: ExternalUserInfo[];
|
|
51
|
-
wow: number;
|
|
52
|
-
wowUsers: ExternalUserInfo[];
|
|
53
|
-
sad: number;
|
|
54
|
-
sadUsers: ExternalUserInfo[];
|
|
55
|
-
angry: number;
|
|
56
|
-
angryUsers: ExternalUserInfo[];
|
|
57
|
-
}
|
|
58
|
-
export interface Response {
|
|
59
|
-
id: string;
|
|
60
|
-
external_parent_id: string;
|
|
61
|
-
externalUserSender?: ExternalUserInfo;
|
|
62
|
-
userSender?: UserInfo;
|
|
63
|
-
message: string;
|
|
64
|
-
response?: Response[];
|
|
65
|
-
createdAt: Date;
|
|
66
|
-
updatedAt: Date;
|
|
67
|
-
}
|
|
68
|
-
export interface ExternalUserInfo {
|
|
69
|
-
id: string;
|
|
70
|
-
name: string;
|
|
71
|
-
imageUrl: string;
|
|
72
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export interface Survey {
|
|
2
|
-
id: string;
|
|
3
|
-
spaceId: string;
|
|
4
|
-
enabled: boolean;
|
|
5
|
-
messageIM?: string;
|
|
6
|
-
messageEMAIL?: string;
|
|
7
|
-
formId?: string;
|
|
8
|
-
pauseBeforeSendTime: number;
|
|
9
|
-
pauseBeforeSendTimeUnits: SurveyTimeUnits;
|
|
10
|
-
limitTime: number;
|
|
11
|
-
limitTimeUnits: SurveyTimeUnits;
|
|
12
|
-
channels: string[];
|
|
13
|
-
groups: string[];
|
|
14
|
-
}
|
|
15
|
-
export declare enum SurveyTimeUnits {
|
|
16
|
-
MINUTES = 0,
|
|
17
|
-
HOURS = 1,
|
|
18
|
-
DAYS = 2
|
|
19
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SurveyTimeUnits = void 0;
|
|
4
|
-
var SurveyTimeUnits;
|
|
5
|
-
(function (SurveyTimeUnits) {
|
|
6
|
-
SurveyTimeUnits[SurveyTimeUnits["MINUTES"] = 0] = "MINUTES";
|
|
7
|
-
SurveyTimeUnits[SurveyTimeUnits["HOURS"] = 1] = "HOURS";
|
|
8
|
-
SurveyTimeUnits[SurveyTimeUnits["DAYS"] = 2] = "DAYS";
|
|
9
|
-
})(SurveyTimeUnits || (exports.SurveyTimeUnits = SurveyTimeUnits = {}));
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { OutboxEvent } from './Outbox';
|
|
2
|
-
import { AssignmentActorReference, AssignmentStateReference, ConversationAssignmentReason } from './Assignment';
|
|
3
|
-
import { ID } from './Conversation';
|
|
4
|
-
export type TransferConversationReason = Extract<ConversationAssignmentReason, 'manual_transfer' | 'flow_routing' | 'sla_escalation' | 'system_recovery'>;
|
|
5
|
-
export type TransferConversationTarget = {
|
|
6
|
-
type: 'queue';
|
|
7
|
-
queueId: ID;
|
|
8
|
-
} | {
|
|
9
|
-
type: 'user';
|
|
10
|
-
queueId: ID;
|
|
11
|
-
userId: ID;
|
|
12
|
-
};
|
|
13
|
-
export interface TransferConversationCommand {
|
|
14
|
-
commandId: ID;
|
|
15
|
-
spaceId: ID;
|
|
16
|
-
conversationId: ID;
|
|
17
|
-
target: TransferConversationTarget;
|
|
18
|
-
expectedConversationVersion: number;
|
|
19
|
-
actor: AssignmentActorReference;
|
|
20
|
-
reason: TransferConversationReason;
|
|
21
|
-
requestedAt: Date;
|
|
22
|
-
}
|
|
23
|
-
export type TransferConversationRejectionCode = 'conversation_not_found' | 'target_queue_not_found' | 'target_queue_disabled' | 'target_user_not_found' | 'target_user_not_authorized' | 'target_user_not_available' | 'target_user_has_no_capacity' | 'channel_not_supported' | 'same_queue' | 'same_owner' | 'actor_not_authorized' | 'conversation_not_transferable';
|
|
24
|
-
export type TransferConversationResult = {
|
|
25
|
-
status: 'transferred';
|
|
26
|
-
commandId: ID;
|
|
27
|
-
conversationId: ID;
|
|
28
|
-
previousVersion: number;
|
|
29
|
-
conversationVersion: number;
|
|
30
|
-
previous: AssignmentStateReference;
|
|
31
|
-
current: AssignmentStateReference;
|
|
32
|
-
assignmentEventId: ID;
|
|
33
|
-
outboxEventId: ID;
|
|
34
|
-
} | {
|
|
35
|
-
status: 'already_applied';
|
|
36
|
-
commandId: ID;
|
|
37
|
-
conversationId: ID;
|
|
38
|
-
conversationVersion: number;
|
|
39
|
-
assignmentEventId: ID;
|
|
40
|
-
outboxEventId: ID;
|
|
41
|
-
} | {
|
|
42
|
-
status: 'version_conflict';
|
|
43
|
-
commandId: ID;
|
|
44
|
-
conversationId: ID;
|
|
45
|
-
expectedVersion: number;
|
|
46
|
-
currentVersion: number;
|
|
47
|
-
} | {
|
|
48
|
-
status: 'rejected';
|
|
49
|
-
commandId: ID;
|
|
50
|
-
conversationId: ID;
|
|
51
|
-
code: TransferConversationRejectionCode;
|
|
52
|
-
};
|
|
53
|
-
export interface ConversationAssignmentChanged {
|
|
54
|
-
eventId: ID;
|
|
55
|
-
sourceEventId: ID;
|
|
56
|
-
type: 'conversation.assignment.changed';
|
|
57
|
-
schemaVersion: 1;
|
|
58
|
-
spaceId: ID;
|
|
59
|
-
conversationId: ID;
|
|
60
|
-
conversationVersion: number;
|
|
61
|
-
reason: ConversationAssignmentReason;
|
|
62
|
-
previous?: AssignmentStateReference;
|
|
63
|
-
current: AssignmentStateReference;
|
|
64
|
-
actor: AssignmentActorReference;
|
|
65
|
-
correlationId: ID;
|
|
66
|
-
causationId: ID;
|
|
67
|
-
occurredAt: Date;
|
|
68
|
-
}
|
|
69
|
-
export type ConversationAssignmentChangedOutboxEvent = OutboxEvent<ConversationAssignmentChanged> & {
|
|
70
|
-
aggregateType: 'conversation';
|
|
71
|
-
eventType: 'conversation.assignment.changed';
|
|
72
|
-
schemaVersion: 1;
|
|
73
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { AuthApiKey } from '../Common/API/AuthApiKey';
|
|
2
|
-
import { AuthBasic } from '../Common/API/AuthBasic';
|
|
3
|
-
import { AuthBearer } from '../Common/API/AuthBearer';
|
|
4
|
-
import { AuthType } from '../Common/API/AuthType';
|
|
5
|
-
import { Method } from '../Common/API/Method';
|
|
6
|
-
interface IWebhook {
|
|
7
|
-
id?: string | null;
|
|
8
|
-
spaceId?: string | null;
|
|
9
|
-
name?: string | null;
|
|
10
|
-
apiUrl?: string | null;
|
|
11
|
-
apiMethod?: Method | null;
|
|
12
|
-
apiAuthType?: AuthType | null;
|
|
13
|
-
apiAuthBasic?: AuthBasic | null;
|
|
14
|
-
apiAuthApiKey?: AuthApiKey | null;
|
|
15
|
-
apiAuthBearer?: AuthBearer | null;
|
|
16
|
-
apiBody?: string | null;
|
|
17
|
-
apiContentType?: string | null;
|
|
18
|
-
createdAt?: string | null;
|
|
19
|
-
updatedAt?: string | null;
|
|
20
|
-
deletedAt?: string | null;
|
|
21
|
-
}
|
|
22
|
-
export { IWebhook };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export * as Flows from './Flows/index';
|
|
2
|
-
export * as Groups from './Groups/Group';
|
|
3
|
-
export * from './Assignment';
|
|
4
|
-
export * from './Conversation';
|
|
5
|
-
export * from './InboxMongo';
|
|
6
|
-
export * from './InboxProjection';
|
|
7
|
-
export * from './Outbox';
|
|
8
|
-
export * from './Ending';
|
|
9
|
-
export * from './Label';
|
|
10
|
-
export * from './WebHook';
|
|
11
|
-
export * from './SocialWalls';
|
|
12
|
-
export * from './QuickResponse';
|
|
13
|
-
export * from './DashBoard/dashboard';
|
|
14
|
-
export * from '../Forms/API';
|
|
15
|
-
export * from './DashBoard/dashboardChannels';
|
|
16
|
-
export * from './DashBoard/dashboardMessages';
|
|
17
|
-
export * from './Survey';
|
|
18
|
-
export * from './Queue';
|
|
19
|
-
export * from './Routing';
|
|
20
|
-
export * from './Sla';
|
|
21
|
-
export * from './Transfer';
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.Groups = exports.Flows = void 0;
|
|
40
|
-
exports.Flows = __importStar(require("./Flows/index"));
|
|
41
|
-
exports.Groups = __importStar(require("./Groups/Group"));
|
|
42
|
-
__exportStar(require("./Assignment"), exports);
|
|
43
|
-
__exportStar(require("./Conversation"), exports);
|
|
44
|
-
__exportStar(require("./InboxMongo"), exports);
|
|
45
|
-
__exportStar(require("./InboxProjection"), exports);
|
|
46
|
-
__exportStar(require("./Outbox"), exports);
|
|
47
|
-
__exportStar(require("./Ending"), exports);
|
|
48
|
-
__exportStar(require("./Label"), exports);
|
|
49
|
-
__exportStar(require("./WebHook"), exports);
|
|
50
|
-
__exportStar(require("./SocialWalls"), exports);
|
|
51
|
-
__exportStar(require("./QuickResponse"), exports);
|
|
52
|
-
__exportStar(require("./DashBoard/dashboard"), exports);
|
|
53
|
-
__exportStar(require("../Forms/API"), exports);
|
|
54
|
-
__exportStar(require("./DashBoard/dashboardChannels"), exports);
|
|
55
|
-
__exportStar(require("./DashBoard/dashboardMessages"), exports);
|
|
56
|
-
__exportStar(require("./Survey"), exports);
|
|
57
|
-
__exportStar(require("./Queue"), exports);
|
|
58
|
-
__exportStar(require("./Routing"), exports);
|
|
59
|
-
__exportStar(require("./Sla"), exports);
|
|
60
|
-
__exportStar(require("./Transfer"), exports);
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
export interface Document {
|
|
2
|
-
spaceId: string | "";
|
|
3
|
-
id?: string | null;
|
|
4
|
-
storeId?: string | null;
|
|
5
|
-
parentId?: string | null;
|
|
6
|
-
isFolder?: boolean | false;
|
|
7
|
-
path: string | '';
|
|
8
|
-
name: string | "";
|
|
9
|
-
fileSize: number | 0;
|
|
10
|
-
fileName: string | "";
|
|
11
|
-
fileUrl: string | "";
|
|
12
|
-
status: DocumentStatus | DocumentStatus.SYNCING;
|
|
13
|
-
blobVersionId?: string | null;
|
|
14
|
-
indexingConfig?: IndexingConfig | null;
|
|
15
|
-
chunks: number | 0;
|
|
16
|
-
chars: number | 0;
|
|
17
|
-
embeddingStatus?: EmbeddingStatus | EmbeddingStatus.PENDING;
|
|
18
|
-
indexingError?: string | null;
|
|
19
|
-
portalPublished: boolean;
|
|
20
|
-
portalSlug?: string | null;
|
|
21
|
-
portalLastPublishedAt?: Date | null;
|
|
22
|
-
source?: DocumentSource | DocumentSource.UPLOAD;
|
|
23
|
-
sourceId?: string | null;
|
|
24
|
-
createdAt: Date;
|
|
25
|
-
createdBy: string;
|
|
26
|
-
updatedAt?: Date | null;
|
|
27
|
-
updatedBy?: string | null;
|
|
28
|
-
deletedAt?: Date | null;
|
|
29
|
-
deletedBy?: string | null;
|
|
30
|
-
}
|
|
31
|
-
export declare enum EmbeddingStatus {
|
|
32
|
-
PENDING = 0,
|
|
33
|
-
PROCESSING = 1,
|
|
34
|
-
COMPLETED = 2,
|
|
35
|
-
ERROR = 3
|
|
36
|
-
}
|
|
37
|
-
export declare enum DocumentSource {
|
|
38
|
-
UPLOAD = 1,
|
|
39
|
-
WEBHOOK = 2,
|
|
40
|
-
FILESYSTEM = 3,
|
|
41
|
-
API = 4
|
|
42
|
-
}
|
|
43
|
-
export interface IndexingConfig {
|
|
44
|
-
type: DocumentSplitterType | DocumentSplitterType.characterTextSplitter;
|
|
45
|
-
chunkSize: number | 1000;
|
|
46
|
-
chunkOverlap: number | 200;
|
|
47
|
-
customSeparators?: string[] | [" "];
|
|
48
|
-
}
|
|
49
|
-
export declare enum DocumentSplitterType {
|
|
50
|
-
characterTextSplitter = "characterTextSplitter",
|
|
51
|
-
recursiveCharacterTextSplitter = "recursiveCharacterTextSplitter"
|
|
52
|
-
}
|
|
53
|
-
export declare enum DocumentStatus {
|
|
54
|
-
SYNCING = 0,
|
|
55
|
-
ACTIVE = 1,
|
|
56
|
-
ERROR = 2,
|
|
57
|
-
DELETING = 3
|
|
58
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DocumentStatus = exports.DocumentSplitterType = exports.DocumentSource = exports.EmbeddingStatus = void 0;
|
|
4
|
-
var EmbeddingStatus;
|
|
5
|
-
(function (EmbeddingStatus) {
|
|
6
|
-
EmbeddingStatus[EmbeddingStatus["PENDING"] = 0] = "PENDING";
|
|
7
|
-
EmbeddingStatus[EmbeddingStatus["PROCESSING"] = 1] = "PROCESSING";
|
|
8
|
-
EmbeddingStatus[EmbeddingStatus["COMPLETED"] = 2] = "COMPLETED";
|
|
9
|
-
EmbeddingStatus[EmbeddingStatus["ERROR"] = 3] = "ERROR";
|
|
10
|
-
})(EmbeddingStatus || (exports.EmbeddingStatus = EmbeddingStatus = {}));
|
|
11
|
-
var DocumentSource;
|
|
12
|
-
(function (DocumentSource) {
|
|
13
|
-
DocumentSource[DocumentSource["UPLOAD"] = 1] = "UPLOAD";
|
|
14
|
-
DocumentSource[DocumentSource["WEBHOOK"] = 2] = "WEBHOOK";
|
|
15
|
-
DocumentSource[DocumentSource["FILESYSTEM"] = 3] = "FILESYSTEM";
|
|
16
|
-
DocumentSource[DocumentSource["API"] = 4] = "API";
|
|
17
|
-
})(DocumentSource || (exports.DocumentSource = DocumentSource = {}));
|
|
18
|
-
var DocumentSplitterType;
|
|
19
|
-
(function (DocumentSplitterType) {
|
|
20
|
-
DocumentSplitterType["characterTextSplitter"] = "characterTextSplitter";
|
|
21
|
-
DocumentSplitterType["recursiveCharacterTextSplitter"] = "recursiveCharacterTextSplitter";
|
|
22
|
-
})(DocumentSplitterType || (exports.DocumentSplitterType = DocumentSplitterType = {}));
|
|
23
|
-
var DocumentStatus;
|
|
24
|
-
(function (DocumentStatus) {
|
|
25
|
-
DocumentStatus[DocumentStatus["SYNCING"] = 0] = "SYNCING";
|
|
26
|
-
DocumentStatus[DocumentStatus["ACTIVE"] = 1] = "ACTIVE";
|
|
27
|
-
DocumentStatus[DocumentStatus["ERROR"] = 2] = "ERROR";
|
|
28
|
-
DocumentStatus[DocumentStatus["DELETING"] = 3] = "DELETING";
|
|
29
|
-
})(DocumentStatus || (exports.DocumentStatus = DocumentStatus = {}));
|
package/dist/src/Docs/Store.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export interface Store {
|
|
2
|
-
spaceId: string | "";
|
|
3
|
-
id?: string | null;
|
|
4
|
-
name: string | "";
|
|
5
|
-
description: string | "";
|
|
6
|
-
status: StoreStatus | StoreStatus.EMPTY;
|
|
7
|
-
statics: StoreStatics;
|
|
8
|
-
enableIndexing: boolean;
|
|
9
|
-
knowledgePortalEnabled: boolean;
|
|
10
|
-
knowledgePortalIsPublic: boolean;
|
|
11
|
-
knowledgePortalUrl?: string | null;
|
|
12
|
-
knowledgePortalStatus: PortalStatus | PortalStatus.INACTIVE;
|
|
13
|
-
knowledgePortalLastPublishedAt?: Date | null;
|
|
14
|
-
createdAt: Date;
|
|
15
|
-
createdBy: string;
|
|
16
|
-
updatedAt?: Date | null;
|
|
17
|
-
updatedBy?: string | null;
|
|
18
|
-
deletedAt?: Date | null;
|
|
19
|
-
deletedBy?: string | null;
|
|
20
|
-
}
|
|
21
|
-
export declare enum PortalStatus {
|
|
22
|
-
INACTIVE = 0,
|
|
23
|
-
PENDING = 1,
|
|
24
|
-
READY = 2,
|
|
25
|
-
ERROR = 3
|
|
26
|
-
}
|
|
27
|
-
export declare enum StoreStatus {
|
|
28
|
-
EMPTY = 0,
|
|
29
|
-
ACTIVE = 1,
|
|
30
|
-
SYNCING = 2,
|
|
31
|
-
ERROR = 3
|
|
32
|
-
}
|
|
33
|
-
export interface StoreStatics {
|
|
34
|
-
totalDocuments: number | 0;
|
|
35
|
-
diskUsage: number | 0;
|
|
36
|
-
lastUpdatedAt?: Date | null;
|
|
37
|
-
}
|
package/dist/src/Docs/Store.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StoreStatus = exports.PortalStatus = void 0;
|
|
4
|
-
var PortalStatus;
|
|
5
|
-
(function (PortalStatus) {
|
|
6
|
-
PortalStatus[PortalStatus["INACTIVE"] = 0] = "INACTIVE";
|
|
7
|
-
PortalStatus[PortalStatus["PENDING"] = 1] = "PENDING";
|
|
8
|
-
PortalStatus[PortalStatus["READY"] = 2] = "READY";
|
|
9
|
-
PortalStatus[PortalStatus["ERROR"] = 3] = "ERROR";
|
|
10
|
-
})(PortalStatus || (exports.PortalStatus = PortalStatus = {}));
|
|
11
|
-
var StoreStatus;
|
|
12
|
-
(function (StoreStatus) {
|
|
13
|
-
StoreStatus[StoreStatus["EMPTY"] = 0] = "EMPTY";
|
|
14
|
-
StoreStatus[StoreStatus["ACTIVE"] = 1] = "ACTIVE";
|
|
15
|
-
StoreStatus[StoreStatus["SYNCING"] = 2] = "SYNCING";
|
|
16
|
-
StoreStatus[StoreStatus["ERROR"] = 3] = "ERROR";
|
|
17
|
-
})(StoreStatus || (exports.StoreStatus = StoreStatus = {}));
|
package/dist/src/Docs/index.d.ts
DELETED