gemcap-be-common 1.4.76 → 1.4.78

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.
@@ -26,6 +26,7 @@ import mongoose, { Model } from 'mongoose';
26
26
  export interface IBorrowerNoteAttachment {
27
27
  fileId: string;
28
28
  fileName: string;
29
+ filePath: string;
29
30
  mimeType: string;
30
31
  size: number;
31
32
  }
@@ -40,6 +41,9 @@ export interface IBorrowerNoteDoc extends IBorrowerNote, Document {
40
41
  createdAt: Date;
41
42
  updatedAt: Date;
42
43
  }
44
+ export interface IBorrowerNoteCreate extends Omit<IBorrowerNote, '_id' | 'borrowerId'> {
45
+ borrowerId: string;
46
+ }
43
47
  export interface IBorrowerNoteLean extends IBorrowerNote {
44
48
  _id: mongoose.Types.ObjectId;
45
49
  createdAt: Date;
@@ -15,6 +15,10 @@ const BorrowerNoteAttachmentSchema = new mongoose_1.default.Schema({
15
15
  type: String,
16
16
  required: true,
17
17
  },
18
+ filePath: {
19
+ type: String,
20
+ required: true,
21
+ },
18
22
  mimeType: {
19
23
  type: String,
20
24
  required: false,
@@ -5,6 +5,7 @@ import { MODEL_NAMES } from './_models';
5
5
  export interface IBorrowerNoteAttachment {
6
6
  fileId: string,
7
7
  fileName: string,
8
+ filePath: string,
8
9
  mimeType: string,
9
10
  size: number,
10
11
  }
@@ -22,6 +23,10 @@ export interface IBorrowerNoteDoc extends IBorrowerNote, Document {
22
23
  updatedAt: Date;
23
24
  }
24
25
 
26
+ export interface IBorrowerNoteCreate extends Omit<IBorrowerNote, '_id' | 'borrowerId'> {
27
+ borrowerId: string;
28
+ }
29
+
25
30
  export interface IBorrowerNoteLean extends IBorrowerNote {
26
31
  _id: mongoose.Types.ObjectId;
27
32
  createdAt: Date;
@@ -45,6 +50,10 @@ const BorrowerNoteAttachmentSchema = new mongoose.Schema<IBorrowerNoteAttachment
45
50
  type: String,
46
51
  required: true,
47
52
  },
53
+ filePath: {
54
+ type: String,
55
+ required: true,
56
+ },
48
57
  mimeType: {
49
58
  type: String,
50
59
  required: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.4.76",
3
+ "version": "1.4.78",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {