vhp-mongo-models 2.1.66 → 2.1.68

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.
@@ -1,5 +1,6 @@
1
1
  module.exports = [{
2
2
  id:{type:String,default:''}, //unique for THIS checklist
3
+ coid:{type:String,default:''},
3
4
  hhid:{type:String,default:''},
4
5
  work:{type:String,default:""}, //just an array of work.id
5
6
  custcode:{type:String,default:''},
@@ -21,7 +21,7 @@ module.exports = [
21
21
  createDate: { type: String, default: '' },
22
22
  lastTransaction: { type: String, default: '' },
23
23
  lastInteraction: { type: String, default: '' },
24
- contacts:{type:Array,default:[]},
24
+ contacts:{type:Array,default:[]}, //remove
25
25
  lead:{type:String,default:''},
26
26
  salesRep: { type: String, default: '' }
27
27
  }
@@ -4,14 +4,14 @@
4
4
  */
5
5
  module.exports = [{
6
6
  hhid: { type: String, default: '' },
7
-
7
+ type: {type:String,default:''},//COM | RES
8
8
  street: { type: String, default: '' },
9
9
  unit: { type: String, default: '' },
10
10
  city: { type: String, default: '' },
11
11
  state: { type: String, default: '' },
12
12
  zip: { type: String, default: '' },
13
13
 
14
- jonascode: {type:String, default:''}, //new add
14
+ jonascodes: {type:Array, default:[]}, //new add
15
15
  custid: { type: String, default: '' }, //phone number
16
16
  occupant: { type: String, default: '' },
17
17
  billTo: { type: Boolean, default: false },
@@ -75,4 +75,15 @@ module.exports = [{
75
75
  froot: { type: String, default: '' }
76
76
  },
77
77
  { minimize: false }
78
- ]
78
+ ]
79
+ /**
80
+ * jonascodes = [{coid:{type:String,default:''},dept:{type:String,default:''}}]
81
+ *
82
+ * contacts = [
83
+ * {
84
+ * role:{type:String,default:''},
85
+ * phone:{type:String,default:''},
86
+ * email:{type:String,default:''}
87
+ * }
88
+ * ]
89
+ */
@@ -8,15 +8,19 @@ module.exports = [
8
8
  {
9
9
  id:{type:String,default:''},
10
10
  hhid:{type: String, default:''},
11
+ custid:{type: String, default:''},//person calling in, could be the occupant
12
+ clientfirst:{type:String, default:''},
13
+ clientlast:{type:String, default:''},
14
+
11
15
  status:{type:String,default:'CHILD'}, //PARENT | CHILD
12
16
  parent:{type:String,default:''},
13
17
  children:{type:Array,default:[]},
14
- custid:{type: String, default:''},//person calling in, could be the occupant
15
18
 
16
19
  coid:{type:String,default:''},
17
20
  dept:{type:String,default:''},
18
21
  workid:{type: String, default:''},//blank until converted TO work (opportunity)
19
22
  type:{type: String, default: '' },//PROJECT | SERVICE | MEMBERSHIP
23
+ revenue:{type:Number,default:0},
20
24
 
21
25
  salesRep:{type: String, default:''},
22
26
  tags:{type: Array, default:[]},
@@ -33,11 +33,12 @@ const appsetup = {
33
33
  canContactClient:false
34
34
  },
35
35
  projects:{
36
+ types:[], //HVAC,WINDOW,ENVELOPE
36
37
  canCreate:false,
37
38
  canEdit:false,
38
39
  canRemove:false,
39
40
  canApprove:false,
40
- canQuote:false,
41
+ canQuote:false,//trim
41
42
  canPayCommission:false
42
43
  },
43
44
  service:{
@@ -26,6 +26,7 @@ module.exports=[
26
26
  departments:[]
27
27
  },
28
28
  home:{
29
+ type:[],//COM | RES
29
30
  favorites:[],
30
31
  links:[],
31
32
  carousel:[]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vhp-mongo-models",
3
- "version": "2.1.66",
3
+ "version": "2.1.68",
4
4
  "productName": "VHP Mongo Models",
5
5
  "description": "Mongo Models library to setup Mongoose Schemas",
6
6
  "author": "VHPim",