@cleardu/types 1.0.43

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.
Files changed (175) hide show
  1. package/constants/brokerMessages/index.d.ts +164 -0
  2. package/constants/brokerMessages/index.js +167 -0
  3. package/constants/brokerMessages/index.ts +165 -0
  4. package/constants/index.d.ts +177 -0
  5. package/constants/index.js +192 -0
  6. package/constants/index.ts +200 -0
  7. package/index.d.ts +2 -0
  8. package/index.js +5 -0
  9. package/index.ts +2 -0
  10. package/interfaces/baseObject/index.d.ts +12 -0
  11. package/interfaces/baseObject/index.js +2 -0
  12. package/interfaces/baseObject/index.ts +12 -0
  13. package/interfaces/borrowers/index.d.ts +140 -0
  14. package/interfaces/borrowers/index.js +2 -0
  15. package/interfaces/borrowers/index.ts +146 -0
  16. package/interfaces/borrowersDispositions/index.d.ts +15 -0
  17. package/interfaces/borrowersDispositions/index.js +2 -0
  18. package/interfaces/borrowersDispositions/index.ts +16 -0
  19. package/interfaces/borrowersHistory/index.d.ts +3 -0
  20. package/interfaces/borrowersHistory/index.js +2 -0
  21. package/interfaces/borrowersHistory/index.ts +3 -0
  22. package/interfaces/break/index.d.ts +7 -0
  23. package/interfaces/break/index.js +2 -0
  24. package/interfaces/break/index.ts +8 -0
  25. package/interfaces/campaignUsers/index.d.ts +13 -0
  26. package/interfaces/campaignUsers/index.js +2 -0
  27. package/interfaces/campaignUsers/index.ts +15 -0
  28. package/interfaces/campaigns/index.d.ts +13 -0
  29. package/interfaces/campaigns/index.js +2 -0
  30. package/interfaces/campaigns/index.ts +14 -0
  31. package/interfaces/cdr/index.d.ts +66 -0
  32. package/interfaces/cdr/index.js +10 -0
  33. package/interfaces/cdr/index.ts +73 -0
  34. package/interfaces/centers/index.d.ts +13 -0
  35. package/interfaces/centers/index.js +2 -0
  36. package/interfaces/centers/index.ts +14 -0
  37. package/interfaces/cities/index.d.ts +5 -0
  38. package/interfaces/cities/index.js +2 -0
  39. package/interfaces/cities/index.ts +6 -0
  40. package/interfaces/clientCities/index.d.ts +6 -0
  41. package/interfaces/clientCities/index.js +2 -0
  42. package/interfaces/clientCities/index.ts +6 -0
  43. package/interfaces/clientStates/index.d.ts +6 -0
  44. package/interfaces/clientStates/index.js +2 -0
  45. package/interfaces/clientStates/index.ts +7 -0
  46. package/interfaces/clients/index.d.ts +15 -0
  47. package/interfaces/clients/index.js +2 -0
  48. package/interfaces/clients/index.ts +16 -0
  49. package/interfaces/customer/index.d.ts +164 -0
  50. package/interfaces/customer/index.js +2 -0
  51. package/interfaces/customer/index.ts +172 -0
  52. package/interfaces/dialers/index.d.ts +8 -0
  53. package/interfaces/dialers/index.js +2 -0
  54. package/interfaces/dialers/index.ts +9 -0
  55. package/interfaces/dispositions/index.d.ts +9 -0
  56. package/interfaces/dispositions/index.js +2 -0
  57. package/interfaces/dispositions/index.ts +10 -0
  58. package/interfaces/docCategory/index.d.ts +6 -0
  59. package/interfaces/docCategory/index.js +2 -0
  60. package/interfaces/docCategory/index.ts +7 -0
  61. package/interfaces/emailReports/index.d.ts +6 -0
  62. package/interfaces/emailReports/index.js +2 -0
  63. package/interfaces/emailReports/index.ts +6 -0
  64. package/interfaces/idObject/index.d.ts +4 -0
  65. package/interfaces/idObject/index.js +2 -0
  66. package/interfaces/idObject/index.ts +4 -0
  67. package/interfaces/index.d.ts +72 -0
  68. package/interfaces/index.js +49 -0
  69. package/interfaces/index.ts +81 -0
  70. package/interfaces/integration/ezsip/index.d.ts +218 -0
  71. package/interfaces/integration/ezsip/index.js +2 -0
  72. package/interfaces/integration/ezsip/index.ts +299 -0
  73. package/interfaces/integration/index.d.ts +1 -0
  74. package/interfaces/integration/index.js +4 -0
  75. package/interfaces/integration/index.ts +1 -0
  76. package/interfaces/jobs/index.d.ts +67 -0
  77. package/interfaces/jobs/index.js +2 -0
  78. package/interfaces/jobs/index.ts +91 -0
  79. package/interfaces/loanGroups/index.d.ts +12 -0
  80. package/interfaces/loanGroups/index.js +2 -0
  81. package/interfaces/loanGroups/index.ts +13 -0
  82. package/interfaces/loanHistory/index.d.ts +3 -0
  83. package/interfaces/loanHistory/index.js +2 -0
  84. package/interfaces/loanHistory/index.ts +3 -0
  85. package/interfaces/loanParticipantHistory/index.d.ts +3 -0
  86. package/interfaces/loanParticipantHistory/index.js +2 -0
  87. package/interfaces/loanParticipantHistory/index.ts +3 -0
  88. package/interfaces/loanParticipants/index.d.ts +25 -0
  89. package/interfaces/loanParticipants/index.js +2 -0
  90. package/interfaces/loanParticipants/index.ts +26 -0
  91. package/interfaces/loans/index.d.ts +55 -0
  92. package/interfaces/loans/index.js +2 -0
  93. package/interfaces/loans/index.ts +56 -0
  94. package/interfaces/loginDetails/index.d.ts +5 -0
  95. package/interfaces/loginDetails/index.js +2 -0
  96. package/interfaces/loginDetails/index.ts +6 -0
  97. package/interfaces/merchants/index.d.ts +16 -0
  98. package/interfaces/merchants/index.js +2 -0
  99. package/interfaces/merchants/index.ts +17 -0
  100. package/interfaces/modules/index.d.ts +8 -0
  101. package/interfaces/modules/index.js +2 -0
  102. package/interfaces/modules/index.ts +8 -0
  103. package/interfaces/payload/index.d.ts +10 -0
  104. package/interfaces/payload/index.js +2 -0
  105. package/interfaces/payload/index.ts +11 -0
  106. package/interfaces/paymentAccounts/index.d.ts +8 -0
  107. package/interfaces/paymentAccounts/index.js +2 -0
  108. package/interfaces/paymentAccounts/index.ts +9 -0
  109. package/interfaces/payments/index.d.ts +42 -0
  110. package/interfaces/payments/index.js +2 -0
  111. package/interfaces/payments/index.ts +46 -0
  112. package/interfaces/permissions/index.d.ts +15 -0
  113. package/interfaces/permissions/index.js +2 -0
  114. package/interfaces/permissions/index.ts +17 -0
  115. package/interfaces/portfolios/index.d.ts +15 -0
  116. package/interfaces/portfolios/index.js +2 -0
  117. package/interfaces/portfolios/index.ts +16 -0
  118. package/interfaces/portfoliosTarget/index.d.ts +6 -0
  119. package/interfaces/portfoliosTarget/index.js +2 -0
  120. package/interfaces/portfoliosTarget/index.ts +7 -0
  121. package/interfaces/reassignment/index.d.ts +27 -0
  122. package/interfaces/reassignment/index.js +2 -0
  123. package/interfaces/reassignment/index.ts +31 -0
  124. package/interfaces/response.interface.d.ts +11 -0
  125. package/interfaces/response.interface.js +11 -0
  126. package/interfaces/response.interface.ts +17 -0
  127. package/interfaces/responseType/index.d.ts +13 -0
  128. package/interfaces/responseType/index.js +2 -0
  129. package/interfaces/responseType/index.ts +16 -0
  130. package/interfaces/role/index.d.ts +9 -0
  131. package/interfaces/role/index.js +2 -0
  132. package/interfaces/role/index.ts +9 -0
  133. package/interfaces/rolePermissions/index.d.ts +10 -0
  134. package/interfaces/rolePermissions/index.js +2 -0
  135. package/interfaces/rolePermissions/index.ts +11 -0
  136. package/interfaces/settlementHistory/index.d.ts +26 -0
  137. package/interfaces/settlementHistory/index.js +2 -0
  138. package/interfaces/settlementHistory/index.ts +27 -0
  139. package/interfaces/settlementNotes/index.d.ts +14 -0
  140. package/interfaces/settlementNotes/index.js +2 -0
  141. package/interfaces/settlementNotes/index.ts +14 -0
  142. package/interfaces/settlements/index.d.ts +10 -0
  143. package/interfaces/settlements/index.js +2 -0
  144. package/interfaces/settlements/index.ts +11 -0
  145. package/interfaces/states/index.d.ts +5 -0
  146. package/interfaces/states/index.js +2 -0
  147. package/interfaces/states/index.ts +7 -0
  148. package/interfaces/statsBorrowerLoan/index.d.ts +15 -0
  149. package/interfaces/statsBorrowerLoan/index.js +2 -0
  150. package/interfaces/statsBorrowerLoan/index.ts +15 -0
  151. package/interfaces/statsClientCall/index.d.ts +38 -0
  152. package/interfaces/statsClientCall/index.js +2 -0
  153. package/interfaces/statsClientCall/index.ts +38 -0
  154. package/interfaces/statsHourlyCall/index.d.ts +23 -0
  155. package/interfaces/statsHourlyCall/index.js +2 -0
  156. package/interfaces/statsHourlyCall/index.ts +23 -0
  157. package/interfaces/tags/index.d.ts +9 -0
  158. package/interfaces/tags/index.js +2 -0
  159. package/interfaces/tags/index.ts +10 -0
  160. package/interfaces/userPermissions/index.d.ts +69 -0
  161. package/interfaces/userPermissions/index.js +2 -0
  162. package/interfaces/userPermissions/index.ts +69 -0
  163. package/interfaces/userTaskCustomers/index.d.ts +14 -0
  164. package/interfaces/userTaskCustomers/index.js +2 -0
  165. package/interfaces/userTaskCustomers/index.ts +15 -0
  166. package/interfaces/userTasks/index.d.ts +10 -0
  167. package/interfaces/userTasks/index.js +2 -0
  168. package/interfaces/userTasks/index.ts +11 -0
  169. package/interfaces/users/index.d.ts +65 -0
  170. package/interfaces/users/index.js +2 -0
  171. package/interfaces/users/index.ts +76 -0
  172. package/package.json +31 -0
  173. package/tsconfig.build.json +10 -0
  174. package/tsconfig.build.tsbuildinfo +1 -0
  175. package/tsconfig.json +13 -0
