@iveri/contracts 0.90.0 → 0.91.1
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.
|
@@ -43,6 +43,8 @@ export interface HrLocation {
|
|
|
43
43
|
city: Nullable<string>;
|
|
44
44
|
address: Nullable<string>;
|
|
45
45
|
status: HrResourceStatus;
|
|
46
|
+
/** How many desks the office has, when HR has said; null when nobody counts them. */
|
|
47
|
+
deskCount: Nullable<number>;
|
|
46
48
|
employeeCount: number;
|
|
47
49
|
createdAt: IsoDateTime;
|
|
48
50
|
updatedAt: IsoDateTime;
|
|
@@ -59,6 +61,7 @@ export interface CreateHrLocationRequest {
|
|
|
59
61
|
name: string;
|
|
60
62
|
city?: Nullable<string>;
|
|
61
63
|
address?: Nullable<string>;
|
|
64
|
+
deskCount?: Nullable<number>;
|
|
62
65
|
}
|
|
63
66
|
export interface UpdateHrCompanyRequest {
|
|
64
67
|
companyName?: string;
|
|
@@ -90,5 +93,7 @@ export interface UpdateHrLocationRequest {
|
|
|
90
93
|
name?: string;
|
|
91
94
|
city?: Nullable<string>;
|
|
92
95
|
address?: Nullable<string>;
|
|
96
|
+
/** Null stops counting desks. */
|
|
97
|
+
deskCount?: Nullable<number>;
|
|
93
98
|
status?: HrResourceStatus;
|
|
94
99
|
}
|
|
@@ -15,7 +15,7 @@ export interface HrStandIn {
|
|
|
15
15
|
/** Today, in the company's time zone, falls inside the dates. */
|
|
16
16
|
isActive: boolean;
|
|
17
17
|
}
|
|
18
|
-
/** Who stands in for me, and for whom I stand in, from today on. */
|
|
18
|
+
/** Who stands in for me, and for whom I stand in, from today on. HR's list is the same shape, for everybody. */
|
|
19
19
|
export interface HrMyStandIns {
|
|
20
20
|
mine: HrStandIn[];
|
|
21
21
|
forOthers: HrStandIn[];
|
|
@@ -59,3 +59,35 @@ export interface HrWhoIsIn {
|
|
|
59
59
|
offices: HrWorkDayOffice[];
|
|
60
60
|
home: HrWorkDayPerson[];
|
|
61
61
|
}
|
|
62
|
+
/** An office in HR's occupancy view, with its desks when HR has counted them. */
|
|
63
|
+
export interface HrOccupancyOffice {
|
|
64
|
+
id: UUID;
|
|
65
|
+
name: string;
|
|
66
|
+
city: Nullable<string>;
|
|
67
|
+
deskCount: Nullable<number>;
|
|
68
|
+
}
|
|
69
|
+
/** How many people said they will be at one office on a day. A null office is people with no office of their own. */
|
|
70
|
+
export interface HrOccupancyCount {
|
|
71
|
+
locationId: Nullable<UUID>;
|
|
72
|
+
count: number;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* One day of HR's occupancy view, counting everybody on the staff list that day. Each person is in exactly one of:
|
|
76
|
+
* an office, home, away (agreed time off takes the whole day) or unsaid. A day nobody works counts nobody as unsaid.
|
|
77
|
+
*/
|
|
78
|
+
export interface HrOccupancyDay {
|
|
79
|
+
date: string;
|
|
80
|
+
isWorkingDay: boolean;
|
|
81
|
+
holidayName: Nullable<LocalizedText>;
|
|
82
|
+
offices: HrOccupancyCount[];
|
|
83
|
+
home: number;
|
|
84
|
+
away: number;
|
|
85
|
+
unsaid: number;
|
|
86
|
+
}
|
|
87
|
+
/** Where the company's people said they will work over a stretch of days, as counts. */
|
|
88
|
+
export interface HrOfficeOccupancy {
|
|
89
|
+
from: string;
|
|
90
|
+
to: string;
|
|
91
|
+
offices: HrOccupancyOffice[];
|
|
92
|
+
days: HrOccupancyDay[];
|
|
93
|
+
}
|