scheduler-node-models 1.2.123 → 1.2.124

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.
Files changed (209) hide show
  1. package/config/index.js +1 -0
  2. package/config/index.js.map +1 -0
  3. package/config/logPosting.js +1 -0
  4. package/config/logPosting.js.map +1 -0
  5. package/config/logging.js +1 -2
  6. package/config/logging.js.map +1 -0
  7. package/config/mongoconnect.js +1 -1
  8. package/config/mongoconnect.js.map +1 -0
  9. package/config/sqldb.js +2 -34
  10. package/config/sqldb.js.map +1 -0
  11. package/general/emailer.js +3 -5
  12. package/general/emailer.js.map +1 -0
  13. package/general/general.d.ts +0 -3
  14. package/general/general.js +1 -0
  15. package/general/general.js.map +1 -0
  16. package/general/index.js +1 -0
  17. package/general/index.js.map +1 -0
  18. package/general/logger.js +2 -34
  19. package/general/logger.js.map +1 -0
  20. package/general/logs.d.ts +0 -30
  21. package/general/logs.js +1 -24
  22. package/general/logs.js.map +1 -0
  23. package/general/notices.d.ts +0 -15
  24. package/general/notices.js +1 -11
  25. package/general/notices.js.map +1 -0
  26. package/general/report.js +1 -0
  27. package/general/report.js.map +1 -0
  28. package/general/viewstate.js +1 -0
  29. package/general/viewstate.js.map +1 -0
  30. package/index.js +1 -1
  31. package/index.js.map +1 -0
  32. package/metrics/images.d.ts +0 -6
  33. package/metrics/images.js +1 -3
  34. package/metrics/images.js.map +1 -0
  35. package/metrics/index.js +1 -0
  36. package/metrics/index.js.map +1 -0
  37. package/metrics/mission.d.ts +0 -6
  38. package/metrics/mission.js +1 -3
  39. package/metrics/mission.js.map +1 -0
  40. package/metrics/missionSensorOutage.js +1 -0
  41. package/metrics/missionSensorOutage.js.map +1 -0
  42. package/metrics/missionsensor.d.ts +0 -22
  43. package/metrics/missionsensor.js +1 -19
  44. package/metrics/missionsensor.js.map +1 -0
  45. package/metrics/outage.d.ts +0 -8
  46. package/metrics/outage.js +1 -5
  47. package/metrics/outage.js.map +1 -0
  48. package/metrics/systemdata/classifications.d.ts +0 -6
  49. package/metrics/systemdata/classifications.js +1 -3
  50. package/metrics/systemdata/classifications.js.map +1 -0
  51. package/metrics/systemdata/communications.d.ts +0 -6
  52. package/metrics/systemdata/communications.js +1 -3
  53. package/metrics/systemdata/communications.js.map +1 -0
  54. package/metrics/systemdata/dcgs.d.ts +0 -7
  55. package/metrics/systemdata/dcgs.js +1 -3
  56. package/metrics/systemdata/dcgs.js.map +1 -0
  57. package/metrics/systemdata/exploitations.d.ts +0 -6
  58. package/metrics/systemdata/exploitations.js +1 -3
  59. package/metrics/systemdata/exploitations.js.map +1 -0
  60. package/metrics/systemdata/groundSystems.d.ts +0 -46
  61. package/metrics/systemdata/groundSystems.js +1 -39
  62. package/metrics/systemdata/groundSystems.js.map +1 -0
  63. package/metrics/systemdata/index.js +1 -0
  64. package/metrics/systemdata/index.js.map +1 -0
  65. package/metrics/systemdata/platform.d.ts +0 -49
  66. package/metrics/systemdata/platform.js +1 -37
  67. package/metrics/systemdata/platform.js.map +1 -0
  68. package/metrics/systemdata/systeminfo.d.ts +0 -5
  69. package/metrics/systemdata/systeminfo.js +1 -0
  70. package/metrics/systemdata/systeminfo.js.map +1 -0
  71. package/package.json +1 -1
  72. package/scheduler/employees/assignment.d.ts +2 -103
  73. package/scheduler/employees/assignment.js +1 -102
  74. package/scheduler/employees/assignment.js.map +1 -0
  75. package/scheduler/employees/balance.d.ts +0 -23
  76. package/scheduler/employees/balance.js +1 -19
  77. package/scheduler/employees/balance.js.map +1 -0
  78. package/scheduler/employees/companyinfo.d.ts +0 -7
  79. package/scheduler/employees/companyinfo.js +1 -4
  80. package/scheduler/employees/companyinfo.js.map +1 -0
  81. package/scheduler/employees/contact.d.ts +0 -22
  82. package/scheduler/employees/contact.js +1 -18
  83. package/scheduler/employees/contact.js.map +1 -0
  84. package/scheduler/employees/employee.d.ts +0 -363
  85. package/scheduler/employees/employee.js +1 -418
  86. package/scheduler/employees/employee.js.map +1 -0
  87. package/scheduler/employees/employeename.d.ts +0 -31
  88. package/scheduler/employees/employeename.js +1 -28
  89. package/scheduler/employees/employeename.js.map +1 -0
  90. package/scheduler/employees/index.js +1 -0
  91. package/scheduler/employees/index.js.map +1 -0
  92. package/scheduler/employees/labor.d.ts +0 -21
  93. package/scheduler/employees/labor.js +1 -18
  94. package/scheduler/employees/labor.js.map +1 -0
  95. package/scheduler/employees/leave.d.ts +0 -35
  96. package/scheduler/employees/leave.js +1 -32
  97. package/scheduler/employees/leave.js.map +1 -0
  98. package/scheduler/employees/leaverequest.d.ts +0 -62
  99. package/scheduler/employees/leaverequest.js +1 -52
  100. package/scheduler/employees/leaverequest.js.map +1 -0
  101. package/scheduler/employees/specialty.d.ts +0 -21
  102. package/scheduler/employees/specialty.js +1 -18
  103. package/scheduler/employees/specialty.js.map +1 -0
  104. package/scheduler/employees/variation.d.ts +0 -61
  105. package/scheduler/employees/variation.js +1 -57
  106. package/scheduler/employees/variation.js.map +1 -0
  107. package/scheduler/employees/web.js +1 -0
  108. package/scheduler/employees/web.js.map +1 -0
  109. package/scheduler/employees/work.d.ts +0 -58
  110. package/scheduler/employees/work.js +1 -46
  111. package/scheduler/employees/work.js.map +1 -0
  112. package/scheduler/employees/workday.d.ts +0 -61
  113. package/scheduler/employees/workday.js +1 -51
  114. package/scheduler/employees/workday.js.map +1 -0
  115. package/scheduler/ingest/excelRow.d.ts +0 -14
  116. package/scheduler/ingest/excelRow.js +1 -4
  117. package/scheduler/ingest/excelRow.js.map +1 -0
  118. package/scheduler/ingest/excelRowIngest.d.ts +0 -7
  119. package/scheduler/ingest/excelRowIngest.js +1 -17
  120. package/scheduler/ingest/excelRowIngest.js.map +1 -0
  121. package/scheduler/ingest/index.js +1 -0
  122. package/scheduler/ingest/index.js.map +1 -0
  123. package/scheduler/ingest/sapIngest.js +1 -9
  124. package/scheduler/ingest/sapIngest.js.map +1 -0
  125. package/scheduler/ingest/web.js +1 -0
  126. package/scheduler/ingest/web.js.map +1 -0
  127. package/scheduler/labor/index.js +1 -0
  128. package/scheduler/labor/index.js.map +1 -0
  129. package/scheduler/labor/laborcode.js +1 -0
  130. package/scheduler/labor/laborcode.js.map +1 -0
  131. package/scheduler/labor/workcode.js +1 -0
  132. package/scheduler/labor/workcode.js.map +1 -0
  133. package/scheduler/sites/index.js +1 -0
  134. package/scheduler/sites/index.js.map +1 -0
  135. package/scheduler/sites/reports/cofsReport.d.ts +0 -16
  136. package/scheduler/sites/reports/cofsReport.js +1 -19
  137. package/scheduler/sites/reports/cofsReport.js.map +1 -0
  138. package/scheduler/sites/reports/forecast.d.ts +0 -28
  139. package/scheduler/sites/reports/forecast.js +1 -37
  140. package/scheduler/sites/reports/forecast.js.map +1 -0
  141. package/scheduler/sites/reports/index.js +1 -0
  142. package/scheduler/sites/reports/index.js.map +1 -0
  143. package/scheduler/sites/reports/period.js +1 -0
  144. package/scheduler/sites/reports/period.js.map +1 -0
  145. package/scheduler/sites/reports/section.d.ts +0 -35
  146. package/scheduler/sites/reports/section.js +1 -34
  147. package/scheduler/sites/reports/section.js.map +1 -0
  148. package/scheduler/sites/reports/web.js +1 -0
  149. package/scheduler/sites/reports/web.js.map +1 -0
  150. package/scheduler/sites/site.d.ts +0 -17
  151. package/scheduler/sites/site.js +1 -14
  152. package/scheduler/sites/site.js.map +1 -0
  153. package/scheduler/sites/web/index.js +1 -0
  154. package/scheduler/sites/web/index.js.map +1 -0
  155. package/scheduler/sites/web/requests.js +1 -0
  156. package/scheduler/sites/web/requests.js.map +1 -0
  157. package/scheduler/sites/workcenters/index.js +1 -0
  158. package/scheduler/sites/workcenters/index.js.map +1 -0
  159. package/scheduler/sites/workcenters/position.d.ts +0 -11
  160. package/scheduler/sites/workcenters/position.js +1 -8
  161. package/scheduler/sites/workcenters/position.js.map +1 -0
  162. package/scheduler/sites/workcenters/shift.d.ts +0 -11
  163. package/scheduler/sites/workcenters/shift.js +1 -8
  164. package/scheduler/sites/workcenters/shift.js.map +1 -0
  165. package/scheduler/sites/workcenters/workcenter.d.ts +0 -22
  166. package/scheduler/sites/workcenters/workcenter.js +1 -21
  167. package/scheduler/sites/workcenters/workcenter.js.map +1 -0
  168. package/scheduler/teams/company/company.d.ts +0 -66
  169. package/scheduler/teams/company/company.js +1 -61
  170. package/scheduler/teams/company/company.js.map +1 -0
  171. package/scheduler/teams/company/holiday.d.ts +0 -38
  172. package/scheduler/teams/company/holiday.js +1 -35
  173. package/scheduler/teams/company/holiday.js.map +1 -0
  174. package/scheduler/teams/company/index.js +1 -0
  175. package/scheduler/teams/company/index.js.map +1 -0
  176. package/scheduler/teams/company/modperiod.d.ts +0 -9
  177. package/scheduler/teams/company/modperiod.js +1 -4
  178. package/scheduler/teams/company/modperiod.js.map +1 -0
  179. package/scheduler/teams/contact.d.ts +0 -6
  180. package/scheduler/teams/contact.js +1 -3
  181. package/scheduler/teams/contact.js.map +1 -0
  182. package/scheduler/teams/index.js +1 -0
  183. package/scheduler/teams/index.js.map +1 -0
  184. package/scheduler/teams/specialty.d.ts +0 -6
  185. package/scheduler/teams/specialty.js +1 -3
  186. package/scheduler/teams/specialty.js.map +1 -0
  187. package/scheduler/teams/team.d.ts +0 -60
  188. package/scheduler/teams/team.js +1 -60
  189. package/scheduler/teams/team.js.map +1 -0
  190. package/scheduler/teams/web.js +1 -0
  191. package/scheduler/teams/web.js.map +1 -0
  192. package/scheduler/web/index.js +1 -0
  193. package/scheduler/web/index.js.map +1 -0
  194. package/scheduler/web/initial.js +1 -0
  195. package/scheduler/web/initial.js.map +1 -0
  196. package/users/index.js +1 -0
  197. package/users/index.js.map +1 -0
  198. package/users/permission.d.ts +0 -3
  199. package/users/permission.js +1 -0
  200. package/users/permission.js.map +1 -0
  201. package/users/question.d.ts +0 -33
  202. package/users/question.js +1 -29
  203. package/users/question.js.map +1 -0
  204. package/users/user.d.ts +0 -109
  205. package/users/user.js +1 -102
  206. package/users/user.js.map +1 -0
  207. package/users/web.d.ts +0 -25
  208. package/users/web.js +1 -0
  209. package/users/web.js.map +1 -0
