gemcap-be-common 1.5.176 → 1.5.178
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.
- package/models/Borrower.model.d.ts +28 -22
- package/models/Borrower.model.js +4 -0
- package/models/Borrower.model.ts +8 -1
- package/models/BorrowerCompliance.model.d.ts +58 -58
- package/models/BorrowerFinanceSettings.model.d.ts +96 -0
- package/models/BorrowerFinanceSettings.model.js +44 -0
- package/models/BorrowerFinanceSettings.model.ts +78 -0
- package/models/CategoryGroup.model.d.ts +3 -3
- package/models/CustomerAPGroup.model.d.ts +3 -3
- package/models/CustomerGroup.model.d.ts +3 -3
- package/models/Equipment.model.d.ts +3 -3
- package/models/FinancialCompliance.model.d.ts +6 -6
- package/models/Inventory.model.d.ts +3 -3
- package/models/InventoryItem.model.d.ts +3 -3
- package/models/InventorySeasonalRates.model.d.ts +3 -3
- package/models/LoanPayment.model.d.ts +18 -18
- package/models/LoanProducts.model.d.ts +15 -15
- package/models/PostponedTransactions.model.d.ts +3 -3
- package/models/ProductBroker.model.d.ts +15 -15
- package/models/_index.d.ts +6 -6
- package/models/_models.d.ts +1 -0
- package/models/_models.js +1 -0
- package/models/_models.ts +3 -0
- package/package.json +1 -1
- package/services/borrowers.service.d.ts +2 -2
- package/services/compliance-borrowers.service.d.ts +1 -1
- package/services/loan-transactions.service.d.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -54,6 +54,7 @@ export declare const EquipmentSchema: mongoose.Schema<any, mongoose.Model<any, a
|
|
|
54
54
|
updatedAt: NativeDate;
|
|
55
55
|
} & {
|
|
56
56
|
borrowerId: mongoose.Types.ObjectId;
|
|
57
|
+
date: Date;
|
|
57
58
|
items: mongoose.Types.DocumentArray<{
|
|
58
59
|
type: string;
|
|
59
60
|
amount: number;
|
|
@@ -70,7 +71,6 @@ export declare const EquipmentSchema: mongoose.Schema<any, mongoose.Model<any, a
|
|
|
70
71
|
};
|
|
71
72
|
advanceRate?: number;
|
|
72
73
|
}>;
|
|
73
|
-
date: Date;
|
|
74
74
|
__v?: number;
|
|
75
75
|
summary?: {
|
|
76
76
|
EQUIPMENT?: {
|
|
@@ -109,6 +109,7 @@ export declare const EquipmentSchema: mongoose.Schema<any, mongoose.Model<any, a
|
|
|
109
109
|
updatedAt: NativeDate;
|
|
110
110
|
} & {
|
|
111
111
|
borrowerId: mongoose.Types.ObjectId;
|
|
112
|
+
date: Date;
|
|
112
113
|
items: mongoose.Types.DocumentArray<{
|
|
113
114
|
type: string;
|
|
114
115
|
amount: number;
|
|
@@ -125,7 +126,6 @@ export declare const EquipmentSchema: mongoose.Schema<any, mongoose.Model<any, a
|
|
|
125
126
|
};
|
|
126
127
|
advanceRate?: number;
|
|
127
128
|
}>;
|
|
128
|
-
date: Date;
|
|
129
129
|
__v?: number;
|
|
130
130
|
summary?: {
|
|
131
131
|
EQUIPMENT?: {
|
|
@@ -164,6 +164,7 @@ export declare const EquipmentSchema: mongoose.Schema<any, mongoose.Model<any, a
|
|
|
164
164
|
updatedAt: NativeDate;
|
|
165
165
|
} & {
|
|
166
166
|
borrowerId: mongoose.Types.ObjectId;
|
|
167
|
+
date: Date;
|
|
167
168
|
items: mongoose.Types.DocumentArray<{
|
|
168
169
|
type: string;
|
|
169
170
|
amount: number;
|
|
@@ -180,7 +181,6 @@ export declare const EquipmentSchema: mongoose.Schema<any, mongoose.Model<any, a
|
|
|
180
181
|
};
|
|
181
182
|
advanceRate?: number;
|
|
182
183
|
}>;
|
|
183
|
-
date: Date;
|
|
184
184
|
__v?: number;
|
|
185
185
|
summary?: {
|
|
186
186
|
EQUIPMENT?: {
|
|
@@ -36,13 +36,13 @@ export interface IFinancialComplianceSettingsDocument extends IFinancialComplian
|
|
|
36
36
|
export declare const FinancialComplianceSettingsSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
37
37
|
isDeleted: boolean;
|
|
38
38
|
financialEmails: mongoose.Types.DocumentArray<{
|
|
39
|
-
title?: string;
|
|
40
39
|
email?: string;
|
|
40
|
+
title?: string;
|
|
41
41
|
isActive?: boolean;
|
|
42
42
|
}>;
|
|
43
43
|
managementEmails: mongoose.Types.DocumentArray<{
|
|
44
|
-
title?: string;
|
|
45
44
|
email?: string;
|
|
45
|
+
title?: string;
|
|
46
46
|
isActive?: boolean;
|
|
47
47
|
}>;
|
|
48
48
|
__v?: number;
|
|
@@ -52,13 +52,13 @@ export declare const FinancialComplianceSettingsSchema: mongoose.Schema<any, mon
|
|
|
52
52
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
53
53
|
isDeleted: boolean;
|
|
54
54
|
financialEmails: mongoose.Types.DocumentArray<{
|
|
55
|
-
title?: string;
|
|
56
55
|
email?: string;
|
|
56
|
+
title?: string;
|
|
57
57
|
isActive?: boolean;
|
|
58
58
|
}>;
|
|
59
59
|
managementEmails: mongoose.Types.DocumentArray<{
|
|
60
|
-
title?: string;
|
|
61
60
|
email?: string;
|
|
61
|
+
title?: string;
|
|
62
62
|
isActive?: boolean;
|
|
63
63
|
}>;
|
|
64
64
|
__v?: number;
|
|
@@ -68,13 +68,13 @@ export declare const FinancialComplianceSettingsSchema: mongoose.Schema<any, mon
|
|
|
68
68
|
}>> & mongoose.FlatRecord<{
|
|
69
69
|
isDeleted: boolean;
|
|
70
70
|
financialEmails: mongoose.Types.DocumentArray<{
|
|
71
|
-
title?: string;
|
|
72
71
|
email?: string;
|
|
72
|
+
title?: string;
|
|
73
73
|
isActive?: boolean;
|
|
74
74
|
}>;
|
|
75
75
|
managementEmails: mongoose.Types.DocumentArray<{
|
|
76
|
-
title?: string;
|
|
77
76
|
email?: string;
|
|
77
|
+
title?: string;
|
|
78
78
|
isActive?: boolean;
|
|
79
79
|
}>;
|
|
80
80
|
__v?: number;
|
|
@@ -56,12 +56,12 @@ export declare const InventorySchema: mongoose.Schema<any, mongoose.Model<any, a
|
|
|
56
56
|
} & {
|
|
57
57
|
borrowerId: string;
|
|
58
58
|
items: mongoose.Types.DocumentArray<{
|
|
59
|
+
value: number;
|
|
59
60
|
bbcDate: Date;
|
|
60
61
|
sku: string;
|
|
61
62
|
skuDate: Date;
|
|
62
63
|
category: string;
|
|
63
64
|
qty: number;
|
|
64
|
-
value: number;
|
|
65
65
|
expiryDate?: Date;
|
|
66
66
|
location?: string;
|
|
67
67
|
unitCost?: number;
|
|
@@ -83,12 +83,12 @@ export declare const InventorySchema: mongoose.Schema<any, mongoose.Model<any, a
|
|
|
83
83
|
} & {
|
|
84
84
|
borrowerId: string;
|
|
85
85
|
items: mongoose.Types.DocumentArray<{
|
|
86
|
+
value: number;
|
|
86
87
|
bbcDate: Date;
|
|
87
88
|
sku: string;
|
|
88
89
|
skuDate: Date;
|
|
89
90
|
category: string;
|
|
90
91
|
qty: number;
|
|
91
|
-
value: number;
|
|
92
92
|
expiryDate?: Date;
|
|
93
93
|
location?: string;
|
|
94
94
|
unitCost?: number;
|
|
@@ -110,12 +110,12 @@ export declare const InventorySchema: mongoose.Schema<any, mongoose.Model<any, a
|
|
|
110
110
|
} & {
|
|
111
111
|
borrowerId: string;
|
|
112
112
|
items: mongoose.Types.DocumentArray<{
|
|
113
|
+
value: number;
|
|
113
114
|
bbcDate: Date;
|
|
114
115
|
sku: string;
|
|
115
116
|
skuDate: Date;
|
|
116
117
|
category: string;
|
|
117
118
|
qty: number;
|
|
118
|
-
value: number;
|
|
119
119
|
expiryDate?: Date;
|
|
120
120
|
location?: string;
|
|
121
121
|
unitCost?: number;
|
|
@@ -84,13 +84,13 @@ export declare const InventoryItemSchema: mongoose.Schema<any, mongoose.Model<an
|
|
|
84
84
|
createdAt: NativeDate;
|
|
85
85
|
updatedAt: NativeDate;
|
|
86
86
|
} & {
|
|
87
|
+
value: number;
|
|
87
88
|
bbcSheetId: mongoose.Types.ObjectId;
|
|
88
89
|
order: number;
|
|
89
90
|
sku: string;
|
|
90
91
|
skuDate: Date;
|
|
91
92
|
category: string;
|
|
92
93
|
qty: number;
|
|
93
|
-
value: number;
|
|
94
94
|
__v?: number;
|
|
95
95
|
expiryDate?: Date;
|
|
96
96
|
location?: string;
|
|
@@ -106,13 +106,13 @@ export declare const InventoryItemSchema: mongoose.Schema<any, mongoose.Model<an
|
|
|
106
106
|
createdAt: NativeDate;
|
|
107
107
|
updatedAt: NativeDate;
|
|
108
108
|
} & {
|
|
109
|
+
value: number;
|
|
109
110
|
bbcSheetId: mongoose.Types.ObjectId;
|
|
110
111
|
order: number;
|
|
111
112
|
sku: string;
|
|
112
113
|
skuDate: Date;
|
|
113
114
|
category: string;
|
|
114
115
|
qty: number;
|
|
115
|
-
value: number;
|
|
116
116
|
__v?: number;
|
|
117
117
|
expiryDate?: Date;
|
|
118
118
|
location?: string;
|
|
@@ -128,13 +128,13 @@ export declare const InventoryItemSchema: mongoose.Schema<any, mongoose.Model<an
|
|
|
128
128
|
createdAt: NativeDate;
|
|
129
129
|
updatedAt: NativeDate;
|
|
130
130
|
} & {
|
|
131
|
+
value: number;
|
|
131
132
|
bbcSheetId: mongoose.Types.ObjectId;
|
|
132
133
|
order: number;
|
|
133
134
|
sku: string;
|
|
134
135
|
skuDate: Date;
|
|
135
136
|
category: string;
|
|
136
137
|
qty: number;
|
|
137
|
-
value: number;
|
|
138
138
|
__v?: number;
|
|
139
139
|
expiryDate?: Date;
|
|
140
140
|
location?: 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
|
-
sku: string;
|
|
50
49
|
end: Date;
|
|
50
|
+
sku: string;
|
|
51
51
|
advanceRate: number;
|
|
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
|
-
sku: string;
|
|
62
61
|
end: Date;
|
|
62
|
+
sku: string;
|
|
63
63
|
advanceRate: number;
|
|
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
|
-
sku: string;
|
|
74
73
|
end: Date;
|
|
74
|
+
sku: string;
|
|
75
75
|
advanceRate: number;
|
|
76
76
|
start: Date;
|
|
77
77
|
}>;
|
|
@@ -88,55 +88,55 @@ export declare const LoanPaymentSchema: mongoose.Schema<any, mongoose.Model<any,
|
|
|
88
88
|
updatedAt: NativeDate;
|
|
89
89
|
} & {
|
|
90
90
|
date: Date;
|
|
91
|
+
loanTransactions: mongoose.Types.DocumentArray<{
|
|
92
|
+
amount?: number;
|
|
93
|
+
transactionId?: mongoose.Types.ObjectId;
|
|
94
|
+
}>;
|
|
91
95
|
productId: mongoose.Types.ObjectId;
|
|
92
96
|
amount: number;
|
|
97
|
+
paymentOrder: string[];
|
|
93
98
|
paid: mongoose.Types.DocumentArray<{
|
|
94
99
|
amount?: number;
|
|
95
100
|
statementId?: mongoose.Types.ObjectId;
|
|
96
101
|
}>;
|
|
97
|
-
paymentOrder: string[];
|
|
98
|
-
loanTransactions: mongoose.Types.DocumentArray<{
|
|
99
|
-
amount?: number;
|
|
100
|
-
transactionId?: mongoose.Types.ObjectId;
|
|
101
|
-
}>;
|
|
102
|
-
settlementCode?: string;
|
|
103
102
|
__v?: number;
|
|
103
|
+
settlementCode?: string;
|
|
104
104
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
105
105
|
createdAt: NativeDate;
|
|
106
106
|
updatedAt: NativeDate;
|
|
107
107
|
} & {
|
|
108
108
|
date: Date;
|
|
109
|
+
loanTransactions: mongoose.Types.DocumentArray<{
|
|
110
|
+
amount?: number;
|
|
111
|
+
transactionId?: mongoose.Types.ObjectId;
|
|
112
|
+
}>;
|
|
109
113
|
productId: mongoose.Types.ObjectId;
|
|
110
114
|
amount: number;
|
|
115
|
+
paymentOrder: string[];
|
|
111
116
|
paid: mongoose.Types.DocumentArray<{
|
|
112
117
|
amount?: number;
|
|
113
118
|
statementId?: mongoose.Types.ObjectId;
|
|
114
119
|
}>;
|
|
115
|
-
paymentOrder: string[];
|
|
116
|
-
loanTransactions: mongoose.Types.DocumentArray<{
|
|
117
|
-
amount?: number;
|
|
118
|
-
transactionId?: mongoose.Types.ObjectId;
|
|
119
|
-
}>;
|
|
120
|
-
settlementCode?: string;
|
|
121
120
|
__v?: number;
|
|
121
|
+
settlementCode?: string;
|
|
122
122
|
}>> & mongoose.FlatRecord<{
|
|
123
123
|
createdAt: NativeDate;
|
|
124
124
|
updatedAt: NativeDate;
|
|
125
125
|
} & {
|
|
126
126
|
date: Date;
|
|
127
|
+
loanTransactions: mongoose.Types.DocumentArray<{
|
|
128
|
+
amount?: number;
|
|
129
|
+
transactionId?: mongoose.Types.ObjectId;
|
|
130
|
+
}>;
|
|
127
131
|
productId: mongoose.Types.ObjectId;
|
|
128
132
|
amount: number;
|
|
133
|
+
paymentOrder: string[];
|
|
129
134
|
paid: mongoose.Types.DocumentArray<{
|
|
130
135
|
amount?: number;
|
|
131
136
|
statementId?: mongoose.Types.ObjectId;
|
|
132
137
|
}>;
|
|
133
|
-
paymentOrder: string[];
|
|
134
|
-
loanTransactions: mongoose.Types.DocumentArray<{
|
|
135
|
-
amount?: number;
|
|
136
|
-
transactionId?: mongoose.Types.ObjectId;
|
|
137
|
-
}>;
|
|
138
|
-
settlementCode?: string;
|
|
139
138
|
__v?: number;
|
|
139
|
+
settlementCode?: string;
|
|
140
140
|
}> & {
|
|
141
141
|
_id: mongoose.Types.ObjectId;
|
|
142
142
|
}>;
|
|
@@ -85,15 +85,15 @@ export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any,
|
|
|
85
85
|
createdAt: NativeDate;
|
|
86
86
|
updatedAt: NativeDate;
|
|
87
87
|
} & {
|
|
88
|
-
|
|
89
|
-
name: string;
|
|
90
|
-
active: boolean;
|
|
88
|
+
borrowerId: mongoose.Types.ObjectId;
|
|
91
89
|
type: string;
|
|
90
|
+
name: string;
|
|
92
91
|
order: number;
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
active: boolean;
|
|
93
|
+
code: string;
|
|
95
94
|
startDate: Date;
|
|
96
95
|
maturityDate: Date;
|
|
96
|
+
commitment: number;
|
|
97
97
|
isBalanceActual: boolean;
|
|
98
98
|
isFloatedBalanceActual: boolean;
|
|
99
99
|
masterLoanProductId: mongoose.Types.ObjectId;
|
|
@@ -113,15 +113,15 @@ export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any,
|
|
|
113
113
|
createdAt: NativeDate;
|
|
114
114
|
updatedAt: NativeDate;
|
|
115
115
|
} & {
|
|
116
|
-
|
|
117
|
-
name: string;
|
|
118
|
-
active: boolean;
|
|
116
|
+
borrowerId: mongoose.Types.ObjectId;
|
|
119
117
|
type: string;
|
|
118
|
+
name: string;
|
|
120
119
|
order: number;
|
|
121
|
-
|
|
122
|
-
|
|
120
|
+
active: boolean;
|
|
121
|
+
code: string;
|
|
123
122
|
startDate: Date;
|
|
124
123
|
maturityDate: Date;
|
|
124
|
+
commitment: number;
|
|
125
125
|
isBalanceActual: boolean;
|
|
126
126
|
isFloatedBalanceActual: boolean;
|
|
127
127
|
masterLoanProductId: mongoose.Types.ObjectId;
|
|
@@ -141,15 +141,15 @@ export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any,
|
|
|
141
141
|
createdAt: NativeDate;
|
|
142
142
|
updatedAt: NativeDate;
|
|
143
143
|
} & {
|
|
144
|
-
|
|
145
|
-
name: string;
|
|
146
|
-
active: boolean;
|
|
144
|
+
borrowerId: mongoose.Types.ObjectId;
|
|
147
145
|
type: string;
|
|
146
|
+
name: string;
|
|
148
147
|
order: number;
|
|
149
|
-
|
|
150
|
-
|
|
148
|
+
active: boolean;
|
|
149
|
+
code: string;
|
|
151
150
|
startDate: Date;
|
|
152
151
|
maturityDate: Date;
|
|
152
|
+
commitment: number;
|
|
153
153
|
isBalanceActual: boolean;
|
|
154
154
|
isFloatedBalanceActual: boolean;
|
|
155
155
|
masterLoanProductId: mongoose.Types.ObjectId;
|
|
@@ -52,18 +52,18 @@ export declare const PostponedTransactionSchema: mongoose.Schema<any, mongoose.M
|
|
|
52
52
|
timestamps: false;
|
|
53
53
|
}, {
|
|
54
54
|
productId: mongoose.Types.ObjectId;
|
|
55
|
-
postponedToDate: string;
|
|
56
55
|
transactionId: mongoose.Types.ObjectId;
|
|
56
|
+
postponedToDate: string;
|
|
57
57
|
__v?: number;
|
|
58
58
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
59
59
|
productId: mongoose.Types.ObjectId;
|
|
60
|
-
postponedToDate: string;
|
|
61
60
|
transactionId: mongoose.Types.ObjectId;
|
|
61
|
+
postponedToDate: string;
|
|
62
62
|
__v?: number;
|
|
63
63
|
}>> & mongoose.FlatRecord<{
|
|
64
64
|
productId: mongoose.Types.ObjectId;
|
|
65
|
-
postponedToDate: string;
|
|
66
65
|
transactionId: mongoose.Types.ObjectId;
|
|
66
|
+
postponedToDate: string;
|
|
67
67
|
__v?: number;
|
|
68
68
|
}> & {
|
|
69
69
|
_id: mongoose.Types.ObjectId;
|
|
@@ -73,59 +73,59 @@ export declare const ProductBrokerSchema: mongoose.Schema<any, mongoose.Model<an
|
|
|
73
73
|
createdAt: NativeDate;
|
|
74
74
|
updatedAt: NativeDate;
|
|
75
75
|
} & {
|
|
76
|
-
uiId: string;
|
|
77
|
-
order: number;
|
|
78
76
|
borrowerId: mongoose.Types.ObjectId;
|
|
77
|
+
productId: mongoose.Types.ObjectId;
|
|
78
|
+
order: number;
|
|
79
79
|
active: boolean;
|
|
80
|
+
uiId: string;
|
|
80
81
|
loanBrokerId: mongoose.Types.ObjectId;
|
|
81
82
|
BSCodeId: mongoose.Types.ObjectId;
|
|
82
83
|
PLCodeId: mongoose.Types.ObjectId;
|
|
83
|
-
productId: mongoose.Types.ObjectId;
|
|
84
84
|
baseInterestTotal: number;
|
|
85
85
|
interestShare: number;
|
|
86
86
|
adminShare: number;
|
|
87
87
|
otherShare: number;
|
|
88
|
-
BSCode?: string;
|
|
89
|
-
PLCode?: string;
|
|
90
88
|
__v?: number;
|
|
89
|
+
PLCode?: string;
|
|
90
|
+
BSCode?: string;
|
|
91
91
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
92
92
|
createdAt: NativeDate;
|
|
93
93
|
updatedAt: NativeDate;
|
|
94
94
|
} & {
|
|
95
|
-
uiId: string;
|
|
96
|
-
order: number;
|
|
97
95
|
borrowerId: mongoose.Types.ObjectId;
|
|
96
|
+
productId: mongoose.Types.ObjectId;
|
|
97
|
+
order: number;
|
|
98
98
|
active: boolean;
|
|
99
|
+
uiId: string;
|
|
99
100
|
loanBrokerId: mongoose.Types.ObjectId;
|
|
100
101
|
BSCodeId: mongoose.Types.ObjectId;
|
|
101
102
|
PLCodeId: mongoose.Types.ObjectId;
|
|
102
|
-
productId: mongoose.Types.ObjectId;
|
|
103
103
|
baseInterestTotal: number;
|
|
104
104
|
interestShare: number;
|
|
105
105
|
adminShare: number;
|
|
106
106
|
otherShare: number;
|
|
107
|
-
BSCode?: string;
|
|
108
|
-
PLCode?: string;
|
|
109
107
|
__v?: number;
|
|
108
|
+
PLCode?: string;
|
|
109
|
+
BSCode?: string;
|
|
110
110
|
}>> & mongoose.FlatRecord<{
|
|
111
111
|
createdAt: NativeDate;
|
|
112
112
|
updatedAt: NativeDate;
|
|
113
113
|
} & {
|
|
114
|
-
uiId: string;
|
|
115
|
-
order: number;
|
|
116
114
|
borrowerId: mongoose.Types.ObjectId;
|
|
115
|
+
productId: mongoose.Types.ObjectId;
|
|
116
|
+
order: number;
|
|
117
117
|
active: boolean;
|
|
118
|
+
uiId: string;
|
|
118
119
|
loanBrokerId: mongoose.Types.ObjectId;
|
|
119
120
|
BSCodeId: mongoose.Types.ObjectId;
|
|
120
121
|
PLCodeId: mongoose.Types.ObjectId;
|
|
121
|
-
productId: mongoose.Types.ObjectId;
|
|
122
122
|
baseInterestTotal: number;
|
|
123
123
|
interestShare: number;
|
|
124
124
|
adminShare: number;
|
|
125
125
|
otherShare: number;
|
|
126
|
-
BSCode?: string;
|
|
127
|
-
PLCode?: string;
|
|
128
126
|
__v?: number;
|
|
127
|
+
PLCode?: string;
|
|
128
|
+
BSCode?: string;
|
|
129
129
|
}> & {
|
|
130
130
|
_id: mongoose.Types.ObjectId;
|
|
131
131
|
}>;
|
package/models/_index.d.ts
CHANGED
|
@@ -31,10 +31,10 @@ export declare const allSchemas: {
|
|
|
31
31
|
createdAt: NativeDate;
|
|
32
32
|
updatedAt: NativeDate;
|
|
33
33
|
} & {
|
|
34
|
-
order: number;
|
|
35
|
-
amount: number;
|
|
36
34
|
bbcSheetId: import("mongoose").Types.ObjectId;
|
|
35
|
+
order: number;
|
|
37
36
|
apDate: Date;
|
|
37
|
+
amount: number;
|
|
38
38
|
__v?: number;
|
|
39
39
|
poNumber?: string;
|
|
40
40
|
customerName?: string;
|
|
@@ -45,10 +45,10 @@ export declare const allSchemas: {
|
|
|
45
45
|
createdAt: NativeDate;
|
|
46
46
|
updatedAt: NativeDate;
|
|
47
47
|
} & {
|
|
48
|
-
order: number;
|
|
49
|
-
amount: number;
|
|
50
48
|
bbcSheetId: import("mongoose").Types.ObjectId;
|
|
49
|
+
order: number;
|
|
51
50
|
apDate: Date;
|
|
51
|
+
amount: number;
|
|
52
52
|
__v?: number;
|
|
53
53
|
poNumber?: string;
|
|
54
54
|
customerName?: string;
|
|
@@ -59,10 +59,10 @@ export declare const allSchemas: {
|
|
|
59
59
|
createdAt: NativeDate;
|
|
60
60
|
updatedAt: NativeDate;
|
|
61
61
|
} & {
|
|
62
|
-
order: number;
|
|
63
|
-
amount: number;
|
|
64
62
|
bbcSheetId: import("mongoose").Types.ObjectId;
|
|
63
|
+
order: number;
|
|
65
64
|
apDate: Date;
|
|
65
|
+
amount: number;
|
|
66
66
|
__v?: number;
|
|
67
67
|
poNumber?: string;
|
|
68
68
|
customerName?: string;
|
package/models/_models.d.ts
CHANGED
package/models/_models.js
CHANGED
|
@@ -28,6 +28,7 @@ exports.MODEL_NAMES = {
|
|
|
28
28
|
BBCSheets: 'bbcsheets',
|
|
29
29
|
borrowerLogs: 'borrowerLogs',
|
|
30
30
|
borrowers: 'borrowers',
|
|
31
|
+
BorrowerFinanceSettings: 'borrower_finance_settings',
|
|
31
32
|
bankTransactions: 'bankTransactions',
|
|
32
33
|
borrowerAssumption: 'borrower_assumption',
|
|
33
34
|
borrowerData: 'borrower_data',
|
package/models/_models.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { BorrowerFinanceSettingsModel } from './BorrowerFinanceSettings.model';
|
|
2
|
+
|
|
1
3
|
export const MODEL_NAMES = {
|
|
2
4
|
accountPayableItem: 'AccountPayableItem',
|
|
3
5
|
AIJobs: 'ai_jobs',
|
|
@@ -25,6 +27,7 @@ export const MODEL_NAMES = {
|
|
|
25
27
|
BBCSheets: 'bbcsheets',
|
|
26
28
|
borrowerLogs: 'borrowerLogs',
|
|
27
29
|
borrowers: 'borrowers',
|
|
30
|
+
BorrowerFinanceSettings: 'borrower_finance_settings',
|
|
28
31
|
bankTransactions: 'bankTransactions',
|
|
29
32
|
borrowerAssumption: 'borrower_assumption',
|
|
30
33
|
borrowerData: 'borrower_data',
|
package/package.json
CHANGED
|
@@ -84,10 +84,10 @@ export declare class BorrowerService {
|
|
|
84
84
|
getBorrowerCodesMap(): Promise<Map<string, string>>;
|
|
85
85
|
getBorrowerStatementDetails(borrowers: IBorrowerDoc[]): Promise<{
|
|
86
86
|
[x: string]: {
|
|
87
|
+
SELECTED_PERIOD?: boolean;
|
|
88
|
+
ENTIRE_LOAN?: boolean;
|
|
87
89
|
LAST_MONTH?: boolean;
|
|
88
90
|
CURRENT_MONTH?: boolean;
|
|
89
|
-
ENTIRE_LOAN?: boolean;
|
|
90
|
-
SELECTED_PERIOD?: boolean;
|
|
91
91
|
TERM_LOAN?: boolean;
|
|
92
92
|
};
|
|
93
93
|
}>;
|
|
@@ -58,7 +58,7 @@ export declare class ComplianceBorrowersService {
|
|
|
58
58
|
isComplianceBorrowerAllowed(userAccess: IUserAccess, requestedBorrowerId: string): boolean;
|
|
59
59
|
calculateInstanceStatuses(instance: IBorrowerItemInstance, item: IBorrowerItemLean): IInstanceStatus;
|
|
60
60
|
getFullComplianceBorrowerById(complianceBorrowerId: string): Promise<IComplianceBorrowerDocumentFullWithStatuses>;
|
|
61
|
-
getAllBorrowersShortened(userAccess: IUserAccess): Promise<Pick<IComplianceBorrowerWithBorrower, "
|
|
61
|
+
getAllBorrowersShortened(userAccess: IUserAccess): Promise<Pick<IComplianceBorrowerWithBorrower, "items" | "borrower" | "fundingStatus">[]>;
|
|
62
62
|
generateInstances(complianceBorrowerId: any): Promise<IComplianceBorrowerDocumentFullWithStatuses>;
|
|
63
63
|
calculateAndUpdateFundingStatus(complianceBorrowerId: string): Promise<void>;
|
|
64
64
|
calculateFundingStatus(complianceBorrower: IComplianceBorrowerDocumentFull): string;
|
|
@@ -164,7 +164,7 @@ export declare class LoanTransactionsService {
|
|
|
164
164
|
getTransactionReport(transactionIds: string[], borrowerId: string, effectiveDate: Date): Promise<{
|
|
165
165
|
transactionIdsToMark: string[];
|
|
166
166
|
transactions: {
|
|
167
|
-
[x: string]: (string | number | string[]
|
|
167
|
+
[x: string]: (string | number | Date | string[])[];
|
|
168
168
|
}[];
|
|
169
169
|
}>;
|
|
170
170
|
getBorrowerIdsForFile(transactionFileId: string): Promise<{
|