@dynamatix/cat-shared 0.0.60 → 0.0.61
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: ['
|
|
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', 'internationalPhone'] // Added common form field types
|
|
47
47
|
},
|
|
48
48
|
isRequired: {
|
|
49
49
|
type: Boolean,
|
|
@@ -53,6 +53,10 @@ const formfieldSchema = new mongoose.Schema({
|
|
|
53
53
|
type: String,
|
|
54
54
|
default: null
|
|
55
55
|
},
|
|
56
|
+
forceUpdate: {
|
|
57
|
+
type: Boolean,
|
|
58
|
+
default: false
|
|
59
|
+
},
|
|
56
60
|
requiredErrorMessage: {
|
|
57
61
|
type: String,
|
|
58
62
|
default: 'Field is required'
|
|
@@ -126,7 +130,7 @@ const formfieldSchema = new mongoose.Schema({
|
|
|
126
130
|
min: 0
|
|
127
131
|
},
|
|
128
132
|
maxValue: { // this is not required used only when given else ignore ex- 100% max
|
|
129
|
-
type:
|
|
133
|
+
type: Number
|
|
130
134
|
},
|
|
131
135
|
minValue: { // this is not required used only when given else ignore ex- 0% min
|
|
132
136
|
type: Number
|
|
@@ -156,11 +160,6 @@ const formConfigurationSchema = new mongoose.Schema({
|
|
|
156
160
|
type: String,
|
|
157
161
|
required: true
|
|
158
162
|
},
|
|
159
|
-
sectionLayout: {
|
|
160
|
-
type: String,
|
|
161
|
-
trim: true
|
|
162
|
-
},
|
|
163
|
-
parentKey: String,
|
|
164
163
|
populations: [Object],
|
|
165
164
|
visibilityCondition: {
|
|
166
165
|
type: mongoose.Schema.Types.Mixed,
|
|
@@ -179,14 +178,6 @@ const formConfigurationSchema = new mongoose.Schema({
|
|
|
179
178
|
type: Boolean,
|
|
180
179
|
default: false
|
|
181
180
|
},
|
|
182
|
-
isTable: {
|
|
183
|
-
type: Boolean,
|
|
184
|
-
default: false
|
|
185
|
-
},
|
|
186
|
-
dataFromSectionName: {
|
|
187
|
-
type: Boolean,
|
|
188
|
-
default: false
|
|
189
|
-
},
|
|
190
181
|
fields: [formfieldSchema],
|
|
191
182
|
order: {
|
|
192
183
|
type: Number,
|
|
@@ -210,10 +201,6 @@ const formConfigurationSchema = new mongoose.Schema({
|
|
|
210
201
|
type: Number,
|
|
211
202
|
default: 0
|
|
212
203
|
},
|
|
213
|
-
isTable: {
|
|
214
|
-
type: Boolean,
|
|
215
|
-
default: false
|
|
216
|
-
},
|
|
217
204
|
visibilityCondition: { // Added section-level visibility
|
|
218
205
|
type: mongoose.Schema.Types.Mixed,
|
|
219
206
|
default: null
|
|
@@ -224,14 +211,6 @@ const formConfigurationSchema = new mongoose.Schema({
|
|
|
224
211
|
type: Boolean,
|
|
225
212
|
default: true
|
|
226
213
|
},
|
|
227
|
-
isDeleteApprivoSync: {
|
|
228
|
-
type: Boolean,
|
|
229
|
-
default: true
|
|
230
|
-
},
|
|
231
|
-
isCreateApprivoSync: {
|
|
232
|
-
type: Boolean,
|
|
233
|
-
default: true
|
|
234
|
-
},
|
|
235
214
|
version: { // Consider adding versioning
|
|
236
215
|
type: Number,
|
|
237
216
|
default: 1
|