@dynamatix/cat-shared 0.0.64 → 0.0.65
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,
|
|
@@ -147,6 +147,14 @@ const formfieldSchema = new mongoose.Schema({
|
|
|
147
147
|
type: String,
|
|
148
148
|
default: null
|
|
149
149
|
},
|
|
150
|
+
shouldfilterOptionsAfterAdd: {
|
|
151
|
+
type : Boolean,
|
|
152
|
+
default : false
|
|
153
|
+
},
|
|
154
|
+
shouldfilterOptionsAfterDelete: {
|
|
155
|
+
type : Boolean,
|
|
156
|
+
default : false
|
|
157
|
+
}
|
|
150
158
|
}, { timestamps: true, _id: false });
|
|
151
159
|
|
|
152
160
|
const formConfigurationSchema = new mongoose.Schema({
|
|
@@ -160,6 +168,11 @@ const formConfigurationSchema = new mongoose.Schema({
|
|
|
160
168
|
type: String,
|
|
161
169
|
required: true
|
|
162
170
|
},
|
|
171
|
+
sectionLayout: {
|
|
172
|
+
type: String,
|
|
173
|
+
trim: true
|
|
174
|
+
},
|
|
175
|
+
parentKey: String,
|
|
163
176
|
populations: [Object],
|
|
164
177
|
visibilityCondition: {
|
|
165
178
|
type: mongoose.Schema.Types.Mixed,
|
|
@@ -178,6 +191,14 @@ const formConfigurationSchema = new mongoose.Schema({
|
|
|
178
191
|
type: Boolean,
|
|
179
192
|
default: false
|
|
180
193
|
},
|
|
194
|
+
isTable: {
|
|
195
|
+
type: Boolean,
|
|
196
|
+
default: false
|
|
197
|
+
},
|
|
198
|
+
dataFromSectionName: {
|
|
199
|
+
type: Boolean,
|
|
200
|
+
default: false
|
|
201
|
+
},
|
|
181
202
|
fields: [formfieldSchema],
|
|
182
203
|
order: {
|
|
183
204
|
type: Number,
|
|
@@ -201,6 +222,10 @@ const formConfigurationSchema = new mongoose.Schema({
|
|
|
201
222
|
type: Number,
|
|
202
223
|
default: 0
|
|
203
224
|
},
|
|
225
|
+
isTable: {
|
|
226
|
+
type: Boolean,
|
|
227
|
+
default: false
|
|
228
|
+
},
|
|
204
229
|
visibilityCondition: { // Added section-level visibility
|
|
205
230
|
type: mongoose.Schema.Types.Mixed,
|
|
206
231
|
default: null
|
|
@@ -211,6 +236,14 @@ const formConfigurationSchema = new mongoose.Schema({
|
|
|
211
236
|
type: Boolean,
|
|
212
237
|
default: true
|
|
213
238
|
},
|
|
239
|
+
isDeleteApprivoSync: {
|
|
240
|
+
type: Boolean,
|
|
241
|
+
default: true
|
|
242
|
+
},
|
|
243
|
+
isCreateApprivoSync: {
|
|
244
|
+
type: Boolean,
|
|
245
|
+
default: true
|
|
246
|
+
},
|
|
214
247
|
version: { // Consider adding versioning
|
|
215
248
|
type: Number,
|
|
216
249
|
default: 1
|