@dhyasama/totem-models 9.61.0 → 9.63.0

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.
@@ -15,6 +15,9 @@ module.exports = function(mongoose, config) {
15
15
  // date and time to send
16
16
  sendOn: { type: Date, required: true },
17
17
 
18
+ // whether the task has been sent to the queue
19
+ sentToQueue: { type: Boolean, default: false },
20
+
18
21
  // email content
19
22
  email: {
20
23
 
@@ -52,15 +55,10 @@ module.exports = function(mongoose, config) {
52
55
  }
53
56
 
54
57
  }],
55
-
56
- // emails of recipients
57
- emails: [{ type: String, trim: true, required: true }],
58
58
 
59
59
  notifications: [{
60
60
  sendTo: { type: String, trim: true },
61
- sendOn: { type: Date, required: false },
62
61
  sentOn: { type: Date, required: false },
63
- sentToQueue: { type: Boolean, default: false },
64
62
  postmarkMessageId: { type: String, trim: true },
65
63
  status: { type: String, enum: [null, 'Sent', 'Bounced', 'Delivered', 'Opened', 'Clicked']}
66
64
  }],
@@ -166,4 +164,4 @@ module.exports = function(mongoose, config) {
166
164
 
167
165
  mongoose.model('LimitedPartnerCommunication', LimitedPartnerCommunication);
168
166
 
169
- };
167
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "9.61.0",
3
+ "version": "9.63.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",