shuttlepro-shared 1.5.38 → 1.5.40
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/Automation.js +5 -2
- package/models/Workspace.js +6 -0
- package/package.json +1 -1
package/models/AgentActivity.js
CHANGED
|
@@ -53,6 +53,10 @@ const activitySchema = new mongoose.Schema({
|
|
|
53
53
|
firstMetaReplyAt: { type: String, required: false },
|
|
54
54
|
/** True when Meta replied while conversation had no assignee (CRM / performance split) */
|
|
55
55
|
metaReplyBeforeAgent: { type: Boolean, default: false },
|
|
56
|
+
/** First agent reply in this cycle (+5h ISO, same format as startTime / assignTime) */
|
|
57
|
+
firstReplyAt: { type: String, required: false },
|
|
58
|
+
/** When the conversation was marked solved (+5h ISO, same format as endTime) */
|
|
59
|
+
solvedAt: { type: String, required: false },
|
|
56
60
|
});
|
|
57
61
|
|
|
58
62
|
const totalActivitySchema = new mongoose.Schema({
|
package/models/Automation.js
CHANGED
|
@@ -199,7 +199,6 @@ const AutomationAction = new Schema({
|
|
|
199
199
|
},
|
|
200
200
|
templateId: descriptionJoin,
|
|
201
201
|
},
|
|
202
|
-
|
|
203
202
|
chatbot: {
|
|
204
203
|
enabled: { type: Boolean, default: false },
|
|
205
204
|
id: defaultStringType,
|
|
@@ -365,7 +364,11 @@ const AutomationSchema = new Schema(
|
|
|
365
364
|
},
|
|
366
365
|
],
|
|
367
366
|
},
|
|
368
|
-
{
|
|
367
|
+
{
|
|
368
|
+
timestamps: true,
|
|
369
|
+
toJSON: { virtuals: true },
|
|
370
|
+
toObject: { virtuals: true },
|
|
371
|
+
},
|
|
369
372
|
);
|
|
370
373
|
|
|
371
374
|
const Automation = mongoose.model("Automation", AutomationSchema);
|
package/models/Workspace.js
CHANGED
|
@@ -412,6 +412,12 @@ const workspaceSchema = new mongoose.Schema(
|
|
|
412
412
|
type: Boolean,
|
|
413
413
|
default: false,
|
|
414
414
|
},
|
|
415
|
+
/** Which inbox UI the workspace sees: "v1" = classic Conversation UI, "v2" = redesigned inbox. */
|
|
416
|
+
inboxVersion: {
|
|
417
|
+
type: String,
|
|
418
|
+
enum: ["v1", "v2"],
|
|
419
|
+
default: "v1",
|
|
420
|
+
},
|
|
415
421
|
/** When true (default), ShuttleBot includes product photos with product detail replies. */
|
|
416
422
|
chatbotShowProductImages: {
|
|
417
423
|
type: Boolean,
|