gemcap-be-common 1.4.53 → 1.4.55

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.
@@ -23,7 +23,6 @@
23
23
  /// <reference types="mongoose/types/virtuals" />
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  import mongoose, { Model } from 'mongoose';
26
- import { IProspectDoc } from './Prospect.model';
27
26
  export declare enum EProspectFileType {
28
27
  FILE = "FILE",
29
28
  AUDITOR_FILE = "AUDITOR_FILE",
@@ -41,6 +40,7 @@ export interface IProspectFile {
41
40
  fileId?: string;
42
41
  filename: string;
43
42
  uploadedAt: Date;
43
+ uploadedBy: string;
44
44
  sharepointId?: string;
45
45
  sharepointFolderId?: string;
46
46
  sharepointDriveId?: string;
@@ -63,7 +63,7 @@ export interface IProspectFilePlain extends IProspectFile {
63
63
  createdAt: Date;
64
64
  updatedAt: Date;
65
65
  }
66
- export type ProspectFileModel = Model<IProspectDoc>;
66
+ export type ProspectFileModel = Model<IProspectFileDoc>;
67
67
  export declare const ProspectFileSchema: mongoose.Schema<IProspectFileDoc, mongoose.Model<IProspectFileDoc, any, any, any, mongoose.Document<unknown, any, IProspectFileDoc> & IProspectFileDoc & Required<{
68
68
  _id: mongoose.Types.ObjectId;
69
69
  }>, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IProspectFileDoc, mongoose.Document<unknown, {}, mongoose.FlatRecord<IProspectFileDoc>> & mongoose.FlatRecord<IProspectFileDoc> & Required<{
@@ -61,6 +61,10 @@ exports.ProspectFileSchema = new mongoose_1.default.Schema({
61
61
  type: Date,
62
62
  required: true,
63
63
  },
64
+ uploadedBy: {
65
+ type: String,
66
+ required: true,
67
+ },
64
68
  sharepointId: {
65
69
  type: String,
66
70
  },
@@ -1,7 +1,6 @@
1
1
  import mongoose, { Model } from 'mongoose';
2
2
 
3
3
  import { MODEL_NAMES } from './_models';
4
- import { IProspectDoc } from './Prospect.model';
5
4
 
6
5
  export enum EProspectFileType {
7
6
  FILE = 'FILE',
@@ -21,6 +20,7 @@ export interface IProspectFile {
21
20
  fileId?: string;
22
21
  filename: string;
23
22
  uploadedAt: Date;
23
+ uploadedBy: string;
24
24
  sharepointId?: string;
25
25
  sharepointFolderId?: string;
26
26
  sharepointDriveId?: string;
@@ -47,7 +47,7 @@ export interface IProspectFilePlain extends IProspectFile {
47
47
  updatedAt: Date;
48
48
  }
49
49
 
50
- export type ProspectFileModel = Model<IProspectDoc>;
50
+ export type ProspectFileModel = Model<IProspectFileDoc>;
51
51
 
52
52
  export const ProspectFileSchema = new mongoose.Schema<IProspectFileDoc>({
53
53
  isAccepted: {
@@ -98,6 +98,10 @@ export const ProspectFileSchema = new mongoose.Schema<IProspectFileDoc>({
98
98
  type: Date,
99
99
  required: true,
100
100
  },
101
+ uploadedBy: {
102
+ type: String,
103
+ required: true,
104
+ },
101
105
  sharepointId: {
102
106
  type: String,
103
107
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.4.53",
3
+ "version": "1.4.55",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {