vhp-mongo-models 2.1.5 → 2.1.61

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.
@@ -26,5 +26,7 @@ module.exports = {
26
26
  Employee:Employee,
27
27
  Device:Device,
28
28
  SIM:new Schema(...require('./schemas/sim.js')),
29
- Account:new Schema(...require('./schemas/account.js'))
29
+ Account:new Schema(...require('./schemas/account.js')),
30
+ Profile:new Schema(...require('./schemas/profiles.js')),
31
+ Department:new Schema(...require('./schemas/department.js'))
30
32
  }
@@ -0,0 +1,8 @@
1
+ module.exports=[
2
+ {
3
+ code: {type:String,default:''},
4
+ name: { type: String, default: '' },
5
+ coid: { type: String, default: '' },
6
+ types: {type:Array,default:[]}
7
+ }
8
+ ]
@@ -16,7 +16,8 @@ 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:''},
19
+ //type:{type:String,default:''},
20
+ type:{type:Array,default:[]},
20
21
  teams: { type: Array, default: '' }, //remove
21
22
  jobDesc: { type: String, default: '' },
22
23
 
@@ -0,0 +1,9 @@
1
+ module.exports=[
2
+ {
3
+ coid: { type: String, default: '' },
4
+ name: { type: String, default: '' },
5
+ departments: { type: Array, default: []},
6
+ owners: { type: Array,default:[]},
7
+ admin:{type:Array,default:[]}
8
+ }
9
+ ]
@@ -32,6 +32,7 @@ let conform = {
32
32
  let ticketFinal = {
33
33
  showReplacement:{type:Boolean,default:false},
34
34
  summary:{type:Object,default:{}}, //a static version of the presentation
35
+ approved:{type:Array,default:[]},
35
36
  conform:conform,
36
37
  invoice:ticketInvoice,
37
38
  signature:{type:String,default:''},
@@ -52,11 +53,16 @@ let ticketFinal = {
52
53
  module.exports = ticketFinal
53
54
 
54
55
  /*
56
+ approved = [{
57
+ name:{type:String,default:''},
58
+ date:{type:Date,default:''},
59
+ signature:{type:String,default:''}
60
+ }]
61
+
55
62
  timelog = {
56
63
  <tech>:[{driveTime,startTime,endTime}]
57
64
  }
58
- */
59
- /*
65
+
60
66
  summary = {
61
67
  approved:{
62
68
  name:{type:String,default:''},
@@ -19,14 +19,14 @@ module.exports = {
19
19
  conref:{type:String,default:''},
20
20
  ref:{type:String,default:''},
21
21
  pricebook:{type:String,default:''},
22
- pricelevel:{type:String,default:''},
22
+ pricelevel:{type:String,default:'STA'},
23
23
  salesrep:{type:String,default:''},
24
24
  tech:{type:String,default:''},
25
- datecall:{type:Date,default:''},
25
+ datecall:{type:Date,default:Date.now},
26
26
  timecall:{type:String,default:''},
27
27
  dateorder:{type:Date,default:''},
28
28
  timeorder:{type:String,default:''},
29
- dateschedule:{type:Date,default:''},
29
+ dateschedule:{type:Date,default:Date.now},
30
30
  timeschedule:{type:String,default:''},
31
31
  datearrival:{type:Date,default:''},
32
32
  timearrival:{type:String,default:''},
@@ -49,9 +49,11 @@ const ticketFinal = require('./final.js')
49
49
  }
50
50
  */
51
51
  module.exports = {
52
- id: { type: String, default: '' },
52
+ id: { type: String, default: '' }, // <00><wonum>
53
53
  ref: { type: Object, default: {} },
54
54
  custid: {type:String, default:''},
55
+ coid:{type:String,default:''},
56
+ wonum:{type:String,default:''}, //the wonum from jonas. relative to the the company
55
57
  cat:{type:String,default:''}, //converted cat from jonas. Orginal cat can be found in wo.cat
56
58
  dept:{type:String,default:''},
57
59
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vhp-mongo-models",
3
- "version": "2.1.5",
3
+ "version": "2.1.61",
4
4
  "productName": "VHP Mongo Models",
5
5
  "description": "Mongo Models library to setup Mongoose Schemas",
6
6
  "author": "VHPim",