@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,87 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
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 = {}));
|
|
@@ -1,100 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
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 = {}));
|
|
@@ -1,52 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
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 = {}));
|
|
@@ -1,49 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
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 = {}));
|
|
@@ -1,11 +0,0 @@
|
|
|
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';
|
|
@@ -1,27 +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("./Common"), exports);
|
|
18
|
-
__exportStar(require("./Debt"), exports);
|
|
19
|
-
__exportStar(require("./Api"), exports);
|
|
20
|
-
__exportStar(require("./Portfolio"), exports);
|
|
21
|
-
__exportStar(require("./Interest"), exports);
|
|
22
|
-
__exportStar(require("./PaymentPlan"), exports);
|
|
23
|
-
__exportStar(require("./PaymentPlanConfiguration"), exports);
|
|
24
|
-
__exportStar(require("./Payment"), exports);
|
|
25
|
-
__exportStar(require("./Promise"), exports);
|
|
26
|
-
__exportStar(require("./Commission"), exports);
|
|
27
|
-
__exportStar(require("./Dashboard"), exports);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AuthType = void 0;
|
|
4
|
-
var AuthType;
|
|
5
|
-
(function (AuthType) {
|
|
6
|
-
AuthType[AuthType["NONE"] = 0] = "NONE";
|
|
7
|
-
AuthType[AuthType["BASIC"] = 1] = "BASIC";
|
|
8
|
-
AuthType[AuthType["APIKEY"] = 2] = "APIKEY";
|
|
9
|
-
AuthType[AuthType["BEARER"] = 3] = "BEARER";
|
|
10
|
-
})(AuthType || (exports.AuthType = AuthType = {}));
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Method = void 0;
|
|
4
|
-
var Method;
|
|
5
|
-
(function (Method) {
|
|
6
|
-
Method[Method["GET"] = 1] = "GET";
|
|
7
|
-
Method[Method["POST"] = 2] = "POST";
|
|
8
|
-
})(Method || (exports.Method = Method = {}));
|
|
@@ -1,21 +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("./AuthApiKey"), exports);
|
|
18
|
-
__exportStar(require("./AuthBasic"), exports);
|
|
19
|
-
__exportStar(require("./AuthBearer"), exports);
|
|
20
|
-
__exportStar(require("./AuthType"), exports);
|
|
21
|
-
__exportStar(require("./Method"), exports);
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { AssignMethod, ConversationAssigned } from '../../Conversations/Conversation';
|
|
2
|
-
import { ChannelType } from './ChannelType';
|
|
3
|
-
import { EmailConfig } from './Email';
|
|
4
|
-
import { FacebookConfig } from './Facebook';
|
|
5
|
-
import { FormConfig } from './Form';
|
|
6
|
-
import { GoogleBusinessConfig } from './GoogleBusiness';
|
|
7
|
-
import { InstagramConfig } from './Instagram';
|
|
8
|
-
import { MercadoLibreConfig } from './MercadoLibre';
|
|
9
|
-
import { PbxConfig } from './Pbx';
|
|
10
|
-
import { Permission } from './Permission';
|
|
11
|
-
import { SipConfig } from './Sip';
|
|
12
|
-
import { SmsConfig } from './Sms';
|
|
13
|
-
import { WebChatConfig } from './WebChat';
|
|
14
|
-
import { WhatsAppConectionType, WhatsAppConfig } from './WhatsApp';
|
|
15
|
-
import { RCSConfig } from './RCS';
|
|
16
|
-
interface IChannelInfo {
|
|
17
|
-
id?: string | null;
|
|
18
|
-
name?: string | null;
|
|
19
|
-
description?: string | null;
|
|
20
|
-
type?: ChannelType | null;
|
|
21
|
-
/**
|
|
22
|
-
* Whatsapp specific - indicates the type of connection (Cloud API or APIQR)
|
|
23
|
-
*/
|
|
24
|
-
connectionType?: WhatsAppConectionType | null;
|
|
25
|
-
/**
|
|
26
|
-
* Indicates if the WhatsApp business is on the WhatsApp Business App
|
|
27
|
-
*/
|
|
28
|
-
cloudApiIsOnBizApp?: boolean | null;
|
|
29
|
-
/**
|
|
30
|
-
* ID of the channel in the external system.
|
|
31
|
-
*/
|
|
32
|
-
externalChannelId?: string | null;
|
|
33
|
-
/**
|
|
34
|
-
* Indicates the status of the channel.
|
|
35
|
-
* actually each channel type has its own status values, so this property is a string to accommodate that.
|
|
36
|
-
* TODO: which can be one of the following values: "ACTIVE", "INACTIVE", "DELETED", "ERROR", "PROVISIONING", "DEPROVISIONING", "SUSPENDED", or "CONFIGURATION_PENDING".
|
|
37
|
-
*/
|
|
38
|
-
status?: string;
|
|
39
|
-
}
|
|
40
|
-
interface IChannel {
|
|
41
|
-
id?: string | null;
|
|
42
|
-
spaceId?: string | null;
|
|
43
|
-
name?: string | null;
|
|
44
|
-
description?: string | null;
|
|
45
|
-
type?: ChannelType | null;
|
|
46
|
-
permissions?: Permission[] | null;
|
|
47
|
-
assignTo?: ConversationAssigned;
|
|
48
|
-
assignMethod: AssignMethod;
|
|
49
|
-
assignToOwner?: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* habilita la creacion de conversaciones para este canal, si esta en false, los mensajes entrantes no generaran conversaciones
|
|
52
|
-
*/
|
|
53
|
-
conversationsEnabled: boolean | false;
|
|
54
|
-
/**
|
|
55
|
-
* Gets or sets a value indicating whether webhook notifications are enabled.
|
|
56
|
-
* Redirects incoming messages to the specified webhook URL when set to true.
|
|
57
|
-
*/
|
|
58
|
-
webhookEnabled: boolean | false;
|
|
59
|
-
/**Gets or sets the URL of the webhook endpoint to which notifications are sent. */
|
|
60
|
-
webhookUrl?: string | null;
|
|
61
|
-
/**Used to sign the webhook payloads, to verify that they come from Trii. The receiver webhook endpoint should have the logic to verify the signature using this secret. */
|
|
62
|
-
webhookSecret?: string | null;
|
|
63
|
-
email?: EmailConfig | null;
|
|
64
|
-
sms?: SmsConfig | null;
|
|
65
|
-
webChat?: WebChatConfig | null;
|
|
66
|
-
form?: FormConfig | null;
|
|
67
|
-
pbx?: PbxConfig | null;
|
|
68
|
-
sip?: SipConfig | null;
|
|
69
|
-
whatsApp?: WhatsAppConfig | null;
|
|
70
|
-
instagram?: InstagramConfig | null;
|
|
71
|
-
facebook?: FacebookConfig | null;
|
|
72
|
-
mercadoLibre?: MercadoLibreConfig | null;
|
|
73
|
-
googleBusiness?: GoogleBusinessConfig | null;
|
|
74
|
-
rcsBusiness?: RCSConfig | null;
|
|
75
|
-
createdAt?: string | null;
|
|
76
|
-
createdBy?: string | null;
|
|
77
|
-
updatedAt?: string | null;
|
|
78
|
-
deletedAt?: string | null;
|
|
79
|
-
statusCode: channelStatus | channelStatus.UNKNOWN;
|
|
80
|
-
statusDetails: string | '';
|
|
81
|
-
statusUpdateAt?: Date | null;
|
|
82
|
-
messagingAvailability: MessagingAvailability;
|
|
83
|
-
}
|
|
84
|
-
declare enum MessagingAvailability {
|
|
85
|
-
AVAILABLE = 0,
|
|
86
|
-
BLOCKED = 1
|
|
87
|
-
}
|
|
88
|
-
declare enum channelStatus {
|
|
89
|
-
UNKNOWN = 0,
|
|
90
|
-
ACTIVE = 1,
|
|
91
|
-
INACTIVE = 2,
|
|
92
|
-
DELETED = 3,
|
|
93
|
-
ERROR = 4,
|
|
94
|
-
PROVISIONING = 5,
|
|
95
|
-
DEPROVISIONING = 6,
|
|
96
|
-
SUSPENDED = 7,
|
|
97
|
-
CONFIGURATION_PENDING = 9
|
|
98
|
-
}
|
|
99
|
-
export { IChannel, IChannelInfo, channelStatus, MessagingAvailability };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MessagingAvailability = exports.channelStatus = void 0;
|
|
4
|
-
var MessagingAvailability;
|
|
5
|
-
(function (MessagingAvailability) {
|
|
6
|
-
MessagingAvailability[MessagingAvailability["AVAILABLE"] = 0] = "AVAILABLE";
|
|
7
|
-
MessagingAvailability[MessagingAvailability["BLOCKED"] = 1] = "BLOCKED";
|
|
8
|
-
})(MessagingAvailability || (exports.MessagingAvailability = MessagingAvailability = {}));
|
|
9
|
-
var channelStatus;
|
|
10
|
-
(function (channelStatus) {
|
|
11
|
-
channelStatus[channelStatus["UNKNOWN"] = 0] = "UNKNOWN";
|
|
12
|
-
channelStatus[channelStatus["ACTIVE"] = 1] = "ACTIVE";
|
|
13
|
-
channelStatus[channelStatus["INACTIVE"] = 2] = "INACTIVE";
|
|
14
|
-
channelStatus[channelStatus["DELETED"] = 3] = "DELETED";
|
|
15
|
-
channelStatus[channelStatus["ERROR"] = 4] = "ERROR";
|
|
16
|
-
channelStatus[channelStatus["PROVISIONING"] = 5] = "PROVISIONING";
|
|
17
|
-
channelStatus[channelStatus["DEPROVISIONING"] = 6] = "DEPROVISIONING";
|
|
18
|
-
channelStatus[channelStatus["SUSPENDED"] = 7] = "SUSPENDED";
|
|
19
|
-
channelStatus[channelStatus["CONFIGURATION_PENDING"] = 9] = "CONFIGURATION_PENDING";
|
|
20
|
-
})(channelStatus || (exports.channelStatus = channelStatus = {}));
|