@dynamatix/cat-shared 0.0.39 → 0.0.41

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.
@@ -6,6 +6,10 @@ const optionSchema = new mongoose.Schema({
6
6
  }, { _id: false });
7
7
 
8
8
  const formfieldSchema = new mongoose.Schema({
9
+ addToPayload:{
10
+ type: Boolean,
11
+ default: true
12
+ },
9
13
  fieldName: {
10
14
  type: String,
11
15
  required: true,
@@ -85,11 +89,11 @@ const formfieldSchema = new mongoose.Schema({
85
89
  default: null
86
90
  },
87
91
  dynamicSource: {
88
- sourceField: {
89
- type: String,
90
- default: null
91
- },
92
92
  sourceMapping: [{
93
+ sourceField: {
94
+ type: String,
95
+ default: null
96
+ },
93
97
  sourceValue: { type: mongoose.Schema.Types.Mixed },
94
98
  listName: { type: String } // The collection name to use when source field has this value
95
99
  }]
@@ -107,6 +111,7 @@ const formfieldSchema = new mongoose.Schema({
107
111
  type: String,
108
112
  default: null
109
113
  },
114
+ syncMapping:[mongoose.Schema.Types.Mixed], // Ex: [{true:'Checked', false: ''}]
110
115
  order: {
111
116
  type: Number,
112
117
  default: 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/cat-shared",
3
- "version": "0.0.39",
3
+ "version": "0.0.41",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"