@dhyasama/totem-models 8.59.0 → 8.59.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
@@ -28,7 +28,7 @@ module.exports = function(mongoose, config) {
28
28
 
29
29
  uuid: { type: String },
30
30
 
31
- managedServices: { type: Boolean, default: false, required: true },
31
+ managedServices: { type: Boolean, default: false },
32
32
 
33
33
  status: { type: String },
34
34
  action: { type: String },
@@ -36,6 +36,12 @@ module.exports = function(mongoose, config) {
36
36
  year: { type: Number, default: 0 },
37
37
  period: { type: String, enum: ['Annual', 'Q1', 'Q2', 'Q3', 'Q4', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] },
38
38
 
39
+ form: [{
40
+ _id: false,
41
+ name: { type: String, trim: true },
42
+ type: { type: String, enum: [null, 'block', 'document', 'metric', 'question']}
43
+ }],
44
+
39
45
  cash: {
40
46
  amount: { type: Number, default: 0 },
41
47
  },
@@ -110,12 +116,6 @@ module.exports = function(mongoose, config) {
110
116
  metrics: { type: Schema.Types.Mixed },
111
117
  questions: { type: Schema.Types.Mixed },
112
118
 
113
- form: [{
114
- _id: false,
115
- name: { type: String, trim: true },
116
- type: { type: String, enum: [null, 'block', 'document', 'metric', 'question']}
117
- }],
118
-
119
119
  comment: { type: String, trim: true },
120
120
 
121
121
  submittedOn: { type: Date, index: false },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "8.59.0",
3
+ "version": "8.59.1",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",