@iveri/contracts 0.77.0 → 0.79.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.
- package/dist/api/hr/hr-conversation.type.d.ts +12 -0
- package/dist/api/hr/hr-conversation.type.js +1 -0
- package/dist/api/hr/hr-me.type.d.ts +10 -0
- package/dist/api/hr/hr-planning.type.d.ts +97 -0
- package/dist/api/hr/hr-planning.type.js +1 -0
- package/dist/api/hr/hr-team.type.d.ts +55 -0
- package/dist/api/hr/hr-team.type.js +1 -0
- package/dist/api/hr/index.d.ts +3 -0
- package/dist/api/hr/index.js +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { UUID } from '../../type/uuid.type.js';
|
|
2
|
+
/** `POST /me/conversations`: a colleague's employee id. */
|
|
3
|
+
export interface StartHrConversationRequest {
|
|
4
|
+
employeeId: UUID;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* The Baasi conversation HR opened or found for two colleagues. The kit opens it by this id; HR keeps no
|
|
8
|
+
* message of its own.
|
|
9
|
+
*/
|
|
10
|
+
export interface HrConversationHandle {
|
|
11
|
+
conversationId: UUID;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -13,6 +13,11 @@ export interface HrDirectoryEntry {
|
|
|
13
13
|
workEmail: string;
|
|
14
14
|
managerId: Nullable<UUID>;
|
|
15
15
|
managerName: Nullable<string>;
|
|
16
|
+
/**
|
|
17
|
+
* Whether the reader can write to this colleague on Baasi: both work here today and both have accounts.
|
|
18
|
+
* Always false for the reader themselves.
|
|
19
|
+
*/
|
|
20
|
+
canMessage: boolean;
|
|
16
21
|
}
|
|
17
22
|
export interface HrDirectoryPage {
|
|
18
23
|
items: HrDirectoryEntry[];
|
|
@@ -63,6 +68,11 @@ export interface HrTeamMember {
|
|
|
63
68
|
hireDate: string;
|
|
64
69
|
status: HrEmploymentStatus;
|
|
65
70
|
isAwayToday: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Whether the reader can write to this colleague on Baasi: both work here today and both have accounts.
|
|
73
|
+
* Always false for the reader themselves.
|
|
74
|
+
*/
|
|
75
|
+
canMessage: boolean;
|
|
66
76
|
}
|
|
67
77
|
export interface UpdateHrMyEmployeeRequest {
|
|
68
78
|
personalEmail?: Nullable<string>;
|
|
@@ -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
|
@@ -8,6 +8,7 @@ export * from './hr-attendance-state.enum.js';
|
|
|
8
8
|
export * from './hr-attendance.type.js';
|
|
9
9
|
export * from './hr-checklist-kind.enum.js';
|
|
10
10
|
export * from './hr-compensation.type.js';
|
|
11
|
+
export * from './hr-conversation.type.js';
|
|
11
12
|
export * from './hr-document-audience.enum.js';
|
|
12
13
|
export * from './hr-document.type.js';
|
|
13
14
|
export * from './hr-employee.type.js';
|
|
@@ -30,6 +31,7 @@ export * from './hr-payroll-run-status.enum.js';
|
|
|
30
31
|
export * from './hr-payroll.type.js';
|
|
31
32
|
export * from './hr-performance.type.js';
|
|
32
33
|
export * from './hr-planning-entry-kind.enum.js';
|
|
34
|
+
export * from './hr-planning.type.js';
|
|
33
35
|
export * from './hr-resource-status.enum.js';
|
|
34
36
|
export * from './hr-review-cycle-status.enum.js';
|
|
35
37
|
export * from './hr-review-question-kind.enum.js';
|
|
@@ -37,5 +39,6 @@ export * from './hr-review-status.enum.js';
|
|
|
37
39
|
export * from './hr-task-assignee.enum.js';
|
|
38
40
|
export * from './hr-task-status.enum.js';
|
|
39
41
|
export * from './hr-team-role.enum.js';
|
|
42
|
+
export * from './hr-team.type.js';
|
|
40
43
|
export * from './hr-time-off.type.js';
|
|
41
44
|
export * from './localized-text.type.js';
|
package/dist/api/hr/index.js
CHANGED
|
@@ -8,6 +8,7 @@ export * from './hr-attendance-state.enum.js';
|
|
|
8
8
|
export * from './hr-attendance.type.js';
|
|
9
9
|
export * from './hr-checklist-kind.enum.js';
|
|
10
10
|
export * from './hr-compensation.type.js';
|
|
11
|
+
export * from './hr-conversation.type.js';
|
|
11
12
|
export * from './hr-document-audience.enum.js';
|
|
12
13
|
export * from './hr-document.type.js';
|
|
13
14
|
export * from './hr-employee.type.js';
|
|
@@ -30,6 +31,7 @@ export * from './hr-payroll-run-status.enum.js';
|
|
|
30
31
|
export * from './hr-payroll.type.js';
|
|
31
32
|
export * from './hr-performance.type.js';
|
|
32
33
|
export * from './hr-planning-entry-kind.enum.js';
|
|
34
|
+
export * from './hr-planning.type.js';
|
|
33
35
|
export * from './hr-resource-status.enum.js';
|
|
34
36
|
export * from './hr-review-cycle-status.enum.js';
|
|
35
37
|
export * from './hr-review-question-kind.enum.js';
|
|
@@ -37,5 +39,6 @@ export * from './hr-review-status.enum.js';
|
|
|
37
39
|
export * from './hr-task-assignee.enum.js';
|
|
38
40
|
export * from './hr-task-status.enum.js';
|
|
39
41
|
export * from './hr-team-role.enum.js';
|
|
42
|
+
export * from './hr-team.type.js';
|
|
40
43
|
export * from './hr-time-off.type.js';
|
|
41
44
|
export * from './localized-text.type.js';
|