shuttlepro-shared 1.5.36 → 1.5.38

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,18 @@ 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
+ },
202
+
191
203
  chatbot: {
192
204
  enabled: { type: Boolean, default: false },
193
205
  id: defaultStringType,
@@ -257,6 +269,7 @@ const AutomationCondition = new Schema({
257
269
  "chatClose",
258
270
  "store",
259
271
  "cartabandoned",
272
+ "amount",
260
273
  ],
261
274
  },
262
275
  subKeyValue: {
@@ -297,6 +310,11 @@ const AutomationCondition = new Schema({
297
310
  type: String,
298
311
  default: "",
299
312
  },
313
+ // Minimum cart total for the "amount" condition (used with cartabandoned)
314
+ amount: {
315
+ type: Number,
316
+ default: null,
317
+ },
300
318
  });
301
319
  const AutomationIntegration = new Schema({
302
320
  id: {
@@ -217,6 +217,10 @@ const workspaceSchema = new mongoose.Schema(
217
217
  facebookUrl: String,
218
218
  twitterUrl: String,
219
219
  instagramUrl: String,
220
+ exchangeRate: {
221
+ type: Number,
222
+ default: 1,
223
+ },
220
224
  highRiskOrderAmount: {
221
225
  type: Number,
222
226
  default: 100000,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.5.36",
3
+ "version": "1.5.38",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {