gemcap-be-common 1.4.90 → 1.4.91

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.
@@ -35,20 +35,19 @@ export interface IBorrowerNote {
35
35
  subjectId: mongoose.Types.ObjectId;
36
36
  text: string;
37
37
  attachments: IBorrowerNoteAttachment[];
38
- createdBy: string;
39
- updatedBy: string;
40
- deletedBy?: string;
41
38
  deletedAt?: Date;
39
+ createdBy: string;
40
+ updatedBy?: string;
42
41
  }
43
42
  export interface IBorrowerNoteDoc extends IBorrowerNote, Document {
44
43
  _id: mongoose.Types.ObjectId;
45
44
  createdAt: Date;
46
45
  updatedAt: Date;
47
46
  }
48
- export interface IBorrowerNoteCreate extends Omit<IBorrowerNote, '_id' | 'borrowerId' | 'attachments'> {
47
+ export interface IBorrowerNoteCreate extends Omit<IBorrowerNote, '_id' | 'borrowerId' | 'attachments' | 'updatedBy'> {
49
48
  borrowerId: string;
50
49
  }
51
- export interface IBorrowerNoteUpdate extends Omit<IBorrowerNote, '_id' | 'borrowerId' | 'attachments'> {
50
+ export interface IBorrowerNoteUpdate extends Omit<IBorrowerNote, '_id' | 'borrowerId' | 'attachments' | 'createdBy'> {
52
51
  borrowerId: string;
53
52
  removedAttachments: string[];
54
53
  }
@@ -29,9 +29,6 @@ const BorrowerNoteAttachmentSchema = new mongoose_1.default.Schema({
29
29
  },
30
30
  });
31
31
  exports.BorrowerNoteSchema = new mongoose_1.default.Schema({
32
- deletedBy: {
33
- type: String,
34
- },
35
32
  deletedAt: {
36
33
  type: Date,
37
34
  },
@@ -55,6 +52,9 @@ exports.BorrowerNoteSchema = new mongoose_1.default.Schema({
55
52
  type: String,
56
53
  required: true,
57
54
  },
55
+ updatedBy: {
56
+ type: String,
57
+ },
58
58
  attachments: [BorrowerNoteAttachmentSchema],
59
59
  }, {
60
60
  timestamps: true,
@@ -15,10 +15,9 @@ export interface IBorrowerNote {
15
15
  subjectId: mongoose.Types.ObjectId,
16
16
  text: string,
17
17
  attachments: IBorrowerNoteAttachment[],
18
- createdBy: string,
19
- updatedBy: string,
20
- deletedBy?: string,
21
18
  deletedAt?: Date,
19
+ createdBy: string,
20
+ updatedBy?: string,
22
21
  }
23
22
 
24
23
  export interface IBorrowerNoteDoc extends IBorrowerNote, Document {
@@ -27,11 +26,11 @@ export interface IBorrowerNoteDoc extends IBorrowerNote, Document {
27
26
  updatedAt: Date;
28
27
  }
29
28
 
30
- export interface IBorrowerNoteCreate extends Omit<IBorrowerNote, '_id' | 'borrowerId' | 'attachments'> {
29
+ export interface IBorrowerNoteCreate extends Omit<IBorrowerNote, '_id' | 'borrowerId' | 'attachments' | 'updatedBy'> {
31
30
  borrowerId: string;
32
31
  }
33
32
 
34
- export interface IBorrowerNoteUpdate extends Omit<IBorrowerNote, '_id' | 'borrowerId' | 'attachments'> {
33
+ export interface IBorrowerNoteUpdate extends Omit<IBorrowerNote, '_id' | 'borrowerId' | 'attachments' | 'createdBy'> {
35
34
  borrowerId: string;
36
35
  removedAttachments: string[];
37
36
  }
@@ -74,9 +73,6 @@ const BorrowerNoteAttachmentSchema = new mongoose.Schema<IBorrowerNoteAttachment
74
73
  });
75
74
 
76
75
  export const BorrowerNoteSchema = new mongoose.Schema<IBorrowerNoteDoc>({
77
- deletedBy: {
78
- type: String,
79
- },
80
76
  deletedAt: {
81
77
  type: Date,
82
78
  },
@@ -100,6 +96,9 @@ export const BorrowerNoteSchema = new mongoose.Schema<IBorrowerNoteDoc>({
100
96
  type: String,
101
97
  required: true,
102
98
  },
99
+ updatedBy: {
100
+ type: String,
101
+ },
103
102
  attachments: [BorrowerNoteAttachmentSchema],
104
103
  }, {
105
104
  timestamps: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.4.90",
3
+ "version": "1.4.91",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {