@dynamatix/cat-shared 0.0.24 → 0.0.26

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.
@@ -31,7 +31,7 @@ const formfieldSchema = new mongoose.Schema({
31
31
  dataType: {
32
32
  type: String,
33
33
  required: true,
34
- enum: ['string', 'number', 'boolean', 'date', 'array', 'object', 'select', 'radio', 'list'] // Added common form field types
34
+ enum: ['string', 'number', 'boolean-check','boolean-radio', 'date', 'array', 'object', 'select', 'radio', 'drop-down', 'sort-code','post-code','pound','lookup','multi-select' ] // Added common form field types
35
35
  },
36
36
  isRequired: {
37
37
  type: Boolean,
@@ -63,6 +63,7 @@ const formfieldSchema = new mongoose.Schema({
63
63
  type: String,
64
64
  default: null
65
65
  },
66
+ // Ex: sort-code, post-code, pound, drop-down, lookup
66
67
  uiHint: {
67
68
  type: String
68
69
  },
@@ -115,10 +116,9 @@ const formConfigurationSchema = new mongoose.Schema({
115
116
  trim: true,
116
117
  unique: true // Consider making form names unique
117
118
  },
118
- apiPath: {
119
+ collectionName:{
119
120
  type: String,
120
- required: true,
121
- trim: true
121
+ required: true
122
122
  },
123
123
  visibilityCondition: {
124
124
  type: mongoose.Schema.Types.Mixed,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/cat-shared",
3
- "version": "0.0.24",
3
+ "version": "0.0.26",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"