gemcap-be-common 1.5.162 → 1.5.163

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.
@@ -26,6 +26,7 @@ import mongoose from 'mongoose';
26
26
  export declare const DATA_ROOM_PERMISSIONS: readonly ["read", "read_upload"];
27
27
  export type TDataRoomPermission = (typeof DATA_ROOM_PERMISSIONS)[number];
28
28
  interface IDataRoomContact {
29
+ uiId: string;
29
30
  name: string;
30
31
  email: string;
31
32
  normalizedEmail: string;
@@ -8,6 +8,11 @@ const mongoose_1 = __importDefault(require("mongoose"));
8
8
  const _models_1 = require("./_models");
9
9
  exports.DATA_ROOM_PERMISSIONS = ['read', 'read_upload'];
10
10
  exports.DataRoomContactSchema = new mongoose_1.default.Schema({
11
+ uiId: {
12
+ type: String,
13
+ required: true,
14
+ unique: true,
15
+ },
11
16
  name: {
12
17
  type: String,
13
18
  required: true,
@@ -7,6 +7,7 @@ export const DATA_ROOM_PERMISSIONS = ['read', 'read_upload'] as const;
7
7
  export type TDataRoomPermission = (typeof DATA_ROOM_PERMISSIONS)[number];
8
8
 
9
9
  interface IDataRoomContact {
10
+ uiId: string;
10
11
  name: string;
11
12
  email: string;
12
13
  normalizedEmail: string;
@@ -32,6 +33,11 @@ export type TDataRoomContactModel = mongoose.Model<IDataRoomContact>;
32
33
 
33
34
  export const DataRoomContactSchema = new mongoose.Schema<IDataRoomContact, TDataRoomContactModel>(
34
35
  {
36
+ uiId: {
37
+ type: String,
38
+ required: true,
39
+ unique: true,
40
+ },
35
41
  name: {
36
42
  type: String,
37
43
  required: true,
@@ -24,6 +24,7 @@
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  import mongoose from 'mongoose';
26
26
  interface IDataRoomFile {
27
+ uiId: string;
27
28
  dataRoomId: mongoose.Types.ObjectId;
28
29
  folderId: mongoose.Types.ObjectId;
29
30
  fileId: mongoose.Types.ObjectId;
@@ -7,6 +7,11 @@ exports.DataRoomFile = exports.DataRoomFileSchema = void 0;
7
7
  const mongoose_1 = __importDefault(require("mongoose"));
8
8
  const _models_1 = require("./_models");
9
9
  exports.DataRoomFileSchema = new mongoose_1.default.Schema({
10
+ uiId: {
11
+ type: String,
12
+ required: true,
13
+ unique: true,
14
+ },
10
15
  dataRoomId: {
11
16
  type: mongoose_1.default.Schema.Types.ObjectId,
12
17
  ref: _models_1.MODEL_NAMES.dataRoom,
@@ -3,6 +3,7 @@ import mongoose from 'mongoose';
3
3
  import { MODEL_NAMES } from './_models';
4
4
 
5
5
  interface IDataRoomFile {
6
+ uiId: string;
6
7
  dataRoomId: mongoose.Types.ObjectId;
7
8
  folderId: mongoose.Types.ObjectId;
8
9
  fileId: mongoose.Types.ObjectId;
@@ -30,6 +31,11 @@ export type TDataRoomFileModel = mongoose.Model<IDataRoomFile>;
30
31
 
31
32
  export const DataRoomFileSchema = new mongoose.Schema<IDataRoomFile, TDataRoomFileModel>(
32
33
  {
34
+ uiId: {
35
+ type: String,
36
+ required: true,
37
+ unique: true,
38
+ },
33
39
  dataRoomId: {
34
40
  type: mongoose.Schema.Types.ObjectId,
35
41
  ref: MODEL_NAMES.dataRoom,
@@ -24,6 +24,7 @@
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  import mongoose from 'mongoose';
26
26
  interface IDataRoomFolder {
27
+ uiId: string;
27
28
  dataRoomId: mongoose.Types.ObjectId;
28
29
  name: string;
29
30
  order?: number;
@@ -7,6 +7,11 @@ exports.DataRoomFolder = exports.DataRoomFolderSchema = void 0;
7
7
  const mongoose_1 = __importDefault(require("mongoose"));
8
8
  const _models_1 = require("./_models");
9
9
  exports.DataRoomFolderSchema = new mongoose_1.default.Schema({
10
+ uiId: {
11
+ type: String,
12
+ required: true,
13
+ unique: true,
14
+ },
10
15
  dataRoomId: {
11
16
  type: mongoose_1.default.Schema.Types.ObjectId,
12
17
  ref: _models_1.MODEL_NAMES.dataRoom,
@@ -3,6 +3,7 @@ import mongoose from 'mongoose';
3
3
  import { MODEL_NAMES } from './_models';
4
4
 
5
5
  interface IDataRoomFolder {
6
+ uiId: string;
6
7
  dataRoomId: mongoose.Types.ObjectId;
7
8
  name: string;
8
9
  order?: number;
@@ -28,6 +29,11 @@ export type TDataRoomFolderModel = mongoose.Model<IDataRoomFolder>;
28
29
 
29
30
  export const DataRoomFolderSchema = new mongoose.Schema<IDataRoomFolder, TDataRoomFolderModel>(
30
31
  {
32
+ uiId: {
33
+ type: String,
34
+ required: true,
35
+ unique: true,
36
+ },
31
37
  dataRoomId: {
32
38
  type: mongoose.Schema.Types.ObjectId,
33
39
  ref: MODEL_NAMES.dataRoom,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.5.162",
3
+ "version": "1.5.163",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {