gemcap-be-common 1.4.251 → 1.4.252

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,15 +22,25 @@
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, Model } from 'mongoose';
25
+ import mongoose from 'mongoose';
26
26
  export interface ICRMProspectNotification {
27
27
  prospectId: mongoose.Types.ObjectId;
28
28
  stageOne: boolean;
29
29
  stageTwo: boolean;
30
30
  }
31
- export interface ICRMProspectNotificationDoc extends ICRMProspectNotification, Document {
31
+ export type ICRMProspectNotificationDoc = mongoose.HydratedDocument<ICRMProspectNotification>;
32
+ export interface ICRMProspectNotificationLean extends ICRMProspectNotification {
33
+ _id: mongoose.Types.ObjectId;
34
+ createdAt: Date;
35
+ updatedAt: Date;
36
+ }
37
+ export interface ICRMProspectNotificationPlain extends Omit<ICRMProspectNotification, 'prospectId'> {
38
+ _id: string;
39
+ prospectId: string;
40
+ createdAt: Date;
41
+ updatedAt: Date;
32
42
  }
33
- export type CRMProspectNotificationModel = Model<ICRMProspectNotification, object, object>;
43
+ export type CRMProspectNotificationModel = mongoose.Model<ICRMProspectNotification>;
34
44
  export declare const CRMProspectNotificationSchema: mongoose.Schema<ICRMProspectNotification, CRMProspectNotificationModel, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ICRMProspectNotification, mongoose.Document<unknown, {}, mongoose.FlatRecord<ICRMProspectNotification>> & mongoose.FlatRecord<ICRMProspectNotification> & {
35
45
  _id: mongoose.Types.ObjectId;
36
46
  }>;
@@ -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
 
@@ -8,10 +8,22 @@ export interface ICRMProspectNotification {
8
8
  stageTwo: boolean;
9
9
  }
10
10
 
11
- export interface ICRMProspectNotificationDoc extends ICRMProspectNotification, Document {
11
+ export type ICRMProspectNotificationDoc = mongoose.HydratedDocument<ICRMProspectNotification>;
12
+
13
+ export interface ICRMProspectNotificationLean extends ICRMProspectNotification {
14
+ _id: mongoose.Types.ObjectId;
15
+ createdAt: Date;
16
+ updatedAt: Date;
17
+ }
18
+
19
+ export interface ICRMProspectNotificationPlain extends Omit<ICRMProspectNotification, 'prospectId'> {
20
+ _id: string;
21
+ prospectId: string;
22
+ createdAt: Date;
23
+ updatedAt: Date;
12
24
  }
13
25
 
14
- export type CRMProspectNotificationModel = Model<ICRMProspectNotification, object, object>;
26
+ export type CRMProspectNotificationModel = mongoose.Model<ICRMProspectNotification>;
15
27
 
16
28
  export const CRMProspectNotificationSchema = new mongoose.Schema<ICRMProspectNotification, CRMProspectNotificationModel>(
17
29
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.4.251",
3
+ "version": "1.4.252",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {