@dhyasama/totem-models 1.12.1 → 1.13.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.
@@ -35,6 +35,8 @@ module.exports = function(mongoose, config) {
35
35
 
36
36
  shortName: { type: String, default: '' },
37
37
 
38
+ related: [{ type: Schema.ObjectId, ref: 'Organization'}],
39
+
38
40
  start: { type: String, default: '' },
39
41
 
40
42
  people: [{
@@ -374,6 +376,7 @@ module.exports = function(mongoose, config) {
374
376
  query.populate('fundsInvested.fund');
375
377
  query.populate('people');
376
378
  query.populate('notes');
379
+ query.populate('related', 'name logoUrl');
377
380
  query.deepPopulate([
378
381
  'people.sources.person',
379
382
  'people.calendarEventSummaries.attendees.internal',
@@ -699,14 +702,14 @@ module.exports = function(mongoose, config) {
699
702
 
700
703
  LimitedPartner.plugin(filter, {
701
704
  readFilter: {
702
- 'admin': ['name', 'shortName', 'start', 'people', 'documentSlugs', 'fundsInvested', 'contact', 'distributions', 'k1', 'entered', 'status', 'flagged', 'notes'],
703
- 'lp-full': ['name', 'shortName', 'start', 'people', 'documentSlugs', 'fundsInvested', 'contact', 'distributions', 'k1', 'entered', 'status', 'flagged', 'notes'],
705
+ 'admin': ['name', 'shortName', 'related', 'start', 'people', 'documentSlugs', 'fundsInvested', 'contact', 'distributions', 'k1', 'entered', 'status', 'flagged', 'notes'],
706
+ 'lp-full': ['name', 'shortName', 'related', 'start', 'people', 'documentSlugs', 'fundsInvested', 'contact', 'distributions', 'k1', 'entered', 'status', 'flagged', 'notes'],
704
707
  'lp-names': ['name', 'shortName', 'flagged'],
705
708
  'none': []
706
709
  },
707
710
  writeFilter: {
708
- 'admin': ['name', 'shortName', 'start', 'people', 'documentSlugs', 'fundsInvested', 'contact', 'distributions', 'k1', 'entered', 'status', 'flagged', 'notes'],
709
- 'lp-full': ['name', 'shortName', 'start', 'people', 'documentSlugs', 'fundsInvested', 'contact', 'distributions', 'k1', 'entered', 'status', 'flagged', 'notes'],
711
+ 'admin': ['name', 'shortName', 'related', 'start', 'people', 'documentSlugs', 'fundsInvested', 'contact', 'distributions', 'k1', 'entered', 'status', 'flagged', 'notes'],
712
+ 'lp-full': ['name', 'shortName', 'related', 'start', 'people', 'documentSlugs', 'fundsInvested', 'contact', 'distributions', 'k1', 'entered', 'status', 'flagged', 'notes'],
710
713
  'lp-names': ['flagged'],
711
714
  'none': []
712
715
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "1.12.1",
3
+ "version": "1.13.1",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",