@tolinax/ayoune-interfaces 2024.2.17 → 2024.2.18
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/interfaces/IWorkCenter.d.ts +12 -16
- package/package.json +1 -1
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import { IDefaultFields } from "./IDefaultFields";
|
|
2
|
+
import { IAddOn, IWorkingTimes } from "./IDepartment";
|
|
3
|
+
export interface IWorkCenterShift {
|
|
4
|
+
name?: string;
|
|
5
|
+
active?: boolean;
|
|
6
|
+
desc?: string;
|
|
7
|
+
hoursPerWeek: number;
|
|
8
|
+
hoursPerDay: number;
|
|
9
|
+
totalDays: number;
|
|
10
|
+
addOns: IAddOn[];
|
|
11
|
+
workingTimes: IWorkingTimes;
|
|
12
|
+
}
|
|
2
13
|
export interface IWorkCenter extends IDefaultFields {
|
|
3
14
|
_customerID: ObjectId;
|
|
4
15
|
_clientID: ObjectId[];
|
|
@@ -81,22 +92,7 @@ export interface IWorkCenter extends IDefaultFields {
|
|
|
81
92
|
totalHoursPerDay: number;
|
|
82
93
|
totalDays: number;
|
|
83
94
|
totalHoursPerWeek: number;
|
|
84
|
-
shifts:
|
|
85
|
-
name?: string;
|
|
86
|
-
desc?: string;
|
|
87
|
-
hoursPerWeek: number;
|
|
88
|
-
addOns: Array<{
|
|
89
|
-
amount: number;
|
|
90
|
-
multiplier: number;
|
|
91
|
-
}>;
|
|
92
|
-
workingTimes: {
|
|
93
|
-
[key: string]: Array<{
|
|
94
|
-
from: number;
|
|
95
|
-
to: number;
|
|
96
|
-
hours: number;
|
|
97
|
-
}>;
|
|
98
|
-
};
|
|
99
|
-
}>;
|
|
95
|
+
shifts: IWorkCenterShift[];
|
|
100
96
|
planedShifts: any[];
|
|
101
97
|
cords: any[];
|
|
102
98
|
loc: {
|