gemcap-be-common 1.3.62 → 1.3.63

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.
@@ -181,6 +181,7 @@ export interface ICRMProspect extends ICRMProspectBase, ICRMProspectExternalNew,
181
181
  email: string;
182
182
  phone: string;
183
183
  comment: string;
184
+ companyName: string;
184
185
  }[];
185
186
  underwriterIds: mongoose.Types.ObjectId[];
186
187
  auditorIds: mongoose.Types.ObjectId[];
@@ -315,6 +315,7 @@ exports.CRMProspectValidationSchema = joi_1.default.object({
315
315
  email: joi_1.default.string().required().allow(''),
316
316
  phone: joi_1.default.string().required().allow('', null),
317
317
  comment: joi_1.default.string().required().allow('', null),
318
+ companyName: joi_1.default.string().required().allow('', null),
318
319
  })),
319
320
  underwriterIds: joi_1.default.array().items(joi_1.default.string()),
320
321
  auditorIds: joi_1.default.array().items(joi_1.default.string()),
@@ -333,6 +334,9 @@ const contactSchema = new mongoose_1.default.Schema({
333
334
  comment: {
334
335
  type: String,
335
336
  },
337
+ companyName: {
338
+ type: String,
339
+ },
336
340
  }, { _id: false });
337
341
  const CRMProspectInfoSchema = {
338
342
  isLocked: {
@@ -361,6 +361,7 @@ export interface ICRMProspect extends ICRMProspectBase, ICRMProspectExternalNew,
361
361
  email: string;
362
362
  phone: string;
363
363
  comment: string;
364
+ companyName: string;
364
365
  }[];
365
366
  underwriterIds: mongoose.Types.ObjectId[];
366
367
  auditorIds: mongoose.Types.ObjectId[];
@@ -460,6 +461,7 @@ export const CRMProspectValidationSchema = Joi.object({
460
461
  email: Joi.string().required().allow(''),
461
462
  phone: Joi.string().required().allow('', null),
462
463
  comment: Joi.string().required().allow('', null),
464
+ companyName: Joi.string().required().allow('', null),
463
465
  })),
464
466
  underwriterIds: Joi.array().items(Joi.string()),
465
467
  auditorIds: Joi.array().items(Joi.string()),
@@ -481,6 +483,9 @@ const contactSchema = new mongoose.Schema({
481
483
  comment: {
482
484
  type: String,
483
485
  },
486
+ companyName: {
487
+ type: String,
488
+ },
484
489
  }, { _id: false });
485
490
 
486
491
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.3.62",
3
+ "version": "1.3.63",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {