@trii/types 2.10.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/dist/AI/Credential.d.ts +13 -0
- package/dist/AI/Credential.js +2 -0
- package/dist/AI/Documents/Document.d.ts +36 -0
- package/dist/AI/Documents/Document.js +15 -0
- package/dist/AI/Documents/Store.d.ts +25 -0
- package/dist/AI/Documents/Store.js +10 -0
- package/dist/AI/Map.d.ts +13 -0
- package/dist/AI/Map.js +2 -0
- package/dist/AI/MapPolygon.d.ts +22 -0
- package/dist/AI/MapPolygon.js +2 -0
- package/dist/AI/Provider.d.ts +6 -0
- package/dist/AI/Provider.js +2 -0
- package/dist/AI/Threads/API.d.ts +55 -0
- package/dist/AI/Threads/API.js +2 -0
- package/dist/AI/Threads/Message.d.ts +61 -0
- package/dist/AI/Threads/Message.js +2 -0
- package/dist/AI/Threads/Thread.d.ts +22 -0
- package/dist/AI/Threads/Thread.js +2 -0
- package/dist/AI/Threads/index.d.ts +3 -0
- package/dist/AI/Threads/index.js +19 -0
- package/dist/AI/aiModuleStatus.d.ts +3 -0
- package/dist/AI/aiModuleStatus.js +2 -0
- package/dist/AI/index.d.ts +4 -0
- package/dist/AI/index.js +20 -0
- package/dist/Accounts/accounts.d.ts +88 -0
- package/dist/Accounts/accounts.js +24 -0
- package/dist/Accounts/device.d.ts +31 -0
- package/dist/Accounts/device.js +19 -0
- package/dist/Accounts/index.d.ts +2 -0
- package/dist/Accounts/index.js +18 -0
- package/dist/ApiResponses/index.d.ts +9 -0
- package/dist/ApiResponses/index.js +2 -0
- package/dist/AuditLogs/auditLog.d.ts +9 -0
- package/dist/AuditLogs/auditLog.js +2 -0
- package/dist/AuditLogs/auditLogType.d.ts +5 -0
- package/dist/AuditLogs/auditLogType.js +9 -0
- package/dist/AuditLogs/index.d.ts +2 -0
- package/dist/AuditLogs/index.js +18 -0
- package/dist/Automations/Capabilities/Capability.d.ts +81 -0
- package/dist/Automations/Capabilities/Capability.js +23 -0
- package/dist/Automations/Capabilities/index.d.ts +1 -0
- package/dist/Automations/Capabilities/index.js +17 -0
- package/dist/Automations/Common.d.ts +94 -0
- package/dist/Automations/Common.js +40 -0
- package/dist/Automations/Events/Event.d.ts +96 -0
- package/dist/Automations/Events/Event.js +19 -0
- package/dist/Automations/Events/index.d.ts +1 -0
- package/dist/Automations/Events/index.js +17 -0
- package/dist/Automations/Executions/Execution.d.ts +298 -0
- package/dist/Automations/Executions/Execution.js +76 -0
- package/dist/Automations/Executions/Testing.d.ts +166 -0
- package/dist/Automations/Executions/Testing.js +54 -0
- package/dist/Automations/Executions/index.d.ts +2 -0
- package/dist/Automations/Executions/index.js +18 -0
- package/dist/Automations/Flows/Canvas.d.ts +109 -0
- package/dist/Automations/Flows/Canvas.js +43 -0
- package/dist/Automations/Flows/Flow.d.ts +154 -0
- package/dist/Automations/Flows/Flow.js +58 -0
- package/dist/Automations/Flows/Requests.d.ts +71 -0
- package/dist/Automations/Flows/Requests.js +2 -0
- package/dist/Automations/Flows/Validation.d.ts +28 -0
- package/dist/Automations/Flows/Validation.js +9 -0
- package/dist/Automations/Flows/index.d.ts +4 -0
- package/dist/Automations/Flows/index.js +20 -0
- package/dist/Automations/Nodes/Node.d.ts +116 -0
- package/dist/Automations/Nodes/Node.js +27 -0
- package/dist/Automations/Nodes/index.d.ts +1 -0
- package/dist/Automations/Nodes/index.js +17 -0
- package/dist/Automations/Triggers/Trigger.d.ts +112 -0
- package/dist/Automations/Triggers/Trigger.js +66 -0
- package/dist/Automations/Triggers/index.d.ts +1 -0
- package/dist/Automations/Triggers/index.js +17 -0
- package/dist/Automations/index.d.ts +7 -0
- package/dist/Automations/index.js +23 -0
- package/dist/Calendar/Calendar.d.ts +18 -0
- package/dist/Calendar/Calendar.js +2 -0
- package/dist/Calendar/Common.d.ts +77 -0
- package/dist/Calendar/Common.js +16 -0
- package/dist/Calendar/Event.d.ts +64 -0
- package/dist/Calendar/Event.js +16 -0
- package/dist/Calendar/Events.d.ts +61 -0
- package/dist/Calendar/Events.js +5 -0
- package/dist/Calendar/Task.d.ts +12 -0
- package/dist/Calendar/Task.js +2 -0
- package/dist/Calendar/Tasks.d.ts +18 -0
- package/dist/Calendar/Tasks.js +5 -0
- package/dist/Calendar/index.d.ts +3 -0
- package/dist/Calendar/index.js +19 -0
- package/dist/Calls/Audio.d.ts +17 -0
- package/dist/Calls/Audio.js +8 -0
- package/dist/Calls/Call.d.ts +59 -0
- package/dist/Calls/Call.js +25 -0
- package/dist/Calls/Codecs.d.ts +5 -0
- package/dist/Calls/Codecs.js +21 -0
- package/dist/Calls/Extension.d.ts +24 -0
- package/dist/Calls/Extension.js +2 -0
- package/dist/Calls/Options.d.ts +5 -0
- package/dist/Calls/Options.js +2 -0
- package/dist/Calls/Queue.d.ts +52 -0
- package/dist/Calls/Queue.js +12 -0
- package/dist/Calls/RingGroup.d.ts +46 -0
- package/dist/Calls/RingGroup.js +27 -0
- package/dist/Calls/Transport.d.ts +6 -0
- package/dist/Calls/Transport.js +11 -0
- package/dist/Calls/Trunk.d.ts +31 -0
- package/dist/Calls/Trunk.js +2 -0
- package/dist/Calls/index.d.ts +6 -0
- package/dist/Calls/index.js +22 -0
- package/dist/Chats/Chat.d.ts +63 -0
- package/dist/Chats/Chat.js +28 -0
- package/dist/Collections/Api.d.ts +41 -0
- package/dist/Collections/Api.js +2 -0
- package/dist/Collections/Commission.d.ts +52 -0
- package/dist/Collections/Commission.js +10 -0
- package/dist/Collections/Common.d.ts +78 -0
- package/dist/Collections/Common.js +39 -0
- package/dist/Collections/Dashboard.d.ts +27 -0
- package/dist/Collections/Dashboard.js +2 -0
- package/dist/Collections/Debt.d.ts +97 -0
- package/dist/Collections/Debt.js +12 -0
- package/dist/Collections/Interest.d.ts +38 -0
- package/dist/Collections/Interest.js +25 -0
- package/dist/Collections/Payment.d.ts +87 -0
- package/dist/Collections/Payment.js +21 -0
- package/dist/Collections/PaymentPlan.d.ts +87 -0
- package/dist/Collections/PaymentPlan.js +21 -0
- package/dist/Collections/PaymentPlanConfiguration.d.ts +100 -0
- package/dist/Collections/PaymentPlanConfiguration.js +34 -0
- package/dist/Collections/Portfolio.d.ts +52 -0
- package/dist/Collections/Portfolio.js +12 -0
- package/dist/Collections/Promise.d.ts +49 -0
- package/dist/Collections/Promise.js +25 -0
- package/dist/Collections/index.d.ts +11 -0
- package/dist/Collections/index.js +27 -0
- package/dist/Common/API/AuthApiKey.d.ts +5 -0
- package/dist/Common/API/AuthApiKey.js +2 -0
- package/dist/Common/API/AuthBasic.d.ts +4 -0
- package/dist/Common/API/AuthBasic.js +2 -0
- package/dist/Common/API/AuthBearer.d.ts +5 -0
- package/dist/Common/API/AuthBearer.js +2 -0
- package/dist/Common/API/AuthType.d.ts +6 -0
- package/dist/Common/API/AuthType.js +10 -0
- package/dist/Common/API/Method.d.ts +4 -0
- package/dist/Common/API/Method.js +8 -0
- package/dist/Common/API/index.d.ts +5 -0
- package/dist/Common/API/index.js +21 -0
- package/dist/Common/Channels/Channel.d.ts +143 -0
- package/dist/Common/Channels/Channel.js +33 -0
- package/dist/Common/Channels/ChannelAccount.d.ts +35 -0
- package/dist/Common/Channels/ChannelAccount.js +17 -0
- package/dist/Common/Channels/ChannelType.d.ts +24 -0
- package/dist/Common/Channels/ChannelType.js +28 -0
- package/dist/Common/Channels/Email.d.ts +88 -0
- package/dist/Common/Channels/Email.js +49 -0
- package/dist/Common/Channels/Facebook.d.ts +26 -0
- package/dist/Common/Channels/Facebook.js +6 -0
- package/dist/Common/Channels/Form.d.ts +119 -0
- package/dist/Common/Channels/Form.js +32 -0
- package/dist/Common/Channels/GoogleBusiness.d.ts +21 -0
- package/dist/Common/Channels/GoogleBusiness.js +9 -0
- package/dist/Common/Channels/Instagram.d.ts +35 -0
- package/dist/Common/Channels/Instagram.js +14 -0
- package/dist/Common/Channels/MercadoLibre.d.ts +28 -0
- package/dist/Common/Channels/MercadoLibre.js +9 -0
- package/dist/Common/Channels/Pbx.d.ts +2 -0
- package/dist/Common/Channels/Pbx.js +6 -0
- package/dist/Common/Channels/Permission.d.ts +6 -0
- package/dist/Common/Channels/Permission.js +6 -0
- package/dist/Common/Channels/RCS.d.ts +37 -0
- package/dist/Common/Channels/RCS.js +9 -0
- package/dist/Common/Channels/Sip.d.ts +2 -0
- package/dist/Common/Channels/Sip.js +6 -0
- package/dist/Common/Channels/Sms.d.ts +46 -0
- package/dist/Common/Channels/Sms.js +16 -0
- package/dist/Common/Channels/WebChat.d.ts +68 -0
- package/dist/Common/Channels/WebChat.js +13 -0
- package/dist/Common/Channels/WhatsApp.d.ts +89 -0
- package/dist/Common/Channels/WhatsApp.js +18 -0
- package/dist/Common/Channels/index.d.ts +16 -0
- package/dist/Common/Channels/index.js +32 -0
- package/dist/Common/EventsQueue/Data/postComment.d.ts +26 -0
- package/dist/Common/EventsQueue/Data/postComment.js +2 -0
- package/dist/Common/EventsQueue/EmailTemplate.d.ts +10 -0
- package/dist/Common/EventsQueue/EmailTemplate.js +2 -0
- package/dist/Common/EventsQueue/EventQueue.d.ts +31 -0
- package/dist/Common/EventsQueue/EventQueue.js +2 -0
- package/dist/Common/EventsQueue/UserUpdate.d.ts +8 -0
- package/dist/Common/EventsQueue/UserUpdate.js +2 -0
- package/dist/Common/EventsQueue/index.d.ts +3 -0
- package/dist/Common/EventsQueue/index.js +19 -0
- package/dist/Common/Logs/Log.d.ts +18 -0
- package/dist/Common/Logs/Log.js +13 -0
- package/dist/Common/Logs/index.d.ts +1 -0
- package/dist/Common/Logs/index.js +17 -0
- package/dist/Common/Messages/MediaFile.d.ts +5 -0
- package/dist/Common/Messages/MediaFile.js +2 -0
- package/dist/Common/Messages/Message.d.ts +600 -0
- package/dist/Common/Messages/Message.js +64 -0
- package/dist/Common/Messages/Template.d.ts +86 -0
- package/dist/Common/Messages/Template.js +26 -0
- package/dist/Common/Messages/index.d.ts +3 -0
- package/dist/Common/Messages/index.js +19 -0
- package/dist/Common/Notifications/Notification.d.ts +19 -0
- package/dist/Common/Notifications/Notification.js +10 -0
- package/dist/Common/Notifications/UserNotificationsConfig.d.ts +33 -0
- package/dist/Common/Notifications/UserNotificationsConfig.js +18 -0
- package/dist/Common/Notifications/index.d.ts +2 -0
- package/dist/Common/Notifications/index.js +18 -0
- package/dist/Common/Schedules/Schedules.d.ts +32 -0
- package/dist/Common/Schedules/Schedules.js +2 -0
- package/dist/Common/Schedules/index.d.ts +1 -0
- package/dist/Common/Schedules/index.js +17 -0
- package/dist/Common/index.d.ts +6 -0
- package/dist/Common/index.js +42 -0
- package/dist/Contacts/CommunicationEndpoint.d.ts +107 -0
- package/dist/Contacts/CommunicationEndpoint.js +39 -0
- package/dist/Contacts/CommunicationMethod.d.ts +9 -0
- package/dist/Contacts/CommunicationMethod.js +2 -0
- package/dist/Contacts/DuplicateContact.d.ts +11 -0
- package/dist/Contacts/DuplicateContact.js +2 -0
- package/dist/Contacts/File.d.ts +17 -0
- package/dist/Contacts/File.js +2 -0
- package/dist/Contacts/Import.d.ts +18 -0
- package/dist/Contacts/Import.js +2 -0
- package/dist/Contacts/Label.d.ts +9 -0
- package/dist/Contacts/Label.js +2 -0
- package/dist/Contacts/Note.d.ts +15 -0
- package/dist/Contacts/Note.js +2 -0
- package/dist/Contacts/Relationship.d.ts +28 -0
- package/dist/Contacts/Relationship.js +16 -0
- package/dist/Contacts/contacts.d.ts +291 -0
- package/dist/Contacts/contacts.js +54 -0
- package/dist/Contacts/index.d.ts +11 -0
- package/dist/Contacts/index.js +27 -0
- package/dist/Contacts/options.d.ts +5 -0
- package/dist/Contacts/options.js +2 -0
- package/dist/Contacts/segments.d.ts +53 -0
- package/dist/Contacts/segments.js +54 -0
- package/dist/Conversations/Assignment.d.ts +188 -0
- package/dist/Conversations/Assignment.js +2 -0
- package/dist/Conversations/Classifications/ClassificationTaxonomy.d.ts +78 -0
- package/dist/Conversations/Classifications/ClassificationTaxonomy.js +2 -0
- package/dist/Conversations/Classifications/ConversationClassificationEvaluation.d.ts +67 -0
- package/dist/Conversations/Classifications/ConversationClassificationEvaluation.js +2 -0
- package/dist/Conversations/Classifications/ConversationClassificationEvents.d.ts +31 -0
- package/dist/Conversations/Classifications/ConversationClassificationEvents.js +8 -0
- package/dist/Conversations/Classifications/index.d.ts +3 -0
- package/dist/Conversations/Classifications/index.js +19 -0
- package/dist/Conversations/Conversation.d.ts +522 -0
- package/dist/Conversations/Conversation.js +37 -0
- package/dist/Conversations/ConversationAutomationState.d.ts +49 -0
- package/dist/Conversations/ConversationAutomationState.js +2 -0
- package/dist/Conversations/ConversationPendingTransfer.d.ts +18 -0
- package/dist/Conversations/ConversationPendingTransfer.js +2 -0
- package/dist/Conversations/ConversationReadState.d.ts +16 -0
- package/dist/Conversations/ConversationReadState.js +2 -0
- package/dist/Conversations/ConversationSlaClockState.d.ts +70 -0
- package/dist/Conversations/ConversationSlaClockState.js +2 -0
- package/dist/Conversations/ConversationTransferRouting.d.ts +77 -0
- package/dist/Conversations/ConversationTransferRouting.js +2 -0
- package/dist/Conversations/DashBoard/dashboard.d.ts +115 -0
- package/dist/Conversations/DashBoard/dashboard.js +65 -0
- package/dist/Conversations/DashBoard/dashboardChannels.d.ts +5 -0
- package/dist/Conversations/DashBoard/dashboardChannels.js +6 -0
- package/dist/Conversations/DashBoard/dashboardForms.d.ts +44 -0
- package/dist/Conversations/DashBoard/dashboardForms.js +24 -0
- package/dist/Conversations/DashBoard/dashboardMessages.d.ts +13 -0
- package/dist/Conversations/DashBoard/dashboardMessages.js +9 -0
- package/dist/Conversations/Ending.d.ts +17 -0
- package/dist/Conversations/Ending.js +2 -0
- package/dist/Conversations/Flows/Definitions.d.ts +10 -0
- package/dist/Conversations/Flows/Definitions.js +2 -0
- package/dist/Conversations/Flows/Flow.d.ts +222 -0
- package/dist/Conversations/Flows/Flow.js +50 -0
- package/dist/Conversations/Flows/FlowInfo.d.ts +9 -0
- package/dist/Conversations/Flows/FlowInfo.js +2 -0
- package/dist/Conversations/Flows/Nodes/NodeAIChatBot.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeAIChatBot.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeApi.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeApi.js +183 -0
- package/dist/Conversations/Flows/Nodes/NodeBotIA.d.ts +15 -0
- package/dist/Conversations/Flows/Nodes/NodeBotIA.js +6 -0
- package/dist/Conversations/Flows/Nodes/NodeChatBotIA.d.ts +15 -0
- package/dist/Conversations/Flows/Nodes/NodeChatBotIA.js +6 -0
- package/dist/Conversations/Flows/Nodes/NodeConditional.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConditional.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeContactSearch.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeContactSearch.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeContactUpdate.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeContactUpdate.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeFillForm.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeFillForm.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeFillTicket.d.ts +1 -0
- package/dist/Conversations/Flows/Nodes/NodeFillTicket.js +9 -0
- package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.d.ts +20 -0
- package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.js +2 -0
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.d.ts +12 -0
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.js +6 -0
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.d.ts +15 -0
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.js +2 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgReply.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgReply.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgSend.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgSend.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgText.d.ts +1 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgText.js +27 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeRedirect.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeRedirect.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeSendEmail.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeSendEmail.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeSqlQuery.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeSqlQuery.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeStart.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeStart.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeTimer.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeTimer.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeToolCalculator.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolCalculator.js +37 -0
- package/dist/Conversations/Flows/Nodes/NodeToolContacts.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolContacts.js +59 -0
- package/dist/Conversations/Flows/Nodes/NodeToolFunction.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolFunction.js +45 -0
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.js +87 -0
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.d.ts +1 -0
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.js +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.js +52 -0
- package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.js +59 -0
- package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.js +45 -0
- package/dist/Conversations/Flows/Nodes/NodeToolShoppingCart.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolShoppingCart.js +81 -0
- package/dist/Conversations/Flows/Nodes/index.d.ts +24 -0
- package/dist/Conversations/Flows/Nodes/index.js +40 -0
- package/dist/Conversations/Flows/Workflows/Workflow.d.ts +336 -0
- package/dist/Conversations/Flows/Workflows/Workflow.js +98 -0
- package/dist/Conversations/Flows/Workflows/index.d.ts +1 -0
- package/dist/Conversations/Flows/Workflows/index.js +17 -0
- package/dist/Conversations/Flows/index.d.ts +4 -0
- package/dist/Conversations/Flows/index.js +20 -0
- package/dist/Conversations/Groups/Group.d.ts +17 -0
- package/dist/Conversations/Groups/Group.js +2 -0
- package/dist/Conversations/InboxCounters.d.ts +18 -0
- package/dist/Conversations/InboxCounters.js +2 -0
- package/dist/Conversations/InboxQueries.d.ts +133 -0
- package/dist/Conversations/InboxQueries.js +2 -0
- package/dist/Conversations/Label.d.ts +10 -0
- package/dist/Conversations/Label.js +2 -0
- package/dist/Conversations/Outbox.d.ts +23 -0
- package/dist/Conversations/Outbox.js +2 -0
- package/dist/Conversations/Queue.d.ts +103 -0
- package/dist/Conversations/Queue.js +2 -0
- package/dist/Conversations/QuickResponse.d.ts +34 -0
- package/dist/Conversations/QuickResponse.js +2 -0
- package/dist/Conversations/Routing.d.ts +159 -0
- package/dist/Conversations/Routing.js +2 -0
- package/dist/Conversations/Sla.d.ts +236 -0
- package/dist/Conversations/Sla.js +2 -0
- package/dist/Conversations/SocialWalls.d.ts +88 -0
- package/dist/Conversations/SocialWalls.js +2 -0
- package/dist/Conversations/Survey.d.ts +19 -0
- package/dist/Conversations/Survey.js +9 -0
- package/dist/Conversations/Transfer.d.ts +74 -0
- package/dist/Conversations/Transfer.js +2 -0
- package/dist/Conversations/WebHook.d.ts +22 -0
- package/dist/Conversations/WebHook.js +2 -0
- package/dist/Conversations/index.d.ts +26 -0
- package/dist/Conversations/index.js +65 -0
- package/dist/Docs/Document.d.ts +58 -0
- package/dist/Docs/Document.js +29 -0
- package/dist/Docs/Store.d.ts +37 -0
- package/dist/Docs/Store.js +17 -0
- package/dist/Docs/index.d.ts +2 -0
- package/dist/Docs/index.js +18 -0
- package/dist/Events/DomainEventTypes.d.ts +51 -0
- package/dist/Events/DomainEventTypes.js +49 -0
- package/dist/Events/index.d.ts +1 -0
- package/dist/Events/index.js +17 -0
- package/dist/Forms/API.d.ts +53 -0
- package/dist/Forms/API.js +2 -0
- package/dist/Forms/SubmittedForm.d.ts +56 -0
- package/dist/Forms/SubmittedForm.js +9 -0
- package/dist/Forms/index.d.ts +2 -0
- package/dist/Forms/index.js +18 -0
- package/dist/Marketing/Campaign.d.ts +115 -0
- package/dist/Marketing/Campaign.js +29 -0
- package/dist/Marketing/CampaignContract.d.ts +3 -0
- package/dist/Marketing/CampaignContract.js +54 -0
- package/dist/Marketing/Dashboard.d.ts +48 -0
- package/dist/Marketing/Dashboard.js +2 -0
- package/dist/Marketing/Options.d.ts +12 -0
- package/dist/Marketing/Options.js +9 -0
- package/dist/Marketing/Template.d.ts +19 -0
- package/dist/Marketing/Template.js +8 -0
- package/dist/Marketing/index.d.ts +5 -0
- package/dist/Marketing/index.js +21 -0
- package/dist/Presence/AgentPause.d.ts +24 -0
- package/dist/Presence/AgentPause.js +19 -0
- package/dist/Presence/ChannelRoutingState.d.ts +17 -0
- package/dist/Presence/ChannelRoutingState.js +9 -0
- package/dist/Presence/QueueParticipation.d.ts +17 -0
- package/dist/Presence/QueueParticipation.js +2 -0
- package/dist/Presence/QueueRoutingState.d.ts +27 -0
- package/dist/Presence/QueueRoutingState.js +9 -0
- package/dist/Presence/index.d.ts +3 -0
- package/dist/Presence/index.js +19 -0
- package/dist/PublicAPI/apiKey.d.ts +101 -0
- package/dist/PublicAPI/apiKey.js +29 -0
- package/dist/Reports/ScheduledReport.d.ts +205 -0
- package/dist/Reports/ScheduledReport.js +57 -0
- package/dist/Reports/aiReport.d.ts +20 -0
- package/dist/Reports/aiReport.js +2 -0
- package/dist/Reports/apiResult.d.ts +5 -0
- package/dist/Reports/apiResult.js +2 -0
- package/dist/Reports/index.d.ts +3 -0
- package/dist/Reports/index.js +19 -0
- package/dist/Sales/Api.d.ts +40 -0
- package/dist/Sales/Api.js +2 -0
- package/dist/Sales/Common.d.ts +72 -0
- package/dist/Sales/Common.js +31 -0
- package/dist/Sales/Dashboard.d.ts +25 -0
- package/dist/Sales/Dashboard.js +2 -0
- package/dist/Sales/Lead.d.ts +99 -0
- package/dist/Sales/Lead.js +8 -0
- package/dist/Sales/index.d.ts +4 -0
- package/dist/Sales/index.js +20 -0
- package/dist/Security/Security.d.ts +5 -0
- package/dist/Security/Security.js +2 -0
- package/dist/Security/index.d.ts +1 -0
- package/dist/Security/index.js +17 -0
- package/dist/Shop/Cart/cart.d.ts +19 -0
- package/dist/Shop/Cart/cart.js +2 -0
- package/dist/Shop/index.d.ts +1 -0
- package/dist/Shop/index.js +17 -0
- package/dist/Spaces/Dashboard.d.ts +4 -0
- package/dist/Spaces/Dashboard.js +2 -0
- package/dist/Spaces/index.d.ts +2 -0
- package/dist/Spaces/index.js +18 -0
- package/dist/Spaces/spaces.d.ts +104 -0
- package/dist/Spaces/spaces.js +85 -0
- package/dist/Tickets/AI.d.ts +448 -0
- package/dist/Tickets/AI.js +113 -0
- package/dist/Tickets/AccessLevel.d.ts +5 -0
- package/dist/Tickets/AccessLevel.js +9 -0
- package/dist/Tickets/AdvancedApi.d.ts +641 -0
- package/dist/Tickets/AdvancedApi.js +135 -0
- package/dist/Tickets/Api.d.ts +79 -0
- package/dist/Tickets/Api.js +8 -0
- package/dist/Tickets/Approval.d.ts +155 -0
- package/dist/Tickets/Approval.js +30 -0
- package/dist/Tickets/Automation.d.ts +285 -0
- package/dist/Tickets/Automation.js +78 -0
- package/dist/Tickets/Category.d.ts +89 -0
- package/dist/Tickets/Category.js +2 -0
- package/dist/Tickets/Common.d.ts +172 -0
- package/dist/Tickets/Common.js +38 -0
- package/dist/Tickets/Conversation.d.ts +134 -0
- package/dist/Tickets/Conversation.js +43 -0
- package/dist/Tickets/CustomerNotification.d.ts +192 -0
- package/dist/Tickets/CustomerNotification.js +54 -0
- package/dist/Tickets/Dashboard.d.ts +710 -0
- package/dist/Tickets/Dashboard.js +284 -0
- package/dist/Tickets/Fields.d.ts +235 -0
- package/dist/Tickets/Fields.js +44 -0
- package/dist/Tickets/Group.d.ts +74 -0
- package/dist/Tickets/Group.js +2 -0
- package/dist/Tickets/Layouts.d.ts +65 -0
- package/dist/Tickets/Layouts.js +22 -0
- package/dist/Tickets/Notes.d.ts +30 -0
- package/dist/Tickets/Notes.js +13 -0
- package/dist/Tickets/QuickResponse.d.ts +64 -0
- package/dist/Tickets/QuickResponse.js +41 -0
- package/dist/Tickets/Routing.d.ts +459 -0
- package/dist/Tickets/Routing.js +116 -0
- package/dist/Tickets/Satisfaction.d.ts +31 -0
- package/dist/Tickets/Satisfaction.js +9 -0
- package/dist/Tickets/Security.d.ts +573 -0
- package/dist/Tickets/Security.js +117 -0
- package/dist/Tickets/SelfService.d.ts +670 -0
- package/dist/Tickets/SelfService.js +62 -0
- package/dist/Tickets/Sla.d.ts +430 -0
- package/dist/Tickets/Sla.js +75 -0
- package/dist/Tickets/Task.d.ts +133 -0
- package/dist/Tickets/Task.js +17 -0
- package/dist/Tickets/Ticket.d.ts +167 -0
- package/dist/Tickets/Ticket.js +2 -0
- package/dist/Tickets/Views.d.ts +77 -0
- package/dist/Tickets/Views.js +23 -0
- package/dist/Tickets/Workflow.d.ts +183 -0
- package/dist/Tickets/Workflow.js +48 -0
- package/dist/Tickets/index.d.ts +24 -0
- package/dist/Tickets/index.js +40 -0
- package/dist/Users/Signature.d.ts +81 -0
- package/dist/Users/Signature.js +2 -0
- package/dist/Users/UserActivitySummary.d.ts +5 -0
- package/dist/Users/UserActivitySummary.js +2 -0
- package/dist/Users/UserProfile.d.ts +121 -0
- package/dist/Users/UserProfile.js +5 -0
- package/dist/Users/UserTrii.d.ts +112 -0
- package/dist/Users/UserTrii.js +17 -0
- package/dist/Users/UserType.d.ts +10 -0
- package/dist/Users/UserType.js +13 -0
- package/dist/Users/index.d.ts +5 -0
- package/dist/Users/index.js +21 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +61 -0
- package/package.json +12 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { AutomationJsonObject, AutomationJsonSchema, AutomationSourceApplication } from '../Common';
|
|
2
|
+
/** Forma en que una instancia del trigger puede iniciar una ejecución. */
|
|
3
|
+
export declare enum AutomationTriggerActivationKind {
|
|
4
|
+
MANUAL = "manual",
|
|
5
|
+
DOMAIN_EVENT = "domainEvent",
|
|
6
|
+
WEBHOOK = "webhook",
|
|
7
|
+
SCHEDULE = "schedule"
|
|
8
|
+
}
|
|
9
|
+
/** Entidad principal que queda asociada a la ejecución iniciada. */
|
|
10
|
+
export declare enum AutomationTriggerSubjectKind {
|
|
11
|
+
NONE = "none",
|
|
12
|
+
CONTACT = "contact",
|
|
13
|
+
BUSINESS = "business",
|
|
14
|
+
CONVERSATION = "conversation",
|
|
15
|
+
TICKET = "ticket",
|
|
16
|
+
FORM_SUBMISSION = "formSubmission",
|
|
17
|
+
WEBHOOK = "webhook",
|
|
18
|
+
SCHEDULE = "schedule"
|
|
19
|
+
}
|
|
20
|
+
/** Política histórica de reingreso para la misma identidad CRM. */
|
|
21
|
+
export declare enum AutomationTriggerReentryMode {
|
|
22
|
+
/** Cada ocurrencia elegible puede crear una ejecución. */
|
|
23
|
+
EVERY_OCCURRENCE = "everyOccurrence",
|
|
24
|
+
/** La identidad primaria del evento sólo ingresa una vez. */
|
|
25
|
+
ONCE_PER_SUBJECT = "oncePerSubject",
|
|
26
|
+
/** El contacto sólo ingresa una vez en la automatización. */
|
|
27
|
+
ONCE_PER_CONTACT = "oncePerContact",
|
|
28
|
+
/** La dirección/canal del contacto sólo ingresa una vez. */
|
|
29
|
+
ONCE_PER_CONTACT_ADDRESS = "oncePerContactAddress"
|
|
30
|
+
}
|
|
31
|
+
/** Alcance histórico utilizado al aplicar una política de reingreso. */
|
|
32
|
+
export declare enum AutomationTriggerHistoryScope {
|
|
33
|
+
/** Publicar una versión nueva no reinicia el historial. */
|
|
34
|
+
FLOW = "flow",
|
|
35
|
+
/** Cada versión publicada mantiene su propio historial. */
|
|
36
|
+
FLOW_VERSION = "flowVersion"
|
|
37
|
+
}
|
|
38
|
+
/** Control de ejecuciones simultáneas para una misma identidad. */
|
|
39
|
+
export declare enum AutomationTriggerConcurrencyMode {
|
|
40
|
+
ALLOW = "allow",
|
|
41
|
+
SINGLE_ACTIVE_PER_SUBJECT = "singleActivePerSubject",
|
|
42
|
+
SINGLE_ACTIVE_PER_CONTACT = "singleActivePerContact",
|
|
43
|
+
SINGLE_ACTIVE_PER_CONTACT_ADDRESS = "singleActivePerContactAddress"
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Evento seleccionable dentro de un trigger de módulo.
|
|
47
|
+
*
|
|
48
|
+
* `code` es la opción estable usada por el diseñador. `eventType` es el
|
|
49
|
+
* identificador contractual resuelto por backend y nunca debe solicitarse
|
|
50
|
+
* como texto libre al usuario.
|
|
51
|
+
*/
|
|
52
|
+
export interface AutomationTriggerEventDefinition {
|
|
53
|
+
code: string;
|
|
54
|
+
name: string;
|
|
55
|
+
description?: string | null;
|
|
56
|
+
sourceApplication: AutomationSourceApplication;
|
|
57
|
+
eventType: string;
|
|
58
|
+
eventVersion: number;
|
|
59
|
+
subjectKind: AutomationTriggerSubjectKind;
|
|
60
|
+
configurationSchema?: AutomationJsonSchema | null;
|
|
61
|
+
supportsEntryFilters: boolean;
|
|
62
|
+
supportedReentryModes: AutomationTriggerReentryMode[];
|
|
63
|
+
defaultReentryMode: AutomationTriggerReentryMode;
|
|
64
|
+
supportedConcurrencyModes: AutomationTriggerConcurrencyMode[];
|
|
65
|
+
defaultConcurrencyMode: AutomationTriggerConcurrencyMode;
|
|
66
|
+
}
|
|
67
|
+
/** Metadata de trigger publicada junto con una definición de nodo. */
|
|
68
|
+
export interface AutomationTriggerDefinition {
|
|
69
|
+
activationKind: AutomationTriggerActivationKind;
|
|
70
|
+
defaultEventCode: string;
|
|
71
|
+
events: AutomationTriggerEventDefinition[];
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Selección normalizada persistida en el Entry Point.
|
|
75
|
+
* La configuración se valida contra el schema del evento seleccionado.
|
|
76
|
+
*/
|
|
77
|
+
export interface AutomationTriggerBinding {
|
|
78
|
+
definitionCode: string;
|
|
79
|
+
definitionVersion: number;
|
|
80
|
+
eventCode: string;
|
|
81
|
+
activationKind: AutomationTriggerActivationKind;
|
|
82
|
+
configuration: AutomationJsonObject;
|
|
83
|
+
}
|
|
84
|
+
/** Política aplicada antes de crear una ejecución. */
|
|
85
|
+
export interface AutomationTriggerAdmissionPolicy {
|
|
86
|
+
reentryMode: AutomationTriggerReentryMode;
|
|
87
|
+
historyScope: AutomationTriggerHistoryScope;
|
|
88
|
+
concurrencyMode: AutomationTriggerConcurrencyMode;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Referencia estable a una propiedad estándar o personalizada.
|
|
92
|
+
* `nameKey` es la identidad; nombre y tipo son snapshots informativos.
|
|
93
|
+
*/
|
|
94
|
+
export interface AutomationTriggerPropertyReference {
|
|
95
|
+
resourceType: string;
|
|
96
|
+
nameKey: string;
|
|
97
|
+
valueType: string;
|
|
98
|
+
displayNameSnapshot?: string | null;
|
|
99
|
+
}
|
|
100
|
+
export declare enum AutomationWebhookAuthenticationMode {
|
|
101
|
+
NONE = "none",
|
|
102
|
+
SHARED_SECRET = "sharedSecret",
|
|
103
|
+
HMAC_SHA256 = "hmacSha256"
|
|
104
|
+
}
|
|
105
|
+
export declare enum AutomationScheduleKind {
|
|
106
|
+
ONCE = "once",
|
|
107
|
+
INTERVAL = "interval",
|
|
108
|
+
DAILY = "daily",
|
|
109
|
+
WEEKLY = "weekly",
|
|
110
|
+
MONTHLY = "monthly",
|
|
111
|
+
CRON = "cron"
|
|
112
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AutomationScheduleKind = exports.AutomationWebhookAuthenticationMode = exports.AutomationTriggerConcurrencyMode = exports.AutomationTriggerHistoryScope = exports.AutomationTriggerReentryMode = exports.AutomationTriggerSubjectKind = exports.AutomationTriggerActivationKind = void 0;
|
|
4
|
+
/** Forma en que una instancia del trigger puede iniciar una ejecución. */
|
|
5
|
+
var AutomationTriggerActivationKind;
|
|
6
|
+
(function (AutomationTriggerActivationKind) {
|
|
7
|
+
AutomationTriggerActivationKind["MANUAL"] = "manual";
|
|
8
|
+
AutomationTriggerActivationKind["DOMAIN_EVENT"] = "domainEvent";
|
|
9
|
+
AutomationTriggerActivationKind["WEBHOOK"] = "webhook";
|
|
10
|
+
AutomationTriggerActivationKind["SCHEDULE"] = "schedule";
|
|
11
|
+
})(AutomationTriggerActivationKind || (exports.AutomationTriggerActivationKind = AutomationTriggerActivationKind = {}));
|
|
12
|
+
/** Entidad principal que queda asociada a la ejecución iniciada. */
|
|
13
|
+
var AutomationTriggerSubjectKind;
|
|
14
|
+
(function (AutomationTriggerSubjectKind) {
|
|
15
|
+
AutomationTriggerSubjectKind["NONE"] = "none";
|
|
16
|
+
AutomationTriggerSubjectKind["CONTACT"] = "contact";
|
|
17
|
+
AutomationTriggerSubjectKind["BUSINESS"] = "business";
|
|
18
|
+
AutomationTriggerSubjectKind["CONVERSATION"] = "conversation";
|
|
19
|
+
AutomationTriggerSubjectKind["TICKET"] = "ticket";
|
|
20
|
+
AutomationTriggerSubjectKind["FORM_SUBMISSION"] = "formSubmission";
|
|
21
|
+
AutomationTriggerSubjectKind["WEBHOOK"] = "webhook";
|
|
22
|
+
AutomationTriggerSubjectKind["SCHEDULE"] = "schedule";
|
|
23
|
+
})(AutomationTriggerSubjectKind || (exports.AutomationTriggerSubjectKind = AutomationTriggerSubjectKind = {}));
|
|
24
|
+
/** Política histórica de reingreso para la misma identidad CRM. */
|
|
25
|
+
var AutomationTriggerReentryMode;
|
|
26
|
+
(function (AutomationTriggerReentryMode) {
|
|
27
|
+
/** Cada ocurrencia elegible puede crear una ejecución. */
|
|
28
|
+
AutomationTriggerReentryMode["EVERY_OCCURRENCE"] = "everyOccurrence";
|
|
29
|
+
/** La identidad primaria del evento sólo ingresa una vez. */
|
|
30
|
+
AutomationTriggerReentryMode["ONCE_PER_SUBJECT"] = "oncePerSubject";
|
|
31
|
+
/** El contacto sólo ingresa una vez en la automatización. */
|
|
32
|
+
AutomationTriggerReentryMode["ONCE_PER_CONTACT"] = "oncePerContact";
|
|
33
|
+
/** La dirección/canal del contacto sólo ingresa una vez. */
|
|
34
|
+
AutomationTriggerReentryMode["ONCE_PER_CONTACT_ADDRESS"] = "oncePerContactAddress";
|
|
35
|
+
})(AutomationTriggerReentryMode || (exports.AutomationTriggerReentryMode = AutomationTriggerReentryMode = {}));
|
|
36
|
+
/** Alcance histórico utilizado al aplicar una política de reingreso. */
|
|
37
|
+
var AutomationTriggerHistoryScope;
|
|
38
|
+
(function (AutomationTriggerHistoryScope) {
|
|
39
|
+
/** Publicar una versión nueva no reinicia el historial. */
|
|
40
|
+
AutomationTriggerHistoryScope["FLOW"] = "flow";
|
|
41
|
+
/** Cada versión publicada mantiene su propio historial. */
|
|
42
|
+
AutomationTriggerHistoryScope["FLOW_VERSION"] = "flowVersion";
|
|
43
|
+
})(AutomationTriggerHistoryScope || (exports.AutomationTriggerHistoryScope = AutomationTriggerHistoryScope = {}));
|
|
44
|
+
/** Control de ejecuciones simultáneas para una misma identidad. */
|
|
45
|
+
var AutomationTriggerConcurrencyMode;
|
|
46
|
+
(function (AutomationTriggerConcurrencyMode) {
|
|
47
|
+
AutomationTriggerConcurrencyMode["ALLOW"] = "allow";
|
|
48
|
+
AutomationTriggerConcurrencyMode["SINGLE_ACTIVE_PER_SUBJECT"] = "singleActivePerSubject";
|
|
49
|
+
AutomationTriggerConcurrencyMode["SINGLE_ACTIVE_PER_CONTACT"] = "singleActivePerContact";
|
|
50
|
+
AutomationTriggerConcurrencyMode["SINGLE_ACTIVE_PER_CONTACT_ADDRESS"] = "singleActivePerContactAddress";
|
|
51
|
+
})(AutomationTriggerConcurrencyMode || (exports.AutomationTriggerConcurrencyMode = AutomationTriggerConcurrencyMode = {}));
|
|
52
|
+
var AutomationWebhookAuthenticationMode;
|
|
53
|
+
(function (AutomationWebhookAuthenticationMode) {
|
|
54
|
+
AutomationWebhookAuthenticationMode["NONE"] = "none";
|
|
55
|
+
AutomationWebhookAuthenticationMode["SHARED_SECRET"] = "sharedSecret";
|
|
56
|
+
AutomationWebhookAuthenticationMode["HMAC_SHA256"] = "hmacSha256";
|
|
57
|
+
})(AutomationWebhookAuthenticationMode || (exports.AutomationWebhookAuthenticationMode = AutomationWebhookAuthenticationMode = {}));
|
|
58
|
+
var AutomationScheduleKind;
|
|
59
|
+
(function (AutomationScheduleKind) {
|
|
60
|
+
AutomationScheduleKind["ONCE"] = "once";
|
|
61
|
+
AutomationScheduleKind["INTERVAL"] = "interval";
|
|
62
|
+
AutomationScheduleKind["DAILY"] = "daily";
|
|
63
|
+
AutomationScheduleKind["WEEKLY"] = "weekly";
|
|
64
|
+
AutomationScheduleKind["MONTHLY"] = "monthly";
|
|
65
|
+
AutomationScheduleKind["CRON"] = "cron";
|
|
66
|
+
})(AutomationScheduleKind || (exports.AutomationScheduleKind = AutomationScheduleKind = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Trigger';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Trigger"), exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Common"), exports);
|
|
18
|
+
__exportStar(require("./Flows"), exports);
|
|
19
|
+
__exportStar(require("./Capabilities"), exports);
|
|
20
|
+
__exportStar(require("./Executions"), exports);
|
|
21
|
+
__exportStar(require("./Nodes"), exports);
|
|
22
|
+
__exportStar(require("./Events"), exports);
|
|
23
|
+
__exportStar(require("./Triggers"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface ICalendar {
|
|
2
|
+
id: string;
|
|
3
|
+
spaceId: string;
|
|
4
|
+
userId: string;
|
|
5
|
+
title: string;
|
|
6
|
+
color: string;
|
|
7
|
+
googleCalendar?: GoogleCalendar;
|
|
8
|
+
createdAt: Date;
|
|
9
|
+
updatedAt?: Date;
|
|
10
|
+
deletedAt?: Date;
|
|
11
|
+
/** List of user IDs (userId) with whom the calendar is shared */
|
|
12
|
+
sharedWith?: string[];
|
|
13
|
+
}
|
|
14
|
+
export interface GoogleCalendar {
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
account: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { UserInfo } from "../Users";
|
|
2
|
+
export type CalendarItemKind = "EVENT" | "TASK";
|
|
3
|
+
export type CalendarVisibility = "PRIVATE" | "PUBLIC";
|
|
4
|
+
export type BusyStatus = "BUSY" | "FREE";
|
|
5
|
+
export declare enum relatedType {
|
|
6
|
+
CONTACT = 1,
|
|
7
|
+
DEBT = 2,
|
|
8
|
+
TICKET = 3
|
|
9
|
+
}
|
|
10
|
+
export interface IRelatedRef {
|
|
11
|
+
type: relatedType;
|
|
12
|
+
id: string;
|
|
13
|
+
}
|
|
14
|
+
export declare enum EventNotificationPeriod {
|
|
15
|
+
MINUTE = 1,
|
|
16
|
+
HOUR = 2,
|
|
17
|
+
DAY = 3,
|
|
18
|
+
WEEK = 4
|
|
19
|
+
}
|
|
20
|
+
export interface IReminder {
|
|
21
|
+
id: string;
|
|
22
|
+
/** Absolute reminder time (optional if using offset). */
|
|
23
|
+
remindAt?: Date;
|
|
24
|
+
/**
|
|
25
|
+
* Offset relative to:
|
|
26
|
+
* - EVENT: occurrence startAt
|
|
27
|
+
* - TASK: dueAt
|
|
28
|
+
*/
|
|
29
|
+
offsetValue?: number;
|
|
30
|
+
offsetUnit?: EventNotificationPeriod;
|
|
31
|
+
sendToContact: boolean;
|
|
32
|
+
}
|
|
33
|
+
export interface ISyncRef {
|
|
34
|
+
provider: "NONE" | "GOOGLE";
|
|
35
|
+
/** External calendar id (e.g., Google calendarId) */
|
|
36
|
+
externalCalendarId?: string;
|
|
37
|
+
/** External item id (e.g., Google eventId / taskId) */
|
|
38
|
+
externalItemId?: string;
|
|
39
|
+
/** iCal UID (useful for correlation with Google/iCal) */
|
|
40
|
+
iCalUID?: string;
|
|
41
|
+
/** Provider ETag / version for concurrency */
|
|
42
|
+
etag?: string;
|
|
43
|
+
lastSyncedAt?: Date;
|
|
44
|
+
syncState?: "PENDING" | "SYNCED" | "ERROR";
|
|
45
|
+
syncError?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface IAuditFields {
|
|
48
|
+
createdAt: Date;
|
|
49
|
+
createdBy: UserInfo;
|
|
50
|
+
updatedAt?: Date;
|
|
51
|
+
updatedBy?: UserInfo;
|
|
52
|
+
deletedAt?: Date;
|
|
53
|
+
deletedBy?: UserInfo;
|
|
54
|
+
}
|
|
55
|
+
export interface ICalendarItemType {
|
|
56
|
+
id: string;
|
|
57
|
+
name: string;
|
|
58
|
+
color: string;
|
|
59
|
+
icon: string;
|
|
60
|
+
/** Indicates whether this type applies to events or tasks. */
|
|
61
|
+
kind: CalendarItemKind;
|
|
62
|
+
}
|
|
63
|
+
export interface ICalendarItemBase extends IAuditFields {
|
|
64
|
+
id: string;
|
|
65
|
+
spaceId: string;
|
|
66
|
+
kind: CalendarItemKind;
|
|
67
|
+
visibility: CalendarVisibility;
|
|
68
|
+
title: string;
|
|
69
|
+
details: string;
|
|
70
|
+
location?: string;
|
|
71
|
+
color?: string;
|
|
72
|
+
type?: ICalendarItemType;
|
|
73
|
+
related?: IRelatedRef[];
|
|
74
|
+
sharedWith?: UserInfo[];
|
|
75
|
+
reminders?: IReminder[];
|
|
76
|
+
sync?: ISyncRef;
|
|
77
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EventNotificationPeriod = exports.relatedType = void 0;
|
|
4
|
+
var relatedType;
|
|
5
|
+
(function (relatedType) {
|
|
6
|
+
relatedType[relatedType["CONTACT"] = 1] = "CONTACT";
|
|
7
|
+
relatedType[relatedType["DEBT"] = 2] = "DEBT";
|
|
8
|
+
relatedType[relatedType["TICKET"] = 3] = "TICKET";
|
|
9
|
+
})(relatedType || (exports.relatedType = relatedType = {}));
|
|
10
|
+
var EventNotificationPeriod;
|
|
11
|
+
(function (EventNotificationPeriod) {
|
|
12
|
+
EventNotificationPeriod[EventNotificationPeriod["MINUTE"] = 1] = "MINUTE";
|
|
13
|
+
EventNotificationPeriod[EventNotificationPeriod["HOUR"] = 2] = "HOUR";
|
|
14
|
+
EventNotificationPeriod[EventNotificationPeriod["DAY"] = 3] = "DAY";
|
|
15
|
+
EventNotificationPeriod[EventNotificationPeriod["WEEK"] = 4] = "WEEK";
|
|
16
|
+
})(EventNotificationPeriod || (exports.EventNotificationPeriod = EventNotificationPeriod = {}));
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { IContactInfo } from "../Contacts/contacts";
|
|
2
|
+
import { UserInfo } from "../Users/UserTrii";
|
|
3
|
+
export interface IEventType {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
color: string;
|
|
7
|
+
icon: string;
|
|
8
|
+
}
|
|
9
|
+
export interface IEvent {
|
|
10
|
+
id: string;
|
|
11
|
+
spaceId: string;
|
|
12
|
+
isPrivate: boolean;
|
|
13
|
+
relatedContact: IContactInfo;
|
|
14
|
+
relatedTicket: any;
|
|
15
|
+
relatedDebt: any;
|
|
16
|
+
startAt: Date;
|
|
17
|
+
endAt: Date;
|
|
18
|
+
/**Event duration expressed in minutes */
|
|
19
|
+
duration: number;
|
|
20
|
+
allDay: boolean;
|
|
21
|
+
title: string;
|
|
22
|
+
details: string;
|
|
23
|
+
location: string;
|
|
24
|
+
color?: string;
|
|
25
|
+
eventType?: IEventType;
|
|
26
|
+
calendarId?: string;
|
|
27
|
+
rule?: string;
|
|
28
|
+
parentId?: string;
|
|
29
|
+
originalOccurrenceDate?: Date;
|
|
30
|
+
notifications: IEventNotification[];
|
|
31
|
+
sharedWith: UserInfo[];
|
|
32
|
+
createdAt: Date;
|
|
33
|
+
createdBy: UserInfo;
|
|
34
|
+
finalized: boolean;
|
|
35
|
+
finalizedAt?: Date;
|
|
36
|
+
finalizedBy?: UserInfo;
|
|
37
|
+
deletedAt?: Date;
|
|
38
|
+
deletedBy?: UserInfo;
|
|
39
|
+
}
|
|
40
|
+
export interface IRelatedInfo {
|
|
41
|
+
type: relatedType;
|
|
42
|
+
id: string;
|
|
43
|
+
contact: IContactInfo;
|
|
44
|
+
ticket: any;
|
|
45
|
+
debt: any;
|
|
46
|
+
}
|
|
47
|
+
export declare enum relatedType {
|
|
48
|
+
CONTACT = 1,
|
|
49
|
+
DEBT = 2,
|
|
50
|
+
TICKET = 3
|
|
51
|
+
}
|
|
52
|
+
export interface IEventNotification {
|
|
53
|
+
id: string;
|
|
54
|
+
notificacionDateTime: Date;
|
|
55
|
+
timeValue: number;
|
|
56
|
+
timePeriod: EventNotificationPeriod;
|
|
57
|
+
sendToContact: boolean;
|
|
58
|
+
}
|
|
59
|
+
export declare enum EventNotificationPeriod {
|
|
60
|
+
MINUTE = 1,
|
|
61
|
+
HOUR = 2,
|
|
62
|
+
DAY = 3,
|
|
63
|
+
WEEK = 4
|
|
64
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EventNotificationPeriod = exports.relatedType = void 0;
|
|
4
|
+
var relatedType;
|
|
5
|
+
(function (relatedType) {
|
|
6
|
+
relatedType[relatedType["CONTACT"] = 1] = "CONTACT";
|
|
7
|
+
relatedType[relatedType["DEBT"] = 2] = "DEBT";
|
|
8
|
+
relatedType[relatedType["TICKET"] = 3] = "TICKET";
|
|
9
|
+
})(relatedType || (exports.relatedType = relatedType = {}));
|
|
10
|
+
var EventNotificationPeriod;
|
|
11
|
+
(function (EventNotificationPeriod) {
|
|
12
|
+
EventNotificationPeriod[EventNotificationPeriod["MINUTE"] = 1] = "MINUTE";
|
|
13
|
+
EventNotificationPeriod[EventNotificationPeriod["HOUR"] = 2] = "HOUR";
|
|
14
|
+
EventNotificationPeriod[EventNotificationPeriod["DAY"] = 3] = "DAY";
|
|
15
|
+
EventNotificationPeriod[EventNotificationPeriod["WEEK"] = 4] = "WEEK";
|
|
16
|
+
})(EventNotificationPeriod || (exports.EventNotificationPeriod = EventNotificationPeriod = {}));
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { BusyStatus, ICalendarItemBase } from "./Common";
|
|
2
|
+
export type EventStatus = "CONFIRMED" | "TENTATIVE" | "CANCELLED";
|
|
3
|
+
/**
|
|
4
|
+
* - SINGLE: a normal non-recurring event
|
|
5
|
+
* - SERIES_MASTER: the recurring master
|
|
6
|
+
* - SERIES_OVERRIDE: an exception/override for one occurrence
|
|
7
|
+
*/
|
|
8
|
+
export type EventDocKind = "SINGLE" | "SERIES_MASTER" | "SERIES_OVERRIDE";
|
|
9
|
+
export interface IRecurrence {
|
|
10
|
+
/**
|
|
11
|
+
* iCal RRULE compatible with Google:
|
|
12
|
+
* e.g. "FREQ=WEEKLY;BYDAY=MO,WE;INTERVAL=1"
|
|
13
|
+
*/
|
|
14
|
+
rrule: string;
|
|
15
|
+
/** Optional expansion limit (alternative to COUNT in RRULE). */
|
|
16
|
+
until?: Date;
|
|
17
|
+
/** Excluded occurrences (EXDATE). */
|
|
18
|
+
exDates?: Date[];
|
|
19
|
+
/** Additional occurrences (RDATE). */
|
|
20
|
+
rDates?: Date[];
|
|
21
|
+
/** Event timezone (strongly recommended). */
|
|
22
|
+
timeZone: string;
|
|
23
|
+
}
|
|
24
|
+
export interface IRecurrenceOverride {
|
|
25
|
+
/** Link to master series. */
|
|
26
|
+
masterId: string;
|
|
27
|
+
/**
|
|
28
|
+
* Occurrence key: original start time of the occurrence as generated from the master.
|
|
29
|
+
* This aligns with how Google identifies instances via originalStartTime.
|
|
30
|
+
*/
|
|
31
|
+
originalStartAt: Date;
|
|
32
|
+
/** What happens to that occurrence. */
|
|
33
|
+
action: "MODIFY" | "CANCEL";
|
|
34
|
+
/** When MODIFY: patch fields to override. */
|
|
35
|
+
patch?: Partial<Pick<ICalendarEvent, "title" | "details" | "location" | "allDay" | "startAt" | "endAt" | "status" | "busyStatus">>;
|
|
36
|
+
}
|
|
37
|
+
export interface ICalendarEvent extends ICalendarItemBase {
|
|
38
|
+
kind: "EVENT";
|
|
39
|
+
/** Document kind for recurrence handling. */
|
|
40
|
+
docKind: EventDocKind;
|
|
41
|
+
allDay: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Use startAt/endAt for time range.
|
|
44
|
+
* If allDay=true, recommended convention:
|
|
45
|
+
* - startAt at 00:00 in recurrence.timeZone
|
|
46
|
+
* - endAt exclusive (next day 00:00) for single-day all-day
|
|
47
|
+
*/
|
|
48
|
+
startAt: Date;
|
|
49
|
+
endAt: Date;
|
|
50
|
+
/** Should it block availability? */
|
|
51
|
+
busyStatus?: BusyStatus;
|
|
52
|
+
status?: EventStatus;
|
|
53
|
+
/**
|
|
54
|
+
* Recurrence definition, only for docKind="SERIES_MASTER"
|
|
55
|
+
*/
|
|
56
|
+
recurrence?: IRecurrence;
|
|
57
|
+
/**
|
|
58
|
+
* Override definition, only for docKind="SERIES_OVERRIDE"
|
|
59
|
+
*/
|
|
60
|
+
override?: IRecurrenceOverride;
|
|
61
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Contacts } from "..";
|
|
2
|
+
export interface ITask {
|
|
3
|
+
id: string;
|
|
4
|
+
spaceId: string;
|
|
5
|
+
calendarId: string;
|
|
6
|
+
title: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
startAt?: Date;
|
|
9
|
+
isCompleted: boolean;
|
|
10
|
+
contactId: string;
|
|
11
|
+
relatedContact?: Contacts.IContactInfo;
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IContactInfo } from "../Contacts";
|
|
2
|
+
import { UserInfo } from "../Users";
|
|
3
|
+
import { ICalendarItemBase } from "./Common";
|
|
4
|
+
export type TaskStatus = "NEEDS_ACTION" | "IN_PROGRESS" | "COMPLETED" | "CANCELLED";
|
|
5
|
+
export type TaskPriority = 1 | 2 | 3 | 4;
|
|
6
|
+
export interface ICalendarTask extends ICalendarItemBase {
|
|
7
|
+
kind: "TASK";
|
|
8
|
+
/** Optional deadline */
|
|
9
|
+
dueAt?: Date;
|
|
10
|
+
/** If dueAt is date-only in UI, store 00:00 + hasTime=false */
|
|
11
|
+
hasTime?: boolean;
|
|
12
|
+
status: TaskStatus;
|
|
13
|
+
priority?: TaskPriority;
|
|
14
|
+
completedAt?: Date;
|
|
15
|
+
completedBy?: UserInfo;
|
|
16
|
+
/** Optional: support subtasks */
|
|
17
|
+
relatedContact: IContactInfo;
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Event"), exports);
|
|
18
|
+
__exportStar(require("./Calendar"), exports);
|
|
19
|
+
__exportStar(require("./Task"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface IAudio {
|
|
2
|
+
id: string;
|
|
3
|
+
spaceId: string;
|
|
4
|
+
type: audioType;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
url: string;
|
|
8
|
+
fileName: string;
|
|
9
|
+
mimeType: string;
|
|
10
|
+
duration: number;
|
|
11
|
+
createdAt?: Date | null;
|
|
12
|
+
createdBy?: string | null;
|
|
13
|
+
}
|
|
14
|
+
export declare enum audioType {
|
|
15
|
+
PROMPT = 0,
|
|
16
|
+
MUSIC = 1
|
|
17
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.audioType = void 0;
|
|
4
|
+
var audioType;
|
|
5
|
+
(function (audioType) {
|
|
6
|
+
audioType[audioType["PROMPT"] = 0] = "PROMPT";
|
|
7
|
+
audioType[audioType["MUSIC"] = 1] = "MUSIC";
|
|
8
|
+
})(audioType || (exports.audioType = audioType = {}));
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Channels } from "../Common/index";
|
|
2
|
+
export interface ICallLog {
|
|
3
|
+
id: string;
|
|
4
|
+
shardKey?: string;
|
|
5
|
+
spaceId: string;
|
|
6
|
+
userId: string;
|
|
7
|
+
extensionNumber: string;
|
|
8
|
+
remoteName: string;
|
|
9
|
+
remoteNumber: string;
|
|
10
|
+
contactId?: string;
|
|
11
|
+
origin: string;
|
|
12
|
+
channelInfo: Channels.IChannel;
|
|
13
|
+
recId: string;
|
|
14
|
+
recUrl: string;
|
|
15
|
+
type: CallType;
|
|
16
|
+
direction: CallDirection;
|
|
17
|
+
status: CallStatus;
|
|
18
|
+
cost: number;
|
|
19
|
+
uuid: string;
|
|
20
|
+
uuidParent: null;
|
|
21
|
+
callerIdNumber: string;
|
|
22
|
+
callerIdName: string;
|
|
23
|
+
destinationNumber: string;
|
|
24
|
+
startStamp: Date;
|
|
25
|
+
answerStamp: Date;
|
|
26
|
+
endStamp: Date;
|
|
27
|
+
billSec: number;
|
|
28
|
+
duration: number;
|
|
29
|
+
hangupCause: string;
|
|
30
|
+
accountcode: string;
|
|
31
|
+
readCodec: string;
|
|
32
|
+
writeCodec: string;
|
|
33
|
+
sipHangupDisposition: string;
|
|
34
|
+
ani: string;
|
|
35
|
+
sipCallId: string;
|
|
36
|
+
domainName: string;
|
|
37
|
+
source: string;
|
|
38
|
+
createdAt?: Date | null;
|
|
39
|
+
createdBy?: string | null;
|
|
40
|
+
}
|
|
41
|
+
export declare enum CallType {
|
|
42
|
+
NONE = 0,
|
|
43
|
+
EXTERNAL = 1,
|
|
44
|
+
INTERNAL = 2
|
|
45
|
+
}
|
|
46
|
+
export declare enum CallDirection {
|
|
47
|
+
INBOUND = 1,
|
|
48
|
+
OUTBOUND = 2
|
|
49
|
+
}
|
|
50
|
+
export declare enum CallStatus {
|
|
51
|
+
NONE = 0,
|
|
52
|
+
ANSWERED = 1,
|
|
53
|
+
NO_ANSWER = 2,
|
|
54
|
+
BUSY = 3,
|
|
55
|
+
FAILED = 4,
|
|
56
|
+
LOST = 5,
|
|
57
|
+
ABANDONED = 6,
|
|
58
|
+
OVERFLOWED = 7
|
|
59
|
+
}
|