vhp-mongo-models 2.1.73 → 2.1.75

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.
@@ -18,6 +18,7 @@ module.exports = [
18
18
  lastTransaction: { type: String, default: '' },
19
19
  lastInteraction: { type: String, default: '' },
20
20
  salesRep: { type: String, default: '' },
21
+ notes: {type: String, default:''},
21
22
 
22
23
  //remove
23
24
  contactName:{type:String,default:''},
@@ -16,6 +16,8 @@ module.exports = [{
16
16
  jonascodes: {type:Array, default: []}, //new add
17
17
  billto: {type:Boolean,default: false}, //if it is a billing address for other homes
18
18
  salesRep:{type:String,default:''},
19
+
20
+ notes:{type:String,default:''},
19
21
 
20
22
  location: {
21
23
  type: Object, default: {
@@ -35,7 +35,7 @@ module.exports = [
35
35
  id:{type:String, default:''},
36
36
  coid:{type:String, default:''},
37
37
  dept:{type:String, default:''},
38
- type:{type:String, default:''} //SERVICE | PROJECTS | MEMBERSHIPS
38
+ type:{type:String, default:''} //SERVICE | PROJECT | MEMBERSHIP
39
39
  },
40
40
  desc:{type:String,default:''},
41
41
  notes:{type:Array, default:[]},
@@ -48,5 +48,6 @@ module.exports = [
48
48
  carryover:{type: Date, default: '' },
49
49
  prstvia:{type: String, default: '' },
50
50
  rewards:{type: Boolean, default: false }
51
- }
51
+ },
52
+ {minimize:false}
52
53
  ]
@@ -2,11 +2,11 @@ module.exports = [
2
2
  {
3
3
  //VHP ADD fields
4
4
  hhid:{type:String,default:''}, //must have a hhid
5
+ coid:{type:String,default:''},//need to link from JONAS
5
6
  group:{type:String,default:''},//names the type of product it is. Would like to use this instead of type
6
7
  considerreplace:{type:Date,default:''},
7
8
  quantity:{type:Number,default:1}, //optional qty
8
9
  notes:{type:Array,default:[]},// for better history {tech:'',date:'',ticketId:''}
9
- edits:{type:Object,defualt:{}}, //to track all of the fields that have been changed since sync
10
10
  tags:{type:Array,default:[]},
11
11
 
12
12
  //JONAS props
@@ -45,6 +45,7 @@ module.exports = [
45
45
  filt3q:{type:String,default:''}
46
46
 
47
47
 
48
+ // edits:{type:Object,defualt:{}}, //to track all of the fields that have been changed since sync
48
49
  // system:{type:String,default:''}, //way to link related service items
49
50
  // space:{type:String,default:''},
50
51
  // subspace:{type:String,default:''},
@@ -54,7 +54,8 @@ let info = {
54
54
  * - id - {unique:true,name:"id"}
55
55
  */
56
56
  module.exports = [
57
- {
57
+ {
58
+ cleanTag: {type:Object,default:{}},
58
59
  id: { type: String, default: '' },
59
60
  name: { type: String, default: '' },
60
61
  coid: { type: String, default: '' },
@@ -34,7 +34,6 @@ let ticketFinal = {
34
34
  approved:{type:Array,default:[]},
35
35
  conform:conform,
36
36
  invoice:ticketInvoice,
37
- signature:{type:String,default:''},
38
37
  emailed:{type:Array,default:[]}, //was boolean
39
38
  returnVisit:{type:String,default:''}, //change to String, and attach return ticket id
40
39
  returnNotes:{type:String,default:''},
@@ -48,6 +47,7 @@ let ticketFinal = {
48
47
  serviceReferral:{type:Boolean,default:false}, //may not need
49
48
 
50
49
 
50
+ // signature:{type:String,default:''},
51
51
  // officeSubmit:{type:String,default:''},
52
52
  //addlDetails:{type:String,default:''},
53
53
  //timelog:{type:Object,default:{}},
@@ -6,6 +6,8 @@ module.exports = {
6
6
  contactemail:{type:String,default:''},
7
7
  customername:{type:String,default:''},
8
8
  descr:{type:String,default:''},
9
+ dispatchnotes:{type:String,default:''},
10
+ technotes:{type:String,default:''},
9
11
  street:{type:String,default:''},
10
12
  cityzip:{type:String,default:''},
11
13
  unit:{type:String,default:''},
@@ -83,7 +83,7 @@ module.exports = {
83
83
  logs:{type:Array,default:[]}, //match with project datelog. Would like it to stay as "logs" though
84
84
 
85
85
  //Remove
86
- contract: { type: Object, default: {} }, // the contract attached to the client. Should move off of WO into separate query
86
+ // contract: { type: Object, default: {} }, // the contract attached to the client. Should move off of WO into separate query
87
87
  // office: { type: Object, default: {} },//any todo items for the office
88
88
  // field: {type:Object,default:{}},//any todo items for the field
89
89
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vhp-mongo-models",
3
- "version": "2.1.73",
3
+ "version": "2.1.75",
4
4
  "productName": "VHP Mongo Models",
5
5
  "description": "Mongo Models library to setup Mongoose Schemas",
6
6
  "author": "VHPim",