@iveri/contracts 0.86.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,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 = {}));
@@ -68,4 +68,6 @@ export * from './hr-team-role.enum.js';
68
68
  export * from './hr-team.type.js';
69
69
  export * from './hr-thanks.type.js';
70
70
  export * from './hr-time-off.type.js';
71
+ export * from './hr-work-day.type.js';
72
+ export * from './hr-work-place.enum.js';
71
73
  export * from './localized-text.type.js';
@@ -68,4 +68,6 @@ export * from './hr-team-role.enum.js';
68
68
  export * from './hr-team.type.js';
69
69
  export * from './hr-thanks.type.js';
70
70
  export * from './hr-time-off.type.js';
71
+ export * from './hr-work-day.type.js';
72
+ export * from './hr-work-place.enum.js';
71
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.86.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": {