gemcap-be-common 1.4.44 → 1.4.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.
@@ -323,13 +323,13 @@ type TProspectWithId<T = mongoose.Types.ObjectId | string> = Omit<IProspect, '_i
323
323
  export interface IProspectDoc extends TProspectWithId<mongoose.Types.ObjectId>, Document {
324
324
  _id: mongoose.Types.ObjectId;
325
325
  }
326
- export interface IProspectLean extends TProspectWithId<string> {
326
+ export interface IProspectLean extends TProspectWithId<string | mongoose.Types.ObjectId> {
327
327
  }
328
328
  export declare const baseFields: string[];
329
329
  export declare const ProspectInfoExternalValidationSchema: Joi.ObjectSchema<any>;
330
330
  export declare const ProspectInfoValidationSchema: Joi.ObjectSchema<any>;
331
331
  export declare const ProspectValidationSchema: Joi.ObjectSchema<any>;
332
- export type ProspectModel = Model<IProspect, object, object>;
332
+ export type ProspectModel = Model<IProspectDoc, Record<string, never>, Record<string, never>, IProspectLean>;
333
333
  export declare const ProspectSchema: mongoose.Schema<IProspect, ProspectModel, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IProspect, mongoose.Document<unknown, {}, mongoose.FlatRecord<IProspect>> & mongoose.FlatRecord<IProspect> & {
334
334
  _id: mongoose.Types.ObjectId;
335
335
  }>;
@@ -582,7 +582,7 @@ export interface IProspectDoc extends TProspectWithId<mongoose.Types.ObjectId>,
582
582
  _id: mongoose.Types.ObjectId;
583
583
  }
584
584
 
585
- export interface IProspectLean extends TProspectWithId<string> {}
585
+ export interface IProspectLean extends TProspectWithId<string | mongoose.Types.ObjectId> {}
586
586
 
587
587
  export const baseFields = ['_id', 'industry', 'status', 'revolverAmount', 'termAmount', 'keyDates'];
588
588
 
@@ -666,7 +666,7 @@ export const ProspectValidationSchema = Joi.object({
666
666
  acceptedFiles: Joi.array().items(Joi.string()).allow(null),
667
667
  }).concat(ProspectInfoValidationSchema);
668
668
 
669
- export type ProspectModel = Model<IProspect, object, object>;
669
+ export type ProspectModel = Model<IProspectDoc, Record<string, never>, Record<string, never>, IProspectLean>;
670
670
 
671
671
  const contactSchema = new mongoose.Schema({
672
672
  name: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.4.44",
3
+ "version": "1.4.46",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {