shuttlepro-shared 1.5.39 → 1.5.41

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.
@@ -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({
@@ -418,6 +418,15 @@ const workspaceSchema = new mongoose.Schema(
418
418
  enum: ["v1", "v2"],
419
419
  default: "v1",
420
420
  },
421
+ /**
422
+ * ShuttleBot version this workspace runs (e.g. "v2"; the list lives in the chatbot service,
423
+ * src/versions/registry.js). No default on purpose: empty = follow the chatbot's default
424
+ * version, so untouched workspaces keep today's bot until the default changes.
425
+ * Set by admins in Settings → General Settings (mainApp PUT /settings/update-chatbot-version).
426
+ */
427
+ chatbotVersion: {
428
+ type: String,
429
+ },
421
430
  /** When true (default), ShuttleBot includes product photos with product detail replies. */
422
431
  chatbotShowProductImages: {
423
432
  type: Boolean,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.5.39",
3
+ "version": "1.5.41",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {