shuttlepro-shared 1.5.14 → 1.5.16

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.
@@ -110,6 +110,14 @@ const conversationSchema = new mongoose.Schema(
110
110
  cc: { type: String, default: "" },
111
111
  bcc: { type: String, default: "" },
112
112
  isReplied: { type: Boolean, default: false },
113
+ socialWorkflowId: {
114
+ type: Schema.Types.ObjectId,
115
+ ref: "SocialWorkflow",
116
+ default: null,
117
+ },
118
+ workflowQueueActive: { type: Boolean, default: false },
119
+ workflowInitiatedAt: { type: Date, default: null },
120
+ initialWorkflowMessageId: { type: String, default: "" },
113
121
  },
114
122
  { timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
115
123
  );
@@ -140,5 +148,11 @@ conversationSchema.index({
140
148
  conversationType: 1,
141
149
  conversationStatus: 1,
142
150
  });
151
+ conversationSchema.index({
152
+ workspaceId: 1,
153
+ isSpam: 1,
154
+ workflowQueueActive: 1,
155
+ platformTimestamp: -1,
156
+ });
143
157
 
144
158
  module.exports = mongoose.model("Conversation", conversationSchema);
@@ -411,6 +411,7 @@ const workspaceSchema = new mongoose.Schema(
411
411
  default: false,
412
412
  },
413
413
  productNavigationLink: { type: String, default: "" },
414
+ productCategory: { type: String, default: "" },
414
415
  },
415
416
  { timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
416
417
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.5.14",
3
+ "version": "1.5.16",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {