gemcap-be-common 1.4.107 → 1.4.109
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.
|
@@ -7,6 +7,11 @@ exports.FinancialSpreadingExclusion = exports.FinancialSpreadingExclusionSchema
|
|
|
7
7
|
const mongoose_1 = __importDefault(require("mongoose"));
|
|
8
8
|
const _models_1 = require("./_models");
|
|
9
9
|
exports.FinancialSpreadingExclusionSchema = new mongoose_1.default.Schema({
|
|
10
|
+
order: {
|
|
11
|
+
type: Number,
|
|
12
|
+
required: true,
|
|
13
|
+
trim: true,
|
|
14
|
+
},
|
|
10
15
|
borrowerId: {
|
|
11
16
|
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
12
17
|
ref: _models_1.MODEL_NAMES.borrowers,
|
|
@@ -14,8 +19,9 @@ exports.FinancialSpreadingExclusionSchema = new mongoose_1.default.Schema({
|
|
|
14
19
|
},
|
|
15
20
|
text: {
|
|
16
21
|
type: String,
|
|
17
|
-
required:
|
|
22
|
+
required: false,
|
|
18
23
|
trim: true,
|
|
24
|
+
default: '',
|
|
19
25
|
},
|
|
20
26
|
}, {
|
|
21
27
|
timestamps: { createdAt: true, updatedAt: true },
|
|
@@ -3,6 +3,7 @@ import mongoose, { Model } from 'mongoose';
|
|
|
3
3
|
import { MODEL_NAMES } from './_models';
|
|
4
4
|
|
|
5
5
|
export interface IFinancialSpreadingExclusion {
|
|
6
|
+
order: number;
|
|
6
7
|
borrowerId: mongoose.Types.ObjectId;
|
|
7
8
|
text: string;
|
|
8
9
|
}
|
|
@@ -30,6 +31,11 @@ export type IFinancialSpreadingExclusionModel = Model<IFinancialSpreadingExclusi
|
|
|
30
31
|
|
|
31
32
|
export const FinancialSpreadingExclusionSchema = new mongoose.Schema<IFinancialSpreadingExclusion, IFinancialSpreadingExclusionModel>(
|
|
32
33
|
{
|
|
34
|
+
order: {
|
|
35
|
+
type: Number,
|
|
36
|
+
required: true,
|
|
37
|
+
trim: true,
|
|
38
|
+
},
|
|
33
39
|
borrowerId: {
|
|
34
40
|
type: mongoose.Schema.Types.ObjectId,
|
|
35
41
|
ref: MODEL_NAMES.borrowers,
|
|
@@ -37,8 +43,9 @@ export const FinancialSpreadingExclusionSchema = new mongoose.Schema<IFinancialS
|
|
|
37
43
|
},
|
|
38
44
|
text: {
|
|
39
45
|
type: String,
|
|
40
|
-
required:
|
|
46
|
+
required: false,
|
|
41
47
|
trim: true,
|
|
48
|
+
default: '',
|
|
42
49
|
},
|
|
43
50
|
},
|
|
44
51
|
{
|