shuttlepro-shared 1.3.68 → 1.3.70

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.
@@ -55,6 +55,12 @@ const AutomationAction = new Schema({
55
55
  templateId: descriptionJoin,
56
56
  delay: defaultStringType,
57
57
  },
58
+ markAsSpam: {
59
+ enabled: { type: Boolean, default: false },
60
+ },
61
+ deleteComment: {
62
+ enabled: { type: Boolean, default: false },
63
+ },
58
64
  sendCollection: {
59
65
  enabled: { type: Boolean, default: false },
60
66
  template: { type: Object, default: null },
package/models/User.js CHANGED
@@ -31,6 +31,16 @@ const UserSchema = new Schema(
31
31
  type: Schema.Types.ObjectId,
32
32
  ref: "User",
33
33
  },
34
+ deviceTokens: {
35
+ type: [
36
+ {
37
+ token: { type: String, required: true },
38
+ platform: { type: String, enum: ["ios", "android", "web"] },
39
+ lastUsedAt: { type: String },
40
+ },
41
+ ],
42
+ default: [],
43
+ },
34
44
  },
35
45
  { timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
36
46
  );
@@ -76,6 +76,7 @@ const ReasonSchema = new mongoose.Schema({
76
76
  reason: { type: String, required: true },
77
77
  color: { type: String, default: "#000000" },
78
78
  categoryTitle: { type: String, required: true },
79
+ isDefault: { type: Boolean, default: false },
79
80
  });
80
81
  const ResolutionReasonCategorySchema = new mongoose.Schema({
81
82
  _id: {
@@ -239,6 +240,7 @@ const workspaceSchema = new mongoose.Schema(
239
240
  color: { type: String, default: "" },
240
241
  },
241
242
  ],
243
+ sendReadReceipts: { type: Boolean, default: true },
242
244
  chatGptApiKey: String,
243
245
  skuSeparator: { type: String, default: "-" },
244
246
  uniqueNo: { type: Number, default: 0 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.3.68",
3
+ "version": "1.3.70",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {