@dynamatix/cat-shared 0.0.47 → 0.0.48
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,10 +6,10 @@ const optionSchema = new mongoose.Schema({
|
|
|
6
6
|
}, { _id: false });
|
|
7
7
|
|
|
8
8
|
const formfieldSchema = new mongoose.Schema({
|
|
9
|
-
isFutureDateBlocked:{
|
|
9
|
+
isFutureDateBlocked: {
|
|
10
10
|
type: Boolean,
|
|
11
11
|
},
|
|
12
|
-
addToPayload:{
|
|
12
|
+
addToPayload: {
|
|
13
13
|
type: Boolean,
|
|
14
14
|
default: false
|
|
15
15
|
},
|
|
@@ -115,7 +115,7 @@ const formfieldSchema = new mongoose.Schema({
|
|
|
115
115
|
type: String,
|
|
116
116
|
default: null
|
|
117
117
|
},
|
|
118
|
-
syncMapping:mongoose.Schema.Types.Mixed, // Ex: {true:'Checked', false: ''}
|
|
118
|
+
syncMapping: mongoose.Schema.Types.Mixed, // Ex: {true:'Checked', false: ''}
|
|
119
119
|
order: {
|
|
120
120
|
type: Number,
|
|
121
121
|
default: 0
|
|
@@ -128,11 +128,14 @@ const formfieldSchema = new mongoose.Schema({
|
|
|
128
128
|
maxValue: { // this is not required used only when given else ignore ex- 100% max
|
|
129
129
|
type: Number
|
|
130
130
|
},
|
|
131
|
+
minValue: { // this is not required used only when given else ignore ex- 0% min
|
|
132
|
+
type: Number
|
|
133
|
+
},
|
|
131
134
|
isReadOnly: {
|
|
132
135
|
type: Boolean,
|
|
133
136
|
default: false
|
|
134
137
|
},
|
|
135
|
-
collectionName:{ // name of collection for field if field doesnt belong to main collection
|
|
138
|
+
collectionName: { // name of collection for field if field doesnt belong to main collection
|
|
136
139
|
type: String,
|
|
137
140
|
default: null
|
|
138
141
|
},
|
|
@@ -140,7 +143,7 @@ const formfieldSchema = new mongoose.Schema({
|
|
|
140
143
|
type: String,
|
|
141
144
|
default: null
|
|
142
145
|
},
|
|
143
|
-
}, { timestamps: true
|
|
146
|
+
}, { timestamps: true, _id: false });
|
|
144
147
|
|
|
145
148
|
const formConfigurationSchema = new mongoose.Schema({
|
|
146
149
|
formName: {
|
|
@@ -153,7 +156,7 @@ const formConfigurationSchema = new mongoose.Schema({
|
|
|
153
156
|
type: String,
|
|
154
157
|
required: true
|
|
155
158
|
},
|
|
156
|
-
populations:[Object],
|
|
159
|
+
populations: [Object],
|
|
157
160
|
visibilityCondition: {
|
|
158
161
|
type: mongoose.Schema.Types.Mixed,
|
|
159
162
|
default: null
|
|
@@ -166,7 +169,7 @@ const formConfigurationSchema = new mongoose.Schema({
|
|
|
166
169
|
sectionLabel: {
|
|
167
170
|
type: String,
|
|
168
171
|
trim: true
|
|
169
|
-
},
|
|
172
|
+
},
|
|
170
173
|
isArray: {
|
|
171
174
|
type: Boolean,
|
|
172
175
|
default: false
|