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.
@@ -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({
@@ -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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.4.98",
3
+ "version": "1.5.00",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {