@dynamatix/cat-shared 0.0.57 → 0.0.58

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