@dhyasama/totem-models 6.5.1 → 6.5.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.
@@ -260,26 +260,26 @@ module.exports = function(mongoose, config) {
260
260
  // Whenever possible, just use the label and replace spaces with underscore
261
261
  // Will not be displayed
262
262
  // Changing it after data is in the system will make data on deal inaccessible
263
- key: { type: String, trim: true, required: true },
263
+ key: { type: String, trim: true },
264
264
 
265
265
  // User friendly text, will be displayed
266
- label: { type: String, trim: true, required: true },
266
+ label: { type: String, trim: true },
267
267
 
268
268
  // Dictates the type of control rendered on form
269
269
  // Also impacts data validation
270
- type: { type: String, enum: ['Text', 'Number', 'Tags', 'Poll', 'Checkbox', 'Single Select', 'Multiple Select'], required: true },
270
+ type: { type: String, enum: ['Text', 'Number', 'Tags', 'Poll', 'Checkbox', 'Single Select', 'Multiple Select'] },
271
271
 
272
272
  // These will be the choices in polls, single-selects and multi-selects
273
273
  options: [{
274
274
 
275
275
  // This is the option shown to users
276
- label: { type: String, trim: true, required: true },
276
+ label: { type: String, trim: true },
277
277
 
278
278
  // This is the value that gets stored
279
- value: { type: String, trim: true, required: true },
279
+ value: { type: String, trim: true },
280
280
 
281
281
  // This is used to aggregate answers for polls
282
- type: { type: String, enum: ['String', 'Number', 'Boolean'], required: true }
282
+ type: { type: String, enum: ['String', 'Number', 'Boolean'] }
283
283
 
284
284
  }],
285
285
 
@@ -526,13 +526,13 @@ module.exports = function(mongoose, config) {
526
526
  if (standardFields.fundraise.showOnList) {
527
527
  result.push({
528
528
  name: 'Fundraise Amount',
529
- type: 'Standard',
529
+ type: 'Number',
530
530
  order: standardFields.fundraise.order * 10,
531
531
  colspan: standardFields.fundraise.colspan || 1,
532
532
  showOnFilter: standardFields.fundraise.showOnFilter === true ? true : false
533
533
  }, {
534
534
  name: 'Fundraise Valuation',
535
- type: 'Standard',
535
+ type: 'Number',
536
536
  order: standardFields.fundraise.order * 10 + 1,
537
537
  colspan: standardFields.fundraise.colspan || 1,
538
538
  showOnFilter: standardFields.fundraise.showOnFilter === true ? true : false
@@ -542,7 +542,7 @@ module.exports = function(mongoose, config) {
542
542
  if (standardFields.sources.showOnList) {
543
543
  result.push({
544
544
  name: 'Source',
545
- type: 'Standard',
545
+ type: 'Reference',
546
546
  order: standardFields.sources.order * 10,
547
547
  colspan: standardFields.sources.colspan || 1,
548
548
  showOnFilter: standardFields.sources.showOnFilter === true ? true : false
@@ -552,7 +552,7 @@ module.exports = function(mongoose, config) {
552
552
  if (standardFields.referrers.showOnList) {
553
553
  result.push({
554
554
  name: 'Referrers',
555
- type: 'Standard',
555
+ type: 'Reference',
556
556
  order: standardFields.referrers.order * 10,
557
557
  colspan: standardFields.referrers.colspan || 1,
558
558
  showOnFilter: standardFields.referrers.showOnFilter === true ? true : false
package/package-lock.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "6.5.0",
3
+ "version": "6.5.2",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "6.5.1",
3
+ "version": "6.5.3",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",