@dhyasama/totem-models 6.8.2 → 6.8.4
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/Organization.js +8 -2
- package/package.json +1 -1
package/lib/Organization.js
CHANGED
|
@@ -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,
|
|
@@ -596,6 +601,7 @@ module.exports = function(mongoose, config) {
|
|
|
596
601
|
result.push({
|
|
597
602
|
name: 'Leads',
|
|
598
603
|
type: 'Reference',
|
|
604
|
+
key: 'organization.chairs',
|
|
599
605
|
isStandard: true,
|
|
600
606
|
order: standardFields.chairs.order * 10,
|
|
601
607
|
colspan: standardFields.chairs.colspan || 1,
|
|
@@ -614,8 +620,7 @@ module.exports = function(mongoose, config) {
|
|
|
614
620
|
options: field.options,
|
|
615
621
|
order: field.display.order * 10,
|
|
616
622
|
colspan: field.display.colspan || 1,
|
|
617
|
-
showOnFilter: field.display.showOnFilter === true ? true : false
|
|
618
|
-
options: field.options
|
|
623
|
+
showOnFilter: field.display.showOnFilter === true ? true : false
|
|
619
624
|
});
|
|
620
625
|
}
|
|
621
626
|
});
|
|
@@ -1105,6 +1110,7 @@ module.exports = function(mongoose, config) {
|
|
|
1105
1110
|
domains = domains.map(function(d) {
|
|
1106
1111
|
d = d.toLowerCase();
|
|
1107
1112
|
d = d.replace('http://', '').replace('https://', '');
|
|
1113
|
+
d = d.replace('www.', '');
|
|
1108
1114
|
return d.toLowerCase()
|
|
1109
1115
|
});
|
|
1110
1116
|
|