gemcap-be-common 1.3.163 → 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.
@@ -47,4 +47,7 @@ export interface ICRMProspectLinkWithPureLinks extends ICRMProspectLinkWithId {
47
47
  }
48
48
  export declare const ICRMProspectLinkValidationSchema: Joi.ObjectSchema<any>;
49
49
  export type CRMProspectLinkModel = Model<ICRMProspectLink, object, object>;
50
+ export declare const ProspectLinkSchema: mongoose.Schema<ICRMProspectLink, CRMProspectLinkModel, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ICRMProspectLink, mongoose.Document<unknown, {}, mongoose.FlatRecord<ICRMProspectLink>> & mongoose.FlatRecord<ICRMProspectLink> & {
51
+ _id: mongoose.Types.ObjectId;
52
+ }>;
50
53
  export declare const CRMProspectLink: CRMProspectLinkModel;
@@ -3,7 +3,7 @@ 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.CRMProspectLink = exports.ICRMProspectLinkValidationSchema = void 0;
6
+ exports.CRMProspectLink = exports.ProspectLinkSchema = exports.ICRMProspectLinkValidationSchema = void 0;
7
7
  const mongoose_1 = __importDefault(require("mongoose"));
8
8
  const joi_1 = __importDefault(require("joi"));
9
9
  const _models_1 = require("./_models");
@@ -13,7 +13,7 @@ exports.ICRMProspectLinkValidationSchema = joi_1.default.object({
13
13
  auditorLinkId: joi_1.default.string().required(),
14
14
  clientLinkId: joi_1.default.string().required(),
15
15
  });
16
- const CRMProspectLinkSchema = new mongoose_1.default.Schema({
16
+ exports.ProspectLinkSchema = new mongoose_1.default.Schema({
17
17
  prospectId: {
18
18
  type: mongoose_1.default.Schema.Types.ObjectId,
19
19
  ref: _models_1.MODEL_NAMES.CRMProspects,
@@ -32,4 +32,4 @@ const CRMProspectLinkSchema = new mongoose_1.default.Schema({
32
32
  timestamps: { createdAt: true, updatedAt: true },
33
33
  versionKey: false,
34
34
  });
35
- exports.CRMProspectLink = mongoose_1.default.model(_models_1.MODEL_NAMES.prospectLinks, CRMProspectLinkSchema);
35
+ exports.CRMProspectLink = mongoose_1.default.model(_models_1.MODEL_NAMES.prospectLinks, exports.ProspectLinkSchema);
@@ -35,7 +35,7 @@ export const ICRMProspectLinkValidationSchema = Joi.object({
35
35
 
36
36
  export type CRMProspectLinkModel = Model<ICRMProspectLink, object, object>;
37
37
 
38
- const CRMProspectLinkSchema = new mongoose.Schema<ICRMProspectLink, CRMProspectLinkModel>(
38
+ export const ProspectLinkSchema = new mongoose.Schema<ICRMProspectLink, CRMProspectLinkModel>(
39
39
  {
40
40
  prospectId: {
41
41
  type: mongoose.Schema.Types.ObjectId,
@@ -58,4 +58,4 @@ const CRMProspectLinkSchema = new mongoose.Schema<ICRMProspectLink, CRMProspectL
58
58
  },
59
59
  );
60
60
 
61
- export const CRMProspectLink = mongoose.model<ICRMProspectLink, CRMProspectLinkModel>(MODEL_NAMES.prospectLinks, CRMProspectLinkSchema);
61
+ export const CRMProspectLink = mongoose.model<ICRMProspectLink, CRMProspectLinkModel>(MODEL_NAMES.prospectLinks, ProspectLinkSchema);
@@ -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.163",
3
+ "version": "1.3.165",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {