@dhyasama/totem-models 11.121.0 → 11.122.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
@@ -88,6 +88,7 @@ module.exports = function(mongoose, config) {
88
88
  form: [{
89
89
  name: { type: String, trim: true },
90
90
  type: { type: String, enum: [null, 'header', 'block', 'document', 'metric', 'question'] },
91
+ scenario: { type: String, enum: ['actual', 'budget', 'forecast'] },
91
92
  budget: { type: Number },
92
93
  forecast: { type: Number },
93
94
  required: { type: Boolean, default: false }
@@ -320,8 +320,7 @@ module.exports = function(mongoose, config) {
320
320
  _id: false,
321
321
  name: { type: String, trim: true },
322
322
  type: { type: String, enum: [null, 'header', 'block', 'document', 'metric', 'question'] },
323
- budget: { type: Boolean, default: false },
324
- forecast: { type: Boolean, default: false },
323
+ scenario: { type: String, enum: ['actual', 'budget', 'forecast'] },
325
324
  required: { type: Boolean, default: false }
326
325
  }]
327
326
  }],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "11.121.0",
3
+ "version": "11.122.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",