@dynamatix/cat-shared 0.0.43 → 0.0.45
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.
|
@@ -40,7 +40,7 @@ const formfieldSchema = new mongoose.Schema({
|
|
|
40
40
|
dataType: {
|
|
41
41
|
type: String,
|
|
42
42
|
required: true,
|
|
43
|
-
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
|
|
43
|
+
enum: ['string', 'number', 'boolean-check', 'boolean-radio', 'percentage', 'date', 'array', 'object', 'select', 'radio', 'drop-down', 'sort-code', 'post-code', 'pound', 'lookup', 'multi-select'] // Added common form field types
|
|
44
44
|
},
|
|
45
45
|
isRequired: {
|
|
46
46
|
type: Boolean,
|
|
@@ -159,6 +159,10 @@ const formConfigurationSchema = new mongoose.Schema({
|
|
|
159
159
|
sectionLabel: {
|
|
160
160
|
type: String,
|
|
161
161
|
trim: true
|
|
162
|
+
},
|
|
163
|
+
isArray: {
|
|
164
|
+
type: Boolean,
|
|
165
|
+
default: false
|
|
162
166
|
},
|
|
163
167
|
fields: [formfieldSchema],
|
|
164
168
|
order: {
|