@cleardu/types 1.0.376 → 1.0.378

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.
@@ -161,6 +161,10 @@ export declare const BrokerMessages: {
161
161
  PARTICIPANTS: {
162
162
  FIND_ALL: string;
163
163
  };
164
+ CLIENT_LOAN_CONTACTS: {
165
+ FIND_ALL: string;
166
+ };
167
+ UPDATE_LOAN_ALLOCATION: string;
164
168
  };
165
169
  MIGRATE_BORROWER_STATS: string;
166
170
  ACTIVITY_HISTORY: {
@@ -351,6 +355,7 @@ export declare const BrokerMessages: {
351
355
  };
352
356
  COUMMUNICATION_DASHBOARD: {
353
357
  GET_COMMUNICATION_LIST: string;
358
+ ALLOCATION_TYPE_ASSIGN: string;
354
359
  SUMMARY: {
355
360
  SMS_COUNT: string;
356
361
  WHATSAPP_COUNT: string;
@@ -164,6 +164,10 @@ exports.BrokerMessages = {
164
164
  PARTICIPANTS: {
165
165
  FIND_ALL: 'GET-ALL-LOAN-PARTICIPANTS-LIST',
166
166
  },
167
+ CLIENT_LOAN_CONTACTS: {
168
+ FIND_ALL: 'GET-ALL-CLIENT-LOAN-CONTACTS-LIST',
169
+ },
170
+ UPDATE_LOAN_ALLOCATION: 'UPDATE-LOAN-ALLOCATION',
167
171
  },
168
172
  MIGRATE_BORROWER_STATS: 'MIGRATE-BORROWER-STATS',
169
173
  ACTIVITY_HISTORY: {
@@ -354,6 +358,7 @@ exports.BrokerMessages = {
354
358
  },
355
359
  COUMMUNICATION_DASHBOARD: {
356
360
  GET_COMMUNICATION_LIST: 'COUMMUNICATION-DASHBOARD-LIST',
361
+ ALLOCATION_TYPE_ASSIGN: 'ALLOCATION_TYPE_ASSIGN',
357
362
  SUMMARY: {
358
363
  SMS_COUNT: 'SMS-COUNT',
359
364
  WHATSAPP_COUNT: 'WHATSAPP-COUNT',
@@ -161,6 +161,10 @@ export const BrokerMessages = {
161
161
  PARTICIPANTS: {
162
162
  FIND_ALL: 'GET-ALL-LOAN-PARTICIPANTS-LIST',
163
163
  },
164
+ CLIENT_LOAN_CONTACTS: {
165
+ FIND_ALL: 'GET-ALL-CLIENT-LOAN-CONTACTS-LIST',
166
+ },
167
+ UPDATE_LOAN_ALLOCATION: 'UPDATE-LOAN-ALLOCATION',
164
168
  },
165
169
  MIGRATE_BORROWER_STATS: 'MIGRATE-BORROWER-STATS',
166
170
  ACTIVITY_HISTORY: {
@@ -354,6 +358,7 @@ export const BrokerMessages = {
354
358
  },
355
359
  COUMMUNICATION_DASHBOARD: {
356
360
  GET_COMMUNICATION_LIST: 'COUMMUNICATION-DASHBOARD-LIST',
361
+ ALLOCATION_TYPE_ASSIGN: 'ALLOCATION_TYPE_ASSIGN',
357
362
  SUMMARY: {
358
363
  SMS_COUNT: 'SMS-COUNT',
359
364
  WHATSAPP_COUNT: 'WHATSAPP-COUNT',
@@ -212,7 +212,8 @@ export declare enum JobTypeEnum {
212
212
  LOAN_PAYMENT_HISTORY_STATUS = "loan-payment-history-status",
213
213
  MANUAL_IVR_SMS_WHATSAPP_SENT = "MANUAL-IVR-SMS-WHASTSAPP-SENT",
214
214
  DO_NOT_CALL_FILE = "DO-NOT-CALL-FILE",
215
- CUSTOMER_FILE_ORIGINAL_POS_UPDATE = "CUSTOMER-FILE-ORIGINAL-POS-UPDATE"
215
+ CUSTOMER_FILE_ORIGINAL_POS_UPDATE = "CUSTOMER-FILE-ORIGINAL-POS-UPDATE",
216
+ ALLOCATION_TYPE = "ALLOCATION-TYPE-PARSER"
216
217
  }
217
218
  export declare enum PaymentStatus {
218
219
  UNPAID = 1,
@@ -251,6 +251,7 @@ var JobTypeEnum;
251
251
  JobTypeEnum["MANUAL_IVR_SMS_WHATSAPP_SENT"] = "MANUAL-IVR-SMS-WHASTSAPP-SENT";
252
252
  JobTypeEnum["DO_NOT_CALL_FILE"] = "DO-NOT-CALL-FILE";
253
253
  JobTypeEnum["CUSTOMER_FILE_ORIGINAL_POS_UPDATE"] = "CUSTOMER-FILE-ORIGINAL-POS-UPDATE";
254
+ JobTypeEnum["ALLOCATION_TYPE"] = "ALLOCATION-TYPE-PARSER";
254
255
  })(JobTypeEnum || (exports.JobTypeEnum = JobTypeEnum = {}));
255
256
  var PaymentStatus;
256
257
  (function (PaymentStatus) {
@@ -257,6 +257,7 @@ export enum JobTypeEnum {
257
257
  MANUAL_IVR_SMS_WHATSAPP_SENT = 'MANUAL-IVR-SMS-WHASTSAPP-SENT',
258
258
  DO_NOT_CALL_FILE = 'DO-NOT-CALL-FILE',
259
259
  CUSTOMER_FILE_ORIGINAL_POS_UPDATE = 'CUSTOMER-FILE-ORIGINAL-POS-UPDATE',
260
+ ALLOCATION_TYPE = 'ALLOCATION-TYPE-PARSER',
260
261
  }
261
262
 
262
263
  export enum PaymentStatus {
@@ -9,14 +9,16 @@ export interface IAllocationTypes extends DatabaseObject {
9
9
  }
10
10
  export interface CreateUpdateAllocation {
11
11
  name: string;
12
- isDefault: boolean;
12
+ isDefault?: boolean;
13
13
  colorCode: string;
14
- isActive: boolean;
14
+ isActive?: boolean;
15
15
  createdBy: number;
16
16
  }
17
17
  export interface IAllocationTypeCSVCorrectData {
18
18
  loanNumber: string;
19
19
  allocationType: string;
20
+ loanId?: number;
21
+ allocationTypeId?: number;
20
22
  }
21
23
  export interface IAllocationTypeCSVInCorrectData extends IAllocationTypeCSVCorrectData {
22
24
  errors: string;
@@ -11,15 +11,17 @@ export interface IAllocationTypes extends DatabaseObject {
11
11
 
12
12
  export interface CreateUpdateAllocation {
13
13
  name: string;
14
- isDefault: boolean;
14
+ isDefault?: boolean;
15
15
  colorCode: string;
16
- isActive: boolean;
16
+ isActive?: boolean;
17
17
  createdBy: number;
18
18
  }
19
19
 
20
20
  export interface IAllocationTypeCSVCorrectData {
21
21
  loanNumber: string;
22
22
  allocationType: string;
23
+ loanId?: number;
24
+ allocationTypeId?: number;
23
25
  }
24
26
 
25
27
  export interface IAllocationTypeCSVInCorrectData
@@ -142,6 +142,7 @@ export interface BorrowerFilters extends IListPayload {
142
142
  paymentHistoryStatusNotInCm?: string;
143
143
  isBestDispo?: boolean;
144
144
  newAssigned?: boolean;
145
+ allocationTypeId?: string;
145
146
  }
146
147
  export interface FilterBorrower {
147
148
  filters: BorrowerFilters;
@@ -147,6 +147,7 @@ export interface BorrowerFilters extends IListPayload {
147
147
  paymentHistoryStatusNotInCm?: string;
148
148
  isBestDispo?: boolean;
149
149
  newAssigned?: boolean;
150
+ allocationTypeId?: string;
150
151
  }
151
152
 
152
153
  export interface FilterBorrower {
@@ -14,8 +14,14 @@ export interface IBorrowersDispositions extends DatabaseObject {
14
14
  transactionId?: string;
15
15
  paymentMode?: string;
16
16
  isHotPtp?: boolean;
17
- dispositionText?: string;
18
- subDispositionText?: string;
17
+ }
18
+ export interface ICreateBorrowerDisposition extends IBorrowersDispositions {
19
+ callDirection?: string;
20
+ dispositionName?: string;
21
+ subDispositionName?: string;
22
+ isEndCall?: boolean;
23
+ pause?: boolean;
24
+ break?: string;
19
25
  }
20
26
  export interface ILoanDispositionFilterParams extends IListPayload {
21
27
  clientIds?: string;
@@ -16,10 +16,15 @@ export interface IBorrowersDispositions extends DatabaseObject {
16
16
  transactionId?: string;
17
17
  paymentMode?: string;
18
18
  isHotPtp?: boolean;
19
+ }
19
20
 
20
- //extra fields for payload
21
- dispositionText?: string;
22
- subDispositionText?: string;
21
+ export interface ICreateBorrowerDisposition extends IBorrowersDispositions {
22
+ callDirection?: string;
23
+ dispositionName?: string;
24
+ subDispositionName?: string;
25
+ isEndCall?: boolean;
26
+ pause?: boolean;
27
+ break?: string;
23
28
  }
24
29
 
25
30
  export interface ILoanDispositionFilterParams extends IListPayload {
@@ -0,0 +1,10 @@
1
+ import { DatabaseObject } from '../baseObject';
2
+ import { IListPayload } from '../payload';
3
+ export interface IClientLoanContacts extends DatabaseObject {
4
+ loanId: string;
5
+ name?: string;
6
+ mobile?: string;
7
+ }
8
+ export interface IClientLoanContactsFindAll extends IListPayload {
9
+ loanId: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ import { DatabaseObject } from '../baseObject';
2
+ import { IListPayload } from '../payload';
3
+ export interface IClientLoanContacts extends DatabaseObject {
4
+ loanId: string;
5
+ name?: string;
6
+ mobile?: string;
7
+ }
8
+
9
+ export interface IClientLoanContactsFindAll extends IListPayload {
10
+ loanId: string;
11
+ }
@@ -67,6 +67,7 @@ export * from './DNCNumbers';
67
67
  export * from './DNCNumbersHistory';
68
68
  export * from './clientPerformanceReport';
69
69
  export * from './allocationTypes';
70
+ export * from './clientLoanContacts';
70
71
  import { ConnectionOptions, Dialect, ReplicationOptions } from 'sequelize/types';
71
72
  export interface DBConnection extends ConnectionOptions {
72
73
  host: string;
@@ -70,3 +70,4 @@ tslib_1.__exportStar(require("./DNCNumbers"), exports);
70
70
  tslib_1.__exportStar(require("./DNCNumbersHistory"), exports);
71
71
  tslib_1.__exportStar(require("./clientPerformanceReport"), exports);
72
72
  tslib_1.__exportStar(require("./allocationTypes"), exports);
73
+ tslib_1.__exportStar(require("./clientLoanContacts"), exports);
@@ -67,6 +67,7 @@ export * from './DNCNumbers';
67
67
  export * from './DNCNumbersHistory';
68
68
  export * from './clientPerformanceReport';
69
69
  export * from './allocationTypes';
70
+ export * from './clientLoanContacts';
70
71
 
71
72
  import {
72
73
  ConnectionOptions,
@@ -9,4 +9,5 @@ export interface ILoanGroups extends DatabaseObject {
9
9
  tos?: number;
10
10
  loanCounts?: number;
11
11
  borrowerId?: number;
12
+ allocationTypeId?: number;
12
13
  }
@@ -10,4 +10,5 @@ export interface ILoanGroups extends DatabaseObject {
10
10
  tos?: number;
11
11
  loanCounts?: number;
12
12
  borrowerId?: number;
13
+ allocationTypeId?: number;
13
14
  }
@@ -17,11 +17,12 @@ export interface ICreateLoanMappingsData {
17
17
  filters?: ICreateMappingFilters;
18
18
  }
19
19
  export interface ICreateMappingFilters {
20
+ allocationTypeId?: number;
20
21
  clientId?: number;
21
22
  campaignIds?: number[];
22
23
  userIds?: number[];
23
24
  excludeIds?: number[];
24
- IncludeIds: number[];
25
+ includeIds: number[];
25
26
  q?: string;
26
27
  }
27
28
  export interface IAllocationInfo {
@@ -34,3 +35,10 @@ export interface IAllocationInfo {
34
35
  oldLoanIds: number[];
35
36
  newLoanIds: number[];
36
37
  }
38
+ export interface IUpdateLoanAllocationType {
39
+ setAllocationTypeId?: number;
40
+ createdBy: number;
41
+ userId?: number;
42
+ allSelected?: boolean;
43
+ filters?: ICreateMappingFilters;
44
+ }
@@ -20,11 +20,12 @@ export interface ICreateLoanMappingsData {
20
20
  }
21
21
 
22
22
  export interface ICreateMappingFilters {
23
+ allocationTypeId?: number;
23
24
  clientId?: number;
24
25
  campaignIds?: number[];
25
26
  userIds?: number[];
26
27
  excludeIds?: number[];
27
- IncludeIds: number[];
28
+ includeIds: number[];
28
29
  q?: string;
29
30
  }
30
31
 
@@ -38,3 +39,11 @@ export interface IAllocationInfo {
38
39
  oldLoanIds: number[];
39
40
  newLoanIds: number[];
40
41
  }
42
+
43
+ export interface IUpdateLoanAllocationType {
44
+ setAllocationTypeId?: number;
45
+ createdBy: number;
46
+ userId?: number;
47
+ allSelected?: boolean;
48
+ filters?: ICreateMappingFilters;
49
+ }
@@ -72,7 +72,7 @@ export interface ILoans extends DatabaseObject {
72
72
  latestRealizePaymentAmount?: number | null;
73
73
  paymentHistoryStatus?: PaymentHistoryStatus;
74
74
  isDNC: boolean;
75
- allocationTypesId: number;
75
+ allocationTypeId: number;
76
76
  }
77
77
  export interface ILoanMapingUser extends ILoans {
78
78
  loanUsers?: ILoanUsers[];
@@ -73,7 +73,7 @@ export interface ILoans extends DatabaseObject {
73
73
  latestRealizePaymentAmount?: number | null;
74
74
  paymentHistoryStatus?: PaymentHistoryStatus;
75
75
  isDNC: boolean;
76
- allocationTypesId: number;
76
+ allocationTypeId: number;
77
77
  }
78
78
  export interface ILoanMapingUser extends ILoans {
79
79
  loanUsers?: ILoanUsers[];
@@ -46,6 +46,7 @@ export interface CommunicationSummaryFilters extends IListPayload {
46
46
  clientIds?: string;
47
47
  userIds?: string;
48
48
  responseType?: string;
49
+ allocationTypeId?: string;
49
50
  }
50
51
  export interface ICommunicationDashboardLoansActionsFilters {
51
52
  communicationType: communicationType.WHATSAPP | communicationType.SMS | communicationType.IVR;
@@ -60,10 +61,12 @@ export interface ICommunicationDashboardLoansActionsFilters {
60
61
  status?: 'SCHEDULED' | 'QUEUED' | 'SENT' | 'PROCESSING' | 'DELIVERED' | 'FAILED' | 'SEEN' | 'READED' | 'RESPONSED' | 'DELIVRD' | 'REJECTD' | 'UNDELIV' | 'CALLED' | 'REJECTED';
61
62
  excludeIds?: number[];
62
63
  includeIds?: number[];
64
+ allocationTypeId?: string;
63
65
  }
64
66
  export interface ICommunicationDashboardLoansActions {
65
67
  filters: ICommunicationDashboardLoansActionsFilters;
66
68
  allSelected: boolean;
69
+ setAllocationTypeId?: number;
67
70
  }
68
71
  interface IMessage {
69
72
  content: {
@@ -52,6 +52,7 @@ export interface CommunicationSummaryFilters extends IListPayload {
52
52
  clientIds?: string;
53
53
  userIds?: string;
54
54
  responseType?: string;
55
+ allocationTypeId?: string;
55
56
  }
56
57
  export interface ICommunicationDashboardLoansActionsFilters {
57
58
  communicationType:
@@ -83,11 +84,13 @@ export interface ICommunicationDashboardLoansActionsFilters {
83
84
  | 'REJECTED';
84
85
  excludeIds?: number[];
85
86
  includeIds?: number[];
87
+ allocationTypeId?: string;
86
88
  }
87
89
 
88
90
  export interface ICommunicationDashboardLoansActions {
89
91
  filters: ICommunicationDashboardLoansActionsFilters;
90
92
  allSelected: boolean;
93
+ setAllocationTypeId?: number;
91
94
  }
92
95
 
93
96
  interface IMessage {
@@ -117,13 +120,13 @@ export interface IWablyMessagesPayload {
117
120
  }
118
121
 
119
122
  export interface wablyWhatsAppSendRes {
120
- success: boolean;
121
- status: number;
122
- result: {
123
- status: string;
124
- recipient: string;
125
- messageId: string;
126
- };
123
+ success: boolean;
124
+ status: number;
125
+ result: {
126
+ status: string;
127
+ recipient: string;
128
+ messageId: string;
129
+ };
127
130
  }
128
131
 
129
132
  interface wablyWhatsAppTemplateCategory {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleardu/types",
3
- "version": "1.0.376",
3
+ "version": "1.0.378",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@aws)",
5
5
  "author": "Kamil Mysliwiec",
6
6
  "license": "MIT",