shuttlepro-shared 1.5.40 → 1.5.41
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/Workspace.js +9 -0
- package/package.json +1 -1
package/models/Workspace.js
CHANGED
|
@@ -418,6 +418,15 @@ const workspaceSchema = new mongoose.Schema(
|
|
|
418
418
|
enum: ["v1", "v2"],
|
|
419
419
|
default: "v1",
|
|
420
420
|
},
|
|
421
|
+
/**
|
|
422
|
+
* ShuttleBot version this workspace runs (e.g. "v2"; the list lives in the chatbot service,
|
|
423
|
+
* src/versions/registry.js). No default on purpose: empty = follow the chatbot's default
|
|
424
|
+
* version, so untouched workspaces keep today's bot until the default changes.
|
|
425
|
+
* Set by admins in Settings → General Settings (mainApp PUT /settings/update-chatbot-version).
|
|
426
|
+
*/
|
|
427
|
+
chatbotVersion: {
|
|
428
|
+
type: String,
|
|
429
|
+
},
|
|
421
430
|
/** When true (default), ShuttleBot includes product photos with product detail replies. */
|
|
422
431
|
chatbotShowProductImages: {
|
|
423
432
|
type: Boolean,
|