scheduler-node-models 1.2.122 → 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 +2 -17
- package/users/question.js +17 -13
- package/users/question.js.map +1 -0
- package/users/user.d.ts +5 -79
- package/users/user.js +51 -72
- 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
|
@@ -4,9 +4,6 @@ exports.Workcenter = void 0;
|
|
|
4
4
|
const employees_1 = require("../../employees");
|
|
5
5
|
const position_1 = require("./position");
|
|
6
6
|
const shift_1 = require("./shift");
|
|
7
|
-
/**
|
|
8
|
-
* This class defines a workcenter with its data members and actions
|
|
9
|
-
*/
|
|
10
7
|
class Workcenter {
|
|
11
8
|
id;
|
|
12
9
|
name;
|
|
@@ -34,26 +31,13 @@ class Workcenter {
|
|
|
34
31
|
this.positions.sort((a, b) => a.compareTo(b));
|
|
35
32
|
}
|
|
36
33
|
}
|
|
37
|
-
/**
|
|
38
|
-
* This function is used to sort this workcenter in relation to another
|
|
39
|
-
* @param other The workcenter object used in comparison.
|
|
40
|
-
* @returns A numeric value for the relative position between two workcenters.
|
|
41
|
-
*/
|
|
42
34
|
compareTo(other) {
|
|
43
35
|
if (other) {
|
|
44
36
|
return (this.sort < other.sort) ? -1 : 1;
|
|
45
37
|
}
|
|
46
38
|
return -1;
|
|
47
39
|
}
|
|
48
|
-
/**
|
|
49
|
-
* This function will be used to assign the employee to either a position or a shift
|
|
50
|
-
* based the positions assignment list or their workday code.
|
|
51
|
-
* @param emp The employee object to assign to one of the workcenter's postions or
|
|
52
|
-
* shifts.
|
|
53
|
-
* @param date The date object to used to find the employee's workday.
|
|
54
|
-
*/
|
|
55
40
|
assign(emp, date) {
|
|
56
|
-
// first check to see if the employee is assigned to a position
|
|
57
41
|
let bPosition = false;
|
|
58
42
|
if (this.positions) {
|
|
59
43
|
this.positions.forEach((pos, p) => {
|
|
@@ -75,7 +59,6 @@ class Workcenter {
|
|
|
75
59
|
}
|
|
76
60
|
});
|
|
77
61
|
}
|
|
78
|
-
// if not assigned to a position, find their shift and assign to a shift.
|
|
79
62
|
if (!bPosition && this.shifts) {
|
|
80
63
|
let wd = emp.getWorkday(date);
|
|
81
64
|
this.shifts.forEach((shft, s) => {
|
|
@@ -97,10 +80,6 @@ class Workcenter {
|
|
|
97
80
|
});
|
|
98
81
|
}
|
|
99
82
|
}
|
|
100
|
-
/**
|
|
101
|
-
* This function will clear the employees' lists from the workcenter positions and
|
|
102
|
-
* shifts.
|
|
103
|
-
*/
|
|
104
83
|
clearEmployees() {
|
|
105
84
|
if (this.positions) {
|
|
106
85
|
this.positions.forEach((pos, p) => {
|
|
@@ -121,3 +100,4 @@ class Workcenter {
|
|
|
121
100
|
}
|
|
122
101
|
}
|
|
123
102
|
exports.Workcenter = Workcenter;
|
|
103
|
+
//# sourceMappingURL=workcenter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workcenter.js","sourceRoot":"","sources":["../../../../src/scheduler/sites/workcenters/workcenter.ts"],"names":[],"mappings":";;;AAAA,+CAA2C;AAC3C,yCAAiD;AACjD,mCAAwC;AAgBxC,MAAa,UAAU;IACd,EAAE,CAAS;IACX,IAAI,CAA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C,SAAS,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE;gBAChC,GAAG,CAAC,SAAS,GAAG,SAAS,CAAC;gBAC1B,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;oBACnB,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC;gBAC1B,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC;QACD,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE;gBAC9B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;gBAC3B,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;oBAChB,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;gBACxB,CAAC;YACH,CAAC,CAAC,CAAA;QACJ,CAAC;IACH,CAAC;CACF;AAlHD,gCAkHC"}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { Holiday, HolidayType, IHoliday } from "./holiday";
|
|
2
2
|
import { IModPeriod, ModPeriod } from "./modperiod";
|
|
3
|
-
/**
|
|
4
|
-
* This interface defines the data members to describe the company information. The
|
|
5
|
-
* ingest type, period, start day, and password information are necessary to ingess the
|
|
6
|
-
* company's timecard information for various reports.
|
|
7
|
-
*/
|
|
8
3
|
export interface ICompany {
|
|
9
4
|
id: string;
|
|
10
5
|
name: string;
|
|
@@ -15,10 +10,6 @@ export interface ICompany {
|
|
|
15
10
|
holidays?: IHoliday[];
|
|
16
11
|
modperiods?: IModPeriod[];
|
|
17
12
|
}
|
|
18
|
-
/**
|
|
19
|
-
* This class definition implements the company interface, plus necessary actions to
|
|
20
|
-
* manipulate the object.
|
|
21
|
-
*/
|
|
22
13
|
export declare class Company implements ICompany {
|
|
23
14
|
id: string;
|
|
24
15
|
name: string;
|
|
@@ -29,71 +20,14 @@ export declare class Company implements ICompany {
|
|
|
29
20
|
holidays: Holiday[];
|
|
30
21
|
modperiods: ModPeriod[];
|
|
31
22
|
constructor(co?: ICompany);
|
|
32
|
-
/**
|
|
33
|
-
* This function is used in sorting this company with another.
|
|
34
|
-
* @param other The company object used in the comparison.
|
|
35
|
-
* @returns a numeric value to show relative position between the objects
|
|
36
|
-
*/
|
|
37
23
|
compareTo(other?: Company): number;
|
|
38
|
-
/**
|
|
39
|
-
* This function is used to purge any old data from the company record, mainly holiday
|
|
40
|
-
* actual dates.
|
|
41
|
-
* @param date A date object used as the cutoff date.
|
|
42
|
-
*/
|
|
43
24
|
purge(date: Date): void;
|
|
44
|
-
/**
|
|
45
|
-
* The function checks the company's list of mod periods to see if one of them fits
|
|
46
|
-
* within its start and end dates.
|
|
47
|
-
* @param date The date object for checking mod periods.
|
|
48
|
-
* @returns A boolean value to indicate if the list contains a mod period for the date.
|
|
49
|
-
*/
|
|
50
25
|
hasModPeriod(date: Date): boolean;
|
|
51
|
-
/**
|
|
52
|
-
* This function will add a new mod period to the company's mod period list.
|
|
53
|
-
* @param year numeric value for the full year.
|
|
54
|
-
* @param start The date object to specify the first day of the company's mod period.
|
|
55
|
-
* @param end The date object to specify the last day of the company's mod period.
|
|
56
|
-
*/
|
|
57
26
|
addModPeriod(year: number, start: Date, end: Date): void;
|
|
58
|
-
/**
|
|
59
|
-
* This function is used update either the start or end dates.
|
|
60
|
-
* @param year A numeric value for the mod period's year value
|
|
61
|
-
* @param field A string value to designate which date field to update
|
|
62
|
-
* @param value A date object used in the update.
|
|
63
|
-
*/
|
|
64
27
|
updateModPeriod(year: number, field: string, value: Date): void;
|
|
65
|
-
/**
|
|
66
|
-
* This function will remove a mod period from the company's list.
|
|
67
|
-
* @param year a numeric value for the year to delete.
|
|
68
|
-
*/
|
|
69
28
|
deleteModPeriod(year: number): void;
|
|
70
|
-
/**
|
|
71
|
-
* This function checks whether a particular holiday based on a combined identifier of
|
|
72
|
-
* holiday type and a sort value is present in the company's list.
|
|
73
|
-
* @param type The holiday type value for comparison to the list
|
|
74
|
-
* @param sort A numeric value for the second part of the identifier.
|
|
75
|
-
* @returns A boolean value to signify if the holiday is present in the company's list.
|
|
76
|
-
*/
|
|
77
29
|
hasHoliday(type: HolidayType, sort: number): boolean;
|
|
78
|
-
/**
|
|
79
|
-
* This function will add a new holiday, after checking for the name given.
|
|
80
|
-
* @param type The holiday type value for the new holiday
|
|
81
|
-
* @param name A string value for the name of the new holiday
|
|
82
|
-
* @returns A holiday object with the type and name.
|
|
83
|
-
*/
|
|
84
30
|
addHoliday(type: HolidayType, name: string): Holiday;
|
|
85
|
-
/**
|
|
86
|
-
* This function is used to update a company holiday.
|
|
87
|
-
* @param type The holiday type value for the holiday to update
|
|
88
|
-
* @param sort The sort value for the holiday to update
|
|
89
|
-
* @param field The string value to point to which field to update within the holiday.
|
|
90
|
-
* @param value The string value for the new value to update to.
|
|
91
|
-
*/
|
|
92
31
|
updateHoliday(type: HolidayType, sort: number, field: string, value: string): void;
|
|
93
|
-
/**
|
|
94
|
-
* This function will remove the company holiday based on the type and identifier.
|
|
95
|
-
* @param type The holiday type to look for
|
|
96
|
-
* @param sort The numeric identifier for the holiday type.
|
|
97
|
-
*/
|
|
98
32
|
deleteHoliday(type: HolidayType, sort: number): void;
|
|
99
33
|
}
|
|
@@ -3,10 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Company = void 0;
|
|
4
4
|
const holiday_1 = require("./holiday");
|
|
5
5
|
const modperiod_1 = require("./modperiod");
|
|
6
|
-
/**
|
|
7
|
-
* This class definition implements the company interface, plus necessary actions to
|
|
8
|
-
* manipulate the object.
|
|
9
|
-
*/
|
|
10
6
|
class Company {
|
|
11
7
|
id;
|
|
12
8
|
name;
|
|
@@ -38,22 +34,12 @@ class Company {
|
|
|
38
34
|
this.modperiods.sort((a, b) => a.compareTo(b));
|
|
39
35
|
}
|
|
40
36
|
}
|
|
41
|
-
/**
|
|
42
|
-
* This function is used in sorting this company with another.
|
|
43
|
-
* @param other The company object used in the comparison.
|
|
44
|
-
* @returns a numeric value to show relative position between the objects
|
|
45
|
-
*/
|
|
46
37
|
compareTo(other) {
|
|
47
38
|
if (other) {
|
|
48
39
|
return (this.name.toLowerCase() < other.name.toLowerCase()) ? -1 : 1;
|
|
49
40
|
}
|
|
50
41
|
return -1;
|
|
51
42
|
}
|
|
52
|
-
/**
|
|
53
|
-
* This function is used to purge any old data from the company record, mainly holiday
|
|
54
|
-
* actual dates.
|
|
55
|
-
* @param date A date object used as the cutoff date.
|
|
56
|
-
*/
|
|
57
43
|
purge(date) {
|
|
58
44
|
this.holidays.forEach((hol, h) => {
|
|
59
45
|
hol.purge(date);
|
|
@@ -65,12 +51,6 @@ class Company {
|
|
|
65
51
|
}
|
|
66
52
|
}
|
|
67
53
|
}
|
|
68
|
-
/**
|
|
69
|
-
* The function checks the company's list of mod periods to see if one of them fits
|
|
70
|
-
* within its start and end dates.
|
|
71
|
-
* @param date The date object for checking mod periods.
|
|
72
|
-
* @returns A boolean value to indicate if the list contains a mod period for the date.
|
|
73
|
-
*/
|
|
74
54
|
hasModPeriod(date) {
|
|
75
55
|
let answer = false;
|
|
76
56
|
this.modperiods.forEach(mod => {
|
|
@@ -80,12 +60,6 @@ class Company {
|
|
|
80
60
|
});
|
|
81
61
|
return answer;
|
|
82
62
|
}
|
|
83
|
-
/**
|
|
84
|
-
* This function will add a new mod period to the company's mod period list.
|
|
85
|
-
* @param year numeric value for the full year.
|
|
86
|
-
* @param start The date object to specify the first day of the company's mod period.
|
|
87
|
-
* @param end The date object to specify the last day of the company's mod period.
|
|
88
|
-
*/
|
|
89
63
|
addModPeriod(year, start, end) {
|
|
90
64
|
let found = false;
|
|
91
65
|
this.modperiods.forEach((mod, m) => {
|
|
@@ -105,12 +79,6 @@ class Company {
|
|
|
105
79
|
this.modperiods.sort((a, b) => a.compareTo(b));
|
|
106
80
|
}
|
|
107
81
|
}
|
|
108
|
-
/**
|
|
109
|
-
* This function is used update either the start or end dates.
|
|
110
|
-
* @param year A numeric value for the mod period's year value
|
|
111
|
-
* @param field A string value to designate which date field to update
|
|
112
|
-
* @param value A date object used in the update.
|
|
113
|
-
*/
|
|
114
82
|
updateModPeriod(year, field, value) {
|
|
115
83
|
this.modperiods.forEach((mod, m) => {
|
|
116
84
|
if (mod.year === year) {
|
|
@@ -126,10 +94,6 @@ class Company {
|
|
|
126
94
|
}
|
|
127
95
|
});
|
|
128
96
|
}
|
|
129
|
-
/**
|
|
130
|
-
* This function will remove a mod period from the company's list.
|
|
131
|
-
* @param year a numeric value for the year to delete.
|
|
132
|
-
*/
|
|
133
97
|
deleteModPeriod(year) {
|
|
134
98
|
let found = -1;
|
|
135
99
|
this.modperiods.forEach((mod, m) => {
|
|
@@ -141,13 +105,6 @@ class Company {
|
|
|
141
105
|
this.modperiods.splice(found, 1);
|
|
142
106
|
}
|
|
143
107
|
}
|
|
144
|
-
/**
|
|
145
|
-
* This function checks whether a particular holiday based on a combined identifier of
|
|
146
|
-
* holiday type and a sort value is present in the company's list.
|
|
147
|
-
* @param type The holiday type value for comparison to the list
|
|
148
|
-
* @param sort A numeric value for the second part of the identifier.
|
|
149
|
-
* @returns A boolean value to signify if the holiday is present in the company's list.
|
|
150
|
-
*/
|
|
151
108
|
hasHoliday(type, sort) {
|
|
152
109
|
let answer = false;
|
|
153
110
|
this.holidays.forEach(hol => {
|
|
@@ -157,12 +114,6 @@ class Company {
|
|
|
157
114
|
});
|
|
158
115
|
return answer;
|
|
159
116
|
}
|
|
160
|
-
/**
|
|
161
|
-
* This function will add a new holiday, after checking for the name given.
|
|
162
|
-
* @param type The holiday type value for the new holiday
|
|
163
|
-
* @param name A string value for the name of the new holiday
|
|
164
|
-
* @returns A holiday object with the type and name.
|
|
165
|
-
*/
|
|
166
117
|
addHoliday(type, name) {
|
|
167
118
|
let max = 0;
|
|
168
119
|
let holiday = new holiday_1.Holiday();
|
|
@@ -184,13 +135,6 @@ class Company {
|
|
|
184
135
|
}
|
|
185
136
|
return holiday;
|
|
186
137
|
}
|
|
187
|
-
/**
|
|
188
|
-
* This function is used to update a company holiday.
|
|
189
|
-
* @param type The holiday type value for the holiday to update
|
|
190
|
-
* @param sort The sort value for the holiday to update
|
|
191
|
-
* @param field The string value to point to which field to update within the holiday.
|
|
192
|
-
* @param value The string value for the new value to update to.
|
|
193
|
-
*/
|
|
194
138
|
updateHoliday(type, sort, field, value) {
|
|
195
139
|
this.holidays.sort((a, b) => a.compareTo(b));
|
|
196
140
|
this.holidays.forEach((hol, h) => {
|
|
@@ -236,11 +180,6 @@ class Company {
|
|
|
236
180
|
}
|
|
237
181
|
});
|
|
238
182
|
}
|
|
239
|
-
/**
|
|
240
|
-
* This function will remove the company holiday based on the type and identifier.
|
|
241
|
-
* @param type The holiday type to look for
|
|
242
|
-
* @param sort The numeric identifier for the holiday type.
|
|
243
|
-
*/
|
|
244
183
|
deleteHoliday(type, sort) {
|
|
245
184
|
let found = -1;
|
|
246
185
|
this.holidays.forEach((hol, h) => {
|
|
@@ -254,3 +193,4 @@ class Company {
|
|
|
254
193
|
}
|
|
255
194
|
}
|
|
256
195
|
exports.Company = Company;
|
|
196
|
+
//# sourceMappingURL=company.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"company.js","sourceRoot":"","sources":["../../../../src/scheduler/teams/company/company.ts"],"names":[],"mappings":";;;AAAA,uCAA2D;AAC3D,2CAAoD;AAsBpD,MAAa,OAAO;IACX,EAAE,CAAS;IACX,IAAI,CAAS;IACb,MAAM,CAAS;IACf,YAAY,CAAsB;IAClC,QAAQ,CAAsB;IAC9B,SAAS,CAAS;IAClB,QAAQ,CAAY;IACpB,UAAU,CAAc;IAE/B,YAAY,EAAa;QACvB,IAAI,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC5B,IAAI,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,C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AAC,KAAK,CAAC,CAAC,CAAC;wBAC9C,GAAG,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;wBACzB,MAAM;oBACR,KAAK,cAAc;wBACjB,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;wBAC9C,GAAG,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;wBAC5B,MAAM;gBACV,CAAC;gBACD,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC;YACzB,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAOD,aAAa,CAAC,IAAiB,EAAE,IAAY;QAC3C,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC;QACf,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE;YAC/B,IAAI,GAAG,CAAC,EAAE,KAAK,IAAI,IAAI,GAAG,CAAC,IAAI,KAAK,IAAI,EAAE,CAAC;gBACzC,KAAK,GAAG,CAAC,CAAC;YACZ,CAAC;QACH,CAAC,CAAC,CAAC;QACH,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;YACf,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QACjC,CAAC;IACH,CAAC;CACF;AA/PD,0BA+PC"}
|
|
@@ -2,60 +2,22 @@ export declare enum HolidayType {
|
|
|
2
2
|
holiday = "H",
|
|
3
3
|
floating = "F"
|
|
4
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
5
|
export interface IHoliday {
|
|
11
6
|
id: HolidayType;
|
|
12
7
|
name: string;
|
|
13
8
|
sort: number;
|
|
14
9
|
actualdates?: Date[];
|
|
15
10
|
}
|
|
16
|
-
/**
|
|
17
|
-
* This class definition implements the holiday interface and add needed actions to
|
|
18
|
-
* manipulate the holiday object.
|
|
19
|
-
*/
|
|
20
11
|
export declare class Holiday implements IHoliday {
|
|
21
12
|
id: HolidayType;
|
|
22
13
|
name: string;
|
|
23
14
|
sort: number;
|
|
24
15
|
actualdates: Date[];
|
|
25
16
|
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
17
|
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
18
|
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
19
|
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
20
|
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
21
|
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
22
|
purge(date: Date): void;
|
|
61
23
|
}
|
|
@@ -6,10 +6,6 @@ var HolidayType;
|
|
|
6
6
|
HolidayType["holiday"] = "H";
|
|
7
7
|
HolidayType["floating"] = "F";
|
|
8
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
9
|
class Holiday {
|
|
14
10
|
id;
|
|
15
11
|
name;
|
|
@@ -27,19 +23,9 @@ class Holiday {
|
|
|
27
23
|
this.actualdates.sort((a, b) => (a.getTime() < b.getTime()) ? -1 : 1);
|
|
28
24
|
}
|
|
29
25
|
}
|
|
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
26
|
toString() {
|
|
36
27
|
return `${this.id}${this.sort}`.toUpperCase();
|
|
37
28
|
}
|
|
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
29
|
compareTo(other) {
|
|
44
30
|
if (other) {
|
|
45
31
|
if (this.id.toLowerCase() === other.id.toLowerCase()) {
|
|
@@ -49,12 +35,6 @@ class Holiday {
|
|
|
49
35
|
}
|
|
50
36
|
return -1;
|
|
51
37
|
}
|
|
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
38
|
getActual(year) {
|
|
59
39
|
let answer = undefined;
|
|
60
40
|
const start = new Date(Date.UTC(year, 0, 1));
|
|
@@ -66,10 +46,6 @@ class Holiday {
|
|
|
66
46
|
});
|
|
67
47
|
return answer;
|
|
68
48
|
}
|
|
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
49
|
addActual(date) {
|
|
74
50
|
let found = false;
|
|
75
51
|
this.actualdates.forEach(ad => {
|
|
@@ -81,10 +57,6 @@ class Holiday {
|
|
|
81
57
|
});
|
|
82
58
|
this.actualdates.push(new Date(date));
|
|
83
59
|
}
|
|
84
|
-
/**
|
|
85
|
-
* The function will remove a date from the actuals list.
|
|
86
|
-
* @param date The date object to remove.
|
|
87
|
-
*/
|
|
88
60
|
deleteActual(date) {
|
|
89
61
|
let found = -1;
|
|
90
62
|
this.actualdates.forEach((ad, a) => {
|
|
@@ -98,19 +70,13 @@ class Holiday {
|
|
|
98
70
|
this.actualdates.splice(found, 1);
|
|
99
71
|
}
|
|
100
72
|
}
|
|
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
73
|
purge(date) {
|
|
107
74
|
for (let i = this.actualdates.length - 1; i >= 0; i--) {
|
|
108
75
|
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
76
|
this.actualdates.splice(i, 1);
|
|
112
77
|
}
|
|
113
78
|
}
|
|
114
79
|
}
|
|
115
80
|
}
|
|
116
81
|
exports.Holiday = Holiday;
|
|
82
|
+
//# sourceMappingURL=holiday.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"holiday.js","sourceRoot":"","sources":["../../../../src/scheduler/teams/company/holiday.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,6BAAc,CAAA;AAChB,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB;AAkBD,MAAa,OAAO;IACX,EAAE,CAAc;IAChB,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heduler/teams/company/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,8CAA4B;AAC5B,4CAA0B"}
|
|
@@ -1,17 +1,8 @@
|
|
|
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
1
|
export interface IModPeriod {
|
|
7
2
|
year: number;
|
|
8
3
|
start: Date;
|
|
9
4
|
end: Date;
|
|
10
5
|
}
|
|
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
6
|
export declare class ModPeriod implements IModPeriod {
|
|
16
7
|
year: number;
|
|
17
8
|
start: Date;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
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
4
|
class ModPeriod {
|
|
9
5
|
year;
|
|
10
6
|
start;
|
|
@@ -22,3 +18,4 @@ class ModPeriod {
|
|
|
22
18
|
}
|
|
23
19
|
}
|
|
24
20
|
exports.ModPeriod = ModPeriod;
|
|
21
|
+
//# sourceMappingURL=modperiod.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modperiod.js","sourceRoot":"","sources":["../../../../src/scheduler/teams/company/modperiod.ts"],"names":[],"mappings":";;;AAeA,MAAa,SAAS;IACb,IAAI,CAAS;IACb,KAAK,CAAO;IACZ,GAAG,CAAO;IAEjB,YAAY,GAAgB;QAC1B,IAAI,CAAC,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QACjC,IAAI,CAAC,KAAK,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;QACvD,IAAI,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;IACrD,CAAC;IAED,SAAS,CAAC,KAAiB;QACzB,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;AAjBD,8BAiBC"}
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This interface defines the data members for a contact type.
|
|
3
|
-
*/
|
|
4
1
|
export interface IContact {
|
|
5
2
|
id: number;
|
|
6
3
|
name: string;
|
|
7
4
|
sort: number;
|
|
8
5
|
}
|
|
9
|
-
/**
|
|
10
|
-
* this class defines the implementation of the contact type plus actions
|
|
11
|
-
*/
|
|
12
6
|
export declare class Contact implements IContact {
|
|
13
7
|
id: number;
|
|
14
8
|
name: string;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Contact = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* this class defines the implementation of the contact type plus actions
|
|
6
|
-
*/
|
|
7
4
|
class Contact {
|
|
8
5
|
id;
|
|
9
6
|
name;
|
|
@@ -21,3 +18,4 @@ class Contact {
|
|
|
21
18
|
}
|
|
22
19
|
}
|
|
23
20
|
exports.Contact = Contact;
|
|
21
|
+
//# sourceMappingURL=contact.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact.js","sourceRoot":"","sources":["../../../src/scheduler/teams/contact.ts"],"names":[],"mappings":";;;AAYA,MAAa,OAAO;IACX,EAAE,CAAS;IACX,IAAI,CAAS;IACb,IAAI,CAAS;IAEpB,YAAY,EAAa;QACvB,IAAI,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3B,IAAI,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;QAChC,IAAI,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IACjC,CAAC;IAED,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;AAjBD,0BAiBC"}
|
package/scheduler/teams/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/scheduler/teams/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,8CAA4B;AAC5B,yCAAuB;AACvB,wCAAsB"}
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This interface defines the data members for a specialty
|
|
3
|
-
*/
|
|
4
1
|
export interface ISpecialty {
|
|
5
2
|
id: number;
|
|
6
3
|
name: string;
|
|
7
4
|
sort: number;
|
|
8
5
|
}
|
|
9
|
-
/**
|
|
10
|
-
* This class defines the implementation of the specialty infterface plus action.
|
|
11
|
-
*/
|
|
12
6
|
export declare class Specialty implements ISpecialty {
|
|
13
7
|
id: number;
|
|
14
8
|
name: string;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Specialty = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* This class defines the implementation of the specialty infterface plus action.
|
|
6
|
-
*/
|
|
7
4
|
class Specialty {
|
|
8
5
|
id;
|
|
9
6
|
name;
|
|
@@ -21,3 +18,4 @@ class Specialty {
|
|
|
21
18
|
}
|
|
22
19
|
}
|
|
23
20
|
exports.Specialty = Specialty;
|
|
21
|
+
//# sourceMappingURL=specialty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"specialty.js","sourceRoot":"","sources":["../../../src/scheduler/teams/specialty.ts"],"names":[],"mappings":";;;AAYA,MAAa,SAAS;IACb,EAAE,CAAS;IACX,IAAI,CAAS;IACb,IAAI,CAAS;IAEpB,YAAY,EAAe;QACzB,IAAI,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3B,IAAI,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAC/B,IAAI,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;IAClC,CAAC;IAED,SAAS,CAAC,KAAiB;QACzB,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;AAjBD,8BAiBC"}
|