vhp-mongo-models 2.1.98 → 2.1.991

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.
@@ -17,11 +17,12 @@ module.exports = [{
17
17
  tags: { type: Array, default: [] },
18
18
 
19
19
  title: { type: String, default: '' },
20
- desc: { type: String, default: '' },
20
+ descr: { type: String, default: '' },
21
21
  attendees: { type: Array, default: [] }, // array of user names
22
22
 
23
23
  next: { type: Number, default: 0 },//any dates index < activedate are considered closed
24
- dates: { type: Array, default: [] }, // ISOstring?
24
+ dates: { type: Array, default: [] }, // ISOstring
25
+ blocks: { type: Array, default: [] },
25
26
 
26
27
  lead: { type: String, default: '' }, //to tie to the lead
27
28
  ticket: { type: String, defatul: '' },
@@ -1,18 +1,19 @@
1
1
  module.exports = [{
2
- id:{type:String,default:''}, //unique for THIS checklist
3
- name:{type:String,default:''}, //what checklist was used
4
- title:{type:String,default:''},
5
- coid:{type:String,default:''},
6
- hhid:{type:String,default:''},
7
- work:{type:String,default:''}, //work.id
8
- sitems:{type:Array,default:[]}, //of service item ["ids"]
9
- scoring:{
10
- list:{type:Object,default:{}},
11
- score:{type:Object,default:{}},
12
- },
13
- fields:{type:Object,default:{}}, //to hold all of the checklist values
14
- notes:{type:Object,default:{}},//notes matching the field "id"
15
- signature:{type:String,default:''},
16
- tags:{type:Array,default:[]}, //only the tags peformed
17
- categories:{type:Array,default:[]} //the workorder categories
18
- },{minimize:false}]
2
+ id: { type: String, default: '' }, //unique for THIS checklist
3
+ name: { type: String, default: '' }, //what checklist was used
4
+ title: { type: String, default: '' },
5
+ coid: { type: String, default: '' },
6
+ hhid: { type: String, default: '' },
7
+ work: { type: String, default: '' }, //work.id
8
+ datecomplete: { type: Date, default: '' },
9
+ sitems: { type: Array, default: [] }, //of service item ["ids"]
10
+ scoring: {
11
+ list: { type: Object, default: {} },
12
+ score: { type: Object, default: {} },
13
+ },
14
+ fields: { type: Object, default: {} }, //to hold all of the checklist values
15
+ notes: { type: Object, default: {} },//notes matching the field "id"
16
+ signature: { type: String, default: '' },
17
+ tags: { type: Array, default: [] }, //only the tags peformed
18
+ categories: { type: Array, default: [] } //the workorder categories
19
+ }, { minimize: false }]
@@ -9,10 +9,10 @@ module.exports = [
9
9
  id: { type: String, default: '' },
10
10
  hhid: { type: String, default: '' },
11
11
 
12
- agent: {type:String, default:''},
13
- callid: {type:String, default:''},
14
- callresult: {type:String, default:''},
15
-
12
+ agent: { type: String, default: '' },
13
+ callid: { type: String, default: '' },
14
+ callresult: { type: String, default: '' },
15
+
16
16
  phone: { type: String, default: '' }, //this will replace custid
17
17
  phone2: { type: String, default: '' },
18
18
  email: { type: String, default: '' },
@@ -37,7 +37,7 @@ module.exports = [
37
37
  salesRep: { type: String, default: '' },
38
38
  tags: { type: Array, default: [] },
39
39
  result: { type: String, default: 'NEW' },//ACTIVE (when converted) | SOLD | CANCELED | NOBUY | REMOVED
40
-
40
+
41
41
  takenBy: { type: String, default: '' },
42
42
  takenDate: { type: Date, default: Date.now },
43
43
  callTypes: { type: Array, default: [] }, //[{type:String, sub:String}]
@@ -53,10 +53,10 @@ module.exports = [
53
53
  workinfo: { type: Object, default: {} }, //content depending on lead.type
54
54
  desc: { type: String, default: '' },
55
55
  notes: { type: Array, default: [] },
56
-
56
+
57
57
  apptid: { type: String, default: '' },// if an appointment is offically made
58
58
  apptdate: { type: Date, default: Date.now },// desired to be serviced/consulted
59
-
59
+
60
60
  time: { type: String, default: '' }, //time of day
61
61
  prstdate: { type: Date, default: '' },
62
62
  carryover: { type: Date, default: '' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vhp-mongo-models",
3
- "version": "2.1.98",
3
+ "version": "2.1.991",
4
4
  "productName": "VHP Mongo Models",
5
5
  "description": "Mongo Models library to setup Mongoose Schemas",
6
6
  "author": "VHPim",