shuttlepro-shared 1.5.38 → 1.5.39
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 +5 -2
- package/models/Workspace.js +6 -0
- package/package.json +1 -1
package/models/Automation.js
CHANGED
|
@@ -199,7 +199,6 @@ const AutomationAction = new Schema({
|
|
|
199
199
|
},
|
|
200
200
|
templateId: descriptionJoin,
|
|
201
201
|
},
|
|
202
|
-
|
|
203
202
|
chatbot: {
|
|
204
203
|
enabled: { type: Boolean, default: false },
|
|
205
204
|
id: defaultStringType,
|
|
@@ -365,7 +364,11 @@ const AutomationSchema = new Schema(
|
|
|
365
364
|
},
|
|
366
365
|
],
|
|
367
366
|
},
|
|
368
|
-
{
|
|
367
|
+
{
|
|
368
|
+
timestamps: true,
|
|
369
|
+
toJSON: { virtuals: true },
|
|
370
|
+
toObject: { virtuals: true },
|
|
371
|
+
},
|
|
369
372
|
);
|
|
370
373
|
|
|
371
374
|
const Automation = mongoose.model("Automation", AutomationSchema);
|
package/models/Workspace.js
CHANGED
|
@@ -412,6 +412,12 @@ const workspaceSchema = new mongoose.Schema(
|
|
|
412
412
|
type: Boolean,
|
|
413
413
|
default: false,
|
|
414
414
|
},
|
|
415
|
+
/** Which inbox UI the workspace sees: "v1" = classic Conversation UI, "v2" = redesigned inbox. */
|
|
416
|
+
inboxVersion: {
|
|
417
|
+
type: String,
|
|
418
|
+
enum: ["v1", "v2"],
|
|
419
|
+
default: "v1",
|
|
420
|
+
},
|
|
415
421
|
/** When true (default), ShuttleBot includes product photos with product detail replies. */
|
|
416
422
|
chatbotShowProductImages: {
|
|
417
423
|
type: Boolean,
|