@dhyasama/totem-models 8.20.0 → 8.22.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.
Files changed (2) hide show
  1. package/lib/Financials.js +17 -5
  2. package/package.json +1 -1
package/lib/Financials.js CHANGED
@@ -149,18 +149,30 @@ module.exports = function(mongoose, config) {
149
149
 
150
150
  },
151
151
 
152
- share: {
152
+ stakeholders: [{
153
153
 
154
- recipients: [{
155
- sendTo: { type: String, trim: true },
154
+ organization: { type: Schema.ObjectId, ref: 'Organization' },
155
+
156
+ sendTo: [{
157
+ email: { type: String, trim: true },
158
+ name: { type: String, trim: true }
159
+ }],
160
+
161
+ initial: {
162
+ sendOn: { type: Date, required: false },
163
+ sentOn: { type: Date, required: false },
164
+ postmarkMessageId: { type: String, trim: true },
165
+ status: { type: String, enum: [null, 'Sent', 'Bounced', 'Delivered', 'Opened', 'Clicked']}
166
+ },
167
+
168
+ reminders: [{
156
169
  sendOn: { type: Date, required: false },
157
170
  sentOn: { type: Date, required: false },
158
- organization: { type: Schema.ObjectId, ref: 'Organization' },
159
171
  postmarkMessageId: { type: String, trim: true },
160
172
  status: { type: String, enum: [null, 'Sent', 'Bounced', 'Delivered', 'Opened', 'Clicked']}
161
173
  }]
162
174
 
163
- }
175
+ }]
164
176
 
165
177
  }
166
178
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "8.20.0",
3
+ "version": "8.22.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",