scheduler-models 1.3.16 → 1.3.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scheduler-models",
3
- "version": "1.3.16",
3
+ "version": "1.3.17",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "files": [
@@ -1066,7 +1066,7 @@ class Employee {
1066
1066
  answer = new leaverequest_1.LeaveRequest({
1067
1067
  id: id,
1068
1068
  employeeid: this.id,
1069
- requestdate: new Date(),
1069
+ requestDate: new Date(),
1070
1070
  primarycode: code,
1071
1071
  startdate: start,
1072
1072
  enddate: end,
@@ -13,7 +13,7 @@ export declare class LeaveRequestComment implements ILeaveRequestComment {
13
13
  export interface ILeaveRequest {
14
14
  id: string;
15
15
  employeeid: string;
16
- requestdate: Date;
16
+ requestDate: Date;
17
17
  primarycode: string;
18
18
  startdate: Date;
19
19
  enddate: Date;
@@ -26,7 +26,7 @@ export interface ILeaveRequest {
26
26
  export declare class LeaveRequest implements ILeaveRequest {
27
27
  id: string;
28
28
  employeeid: string;
29
- requestdate: Date;
29
+ requestDate: Date;
30
30
  primarycode: string;
31
31
  startdate: Date;
32
32
  enddate: Date;
@@ -20,7 +20,7 @@ exports.LeaveRequestComment = LeaveRequestComment;
20
20
  class LeaveRequest {
21
21
  id;
22
22
  employeeid;
23
- requestdate;
23
+ requestDate;
24
24
  primarycode;
25
25
  startdate;
26
26
  enddate;
@@ -32,7 +32,7 @@ class LeaveRequest {
32
32
  constructor(req) {
33
33
  this.id = (req) ? req.id : '';
34
34
  this.employeeid = (req) ? req.employeeid : '';
35
- this.requestdate = (req) ? new Date(req.requestdate) : new Date();
35
+ this.requestDate = (req) ? new Date(req.requestDate) : new Date();
36
36
  this.primarycode = (req) ? req.primarycode : 'V';
37
37
  this.startdate = (req) ? new Date(req.startdate) : new Date();
38
38
  this.enddate = (req) ? new Date(req.enddate) : new Date();
@@ -66,7 +66,7 @@ class LeaveRequest {
66
66
  if (other) {
67
67
  if (this.startdate.getTime() === other.startdate.getTime()) {
68
68
  if (this.enddate.getTime() === other.enddate.getTime()) {
69
- return (this.requestdate.getTime() < other.requestdate.getTime()) ? -1 : 1;
69
+ return (this.requestDate.getTime() < other.requestDate.getTime()) ? -1 : 1;
70
70
  }
71
71
  return (this.enddate.getTime() < other.enddate.getTime()) ? -1 : 1;
72
72
  }