vhp-mongo-models 2.0.3 → 2.0.4
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}]
|
|
@@ -1,8 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* items = [{
|
|
3
|
+
projectId:{type:String,default:''}, //was ref
|
|
4
|
+
hhid:{type:String,default:''}, //new
|
|
5
|
+
dept:{type:String,default:''},
|
|
6
|
+
cat:{type:String,default:''},
|
|
7
|
+
type:{type:String,default:''},
|
|
8
|
+
bookprice:{type:Boolean,default:true},
|
|
9
|
+
amntTotal:{type:Number,default:0},
|
|
10
|
+
amntCust:{type:Number,default:0},
|
|
11
|
+
amntAmeren:{type:Number,default:0},
|
|
12
|
+
amntManf:{type:Number,default:0},
|
|
13
|
+
amntSpecial:{type:Number,default:0},
|
|
14
|
+
sold:{type:Date,default:''},
|
|
15
|
+
invoiced:{type:Date,default:''},
|
|
16
|
+
paid:{type:Date,default:''}
|
|
17
|
+
* }]
|
|
18
|
+
*/
|
|
1
19
|
module.exports=[
|
|
2
20
|
{
|
|
3
21
|
projectId:{type:String,default:''}, //was ref
|
|
4
22
|
hhid:{type:String,default:''}, //new
|
|
5
23
|
dept:{type:String,default:''},
|
|
24
|
+
contract:{type:String,default:''},//no contract it can't be sold
|
|
25
|
+
solution:{type:String,default:''}, //type-<solution>
|
|
6
26
|
cat:{type:String,default:''},
|
|
7
27
|
type:{type:String,default:''},
|
|
8
28
|
bookprice:{type:Boolean,default:true},
|
|
@@ -11,6 +31,7 @@ module.exports=[
|
|
|
11
31
|
amntAmeren:{type:Number,default:0},
|
|
12
32
|
amntManf:{type:Number,default:0},
|
|
13
33
|
amntSpecial:{type:Number,default:0},
|
|
34
|
+
items:{type:Array,default:[]},
|
|
14
35
|
sold:{type:Date,default:''},
|
|
15
36
|
invoiced:{type:Date,default:''},
|
|
16
37
|
paid:{type:Date,default:''}
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
calc = { /Good
|
|
17
17
|
id:{type:Array,default:[]},
|
|
18
|
+
type:{type:String,default:'collapsed'}, // collapsed | <other formats>
|
|
18
19
|
depends:{type:Array,default:[]}
|
|
19
20
|
}
|
|
20
21
|
|
|
@@ -22,7 +23,7 @@
|
|
|
22
23
|
*/
|
|
23
24
|
module.exports=[{
|
|
24
25
|
id:{type:String,default:''},
|
|
25
|
-
title:{type:
|
|
26
|
+
title:{type:Object,default:{}},
|
|
26
27
|
desc:{type:String,default:''},
|
|
27
28
|
building:{type:String,default:''}, // COM | RES
|
|
28
29
|
input:{type:Object,default:{}},
|
|
@@ -31,10 +32,12 @@ module.exports=[{
|
|
|
31
32
|
subgroup:{type:String,default:''},
|
|
32
33
|
category:{type:String,default:''},
|
|
33
34
|
scoring:{type:Object,default:{}},
|
|
35
|
+
//rules:{type:Object,default:{}}
|
|
34
36
|
type:{type:Object,default:{}},
|
|
35
37
|
notes:{type:Object,default:{}},
|
|
36
|
-
required:{type:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
required:{type:Object,default:{}},
|
|
39
|
+
present:{type:Object,default:{}},
|
|
40
|
+
calc:{type:Object,default:{}},
|
|
41
|
+
|
|
42
|
+
rewards:{type:Boolean,default:false}
|
|
40
43
|
},{minimize:false}]
|
|
@@ -7,9 +7,11 @@ module.exports = [{
|
|
|
7
7
|
categories:{type:Array,default:[]},
|
|
8
8
|
grades:{type:Array,default:[]},
|
|
9
9
|
groups:{type:Array,default:[]},
|
|
10
|
+
sections:{type:Object,default:{}},
|
|
10
11
|
scored:{type:Boolean,default:false},
|
|
11
12
|
color:{type:String,default:''},
|
|
12
13
|
rewards:{type:Boolean,default:false},
|
|
13
14
|
enabled:{type:Boolean,default:true},
|
|
14
|
-
present:{type:Boolean,default:true}
|
|
15
|
+
present:{type:Boolean,default:true},
|
|
16
|
+
signature:{type:Boolean,default:false}
|
|
15
17
|
}]
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
module.exports = [{
|
|
2
|
-
id:{type:String,default:''}, //what checklist was used
|
|
3
|
-
name:{type:String,default:''}, //optional name for THIS checklist
|
|
4
|
-
work:{type:Array,default:[]},
|
|
5
|
-
hhid:{type:String,default:''},
|
|
6
|
-
sitems:{type:Array,default:[]},//of service item ids
|
|
7
|
-
checks:{type:Object,default:{}} //to hold all of the checklist values
|
|
8
|
-
}]
|