vhp-mongo-models 1.7.3 → 1.7.5
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.
|
@@ -10,5 +10,7 @@ module.exports = [{
|
|
|
10
10
|
list:{type:Object,default:{}},
|
|
11
11
|
score:{type:Object,default:{}},
|
|
12
12
|
},
|
|
13
|
-
fields:{type:Object,default:{}} //to hold all of the checklist values
|
|
13
|
+
fields:{type:Object,default:{}}, //to hold all of the checklist values
|
|
14
|
+
notes:{type:Object,default:{}},
|
|
15
|
+
signature:{type:String,default:''}
|
|
14
16
|
},{minimize:false}]
|
|
@@ -10,6 +10,7 @@ module.exports = [
|
|
|
10
10
|
{
|
|
11
11
|
//VHP ADD fields
|
|
12
12
|
hhid:{type:String,default:''}, //must have a hhid
|
|
13
|
+
group:{type:String,default:''},//names the type of product it is. Would like to use this instead of type
|
|
13
14
|
system:{type:String,default:''}, //way to link related service items
|
|
14
15
|
space:{type:String,default:''},
|
|
15
16
|
subspace:{type:String,default:''},
|
|
@@ -20,8 +21,8 @@ module.exports = [
|
|
|
20
21
|
//JONAS props
|
|
21
22
|
id:{type:String,default:''}, //must have an id, should match JONAS "lineNumber"
|
|
22
23
|
custcode:{type:String,default:''}, //linked custcode in JONAS
|
|
23
|
-
type:{type:String,default:''},//FU CU C etc
|
|
24
24
|
tagid:{type:String,default:''},
|
|
25
|
+
type:{type:String,default:''},//understand what this is in jonas
|
|
25
26
|
descr:{type:String,default:''},
|
|
26
27
|
status:{type:String,default:''},//should be 'A' for active. Need to find other codes. Match JONAS
|
|
27
28
|
insdate:{type:Date,default:''},
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*/
|
|
23
23
|
module.exports=[{
|
|
24
24
|
id:{type:String,default:''},
|
|
25
|
-
title:{type:
|
|
25
|
+
title:{type:Object,default:{}},
|
|
26
26
|
desc:{type:String,default:''},
|
|
27
27
|
building:{type:String,default:''}, // COM | RES
|
|
28
28
|
input:{type:Object,default:{}},
|
|
@@ -31,10 +31,12 @@ module.exports=[{
|
|
|
31
31
|
subgroup:{type:String,default:''},
|
|
32
32
|
category:{type:String,default:''},
|
|
33
33
|
scoring:{type:Object,default:{}},
|
|
34
|
+
//rules:{type:Object,default:{}}
|
|
34
35
|
type:{type:Object,default:{}},
|
|
35
36
|
notes:{type:Object,default:{}},
|
|
36
|
-
required:{type:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
required:{type:Object,default:{}},
|
|
38
|
+
present:{type:Object,default:{}},
|
|
39
|
+
calc:{type:Object,default:{}},
|
|
40
|
+
|
|
41
|
+
rewards:{type:Boolean,default:false}
|
|
40
42
|
},{minimize:false}]
|
|
@@ -6,9 +6,12 @@ module.exports = [{
|
|
|
6
6
|
included:{type:Array,default:[]},
|
|
7
7
|
categories:{type:Array,default:[]},
|
|
8
8
|
grades:{type:Array,default:[]},
|
|
9
|
+
groups:{type:Array,default:[]},
|
|
10
|
+
sections:{type:Object,default:{}},
|
|
9
11
|
scored:{type:Boolean,default:false},
|
|
10
12
|
color:{type:String,default:''},
|
|
11
13
|
rewards:{type:Boolean,default:false},
|
|
12
14
|
enabled:{type:Boolean,default:true},
|
|
13
|
-
present:{type:Boolean,default:true}
|
|
15
|
+
present:{type:Boolean,default:true},
|
|
16
|
+
signature:{type:Boolean,default:false}
|
|
14
17
|
}]
|
package/Service/service.js
CHANGED
|
@@ -6,5 +6,6 @@ module.exports = {
|
|
|
6
6
|
Spiff:new Schema(...require('./schemas/spiff.js')),
|
|
7
7
|
SpiffReport:new Schema(...require('./schemas/spiffreport.js')),
|
|
8
8
|
ChecklistForm:new Schema(...require('./schemas/checklistform.js')),
|
|
9
|
-
ChecklistField:new Schema(...require('./schemas/checklistfield.js'))
|
|
9
|
+
ChecklistField:new Schema(...require('./schemas/checklistfield.js')),
|
|
10
|
+
ChecklistCalc:new Schema(...require('./schemas/checklistcalc.js'))
|
|
10
11
|
}
|