shuttlepro-shared 1.5.25 → 1.5.27

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.
@@ -141,6 +141,7 @@ const conversationSchema = new mongoose.Schema(
141
141
  },
142
142
  workflowQueueActive: { type: Boolean, default: false },
143
143
  workflowInitiatedAt: { type: Date, default: null },
144
+ aiBotActive: { type: Boolean, default: false },
144
145
  initialWorkflowMessageId: { type: String, default: "" },
145
146
  // Soft-merge for Gmail/SMTP email chats only (provider threads stay separate)
146
147
  mergedInto: {
@@ -203,5 +204,11 @@ conversationSchema.index({
203
204
  workflowQueueActive: 1,
204
205
  platformTimestamp: -1,
205
206
  });
207
+ conversationSchema.index({
208
+ workspaceId: 1,
209
+ isSpam: 1,
210
+ aiBotActive: 1,
211
+ platformTimestamp: -1,
212
+ });
206
213
 
207
214
  module.exports = mongoose.model("Conversation", conversationSchema);
@@ -387,11 +387,16 @@ const workspaceSchema = new mongoose.Schema(
387
387
  type: Boolean,
388
388
  default: false,
389
389
  },
390
- /** When false (default), after sending a message the reply panel stays open. When true, after a successful send the inline reply is closed (same as the X control). */
390
+ /** Default send-button action. Mutually exclusive with closeChatAfterSending. */
391
391
  resolveChatAfterSending: {
392
392
  type: Boolean,
393
393
  default: false,
394
394
  },
395
+ /** Default send-button action: collapse the reply panel after send (same as the X). Does not archive or change conversationStatus. Mutually exclusive with resolveChatAfterSending. */
396
+ closeChatAfterSending: {
397
+ type: Boolean,
398
+ default: false,
399
+ },
395
400
  /** When true, the conversation module opens on the Pending tab instead of All. */
396
401
  defaultPendingTab: {
397
402
  type: Boolean,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.5.25",
3
+ "version": "1.5.27",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {