shuttlepro-shared 1.5.7 → 1.5.8
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/FeedbackBot.js +0 -12
- package/models/Shop.js +1 -2
- package/models/Workspace.js +10 -0
- package/package.json +1 -1
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
|
@@ -386,6 +386,16 @@ const workspaceSchema = new mongoose.Schema(
|
|
|
386
386
|
type: Boolean,
|
|
387
387
|
default: false,
|
|
388
388
|
},
|
|
389
|
+
/** When true (default), ShuttleBot includes product photos with product detail replies. */
|
|
390
|
+
chatbotShowProductImages: {
|
|
391
|
+
type: Boolean,
|
|
392
|
+
default: true,
|
|
393
|
+
},
|
|
394
|
+
/** When true (default), ShuttleBot adds a tappable link to browse more same-name products beyond the first 3. */
|
|
395
|
+
chatbotShowMoreSameNameProducts: {
|
|
396
|
+
type: Boolean,
|
|
397
|
+
default: true,
|
|
398
|
+
},
|
|
389
399
|
enableInternalChat: {
|
|
390
400
|
type: Boolean,
|
|
391
401
|
default: false,
|