@trii/types 2.10.675 → 2.10.676
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/Spaces/spaces.d.ts +2 -2
- package/dist/Tickets/Dashboard.d.ts +60 -0
- package/dist/index.d.ts +22 -22
- package/dist/index.js +58 -58
- package/dist/src/AI/Credential.d.ts +13 -0
- package/dist/src/AI/Documents/Document.d.ts +36 -0
- package/dist/src/AI/Documents/Document.js +15 -0
- package/dist/src/AI/Documents/Store.d.ts +25 -0
- package/dist/src/AI/Documents/Store.js +10 -0
- package/dist/{AI/MapPolygon.d.ts → src/AI/Map.d.ts} +1 -10
- package/dist/src/AI/Provider.d.ts +6 -0
- package/dist/src/AI/Threads/API.d.ts +55 -0
- package/dist/src/AI/Threads/Message.d.ts +61 -0
- package/dist/src/AI/Threads/Message.js +2 -0
- package/dist/src/AI/Threads/Thread.d.ts +22 -0
- package/dist/src/AI/Threads/Thread.js +2 -0
- package/dist/src/AI/Threads/index.d.ts +3 -0
- package/dist/src/AI/Threads/index.js +19 -0
- package/dist/src/AI/aiModuleStatus.d.ts +3 -0
- package/dist/src/AI/aiModuleStatus.js +2 -0
- package/dist/src/AI/index.d.ts +4 -0
- package/dist/src/AI/index.js +20 -0
- package/dist/src/Accounts/accounts.d.ts +88 -0
- package/dist/src/Accounts/accounts.js +24 -0
- package/dist/src/Accounts/device.d.ts +31 -0
- package/dist/src/Accounts/device.js +19 -0
- package/dist/src/Accounts/index.d.ts +2 -0
- package/dist/src/Accounts/index.js +18 -0
- package/dist/src/ApiResponses/index.d.ts +9 -0
- package/dist/src/ApiResponses/index.js +2 -0
- package/dist/src/AuditLogs/auditLog.d.ts +9 -0
- package/dist/src/AuditLogs/auditLog.js +2 -0
- package/dist/src/AuditLogs/auditLogType.d.ts +5 -0
- package/dist/src/AuditLogs/auditLogType.js +9 -0
- package/dist/src/AuditLogs/index.d.ts +2 -0
- package/dist/src/AuditLogs/index.js +18 -0
- package/dist/src/Calendar/Calendar.d.ts +18 -0
- package/dist/src/Calendar/Calendar.js +2 -0
- package/dist/src/Calendar/Common.d.ts +77 -0
- package/dist/src/Calendar/Common.js +16 -0
- package/dist/src/Calendar/Event.d.ts +64 -0
- package/dist/src/Calendar/Event.js +16 -0
- package/dist/src/Calendar/Events.d.ts +61 -0
- package/dist/src/Calendar/Events.js +5 -0
- package/dist/src/Calendar/Task.d.ts +12 -0
- package/dist/src/Calendar/Task.js +2 -0
- package/dist/src/Calendar/Tasks.d.ts +18 -0
- package/dist/src/Calendar/Tasks.js +5 -0
- package/dist/src/Calendar/index.d.ts +3 -0
- package/dist/src/Calendar/index.js +19 -0
- package/dist/src/Calls/Audio.d.ts +17 -0
- package/dist/src/Calls/Audio.js +8 -0
- package/dist/src/Calls/Call.d.ts +59 -0
- package/dist/src/Calls/Call.js +25 -0
- package/dist/src/Calls/Codecs.d.ts +5 -0
- package/dist/src/Calls/Codecs.js +21 -0
- package/dist/src/Calls/Extension.d.ts +24 -0
- package/dist/src/Calls/Extension.js +2 -0
- package/dist/src/Calls/Options.d.ts +5 -0
- package/dist/src/Calls/Options.js +2 -0
- package/dist/src/Calls/Queue.d.ts +52 -0
- package/dist/src/Calls/Queue.js +12 -0
- package/dist/src/Calls/RingGroup.d.ts +46 -0
- package/dist/src/Calls/RingGroup.js +27 -0
- package/dist/src/Calls/Transport.d.ts +6 -0
- package/dist/src/Calls/Transport.js +11 -0
- package/dist/src/Calls/Trunk.d.ts +31 -0
- package/dist/src/Calls/Trunk.js +2 -0
- package/dist/src/Calls/index.d.ts +6 -0
- package/dist/src/Calls/index.js +22 -0
- package/dist/src/Collections/Api.d.ts +41 -0
- package/dist/src/Collections/Api.js +2 -0
- package/dist/src/Collections/Commission.d.ts +52 -0
- package/dist/src/Collections/Commission.js +10 -0
- package/dist/src/Collections/Common.d.ts +78 -0
- package/dist/src/Collections/Common.js +39 -0
- package/dist/src/Collections/Dashboard.d.ts +27 -0
- package/dist/src/Collections/Dashboard.js +2 -0
- package/dist/src/Collections/Debt.d.ts +97 -0
- package/dist/src/Collections/Debt.js +12 -0
- package/dist/src/Collections/Interest.d.ts +38 -0
- package/dist/src/Collections/Interest.js +25 -0
- package/dist/src/Collections/Payment.d.ts +87 -0
- package/dist/src/Collections/Payment.js +21 -0
- package/dist/src/Collections/PaymentPlan.d.ts +87 -0
- package/dist/src/Collections/PaymentPlan.js +21 -0
- package/dist/src/Collections/PaymentPlanConfiguration.d.ts +100 -0
- package/dist/src/Collections/PaymentPlanConfiguration.js +34 -0
- package/dist/src/Collections/Portfolio.d.ts +52 -0
- package/dist/src/Collections/Portfolio.js +12 -0
- package/dist/src/Collections/Promise.d.ts +49 -0
- package/dist/src/Collections/Promise.js +25 -0
- package/dist/src/Collections/index.d.ts +11 -0
- package/dist/src/Collections/index.js +27 -0
- package/dist/src/Common/API/AuthApiKey.d.ts +5 -0
- package/dist/src/Common/API/AuthApiKey.js +2 -0
- package/dist/src/Common/API/AuthBasic.d.ts +4 -0
- package/dist/src/Common/API/AuthBasic.js +2 -0
- package/dist/src/Common/API/AuthBearer.d.ts +5 -0
- package/dist/src/Common/API/AuthBearer.js +2 -0
- package/dist/src/Common/API/AuthType.d.ts +6 -0
- package/dist/src/Common/API/AuthType.js +10 -0
- package/dist/src/Common/API/Method.d.ts +4 -0
- package/dist/src/Common/API/Method.js +8 -0
- package/dist/src/Common/API/index.d.ts +5 -0
- package/dist/src/Common/API/index.js +21 -0
- package/dist/src/Common/Channels/Channel.d.ts +99 -0
- package/dist/src/Common/Channels/Channel.js +20 -0
- package/dist/src/Common/Channels/ChannelAccount.d.ts +35 -0
- package/dist/src/Common/Channels/ChannelAccount.js +17 -0
- package/dist/src/Common/Channels/ChannelType.d.ts +24 -0
- package/dist/src/Common/Channels/ChannelType.js +28 -0
- package/dist/src/Common/Channels/Email.d.ts +62 -0
- package/dist/src/Common/Channels/Email.js +36 -0
- package/dist/src/Common/Channels/Facebook.d.ts +25 -0
- package/dist/src/Common/Channels/Facebook.js +6 -0
- package/dist/src/Common/Channels/Form.d.ts +118 -0
- package/dist/src/Common/Channels/Form.js +32 -0
- package/dist/src/Common/Channels/GoogleBusiness.d.ts +20 -0
- package/dist/src/Common/Channels/GoogleBusiness.js +9 -0
- package/dist/src/Common/Channels/Instagram.d.ts +29 -0
- package/dist/src/Common/Channels/Instagram.js +14 -0
- package/dist/src/Common/Channels/MercadoLibre.d.ts +27 -0
- package/dist/src/Common/Channels/MercadoLibre.js +9 -0
- package/dist/src/Common/Channels/Pbx.d.ts +2 -0
- package/dist/{Conversations/Flows/Nodes/NodeBotIA.js → src/Common/Channels/Pbx.js} +3 -3
- package/dist/src/Common/Channels/Permission.d.ts +6 -0
- package/dist/src/Common/Channels/Permission.js +6 -0
- package/dist/src/Common/Channels/RCS.d.ts +37 -0
- package/dist/src/Common/Channels/RCS.js +9 -0
- package/dist/src/Common/Channels/Sip.d.ts +2 -0
- package/dist/src/Common/Channels/Sip.js +6 -0
- package/dist/src/Common/Channels/Sms.d.ts +46 -0
- package/dist/src/Common/Channels/Sms.js +16 -0
- package/dist/src/Common/Channels/WebChat.d.ts +62 -0
- package/dist/src/Common/Channels/WebChat.js +19 -0
- package/dist/src/Common/Channels/WhatsApp.d.ts +89 -0
- package/dist/src/Common/Channels/WhatsApp.js +18 -0
- package/dist/src/Common/Channels/index.d.ts +16 -0
- package/dist/src/Common/Channels/index.js +32 -0
- package/dist/src/Common/EventsQueue/Data/postComment.d.ts +26 -0
- package/dist/src/Common/EventsQueue/Data/postComment.js +2 -0
- package/dist/src/Common/EventsQueue/EmailTemplate.d.ts +10 -0
- package/dist/src/Common/EventsQueue/EmailTemplate.js +2 -0
- package/dist/src/Common/EventsQueue/EventQueue.d.ts +13 -0
- package/dist/src/Common/EventsQueue/EventQueue.js +2 -0
- package/dist/src/Common/EventsQueue/UserUpdate.d.ts +8 -0
- package/dist/src/Common/EventsQueue/UserUpdate.js +2 -0
- package/dist/src/Common/EventsQueue/index.d.ts +3 -0
- package/dist/src/Common/EventsQueue/index.js +19 -0
- package/dist/src/Common/Logs/Log.d.ts +18 -0
- package/dist/src/Common/Logs/Log.js +13 -0
- package/dist/src/Common/Logs/index.d.ts +1 -0
- package/dist/src/Common/Logs/index.js +17 -0
- package/dist/src/Common/Messages/MediaFile.d.ts +5 -0
- package/dist/src/Common/Messages/MediaFile.js +2 -0
- package/dist/src/Common/Messages/Message.d.ts +423 -0
- package/dist/src/Common/Messages/Message.js +62 -0
- package/dist/src/Common/Messages/Template.d.ts +86 -0
- package/dist/src/Common/Messages/Template.js +26 -0
- package/dist/src/Common/Messages/index.d.ts +3 -0
- package/dist/src/Common/Messages/index.js +19 -0
- package/dist/src/Common/Notifications/Notification.d.ts +19 -0
- package/dist/src/Common/Notifications/Notification.js +10 -0
- package/dist/src/Common/Notifications/UserNotificationsConfig.d.ts +33 -0
- package/dist/src/Common/Notifications/UserNotificationsConfig.js +18 -0
- package/dist/src/Common/Notifications/index.d.ts +2 -0
- package/dist/src/Common/Notifications/index.js +18 -0
- package/dist/src/Common/Schedules/Schedules.d.ts +32 -0
- package/dist/src/Common/Schedules/Schedules.js +2 -0
- package/dist/src/Common/Schedules/index.d.ts +1 -0
- package/dist/src/Common/Schedules/index.js +17 -0
- package/dist/src/Common/index.d.ts +6 -0
- package/dist/src/Common/index.js +42 -0
- package/dist/src/Contacts/DuplicateContact.d.ts +11 -0
- package/dist/src/Contacts/DuplicateContact.js +2 -0
- package/dist/src/Contacts/File.d.ts +17 -0
- package/dist/src/Contacts/File.js +2 -0
- package/dist/src/Contacts/Import.d.ts +18 -0
- package/dist/src/Contacts/Import.js +2 -0
- package/dist/src/Contacts/Label.d.ts +9 -0
- package/dist/src/Contacts/Label.js +2 -0
- package/dist/src/Contacts/Note.d.ts +15 -0
- package/dist/src/Contacts/Note.js +2 -0
- package/dist/src/Contacts/Relationship.d.ts +28 -0
- package/dist/src/Contacts/Relationship.js +16 -0
- package/dist/src/Contacts/contacts.d.ts +269 -0
- package/dist/src/Contacts/contacts.js +54 -0
- package/dist/src/Contacts/index.d.ts +9 -0
- package/dist/src/Contacts/index.js +25 -0
- package/dist/src/Contacts/options.d.ts +5 -0
- package/dist/src/Contacts/options.js +2 -0
- package/dist/src/Contacts/segments.d.ts +52 -0
- package/dist/src/Contacts/segments.js +53 -0
- package/dist/src/Conversations/Conversation.d.ts +167 -0
- package/dist/src/Conversations/Conversation.js +56 -0
- package/dist/src/Conversations/DashBoard/dashboard.d.ts +115 -0
- package/dist/src/Conversations/DashBoard/dashboard.js +65 -0
- package/dist/src/Conversations/DashBoard/dashboardChannels.d.ts +5 -0
- package/dist/src/Conversations/DashBoard/dashboardChannels.js +6 -0
- package/dist/src/Conversations/DashBoard/dashboardForms.d.ts +44 -0
- package/dist/src/Conversations/DashBoard/dashboardForms.js +24 -0
- package/dist/src/Conversations/DashBoard/dashboardMessages.d.ts +13 -0
- package/dist/src/Conversations/DashBoard/dashboardMessages.js +9 -0
- package/dist/src/Conversations/Ending.d.ts +17 -0
- package/dist/src/Conversations/Ending.js +2 -0
- package/dist/src/Conversations/Flows/Definitions.d.ts +10 -0
- package/dist/src/Conversations/Flows/Definitions.js +2 -0
- package/dist/src/Conversations/Flows/Flow.d.ts +222 -0
- package/dist/src/Conversations/Flows/Flow.js +50 -0
- package/dist/src/Conversations/Flows/FlowInfo.d.ts +9 -0
- package/dist/src/Conversations/Flows/FlowInfo.js +2 -0
- package/dist/src/Conversations/Flows/Workflows/Workflow.d.ts +179 -0
- package/dist/src/Conversations/Flows/Workflows/Workflow.js +48 -0
- package/dist/src/Conversations/Flows/Workflows/index.d.ts +1 -0
- package/dist/src/Conversations/Flows/Workflows/index.js +17 -0
- package/dist/src/Conversations/Flows/index.d.ts +4 -0
- package/dist/src/Conversations/Flows/index.js +20 -0
- package/dist/src/Conversations/Groups/Group.d.ts +23 -0
- package/dist/src/Conversations/Groups/Group.js +8 -0
- package/dist/src/Conversations/Label.d.ts +10 -0
- package/dist/src/Conversations/Label.js +2 -0
- package/dist/src/Conversations/QuickResponse.d.ts +34 -0
- package/dist/src/Conversations/QuickResponse.js +2 -0
- package/dist/src/Conversations/SocialWalls.d.ts +72 -0
- package/dist/src/Conversations/SocialWalls.js +2 -0
- package/dist/src/Conversations/Survey.d.ts +19 -0
- package/dist/src/Conversations/Survey.js +9 -0
- package/dist/src/Conversations/WebHook.d.ts +22 -0
- package/dist/src/Conversations/WebHook.js +2 -0
- package/dist/src/Conversations/index.d.ts +13 -0
- package/dist/src/Conversations/index.js +52 -0
- package/dist/src/Docs/Document.d.ts +58 -0
- package/dist/src/Docs/Document.js +29 -0
- package/dist/src/Docs/Store.d.ts +37 -0
- package/dist/src/Docs/Store.js +17 -0
- package/dist/src/Docs/index.d.ts +2 -0
- package/dist/src/Docs/index.js +18 -0
- package/dist/src/Marketing/Campaign.d.ts +69 -0
- package/dist/src/Marketing/Campaign.js +30 -0
- package/dist/src/Marketing/Dashboard.d.ts +48 -0
- package/dist/src/Marketing/Dashboard.js +2 -0
- package/dist/src/Marketing/Options.d.ts +12 -0
- package/dist/src/Marketing/Options.js +9 -0
- package/dist/src/Marketing/Template.d.ts +19 -0
- package/dist/src/Marketing/Template.js +8 -0
- package/dist/src/Marketing/index.d.ts +4 -0
- package/dist/src/Marketing/index.js +20 -0
- package/dist/src/PublicAPI/apiKey.d.ts +12 -0
- package/dist/src/PublicAPI/apiKey.js +2 -0
- package/dist/src/Reports/ScheduledReport.d.ts +205 -0
- package/dist/src/Reports/ScheduledReport.js +57 -0
- package/dist/src/Reports/aiReport.d.ts +20 -0
- package/dist/src/Reports/aiReport.js +2 -0
- package/dist/src/Reports/apiResult.d.ts +5 -0
- package/dist/src/Reports/apiResult.js +2 -0
- package/dist/src/Reports/index.d.ts +3 -0
- package/dist/src/Reports/index.js +19 -0
- package/dist/src/Sales/Api.d.ts +40 -0
- package/dist/src/Sales/Api.js +2 -0
- package/dist/src/Sales/Common.d.ts +72 -0
- package/dist/src/Sales/Common.js +31 -0
- package/dist/src/Sales/Dashboard.d.ts +25 -0
- package/dist/src/Sales/Dashboard.js +2 -0
- package/dist/src/Sales/Lead.d.ts +99 -0
- package/dist/src/Sales/Lead.js +8 -0
- package/dist/src/Sales/index.d.ts +4 -0
- package/dist/src/Sales/index.js +20 -0
- package/dist/src/Security/Security.d.ts +5 -0
- package/dist/src/Security/Security.js +2 -0
- package/dist/src/Security/index.d.ts +1 -0
- package/dist/src/Security/index.js +17 -0
- package/dist/src/Shop/Cart/cart.d.ts +19 -0
- package/dist/src/Shop/Cart/cart.js +2 -0
- package/dist/src/Shop/index.d.ts +1 -0
- package/dist/src/Shop/index.js +17 -0
- package/dist/src/Spaces/Dashboard.d.ts +4 -0
- package/dist/src/Spaces/Dashboard.js +2 -0
- package/dist/src/Spaces/index.d.ts +2 -0
- package/dist/src/Spaces/index.js +18 -0
- package/dist/src/Spaces/spaces.d.ts +104 -0
- package/dist/src/Spaces/spaces.js +85 -0
- package/dist/src/Tickets/AI.d.ts +400 -0
- package/dist/src/Tickets/AI.js +113 -0
- package/dist/src/Tickets/AdvancedApi.d.ts +486 -0
- package/dist/src/Tickets/AdvancedApi.js +108 -0
- package/dist/src/Tickets/Api.d.ts +62 -0
- package/dist/src/Tickets/Api.js +8 -0
- package/dist/src/Tickets/Approval.d.ts +139 -0
- package/dist/src/Tickets/Approval.js +30 -0
- package/dist/src/Tickets/Automation.d.ts +237 -0
- package/dist/src/Tickets/Automation.js +74 -0
- package/dist/src/Tickets/Category.d.ts +53 -0
- package/dist/src/Tickets/Category.js +2 -0
- package/dist/src/Tickets/Common.d.ts +90 -0
- package/dist/src/Tickets/Common.js +38 -0
- package/dist/src/Tickets/Conversation.d.ts +68 -0
- package/dist/src/Tickets/Conversation.js +30 -0
- package/dist/src/Tickets/Dashboard.d.ts +408 -0
- package/dist/src/Tickets/Dashboard.js +206 -0
- package/dist/src/Tickets/Fields.d.ts +133 -0
- package/dist/src/Tickets/Fields.js +44 -0
- package/dist/src/Tickets/Layouts.d.ts +63 -0
- package/dist/src/Tickets/Layouts.js +22 -0
- package/dist/src/Tickets/Routing.d.ts +290 -0
- package/dist/src/Tickets/Routing.js +87 -0
- package/dist/src/Tickets/Satisfaction.d.ts +31 -0
- package/dist/src/Tickets/Satisfaction.js +9 -0
- package/dist/src/Tickets/Security.d.ts +302 -0
- package/dist/src/Tickets/Security.js +107 -0
- package/dist/src/Tickets/SelfService.d.ts +255 -0
- package/dist/src/Tickets/SelfService.js +56 -0
- package/dist/src/Tickets/Sla.d.ts +253 -0
- package/dist/src/Tickets/Sla.js +73 -0
- package/dist/src/Tickets/Task.d.ts +122 -0
- package/dist/src/Tickets/Task.js +17 -0
- package/dist/src/Tickets/Ticket.d.ts +133 -0
- package/dist/src/Tickets/Ticket.js +2 -0
- package/dist/src/Tickets/Views.d.ts +77 -0
- package/dist/src/Tickets/Views.js +23 -0
- package/dist/src/Tickets/Workflow.d.ts +109 -0
- package/dist/src/Tickets/Workflow.js +44 -0
- package/dist/src/Tickets/index.d.ts +20 -0
- package/dist/src/Tickets/index.js +36 -0
- package/dist/src/Users/Signature.d.ts +74 -0
- package/dist/src/Users/Signature.js +2 -0
- package/dist/src/Users/UserActivitySummary.d.ts +5 -0
- package/dist/src/Users/UserActivitySummary.js +2 -0
- package/dist/src/Users/UserProfile.d.ts +97 -0
- package/dist/src/Users/UserProfile.js +5 -0
- package/dist/src/Users/UserTrii.d.ts +102 -0
- package/dist/src/Users/UserTrii.js +10 -0
- package/dist/src/Users/UserType.d.ts +10 -0
- package/dist/src/Users/UserType.js +13 -0
- package/dist/src/Users/index.d.ts +5 -0
- package/dist/src/Users/index.js +21 -0
- package/dist/src/index.d.ts +20 -0
- package/dist/src/index.js +56 -0
- package/package.json +1 -1
- package/dist/Conversations/Flows/Nodes/NodeAIChatBot.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeAIChatBot.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeApi.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeApi.js +0 -183
- package/dist/Conversations/Flows/Nodes/NodeBotIA.d.ts +0 -15
- package/dist/Conversations/Flows/Nodes/NodeChatBotIA.d.ts +0 -15
- package/dist/Conversations/Flows/Nodes/NodeChatBotIA.js +0 -6
- package/dist/Conversations/Flows/Nodes/NodeConditional.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConditional.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeContactSearch.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeContactSearch.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeContactUpdate.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeContactUpdate.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeFillForm.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeFillForm.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeFillTicket.d.ts +0 -1
- package/dist/Conversations/Flows/Nodes/NodeFillTicket.js +0 -9
- package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.d.ts +0 -20
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.d.ts +0 -12
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.js +0 -6
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.d.ts +0 -15
- package/dist/Conversations/Flows/Nodes/NodeMsgReply.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgReply.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgSend.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgSend.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgText.d.ts +0 -1
- package/dist/Conversations/Flows/Nodes/NodeMsgText.js +0 -27
- package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeRedirect.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeRedirect.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeSendEmail.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeSendEmail.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeSqlQuery.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeSqlQuery.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeStart.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeStart.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeTimer.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeTimer.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeToolCalculator.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolCalculator.js +0 -37
- package/dist/Conversations/Flows/Nodes/NodeToolContacts.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolContacts.js +0 -59
- package/dist/Conversations/Flows/Nodes/NodeToolFunction.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolFunction.js +0 -45
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.js +0 -87
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.d.ts +0 -1
- package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.js +0 -52
- package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.js +0 -59
- package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.js +0 -45
- package/dist/Conversations/Flows/Nodes/NodeToolShoppingCart.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolShoppingCart.js +0 -81
- package/dist/Conversations/Flows/Nodes/index.d.ts +0 -24
- package/dist/Conversations/Flows/Nodes/index.js +0 -40
- package/dist/Presence/ChannelRoutingState.d.ts +0 -17
- package/dist/Presence/ChannelRoutingState.js +0 -9
- package/dist/Tickets/AccessLevel.d.ts +0 -5
- package/dist/Tickets/AccessLevel.js +0 -9
- /package/dist/{AI/MapPolygon.js → src/AI/Credential.js} +0 -0
- /package/dist/{Conversations/Flows/Nodes/NodeGoogleCalendar.js → src/AI/Map.js} +0 -0
- /package/dist/{Conversations/Flows/Nodes/NodeGoogleMaps.js → src/AI/Provider.js} +0 -0
- /package/dist/{Conversations/Flows/Nodes/NodeToolGoogleMaps.js → src/AI/Threads/API.js} +0 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { ICollectionMoney, IDebtContactProjection, IDebtProperty, DebtOrigin, DebtPriority, DebtStage } from './Common';
|
|
2
|
+
export declare enum DebtProductType {
|
|
3
|
+
LOAN = "LOAN",
|
|
4
|
+
CREDIT_CARD = "CREDIT_CARD",
|
|
5
|
+
ACCOUNT = "ACCOUNT",
|
|
6
|
+
SERVICE = "SERVICE",
|
|
7
|
+
INVOICE = "INVOICE",
|
|
8
|
+
OTHER = "OTHER"
|
|
9
|
+
}
|
|
10
|
+
export interface IDebtBalanceBreakdown {
|
|
11
|
+
principal: ICollectionMoney;
|
|
12
|
+
compensatoryInterest?: ICollectionMoney;
|
|
13
|
+
penaltyInterest?: ICollectionMoney;
|
|
14
|
+
fees?: ICollectionMoney;
|
|
15
|
+
taxes?: ICollectionMoney;
|
|
16
|
+
discounts?: ICollectionMoney;
|
|
17
|
+
total: ICollectionMoney;
|
|
18
|
+
}
|
|
19
|
+
export interface IDebt {
|
|
20
|
+
id: string;
|
|
21
|
+
spaceId: string;
|
|
22
|
+
number: number;
|
|
23
|
+
title: string;
|
|
24
|
+
description?: string;
|
|
25
|
+
contactId: string;
|
|
26
|
+
contact?: IDebtContactProjection;
|
|
27
|
+
statusId: string;
|
|
28
|
+
stage: DebtStage;
|
|
29
|
+
priority: DebtPriority;
|
|
30
|
+
origin: DebtOrigin;
|
|
31
|
+
assigneeId?: string;
|
|
32
|
+
assignedGroupId?: string;
|
|
33
|
+
properties: IDebtProperty[];
|
|
34
|
+
version: number;
|
|
35
|
+
creditorId: string;
|
|
36
|
+
portfolioId: string;
|
|
37
|
+
batchId?: string;
|
|
38
|
+
productType: DebtProductType;
|
|
39
|
+
productName?: string;
|
|
40
|
+
productReference?: string;
|
|
41
|
+
originalAmount: ICollectionMoney;
|
|
42
|
+
currentBalance: ICollectionMoney;
|
|
43
|
+
balanceBreakdown?: IDebtBalanceBreakdown;
|
|
44
|
+
originatedAt?: Date;
|
|
45
|
+
dueAt: Date;
|
|
46
|
+
daysPastDue: number;
|
|
47
|
+
interestConfigurationId?: string;
|
|
48
|
+
activePaymentPlanId?: string;
|
|
49
|
+
sourceRowExternalId?: string;
|
|
50
|
+
createdAt: Date;
|
|
51
|
+
createdBy: string;
|
|
52
|
+
updatedAt?: Date;
|
|
53
|
+
updatedBy?: string;
|
|
54
|
+
deletedAt?: Date;
|
|
55
|
+
deletedBy?: string;
|
|
56
|
+
}
|
|
57
|
+
export interface ICreateDebtDto {
|
|
58
|
+
title: string;
|
|
59
|
+
description?: string;
|
|
60
|
+
contactId: string;
|
|
61
|
+
statusId?: string;
|
|
62
|
+
priority: DebtPriority;
|
|
63
|
+
origin: DebtOrigin;
|
|
64
|
+
assigneeId?: string;
|
|
65
|
+
assignedGroupId?: string;
|
|
66
|
+
properties?: IDebtProperty[];
|
|
67
|
+
source?: string;
|
|
68
|
+
idempotencyKey?: string;
|
|
69
|
+
creditorId: string;
|
|
70
|
+
portfolioId: string;
|
|
71
|
+
batchId?: string;
|
|
72
|
+
productType: DebtProductType;
|
|
73
|
+
productName?: string;
|
|
74
|
+
productReference?: string;
|
|
75
|
+
originalAmount: ICollectionMoney;
|
|
76
|
+
currentBalance?: ICollectionMoney;
|
|
77
|
+
balanceBreakdown?: IDebtBalanceBreakdown;
|
|
78
|
+
originatedAt?: Date;
|
|
79
|
+
dueAt: Date;
|
|
80
|
+
sourceRowExternalId?: string;
|
|
81
|
+
}
|
|
82
|
+
export interface IUpdateDebtDto {
|
|
83
|
+
expectedVersion: number;
|
|
84
|
+
title?: string;
|
|
85
|
+
description?: string;
|
|
86
|
+
priority?: DebtPriority;
|
|
87
|
+
assigneeId?: string;
|
|
88
|
+
assignedGroupId?: string;
|
|
89
|
+
properties?: IDebtProperty[];
|
|
90
|
+
productType?: DebtProductType;
|
|
91
|
+
productName?: string;
|
|
92
|
+
productReference?: string;
|
|
93
|
+
currentBalance?: ICollectionMoney;
|
|
94
|
+
balanceBreakdown?: IDebtBalanceBreakdown;
|
|
95
|
+
dueAt?: Date;
|
|
96
|
+
interestConfigurationId?: string;
|
|
97
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DebtProductType = void 0;
|
|
4
|
+
var DebtProductType;
|
|
5
|
+
(function (DebtProductType) {
|
|
6
|
+
DebtProductType["LOAN"] = "LOAN";
|
|
7
|
+
DebtProductType["CREDIT_CARD"] = "CREDIT_CARD";
|
|
8
|
+
DebtProductType["ACCOUNT"] = "ACCOUNT";
|
|
9
|
+
DebtProductType["SERVICE"] = "SERVICE";
|
|
10
|
+
DebtProductType["INVOICE"] = "INVOICE";
|
|
11
|
+
DebtProductType["OTHER"] = "OTHER";
|
|
12
|
+
})(DebtProductType || (exports.DebtProductType = DebtProductType = {}));
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ICollectionAuditedEntity } from './Common';
|
|
2
|
+
export declare enum InterestType {
|
|
3
|
+
COMPENSATORY = "COMPENSATORY",
|
|
4
|
+
PENALTY = "PENALTY"
|
|
5
|
+
}
|
|
6
|
+
export declare enum InterestCalculationMethod {
|
|
7
|
+
SIMPLE = "SIMPLE",
|
|
8
|
+
COMPOUND = "COMPOUND"
|
|
9
|
+
}
|
|
10
|
+
export declare enum InterestRatePeriod {
|
|
11
|
+
DAILY = "DAILY",
|
|
12
|
+
MONTHLY = "MONTHLY",
|
|
13
|
+
ANNUAL = "ANNUAL"
|
|
14
|
+
}
|
|
15
|
+
export declare enum InterestDayCountBasis {
|
|
16
|
+
ACTUAL_365 = "ACTUAL_365",
|
|
17
|
+
ACTUAL_360 = "ACTUAL_360",
|
|
18
|
+
THIRTY_360 = "THIRTY_360"
|
|
19
|
+
}
|
|
20
|
+
export interface IInterestRatePeriod {
|
|
21
|
+
rate: string;
|
|
22
|
+
period: InterestRatePeriod;
|
|
23
|
+
validFrom: Date;
|
|
24
|
+
validTo?: Date;
|
|
25
|
+
}
|
|
26
|
+
export interface IInterestComponentConfiguration {
|
|
27
|
+
type: InterestType;
|
|
28
|
+
method: InterestCalculationMethod;
|
|
29
|
+
dayCountBasis: InterestDayCountBasis;
|
|
30
|
+
capitalizationEnabled: boolean;
|
|
31
|
+
rates: IInterestRatePeriod[];
|
|
32
|
+
}
|
|
33
|
+
export interface IInterestConfiguration extends ICollectionAuditedEntity {
|
|
34
|
+
name: string;
|
|
35
|
+
description?: string;
|
|
36
|
+
enabled: boolean;
|
|
37
|
+
components: IInterestComponentConfiguration[];
|
|
38
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InterestDayCountBasis = exports.InterestRatePeriod = exports.InterestCalculationMethod = exports.InterestType = void 0;
|
|
4
|
+
var InterestType;
|
|
5
|
+
(function (InterestType) {
|
|
6
|
+
InterestType["COMPENSATORY"] = "COMPENSATORY";
|
|
7
|
+
InterestType["PENALTY"] = "PENALTY";
|
|
8
|
+
})(InterestType || (exports.InterestType = InterestType = {}));
|
|
9
|
+
var InterestCalculationMethod;
|
|
10
|
+
(function (InterestCalculationMethod) {
|
|
11
|
+
InterestCalculationMethod["SIMPLE"] = "SIMPLE";
|
|
12
|
+
InterestCalculationMethod["COMPOUND"] = "COMPOUND";
|
|
13
|
+
})(InterestCalculationMethod || (exports.InterestCalculationMethod = InterestCalculationMethod = {}));
|
|
14
|
+
var InterestRatePeriod;
|
|
15
|
+
(function (InterestRatePeriod) {
|
|
16
|
+
InterestRatePeriod["DAILY"] = "DAILY";
|
|
17
|
+
InterestRatePeriod["MONTHLY"] = "MONTHLY";
|
|
18
|
+
InterestRatePeriod["ANNUAL"] = "ANNUAL";
|
|
19
|
+
})(InterestRatePeriod || (exports.InterestRatePeriod = InterestRatePeriod = {}));
|
|
20
|
+
var InterestDayCountBasis;
|
|
21
|
+
(function (InterestDayCountBasis) {
|
|
22
|
+
InterestDayCountBasis["ACTUAL_365"] = "ACTUAL_365";
|
|
23
|
+
InterestDayCountBasis["ACTUAL_360"] = "ACTUAL_360";
|
|
24
|
+
InterestDayCountBasis["THIRTY_360"] = "THIRTY_360";
|
|
25
|
+
})(InterestDayCountBasis || (exports.InterestDayCountBasis = InterestDayCountBasis = {}));
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { ICollectionMoney } from './Common';
|
|
2
|
+
export declare enum DebtPaymentStatus {
|
|
3
|
+
PENDING = "PENDING",
|
|
4
|
+
CONFIRMED = "CONFIRMED",
|
|
5
|
+
REJECTED = "REJECTED",
|
|
6
|
+
REVERSED = "REVERSED"
|
|
7
|
+
}
|
|
8
|
+
export declare enum DebtPaymentMethod {
|
|
9
|
+
CASH = "CASH",
|
|
10
|
+
BANK_TRANSFER = "BANK_TRANSFER",
|
|
11
|
+
CREDIT_CARD = "CREDIT_CARD",
|
|
12
|
+
DEBIT_CARD = "DEBIT_CARD",
|
|
13
|
+
DIRECT_DEBIT = "DIRECT_DEBIT",
|
|
14
|
+
DIGITAL_WALLET = "DIGITAL_WALLET",
|
|
15
|
+
CHECK = "CHECK",
|
|
16
|
+
OTHER = "OTHER"
|
|
17
|
+
}
|
|
18
|
+
export interface IPaymentAllocation {
|
|
19
|
+
debtId: string;
|
|
20
|
+
installmentId?: string;
|
|
21
|
+
principal: ICollectionMoney;
|
|
22
|
+
compensatoryInterest?: ICollectionMoney;
|
|
23
|
+
penaltyInterest?: ICollectionMoney;
|
|
24
|
+
fees?: ICollectionMoney;
|
|
25
|
+
taxes?: ICollectionMoney;
|
|
26
|
+
discounts?: ICollectionMoney;
|
|
27
|
+
total: ICollectionMoney;
|
|
28
|
+
}
|
|
29
|
+
export interface IPaymentAgentAttribution {
|
|
30
|
+
userId: string;
|
|
31
|
+
percentage: string;
|
|
32
|
+
amount?: ICollectionMoney;
|
|
33
|
+
commissionRuleId?: string;
|
|
34
|
+
adjustedBy?: string;
|
|
35
|
+
adjustedAt?: Date;
|
|
36
|
+
adjustmentReason?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface IDebtPayment {
|
|
39
|
+
id: string;
|
|
40
|
+
spaceId: string;
|
|
41
|
+
portfolioId: string;
|
|
42
|
+
contactId: string;
|
|
43
|
+
paymentPlanId?: string;
|
|
44
|
+
amount: ICollectionMoney;
|
|
45
|
+
paidAt: Date;
|
|
46
|
+
method: DebtPaymentMethod;
|
|
47
|
+
status: DebtPaymentStatus;
|
|
48
|
+
reference?: string;
|
|
49
|
+
allocations: IPaymentAllocation[];
|
|
50
|
+
agentAttributions: IPaymentAgentAttribution[];
|
|
51
|
+
externalReferences?: {
|
|
52
|
+
system: string;
|
|
53
|
+
externalId: string;
|
|
54
|
+
}[];
|
|
55
|
+
source?: string;
|
|
56
|
+
idempotencyKey?: string;
|
|
57
|
+
confirmedAt?: Date;
|
|
58
|
+
confirmedBy?: string;
|
|
59
|
+
createdAt: Date;
|
|
60
|
+
createdBy: string;
|
|
61
|
+
reversedByPaymentReversalId?: string;
|
|
62
|
+
}
|
|
63
|
+
export interface IDebtPaymentReversal {
|
|
64
|
+
id: string;
|
|
65
|
+
spaceId: string;
|
|
66
|
+
paymentId: string;
|
|
67
|
+
amount: ICollectionMoney;
|
|
68
|
+
reason: string;
|
|
69
|
+
allocations: IPaymentAllocation[];
|
|
70
|
+
reversedAt: Date;
|
|
71
|
+
reversedBy: string;
|
|
72
|
+
source?: string;
|
|
73
|
+
idempotencyKey?: string;
|
|
74
|
+
}
|
|
75
|
+
export interface ICreateDebtPaymentDto {
|
|
76
|
+
portfolioId: string;
|
|
77
|
+
contactId: string;
|
|
78
|
+
paymentPlanId?: string;
|
|
79
|
+
amount: ICollectionMoney;
|
|
80
|
+
paidAt: Date;
|
|
81
|
+
method: DebtPaymentMethod;
|
|
82
|
+
reference?: string;
|
|
83
|
+
allocations: IPaymentAllocation[];
|
|
84
|
+
agentAttributions: IPaymentAgentAttribution[];
|
|
85
|
+
source?: string;
|
|
86
|
+
idempotencyKey?: string;
|
|
87
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DebtPaymentMethod = exports.DebtPaymentStatus = void 0;
|
|
4
|
+
var DebtPaymentStatus;
|
|
5
|
+
(function (DebtPaymentStatus) {
|
|
6
|
+
DebtPaymentStatus["PENDING"] = "PENDING";
|
|
7
|
+
DebtPaymentStatus["CONFIRMED"] = "CONFIRMED";
|
|
8
|
+
DebtPaymentStatus["REJECTED"] = "REJECTED";
|
|
9
|
+
DebtPaymentStatus["REVERSED"] = "REVERSED";
|
|
10
|
+
})(DebtPaymentStatus || (exports.DebtPaymentStatus = DebtPaymentStatus = {}));
|
|
11
|
+
var DebtPaymentMethod;
|
|
12
|
+
(function (DebtPaymentMethod) {
|
|
13
|
+
DebtPaymentMethod["CASH"] = "CASH";
|
|
14
|
+
DebtPaymentMethod["BANK_TRANSFER"] = "BANK_TRANSFER";
|
|
15
|
+
DebtPaymentMethod["CREDIT_CARD"] = "CREDIT_CARD";
|
|
16
|
+
DebtPaymentMethod["DEBIT_CARD"] = "DEBIT_CARD";
|
|
17
|
+
DebtPaymentMethod["DIRECT_DEBIT"] = "DIRECT_DEBIT";
|
|
18
|
+
DebtPaymentMethod["DIGITAL_WALLET"] = "DIGITAL_WALLET";
|
|
19
|
+
DebtPaymentMethod["CHECK"] = "CHECK";
|
|
20
|
+
DebtPaymentMethod["OTHER"] = "OTHER";
|
|
21
|
+
})(DebtPaymentMethod || (exports.DebtPaymentMethod = DebtPaymentMethod = {}));
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { ICollectionAuditedEntity, ICollectionMoney } from './Common';
|
|
2
|
+
import { IPaymentPlanConfigurationSnapshot, PaymentPlanFrequency } from './PaymentPlanConfiguration';
|
|
3
|
+
export declare enum PaymentPlanStatus {
|
|
4
|
+
DRAFT = "DRAFT",
|
|
5
|
+
PENDING_APPROVAL = "PENDING_APPROVAL",
|
|
6
|
+
ACTIVE = "ACTIVE",
|
|
7
|
+
COMPLETED = "COMPLETED",
|
|
8
|
+
FAILED = "FAILED",
|
|
9
|
+
CANCELLED = "CANCELLED",
|
|
10
|
+
REFINANCED = "REFINANCED"
|
|
11
|
+
}
|
|
12
|
+
export declare enum PaymentPlanInstallmentStatus {
|
|
13
|
+
PENDING = "PENDING",
|
|
14
|
+
PARTIALLY_PAID = "PARTIALLY_PAID",
|
|
15
|
+
PAID = "PAID",
|
|
16
|
+
OVERDUE = "OVERDUE",
|
|
17
|
+
CANCELLED = "CANCELLED"
|
|
18
|
+
}
|
|
19
|
+
export interface IPlannedDebtAllocation {
|
|
20
|
+
debtId: string;
|
|
21
|
+
principal: ICollectionMoney;
|
|
22
|
+
interest?: ICollectionMoney;
|
|
23
|
+
fees?: ICollectionMoney;
|
|
24
|
+
taxes?: ICollectionMoney;
|
|
25
|
+
discounts?: ICollectionMoney;
|
|
26
|
+
total: ICollectionMoney;
|
|
27
|
+
}
|
|
28
|
+
export interface IPaymentPlanInstallment {
|
|
29
|
+
id: string;
|
|
30
|
+
number: number;
|
|
31
|
+
dueAt: Date;
|
|
32
|
+
amount: ICollectionMoney;
|
|
33
|
+
paidAmount: ICollectionMoney;
|
|
34
|
+
status: PaymentPlanInstallmentStatus;
|
|
35
|
+
allocations?: IPlannedDebtAllocation[];
|
|
36
|
+
}
|
|
37
|
+
export interface IPaymentPlan extends ICollectionAuditedEntity {
|
|
38
|
+
portfolioId: string;
|
|
39
|
+
contactId: string;
|
|
40
|
+
debtIds: string[];
|
|
41
|
+
status: PaymentPlanStatus;
|
|
42
|
+
configurationId?: string;
|
|
43
|
+
configurationVersion?: number;
|
|
44
|
+
/** Immutable copy of every value and formula used to calculate this plan. */
|
|
45
|
+
configurationSnapshot?: IPaymentPlanConfigurationSnapshot;
|
|
46
|
+
totalAmount: ICollectionMoney;
|
|
47
|
+
downPayment?: ICollectionMoney;
|
|
48
|
+
interestConfigurationId?: string;
|
|
49
|
+
installments: IPaymentPlanInstallment[];
|
|
50
|
+
activatedAt?: Date;
|
|
51
|
+
completedAt?: Date;
|
|
52
|
+
failedAt?: Date;
|
|
53
|
+
failureReason?: string;
|
|
54
|
+
failurePolicyId?: string;
|
|
55
|
+
replacesPlanId?: string;
|
|
56
|
+
replacedByPlanId?: string;
|
|
57
|
+
approvedAt?: Date;
|
|
58
|
+
approvedBy?: string;
|
|
59
|
+
version: number;
|
|
60
|
+
}
|
|
61
|
+
export interface IPaymentPlanFailurePolicy extends ICollectionAuditedEntity {
|
|
62
|
+
name: string;
|
|
63
|
+
enabled: boolean;
|
|
64
|
+
maximumOverdueInstallments?: number;
|
|
65
|
+
gracePeriodDays?: number;
|
|
66
|
+
minimumOverdueAmount?: ICollectionMoney;
|
|
67
|
+
automaticFailure: boolean;
|
|
68
|
+
supervisorApprovalRequired: boolean;
|
|
69
|
+
}
|
|
70
|
+
export interface ICreatePaymentPlanDto {
|
|
71
|
+
portfolioId: string;
|
|
72
|
+
contactId: string;
|
|
73
|
+
debtIds: string[];
|
|
74
|
+
configurationId?: string;
|
|
75
|
+
installmentCount?: number;
|
|
76
|
+
firstDueAt?: Date;
|
|
77
|
+
frequency?: PaymentPlanFrequency;
|
|
78
|
+
customDueDates?: Date[];
|
|
79
|
+
totalAmount: ICollectionMoney;
|
|
80
|
+
downPayment?: ICollectionMoney;
|
|
81
|
+
interestConfigurationId?: string;
|
|
82
|
+
/** Optional for formula-generated plans; required for manually constructed plans. */
|
|
83
|
+
installments?: Omit<IPaymentPlanInstallment, 'id' | 'paidAmount' | 'status'>[];
|
|
84
|
+
replacesPlanId?: string;
|
|
85
|
+
source?: string;
|
|
86
|
+
idempotencyKey?: string;
|
|
87
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentPlanInstallmentStatus = exports.PaymentPlanStatus = void 0;
|
|
4
|
+
var PaymentPlanStatus;
|
|
5
|
+
(function (PaymentPlanStatus) {
|
|
6
|
+
PaymentPlanStatus["DRAFT"] = "DRAFT";
|
|
7
|
+
PaymentPlanStatus["PENDING_APPROVAL"] = "PENDING_APPROVAL";
|
|
8
|
+
PaymentPlanStatus["ACTIVE"] = "ACTIVE";
|
|
9
|
+
PaymentPlanStatus["COMPLETED"] = "COMPLETED";
|
|
10
|
+
PaymentPlanStatus["FAILED"] = "FAILED";
|
|
11
|
+
PaymentPlanStatus["CANCELLED"] = "CANCELLED";
|
|
12
|
+
PaymentPlanStatus["REFINANCED"] = "REFINANCED";
|
|
13
|
+
})(PaymentPlanStatus || (exports.PaymentPlanStatus = PaymentPlanStatus = {}));
|
|
14
|
+
var PaymentPlanInstallmentStatus;
|
|
15
|
+
(function (PaymentPlanInstallmentStatus) {
|
|
16
|
+
PaymentPlanInstallmentStatus["PENDING"] = "PENDING";
|
|
17
|
+
PaymentPlanInstallmentStatus["PARTIALLY_PAID"] = "PARTIALLY_PAID";
|
|
18
|
+
PaymentPlanInstallmentStatus["PAID"] = "PAID";
|
|
19
|
+
PaymentPlanInstallmentStatus["OVERDUE"] = "OVERDUE";
|
|
20
|
+
PaymentPlanInstallmentStatus["CANCELLED"] = "CANCELLED";
|
|
21
|
+
})(PaymentPlanInstallmentStatus || (exports.PaymentPlanInstallmentStatus = PaymentPlanInstallmentStatus = {}));
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { ICollectionAuditedEntity, ICollectionMoney } from './Common';
|
|
2
|
+
export declare enum PaymentPlanType {
|
|
3
|
+
NORMAL = "NORMAL",
|
|
4
|
+
BALLOON = "BALLOON"
|
|
5
|
+
}
|
|
6
|
+
export declare enum PaymentPlanConfigurationStatus {
|
|
7
|
+
DRAFT = "DRAFT",
|
|
8
|
+
ACTIVE = "ACTIVE",
|
|
9
|
+
ARCHIVED = "ARCHIVED"
|
|
10
|
+
}
|
|
11
|
+
export declare enum PaymentPlanFrequency {
|
|
12
|
+
WEEKLY = "WEEKLY",
|
|
13
|
+
BIWEEKLY = "BIWEEKLY",
|
|
14
|
+
MONTHLY = "MONTHLY",
|
|
15
|
+
CUSTOM = "CUSTOM"
|
|
16
|
+
}
|
|
17
|
+
export declare enum PaymentDueDateAdjustment {
|
|
18
|
+
NONE = "NONE",
|
|
19
|
+
NEXT_BUSINESS_DAY = "NEXT_BUSINESS_DAY",
|
|
20
|
+
PREVIOUS_BUSINESS_DAY = "PREVIOUS_BUSINESS_DAY"
|
|
21
|
+
}
|
|
22
|
+
export declare enum DecimalRoundingMode {
|
|
23
|
+
HALF_UP = "HALF_UP",
|
|
24
|
+
HALF_EVEN = "HALF_EVEN",
|
|
25
|
+
UP = "UP",
|
|
26
|
+
DOWN = "DOWN"
|
|
27
|
+
}
|
|
28
|
+
export interface IPaymentPlanFormulaTestCase {
|
|
29
|
+
name: string;
|
|
30
|
+
variables: {
|
|
31
|
+
[variableName: string]: string;
|
|
32
|
+
};
|
|
33
|
+
expectedResult: string;
|
|
34
|
+
}
|
|
35
|
+
export interface IPaymentPlanFormula {
|
|
36
|
+
/** Expression in the backend-supported formula DSL. Never executable JavaScript. */
|
|
37
|
+
expression: string;
|
|
38
|
+
variableNames: string[];
|
|
39
|
+
allowedFunctionNames?: string[];
|
|
40
|
+
roundingMode: DecimalRoundingMode;
|
|
41
|
+
testCases?: IPaymentPlanFormulaTestCase[];
|
|
42
|
+
}
|
|
43
|
+
export interface IPaymentPlanFeeTier {
|
|
44
|
+
id: string;
|
|
45
|
+
fromDays: number;
|
|
46
|
+
toDays: number;
|
|
47
|
+
honorariumPercentage: string;
|
|
48
|
+
honorariumCoefficient: string;
|
|
49
|
+
collectionCommissionPercentage: string;
|
|
50
|
+
expenseCommissionPercentage: string;
|
|
51
|
+
}
|
|
52
|
+
export interface IPaymentPlanConfigurationSnapshot {
|
|
53
|
+
configurationId: string;
|
|
54
|
+
configurationVersion: number;
|
|
55
|
+
name: string;
|
|
56
|
+
type: PaymentPlanType;
|
|
57
|
+
minimumInstallments: number;
|
|
58
|
+
maximumInstallments: number;
|
|
59
|
+
frequency: PaymentPlanFrequency;
|
|
60
|
+
dueDateAdjustment: PaymentDueDateAdjustment;
|
|
61
|
+
businessCalendarId?: string;
|
|
62
|
+
updateInterestPercentage?: string;
|
|
63
|
+
refinancingInterestPercentage?: string;
|
|
64
|
+
otherCharges?: ICollectionMoney;
|
|
65
|
+
vatPercentage?: string;
|
|
66
|
+
vatCoefficient?: string;
|
|
67
|
+
feeTiers: IPaymentPlanFeeTier[];
|
|
68
|
+
firstPaymentFormula: IPaymentPlanFormula;
|
|
69
|
+
installmentFormula: IPaymentPlanFormula;
|
|
70
|
+
balloonPaymentFormula?: IPaymentPlanFormula;
|
|
71
|
+
}
|
|
72
|
+
export interface IPaymentPlanConfiguration extends ICollectionAuditedEntity {
|
|
73
|
+
portfolioId: string;
|
|
74
|
+
name: string;
|
|
75
|
+
description?: string;
|
|
76
|
+
type: PaymentPlanType;
|
|
77
|
+
status: PaymentPlanConfigurationStatus;
|
|
78
|
+
version: number;
|
|
79
|
+
previousVersionId?: string;
|
|
80
|
+
minimumInstallments: number;
|
|
81
|
+
maximumInstallments: number;
|
|
82
|
+
frequency: PaymentPlanFrequency;
|
|
83
|
+
dueDateAdjustment: PaymentDueDateAdjustment;
|
|
84
|
+
businessCalendarId?: string;
|
|
85
|
+
updateInterestPercentage?: string;
|
|
86
|
+
refinancingInterestPercentage?: string;
|
|
87
|
+
otherCharges?: ICollectionMoney;
|
|
88
|
+
vatPercentage?: string;
|
|
89
|
+
vatCoefficient?: string;
|
|
90
|
+
/** Ranges may contain gaps but must never overlap. */
|
|
91
|
+
feeTiers: IPaymentPlanFeeTier[];
|
|
92
|
+
firstPaymentFormula: IPaymentPlanFormula;
|
|
93
|
+
installmentFormula: IPaymentPlanFormula;
|
|
94
|
+
/** Required when type is BALLOON. */
|
|
95
|
+
balloonPaymentFormula?: IPaymentPlanFormula;
|
|
96
|
+
activatedAt?: Date;
|
|
97
|
+
activatedBy?: string;
|
|
98
|
+
archivedAt?: Date;
|
|
99
|
+
archivedBy?: string;
|
|
100
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DecimalRoundingMode = exports.PaymentDueDateAdjustment = exports.PaymentPlanFrequency = exports.PaymentPlanConfigurationStatus = exports.PaymentPlanType = void 0;
|
|
4
|
+
var PaymentPlanType;
|
|
5
|
+
(function (PaymentPlanType) {
|
|
6
|
+
PaymentPlanType["NORMAL"] = "NORMAL";
|
|
7
|
+
PaymentPlanType["BALLOON"] = "BALLOON";
|
|
8
|
+
})(PaymentPlanType || (exports.PaymentPlanType = PaymentPlanType = {}));
|
|
9
|
+
var PaymentPlanConfigurationStatus;
|
|
10
|
+
(function (PaymentPlanConfigurationStatus) {
|
|
11
|
+
PaymentPlanConfigurationStatus["DRAFT"] = "DRAFT";
|
|
12
|
+
PaymentPlanConfigurationStatus["ACTIVE"] = "ACTIVE";
|
|
13
|
+
PaymentPlanConfigurationStatus["ARCHIVED"] = "ARCHIVED";
|
|
14
|
+
})(PaymentPlanConfigurationStatus || (exports.PaymentPlanConfigurationStatus = PaymentPlanConfigurationStatus = {}));
|
|
15
|
+
var PaymentPlanFrequency;
|
|
16
|
+
(function (PaymentPlanFrequency) {
|
|
17
|
+
PaymentPlanFrequency["WEEKLY"] = "WEEKLY";
|
|
18
|
+
PaymentPlanFrequency["BIWEEKLY"] = "BIWEEKLY";
|
|
19
|
+
PaymentPlanFrequency["MONTHLY"] = "MONTHLY";
|
|
20
|
+
PaymentPlanFrequency["CUSTOM"] = "CUSTOM";
|
|
21
|
+
})(PaymentPlanFrequency || (exports.PaymentPlanFrequency = PaymentPlanFrequency = {}));
|
|
22
|
+
var PaymentDueDateAdjustment;
|
|
23
|
+
(function (PaymentDueDateAdjustment) {
|
|
24
|
+
PaymentDueDateAdjustment["NONE"] = "NONE";
|
|
25
|
+
PaymentDueDateAdjustment["NEXT_BUSINESS_DAY"] = "NEXT_BUSINESS_DAY";
|
|
26
|
+
PaymentDueDateAdjustment["PREVIOUS_BUSINESS_DAY"] = "PREVIOUS_BUSINESS_DAY";
|
|
27
|
+
})(PaymentDueDateAdjustment || (exports.PaymentDueDateAdjustment = PaymentDueDateAdjustment = {}));
|
|
28
|
+
var DecimalRoundingMode;
|
|
29
|
+
(function (DecimalRoundingMode) {
|
|
30
|
+
DecimalRoundingMode["HALF_UP"] = "HALF_UP";
|
|
31
|
+
DecimalRoundingMode["HALF_EVEN"] = "HALF_EVEN";
|
|
32
|
+
DecimalRoundingMode["UP"] = "UP";
|
|
33
|
+
DecimalRoundingMode["DOWN"] = "DOWN";
|
|
34
|
+
})(DecimalRoundingMode || (exports.DecimalRoundingMode = DecimalRoundingMode = {}));
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ICollectionAuditedEntity } from './Common';
|
|
2
|
+
export interface ICreditor extends ICollectionAuditedEntity {
|
|
3
|
+
name: string;
|
|
4
|
+
legalName?: string;
|
|
5
|
+
taxId?: string;
|
|
6
|
+
externalReferences?: {
|
|
7
|
+
system: string;
|
|
8
|
+
externalId: string;
|
|
9
|
+
}[];
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface IDebtPortfolio extends ICollectionAuditedEntity {
|
|
13
|
+
creditorId: string;
|
|
14
|
+
name: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
currency: string;
|
|
17
|
+
decimalPlaces: number;
|
|
18
|
+
enabled: boolean;
|
|
19
|
+
defaultAssignedGroupId?: string;
|
|
20
|
+
interestConfigurationId?: string;
|
|
21
|
+
paymentPlanFailurePolicyId?: string;
|
|
22
|
+
promiseMonitoringPolicyId?: string;
|
|
23
|
+
commissionRuleSetId?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare enum DebtBatchStatus {
|
|
26
|
+
PENDING = "PENDING",
|
|
27
|
+
PROCESSING = "PROCESSING",
|
|
28
|
+
COMPLETED = "COMPLETED",
|
|
29
|
+
COMPLETED_WITH_ERRORS = "COMPLETED_WITH_ERRORS",
|
|
30
|
+
FAILED = "FAILED",
|
|
31
|
+
CANCELLED = "CANCELLED"
|
|
32
|
+
}
|
|
33
|
+
export interface IDebtBatchError {
|
|
34
|
+
rowNumber?: number;
|
|
35
|
+
externalRowId?: string;
|
|
36
|
+
fieldName?: string;
|
|
37
|
+
code: string;
|
|
38
|
+
message: string;
|
|
39
|
+
}
|
|
40
|
+
export interface IDebtBatch extends ICollectionAuditedEntity {
|
|
41
|
+
portfolioId: string;
|
|
42
|
+
name: string;
|
|
43
|
+
referencePeriod?: string;
|
|
44
|
+
status: DebtBatchStatus;
|
|
45
|
+
sourceFileAttachmentId?: string;
|
|
46
|
+
totalRows: number;
|
|
47
|
+
acceptedRows: number;
|
|
48
|
+
rejectedRows: number;
|
|
49
|
+
errors?: IDebtBatchError[];
|
|
50
|
+
processingStartedAt?: Date;
|
|
51
|
+
processingCompletedAt?: Date;
|
|
52
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DebtBatchStatus = void 0;
|
|
4
|
+
var DebtBatchStatus;
|
|
5
|
+
(function (DebtBatchStatus) {
|
|
6
|
+
DebtBatchStatus["PENDING"] = "PENDING";
|
|
7
|
+
DebtBatchStatus["PROCESSING"] = "PROCESSING";
|
|
8
|
+
DebtBatchStatus["COMPLETED"] = "COMPLETED";
|
|
9
|
+
DebtBatchStatus["COMPLETED_WITH_ERRORS"] = "COMPLETED_WITH_ERRORS";
|
|
10
|
+
DebtBatchStatus["FAILED"] = "FAILED";
|
|
11
|
+
DebtBatchStatus["CANCELLED"] = "CANCELLED";
|
|
12
|
+
})(DebtBatchStatus || (exports.DebtBatchStatus = DebtBatchStatus = {}));
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ICollectionAuditedEntity, ICollectionMoney } from './Common';
|
|
2
|
+
export declare enum PaymentPromiseStatus {
|
|
3
|
+
PENDING = "PENDING",
|
|
4
|
+
PARTIALLY_FULFILLED = "PARTIALLY_FULFILLED",
|
|
5
|
+
FULFILLED = "FULFILLED",
|
|
6
|
+
OVERDUE = "OVERDUE",
|
|
7
|
+
BROKEN = "BROKEN",
|
|
8
|
+
CANCELLED = "CANCELLED"
|
|
9
|
+
}
|
|
10
|
+
export interface IPaymentPromise extends ICollectionAuditedEntity {
|
|
11
|
+
portfolioId: string;
|
|
12
|
+
contactId: string;
|
|
13
|
+
debtIds: string[];
|
|
14
|
+
paymentPlanId?: string;
|
|
15
|
+
installmentId?: string;
|
|
16
|
+
promisedAmount: ICollectionMoney;
|
|
17
|
+
receivedAmount: ICollectionMoney;
|
|
18
|
+
promisedFor: Date;
|
|
19
|
+
status: PaymentPromiseStatus;
|
|
20
|
+
agentId: string;
|
|
21
|
+
paymentIds: string[];
|
|
22
|
+
fulfilledAt?: Date;
|
|
23
|
+
brokenAt?: Date;
|
|
24
|
+
cancellationReason?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare enum PromiseAlertSeverity {
|
|
27
|
+
INFO = "INFO",
|
|
28
|
+
WARNING = "WARNING",
|
|
29
|
+
CRITICAL = "CRITICAL"
|
|
30
|
+
}
|
|
31
|
+
export declare enum PromiseAlertRecipientType {
|
|
32
|
+
AGENT = "AGENT",
|
|
33
|
+
ASSIGNED_GROUP = "ASSIGNED_GROUP",
|
|
34
|
+
SUPERVISOR = "SUPERVISOR",
|
|
35
|
+
ROLE = "ROLE"
|
|
36
|
+
}
|
|
37
|
+
export interface IPromiseAlertRule {
|
|
38
|
+
id: string;
|
|
39
|
+
offsetMinutes: number;
|
|
40
|
+
severity: PromiseAlertSeverity;
|
|
41
|
+
recipientTypes: PromiseAlertRecipientType[];
|
|
42
|
+
roleIds?: string[];
|
|
43
|
+
notificationChannels: string[];
|
|
44
|
+
}
|
|
45
|
+
export interface IPromiseMonitoringPolicy extends ICollectionAuditedEntity {
|
|
46
|
+
name: string;
|
|
47
|
+
enabled: boolean;
|
|
48
|
+
rules: IPromiseAlertRule[];
|
|
49
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PromiseAlertRecipientType = exports.PromiseAlertSeverity = exports.PaymentPromiseStatus = void 0;
|
|
4
|
+
var PaymentPromiseStatus;
|
|
5
|
+
(function (PaymentPromiseStatus) {
|
|
6
|
+
PaymentPromiseStatus["PENDING"] = "PENDING";
|
|
7
|
+
PaymentPromiseStatus["PARTIALLY_FULFILLED"] = "PARTIALLY_FULFILLED";
|
|
8
|
+
PaymentPromiseStatus["FULFILLED"] = "FULFILLED";
|
|
9
|
+
PaymentPromiseStatus["OVERDUE"] = "OVERDUE";
|
|
10
|
+
PaymentPromiseStatus["BROKEN"] = "BROKEN";
|
|
11
|
+
PaymentPromiseStatus["CANCELLED"] = "CANCELLED";
|
|
12
|
+
})(PaymentPromiseStatus || (exports.PaymentPromiseStatus = PaymentPromiseStatus = {}));
|
|
13
|
+
var PromiseAlertSeverity;
|
|
14
|
+
(function (PromiseAlertSeverity) {
|
|
15
|
+
PromiseAlertSeverity["INFO"] = "INFO";
|
|
16
|
+
PromiseAlertSeverity["WARNING"] = "WARNING";
|
|
17
|
+
PromiseAlertSeverity["CRITICAL"] = "CRITICAL";
|
|
18
|
+
})(PromiseAlertSeverity || (exports.PromiseAlertSeverity = PromiseAlertSeverity = {}));
|
|
19
|
+
var PromiseAlertRecipientType;
|
|
20
|
+
(function (PromiseAlertRecipientType) {
|
|
21
|
+
PromiseAlertRecipientType["AGENT"] = "AGENT";
|
|
22
|
+
PromiseAlertRecipientType["ASSIGNED_GROUP"] = "ASSIGNED_GROUP";
|
|
23
|
+
PromiseAlertRecipientType["SUPERVISOR"] = "SUPERVISOR";
|
|
24
|
+
PromiseAlertRecipientType["ROLE"] = "ROLE";
|
|
25
|
+
})(PromiseAlertRecipientType || (exports.PromiseAlertRecipientType = PromiseAlertRecipientType = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './Common';
|
|
2
|
+
export * from './Debt';
|
|
3
|
+
export * from './Api';
|
|
4
|
+
export * from './Portfolio';
|
|
5
|
+
export * from './Interest';
|
|
6
|
+
export * from './PaymentPlan';
|
|
7
|
+
export * from './PaymentPlanConfiguration';
|
|
8
|
+
export * from './Payment';
|
|
9
|
+
export * from './Promise';
|
|
10
|
+
export * from './Commission';
|
|
11
|
+
export * from './Dashboard';
|