@@ -0,0 +1,192 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Constants = exports.PorvidersType = exports.JobTypeEnum = exports.ParticipantTypeEnum = exports.dispoSubDispo = exports.userModules = exports.Disp_CategoryTypeEnum = exports.JobStatusEnum = exports.CallDirectionEnum = exports.DispositionTypeEnum = exports.GenderTypeEnum = exports.CampaignTypeEnum = exports.UserTypeEnum = exports.ActInactiveEnumType = exports.Services = void 0;
4
+ const tslib_1 = require("tslib");
5
+ tslib_1.__exportStar(require("./brokerMessages"), exports);
6
+ exports.Services = {
7
+ AWS_SERVICE: 'AWS_SERVICE',
8
+ DOCUMENT_SERVICE: 'DOCUMENT_SERVICE',
9
+ CLIENT_SERVICE: 'CLIENT_SERVICE',
10
+ EMAIL_SERVICE: 'EMAIL_SERVICE',
11
+ AUTH: 'AUTH',
12
+ USER_SERVICE: 'USER_SERVICE',
13
+ SETTLEMENTS_SERVICE: 'SETTLEMENTS_SERVICE',
14
+ RULE_SERVICE: 'RULE_SERVICE',
15
+ JOBS_SERVICE: 'JOBS_SERVICE',
16
+ CRM_SERVICE: 'CRM_SERVICE',
17
+ INTEGRATION_SERVICE: 'INTEGRATION_SERVICE',
18
+ CDR_SERVICE: 'CDR_SERVICE',
19
+ };
20
+ var ActInactiveEnumType;
21
+ (function (ActInactiveEnumType) {
22
+ ActInactiveEnumType["active"] = "active";
23
+ ActInactiveEnumType["inactive"] = "inactive";
24
+ })(ActInactiveEnumType || (exports.ActInactiveEnumType = ActInactiveEnumType = {}));
25
+ var UserTypeEnum;
26
+ (function (UserTypeEnum) {
27
+ UserTypeEnum["internal"] = "internal";
28
+ // agency = 'agency',
29
+ // vendor = 'vendor',
30
+ UserTypeEnum["external"] = "external";
31
+ })(UserTypeEnum || (exports.UserTypeEnum = UserTypeEnum = {}));
32
+ var CampaignTypeEnum;
33
+ (function (CampaignTypeEnum) {
34
+ CampaignTypeEnum["Predictive"] = "predictive";
35
+ CampaignTypeEnum["Progressive"] = "progressive";
36
+ })(CampaignTypeEnum || (exports.CampaignTypeEnum = CampaignTypeEnum = {}));
37
+ var GenderTypeEnum;
38
+ (function (GenderTypeEnum) {
39
+ GenderTypeEnum["male"] = "male";
40
+ GenderTypeEnum["female"] = "female";
41
+ })(GenderTypeEnum || (exports.GenderTypeEnum = GenderTypeEnum = {}));
42
+ var DispositionTypeEnum;
43
+ (function (DispositionTypeEnum) {
44
+ DispositionTypeEnum["disposition"] = "disposition";
45
+ DispositionTypeEnum["subDisposition"] = "subDisposition";
46
+ })(DispositionTypeEnum || (exports.DispositionTypeEnum = DispositionTypeEnum = {}));
47
+ var CallDirectionEnum;
48
+ (function (CallDirectionEnum) {
49
+ CallDirectionEnum["inbound"] = "inbound";
50
+ CallDirectionEnum["outbound"] = "outbound";
51
+ })(CallDirectionEnum || (exports.CallDirectionEnum = CallDirectionEnum = {}));
52
+ var JobStatusEnum;
53
+ (function (JobStatusEnum) {
54
+ JobStatusEnum["waiting"] = "waiting";
55
+ JobStatusEnum["inprogress"] = "inprogress";
56
+ JobStatusEnum["pending"] = "pending";
57
+ JobStatusEnum["completed"] = "completed";
58
+ JobStatusEnum["failed"] = "failed";
59
+ })(JobStatusEnum || (exports.JobStatusEnum = JobStatusEnum = {}));
60
+ var Disp_CategoryTypeEnum;
61
+ (function (Disp_CategoryTypeEnum) {
62
+ Disp_CategoryTypeEnum["Contacted"] = "Contacted";
63
+ Disp_CategoryTypeEnum["Notcontacted"] = "Not contacted";
64
+ Disp_CategoryTypeEnum["ContactedOthers"] = "Contacted - Others";
65
+ })(Disp_CategoryTypeEnum || (exports.Disp_CategoryTypeEnum = Disp_CategoryTypeEnum = {}));
66
+ exports.userModules = {
67
+ Dashboard: 1,
68
+ SetupMaster: 2,
69
+ Role: 3,
70
+ Permissions: 4,
71
+ Users: 5,
72
+ Clients: 6,
73
+ Campaigns: 7,
74
+ Portfolio: 8,
75
+ Templates: 9,
76
+ Merchants: 10,
77
+ PaymentModes: 11,
78
+ Borrowers: 12,
79
+ ActiveBorrowers: 13,
80
+ InactiveBorrowers: 14,
81
+ BorrowersListing: 15,
82
+ Reports: 16,
83
+ CallSummary: 17,
84
+ AgentActivity: 18,
85
+ AgentProductivity: 19,
86
+ AgentLiveStatus: 20,
87
+ Settlements: 21,
88
+ Payments: 22,
89
+ Communication: 23,
90
+ AuditLog: 24,
91
+ LiveChat: 25,
92
+ Files: 26,
93
+ };
94
+ exports.dispoSubDispo = {
95
+ dispositions: {
96
+ PTP: 1,
97
+ HotPTP: 2,
98
+ CallBack: 3,
99
+ Followup: 4,
100
+ WrongNumber: 5,
101
+ RefusedToPay: 6,
102
+ Dispute: 7,
103
+ FinalSettlement: 8,
104
+ HungUp: 9,
105
+ Language: 10,
106
+ NoContact: 11,
107
+ AlreadyPaid: 12,
108
+ Paid: 13,
109
+ InboundCallQueryCall: 14,
110
+ },
111
+ subDispositions: {
112
+ ptp_EMIpayment: 101,
113
+ ptp_Fullpayment: 102,
114
+ hotPtp_EMIpayment: 103,
115
+ hotPtp_Fullpayment: 104,
116
+ CallBack_Busy: 105,
117
+ CallBack_NetworkCoverage: 106,
118
+ CallBack_NoAnswer: 107,
119
+ CallBack_SwitchedOff: 108,
120
+ FollowUp_ReminderCall: 109,
121
+ FollowUp_CallReceivedByOtherPerson: 110,
122
+ WrongNumber: 111,
123
+ RefusedToPay_FinancialIssue: 112,
124
+ RefusedToPay_BrokenPTP: 113,
125
+ RefusedToPay_Defaulter: 114,
126
+ RefusedToPay_ThirdParty: 115,
127
+ Dispute_AlreadyPaid: 116,
128
+ Dispute_VehicleRepossessed: 117,
129
+ Dispute_VehicleStolen: 118,
130
+ FinalSettlement: 119,
131
+ HungUp_BlankCall: 120,
132
+ HungUp_AbusiveCaller: 121,
133
+ HungUp_CustomerDisconnectedCall: 122,
134
+ LanguageBarrier: 123,
135
+ noContact_busy: 124,
136
+ noContact_NoAnswerRinging: 125,
137
+ noContactSwitchedOff: 126,
138
+ noContactOutOfNetworkArea: 127,
139
+ noContactIncomingServiceBarred: 128,
140
+ noContactTempNotInService: 129,
141
+ alreadyPaid_Online: 130,
142
+ alreadyPaid_Branch: 131,
143
+ alreadyPaid_CashToAgent: 132,
144
+ alreadyPaid_LastMonthPaid: 133,
145
+ reFundToPay_NoIntensionToPay: 134,
146
+ reFundToPay_MedicalIssue: 135,
147
+ reFundToPay_CustomerExpired: 136,
148
+ reFundToPay_BussinessClosed: 137,
149
+ reFundToPay_BusinessLoss: 138,
150
+ reFundToPay_Fraud: 139,
151
+ paid_OncallPaid: 140,
152
+ CallBack: 141,
153
+ CallBack_ReminderCall: 142,
154
+ QueryCall: 143,
155
+ FollowUp_Reminder: 144,
156
+ },
157
+ };
158
+ var ParticipantTypeEnum;
159
+ (function (ParticipantTypeEnum) {
160
+ ParticipantTypeEnum["Reference"] = "Reference";
161
+ ParticipantTypeEnum["Guarantor"] = "Guarantor";
162
+ ParticipantTypeEnum["CoApplicant"] = "CoApplicant";
163
+ })(ParticipantTypeEnum || (exports.ParticipantTypeEnum = ParticipantTypeEnum = {}));
164
+ var JobTypeEnum;
165
+ (function (JobTypeEnum) {
166
+ JobTypeEnum["CUSTOMER_FILE"] = "customer-file-parser";
167
+ JobTypeEnum["PAYMENT_FILE"] = "payment-file-parser";
168
+ JobTypeEnum["REASSIGNMENT_FILE"] = "reassign-file-parser";
169
+ })(JobTypeEnum || (exports.JobTypeEnum = JobTypeEnum = {}));
170
+ var PorvidersType;
171
+ (function (PorvidersType) {
172
+ PorvidersType["ENKASH"] = "enkash";
173
+ })(PorvidersType || (exports.PorvidersType = PorvidersType = {}));
174
+ exports.Constants = {
175
+ JOB_STATUS: {
176
+ COMPLETED: 'completed',
177
+ FAILED: 'failed',
178
+ INPROGRESS: 'inprogress',
179
+ PAUSED: 'paused',
180
+ WAITING: 'waiting',
181
+ },
182
+ PROVIDERS: {
183
+ ENKASH: 'enkash',
184
+ },
185
+ RECORD_TYPE: {
186
+ newLoans: 'newLoans',
187
+ missingLoans: 'missingLoans',
188
+ existLoans: 'ExistLoans',
189
+ loansId: 'loansId',
190
+ duplicateLoans: 'duplicateLoans',
191
+ },
192
+ };
@@ -0,0 +1,200 @@
1
+ export * from './brokerMessages';
2
+ export const Services = {
3
+ AWS_SERVICE: 'AWS_SERVICE',
4
+ DOCUMENT_SERVICE: 'DOCUMENT_SERVICE',
5
+ CLIENT_SERVICE: 'CLIENT_SERVICE',
6
+ EMAIL_SERVICE: 'EMAIL_SERVICE',
7
+ AUTH: 'AUTH',
8
+ USER_SERVICE: 'USER_SERVICE',
9
+ SETTLEMENTS_SERVICE: 'SETTLEMENTS_SERVICE',
10
+ RULE_SERVICE: 'RULE_SERVICE',
11
+ JOBS_SERVICE: 'JOBS_SERVICE',
12
+ CRM_SERVICE: 'CRM_SERVICE',
13
+ INTEGRATION_SERVICE: 'INTEGRATION_SERVICE',
14
+ CDR_SERVICE: 'CDR_SERVICE',
15
+ };
16
+
17
+ export enum ActInactiveEnumType {
18
+ active = 'active',
19
+ inactive = 'inactive',
20
+ }
21
+
22
+ export enum UserTypeEnum {
23
+ internal = 'internal',
24
+ // agency = 'agency',
25
+ // vendor = 'vendor',
26
+ external = 'external',
27
+ }
28
+
29
+ export enum CampaignTypeEnum {
30
+ Predictive = 'predictive',
31
+ Progressive = 'progressive',
32
+ }
33
+
34
+ export enum GenderTypeEnum {
35
+ male = 'male',
36
+ female = 'female',
37
+ }
38
+
39
+ export enum DispositionTypeEnum {
40
+ disposition = 'disposition',
41
+ subDisposition = 'subDisposition',
42
+ }
43
+
44
+ export enum CallDirectionEnum {
45
+ inbound = 'inbound',
46
+ outbound = 'outbound',
47
+ }
48
+
49
+ export enum JobStatusEnum {
50
+ waiting = 'waiting',
51
+ inprogress = 'inprogress',
52
+ pending = 'pending',
53
+ completed = 'completed',
54
+ failed = 'failed',
55
+ }
56
+
57
+ export enum Disp_CategoryTypeEnum {
58
+ Contacted = 'Contacted',
59
+ Notcontacted = 'Not contacted',
60
+ ContactedOthers = 'Contacted - Others',
61
+ }
62
+
63
+ export const userModules = {
64
+ Dashboard: 1,
65
+ SetupMaster: 2,
66
+ Role: 3,
67
+ Permissions: 4,
68
+ Users: 5,
69
+ Clients: 6,
70
+ Campaigns: 7,
71
+ Portfolio: 8,
72
+ Templates: 9,
73
+ Merchants: 10,
74
+ PaymentModes: 11,
75
+ Borrowers: 12,
76
+ ActiveBorrowers: 13,
77
+ InactiveBorrowers: 14,
78
+ BorrowersListing: 15,
79
+ Reports: 16,
80
+ CallSummary: 17,
81
+ AgentActivity: 18,
82
+ AgentProductivity: 19,
83
+ AgentLiveStatus: 20,
84
+ Settlements: 21,
85
+ Payments: 22,
86
+ Communication: 23,
87
+ AuditLog: 24,
88
+ LiveChat: 25,
89
+ Files: 26,
90
+ };
91
+
92
+ export const dispoSubDispo = {
93
+ dispositions: {
94
+ PTP: 1,
95
+ HotPTP: 2,
96
+ CallBack: 3,
97
+ Followup: 4,
98
+ WrongNumber: 5,
99
+ RefusedToPay: 6,
100
+ Dispute: 7,
101
+ FinalSettlement: 8,
102
+ HungUp: 9,
103
+ Language: 10,
104
+ NoContact: 11,
105
+ AlreadyPaid: 12,
106
+ Paid: 13,
107
+ InboundCallQueryCall: 14,
108
+ },
109
+ subDispositions: {
110
+ ptp_EMIpayment: 101,
111
+ ptp_Fullpayment: 102,
112
+ hotPtp_EMIpayment: 103,
113
+ hotPtp_Fullpayment: 104,
114
+ CallBack_Busy: 105,
115
+ CallBack_NetworkCoverage: 106,
116
+ CallBack_NoAnswer: 107,
117
+ CallBack_SwitchedOff: 108,
118
+ FollowUp_ReminderCall: 109,
119
+ FollowUp_CallReceivedByOtherPerson: 110,
120
+ WrongNumber: 111,
121
+ RefusedToPay_FinancialIssue: 112,
122
+ RefusedToPay_BrokenPTP: 113,
123
+ RefusedToPay_Defaulter: 114,
124
+ RefusedToPay_ThirdParty: 115,
125
+ Dispute_AlreadyPaid: 116,
126
+ Dispute_VehicleRepossessed: 117,
127
+ Dispute_VehicleStolen: 118,
128
+ FinalSettlement: 119,
129
+ HungUp_BlankCall: 120,
130
+ HungUp_AbusiveCaller: 121,
131
+ HungUp_CustomerDisconnectedCall: 122,
132
+ LanguageBarrier: 123,
133
+ noContact_busy: 124,
134
+ noContact_NoAnswerRinging: 125,
135
+ noContactSwitchedOff: 126,
136
+ noContactOutOfNetworkArea: 127,
137
+ noContactIncomingServiceBarred: 128,
138
+ noContactTempNotInService: 129,
139
+ alreadyPaid_Online: 130,
140
+ alreadyPaid_Branch: 131,
141
+ alreadyPaid_CashToAgent: 132,
142
+ alreadyPaid_LastMonthPaid: 133,
143
+ reFundToPay_NoIntensionToPay: 134,
144
+ reFundToPay_MedicalIssue: 135,
145
+ reFundToPay_CustomerExpired: 136,
146
+ reFundToPay_BussinessClosed: 137,
147
+ reFundToPay_BusinessLoss: 138,
148
+ reFundToPay_Fraud: 139,
149
+ paid_OncallPaid: 140,
150
+ CallBack: 141,
151
+ CallBack_ReminderCall: 142,
152
+ QueryCall: 143,
153
+ FollowUp_Reminder: 144,
154
+ },
155
+ };
156
+
157
+ export enum ParticipantTypeEnum {
158
+ Reference = 'Reference',
159
+ Guarantor = 'Guarantor',
160
+ CoApplicant = 'CoApplicant',
161
+ }
162
+
163
+ export enum JobTypeEnum {
164
+ CUSTOMER_FILE = 'customer-file-parser',
165
+ PAYMENT_FILE = 'payment-file-parser',
166
+ REASSIGNMENT_FILE = 'reassign-file-parser',
167
+ }
168
+
169
+ export enum PorvidersType {
170
+ ENKASH = 'enkash',
171
+ }
172
+
173
+ export type Status = 'completed' | 'failed' | 'inprogress' | 'paused';
174
+
175
+ export type loanRecordType =
176
+ | 'newLoans'
177
+ | 'missingLoans'
178
+ | 'existLoans'
179
+ | 'loansId'
180
+ | 'duplicateLoans';
181
+
182
+ export const Constants = {
183
+ JOB_STATUS: {
184
+ COMPLETED: 'completed' as Status,
185
+ FAILED: 'failed' as Status,
186
+ INPROGRESS: 'inprogress' as Status,
187
+ PAUSED: 'paused' as Status,
188
+ WAITING: 'waiting' as Status,
189
+ },
190
+ PROVIDERS: {
191
+ ENKASH: 'enkash',
192
+ },
193
+ RECORD_TYPE: {
194
+ newLoans: 'newLoans' as loanRecordType,
195
+ missingLoans: 'missingLoans' as loanRecordType,
196
+ existLoans: 'ExistLoans' as loanRecordType,
197
+ loansId: 'loansId' as loanRecordType,
198
+ duplicateLoans: 'duplicateLoans' as loanRecordType,
199
+ },
200
+ };
package/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './constants';
2
+ export * from './interfaces';
package/index.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./constants"), exports);
5
+ tslib_1.__exportStar(require("./interfaces"), exports);
package/index.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './constants';
2
+ export * from './interfaces';
@@ -0,0 +1,12 @@
1
+ export interface DatabaseObject extends ObjectKeys {
2
+ id?: number;
3
+ uid?: string;
4
+ createdBy?: number;
5
+ updatedBy?: number;
6
+ createdAt?: Date;
7
+ updatedAt?: Date;
8
+ }
9
+ interface ObjectKeys {
10
+ [name: string]: any;
11
+ }
12
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ export interface DatabaseObject extends ObjectKeys {
2
+ id?: number;
3
+ uid?: string;
4
+ createdBy?: number;
5
+ updatedBy?: number;
6
+ createdAt?: Date;
7
+ updatedAt?: Date;
8
+ }
9
+
10
+ interface ObjectKeys {
11
+ [name: string]: any;
12
+ }
@@ -0,0 +1,140 @@
1
+ import { loanRecordType } from '../../constants';
2
+ import { DatabaseObject } from '../baseObject';
3
+ import { IJob } from '../jobs';
4
+ import { IListPayload } from '../payload';
5
+ export interface IBorrowers extends DatabaseObject {
6
+ name?: string;
7
+ fatherName?: string;
8
+ motherName?: string;
9
+ gender?: string;
10
+ age?: number;
11
+ email?: string;
12
+ pan?: string;
13
+ address?: string;
14
+ cityName?: string;
15
+ stateName?: string;
16
+ pincode?: number;
17
+ borrowerOccupation?: string;
18
+ cibilScore?: number;
19
+ mobile?: string;
20
+ altMobile1?: string;
21
+ altMobile2?: string;
22
+ otherMobile?: [];
23
+ isActive?: boolean;
24
+ voterId?: string;
25
+ drivingLicence?: string;
26
+ dob?: Date;
27
+ maritalStatus?: string;
28
+ aadhar?: string;
29
+ communityReligion?: string;
30
+ passportNumber?: string;
31
+ employmentStatus?: string;
32
+ employmentType?: string;
33
+ companyName?: string;
34
+ designation?: string;
35
+ clientBorrowerId?: string;
36
+ }
37
+ export interface ICorrectCSVData {
38
+ clientBorrowerId: string;
39
+ name: string;
40
+ fatherName: string;
41
+ motherName: string;
42
+ gender: string;
43
+ email: string;
44
+ pan: string;
45
+ address: string;
46
+ cityName: string;
47
+ stateName: string;
48
+ pincode: string;
49
+ borrowerOccupation: string;
50
+ cibilScore: number;
51
+ mobile: string;
52
+ voterId: string;
53
+ drivingLicence: string;
54
+ dob: string;
55
+ maritalStatus: string;
56
+ aadhar: string;
57
+ communityReligion: string;
58
+ passportNumber: string;
59
+ employementStatus: string;
60
+ employementType: string;
61
+ companyName: string;
62
+ designation: string;
63
+ loanNumber: string;
64
+ loanDate: string;
65
+ amount: number;
66
+ disbursedDate: string;
67
+ agreementId: string;
68
+ crmNo: string;
69
+ emiAmount: number;
70
+ totalEmi: number;
71
+ emiCycleDate: string;
72
+ emiEndDate: string;
73
+ emiStartDate: string;
74
+ bucket: string;
75
+ currentDpdBucket: string;
76
+ supplierName: string;
77
+ bounceChargesOutstanding: number;
78
+ interestOutstanding: number;
79
+ penaltyOutstanding: number;
80
+ principalOutStanding: number;
81
+ totalOutStanding: number;
82
+ totalEmiOverDue: number;
83
+ emiOverdueAmount: number;
84
+ unpaidEmiAmount: number;
85
+ offerEmiAmount: number;
86
+ waiverProposed: number;
87
+ lastPaymentDate: string;
88
+ totalBounces: number;
89
+ otherDetails: string;
90
+ maxSettlementAmount: number;
91
+ vintageBand: string;
92
+ previousPaymentHistory: string;
93
+ futurePrincipal: number;
94
+ loanMobile: string;
95
+ alternateContact1: string;
96
+ alternateContact2: string;
97
+ detailGoldQuantityGrms: number;
98
+ detailPurityInCt: number;
99
+ detailValuationInInr: number;
100
+ npaNumber: string;
101
+ settlementEmail: string;
102
+ customerClientId: string;
103
+ dpd: number;
104
+ portfolioType: string;
105
+ productName: string;
106
+ productType: string;
107
+ assignedUser: string;
108
+ deactivated: boolean;
109
+ groupId: string;
110
+ }
111
+ export interface IIncorrectCSVData extends ICorrectCSVData {
112
+ errors: string;
113
+ }
114
+ export interface IProcessValidRecordsParams {
115
+ jobId: string;
116
+ correctData: ICorrectCSVData[];
117
+ totalRecords: number;
118
+ currentJob: IJob;
119
+ clientId: number;
120
+ }
121
+ export interface FilterBorrower extends IListPayload {
122
+ clientId?: number;
123
+ loanNumber?: string;
124
+ borrowerId?: number;
125
+ jobId?: number;
126
+ recordType?: loanRecordType;
127
+ }
128
+ export interface IBorrowerList {
129
+ loanNumber: string;
130
+ clientBorrowerId: number;
131
+ name: string;
132
+ clientId: string;
133
+ groupId: string;
134
+ portfolio: string;
135
+ productType: string;
136
+ productName: string;
137
+ mobile: string;
138
+ principalOutStanding: string;
139
+ totalOutStanding: string;
140
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });