shuttlepro-shared 1.5.37 → 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.
@@ -188,6 +188,17 @@ const AutomationAction = new Schema({
188
188
  },
189
189
  workflow: {},
190
190
  },
191
+ sendTemp: {
192
+ enabled: { type: Boolean, default: false },
193
+ integrationId: {
194
+ id: defaultStringType,
195
+ type: defaultStringType,
196
+ accountTitle: defaultStringType,
197
+ businessId: defaultStringType,
198
+ name: defaultStringType,
199
+ },
200
+ templateId: descriptionJoin,
201
+ },
191
202
  chatbot: {
192
203
  enabled: { type: Boolean, default: false },
193
204
  id: defaultStringType,
@@ -257,6 +268,7 @@ const AutomationCondition = new Schema({
257
268
  "chatClose",
258
269
  "store",
259
270
  "cartabandoned",
271
+ "amount",
260
272
  ],
261
273
  },
262
274
  subKeyValue: {
@@ -297,6 +309,11 @@ const AutomationCondition = new Schema({
297
309
  type: String,
298
310
  default: "",
299
311
  },
312
+ // Minimum cart total for the "amount" condition (used with cartabandoned)
313
+ amount: {
314
+ type: Number,
315
+ default: null,
316
+ },
300
317
  });
301
318
  const AutomationIntegration = new Schema({
302
319
  id: {
@@ -347,7 +364,11 @@ const AutomationSchema = new Schema(
347
364
  },
348
365
  ],
349
366
  },
350
- { timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
367
+ {
368
+ timestamps: true,
369
+ toJSON: { virtuals: true },
370
+ toObject: { virtuals: true },
371
+ },
351
372
  );
352
373
 
353
374
  const Automation = mongoose.model("Automation", AutomationSchema);
@@ -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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.5.37",
3
+ "version": "1.5.39",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {