gemcap-be-common 1.4.218 → 1.4.219

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.
@@ -41,10 +41,10 @@ export interface IBorrowerNoteAiSummary {
41
41
  summary: string;
42
42
  subject: string;
43
43
  status: TProspectFileAiSummaryStatus;
44
- model: string;
45
- promptSlug: string;
46
- promptVersion: number;
47
- contentHash: string;
44
+ model?: string;
45
+ promptSlug?: string;
46
+ promptVersion?: number;
47
+ contentHash?: string;
48
48
  error?: string;
49
49
  }
50
50
  export interface IBorrowerNoteAiSummaryDoc extends IBorrowerNoteAiSummary, Document {
@@ -41,14 +41,26 @@ exports.BorrowerNoteAiSummarySchema = new mongoose_1.default.Schema({
41
41
  default: exports.PROSPECT_FILE_AI_SUMMARY_STATUSES.PENDING,
42
42
  index: true,
43
43
  },
44
- model: String,
45
- promptSlug: String,
46
- promptVersion: Number,
44
+ model: {
45
+ type: String,
46
+ required: false,
47
+ },
48
+ promptSlug: {
49
+ type: String,
50
+ required: false,
51
+ },
52
+ promptVersion: {
53
+ type: Number,
54
+ required: false,
55
+ },
47
56
  contentHash: {
48
57
  type: String,
49
- index: true,
58
+ required: false,
59
+ },
60
+ error: {
61
+ type: String,
62
+ required: false,
50
63
  },
51
- error: String,
52
64
  }, {
53
65
  timestamps: true,
54
66
  versionKey: false,
@@ -22,10 +22,10 @@ export interface IBorrowerNoteAiSummary {
22
22
  summary: string;
23
23
  subject: string;
24
24
  status: TProspectFileAiSummaryStatus;
25
- model: string;
26
- promptSlug: string;
27
- promptVersion: number;
28
- contentHash: string;
25
+ model?: string;
26
+ promptSlug?: string;
27
+ promptVersion?: number;
28
+ contentHash?: string;
29
29
  error?: string;
30
30
  }
31
31
 
@@ -77,14 +77,26 @@ export const BorrowerNoteAiSummarySchema = new mongoose.Schema<IBorrowerNoteAiSu
77
77
  default: PROSPECT_FILE_AI_SUMMARY_STATUSES.PENDING,
78
78
  index: true,
79
79
  },
80
- model: String,
81
- promptSlug: String,
82
- promptVersion: Number,
80
+ model: {
81
+ type: String,
82
+ required: false,
83
+ },
84
+ promptSlug: {
85
+ type: String,
86
+ required: false,
87
+ },
88
+ promptVersion: {
89
+ type: Number,
90
+ required: false,
91
+ },
83
92
  contentHash: {
84
93
  type: String,
85
- index: true,
94
+ required: false,
95
+ },
96
+ error: {
97
+ type: String,
98
+ required: false,
86
99
  },
87
- error: String,
88
100
  }, {
89
101
  timestamps: true,
90
102
  versionKey: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.4.218",
3
+ "version": "1.4.219",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {