@dhyasama/totem-models 6.11.2 → 6.11.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/Deal.js CHANGED
@@ -23,7 +23,7 @@ module.exports = function(mongoose, config) {
23
23
 
24
24
  sources: [{
25
25
  person: { type: Schema.ObjectId, ref: 'Person', required: true },
26
- type: { type: String, enum: ['Cold Inbound', 'Cold Outbound', 'Met at Event', 'Was Referred', 'Other'], required: true }
26
+ type: { type: String, trim: true, required: true }
27
27
  }],
28
28
 
29
29
  referrers: [{
@@ -594,6 +594,18 @@ module.exports = function(mongoose, config) {
594
594
  });
595
595
  }
596
596
 
597
+ if (standardFields.sourceTypes.showOnList) {
598
+ result.push({
599
+ name: 'Source Type',
600
+ type: 'Single Select',
601
+ key: 'sourceTypes',
602
+ isStandard: true,
603
+ order: standardFields.sourceTypes.order * 10,
604
+ colspan: standardFields.sourceTypes.colspan || 1,
605
+ showOnFilter: standardFields.sourceTypes.showOnFilter === true ? true : false
606
+ });
607
+ }
608
+
597
609
  if (standardFields.referrers.showOnList) {
598
610
  result.push({
599
611
  name: 'Referrers',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "6.11.2",
3
+ "version": "6.11.4",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",
@@ -21,7 +21,7 @@
21
21
  "bcrypt": "^0.8.0",
22
22
  "bluebird": "^3.5.3",
23
23
  "escape-string-regexp": "^1.0.5",
24
- "moment": "^2.23.0",
24
+ "moment": "^2.24.0",
25
25
  "mongoose-deep-populate": "^3.0.0",
26
26
  "mongoose-filter-denormalize": "^0.2.1",
27
27
  "mongoose-post-find": "0.0.2",