@dhyasama/totem-models 3.12.3 → 3.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.
Files changed (2) hide show
  1. package/lib/Financials.js +12 -8
  2. package/package.json +1 -1
package/lib/Financials.js CHANGED
@@ -48,32 +48,36 @@ module.exports = function(mongoose, config) {
48
48
  amount: { type: Number, default: 0 },
49
49
  projected: { type: Number, default: 0 },
50
50
  breakdown: [{
51
- subcategory: { type: String, trim: true },
52
- amount: { type: Number, default: 0 }
51
+ key: { type: String, trim: true },
52
+ value: { type: String, trim: true },
53
+ _id: false
53
54
  }]
54
55
  },
55
56
  operatingExpenses: {
56
57
  amount: { type: Number, default: 0 },
57
58
  projected: { type: Number, default: 0 },
58
59
  breakdown: [{
59
- subcategory: { type: String, trim: true },
60
- amount: { type: Number, default: 0 }
60
+ key: { type: String, trim: true },
61
+ value: { type: String, trim: true },
62
+ _id: false
61
63
  }]
62
64
  },
63
65
  grossProfit: {
64
66
  amount: { type: Number, default: 0 },
65
67
  projected: { type: Number, default: 0 },
66
68
  breakdown: [{
67
- subcategory: { type: String, trim: true },
68
- amount: { type: Number, default: 0 }
69
+ key: { type: String, trim: true },
70
+ value: { type: String, trim: true },
71
+ _id: false
69
72
  }]
70
73
  },
71
74
  operatingIncome: {
72
75
  amount: { type: Number, default: 0 },
73
76
  projected: { type: Number, default: 0 },
74
77
  breakdown: [{
75
- subcategory: { type: String, trim: true },
76
- amount: { type: Number, default: 0 }
78
+ key: { type: String, trim: true },
79
+ value: { type: String, trim: true },
80
+ _id: false
77
81
  }]
78
82
  },
79
83
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "3.12.3",
3
+ "version": "3.13.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",