gemcap-be-common 1.4.215 → 1.4.216

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.
@@ -53,13 +53,34 @@ export declare const BorrowerComplianceSchema: mongoose.Schema<any, mongoose.Mod
53
53
  createdAt: NativeDate;
54
54
  updatedAt: NativeDate;
55
55
  } & {
56
+ borrower: mongoose.Types.ObjectId;
57
+ complianceNotes: mongoose.Types.DocumentArray<{
58
+ date: Date;
59
+ note: string;
60
+ user?: string;
61
+ }>;
62
+ borrowerNotes: mongoose.Types.DocumentArray<{
63
+ date: Date;
64
+ note: string;
65
+ user?: string;
66
+ }>;
67
+ mainEmails: mongoose.Types.DocumentArray<{
68
+ title?: string;
69
+ email?: string;
70
+ isActive?: boolean;
71
+ }>;
72
+ financialEmails: mongoose.Types.DocumentArray<{
73
+ title?: string;
74
+ email?: string;
75
+ isActive?: boolean;
76
+ }>;
56
77
  items: mongoose.Types.DocumentArray<{
57
78
  createdAt: NativeDate;
58
79
  updatedAt: NativeDate;
59
80
  } & {
60
81
  emailAddresses: mongoose.Types.DocumentArray<{
61
- email?: string;
62
82
  title?: string;
83
+ email?: string;
63
84
  isActive?: boolean;
64
85
  }>;
65
86
  instances: mongoose.Types.DocumentArray<{
@@ -81,6 +102,18 @@ export declare const BorrowerComplianceSchema: mongoose.Schema<any, mongoose.Mod
81
102
  startDate?: Date;
82
103
  frequency?: string;
83
104
  }>;
105
+ __v?: number;
106
+ isVisible?: boolean;
107
+ email?: string;
108
+ isEmailingActive?: boolean;
109
+ isDailyTransactionsEmailingActive?: boolean;
110
+ plaidAccessToken?: string;
111
+ fundingStatus?: string;
112
+ lastEmailSentAt?: Date;
113
+ }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
114
+ createdAt: NativeDate;
115
+ updatedAt: NativeDate;
116
+ } & {
84
117
  borrower: mongoose.Types.ObjectId;
85
118
  complianceNotes: mongoose.Types.DocumentArray<{
86
119
  date: Date;
@@ -93,34 +126,22 @@ export declare const BorrowerComplianceSchema: mongoose.Schema<any, mongoose.Mod
93
126
  user?: string;
94
127
  }>;
95
128
  mainEmails: mongoose.Types.DocumentArray<{
96
- email?: string;
97
129
  title?: string;
130
+ email?: string;
98
131
  isActive?: boolean;
99
132
  }>;
100
133
  financialEmails: mongoose.Types.DocumentArray<{
101
- email?: string;
102
134
  title?: string;
135
+ email?: string;
103
136
  isActive?: boolean;
104
137
  }>;
105
- isVisible?: boolean;
106
- email?: string;
107
- isEmailingActive?: boolean;
108
- isDailyTransactionsEmailingActive?: boolean;
109
- plaidAccessToken?: string;
110
- fundingStatus?: string;
111
- lastEmailSentAt?: Date;
112
- __v?: number;
113
- }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
114
- createdAt: NativeDate;
115
- updatedAt: NativeDate;
116
- } & {
117
138
  items: mongoose.Types.DocumentArray<{
118
139
  createdAt: NativeDate;
119
140
  updatedAt: NativeDate;
120
141
  } & {
121
142
  emailAddresses: mongoose.Types.DocumentArray<{
122
- email?: string;
123
143
  title?: string;
144
+ email?: string;
124
145
  isActive?: boolean;
125
146
  }>;
126
147
  instances: mongoose.Types.DocumentArray<{
@@ -142,6 +163,18 @@ export declare const BorrowerComplianceSchema: mongoose.Schema<any, mongoose.Mod
142
163
  startDate?: Date;
143
164
  frequency?: string;
144
165
  }>;
166
+ __v?: number;
167
+ isVisible?: boolean;
168
+ email?: string;
169
+ isEmailingActive?: boolean;
170
+ isDailyTransactionsEmailingActive?: boolean;
171
+ plaidAccessToken?: string;
172
+ fundingStatus?: string;
173
+ lastEmailSentAt?: Date;
174
+ }>> & mongoose.FlatRecord<{
175
+ createdAt: NativeDate;
176
+ updatedAt: NativeDate;
177
+ } & {
145
178
  borrower: mongoose.Types.ObjectId;
146
179
  complianceNotes: mongoose.Types.DocumentArray<{
147
180
  date: Date;
@@ -154,34 +187,22 @@ export declare const BorrowerComplianceSchema: mongoose.Schema<any, mongoose.Mod
154
187
  user?: string;
155
188
  }>;
156
189
  mainEmails: mongoose.Types.DocumentArray<{
157
- email?: string;
158
190
  title?: string;
191
+ email?: string;
159
192
  isActive?: boolean;
160
193
  }>;
161
194
  financialEmails: mongoose.Types.DocumentArray<{
162
- email?: string;
163
195
  title?: string;
196
+ email?: string;
164
197
  isActive?: boolean;
165
198
  }>;
166
- isVisible?: boolean;
167
- email?: string;
168
- isEmailingActive?: boolean;
169
- isDailyTransactionsEmailingActive?: boolean;
170
- plaidAccessToken?: string;
171
- fundingStatus?: string;
172
- lastEmailSentAt?: Date;
173
- __v?: number;
174
- }>> & mongoose.FlatRecord<{
175
- createdAt: NativeDate;
176
- updatedAt: NativeDate;
177
- } & {
178
199
  items: mongoose.Types.DocumentArray<{
179
200
  createdAt: NativeDate;
180
201
  updatedAt: NativeDate;
181
202
  } & {
182
203
  emailAddresses: mongoose.Types.DocumentArray<{
183
- email?: string;
184
204
  title?: string;
205
+ email?: string;
185
206
  isActive?: boolean;
186
207
  }>;
187
208
  instances: mongoose.Types.DocumentArray<{
@@ -203,27 +224,7 @@ export declare const BorrowerComplianceSchema: mongoose.Schema<any, mongoose.Mod
203
224
  startDate?: Date;
204
225
  frequency?: string;
205
226
  }>;
206
- borrower: mongoose.Types.ObjectId;
207
- complianceNotes: mongoose.Types.DocumentArray<{
208
- date: Date;
209
- note: string;
210
- user?: string;
211
- }>;
212
- borrowerNotes: mongoose.Types.DocumentArray<{
213
- date: Date;
214
- note: string;
215
- user?: string;
216
- }>;
217
- mainEmails: mongoose.Types.DocumentArray<{
218
- email?: string;
219
- title?: string;
220
- isActive?: boolean;
221
- }>;
222
- financialEmails: mongoose.Types.DocumentArray<{
223
- email?: string;
224
- title?: string;
225
- isActive?: boolean;
226
- }>;
227
+ __v?: number;
227
228
  isVisible?: boolean;
228
229
  email?: string;
229
230
  isEmailingActive?: boolean;
@@ -231,7 +232,6 @@ export declare const BorrowerComplianceSchema: mongoose.Schema<any, mongoose.Mod
231
232
  plaidAccessToken?: string;
232
233
  fundingStatus?: string;
233
234
  lastEmailSentAt?: Date;
234
- __v?: number;
235
235
  }> & {
236
236
  _id: mongoose.Types.ObjectId;
237
237
  }>;
@@ -38,20 +38,20 @@ export declare const BorrowerDataInsuranceSchema: mongoose.Schema<any, mongoose.
38
38
  }, {
39
39
  type: string;
40
40
  coverageAmount: number;
41
- policyDates?: string;
42
41
  company?: string;
42
+ policyDates?: string;
43
43
  notes?: string;
44
44
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
45
45
  type: string;
46
46
  coverageAmount: number;
47
- policyDates?: string;
48
47
  company?: string;
48
+ policyDates?: string;
49
49
  notes?: string;
50
50
  }>> & mongoose.FlatRecord<{
51
51
  type: string;
52
52
  coverageAmount: number;
53
- policyDates?: string;
54
53
  company?: string;
54
+ policyDates?: string;
55
55
  notes?: string;
56
56
  }> & {
57
57
  _id: mongoose.Types.ObjectId;
@@ -94,35 +94,35 @@ export declare const dataSchema: mongoose.Schema<any, mongoose.Model<any, any, a
94
94
  banks: mongoose.Types.ObjectId[];
95
95
  inventories: mongoose.Types.ObjectId[];
96
96
  receivables: mongoose.Types.ObjectId[];
97
+ insurance: mongoose.Types.ObjectId[];
97
98
  options: mongoose.Types.ObjectId[];
98
99
  terms: mongoose.Types.ObjectId[];
99
100
  bootCollaterals: mongoose.Types.ObjectId[];
100
101
  contacts: mongoose.Types.ObjectId[];
101
102
  guarantees: mongoose.Types.ObjectId[];
102
103
  locations: mongoose.Types.ObjectId[];
103
- insurance: mongoose.Types.ObjectId[];
104
104
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
105
105
  banks: mongoose.Types.ObjectId[];
106
106
  inventories: mongoose.Types.ObjectId[];
107
107
  receivables: mongoose.Types.ObjectId[];
108
+ insurance: mongoose.Types.ObjectId[];
108
109
  options: mongoose.Types.ObjectId[];
109
110
  terms: mongoose.Types.ObjectId[];
110
111
  bootCollaterals: mongoose.Types.ObjectId[];
111
112
  contacts: mongoose.Types.ObjectId[];
112
113
  guarantees: mongoose.Types.ObjectId[];
113
114
  locations: mongoose.Types.ObjectId[];
114
- insurance: mongoose.Types.ObjectId[];
115
115
  }>> & mongoose.FlatRecord<{
116
116
  banks: mongoose.Types.ObjectId[];
117
117
  inventories: mongoose.Types.ObjectId[];
118
118
  receivables: mongoose.Types.ObjectId[];
119
+ insurance: mongoose.Types.ObjectId[];
119
120
  options: mongoose.Types.ObjectId[];
120
121
  terms: mongoose.Types.ObjectId[];
121
122
  bootCollaterals: mongoose.Types.ObjectId[];
122
123
  contacts: mongoose.Types.ObjectId[];
123
124
  guarantees: mongoose.Types.ObjectId[];
124
125
  locations: mongoose.Types.ObjectId[];
125
- insurance: mongoose.Types.ObjectId[];
126
126
  }> & {
127
127
  _id: mongoose.Types.ObjectId;
128
128
  }>;
@@ -138,13 +138,13 @@ export declare const BorrowerSettingsSchema: mongoose.Schema<any, mongoose.Model
138
138
  banks: mongoose.Types.ObjectId[];
139
139
  inventories: mongoose.Types.ObjectId[];
140
140
  receivables: mongoose.Types.ObjectId[];
141
+ insurance: mongoose.Types.ObjectId[];
141
142
  options: mongoose.Types.ObjectId[];
142
143
  terms: mongoose.Types.ObjectId[];
143
144
  bootCollaterals: mongoose.Types.ObjectId[];
144
145
  contacts: mongoose.Types.ObjectId[];
145
146
  guarantees: mongoose.Types.ObjectId[];
146
147
  locations: mongoose.Types.ObjectId[];
147
- insurance: mongoose.Types.ObjectId[];
148
148
  };
