shuttlepro-shared 1.5.37 → 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.
- package/models/Automation.js +18 -0
- package/package.json +1 -1
package/models/Automation.js
CHANGED
|
@@ -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: {
|