shuttlepro-shared 1.5.41 → 1.5.43

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/Order.js CHANGED
@@ -97,6 +97,7 @@ const OrderSchema = new Schema(
97
97
  payableAmount: { type: Number, default: 0 },
98
98
  discountPercentage: { type: Number, default: 0 },
99
99
  discountValue: { type: Number, default: 0 },
100
+ discountCode: { type: String, default: "" },
100
101
  productDetails: { type: String, default: "" },
101
102
  webOrderId: { type: String, default: "" },
102
103
  parentOrderId: { type: Schema.Types.ObjectId, ref: "Order", default: null },
@@ -427,6 +427,14 @@ const workspaceSchema = new mongoose.Schema(
427
427
  chatbotVersion: {
428
428
  type: String,
429
429
  },
430
+ /**
431
+ * "Save AI tokens" switch: true = the chatbot sends less text to the AI on each message.
432
+ * No default on purpose: missing = off (today's bot). Set by admins in Settings → General
433
+ * Settings (mainApp PUT /settings/update-chatbot-token-saving); off removes the field.
434
+ */
435
+ chatbotTokenSaving: {
436
+ type: Boolean,
437
+ },
430
438
  /** When true (default), ShuttleBot includes product photos with product detail replies. */
431
439
  chatbotShowProductImages: {
432
440
  type: Boolean,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.5.41",
3
+ "version": "1.5.43",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {