@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.
- package/lib/Financials.js +17 -5
- 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
|
-
|
|
152
|
+
stakeholders: [{
|
|
153
153
|
|
|
154
|
-
|
|
155
|
-
|
|
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
|
|