shuttlepro-shared 1.5.13 → 1.5.15

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);
package/models/Step.js CHANGED
@@ -75,6 +75,11 @@ const StepSchema = new Schema(
75
75
  default: null,
76
76
  },
77
77
  },
78
+ assignMemberId: {
79
+ type: Schema.Types.ObjectId,
80
+ ref: "User",
81
+ default: null,
82
+ },
78
83
  },
79
84
  { timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
80
85
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.5.13",
3
+ "version": "1.5.15",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {