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