@dhyasama/totem-models 8.57.2 → 8.58.1

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
@@ -110,6 +110,11 @@ module.exports = function(mongoose, config) {
110
110
  metrics: { type: Schema.Types.Mixed },
111
111
  questions: { type: Schema.Types.Mixed },
112
112
 
113
+ form: [{
114
+ key: { type: String, trim: true },
115
+ type: { type: String, enum: [null, 'block', 'document', 'metric', 'question']}
116
+ }],
117
+
113
118
  comment: { type: String, trim: true },
114
119
 
115
120
  submittedOn: { type: Date, index: false },
@@ -211,8 +211,9 @@ module.exports = function(mongoose, config) {
211
211
  name: { type: String, trim: true },
212
212
  filters: [{
213
213
  _id: false,
214
- group: { type: String, trim: true },
215
- item: { type: String, trim: true },
214
+ key: { type: String, trim: true },
215
+ condition: { type: String, enum: [null, 'equals', 'doesNotEqual', 'contains', 'doesNotContain', 'lessThan', 'greaterThan']},
216
+ value: { type: String, trim: true },
216
217
  }],
217
218
  sort: {
218
219
  by: { type: String, trim: true },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "8.57.2",
3
+ "version": "8.58.1",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",