@cool-digital-solutions/interferir-models 1.4.32 → 1.4.33

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.
@@ -14,8 +14,17 @@ const companyFileSchema = new mongoose_1.Schema({
14
14
  fileType: { type: String, enum: Object.values(company_file_type_1.FileType) },
15
15
  fileVisibility: { type: String, enum: Object.values(company_file_type_1.FileVisibility) },
16
16
  company: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Company', required: true, index: true },
17
- projectNames: [{ type: String, default: [] }],
18
17
  s3FolderName: { type: String, required: true },
18
+ aiConversationMessage: { type: mongoose_1.Schema.Types.ObjectId, ref: 'AIConversationMessage', default: null },
19
+ analyses: [{ type: mongoose_1.Schema.Types.ObjectId }],
20
+ projects: [
21
+ {
22
+ project: { type: mongoose_1.Schema.Types.ObjectId },
23
+ name: { type: String },
24
+ },
25
+ ],
26
+ title: { type: String, default: '' },
27
+ description: { type: String, default: '' },
19
28
  createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
20
29
  updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
21
30
  updatedDate: { type: Number, index: -1 },
@@ -37,15 +37,24 @@ export declare enum FileVisibility {
37
37
  PRIVATE = "private",
38
38
  COMPANY = "company"
39
39
  }
40
+ interface IProject {
41
+ project: Types.ObjectId;
42
+ name: string;
43
+ }
40
44
  export interface ICompanyFile extends BaseSchema {
41
45
  fileName: string;
42
46
  originalFileName: string;
43
47
  fileSize: number;
44
48
  fileType: FileType;
45
49
  company: Types.ObjectId | ICompany;
46
- projectNames: string[];
47
50
  fileVisibility: FileVisibility;
48
51
  s3FolderName: string;
52
+ aiConversationMessage: Types.ObjectId;
53
+ analyses: Types.ObjectId[];
54
+ projects: IProject[];
55
+ title: string;
56
+ description: string;
49
57
  }
50
58
  export interface ICompanyFileModel extends BaseModel<ICompanyFile> {
51
59
  }
60
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cool-digital-solutions/interferir-models",
3
- "version": "1.4.32",
3
+ "version": "1.4.33",
4
4
  "main": "./dist/index.js",
5
5
  "files": [
6
6
  "dist/**/*"