@dhyasama/totem-models 9.114.0 → 9.116.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.
@@ -355,12 +355,31 @@ module.exports = function(mongoose, config) {
355
355
  form: [{
356
356
  _id: false,
357
357
  key: { type: String, trim: true },
358
- prompt: { type: String, trim: true },
358
+ label: { type: String, trim: true },
359
+ type: { type: String, enum: ['header', 'text', 'number', 'checkbox', 'select', 'date', 'file'] },
359
360
  validation: {
360
- required: { type: Boolean, default: false },
361
- maxlength: { type: Number, required: false },
362
- format: { type: String, enum: ['email', 'url'], required: false },
363
- filetype: { type: String, enum: ['application/pdf', 'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/octet-stream', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/msword', 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'image/jpeg', 'image/png'], required: false },
361
+ text: {
362
+ required: { type: Boolean, required: false },
363
+ max: { type: Number, required: false },
364
+ format: { type: String, enum: ['email', 'url'], required: false }
365
+ },
366
+ number: {
367
+ required: { type: Boolean, required: false }
368
+ },
369
+ checkbox: {
370
+ required: { type: Boolean, required: false }
371
+ },
372
+ select: {
373
+ required: { type: Boolean, required: false },
374
+ max: { type: Number, required: false }
375
+ },
376
+ date: {
377
+ required: { type: Boolean, required: false }
378
+ },
379
+ file: {
380
+ required: { type: Boolean, required: false },
381
+ type: { type: String, enum: ['application/pdf', 'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/octet-stream', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/msword', 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'image/jpeg', 'image/png'], required: false }
382
+ }
364
383
  }
365
384
  }]
366
385
  }],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "9.114.0",
3
+ "version": "9.116.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",