gemcap-be-common 1.3.113 → 1.3.115
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.
package/models/Prospect.model.js
CHANGED
|
@@ -335,8 +335,8 @@ exports.ProspectValidationSchema = joi_1.default.object({
|
|
|
335
335
|
collateralDescription: joi_1.default.string().max(textFieldMaxLength).allow(''),
|
|
336
336
|
declineReason: joi_1.default.string().valid(...Object.values(EProspectDeclineReason)),
|
|
337
337
|
sourceId: joi_1.default.string().required(),
|
|
338
|
-
closingPoints:
|
|
339
|
-
expectedLoanYield:
|
|
338
|
+
// closingPoints: Joi.number().required().allow(null, 0).default(0),
|
|
339
|
+
// expectedLoanYield: Joi.number().required().allow(null, 0).default(0),
|
|
340
340
|
state: joi_1.default.string().required(),
|
|
341
341
|
contacts: joi_1.default.array().items(joi_1.default.object({
|
|
342
342
|
name: joi_1.default.string().required().allow('', null).default(''),
|
package/models/Prospect.model.ts
CHANGED
|
@@ -486,8 +486,8 @@ export const ProspectValidationSchema = Joi.object({
|
|
|
486
486
|
collateralDescription: Joi.string().max(textFieldMaxLength).allow(''),
|
|
487
487
|
declineReason: Joi.string().valid(...Object.values(EProspectDeclineReason)),
|
|
488
488
|
sourceId: Joi.string().required(),
|
|
489
|
-
closingPoints: Joi.number().required().allow(null, 0).default(0),
|
|
490
|
-
expectedLoanYield: Joi.number().required().allow(null, 0).default(0),
|
|
489
|
+
// closingPoints: Joi.number().required().allow(null, 0).default(0),
|
|
490
|
+
// expectedLoanYield: Joi.number().required().allow(null, 0).default(0),
|
|
491
491
|
state: Joi.string().required(),
|
|
492
492
|
contacts: Joi.array().items(Joi.object({
|
|
493
493
|
name: Joi.string().required().allow('', null).default(''),
|
|
@@ -13,6 +13,10 @@ var EProspectFileType;
|
|
|
13
13
|
EProspectFileType["AUDITOR_SHARED_FILE"] = "AUDITOR_SHARED_FILE";
|
|
14
14
|
})(EProspectFileType || (exports.EProspectFileType = EProspectFileType = {}));
|
|
15
15
|
exports.ProspectFileSchema = new mongoose_1.default.Schema({
|
|
16
|
+
isAccepted: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: false,
|
|
19
|
+
},
|
|
16
20
|
type: {
|
|
17
21
|
type: String,
|
|
18
22
|
required: true,
|
|
@@ -28,6 +28,10 @@ export interface IProspectFileDoc extends IProspectFile, mongoose.Document {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
export const ProspectFileSchema = new mongoose.Schema<IProspectFileDoc>({
|
|
31
|
+
isAccepted: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: false,
|
|
34
|
+
},
|
|
31
35
|
type: {
|
|
32
36
|
type: String,
|
|
33
37
|
required: true,
|