shuttlepro-shared 1.4.98 → 1.5.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.
- package/models/AgentActivity.js +4 -0
- package/models/Workspace.js +8 -0
- package/package.json +1 -1
package/models/AgentActivity.js
CHANGED
|
@@ -49,6 +49,10 @@ const activitySchema = new mongoose.Schema({
|
|
|
49
49
|
sender: { type: String, required: "" },
|
|
50
50
|
members: [],
|
|
51
51
|
closedBy: {},
|
|
52
|
+
/** First outbound Meta (page/IG account) reply timestamp (ISO), before an agent owned the thread */
|
|
53
|
+
firstMetaReplyAt: { type: String, required: false },
|
|
54
|
+
/** True when Meta replied while conversation had no assignee (CRM / performance split) */
|
|
55
|
+
metaReplyBeforeAgent: { type: Boolean, default: false },
|
|
52
56
|
});
|
|
53
57
|
|
|
54
58
|
const totalActivitySchema = new mongoose.Schema({
|
package/models/Workspace.js
CHANGED
|
@@ -359,6 +359,8 @@ const workspaceSchema = new mongoose.Schema(
|
|
|
359
359
|
tokens: { type: Number, default: 0 },
|
|
360
360
|
limit: { type: Number, default: 0 },
|
|
361
361
|
},
|
|
362
|
+
qdrantUrl: { type: String, default: "" },
|
|
363
|
+
qdrantApiKey: { type: String, default: "" },
|
|
362
364
|
enableInternalChat: {
|
|
363
365
|
type: Boolean,
|
|
364
366
|
default: false,
|
|
@@ -384,6 +386,10 @@ const workspaceSchema = new mongoose.Schema(
|
|
|
384
386
|
type: Boolean,
|
|
385
387
|
default: false,
|
|
386
388
|
},
|
|
389
|
+
enableInternalChat: {
|
|
390
|
+
type: Boolean,
|
|
391
|
+
default: false,
|
|
392
|
+
},
|
|
387
393
|
},
|
|
388
394
|
{ timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
|
|
389
395
|
);
|
|
@@ -426,6 +432,8 @@ workspaceSchema.add({
|
|
|
426
432
|
twitterUrl: commonOptions,
|
|
427
433
|
instagramUrl: commonOptions,
|
|
428
434
|
chatGptApiKey: commonOptions,
|
|
435
|
+
qdrantUrl: commonOptions,
|
|
436
|
+
qdrantApiKey: commonOptions,
|
|
429
437
|
});
|
|
430
438
|
|
|
431
439
|
workspaceSchema.pre("save", async function (next) {
|