gemcap-be-common 1.4.96 → 1.4.97
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.
|
@@ -37,6 +37,11 @@ export interface IBorrowerNote {
|
|
|
37
37
|
attachments: IBorrowerNoteAttachment[];
|
|
38
38
|
createdBy: string;
|
|
39
39
|
updatedBy?: string;
|
|
40
|
+
source?: {
|
|
41
|
+
type: 'manual' | 'email';
|
|
42
|
+
emailFrom?: string;
|
|
43
|
+
emailTo?: string;
|
|
44
|
+
};
|
|
40
45
|
}
|
|
41
46
|
export interface IBorrowerNoteDoc extends IBorrowerNote, Document {
|
|
42
47
|
_id: mongoose.Types.ObjectId;
|
|
@@ -53,6 +53,15 @@ exports.BorrowerNoteSchema = new mongoose_1.default.Schema({
|
|
|
53
53
|
type: String,
|
|
54
54
|
},
|
|
55
55
|
attachments: [BorrowerNoteAttachmentSchema],
|
|
56
|
+
source: {
|
|
57
|
+
type: {
|
|
58
|
+
type: String,
|
|
59
|
+
enum: ['manual', 'email'],
|
|
60
|
+
default: 'manual'
|
|
61
|
+
},
|
|
62
|
+
emailFrom: { type: String },
|
|
63
|
+
emailTo: { type: String },
|
|
64
|
+
},
|
|
56
65
|
}, {
|
|
57
66
|
timestamps: true,
|
|
58
67
|
versionKey: false,
|
|
@@ -3,20 +3,25 @@ import mongoose, { Model } from 'mongoose';
|
|
|
3
3
|
import { MODEL_NAMES } from './_models';
|
|
4
4
|
|
|
5
5
|
export interface IBorrowerNoteAttachment {
|
|
6
|
-
fileId: string
|
|
7
|
-
fileName: string
|
|
8
|
-
filePath: string
|
|
9
|
-
mimeType: string
|
|
10
|
-
size: number
|
|
6
|
+
fileId: string;
|
|
7
|
+
fileName: string;
|
|
8
|
+
filePath: string;
|
|
9
|
+
mimeType: string;
|
|
10
|
+
size: number;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export interface IBorrowerNote {
|
|
14
|
-
borrowerId: mongoose.Types.ObjectId
|
|
15
|
-
subjectId: mongoose.Types.ObjectId
|
|
16
|
-
text: string
|
|
17
|
-
attachments: IBorrowerNoteAttachment[]
|
|
18
|
-
createdBy: string
|
|
19
|
-
updatedBy?: string
|
|
14
|
+
borrowerId: mongoose.Types.ObjectId;
|
|
15
|
+
subjectId: mongoose.Types.ObjectId;
|
|
16
|
+
text: string;
|
|
17
|
+
attachments: IBorrowerNoteAttachment[];
|
|
18
|
+
createdBy: string;
|
|
19
|
+
updatedBy?: string;
|
|
20
|
+
source?: {
|
|
21
|
+
type: 'manual' | 'email';
|
|
22
|
+
emailFrom?: string;
|
|
23
|
+
emailTo?: string;
|
|
24
|
+
};
|
|
20
25
|
}
|
|
21
26
|
|
|
22
27
|
export interface IBorrowerNoteDoc extends IBorrowerNote, Document {
|
|
@@ -98,6 +103,15 @@ export const BorrowerNoteSchema = new mongoose.Schema<IBorrowerNoteDoc>({
|
|
|
98
103
|
type: String,
|
|
99
104
|
},
|
|
100
105
|
attachments: [BorrowerNoteAttachmentSchema],
|
|
106
|
+
source: {
|
|
107
|
+
type: {
|
|
108
|
+
type: String,
|
|
109
|
+
enum: ['manual', 'email'],
|
|
110
|
+
default: 'manual'
|
|
111
|
+
},
|
|
112
|
+
emailFrom: { type: String },
|
|
113
|
+
emailTo: { type: String },
|
|
114
|
+
},
|
|
101
115
|
}, {
|
|
102
116
|
timestamps: true,
|
|
103
117
|
versionKey: false,
|