gemcap-be-common 1.3.165 → 1.3.167

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.
@@ -19,6 +19,7 @@ export declare const EventMap: {
19
19
  readonly CALCULATE_YIELD_CALCULATION: "crm#CALCULATE_YIELD_CALCULATION";
20
20
  readonly AUDITOR_PASSWORD_RESET: "crm#AUDITOR_PASSWORD_RESET";
21
21
  readonly EXTERNAL_PASSWORD_RESET: "crm#EXTERNAL_PASSWORD_RESET";
22
+ readonly FORM_REMINDER: "crm#FORM_REMINDER";
22
23
  };
23
24
  readonly report: {
24
25
  readonly DETAILED_PORTFOLIO: "report#DETAILED_PORTFOLIO";
@@ -22,6 +22,7 @@ exports.EventMap = {
22
22
  CALCULATE_YIELD_CALCULATION: 'crm#CALCULATE_YIELD_CALCULATION',
23
23
  AUDITOR_PASSWORD_RESET: 'crm#AUDITOR_PASSWORD_RESET',
24
24
  EXTERNAL_PASSWORD_RESET: 'crm#EXTERNAL_PASSWORD_RESET',
25
+ FORM_REMINDER: 'crm#FORM_REMINDER',
25
26
  },
26
27
  report: {
27
28
  DETAILED_PORTFOLIO: 'report#DETAILED_PORTFOLIO',
@@ -19,6 +19,7 @@ export const EventMap = {
19
19
  CALCULATE_YIELD_CALCULATION: 'crm#CALCULATE_YIELD_CALCULATION',
20
20
  AUDITOR_PASSWORD_RESET: 'crm#AUDITOR_PASSWORD_RESET',
21
21
  EXTERNAL_PASSWORD_RESET: 'crm#EXTERNAL_PASSWORD_RESET',
22
+ FORM_REMINDER: 'crm#FORM_REMINDER',
22
23
  },
23
24
  report: {
24
25
  DETAILED_PORTFOLIO: 'report#DETAILED_PORTFOLIO',
@@ -202,6 +202,7 @@ export interface IProspect extends IProspectBase, IProspectExternalNew {
202
202
  contacts: IProspectContact[];
203
203
  underwriterIds: mongoose.Types.ObjectId[];
204
204
  auditorIds: mongoose.Types.ObjectId[];
205
+ appraiserIds: mongoose.Types.ObjectId[];
205
206
  }
206
207
  export interface IProspectBaseWithId extends IProspectBase {
207
208
  _id: string;
@@ -355,6 +355,7 @@ exports.ProspectValidationSchema = joi_1.default.object({
355
355
  })),
356
356
  underwriterIds: joi_1.default.array().items(joi_1.default.string()),
357
357
  auditorIds: joi_1.default.array().items(joi_1.default.string()),
358
+ appraiserIds: joi_1.default.array().items(joi_1.default.string()),
358
359
  acceptedFiles: joi_1.default.array().items(joi_1.default.string()).allow(null),
359
360
  }).concat(exports.ProspectInfoValidationSchema);
360
361
  const contactSchema = new mongoose_1.default.Schema({
@@ -510,7 +511,11 @@ exports.ProspectSchema = new mongoose_1.default.Schema({
510
511
  }],
511
512
  auditorIds: [{
512
513
  type: mongoose_1.default.Schema.Types.ObjectId,
513
- ref: 'auditors',
514
+ ref: _models_1.MODEL_NAMES.auditors,
515
+ }],
516
+ appraiserIds: [{
517
+ type: mongoose_1.default.Schema.Types.ObjectId,
518
+ ref: _models_1.MODEL_NAMES.appraiser,
514
519
  }],
515
520
  }, {
516
521
  timestamps: { createdAt: true, updatedAt: true },
@@ -397,6 +397,7 @@ export interface IProspect extends IProspectBase, IProspectExternalNew {
397
397
  contacts: IProspectContact[];
398
398
  underwriterIds: mongoose.Types.ObjectId[];
399
399
  auditorIds: mongoose.Types.ObjectId[];
400
+ appraiserIds: mongoose.Types.ObjectId[];
400
401
  }
401
402
 
402
403
  export interface IProspectBaseWithId extends IProspectBase {
@@ -499,6 +500,7 @@ export const ProspectValidationSchema = Joi.object({
499
500
  })),
500
501
  underwriterIds: Joi.array().items(Joi.string()),
501
502
  auditorIds: Joi.array().items(Joi.string()),
503
+ appraiserIds: Joi.array().items(Joi.string()),
502
504
  acceptedFiles: Joi.array().items(Joi.string()).allow(null),
503
505
  }).concat(ProspectInfoValidationSchema);
504
506
 
@@ -660,7 +662,11 @@ export const ProspectSchema = new mongoose.Schema<IProspect, ProspectModel>(
660
662
  }],
661
663
  auditorIds: [{
662
664
  type: mongoose.Schema.Types.ObjectId,
663
- ref: 'auditors',
665
+ ref: MODEL_NAMES.auditors,
666
+ }],
667
+ appraiserIds: [{
668
+ type: mongoose.Schema.Types.ObjectId,
669
+ ref: MODEL_NAMES.appraiser,
664
670
  }],
665
671
  },
666
672
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.3.165",
3
+ "version": "1.3.167",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -155,7 +155,7 @@ export declare class LoanTransactionsService {
155
155
  getTransactionReport(transactionIds: string[], borrowerId: string, effectiveDate: Date): Promise<{
156
156
  transactionIdsToMark: any[];
157
157
  transactions: {
158
- [x: string]: (string | number | string[] | Date)[];
158
+ [x: string]: (string | number | Date | string[])[];
159
159
  }[];
160
160
  }>;
161
161
  getBorrowerIdsForFile(transactionFileId: string): Promise<{