vhp-mongo-models 1.3.7 → 1.3.9

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,16 +10,19 @@ module.exports=[
10
10
  empID: { type: String, default: '' },
11
11
  name: { type: String, default: '' }, //get ride of redundant
12
12
  type: { type: String, default: '' },
13
+ group: {type:String,default:''}, //tags as an array of custom whatever
14
+ active:{type:Boolean,default:true},
15
+
13
16
  manf: { type: String, default: '' },
14
17
  model: { type: String, default: '' },
15
- group: {type:String,default:''}, //tags as an array of custom whatever
16
18
  serial: { type: String, default: '' },
19
+
17
20
  line: { type:String, default:'' },
18
21
  simRef: { type: String, default: '' }, //relace with line
19
22
  imei:{type:String,default:''},
23
+
20
24
  userName: { type: String, default: '' },
21
25
  userLock: { type: String, default: '' },
22
- active:{type:Boolean,default:true},
23
26
  lock: { type: String, default: '' },
24
27
  purchasePrice: { type: Number, default: 0 },
25
28
  purchaseDate: { type: Date, default: '' },
@@ -27,7 +30,6 @@ module.exports=[
27
30
  notes:{type:String,default:''}
28
31
  },{
29
32
  toJSON: { virtuals: true },
30
- toObject: { virtuals: true },
31
- strictQuery: false
33
+ toObject: { virtuals: true }
32
34
  }
33
35
  ]
@@ -16,7 +16,7 @@ module.exports=[
16
16
  dept: {type:String,default:''},
17
17
  repTo: { type: String, default: '' }, // empID
18
18
  title: { type: String, default: '' },
19
- type: { type: String, default: '' }, //remove
19
+ teams: { type: Array, default: '' }, //remove
20
20
  jobDesc: { type: String, default: '' },
21
21
 
22
22
  skills: { type: String, default: '' },
@@ -27,7 +27,12 @@ module.exports=[
27
27
  bday: { type: Date, default: '' },
28
28
  interest: { type: String, default: '' },
29
29
  picture: { type: String, default: '' },
30
- contact: { type: String, default:'' }
30
+ contact: { type: Object, default:{
31
+ email:'',
32
+ cell:'',
33
+ desk:'',
34
+ ext:''
35
+ }}
31
36
  }, {
32
37
  toJSON: { virtuals: true },
33
38
  toObject: { virtuals: true },
@@ -8,6 +8,8 @@ module.exports = [
8
8
  {
9
9
  coid:{type:String,default:''},
10
10
  custCode : {type:String,default:''},
11
+ type:{type:String,default:'Owner'}, // Owners | Occupants
12
+ billTo:{type:String,default:''},
11
13
  custName:{type:String,default:''},
12
14
  clientfirst: { type: String, default: '' },
13
15
  clientlast: { type: String, default: '' },
@@ -16,9 +18,11 @@ module.exports = [
16
18
  phone2: { type: String, default: '' },
17
19
  email: { type: String, default: '' },
18
20
  linked: { type: Boolean, default:true},
19
- billto: {type:String, default:''}, //holding the hhid
20
21
  createDate: { type: String, default: '' },
21
22
  lastTransaction: { type: String, default: '' },
23
+ lastInteraction: { type: String, default: '' },
24
+ contacts:{type:Array,default:[]},
25
+ lead:{type:String,default:''},
22
26
  salesRep: { type: String, default: '' }
23
27
  }
24
28
  ]
@@ -7,12 +7,17 @@
7
7
  module.exports = [
8
8
  {
9
9
  hhid:{type:String,default:''},
10
+
10
11
  street:{type:String,default:''},
11
12
  unit:{type:String,default:''},
12
13
  city:{type:String,default:''},
13
14
  state:{type:String,default:''},
14
15
  zip:{type:String,default:''},
15
- contacts:{type:Array,default:[]},
16
+
17
+ custid:{type:String,default:''},
18
+ occupant:{type:String,default:''},
19
+ billTo:{type:Boolean,default:false},
20
+
16
21
  location:{type:Object,default:{
17
22
  building_id:'',
18
23
  gers:null,
@@ -24,13 +29,10 @@ module.exports = [
24
29
  }
25
30
  }
26
31
  },
27
- custid:{type:String,default:''},
28
32
  utilities:{type:Object,default:{
29
33
  eleccomp:'',
30
34
  gascomp:''
31
35
  }},
32
- activeProjects:{type:Array,default:[]},
33
- activeService:{type:Array,default:[]},
34
36
  measurements:{type:Object,default:{}},
35
37
  features:{
36
38
  elecService:{
@@ -67,7 +69,6 @@ module.exports = [
67
69
  rooms:{type:Number,default:0}
68
70
  },
69
71
  spaces:{type:Array,default:[]},
70
- systems:{type:Array,default:[]},
71
72
  froot:{type:String,default:''}
72
73
  }
73
74
  ]
@@ -7,7 +7,7 @@ module.exports = [
7
7
  {
8
8
  id: { type: String, default: '' },
9
9
  ref: { type: Object, default: {} },
10
- status: { type: String, default: 'active' }, // active, archived, invoice,
10
+ status: { type: String, default: 'active' },
11
11
  techs: { type: Array, default: [] },
12
12
  custid: {type:String, default:''},
13
13
  cat:{type:String,default:''},
@@ -7,15 +7,15 @@ module.exports = [
7
7
  {
8
8
  id: { type: String, default: '' },
9
9
  ref: { type: Object, default: {} },
10
- status: { type: String, default: 'active' }, // active, archived, invoice,
10
+ status: { type: String, default: 'complete' }, // active, complete, archived
11
11
  techs: { type: Array, default: [] },
12
12
  custid: {type:String, default:''},
13
13
  cat:{type:String,default:''},
14
14
  dept:{type:String,default:''},
15
15
  hhid:{type:String,default:''},
16
+ documents: { type: Array, default: [] },
16
17
 
17
18
  ...aaddress,
18
- documents: { type: Array, default: [] },
19
19
 
20
20
  checks: { type: Array, default: [] },
21
21
  conform: { type: Object, default: {} },
@@ -23,13 +23,13 @@ let ticketFinal = new Schema({
23
23
  emailed:{type:Boolean,default:false},
24
24
  officeSubmit:{type:String,default:''},
25
25
  paymentMethod:{type:String,default:''},
26
- returnVisit:{type:String,default:false},
26
+ returnVisit:{type:Boolean,default:false},
27
27
  returnNotes:{type:String,default:''},
28
28
  addlDetails:{type:String,default:''},
29
29
  serviceReferral:{type:Boolean,default:false},
30
30
  ticketTime:ticketTime,
31
31
  timelog:{type:Object,default:{}},
32
- completedBy:{type:Array,default:''}
32
+ completedBy:{type:Array,default:[]}
33
33
  })
34
34
 
35
35
  module.exports = ticketFinal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vhp-mongo-models",
3
- "version": "1.3.7",
3
+ "version": "1.3.9",
4
4
  "productName": "VHP Mongo Models",
5
5
  "description": "Mongo Models library to setup Mongoose Schemas",
6
6
  "author": "VHPim",