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