@dhyasama/totem-models 8.89.0 → 8.91.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
@@ -41,7 +41,7 @@ module.exports = function(mongoose, config) {
41
41
  form: [{
42
42
  _id: false,
43
43
  name: { type: String, trim: true },
44
- type: { type: String, enum: [null, 'block', 'message', 'document', 'metric', 'question']}
44
+ type: { type: String, enum: [null, 'block', 'document', 'metric', 'question']}
45
45
  }],
46
46
 
47
47
  cash: {
@@ -130,6 +130,11 @@ module.exports = function(mongoose, config) {
130
130
 
131
131
  company: {
132
132
 
133
+ email: {
134
+ subject: { type: String, trim: true },
135
+ body: { type: String, trim: true }
136
+ },
137
+
133
138
  sendTo: [{
134
139
  email: { type: String, trim: true },
135
140
  name: { type: String, trim: true }
@@ -272,10 +272,10 @@ module.exports = function(mongoose, config) {
272
272
  active: { type: Boolean, default: false }
273
273
  },
274
274
 
275
- messages: [{
275
+ emails: [{
276
276
  _id: false,
277
- name: { type: String, trim: true },
278
- html: { type: String, trim: true }
277
+ subject: { type: String, trim: true },
278
+ body: { type: String, trim: true }
279
279
  }],
280
280
  templates: [{
281
281
  _id: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "8.89.0",
3
+ "version": "8.91.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",