@iveri/contracts 0.69.0 → 0.71.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/chat/chat-attachment-kind.enum.d.ts +6 -0
- package/dist/api/chat/chat-attachment-kind.enum.js +7 -0
- package/dist/api/chat/chat-attachment.type.d.ts +36 -0
- package/dist/api/chat/chat-attachment.type.js +1 -0
- package/dist/api/chat/chat-case-decision.enum.d.ts +8 -0
- package/dist/api/chat/chat-case-decision.enum.js +9 -0
- package/dist/api/chat/chat-case-status.enum.d.ts +5 -0
- package/dist/api/chat/chat-case-status.enum.js +6 -0
- package/dist/api/chat/chat-contact.type.d.ts +38 -0
- package/dist/api/chat/chat-contact.type.js +1 -0
- package/dist/api/chat/chat-conversation-kind.enum.d.ts +6 -0
- package/dist/api/chat/chat-conversation-kind.enum.js +7 -0
- package/dist/api/chat/chat-conversation.type.d.ts +120 -0
- package/dist/api/chat/chat-conversation.type.js +1 -0
- package/dist/api/chat/chat-device-platform.enum.d.ts +5 -0
- package/dist/api/chat/chat-device-platform.enum.js +6 -0
- package/dist/api/chat/chat-embed.type.d.ts +57 -0
- package/dist/api/chat/chat-embed.type.js +1 -0
- package/dist/api/chat/chat-limits.constant.d.ts +37 -0
- package/dist/api/chat/chat-limits.constant.js +37 -0
- package/dist/api/chat/chat-message-kind.enum.d.ts +8 -0
- package/dist/api/chat/chat-message-kind.enum.js +9 -0
- package/dist/api/chat/chat-message.type.d.ts +73 -0
- package/dist/api/chat/chat-message.type.js +1 -0
- package/dist/api/chat/chat-moderation.type.d.ts +107 -0
- package/dist/api/chat/chat-moderation.type.js +1 -0
- package/dist/api/chat/chat-participant-role.enum.d.ts +6 -0
- package/dist/api/chat/chat-participant-role.enum.js +7 -0
- package/dist/api/chat/chat-participant-status.enum.d.ts +7 -0
- package/dist/api/chat/chat-participant-status.enum.js +8 -0
- package/dist/api/chat/chat-person-status.enum.d.ts +6 -0
- package/dist/api/chat/chat-person-status.enum.js +7 -0
- package/dist/api/chat/chat-person.type.d.ts +52 -0
- package/dist/api/chat/chat-person.type.js +1 -0
- package/dist/api/chat/chat-realtime-event.enum.d.ts +6 -0
- package/dist/api/chat/chat-realtime-event.enum.js +7 -0
- package/dist/api/chat/chat-realtime.type.d.ts +20 -0
- package/dist/api/chat/chat-realtime.type.js +1 -0
- package/dist/api/chat/chat-refusal.enum.d.ts +19 -0
- package/dist/api/chat/chat-refusal.enum.js +20 -0
- package/dist/api/chat/chat-report-reason.enum.d.ts +12 -0
- package/dist/api/chat/chat-report-reason.enum.js +13 -0
- package/dist/api/chat/chat-report-target.enum.d.ts +5 -0
- package/dist/api/chat/chat-report-target.enum.js +6 -0
- package/dist/api/chat/index.d.ts +22 -0
- package/dist/api/chat/index.js +22 -0
- package/dist/api/hr/hr-announcement.type.d.ts +14 -0
- package/dist/api/hr/hr-announcement.type.js +1 -0
- package/dist/api/hr/hr-attendance.type.d.ts +111 -0
- package/dist/api/hr/hr-attendance.type.js +1 -0
- package/dist/api/hr/hr-document.type.d.ts +60 -0
- package/dist/api/hr/hr-document.type.js +1 -0
- package/dist/api/hr/hr-hiring.type.d.ts +99 -0
- package/dist/api/hr/hr-hiring.type.js +1 -0
- package/dist/api/hr/hr-onboarding.type.d.ts +53 -0
- package/dist/api/hr/hr-onboarding.type.js +1 -0
- package/dist/api/hr/hr-one-to-one-role.enum.d.ts +5 -0
- package/dist/api/hr/hr-one-to-one-role.enum.js +6 -0
- package/dist/api/hr/hr-organization.type.d.ts +10 -0
- package/dist/api/hr/hr-payroll.type.d.ts +66 -0
- package/dist/api/hr/hr-payroll.type.js +1 -0
- package/dist/api/hr/hr-performance.type.d.ts +148 -0
- package/dist/api/hr/hr-performance.type.js +1 -0
- package/dist/api/hr/hr-review-question-kind.enum.d.ts +5 -0
- package/dist/api/hr/hr-review-question-kind.enum.js +6 -0
- package/dist/api/hr/index.d.ts +9 -0
- package/dist/api/hr/index.js +9 -0
- package/dist/enum/user-permission.enum.d.ts +13 -1
- package/dist/enum/user-permission.enum.js +13 -0
- package/package.json +5 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Where somebody stands in a conversation. `request` waits for them to accept it, and the sender cannot see whether it was read until they do. */
|
|
2
|
+
export var ChatParticipantStatus;
|
|
3
|
+
(function (ChatParticipantStatus) {
|
|
4
|
+
ChatParticipantStatus["ACTIVE"] = "active";
|
|
5
|
+
ChatParticipantStatus["REQUEST"] = "request";
|
|
6
|
+
ChatParticipantStatus["LEFT"] = "left";
|
|
7
|
+
ChatParticipantStatus["REMOVED"] = "removed";
|
|
8
|
+
})(ChatParticipantStatus || (ChatParticipantStatus = {}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Whether somebody may use Baasi. A suspended or banned person can still sign in and read why. */
|
|
2
|
+
export var ChatPersonStatus;
|
|
3
|
+
(function (ChatPersonStatus) {
|
|
4
|
+
ChatPersonStatus["ACTIVE"] = "active";
|
|
5
|
+
ChatPersonStatus["SUSPENDED"] = "suspended";
|
|
6
|
+
ChatPersonStatus["BANNED"] = "banned";
|
|
7
|
+
})(ChatPersonStatus || (ChatPersonStatus = {}));
|
|
@@ -0,0 +1,52 @@
|
|
|
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 { ChatImage } from './chat-attachment.type.js';
|
|
5
|
+
import type { ChatPersonStatus } from './chat-person-status.enum.js';
|
|
6
|
+
/** Somebody as another person sees them. Nothing here is an email address or a phone number. */
|
|
7
|
+
export interface ChatPersonCard {
|
|
8
|
+
userId: UUID;
|
|
9
|
+
displayName: string;
|
|
10
|
+
/** Only in the Baasi network. A person inside a product has none. */
|
|
11
|
+
handle: Nullable<string>;
|
|
12
|
+
avatar: Nullable<ChatImage>;
|
|
13
|
+
/** Null when they hide it, or when the reader shares no conversation with them. */
|
|
14
|
+
lastActiveAt: Nullable<IsoDateTime>;
|
|
15
|
+
}
|
|
16
|
+
export interface ChatSettings {
|
|
17
|
+
/** Whether people who share a conversation with me can see when I was last active. */
|
|
18
|
+
showLastActive: boolean;
|
|
19
|
+
/** Whether my read state is shown in one-to-one conversations. */
|
|
20
|
+
sendReadReceipts: boolean;
|
|
21
|
+
}
|
|
22
|
+
/** The signed-in person's own profile. */
|
|
23
|
+
export interface ChatProfile {
|
|
24
|
+
userId: UUID;
|
|
25
|
+
/** True in the Baasi tenant. Elsewhere a person only uses conversations their product opened. */
|
|
26
|
+
isNetwork: boolean;
|
|
27
|
+
/** False until a Baasi person has chosen a handle and a name. */
|
|
28
|
+
hasProfile: boolean;
|
|
29
|
+
handle: Nullable<string>;
|
|
30
|
+
displayName: Nullable<string>;
|
|
31
|
+
bio: Nullable<string>;
|
|
32
|
+
avatar: Nullable<ChatImage>;
|
|
33
|
+
status: ChatPersonStatus;
|
|
34
|
+
/** Set while suspended or banned, translated by the client. */
|
|
35
|
+
sanctionReasonKey: Nullable<string>;
|
|
36
|
+
suspendedUntil: Nullable<IsoDateTime>;
|
|
37
|
+
settings: ChatSettings;
|
|
38
|
+
/** The personal invitation code, which anybody can use to start a conversation with me. */
|
|
39
|
+
inviteCode: Nullable<string>;
|
|
40
|
+
}
|
|
41
|
+
export interface CreateChatProfileRequest {
|
|
42
|
+
handle: string;
|
|
43
|
+
displayName: string;
|
|
44
|
+
}
|
|
45
|
+
export interface UpdateChatProfileRequest {
|
|
46
|
+
handle?: string;
|
|
47
|
+
displayName?: string;
|
|
48
|
+
bio?: Nullable<string>;
|
|
49
|
+
/** An uploaded photo attachment. `null` removes the photograph. */
|
|
50
|
+
avatarAttachmentId?: Nullable<UUID>;
|
|
51
|
+
settings?: Partial<ChatSettings>;
|
|
52
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** What a socket frame says. Identifiers only: a client refetches from `chat-api`, the one thing that knows what that reader may see. */
|
|
2
|
+
export declare enum ChatRealtimeEvent {
|
|
3
|
+
CONVERSATION_UPDATED = "chat.conversation.updated",
|
|
4
|
+
CONVERSATION_TYPING = "chat.conversation.typing",
|
|
5
|
+
INBOX_UPDATED = "chat.inbox.updated"
|
|
6
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** What a socket frame says. Identifiers only: a client refetches from `chat-api`, the one thing that knows what that reader may see. */
|
|
2
|
+
export var ChatRealtimeEvent;
|
|
3
|
+
(function (ChatRealtimeEvent) {
|
|
4
|
+
ChatRealtimeEvent["CONVERSATION_UPDATED"] = "chat.conversation.updated";
|
|
5
|
+
ChatRealtimeEvent["CONVERSATION_TYPING"] = "chat.conversation.typing";
|
|
6
|
+
ChatRealtimeEvent["INBOX_UPDATED"] = "chat.inbox.updated";
|
|
7
|
+
})(ChatRealtimeEvent || (ChatRealtimeEvent = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Nullable } from '../../type/nil.type.js';
|
|
2
|
+
import type { UUID } from '../../type/uuid.type.js';
|
|
3
|
+
import type { ChatDevicePlatform } from './chat-device-platform.enum.js';
|
|
4
|
+
import type { ChatRealtimeEvent } from './chat-realtime-event.enum.js';
|
|
5
|
+
/** What a socket receives. Identifiers only, and never a tenant id. */
|
|
6
|
+
export interface ChatRealtimeFrame {
|
|
7
|
+
event: ChatRealtimeEvent;
|
|
8
|
+
conversationId: Nullable<UUID>;
|
|
9
|
+
/** The conversation's newest sequence number, so a client can tell whether it is behind. */
|
|
10
|
+
seq: Nullable<number>;
|
|
11
|
+
/** Who is typing. */
|
|
12
|
+
userId: Nullable<UUID>;
|
|
13
|
+
}
|
|
14
|
+
/** `PUT /me/devices`. One row per installation; signing out removes it. */
|
|
15
|
+
export interface RegisterChatDeviceRequest {
|
|
16
|
+
installationId: string;
|
|
17
|
+
platform: ChatDevicePlatform;
|
|
18
|
+
pushToken: string;
|
|
19
|
+
locale?: Nullable<string>;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** A refusal a person can act on, sent as `details.reason` so a client translates it rather than showing this API's English. */
|
|
2
|
+
export declare enum ChatRefusal {
|
|
3
|
+
BLOCKED = "blocked",
|
|
4
|
+
NOT_WRITABLE = "not-writable",
|
|
5
|
+
CLOSED = "closed",
|
|
6
|
+
EDIT_WINDOW_PASSED = "edit-window-passed",
|
|
7
|
+
DELETE_WINDOW_PASSED = "delete-window-passed",
|
|
8
|
+
NOT_A_PARTICIPANT = "not-a-participant",
|
|
9
|
+
GROUP_FULL = "group-full",
|
|
10
|
+
HANDLE_TAKEN = "handle-taken",
|
|
11
|
+
NETWORK_ONLY = "network-only",
|
|
12
|
+
NO_PROFILE = "no-profile",
|
|
13
|
+
PIN_LIMIT = "pin-limit",
|
|
14
|
+
LAST_OWNER = "last-owner",
|
|
15
|
+
INVITATION_EXPIRED = "invitation-expired",
|
|
16
|
+
SUSPENDED = "suspended",
|
|
17
|
+
ATTACHMENT_REFUSED = "attachment-refused",
|
|
18
|
+
REQUEST_PENDING = "request-pending"
|
|
19
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** A refusal a person can act on, sent as `details.reason` so a client translates it rather than showing this API's English. */
|
|
2
|
+
export var ChatRefusal;
|
|
3
|
+
(function (ChatRefusal) {
|
|
4
|
+
ChatRefusal["BLOCKED"] = "blocked";
|
|
5
|
+
ChatRefusal["NOT_WRITABLE"] = "not-writable";
|
|
6
|
+
ChatRefusal["CLOSED"] = "closed";
|
|
7
|
+
ChatRefusal["EDIT_WINDOW_PASSED"] = "edit-window-passed";
|
|
8
|
+
ChatRefusal["DELETE_WINDOW_PASSED"] = "delete-window-passed";
|
|
9
|
+
ChatRefusal["NOT_A_PARTICIPANT"] = "not-a-participant";
|
|
10
|
+
ChatRefusal["GROUP_FULL"] = "group-full";
|
|
11
|
+
ChatRefusal["HANDLE_TAKEN"] = "handle-taken";
|
|
12
|
+
ChatRefusal["NETWORK_ONLY"] = "network-only";
|
|
13
|
+
ChatRefusal["NO_PROFILE"] = "no-profile";
|
|
14
|
+
ChatRefusal["PIN_LIMIT"] = "pin-limit";
|
|
15
|
+
ChatRefusal["LAST_OWNER"] = "last-owner";
|
|
16
|
+
ChatRefusal["INVITATION_EXPIRED"] = "invitation-expired";
|
|
17
|
+
ChatRefusal["SUSPENDED"] = "suspended";
|
|
18
|
+
ChatRefusal["ATTACHMENT_REFUSED"] = "attachment-refused";
|
|
19
|
+
ChatRefusal["REQUEST_PENDING"] = "request-pending";
|
|
20
|
+
})(ChatRefusal || (ChatRefusal = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** Why somebody reported a message or a person. */
|
|
2
|
+
export declare enum ChatReportReason {
|
|
3
|
+
SPAM = "spam",
|
|
4
|
+
HARASSMENT = "harassment",
|
|
5
|
+
HATE = "hate",
|
|
6
|
+
VIOLENCE = "violence",
|
|
7
|
+
SEXUAL_CONTENT = "sexual-content",
|
|
8
|
+
CHILD_SAFETY = "child-safety",
|
|
9
|
+
SCAM = "scam",
|
|
10
|
+
IMPERSONATION = "impersonation",
|
|
11
|
+
OTHER = "other"
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Why somebody reported a message or a person. */
|
|
2
|
+
export var ChatReportReason;
|
|
3
|
+
(function (ChatReportReason) {
|
|
4
|
+
ChatReportReason["SPAM"] = "spam";
|
|
5
|
+
ChatReportReason["HARASSMENT"] = "harassment";
|
|
6
|
+
ChatReportReason["HATE"] = "hate";
|
|
7
|
+
ChatReportReason["VIOLENCE"] = "violence";
|
|
8
|
+
ChatReportReason["SEXUAL_CONTENT"] = "sexual-content";
|
|
9
|
+
ChatReportReason["CHILD_SAFETY"] = "child-safety";
|
|
10
|
+
ChatReportReason["SCAM"] = "scam";
|
|
11
|
+
ChatReportReason["IMPERSONATION"] = "impersonation";
|
|
12
|
+
ChatReportReason["OTHER"] = "other";
|
|
13
|
+
})(ChatReportReason || (ChatReportReason = {}));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export * from './chat-attachment-kind.enum.js';
|
|
2
|
+
export * from './chat-attachment.type.js';
|
|
3
|
+
export * from './chat-case-decision.enum.js';
|
|
4
|
+
export * from './chat-case-status.enum.js';
|
|
5
|
+
export * from './chat-contact.type.js';
|
|
6
|
+
export * from './chat-conversation-kind.enum.js';
|
|
7
|
+
export * from './chat-conversation.type.js';
|
|
8
|
+
export * from './chat-device-platform.enum.js';
|
|
9
|
+
export * from './chat-embed.type.js';
|
|
10
|
+
export * from './chat-limits.constant.js';
|
|
11
|
+
export * from './chat-message-kind.enum.js';
|
|
12
|
+
export * from './chat-message.type.js';
|
|
13
|
+
export * from './chat-moderation.type.js';
|
|
14
|
+
export * from './chat-participant-role.enum.js';
|
|
15
|
+
export * from './chat-participant-status.enum.js';
|
|
16
|
+
export * from './chat-person-status.enum.js';
|
|
17
|
+
export * from './chat-person.type.js';
|
|
18
|
+
export * from './chat-realtime-event.enum.js';
|
|
19
|
+
export * from './chat-realtime.type.js';
|
|
20
|
+
export * from './chat-refusal.enum.js';
|
|
21
|
+
export * from './chat-report-reason.enum.js';
|
|
22
|
+
export * from './chat-report-target.enum.js';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export * from './chat-attachment-kind.enum.js';
|
|
2
|
+
export * from './chat-attachment.type.js';
|
|
3
|
+
export * from './chat-case-decision.enum.js';
|
|
4
|
+
export * from './chat-case-status.enum.js';
|
|
5
|
+
export * from './chat-contact.type.js';
|
|
6
|
+
export * from './chat-conversation-kind.enum.js';
|
|
7
|
+
export * from './chat-conversation.type.js';
|
|
8
|
+
export * from './chat-device-platform.enum.js';
|
|
9
|
+
export * from './chat-embed.type.js';
|
|
10
|
+
export * from './chat-limits.constant.js';
|
|
11
|
+
export * from './chat-message-kind.enum.js';
|
|
12
|
+
export * from './chat-message.type.js';
|
|
13
|
+
export * from './chat-moderation.type.js';
|
|
14
|
+
export * from './chat-participant-role.enum.js';
|
|
15
|
+
export * from './chat-participant-status.enum.js';
|
|
16
|
+
export * from './chat-person-status.enum.js';
|
|
17
|
+
export * from './chat-person.type.js';
|
|
18
|
+
export * from './chat-realtime-event.enum.js';
|
|
19
|
+
export * from './chat-realtime.type.js';
|
|
20
|
+
export * from './chat-refusal.enum.js';
|
|
21
|
+
export * from './chat-report-reason.enum.js';
|
|
22
|
+
export * from './chat-report-target.enum.js';
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
export interface HrAnnouncement {
|
|
5
|
+
id: UUID;
|
|
6
|
+
title: string;
|
|
7
|
+
body: string;
|
|
8
|
+
authorName: Nullable<string>;
|
|
9
|
+
publishedAt: IsoDateTime;
|
|
10
|
+
}
|
|
11
|
+
export interface CreateHrAnnouncementRequest {
|
|
12
|
+
title: string;
|
|
13
|
+
body: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,111 @@
|
|
|
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 { HrAttendanceCorrectionStatus } from './hr-attendance-correction-status.enum.js';
|
|
5
|
+
import type { HrAttendanceSource } from './hr-attendance-source.enum.js';
|
|
6
|
+
import type { HrAttendanceState } from './hr-attendance-state.enum.js';
|
|
7
|
+
import type { LocalizedText } from './localized-text.type.js';
|
|
8
|
+
export interface HrAttendanceCorrection {
|
|
9
|
+
id: UUID;
|
|
10
|
+
employeeId: UUID;
|
|
11
|
+
employeeName: string;
|
|
12
|
+
entryId: Nullable<UUID>;
|
|
13
|
+
workDate: string;
|
|
14
|
+
clockIn: IsoDateTime;
|
|
15
|
+
clockOut: IsoDateTime;
|
|
16
|
+
reason: string;
|
|
17
|
+
status: HrAttendanceCorrectionStatus;
|
|
18
|
+
decidedByName: Nullable<string>;
|
|
19
|
+
decidedAt: Nullable<IsoDateTime>;
|
|
20
|
+
decisionNote: Nullable<string>;
|
|
21
|
+
createdAt: IsoDateTime;
|
|
22
|
+
}
|
|
23
|
+
export interface HrAttendanceCorrectionsPage {
|
|
24
|
+
items: HrAttendanceCorrection[];
|
|
25
|
+
total: number;
|
|
26
|
+
limit: number;
|
|
27
|
+
offset: number;
|
|
28
|
+
}
|
|
29
|
+
export interface HrAttendanceEntry {
|
|
30
|
+
id: UUID;
|
|
31
|
+
employeeId: UUID;
|
|
32
|
+
workDate: string;
|
|
33
|
+
clockIn: IsoDateTime;
|
|
34
|
+
clockOut: Nullable<IsoDateTime>;
|
|
35
|
+
source: HrAttendanceSource;
|
|
36
|
+
note: Nullable<string>;
|
|
37
|
+
}
|
|
38
|
+
export interface HrAttendanceSummary {
|
|
39
|
+
from: string;
|
|
40
|
+
to: string;
|
|
41
|
+
rows: HrAttendanceSummaryRow[];
|
|
42
|
+
}
|
|
43
|
+
export interface HrAttendanceSummaryRow {
|
|
44
|
+
employeeId: UUID;
|
|
45
|
+
employeeName: string;
|
|
46
|
+
departmentName: Nullable<string>;
|
|
47
|
+
minutes: number;
|
|
48
|
+
expectedMinutes: number;
|
|
49
|
+
overtimeMinutes: number;
|
|
50
|
+
daysWorked: number;
|
|
51
|
+
}
|
|
52
|
+
export interface HrAttendanceToday {
|
|
53
|
+
date: string;
|
|
54
|
+
rows: HrAttendanceTodayRow[];
|
|
55
|
+
inCount: number;
|
|
56
|
+
outCount: number;
|
|
57
|
+
awayCount: number;
|
|
58
|
+
notInCount: number;
|
|
59
|
+
}
|
|
60
|
+
export interface HrAttendanceTodayRow {
|
|
61
|
+
employeeId: UUID;
|
|
62
|
+
employeeName: string;
|
|
63
|
+
departmentName: Nullable<string>;
|
|
64
|
+
jobTitleName: Nullable<string>;
|
|
65
|
+
state: HrAttendanceState;
|
|
66
|
+
clockIn: Nullable<IsoDateTime>;
|
|
67
|
+
clockOut: Nullable<IsoDateTime>;
|
|
68
|
+
minutes: number;
|
|
69
|
+
}
|
|
70
|
+
export interface HrMyAttendance {
|
|
71
|
+
openEntry: Nullable<HrAttendanceEntry>;
|
|
72
|
+
isForgotten: boolean;
|
|
73
|
+
todayMinutes: number;
|
|
74
|
+
weekMinutes: number;
|
|
75
|
+
weekExpectedMinutes: number;
|
|
76
|
+
}
|
|
77
|
+
export interface HrTimesheetDay {
|
|
78
|
+
date: string;
|
|
79
|
+
minutes: number;
|
|
80
|
+
expectedMinutes: number;
|
|
81
|
+
isWorkingDay: boolean;
|
|
82
|
+
holidayName: Nullable<LocalizedText>;
|
|
83
|
+
isOnLeave: boolean;
|
|
84
|
+
entries: HrAttendanceEntry[];
|
|
85
|
+
}
|
|
86
|
+
export interface HrTimesheet {
|
|
87
|
+
from: string;
|
|
88
|
+
to: string;
|
|
89
|
+
days: HrTimesheetDay[];
|
|
90
|
+
totalMinutes: number;
|
|
91
|
+
expectedMinutes: number;
|
|
92
|
+
overtimeMinutes: number;
|
|
93
|
+
}
|
|
94
|
+
export interface AddHrEntryRequest {
|
|
95
|
+
clockIn: string;
|
|
96
|
+
clockOut: string;
|
|
97
|
+
note?: string;
|
|
98
|
+
}
|
|
99
|
+
export interface HrClockInRequest {
|
|
100
|
+
latitude?: number;
|
|
101
|
+
longitude?: number;
|
|
102
|
+
}
|
|
103
|
+
export interface DecideHrCorrectionRequest {
|
|
104
|
+
note?: string;
|
|
105
|
+
}
|
|
106
|
+
export interface HrRequestCorrectionRequest {
|
|
107
|
+
entryId?: UUID;
|
|
108
|
+
clockIn: string;
|
|
109
|
+
clockOut: string;
|
|
110
|
+
reason: string;
|
|
111
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,60 @@
|
|
|
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 { HrDocumentAudience } from './hr-document-audience.enum.js';
|
|
5
|
+
import type { LocalizedText } from './localized-text.type.js';
|
|
6
|
+
export interface HrDocument {
|
|
7
|
+
id: UUID;
|
|
8
|
+
employeeId: UUID;
|
|
9
|
+
employeeName: string;
|
|
10
|
+
title: string;
|
|
11
|
+
category: string;
|
|
12
|
+
originalName: string;
|
|
13
|
+
contentType: string;
|
|
14
|
+
sizeBytes: number;
|
|
15
|
+
audience: HrDocumentAudience;
|
|
16
|
+
expiresOn: Nullable<string>;
|
|
17
|
+
createdAt: IsoDateTime;
|
|
18
|
+
}
|
|
19
|
+
export interface HrMyPolicy {
|
|
20
|
+
id: UUID;
|
|
21
|
+
title: LocalizedText;
|
|
22
|
+
body: LocalizedText;
|
|
23
|
+
version: number;
|
|
24
|
+
publishedAt: IsoDateTime;
|
|
25
|
+
acknowledgedAt: Nullable<IsoDateTime>;
|
|
26
|
+
}
|
|
27
|
+
export interface HrPolicyAcknowledgement {
|
|
28
|
+
employeeId: UUID;
|
|
29
|
+
employeeName: string;
|
|
30
|
+
departmentName: Nullable<string>;
|
|
31
|
+
acknowledgedAt: Nullable<IsoDateTime>;
|
|
32
|
+
}
|
|
33
|
+
export interface HrPolicy {
|
|
34
|
+
id: UUID;
|
|
35
|
+
title: LocalizedText;
|
|
36
|
+
body: LocalizedText;
|
|
37
|
+
version: number;
|
|
38
|
+
publishedAt: Nullable<IsoDateTime>;
|
|
39
|
+
acknowledgedCount: number;
|
|
40
|
+
employeeCount: number;
|
|
41
|
+
}
|
|
42
|
+
export interface HrAcknowledgePolicyRequest {
|
|
43
|
+
version: number;
|
|
44
|
+
}
|
|
45
|
+
export interface HrSavePolicyRequest {
|
|
46
|
+
title: LocalizedText;
|
|
47
|
+
body: LocalizedText;
|
|
48
|
+
}
|
|
49
|
+
export interface UpdateHrDocumentRequest {
|
|
50
|
+
title?: string;
|
|
51
|
+
category?: string;
|
|
52
|
+
audience?: HrDocumentAudience;
|
|
53
|
+
expiresOn?: Nullable<string>;
|
|
54
|
+
}
|
|
55
|
+
export interface HrUploadDocumentRequest {
|
|
56
|
+
title: string;
|
|
57
|
+
category: string;
|
|
58
|
+
audience?: HrDocumentAudience;
|
|
59
|
+
expiresOn?: string;
|
|
60
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,99 @@
|
|
|
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 { HrApplicationStage } from './hr-application-stage.enum.js';
|
|
5
|
+
import type { HrEmploymentType } from './hr-employment-type.enum.js';
|
|
6
|
+
import type { HrOpeningStatus } from './hr-opening-status.enum.js';
|
|
7
|
+
export interface HrApplicationDetail {
|
|
8
|
+
application: HrApplication;
|
|
9
|
+
notes: HrApplicationNote[];
|
|
10
|
+
}
|
|
11
|
+
export interface HrApplicationNote {
|
|
12
|
+
id: UUID;
|
|
13
|
+
body: string;
|
|
14
|
+
authorName: Nullable<string>;
|
|
15
|
+
createdAt: IsoDateTime;
|
|
16
|
+
}
|
|
17
|
+
export interface HrApplication {
|
|
18
|
+
id: UUID;
|
|
19
|
+
openingId: UUID;
|
|
20
|
+
openingTitle: string;
|
|
21
|
+
firstName: Nullable<string>;
|
|
22
|
+
lastName: Nullable<string>;
|
|
23
|
+
email: Nullable<string>;
|
|
24
|
+
phone: Nullable<string>;
|
|
25
|
+
coverLetter: Nullable<string>;
|
|
26
|
+
hasCv: boolean;
|
|
27
|
+
stage: HrApplicationStage;
|
|
28
|
+
source: string;
|
|
29
|
+
consentedAt: IsoDateTime;
|
|
30
|
+
stageChangedAt: IsoDateTime;
|
|
31
|
+
decidedAt: Nullable<IsoDateTime>;
|
|
32
|
+
hiredEmployeeId: Nullable<UUID>;
|
|
33
|
+
isRemoved: boolean;
|
|
34
|
+
createdAt: IsoDateTime;
|
|
35
|
+
}
|
|
36
|
+
export interface HrCareersOpening {
|
|
37
|
+
id: UUID;
|
|
38
|
+
title: string;
|
|
39
|
+
departmentName: Nullable<string>;
|
|
40
|
+
location: Nullable<string>;
|
|
41
|
+
employmentType: HrEmploymentType;
|
|
42
|
+
description: string;
|
|
43
|
+
openedAt: Nullable<IsoDateTime>;
|
|
44
|
+
}
|
|
45
|
+
export interface HrCareersPage {
|
|
46
|
+
companyName: string;
|
|
47
|
+
openings: HrCareersOpening[];
|
|
48
|
+
}
|
|
49
|
+
export interface HrOpening {
|
|
50
|
+
id: UUID;
|
|
51
|
+
title: string;
|
|
52
|
+
departmentId: Nullable<UUID>;
|
|
53
|
+
departmentName: Nullable<string>;
|
|
54
|
+
location: Nullable<string>;
|
|
55
|
+
employmentType: HrEmploymentType;
|
|
56
|
+
description: string;
|
|
57
|
+
status: HrOpeningStatus;
|
|
58
|
+
openedAt: Nullable<IsoDateTime>;
|
|
59
|
+
closedAt: Nullable<IsoDateTime>;
|
|
60
|
+
applicationCount: number;
|
|
61
|
+
activeCount: number;
|
|
62
|
+
createdAt: IsoDateTime;
|
|
63
|
+
}
|
|
64
|
+
export interface AddHrApplicationNoteRequest {
|
|
65
|
+
body: string;
|
|
66
|
+
}
|
|
67
|
+
export interface HrApplyRequest {
|
|
68
|
+
firstName: string;
|
|
69
|
+
lastName: string;
|
|
70
|
+
email: string;
|
|
71
|
+
phone?: string;
|
|
72
|
+
coverLetter?: string;
|
|
73
|
+
consent: string;
|
|
74
|
+
}
|
|
75
|
+
export interface HrHireApplicantRequest {
|
|
76
|
+
workEmail: string;
|
|
77
|
+
hireDate: string;
|
|
78
|
+
employmentType?: HrEmploymentType;
|
|
79
|
+
jobTitleId?: UUID;
|
|
80
|
+
locationId?: UUID;
|
|
81
|
+
managerId?: UUID;
|
|
82
|
+
}
|
|
83
|
+
export interface HrMoveStageRequest {
|
|
84
|
+
stage: HrApplicationStage;
|
|
85
|
+
}
|
|
86
|
+
export interface HrSaveOpeningRequest {
|
|
87
|
+
title: string;
|
|
88
|
+
departmentId?: UUID | null;
|
|
89
|
+
location?: string | null;
|
|
90
|
+
employmentType: HrEmploymentType;
|
|
91
|
+
description: string;
|
|
92
|
+
}
|
|
93
|
+
export interface UpdateHrOpeningRequest {
|
|
94
|
+
title?: string;
|
|
95
|
+
departmentId?: UUID | null;
|
|
96
|
+
location?: string | null;
|
|
97
|
+
employmentType?: HrEmploymentType;
|
|
98
|
+
description?: string;
|
|
99
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
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 { HrChecklistKind } from './hr-checklist-kind.enum.js';
|
|
5
|
+
import type { HrTaskAssignee } from './hr-task-assignee.enum.js';
|
|
6
|
+
import type { HrTaskStatus } from './hr-task-status.enum.js';
|
|
7
|
+
export interface HrChecklist {
|
|
8
|
+
id: UUID;
|
|
9
|
+
employeeId: UUID;
|
|
10
|
+
employeeName: string;
|
|
11
|
+
name: string;
|
|
12
|
+
kind: HrChecklistKind;
|
|
13
|
+
startDate: string;
|
|
14
|
+
tasks: HrChecklistTask[];
|
|
15
|
+
}
|
|
16
|
+
export interface HrChecklistTask {
|
|
17
|
+
id: UUID;
|
|
18
|
+
checklistId: UUID;
|
|
19
|
+
employeeId: UUID;
|
|
20
|
+
employeeName: string;
|
|
21
|
+
checklistName: string;
|
|
22
|
+
title: string;
|
|
23
|
+
assignee: HrTaskAssignee;
|
|
24
|
+
dueDate: string;
|
|
25
|
+
status: HrTaskStatus;
|
|
26
|
+
completedAt: Nullable<IsoDateTime>;
|
|
27
|
+
completedByName: Nullable<string>;
|
|
28
|
+
}
|
|
29
|
+
export interface HrChecklistTemplate {
|
|
30
|
+
id: UUID;
|
|
31
|
+
name: string;
|
|
32
|
+
kind: HrChecklistKind;
|
|
33
|
+
tasks: HrChecklistTemplateTask[];
|
|
34
|
+
}
|
|
35
|
+
export interface HrChecklistTemplateTask {
|
|
36
|
+
id: UUID;
|
|
37
|
+
title: string;
|
|
38
|
+
assignee: HrTaskAssignee;
|
|
39
|
+
dueOffsetDays: number;
|
|
40
|
+
}
|
|
41
|
+
export interface HrSaveTemplateRequest {
|
|
42
|
+
name: string;
|
|
43
|
+
kind: HrChecklistKind;
|
|
44
|
+
tasks: HrTemplateTaskRequest[];
|
|
45
|
+
}
|
|
46
|
+
export interface HrStartChecklistRequest {
|
|
47
|
+
templateId: UUID;
|
|
48
|
+
}
|
|
49
|
+
export interface HrTemplateTaskRequest {
|
|
50
|
+
title: string;
|
|
51
|
+
assignee: HrTaskAssignee;
|
|
52
|
+
dueOffsetDays?: number;
|
|
53
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -10,6 +10,11 @@ export interface HrCompany {
|
|
|
10
10
|
workingWeekdays: number[];
|
|
11
11
|
workdayMinutes: number;
|
|
12
12
|
capturesClockLocation: boolean;
|
|
13
|
+
incomeTaxBasisPoints: number;
|
|
14
|
+
pensionEmployeeBasisPoints: number;
|
|
15
|
+
pensionEmployerBasisPoints: number;
|
|
16
|
+
careersSlug: string | null;
|
|
17
|
+
applicantRetentionDays: number;
|
|
13
18
|
}
|
|
14
19
|
export interface HrDepartment {
|
|
15
20
|
id: UUID;
|
|
@@ -61,6 +66,11 @@ export interface UpdateHrCompanyRequest {
|
|
|
61
66
|
workingWeekdays?: number[];
|
|
62
67
|
workdayMinutes?: number;
|
|
63
68
|
capturesClockLocation?: boolean;
|
|
69
|
+
incomeTaxBasisPoints?: number;
|
|
70
|
+
pensionEmployeeBasisPoints?: number;
|
|
71
|
+
pensionEmployerBasisPoints?: number;
|
|
72
|
+
careersSlug?: string;
|
|
73
|
+
applicantRetentionDays?: number;
|
|
64
74
|
}
|
|
65
75
|
export interface UpdateHrDepartmentRequest {
|
|
66
76
|
name?: string;
|