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