@dhyasama/totem-models 9.12.0 → 9.13.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
@@ -171,17 +171,17 @@ module.exports = function(mongoose, config) {
171
171
 
172
172
  company: {
173
173
 
174
- sendTo: [{
175
- email: { type: String, trim: true },
176
- name: { type: String, trim: true }
177
- }],
178
-
179
174
  // to be nested under initial and reminders, and removed
180
175
  email: {
181
176
  subject: { type: String, trim: true },
182
177
  body: { type: String, trim: true }
183
178
  },
184
179
 
180
+ sendTo: [{
181
+ email: { type: String, trim: true },
182
+ name: { type: String, trim: true }
183
+ }],
184
+
185
185
  initial: {
186
186
  sendOn: { type: Date, required: false },
187
187
  sentOn: { type: Date, required: false },
@@ -306,7 +306,6 @@ module.exports = function(mongoose, config) {
306
306
  prompt: { type: String, trim: true },
307
307
  required: { type: Boolean, default: false }
308
308
  }]
309
-
310
309
  },
311
310
 
312
311
  deals: {
@@ -362,7 +361,7 @@ module.exports = function(mongoose, config) {
362
361
  condition: { type: String, enum: [null, 'equals', 'doesNotEqual', 'contains', 'doesNotContain', 'lessThan', 'greaterThan']},
363
362
  values: [{ type: String, trim: true }]
364
363
  }],
365
- sort: {
364
+ sort: {
366
365
  by: { type: String, trim: true },
367
366
  reverse: { type: Boolean, default: false }
368
367
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "9.12.0",
3
+ "version": "9.13.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",