@dynamatix/cat-shared 0.0.23 → 0.0.25

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.
@@ -6,6 +6,10 @@ const formfieldSchema = new mongoose.Schema({
6
6
  required: true,
7
7
  trim: true
8
8
  },
9
+ isHidden:{
10
+ type: Boolean,
11
+ default: false
12
+ },
9
13
  isEditable: {
10
14
  type: Boolean,
11
15
  default: true
@@ -27,7 +31,7 @@ const formfieldSchema = new mongoose.Schema({
27
31
  dataType: {
28
32
  type: String,
29
33
  required: true,
30
- enum: ['string', 'number', 'boolean', 'date', 'array', 'object', 'select', 'radio', 'list'] // Added common form field types
34
+ enum: ['string', 'number', 'boolean-check','boolean-radio', 'date', 'array', 'object', 'select', 'radio', 'drop-down', 'sort-code','post-code','pound','lookup','multi-select' ] // Added common form field types
31
35
  },
32
36
  isRequired: {
33
37
  type: Boolean,
@@ -59,6 +63,7 @@ const formfieldSchema = new mongoose.Schema({
59
63
  type: String,
60
64
  default: null
61
65
  },
66
+ // Ex: sort-code, post-code, pound, drop-down, lookup
62
67
  uiHint: {
63
68
  type: String
64
69
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/cat-shared",
3
- "version": "0.0.23",
3
+ "version": "0.0.25",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"