gemcap-be-common 1.4.96 → 1.4.98
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,13 @@ 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
|
+
emailText?: string;
|
|
45
|
+
emailHtml?: string;
|
|
46
|
+
};
|
|
40
47
|
}
|
|
41
48
|
export interface IBorrowerNoteDoc extends IBorrowerNote, Document {
|
|
42
49
|
_id: mongoose.Types.ObjectId;
|
|
@@ -53,6 +53,17 @@ 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
|
+
emailText: { type: String },
|
|
65
|
+
emailHtml: { type: String },
|
|
66
|
+
},
|
|
56
67
|
}, {
|
|
57
68
|
timestamps: true,
|
|
58
69
|
versionKey: false,
|
|
@@ -3,20 +3,27 @@ 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
|
+
emailText?: string;
|
|
25
|
+
emailHtml?: string;
|
|
26
|
+
};
|
|
20
27
|
}
|
|
21
28
|
|
|
22
29
|
export interface IBorrowerNoteDoc extends IBorrowerNote, Document {
|
|
@@ -98,6 +105,17 @@ export const BorrowerNoteSchema = new mongoose.Schema<IBorrowerNoteDoc>({
|
|
|
98
105
|
type: String,
|
|
99
106
|
},
|
|
100
107
|
attachments: [BorrowerNoteAttachmentSchema],
|
|
108
|
+
source: {
|
|
109
|
+
type: {
|
|
110
|
+
type: String,
|
|
111
|
+
enum: ['manual', 'email'],
|
|
112
|
+
default: 'manual'
|
|
113
|
+
},
|
|
114
|
+
emailFrom: { type: String },
|
|
115
|
+
emailTo: { type: String },
|
|
116
|
+
emailText: { type: String },
|
|
117
|
+
emailHtml: { type: String },
|
|
118
|
+
},
|
|
101
119
|
}, {
|
|
102
120
|
timestamps: true,
|
|
103
121
|
versionKey: false,
|