gemcap-be-common 1.4.66 → 1.4.68

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.
@@ -31,10 +31,10 @@ export declare const allSchemas: {
31
31
  createdAt: NativeDate;
32
32
  updatedAt: NativeDate;
33
33
  } & {
34
- order: number;
35
- amount: number;
36
34
  bbcSheetId: import("mongoose").Types.ObjectId;
35
+ order: number;
37
36
  apDate: Date;
37
+ amount: number;
38
38
  __v?: number;
39
39
  poNumber?: string;
40
40
  customerName?: string;
@@ -45,10 +45,10 @@ export declare const allSchemas: {
45
45
  createdAt: NativeDate;
46
46
  updatedAt: NativeDate;
47
47
  } & {
48
- order: number;
49
- amount: number;
50
48
  bbcSheetId: import("mongoose").Types.ObjectId;
49
+ order: number;
51
50
  apDate: Date;
51
+ amount: number;
52
52
  __v?: number;
53
53
  poNumber?: string;
54
54
  customerName?: string;
@@ -59,10 +59,10 @@ export declare const allSchemas: {
59
59
  createdAt: NativeDate;
60
60
  updatedAt: NativeDate;
61
61
  } & {
62
- order: number;
63
- amount: number;
64
62
  bbcSheetId: import("mongoose").Types.ObjectId;
63
+ order: number;
65
64
  apDate: Date;
65
+ amount: number;
66
66
  __v?: number;
67
67
  poNumber?: string;
68
68
  customerName?: string;
@@ -9,6 +9,7 @@ export declare const MODEL_NAMES: {
9
9
  availabilitySign: string;
10
10
  availabilitySignedData: string;
11
11
  appraiser: string;
12
+ assignedProspects: string;
12
13
  auditors: string;
13
14
  appraiserContact: string;
14
15
  auditorAccess: string;
package/models/_models.js CHANGED
@@ -12,6 +12,7 @@ exports.MODEL_NAMES = {
12
12
  availabilitySign: 'availabilitySign',
13
13
  availabilitySignedData: 'availability_signed_datas',
14
14
  appraiser: 'Appraiser',
15
+ assignedProspects: 'assigned_prospects',
15
16
  auditors: 'auditors',
16
17
  appraiserContact: 'appraiser_contacts',
17
18
  auditorAccess: 'auditor_access',
package/models/_models.ts CHANGED
@@ -12,6 +12,7 @@ export const MODEL_NAMES = {
12
12
  availabilitySign: 'availabilitySign',
13
13
  availabilitySignedData: 'availability_signed_datas',
14
14
  appraiser: 'Appraiser',
15
+ assignedProspects: 'assigned_prospects',
15
16
  auditors: 'auditors',
16
17
  appraiserContact: 'appraiser_contacts',
17
18
  auditorAccess: 'auditor_access',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.4.66",
3
+ "version": "1.4.68",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -2,15 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CompaniesService = void 0;
4
4
  const Company_model_1 = require("../models/Company.model");
5
- const main_helper_1 = require("../helpers/main.helper");
6
5
  class CompaniesService {
7
6
  async getCompanies() {
8
- const companies = await Company_model_1.Company
7
+ return Company_model_1.Company
9
8
  .find({ isDeleted: { $ne: true } })
10
- .sort({ name: 1 })
9
+ .sort({ order: 1, name: 1 })
11
10
  .lean()
12
11
  .exec();
13
- return companies.map((i) => (0, main_helper_1.removeFields)(i, main_helper_1.fieldsToUnset));
14
12
  }
15
13
  }
16
14
  exports.CompaniesService = CompaniesService;
@@ -3,11 +3,10 @@ import { fieldsToUnset, removeFields } from '../helpers/main.helper';
3
3
 
4
4
  export class CompaniesService {
5
5
  async getCompanies() {
6
- const companies = await Company
6
+ return Company
7
7
  .find({ isDeleted: { $ne: true } })
8
- .sort({ name: 1 })
8
+ .sort({ order: 1, name: 1 })
9
9
  .lean<ICompanyLean[]>()
10
10
  .exec();
11
- return companies.map((i) => removeFields(i, fieldsToUnset));
12
11
  }
13
12
  }
@@ -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<{