shuttlepro-shared 1.5.42 → 1.5.44

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/Shop.js CHANGED
@@ -6,6 +6,13 @@ const ShopSchema = new mongoose.Schema(
6
6
  type: String,
7
7
  required: true,
8
8
  },
9
+ // Human-readable, user-editable shop identifier (e.g. "SHOP-001", "BWP-01").
10
+ // Unique per workspace, compared case-insensitively. Empty for legacy shops.
11
+ shopCode: {
12
+ type: String,
13
+ default: "",
14
+ trim: true,
15
+ },
9
16
  description: {
10
17
  type: String,
11
18
  default: "",
@@ -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.42",
3
+ "version": "1.5.44",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {