shuttlepro-shared 1.5.7 → 1.5.9
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.
- package/models/Automation.js +2 -0
- package/models/FeedbackBot.js +0 -12
- package/models/Shop.js +1 -2
- package/models/Workspace.js +14 -0
- package/package.json +1 -1
package/models/Automation.js
CHANGED
|
@@ -212,6 +212,7 @@ const AutomationCondition = new Schema({
|
|
|
212
212
|
"profile",
|
|
213
213
|
"moveTicket",
|
|
214
214
|
"chatClose",
|
|
215
|
+
"store",
|
|
215
216
|
],
|
|
216
217
|
},
|
|
217
218
|
keyValue: {
|
|
@@ -247,6 +248,7 @@ const AutomationCondition = new Schema({
|
|
|
247
248
|
"profile",
|
|
248
249
|
"moveTicket",
|
|
249
250
|
"chatClose",
|
|
251
|
+
"store",
|
|
250
252
|
],
|
|
251
253
|
},
|
|
252
254
|
subKeyValue: {
|
package/models/FeedbackBot.js
CHANGED
|
@@ -66,16 +66,6 @@ const FeedbackBotSchema = new Schema(
|
|
|
66
66
|
type: Date,
|
|
67
67
|
default: null,
|
|
68
68
|
},
|
|
69
|
-
type: {
|
|
70
|
-
type: String,
|
|
71
|
-
enum: ["shop", "order"],
|
|
72
|
-
default: "order",
|
|
73
|
-
},
|
|
74
|
-
shopId: {
|
|
75
|
-
type: Schema.Types.ObjectId,
|
|
76
|
-
ref: "Shop",
|
|
77
|
-
default: null,
|
|
78
|
-
},
|
|
79
69
|
// Store reference to order/workflow if applicable
|
|
80
70
|
orderId: {
|
|
81
71
|
type: String,
|
|
@@ -101,8 +91,6 @@ FeedbackBotSchema.index({ chatbotId: 1 });
|
|
|
101
91
|
FeedbackBotSchema.index({ status: 1 });
|
|
102
92
|
// Index for order_id based queries (allows multiple feedback per conversation)
|
|
103
93
|
FeedbackBotSchema.index({ workspaceId: 1, phoneNumber: 1, orderId: 1 });
|
|
104
|
-
FeedbackBotSchema.index({ shopId: 1 });
|
|
105
|
-
FeedbackBotSchema.index({ type: 1 });
|
|
106
94
|
|
|
107
95
|
module.exports = FeedbackBotSchema;
|
|
108
96
|
|
package/models/Shop.js
CHANGED
package/models/Workspace.js
CHANGED
|
@@ -361,6 +361,10 @@ const workspaceSchema = new mongoose.Schema(
|
|
|
361
361
|
},
|
|
362
362
|
qdrantUrl: { type: String, default: "" },
|
|
363
363
|
qdrantApiKey: { type: String, default: "" },
|
|
364
|
+
shopQrInitialMessage: {
|
|
365
|
+
type: String,
|
|
366
|
+
default: "",
|
|
367
|
+
},
|
|
364
368
|
enableInternalChat: {
|
|
365
369
|
type: Boolean,
|
|
366
370
|
default: false,
|
|
@@ -386,6 +390,16 @@ const workspaceSchema = new mongoose.Schema(
|
|
|
386
390
|
type: Boolean,
|
|
387
391
|
default: false,
|
|
388
392
|
},
|
|
393
|
+
/** When true (default), ShuttleBot includes product photos with product detail replies. */
|
|
394
|
+
chatbotShowProductImages: {
|
|
395
|
+
type: Boolean,
|
|
396
|
+
default: true,
|
|
397
|
+
},
|
|
398
|
+
/** When true (default), ShuttleBot adds a tappable link to browse more same-name products beyond the first 3. */
|
|
399
|
+
chatbotShowMoreSameNameProducts: {
|
|
400
|
+
type: Boolean,
|
|
401
|
+
default: true,
|
|
402
|
+
},
|
|
389
403
|
enableInternalChat: {
|
|
390
404
|
type: Boolean,
|
|
391
405
|
default: false,
|