gemcap-be-common 1.5.124 → 1.5.126

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.
@@ -31,6 +31,7 @@ import mongoose, { Document, Model } from 'mongoose';
31
31
  import Joi from 'joi';
32
32
  export interface IAppraiser {
33
33
  isDeleted: boolean;
34
+ uiId: string;
34
35
  name: string;
35
36
  speciality?: string;
36
37
  order?: number;
@@ -19,6 +19,10 @@ exports.AppraiserSchema = new mongoose_1.default.Schema({
19
19
  type: Boolean,
20
20
  default: false,
21
21
  },
22
+ uiId: {
23
+ type: String,
24
+ required: true,
25
+ },
22
26
  name: {
23
27
  type: String,
24
28
  required: true,
@@ -5,6 +5,7 @@ import { MODEL_NAMES } from './_models';
5
5
 
6
6
  export interface IAppraiser {
7
7
  isDeleted: boolean;
8
+ uiId: string;
8
9
  name: string;
9
10
  speciality?: string;
10
11
  order?: number;
@@ -33,6 +34,10 @@ export const AppraiserSchema = new mongoose.Schema<IAppraiser, AppraiserModel>(
33
34
  type: Boolean,
34
35
  default: false,
35
36
  },
37
+ uiId: {
38
+ type: String,
39
+ required: true,
40
+ },
36
41
  name: {
37
42
  type: String,
38
43
  required: true,
@@ -31,6 +31,7 @@ import mongoose, { Document, Model } from 'mongoose';
31
31
  import Joi from 'joi';
32
32
  export interface IAppraiserContact {
33
33
  appraiserId: mongoose.Types.ObjectId;
34
+ uiId: string;
34
35
  isDeleted: boolean;
35
36
  name?: string;
36
37
  title?: string;
@@ -24,6 +24,10 @@ exports.AppraiserContactSchema = new mongoose_1.default.Schema({
24
24
  ref: _models_1.MODEL_NAMES.appraiser,
25
25
  required: true,
26
26
  },
27
+ uiId: {
28
+ type: String,
29
+ required: true,
30
+ },
27
31
  isDeleted: {
28
32
  type: Boolean,
29
33
  default: false,
@@ -5,6 +5,7 @@ import { MODEL_NAMES } from './_models';
5
5
 
6
6
  export interface IAppraiserContact {
7
7
  appraiserId: mongoose.Types.ObjectId;
8
+ uiId: string;
8
9
  isDeleted: boolean;
9
10
  name?: string;
10
11
  title?: string;
@@ -43,6 +44,10 @@ export const AppraiserContactSchema = new mongoose.Schema<IAppraiserContact, App
43
44
  ref: MODEL_NAMES.appraiser,
44
45
  required: true,
45
46
  },
47
+ uiId: {
48
+ type: String,
49
+ required: true,
50
+ },
46
51
  isDeleted: {
47
52
  type: Boolean,
48
53
  default: false,
@@ -31,6 +31,7 @@ import mongoose from 'mongoose';
31
31
  import Joi from 'joi';
32
32
  export interface IAuditor {
33
33
  isDeleted: boolean;
34
+ uiId: string;
34
35
  name: string;
35
36
  order?: number;
36
37
  }
@@ -18,6 +18,10 @@ exports.AuditorSchema = new mongoose_1.default.Schema({
18
18
  type: Boolean,
19
19
  default: false,
20
20
  },
21
+ uiId: {
22
+ type: String,
23
+ required: true,
24
+ },
21
25
  name: {
22
26
  type: String,
23
27
  required: true,
@@ -5,6 +5,7 @@ import { MODEL_NAMES } from './_models';
5
5
 
6
6
  export interface IAuditor {
7
7
  isDeleted: boolean;
8
+ uiId: string;
8
9
  name: string;
9
10
  order?: number;
10
11
  }
@@ -42,6 +43,10 @@ export const AuditorSchema = new mongoose.Schema<IAuditor, AuditorModel>(
42
43
  type: Boolean,
43
44
  default: false,
44
45
  },
46
+ uiId: {
47
+ type: String,
48
+ required: true,
49
+ },
45
50
  name: {
46
51
  type: String,
47
52
  required: true,
@@ -32,6 +32,7 @@ import Joi from 'joi';
32
32
  export interface IAuditorContact {
33
33
  auditorId: mongoose.Types.ObjectId;
34
34
  isDeleted: boolean;
35
+ uiId: string;
35
36
  name: string;
36
37
  email?: string;
37
38
  normalizedEmail?: string;
@@ -23,6 +23,10 @@ exports.AuditorContactSchema = new mongoose_1.default.Schema({
23
23
  ref: _models_1.MODEL_NAMES.auditors,
24
24
  required: true,
25
25
  },
26
+ uiId: {
27
+ type: String,
28
+ required: true,
29
+ },
26
30
  isDeleted: {
27
31
  type: Boolean,
28
32
  default: false,
@@ -6,6 +6,7 @@ import { MODEL_NAMES } from './_models';
6
6
  export interface IAuditorContact {
7
7
  auditorId: mongoose.Types.ObjectId;
8
8
  isDeleted: boolean;
9
+ uiId: string;
9
10
  name: string;
10
11
  email?: string;
11
12
  normalizedEmail?: string;
@@ -49,6 +50,10 @@ export const AuditorContactSchema = new mongoose.Schema<IAuditorContact, Auditor
49
50
  ref: MODEL_NAMES.auditors,
50
51
  required: true,
51
52
  },
53
+ uiId: {
54
+ type: String,
55
+ required: true,
56
+ },
52
57
  isDeleted: {
53
58
  type: Boolean,
54
59
  default: false,
@@ -57,6 +57,7 @@ export interface IBorrowerLean extends IBorrower {
57
57
  }
58
58
  export interface IBorrowerPlain extends Omit<IBorrower, 'organizationId'> {
59
59
  _id: string;
60
+ organizationId: string;
60
61
  createdAt: Date;
61
62
  updatedAt: Date;
62
63
  }
@@ -67,59 +68,59 @@ export declare const BorrowerSchema: mongoose.Schema<any, mongoose.Model<any, an
67
68
  createdAt: NativeDate;
68
69
  updatedAt: NativeDate;
69
70
  } & {
70
- name: string;
71
- active: boolean;
72
71
  code: string;
72
+ name: string;
73
73
  title: string;
74
+ active: boolean;
74
75
  accrualStatus: boolean;
75
- __v?: number;
76
76
  organizationId?: mongoose.Types.ObjectId;
77
77
  schemas?: mongoose.Types.DocumentArray<{
78
- type: string;
79
78
  name: string;
79
+ type: string;
80
80
  data: mongoose.Types.DocumentArray<{
81
81
  column: string;
82
82
  databaseTitle: string;
83
83
  }>;
84
84
  }>;
85
+ __v?: number;
85
86
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
86
87
  createdAt: NativeDate;
87
88
  updatedAt: NativeDate;
88
89
  } & {
89
- name: string;
90
- active: boolean;
91
90
  code: string;
91
+ name: string;
92
92
  title: string;
93
+ active: boolean;
93
94
  accrualStatus: boolean;
94
- __v?: number;
95
95
  organizationId?: mongoose.Types.ObjectId;
96
96
  schemas?: mongoose.Types.DocumentArray<{
97
- type: string;
98
97
  name: string;
98
+ type: string;
99
99
  data: mongoose.Types.DocumentArray<{
100
100
  column: string;
101
101
  databaseTitle: string;
102
102
  }>;
103
103
  }>;
104
+ __v?: number;
104
105
  }>> & mongoose.FlatRecord<{
105
106
  createdAt: NativeDate;
106
107
  updatedAt: NativeDate;
107
108
  } & {
108
- name: string;
109
- active: boolean;
110
109
  code: string;
110
+ name: string;
111
111
  title: string;
112
+ active: boolean;
112
113
  accrualStatus: boolean;
113
- __v?: number;
114
114
  organizationId?: mongoose.Types.ObjectId;
115
115
  schemas?: mongoose.Types.DocumentArray<{
116
- type: string;
117
116
  name: string;
117
+ type: string;
118
118
  data: mongoose.Types.DocumentArray<{
119
119
  column: string;
120
120
  databaseTitle: string;
121
121
  }>;
122
122
  }>;
123
+ __v?: number;
123
124
  }> & {
124
125
  _id: mongoose.Types.ObjectId;
125
126
  }>;
@@ -39,6 +39,7 @@ export interface IBorrowerLean extends IBorrower {
39
39
 
40
40
  export interface IBorrowerPlain extends Omit<IBorrower, 'organizationId'> {
41
41
  _id: string;
42
+ organizationId: string;
42
43
  createdAt: Date;
43
44
  updatedAt: Date;
44
45
  }
@@ -83,13 +83,34 @@ export declare const BorrowerComplianceSchema: mongoose.Schema<any, mongoose.Mod
83
83
  createdAt: NativeDate;
84
84
  updatedAt: NativeDate;
85
85
  } & {
86
+ borrower: mongoose.Types.ObjectId;
87
+ complianceNotes: mongoose.Types.DocumentArray<{
88
+ date: Date;
89
+ note: string;
90
+ user?: string;
91
+ }>;
92
+ borrowerNotes: mongoose.Types.DocumentArray<{
93
+ date: Date;
94
+ note: string;
95
+ user?: string;
96
+ }>;
97
+ mainEmails: mongoose.Types.DocumentArray<{
98
+ title?: string;
99
+ email?: string;
100
+ isActive?: boolean;
101
+ }>;
102
+ financialEmails: mongoose.Types.DocumentArray<{
103
+ title?: string;
104
+ email?: string;
105
+ isActive?: boolean;
106
+ }>;
86
107
  items: mongoose.Types.DocumentArray<{
87
108
  createdAt: NativeDate;
88
109
  updatedAt: NativeDate;
89
110
  } & {
90
111
  emailAddresses: mongoose.Types.DocumentArray<{
91
- email?: string;
92
112
  title?: string;
113
+ email?: string;
93
114
  isActive?: boolean;
94
115
  }>;
95
116
  instances: mongoose.Types.DocumentArray<{
@@ -103,14 +124,26 @@ export declare const BorrowerComplianceSchema: mongoose.Schema<any, mongoose.Mod
103
124
  uploadedAt?: Date;
104
125
  uploadedBy?: string;
105
126
  }>;
106
- status?: string;
107
127
  nextDate?: Date;
108
128
  submittedDate?: Date;
129
+ status?: string;
109
130
  }>;
110
- frequency?: string;
111
131
  startDate?: Date;
132
+ frequency?: string;
112
133
  item?: mongoose.Types.ObjectId;
113
134
  }>;
135
+ __v?: number;
136
+ email?: string;
137
+ isVisible?: boolean;
138
+ isEmailingActive?: boolean;
139
+ isDailyTransactionsEmailingActive?: boolean;
140
+ plaidAccessToken?: string;
141
+ fundingStatus?: string;
142
+ lastEmailSentAt?: Date;
143
+ }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
144
+ createdAt: NativeDate;
145
+ updatedAt: NativeDate;
146
+ } & {
114
147
  borrower: mongoose.Types.ObjectId;
115
148
  complianceNotes: mongoose.Types.DocumentArray<{
116
149
  date: Date;
@@ -123,34 +156,22 @@ export declare const BorrowerComplianceSchema: mongoose.Schema<any, mongoose.Mod
123
156
  user?: string;
124
157
  }>;
125
158
  mainEmails: mongoose.Types.DocumentArray<{
126
- email?: string;
127
159
  title?: string;
160
+ email?: string;
128
161
  isActive?: boolean;
129
162
  }>;
130
163
  financialEmails: mongoose.Types.DocumentArray<{
131
- email?: string;
132
164
  title?: string;
165
+ email?: string;
133
166
  isActive?: boolean;
134
167
  }>;
135
- __v?: number;
136
- email?: string;
137
- isVisible?: boolean;
138
- isEmailingActive?: boolean;
139
- isDailyTransactionsEmailingActive?: boolean;
140
- plaidAccessToken?: string;
141
- fundingStatus?: string;
142
- lastEmailSentAt?: Date;
143
- }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
144
- createdAt: NativeDate;
145
- updatedAt: NativeDate;
146
- } & {
147
168
  items: mongoose.Types.DocumentArray<{
148
169
  createdAt: NativeDate;
149
170
  updatedAt: NativeDate;
150
171
  } & {
151
172
  emailAddresses: mongoose.Types.DocumentArray<{
152
- email?: string;
153
173
  title?: string;
174
+ email?: string;
154
175
  isActive?: boolean;
155
176
  }>;
156
177
  instances: mongoose.Types.DocumentArray<{
@@ -164,14 +185,26 @@ export declare const BorrowerComplianceSchema: mongoose.Schema<any, mongoose.Mod
164
185
  uploadedAt?: Date;
165
186
  uploadedBy?: string;
166
187
  }>;
167
- status?: string;
168
188
  nextDate?: Date;
169
189
  submittedDate?: Date;
190
+ status?: string;
170
191
  }>;
171
- frequency?: string;
172
192
  startDate?: Date;
193
+ frequency?: string;
173
194
  item?: mongoose.Types.ObjectId;
174
195
  }>;
196
+ __v?: number;
197
+ email?: string;
198
+ isVisible?: boolean;
199
+ isEmailingActive?: boolean;
200
+ isDailyTransactionsEmailingActive?: boolean;
201
+ plaidAccessToken?: string;
202
+ fundingStatus?: string;
203
+ lastEmailSentAt?: Date;
204
+ }>> & mongoose.FlatRecord<{
205
+ createdAt: NativeDate;
206
+ updatedAt: NativeDate;
207
+ } & {
175
208
  borrower: mongoose.Types.ObjectId;
176
209
  complianceNotes: mongoose.Types.DocumentArray<{
177
210
  date: Date;
@@ -184,34 +217,22 @@ export declare const BorrowerComplianceSchema: mongoose.Schema<any, mongoose.Mod
184
217
  user?: string;
185
218
  }>;
186
219
  mainEmails: mongoose.Types.DocumentArray<{
187
- email?: string;
188
220
  title?: string;
221
+ email?: string;
189
222
  isActive?: boolean;
190
223
  }>;
191
224
  financialEmails: mongoose.Types.DocumentArray<{
192
- email?: string;
193
225
  title?: string;
226
+ email?: string;
194
227
  isActive?: boolean;
195
228
  }>;
196
- __v?: number;
197
- email?: string;
198
- isVisible?: boolean;
199
- isEmailingActive?: boolean;
200
- isDailyTransactionsEmailingActive?: boolean;
201
- plaidAccessToken?: string;
202
- fundingStatus?: string;
203
- lastEmailSentAt?: Date;
204
- }>> & mongoose.FlatRecord<{
205
- createdAt: NativeDate;
206
- updatedAt: NativeDate;
207
- } & {
208
229
  items: mongoose.Types.DocumentArray<{
209
230
  createdAt: NativeDate;
210
231
  updatedAt: NativeDate;
211
232
  } & {
212
233
  emailAddresses: mongoose.Types.DocumentArray<{
213
- email?: string;
214
234
  title?: string;
235
+ email?: string;
215
236
  isActive?: boolean;
216
237
  }>;
217
238
  instances: mongoose.Types.DocumentArray<{
@@ -225,35 +246,14 @@ export declare const BorrowerComplianceSchema: mongoose.Schema<any, mongoose.Mod
225
246
  uploadedAt?: Date;
226
247
  uploadedBy?: string;
227
248
  }>;
228
- status?: string;
229
249
  nextDate?: Date;
230
250
  submittedDate?: Date;
251
+ status?: string;
231
252
  }>;
232
- frequency?: string;
233
253
  startDate?: Date;
254
+ frequency?: string;
234
255
  item?: mongoose.Types.ObjectId;
235
256
  }>;
236
- borrower: mongoose.Types.ObjectId;
237
- complianceNotes: mongoose.Types.DocumentArray<{
238
- date: Date;
239
- note: string;
240
- user?: string;
241
- }>;
242
- borrowerNotes: mongoose.Types.DocumentArray<{
243
- date: Date;
244
- note: string;
245
- user?: string;
246
- }>;
247
- mainEmails: mongoose.Types.DocumentArray<{
248
- email?: string;
249
- title?: string;
250
- isActive?: boolean;
251
- }>;
252
- financialEmails: mongoose.Types.DocumentArray<{
253
- email?: string;
254
- title?: string;
255
- isActive?: boolean;
256
- }>;
257
257
  __v?: number;
258
258
  email?: string;
259
259
  isVisible?: boolean;
@@ -1,8 +1,8 @@
1
1
  /// <reference types="mongoose/types/document" />
2
2
  /// <reference types="mongoose/types/models" />
3
3
  /// <reference types="mongoose/types/schemaoptions" />
4
- /// <reference types="mongoose/types/utility" />
5
4
  /// <reference types="mongoose/types/types" />
5
+ /// <reference types="mongoose/types/utility" />
6
6
  /// <reference types="mongoose/types/aggregate" />
7
7
  /// <reference types="mongoose/types/callback" />
8
8
  /// <reference types="mongoose/types/collection" />
@@ -41,13 +41,13 @@ export interface IFinancialComplianceSettingsDocument extends IFinancialComplian
41
41
  export declare const FinancialComplianceSettingsSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
42
42
  isDeleted: boolean;
43
43
  financialEmails: mongoose.Types.DocumentArray<{
44
- email?: string;
45
44
  title?: string;
45
+ email?: string;
46
46
  isActive?: boolean;
47
47
  }>;
48
48
  managementEmails: mongoose.Types.DocumentArray<{
49
- email?: string;
50
49
  title?: string;
50
+ email?: string;
51
51
  isActive?: boolean;
52
52
  }>;
53
53
  __v?: number;
@@ -57,13 +57,13 @@ export declare const FinancialComplianceSettingsSchema: mongoose.Schema<any, mon
57
57
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
58
58
  isDeleted: boolean;
59
59
  financialEmails: mongoose.Types.DocumentArray<{
60
- email?: string;
61
60
  title?: string;
61
+ email?: string;
62
62
  isActive?: boolean;
63
63
  }>;
64
64
  managementEmails: mongoose.Types.DocumentArray<{
65
- email?: string;
66
65
  title?: string;
66
+ email?: string;
67
67
  isActive?: boolean;
68
68
  }>;
69
69
  __v?: number;
@@ -73,13 +73,13 @@ export declare const FinancialComplianceSettingsSchema: mongoose.Schema<any, mon
73
73
  }>> & mongoose.FlatRecord<{
74
74
  isDeleted: boolean;
75
75
  financialEmails: mongoose.Types.DocumentArray<{
76
- email?: string;
77
76
  title?: string;
77
+ email?: string;
78
78
  isActive?: boolean;
79
79
  }>;
80
80
  managementEmails: mongoose.Types.DocumentArray<{
81
- email?: string;
82
81
  title?: string;
82
+ email?: string;
83
83
  isActive?: boolean;
84
84
  }>;
85
85
  __v?: number;
@@ -89,15 +89,15 @@ export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any,
89
89
  createdAt: NativeDate;
90
90
  updatedAt: NativeDate;
91
91
  } & {
92
- borrowerId: mongoose.Types.ObjectId;
93
- type: string;
92
+ code: string;
94
93
  name: string;
95
- order: number;
96
94
  active: boolean;
97
- code: string;
95
+ type: string;
96
+ order: number;
97
+ borrowerId: mongoose.Types.ObjectId;
98
+ commitment: number;
98
99
  startDate: Date;
99
100
  maturityDate: Date;
100
- commitment: number;
101
101
  isBalanceActual: boolean;
102
102
  isFloatedBalanceActual: boolean;
103
103
  masterLoanProductId: mongoose.Types.ObjectId;
@@ -117,15 +117,15 @@ export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any,
117
117
  createdAt: NativeDate;
118
118
  updatedAt: NativeDate;
119
119
  } & {
120
- borrowerId: mongoose.Types.ObjectId;
121
- type: string;
120
+ code: string;
122
121
  name: string;
123
- order: number;
124
122
  active: boolean;
125
- code: string;
123
+ type: string;
124
+ order: number;
125
+ borrowerId: mongoose.Types.ObjectId;
126
+ commitment: number;
126
127
  startDate: Date;
127
128
  maturityDate: Date;
128
- commitment: number;
129
129
  isBalanceActual: boolean;
130
130
  isFloatedBalanceActual: boolean;
131
131
  masterLoanProductId: mongoose.Types.ObjectId;
@@ -145,15 +145,15 @@ export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any,
145
145
  createdAt: NativeDate;
146
146
  updatedAt: NativeDate;
147
147
  } & {
148
- borrowerId: mongoose.Types.ObjectId;
149
- type: string;
148
+ code: string;
150
149
  name: string;
151
- order: number;
152
150
  active: boolean;
153
- code: string;
151
+ type: string;
152
+ order: number;
153
+ borrowerId: mongoose.Types.ObjectId;
154
+ commitment: number;
154
155
  startDate: Date;
155
156
  maturityDate: Date;
156
- commitment: number;
157
157
  isBalanceActual: boolean;
158
158
  isFloatedBalanceActual: boolean;
159
159
  masterLoanProductId: mongoose.Types.ObjectId;
@@ -56,18 +56,18 @@ export declare const PostponedTransactionSchema: mongoose.Schema<any, mongoose.M
56
56
  timestamps: false;
57
57
  }, {
58
58
  productId: mongoose.Types.ObjectId;
59
- transactionId: mongoose.Types.ObjectId;
60
59
  postponedToDate: string;
60
+ transactionId: mongoose.Types.ObjectId;
61
61
  __v?: number;
62
62
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
63
63
  productId: mongoose.Types.ObjectId;
64
- transactionId: mongoose.Types.ObjectId;
65
64
  postponedToDate: string;
65
+ transactionId: mongoose.Types.ObjectId;
66
66
  __v?: number;
67
67
  }>> & mongoose.FlatRecord<{
68
68
  productId: mongoose.Types.ObjectId;
69
- transactionId: mongoose.Types.ObjectId;
70
69
  postponedToDate: string;
70
+ transactionId: mongoose.Types.ObjectId;
71
71
  __v?: number;
72
72
  }> & {
73
73
  _id: mongoose.Types.ObjectId;
@@ -35,10 +35,10 @@ export declare const allSchemas: {
35
35
  createdAt: NativeDate;
36
36
  updatedAt: NativeDate;
37
37
  } & {
38
- bbcSheetId: import("mongoose").Types.ObjectId;
39
38
  order: number;
40
- apDate: Date;
41
39
  amount: number;
40
+ bbcSheetId: import("mongoose").Types.ObjectId;
41
+ apDate: Date;
42
42
  __v?: number;
43
43
  poNumber?: string;
44
44
  customerName?: string;
@@ -49,10 +49,10 @@ export declare const allSchemas: {
49
49
  createdAt: NativeDate;
50
50
  updatedAt: NativeDate;
51
51
  } & {
52
- bbcSheetId: import("mongoose").Types.ObjectId;
53
52
  order: number;
54
- apDate: Date;
55
53
  amount: number;
54
+ bbcSheetId: import("mongoose").Types.ObjectId;
55
+ apDate: Date;
56
56
  __v?: number;
57
57
  poNumber?: string;
58
58
  customerName?: string;
@@ -63,10 +63,10 @@ export declare const allSchemas: {
63
63
  createdAt: NativeDate;
64
64
  updatedAt: NativeDate;
65
65
  } & {
66
- bbcSheetId: import("mongoose").Types.ObjectId;
67
66
  order: number;
68
- apDate: Date;
69
67
  amount: number;
68
+ bbcSheetId: import("mongoose").Types.ObjectId;
69
+ apDate: Date;
70
70
  __v?: number;
71
71
  poNumber?: string;
72
72
  customerName?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.5.124",
3
+ "version": "1.5.126",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -86,10 +86,10 @@ export declare class BorrowerService {
86
86
  getBorrowerCodesMap(): Promise<Map<string, string>>;
87
87
  getBorrowerStatementDetails(borrowers: IBorrowerDoc[]): Promise<{
88
88
  [x: string]: {
89
- ENTIRE_LOAN?: boolean;
90
89
  SELECTED_PERIOD?: boolean;
91
- CURRENT_MONTH?: boolean;
90
+ ENTIRE_LOAN?: boolean;
92
91
  LAST_MONTH?: boolean;
92
+ CURRENT_MONTH?: boolean;
93
93
  TERM_LOAN?: boolean;
94
94
  };
95
95
  }>;
@@ -60,7 +60,7 @@ export declare class ComplianceBorrowersService {
60
60
  isComplianceBorrowerAllowed(userAccess: IUserAccess, requestedBorrowerId: string): boolean;
61
61
  calculateInstanceStatuses(instance: IBorrowerItemInstance, item: IBorrowerItemLean): IInstanceStatus;
62
62
  getFullComplianceBorrowerById(complianceBorrowerId: string): Promise<IComplianceBorrowerDocumentFullWithStatuses>;
63
- getAllBorrowersShortened(userAccess: IUserAccess): Promise<Pick<IComplianceBorrowerWithBorrower, "items" | "borrower" | "fundingStatus">[]>;
63
+ getAllBorrowersShortened(userAccess: IUserAccess): Promise<Pick<IComplianceBorrowerWithBorrower, "borrower" | "fundingStatus" | "items">[]>;
64
64
  generateInstances(complianceBorrowerId: any): Promise<IComplianceBorrowerDocumentFullWithStatuses>;
65
65
  calculateAndUpdateFundingStatus(complianceBorrowerId: string): Promise<void>;
66
66
  calculateFundingStatus(complianceBorrower: IComplianceBorrowerDocumentFull): string;
@@ -1,5 +1,5 @@
1
- /// <reference types="mongoose/types/types" />
2
1
  /// <reference types="mongoose/types/document" />
2
+ /// <reference types="mongoose/types/types" />
3
3
  /// <reference types="mongoose/types/aggregate" />
4
4
  /// <reference types="mongoose/types/callback" />
5
5
  /// <reference types="mongoose/types/collection" />