@dhyasama/totem-models 12.29.0 → 12.30.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
@@ -120,6 +120,12 @@ module.exports = function(mongoose, config) {
120
120
  type: Schema.Types.ObjectId,
121
121
  refPath: 'metrics.sources.model',
122
122
  },
123
+ // On a derived/formula metric, the formula component (group) this
124
+ // cell belongs to — "this cell is part of Operating Expenses".
125
+ // Component totals live once per metric in `breakdown`
126
+ // ({ group: value }), keyed by these group names. Unset on raw
127
+ // extracted metrics.
128
+ group: { type: String, trim: true },
123
129
  position: {
124
130
  _id: false,
125
131
  page: { type: Number },
@@ -162,6 +168,7 @@ module.exports = function(mongoose, config) {
162
168
  _id: false,
163
169
  model: { type: String, enum: ['Document', 'Meeting', 'Message', 'Note'] },
164
170
  ref: { type: Schema.Types.ObjectId },
171
+ group: { type: String, trim: true },
165
172
  position: {
166
173
  _id: false,
167
174
  page: { type: Number },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "12.29.0",
3
+ "version": "12.30.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",