orbitx-core-models 11.64.0 → 11.65.0
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.
|
@@ -64,12 +64,12 @@ const chatSchema = new mongoose_1.Schema({
|
|
|
64
64
|
// ─────────────────────────────────────────────
|
|
65
65
|
currentOwnerId: {
|
|
66
66
|
type: mongoose_1.Schema.Types.ObjectId,
|
|
67
|
-
ref: "
|
|
67
|
+
ref: "Agent",
|
|
68
68
|
index: true,
|
|
69
69
|
},
|
|
70
70
|
landedTo: {
|
|
71
71
|
type: mongoose_1.Schema.Types.ObjectId,
|
|
72
|
-
ref: "
|
|
72
|
+
ref: "Agent",
|
|
73
73
|
index: true
|
|
74
74
|
},
|
|
75
75
|
ownershipType: {
|
|
@@ -84,7 +84,7 @@ const chatSchema = new mongoose_1.Schema({
|
|
|
84
84
|
{
|
|
85
85
|
userId: {
|
|
86
86
|
type: mongoose_1.Schema.Types.ObjectId,
|
|
87
|
-
ref: "
|
|
87
|
+
ref: "Agent",
|
|
88
88
|
required: true,
|
|
89
89
|
},
|
|
90
90
|
role: {
|
|
@@ -107,12 +107,12 @@ const chatSchema = new mongoose_1.Schema({
|
|
|
107
107
|
{
|
|
108
108
|
requesterId: {
|
|
109
109
|
type: mongoose_1.Schema.Types.ObjectId,
|
|
110
|
-
ref: "
|
|
110
|
+
ref: "Agent",
|
|
111
111
|
required: true,
|
|
112
112
|
},
|
|
113
113
|
targetId: {
|
|
114
114
|
type: mongoose_1.Schema.Types.ObjectId,
|
|
115
|
-
ref: "
|
|
115
|
+
ref: "Agent",
|
|
116
116
|
},
|
|
117
117
|
status: {
|
|
118
118
|
type: String,
|
|
@@ -128,8 +128,8 @@ const chatSchema = new mongoose_1.Schema({
|
|
|
128
128
|
// ─────────────────────────────────────────────
|
|
129
129
|
transferHistory: [
|
|
130
130
|
{
|
|
131
|
-
fromUserId: { type: mongoose_1.Schema.Types.ObjectId, ref: "
|
|
132
|
-
toUserId: { type: mongoose_1.Schema.Types.ObjectId, ref: "
|
|
131
|
+
fromUserId: { type: mongoose_1.Schema.Types.ObjectId, ref: "Agent" },
|
|
132
|
+
toUserId: { type: mongoose_1.Schema.Types.ObjectId, ref: "Agent" },
|
|
133
133
|
type: {
|
|
134
134
|
type: String,
|
|
135
135
|
enum: ["AGENT_TO_AGENT", "OXP_TO_CLIENT", "CLIENT_TAKEOVER"],
|
|
@@ -191,7 +191,7 @@ const chatSchema = new mongoose_1.Schema({
|
|
|
191
191
|
// ─────────────────────────────────────────────
|
|
192
192
|
pickedUpAt: Date,
|
|
193
193
|
endedAt: Date,
|
|
194
|
-
endedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: "
|
|
194
|
+
endedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: "Agent" },
|
|
195
195
|
appointmentSet: { type: Boolean, default: false },
|
|
196
196
|
// ─────────────────────────────────────────────
|
|
197
197
|
// RELATIONS (LEAN)
|