@dhyasama/totem-models 10.2.1 → 10.3.0
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 +4 -1
- package/package.json +1 -1
package/lib/Organization.js
CHANGED
|
@@ -360,7 +360,7 @@ module.exports = function(mongoose, config) {
|
|
|
360
360
|
_id: false,
|
|
361
361
|
key: { type: String, trim: true },
|
|
362
362
|
label: { type: String, trim: true },
|
|
363
|
-
type: { type: String, enum: ['header', 'text', 'number', 'checkbox', 'select', 'date', 'file'] },
|
|
363
|
+
type: { type: String, enum: ['header', 'text', 'number', 'checkbox', 'select', 'multiselect', 'date', 'file'] },
|
|
364
364
|
validation: {
|
|
365
365
|
text: {
|
|
366
366
|
required: { type: Boolean, required: false },
|
|
@@ -374,6 +374,9 @@ module.exports = function(mongoose, config) {
|
|
|
374
374
|
required: { type: Boolean, required: false }
|
|
375
375
|
},
|
|
376
376
|
select: {
|
|
377
|
+
required: { type: Boolean, required: false }
|
|
378
|
+
},
|
|
379
|
+
multiselect: {
|
|
377
380
|
required: { type: Boolean, required: false },
|
|
378
381
|
max: { type: Number, required: false }
|
|
379
382
|
},
|