gemcap-be-common 1.5.162 → 1.5.164
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 +20 -12
- package/models/Borrower.model.js +8 -0
- package/models/Borrower.model.ts +10 -0
- 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 +2 -0
- package/models/DataRoomContact.model.js +9 -0
- package/models/DataRoomContact.model.ts +11 -0
- package/models/DataRoomFiles.model.d.ts +2 -0
- package/models/DataRoomFiles.model.js +9 -0
- package/models/DataRoomFiles.model.ts +11 -0
- package/models/DataRoomFolder.model.d.ts +2 -0
- package/models/DataRoomFolder.model.js +9 -0
- package/models/DataRoomFolder.model.ts +11 -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
|
+
reserveCode: string | null;
|
|
41
43
|
organizationId: mongoose.Types.ObjectId;
|
|
42
44
|
schemas: IMapSchema[];
|
|
43
45
|
}
|
|
@@ -64,59 +66,65 @@ export declare const BorrowerSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
64
66
|
createdAt: NativeDate;
|
|
65
67
|
updatedAt: NativeDate;
|
|
66
68
|
} & {
|
|
67
|
-
name: string;
|
|
68
|
-
active: boolean;
|
|
69
69
|
code: string;
|
|
70
|
+
name: string;
|
|
70
71
|
title: string;
|
|
72
|
+
active: boolean;
|
|
71
73
|
accrualStatus: boolean;
|
|
72
|
-
|
|
74
|
+
accrueToReserve: boolean;
|
|
75
|
+
reserveCode: boolean;
|
|
73
76
|
organizationId?: mongoose.Types.ObjectId;
|
|
74
77
|
schemas?: mongoose.Types.DocumentArray<{
|
|
75
|
-
type: string;
|
|
76
78
|
name: string;
|
|
79
|
+
type: string;
|
|
77
80
|
data: mongoose.Types.DocumentArray<{
|
|
78
81
|
column: string;
|
|
79
82
|
databaseTitle: string;
|
|
80
83
|
}>;
|
|
81
84
|
}>;
|
|
85
|
+
__v?: number;
|
|
82
86
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
83
87
|
createdAt: NativeDate;
|
|
84
88
|
updatedAt: NativeDate;
|
|
85
89
|
} & {
|
|
86
|
-
name: string;
|
|
87
|
-
active: boolean;
|
|
88
90
|
code: string;
|
|
91
|
+
name: string;
|
|
89
92
|
title: string;
|
|
93
|
+
active: boolean;
|
|
90
94
|
accrualStatus: boolean;
|
|
91
|
-
|
|
95
|
+
accrueToReserve: boolean;
|
|
96
|
+
reserveCode: boolean;
|
|
92
97
|
organizationId?: mongoose.Types.ObjectId;
|
|
93
98
|
schemas?: mongoose.Types.DocumentArray<{
|
|
94
|
-
type: string;
|
|
95
99
|
name: string;
|
|
100
|
+
type: string;
|
|
96
101
|
data: mongoose.Types.DocumentArray<{
|
|
97
102
|
column: string;
|
|
98
103
|
databaseTitle: string;
|
|
99
104
|
}>;
|
|
100
105
|
}>;
|
|
106
|
+
__v?: number;
|
|
101
107
|
}>> & mongoose.FlatRecord<{
|
|
102
108
|
createdAt: NativeDate;
|
|
103
109
|
updatedAt: NativeDate;
|
|
104
110
|
} & {
|
|
105
|
-
name: string;
|
|
106
|
-
active: boolean;
|
|
107
111
|
code: string;
|
|
112
|
+
name: string;
|
|
108
113
|
title: string;
|
|
114
|
+
active: boolean;
|
|
109
115
|
accrualStatus: boolean;
|
|
110
|
-
|
|
116
|
+
accrueToReserve: boolean;
|
|
117
|
+
reserveCode: boolean;
|
|
111
118
|
organizationId?: mongoose.Types.ObjectId;
|
|
112
119
|
schemas?: mongoose.Types.DocumentArray<{
|
|
113
|
-
type: string;
|
|
114
120
|
name: string;
|
|
121
|
+
type: string;
|
|
115
122
|
data: mongoose.Types.DocumentArray<{
|
|
116
123
|
column: string;
|
|
117
124
|
databaseTitle: string;
|
|
118
125
|
}>;
|
|
119
126
|
}>;
|
|
127
|
+
__v?: number;
|
|
120
128
|
}> & {
|
|
121
129
|
_id: mongoose.Types.ObjectId;
|
|
122
130
|
}>;
|
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
|
+
reserveCode: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: false,
|
|
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
|
+
reserveCode: string | null;
|
|
24
26
|
organizationId: mongoose.Types.ObjectId;
|
|
25
27
|
schemas: IMapSchema[];
|
|
26
28
|
}
|
|
@@ -71,6 +73,14 @@ export const BorrowerSchema = new mongoose.Schema(
|
|
|
71
73
|
type: Boolean,
|
|
72
74
|
default: false,
|
|
73
75
|
},
|
|
76
|
+
accrueToReserve: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
default: false,
|
|
79
|
+
},
|
|
80
|
+
reserveCode: {
|
|
81
|
+
type: Boolean,
|
|
82
|
+
default: false,
|
|
83
|
+
},
|
|
74
84
|
organizationId: {
|
|
75
85
|
type: mongoose.Schema.Types.ObjectId,
|
|
76
86
|
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 },
|
|
@@ -26,11 +26,13 @@ import mongoose from 'mongoose';
|
|
|
26
26
|
export declare const DATA_ROOM_PERMISSIONS: readonly ["read", "read_upload"];
|
|
27
27
|
export type TDataRoomPermission = (typeof DATA_ROOM_PERMISSIONS)[number];
|
|
28
28
|
interface IDataRoomContact {
|
|
29
|
+
uiId: string;
|
|
29
30
|
name: string;
|
|
30
31
|
email: string;
|
|
31
32
|
normalizedEmail: string;
|
|
32
33
|
company?: string;
|
|
33
34
|
createdBy: string;
|
|
35
|
+
deletedAt?: Date;
|
|
34
36
|
}
|
|
35
37
|
export type TDataRoomContactDoc = mongoose.HydratedDocument<IDataRoomContact>;
|
|
36
38
|
export interface IDataRoomContactLean extends IDataRoomContact {
|
|
@@ -8,6 +8,11 @@ const mongoose_1 = __importDefault(require("mongoose"));
|
|
|
8
8
|
const _models_1 = require("./_models");
|
|
9
9
|
exports.DATA_ROOM_PERMISSIONS = ['read', 'read_upload'];
|
|
10
10
|
exports.DataRoomContactSchema = new mongoose_1.default.Schema({
|
|
11
|
+
uiId: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: true,
|
|
14
|
+
unique: true,
|
|
15
|
+
},
|
|
11
16
|
name: {
|
|
12
17
|
type: String,
|
|
13
18
|
required: true,
|
|
@@ -30,6 +35,10 @@ exports.DataRoomContactSchema = new mongoose_1.default.Schema({
|
|
|
30
35
|
type: String,
|
|
31
36
|
required: true,
|
|
32
37
|
},
|
|
38
|
+
deletedAt: {
|
|
39
|
+
type: Date,
|
|
40
|
+
required: false,
|
|
41
|
+
},
|
|
33
42
|
}, {
|
|
34
43
|
timestamps: { createdAt: true, updatedAt: true },
|
|
35
44
|
versionKey: false,
|
|
@@ -7,11 +7,13 @@ export const DATA_ROOM_PERMISSIONS = ['read', 'read_upload'] as const;
|
|
|
7
7
|
export type TDataRoomPermission = (typeof DATA_ROOM_PERMISSIONS)[number];
|
|
8
8
|
|
|
9
9
|
interface IDataRoomContact {
|
|
10
|
+
uiId: string;
|
|
10
11
|
name: string;
|
|
11
12
|
email: string;
|
|
12
13
|
normalizedEmail: string;
|
|
13
14
|
company?: string;
|
|
14
15
|
createdBy: string;
|
|
16
|
+
deletedAt?: Date;
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
export type TDataRoomContactDoc = mongoose.HydratedDocument<IDataRoomContact>;
|
|
@@ -32,6 +34,11 @@ export type TDataRoomContactModel = mongoose.Model<IDataRoomContact>;
|
|
|
32
34
|
|
|
33
35
|
export const DataRoomContactSchema = new mongoose.Schema<IDataRoomContact, TDataRoomContactModel>(
|
|
34
36
|
{
|
|
37
|
+
uiId: {
|
|
38
|
+
type: String,
|
|
39
|
+
required: true,
|
|
40
|
+
unique: true,
|
|
41
|
+
},
|
|
35
42
|
name: {
|
|
36
43
|
type: String,
|
|
37
44
|
required: true,
|
|
@@ -54,6 +61,10 @@ export const DataRoomContactSchema = new mongoose.Schema<IDataRoomContact, TData
|
|
|
54
61
|
type: String,
|
|
55
62
|
required: true,
|
|
56
63
|
},
|
|
64
|
+
deletedAt: {
|
|
65
|
+
type: Date,
|
|
66
|
+
required: false,
|
|
67
|
+
},
|
|
57
68
|
},
|
|
58
69
|
{
|
|
59
70
|
timestamps: { createdAt: true, updatedAt: true },
|
|
@@ -24,10 +24,12 @@
|
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
import mongoose from 'mongoose';
|
|
26
26
|
interface IDataRoomFile {
|
|
27
|
+
uiId: string;
|
|
27
28
|
dataRoomId: mongoose.Types.ObjectId;
|
|
28
29
|
folderId: mongoose.Types.ObjectId;
|
|
29
30
|
fileId: mongoose.Types.ObjectId;
|
|
30
31
|
uploadedBy: string;
|
|
32
|
+
deletedAt?: Date;
|
|
31
33
|
}
|
|
32
34
|
export type TDataRoomFileDoc = mongoose.HydratedDocument<IDataRoomFile>;
|
|
33
35
|
export interface IDataRoomFileLean extends IDataRoomFile {
|
|
@@ -7,6 +7,11 @@ exports.DataRoomFile = exports.DataRoomFileSchema = void 0;
|
|
|
7
7
|
const mongoose_1 = __importDefault(require("mongoose"));
|
|
8
8
|
const _models_1 = require("./_models");
|
|
9
9
|
exports.DataRoomFileSchema = new mongoose_1.default.Schema({
|
|
10
|
+
uiId: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: true,
|
|
13
|
+
unique: true,
|
|
14
|
+
},
|
|
10
15
|
dataRoomId: {
|
|
11
16
|
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
12
17
|
ref: _models_1.MODEL_NAMES.dataRoom,
|
|
@@ -26,6 +31,10 @@ exports.DataRoomFileSchema = new mongoose_1.default.Schema({
|
|
|
26
31
|
type: String,
|
|
27
32
|
required: true,
|
|
28
33
|
},
|
|
34
|
+
deletedAt: {
|
|
35
|
+
type: Date,
|
|
36
|
+
required: false,
|
|
37
|
+
},
|
|
29
38
|
}, {
|
|
30
39
|
timestamps: { createdAt: true, updatedAt: true },
|
|
31
40
|
versionKey: false,
|
|
@@ -3,10 +3,12 @@ import mongoose from 'mongoose';
|
|
|
3
3
|
import { MODEL_NAMES } from './_models';
|
|
4
4
|
|
|
5
5
|
interface IDataRoomFile {
|
|
6
|
+
uiId: string;
|
|
6
7
|
dataRoomId: mongoose.Types.ObjectId;
|
|
7
8
|
folderId: mongoose.Types.ObjectId;
|
|
8
9
|
fileId: mongoose.Types.ObjectId;
|
|
9
10
|
uploadedBy: string;
|
|
11
|
+
deletedAt?: Date;
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
export type TDataRoomFileDoc = mongoose.HydratedDocument<IDataRoomFile>;
|
|
@@ -30,6 +32,11 @@ export type TDataRoomFileModel = mongoose.Model<IDataRoomFile>;
|
|
|
30
32
|
|
|
31
33
|
export const DataRoomFileSchema = new mongoose.Schema<IDataRoomFile, TDataRoomFileModel>(
|
|
32
34
|
{
|
|
35
|
+
uiId: {
|
|
36
|
+
type: String,
|
|
37
|
+
required: true,
|
|
38
|
+
unique: true,
|
|
39
|
+
},
|
|
33
40
|
dataRoomId: {
|
|
34
41
|
type: mongoose.Schema.Types.ObjectId,
|
|
35
42
|
ref: MODEL_NAMES.dataRoom,
|
|
@@ -49,6 +56,10 @@ export const DataRoomFileSchema = new mongoose.Schema<IDataRoomFile, TDataRoomFi
|
|
|
49
56
|
type: String,
|
|
50
57
|
required: true,
|
|
51
58
|
},
|
|
59
|
+
deletedAt: {
|
|
60
|
+
type: Date,
|
|
61
|
+
required: false,
|
|
62
|
+
},
|
|
52
63
|
},
|
|
53
64
|
{
|
|
54
65
|
timestamps: { createdAt: true, updatedAt: true },
|
|
@@ -24,10 +24,12 @@
|
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
import mongoose from 'mongoose';
|
|
26
26
|
interface IDataRoomFolder {
|
|
27
|
+
uiId: string;
|
|
27
28
|
dataRoomId: mongoose.Types.ObjectId;
|
|
28
29
|
name: string;
|
|
29
30
|
order?: number;
|
|
30
31
|
createdBy: string;
|
|
32
|
+
deletedAt?: Date;
|
|
31
33
|
}
|
|
32
34
|
export type TDataRoomFolderDoc = mongoose.HydratedDocument<IDataRoomFolder>;
|
|
33
35
|
export interface IDataRoomFolderLean extends IDataRoomFolder {
|
|
@@ -7,6 +7,11 @@ exports.DataRoomFolder = exports.DataRoomFolderSchema = void 0;
|
|
|
7
7
|
const mongoose_1 = __importDefault(require("mongoose"));
|
|
8
8
|
const _models_1 = require("./_models");
|
|
9
9
|
exports.DataRoomFolderSchema = new mongoose_1.default.Schema({
|
|
10
|
+
uiId: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: true,
|
|
13
|
+
unique: true,
|
|
14
|
+
},
|
|
10
15
|
dataRoomId: {
|
|
11
16
|
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
12
17
|
ref: _models_1.MODEL_NAMES.dataRoom,
|
|
@@ -24,6 +29,10 @@ exports.DataRoomFolderSchema = new mongoose_1.default.Schema({
|
|
|
24
29
|
type: Number,
|
|
25
30
|
required: false,
|
|
26
31
|
},
|
|
32
|
+
deletedAt: {
|
|
33
|
+
type: Date,
|
|
34
|
+
required: false,
|
|
35
|
+
},
|
|
27
36
|
}, {
|
|
28
37
|
timestamps: { createdAt: true, updatedAt: true },
|
|
29
38
|
versionKey: false,
|
|
@@ -3,10 +3,12 @@ import mongoose from 'mongoose';
|
|
|
3
3
|
import { MODEL_NAMES } from './_models';
|
|
4
4
|
|
|
5
5
|
interface IDataRoomFolder {
|
|
6
|
+
uiId: string;
|
|
6
7
|
dataRoomId: mongoose.Types.ObjectId;
|
|
7
8
|
name: string;
|
|
8
9
|
order?: number;
|
|
9
10
|
createdBy: string;
|
|
11
|
+
deletedAt?: Date;
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
export type TDataRoomFolderDoc = mongoose.HydratedDocument<IDataRoomFolder>;
|
|
@@ -28,6 +30,11 @@ export type TDataRoomFolderModel = mongoose.Model<IDataRoomFolder>;
|
|
|
28
30
|
|
|
29
31
|
export const DataRoomFolderSchema = new mongoose.Schema<IDataRoomFolder, TDataRoomFolderModel>(
|
|
30
32
|
{
|
|
33
|
+
uiId: {
|
|
34
|
+
type: String,
|
|
35
|
+
required: true,
|
|
36
|
+
unique: true,
|
|
37
|
+
},
|
|
31
38
|
dataRoomId: {
|
|
32
39
|
type: mongoose.Schema.Types.ObjectId,
|
|
33
40
|
ref: MODEL_NAMES.dataRoom,
|
|
@@ -45,6 +52,10 @@ export const DataRoomFolderSchema = new mongoose.Schema<IDataRoomFolder, TDataRo
|
|
|
45
52
|
type: Number,
|
|
46
53
|
required: false,
|
|
47
54
|
},
|
|
55
|
+
deletedAt: {
|
|
56
|
+
type: Date,
|
|
57
|
+
required: false,
|
|
58
|
+
},
|
|
48
59
|
},
|
|
49
60
|
{
|
|
50
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;
|