gemcap-be-common 1.3.164 → 1.3.165

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,11 +22,16 @@
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, { Document, Model } 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 {
32
+ }
31
33
  export type CRMProspectNotificationModel = Model<ICRMProspectNotification, object, object>;
34
+ export declare const CRMProspectNotificationSchema: mongoose.Schema<ICRMProspectNotification, CRMProspectNotificationModel, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ICRMProspectNotification, mongoose.Document<unknown, {}, mongoose.FlatRecord<ICRMProspectNotification>> & mongoose.FlatRecord<ICRMProspectNotification> & {
35
+ _id: mongoose.Types.ObjectId;
36
+ }>;
32
37
  export declare const CRMProspectNotification: CRMProspectNotificationModel;
@@ -3,10 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.CRMProspectNotification = void 0;
6
+ exports.CRMProspectNotification = exports.CRMProspectNotificationSchema = void 0;
7
7
  const mongoose_1 = __importDefault(require("mongoose"));
8
8
  const _models_1 = require("./_models");
9
- const CRMProspectNotificationSchema = new mongoose_1.default.Schema({
9
+ exports.CRMProspectNotificationSchema = new mongoose_1.default.Schema({
10
10
  prospectId: {
11
11
  type: mongoose_1.default.Schema.Types.ObjectId,
12
12
  ref: _models_1.MODEL_NAMES.CRMProspects,
@@ -26,4 +26,4 @@ const CRMProspectNotificationSchema = new mongoose_1.default.Schema({
26
26
  timestamps: { createdAt: false, updatedAt: false },
27
27
  versionKey: false,
28
28
  });
29
- exports.CRMProspectNotification = mongoose_1.default.model(_models_1.MODEL_NAMES.prospectNotifications, CRMProspectNotificationSchema);
29
+ exports.CRMProspectNotification = mongoose_1.default.model(_models_1.MODEL_NAMES.prospectNotifications, exports.CRMProspectNotificationSchema);
@@ -1,4 +1,4 @@
1
- import mongoose, { Model } from 'mongoose';
1
+ import mongoose, { Document, Model } from 'mongoose';
2
2
 
3
3
  import { MODEL_NAMES } from './_models';
4
4
 
@@ -8,9 +8,12 @@ export interface ICRMProspectNotification {
8
8
  stageTwo: boolean;
9
9
  }
10
10
 
11
+ export interface ICRMProspectNotificationDoc extends ICRMProspectNotification, Document {
12
+ }
13
+
11
14
  export type CRMProspectNotificationModel = Model<ICRMProspectNotification, object, object>;
12
15
 
13
- const CRMProspectNotificationSchema = new mongoose.Schema<ICRMProspectNotification, CRMProspectNotificationModel>(
16
+ export const CRMProspectNotificationSchema = new mongoose.Schema<ICRMProspectNotification, CRMProspectNotificationModel>(
14
17
  {
15
18
  prospectId: {
16
19
  type: mongoose.Schema.Types.ObjectId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.3.164",
3
+ "version": "1.3.165",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {