@iveri/contracts 0.85.0 → 0.87.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.
@@ -15,6 +15,8 @@ export interface HrCompany {
15
15
  pensionEmployerBasisPoints: number;
16
16
  careersSlug: string | null;
17
17
  applicantRetentionDays: number;
18
+ /** How many days in one Monday-to-Sunday week somebody may work from home, or null for no limit. */
19
+ homeDaysPerWeek: Nullable<number>;
18
20
  }
19
21
  export interface HrDepartment {
20
22
  id: UUID;
@@ -71,6 +73,8 @@ export interface UpdateHrCompanyRequest {
71
73
  pensionEmployerBasisPoints?: number;
72
74
  careersSlug?: string;
73
75
  applicantRetentionDays?: number;
76
+ /** Null lifts the limit. */
77
+ homeDaysPerWeek?: Nullable<number>;
74
78
  }
75
79
  export interface UpdateHrDepartmentRequest {
76
80
  name?: string;
@@ -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 {};
@@ -0,0 +1,60 @@
1
+ import type { Nullable } from '../../type/nil.type.js';
2
+ import type { UUID } from '../../type/uuid.type.js';
3
+ import type { HrWorkPlace } from './hr-work-place.enum.js';
4
+ /** One day of somebody's own week, planned or not. */
5
+ export interface HrMyWorkDay {
6
+ date: string;
7
+ /** One of the company's working weekdays and not a public holiday. */
8
+ isWorkingDay: boolean;
9
+ holidayName: Nullable<string>;
10
+ /** Time off, agreed or waiting, covers it. */
11
+ isAway: boolean;
12
+ /** Null until the person says where they will work. */
13
+ place: Nullable<HrWorkPlace>;
14
+ /** The office, on an office day. */
15
+ locationId: Nullable<UUID>;
16
+ locationName: Nullable<string>;
17
+ }
18
+ /** An office somebody can say they will work at. */
19
+ export interface HrWorkOffice {
20
+ id: UUID;
21
+ name: string;
22
+ city: Nullable<string>;
23
+ }
24
+ /** Somebody's own plan for a stretch of days, with what they need to make it. */
25
+ export interface HrMyWorkDays {
26
+ from: string;
27
+ to: string;
28
+ /** How many days in one Monday-to-Sunday week the company lets somebody work from home, or null for no limit. */
29
+ homeDaysPerWeek: Nullable<number>;
30
+ /** The office a day is placed at when the person names none. */
31
+ defaultLocationId: Nullable<UUID>;
32
+ offices: HrWorkOffice[];
33
+ days: HrMyWorkDay[];
34
+ }
35
+ export interface HrSaveWorkDayRequest {
36
+ place: HrWorkPlace;
37
+ /** Which office, on an office day. Left out, it is the person's own office; a home day names none. */
38
+ locationId?: Nullable<UUID>;
39
+ }
40
+ /** Somebody who has said where they will work on a day. */
41
+ export interface HrWorkDayPerson {
42
+ employeeId: UUID;
43
+ name: string;
44
+ jobTitle: Nullable<string>;
45
+ }
46
+ /** Everybody who will be at one office on a day. An office day with no office named has a null location. */
47
+ export interface HrWorkDayOffice {
48
+ locationId: Nullable<UUID>;
49
+ locationName: Nullable<string>;
50
+ people: HrWorkDayPerson[];
51
+ }
52
+ /**
53
+ * Who has said where they will work on a day, by office, and who will be at home. Nobody away that day is in it, and
54
+ * nobody who has not said.
55
+ */
56
+ export interface HrWhoIsIn {
57
+ date: string;
58
+ offices: HrWorkDayOffice[];
59
+ home: HrWorkDayPerson[];
60
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ /** Where somebody works on a day they have planned: at one of the company's offices, or from home. */
2
+ export declare enum HrWorkPlace {
3
+ OFFICE = "office",
4
+ HOME = "home"
5
+ }
@@ -0,0 +1,6 @@
1
+ /** Where somebody works on a day they have planned: at one of the company's offices, or from home. */
2
+ export var HrWorkPlace;
3
+ (function (HrWorkPlace) {
4
+ HrWorkPlace["OFFICE"] = "office";
5
+ HrWorkPlace["HOME"] = "home";
6
+ })(HrWorkPlace || (HrWorkPlace = {}));
@@ -56,6 +56,7 @@ export * from './hr-resource-status.enum.js';
56
56
  export * from './hr-review-cycle-status.enum.js';
57
57
  export * from './hr-review-question-kind.enum.js';
58
58
  export * from './hr-review-status.enum.js';
59
+ export * from './hr-stand-in.type.js';
59
60
  export * from './hr-survey-audience.enum.js';
60
61
  export * from './hr-survey-group-kind.enum.js';
61
62
  export * from './hr-survey-question-kind.enum.js';
@@ -67,4 +68,6 @@ export * from './hr-team-role.enum.js';
67
68
  export * from './hr-team.type.js';
68
69
  export * from './hr-thanks.type.js';
69
70
  export * from './hr-time-off.type.js';
71
+ export * from './hr-work-day.type.js';
72
+ export * from './hr-work-place.enum.js';
70
73
  export * from './localized-text.type.js';
@@ -56,6 +56,7 @@ export * from './hr-resource-status.enum.js';
56
56
  export * from './hr-review-cycle-status.enum.js';
57
57
  export * from './hr-review-question-kind.enum.js';
58
58
  export * from './hr-review-status.enum.js';
59
+ export * from './hr-stand-in.type.js';
59
60
  export * from './hr-survey-audience.enum.js';
60
61
  export * from './hr-survey-group-kind.enum.js';
61
62
  export * from './hr-survey-question-kind.enum.js';
@@ -67,4 +68,6 @@ export * from './hr-team-role.enum.js';
67
68
  export * from './hr-team.type.js';
68
69
  export * from './hr-thanks.type.js';
69
70
  export * from './hr-time-off.type.js';
71
+ export * from './hr-work-day.type.js';
72
+ export * from './hr-work-place.enum.js';
70
73
  export * from './localized-text.type.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iveri/contracts",
3
- "version": "0.85.0",
3
+ "version": "0.87.0",
4
4
  "description": "Wire contracts shared by every Iveri backend and frontend. Zero runtime dependencies.",
5
5
  "license": "MIT",
6
6
  "repository": {