@dhyasama/totem-models 8.19.1 → 8.20.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.
package/lib/Financials.js CHANGED
@@ -150,11 +150,16 @@ module.exports = function(mongoose, config) {
150
150
  },
151
151
 
152
152
  share: {
153
+
153
154
  recipients: [{
154
- email: { type: String, trim: true },
155
+ sendTo: { type: String, trim: true },
156
+ sendOn: { type: Date, required: false },
157
+ sentOn: { type: Date, required: false },
158
+ organization: { type: Schema.ObjectId, ref: 'Organization' },
155
159
  postmarkMessageId: { type: String, trim: true },
156
160
  status: { type: String, enum: [null, 'Sent', 'Bounced', 'Delivered', 'Opened', 'Clicked']}
157
161
  }]
162
+
158
163
  }
159
164
 
160
165
  }
@@ -209,7 +214,7 @@ module.exports = function(mongoose, config) {
209
214
 
210
215
  };
211
216
 
212
- Financials.statics.getByUUID = function getByUUID(uuid, cb) {
217
+ Financials.statics.getByUUID = function getByUUID(uuid, cb) {
213
218
 
214
219
  let self = this;
215
220
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "8.19.1",
3
+ "version": "8.20.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",