@@ -1,16 +1,6 @@
1
1
  import { LaborCode } from "../labor/laborcode";
2
2
  import { EmployeeLaborCode, IEmployeeLaborCode } from "./labor";
3
3
  import { ISchedule, Schedule, Workday } from "./workday";
4
- /**
5
- * Assignments are the first level of scheduling. It defines the current normal work
6
- * schedule(s). It should start with the employee's initial hire date and the employee's
7
- * last assignment will have the employee's departure date from the company. Each time an
8
- * employee's schedule permanently changes, a new assignment needs to be created to
9
- * maintain a work history.
10
- */
11
- /**
12
- * This interface defines a work assignment for an employee.
13
- */
14
4
  export interface IAssignment {
15
5
  id: number;
16
6
  site: string;
@@ -22,20 +12,6 @@ export interface IAssignment {
22
12
  rotationdays?: number;
23
13
  laborcodes?: IEmployeeLaborCode[];
24
14
  }
25
- /**
26
- * This class defines an employee's work assignment. The data members are:
27
- * id (numeric value for the key to this assignment)
28
- * site (the string value for the work site within the team)
29
- * workcenter (the string value for the work center the schedule applies to)
30
- * startdate (date object to define the start of the assignment.)
31
- * enddate (date object to define the end of an assignment, to no longer use)
32
- * rotationdate (Optional - defines a base date when multiple schedule are used in an
33
- * assignment, especially for schedules that rotate every ### number of days.)
34
- * rotationdays (Optional - defines the number of days to rotate upon from the base
35
- * rotation date. It must be a multiple of the number of days in the schedule.)
36
- * laborcodes (an array of employeelaborcode objects to define the assigned labor codes
37
- * for consideration)
38
- */
39
15
  export declare class Assignment {
40
16
  id: number;
41
17
  site: string;
@@ -47,93 +23,16 @@ export declare class Assignment {
47
23
  rotationdays?: number;
48
24
  laborcodes: EmployeeLaborCode[];
49
25
  constructor(asgmt?: IAssignment);
50
- /**
51
- * This function is used in sorting of the assignment from others. It used the
52
- * assignment start and end dates for sorting comparison.
53
- * @param other An assignment object to use in comparison
54
- * @returns A numeric value to indicate whether this object is before or after the other
55
- * object. -1 is before, 1 for after or 0 for equal.
56
- */
57
26
  compareTo(other?: Assignment): number;
58
- /**
59
- * This function is used to determine if this assignment should be used at a particular
60
- * site and date.
61
- * @param site The string value of a site designation.
62
- * @param date The date object to compare with the start and end dates.
63
- * @returns The boolean value for whether this assignment is for a site and between
64
- * this start and end dates.
65
- */
66
27
  useSiteAssignment(site: string, date: Date): boolean;
67
- /**
68
- * This function is used to determine if this assignment should be used based on the
69
- * date provided.
70
- * @param date The date object used in comparision
71
- * @returns The boolean value for whether this assignment is between the start and end
72
- * dates.
73
- */
74
28
  useAssignment(date: Date, date2?: Date, labor?: LaborCode): boolean;
75
- /**
76
- * This function will provide the daily standard work day hours, based on a count of
77
- * the schedule's workdays and a 40 hour work week.
78
- * @returns A numeric value for the standard day's work hours.
79
- */
80
29
  getStandardWorkHours(): number;
81
- /**
82
- * This function is used to provide the workday object for a particular date.
83
- * @param date The date object used to find the workday
84
- * @returns A workday object if the schedule can be used or undefined if not.
85
- */
86
30
  getWorkday(date: Date): Workday | undefined;
87
- /**
88
- * This function adds a new schedule with a set number of days in the schedule.
89
- * @param days The numeric value for the number of workday objects within the schedule.
90
- * This must be a multiple of 7.
91
- */
92
- addSchedule(days: number): Error | undefined;
93
- /**
94
- * This function will change the number of workdays within an existing schedule.
95
- * @param schID The numeric value for the schedule's identifier to change.
96
- * @param days The numeric value for the number of workday objects to change the
97
- * schedule to. This must be a multiple of 7.
98
- */
99
- changeScheduleDays(schID: number, days: number): Error | undefined;
100
- /**
101
- * This function is used to completely change a schedule's workday
102
- * @param schID The numeric value to identify the schedule to update
103
- * @param wdID The numeric value to identity which of the schedule's workday to change
104
- * @param wkctr The string value for the new workcenter.
105
- * @param code The string value for the new work code.
106
- * @param hours The numeric valur for the hours to work.
107
- */
31
+ addSchedule(days: number): Error;
32
+ changeScheduleDays(schID: number, days: number): Error;
108
33
  changeWorkday(schID: number, wdID: number, wkctr: string, code: string, hours: number): void;
109
- /**
110
- * This function is used to update a single field in a schedule's workday.
111
- * @param schID The numeric value to identify the schedule to update
112
- * @param wdID The numeric value to identify which of the schedule's workdays to update
113
- * @param field The string value to identify which field within the workday to update
114
- * @param value The string value (string or numeric string) to update the value of the
115
- * data member.
116
- */
117
34
  updateWorkday(schID: number, wdID: number, field: string, value: string): void;
118
- /**
119
- * This function is used to remove a schedule from this assignment. An assignment must
120
- * have a minimum of one schedule, so if removal put the schedule list below 1, a new
121
- * schedule is added and empty.
122
- * @param schid The numeric value key for the schedule to remove.
123
- */
124
35
  removeSchedule(schid: number): void;
125
- /**
126
- * This function will add a new labor code (charge number and extension) to this
127
- * assignment's labor code list.
128
- * @param chgno The string value for the charge number to add
129
- * @param ext The string value for the extension to add
130
- */
131
36
  addLaborCode(chgno: string, ext: string): void;
132
- /**
133
- * This function will remove an employee labor code from the list, based on its
134
- * charge number and extension.
135
- * @param chgno The string value for the charge number to remove
136
- * @param ext The string value for the extension to remove
137
- */
138
37
  removeLaborCode(chgno: string, ext: string): void;
139
38
  }
@@ -3,20 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Assignment = void 0;
4
4
  const labor_1 = require("./labor");
5
5
  const workday_1 = require("./workday");
6
- /**
7
- * This class defines an employee's work assignment. The data members are:
8
- * id (numeric value for the key to this assignment)
9
- * site (the string value for the work site within the team)
10
- * workcenter (the string value for the work center the schedule applies to)
11
- * startdate (date object to define the start of the assignment.)
12
- * enddate (date object to define the end of an assignment, to no longer use)
13
- * rotationdate (Optional - defines a base date when multiple schedule are used in an
14
- * assignment, especially for schedules that rotate every ### number of days.)
15
- * rotationdays (Optional - defines the number of days to rotate upon from the base
16
- * rotation date. It must be a multiple of the number of days in the schedule.)
17
- * laborcodes (an array of employeelaborcode objects to define the assigned labor codes
18
- * for consideration)
19
- */
20
6
  class Assignment {
21
7
  id;
22
8
  site;
@@ -52,13 +38,6 @@ class Assignment {
52
38
  this.laborcodes.sort((a, b) => a.compareTo(b));
53
39
  }
54
40
  }
55
- /**
56
- * This function is used in sorting of the assignment from others. It used the
57
- * assignment start and end dates for sorting comparison.
58
- * @param other An assignment object to use in comparison
59
- * @returns A numeric value to indicate whether this object is before or after the other
60
- * object. -1 is before, 1 for after or 0 for equal.
61
- */
62
41
  compareTo(other) {
63
42
  if (other) {
64
43
  if (this.startDate.getTime() === other.startDate.getTime()) {
@@ -68,26 +47,11 @@ class Assignment {
68
47
  }
69
48
  return -1;
70
49
  }
71
- /**
72
- * This function is used to determine if this assignment should be used at a particular
73
- * site and date.
74
- * @param site The string value of a site designation.
75
- * @param date The date object to compare with the start and end dates.
76
- * @returns The boolean value for whether this assignment is for a site and between
77
- * this start and end dates.
78
- */
79
50
  useSiteAssignment(site, date) {
80
51
  return (this.site.toLowerCase() === site.toLowerCase()
81
52
  && this.startDate.getTime() <= date.getTime()
82
53
  && this.endDate.getTime() >= date.getTime());
83
54
  }
84
- /**
85
- * This function is used to determine if this assignment should be used based on the
86
- * date provided.
87
- * @param date The date object used in comparision
88
- * @returns The boolean value for whether this assignment is between the start and end
89
- * dates.
90
- */
91
55
  useAssignment(date, date2, labor) {
92
56
  let answer = false;
93
57
  if (labor && date2) {
@@ -108,11 +72,6 @@ class Assignment {
108
72
  }
109
73
  return answer;
110
74
  }
111
- /**
112
- * This function will provide the daily standard work day hours, based on a count of
113
- * the schedule's workdays and a 40 hour work week.
114
- * @returns A numeric value for the standard day's work hours.
115
- */
116
75
  getStandardWorkHours() {
117
76
  let count = 0;
118
77
  const sched = this.schedules[0];
@@ -124,23 +83,12 @@ class Assignment {
124
83
  const weeks = Math.floor(sched.workdays.length / 7);
125
84
  return (40.0 * weeks) / count;
126
85
  }
127
- /**
128
- * This function is used to provide the workday object for a particular date.
129
- * @param date The date object used to find the workday
130
- * @returns A workday object if the schedule can be used or undefined if not.
131
- */
132
86
  getWorkday(date) {
133
- // ensure the assignment base date is on a sunday.
134
87
  let start = new Date(this.startDate);
135
88
  while (start.getDay() !== 0) {
136
89
  start = new Date(start.getTime() - (24 * 60 * 60 * 1000));
137
90
  }
138
- // determine the number of days since the base date for the date provided
139
91
  const days = Math.floor((date.getTime() - start.getTime()) / (24 * 3600000));
140
- // determine whether to use a single schedule or to rotate between multiple schedules
141
- // based on rotation date and days. if rotationday is undefined or 0, use single or
142
- // if only one schedule is provided. Else use multiple schedule and rotate between
143
- // them.
144
92
  if (this.schedules.length === 1 || !this.rotationdays || this.rotationdays === 0) {
145
93
  const iDay = days % this.schedules[0].workdays.length;
146
94
  return this.schedules[0].getWorkday(iDay);
@@ -152,11 +100,6 @@ class Assignment {
152
100
  }
153
101
  return undefined;
154
102
  }
155
- /**
156
- * This function adds a new schedule with a set number of days in the schedule.
157
- * @param days The numeric value for the number of workday objects within the schedule.
158
- * This must be a multiple of 7.
159
- */
160
103
  addSchedule(days) {
161
104
  if ((days % 7) !== 0) {
162
105
  return new Error('Schedule days must be multiple of 7');
@@ -167,12 +110,6 @@ class Assignment {
167
110
  newSchedule.setScheduleDays(days);
168
111
  this.schedules.push(newSchedule);
169
112
  }
170
- /**
171
- * This function will change the number of workdays within an existing schedule.
172
- * @param schID The numeric value for the schedule's identifier to change.
173
- * @param days The numeric value for the number of workday objects to change the
174
- * schedule to. This must be a multiple of 7.
175
- */
176
113
  changeScheduleDays(schID, days) {
177
114
  if ((days % 7) !== 0) {
178
115
  return new Error('Schedule must have a multiple of 7 days.');
@@ -183,14 +120,6 @@ class Assignment {
183
120
  }
184
121
  });
185
122
  }
186
- /**
187
- * This function is used to completely change a schedule's workday
188
- * @param schID The numeric value to identify the schedule to update
189
- * @param wdID The numeric value to identity which of the schedule's workday to change
190
- * @param wkctr The string value for the new workcenter.
191
- * @param code The string value for the new work code.
192
- * @param hours The numeric valur for the hours to work.
193
- */
194
123
  changeWorkday(schID, wdID, wkctr, code, hours) {
195
124
  let found = false;
196
125
  for (let s = 0; s < this.schedules.length && !found; s++) {
@@ -205,14 +134,6 @@ class Assignment {
205
134
  throw new Error("Schedule not found!");
206
135
  }
207
136
  }
208
- /**
209
- * This function is used to update a single field in a schedule's workday.
210
- * @param schID The numeric value to identify the schedule to update
211
- * @param wdID The numeric value to identify which of the schedule's workdays to update
212
- * @param field The string value to identify which field within the workday to update
213
- * @param value The string value (string or numeric string) to update the value of the
214
- * data member.
215
- */
216
137
  updateWorkday(schID, wdID, field, value) {
217
138
  let found = false;
218
139
  for (let s = 0; s < this.schedules.length && !found; s++) {
@@ -227,22 +148,13 @@ class Assignment {
227
148
  throw new Error("Schedule not found!");
228
149
  }
229
150
  }
230
- /**
231
- * This function is used to remove a schedule from this assignment. An assignment must
232
- * have a minimum of one schedule, so if removal put the schedule list below 1, a new
233
- * schedule is added and empty.
234
- * @param schid The numeric value key for the schedule to remove.
235
- */
236
151
  removeSchedule(schid) {
237
- // first search the schedule list for the correct schedule to remove.
238
152
  let found = -1;
239
153
  for (let s = 0; s < this.schedules.length && found < 0; s++) {
240
154
  if (this.schedules[s].id === schid) {
241
155
  found = s;
242
156
  }
243
157
  }
244
- // if the schedule is present, remove and check to ensure at least one schedule is
245
- // present.
246
158
  if (found >= 0) {
247
159
  this.schedules.splice(found, 1);
248
160
  if (this.schedules.length === 0) {
@@ -257,14 +169,7 @@ class Assignment {
257
169
  throw new Error('Schedule not found');
258
170
  }
259
171
  }
260
- /**
261
- * This function will add a new labor code (charge number and extension) to this
262
- * assignment's labor code list.
263
- * @param chgno The string value for the charge number to add
264
- * @param ext The string value for the extension to add
265
- */
266
172
  addLaborCode(chgno, ext) {
267
- // first check to see if the charge number and extension is listed in this assignment.
268
173
  let found = false;
269
174
  for (let l = 0; l < this.laborcodes.length && !found; l++) {
270
175
  if (this.laborcodes[l].chargenumber.toLowerCase() === chgno.toLowerCase()
@@ -272,7 +177,6 @@ class Assignment {
272
177
  found = true;
273
178
  }
274
179
  }
275
- // if not found, add it as an employee labor code object.
276
180
  if (!found) {
277
181
  this.laborcodes.push(new labor_1.EmployeeLaborCode({
278
182
  chargenumber: chgno,
@@ -281,12 +185,6 @@ class Assignment {
281
185
  this.laborcodes.sort((a, b) => a.compareTo(b));
282
186
  }
283
187
  }
284
- /**
285
- * This function will remove an employee labor code from the list, based on its
286
- * charge number and extension.
287
- * @param chgno The string value for the charge number to remove
288
- * @param ext The string value for the extension to remove
289
- */
290
188
  removeLaborCode(chgno, ext) {
291
189
  let found = -1;
292
190
  for (let l = 0; l < this.laborcodes.length && !found; l++) {
@@ -302,3 +200,4 @@ class Assignment {
302
200
  }
303
201
  }
304
202
  exports.Assignment = Assignment;
203
+ //# sourceMappingURL=assignment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assignment.js","sourceRoot":"","sources":["../../../src/scheduler/employees/assignment.ts"],"names":[],"mappings":";;;AACA,mCAAgE;AAChE,uCAAyD;AAuCzD,MAAa,UAAU;IACd,EAAE,CAAS;IACX,IAAI,CAAS;IACb,UAAU,CAAS;IACnB,SAAS,CAAO;IAChB,OAAO,CAAO;IACd,SAAS,CAAa;IACtB,YAAY,CAAQ;IACpB,YAAY,CAAU;IACtB,UAAU,CAAsB;IAEvC,YAAY,KAAmB;QAC7B,IAAI,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QACjC,IAAI,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;QACtC,IAAI,CAAC,UAAU,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;QAClD,IAAI,CAAC,SAAS,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;QACnE,IAAI,CAAC,OAAO,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;QACpF,IAAI,CAAC,SA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CAAC;IAQD,eAAe,CAAC,KAAa,EAAE,GAAW;QACxC,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC;QACf,KAAK,IAAI,CAAC,GAAC,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC;YACxD,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,WAAW,EAAE,KAAK,KAAK,CAAC,WAAW,EAAE;mBACpE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,WAAW,EAAE,KAAK,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC;gBACtE,KAAK,GAAG,CAAC,CAAC;YACZ,CAAC;QACH,CAAC;QACD,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;YACf,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;YACjC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;QAChD,CAAC;IACH,CAAC;CACF;AAtSD,gCAsSC"}
@@ -1,35 +1,12 @@
1
- /**
2
- * Leave balance is used to keep track of the number of hours of ordinary leave (PTO or
3
- * vacation) remains in an employee's year.
4
- */
5
- /**
6
- * This interface describes a Leave balance of annual hours and number of hours to carry
7
- * from previous year to next.
8
- */
9
1
  export interface IAnnualLeave {
10
2
  year: number;
11
3
  annual: number;
12
4
  carryover: number;
13
5
  }
14
- /**
15
- * This class describes an annual leave and carry hours. The data members are:
16
- * year (the numeric value for the year it represents)
17
- * annual (the numeric value (float) for the number of hours the employee earns in a full
18
- * year).
19
- * carryover (the numeric value (float) for the number of hours the employee didn't use
20
- * in the previous year and carried forward to this year)
21
- */
22
6
  export declare class AnnualLeave implements IAnnualLeave {
23
7
  year: number;
24
8
  annual: number;
25
9
  carryover: number;
26
10
  constructor(anLeave?: IAnnualLeave);
27
- /**
28
- * This function is used in sorting between this balance and another. It is based on
29
- * the year.
30
- * @param other The balance object to be used in comparison
31
- * @returns A numeric value to indicate whether this object is before or after the other
32
- * object. -1 is before or 1 for after.
33
- */
34
11
  compareTo(other?: AnnualLeave): number;
35
12
  }
@@ -1,18 +1,6 @@
1
1
  "use strict";
2
- /**
3
- * Leave balance is used to keep track of the number of hours of ordinary leave (PTO or
4
- * vacation) remains in an employee's year.
5
- */
6
2
  Object.defineProperty(exports, "__esModule", { value: true });
7
3
  exports.AnnualLeave = void 0;
8
- /**
9
- * This class describes an annual leave and carry hours. The data members are:
10
- * year (the numeric value for the year it represents)
11
- * annual (the numeric value (float) for the number of hours the employee earns in a full
12
- * year).
13
- * carryover (the numeric value (float) for the number of hours the employee didn't use
14
- * in the previous year and carried forward to this year)
15
- */
16
4
  class AnnualLeave {
17
5
  year;
18
6
  annual;
@@ -22,13 +10,6 @@ class AnnualLeave {
22
10
  this.annual = (anLeave) ? anLeave.annual : 0.0;
23
11
  this.carryover = (anLeave) ? anLeave.carryover : 0.0;
24
12
  }
25
- /**
26
- * This function is used in sorting between this balance and another. It is based on
27
- * the year.
28
- * @param other The balance object to be used in comparison
29
- * @returns A numeric value to indicate whether this object is before or after the other
30
- * object. -1 is before or 1 for after.
31
- */
32
13
  compareTo(other) {
33
14
  if (other) {
34
15
  return (this.year < other.year) ? -1 : 1;
@@ -37,3 +18,4 @@ class AnnualLeave {
37
18
  }
38
19
  }
39
20
  exports.AnnualLeave = AnnualLeave;
21
+ //# sourceMappingURL=balance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"balance.js","sourceRoot":"","sources":["../../../src/scheduler/employees/balance.ts"],"names":[],"mappings":";;;AAuBA,MAAa,WAAW;IACf,IAAI,CAAS;IACb,MAAM,CAAS;IACf,SAAS,CAAS;IAEzB,YAAY,OAAsB;QAChC,IAAI,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,cAAc,EAAE,CAAC;QACrE,IAAI,CAAC,MAAM,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC;QAC/C,IAAI,CAAC,SAAS,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC;IACvD,CAAC;IASD,SAAS,CAAC,KAAmB;QAC3B,IAAI,KAAK,EAAE,CAAC;YACV,OAAO,CAAC,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3C,CAAC;QACD,OAAO,CAAC,CAAC,CAAC;IACZ,CAAC;CACF;AAxBD,kCAwBC"}
@@ -1,10 +1,3 @@
1
- /**
2
- * The company info provides for the employee's company, company id, an alternate
3
- * company id, job title, rank/grade, a cost center and division
4
- */
5
- /**
6
- * This interface defines an employee's company information.
7
- */
8
1
  export interface ICompanyInfo {
9
2
  company: string;
10
3
  employeeid: string;
@@ -1,6 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * The company info provides for the employee's company, company id, an alternate
4
- * company id, job title, rank/grade, a cost center and division
5
- */
6
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=companyinfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"companyinfo.js","sourceRoot":"","sources":["../../../src/scheduler/employees/companyinfo.ts"],"names":[],"mappings":""}
@@ -1,36 +1,14 @@
1
- /**
2
- * A contact record provides a reference to a list of possible contact types and
3
- * a string value to be used
4
- */
5
- /**
6
- * This interface defines a contact reference between the team contact type list and
7
- * the employee's information
8
- */
9
1
  export interface IContact {
10
2
  id: number;
11
3
  typeid: number;
12
4
  sort: number;
13
5
  value: string;
14
6
  }
15
- /**
16
- * This class defines a contact reference. The data members are:
17
- * id (a numeric value for the identifier to this reference)
18
- * typeid (a numeric value for the reference to the team's contact type list)
19
- * sort (a numeric value for sorting this contact with another)
20
- * value (a string value for the contact information for the employee)
21
- */
22
7
  export declare class Contact implements IContact {
23
8
  id: number;
24
9
  typeid: number;
25
10
  sort: number;
26
11
  value: string;
27
12
  constructor(ct?: IContact);
28
- /**
29
- * This function is used to sort this contact reference to another. It uses the sort
30
- * value in sorting.
31
- * @param other A contact object used in the comparison
32
- * @returns A numeric value to indicate whether this object is before or after the other
33
- * object. -1 is before, 1 for after or 0 for equal.
34
- */
35
13
  compareTo(other?: Contact): number;
36
14
  }
@@ -1,17 +1,6 @@
1
1
  "use strict";
2
- /**
3
- * A contact record provides a reference to a list of possible contact types and
4
- * a string value to be used
5
- */
6
2
  Object.defineProperty(exports, "__esModule", { value: true });
7
3
  exports.Contact = void 0;
8
- /**
9
- * This class defines a contact reference. The data members are:
10
- * id (a numeric value for the identifier to this reference)
11
- * typeid (a numeric value for the reference to the team's contact type list)
12
- * sort (a numeric value for sorting this contact with another)
13
- * value (a string value for the contact information for the employee)
14
- */
15
4
  class Contact {
16
5
  id;
17
6
  typeid;
@@ -23,13 +12,6 @@ class Contact {
23
12
  this.sort = (ct) ? ct.sort : 0;
24
13
  this.value = (ct) ? ct.value : '';
25
14
  }
26
- /**
27
- * This function is used to sort this contact reference to another. It uses the sort
28
- * value in sorting.
29
- * @param other A contact object used in the comparison
30
- * @returns A numeric value to indicate whether this object is before or after the other
31
- * object. -1 is before, 1 for after or 0 for equal.
32
- */
33
15
  compareTo(other) {
34
16
  if (other) {
35
17
  return (this.sort < other.sort) ? -1 : 1;
@@ -38,3 +20,4 @@ class Contact {
38
20
  }
39
21
  }
40
22
  exports.Contact = Contact;
23
+ //# sourceMappingURL=contact.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contact.js","sourceRoot":"","sources":["../../../src/scheduler/employees/contact.ts"],"names":[],"mappings":";;;AAuBA,MAAa,OAAO;IACX,EAAE,CAAS;IACX,MAAM,CAAS;IACf,IAAI,CAAS;IACb,KAAK,CAAS;IAErB,YAAY,EAAa;QACvB,IAAI,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3B,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QACnC,IAAI,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAC/B,IAAI,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;IACpC,CAAC;IASD,SAAS,CAAC,KAAe;QACvB,IAAI,KAAK,EAAE,CAAC;YACV,OAAO,CAAC,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3C,CAAC;QACD,OAAO,CAAC,CAAC,CAAC;IACZ,CAAC;CACF;AA1BD,0BA0BC"}