@trii/types 2.10.811 → 2.10.813
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/Automations/Events/Event.d.ts +3 -3
- package/dist/Contacts/CommunicationEndpoint.d.ts +9 -9
- package/dist/Conversations/Classifications/ConversationClassificationEvents.d.ts +2 -2
- package/dist/Conversations/Conversation.d.ts +8 -8
- 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/Routing.d.ts +10 -10
- package/dist/Events/DomainEventTypes.d.ts +23 -23
- package/dist/Presence/ChannelRoutingState.d.ts +17 -0
- package/dist/Presence/ChannelRoutingState.js +9 -0
- package/dist/Presence/PresenceQueueContracts.d.ts +278 -0
- package/dist/Presence/PresenceQueueContracts.js +14 -0
- package/dist/Presence/RoutingContracts.d.ts +33 -0
- package/dist/Presence/index.d.ts +2 -0
- package/dist/Presence/index.js +2 -0
- package/dist/Tickets/AccessLevel.d.ts +5 -0
- package/dist/Tickets/AccessLevel.js +9 -0
- package/package.json +1 -1
- 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/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/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 -99
- 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/Conversation.d.ts +0 -167
- package/dist/src/Conversations/Conversation.js +0 -56
- 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/dashboardForms.d.ts +0 -44
- package/dist/src/Conversations/DashBoard/dashboardForms.js +0 -24
- 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 -179
- package/dist/src/Conversations/Flows/Workflows/Workflow.js +0 -48
- 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 -23
- package/dist/src/Conversations/Groups/Group.js +0 -8
- package/dist/src/Conversations/Label.d.ts +0 -10
- package/dist/src/Conversations/Label.js +0 -2
- package/dist/src/Conversations/QuickResponse.d.ts +0 -34
- package/dist/src/Conversations/QuickResponse.js +0 -2
- 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/WebHook.d.ts +0 -22
- package/dist/src/Conversations/WebHook.js +0 -2
- package/dist/src/Conversations/index.d.ts +0 -13
- package/dist/src/Conversations/index.js +0 -52
- 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/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/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 -53
- 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 -408
- package/dist/src/Tickets/Dashboard.js +0 -206
- package/dist/src/Tickets/Fields.d.ts +0 -133
- package/dist/src/Tickets/Fields.js +0 -44
- package/dist/src/Tickets/Layouts.d.ts +0 -63
- 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 -109
- 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 -102
- package/dist/src/Users/UserTrii.js +0 -10
- 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 -20
- package/dist/src/index.js +0 -56
- /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 → Presence/RoutingContracts.js} +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RoutingPresenceStatus = void 0;
|
|
4
|
+
var RoutingPresenceStatus;
|
|
5
|
+
(function (RoutingPresenceStatus) {
|
|
6
|
+
RoutingPresenceStatus[RoutingPresenceStatus["IDLE"] = 0] = "IDLE";
|
|
7
|
+
RoutingPresenceStatus[RoutingPresenceStatus["INTERACTING"] = 1] = "INTERACTING";
|
|
8
|
+
RoutingPresenceStatus[RoutingPresenceStatus["BUSY"] = 2] = "BUSY";
|
|
9
|
+
})(RoutingPresenceStatus || (exports.RoutingPresenceStatus = RoutingPresenceStatus = {}));
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import { PauseReason } from './AgentPause';
|
|
2
|
+
export type PresenceQueueModule = "conversations" | "tickets" | "calls";
|
|
3
|
+
export type PresenceManualAvailability = "available" | "away" | "do_not_disturb" | "unavailable";
|
|
4
|
+
export type PresenceQueueUpdateOutcome = "updated" | "unchanged" | "not_authorized" | "not_found" | "conflict" | "unavailable";
|
|
5
|
+
/** Versioned wire names. Socket.IO name is EventType + underscore + action. */
|
|
6
|
+
export declare const PresenceQueueContracts: {
|
|
7
|
+
readonly SchemaVersion: 1;
|
|
8
|
+
readonly EventType: "presence";
|
|
9
|
+
readonly QueueSnapshotAction: "queue_snapshot";
|
|
10
|
+
readonly QueueCatalogSyncRequestedAction: "queue_catalog_sync_requested";
|
|
11
|
+
readonly QueueCatalogChangedAction: "queue_catalog_changed";
|
|
12
|
+
readonly QueueParticipationChangedAction: "queue_participation_changed";
|
|
13
|
+
readonly AgentRedisKeyPrefix: "presence:v1:agent:";
|
|
14
|
+
readonly ParticipationRedisKeyPrefix: "presence:v1:participation:";
|
|
15
|
+
};
|
|
16
|
+
/** Module-qualified identity. Space is supplied by the containing contract. */
|
|
17
|
+
export interface PresenceQueueRef {
|
|
18
|
+
/** Owning module; part of queue identity. */
|
|
19
|
+
module: PresenceQueueModule;
|
|
20
|
+
/** Opaque queue identifier in the owning module. */
|
|
21
|
+
queueId: string;
|
|
22
|
+
}
|
|
23
|
+
/** Owner-to-Presence full membership snapshot, optionally chunked. No group configuration crosses this boundary. */
|
|
24
|
+
export interface PresenceQueueSnapshotEvent {
|
|
25
|
+
/** Wire schema version. Must be 1. */
|
|
26
|
+
schemaVersion: number;
|
|
27
|
+
/** Stable unique event identifier; preserved on retry. */
|
|
28
|
+
eventId: string;
|
|
29
|
+
/** UTC Unix milliseconds when the fact occurred. */
|
|
30
|
+
occurredAtMs: number;
|
|
31
|
+
/** Tenant space; opaque identifier, never numeric conversion. */
|
|
32
|
+
spaceId: string;
|
|
33
|
+
/** Owning module; part of queue identity. */
|
|
34
|
+
module: PresenceQueueModule;
|
|
35
|
+
/** Opaque queue identifier in the owning module. */
|
|
36
|
+
queueId: string;
|
|
37
|
+
/** Monotonic revision of this aggregate; positive safe integer. */
|
|
38
|
+
revision: number;
|
|
39
|
+
/** Display name only; never an authorization key. */
|
|
40
|
+
name: string;
|
|
41
|
+
/** Whether the owner enables this queue. */
|
|
42
|
+
enabled: boolean;
|
|
43
|
+
/** Tombstone; disabled and empty membership when true. */
|
|
44
|
+
deleted: boolean;
|
|
45
|
+
/** Zero-based chunk index. */
|
|
46
|
+
chunkIndex: number;
|
|
47
|
+
/** Total chunks; at least one. */
|
|
48
|
+
chunkCount: number;
|
|
49
|
+
/** Distinct authorized users across the complete snapshot. */
|
|
50
|
+
totalUserCount: number;
|
|
51
|
+
/** Complete membership for this chunk; explicit empty array is allowed. */
|
|
52
|
+
authorizedUserIds: string[];
|
|
53
|
+
}
|
|
54
|
+
/** Presence requests a full replay from one module. Producer republishes each queue and retained tombstones. */
|
|
55
|
+
export interface PresenceQueueCatalogSyncRequestedEvent {
|
|
56
|
+
/** Wire schema version. Must be 1. */
|
|
57
|
+
schemaVersion: number;
|
|
58
|
+
/** Stable unique event identifier; preserved on retry. */
|
|
59
|
+
eventId: string;
|
|
60
|
+
/** UTC Unix milliseconds when the fact occurred. */
|
|
61
|
+
occurredAtMs: number;
|
|
62
|
+
/** Tenant space; opaque identifier, never numeric conversion. */
|
|
63
|
+
spaceId: string;
|
|
64
|
+
/** Module that must replay its catalog; not a user-controlled authorization claim. */
|
|
65
|
+
module: PresenceQueueModule;
|
|
66
|
+
}
|
|
67
|
+
/** Persisted owner snapshot after all chunks of a revision have been assembled and validated. */
|
|
68
|
+
export interface PresenceQueueCatalogEntry {
|
|
69
|
+
/** Wire schema version. Must be 1. */
|
|
70
|
+
schemaVersion: number;
|
|
71
|
+
/** Tenant space; opaque identifier, never numeric conversion. */
|
|
72
|
+
spaceId: string;
|
|
73
|
+
/** Owning module; part of queue identity. */
|
|
74
|
+
module: PresenceQueueModule;
|
|
75
|
+
/** Opaque queue identifier in the owning module. */
|
|
76
|
+
queueId: string;
|
|
77
|
+
/** Monotonic revision of this aggregate; positive safe integer. */
|
|
78
|
+
revision: number;
|
|
79
|
+
/** Display name only; never an authorization key. */
|
|
80
|
+
name: string;
|
|
81
|
+
/** Whether the owner enables this queue. */
|
|
82
|
+
enabled: boolean;
|
|
83
|
+
/** Tombstone; disabled and empty membership when true. */
|
|
84
|
+
deleted: boolean;
|
|
85
|
+
/** Resolved users; no group identifiers. */
|
|
86
|
+
authorizedUserIds: string[];
|
|
87
|
+
/** Timestamp of the owner snapshot. */
|
|
88
|
+
sourceOccurredAtMs: number;
|
|
89
|
+
/** Timestamp when the complete revision was accepted. */
|
|
90
|
+
receivedAtMs: number;
|
|
91
|
+
}
|
|
92
|
+
/** Durable user choice. Independent of authorization, presence and catalog revisions. */
|
|
93
|
+
export interface PresenceQueueParticipationRecord {
|
|
94
|
+
/** Wire schema version. Must be 1. */
|
|
95
|
+
schemaVersion: number;
|
|
96
|
+
/** Tenant space; opaque identifier, never numeric conversion. */
|
|
97
|
+
spaceId: string;
|
|
98
|
+
/** Opaque platform user identifier. */
|
|
99
|
+
userId: string;
|
|
100
|
+
/** Owning module; part of queue identity. */
|
|
101
|
+
module: PresenceQueueModule;
|
|
102
|
+
/** Opaque queue identifier in the owning module. */
|
|
103
|
+
queueId: string;
|
|
104
|
+
/** User choice to participate. Does not grant authorization. */
|
|
105
|
+
active: boolean;
|
|
106
|
+
/** Monotonic revision of this aggregate; positive safe integer. */
|
|
107
|
+
revision: number;
|
|
108
|
+
/** UTC Unix milliseconds of the last change. */
|
|
109
|
+
updatedAtMs: number;
|
|
110
|
+
/** User who changed this choice; null for a system migration. */
|
|
111
|
+
updatedByUserId: string | null;
|
|
112
|
+
}
|
|
113
|
+
/** Redis JSON projection owned by Presence. Global operational facts, not per-module capacity or avatar styling. */
|
|
114
|
+
export interface PresenceAgentOperationalState {
|
|
115
|
+
/** Wire schema version. Must be 1. */
|
|
116
|
+
schemaVersion: number;
|
|
117
|
+
/** Tenant space; opaque identifier, never numeric conversion. */
|
|
118
|
+
spaceId: string;
|
|
119
|
+
/** Opaque platform user identifier. */
|
|
120
|
+
userId: string;
|
|
121
|
+
/** Monotonic revision of this aggregate; positive safe integer. */
|
|
122
|
+
revision: number;
|
|
123
|
+
/** At least one live session according to Presence. */
|
|
124
|
+
connected: boolean;
|
|
125
|
+
/** Manual choice; independent of connectivity. */
|
|
126
|
+
availability: PresenceManualAvailability;
|
|
127
|
+
/** Whether an operational pause is active. */
|
|
128
|
+
paused: boolean;
|
|
129
|
+
/** Active pause identifier, otherwise null. */
|
|
130
|
+
pauseId: string | null;
|
|
131
|
+
/** Active pause reason, otherwise null. Existing numeric PauseReason wire values. */
|
|
132
|
+
pauseReason: PauseReason | null;
|
|
133
|
+
/** Start of current pause, otherwise null. */
|
|
134
|
+
pauseStartedAtMs: number | null;
|
|
135
|
+
/** UTC Unix milliseconds of the last change. */
|
|
136
|
+
updatedAtMs: number;
|
|
137
|
+
/** UTC Unix milliseconds when Redis projection was refreshed. */
|
|
138
|
+
projectedAtMs: number;
|
|
139
|
+
/** Freshness deadline in UTC Unix milliseconds; expired state is not eligible. */
|
|
140
|
+
expiresAtMs: number;
|
|
141
|
+
}
|
|
142
|
+
/** Redis JSON projection. Join with fresh agent state before automatic assignment; domain routing still applies. */
|
|
143
|
+
export interface PresenceQueueParticipationState {
|
|
144
|
+
/** Wire schema version. Must be 1. */
|
|
145
|
+
schemaVersion: number;
|
|
146
|
+
/** Tenant space; opaque identifier, never numeric conversion. */
|
|
147
|
+
spaceId: string;
|
|
148
|
+
/** Opaque platform user identifier. */
|
|
149
|
+
userId: string;
|
|
150
|
+
/** Owning module; part of queue identity. */
|
|
151
|
+
module: PresenceQueueModule;
|
|
152
|
+
/** Opaque queue identifier in the owning module. */
|
|
153
|
+
queueId: string;
|
|
154
|
+
/** Owner catalog revision applied to this projection. */
|
|
155
|
+
catalogRevision: number;
|
|
156
|
+
/** User-choice revision; zero when no durable choice exists. */
|
|
157
|
+
participationRevision: number;
|
|
158
|
+
/** False for disabled or deleted queues. */
|
|
159
|
+
queueEnabled: boolean;
|
|
160
|
+
/** Effective owner membership; false for deleted or disabled queues. */
|
|
161
|
+
authorized: boolean;
|
|
162
|
+
/** Persisted user choice, never a computed availability. */
|
|
163
|
+
active: boolean;
|
|
164
|
+
/** UTC Unix milliseconds when Redis projection was refreshed. */
|
|
165
|
+
projectedAtMs: number;
|
|
166
|
+
/** Freshness deadline in UTC Unix milliseconds; expired state is not eligible. */
|
|
167
|
+
expiresAtMs: number;
|
|
168
|
+
}
|
|
169
|
+
/** Private popup item. Does not expose other users or backend routing capacity. */
|
|
170
|
+
export interface PresenceQueueParticipationItem {
|
|
171
|
+
/** Owning module; part of queue identity. */
|
|
172
|
+
module: PresenceQueueModule;
|
|
173
|
+
/** Opaque queue identifier in the owning module. */
|
|
174
|
+
queueId: string;
|
|
175
|
+
/** Display/grouping name. */
|
|
176
|
+
name: string;
|
|
177
|
+
/** Queue enabled in catalog. */
|
|
178
|
+
enabled: boolean;
|
|
179
|
+
/** Current user is authorized. */
|
|
180
|
+
authorized: boolean;
|
|
181
|
+
/** Current user choice. */
|
|
182
|
+
active: boolean;
|
|
183
|
+
/** Server permits changing this participation now. */
|
|
184
|
+
canToggle: boolean;
|
|
185
|
+
/** Owner revision. */
|
|
186
|
+
catalogRevision: number;
|
|
187
|
+
/** Expected revision for an update; zero means no choice yet. */
|
|
188
|
+
participationRevision: number;
|
|
189
|
+
}
|
|
190
|
+
/** Private listing for the authenticated user and space. */
|
|
191
|
+
export interface PresenceQueueParticipationListResponse {
|
|
192
|
+
/** Wire schema version. Must be 1. */
|
|
193
|
+
schemaVersion: number;
|
|
194
|
+
/** Tenant space; opaque identifier, never numeric conversion. */
|
|
195
|
+
spaceId: string;
|
|
196
|
+
/** Opaque platform user identifier. */
|
|
197
|
+
userId: string;
|
|
198
|
+
/** UTC Unix milliseconds of response creation. */
|
|
199
|
+
generatedAtMs: number;
|
|
200
|
+
/** Authorized queues from the Presence catalog; empty is a valid list. */
|
|
201
|
+
items: PresenceQueueParticipationItem[];
|
|
202
|
+
}
|
|
203
|
+
/** Optimistic concurrency target for individual or grouped updates. */
|
|
204
|
+
export interface PresenceQueueParticipationTarget {
|
|
205
|
+
/** Owning module; part of queue identity. */
|
|
206
|
+
module: PresenceQueueModule;
|
|
207
|
+
/** Opaque queue identifier in the owning module. */
|
|
208
|
+
queueId: string;
|
|
209
|
+
/** Required current choice revision; zero if no record exists. */
|
|
210
|
+
expectedParticipationRevision: number;
|
|
211
|
+
}
|
|
212
|
+
/** One target for a switch, several explicit targets for a name group. Identity comes from authentication. */
|
|
213
|
+
export interface SetPresenceQueueParticipationRequest {
|
|
214
|
+
/** Stable idempotency identifier; reuse only with identical command content. */
|
|
215
|
+
commandId: string;
|
|
216
|
+
/** Desired value, never a toggle operation. */
|
|
217
|
+
active: boolean;
|
|
218
|
+
/** Non-empty unique module/queue identities; no name wildcard. */
|
|
219
|
+
targets: PresenceQueueParticipationTarget[];
|
|
220
|
+
}
|
|
221
|
+
/** One result per target. Batch is not implicitly all-or-nothing. */
|
|
222
|
+
export interface PresenceQueueParticipationUpdateResult {
|
|
223
|
+
/** Owning module; part of queue identity. */
|
|
224
|
+
module: PresenceQueueModule;
|
|
225
|
+
/** Opaque queue identifier in the owning module. */
|
|
226
|
+
queueId: string;
|
|
227
|
+
/** Result code for this target. */
|
|
228
|
+
outcome: PresenceQueueUpdateOutcome;
|
|
229
|
+
/** Current item when safe to disclose; null for missing/unauthorized targets. */
|
|
230
|
+
item: PresenceQueueParticipationItem | null;
|
|
231
|
+
}
|
|
232
|
+
/** Idempotent command result, including partial failures. */
|
|
233
|
+
export interface SetPresenceQueueParticipationResponse {
|
|
234
|
+
/** Wire schema version. Must be 1. */
|
|
235
|
+
schemaVersion: number;
|
|
236
|
+
/** Request identity. */
|
|
237
|
+
commandId: string;
|
|
238
|
+
/** One outcome for every requested target. */
|
|
239
|
+
results: PresenceQueueParticipationUpdateResult[];
|
|
240
|
+
}
|
|
241
|
+
/** Presence-to-consumers invalidation after a participation projection changes. Refetch; do not overwrite newer state from this event. */
|
|
242
|
+
export interface PresenceQueueParticipationChangedEvent {
|
|
243
|
+
/** Wire schema version. Must be 1. */
|
|
244
|
+
schemaVersion: number;
|
|
245
|
+
/** Stable unique event identifier; preserved on retry. */
|
|
246
|
+
eventId: string;
|
|
247
|
+
/** UTC Unix milliseconds when the fact occurred. */
|
|
248
|
+
occurredAtMs: number;
|
|
249
|
+
/** Tenant space; opaque identifier, never numeric conversion. */
|
|
250
|
+
spaceId: string;
|
|
251
|
+
/** Opaque platform user identifier. */
|
|
252
|
+
userId: string;
|
|
253
|
+
/** Owning module; part of queue identity. */
|
|
254
|
+
module: PresenceQueueModule;
|
|
255
|
+
/** Opaque queue identifier in the owning module. */
|
|
256
|
+
queueId: string;
|
|
257
|
+
/** Applied owner revision. */
|
|
258
|
+
catalogRevision: number;
|
|
259
|
+
/** Applied user-choice revision. */
|
|
260
|
+
participationRevision: number;
|
|
261
|
+
}
|
|
262
|
+
/** Presence-to-consumers invalidation after a complete catalog revision is applied. No membership list is sent to the browser. */
|
|
263
|
+
export interface PresenceQueueCatalogChangedEvent {
|
|
264
|
+
/** Wire schema version. Must be 1. */
|
|
265
|
+
schemaVersion: number;
|
|
266
|
+
/** Stable unique event identifier; preserved on retry. */
|
|
267
|
+
eventId: string;
|
|
268
|
+
/** UTC Unix milliseconds when the fact occurred. */
|
|
269
|
+
occurredAtMs: number;
|
|
270
|
+
/** Tenant space; opaque identifier, never numeric conversion. */
|
|
271
|
+
spaceId: string;
|
|
272
|
+
/** Owning module; part of queue identity. */
|
|
273
|
+
module: PresenceQueueModule;
|
|
274
|
+
/** Opaque queue identifier in the owning module. */
|
|
275
|
+
queueId: string;
|
|
276
|
+
/** Monotonic revision of this aggregate; positive safe integer. */
|
|
277
|
+
revision: number;
|
|
278
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PresenceQueueContracts = void 0;
|
|
4
|
+
/** Versioned wire names. Socket.IO name is EventType + underscore + action. */
|
|
5
|
+
exports.PresenceQueueContracts = {
|
|
6
|
+
SchemaVersion: 1,
|
|
7
|
+
EventType: "presence",
|
|
8
|
+
QueueSnapshotAction: "queue_snapshot",
|
|
9
|
+
QueueCatalogSyncRequestedAction: "queue_catalog_sync_requested",
|
|
10
|
+
QueueCatalogChangedAction: "queue_catalog_changed",
|
|
11
|
+
QueueParticipationChangedAction: "queue_participation_changed",
|
|
12
|
+
AgentRedisKeyPrefix: "presence:v1:agent:",
|
|
13
|
+
ParticipationRedisKeyPrefix: "presence:v1:participation:",
|
|
14
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** Full reports. Null eligibility means unknown/context-dependent. */
|
|
2
|
+
export interface RoutingItem {
|
|
3
|
+
module: "conversations" | "tickets" | "calls";
|
|
4
|
+
queueId: string;
|
|
5
|
+
name: string;
|
|
6
|
+
mode: string;
|
|
7
|
+
strategy: string | null;
|
|
8
|
+
eligible: boolean | null;
|
|
9
|
+
reasons: string[];
|
|
10
|
+
conditions: string[];
|
|
11
|
+
load: number | null;
|
|
12
|
+
loadScope: string | null;
|
|
13
|
+
capacity: number | null;
|
|
14
|
+
}
|
|
15
|
+
export interface ModuleRoutingSnapshot {
|
|
16
|
+
schemaVersion: 1;
|
|
17
|
+
module: RoutingItem["module"];
|
|
18
|
+
spaceId: string;
|
|
19
|
+
userId: string;
|
|
20
|
+
revision: number;
|
|
21
|
+
occurredAtMs: number;
|
|
22
|
+
expiresAtMs: number;
|
|
23
|
+
items: RoutingItem[];
|
|
24
|
+
}
|
|
25
|
+
export interface RoutingSnapshot {
|
|
26
|
+
schemaVersion: 2;
|
|
27
|
+
spaceId: string;
|
|
28
|
+
userId: string;
|
|
29
|
+
version: number;
|
|
30
|
+
observedAtMs: number;
|
|
31
|
+
expiresAtMs: number;
|
|
32
|
+
items: RoutingItem[];
|
|
33
|
+
}
|
package/dist/Presence/index.d.ts
CHANGED
package/dist/Presence/index.js
CHANGED
|
@@ -17,3 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./AgentPause"), exports);
|
|
18
18
|
__exportStar(require("./QueueParticipation"), exports);
|
|
19
19
|
__exportStar(require("./QueueRoutingState"), exports);
|
|
20
|
+
__exportStar(require("./PresenceQueueContracts"), exports);
|
|
21
|
+
__exportStar(require("./RoutingContracts"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TicketAccessLevel = void 0;
|
|
4
|
+
var TicketAccessLevel;
|
|
5
|
+
(function (TicketAccessLevel) {
|
|
6
|
+
TicketAccessLevel["ALL"] = "ALL";
|
|
7
|
+
TicketAccessLevel["GROUP"] = "GROUP";
|
|
8
|
+
TicketAccessLevel["AGENT"] = "AGENT";
|
|
9
|
+
})(TicketAccessLevel || (exports.TicketAccessLevel = TicketAccessLevel = {}));
|
package/package.json
CHANGED
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import { ID, InboxViewId } from './Conversation';
|
|
2
|
-
export declare const CONVERSATION_SUBSCRIPTIONS_COLLECTION = "conversation_subscriptions";
|
|
3
|
-
export declare const USER_INBOX_ITEMS_COLLECTION = "user_inbox_items";
|
|
4
|
-
export declare const USER_INBOX_COUNTERS_COLLECTION = "user_inbox_counters";
|
|
5
|
-
export declare const INBOX_PROCESSOR_RECEIPTS_COLLECTION = "inbox_processor_receipts";
|
|
6
|
-
/**
|
|
7
|
-
* MongoDB indexes for conversation_subscriptions.
|
|
8
|
-
*
|
|
9
|
-
* The unique index enforces one current subscription state per
|
|
10
|
-
* user/conversation. The follower index resolves the active followers that
|
|
11
|
-
* InboxAudienceResolver receives as input.
|
|
12
|
-
*/
|
|
13
|
-
export declare const CONVERSATION_SUBSCRIPTION_INDEXES: readonly [{
|
|
14
|
-
readonly name: 'uq_subscription_user_conversation';
|
|
15
|
-
readonly key: {
|
|
16
|
-
readonly spaceId: 1;
|
|
17
|
-
readonly userId: 1;
|
|
18
|
-
readonly conversationId: 1;
|
|
19
|
-
};
|
|
20
|
-
readonly unique: true;
|
|
21
|
-
}, {
|
|
22
|
-
readonly name: 'ix_subscription_conversation_followers';
|
|
23
|
-
readonly key: {
|
|
24
|
-
readonly spaceId: 1;
|
|
25
|
-
readonly conversationId: 1;
|
|
26
|
-
readonly status: 1;
|
|
27
|
-
readonly userId: 1;
|
|
28
|
-
};
|
|
29
|
-
}];
|
|
30
|
-
/**
|
|
31
|
-
* MongoDB indexes for user_inbox_items.
|
|
32
|
-
*
|
|
33
|
-
* views.viewId is the only array field in each compound index. Do not add
|
|
34
|
-
* views.visibilityReasons to these indexes: MongoDB compound multikey indexes
|
|
35
|
-
* must not combine multiple array paths.
|
|
36
|
-
*/
|
|
37
|
-
export declare const USER_INBOX_ITEM_INDEXES: readonly [{
|
|
38
|
-
readonly name: 'uq_inbox_item_user_conversation';
|
|
39
|
-
readonly key: {
|
|
40
|
-
readonly spaceId: 1;
|
|
41
|
-
readonly userId: 1;
|
|
42
|
-
readonly conversationId: 1;
|
|
43
|
-
};
|
|
44
|
-
readonly unique: true;
|
|
45
|
-
}, {
|
|
46
|
-
readonly name: 'ix_inbox_view_activity';
|
|
47
|
-
readonly key: {
|
|
48
|
-
readonly spaceId: 1;
|
|
49
|
-
readonly userId: 1;
|
|
50
|
-
readonly 'views.viewId': 1;
|
|
51
|
-
readonly pinned: -1;
|
|
52
|
-
readonly sortAt: -1;
|
|
53
|
-
readonly id: -1;
|
|
54
|
-
};
|
|
55
|
-
}, {
|
|
56
|
-
readonly name: 'ix_inbox_view_priority';
|
|
57
|
-
readonly key: {
|
|
58
|
-
readonly spaceId: 1;
|
|
59
|
-
readonly userId: 1;
|
|
60
|
-
readonly 'views.viewId': 1;
|
|
61
|
-
readonly pinned: -1;
|
|
62
|
-
readonly priorityScore: -1;
|
|
63
|
-
readonly sortAt: -1;
|
|
64
|
-
readonly id: -1;
|
|
65
|
-
};
|
|
66
|
-
}, {
|
|
67
|
-
readonly name: 'ix_inbox_view_status_activity';
|
|
68
|
-
readonly key: {
|
|
69
|
-
readonly spaceId: 1;
|
|
70
|
-
readonly userId: 1;
|
|
71
|
-
readonly 'views.viewId': 1;
|
|
72
|
-
readonly 'snapshot.status': 1;
|
|
73
|
-
readonly sortAt: -1;
|
|
74
|
-
readonly id: -1;
|
|
75
|
-
};
|
|
76
|
-
}, {
|
|
77
|
-
readonly name: 'ix_inbox_view_queue_activity';
|
|
78
|
-
readonly key: {
|
|
79
|
-
readonly spaceId: 1;
|
|
80
|
-
readonly userId: 1;
|
|
81
|
-
readonly 'views.viewId': 1;
|
|
82
|
-
readonly 'snapshot.queueId': 1;
|
|
83
|
-
readonly sortAt: -1;
|
|
84
|
-
readonly id: -1;
|
|
85
|
-
};
|
|
86
|
-
}];
|
|
87
|
-
/**
|
|
88
|
-
* MongoDB indexes for user_inbox_counters.
|
|
89
|
-
*
|
|
90
|
-
* The unique index also serves reads for all views of a user through its
|
|
91
|
-
* spaceId + userId prefix.
|
|
92
|
-
*/
|
|
93
|
-
export declare const USER_INBOX_COUNTER_INDEXES: readonly [{
|
|
94
|
-
readonly name: 'uq_inbox_counter_user_view';
|
|
95
|
-
readonly key: {
|
|
96
|
-
readonly spaceId: 1;
|
|
97
|
-
readonly userId: 1;
|
|
98
|
-
readonly viewId: 1;
|
|
99
|
-
};
|
|
100
|
-
readonly unique: true;
|
|
101
|
-
}];
|
|
102
|
-
/**
|
|
103
|
-
* MongoDB indexes for durable processor idempotency receipts.
|
|
104
|
-
*/
|
|
105
|
-
export declare const INBOX_PROCESSOR_RECEIPT_INDEXES: readonly [{
|
|
106
|
-
readonly name: 'uq_inbox_processor_source_scope';
|
|
107
|
-
readonly key: {
|
|
108
|
-
readonly processor: 1;
|
|
109
|
-
readonly sourceEventId: 1;
|
|
110
|
-
readonly scopeKey: 1;
|
|
111
|
-
};
|
|
112
|
-
readonly unique: true;
|
|
113
|
-
}];
|
|
114
|
-
export type InboxPaginationSort = 'activity' | 'priority';
|
|
115
|
-
/**
|
|
116
|
-
* Seek-pagination cursor matching ix_inbox_view_activity.
|
|
117
|
-
*/
|
|
118
|
-
export interface InboxActivityCursor {
|
|
119
|
-
sort: 'activity';
|
|
120
|
-
pinned: boolean;
|
|
121
|
-
sortAt: Date;
|
|
122
|
-
id: ID;
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Seek-pagination cursor matching ix_inbox_view_priority.
|
|
126
|
-
*/
|
|
127
|
-
export interface InboxPriorityCursor {
|
|
128
|
-
sort: 'priority';
|
|
129
|
-
pinned: boolean;
|
|
130
|
-
priorityScore: number;
|
|
131
|
-
sortAt: Date;
|
|
132
|
-
id: ID;
|
|
133
|
-
}
|
|
134
|
-
export type InboxPaginationCursor = InboxActivityCursor | InboxPriorityCursor;
|
|
135
|
-
/**
|
|
136
|
-
* Query contract for one logical inbox view.
|
|
137
|
-
*
|
|
138
|
-
* Implementations must use seek pagination with cursor; skip pagination is not
|
|
139
|
-
* compatible with frequently changing sortAt values.
|
|
140
|
-
*/
|
|
141
|
-
interface InboxPageQueryBase {
|
|
142
|
-
spaceId: ID;
|
|
143
|
-
userId: ID;
|
|
144
|
-
viewId: InboxViewId;
|
|
145
|
-
limit: number;
|
|
146
|
-
}
|
|
147
|
-
export type InboxPageQuery = (InboxPageQueryBase & {
|
|
148
|
-
sort: 'activity';
|
|
149
|
-
cursor?: InboxActivityCursor;
|
|
150
|
-
}) | (InboxPageQueryBase & {
|
|
151
|
-
sort: 'priority';
|
|
152
|
-
cursor?: InboxPriorityCursor;
|
|
153
|
-
});
|
|
154
|
-
export {};
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.INBOX_PROCESSOR_RECEIPT_INDEXES = exports.USER_INBOX_COUNTER_INDEXES = exports.USER_INBOX_ITEM_INDEXES = exports.CONVERSATION_SUBSCRIPTION_INDEXES = exports.INBOX_PROCESSOR_RECEIPTS_COLLECTION = exports.USER_INBOX_COUNTERS_COLLECTION = exports.USER_INBOX_ITEMS_COLLECTION = exports.CONVERSATION_SUBSCRIPTIONS_COLLECTION = void 0;
|
|
4
|
-
exports.CONVERSATION_SUBSCRIPTIONS_COLLECTION = 'conversation_subscriptions';
|
|
5
|
-
exports.USER_INBOX_ITEMS_COLLECTION = 'user_inbox_items';
|
|
6
|
-
exports.USER_INBOX_COUNTERS_COLLECTION = 'user_inbox_counters';
|
|
7
|
-
exports.INBOX_PROCESSOR_RECEIPTS_COLLECTION = 'inbox_processor_receipts';
|
|
8
|
-
/**
|
|
9
|
-
* MongoDB indexes for conversation_subscriptions.
|
|
10
|
-
*
|
|
11
|
-
* The unique index enforces one current subscription state per
|
|
12
|
-
* user/conversation. The follower index resolves the active followers that
|
|
13
|
-
* InboxAudienceResolver receives as input.
|
|
14
|
-
*/
|
|
15
|
-
exports.CONVERSATION_SUBSCRIPTION_INDEXES = [
|
|
16
|
-
{
|
|
17
|
-
name: 'uq_subscription_user_conversation',
|
|
18
|
-
key: {
|
|
19
|
-
spaceId: 1,
|
|
20
|
-
userId: 1,
|
|
21
|
-
conversationId: 1,
|
|
22
|
-
},
|
|
23
|
-
unique: true,
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
name: 'ix_subscription_conversation_followers',
|
|
27
|
-
key: {
|
|
28
|
-
spaceId: 1,
|
|
29
|
-
conversationId: 1,
|
|
30
|
-
status: 1,
|
|
31
|
-
userId: 1,
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
];
|
|
35
|
-
/**
|
|
36
|
-
* MongoDB indexes for user_inbox_items.
|
|
37
|
-
*
|
|
38
|
-
* views.viewId is the only array field in each compound index. Do not add
|
|
39
|
-
* views.visibilityReasons to these indexes: MongoDB compound multikey indexes
|
|
40
|
-
* must not combine multiple array paths.
|
|
41
|
-
*/
|
|
42
|
-
exports.USER_INBOX_ITEM_INDEXES = [
|
|
43
|
-
{
|
|
44
|
-
name: 'uq_inbox_item_user_conversation',
|
|
45
|
-
key: {
|
|
46
|
-
spaceId: 1,
|
|
47
|
-
userId: 1,
|
|
48
|
-
conversationId: 1,
|
|
49
|
-
},
|
|
50
|
-
unique: true,
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
name: 'ix_inbox_view_activity',
|
|
54
|
-
key: {
|
|
55
|
-
spaceId: 1,
|
|
56
|
-
userId: 1,
|
|
57
|
-
'views.viewId': 1,
|
|
58
|
-
pinned: -1,
|
|
59
|
-
sortAt: -1,
|
|
60
|
-
id: -1,
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
name: 'ix_inbox_view_priority',
|
|
65
|
-
key: {
|
|
66
|
-
spaceId: 1,
|
|
67
|
-
userId: 1,
|
|
68
|
-
'views.viewId': 1,
|
|
69
|
-
pinned: -1,
|
|
70
|
-
priorityScore: -1,
|
|
71
|
-
sortAt: -1,
|
|
72
|
-
id: -1,
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
name: 'ix_inbox_view_status_activity',
|
|
77
|
-
key: {
|
|
78
|
-
spaceId: 1,
|
|
79
|
-
userId: 1,
|
|
80
|
-
'views.viewId': 1,
|
|
81
|
-
'snapshot.status': 1,
|
|
82
|
-
sortAt: -1,
|
|
83
|
-
id: -1,
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
name: 'ix_inbox_view_queue_activity',
|
|
88
|
-
key: {
|
|
89
|
-
spaceId: 1,
|
|
90
|
-
userId: 1,
|
|
91
|
-
'views.viewId': 1,
|
|
92
|
-
'snapshot.queueId': 1,
|
|
93
|
-
sortAt: -1,
|
|
94
|
-
id: -1,
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
];
|
|
98
|
-
/**
|
|
99
|
-
* MongoDB indexes for user_inbox_counters.
|
|
100
|
-
*
|
|
101
|
-
* The unique index also serves reads for all views of a user through its
|
|
102
|
-
* spaceId + userId prefix.
|
|
103
|
-
*/
|
|
104
|
-
exports.USER_INBOX_COUNTER_INDEXES = [
|
|
105
|
-
{
|
|
106
|
-
name: 'uq_inbox_counter_user_view',
|
|
107
|
-
key: {
|
|
108
|
-
spaceId: 1,
|
|
109
|
-
userId: 1,
|
|
110
|
-
viewId: 1,
|
|
111
|
-
},
|
|
112
|
-
unique: true,
|
|
113
|
-
},
|
|
114
|
-
];
|
|
115
|
-
/**
|
|
116
|
-
* MongoDB indexes for durable processor idempotency receipts.
|
|
117
|
-
*/
|
|
118
|
-
exports.INBOX_PROCESSOR_RECEIPT_INDEXES = [
|
|
119
|
-
{
|
|
120
|
-
name: 'uq_inbox_processor_source_scope',
|
|
121
|
-
key: {
|
|
122
|
-
processor: 1,
|
|
123
|
-
sourceEventId: 1,
|
|
124
|
-
scopeKey: 1,
|
|
125
|
-
},
|
|
126
|
-
unique: true,
|
|
127
|
-
},
|
|
128
|
-
];
|