@cool-digital-solutions/interferir-models 1.1.23 → 1.1.25

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.
@@ -10,6 +10,7 @@ const aiAssistantSchema = new mongoose_1.Schema({
10
10
  name: { type: String, required: true },
11
11
  type: { type: String, required: true },
12
12
  description: { type: String, required: true },
13
+ profilePictureUrl: { type: String, default: '' },
13
14
  profilePicture: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Image', default: null },
14
15
  createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
15
16
  updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
@@ -29,6 +29,7 @@ const aiConversationMessageSchema = new mongoose_1.Schema({
29
29
  contentVersion: { type: String, default: '' },
30
30
  nextRole: { type: String, default: '' },
31
31
  requestId: { type: String, default: '' },
32
+ aiAssistantId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'AiAssistant', default: null },
32
33
  createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
33
34
  updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
34
35
  updatedDate: Number,
@@ -29,6 +29,7 @@ export interface IAiAssistant extends BaseSchema {
29
29
  name: string;
30
30
  type: string;
31
31
  profilePicture: Types.ObjectId | IImage;
32
+ profilePictureUrl: string;
32
33
  description: string;
33
34
  }
34
35
  export interface IAiAssistantModel extends BaseModel<IAiAssistant> {
@@ -23,7 +23,7 @@
23
23
  /// <reference types="mongoose/types/virtuals" />
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  import { Types } from 'mongoose';
26
- import { IAiConversation, ICompany, IPortiaArticle, ITheme, IUseCase } from './';
26
+ import { IAiAssistant, IAiConversation, ICompany, IPortiaArticle, ITheme, IUseCase } from './';
27
27
  import { BaseModel, BaseSchema } from '../config';
28
28
  export declare enum IMessageReason {
29
29
  IRRELEVANT_ANSWER = "Irrelevant answer",
@@ -53,6 +53,7 @@ export interface IAiConversationMessage extends BaseSchema {
53
53
  contentVersion?: string;
54
54
  nextRole?: string;
55
55
  requestId?: string;
56
+ aiAssistantId: Types.ObjectId | IAiAssistant;
56
57
  }
57
58
  export interface IAiConversationMessageModel extends BaseModel<IAiConversationMessage> {
58
59
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cool-digital-solutions/interferir-models",
3
- "version": "1.1.23",
3
+ "version": "1.1.25",
4
4
  "main": "./dist/index.js",
5
5
  "files": [
6
6
  "dist/**/*"