@dhyasama/totem-models 7.10.1 → 7.12.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/Document.js CHANGED
@@ -30,7 +30,7 @@ module.exports = function(mongoose, config) {
30
30
  key: { type: String, required: true, trim: true }
31
31
  },
32
32
 
33
- type: { type: String, enum: ['deck', 'financials', 'other'], required: true },
33
+ type: { type: String, enum: ['deck', 'incomeStatement', 'balanceSheet', 'cashFlow', 'capTable', 'financials', 'other'], required: true },
34
34
 
35
35
  });
36
36
 
package/lib/Financials.js CHANGED
@@ -20,6 +20,8 @@ module.exports = function(mongoose, config) {
20
20
 
21
21
  customer: { type: Schema.ObjectId, ref: 'Organization', required: true, index: true },
22
22
 
23
+ managedServices: { type: Boolean, default: false, required: true },
24
+
23
25
  asOfDate: { type: Date, required: true },
24
26
 
25
27
  currency: { type: String, required: true, default: 'USD' },
@@ -215,6 +215,7 @@ module.exports = function(mongoose, config) {
215
215
 
216
216
  financials : {
217
217
  active: { type: Boolean, default: false },
218
+ managedServices: { type: Boolean, default: false },
218
219
  metrics: [{
219
220
  _id: false,
220
221
  name: { type: String, trim: true },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "7.10.1",
3
+ "version": "7.12.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",