shuttlepro-shared 1.4.63 → 1.4.65

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.
@@ -177,6 +177,17 @@ const AutomationAction = new Schema({
177
177
  },
178
178
  flow: {},
179
179
  },
180
+ sendTemplate: {
181
+ enabled: { type: Boolean, default: false },
182
+ integrationId: {
183
+ id: defaultStringType,
184
+ type: defaultStringType,
185
+ accountTitle: defaultStringType,
186
+ businessId: defaultStringType,
187
+ name: defaultStringType,
188
+ },
189
+ workflow: {},
190
+ },
180
191
  chatbot: {
181
192
  enabled: { type: Boolean, default: false },
182
193
  id: defaultStringType,
@@ -222,6 +233,11 @@ const AutomationCondition = new Schema({
222
233
  "afterShift",
223
234
  "orderConfirmation",
224
235
  "orderPublish",
236
+ "orderDelivery",
237
+ "criticalOrder",
238
+ "refusedOrder",
239
+ "sendReceipt",
240
+ "shipperAdvice",
225
241
  "newCommentPost",
226
242
  "profile",
227
243
  "moveTicket",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.4.63",
3
+ "version": "1.4.65",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/models/Webhook.js DELETED
@@ -1,14 +0,0 @@
1
- const mongoose = require("mongoose");
2
- const { Schema } = mongoose;
3
-
4
- const WebhookSchema = new Schema(
5
- {
6
- isDeleted: { type: Boolean, default: false },
7
- data: { type: Object, default: null },
8
- },
9
- { timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
10
- );
11
-
12
- const Webhook = mongoose.model("Webhook", WebhookSchema);
13
-
14
- module.exports = Webhook;