shuttlepro-shared 1.4.98 → 1.4.99
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 +4 -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
|
@@ -384,6 +384,10 @@ const workspaceSchema = new mongoose.Schema(
|
|
|
384
384
|
type: Boolean,
|
|
385
385
|
default: false,
|
|
386
386
|
},
|
|
387
|
+
enableInternalChat: {
|
|
388
|
+
type: Boolean,
|
|
389
|
+
default: false,
|
|
390
|
+
},
|
|
387
391
|
},
|
|
388
392
|
{ timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
|
|
389
393
|
);
|