@dhyasama/totem-models 6.5.2 → 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.
package/.npmignore ADDED
@@ -0,0 +1,14 @@
1
+ lib-cov
2
+ *.seed
3
+ *.log
4
+ *.csv
5
+ *.dat
6
+ *.out
7
+ *.pid
8
+ *.gz
9
+
10
+ npm-debug.log
11
+ node_modules
12
+
13
+ .DS_Store
14
+ .idea
@@ -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