gemcap-be-common 1.4.98 → 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,12 +29,16 @@ 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?: {
@@ -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,
@@ -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,6 +18,7 @@ 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?: {
@@ -78,6 +82,20 @@ const BorrowerNoteAttachmentSchema = new mongoose.Schema<IBorrowerNoteAttachment
78
82
  type: Number,
79
83
  required: false,
80
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
+ },
81
99
  });
82
100
 
83
101
  export const BorrowerNoteSchema = new mongoose.Schema<IBorrowerNoteDoc>({
@@ -105,6 +123,7 @@ export const BorrowerNoteSchema = new mongoose.Schema<IBorrowerNoteDoc>({
105
123
  type: String,
106
124
  },
107
125
  attachments: [BorrowerNoteAttachmentSchema],
126
+ inline: [BorrowerNoteAttachmentSchema],
108
127
  source: {
109
128
  type: {
110
129
  type: String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.4.98",
3
+ "version": "1.4.99",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {