@iveri/contracts 0.84.0 → 0.86.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-calendar-feed-kind.enum.d.ts +9 -0
- package/dist/api/hr/hr-calendar-feed-kind.enum.js +10 -0
- package/dist/api/hr/hr-calendar-feed.type.d.ts +27 -0
- package/dist/api/hr/hr-calendar-feed.type.js +1 -0
- package/dist/api/hr/hr-stand-in.type.d.ts +27 -0
- package/dist/api/hr/hr-stand-in.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,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a calendar subscription follows: a person's own time off, one of their teams, or the whole company.
|
|
3
|
+
* Colleagues' entries say who and when, never which kind of leave.
|
|
4
|
+
*/
|
|
5
|
+
export declare enum HrCalendarFeedKind {
|
|
6
|
+
MINE = "mine",
|
|
7
|
+
TEAM = "team",
|
|
8
|
+
COMPANY = "company"
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a calendar subscription follows: a person's own time off, one of their teams, or the whole company.
|
|
3
|
+
* Colleagues' entries say who and when, never which kind of leave.
|
|
4
|
+
*/
|
|
5
|
+
export var HrCalendarFeedKind;
|
|
6
|
+
(function (HrCalendarFeedKind) {
|
|
7
|
+
HrCalendarFeedKind["MINE"] = "mine";
|
|
8
|
+
HrCalendarFeedKind["TEAM"] = "team";
|
|
9
|
+
HrCalendarFeedKind["COMPANY"] = "company";
|
|
10
|
+
})(HrCalendarFeedKind || (HrCalendarFeedKind = {}));
|
|
@@ -0,0 +1,27 @@
|
|
|
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 { HrCalendarFeedKind } from './hr-calendar-feed-kind.enum.js';
|
|
5
|
+
/** A private address a calendar app subscribes to. The address itself is shown once, when it is made. */
|
|
6
|
+
export interface HrCalendarFeed {
|
|
7
|
+
id: UUID;
|
|
8
|
+
kind: HrCalendarFeedKind;
|
|
9
|
+
teamId: Nullable<UUID>;
|
|
10
|
+
teamName: Nullable<string>;
|
|
11
|
+
/** The language leave types and public holidays are named in. */
|
|
12
|
+
locale: string;
|
|
13
|
+
createdAt: IsoDateTime;
|
|
14
|
+
/** When a calendar app last fetched it, so a person can tell whether their subscription works. */
|
|
15
|
+
lastReadAt: Nullable<IsoDateTime>;
|
|
16
|
+
}
|
|
17
|
+
/** A new address, which replaces any earlier one for the same calendar. */
|
|
18
|
+
export interface HrCalendarFeedCreated extends HrCalendarFeed {
|
|
19
|
+
/** Relative to the API's versioned root, such as `calendar-feeds/<secret>/calendar.ics`. */
|
|
20
|
+
path: string;
|
|
21
|
+
}
|
|
22
|
+
export interface HrCreateCalendarFeedRequest {
|
|
23
|
+
kind: HrCalendarFeedKind;
|
|
24
|
+
/** Required for a team's calendar, and refused for the others. */
|
|
25
|
+
teamId?: Nullable<UUID>;
|
|
26
|
+
locale: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { UUID } from '../../type/uuid.type.js';
|
|
2
|
+
/**
|
|
3
|
+
* A colleague who, while somebody is away, decides what that person would have: the time off and the expense claims of
|
|
4
|
+
* their reports and of the teams they lead. It covers whole days, both ends included.
|
|
5
|
+
*/
|
|
6
|
+
export interface HrStandIn {
|
|
7
|
+
id: UUID;
|
|
8
|
+
/** Who is away. */
|
|
9
|
+
employeeId: UUID;
|
|
10
|
+
employeeName: string;
|
|
11
|
+
standInEmployeeId: UUID;
|
|
12
|
+
standInName: string;
|
|
13
|
+
startDate: string;
|
|
14
|
+
endDate: string;
|
|
15
|
+
/** Today, in the company's time zone, falls inside the dates. */
|
|
16
|
+
isActive: boolean;
|
|
17
|
+
}
|
|
18
|
+
/** Who stands in for me, and for whom I stand in, from today on. */
|
|
19
|
+
export interface HrMyStandIns {
|
|
20
|
+
mine: HrStandIn[];
|
|
21
|
+
forOthers: HrStandIn[];
|
|
22
|
+
}
|
|
23
|
+
export interface HrSaveStandInRequest {
|
|
24
|
+
standInEmployeeId: UUID;
|
|
25
|
+
startDate: string;
|
|
26
|
+
endDate: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/api/hr/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export * from './hr-attendance-correction-status.enum.js';
|
|
|
6
6
|
export * from './hr-attendance-source.enum.js';
|
|
7
7
|
export * from './hr-attendance-state.enum.js';
|
|
8
8
|
export * from './hr-attendance.type.js';
|
|
9
|
+
export * from './hr-calendar-feed-kind.enum.js';
|
|
10
|
+
export * from './hr-calendar-feed.type.js';
|
|
9
11
|
export * from './hr-celebration.type.js';
|
|
10
12
|
export * from './hr-checklist-kind.enum.js';
|
|
11
13
|
export * from './hr-compensation.type.js';
|
|
@@ -54,6 +56,7 @@ export * from './hr-resource-status.enum.js';
|
|
|
54
56
|
export * from './hr-review-cycle-status.enum.js';
|
|
55
57
|
export * from './hr-review-question-kind.enum.js';
|
|
56
58
|
export * from './hr-review-status.enum.js';
|
|
59
|
+
export * from './hr-stand-in.type.js';
|
|
57
60
|
export * from './hr-survey-audience.enum.js';
|
|
58
61
|
export * from './hr-survey-group-kind.enum.js';
|
|
59
62
|
export * from './hr-survey-question-kind.enum.js';
|
package/dist/api/hr/index.js
CHANGED
|
@@ -6,6 +6,8 @@ export * from './hr-attendance-correction-status.enum.js';
|
|
|
6
6
|
export * from './hr-attendance-source.enum.js';
|
|
7
7
|
export * from './hr-attendance-state.enum.js';
|
|
8
8
|
export * from './hr-attendance.type.js';
|
|
9
|
+
export * from './hr-calendar-feed-kind.enum.js';
|
|
10
|
+
export * from './hr-calendar-feed.type.js';
|
|
9
11
|
export * from './hr-celebration.type.js';
|
|
10
12
|
export * from './hr-checklist-kind.enum.js';
|
|
11
13
|
export * from './hr-compensation.type.js';
|
|
@@ -54,6 +56,7 @@ export * from './hr-resource-status.enum.js';
|
|
|
54
56
|
export * from './hr-review-cycle-status.enum.js';
|
|
55
57
|
export * from './hr-review-question-kind.enum.js';
|
|
56
58
|
export * from './hr-review-status.enum.js';
|
|
59
|
+
export * from './hr-stand-in.type.js';
|
|
57
60
|
export * from './hr-survey-audience.enum.js';
|
|
58
61
|
export * from './hr-survey-group-kind.enum.js';
|
|
59
62
|
export * from './hr-survey-question-kind.enum.js';
|