@cleardu/types 1.0.110 → 1.0.115

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.
@@ -126,6 +126,7 @@ export declare const BrokerMessages: {
126
126
  };
127
127
  LOAN_MAPPING: {
128
128
  CREATE: string;
129
+ UPDATE: string;
129
130
  };
130
131
  BORROWER_DISPOSITION: {
131
132
  CREATE: string;
@@ -137,6 +138,7 @@ export declare const BrokerMessages: {
137
138
  CUSTOMER_FOLLOW_UPS: string;
138
139
  CUSTOMER_PTPS: string;
139
140
  FIND_ALL: string;
141
+ CREATE_AGENT_PAYMENT: string;
140
142
  };
141
143
  };
142
144
  OPTIONS: {
@@ -287,5 +289,25 @@ export declare const BrokerMessages: {
287
289
  GENERATE_PAYMENT_LINK: string;
288
290
  INIT: string;
289
291
  };
292
+ CLIENT: {
293
+ CREATE: string;
294
+ UPDATE: string;
295
+ CREATE_SETTLEMENT: string;
296
+ CREATE_REMARKS: string;
297
+ UPDATE_SETTLEMENT: string;
298
+ CREATE_USER: string;
299
+ UPDATE_USER: string;
300
+ GET_SETTLEMENT: string;
301
+ GET_SETTLEMENT_BY_ID: string;
302
+ CLIENT_USER: string;
303
+ CLIENT_USER_BY_ID: string;
304
+ TIMELINE: string;
305
+ CREATE_PAYMENT: string;
306
+ SETTLEMENT_STATUS_REPORT: string;
307
+ SETTLEMENT_TAT_REPORT: string;
308
+ CLIENT_LIST: string;
309
+ CLIENT_TARGET_REPORT: string;
310
+ CREATE_CLIENT_STATE_CITY_PRODUCT_TYPE: string;
311
+ };
290
312
  };
291
313
  };
@@ -129,6 +129,7 @@ exports.BrokerMessages = {
129
129
  },
130
130
  LOAN_MAPPING: {
131
131
  CREATE: 'CREATE_LOAN_MAPPING',
132
+ UPDATE: 'UPDATE-LOAN-MAPPING',
132
133
  },
133
134
  BORROWER_DISPOSITION: {
134
135
  CREATE: 'CREATE_DISPOSITION',
@@ -140,6 +141,7 @@ exports.BrokerMessages = {
140
141
  CUSTOMER_FOLLOW_UPS: 'CUSTOMER_FOLLOW_UPS',
141
142
  CUSTOMER_PTPS: 'CUSTOMER_PTPS',
142
143
  FIND_ALL: 'GET-ALL-DISPOSITIONS',
144
+ CREATE_AGENT_PAYMENT: 'CREATE-AGENT-PAYMENT',
143
145
  },
144
146
  },
145
147
  OPTIONS: {
@@ -290,5 +292,25 @@ exports.BrokerMessages = {
290
292
  GENERATE_PAYMENT_LINK: 'GENERATE-PAYMENT-LINK',
291
293
  INIT: 'PAYMENT-INITIATE',
292
294
  },
295
+ CLIENT: {
296
+ CREATE: 'CREATE-CLIENT',
297
+ UPDATE: 'UPDATE-CLIENT',
298
+ CREATE_SETTLEMENT: 'CREATE-SETTLEMENT',
299
+ CREATE_REMARKS: 'CREATE-REMARKS',
300
+ UPDATE_SETTLEMENT: 'UPDATE-SETTLEMENT',
301
+ CREATE_USER: 'CREATE-CLIENT-USER',
302
+ UPDATE_USER: 'UPDATE_CLIENT-USER',
303
+ GET_SETTLEMENT: 'LIST-SETTLEMENT',
304
+ GET_SETTLEMENT_BY_ID: 'GET_SETTLEMENT_BY_ID',
305
+ CLIENT_USER: 'GET-CLIENT-USER',
306
+ CLIENT_USER_BY_ID: 'GET-CLIENT-USER-BY-ID',
307
+ TIMELINE: 'GET-CLIENT-SETTLEMENT-TIMELINE',
308
+ CREATE_PAYMENT: 'CREATE-SETTLEMENT-PAYMENT',
309
+ SETTLEMENT_STATUS_REPORT: 'GET-SETTLEMENT-STATUS-REPORT',
310
+ SETTLEMENT_TAT_REPORT: 'GET-SETTLEMENT-TAT-REPORT',
311
+ CLIENT_LIST: 'GET-CLIENT-LIST',
312
+ CLIENT_TARGET_REPORT: 'GET-CLIENT-TARGET-REPORT',
313
+ CREATE_CLIENT_STATE_CITY_PRODUCT_TYPE: 'CREATE-CLIENT-STATE-CITY-PRODUCT-TYPE',
314
+ },
293
315
  },
294
316
  };
@@ -126,6 +126,7 @@ export const BrokerMessages = {
126
126
  },
127
127
  LOAN_MAPPING: {
128
128
  CREATE: 'CREATE_LOAN_MAPPING',
129
+ UPDATE: 'UPDATE-LOAN-MAPPING',
129
130
  },
130
131
  BORROWER_DISPOSITION: {
131
132
  CREATE: 'CREATE_DISPOSITION',
@@ -137,6 +138,7 @@ export const BrokerMessages = {
137
138
  CUSTOMER_FOLLOW_UPS: 'CUSTOMER_FOLLOW_UPS',
138
139
  CUSTOMER_PTPS: 'CUSTOMER_PTPS',
139
140
  FIND_ALL: 'GET-ALL-DISPOSITIONS',
141
+ CREATE_AGENT_PAYMENT: 'CREATE-AGENT-PAYMENT',
140
142
  },
141
143
  },
142
144
  OPTIONS: {
@@ -150,7 +152,6 @@ export const BrokerMessages = {
150
152
  CREATE: 'CREATE_DISPOSITION',
151
153
  FINDALL: 'DISPOSITIONS-ALL',
152
154
  FOLLOUPS: 'FOLLOUPS',
153
-
154
155
  LATEST_DISPOSITIONS: 'LATEST_DISPOSITIONS',
155
156
  UPDATE_INITIATED_CALL: 'UPDATE_INITIATED_CALL_DETAIL',
156
157
  },
@@ -289,5 +290,26 @@ export const BrokerMessages = {
289
290
  GENERATE_PAYMENT_LINK: 'GENERATE-PAYMENT-LINK',
290
291
  INIT: 'PAYMENT-INITIATE',
291
292
  },
293
+ CLIENT: {
294
+ CREATE: 'CREATE-CLIENT',
295
+ UPDATE: 'UPDATE-CLIENT',
296
+ CREATE_SETTLEMENT: 'CREATE-SETTLEMENT',
297
+ CREATE_REMARKS: 'CREATE-REMARKS',
298
+ UPDATE_SETTLEMENT: 'UPDATE-SETTLEMENT',
299
+ CREATE_USER: 'CREATE-CLIENT-USER',
300
+ UPDATE_USER: 'UPDATE_CLIENT-USER',
301
+ GET_SETTLEMENT: 'LIST-SETTLEMENT',
302
+ GET_SETTLEMENT_BY_ID: 'GET_SETTLEMENT_BY_ID',
303
+ CLIENT_USER: 'GET-CLIENT-USER',
304
+ CLIENT_USER_BY_ID: 'GET-CLIENT-USER-BY-ID',
305
+ TIMELINE: 'GET-CLIENT-SETTLEMENT-TIMELINE',
306
+ CREATE_PAYMENT: 'CREATE-SETTLEMENT-PAYMENT',
307
+ SETTLEMENT_STATUS_REPORT: 'GET-SETTLEMENT-STATUS-REPORT',
308
+ SETTLEMENT_TAT_REPORT: 'GET-SETTLEMENT-TAT-REPORT',
309
+ CLIENT_LIST: 'GET-CLIENT-LIST',
310
+ CLIENT_TARGET_REPORT: 'GET-CLIENT-TARGET-REPORT',
311
+ CREATE_CLIENT_STATE_CITY_PRODUCT_TYPE:
312
+ 'CREATE-CLIENT-STATE-CITY-PRODUCT-TYPE',
313
+ },
292
314
  },
293
315
  };
@@ -55,6 +55,21 @@ export declare enum Disp_CategoryTypeEnum {
55
55
  Notcontacted = "Not contacted",
56
56
  ContactedOthers = "Contacted - Others"
57
57
  }
58
+ export declare enum SettlementStatus {
59
+ Approved = "Approved",
60
+ AmountUpdated = "Amount Updated",
61
+ DocUploaded = "Doc Uploaded",
62
+ DocRemoved = "Doc Removed",
63
+ Inprogress = "Inprogress",
64
+ Initiated = "Initiated",
65
+ Pending = "Pending",
66
+ QueryRaised = "Query Raised",
67
+ Rejected = "Rejected",
68
+ ReInitiated = "Re-Initiated",
69
+ ReOpened = "Reopened",
70
+ Void = "Void",
71
+ Validated = "Validated"
72
+ }
58
73
  export declare const userModules: {
59
74
  Dashboard: number;
60
75
  SetupMaster: number;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RecordType = exports.FileUploadConfig = exports.validateTableCols = 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.RoleTypeEnum = exports.UserTypeEnum = exports.ActInactiveEnumType = exports.Services = void 0;
3
+ exports.RecordType = exports.FileUploadConfig = exports.validateTableCols = exports.Constants = exports.PorvidersType = exports.JobTypeEnum = exports.ParticipantTypeEnum = exports.dispoSubDispo = exports.userModules = exports.SettlementStatus = exports.Disp_CategoryTypeEnum = exports.JobStatusEnum = exports.CallDirectionEnum = exports.DispositionTypeEnum = exports.GenderTypeEnum = exports.CampaignTypeEnum = exports.RoleTypeEnum = exports.UserTypeEnum = exports.ActInactiveEnumType = exports.Services = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  tslib_1.__exportStar(require("./brokerMessages"), exports);
6
6
  exports.Services = {
@@ -69,6 +69,22 @@ var Disp_CategoryTypeEnum;
69
69
  Disp_CategoryTypeEnum["Notcontacted"] = "Not contacted";
70
70
  Disp_CategoryTypeEnum["ContactedOthers"] = "Contacted - Others";
71
71
  })(Disp_CategoryTypeEnum || (exports.Disp_CategoryTypeEnum = Disp_CategoryTypeEnum = {}));
72
+ var SettlementStatus;
73
+ (function (SettlementStatus) {
74
+ SettlementStatus["Approved"] = "Approved";
75
+ SettlementStatus["AmountUpdated"] = "Amount Updated";
76
+ SettlementStatus["DocUploaded"] = "Doc Uploaded";
77
+ SettlementStatus["DocRemoved"] = "Doc Removed";
78
+ SettlementStatus["Inprogress"] = "Inprogress";
79
+ SettlementStatus["Initiated"] = "Initiated";
80
+ SettlementStatus["Pending"] = "Pending";
81
+ SettlementStatus["QueryRaised"] = "Query Raised";
82
+ SettlementStatus["Rejected"] = "Rejected";
83
+ SettlementStatus["ReInitiated"] = "Re-Initiated";
84
+ SettlementStatus["ReOpened"] = "Reopened";
85
+ SettlementStatus["Void"] = "Void";
86
+ SettlementStatus["Validated"] = "Validated";
87
+ })(SettlementStatus || (exports.SettlementStatus = SettlementStatus = {}));
72
88
  exports.userModules = {
73
89
  Dashboard: 1,
74
90
  SetupMaster: 2,
@@ -68,6 +68,22 @@ export enum Disp_CategoryTypeEnum {
68
68
  ContactedOthers = 'Contacted - Others',
69
69
  }
70
70
 
71
+ export enum SettlementStatus {
72
+ Approved = 'Approved',
73
+ AmountUpdated = 'Amount Updated',
74
+ DocUploaded = 'Doc Uploaded',
75
+ DocRemoved = 'Doc Removed',
76
+ Inprogress = 'Inprogress',
77
+ Initiated = 'Initiated',
78
+ Pending = 'Pending',
79
+ QueryRaised = 'Query Raised',
80
+ Rejected = 'Rejected',
81
+ ReInitiated = 'Re-Initiated',
82
+ ReOpened = 'Reopened',
83
+ Void = 'Void',
84
+ Validated = 'Validated',
85
+ }
86
+
71
87
  export const userModules = {
72
88
  Dashboard: 1,
73
89
  SetupMaster: 2,
@@ -0,0 +1,12 @@
1
+ import { DatabaseObject } from '../baseObject';
2
+ export interface IAgentPayments extends DatabaseObject {
3
+ loanId: number;
4
+ clientId: number;
5
+ portfolioId: number;
6
+ loanDispositionId: number;
7
+ amount: number;
8
+ paymentDate: Date;
9
+ transactionId: string;
10
+ paymentMode: string;
11
+ comments?: string;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import { DatabaseObject } from '../baseObject';
2
+
3
+ export interface IAgentPayments extends DatabaseObject {
4
+ loanId: number;
5
+ clientId: number;
6
+ portfolioId: number;
7
+ loanDispositionId: number;
8
+ amount: number;
9
+ paymentDate: Date;
10
+ transactionId: string;
11
+ paymentMode: string;
12
+ comments?: string;
13
+ }
@@ -0,0 +1,7 @@
1
+ import { DatabaseObject } from '../baseObject';
2
+ export interface IAttachments extends DatabaseObject {
3
+ id: number;
4
+ fileId: number;
5
+ entityType: string;
6
+ entityId: number;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { DatabaseObject } from '../baseObject';
2
+
3
+ export interface IAttachments extends DatabaseObject {
4
+ id: number;
5
+ fileId: number;
6
+ entityType: string;
7
+ entityId: number;
8
+ }
@@ -3,7 +3,6 @@ import { IListPayload } from '../payload';
3
3
  import { IUser } from '../users';
4
4
  export interface IBorrowersDispositions extends DatabaseObject {
5
5
  id?: number;
6
- borrowerId: number;
7
6
  loanId: number;
8
7
  loanNumber?: string;
9
8
  dispositionId: number;
@@ -4,7 +4,6 @@ import { IUser } from '../users';
4
4
 
5
5
  export interface IBorrowersDispositions extends DatabaseObject {
6
6
  id?: number;
7
- borrowerId: number;
8
7
  loanId: number;
9
8
  loanNumber?: string;
10
9
  dispositionId: number;
@@ -0,0 +1,11 @@
1
+ import { DatabaseObject } from '../baseObject';
2
+ export interface IFileUploads extends DatabaseObject {
3
+ portfolioId?: number;
4
+ clientId?: number;
5
+ name: string;
6
+ type: string;
7
+ key: string;
8
+ size: number;
9
+ path: string;
10
+ originalName: string;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import { DatabaseObject } from '../baseObject';
2
+
3
+ export interface IFileUploads extends DatabaseObject {
4
+ portfolioId?: number;
5
+ clientId?: number;
6
+ name: string;
7
+ type: string;
8
+ key: string;
9
+ size: number;
10
+ path: string;
11
+ originalName: string;
12
+ }
@@ -54,6 +54,7 @@ export * from './clientDispositions';
54
54
  export * from './common';
55
55
  export * from './webhook';
56
56
  export * from './userStatus';
57
+ export * from './agentPayments';
57
58
  import { ConnectionOptions, Dialect, ReplicationOptions } from 'sequelize/types';
58
59
  export interface DBConnection extends ConnectionOptions {
59
60
  host: string;
@@ -57,3 +57,4 @@ tslib_1.__exportStar(require("./clientDispositions"), exports);
57
57
  tslib_1.__exportStar(require("./common"), exports);
58
58
  tslib_1.__exportStar(require("./webhook"), exports);
59
59
  tslib_1.__exportStar(require("./userStatus"), exports);
60
+ tslib_1.__exportStar(require("./agentPayments"), exports);
@@ -52,8 +52,9 @@ export * from './cdr';
52
52
  export * from './paymentLinks';
53
53
  export * from './clientDispositions';
54
54
  export * from './common';
55
- export * from './webhook'
56
- export * from './userStatus'
55
+ export * from './webhook';
56
+ export * from './userStatus';
57
+ export * from './agentPayments';
57
58
  import {
58
59
  ConnectionOptions,
59
60
  Dialect,
@@ -6,7 +6,7 @@ import { ITags } from '../tags';
6
6
  export interface ILoans extends DatabaseObject {
7
7
  borrowerId?: number;
8
8
  isActive?: boolean;
9
- clientId?: number;
9
+ clientId: number;
10
10
  loanNumber?: string;
11
11
  loanDate?: Date;
12
12
  loanAmount?: number;
@@ -7,7 +7,7 @@ import { ITags } from '../tags';
7
7
  export interface ILoans extends DatabaseObject {
8
8
  borrowerId?: number;
9
9
  isActive?: boolean;
10
- clientId?: number;
10
+ clientId: number;
11
11
  loanNumber?: string;
12
12
  loanDate?: Date;
13
13
  loanAmount?: number;
@@ -1,8 +1,7 @@
1
1
  import { DatabaseObject } from '../baseObject';
2
2
  export interface ISettlementHistory extends DatabaseObject {
3
- borrowerId: number;
3
+ loanId: number;
4
4
  settlementId: number;
5
- loanNumber: string;
6
5
  createdByUserId: number;
7
6
  createdByName: string;
8
7
  userRoleId: number;
@@ -10,14 +9,13 @@ export interface ISettlementHistory extends DatabaseObject {
10
9
  amount: number;
11
10
  status: string;
12
11
  comment?: string;
13
- remarks?: string;
14
12
  waiverOnPos?: number;
15
13
  recoveryOnPos?: number;
16
14
  collectibleAmount?: number;
17
15
  waiverOnCollectibleAmount?: number;
18
16
  recoveryOnCollectibleAmount?: number;
19
17
  clientStatus?: string;
20
- clientId: number;
18
+ clientId?: number;
21
19
  docKey?: string;
22
20
  docName?: string;
23
21
  updatedByClientId?: number;
@@ -1,9 +1,8 @@
1
1
  import { DatabaseObject } from '../baseObject';
2
2
 
3
3
  export interface ISettlementHistory extends DatabaseObject {
4
- borrowerId: number;
4
+ loanId: number;
5
5
  settlementId: number;
6
- loanNumber: string;
7
6
  createdByUserId: number;
8
7
  createdByName: string;
9
8
  userRoleId: number;
@@ -11,14 +10,13 @@ export interface ISettlementHistory extends DatabaseObject {
11
10
  amount: number;
12
11
  status: string;
13
12
  comment?: string;
14
- remarks?: string;
15
13
  waiverOnPos?: number;
16
14
  recoveryOnPos?: number;
17
15
  collectibleAmount?: number;
18
16
  waiverOnCollectibleAmount?: number;
19
17
  recoveryOnCollectibleAmount?: number;
20
18
  clientStatus?: string;
21
- clientId: number;
19
+ clientId?: number;
22
20
  docKey?: string;
23
21
  docName?: string;
24
22
  updatedByClientId?: number;
@@ -9,6 +9,5 @@ export interface ISettlementNotes {
9
9
  remarks?: string;
10
10
  seenAt?: Date;
11
11
  isClient?: boolean;
12
- borrowerId: number;
13
- loanNumber: string;
12
+ loanId: number;
14
13
  }
@@ -9,6 +9,5 @@ export interface ISettlementNotes {
9
9
  remarks?: string;
10
10
  seenAt?: Date;
11
11
  isClient?: boolean;
12
- borrowerId: number;
13
- loanNumber: string;
12
+ loanId: number;
14
13
  }
@@ -1,26 +1,39 @@
1
+ import { SettlementStatus } from '../../constants';
1
2
  import { DatabaseObject } from '../baseObject';
2
3
  export interface ISettlements extends DatabaseObject {
3
- borrowerId: number;
4
- loanNumber: string;
4
+ loanId: number;
5
5
  amount: number;
6
- comments: string;
6
+ comments?: string;
7
7
  waiverOnPos?: number;
8
8
  recoveryOnPos?: number;
9
9
  collectibleAmount?: number;
10
10
  waiverOnCollectibleAmount?: number;
11
11
  recoveryOnCollectibleAmount?: number;
12
- clientId: number;
13
- clientName: string;
14
- clientStatus: string;
15
- clientComments: string;
16
- updatedClientAmount: number;
17
- statusUpdatedAt: Date;
18
- templateId: number;
12
+ clientId?: number;
13
+ clientStatus?: string;
14
+ clientComments?: string;
15
+ updatedClientAmount?: number;
16
+ statusUpdatedAt?: Date;
17
+ templateId?: number;
19
18
  settlementDate: Date;
20
19
  followUpDate?: Date;
20
+ loanDispositionId: number;
21
21
  }
22
22
  export interface ICreateSettlement extends ISettlements {
23
23
  callRefNo?: string;
24
24
  dispositionId?: number;
25
25
  subDispositionId?: number;
26
26
  }
27
+ export interface IUpdateSettlement extends Partial<ISettlements> {
28
+ id: number;
29
+ status: SettlementStatus;
30
+ comments?: string;
31
+ suggestedAmount?: string;
32
+ principalOutstanding?: string;
33
+ updateAmount?: number;
34
+ userId: number;
35
+ userName: string;
36
+ userRole: string;
37
+ roleId: number;
38
+ statusUpdatedAt?: Date;
39
+ }
@@ -1,24 +1,24 @@
1
+ import { SettlementStatus } from '../../constants';
1
2
  import { DatabaseObject } from '../baseObject';
2
3
 
3
4
  export interface ISettlements extends DatabaseObject {
4
- borrowerId: number;
5
- loanNumber: string;
5
+ loanId: number;
6
6
  amount: number;
7
- comments: string;
7
+ comments?: string;
8
8
  waiverOnPos?: number;
9
9
  recoveryOnPos?: number;
10
10
  collectibleAmount?: number;
11
11
  waiverOnCollectibleAmount?: number;
12
12
  recoveryOnCollectibleAmount?: number;
13
- clientId: number;
14
- clientName: string;
15
- clientStatus: string;
16
- clientComments: string;
17
- updatedClientAmount: number;
18
- statusUpdatedAt: Date;
19
- templateId: number;
13
+ clientId?: number;
14
+ clientStatus?: string;
15
+ clientComments?: string;
16
+ updatedClientAmount?: number;
17
+ statusUpdatedAt?: Date;
18
+ templateId?: number;
20
19
  settlementDate: Date;
21
20
  followUpDate?: Date;
21
+ loanDispositionId: number;
22
22
  }
23
23
 
24
24
  export interface ICreateSettlement extends ISettlements {
@@ -26,3 +26,17 @@ export interface ICreateSettlement extends ISettlements {
26
26
  dispositionId?: number;
27
27
  subDispositionId?: number;
28
28
  }
29
+
30
+ export interface IUpdateSettlement extends Partial<ISettlements> {
31
+ id: number;
32
+ status: SettlementStatus;
33
+ comments?: string;
34
+ suggestedAmount?: string;
35
+ principalOutstanding?: string;
36
+ updateAmount?: number;
37
+ userId: number;
38
+ userName: string;
39
+ userRole: string;
40
+ roleId: number;
41
+ statusUpdatedAt?: Date;
42
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleardu/types",
3
- "version": "1.0.110",
3
+ "version": "1.0.115",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@aws)",
5
5
  "author": "Kamil Mysliwiec",
6
6
  "license": "MIT",