shuttlepro-shared 1.4.75 → 1.4.77

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.
@@ -211,6 +211,7 @@ const AutomationCondition = new Schema({
211
211
  "newCommentPost",
212
212
  "profile",
213
213
  "moveTicket",
214
+ "chatClose",
214
215
  ],
215
216
  },
216
217
  keyValue: {
@@ -242,6 +243,7 @@ const AutomationCondition = new Schema({
242
243
  "newCommentPost",
243
244
  "profile",
244
245
  "moveTicket",
246
+ "chatClose",
245
247
  ],
246
248
  },
247
249
  subKeyValue: {
@@ -8,6 +8,10 @@ const EscalationLevelSchema = new Schema({
8
8
  required: true,
9
9
  },
10
10
  actions: {
11
+ autoChatClose: {
12
+ type: Boolean,
13
+ default: false,
14
+ },
11
15
  labels: [
12
16
  {
13
17
  type: Schema.Types.ObjectId,
package/models/Order.js CHANGED
@@ -53,7 +53,8 @@ const ShipperInformation = new Schema({
53
53
  const OrderSchema = new Schema(
54
54
  {
55
55
  webOrderId: { type: String, default: "" },
56
- webOrderNumber: { type: String, default: "" },
56
+ webOrderId: { type: String, default: "" },
57
+ packageCode: { type: String, default: "" },
57
58
  orderNumber: { type: String, default: "" },
58
59
  customerId: { type: Schema.Types.ObjectId, ref: "Customer", default: null },
59
60
  customerName: { type: String, default: "" },
@@ -172,7 +173,6 @@ const OrderSchema = new Schema(
172
173
  presentedCurrency: {},
173
174
  exchangeRate: { type: Number, default: 0 },
174
175
  markedInventory: { type: Boolean, default: false },
175
- packageCode: { type: String, default: "" },
176
176
  },
177
177
  { timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
178
178
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.4.75",
3
+ "version": "1.4.77",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/dump.rdb DELETED
Binary file