gemcap-be-common 1.4.220 → 1.4.221

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.
@@ -69,11 +69,8 @@ export interface IBorrowerNoteLean extends IBorrowerNote {
69
69
  createdAt: Date;
70
70
  updatedAt: Date;
71
71
  }
72
- export interface IBorrowerNoteWithSubjectLean extends Omit<IBorrowerNote, 'subjectId'> {
73
- _id: mongoose.Types.ObjectId;
72
+ export interface IBorrowerNoteWithSubjectLean extends Omit<IBorrowerNoteLean, 'subjectId'> {
74
73
  subjectId: IBorrowerNoteSubjectLean | null;
75
- createdAt: Date;
76
- updatedAt: Date;
77
74
  }
78
75
  export interface IBorrowerNotePlain extends Omit<IBorrowerNote, 'borrowerId' | 'subjectId'> {
79
76
  _id: string;
@@ -82,12 +79,8 @@ export interface IBorrowerNotePlain extends Omit<IBorrowerNote, 'borrowerId' | '
82
79
  createdAt: string;
83
80
  updatedAt: string;
84
81
  }
85
- export interface IBorrowerNoteWithSubjectPlain extends Omit<IBorrowerNote, 'borrowerId' | 'subjectId'> {
86
- _id: string;
87
- borrowerId: string;
82
+ export interface IBorrowerNoteWithSubjectPlain extends Omit<IBorrowerNotePlain, 'subjectId'> {
88
83
  subjectId: IBorrowerNoteSubjectPlain | null;
89
- createdAt: string;
90
- updatedAt: string;
91
84
  }
92
85
  export type BorrowerNoteModel = Model<IBorrowerNoteDoc>;
93
86
  export declare const BorrowerNoteSchema: mongoose.Schema<IBorrowerNoteDoc, mongoose.Model<IBorrowerNoteDoc, any, any, any, mongoose.Document<unknown, any, IBorrowerNoteDoc> & IBorrowerNoteDoc & Required<{
@@ -82,7 +82,7 @@ exports.BorrowerNoteSchema = new mongoose_1.default.Schema({
82
82
  type: {
83
83
  type: String,
84
84
  enum: ['manual', 'email'],
85
- default: 'manual'
85
+ default: 'manual',
86
86
  },
87
87
  emailFrom: { type: String },
88
88
  emailTo: { type: String },
@@ -59,11 +59,8 @@ export interface IBorrowerNoteLean extends IBorrowerNote {
59
59
  updatedAt: Date;
60
60
  }
61
61
 
62
- export interface IBorrowerNoteWithSubjectLean extends Omit<IBorrowerNote, 'subjectId'> {
63
- _id: mongoose.Types.ObjectId;
62
+ export interface IBorrowerNoteWithSubjectLean extends Omit<IBorrowerNoteLean, 'subjectId'> {
64
63
  subjectId: IBorrowerNoteSubjectLean | null;
65
- createdAt: Date;
66
- updatedAt: Date;
67
64
  }
68
65
 
69
66
  export interface IBorrowerNotePlain extends Omit<IBorrowerNote, 'borrowerId' | 'subjectId'> {
@@ -74,12 +71,8 @@ export interface IBorrowerNotePlain extends Omit<IBorrowerNote, 'borrowerId' | '
74
71
  updatedAt: string;
75
72
  }
76
73
 
77
- export interface IBorrowerNoteWithSubjectPlain extends Omit<IBorrowerNote, 'borrowerId' | 'subjectId'> {
78
- _id: string;
79
- borrowerId: string;
74
+ export interface IBorrowerNoteWithSubjectPlain extends Omit<IBorrowerNotePlain, 'subjectId'> {
80
75
  subjectId: IBorrowerNoteSubjectPlain | null;
81
- createdAt: string;
82
- updatedAt: string;
83
76
  }
84
77
 
85
78
  export type BorrowerNoteModel = Model<IBorrowerNoteDoc>;
@@ -161,7 +154,7 @@ export const BorrowerNoteSchema = new mongoose.Schema<IBorrowerNoteDoc>({
161
154
  type: {
162
155
  type: String,
163
156
  enum: ['manual', 'email'],
164
- default: 'manual'
157
+ default: 'manual',
165
158
  },
166
159
  emailFrom: { type: String },
167
160
  emailTo: { type: String },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.4.220",
3
+ "version": "1.4.221",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {