@dynamatix/cat-shared 0.0.52 → 0.0.54

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.
@@ -43,7 +43,7 @@ const formfieldSchema = new mongoose.Schema({
43
43
  dataType: {
44
44
  type: String,
45
45
  required: true,
46
- enum: ['string', 'number', 'boolean-check', 'boolean-radio', 'percentage', 'date', 'array', 'object', 'select', 'radio', 'drop-down', 'sort-code', 'post-code', 'pound', 'lookup', 'multi-select' , 'email','phone', 'telephone'] // Added common form field types
46
+ enum: ['text-area', 'string', 'number', 'boolean-check', 'boolean-radio', 'percentage', 'date', 'array', 'object', 'select', 'radio', 'drop-down', 'sort-code', 'post-code', 'pound', 'lookup', 'multi-select' , 'email','phone', 'telephone'] // Added common form field types
47
47
  },
48
48
  isRequired: {
49
49
  type: Boolean,
@@ -126,7 +126,7 @@ const formfieldSchema = new mongoose.Schema({
126
126
  min: 0
127
127
  },
128
128
  maxValue: { // this is not required used only when given else ignore ex- 100% max
129
- type: any
129
+ type: mongoose.Schema.Types.Mixed
130
130
  },
131
131
  minValue: { // this is not required used only when given else ignore ex- 0% min
132
132
  type: Number
@@ -198,6 +198,10 @@ const formConfigurationSchema = new mongoose.Schema({
198
198
  type: Number,
199
199
  default: 0
200
200
  },
201
+ isTable : {
202
+ type: Boolean,
203
+ default: false
204
+ },
201
205
  visibilityCondition: { // Added section-level visibility
202
206
  type: mongoose.Schema.Types.Mixed,
203
207
  default: null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/cat-shared",
3
- "version": "0.0.52",
3
+ "version": "0.0.54",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"