@trii/types 2.10.712 → 2.10.713
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Automations/Events/Event.d.ts +3 -3
- package/dist/Contacts/CommunicationEndpoint.d.ts +8 -8
- package/dist/Conversations/Conversation.d.ts +8 -8
- package/dist/Conversations/InboxMongo.d.ts +12 -12
- package/dist/Conversations/Routing.d.ts +10 -10
- package/dist/Tickets/AdvancedApi.d.ts +60 -0
- package/dist/Tickets/AdvancedApi.js +12 -1
- package/dist/index.d.ts +23 -23
- package/dist/index.js +59 -59
- package/package.json +12 -12
- package/dist/Conversations/DashBoard/dashboardForms.d.ts +0 -44
- package/dist/Conversations/DashBoard/dashboardForms.js +0 -24
- package/dist/Conversations/InboxCounters.d.ts +0 -18
- package/dist/Conversations/InboxCounters.js +0 -2
- package/dist/src/AI/Credential.d.ts +0 -13
- package/dist/src/AI/Credential.js +0 -2
- package/dist/src/AI/Documents/Document.d.ts +0 -36
- package/dist/src/AI/Documents/Document.js +0 -15
- package/dist/src/AI/Documents/Store.d.ts +0 -25
- package/dist/src/AI/Documents/Store.js +0 -10
- package/dist/src/AI/Map.d.ts +0 -13
- package/dist/src/AI/Map.js +0 -2
- package/dist/src/AI/Provider.d.ts +0 -6
- package/dist/src/AI/Provider.js +0 -2
- package/dist/src/AI/Threads/API.d.ts +0 -55
- package/dist/src/AI/Threads/API.js +0 -2
- package/dist/src/AI/Threads/Message.d.ts +0 -61
- package/dist/src/AI/Threads/Message.js +0 -2
- package/dist/src/AI/Threads/Thread.d.ts +0 -22
- package/dist/src/AI/Threads/Thread.js +0 -2
- package/dist/src/AI/Threads/index.d.ts +0 -3
- package/dist/src/AI/Threads/index.js +0 -19
- package/dist/src/AI/aiModuleStatus.d.ts +0 -3
- package/dist/src/AI/aiModuleStatus.js +0 -2
- package/dist/src/AI/index.d.ts +0 -4
- package/dist/src/AI/index.js +0 -20
- package/dist/src/Accounts/accounts.d.ts +0 -88
- package/dist/src/Accounts/accounts.js +0 -24
- package/dist/src/Accounts/device.d.ts +0 -31
- package/dist/src/Accounts/device.js +0 -19
- package/dist/src/Accounts/index.d.ts +0 -2
- package/dist/src/Accounts/index.js +0 -18
- package/dist/src/ApiResponses/index.d.ts +0 -9
- package/dist/src/ApiResponses/index.js +0 -2
- package/dist/src/AuditLogs/auditLog.d.ts +0 -9
- package/dist/src/AuditLogs/auditLog.js +0 -2
- package/dist/src/AuditLogs/auditLogType.d.ts +0 -5
- package/dist/src/AuditLogs/auditLogType.js +0 -9
- package/dist/src/AuditLogs/index.d.ts +0 -2
- package/dist/src/AuditLogs/index.js +0 -18
- package/dist/src/Calendar/Calendar.d.ts +0 -18
- package/dist/src/Calendar/Calendar.js +0 -2
- package/dist/src/Calendar/Common.d.ts +0 -77
- package/dist/src/Calendar/Common.js +0 -16
- package/dist/src/Calendar/Event.d.ts +0 -64
- package/dist/src/Calendar/Event.js +0 -16
- package/dist/src/Calendar/Events.d.ts +0 -61
- package/dist/src/Calendar/Events.js +0 -5
- package/dist/src/Calendar/Task.d.ts +0 -12
- package/dist/src/Calendar/Task.js +0 -2
- package/dist/src/Calendar/Tasks.d.ts +0 -18
- package/dist/src/Calendar/Tasks.js +0 -5
- package/dist/src/Calendar/index.d.ts +0 -3
- package/dist/src/Calendar/index.js +0 -19
- package/dist/src/Calls/Audio.d.ts +0 -17
- package/dist/src/Calls/Audio.js +0 -8
- package/dist/src/Calls/Call.d.ts +0 -59
- package/dist/src/Calls/Call.js +0 -25
- package/dist/src/Calls/Codecs.d.ts +0 -5
- package/dist/src/Calls/Codecs.js +0 -21
- package/dist/src/Calls/Extension.d.ts +0 -24
- package/dist/src/Calls/Extension.js +0 -2
- package/dist/src/Calls/Options.d.ts +0 -5
- package/dist/src/Calls/Options.js +0 -2
- package/dist/src/Calls/Queue.d.ts +0 -52
- package/dist/src/Calls/Queue.js +0 -12
- package/dist/src/Calls/RingGroup.d.ts +0 -46
- package/dist/src/Calls/RingGroup.js +0 -27
- package/dist/src/Calls/Transport.d.ts +0 -6
- package/dist/src/Calls/Transport.js +0 -11
- package/dist/src/Calls/Trunk.d.ts +0 -31
- package/dist/src/Calls/Trunk.js +0 -2
- package/dist/src/Calls/index.d.ts +0 -6
- package/dist/src/Calls/index.js +0 -22
- package/dist/src/Collections/Api.d.ts +0 -41
- package/dist/src/Collections/Api.js +0 -2
- package/dist/src/Collections/Commission.d.ts +0 -52
- package/dist/src/Collections/Commission.js +0 -10
- package/dist/src/Collections/Common.d.ts +0 -78
- package/dist/src/Collections/Common.js +0 -39
- package/dist/src/Collections/Dashboard.d.ts +0 -27
- package/dist/src/Collections/Dashboard.js +0 -2
- package/dist/src/Collections/Debt.d.ts +0 -97
- package/dist/src/Collections/Debt.js +0 -12
- package/dist/src/Collections/Interest.d.ts +0 -38
- package/dist/src/Collections/Interest.js +0 -25
- package/dist/src/Collections/Payment.d.ts +0 -87
- package/dist/src/Collections/Payment.js +0 -21
- package/dist/src/Collections/PaymentPlan.d.ts +0 -87
- package/dist/src/Collections/PaymentPlan.js +0 -21
- package/dist/src/Collections/PaymentPlanConfiguration.d.ts +0 -100
- package/dist/src/Collections/PaymentPlanConfiguration.js +0 -34
- package/dist/src/Collections/Portfolio.d.ts +0 -52
- package/dist/src/Collections/Portfolio.js +0 -12
- package/dist/src/Collections/Promise.d.ts +0 -49
- package/dist/src/Collections/Promise.js +0 -25
- package/dist/src/Collections/index.d.ts +0 -11
- package/dist/src/Collections/index.js +0 -27
- package/dist/src/Common/API/AuthApiKey.d.ts +0 -5
- package/dist/src/Common/API/AuthApiKey.js +0 -2
- package/dist/src/Common/API/AuthBasic.d.ts +0 -4
- package/dist/src/Common/API/AuthBasic.js +0 -2
- package/dist/src/Common/API/AuthBearer.d.ts +0 -5
- package/dist/src/Common/API/AuthBearer.js +0 -2
- package/dist/src/Common/API/AuthType.d.ts +0 -6
- package/dist/src/Common/API/AuthType.js +0 -10
- package/dist/src/Common/API/Method.d.ts +0 -4
- package/dist/src/Common/API/Method.js +0 -8
- package/dist/src/Common/API/index.d.ts +0 -5
- package/dist/src/Common/API/index.js +0 -21
- package/dist/src/Common/Channels/Channel.d.ts +0 -99
- package/dist/src/Common/Channels/Channel.js +0 -20
- package/dist/src/Common/Channels/ChannelAccount.d.ts +0 -35
- package/dist/src/Common/Channels/ChannelAccount.js +0 -17
- package/dist/src/Common/Channels/ChannelType.d.ts +0 -24
- package/dist/src/Common/Channels/ChannelType.js +0 -28
- package/dist/src/Common/Channels/Email.d.ts +0 -62
- package/dist/src/Common/Channels/Email.js +0 -36
- package/dist/src/Common/Channels/Facebook.d.ts +0 -25
- package/dist/src/Common/Channels/Facebook.js +0 -6
- package/dist/src/Common/Channels/Form.d.ts +0 -118
- package/dist/src/Common/Channels/Form.js +0 -32
- package/dist/src/Common/Channels/GoogleBusiness.d.ts +0 -20
- package/dist/src/Common/Channels/GoogleBusiness.js +0 -9
- package/dist/src/Common/Channels/Instagram.d.ts +0 -29
- package/dist/src/Common/Channels/Instagram.js +0 -14
- package/dist/src/Common/Channels/MercadoLibre.d.ts +0 -27
- package/dist/src/Common/Channels/MercadoLibre.js +0 -9
- package/dist/src/Common/Channels/Pbx.d.ts +0 -2
- package/dist/src/Common/Channels/Pbx.js +0 -6
- package/dist/src/Common/Channels/Permission.d.ts +0 -6
- package/dist/src/Common/Channels/Permission.js +0 -6
- package/dist/src/Common/Channels/RCS.d.ts +0 -37
- package/dist/src/Common/Channels/RCS.js +0 -9
- package/dist/src/Common/Channels/Sip.d.ts +0 -2
- package/dist/src/Common/Channels/Sip.js +0 -6
- package/dist/src/Common/Channels/Sms.d.ts +0 -46
- package/dist/src/Common/Channels/Sms.js +0 -16
- package/dist/src/Common/Channels/WebChat.d.ts +0 -62
- package/dist/src/Common/Channels/WebChat.js +0 -19
- package/dist/src/Common/Channels/WhatsApp.d.ts +0 -89
- package/dist/src/Common/Channels/WhatsApp.js +0 -18
- package/dist/src/Common/Channels/index.d.ts +0 -16
- package/dist/src/Common/Channels/index.js +0 -32
- package/dist/src/Common/EventsQueue/Data/postComment.d.ts +0 -26
- package/dist/src/Common/EventsQueue/Data/postComment.js +0 -2
- package/dist/src/Common/EventsQueue/EmailTemplate.d.ts +0 -10
- package/dist/src/Common/EventsQueue/EmailTemplate.js +0 -2
- package/dist/src/Common/EventsQueue/EventQueue.d.ts +0 -13
- package/dist/src/Common/EventsQueue/EventQueue.js +0 -2
- package/dist/src/Common/EventsQueue/UserUpdate.d.ts +0 -8
- package/dist/src/Common/EventsQueue/UserUpdate.js +0 -2
- package/dist/src/Common/EventsQueue/index.d.ts +0 -3
- package/dist/src/Common/EventsQueue/index.js +0 -19
- package/dist/src/Common/Logs/Log.d.ts +0 -18
- package/dist/src/Common/Logs/Log.js +0 -13
- package/dist/src/Common/Logs/index.d.ts +0 -1
- package/dist/src/Common/Logs/index.js +0 -17
- package/dist/src/Common/Messages/MediaFile.d.ts +0 -5
- package/dist/src/Common/Messages/MediaFile.js +0 -2
- package/dist/src/Common/Messages/Message.d.ts +0 -423
- package/dist/src/Common/Messages/Message.js +0 -62
- package/dist/src/Common/Messages/Template.d.ts +0 -86
- package/dist/src/Common/Messages/Template.js +0 -26
- package/dist/src/Common/Messages/index.d.ts +0 -3
- package/dist/src/Common/Messages/index.js +0 -19
- package/dist/src/Common/Notifications/Notification.d.ts +0 -19
- package/dist/src/Common/Notifications/Notification.js +0 -10
- package/dist/src/Common/Notifications/UserNotificationsConfig.d.ts +0 -33
- package/dist/src/Common/Notifications/UserNotificationsConfig.js +0 -18
- package/dist/src/Common/Notifications/index.d.ts +0 -2
- package/dist/src/Common/Notifications/index.js +0 -18
- package/dist/src/Common/Schedules/Schedules.d.ts +0 -32
- package/dist/src/Common/Schedules/Schedules.js +0 -2
- package/dist/src/Common/Schedules/index.d.ts +0 -1
- package/dist/src/Common/Schedules/index.js +0 -17
- package/dist/src/Common/index.d.ts +0 -6
- package/dist/src/Common/index.js +0 -42
- package/dist/src/Contacts/DuplicateContact.d.ts +0 -11
- package/dist/src/Contacts/DuplicateContact.js +0 -2
- package/dist/src/Contacts/File.d.ts +0 -17
- package/dist/src/Contacts/File.js +0 -2
- package/dist/src/Contacts/Import.d.ts +0 -18
- package/dist/src/Contacts/Import.js +0 -2
- package/dist/src/Contacts/Label.d.ts +0 -9
- package/dist/src/Contacts/Label.js +0 -2
- package/dist/src/Contacts/Note.d.ts +0 -15
- package/dist/src/Contacts/Note.js +0 -2
- package/dist/src/Contacts/Relationship.d.ts +0 -28
- package/dist/src/Contacts/Relationship.js +0 -16
- package/dist/src/Contacts/contacts.d.ts +0 -269
- package/dist/src/Contacts/contacts.js +0 -54
- package/dist/src/Contacts/index.d.ts +0 -9
- package/dist/src/Contacts/index.js +0 -25
- package/dist/src/Contacts/options.d.ts +0 -5
- package/dist/src/Contacts/options.js +0 -2
- package/dist/src/Contacts/segments.d.ts +0 -52
- package/dist/src/Contacts/segments.js +0 -53
- package/dist/src/Conversations/Conversation.d.ts +0 -167
- package/dist/src/Conversations/Conversation.js +0 -56
- package/dist/src/Conversations/DashBoard/dashboard.d.ts +0 -115
- package/dist/src/Conversations/DashBoard/dashboard.js +0 -65
- package/dist/src/Conversations/DashBoard/dashboardChannels.d.ts +0 -5
- package/dist/src/Conversations/DashBoard/dashboardChannels.js +0 -6
- package/dist/src/Conversations/DashBoard/dashboardForms.d.ts +0 -44
- package/dist/src/Conversations/DashBoard/dashboardForms.js +0 -24
- package/dist/src/Conversations/DashBoard/dashboardMessages.d.ts +0 -13
- package/dist/src/Conversations/DashBoard/dashboardMessages.js +0 -9
- package/dist/src/Conversations/Ending.d.ts +0 -17
- package/dist/src/Conversations/Ending.js +0 -2
- package/dist/src/Conversations/Flows/Definitions.d.ts +0 -10
- package/dist/src/Conversations/Flows/Definitions.js +0 -2
- package/dist/src/Conversations/Flows/Flow.d.ts +0 -222
- package/dist/src/Conversations/Flows/Flow.js +0 -50
- package/dist/src/Conversations/Flows/FlowInfo.d.ts +0 -9
- package/dist/src/Conversations/Flows/FlowInfo.js +0 -2
- package/dist/src/Conversations/Flows/Workflows/Workflow.d.ts +0 -179
- package/dist/src/Conversations/Flows/Workflows/Workflow.js +0 -48
- package/dist/src/Conversations/Flows/Workflows/index.d.ts +0 -1
- package/dist/src/Conversations/Flows/Workflows/index.js +0 -17
- package/dist/src/Conversations/Flows/index.d.ts +0 -4
- package/dist/src/Conversations/Flows/index.js +0 -20
- package/dist/src/Conversations/Groups/Group.d.ts +0 -23
- package/dist/src/Conversations/Groups/Group.js +0 -8
- package/dist/src/Conversations/Label.d.ts +0 -10
- package/dist/src/Conversations/Label.js +0 -2
- package/dist/src/Conversations/QuickResponse.d.ts +0 -34
- package/dist/src/Conversations/QuickResponse.js +0 -2
- package/dist/src/Conversations/SocialWalls.d.ts +0 -72
- package/dist/src/Conversations/SocialWalls.js +0 -2
- package/dist/src/Conversations/Survey.d.ts +0 -19
- package/dist/src/Conversations/Survey.js +0 -9
- package/dist/src/Conversations/WebHook.d.ts +0 -22
- package/dist/src/Conversations/WebHook.js +0 -2
- package/dist/src/Conversations/index.d.ts +0 -13
- package/dist/src/Conversations/index.js +0 -52
- package/dist/src/Docs/Document.d.ts +0 -58
- package/dist/src/Docs/Document.js +0 -29
- package/dist/src/Docs/Store.d.ts +0 -37
- package/dist/src/Docs/Store.js +0 -17
- package/dist/src/Docs/index.d.ts +0 -2
- package/dist/src/Docs/index.js +0 -18
- package/dist/src/Marketing/Campaign.d.ts +0 -69
- package/dist/src/Marketing/Campaign.js +0 -30
- package/dist/src/Marketing/Dashboard.d.ts +0 -48
- package/dist/src/Marketing/Dashboard.js +0 -2
- package/dist/src/Marketing/Options.d.ts +0 -12
- package/dist/src/Marketing/Options.js +0 -9
- package/dist/src/Marketing/Template.d.ts +0 -19
- package/dist/src/Marketing/Template.js +0 -8
- package/dist/src/Marketing/index.d.ts +0 -4
- package/dist/src/Marketing/index.js +0 -20
- package/dist/src/PublicAPI/apiKey.d.ts +0 -12
- package/dist/src/PublicAPI/apiKey.js +0 -2
- package/dist/src/Reports/ScheduledReport.d.ts +0 -205
- package/dist/src/Reports/ScheduledReport.js +0 -57
- package/dist/src/Reports/aiReport.d.ts +0 -20
- package/dist/src/Reports/aiReport.js +0 -2
- package/dist/src/Reports/apiResult.d.ts +0 -5
- package/dist/src/Reports/apiResult.js +0 -2
- package/dist/src/Reports/index.d.ts +0 -3
- package/dist/src/Reports/index.js +0 -19
- package/dist/src/Sales/Api.d.ts +0 -40
- package/dist/src/Sales/Api.js +0 -2
- package/dist/src/Sales/Common.d.ts +0 -72
- package/dist/src/Sales/Common.js +0 -31
- package/dist/src/Sales/Dashboard.d.ts +0 -25
- package/dist/src/Sales/Dashboard.js +0 -2
- package/dist/src/Sales/Lead.d.ts +0 -99
- package/dist/src/Sales/Lead.js +0 -8
- package/dist/src/Sales/index.d.ts +0 -4
- package/dist/src/Sales/index.js +0 -20
- package/dist/src/Security/Security.d.ts +0 -5
- package/dist/src/Security/Security.js +0 -2
- package/dist/src/Security/index.d.ts +0 -1
- package/dist/src/Security/index.js +0 -17
- package/dist/src/Shop/Cart/cart.d.ts +0 -19
- package/dist/src/Shop/Cart/cart.js +0 -2
- package/dist/src/Shop/index.d.ts +0 -1
- package/dist/src/Shop/index.js +0 -17
- package/dist/src/Spaces/Dashboard.d.ts +0 -4
- package/dist/src/Spaces/Dashboard.js +0 -2
- package/dist/src/Spaces/index.d.ts +0 -2
- package/dist/src/Spaces/index.js +0 -18
- package/dist/src/Spaces/spaces.d.ts +0 -104
- package/dist/src/Spaces/spaces.js +0 -85
- package/dist/src/Tickets/AI.d.ts +0 -400
- package/dist/src/Tickets/AI.js +0 -113
- package/dist/src/Tickets/AdvancedApi.d.ts +0 -486
- package/dist/src/Tickets/AdvancedApi.js +0 -108
- package/dist/src/Tickets/Api.d.ts +0 -62
- package/dist/src/Tickets/Api.js +0 -8
- package/dist/src/Tickets/Approval.d.ts +0 -139
- package/dist/src/Tickets/Approval.js +0 -30
- package/dist/src/Tickets/Automation.d.ts +0 -237
- package/dist/src/Tickets/Automation.js +0 -74
- package/dist/src/Tickets/Category.d.ts +0 -53
- package/dist/src/Tickets/Category.js +0 -2
- package/dist/src/Tickets/Common.d.ts +0 -90
- package/dist/src/Tickets/Common.js +0 -38
- package/dist/src/Tickets/Conversation.d.ts +0 -68
- package/dist/src/Tickets/Conversation.js +0 -30
- package/dist/src/Tickets/Dashboard.d.ts +0 -408
- package/dist/src/Tickets/Dashboard.js +0 -206
- package/dist/src/Tickets/Fields.d.ts +0 -133
- package/dist/src/Tickets/Fields.js +0 -44
- package/dist/src/Tickets/Layouts.d.ts +0 -63
- package/dist/src/Tickets/Layouts.js +0 -22
- package/dist/src/Tickets/Routing.d.ts +0 -290
- package/dist/src/Tickets/Routing.js +0 -87
- package/dist/src/Tickets/Satisfaction.d.ts +0 -31
- package/dist/src/Tickets/Satisfaction.js +0 -9
- package/dist/src/Tickets/Security.d.ts +0 -302
- package/dist/src/Tickets/Security.js +0 -107
- package/dist/src/Tickets/SelfService.d.ts +0 -255
- package/dist/src/Tickets/SelfService.js +0 -56
- package/dist/src/Tickets/Sla.d.ts +0 -253
- package/dist/src/Tickets/Sla.js +0 -73
- package/dist/src/Tickets/Task.d.ts +0 -122
- package/dist/src/Tickets/Task.js +0 -17
- package/dist/src/Tickets/Ticket.d.ts +0 -133
- package/dist/src/Tickets/Ticket.js +0 -2
- package/dist/src/Tickets/Views.d.ts +0 -77
- package/dist/src/Tickets/Views.js +0 -23
- package/dist/src/Tickets/Workflow.d.ts +0 -109
- package/dist/src/Tickets/Workflow.js +0 -44
- package/dist/src/Tickets/index.d.ts +0 -20
- package/dist/src/Tickets/index.js +0 -36
- package/dist/src/Users/Signature.d.ts +0 -74
- package/dist/src/Users/Signature.js +0 -2
- package/dist/src/Users/UserActivitySummary.d.ts +0 -5
- package/dist/src/Users/UserActivitySummary.js +0 -2
- package/dist/src/Users/UserProfile.d.ts +0 -97
- package/dist/src/Users/UserProfile.js +0 -5
- package/dist/src/Users/UserTrii.d.ts +0 -102
- package/dist/src/Users/UserTrii.js +0 -10
- package/dist/src/Users/UserType.d.ts +0 -10
- package/dist/src/Users/UserType.js +0 -13
- package/dist/src/Users/index.d.ts +0 -5
- package/dist/src/Users/index.js +0 -21
- package/dist/src/index.d.ts +0 -20
- package/dist/src/index.js +0 -56
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { TransportType } from "./Transport";
|
|
2
|
-
export interface ITrunk {
|
|
3
|
-
id: string;
|
|
4
|
-
spaceId: string;
|
|
5
|
-
providerName: string;
|
|
6
|
-
providerHost: string;
|
|
7
|
-
/**
|
|
8
|
-
* need register
|
|
9
|
-
*/
|
|
10
|
-
needRegister: boolean;
|
|
11
|
-
transportType: TransportType;
|
|
12
|
-
autoRecord: boolean;
|
|
13
|
-
keepOriginalCID: boolean;
|
|
14
|
-
keepTrunkCID: boolean;
|
|
15
|
-
disabled: boolean;
|
|
16
|
-
callerIdNumber: string;
|
|
17
|
-
callerIdName: string;
|
|
18
|
-
fromDomain: string;
|
|
19
|
-
/**
|
|
20
|
-
* Trunk Codecs
|
|
21
|
-
* e.g. "ulaw,alaw,gsm,g726,g729,ilbc,opus"
|
|
22
|
-
*/
|
|
23
|
-
codecs: string;
|
|
24
|
-
/**
|
|
25
|
-
* Trunk DTMF Mode
|
|
26
|
-
* e.g. "rfc4733"
|
|
27
|
-
*/
|
|
28
|
-
dtmfMode: string;
|
|
29
|
-
createdAt?: Date | null;
|
|
30
|
-
createdBy?: string | null;
|
|
31
|
-
}
|
package/dist/src/Calls/Trunk.js
DELETED
package/dist/src/Calls/index.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __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("./Call"), exports);
|
|
18
|
-
__exportStar(require("./RingGroup"), exports);
|
|
19
|
-
__exportStar(require("./Trunk"), exports);
|
|
20
|
-
__exportStar(require("./Transport"), exports);
|
|
21
|
-
__exportStar(require("./Codecs"), exports);
|
|
22
|
-
__exportStar(require("./Queue"), exports);
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { IDebt } from './Debt';
|
|
2
|
-
import { CollectionPropertyValue, DebtOrigin, DebtPriority, DebtStage } from './Common';
|
|
3
|
-
export interface IDebtFilter {
|
|
4
|
-
search?: string;
|
|
5
|
-
stages?: DebtStage[];
|
|
6
|
-
statusIds?: string[];
|
|
7
|
-
priorities?: DebtPriority[];
|
|
8
|
-
origins?: DebtOrigin[];
|
|
9
|
-
contactIds?: string[];
|
|
10
|
-
creditorIds?: string[];
|
|
11
|
-
portfolioIds?: string[];
|
|
12
|
-
batchIds?: string[];
|
|
13
|
-
assigneeIds?: string[];
|
|
14
|
-
dueFrom?: Date;
|
|
15
|
-
dueTo?: Date;
|
|
16
|
-
minimumDaysPastDue?: number;
|
|
17
|
-
fields?: {
|
|
18
|
-
fieldNameKey: string;
|
|
19
|
-
operator: string;
|
|
20
|
-
value?: CollectionPropertyValue;
|
|
21
|
-
}[];
|
|
22
|
-
}
|
|
23
|
-
export interface IDebtQuery {
|
|
24
|
-
cursor?: string;
|
|
25
|
-
limit?: number;
|
|
26
|
-
filter?: IDebtFilter;
|
|
27
|
-
sort?: {
|
|
28
|
-
fieldNameKey: string;
|
|
29
|
-
direction: 'ASC' | 'DESC';
|
|
30
|
-
}[];
|
|
31
|
-
}
|
|
32
|
-
export interface IDebtPage {
|
|
33
|
-
items: IDebt[];
|
|
34
|
-
nextCursor?: string;
|
|
35
|
-
hasMore: boolean;
|
|
36
|
-
}
|
|
37
|
-
export interface ITransitionDebtDto {
|
|
38
|
-
expectedVersion: number;
|
|
39
|
-
toStatusId: string;
|
|
40
|
-
comment?: string;
|
|
41
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { CollectionConditionOperator, CollectionPropertyValue, ICollectionAuditedEntity, ICollectionMoney } from './Common';
|
|
2
|
-
export declare enum CommissionBaseType {
|
|
3
|
-
TOTAL_COLLECTED = "TOTAL_COLLECTED",
|
|
4
|
-
PRINCIPAL_COLLECTED = "PRINCIPAL_COLLECTED",
|
|
5
|
-
INTEREST_COLLECTED = "INTEREST_COLLECTED",
|
|
6
|
-
FEES_COLLECTED = "FEES_COLLECTED"
|
|
7
|
-
}
|
|
8
|
-
export interface ICommissionCondition {
|
|
9
|
-
fieldNameKey: string;
|
|
10
|
-
operator: CollectionConditionOperator;
|
|
11
|
-
expectedValue?: CollectionPropertyValue;
|
|
12
|
-
}
|
|
13
|
-
export interface ICommissionTier {
|
|
14
|
-
id: string;
|
|
15
|
-
minimum?: ICollectionMoney;
|
|
16
|
-
maximum?: ICollectionMoney;
|
|
17
|
-
percentage: string;
|
|
18
|
-
}
|
|
19
|
-
export interface ICommissionRule extends ICollectionAuditedEntity {
|
|
20
|
-
ruleSetId: string;
|
|
21
|
-
name: string;
|
|
22
|
-
enabled: boolean;
|
|
23
|
-
order: number;
|
|
24
|
-
baseType: CommissionBaseType;
|
|
25
|
-
fixedPercentage?: string;
|
|
26
|
-
tiers?: ICommissionTier[];
|
|
27
|
-
conditions?: ICommissionCondition[];
|
|
28
|
-
validFrom?: Date;
|
|
29
|
-
validTo?: Date;
|
|
30
|
-
}
|
|
31
|
-
export interface ICommissionRuleSet extends ICollectionAuditedEntity {
|
|
32
|
-
portfolioId: string;
|
|
33
|
-
name: string;
|
|
34
|
-
enabled: boolean;
|
|
35
|
-
ruleIds: string[];
|
|
36
|
-
}
|
|
37
|
-
export interface IAgentCommissionResult {
|
|
38
|
-
id: string;
|
|
39
|
-
spaceId: string;
|
|
40
|
-
portfolioId: string;
|
|
41
|
-
paymentId: string;
|
|
42
|
-
userId: string;
|
|
43
|
-
ruleId: string;
|
|
44
|
-
ruleSnapshot?: string;
|
|
45
|
-
commissionBase: ICollectionMoney;
|
|
46
|
-
percentage: string;
|
|
47
|
-
commissionAmount: ICollectionMoney;
|
|
48
|
-
calculatedAt: Date;
|
|
49
|
-
adjustedAt?: Date;
|
|
50
|
-
adjustedBy?: string;
|
|
51
|
-
adjustmentReason?: string;
|
|
52
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CommissionBaseType = void 0;
|
|
4
|
-
var CommissionBaseType;
|
|
5
|
-
(function (CommissionBaseType) {
|
|
6
|
-
CommissionBaseType["TOTAL_COLLECTED"] = "TOTAL_COLLECTED";
|
|
7
|
-
CommissionBaseType["PRINCIPAL_COLLECTED"] = "PRINCIPAL_COLLECTED";
|
|
8
|
-
CommissionBaseType["INTEREST_COLLECTED"] = "INTEREST_COLLECTED";
|
|
9
|
-
CommissionBaseType["FEES_COLLECTED"] = "FEES_COLLECTED";
|
|
10
|
-
})(CommissionBaseType || (exports.CommissionBaseType = CommissionBaseType = {}));
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { IContactInfo } from '../Contacts/contacts';
|
|
2
|
-
export interface ICollectionMoney {
|
|
3
|
-
amount: string;
|
|
4
|
-
currency: string;
|
|
5
|
-
}
|
|
6
|
-
export interface ICollectionAuditedEntity {
|
|
7
|
-
id: string;
|
|
8
|
-
spaceId: string;
|
|
9
|
-
createdAt: Date;
|
|
10
|
-
createdBy: string;
|
|
11
|
-
updatedAt?: Date;
|
|
12
|
-
updatedBy?: string;
|
|
13
|
-
deletedAt?: Date;
|
|
14
|
-
deletedBy?: string;
|
|
15
|
-
}
|
|
16
|
-
export declare enum DebtStage {
|
|
17
|
-
OPEN = "OPEN",
|
|
18
|
-
IN_NEGOTIATION = "IN_NEGOTIATION",
|
|
19
|
-
PAYMENT_PLAN = "PAYMENT_PLAN",
|
|
20
|
-
SETTLED = "SETTLED",
|
|
21
|
-
UNCOLLECTIBLE = "UNCOLLECTIBLE",
|
|
22
|
-
CANCELLED = "CANCELLED"
|
|
23
|
-
}
|
|
24
|
-
export declare enum DebtPriority {
|
|
25
|
-
LOW = "LOW",
|
|
26
|
-
MEDIUM = "MEDIUM",
|
|
27
|
-
HIGH = "HIGH",
|
|
28
|
-
URGENT = "URGENT"
|
|
29
|
-
}
|
|
30
|
-
export declare enum DebtOrigin {
|
|
31
|
-
IMPORT = "IMPORT",
|
|
32
|
-
API = "API",
|
|
33
|
-
MANUAL = "MANUAL",
|
|
34
|
-
AUTOMATION = "AUTOMATION"
|
|
35
|
-
}
|
|
36
|
-
export interface IDebtStatus extends ICollectionAuditedEntity {
|
|
37
|
-
name: string;
|
|
38
|
-
description?: string;
|
|
39
|
-
color?: string;
|
|
40
|
-
order: number;
|
|
41
|
-
stage: DebtStage;
|
|
42
|
-
isInitial: boolean;
|
|
43
|
-
isFinal: boolean;
|
|
44
|
-
enabled: boolean;
|
|
45
|
-
}
|
|
46
|
-
export type CollectionPropertyValue = string | number | boolean | Date | null | CollectionPropertyValue[] | {
|
|
47
|
-
[key: string]: CollectionPropertyValue;
|
|
48
|
-
};
|
|
49
|
-
export interface IDebtProperty {
|
|
50
|
-
nameKey: string;
|
|
51
|
-
value: CollectionPropertyValue;
|
|
52
|
-
}
|
|
53
|
-
export declare enum CollectionConditionOperator {
|
|
54
|
-
EQUALS = "EQUALS",
|
|
55
|
-
NOT_EQUALS = "NOT_EQUALS",
|
|
56
|
-
EXISTS = "EXISTS",
|
|
57
|
-
NOT_EXISTS = "NOT_EXISTS",
|
|
58
|
-
GREATER_THAN = "GREATER_THAN",
|
|
59
|
-
GREATER_THAN_OR_EQUAL = "GREATER_THAN_OR_EQUAL",
|
|
60
|
-
LESS_THAN = "LESS_THAN",
|
|
61
|
-
LESS_THAN_OR_EQUAL = "LESS_THAN_OR_EQUAL",
|
|
62
|
-
IN = "IN",
|
|
63
|
-
NOT_IN = "NOT_IN"
|
|
64
|
-
}
|
|
65
|
-
export interface ICollectionDateRange {
|
|
66
|
-
from: Date;
|
|
67
|
-
to: Date;
|
|
68
|
-
}
|
|
69
|
-
export interface ICollectionMetricPoint {
|
|
70
|
-
date: Date;
|
|
71
|
-
value: number;
|
|
72
|
-
}
|
|
73
|
-
export interface ICollectionMetricGroup {
|
|
74
|
-
key: string;
|
|
75
|
-
label: string;
|
|
76
|
-
value: number;
|
|
77
|
-
}
|
|
78
|
-
export type IDebtContactProjection = IContactInfo;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CollectionConditionOperator = exports.DebtOrigin = exports.DebtPriority = exports.DebtStage = void 0;
|
|
4
|
-
var DebtStage;
|
|
5
|
-
(function (DebtStage) {
|
|
6
|
-
DebtStage["OPEN"] = "OPEN";
|
|
7
|
-
DebtStage["IN_NEGOTIATION"] = "IN_NEGOTIATION";
|
|
8
|
-
DebtStage["PAYMENT_PLAN"] = "PAYMENT_PLAN";
|
|
9
|
-
DebtStage["SETTLED"] = "SETTLED";
|
|
10
|
-
DebtStage["UNCOLLECTIBLE"] = "UNCOLLECTIBLE";
|
|
11
|
-
DebtStage["CANCELLED"] = "CANCELLED";
|
|
12
|
-
})(DebtStage || (exports.DebtStage = DebtStage = {}));
|
|
13
|
-
var DebtPriority;
|
|
14
|
-
(function (DebtPriority) {
|
|
15
|
-
DebtPriority["LOW"] = "LOW";
|
|
16
|
-
DebtPriority["MEDIUM"] = "MEDIUM";
|
|
17
|
-
DebtPriority["HIGH"] = "HIGH";
|
|
18
|
-
DebtPriority["URGENT"] = "URGENT";
|
|
19
|
-
})(DebtPriority || (exports.DebtPriority = DebtPriority = {}));
|
|
20
|
-
var DebtOrigin;
|
|
21
|
-
(function (DebtOrigin) {
|
|
22
|
-
DebtOrigin["IMPORT"] = "IMPORT";
|
|
23
|
-
DebtOrigin["API"] = "API";
|
|
24
|
-
DebtOrigin["MANUAL"] = "MANUAL";
|
|
25
|
-
DebtOrigin["AUTOMATION"] = "AUTOMATION";
|
|
26
|
-
})(DebtOrigin || (exports.DebtOrigin = DebtOrigin = {}));
|
|
27
|
-
var CollectionConditionOperator;
|
|
28
|
-
(function (CollectionConditionOperator) {
|
|
29
|
-
CollectionConditionOperator["EQUALS"] = "EQUALS";
|
|
30
|
-
CollectionConditionOperator["NOT_EQUALS"] = "NOT_EQUALS";
|
|
31
|
-
CollectionConditionOperator["EXISTS"] = "EXISTS";
|
|
32
|
-
CollectionConditionOperator["NOT_EXISTS"] = "NOT_EXISTS";
|
|
33
|
-
CollectionConditionOperator["GREATER_THAN"] = "GREATER_THAN";
|
|
34
|
-
CollectionConditionOperator["GREATER_THAN_OR_EQUAL"] = "GREATER_THAN_OR_EQUAL";
|
|
35
|
-
CollectionConditionOperator["LESS_THAN"] = "LESS_THAN";
|
|
36
|
-
CollectionConditionOperator["LESS_THAN_OR_EQUAL"] = "LESS_THAN_OR_EQUAL";
|
|
37
|
-
CollectionConditionOperator["IN"] = "IN";
|
|
38
|
-
CollectionConditionOperator["NOT_IN"] = "NOT_IN";
|
|
39
|
-
})(CollectionConditionOperator || (exports.CollectionConditionOperator = CollectionConditionOperator = {}));
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ICollectionDateRange, ICollectionMoney, ICollectionMetricGroup, ICollectionMetricPoint } from './Common';
|
|
2
|
-
export interface ICollectionsDashboardFilter {
|
|
3
|
-
range: ICollectionDateRange;
|
|
4
|
-
creditorIds?: string[];
|
|
5
|
-
portfolioIds?: string[];
|
|
6
|
-
batchIds?: string[];
|
|
7
|
-
statusIds?: string[];
|
|
8
|
-
assigneeIds?: string[];
|
|
9
|
-
assignedGroupIds?: string[];
|
|
10
|
-
}
|
|
11
|
-
export interface ICollectionsDashboardMetrics {
|
|
12
|
-
range: ICollectionDateRange;
|
|
13
|
-
totalAssigned: ICollectionMoney;
|
|
14
|
-
outstandingBalance: ICollectionMoney;
|
|
15
|
-
collected: ICollectionMoney;
|
|
16
|
-
recoveryPercentage: number;
|
|
17
|
-
activePaymentPlans: number;
|
|
18
|
-
failedPaymentPlans: number;
|
|
19
|
-
pendingPromises: number;
|
|
20
|
-
brokenPromises: number;
|
|
21
|
-
generatedCommissions: ICollectionMoney;
|
|
22
|
-
collectedSeries: ICollectionMetricPoint[];
|
|
23
|
-
byPortfolio: ICollectionMetricGroup[];
|
|
24
|
-
byAgent: ICollectionMetricGroup[];
|
|
25
|
-
byStatus: ICollectionMetricGroup[];
|
|
26
|
-
byDaysPastDueRange: ICollectionMetricGroup[];
|
|
27
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
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 = {}));
|
|
@@ -1,38 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
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 = {}));
|
|
@@ -1,87 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
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 = {}));
|