@cool-digital-solutions/interferir-models 1.4.87 → 1.4.89

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,6 +14,7 @@ const aiConversationSchema = new mongoose_1.Schema({
14
14
  autoGenerated: { type: Boolean, default: false },
15
15
  conversationEnded: { type: Boolean, default: false },
16
16
  isVisible: { type: Boolean, default: true },
17
+ aiAssistantId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'AiAssistant', default: null },
17
18
  createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
18
19
  updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
19
20
  updatedDate: Number,
@@ -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 { IUser } from './';
26
+ import { IAiAssistant, IUser } from './';
27
27
  import { BaseModel, BaseSchema } from '../config';
28
28
  export interface IAiConversation extends BaseSchema {
29
29
  userId: Types.ObjectId | IUser;
@@ -33,6 +33,7 @@ export interface IAiConversation extends BaseSchema {
33
33
  autoGenerated: boolean;
34
34
  conversationEnded: boolean;
35
35
  isVisible: boolean;
36
+ aiAssistantId?: Types.ObjectId | IAiAssistant;
36
37
  }
37
38
  export interface IAiConversationModel extends BaseModel<IAiConversation> {
38
39
  }
@@ -33,6 +33,8 @@ export declare enum ProfileType {
33
33
  STARTUP = "startup",
34
34
  ENTERPRISE = "enterprise",
35
35
  ADMIN = "admin",
36
+ CUSTOMER_ADMIN = "customerAdmin",
37
+ CUSTOMER_USER = "customerUser",
36
38
  DEFAULT = ""
37
39
  }
38
40
  export declare enum Locale {
@@ -11,6 +11,8 @@ var ProfileType;
11
11
  ProfileType["STARTUP"] = "startup";
12
12
  ProfileType["ENTERPRISE"] = "enterprise";
13
13
  ProfileType["ADMIN"] = "admin";
14
+ ProfileType["CUSTOMER_ADMIN"] = "customerAdmin";
15
+ ProfileType["CUSTOMER_USER"] = "customerUser";
14
16
  ProfileType["DEFAULT"] = "";
15
17
  })(ProfileType || (exports.ProfileType = ProfileType = {}));
16
18
  var Locale;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cool-digital-solutions/interferir-models",
3
- "version": "1.4.87",
3
+ "version": "1.4.89",
4
4
  "main": "./dist/index.js",
5
5
  "files": [
6
6
  "dist/**/*"