149
149
  dataAvailability?: {
150
150
  inventories: boolean;
@@ -162,13 +162,13 @@ export declare const BorrowerSettingsSchema: mongoose.Schema<any, mongoose.Model
162
162
  banks: mongoose.Types.ObjectId[];
163
163
  inventories: mongoose.Types.ObjectId[];
164
164
  receivables: mongoose.Types.ObjectId[];
165
+ insurance: mongoose.Types.ObjectId[];
165
166
  options: mongoose.Types.ObjectId[];
166
167
  terms: mongoose.Types.ObjectId[];
167
168
  bootCollaterals: mongoose.Types.ObjectId[];
168
169
  contacts: mongoose.Types.ObjectId[];
169
170
  guarantees: mongoose.Types.ObjectId[];
170
171
  locations: mongoose.Types.ObjectId[];
171
- insurance: mongoose.Types.ObjectId[];
172
172
  };
173
173
  dataAvailability?: {
174
174
  inventories: boolean;
@@ -186,13 +186,13 @@ export declare const BorrowerSettingsSchema: mongoose.Schema<any, mongoose.Model
186
186
  banks: mongoose.Types.ObjectId[];
187
187
  inventories: mongoose.Types.ObjectId[];
188
188
  receivables: mongoose.Types.ObjectId[];
189
+ insurance: mongoose.Types.ObjectId[];
189
190
  options: mongoose.Types.ObjectId[];
190
191
  terms: mongoose.Types.ObjectId[];
191
192
  bootCollaterals: mongoose.Types.ObjectId[];
192
193
  contacts: mongoose.Types.ObjectId[];
193
194
  guarantees: mongoose.Types.ObjectId[];
194
195
  locations: mongoose.Types.ObjectId[];
195
- insurance: mongoose.Types.ObjectId[];
196
196
  };
197
197
  dataAvailability?: {
198
198
  inventories: boolean;
@@ -35,12 +35,12 @@ export interface IFinancialComplianceSettingsDocument extends IFinancialComplian
35
35
  }
36
36
  export declare const FinancialComplianceSettingsSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
37
37
  isDeleted: boolean;
38
- managementEmails: mongoose.Types.DocumentArray<{
38
+ financialEmails: mongoose.Types.DocumentArray<{
39
39
  title?: string;
40
40
  email?: string;
41
41
  isActive?: boolean;
42
42
  }>;
43
- financialEmails: mongoose.Types.DocumentArray<{
43
+ managementEmails: mongoose.Types.DocumentArray<{
44
44
  title?: string;
45
45
  email?: string;
46
46
  isActive?: boolean;
@@ -51,12 +51,12 @@ export declare const FinancialComplianceSettingsSchema: mongoose.Schema<any, mon
51
51
  stopFundingDate?: Date;
52
52
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
53
53
  isDeleted: boolean;
54
- managementEmails: mongoose.Types.DocumentArray<{
54
+ financialEmails: mongoose.Types.DocumentArray<{
55
55
  title?: string;
56
56
  email?: string;
57
57
  isActive?: boolean;
58
58
  }>;
59
- financialEmails: mongoose.Types.DocumentArray<{
59
+ managementEmails: mongoose.Types.DocumentArray<{
60
60
  title?: string;
61
61
  email?: string;
62
62
  isActive?: boolean;
@@ -67,12 +67,12 @@ export declare const FinancialComplianceSettingsSchema: mongoose.Schema<any, mon
67
67
  stopFundingDate?: Date;
68
68
  }>> & mongoose.FlatRecord<{
69
69
  isDeleted: boolean;
70
- managementEmails: mongoose.Types.DocumentArray<{
70
+ financialEmails: mongoose.Types.DocumentArray<{
71
71
  title?: string;
72
72
  email?: string;
73
73
  isActive?: boolean;
74
74
  }>;
75
- financialEmails: mongoose.Types.DocumentArray<{
75
+ managementEmails: mongoose.Types.DocumentArray<{
76
76
  title?: string;
77
77
  email?: string;
78
78
  isActive?: boolean;
@@ -49,24 +49,24 @@ export declare const FinancialIndexSchema: mongoose.Schema<any, mongoose.Model<a
49
49
  createdAt: NativeDate;
50
50
  updatedAt: NativeDate;
51
51
  } & {
52
- name: string;
53
52
  date: Date;
53
+ name: string;
54
54
  value: number;
55
55
  __v?: number;
56
56
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
57
57
  createdAt: NativeDate;
58
58
  updatedAt: NativeDate;
59
59
  } & {
60
- name: string;
61
60
  date: Date;
61
+ name: string;
62
62
  value: number;
63
63
  __v?: number;
64
64
  }>> & mongoose.FlatRecord<{
65
65
  createdAt: NativeDate;
66
66
  updatedAt: NativeDate;
67
67
  } & {
68
- name: string;
69
68
  date: Date;
69
+ name: string;
70
70
  value: number;
71
71
  __v?: number;
72
72
  }> & {
@@ -88,8 +88,8 @@ export declare const InventoryAvailabilityScheme: mongoose.Schema<any, mongoose.
88
88
  createdAt: NativeDate;
89
89
  updatedAt: NativeDate;
90
90
  } & {
91
- borrowerId: mongoose.Types.ObjectId;
92
91
  bbcDateId: mongoose.Types.ObjectId;
92
+ borrowerId: mongoose.Types.ObjectId;
93
93
  status: string;
94
94
  summary: mongoose.Types.DocumentArray<{
95
95
  order: number;
@@ -121,8 +121,8 @@ export declare const InventoryAvailabilityScheme: mongoose.Schema<any, mongoose.
121
121
  createdAt: NativeDate;
122
122
  updatedAt: NativeDate;
123
123
  } & {
124
- borrowerId: mongoose.Types.ObjectId;
125
124
  bbcDateId: mongoose.Types.ObjectId;
125
+ borrowerId: mongoose.Types.ObjectId;
126
126
  status: string;
127
127
  summary: mongoose.Types.DocumentArray<{
128
128
  order: number;
@@ -154,8 +154,8 @@ export declare const InventoryAvailabilityScheme: mongoose.Schema<any, mongoose.
154
154
  createdAt: NativeDate;
155
155
  updatedAt: NativeDate;
156
156
  } & {
157
- borrowerId: mongoose.Types.ObjectId;
158
157
  bbcDateId: mongoose.Types.ObjectId;
158
+ borrowerId: mongoose.Types.ObjectId;
159
159
  status: string;
160
160
  summary: mongoose.Types.DocumentArray<{
161
161
  order: number;
@@ -48,8 +48,8 @@ export declare const InventoryAvailabilityItemScheme: mongoose.Schema<any, mongo
48
48
  createdAt: NativeDate;
49
49
  updatedAt: NativeDate;
50
50
  } & {
51
- unique: boolean;
52
51
  order: number;
52
+ unique: boolean;
53
53
  inventoryAvailabilityId: mongoose.Types.ObjectId;
54
54
  inventoryId: mongoose.Types.ObjectId;
55
55
  matched: boolean;
@@ -64,8 +64,8 @@ export declare const InventoryAvailabilityItemScheme: mongoose.Schema<any, mongo
64
64
  createdAt: NativeDate;
65
65
  updatedAt: NativeDate;
66
66
  } & {
67
- unique: boolean;
68
67
  order: number;
68
+ unique: boolean;
69
69
  inventoryAvailabilityId: mongoose.Types.ObjectId;
70
70
  inventoryId: mongoose.Types.ObjectId;
71
71
  matched: boolean;
@@ -80,8 +80,8 @@ export declare const InventoryAvailabilityItemScheme: mongoose.Schema<any, mongo
80
80
  createdAt: NativeDate;
81
81
  updatedAt: NativeDate;
82
82
  } & {
83
- unique: boolean;
84
83
  order: number;
84
+ unique: boolean;
85
85
  inventoryAvailabilityId: mongoose.Types.ObjectId;
86
86
  inventoryId: mongoose.Types.ObjectId;
87
87
  matched: boolean;
@@ -71,9 +71,9 @@ export declare const InventoryItemSchema: mongoose.Schema<any, mongoose.Model<an
71
71
  createdAt: NativeDate;
72
72
  updatedAt: NativeDate;
73
73
  } & {
74
- value: number;
75
74
  bbcSheetId: mongoose.Types.ObjectId;
76
75
  order: number;
76
+ value: number;
77
77
  skuDate: Date;
78
78
  category: string;
79
79
  sku: string;
@@ -93,9 +93,9 @@ export declare const InventoryItemSchema: mongoose.Schema<any, mongoose.Model<an
93
93
  createdAt: NativeDate;
94
94
  updatedAt: NativeDate;
95
95
  } & {
96
- value: number;
97
96
  bbcSheetId: mongoose.Types.ObjectId;
98
97
  order: number;
98
+ value: number;
99
99
  skuDate: Date;
100
100
  category: string;
101
101
  sku: string;
@@ -115,9 +115,9 @@ export declare const InventoryItemSchema: mongoose.Schema<any, mongoose.Model<an
115
115
  createdAt: NativeDate;
116
116
  updatedAt: NativeDate;
117
117
  } & {
118
- value: number;
119
118
  bbcSheetId: mongoose.Types.ObjectId;
120
119
  order: number;
120
+ value: number;
121
121
  skuDate: Date;
122
122
  category: string;
123
123
  sku: string;
@@ -46,8 +46,8 @@ export declare const InventorySeasonalEntrySchema: mongoose.Schema<any, mongoose
46
46
  } & {
47
47
  borrowerId: mongoose.Types.ObjectId;
48
48
  items: mongoose.Types.DocumentArray<{
49
- advanceRate: number;
50
49
  end: Date;
50
+ advanceRate: number;
51
51
  sku: string;
52
52
  start: Date;
53
53
  }>;
@@ -58,8 +58,8 @@ export declare const InventorySeasonalEntrySchema: mongoose.Schema<any, mongoose
58
58
  } & {
59
59
  borrowerId: mongoose.Types.ObjectId;
60
60
  items: mongoose.Types.DocumentArray<{
61
- advanceRate: number;
62
61
  end: Date;
62
+ advanceRate: number;
63
63
  sku: string;
64
64
  start: Date;
65
65
  }>;
@@ -70,8 +70,8 @@ export declare const InventorySeasonalEntrySchema: mongoose.Schema<any, mongoose
70
70
  } & {
71
71
  borrowerId: mongoose.Types.ObjectId;
72
72
  items: mongoose.Types.DocumentArray<{
73
- advanceRate: number;
74
73
  end: Date;
74
+ advanceRate: number;
75
75
  sku: string;
76
76
  start: Date;
77
77
  }>;
@@ -74,11 +74,11 @@ export declare const LoanChargeSchema: mongoose.Schema<any, mongoose.Model<any,
74
74
  createdAt: NativeDate;
75
75
  updatedAt: NativeDate;
76
76
  } & {
77
- borrowerId: mongoose.Types.ObjectId;
77
+ name: string;
78
78
  order: number;
79
79
  active: boolean;
80
+ borrowerId: mongoose.Types.ObjectId;
80
81
  code: string;
81
- name: string;
82
82
  frequency: string;
83
83
  productId: mongoose.Types.ObjectId;
84
84
  PLCode: string;
@@ -95,11 +95,11 @@ export declare const LoanChargeSchema: mongoose.Schema<any, mongoose.Model<any,
95
95
  createdAt: NativeDate;
96
96
  updatedAt: NativeDate;
97
97
  } & {
98
- borrowerId: mongoose.Types.ObjectId;
98
+ name: string;
99
99
  order: number;
100
100
  active: boolean;
101
+ borrowerId: mongoose.Types.ObjectId;
101
102
  code: string;
102
- name: string;
103
103
  frequency: string;
104
104
  productId: mongoose.Types.ObjectId;
105
105
  PLCode: string;
@@ -116,11 +116,11 @@ export declare const LoanChargeSchema: mongoose.Schema<any, mongoose.Model<any,
116
116
  createdAt: NativeDate;
117
117
  updatedAt: NativeDate;
118
118
  } & {
119
- borrowerId: mongoose.Types.ObjectId;
119
+ name: string;
120
120
  order: number;
121
121
  active: boolean;
122
+ borrowerId: mongoose.Types.ObjectId;
122
123
  code: string;
123
- name: string;
124
124
  frequency: string;
125
125
  productId: mongoose.Types.ObjectId;
126
126
  PLCode: string;
@@ -24,6 +24,7 @@
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  import mongoose from 'mongoose';
26
26
  import { ELoanTypes } from '../enums/loan-types.enum';
27
+ import { IBorrowerLean } from './Borrower.model';
27
28
  export interface ILoanProduct {
28
29
  borrowerId: mongoose.Types.ObjectId;
29
30
  order: number;
@@ -70,7 +71,8 @@ export interface ILoanProductViewWithBalances extends ILoanProductView {
70
71
  balance: number;
71
72
  floatedBalance: number;
72
73
  }
73
- export interface ILoanProductDoc extends ILoanProduct, mongoose.Document {
74
+ export interface ILoanProductLeanWithBorrower extends Omit<ILoanProductLean, 'borrowerId'> {
75
+ borrowerId: IBorrowerLean;
74
76
  }
75
77
  export type TLoanProductModel = mongoose.Model<ILoanProduct>;
76
78
  export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
@@ -79,12 +81,12 @@ export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any,
79
81
  createdAt: NativeDate;
80
82
  updatedAt: NativeDate;
81
83
  } & {
82
- borrowerId: mongoose.Types.ObjectId;
84
+ type: string;
85
+ name: string;
83
86
  order: number;
84
87
  active: boolean;
88
+ borrowerId: mongoose.Types.ObjectId;
85
89
  code: string;
86
- name: string;
87
- type: string;
88
90
  startDate: Date;
89
91
  maturityDate: Date;
90
92
  commitment: number;
@@ -92,25 +94,25 @@ export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any,
92
94
  isFloatedBalanceActual: boolean;
93
95
  isParticipant: boolean;
94
96
  isDefaultPaymentOrder: boolean;
97
+ __v?: number;
98
+ settlementCode?: string;
95
99
  masterCode?: string;
96
100
  payoffDate?: Date;
97
101
  minPercent?: number;
98
102
  maxPercent?: number;
99
103
  prepaymentDate?: Date;
100
104
  prepaymentTerms?: string;
101
- settlementCode?: string;
102
105
  deactivationDate?: Date;
103
- __v?: number;
104
106
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
105
107
  createdAt: NativeDate;
106
108
  updatedAt: NativeDate;
107
109
  } & {
108
- borrowerId: mongoose.Types.ObjectId;
110
+ type: string;
111
+ name: string;
109
112
  order: number;
110
113
  active: boolean;
114
+ borrowerId: mongoose.Types.ObjectId;
111
115
  code: string;
112
- name: string;
113
- type: string;
114
116
  startDate: Date;
115
117
  maturityDate: Date;
116
118
  commitment: number;
@@ -118,25 +120,25 @@ export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any,
118
120
  isFloatedBalanceActual: boolean;
119
121
  isParticipant: boolean;
120
122
  isDefaultPaymentOrder: boolean;
123
+ __v?: number;
124
+ settlementCode?: string;
121
125
  masterCode?: string;
122
126
  payoffDate?: Date;
123
127
  minPercent?: number;
124
128
  maxPercent?: number;
125
129
  prepaymentDate?: Date;
126
130
  prepaymentTerms?: string;
127
- settlementCode?: string;
128
131
  deactivationDate?: Date;
129
- __v?: number;
130
132
  }>> & mongoose.FlatRecord<{
131
133
  createdAt: NativeDate;
132
134
  updatedAt: NativeDate;
133
135
  } & {
134
- borrowerId: mongoose.Types.ObjectId;
136
+ type: string;
137
+ name: string;
135
138
  order: number;
136
139
  active: boolean;
140
+ borrowerId: mongoose.Types.ObjectId;
137
141
  code: string;
138
- name: string;
139
- type: string;
140
142
  startDate: Date;
141
143
  maturityDate: Date;
142
144
  commitment: number;
@@ -144,15 +146,15 @@ export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any,
144
146
  isFloatedBalanceActual: boolean;
145
147
  isParticipant: boolean;
146
148
  isDefaultPaymentOrder: boolean;
149
+ __v?: number;
150
+ settlementCode?: string;
147
151
  masterCode?: string;
148
152
  payoffDate?: Date;
149
153
  minPercent?: number;
150
154
  maxPercent?: number;
151
155
  prepaymentDate?: Date;
152
156
  prepaymentTerms?: string;
153
- settlementCode?: string;
154
157
  deactivationDate?: Date;
155
- __v?: number;
156
158
  }> & {
157
159
  _id: mongoose.Types.ObjectId;
158
160
  }>;
@@ -2,6 +2,7 @@ import mongoose from 'mongoose';
2
2
 
3
3
  import { MODEL_NAMES } from './_models';
4
4
  import { ELoanTypes } from '../enums/loan-types.enum';
5
+ import { IBorrowerLean } from './Borrower.model';
5
6
 
6
7
  export interface ILoanProduct {
7
8
  borrowerId: mongoose.Types.ObjectId;
@@ -56,7 +57,8 @@ export interface ILoanProductViewWithBalances extends ILoanProductView {
56
57
  floatedBalance: number;
57
58
  }
58
59
 
59
- export interface ILoanProductDoc extends ILoanProduct, mongoose.Document {
60
+ export interface ILoanProductLeanWithBorrower extends Omit<ILoanProductLean, 'borrowerId'> {
61
+ borrowerId: IBorrowerLean;
60
62
  }
61
63
 
62
64
  export type TLoanProductModel = mongoose.Model<ILoanProduct>;