@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 +14 -0
- package/lib/Organization.js +6 -6
- package/package-lock.json +1829 -0
- package/package.json +1 -1
package/.npmignore
ADDED
package/lib/Organization.js
CHANGED
|
@@ -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
|
|
263
|
+
key: { type: String, trim: true },
|
|
264
264
|
|
|
265
265
|
// User friendly text, will be displayed
|
|
266
|
-
label: { type: String, trim: 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']
|
|
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
|
|
276
|
+
label: { type: String, trim: true },
|
|
277
277
|
|
|
278
278
|
// This is the value that gets stored
|
|
279
|
-
value: { type: String, trim: 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']
|
|
282
|
+
type: { type: String, enum: ['String', 'Number', 'Boolean'] }
|
|
283
283
|
|
|
284
284
|
}],
|
|
285
285
|
|