@iveri/contracts 0.89.0 → 0.91.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-application-source.enum.d.ts +3 -2
- package/dist/api/hr/hr-application-source.enum.js +2 -1
- package/dist/api/hr/hr-hiring.type.d.ts +8 -0
- package/dist/api/hr/hr-organization.type.d.ts +5 -0
- package/dist/api/hr/hr-referral-outcome.enum.d.ts +11 -0
- package/dist/api/hr/hr-referral-outcome.enum.js +12 -0
- package/dist/api/hr/hr-referral.type.d.ts +29 -0
- package/dist/api/hr/hr-referral.type.js +1 -0
- package/dist/api/hr/hr-stand-in.type.d.ts +1 -1
- package/dist/api/hr/hr-work-day.type.d.ts +32 -0
- package/dist/api/hr/index.d.ts +2 -0
- package/dist/api/hr/index.js +2 -0
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
/** How an application arrived: through the careers page,
|
|
1
|
+
/** How an application arrived: through the careers page, typed in by HR, or put forward by a colleague. */
|
|
2
2
|
export declare enum HrApplicationSource {
|
|
3
3
|
CAREERS = "careers",
|
|
4
|
-
ADDED = "added"
|
|
4
|
+
ADDED = "added",
|
|
5
|
+
REFERRAL = "referral"
|
|
5
6
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
/** How an application arrived: through the careers page,
|
|
1
|
+
/** How an application arrived: through the careers page, typed in by HR, or put forward by a colleague. */
|
|
2
2
|
export var HrApplicationSource;
|
|
3
3
|
(function (HrApplicationSource) {
|
|
4
4
|
HrApplicationSource["CAREERS"] = "careers";
|
|
5
5
|
HrApplicationSource["ADDED"] = "added";
|
|
6
|
+
HrApplicationSource["REFERRAL"] = "referral";
|
|
6
7
|
})(HrApplicationSource || (HrApplicationSource = {}));
|
|
@@ -31,9 +31,17 @@ export interface HrApplication {
|
|
|
31
31
|
stageChangedAt: IsoDateTime;
|
|
32
32
|
decidedAt: Nullable<IsoDateTime>;
|
|
33
33
|
hiredEmployeeId: Nullable<UUID>;
|
|
34
|
+
/** The colleague who put this person forward, when `source` is `referral`. */
|
|
35
|
+
referredBy: Nullable<HrApplicationReferrer>;
|
|
36
|
+
/** Why the colleague thinks they fit. Removed with the applicant's other details. */
|
|
37
|
+
referralNote: Nullable<string>;
|
|
34
38
|
isRemoved: boolean;
|
|
35
39
|
createdAt: IsoDateTime;
|
|
36
40
|
}
|
|
41
|
+
export interface HrApplicationReferrer {
|
|
42
|
+
employeeId: UUID;
|
|
43
|
+
name: string;
|
|
44
|
+
}
|
|
37
45
|
export interface HrCareersOpening {
|
|
38
46
|
id: UUID;
|
|
39
47
|
title: string;
|
|
@@ -25,6 +25,8 @@ export interface HrDepartment {
|
|
|
25
25
|
headEmployeeId: Nullable<UUID>;
|
|
26
26
|
headName: Nullable<string>;
|
|
27
27
|
status: HrResourceStatus;
|
|
28
|
+
/** How many desks the office has, when HR has said; null when nobody counts them. */
|
|
29
|
+
deskCount: Nullable<number>;
|
|
28
30
|
employeeCount: number;
|
|
29
31
|
createdAt: IsoDateTime;
|
|
30
32
|
updatedAt: IsoDateTime;
|
|
@@ -59,6 +61,7 @@ export interface CreateHrLocationRequest {
|
|
|
59
61
|
name: string;
|
|
60
62
|
city?: Nullable<string>;
|
|
61
63
|
address?: Nullable<string>;
|
|
64
|
+
deskCount?: Nullable<number>;
|
|
62
65
|
}
|
|
63
66
|
export interface UpdateHrCompanyRequest {
|
|
64
67
|
companyName?: string;
|
|
@@ -90,5 +93,7 @@ export interface UpdateHrLocationRequest {
|
|
|
90
93
|
name?: string;
|
|
91
94
|
city?: Nullable<string>;
|
|
92
95
|
address?: Nullable<string>;
|
|
96
|
+
/** Null stops counting desks. */
|
|
97
|
+
deskCount?: Nullable<number>;
|
|
93
98
|
status?: HrResourceStatus;
|
|
94
99
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What somebody who put a colleague forward is told about it.
|
|
3
|
+
*
|
|
4
|
+
* Deliberately coarser than the application's stage: the person who referred them is not part of the hiring, so
|
|
5
|
+
* they learn that it is still going, that the person was hired, or that it has ended, and never why.
|
|
6
|
+
*/
|
|
7
|
+
export declare enum HrReferralOutcome {
|
|
8
|
+
IN_PROGRESS = "in-progress",
|
|
9
|
+
HIRED = "hired",
|
|
10
|
+
CLOSED = "closed"
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What somebody who put a colleague forward is told about it.
|
|
3
|
+
*
|
|
4
|
+
* Deliberately coarser than the application's stage: the person who referred them is not part of the hiring, so
|
|
5
|
+
* they learn that it is still going, that the person was hired, or that it has ended, and never why.
|
|
6
|
+
*/
|
|
7
|
+
export var HrReferralOutcome;
|
|
8
|
+
(function (HrReferralOutcome) {
|
|
9
|
+
HrReferralOutcome["IN_PROGRESS"] = "in-progress";
|
|
10
|
+
HrReferralOutcome["HIRED"] = "hired";
|
|
11
|
+
HrReferralOutcome["CLOSED"] = "closed";
|
|
12
|
+
})(HrReferralOutcome || (HrReferralOutcome = {}));
|
|
@@ -0,0 +1,29 @@
|
|
|
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 { HrReferralOutcome } from './hr-referral-outcome.enum.js';
|
|
5
|
+
/** Somebody the signed-in person put forward, as they are allowed to see it. */
|
|
6
|
+
export interface HrMyReferral {
|
|
7
|
+
id: UUID;
|
|
8
|
+
openingId: UUID;
|
|
9
|
+
openingTitle: string;
|
|
10
|
+
/** Null once the company's retention window has removed the person's details. */
|
|
11
|
+
candidateName: Nullable<string>;
|
|
12
|
+
outcome: HrReferralOutcome;
|
|
13
|
+
referredAt: IsoDateTime;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Putting somebody forward for an open role. Sent as a form, so a CV can come with it.
|
|
17
|
+
*
|
|
18
|
+
* `candidateAgreed` is the referrer saying the person agreed to be put forward, which is what lets their details
|
|
19
|
+
* be kept; it is sent as the string `true`.
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateHrReferralRequest {
|
|
22
|
+
openingId: UUID;
|
|
23
|
+
firstName: string;
|
|
24
|
+
lastName: string;
|
|
25
|
+
email: string;
|
|
26
|
+
phone?: string;
|
|
27
|
+
note?: string;
|
|
28
|
+
candidateAgreed: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -15,7 +15,7 @@ export interface HrStandIn {
|
|
|
15
15
|
/** Today, in the company's time zone, falls inside the dates. */
|
|
16
16
|
isActive: boolean;
|
|
17
17
|
}
|
|
18
|
-
/** Who stands in for me, and for whom I stand in, from today on. */
|
|
18
|
+
/** Who stands in for me, and for whom I stand in, from today on. HR's list is the same shape, for everybody. */
|
|
19
19
|
export interface HrMyStandIns {
|
|
20
20
|
mine: HrStandIn[];
|
|
21
21
|
forOthers: HrStandIn[];
|
|
@@ -59,3 +59,35 @@ export interface HrWhoIsIn {
|
|
|
59
59
|
offices: HrWorkDayOffice[];
|
|
60
60
|
home: HrWorkDayPerson[];
|
|
61
61
|
}
|
|
62
|
+
/** An office in HR's occupancy view, with its desks when HR has counted them. */
|
|
63
|
+
export interface HrOccupancyOffice {
|
|
64
|
+
id: UUID;
|
|
65
|
+
name: string;
|
|
66
|
+
city: Nullable<string>;
|
|
67
|
+
deskCount: Nullable<number>;
|
|
68
|
+
}
|
|
69
|
+
/** How many people said they will be at one office on a day. A null office is people with no office of their own. */
|
|
70
|
+
export interface HrOccupancyCount {
|
|
71
|
+
locationId: Nullable<UUID>;
|
|
72
|
+
count: number;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* One day of HR's occupancy view, counting everybody on the staff list that day. Each person is in exactly one of:
|
|
76
|
+
* an office, home, away (agreed time off takes the whole day) or unsaid. A day nobody works counts nobody as unsaid.
|
|
77
|
+
*/
|
|
78
|
+
export interface HrOccupancyDay {
|
|
79
|
+
date: string;
|
|
80
|
+
isWorkingDay: boolean;
|
|
81
|
+
holidayName: Nullable<LocalizedText>;
|
|
82
|
+
offices: HrOccupancyCount[];
|
|
83
|
+
home: number;
|
|
84
|
+
away: number;
|
|
85
|
+
unsaid: number;
|
|
86
|
+
}
|
|
87
|
+
/** Where the company's people said they will work over a stretch of days, as counts. */
|
|
88
|
+
export interface HrOfficeOccupancy {
|
|
89
|
+
from: string;
|
|
90
|
+
to: string;
|
|
91
|
+
offices: HrOccupancyOffice[];
|
|
92
|
+
days: HrOccupancyDay[];
|
|
93
|
+
}
|
package/dist/api/hr/index.d.ts
CHANGED
|
@@ -51,6 +51,8 @@ export * from './hr-planning-entry-kind.enum.js';
|
|
|
51
51
|
export * from './hr-planning.type.js';
|
|
52
52
|
export * from './hr-probation-outcome.enum.js';
|
|
53
53
|
export * from './hr-probation.type.js';
|
|
54
|
+
export * from './hr-referral-outcome.enum.js';
|
|
55
|
+
export * from './hr-referral.type.js';
|
|
54
56
|
export * from './hr-report.type.js';
|
|
55
57
|
export * from './hr-resource-status.enum.js';
|
|
56
58
|
export * from './hr-review-cycle-status.enum.js';
|
package/dist/api/hr/index.js
CHANGED
|
@@ -51,6 +51,8 @@ export * from './hr-planning-entry-kind.enum.js';
|
|
|
51
51
|
export * from './hr-planning.type.js';
|
|
52
52
|
export * from './hr-probation-outcome.enum.js';
|
|
53
53
|
export * from './hr-probation.type.js';
|
|
54
|
+
export * from './hr-referral-outcome.enum.js';
|
|
55
|
+
export * from './hr-referral.type.js';
|
|
54
56
|
export * from './hr-report.type.js';
|
|
55
57
|
export * from './hr-resource-status.enum.js';
|
|
56
58
|
export * from './hr-review-cycle-status.enum.js';
|