vhp-mongo-models 2.1.61 → 2.1.63
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.
- package/Company/schemas/employee.js +1 -2
- package/Company/schemas/profiles.js +1 -0
- package/HouseHolds/households.js +2 -1
- package/HouseHolds/schemas/lead.js +35 -0
- package/Service/schemas/membership.js +5 -0
- package/Service/schemas/subs/final.js +2 -2
- package/Service/schemas/subs/ticket.js +9 -0
- package/Service/service.js +2 -1
- package/Systems/schemas/usersetting.js +2 -1
- package/package.json +1 -1
|
@@ -16,8 +16,7 @@ module.exports=[
|
|
|
16
16
|
dept: {type:String,default:''},
|
|
17
17
|
repTo: { type: String, default: '' }, // empID
|
|
18
18
|
title: { type: String, default: '' },
|
|
19
|
-
|
|
20
|
-
type:{type:Array,default:[]},
|
|
19
|
+
type:{type:String,default:''},
|
|
21
20
|
teams: { type: Array, default: '' }, //remove
|
|
22
21
|
jobDesc: { type: String, default: '' },
|
|
23
22
|
|
package/HouseHolds/households.js
CHANGED
|
@@ -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
|
+
]
|
|
@@ -6,6 +6,7 @@ const ticketFinal = require('./final.js')
|
|
|
6
6
|
[
|
|
7
7
|
<user>:{
|
|
8
8
|
name:{type:String,default:''},
|
|
9
|
+
coid:{type:String,default:''},
|
|
9
10
|
assigned:{
|
|
10
11
|
<sitem.id>:{
|
|
11
12
|
id:{type:String,default:''}, //the service item id
|
|
@@ -20,11 +21,17 @@ const ticketFinal = require('./final.js')
|
|
|
20
21
|
}]}
|
|
21
22
|
}
|
|
22
23
|
}]},
|
|
24
|
+
|
|
25
|
+
//for activetickets
|
|
23
26
|
driveTime:{type:Date,default:''},
|
|
24
27
|
startTime:{type:Date,default:''},
|
|
25
28
|
endTime:{type:Date,default:''},
|
|
26
29
|
adjustTime:{type:Number,default:0},
|
|
30
|
+
|
|
31
|
+
//for completetickets
|
|
32
|
+
totalDrive:{type:Number,default:0},
|
|
27
33
|
totalTime:{type:Number,default:0},
|
|
34
|
+
|
|
28
35
|
complete:{type:Boolean,default:false},
|
|
29
36
|
revenue:{
|
|
30
37
|
perHour:{type:Number,default:0}, //techs revenue per hour based on their repairs
|
|
@@ -59,6 +66,8 @@ module.exports = {
|
|
|
59
66
|
|
|
60
67
|
techs: { type: Array, default: [] },
|
|
61
68
|
techinfo: {type:Object, default:{}}, //hold all info on techs involved
|
|
69
|
+
timelog: {type:Array, default:[]},
|
|
70
|
+
|
|
62
71
|
salesrep:{type:String,default:''},
|
|
63
72
|
|
|
64
73
|
hhid:{type:String,default:''},
|
package/Service/service.js
CHANGED
|
@@ -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
|
}
|
|
@@ -13,7 +13,8 @@ module.exports=[
|
|
|
13
13
|
profile:{type:String,default:''},//optional to connect to a UserProfile
|
|
14
14
|
|
|
15
15
|
...userSetup, //holds all lists and switchs. can be overwritten by profile
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
types:{type:Array,default:[]}, //'TECH', 'CONSULTANT', 'CSR', 'DISPATCH', '
|
|
17
18
|
preferences:{type:Object,default:{//to hold items "tweakable" from the portal
|
|
18
19
|
system:{
|
|
19
20
|
darkMode:false,
|