@dynamatix/cat-shared 0.0.61 → 0.0.62
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'
|
|
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', 'internationalPhone'] // Added common form field types
|
|
47
47
|
},
|
|
48
48
|
isRequired: {
|
|
49
49
|
type: Boolean,
|
|
@@ -130,7 +130,7 @@ const formfieldSchema = new mongoose.Schema({
|
|
|
130
130
|
min: 0
|
|
131
131
|
},
|
|
132
132
|
maxValue: { // this is not required used only when given else ignore ex- 100% max
|
|
133
|
-
type:
|
|
133
|
+
type: mongoose.Schema.Types.Mixed
|
|
134
134
|
},
|
|
135
135
|
minValue: { // this is not required used only when given else ignore ex- 0% min
|
|
136
136
|
type: Number
|
|
@@ -160,6 +160,11 @@ const formConfigurationSchema = new mongoose.Schema({
|
|
|
160
160
|
type: String,
|
|
161
161
|
required: true
|
|
162
162
|
},
|
|
163
|
+
sectionLayout: {
|
|
164
|
+
type: String,
|
|
165
|
+
trim: true
|
|
166
|
+
},
|
|
167
|
+
parentKey: String,
|
|
163
168
|
populations: [Object],
|
|
164
169
|
visibilityCondition: {
|
|
165
170
|
type: mongoose.Schema.Types.Mixed,
|
|
@@ -178,6 +183,14 @@ const formConfigurationSchema = new mongoose.Schema({
|
|
|
178
183
|
type: Boolean,
|
|
179
184
|
default: false
|
|
180
185
|
},
|
|
186
|
+
isTable: {
|
|
187
|
+
type: Boolean,
|
|
188
|
+
default: false
|
|
189
|
+
},
|
|
190
|
+
dataFromSectionName: {
|
|
191
|
+
type: Boolean,
|
|
192
|
+
default: false
|
|
193
|
+
},
|
|
181
194
|
fields: [formfieldSchema],
|
|
182
195
|
order: {
|
|
183
196
|
type: Number,
|
|
@@ -201,6 +214,10 @@ const formConfigurationSchema = new mongoose.Schema({
|
|
|
201
214
|
type: Number,
|
|
202
215
|
default: 0
|
|
203
216
|
},
|
|
217
|
+
isTable: {
|
|
218
|
+
type: Boolean,
|
|
219
|
+
default: false
|
|
220
|
+
},
|
|
204
221
|
visibilityCondition: { // Added section-level visibility
|
|
205
222
|
type: mongoose.Schema.Types.Mixed,
|
|
206
223
|
default: null
|
|
@@ -211,6 +228,14 @@ const formConfigurationSchema = new mongoose.Schema({
|
|
|
211
228
|
type: Boolean,
|
|
212
229
|
default: true
|
|
213
230
|
},
|
|
231
|
+
isDeleteApprivoSync: {
|
|
232
|
+
type: Boolean,
|
|
233
|
+
default: true
|
|
234
|
+
},
|
|
235
|
+
isCreateApprivoSync: {
|
|
236
|
+
type: Boolean,
|
|
237
|
+
default: true
|
|
238
|
+
},
|
|
214
239
|
version: { // Consider adding versioning
|
|
215
240
|
type: Number,
|
|
216
241
|
default: 1
|