@dhyasama/totem-models 6.7.2 → 6.8.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.
Files changed (2) hide show
  1. package/lib/Organization.js +22 -11
  2. package/package.json +1 -1
@@ -230,7 +230,14 @@ module.exports = function(mongoose, config) {
230
230
  showOnList: { type: Boolean, default: true }
231
231
  },
232
232
 
233
- fundraise: {
233
+ raise: {
234
+ order: { type: Number, default: 99 },
235
+ colspan: { type: Number, default: 1 },
236
+ showOnFilter: { type: Boolean, default: true },
237
+ showOnList: { type: Boolean, default: true }
238
+ },
239
+
240
+ valuation: {
234
241
  order: { type: Number, default: 99 },
235
242
  colspan: { type: Number, default: 1 },
236
243
  showOnFilter: { type: Boolean, default: true },
@@ -541,21 +548,25 @@ module.exports = function(mongoose, config) {
541
548
  });
542
549
  }
543
550
 
544
- if (standardFields.fundraise.showOnList) {
551
+ if (standardFields.raise.showOnList) {
545
552
  result.push({
546
- name: 'Fundraise Amount',
553
+ name: 'Raise',
547
554
  type: 'Number',
548
555
  isStandard: true,
549
- order: standardFields.fundraise.order * 10,
550
- colspan: standardFields.fundraise.colspan || 1,
551
- showOnFilter: standardFields.fundraise.showOnFilter === true ? true : false
552
- }, {
553
- name: 'Fundraise Valuation',
556
+ order: standardFields.raise.order * 10,
557
+ colspan: standardFields.raise.colspan || 1,
558
+ showOnFilter: standardFields.raise.showOnFilter === true ? true : false
559
+ });
560
+ }
561
+
562
+ if(standardFields.valuation.showOnList) {
563
+ result.push({
564
+ name: 'Valuation',
554
565
  type: 'Number',
555
566
  isStandard: true,
556
- order: standardFields.fundraise.order * 10 + 1,
557
- colspan: standardFields.fundraise.colspan || 1,
558
- showOnFilter: standardFields.fundraise.showOnFilter === true ? true : false
567
+ order: standardFields.valuation.order * 10 + 1,
568
+ colspan: standardFields.valuation.colspan || 1,
569
+ showOnFilter: standardFields.valuation.showOnFilter === true ? true : false
559
570
  });
560
571
  }
561
572
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "6.7.2",
3
+ "version": "6.8.1",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",