@dhyasama/totem-models 8.21.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 +22 -6
  2. package/package.json +1 -1
package/lib/Financials.js CHANGED
@@ -149,13 +149,29 @@ module.exports = function(mongoose, config) {
149
149
 
150
150
  },
151
151
 
152
- share: [{
152
+ stakeholders: [{
153
+
153
154
  organization: { type: Schema.ObjectId, ref: 'Organization' },
154
- sendTo: { type: String, trim: true },
155
- sendOn: { type: Date, required: false },
156
- sentOn: { type: Date, required: false },
157
- postmarkMessageId: { type: String, trim: true },
158
- status: { type: String, enum: [null, 'Sent', 'Bounced', 'Delivered', 'Opened', 'Clicked']}
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: [{
169
+ sendOn: { type: Date, required: false },
170
+ sentOn: { type: Date, required: false },
171
+ postmarkMessageId: { type: String, trim: true },
172
+ status: { type: String, enum: [null, 'Sent', 'Bounced', 'Delivered', 'Opened', 'Clicked']}
173
+ }]
174
+
159
175
  }]
160
176
 
161
177
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "8.21.0",
3
+ "version": "8.22.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",