gemcap-be-common 1.5.163 → 1.5.165
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 +22 -13
- package/models/Borrower.model.js +8 -0
- package/models/Borrower.model.ts +12 -1
- package/models/BorrowerCompliance.model.d.ts +58 -58
- package/models/DataRoom.model.d.ts +1 -0
- package/models/DataRoom.model.js +5 -0
- package/models/DataRoom.model.ts +7 -0
- package/models/DataRoomAccess.model.d.ts +1 -0
- package/models/DataRoomAccess.model.js +4 -0
- package/models/DataRoomAccess.model.ts +5 -0
- package/models/DataRoomContact.model.d.ts +1 -0
- package/models/DataRoomContact.model.js +4 -0
- package/models/DataRoomContact.model.ts +5 -0
- package/models/DataRoomFiles.model.d.ts +1 -0
- package/models/DataRoomFiles.model.js +4 -0
- package/models/DataRoomFiles.model.ts +5 -0
- package/models/DataRoomFolder.model.d.ts +1 -0
- package/models/DataRoomFolder.model.js +4 -0
- package/models/DataRoomFolder.model.ts +5 -0
- package/models/FinancialCompliance.model.d.ts +6 -6
- package/models/LoanProducts.model.d.ts +15 -15
- package/models/PostponedTransactions.model.d.ts +3 -3
- package/models/_index.d.ts +6 -6
- package/package.json +1 -1
- package/services/borrowers.service.d.ts +2 -2
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -38,6 +38,8 @@ export interface IBorrower {
|
|
|
38
38
|
title: string;
|
|
39
39
|
active: boolean;
|
|
40
40
|
accrualStatus: boolean;
|
|
41
|
+
accrueToReserve: boolean;
|
|
42
|
+
reserveCodeId: mongoose.Types.ObjectId | null;
|
|
41
43
|
organizationId: mongoose.Types.ObjectId;
|
|
42
44
|
schemas: IMapSchema[];
|
|
43
45
|
}
|
|
@@ -51,9 +53,10 @@ export interface IBorrowerLean extends IBorrower {
|
|
|
51
53
|
createdAt: Date;
|
|
52
54
|
updatedAt: Date;
|
|
53
55
|
}
|
|
54
|
-
export interface IBorrowerPlain extends Omit<IBorrower, 'organizationId'> {
|
|
56
|
+
export interface IBorrowerPlain extends Omit<IBorrower, 'organizationId' | 'reserveCodeId'> {
|
|
55
57
|
_id: string;
|
|
56
58
|
organizationId: string;
|
|
59
|
+
reserveCodeId: string;
|
|
57
60
|
createdAt: Date;
|
|
58
61
|
updatedAt: Date;
|
|
59
62
|
}
|
|
@@ -64,59 +67,65 @@ export declare const BorrowerSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
64
67
|
createdAt: NativeDate;
|
|
65
68
|
updatedAt: NativeDate;
|
|
66
69
|
} & {
|
|
67
|
-
name: string;
|
|
68
|
-
active: boolean;
|
|
69
70
|
code: string;
|
|
71
|
+
name: string;
|
|
70
72
|
title: string;
|
|
73
|
+
active: boolean;
|
|
71
74
|
accrualStatus: boolean;
|
|
72
|
-
|
|
75
|
+
accrueToReserve: boolean;
|
|
73
76
|
organizationId?: mongoose.Types.ObjectId;
|
|
77
|
+
reserveCodeId?: mongoose.Types.ObjectId;
|
|
74
78
|
schemas?: mongoose.Types.DocumentArray<{
|
|
75
|
-
type: string;
|
|
76
79
|
name: string;
|
|
80
|
+
type: string;
|
|
77
81
|
data: mongoose.Types.DocumentArray<{
|
|
78
82
|
column: string;
|
|
79
83
|
databaseTitle: string;
|
|
80
84
|
}>;
|
|
81
85
|
}>;
|
|
86
|
+
__v?: number;
|
|
82
87
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
83
88
|
createdAt: NativeDate;
|
|
84
89
|
updatedAt: NativeDate;
|
|
85
90
|
} & {
|
|
86
|
-
name: string;
|
|
87
|
-
active: boolean;
|
|
88
91
|
code: string;
|
|
92
|
+
name: string;
|
|
89
93
|
title: string;
|
|
94
|
+
active: boolean;
|
|
90
95
|
accrualStatus: boolean;
|
|
91
|
-
|
|
96
|
+
accrueToReserve: boolean;
|
|
92
97
|
organizationId?: mongoose.Types.ObjectId;
|
|
98
|
+
reserveCodeId?: mongoose.Types.ObjectId;
|
|
93
99
|
schemas?: mongoose.Types.DocumentArray<{
|
|
94
|
-
type: string;
|
|
95
100
|
name: string;
|
|
101
|
+
type: string;
|
|
96
102
|
data: mongoose.Types.DocumentArray<{
|
|
97
103
|
column: string;
|
|
98
104
|
databaseTitle: string;
|
|
99
105
|
}>;
|
|
100
106
|
}>;
|
|
107
|
+
__v?: number;
|
|
101
108
|
}>> & mongoose.FlatRecord<{
|
|
102
109
|
createdAt: NativeDate;
|
|
103
110
|
updatedAt: NativeDate;
|
|
104
111
|
} & {
|
|
105
|
-
name: string;
|
|
106
|
-
active: boolean;
|
|
107
112
|
code: string;
|
|
113
|
+
name: string;
|
|
108
114
|
title: string;
|
|
115
|
+
active: boolean;
|
|
109
116
|
accrualStatus: boolean;
|
|
110
|
-
|
|
117
|
+
accrueToReserve: boolean;
|
|
111
118
|
organizationId?: mongoose.Types.ObjectId;
|
|
119
|
+
reserveCodeId?: mongoose.Types.ObjectId;
|
|
112
120
|
schemas?: mongoose.Types.DocumentArray<{
|
|
113
|
-
type: string;
|
|
114
121
|
name: string;
|
|
122
|
+
type: string;
|
|
115
123
|
data: mongoose.Types.DocumentArray<{
|
|
116
124
|
column: string;
|
|
117
125
|
databaseTitle: string;
|
|
118
126
|
}>;
|
|
119
127
|
}>;
|
|
128
|
+
__v?: number;
|
|
120
129
|
}> & {
|
|
121
130
|
_id: mongoose.Types.ObjectId;
|
|
122
131
|
}>;
|
package/models/Borrower.model.js
CHANGED
|
@@ -31,6 +31,14 @@ exports.BorrowerSchema = new mongoose_1.default.Schema({
|
|
|
31
31
|
type: Boolean,
|
|
32
32
|
default: false,
|
|
33
33
|
},
|
|
34
|
+
accrueToReserve: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: false,
|
|
37
|
+
},
|
|
38
|
+
reserveCodeId: {
|
|
39
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
40
|
+
ref: _models_1.MODEL_NAMES.quickbooksAccounts,
|
|
41
|
+
},
|
|
34
42
|
organizationId: {
|
|
35
43
|
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
36
44
|
ref: _models_1.MODEL_NAMES.organizations,
|
package/models/Borrower.model.ts
CHANGED
|
@@ -21,6 +21,8 @@ export interface IBorrower {
|
|
|
21
21
|
title: string;
|
|
22
22
|
active: boolean;
|
|
23
23
|
accrualStatus: boolean;
|
|
24
|
+
accrueToReserve: boolean;
|
|
25
|
+
reserveCodeId: mongoose.Types.ObjectId | null;
|
|
24
26
|
organizationId: mongoose.Types.ObjectId;
|
|
25
27
|
schemas: IMapSchema[];
|
|
26
28
|
}
|
|
@@ -37,9 +39,10 @@ export interface IBorrowerLean extends IBorrower {
|
|
|
37
39
|
updatedAt: Date;
|
|
38
40
|
}
|
|
39
41
|
|
|
40
|
-
export interface IBorrowerPlain extends Omit<IBorrower, 'organizationId'> {
|
|
42
|
+
export interface IBorrowerPlain extends Omit<IBorrower, 'organizationId' | 'reserveCodeId'> {
|
|
41
43
|
_id: string;
|
|
42
44
|
organizationId: string;
|
|
45
|
+
reserveCodeId: string;
|
|
43
46
|
createdAt: Date;
|
|
44
47
|
updatedAt: Date;
|
|
45
48
|
}
|
|
@@ -71,6 +74,14 @@ export const BorrowerSchema = new mongoose.Schema(
|
|
|
71
74
|
type: Boolean,
|
|
72
75
|
default: false,
|
|
73
76
|
},
|
|
77
|
+
accrueToReserve: {
|
|
78
|
+
type: Boolean,
|
|
79
|
+
default: false,
|
|
80
|
+
},
|
|
81
|
+
reserveCodeId: {
|
|
82
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
83
|
+
ref: MODEL_NAMES.quickbooksAccounts,
|
|
84
|
+
},
|
|
74
85
|
organizationId: {
|
|
75
86
|
type: mongoose.Schema.Types.ObjectId,
|
|
76
87
|
ref: MODEL_NAMES.organizations,
|
|
@@ -79,13 +79,34 @@ export declare const BorrowerComplianceSchema: mongoose.Schema<any, mongoose.Mod
|
|
|
79
79
|
createdAt: NativeDate;
|
|
80
80
|
updatedAt: NativeDate;
|
|
81
81
|
} & {
|
|
82
|
+
borrower: mongoose.Types.ObjectId;
|
|
83
|
+
complianceNotes: mongoose.Types.DocumentArray<{
|
|
84
|
+
date: Date;
|
|
85
|
+
note: string;
|
|
86
|
+
user?: string;
|
|
87
|
+
}>;
|
|
88
|
+
borrowerNotes: mongoose.Types.DocumentArray<{
|
|
89
|
+
date: Date;
|
|
90
|
+
note: string;
|
|
91
|
+
user?: string;
|
|
92
|
+
}>;
|
|
93
|
+
mainEmails: mongoose.Types.DocumentArray<{
|
|
94
|
+
title?: string;
|
|
95
|
+
email?: string;
|
|
96
|
+
isActive?: boolean;
|
|
97
|
+
}>;
|
|
98
|
+
financialEmails: mongoose.Types.DocumentArray<{
|
|
99
|
+
title?: string;
|
|
100
|
+
email?: string;
|
|
101
|
+
isActive?: boolean;
|
|
102
|
+
}>;
|
|
82
103
|
items: mongoose.Types.DocumentArray<{
|
|
83
104
|
createdAt: NativeDate;
|
|
84
105
|
updatedAt: NativeDate;
|
|
85
106
|
} & {
|
|
86
107
|
emailAddresses: mongoose.Types.DocumentArray<{
|
|
87
|
-
email?: string;
|
|
88
108
|
title?: string;
|
|
109
|
+
email?: string;
|
|
89
110
|
isActive?: boolean;
|
|
90
111
|
}>;
|
|
91
112
|
instances: mongoose.Types.DocumentArray<{
|
|
@@ -99,14 +120,26 @@ export declare const BorrowerComplianceSchema: mongoose.Schema<any, mongoose.Mod
|
|
|
99
120
|
uploadedAt?: Date;
|
|
100
121
|
uploadedBy?: string;
|
|
101
122
|
}>;
|
|
102
|
-
status?: string;
|
|
103
123
|
nextDate?: Date;
|
|
104
124
|
submittedDate?: Date;
|
|
125
|
+
status?: string;
|
|
105
126
|
}>;
|
|
106
|
-
frequency?: string;
|
|
107
127
|
startDate?: Date;
|
|
128
|
+
frequency?: string;
|
|
108
129
|
item?: mongoose.Types.ObjectId;
|
|
109
130
|
}>;
|
|
131
|
+
__v?: number;
|
|
132
|
+
email?: string;
|
|
133
|
+
isVisible?: boolean;
|
|
134
|
+
isEmailingActive?: boolean;
|
|
135
|
+
isDailyTransactionsEmailingActive?: boolean;
|
|
136
|
+
plaidAccessToken?: string;
|
|
137
|
+
fundingStatus?: string;
|
|
138
|
+
lastEmailSentAt?: Date;
|
|
139
|
+
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
140
|
+
createdAt: NativeDate;
|
|
141
|
+
updatedAt: NativeDate;
|
|
142
|
+
} & {
|
|
110
143
|
borrower: mongoose.Types.ObjectId;
|
|
111
144
|
complianceNotes: mongoose.Types.DocumentArray<{
|
|
112
145
|
date: Date;
|
|
@@ -119,34 +152,22 @@ export declare const BorrowerComplianceSchema: mongoose.Schema<any, mongoose.Mod
|
|
|
119
152
|
user?: string;
|
|
120
153
|
}>;
|
|
121
154
|
mainEmails: mongoose.Types.DocumentArray<{
|
|
122
|
-
email?: string;
|
|
123
155
|
title?: string;
|
|
156
|
+
email?: string;
|
|
124
157
|
isActive?: boolean;
|
|
125
158
|
}>;
|
|
126
159
|
financialEmails: mongoose.Types.DocumentArray<{
|
|
127
|
-
email?: string;
|
|
128
160
|
title?: string;
|
|
161
|
+
email?: string;
|
|
129
162
|
isActive?: boolean;
|
|
130
163
|
}>;
|
|
131
|
-
__v?: number;
|
|
132
|
-
email?: string;
|
|
133
|
-
isVisible?: boolean;
|
|
134
|
-
isEmailingActive?: boolean;
|
|
135
|
-
isDailyTransactionsEmailingActive?: boolean;
|
|
136
|
-
plaidAccessToken?: string;
|
|
137
|
-
fundingStatus?: string;
|
|
138
|
-
lastEmailSentAt?: Date;
|
|
139
|
-
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
140
|
-
createdAt: NativeDate;
|
|
141
|
-
updatedAt: NativeDate;
|
|
142
|
-
} & {
|
|
143
164
|
items: mongoose.Types.DocumentArray<{
|
|
144
165
|
createdAt: NativeDate;
|
|
145
166
|
updatedAt: NativeDate;
|
|
146
167
|
} & {
|
|
147
168
|
emailAddresses: mongoose.Types.DocumentArray<{
|
|
148
|
-
email?: string;
|
|
149
169
|
title?: string;
|
|
170
|
+
email?: string;
|
|
150
171
|
isActive?: boolean;
|
|
151
172
|
}>;
|
|
152
173
|
instances: mongoose.Types.DocumentArray<{
|
|
@@ -160,14 +181,26 @@ export declare const BorrowerComplianceSchema: mongoose.Schema<any, mongoose.Mod
|
|
|
160
181
|
uploadedAt?: Date;
|
|
161
182
|
uploadedBy?: string;
|
|
162
183
|
}>;
|
|
163
|
-
status?: string;
|
|
164
184
|
nextDate?: Date;
|
|
165
185
|
submittedDate?: Date;
|
|
186
|
+
status?: string;
|
|
166
187
|
}>;
|
|
167
|
-
frequency?: string;
|
|
168
188
|
startDate?: Date;
|
|
189
|
+
frequency?: string;
|
|
169
190
|
item?: mongoose.Types.ObjectId;
|
|
170
191
|
}>;
|
|
192
|
+
__v?: number;
|
|
193
|
+
email?: string;
|
|
194
|
+
isVisible?: boolean;
|
|
195
|
+
isEmailingActive?: boolean;
|
|
196
|
+
isDailyTransactionsEmailingActive?: boolean;
|
|
197
|
+
plaidAccessToken?: string;
|
|
198
|
+
fundingStatus?: string;
|
|
199
|
+
lastEmailSentAt?: Date;
|
|
200
|
+
}>> & mongoose.FlatRecord<{
|
|
201
|
+
createdAt: NativeDate;
|
|
202
|
+
updatedAt: NativeDate;
|
|
203
|
+
} & {
|
|
171
204
|
borrower: mongoose.Types.ObjectId;
|
|
172
205
|
complianceNotes: mongoose.Types.DocumentArray<{
|
|
173
206
|
date: Date;
|
|
@@ -180,34 +213,22 @@ export declare const BorrowerComplianceSchema: mongoose.Schema<any, mongoose.Mod
|
|
|
180
213
|
user?: string;
|
|
181
214
|
}>;
|
|
182
215
|
mainEmails: mongoose.Types.DocumentArray<{
|
|
183
|
-
email?: string;
|
|
184
216
|
title?: string;
|
|
217
|
+
email?: string;
|
|
185
218
|
isActive?: boolean;
|
|
186
219
|
}>;
|
|
187
220
|
financialEmails: mongoose.Types.DocumentArray<{
|
|
188
|
-
email?: string;
|
|
189
221
|
title?: string;
|
|
222
|
+
email?: string;
|
|
190
223
|
isActive?: boolean;
|
|
191
224
|
}>;
|
|
192
|
-
__v?: number;
|
|
193
|
-
email?: string;
|
|
194
|
-
isVisible?: boolean;
|
|
195
|
-
isEmailingActive?: boolean;
|
|
196
|
-
isDailyTransactionsEmailingActive?: boolean;
|
|
197
|
-
plaidAccessToken?: string;
|
|
198
|
-
fundingStatus?: string;
|
|
199
|
-
lastEmailSentAt?: Date;
|
|
200
|
-
}>> & mongoose.FlatRecord<{
|
|
201
|
-
createdAt: NativeDate;
|
|
202
|
-
updatedAt: NativeDate;
|
|
203
|
-
} & {
|
|
204
225
|
items: mongoose.Types.DocumentArray<{
|
|
205
226
|
createdAt: NativeDate;
|
|
206
227
|
updatedAt: NativeDate;
|
|
207
228
|
} & {
|
|
208
229
|
emailAddresses: mongoose.Types.DocumentArray<{
|
|
209
|
-
email?: string;
|
|
210
230
|
title?: string;
|
|
231
|
+
email?: string;
|
|
211
232
|
isActive?: boolean;
|
|
212
233
|
}>;
|
|
213
234
|
instances: mongoose.Types.DocumentArray<{
|
|
@@ -221,35 +242,14 @@ export declare const BorrowerComplianceSchema: mongoose.Schema<any, mongoose.Mod
|
|
|
221
242
|
uploadedAt?: Date;
|
|
222
243
|
uploadedBy?: string;
|
|
223
244
|
}>;
|
|
224
|
-
status?: string;
|
|
225
245
|
nextDate?: Date;
|
|
226
246
|
submittedDate?: Date;
|
|
247
|
+
status?: string;
|
|
227
248
|
}>;
|
|
228
|
-
frequency?: string;
|
|
229
249
|
startDate?: Date;
|
|
250
|
+
frequency?: string;
|
|
230
251
|
item?: mongoose.Types.ObjectId;
|
|
231
252
|
}>;
|
|
232
|
-
borrower: mongoose.Types.ObjectId;
|
|
233
|
-
complianceNotes: mongoose.Types.DocumentArray<{
|
|
234
|
-
date: Date;
|
|
235
|
-
note: string;
|
|
236
|
-
user?: string;
|
|
237
|
-
}>;
|
|
238
|
-
borrowerNotes: mongoose.Types.DocumentArray<{
|
|
239
|
-
date: Date;
|
|
240
|
-
note: string;
|
|
241
|
-
user?: string;
|
|
242
|
-
}>;
|
|
243
|
-
mainEmails: mongoose.Types.DocumentArray<{
|
|
244
|
-
email?: string;
|
|
245
|
-
title?: string;
|
|
246
|
-
isActive?: boolean;
|
|
247
|
-
}>;
|
|
248
|
-
financialEmails: mongoose.Types.DocumentArray<{
|
|
249
|
-
email?: string;
|
|
250
|
-
title?: string;
|
|
251
|
-
isActive?: boolean;
|
|
252
|
-
}>;
|
|
253
253
|
__v?: number;
|
|
254
254
|
email?: string;
|
|
255
255
|
isVisible?: boolean;
|
package/models/DataRoom.model.js
CHANGED
|
@@ -20,8 +20,13 @@ exports.DataRoomSchema = new mongoose_1.default.Schema({
|
|
|
20
20
|
type: Date,
|
|
21
21
|
required: false,
|
|
22
22
|
},
|
|
23
|
+
deletedAt: {
|
|
24
|
+
type: Date,
|
|
25
|
+
required: false,
|
|
26
|
+
},
|
|
23
27
|
}, {
|
|
24
28
|
timestamps: { createdAt: true, updatedAt: true },
|
|
25
29
|
versionKey: false,
|
|
26
30
|
});
|
|
31
|
+
exports.DataRoomSchema.index({ prospectId: 1 }, { unique: true });
|
|
27
32
|
exports.DataRoom = mongoose_1.default.model(_models_1.MODEL_NAMES.dataRoom, exports.DataRoomSchema);
|
package/models/DataRoom.model.ts
CHANGED
|
@@ -6,6 +6,7 @@ interface IDataRoom {
|
|
|
6
6
|
prospectId: mongoose.Types.ObjectId;
|
|
7
7
|
createdBy: string;
|
|
8
8
|
sharepointSyncedAt?: Date;
|
|
9
|
+
deletedAt?: Date;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
export type TDataRoomDoc = mongoose.HydratedDocument<IDataRoom>;
|
|
@@ -40,6 +41,10 @@ export const DataRoomSchema = new mongoose.Schema<IDataRoom, TDataRoomModel>(
|
|
|
40
41
|
type: Date,
|
|
41
42
|
required: false,
|
|
42
43
|
},
|
|
44
|
+
deletedAt: {
|
|
45
|
+
type: Date,
|
|
46
|
+
required: false,
|
|
47
|
+
},
|
|
43
48
|
},
|
|
44
49
|
{
|
|
45
50
|
timestamps: { createdAt: true, updatedAt: true },
|
|
@@ -47,4 +52,6 @@ export const DataRoomSchema = new mongoose.Schema<IDataRoom, TDataRoomModel>(
|
|
|
47
52
|
},
|
|
48
53
|
);
|
|
49
54
|
|
|
55
|
+
DataRoomSchema.index({ prospectId: 1 }, { unique: true });
|
|
56
|
+
|
|
50
57
|
export const DataRoom = mongoose.model<IDataRoom, TDataRoomModel>(MODEL_NAMES.dataRoom, DataRoomSchema);
|
|
@@ -30,6 +30,7 @@ interface IDataRoomAccess {
|
|
|
30
30
|
permission: TDataRoomPermission;
|
|
31
31
|
invitedAt?: Date;
|
|
32
32
|
invitedBy?: string;
|
|
33
|
+
deletedAt?: Date;
|
|
33
34
|
}
|
|
34
35
|
export type TDataRoomAccessDoc = mongoose.HydratedDocument<IDataRoomAccess>;
|
|
35
36
|
export interface IDataRoomAccessLean extends IDataRoomAccess {
|
|
@@ -12,6 +12,7 @@ interface IDataRoomAccess {
|
|
|
12
12
|
permission: TDataRoomPermission;
|
|
13
13
|
invitedAt?: Date;
|
|
14
14
|
invitedBy?: string;
|
|
15
|
+
deletedAt?: Date;
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
export type TDataRoomAccessDoc = mongoose.HydratedDocument<IDataRoomAccess>;
|
|
@@ -58,6 +59,10 @@ export const DataRoomAccessSchema = new mongoose.Schema<IDataRoomAccess, TDataRo
|
|
|
58
59
|
type: String,
|
|
59
60
|
required: false,
|
|
60
61
|
},
|
|
62
|
+
deletedAt: {
|
|
63
|
+
type: Date,
|
|
64
|
+
required: false,
|
|
65
|
+
},
|
|
61
66
|
},
|
|
62
67
|
{
|
|
63
68
|
timestamps: { createdAt: true, updatedAt: true },
|
|
@@ -32,6 +32,7 @@ interface IDataRoomContact {
|
|
|
32
32
|
normalizedEmail: string;
|
|
33
33
|
company?: string;
|
|
34
34
|
createdBy: string;
|
|
35
|
+
deletedAt?: Date;
|
|
35
36
|
}
|
|
36
37
|
export type TDataRoomContactDoc = mongoose.HydratedDocument<IDataRoomContact>;
|
|
37
38
|
export interface IDataRoomContactLean extends IDataRoomContact {
|
|
@@ -13,6 +13,7 @@ interface IDataRoomContact {
|
|
|
13
13
|
normalizedEmail: string;
|
|
14
14
|
company?: string;
|
|
15
15
|
createdBy: string;
|
|
16
|
+
deletedAt?: Date;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
export type TDataRoomContactDoc = mongoose.HydratedDocument<IDataRoomContact>;
|
|
@@ -60,6 +61,10 @@ export const DataRoomContactSchema = new mongoose.Schema<IDataRoomContact, TData
|
|
|
60
61
|
type: String,
|
|
61
62
|
required: true,
|
|
62
63
|
},
|
|
64
|
+
deletedAt: {
|
|
65
|
+
type: Date,
|
|
66
|
+
required: false,
|
|
67
|
+
},
|
|
63
68
|
},
|
|
64
69
|
{
|
|
65
70
|
timestamps: { createdAt: true, updatedAt: true },
|
|
@@ -29,6 +29,7 @@ interface IDataRoomFile {
|
|
|
29
29
|
folderId: mongoose.Types.ObjectId;
|
|
30
30
|
fileId: mongoose.Types.ObjectId;
|
|
31
31
|
uploadedBy: string;
|
|
32
|
+
deletedAt?: Date;
|
|
32
33
|
}
|
|
33
34
|
export type TDataRoomFileDoc = mongoose.HydratedDocument<IDataRoomFile>;
|
|
34
35
|
export interface IDataRoomFileLean extends IDataRoomFile {
|
|
@@ -8,6 +8,7 @@ interface IDataRoomFile {
|
|
|
8
8
|
folderId: mongoose.Types.ObjectId;
|
|
9
9
|
fileId: mongoose.Types.ObjectId;
|
|
10
10
|
uploadedBy: string;
|
|
11
|
+
deletedAt?: Date;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export type TDataRoomFileDoc = mongoose.HydratedDocument<IDataRoomFile>;
|
|
@@ -55,6 +56,10 @@ export const DataRoomFileSchema = new mongoose.Schema<IDataRoomFile, TDataRoomFi
|
|
|
55
56
|
type: String,
|
|
56
57
|
required: true,
|
|
57
58
|
},
|
|
59
|
+
deletedAt: {
|
|
60
|
+
type: Date,
|
|
61
|
+
required: false,
|
|
62
|
+
},
|
|
58
63
|
},
|
|
59
64
|
{
|
|
60
65
|
timestamps: { createdAt: true, updatedAt: true },
|
|
@@ -8,6 +8,7 @@ interface IDataRoomFolder {
|
|
|
8
8
|
name: string;
|
|
9
9
|
order?: number;
|
|
10
10
|
createdBy: string;
|
|
11
|
+
deletedAt?: Date;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export type TDataRoomFolderDoc = mongoose.HydratedDocument<IDataRoomFolder>;
|
|
@@ -51,6 +52,10 @@ export const DataRoomFolderSchema = new mongoose.Schema<IDataRoomFolder, TDataRo
|
|
|
51
52
|
type: Number,
|
|
52
53
|
required: false,
|
|
53
54
|
},
|
|
55
|
+
deletedAt: {
|
|
56
|
+
type: Date,
|
|
57
|
+
required: false,
|
|
58
|
+
},
|
|
54
59
|
},
|
|
55
60
|
{
|
|
56
61
|
timestamps: { createdAt: true, updatedAt: true },
|
|
@@ -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
|
-
email?: string;
|
|
40
39
|
title?: string;
|
|
40
|
+
email?: string;
|
|
41
41
|
isActive?: boolean;
|
|
42
42
|
}>;
|
|
43
43
|
managementEmails: mongoose.Types.DocumentArray<{
|
|
44
|
-
email?: string;
|
|
45
44
|
title?: string;
|
|
45
|
+
email?: 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
|
-
email?: string;
|
|
56
55
|
title?: string;
|
|
56
|
+
email?: string;
|
|
57
57
|
isActive?: boolean;
|
|
58
58
|
}>;
|
|
59
59
|
managementEmails: mongoose.Types.DocumentArray<{
|
|
60
|
-
email?: string;
|
|
61
60
|
title?: string;
|
|
61
|
+
email?: 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
|
-
email?: string;
|
|
72
71
|
title?: string;
|
|
72
|
+
email?: string;
|
|
73
73
|
isActive?: boolean;
|
|
74
74
|
}>;
|
|
75
75
|
managementEmails: mongoose.Types.DocumentArray<{
|
|
76
|
-
email?: string;
|
|
77
76
|
title?: string;
|
|
77
|
+
email?: string;
|
|
78
78
|
isActive?: boolean;
|
|
79
79
|
}>;
|
|
80
80
|
__v?: number;
|
|
@@ -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
|
-
type: string;
|
|
88
|
+
code: string;
|
|
90
89
|
name: string;
|
|
91
|
-
order: number;
|
|
92
90
|
active: boolean;
|
|
93
|
-
|
|
91
|
+
type: string;
|
|
92
|
+
order: number;
|
|
93
|
+
borrowerId: mongoose.Types.ObjectId;
|
|
94
|
+
commitment: number;
|
|
94
95
|
startDate: Date;
|
|
95
96
|
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
|
-
type: string;
|
|
116
|
+
code: string;
|
|
118
117
|
name: string;
|
|
119
|
-
order: number;
|
|
120
118
|
active: boolean;
|
|
121
|
-
|
|
119
|
+
type: string;
|
|
120
|
+
order: number;
|
|
121
|
+
borrowerId: mongoose.Types.ObjectId;
|
|
122
|
+
commitment: number;
|
|
122
123
|
startDate: Date;
|
|
123
124
|
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
|
-
type: string;
|
|
144
|
+
code: string;
|
|
146
145
|
name: string;
|
|
147
|
-
order: number;
|
|
148
146
|
active: boolean;
|
|
149
|
-
|
|
147
|
+
type: string;
|
|
148
|
+
order: number;
|
|
149
|
+
borrowerId: mongoose.Types.ObjectId;
|
|
150
|
+
commitment: number;
|
|
150
151
|
startDate: Date;
|
|
151
152
|
maturityDate: Date;
|
|
152
|
-
commitment: number;
|
|
153
153
|
isBalanceActual: boolean;
|
|
154
154
|
isFloatedBalanceActual: boolean;
|
|
155
155
|
masterLoanProductId: mongoose.Types.ObjectId;
|