gemcap-be-common 1.3.69 → 1.3.71

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.
@@ -46,7 +46,8 @@ export declare enum EProspectDeclineReason {
46
46
  INSUFFICIENT_COLLATERAL = "INSUFFICIENT_COLLATERAL",
47
47
  LOST_TO_COMPETITOR = "LOST_TO_COMPETITOR",
48
48
  DOES_NOT_FIT_LENDING_CRITERIA = "DOES_NOT_FIT_LENDING_CRITERIA",
49
- DATA_QUALITY = "DATA_QUALITY"
49
+ DATA_QUALITY = "DATA_QUALITY",
50
+ DID_NOT_HEAR_BACK = "DID_NOT_HEAR_BACK"
50
51
  }
51
52
  interface ICRMProspectProduct {
52
53
  commitment: number;
@@ -60,6 +60,7 @@ var EProspectDeclineReason;
60
60
  EProspectDeclineReason["LOST_TO_COMPETITOR"] = "LOST_TO_COMPETITOR";
61
61
  EProspectDeclineReason["DOES_NOT_FIT_LENDING_CRITERIA"] = "DOES_NOT_FIT_LENDING_CRITERIA";
62
62
  EProspectDeclineReason["DATA_QUALITY"] = "DATA_QUALITY";
63
+ EProspectDeclineReason["DID_NOT_HEAR_BACK"] = "DID_NOT_HEAR_BACK";
63
64
  })(EProspectDeclineReason || (exports.EProspectDeclineReason = EProspectDeclineReason = {}));
64
65
  var EProspectFileGroups;
65
66
  (function (EProspectFileGroups) {
@@ -312,11 +313,11 @@ exports.CRMProspectValidationSchema = joi_1.default.object({
312
313
  expectedLoanYield: joi_1.default.number().required().allow(null, 0).default(0),
313
314
  state: joi_1.default.string().required(),
314
315
  contacts: joi_1.default.array().items(joi_1.default.object({
315
- name: joi_1.default.string().required().allow(''),
316
- email: joi_1.default.string().required().allow(''),
317
- phone: joi_1.default.string().required().allow('', null),
318
- comment: joi_1.default.string().required().allow('', null),
319
- companyName: joi_1.default.string().required().allow('', null),
316
+ name: joi_1.default.string().required().default('').allow(''),
317
+ email: joi_1.default.string().required().default('').allow(''),
318
+ phone: joi_1.default.string().required().default('').allow(''),
319
+ comment: joi_1.default.string().required().default('').allow(''),
320
+ companyName: joi_1.default.string().required().default('').allow(''),
320
321
  })),
321
322
  underwriterIds: joi_1.default.array().items(joi_1.default.string()),
322
323
  auditorIds: joi_1.default.array().items(joi_1.default.string()),
@@ -58,6 +58,7 @@ export enum EProspectDeclineReason {
58
58
  LOST_TO_COMPETITOR = 'LOST_TO_COMPETITOR',
59
59
  DOES_NOT_FIT_LENDING_CRITERIA = 'DOES_NOT_FIT_LENDING_CRITERIA',
60
60
  DATA_QUALITY = 'DATA_QUALITY',
61
+ DID_NOT_HEAR_BACK = 'DID_NOT_HEAR_BACK',
61
62
  }
62
63
 
63
64
  interface ICRMProspectProduct {
@@ -459,11 +460,11 @@ export const CRMProspectValidationSchema = Joi.object({
459
460
  expectedLoanYield: Joi.number().required().allow(null, 0).default(0),
460
461
  state: Joi.string().required(),
461
462
  contacts: Joi.array().items(Joi.object({
462
- name: Joi.string().required().allow(''),
463
- email: Joi.string().required().allow(''),
464
- phone: Joi.string().required().allow('', null),
465
- comment: Joi.string().required().allow('', null),
466
- companyName: Joi.string().required().allow('', null),
463
+ name: Joi.string().required().default('').allow(''),
464
+ email: Joi.string().required().default('').allow(''),
465
+ phone: Joi.string().required().default('').allow(''),
466
+ comment: Joi.string().required().default('').allow(''),
467
+ companyName: Joi.string().required().default('').allow(''),
467
468
  })),
468
469
  underwriterIds: Joi.array().items(Joi.string()),
469
470
  auditorIds: Joi.array().items(Joi.string()),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.3.69",
3
+ "version": "1.3.71",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {