gemcap-be-common 1.4.97 → 1.4.99
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.
|
@@ -29,18 +29,24 @@ export interface IBorrowerNoteAttachment {
|
|
|
29
29
|
filePath: string;
|
|
30
30
|
mimeType: string;
|
|
31
31
|
size: number;
|
|
32
|
+
fieldName: string;
|
|
33
|
+
contentId: string | null;
|
|
34
|
+
isInline: boolean;
|
|
32
35
|
}
|
|
33
36
|
export interface IBorrowerNote {
|
|
34
37
|
borrowerId: mongoose.Types.ObjectId;
|
|
35
38
|
subjectId: mongoose.Types.ObjectId;
|
|
36
39
|
text: string;
|
|
37
40
|
attachments: IBorrowerNoteAttachment[];
|
|
41
|
+
inline: IBorrowerNoteAttachment[];
|
|
38
42
|
createdBy: string;
|
|
39
43
|
updatedBy?: string;
|
|
40
44
|
source?: {
|
|
41
45
|
type: 'manual' | 'email';
|
|
42
46
|
emailFrom?: string;
|
|
43
47
|
emailTo?: string;
|
|
48
|
+
emailText?: string;
|
|
49
|
+
emailHtml?: string;
|
|
44
50
|
};
|
|
45
51
|
}
|
|
46
52
|
export interface IBorrowerNoteDoc extends IBorrowerNote, Document {
|
|
@@ -27,6 +27,20 @@ const BorrowerNoteAttachmentSchema = new mongoose_1.default.Schema({
|
|
|
27
27
|
type: Number,
|
|
28
28
|
required: false,
|
|
29
29
|
},
|
|
30
|
+
fieldName: {
|
|
31
|
+
type: String,
|
|
32
|
+
required: false,
|
|
33
|
+
},
|
|
34
|
+
contentId: {
|
|
35
|
+
type: String,
|
|
36
|
+
required: false,
|
|
37
|
+
default: null,
|
|
38
|
+
},
|
|
39
|
+
isInline: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
required: true,
|
|
42
|
+
default: false,
|
|
43
|
+
},
|
|
30
44
|
});
|
|
31
45
|
exports.BorrowerNoteSchema = new mongoose_1.default.Schema({
|
|
32
46
|
borrowerId: {
|
|
@@ -53,6 +67,7 @@ exports.BorrowerNoteSchema = new mongoose_1.default.Schema({
|
|
|
53
67
|
type: String,
|
|
54
68
|
},
|
|
55
69
|
attachments: [BorrowerNoteAttachmentSchema],
|
|
70
|
+
inline: [BorrowerNoteAttachmentSchema],
|
|
56
71
|
source: {
|
|
57
72
|
type: {
|
|
58
73
|
type: String,
|
|
@@ -61,6 +76,8 @@ exports.BorrowerNoteSchema = new mongoose_1.default.Schema({
|
|
|
61
76
|
},
|
|
62
77
|
emailFrom: { type: String },
|
|
63
78
|
emailTo: { type: String },
|
|
79
|
+
emailText: { type: String },
|
|
80
|
+
emailHtml: { type: String },
|
|
64
81
|
},
|
|
65
82
|
}, {
|
|
66
83
|
timestamps: true,
|
|
@@ -8,6 +8,9 @@ export interface IBorrowerNoteAttachment {
|
|
|
8
8
|
filePath: string;
|
|
9
9
|
mimeType: string;
|
|
10
10
|
size: number;
|
|
11
|
+
fieldName: string;
|
|
12
|
+
contentId: string | null;
|
|
13
|
+
isInline: boolean;
|
|
11
14
|
}
|
|
12
15
|
|
|
13
16
|
export interface IBorrowerNote {
|
|
@@ -15,12 +18,15 @@ export interface IBorrowerNote {
|
|
|
15
18
|
subjectId: mongoose.Types.ObjectId;
|
|
16
19
|
text: string;
|
|
17
20
|
attachments: IBorrowerNoteAttachment[];
|
|
21
|
+
inline: IBorrowerNoteAttachment[];
|
|
18
22
|
createdBy: string;
|
|
19
23
|
updatedBy?: string;
|
|
20
24
|
source?: {
|
|
21
25
|
type: 'manual' | 'email';
|
|
22
26
|
emailFrom?: string;
|
|
23
27
|
emailTo?: string;
|
|
28
|
+
emailText?: string;
|
|
29
|
+
emailHtml?: string;
|
|
24
30
|
};
|
|
25
31
|
}
|
|
26
32
|
|
|
@@ -76,6 +82,20 @@ const BorrowerNoteAttachmentSchema = new mongoose.Schema<IBorrowerNoteAttachment
|
|
|
76
82
|
type: Number,
|
|
77
83
|
required: false,
|
|
78
84
|
},
|
|
85
|
+
fieldName: {
|
|
86
|
+
type: String,
|
|
87
|
+
required: false,
|
|
88
|
+
},
|
|
89
|
+
contentId: {
|
|
90
|
+
type: String,
|
|
91
|
+
required: false,
|
|
92
|
+
default: null,
|
|
93
|
+
},
|
|
94
|
+
isInline: {
|
|
95
|
+
type: Boolean,
|
|
96
|
+
required: true,
|
|
97
|
+
default: false,
|
|
98
|
+
},
|
|
79
99
|
});
|
|
80
100
|
|
|
81
101
|
export const BorrowerNoteSchema = new mongoose.Schema<IBorrowerNoteDoc>({
|
|
@@ -103,6 +123,7 @@ export const BorrowerNoteSchema = new mongoose.Schema<IBorrowerNoteDoc>({
|
|
|
103
123
|
type: String,
|
|
104
124
|
},
|
|
105
125
|
attachments: [BorrowerNoteAttachmentSchema],
|
|
126
|
+
inline: [BorrowerNoteAttachmentSchema],
|
|
106
127
|
source: {
|
|
107
128
|
type: {
|
|
108
129
|
type: String,
|
|
@@ -111,6 +132,8 @@ export const BorrowerNoteSchema = new mongoose.Schema<IBorrowerNoteDoc>({
|
|
|
111
132
|
},
|
|
112
133
|
emailFrom: { type: String },
|
|
113
134
|
emailTo: { type: String },
|
|
135
|
+
emailText: { type: String },
|
|
136
|
+
emailHtml: { type: String },
|
|
114
137
|
},
|
|
115
138
|
}, {
|
|
116
139
|
timestamps: true,
|