@dhyasama/totem-models 6.10.2 → 6.11.2

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/Flag.js CHANGED
@@ -66,6 +66,10 @@ module.exports = function(mongoose, config) {
66
66
  }).exec(cb);
67
67
  };
68
68
 
69
+ Flag.statics.upsert = function(flag, cb) {
70
+ flag.save(cb);
71
+ };
72
+
69
73
  Flag.post('init', function() {
70
74
  var self = this;
71
75
  self.text = querystring.unescape(self.text);
package/lib/Note.js CHANGED
@@ -70,6 +70,10 @@ module.exports = function(mongoose, config) {
70
70
 
71
71
  };
72
72
 
73
+ Note.statics.upsert = function(note, cb) {
74
+ note.save(cb);
75
+ };
76
+
73
77
  Note.post('init', function() {
74
78
  var self = this;
75
79
  self.text = querystring.unescape(self.text);
@@ -213,6 +213,8 @@ module.exports = function(mongoose, config) {
213
213
  color: { type: String, trim: true }
214
214
  }],
215
215
 
216
+ sourceTypes: [ { type: String, trim: true } ],
217
+
216
218
  standardFields: {
217
219
 
218
220
  // Standard fields are always "on" in the system
@@ -251,6 +253,13 @@ module.exports = function(mongoose, config) {
251
253
  showOnList: { type: Boolean, default: true }
252
254
  },
253
255
 
256
+ sourceTypes: {
257
+ order: { type: Number, default: 99 },
258
+ colspan: { type: Number, default: 1 },
259
+ showOnFilter: { type: Boolean, default: true },
260
+ showOnList: { type: Boolean, default: true }
261
+ },
262
+
254
263
  referrers: {
255
264
  order: { type: Number, default: 99 },
256
265
  colspan: { type: Number, default: 1 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "6.10.2",
3
+ "version": "6.11.2",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",