gemcap-be-common 1.4.209 → 1.4.210

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, { Document } from 'mongoose';
25
+ import mongoose from 'mongoose';
26
26
  import Joi from 'joi';
27
27
  import { ILoanBrokerWithId } from './LoanBroker.model';
28
28
  export declare const ProductBrokerValidationSchema: Joi.ObjectSchema<any>;
@@ -58,8 +58,7 @@ export interface IProductBrokerDocWithBroker extends IProductBrokerDoc {
58
58
  loanBroker: ILoanBrokerWithId;
59
59
  }
60
60
  export type IProductBrokerView = Omit<IProductBrokerLean, 'borrowerId' | 'order'>;
61
- export interface IProductBrokerDoc extends IProductBroker, Document {
62
- }
61
+ export type TProductBrokerModel = mongoose.Model<IProductBroker>;
63
62
  export declare const ProductBrokerSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
64
63
  timestamps: true;
65
64
  }, {
@@ -1,9 +1,8 @@
1
- import mongoose, { Document } from 'mongoose';
1
+ import mongoose from 'mongoose';
2
2
  import Joi from 'joi';
3
3
 
4
4
  import { MODEL_NAMES } from './_models';
5
5
  import { ILoanBrokerWithId } from './LoanBroker.model';
6
- import { ILoanProduct } from './LoanProducts.model';
7
6
 
8
7
  export const ProductBrokerValidationSchema = Joi.object({
9
8
  _id: Joi.string().required(),
@@ -57,8 +56,7 @@ export interface IProductBrokerDocWithBroker extends IProductBrokerDoc {
57
56
 
58
57
  export type IProductBrokerView = Omit<IProductBrokerLean, 'borrowerId' | 'order'>
59
58
 
60
- export interface IProductBrokerDoc extends IProductBroker, Document {
61
- }
59
+ export type TProductBrokerModel = mongoose.Model<IProductBroker>;
62
60
 
63
61
  export const ProductBrokerSchema = new mongoose.Schema(
64
62
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.4.209",
3
+ "version": "1.4.210",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {