shuttlepro-shared 1.5.19 → 1.5.21

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.
@@ -239,6 +239,8 @@ const AutomationCondition = new Schema({
239
239
  "afterShift",
240
240
  "orderConfirmation",
241
241
  "bankDeposit",
242
+ "jazzCash",
243
+ "easyPaisa",
242
244
  "paid",
243
245
  "orderPublish",
244
246
  "orderDelivery",
package/models/Chatbot.js CHANGED
@@ -57,6 +57,9 @@ const ChatbotSchema = new Schema(
57
57
  successTemplate: { type: String, default: "" },
58
58
  errorTemplate: { type: String, default: "" },
59
59
  bottomMessage: { type: String, default: "" },
60
+ // Post-create ticket# reply + destination column (Send Complaint Link parity)
61
+ ticketNumberTemplate: { type: String, default: "" },
62
+ columnId: { type: String, default: "" },
60
63
  },
61
64
  },
62
65
  ],
@@ -17,6 +17,19 @@ const EmailFeedbackReportSchema = new Schema(
17
17
  ref: "Conversation",
18
18
  required: true,
19
19
  },
20
+ // Last agent (user) who replied before feedback was triggered
21
+ agentId: {
22
+ type: Schema.Types.ObjectId,
23
+ ref: "User",
24
+ default: null,
25
+ },
26
+ // Workspace labels (admin-only to assign)
27
+ labels: [
28
+ {
29
+ type: Schema.Types.ObjectId,
30
+ ref: "Label",
31
+ },
32
+ ],
20
33
  email: {
21
34
  type: String,
22
35
  required: true,
@@ -109,6 +122,8 @@ const EmailFeedbackReportSchema = new Schema(
109
122
  EmailFeedbackReportSchema.index({ workspaceId: 1, email: 1, createdAt: -1 });
110
123
  EmailFeedbackReportSchema.index({ conversationId: 1 });
111
124
  EmailFeedbackReportSchema.index({ chatbotId: 1 });
125
+ EmailFeedbackReportSchema.index({ agentId: 1 });
126
+ EmailFeedbackReportSchema.index({ labels: 1 });
112
127
  EmailFeedbackReportSchema.index({ status: 1 });
113
128
  EmailFeedbackReportSchema.index({ workspaceId: 1, email: 1, orderId: 1 });
114
129
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.5.19",
3
+ "version": "1.5.21",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {