@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,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 = {}));
|
|
@@ -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',
|