@dynamatix/cat-shared 0.0.35 → 0.0.37

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.
@@ -1,7 +1,7 @@
1
1
  import mongoose from 'mongoose';
2
2
 
3
3
  const optionSchema = new mongoose.Schema({
4
- key: { type: mongoose.Schema.Types.Mixed },
4
+ label: { type: mongoose.Schema.Types.Mixed },
5
5
  value: { type: mongoose.Schema.Types.Mixed }
6
6
  }, { _id: false });
7
7
 
@@ -83,6 +83,16 @@ const formfieldSchema = new mongoose.Schema({
83
83
  listFilterQuery: { // MongoDB query ex: applicationId:applicationId
84
84
  type: mongoose.Schema.Types.Mixed,
85
85
  default: null
86
+ },
87
+ dynamicSource: {
88
+ sourceField: {
89
+ type: String,
90
+ default: null
91
+ },
92
+ sourceMapping: [{
93
+ sourceValue: { type: mongoose.Schema.Types.Mixed },
94
+ listName: { type: String } // The collection name to use when source field has this value
95
+ }]
86
96
  }
87
97
  },
88
98
  isSyncEnabled: { // Fixed typo (was isSyncEnabed)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/cat-shared",
3
- "version": "0.0.35",
3
+ "version": "0.0.37",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"