scheduler-node-models 1.1.37 → 1.1.44
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 +6 -6
- package/general/emailer.d.ts +0 -1
- package/general/emailer.js +0 -31
- package/general/general.d.ts +0 -12
- package/general/general.js +0 -2
- package/general/index.d.ts +0 -5
- package/general/index.js +0 -21
- package/general/logger.d.ts +0 -10
- package/general/logger.js +0 -90
- package/general/report.d.ts +0 -25
- package/general/report.js +0 -76
- package/general/reportStyle.d.ts +0 -0
- package/general/reportStyle.js +0 -1
- package/general/viewstate.d.ts +0 -5
- package/general/viewstate.js +0 -9
- package/index.d.ts +0 -0
- package/index.js +0 -1
- package/metrics/images.d.ts +0 -22
- package/metrics/images.js +0 -33
- package/metrics/index.d.ts +0 -5
- package/metrics/index.js +0 -21
- package/metrics/mission.d.ts +0 -47
- package/metrics/mission.js +0 -81
- package/metrics/missionSensorOutage.d.ts +0 -11
- package/metrics/missionSensorOutage.js +0 -14
- package/metrics/missionsensor.d.ts +0 -67
- package/metrics/missionsensor.js +0 -128
- package/metrics/outage.d.ts +0 -43
- package/metrics/outage.js +0 -55
- package/metrics/reports/drawSummary.d.ts +0 -24
- package/metrics/reports/drawSummary.js +0 -311
- package/metrics/reports/index.d.ts +0 -5
- package/metrics/reports/index.js +0 -21
- package/metrics/reports/missionDay.d.ts +0 -8
- package/metrics/reports/missionDay.js +0 -23
- package/metrics/reports/missionSummary.d.ts +0 -25
- package/metrics/reports/missionSummary.js +0 -421
- package/metrics/reports/missionType.d.ts +0 -20
- package/metrics/reports/missionType.js +0 -314
- package/metrics/reports/outageDay.d.ts +0 -8
- package/metrics/reports/outageDay.js +0 -23
- package/metrics/systemdata/classifications.d.ts +0 -18
- package/metrics/systemdata/classifications.js +0 -23
- package/metrics/systemdata/communications.d.ts +0 -21
- package/metrics/systemdata/communications.js +0 -40
- package/metrics/systemdata/dcgs.d.ts +0 -19
- package/metrics/systemdata/dcgs.js +0 -29
- package/metrics/systemdata/exploitations.d.ts +0 -18
- package/metrics/systemdata/exploitations.js +0 -23
- package/metrics/systemdata/groundSystems.d.ts +0 -86
- package/metrics/systemdata/groundSystems.js +0 -143
- package/metrics/systemdata/index.d.ts +0 -7
- package/metrics/systemdata/index.js +0 -23
- package/metrics/systemdata/platform.d.ts +0 -124
- package/metrics/systemdata/platform.js +0 -176
- package/metrics/systemdata/systeminfo.d.ts +0 -28
- package/metrics/systemdata/systeminfo.js +0 -64
- package/scheduler/employees/assignment.d.ts +0 -139
- package/scheduler/employees/assignment.js +0 -304
- package/scheduler/employees/balance.d.ts +0 -35
- package/scheduler/employees/balance.js +0 -39
- package/scheduler/employees/companyinfo.d.ts +0 -16
- package/scheduler/employees/companyinfo.js +0 -6
- package/scheduler/employees/contact.d.ts +0 -36
- package/scheduler/employees/contact.js +0 -40
- package/scheduler/employees/employee.d.ts +0 -427
- package/scheduler/employees/employee.js +0 -1887
- package/scheduler/employees/employeename.d.ts +0 -48
- package/scheduler/employees/employeename.js +0 -97
- package/scheduler/employees/index.d.ts +0 -14
- package/scheduler/employees/index.js +0 -30
- package/scheduler/employees/labor.d.ts +0 -31
- package/scheduler/employees/labor.js +0 -39
- package/scheduler/employees/leave.d.ts +0 -58
- package/scheduler/employees/leave.js +0 -73
- package/scheduler/employees/leaverequest.d.ts +0 -105
- package/scheduler/employees/leaverequest.js +0 -226
- package/scheduler/employees/specialty.d.ts +0 -35
- package/scheduler/employees/specialty.js +0 -40
- package/scheduler/employees/variation.d.ts +0 -80
- package/scheduler/employees/variation.js +0 -132
- package/scheduler/employees/web.d.ts +0 -6
- package/scheduler/employees/web.js +0 -2
- package/scheduler/employees/work.d.ts +0 -96
- package/scheduler/employees/work.js +0 -133
- package/scheduler/employees/workday.d.ts +0 -91
- package/scheduler/employees/workday.js +0 -170
- package/scheduler/labor/index.d.ts +0 -2
- package/scheduler/labor/index.js +0 -18
- package/scheduler/labor/laborcode.d.ts +0 -33
- package/scheduler/labor/laborcode.js +0 -55
- package/scheduler/labor/workcode.d.ts +0 -28
- package/scheduler/labor/workcode.js +0 -35
- package/scheduler/reports/chargeStatus.d.ts +0 -66
- package/scheduler/reports/chargeStatus.js +0 -752
- package/scheduler/reports/cofsReports.d.ts +0 -11
- package/scheduler/reports/cofsReports.js +0 -36
- package/scheduler/reports/enterpriseSchedule.d.ts +0 -18
- package/scheduler/reports/enterpriseSchedule.js +0 -159
- package/scheduler/reports/index.d.ts +0 -6
- package/scheduler/reports/index.js +0 -22
- package/scheduler/reports/leaveReport.d.ts +0 -52
- package/scheduler/reports/leaveReport.js +0 -755
- package/scheduler/reports/leaves.d.ts +0 -24
- package/scheduler/reports/leaves.js +0 -110
- package/scheduler/reports/scheduleReport.d.ts +0 -17
- package/scheduler/reports/scheduleReport.js +0 -311
- package/scheduler/sites/index.d.ts +0 -1
- package/scheduler/sites/index.js +0 -17
- package/scheduler/sites/reports/cofsReport.d.ts +0 -41
- package/scheduler/sites/reports/cofsReport.js +0 -104
- package/scheduler/sites/reports/forecast.d.ts +0 -57
- package/scheduler/sites/reports/forecast.js +0 -205
- package/scheduler/sites/reports/index.d.ts +0 -4
- package/scheduler/sites/reports/index.js +0 -20
- package/scheduler/sites/reports/period.d.ts +0 -11
- package/scheduler/sites/reports/period.js +0 -27
- package/scheduler/sites/reports/section.d.ts +0 -63
- package/scheduler/sites/reports/section.js +0 -186
- package/scheduler/sites/site.d.ts +0 -39
- package/scheduler/sites/site.js +0 -68
- package/scheduler/sites/workcenters/index.d.ts +0 -3
- package/scheduler/sites/workcenters/index.js +0 -19
- package/scheduler/sites/workcenters/position.d.ts +0 -27
- package/scheduler/sites/workcenters/position.js +0 -36
- package/scheduler/sites/workcenters/shift.d.ts +0 -32
- package/scheduler/sites/workcenters/shift.js +0 -47
- package/scheduler/sites/workcenters/workcenter.d.ts +0 -43
- package/scheduler/sites/workcenters/workcenter.js +0 -123
- package/scheduler/teams/company/company.d.ts +0 -99
- package/scheduler/teams/company/company.js +0 -256
- package/scheduler/teams/company/holiday.d.ts +0 -61
- package/scheduler/teams/company/holiday.js +0 -116
- package/scheduler/teams/company/index.d.ts +0 -3
- package/scheduler/teams/company/index.js +0 -19
- package/scheduler/teams/company/modperiod.d.ts +0 -21
- package/scheduler/teams/company/modperiod.js +0 -24
- package/scheduler/teams/contact.d.ts +0 -18
- package/scheduler/teams/contact.js +0 -23
- package/scheduler/teams/index.d.ts +0 -3
- package/scheduler/teams/index.js +0 -19
- package/scheduler/teams/specialty.d.ts +0 -18
- package/scheduler/teams/specialty.js +0 -23
- package/scheduler/teams/team.d.ts +0 -95
- package/scheduler/teams/team.js +0 -351
- package/users/index.d.ts +0 -2
- package/users/index.js +0 -18
- package/users/user.d.ts +0 -130
- package/users/user.js +0 -256
- package/users/web.d.ts +0 -48
- package/users/web.js +0 -2
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
export declare enum HolidayType {
|
|
2
|
-
holiday = "H",
|
|
3
|
-
floating = "F"
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* This interface holds a listed company holiday and the data members involved. The
|
|
7
|
-
* id is either H for regular, date determined holiday and F for floating or date-less
|
|
8
|
-
* holiday. The sort value is the sort order within the company's H and F types holidays.
|
|
9
|
-
*/
|
|
10
|
-
export interface IHoliday {
|
|
11
|
-
id: HolidayType;
|
|
12
|
-
name: string;
|
|
13
|
-
sort: number;
|
|
14
|
-
actualdates?: Date[];
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* This class definition implements the holiday interface and add needed actions to
|
|
18
|
-
* manipulate the holiday object.
|
|
19
|
-
*/
|
|
20
|
-
export declare class Holiday implements IHoliday {
|
|
21
|
-
id: HolidayType;
|
|
22
|
-
name: string;
|
|
23
|
-
sort: number;
|
|
24
|
-
actualdates: Date[];
|
|
25
|
-
constructor(hol?: IHoliday);
|
|
26
|
-
/**
|
|
27
|
-
* This function will provide string for the combined id and sort code into a single
|
|
28
|
-
* string value.
|
|
29
|
-
* @returns A string value for the id and sort code.
|
|
30
|
-
*/
|
|
31
|
-
toString(): string;
|
|
32
|
-
/**
|
|
33
|
-
* This function is used in sorting holidays by comparing their ids and sort values
|
|
34
|
-
* @param other The holiday object used in comparison
|
|
35
|
-
* @returns A numeric value for relative location compared to other (-1 before, 1 after).
|
|
36
|
-
*/
|
|
37
|
-
compareTo(other?: Holiday): 1 | -1;
|
|
38
|
-
/**
|
|
39
|
-
* This function will retrieve any set date for the actual holiday, based on the year
|
|
40
|
-
* provided.
|
|
41
|
-
* @param year The numeric (integer) value for the 4-digit year
|
|
42
|
-
* @returns A date object or undefined for the set day of the year.
|
|
43
|
-
*/
|
|
44
|
-
getActual(year: number): Date | undefined;
|
|
45
|
-
/**
|
|
46
|
-
* The function will add a new date to the actuals list, if not already present.
|
|
47
|
-
* @param date The date object to add.
|
|
48
|
-
*/
|
|
49
|
-
addActual(date: Date): void;
|
|
50
|
-
/**
|
|
51
|
-
* The function will remove a date from the actuals list.
|
|
52
|
-
* @param date The date object to remove.
|
|
53
|
-
*/
|
|
54
|
-
deleteActual(date: Date): void;
|
|
55
|
-
/**
|
|
56
|
-
* This function will check the holiday's actual dates for dates before a cutoff date
|
|
57
|
-
* and remove them from the object.
|
|
58
|
-
* @param date The date object used as a cutoff for the purged dates.
|
|
59
|
-
*/
|
|
60
|
-
purge(date: Date): void;
|
|
61
|
-
}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Holiday = exports.HolidayType = void 0;
|
|
4
|
-
var HolidayType;
|
|
5
|
-
(function (HolidayType) {
|
|
6
|
-
HolidayType["holiday"] = "H";
|
|
7
|
-
HolidayType["floating"] = "F";
|
|
8
|
-
})(HolidayType || (exports.HolidayType = HolidayType = {}));
|
|
9
|
-
/**
|
|
10
|
-
* This class definition implements the holiday interface and add needed actions to
|
|
11
|
-
* manipulate the holiday object.
|
|
12
|
-
*/
|
|
13
|
-
class Holiday {
|
|
14
|
-
id;
|
|
15
|
-
name;
|
|
16
|
-
sort;
|
|
17
|
-
actualdates;
|
|
18
|
-
constructor(hol) {
|
|
19
|
-
this.id = (hol) ? hol.id : HolidayType.holiday;
|
|
20
|
-
this.name = (hol) ? hol.name : '';
|
|
21
|
-
this.sort = (hol) ? hol.sort : 0;
|
|
22
|
-
this.actualdates = [];
|
|
23
|
-
if (hol && hol.actualdates && hol.actualdates.length > 0) {
|
|
24
|
-
hol.actualdates.forEach(dt => {
|
|
25
|
-
this.actualdates.push(new Date(dt));
|
|
26
|
-
});
|
|
27
|
-
this.actualdates.sort((a, b) => (a.getTime() < b.getTime()) ? -1 : 1);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* This function will provide string for the combined id and sort code into a single
|
|
32
|
-
* string value.
|
|
33
|
-
* @returns A string value for the id and sort code.
|
|
34
|
-
*/
|
|
35
|
-
toString() {
|
|
36
|
-
return `${this.id}${this.sort}`.toUpperCase();
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* This function is used in sorting holidays by comparing their ids and sort values
|
|
40
|
-
* @param other The holiday object used in comparison
|
|
41
|
-
* @returns A numeric value for relative location compared to other (-1 before, 1 after).
|
|
42
|
-
*/
|
|
43
|
-
compareTo(other) {
|
|
44
|
-
if (other) {
|
|
45
|
-
if (this.id.toLowerCase() === other.id.toLowerCase()) {
|
|
46
|
-
return (this.sort < other.sort) ? -1 : 1;
|
|
47
|
-
}
|
|
48
|
-
return (this.id.toLowerCase() === 'h') ? -1 : 1;
|
|
49
|
-
}
|
|
50
|
-
return -1;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* This function will retrieve any set date for the actual holiday, based on the year
|
|
54
|
-
* provided.
|
|
55
|
-
* @param year The numeric (integer) value for the 4-digit year
|
|
56
|
-
* @returns A date object or undefined for the set day of the year.
|
|
57
|
-
*/
|
|
58
|
-
getActual(year) {
|
|
59
|
-
let answer = undefined;
|
|
60
|
-
const start = new Date(Date.UTC(year, 0, 1));
|
|
61
|
-
const end = new Date(Date.UTC(year + 1, 0, 1));
|
|
62
|
-
this.actualdates.forEach(dt => {
|
|
63
|
-
if (dt.getTime() >= start.getTime() && dt.getTime() < end.getTime()) {
|
|
64
|
-
answer = new Date(dt);
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
return answer;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* The function will add a new date to the actuals list, if not already present.
|
|
71
|
-
* @param date The date object to add.
|
|
72
|
-
*/
|
|
73
|
-
addActual(date) {
|
|
74
|
-
let found = false;
|
|
75
|
-
this.actualdates.forEach(ad => {
|
|
76
|
-
if (ad.getUTCFullYear() === date.getUTCFullYear()
|
|
77
|
-
&& ad.getUTCMonth() === date.getUTCMonth()
|
|
78
|
-
&& ad.getUTCDate() === date.getUTCDate()) {
|
|
79
|
-
found = true;
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
this.actualdates.push(new Date(date));
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* The function will remove a date from the actuals list.
|
|
86
|
-
* @param date The date object to remove.
|
|
87
|
-
*/
|
|
88
|
-
deleteActual(date) {
|
|
89
|
-
let found = -1;
|
|
90
|
-
this.actualdates.forEach((ad, a) => {
|
|
91
|
-
if (ad.getUTCFullYear() === date.getUTCFullYear()
|
|
92
|
-
&& ad.getUTCMonth() === date.getUTCMonth()
|
|
93
|
-
&& ad.getUTCDate() === date.getUTCDate()) {
|
|
94
|
-
found = a;
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
if (found >= 0) {
|
|
98
|
-
this.actualdates.splice(found, 1);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* This function will check the holiday's actual dates for dates before a cutoff date
|
|
103
|
-
* and remove them from the object.
|
|
104
|
-
* @param date The date object used as a cutoff for the purged dates.
|
|
105
|
-
*/
|
|
106
|
-
purge(date) {
|
|
107
|
-
for (let i = this.actualdates.length - 1; i >= 0; i--) {
|
|
108
|
-
if (this.actualdates[i].getTime() < date.getTime()) {
|
|
109
|
-
// checking to see if the actual date is before the cutoff date given.
|
|
110
|
-
// if so, remove it from the list.
|
|
111
|
-
this.actualdates.splice(i, 1);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
exports.Holiday = Holiday;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./holiday"), exports);
|
|
18
|
-
__exportStar(require("./modperiod"), exports);
|
|
19
|
-
__exportStar(require("./company"), exports);
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This interface defines a company's modified work period for pay recording. The
|
|
3
|
-
* modified work period is to ensure employee's can't carry over modified time from one
|
|
4
|
-
* fiscal period to another, so it has definitive start and ending dates.
|
|
5
|
-
*/
|
|
6
|
-
export interface IModPeriod {
|
|
7
|
-
year: number;
|
|
8
|
-
start: Date;
|
|
9
|
-
end: Date;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* This class defines the implementation of the company's modified work period, plus an
|
|
13
|
-
* action to sort the periods with.
|
|
14
|
-
*/
|
|
15
|
-
export declare class ModPeriod implements IModPeriod {
|
|
16
|
-
year: number;
|
|
17
|
-
start: Date;
|
|
18
|
-
end: Date;
|
|
19
|
-
constructor(mod?: IModPeriod);
|
|
20
|
-
compareTo(other?: ModPeriod): number;
|
|
21
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ModPeriod = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* This class defines the implementation of the company's modified work period, plus an
|
|
6
|
-
* action to sort the periods with.
|
|
7
|
-
*/
|
|
8
|
-
class ModPeriod {
|
|
9
|
-
year;
|
|
10
|
-
start;
|
|
11
|
-
end;
|
|
12
|
-
constructor(mod) {
|
|
13
|
-
this.year = (mod) ? mod.year : 0;
|
|
14
|
-
this.start = (mod) ? new Date(mod.start) : new Date(0);
|
|
15
|
-
this.end = (mod) ? new Date(mod.end) : new Date(0);
|
|
16
|
-
}
|
|
17
|
-
compareTo(other) {
|
|
18
|
-
if (other) {
|
|
19
|
-
return (this.year < other.year) ? -1 : 1;
|
|
20
|
-
}
|
|
21
|
-
return -1;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
exports.ModPeriod = ModPeriod;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This interface defines the data members for a contact type.
|
|
3
|
-
*/
|
|
4
|
-
export interface IContact {
|
|
5
|
-
id: number;
|
|
6
|
-
name: string;
|
|
7
|
-
sort: number;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* this class defines the implementation of the contact type plus actions
|
|
11
|
-
*/
|
|
12
|
-
export declare class Contact implements IContact {
|
|
13
|
-
id: number;
|
|
14
|
-
name: string;
|
|
15
|
-
sort: number;
|
|
16
|
-
constructor(co?: IContact);
|
|
17
|
-
compareTo(other?: Contact): number;
|
|
18
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Contact = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* this class defines the implementation of the contact type plus actions
|
|
6
|
-
*/
|
|
7
|
-
class Contact {
|
|
8
|
-
id;
|
|
9
|
-
name;
|
|
10
|
-
sort;
|
|
11
|
-
constructor(co) {
|
|
12
|
-
this.id = (co) ? co.id : 0;
|
|
13
|
-
this.name = (co) ? co.name : '';
|
|
14
|
-
this.sort = (co) ? co.sort : 0;
|
|
15
|
-
}
|
|
16
|
-
compareTo(other) {
|
|
17
|
-
if (other) {
|
|
18
|
-
return (this.sort < other.sort) ? -1 : 1;
|
|
19
|
-
}
|
|
20
|
-
return -1;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.Contact = Contact;
|
package/scheduler/teams/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./contact"), exports);
|
|
18
|
-
__exportStar(require("./specialty"), exports);
|
|
19
|
-
__exportStar(require("./team"), exports);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This interface defines the data members for a specialty
|
|
3
|
-
*/
|
|
4
|
-
export interface ISpecialty {
|
|
5
|
-
id: number;
|
|
6
|
-
name: string;
|
|
7
|
-
sort: number;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* This class defines the implementation of the specialty infterface plus action.
|
|
11
|
-
*/
|
|
12
|
-
export declare class Specialty implements ISpecialty {
|
|
13
|
-
id: number;
|
|
14
|
-
name: string;
|
|
15
|
-
sort: number;
|
|
16
|
-
constructor(sp?: ISpecialty);
|
|
17
|
-
compareTo(other?: Specialty): number;
|
|
18
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Specialty = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* This class defines the implementation of the specialty infterface plus action.
|
|
6
|
-
*/
|
|
7
|
-
class Specialty {
|
|
8
|
-
id;
|
|
9
|
-
name;
|
|
10
|
-
sort;
|
|
11
|
-
constructor(sp) {
|
|
12
|
-
this.id = (sp) ? sp.id : 0;
|
|
13
|
-
this.sort = (sp) ? sp.sort : 0;
|
|
14
|
-
this.name = (sp) ? sp.name : '';
|
|
15
|
-
}
|
|
16
|
-
compareTo(other) {
|
|
17
|
-
if (other) {
|
|
18
|
-
return (this.sort < other.sort) ? -1 : 1;
|
|
19
|
-
}
|
|
20
|
-
return -1;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.Specialty = Specialty;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { ObjectId } from "mongodb";
|
|
2
|
-
import { IWorkcode, Workcode } from "../labor";
|
|
3
|
-
import { ISite, Site } from "../sites";
|
|
4
|
-
import { Company, ICompany } from "./company";
|
|
5
|
-
import { Contact, IContact } from "./contact";
|
|
6
|
-
import { ISpecialty, Specialty } from "./specialty";
|
|
7
|
-
export interface ITeam {
|
|
8
|
-
_id?: ObjectId;
|
|
9
|
-
id?: string;
|
|
10
|
-
name: string;
|
|
11
|
-
workcodes: IWorkcode[];
|
|
12
|
-
sites: ISite[];
|
|
13
|
-
companies?: ICompany[];
|
|
14
|
-
contacttypes?: IContact[];
|
|
15
|
-
specialties?: ISpecialty[];
|
|
16
|
-
}
|
|
17
|
-
export declare class Team implements ITeam {
|
|
18
|
-
id: string;
|
|
19
|
-
name: string;
|
|
20
|
-
workcodes: Workcode[];
|
|
21
|
-
sites: Site[];
|
|
22
|
-
companies: Company[];
|
|
23
|
-
contacttypes: Contact[];
|
|
24
|
-
specialties: Specialty[];
|
|
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
|
-
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
|
-
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
|
-
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
|
-
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
|
-
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
|
-
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
|
-
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
|
-
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
|
-
deleteSpecialtyType(id: number): void;
|
|
95
|
-
}
|