@dhyasama/totem-models 1.8.1 → 1.10.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/Account.js CHANGED
@@ -41,7 +41,7 @@ module.exports = function(mongoose, config) {
41
41
  admin: { type: Boolean },
42
42
  active: { type: Boolean },
43
43
  subscriber: { type: Boolean },
44
- role: { type: String, enum: ['admin', 'lp-full', 'lp-names', 'none'] },
44
+ role: { type: String, enum: ['admin', 'lp-full', 'lp-names', 'welcome', 'none'] },
45
45
 
46
46
  // Enable this and iLevel links will show on portfolio pages
47
47
  iLevelUser: { type: Boolean },
package/lib/CapTable.js CHANGED
@@ -265,6 +265,17 @@ module.exports = function(mongoose, config) {
265
265
 
266
266
  };
267
267
 
268
+ CapTable.statics.getByPerson = function getByFunds(personId, cb) {
269
+
270
+ var self = this;
271
+
272
+ self
273
+ .find({ 'stakeholders.person': personId })
274
+ .populate('organization', 'name logoUrl')
275
+ .exec(cb);
276
+
277
+ };
278
+
268
279
  CapTable.statics.getForCustomer = function getForCustomer(orgId, customerId, cb) {
269
280
 
270
281
  var self = this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "1.8.1",
3
+ "version": "1.10.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",