@dynamatix/cat-shared 0.0.58 → 0.0.59

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' , 'email','phone', 'internationalPhone'] // Added common form field types
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,
@@ -126,7 +126,7 @@ const formfieldSchema = new mongoose.Schema({
126
126
  min: 0
127
127
  },
128
128
  maxValue: { // this is not required used only when given else ignore ex- 100% max
129
- type: Number
129
+ type: mongoose.Schema.Types.Mixed
130
130
  },
131
131
  minValue: { // this is not required used only when given else ignore ex- 0% min
132
132
  type: Number
@@ -156,6 +156,7 @@ const formConfigurationSchema = new mongoose.Schema({
156
156
  type: String,
157
157
  required: true
158
158
  },
159
+ parentKey: String,
159
160
  populations: [Object],
160
161
  visibilityCondition: {
161
162
  type: mongoose.Schema.Types.Mixed,
@@ -170,10 +171,22 @@ const formConfigurationSchema = new mongoose.Schema({
170
171
  type: String,
171
172
  trim: true
172
173
  },
174
+ sectionLayout: {
175
+ type: String,
176
+ trim: true
177
+ },
173
178
  isArray: {
174
179
  type: Boolean,
175
180
  default: false
176
181
  },
182
+ isTable: {
183
+ type: Boolean,
184
+ default: false
185
+ },
186
+ dataFromSectionName: {
187
+ type: Boolean,
188
+ default: false
189
+ },
177
190
  fields: [formfieldSchema],
178
191
  order: {
179
192
  type: Number,
@@ -197,6 +210,10 @@ const formConfigurationSchema = new mongoose.Schema({
197
210
  type: Number,
198
211
  default: 0
199
212
  },
213
+ isTable: {
214
+ type: Boolean,
215
+ default: false
216
+ },
200
217
  visibilityCondition: { // Added section-level visibility
201
218
  type: mongoose.Schema.Types.Mixed,
202
219
  default: null
@@ -207,6 +224,14 @@ const formConfigurationSchema = new mongoose.Schema({
207
224
  type: Boolean,
208
225
  default: true
209
226
  },
227
+ isDeleteApprivoSync: {
228
+ type: Boolean,
229
+ default: true
230
+ },
231
+ isCreateApprivoSync: {
232
+ type: Boolean,
233
+ default: true
234
+ },
210
235
  version: { // Consider adding versioning
211
236
  type: Number,
212
237
  default: 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/cat-shared",
3
- "version": "0.0.58",
3
+ "version": "0.0.59",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"