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.
- package/config/index.js +1 -0
- package/config/index.js.map +1 -0
- package/config/logPosting.js +1 -0
- package/config/logPosting.js.map +1 -0
- package/config/logging.js +1 -2
- package/config/logging.js.map +1 -0
- package/config/mongoconnect.js +1 -1
- package/config/mongoconnect.js.map +1 -0
- package/config/sqldb.js +2 -34
- package/config/sqldb.js.map +1 -0
- package/general/emailer.js +3 -5
- package/general/emailer.js.map +1 -0
- package/general/general.d.ts +0 -3
- package/general/general.js +1 -0
- package/general/general.js.map +1 -0
- package/general/index.js +1 -0
- package/general/index.js.map +1 -0
- package/general/logger.js +2 -34
- package/general/logger.js.map +1 -0
- package/general/logs.d.ts +0 -30
- package/general/logs.js +1 -24
- package/general/logs.js.map +1 -0
- package/general/notices.d.ts +0 -15
- package/general/notices.js +1 -11
- package/general/notices.js.map +1 -0
- package/general/report.js +1 -0
- package/general/report.js.map +1 -0
- package/general/viewstate.js +1 -0
- package/general/viewstate.js.map +1 -0
- package/index.js +1 -1
- package/index.js.map +1 -0
- package/metrics/images.d.ts +0 -6
- package/metrics/images.js +1 -3
- package/metrics/images.js.map +1 -0
- package/metrics/index.js +1 -0
- package/metrics/index.js.map +1 -0
- package/metrics/mission.d.ts +0 -6
- package/metrics/mission.js +1 -3
- package/metrics/mission.js.map +1 -0
- package/metrics/missionSensorOutage.js +1 -0
- package/metrics/missionSensorOutage.js.map +1 -0
- package/metrics/missionsensor.d.ts +0 -22
- package/metrics/missionsensor.js +1 -19
- package/metrics/missionsensor.js.map +1 -0
- package/metrics/outage.d.ts +0 -8
- package/metrics/outage.js +1 -5
- package/metrics/outage.js.map +1 -0
- package/metrics/systemdata/classifications.d.ts +0 -6
- package/metrics/systemdata/classifications.js +1 -3
- package/metrics/systemdata/classifications.js.map +1 -0
- package/metrics/systemdata/communications.d.ts +0 -6
- package/metrics/systemdata/communications.js +1 -3
- package/metrics/systemdata/communications.js.map +1 -0
- package/metrics/systemdata/dcgs.d.ts +0 -7
- package/metrics/systemdata/dcgs.js +1 -3
- package/metrics/systemdata/dcgs.js.map +1 -0
- package/metrics/systemdata/exploitations.d.ts +0 -6
- package/metrics/systemdata/exploitations.js +1 -3
- package/metrics/systemdata/exploitations.js.map +1 -0
- package/metrics/systemdata/groundSystems.d.ts +0 -46
- package/metrics/systemdata/groundSystems.js +1 -39
- package/metrics/systemdata/groundSystems.js.map +1 -0
- package/metrics/systemdata/index.js +1 -0
- package/metrics/systemdata/index.js.map +1 -0
- package/metrics/systemdata/platform.d.ts +0 -49
- package/metrics/systemdata/platform.js +1 -37
- package/metrics/systemdata/platform.js.map +1 -0
- package/metrics/systemdata/systeminfo.d.ts +0 -5
- package/metrics/systemdata/systeminfo.js +1 -0
- package/metrics/systemdata/systeminfo.js.map +1 -0
- package/package.json +1 -1
- package/scheduler/employees/assignment.d.ts +2 -103
- package/scheduler/employees/assignment.js +1 -102
- package/scheduler/employees/assignment.js.map +1 -0
- package/scheduler/employees/balance.d.ts +0 -23
- package/scheduler/employees/balance.js +1 -19
- package/scheduler/employees/balance.js.map +1 -0
- package/scheduler/employees/companyinfo.d.ts +0 -7
- package/scheduler/employees/companyinfo.js +1 -4
- package/scheduler/employees/companyinfo.js.map +1 -0
- package/scheduler/employees/contact.d.ts +0 -22
- package/scheduler/employees/contact.js +1 -18
- package/scheduler/employees/contact.js.map +1 -0
- package/scheduler/employees/employee.d.ts +0 -363
- package/scheduler/employees/employee.js +1 -418
- package/scheduler/employees/employee.js.map +1 -0
- package/scheduler/employees/employeename.d.ts +0 -31
- package/scheduler/employees/employeename.js +1 -28
- package/scheduler/employees/employeename.js.map +1 -0
- package/scheduler/employees/index.js +1 -0
- package/scheduler/employees/index.js.map +1 -0
- package/scheduler/employees/labor.d.ts +0 -21
- package/scheduler/employees/labor.js +1 -18
- package/scheduler/employees/labor.js.map +1 -0
- package/scheduler/employees/leave.d.ts +0 -35
- package/scheduler/employees/leave.js +1 -32
- package/scheduler/employees/leave.js.map +1 -0
- package/scheduler/employees/leaverequest.d.ts +0 -62
- package/scheduler/employees/leaverequest.js +1 -52
- package/scheduler/employees/leaverequest.js.map +1 -0
- package/scheduler/employees/specialty.d.ts +0 -21
- package/scheduler/employees/specialty.js +1 -18
- package/scheduler/employees/specialty.js.map +1 -0
- package/scheduler/employees/variation.d.ts +0 -61
- package/scheduler/employees/variation.js +1 -57
- package/scheduler/employees/variation.js.map +1 -0
- package/scheduler/employees/web.js +1 -0
- package/scheduler/employees/web.js.map +1 -0
- package/scheduler/employees/work.d.ts +0 -58
- package/scheduler/employees/work.js +1 -46
- package/scheduler/employees/work.js.map +1 -0
- package/scheduler/employees/workday.d.ts +0 -61
- package/scheduler/employees/workday.js +1 -51
- package/scheduler/employees/workday.js.map +1 -0
- package/scheduler/ingest/excelRow.d.ts +0 -14
- package/scheduler/ingest/excelRow.js +1 -4
- package/scheduler/ingest/excelRow.js.map +1 -0
- package/scheduler/ingest/excelRowIngest.d.ts +0 -7
- package/scheduler/ingest/excelRowIngest.js +1 -17
- package/scheduler/ingest/excelRowIngest.js.map +1 -0
- package/scheduler/ingest/index.js +1 -0
- package/scheduler/ingest/index.js.map +1 -0
- package/scheduler/ingest/sapIngest.js +1 -9
- package/scheduler/ingest/sapIngest.js.map +1 -0
- package/scheduler/ingest/web.js +1 -0
- package/scheduler/ingest/web.js.map +1 -0
- package/scheduler/labor/index.js +1 -0
- package/scheduler/labor/index.js.map +1 -0
- package/scheduler/labor/laborcode.js +1 -0
- package/scheduler/labor/laborcode.js.map +1 -0
- package/scheduler/labor/workcode.js +1 -0
- package/scheduler/labor/workcode.js.map +1 -0
- package/scheduler/sites/index.js +1 -0
- package/scheduler/sites/index.js.map +1 -0
- package/scheduler/sites/reports/cofsReport.d.ts +0 -16
- package/scheduler/sites/reports/cofsReport.js +1 -19
- package/scheduler/sites/reports/cofsReport.js.map +1 -0
- package/scheduler/sites/reports/forecast.d.ts +0 -28
- package/scheduler/sites/reports/forecast.js +1 -37
- package/scheduler/sites/reports/forecast.js.map +1 -0
- package/scheduler/sites/reports/index.js +1 -0
- package/scheduler/sites/reports/index.js.map +1 -0
- package/scheduler/sites/reports/period.js +1 -0
- package/scheduler/sites/reports/period.js.map +1 -0
- package/scheduler/sites/reports/section.d.ts +0 -35
- package/scheduler/sites/reports/section.js +1 -34
- package/scheduler/sites/reports/section.js.map +1 -0
- package/scheduler/sites/reports/web.js +1 -0
- package/scheduler/sites/reports/web.js.map +1 -0
- package/scheduler/sites/site.d.ts +0 -17
- package/scheduler/sites/site.js +1 -14
- package/scheduler/sites/site.js.map +1 -0
- package/scheduler/sites/web/index.js +1 -0
- package/scheduler/sites/web/index.js.map +1 -0
- package/scheduler/sites/web/requests.js +1 -0
- package/scheduler/sites/web/requests.js.map +1 -0
- package/scheduler/sites/workcenters/index.js +1 -0
- package/scheduler/sites/workcenters/index.js.map +1 -0
- package/scheduler/sites/workcenters/position.d.ts +0 -11
- package/scheduler/sites/workcenters/position.js +1 -8
- package/scheduler/sites/workcenters/position.js.map +1 -0
- package/scheduler/sites/workcenters/shift.d.ts +0 -11
- package/scheduler/sites/workcenters/shift.js +1 -8
- package/scheduler/sites/workcenters/shift.js.map +1 -0
- package/scheduler/sites/workcenters/workcenter.d.ts +0 -22
- package/scheduler/sites/workcenters/workcenter.js +1 -21
- package/scheduler/sites/workcenters/workcenter.js.map +1 -0
- package/scheduler/teams/company/company.d.ts +0 -66
- package/scheduler/teams/company/company.js +1 -61
- package/scheduler/teams/company/company.js.map +1 -0
- package/scheduler/teams/company/holiday.d.ts +0 -38
- package/scheduler/teams/company/holiday.js +1 -35
- package/scheduler/teams/company/holiday.js.map +1 -0
- package/scheduler/teams/company/index.js +1 -0
- package/scheduler/teams/company/index.js.map +1 -0
- package/scheduler/teams/company/modperiod.d.ts +0 -9
- package/scheduler/teams/company/modperiod.js +1 -4
- package/scheduler/teams/company/modperiod.js.map +1 -0
- package/scheduler/teams/contact.d.ts +0 -6
- package/scheduler/teams/contact.js +1 -3
- package/scheduler/teams/contact.js.map +1 -0
- package/scheduler/teams/index.js +1 -0
- package/scheduler/teams/index.js.map +1 -0
- package/scheduler/teams/specialty.d.ts +0 -6
- package/scheduler/teams/specialty.js +1 -3
- package/scheduler/teams/specialty.js.map +1 -0
- package/scheduler/teams/team.d.ts +0 -60
- package/scheduler/teams/team.js +1 -60
- package/scheduler/teams/team.js.map +1 -0
- package/scheduler/teams/web.js +1 -0
- package/scheduler/teams/web.js.map +1 -0
- package/scheduler/web/index.js +1 -0
- package/scheduler/web/index.js.map +1 -0
- package/scheduler/web/initial.js +1 -0
- package/scheduler/web/initial.js.map +1 -0
- package/users/index.js +1 -0
- package/users/index.js.map +1 -0
- package/users/permission.d.ts +0 -3
- package/users/permission.js +1 -0
- package/users/permission.js.map +1 -0
- package/users/question.d.ts +0 -33
- package/users/question.js +1 -29
- package/users/question.js.map +1 -0
- package/users/user.d.ts +0 -109
- package/users/user.js +1 -102
- package/users/user.js.map +1 -0
- package/users/web.d.ts +0 -25
- package/users/web.js +1 -0
- package/users/web.js.map +1 -0
|
@@ -23,73 +23,13 @@ export declare class Team implements ITeam {
|
|
|
23
23
|
contacttypes: Contact[];
|
|
24
24
|
specialties: Specialty[];
|
|
25
25
|
constructor(team?: ITeam);
|
|
26
|
-
/**
|
|
27
|
-
* Workcode section (CRUD)
|
|
28
|
-
*/
|
|
29
|
-
/**
|
|
30
|
-
* This function will add a new work code to the team's work/leave code list.
|
|
31
|
-
* @param id The string value for the use code and identifier for the work or leave
|
|
32
|
-
* code.
|
|
33
|
-
* @param title The string value for the short explanation of the code.
|
|
34
|
-
* @param start The numeric value for the hour the work shift normally starts work.
|
|
35
|
-
* @param shift The string value for any paycode designator
|
|
36
|
-
* @param isLeave A boolean value to signify if the code is for leaves
|
|
37
|
-
* @param text A string 6-character hexadecimal value for the color of text for this
|
|
38
|
-
* code.
|
|
39
|
-
* @param back A string 6-character hexadecimal value for the color of the background
|
|
40
|
-
* for this code.
|
|
41
|
-
* @param search (optional) A string value to search time records to recognize the code.
|
|
42
|
-
*/
|
|
43
26
|
addWorkcode(id: string, title: string, start: number, shift: string, isLeave: boolean, text: string, back: string, search?: string): void;
|
|
44
|
-
/**
|
|
45
|
-
* This function is used to update a single work/leave code, based on the identifier,
|
|
46
|
-
* a field designator and value for that field.
|
|
47
|
-
* @param id The string value for the identifier of the code to change
|
|
48
|
-
* @param field The string value to identify the field/data member to update
|
|
49
|
-
* @param value The string value for the new value.
|
|
50
|
-
*/
|
|
51
27
|
updateWorkcode(id: string, field: string, value: string): void;
|
|
52
|
-
/**
|
|
53
|
-
* This function will delete
|
|
54
|
-
* @param id The string value for the identifier of the work/leave code to delete
|
|
55
|
-
*/
|
|
56
28
|
deleteWorkcode(id: string): void;
|
|
57
|
-
/**
|
|
58
|
-
* Contact Types section
|
|
59
|
-
*/
|
|
60
|
-
/**
|
|
61
|
-
* This function will add a new contact type, after checking to ensure the contact type
|
|
62
|
-
* name isn't already listed
|
|
63
|
-
* @param name The string value for the new contact type.
|
|
64
|
-
*/
|
|
65
29
|
addContactType(name: string): void;
|
|
66
|
-
/**
|
|
67
|
-
* This function will be used to update a contact type within the list
|
|
68
|
-
* @param id The numeric identifer for the contact type.
|
|
69
|
-
* @param field The string value to identify the data member to update
|
|
70
|
-
* @param value The string value for the modification.
|
|
71
|
-
*/
|
|
72
30
|
updateContactType(id: number, field: string, value: string): void;
|
|
73
|
-
/**
|
|
74
|
-
* This function will remove a designated contact type by identifier from the list.
|
|
75
|
-
* @param id The numeric identifier to the designated contact type.
|
|
76
|
-
*/
|
|
77
31
|
deleteContactType(id: number): void;
|
|
78
|
-
/**
|
|
79
|
-
* This function will add a new specialty type, if the name isn't already in the list.
|
|
80
|
-
* @param name The string value for the new specialty name.
|
|
81
|
-
*/
|
|
82
32
|
addSpecialtyType(name: string): void;
|
|
83
|
-
/**
|
|
84
|
-
* This function will update a specialty type within the list
|
|
85
|
-
* @param id The numeric value for the identifier for the contact type to update
|
|
86
|
-
* @param field The string value for the field/data member to update
|
|
87
|
-
* @param value The string value for the new value.
|
|
88
|
-
*/
|
|
89
33
|
updateSpecialtyType(id: number, field: string, value: string): void;
|
|
90
|
-
/**
|
|
91
|
-
* This function will remove a specialty type from the list.
|
|
92
|
-
* @param id The numeric value for the identifier to remove.
|
|
93
|
-
*/
|
|
94
34
|
deleteSpecialtyType(id: number): void;
|
|
95
35
|
}
|
package/scheduler/teams/team.js
CHANGED
|
@@ -56,23 +56,6 @@ class Team {
|
|
|
56
56
|
this.specialties.sort((a, b) => a.compareTo(b));
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
/**
|
|
60
|
-
* Workcode section (CRUD)
|
|
61
|
-
*/
|
|
62
|
-
/**
|
|
63
|
-
* This function will add a new work code to the team's work/leave code list.
|
|
64
|
-
* @param id The string value for the use code and identifier for the work or leave
|
|
65
|
-
* code.
|
|
66
|
-
* @param title The string value for the short explanation of the code.
|
|
67
|
-
* @param start The numeric value for the hour the work shift normally starts work.
|
|
68
|
-
* @param shift The string value for any paycode designator
|
|
69
|
-
* @param isLeave A boolean value to signify if the code is for leaves
|
|
70
|
-
* @param text A string 6-character hexadecimal value for the color of text for this
|
|
71
|
-
* code.
|
|
72
|
-
* @param back A string 6-character hexadecimal value for the color of the background
|
|
73
|
-
* for this code.
|
|
74
|
-
* @param search (optional) A string value to search time records to recognize the code.
|
|
75
|
-
*/
|
|
76
59
|
addWorkcode(id, title, start, shift, isLeave, text, back, search) {
|
|
77
60
|
if (id !== '') {
|
|
78
61
|
let found = false;
|
|
@@ -108,13 +91,6 @@ class Team {
|
|
|
108
91
|
this.workcodes.sort((a, b) => a.compareTo(b));
|
|
109
92
|
}
|
|
110
93
|
}
|
|
111
|
-
/**
|
|
112
|
-
* This function is used to update a single work/leave code, based on the identifier,
|
|
113
|
-
* a field designator and value for that field.
|
|
114
|
-
* @param id The string value for the identifier of the code to change
|
|
115
|
-
* @param field The string value to identify the field/data member to update
|
|
116
|
-
* @param value The string value for the new value.
|
|
117
|
-
*/
|
|
118
94
|
updateWorkcode(id, field, value) {
|
|
119
95
|
this.workcodes.forEach((wc, w) => {
|
|
120
96
|
if (wc.id.toLowerCase() === id.toLowerCase()) {
|
|
@@ -159,10 +135,6 @@ class Team {
|
|
|
159
135
|
});
|
|
160
136
|
this.workcodes.sort((a, b) => a.compareTo(b));
|
|
161
137
|
}
|
|
162
|
-
/**
|
|
163
|
-
* This function will delete
|
|
164
|
-
* @param id The string value for the identifier of the work/leave code to delete
|
|
165
|
-
*/
|
|
166
138
|
deleteWorkcode(id) {
|
|
167
139
|
let found = -1;
|
|
168
140
|
this.workcodes.forEach((wc, w) => {
|
|
@@ -175,14 +147,6 @@ class Team {
|
|
|
175
147
|
this.workcodes.sort((a, b) => a.compareTo(b));
|
|
176
148
|
}
|
|
177
149
|
}
|
|
178
|
-
/**
|
|
179
|
-
* Contact Types section
|
|
180
|
-
*/
|
|
181
|
-
/**
|
|
182
|
-
* This function will add a new contact type, after checking to ensure the contact type
|
|
183
|
-
* name isn't already listed
|
|
184
|
-
* @param name The string value for the new contact type.
|
|
185
|
-
*/
|
|
186
150
|
addContactType(name) {
|
|
187
151
|
let next = 0;
|
|
188
152
|
let sort = -1;
|
|
@@ -207,12 +171,6 @@ class Team {
|
|
|
207
171
|
this.contacttypes.sort((a, b) => a.compareTo(b));
|
|
208
172
|
}
|
|
209
173
|
}
|
|
210
|
-
/**
|
|
211
|
-
* This function will be used to update a contact type within the list
|
|
212
|
-
* @param id The numeric identifer for the contact type.
|
|
213
|
-
* @param field The string value to identify the data member to update
|
|
214
|
-
* @param value The string value for the modification.
|
|
215
|
-
*/
|
|
216
174
|
updateContactType(id, field, value) {
|
|
217
175
|
this.contacttypes.sort((a, b) => a.compareTo(b));
|
|
218
176
|
this.contacttypes.forEach((ct, c) => {
|
|
@@ -248,10 +206,6 @@ class Team {
|
|
|
248
206
|
}
|
|
249
207
|
});
|
|
250
208
|
}
|
|
251
|
-
/**
|
|
252
|
-
* This function will remove a designated contact type by identifier from the list.
|
|
253
|
-
* @param id The numeric identifier to the designated contact type.
|
|
254
|
-
*/
|
|
255
209
|
deleteContactType(id) {
|
|
256
210
|
let found = -1;
|
|
257
211
|
this.contacttypes.forEach((ct, c) => {
|
|
@@ -263,10 +217,6 @@ class Team {
|
|
|
263
217
|
this.contacttypes.splice(found, 1);
|
|
264
218
|
}
|
|
265
219
|
}
|
|
266
|
-
/**
|
|
267
|
-
* This function will add a new specialty type, if the name isn't already in the list.
|
|
268
|
-
* @param name The string value for the new specialty name.
|
|
269
|
-
*/
|
|
270
220
|
addSpecialtyType(name) {
|
|
271
221
|
let next = 0;
|
|
272
222
|
let sort = -1;
|
|
@@ -291,12 +241,6 @@ class Team {
|
|
|
291
241
|
this.specialties.sort((a, b) => a.compareTo(b));
|
|
292
242
|
}
|
|
293
243
|
}
|
|
294
|
-
/**
|
|
295
|
-
* This function will update a specialty type within the list
|
|
296
|
-
* @param id The numeric value for the identifier for the contact type to update
|
|
297
|
-
* @param field The string value for the field/data member to update
|
|
298
|
-
* @param value The string value for the new value.
|
|
299
|
-
*/
|
|
300
244
|
updateSpecialtyType(id, field, value) {
|
|
301
245
|
this.specialties.sort((a, b) => a.compareTo(b));
|
|
302
246
|
this.specialties.forEach((ct, c) => {
|
|
@@ -332,10 +276,6 @@ class Team {
|
|
|
332
276
|
}
|
|
333
277
|
});
|
|
334
278
|
}
|
|
335
|
-
/**
|
|
336
|
-
* This function will remove a specialty type from the list.
|
|
337
|
-
* @param id The numeric value for the identifier to remove.
|
|
338
|
-
*/
|
|
339
279
|
deleteSpecialtyType(id) {
|
|
340
280
|
let found = -1;
|
|
341
281
|
this.specialties.forEach((ct, c) => {
|
|
@@ -349,3 +289,4 @@ class Team {
|
|
|
349
289
|
}
|
|
350
290
|
}
|
|
351
291
|
exports.Team = Team;
|
|
292
|
+
//# sourceMappingURL=team.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
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AG,GAAG,CAAC;gCACd,IAAI,CAAC,WAAW,CAAC,CAAC,GAAC,CAAC,CAAC,GAAG,KAAK,CAAC;4BAChC,CAAC;wBACH,CAAC;6BAAM,CAAC;4BACN,IAAI,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gCACpC,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC,GAAC,CAAC,CAAC,CAAC;gCACpC,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC;gCACvB,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC;gCACrB,EAAE,CAAC,IAAI,GAAG,GAAG,CAAC;gCACd,IAAI,CAAC,WAAW,CAAC,CAAC,GAAC,CAAC,CAAC,GAAG,KAAK,CAAC;4BAChC,CAAC;wBACH,CAAC;wBACD,MAAM;gBACV,CAAC;gBACD,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;YAC3B,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAMD,mBAAmB,CAAC,EAAU;QAC5B,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC;QACf,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE;YACjC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC;gBACjB,KAAK,GAAG,CAAC,CAAC;YACZ,CAAC;QACH,CAAC,CAAC,CAAC;QACH,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;YACf,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QACpC,CAAC;IACH,CAAC;CACF;AA9VD,oBA8VC"}
|
package/scheduler/teams/web.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../../src/scheduler/teams/web.ts"],"names":[],"mappings":""}
|
package/scheduler/web/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/scheduler/web/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B"}
|
package/scheduler/web/initial.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initial.js","sourceRoot":"","sources":["../../../src/scheduler/web/initial.ts"],"names":[],"mappings":""}
|
package/users/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/users/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,+CAA6B;AAC7B,6CAA2B;AAC3B,wCAAsB"}
|
package/users/permission.d.ts
CHANGED
package/users/permission.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permission.js","sourceRoot":"","sources":["../../src/users/permission.ts"],"names":[],"mappings":";;;AAQA,MAAa,UAAU;IACd,WAAW,CAAS;IACpB,GAAG,CAAS;IAEnB,YAAY,IAAkB;QAC5B,IAAI,CAAC,WAAW,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC;QAClD,IAAI,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IACpC,CAAC;IAED,SAAS,CAAC,KAAkB;QAC1B,IAAI,KAAK,EAAE,CAAC;YACV,IAAI,IAAI,CAAC,WAAW,KAAK,KAAK,CAAC,WAAW,EAAE,CAAC;gBAC3C,OAAO,CAAC,IAAI,CAAC,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACzC,CAAC;YACD,OAAO,CAAC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACzD,CAAC;QACD,OAAO,CAAC,CAAC;IACX,CAAC;CACF;AAlBD,gCAkBC"}
|
package/users/question.d.ts
CHANGED
|
@@ -1,47 +1,14 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This interface provides the framework for the security question.
|
|
3
|
-
* Namely, a security question and its encrypted answer.
|
|
4
|
-
*/
|
|
5
1
|
export interface ISecurityQuestion {
|
|
6
2
|
id: number;
|
|
7
3
|
question: string;
|
|
8
4
|
answer: string;
|
|
9
5
|
}
|
|
10
|
-
/**
|
|
11
|
-
* This class defines a security question object, which implements the
|
|
12
|
-
* security question interface of question and answer. It also includes
|
|
13
|
-
* function to update the question and answer, plus provides a method
|
|
14
|
-
* of comparing the answer with one provided.
|
|
15
|
-
*/
|
|
16
6
|
export declare class SecurityQuestion implements ISecurityQuestion {
|
|
17
7
|
id: number;
|
|
18
8
|
question: string;
|
|
19
9
|
answer: string;
|
|
20
10
|
constructor(q?: ISecurityQuestion);
|
|
21
|
-
/**
|
|
22
|
-
* This function is used in sorting the security questions, by
|
|
23
|
-
* first comparing their identified, then the question.
|
|
24
|
-
* @param other (optional) the other security question to be compared to
|
|
25
|
-
* @returns A numeric value for whether the question is before (-1)
|
|
26
|
-
* or after (1)
|
|
27
|
-
*/
|
|
28
11
|
compareTo(other?: SecurityQuestion): number;
|
|
29
|
-
/**
|
|
30
|
-
* This function is used to update either the question or answer which
|
|
31
|
-
* is provided in the value. If the field is answer, the value is
|
|
32
|
-
* saved encrypted of its lower case equivalent.
|
|
33
|
-
* @param field A string value to indicate which object field is to be updated
|
|
34
|
-
* @param value A string value for the update.
|
|
35
|
-
*/
|
|
36
12
|
update(field: string, value: string): void;
|
|
37
|
-
/**
|
|
38
|
-
* This function will check a provided answer, during reset, with the
|
|
39
|
-
* answer in this object. It will submit a lower case value for checking
|
|
40
|
-
* because the answer is orginally the lower case value of the provided
|
|
41
|
-
* answer.
|
|
42
|
-
* @param value A string value used during comparision.
|
|
43
|
-
* @returns A boolean value for whether or not the given value is equal to
|
|
44
|
-
* the saved value.
|
|
45
|
-
*/
|
|
46
13
|
compare(value: string): boolean;
|
|
47
14
|
}
|
package/users/question.js
CHANGED
|
@@ -2,12 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SecurityQuestion = void 0;
|
|
4
4
|
const bcrypt_ts_1 = require("bcrypt-ts");
|
|
5
|
-
/**
|
|
6
|
-
* This class defines a security question object, which implements the
|
|
7
|
-
* security question interface of question and answer. It also includes
|
|
8
|
-
* function to update the question and answer, plus provides a method
|
|
9
|
-
* of comparing the answer with one provided.
|
|
10
|
-
*/
|
|
11
5
|
class SecurityQuestion {
|
|
12
6
|
id;
|
|
13
7
|
question;
|
|
@@ -17,13 +11,6 @@ class SecurityQuestion {
|
|
|
17
11
|
this.question = (q) ? q.question : '';
|
|
18
12
|
this.answer = (q) ? q.answer : '';
|
|
19
13
|
}
|
|
20
|
-
/**
|
|
21
|
-
* This function is used in sorting the security questions, by
|
|
22
|
-
* first comparing their identified, then the question.
|
|
23
|
-
* @param other (optional) the other security question to be compared to
|
|
24
|
-
* @returns A numeric value for whether the question is before (-1)
|
|
25
|
-
* or after (1)
|
|
26
|
-
*/
|
|
27
14
|
compareTo(other) {
|
|
28
15
|
if (other) {
|
|
29
16
|
if (this.id === other.id) {
|
|
@@ -33,13 +20,6 @@ class SecurityQuestion {
|
|
|
33
20
|
}
|
|
34
21
|
return -1;
|
|
35
22
|
}
|
|
36
|
-
/**
|
|
37
|
-
* This function is used to update either the question or answer which
|
|
38
|
-
* is provided in the value. If the field is answer, the value is
|
|
39
|
-
* saved encrypted of its lower case equivalent.
|
|
40
|
-
* @param field A string value to indicate which object field is to be updated
|
|
41
|
-
* @param value A string value for the update.
|
|
42
|
-
*/
|
|
43
23
|
update(field, value) {
|
|
44
24
|
switch (field.toLowerCase()) {
|
|
45
25
|
case "question":
|
|
@@ -52,17 +32,9 @@ class SecurityQuestion {
|
|
|
52
32
|
break;
|
|
53
33
|
}
|
|
54
34
|
}
|
|
55
|
-
/**
|
|
56
|
-
* This function will check a provided answer, during reset, with the
|
|
57
|
-
* answer in this object. It will submit a lower case value for checking
|
|
58
|
-
* because the answer is orginally the lower case value of the provided
|
|
59
|
-
* answer.
|
|
60
|
-
* @param value A string value used during comparision.
|
|
61
|
-
* @returns A boolean value for whether or not the given value is equal to
|
|
62
|
-
* the saved value.
|
|
63
|
-
*/
|
|
64
35
|
compare(value) {
|
|
65
36
|
return (0, bcrypt_ts_1.compareSync)(value.toLowerCase(), this.answer);
|
|
66
37
|
}
|
|
67
38
|
}
|
|
68
39
|
exports.SecurityQuestion = SecurityQuestion;
|
|
40
|
+
//# sourceMappingURL=question.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"question.js","sourceRoot":"","sources":["../../src/users/question.ts"],"names":[],"mappings":";;;AAAA,yCAA+D;AAkB/D,MAAa,gBAAgB;IACpB,EAAE,CAAS;IACX,QAAQ,CAAS;IACjB,MAAM,CAAS;IAEtB,YAAY,CAAqB;QAC/B,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QACzB,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;QACtC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IACpC,CAAC;IASD,SAAS,CAAC,KAAwB;QAChC,IAAI,KAAK,EAAE,CAAC;YACR,IAAI,IAAI,CAAC,EAAE,KAAK,KAAK,CAAC,EAAE,EAAE,CAAC;gBACvB,OAAO,CAAC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACrD,CAAC;YACD,OAAO,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACzC,CAAC;QACD,OAAO,CAAC,CAAC,CAAC;IACZ,CAAC;IASD,MAAM,CAAC,KAAa,EAAE,KAAa;QACjC,QAAQ,KAAK,CAAC,WAAW,EAAE,EAAE,CAAC;YAC5B,KAAK,UAAU;gBACb,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;gBACtB,MAAM;YACR,KAAK,QAAQ;gBACX,MAAM,IAAI,GAAG,IAAA,uBAAW,EAAC,EAAE,CAAC,CAAC;gBAC7B,MAAM,MAAM,GAAG,IAAA,oBAAQ,EAAC,KAAK,CAAC,WAAW,EAAE,EAAE,IAAI,CAAC,CAAC;gBACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;gBACrB,MAAM;QACV,CAAC;IACH,CAAC;IAWD,OAAO,CAAC,KAAa;QACnB,OAAO,IAAA,uBAAW,EAAC,KAAK,CAAC,WAAW,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;IACtD,CAAC;CACF;AA5DD,4CA4DC"}
|
package/users/user.d.ts
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { ISecurityQuestion, SecurityQuestion } from './question';
|
|
2
2
|
import { IPermission, Permission } from './permission';
|
|
3
|
-
/**
|
|
4
|
-
* The user class and interface.
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* This interface ensures all the required fields are present to represent the user and
|
|
8
|
-
* its class object.
|
|
9
|
-
*/
|
|
10
3
|
export interface IUser {
|
|
11
4
|
_id?: string;
|
|
12
5
|
id: string;
|
|
@@ -24,22 +17,6 @@ export interface IUser {
|
|
|
24
17
|
questions?: ISecurityQuestion[];
|
|
25
18
|
permissions?: IPermission[];
|
|
26
19
|
}
|
|
27
|
-
/**
|
|
28
|
-
* This class represents a user and all the actions available to the user object.
|
|
29
|
-
* The main class members are:
|
|
30
|
-
* id (primary key),
|
|
31
|
-
* email address (used in authentication and email messages for reset),
|
|
32
|
-
* password (authentication), password expires (old use -
|
|
33
|
-
* to determine the when the password would expire, but new use is to track when
|
|
34
|
-
* created to allow for the warning to change after 90 days and requiring after 1 year),
|
|
35
|
-
* badAttempts (count of number of mismatch of password since last known good
|
|
36
|
-
* authentication),
|
|
37
|
-
* first, middle and last names (name - middle is optional),
|
|
38
|
-
* workgroups (string array to provide identificationn of permission within an
|
|
39
|
-
* application),
|
|
40
|
-
* resetToken and resettokenexp (a storage location or a reset token used in forgot
|
|
41
|
-
* password change, plus token expiration date/time the reset token expires)
|
|
42
|
-
*/
|
|
43
20
|
export declare class User implements IUser {
|
|
44
21
|
id: string;
|
|
45
22
|
emailAddress: string;
|
|
@@ -56,106 +33,20 @@ export declare class User implements IUser {
|
|
|
56
33
|
questions: SecurityQuestion[];
|
|
57
34
|
permissions: Permission[];
|
|
58
35
|
constructor(user?: IUser);
|
|
59
|
-
/**
|
|
60
|
-
* This function is used to sort this class' objects into an ordered list. The order
|
|
61
|
-
* is determined by last, first and middle names
|
|
62
|
-
* @param other Another user object used during comparison
|
|
63
|
-
* @returns a numeric value to show the object is before or after the other object.
|
|
64
|
-
* -1 is for before and 1 is for after.
|
|
65
|
-
*/
|
|
66
36
|
compareTo(other?: User): number;
|
|
67
|
-
/**
|
|
68
|
-
* This function provides a copy of the user object to the web client. We don't want to
|
|
69
|
-
* pass the password, reset token or expiration date/time.
|
|
70
|
-
* @returns A new User interface for passing
|
|
71
|
-
*/
|
|
72
37
|
cloneForOutput(): IUser;
|
|
73
|
-
/**
|
|
74
|
-
* This function will reset the password, bad attemtps and expiration date. The new
|
|
75
|
-
* password will be excrypted for storage.
|
|
76
|
-
* @param passwd The string value for the new password
|
|
77
|
-
*/
|
|
78
38
|
setPassword(passwd: string): void;
|
|
79
|
-
/**
|
|
80
|
-
* This function will be used in authentication to verify if the password provided is
|
|
81
|
-
* equivelent to the stored one.
|
|
82
|
-
* @param pwd The string value to compare against the encrypted password.
|
|
83
|
-
* @throws An error if the account is locked or there is a mismatch with the password.
|
|
84
|
-
*/
|
|
85
39
|
checkPassword(pwd: string): void;
|
|
86
|
-
/**
|
|
87
|
-
* This function will provide a random 16 character password.
|
|
88
|
-
* @returns A string value representing the new random password.
|
|
89
|
-
*/
|
|
90
40
|
createRandomPassword(): string;
|
|
91
|
-
/**
|
|
92
|
-
* This function will unlock the user account to allow for access.
|
|
93
|
-
*/
|
|
94
41
|
unlock(): void;
|
|
95
|
-
/**
|
|
96
|
-
* This function will provide the user's name in the form first middle and last.
|
|
97
|
-
* @returns A string value for the user's name.
|
|
98
|
-
*/
|
|
99
42
|
getFullName(): string;
|
|
100
|
-
/**
|
|
101
|
-
* This function will provide the user's name in the form first last.
|
|
102
|
-
* @returns A string value for the user's name.
|
|
103
|
-
*/
|
|
104
43
|
getFirstLast(): string;
|
|
105
|
-
/**
|
|
106
|
-
* This function will provide the user's name in the form last, first.
|
|
107
|
-
* @returns A string value for the user's name.
|
|
108
|
-
*/
|
|
109
44
|
getLastFirst(): string;
|
|
110
|
-
/**
|
|
111
|
-
* This function will create a random string used as a token to reset the user's
|
|
112
|
-
* password when the user had forgotten it. It will be emailed to the user's
|
|
113
|
-
* email addresses. The token will be good for 1 hour, so an expiration date/time
|
|
114
|
-
* is also set.
|
|
115
|
-
* @returns A string value for the reset token.
|
|
116
|
-
*/
|
|
117
45
|
createResetToken(): string;
|
|
118
|
-
/**
|
|
119
|
-
* This function will verify the provided string token in comparison to that recorded
|
|
120
|
-
* in the user's record. The process also checks to ensure the token isn't expired.
|
|
121
|
-
* @param token A string value for the comparison token.
|
|
122
|
-
* @returns A boolean value to indicate if the token matches and not expired.
|
|
123
|
-
*/
|
|
124
46
|
checkResetToken(token: string): boolean;
|
|
125
|
-
/**
|
|
126
|
-
* This function will add a new email address, if it isn't already in the list
|
|
127
|
-
* @param email The string value for the email to add.
|
|
128
|
-
*/
|
|
129
47
|
addAdditionalEmail(email: string): void;
|
|
130
|
-
/**
|
|
131
|
-
* This function will remove an email address from the user's additional email
|
|
132
|
-
* address list.
|
|
133
|
-
* @param email The string value for the email to remove.
|
|
134
|
-
*/
|
|
135
48
|
deleteAdditionalEmail(email: string): void;
|
|
136
|
-
/**
|
|
137
|
-
* This function will update a security question question or answer
|
|
138
|
-
* based on the identifier, field and value provided.
|
|
139
|
-
* @param id A numeric value for the identifier of the question.
|
|
140
|
-
* @param field A string value for the field (question or answer) to be
|
|
141
|
-
* updated.
|
|
142
|
-
* @param value A string value for the updated value for the field.
|
|
143
|
-
*/
|
|
144
49
|
updateSecurityQuestion(id: number, field: string, value: string): void;
|
|
145
|
-
/**
|
|
146
|
-
* This function is used to check the response for a security question
|
|
147
|
-
* answer to the stored value.
|
|
148
|
-
* @param id A numeric value for the question to check against.
|
|
149
|
-
* @param value A string value for the answer to the question.
|
|
150
|
-
* @returns A boolean value for whether the answers match.
|
|
151
|
-
*/
|
|
152
50
|
checkSecurityQuestion(id: number, value: string): boolean;
|
|
153
|
-
/**
|
|
154
|
-
* This function will be used to look to ensure the user has a particular job/permission
|
|
155
|
-
* for an application. All checks are done with lower case strings.
|
|
156
|
-
* @param application The string value for the application
|
|
157
|
-
* @param job The string value the job and/or permission to check against.
|
|
158
|
-
* @returns The boolean value for the user having that permission group.
|
|
159
|
-
*/
|
|
160
51
|
hasPermission(application: string, job: string): boolean;
|
|
161
52
|
}
|