vhp-mongo-models 2.0.2 → 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.
@@ -4,10 +4,13 @@ module.exports = [{
4
4
  work:{type:String,default:""}, //just an array of work.id
5
5
  custcode:{type:String,default:''},
6
6
  name:{type:String,default:''}, //what checklist was used
7
+ title:{type:String,default:''},
7
8
  sitems:{type:Array,default:[]}, //of service item ["ids"]
8
9
  scoring:{
9
10
  list:{type:Object,default:{}},
10
11
  score:{type:Object,default:{}},
11
12
  },
12
- 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:''}
13
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:''}
@@ -0,0 +1,5 @@
1
+ module.exports = [{
2
+ id:{type:String,default:''},
3
+ fields:{type:Object,default:{}},
4
+ result:{type:String,default:''}
5
+ },{minimize:false}]
@@ -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:String,default:''},
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:Boolean,default:true},
37
- rewards:{type:Boolean,default:false},
38
- present:{type:Boolean,default:true},
39
- calc:{type:Object,default:{}}
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}]
@@ -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
  }]
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vhp-mongo-models",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "productName": "VHP Mongo Models",
5
5
  "description": "Mongo Models library to setup Mongoose Schemas",
6
6
  "author": "VHPim",
@@ -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
- }]