gemcap-be-common 1.5.45 → 1.5.46

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.
@@ -22,7 +22,7 @@
22
22
  /// <reference types="mongoose/types/validation" />
23
23
  /// <reference types="mongoose/types/virtuals" />
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
- import mongoose, { Model } from 'mongoose';
25
+ import mongoose from 'mongoose';
26
26
  import { ICollateralItem } from '../interfaces/collaterals.interface';
27
27
  export declare const SALES_FIELDS: string[];
28
28
  export interface ISalesItem extends ICollateralItem {
@@ -31,19 +31,19 @@ export interface ISalesItem extends ICollateralItem {
31
31
  unitsSold: number;
32
32
  unitSalePrice: number;
33
33
  }
34
- export interface IBankIncomingPaymentNotificationRuleLean extends ISalesItem {
34
+ export interface ISalesItemLean extends ISalesItem {
35
35
  _id: mongoose.Types.ObjectId;
36
36
  createdAt: Date;
37
37
  updatedAt: Date;
38
38
  }
39
- export interface IBankIncomingPaymentNotificationRulePlain extends Omit<ISalesItem, 'bbcSheetId'> {
39
+ export interface ISalesItemPlain extends Omit<ISalesItem, 'bbcSheetId'> {
40
40
  _id: string;
41
41
  bbcSheetId: string;
42
42
  createdAt: Date;
43
43
  updatedAt: Date;
44
44
  }
45
45
  export type TSalesItemDoc = mongoose.HydratedDocument<ISalesItem>;
46
- export type TSalesItemModel = Model<TSalesItemDoc>;
46
+ export type TSalesItemModel = mongoose.Model<ISalesItem>;
47
47
  export declare const SalesItemSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
48
48
  timestamps: true;
49
49
  }, {
@@ -1,4 +1,4 @@
1
- import mongoose, { Document, Model } from 'mongoose';
1
+ import mongoose from 'mongoose';
2
2
 
3
3
  import { MODEL_NAMES } from './_models';
4
4
  import { ICollateralItem } from '../interfaces/collaterals.interface';
@@ -18,13 +18,13 @@ export interface ISalesItem extends ICollateralItem {
18
18
  unitSalePrice: number;
19
19
  }
20
20
 
21
- export interface IBankIncomingPaymentNotificationRuleLean extends ISalesItem {
21
+ export interface ISalesItemLean extends ISalesItem {
22
22
  _id: mongoose.Types.ObjectId;
23
23
  createdAt: Date;
24
24
  updatedAt: Date;
25
25
  }
26
26
 
27
- export interface IBankIncomingPaymentNotificationRulePlain extends Omit<ISalesItem, 'bbcSheetId'> {
27
+ export interface ISalesItemPlain extends Omit<ISalesItem, 'bbcSheetId'> {
28
28
  _id: string;
29
29
  bbcSheetId: string;
30
30
  createdAt: Date;
@@ -33,7 +33,7 @@ export interface IBankIncomingPaymentNotificationRulePlain extends Omit<ISalesIt
33
33
 
34
34
  export type TSalesItemDoc = mongoose.HydratedDocument<ISalesItem>
35
35
 
36
- export type TSalesItemModel = Model<TSalesItemDoc>;
36
+ export type TSalesItemModel = mongoose.Model<ISalesItem>;
37
37
 
38
38
  export const SalesItemSchema = new mongoose.Schema(
39
39
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.5.45",
3
+ "version": "1.5.46",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -84,10 +84,10 @@ export declare class BorrowerService {
84
84
  getBorrowerCodesMap(): Promise<Map<string, string>>;
85
85
  getBorrowerStatementDetails(borrowers: IBorrowerDoc[]): Promise<{
86
86
  [x: string]: {
87
- LAST_MONTH?: boolean;
88
- CURRENT_MONTH?: boolean;
89
87
  ENTIRE_LOAN?: boolean;
90
88
  SELECTED_PERIOD?: boolean;
89
+ CURRENT_MONTH?: boolean;
90
+ LAST_MONTH?: boolean;
91
91
  TERM_LOAN?: boolean;
92
92
  };
93
93
  }>;