@common_ch/common 1.0.309 → 1.0.311

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.
@@ -0,0 +1,9 @@
1
+ export declare enum MessageTypeSupportChatEnum {
2
+ user = "user",
3
+ admin = "admin"
4
+ }
5
+ export declare enum SupportChatStatusEnum {
6
+ chatting = "chatting",
7
+ start = "start",
8
+ done = "done"
9
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SupportChatStatusEnum = exports.MessageTypeSupportChatEnum = void 0;
4
+ var MessageTypeSupportChatEnum;
5
+ (function (MessageTypeSupportChatEnum) {
6
+ MessageTypeSupportChatEnum["user"] = "user";
7
+ MessageTypeSupportChatEnum["admin"] = "admin";
8
+ })(MessageTypeSupportChatEnum || (exports.MessageTypeSupportChatEnum = MessageTypeSupportChatEnum = {}));
9
+ var SupportChatStatusEnum;
10
+ (function (SupportChatStatusEnum) {
11
+ SupportChatStatusEnum["chatting"] = "chatting";
12
+ SupportChatStatusEnum["start"] = "start";
13
+ SupportChatStatusEnum["done"] = "done";
14
+ })(SupportChatStatusEnum || (exports.SupportChatStatusEnum = SupportChatStatusEnum = {}));
@@ -20,7 +20,6 @@ export type Attachment = {
20
20
  name: string;
21
21
  };
22
22
  export type Messages = {
23
- ai: string | AiAttrs | AiDoc;
24
23
  aiOption: string | AiOptionAttrs | AiOptionDoc;
25
24
  role: 'user' | 'assistant' | 'system';
26
25
  runId?: string;
@@ -143,10 +143,6 @@ const messageSchema = new mongoose_1.default.Schema({
143
143
  },
144
144
  messages: [
145
145
  {
146
- ai: {
147
- type: mongoose_1.default.Schema.Types.ObjectId,
148
- ref: 'Ai',
149
- },
150
146
  aiOption: {
151
147
  type: mongoose_1.default.Schema.Types.ObjectId,
152
148
  ref: 'AiOption',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@common_ch/common",
3
- "version": "1.0.309",
3
+ "version": "1.0.311",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [