@dhyasama/totem-models 6.8.1 → 6.8.3

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.
@@ -258,7 +258,7 @@ module.exports = function(mongoose, config) {
258
258
  showOnList: { type: Boolean, default: true }
259
259
  },
260
260
 
261
- resources: {
261
+ chairs: {
262
262
  order: { type: Number, default: 99 },
263
263
  colspan: { type: Number, default: 1 },
264
264
  showOnFilter: { type: Boolean, default: true },
@@ -541,6 +541,7 @@ module.exports = function(mongoose, config) {
541
541
  result.push({
542
542
  name: 'Next Steps',
543
543
  type: 'Text',
544
+ key: 'action',
544
545
  isStandard: true,
545
546
  order: standardFields.action.order * 10,
546
547
  colspan: standardFields.action.colspan || 1,
@@ -552,6 +553,7 @@ module.exports = function(mongoose, config) {
552
553
  result.push({
553
554
  name: 'Raise',
554
555
  type: 'Number',
556
+ key: 'fundraise.amount',
555
557
  isStandard: true,
556
558
  order: standardFields.raise.order * 10,
557
559
  colspan: standardFields.raise.colspan || 1,
@@ -563,6 +565,7 @@ module.exports = function(mongoose, config) {
563
565
  result.push({
564
566
  name: 'Valuation',
565
567
  type: 'Number',
568
+ key: 'fundraise.valuation',
566
569
  isStandard: true,
567
570
  order: standardFields.valuation.order * 10 + 1,
568
571
  colspan: standardFields.valuation.colspan || 1,
@@ -574,6 +577,7 @@ module.exports = function(mongoose, config) {
574
577
  result.push({
575
578
  name: 'Sources',
576
579
  type: 'Reference',
580
+ key: 'sources',
577
581
  isStandard: true,
578
582
  order: standardFields.sources.order * 10,
579
583
  colspan: standardFields.sources.colspan || 1,
@@ -585,6 +589,7 @@ module.exports = function(mongoose, config) {
585
589
  result.push({
586
590
  name: 'Referrers',
587
591
  type: 'Reference',
592
+ key: 'referrers',
588
593
  isStandard: true,
589
594
  order: standardFields.referrers.order * 10,
590
595
  colspan: standardFields.referrers.colspan || 1,
@@ -592,6 +597,18 @@ module.exports = function(mongoose, config) {
592
597
  });
593
598
  }
594
599
 
600
+ if (standardFields.chairs.showOnList) {
601
+ result.push({
602
+ name: 'Leads',
603
+ type: 'Reference',
604
+ key: 'organization.chairs',
605
+ isStandard: true,
606
+ order: standardFields.chairs.order * 10,
607
+ colspan: standardFields.chairs.colspan || 1,
608
+ showOnFilter: standardFields.chairs.showOnFilter === true ? true : false
609
+ });
610
+ }
611
+
595
612
  // Add custom fields
596
613
  _.each(customFields, function(field) {
597
614
  if (field.display.showOnList) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "6.8.1",
3
+ "version": "6.8.3",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",