@iveri/contracts 0.77.0 → 0.78.0
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.
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import type { IsoDateTime } from '../../type/iso-date-time.type.js';
|
|
2
|
+
import type { Nullable } from '../../type/nil.type.js';
|
|
3
|
+
import type { UUID } from '../../type/uuid.type.js';
|
|
4
|
+
import type { HrPlanningEntryKind } from './hr-planning-entry-kind.enum.js';
|
|
5
|
+
import type { HrTeamRole } from './hr-team-role.enum.js';
|
|
6
|
+
import type { HrLeaveRequestsPage } from './hr-time-off.type.js';
|
|
7
|
+
import type { LocalizedText } from './localized-text.type.js';
|
|
8
|
+
export interface HrLeaveClashPerson {
|
|
9
|
+
employeeId: UUID;
|
|
10
|
+
name: string;
|
|
11
|
+
}
|
|
12
|
+
export interface HrLeaveClash {
|
|
13
|
+
teamId: UUID;
|
|
14
|
+
teamName: string;
|
|
15
|
+
jobTitleId: UUID;
|
|
16
|
+
jobTitleName: string;
|
|
17
|
+
from: string;
|
|
18
|
+
to: string;
|
|
19
|
+
allowedAway: number;
|
|
20
|
+
people: HrLeaveClashPerson[];
|
|
21
|
+
}
|
|
22
|
+
export interface HrLeavePlan {
|
|
23
|
+
id: UUID;
|
|
24
|
+
leaveTypeId: UUID;
|
|
25
|
+
leaveTypeName: LocalizedText;
|
|
26
|
+
startDate: string;
|
|
27
|
+
endDate: string;
|
|
28
|
+
startsAfternoon: boolean;
|
|
29
|
+
endsAtNoon: boolean;
|
|
30
|
+
halfDays: number;
|
|
31
|
+
note: Nullable<string>;
|
|
32
|
+
createdAt: IsoDateTime;
|
|
33
|
+
}
|
|
34
|
+
export interface HrLeavePlanTotal {
|
|
35
|
+
leaveTypeId: UUID;
|
|
36
|
+
leaveTypeName: LocalizedText;
|
|
37
|
+
plannedHalfDays: number;
|
|
38
|
+
availableHalfDays: Nullable<number>;
|
|
39
|
+
}
|
|
40
|
+
export interface HrLeavePlanYear {
|
|
41
|
+
year: number;
|
|
42
|
+
plans: HrLeavePlan[];
|
|
43
|
+
totals: HrLeavePlanTotal[];
|
|
44
|
+
}
|
|
45
|
+
export interface HrLeavePreviewWithClashes {
|
|
46
|
+
halfDays: number;
|
|
47
|
+
availableHalfDays: Nullable<number>;
|
|
48
|
+
isEnough: boolean;
|
|
49
|
+
clashes: HrLeaveClash[];
|
|
50
|
+
}
|
|
51
|
+
export interface HrLeaveRequestClashes {
|
|
52
|
+
requestId: UUID;
|
|
53
|
+
clashes: HrLeaveClash[];
|
|
54
|
+
}
|
|
55
|
+
export interface HrPlanningEntry {
|
|
56
|
+
kind: HrPlanningEntryKind;
|
|
57
|
+
startDate: string;
|
|
58
|
+
endDate: string;
|
|
59
|
+
startsAfternoon: boolean;
|
|
60
|
+
endsAtNoon: boolean;
|
|
61
|
+
leaveTypeName: Nullable<LocalizedText>;
|
|
62
|
+
}
|
|
63
|
+
export interface HrSavedLeavePlan {
|
|
64
|
+
plan: HrLeavePlan;
|
|
65
|
+
clashes: HrLeaveClash[];
|
|
66
|
+
}
|
|
67
|
+
export interface HrTeamRequestsPage extends HrLeaveRequestsPage {
|
|
68
|
+
clashes: HrLeaveRequestClashes[];
|
|
69
|
+
}
|
|
70
|
+
export interface HrTeamYearHoliday {
|
|
71
|
+
date: string;
|
|
72
|
+
name: LocalizedText;
|
|
73
|
+
}
|
|
74
|
+
export interface HrTeamYearMember {
|
|
75
|
+
employeeId: UUID;
|
|
76
|
+
name: string;
|
|
77
|
+
jobTitleName: Nullable<string>;
|
|
78
|
+
role: HrTeamRole;
|
|
79
|
+
entries: HrPlanningEntry[];
|
|
80
|
+
}
|
|
81
|
+
export interface HrTeamYear {
|
|
82
|
+
teamId: UUID;
|
|
83
|
+
teamName: string;
|
|
84
|
+
year: number;
|
|
85
|
+
showsLeaveTypes: boolean;
|
|
86
|
+
members: HrTeamYearMember[];
|
|
87
|
+
holidays: HrTeamYearHoliday[];
|
|
88
|
+
clashes: HrLeaveClash[];
|
|
89
|
+
}
|
|
90
|
+
export interface HrSaveLeavePlanRequest {
|
|
91
|
+
leaveTypeId: UUID;
|
|
92
|
+
startDate: string;
|
|
93
|
+
endDate: string;
|
|
94
|
+
startsAfternoon?: boolean;
|
|
95
|
+
endsAtNoon?: boolean;
|
|
96
|
+
note?: Nullable<string>;
|
|
97
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { IsoDateTime } from '../../type/iso-date-time.type.js';
|
|
2
|
+
import type { Nullable } from '../../type/nil.type.js';
|
|
3
|
+
import type { UUID } from '../../type/uuid.type.js';
|
|
4
|
+
import type { HrTeamRole } from './hr-team-role.enum.js';
|
|
5
|
+
export interface HrCoverageRule {
|
|
6
|
+
jobTitleId: UUID;
|
|
7
|
+
jobTitleName: string;
|
|
8
|
+
maxAway: number;
|
|
9
|
+
}
|
|
10
|
+
export interface HrEmployeeTeam {
|
|
11
|
+
teamId: UUID;
|
|
12
|
+
teamName: string;
|
|
13
|
+
role: HrTeamRole;
|
|
14
|
+
}
|
|
15
|
+
export interface HrMyTeam {
|
|
16
|
+
id: UUID;
|
|
17
|
+
name: string;
|
|
18
|
+
description: Nullable<string>;
|
|
19
|
+
myRole: HrTeamRole;
|
|
20
|
+
members: HrTeamMembership[];
|
|
21
|
+
}
|
|
22
|
+
export interface HrTeamDetail {
|
|
23
|
+
team: HrTeam;
|
|
24
|
+
members: HrTeamMembership[];
|
|
25
|
+
coverageRules: HrCoverageRule[];
|
|
26
|
+
}
|
|
27
|
+
export interface HrTeamMembership {
|
|
28
|
+
employeeId: UUID;
|
|
29
|
+
name: string;
|
|
30
|
+
jobTitleId: Nullable<UUID>;
|
|
31
|
+
jobTitleName: Nullable<string>;
|
|
32
|
+
role: HrTeamRole;
|
|
33
|
+
}
|
|
34
|
+
export interface HrTeam {
|
|
35
|
+
id: UUID;
|
|
36
|
+
name: string;
|
|
37
|
+
description: Nullable<string>;
|
|
38
|
+
memberCount: number;
|
|
39
|
+
leadNames: string[];
|
|
40
|
+
createdAt: IsoDateTime;
|
|
41
|
+
}
|
|
42
|
+
export interface HrPutCoverageRuleRequest {
|
|
43
|
+
maxAway: number;
|
|
44
|
+
}
|
|
45
|
+
export interface HrPutTeamMemberRequest {
|
|
46
|
+
role: HrTeamRole;
|
|
47
|
+
}
|
|
48
|
+
export interface HrSaveTeamRequest {
|
|
49
|
+
name: string;
|
|
50
|
+
description?: string;
|
|
51
|
+
}
|
|
52
|
+
export interface UpdateHrTeamRequest {
|
|
53
|
+
name?: string;
|
|
54
|
+
description?: string | null;
|
|
55
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/api/hr/index.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export * from './hr-payroll-run-status.enum.js';
|
|
|
30
30
|
export * from './hr-payroll.type.js';
|
|
31
31
|
export * from './hr-performance.type.js';
|
|
32
32
|
export * from './hr-planning-entry-kind.enum.js';
|
|
33
|
+
export * from './hr-planning.type.js';
|
|
33
34
|
export * from './hr-resource-status.enum.js';
|
|
34
35
|
export * from './hr-review-cycle-status.enum.js';
|
|
35
36
|
export * from './hr-review-question-kind.enum.js';
|
|
@@ -37,5 +38,6 @@ export * from './hr-review-status.enum.js';
|
|
|
37
38
|
export * from './hr-task-assignee.enum.js';
|
|
38
39
|
export * from './hr-task-status.enum.js';
|
|
39
40
|
export * from './hr-team-role.enum.js';
|
|
41
|
+
export * from './hr-team.type.js';
|
|
40
42
|
export * from './hr-time-off.type.js';
|
|
41
43
|
export * from './localized-text.type.js';
|
package/dist/api/hr/index.js
CHANGED
|
@@ -30,6 +30,7 @@ export * from './hr-payroll-run-status.enum.js';
|
|
|
30
30
|
export * from './hr-payroll.type.js';
|
|
31
31
|
export * from './hr-performance.type.js';
|
|
32
32
|
export * from './hr-planning-entry-kind.enum.js';
|
|
33
|
+
export * from './hr-planning.type.js';
|
|
33
34
|
export * from './hr-resource-status.enum.js';
|
|
34
35
|
export * from './hr-review-cycle-status.enum.js';
|
|
35
36
|
export * from './hr-review-question-kind.enum.js';
|
|
@@ -37,5 +38,6 @@ export * from './hr-review-status.enum.js';
|
|
|
37
38
|
export * from './hr-task-assignee.enum.js';
|
|
38
39
|
export * from './hr-task-status.enum.js';
|
|
39
40
|
export * from './hr-team-role.enum.js';
|
|
41
|
+
export * from './hr-team.type.js';
|
|
40
42
|
export * from './hr-time-off.type.js';
|
|
41
43
|
export * from './localized-text.type.js';
|