vhp-mongo-models 2.1.61 → 2.1.62

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,3 +1,4 @@
1
+ //company profiles
1
2
  module.exports=[
2
3
  {
3
4
  coid: { type: String, default: '' },
@@ -5,5 +5,6 @@ module.exports = {
5
5
  Home:new Schema(...require('./schemas/home.js')),
6
6
  ServiceItem:new Schema(...require('./schemas/serviceitem.js')),
7
7
  SIupdate:new Schema(...require('./schemas/siupdate.js')),
8
- Checklist:new Schema(...require('./schemas/checklist.js'))
8
+ Checklist:new Schema(...require('./schemas/checklist.js')),
9
+ Lead:new Schema(...require('./schemas/lead.js'))
9
10
  }
@@ -0,0 +1,35 @@
1
+ /**
2
+ * notes = [{
3
+ * takenby:{type:String, default:''},
4
+ * note:{type:String, default:''}
5
+ * }]
6
+ */
7
+ module.exports = [
8
+ {
9
+ id:{type:String,default:''},
10
+ hhid:{type: String, default:''},
11
+ custid:{type: String, default:''},
12
+ workid:{type: String, default:''},//blank until converted TO work
13
+ type:{type: String, default: '' },//PROJECT | SERVICE | MEMBERSHIP
14
+ result:{type: String, default:'ACTIVE'},//SOLD | CANCELED | NOBUY | REMOVED
15
+ salesRep:{type: String, default:''},
16
+ takenBy:{type:String, default:''},
17
+ takenDate:{type:String, default:''},
18
+
19
+ generator:{type: String, default: '' },//step 1 (wonum | webform)
20
+ source:{type: String, default: '' }, //optional (user | billboard)
21
+
22
+ desc:{type:String,default:''},
23
+ notes:{type:Array, default:[]},
24
+
25
+ apptid:{type:String, default:''},
26
+ apptdate:{type: Date, default: '' },// desired OR real date of visit
27
+
28
+ time:{type: String, default: '' }, //time of day
29
+ prstdate:{type: Date, default: '' },
30
+ carryover:{type: Date, default: '' },
31
+ prstvia:{type: String, default: '' },
32
+ rewards:{type: Boolean, default: false },
33
+
34
+ }
35
+ ]
@@ -0,0 +1,5 @@
1
+ module.exports = [
2
+ {
3
+
4
+ }
5
+ ]
@@ -7,5 +7,6 @@ module.exports = {
7
7
  SpiffReport:new Schema(...require('./schemas/spiffreport.js')),
8
8
  ChecklistForm:new Schema(...require('./schemas/checklistform.js')),
9
9
  ChecklistField:new Schema(...require('./schemas/checklistfield.js')),
10
- ChecklistCalc:new Schema(...require('./schemas/checklistcalc.js'))
10
+ ChecklistCalc:new Schema(...require('./schemas/checklistcalc.js')),
11
+ Membership:new Schema(...require('./schemas/membership.js'))
11
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vhp-mongo-models",
3
- "version": "2.1.61",
3
+ "version": "2.1.62",
4
4
  "productName": "VHP Mongo Models",
5
5
  "description": "Mongo Models library to setup Mongoose Schemas",
6
6
  "author": "VHPim",