@iveri/contracts 0.78.0 → 0.80.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-conversation.type.d.ts +12 -0
- package/dist/api/hr/hr-conversation.type.js +1 -0
- package/dist/api/hr/hr-me.type.d.ts +10 -0
- package/dist/api/hr/index.d.ts +1 -0
- package/dist/api/hr/index.js +1 -0
- package/dist/api/realtime/realtime-event-type.enum.d.ts +0 -2
- package/dist/api/realtime/realtime-event-type.enum.js +0 -2
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { UUID } from '../../type/uuid.type.js';
|
|
2
|
+
/** `POST /me/conversations`: a colleague's employee id. */
|
|
3
|
+
export interface StartHrConversationRequest {
|
|
4
|
+
employeeId: UUID;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* The Baasi conversation HR opened or found for two colleagues. The kit opens it by this id; HR keeps no
|
|
8
|
+
* message of its own.
|
|
9
|
+
*/
|
|
10
|
+
export interface HrConversationHandle {
|
|
11
|
+
conversationId: UUID;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -13,6 +13,11 @@ export interface HrDirectoryEntry {
|
|
|
13
13
|
workEmail: string;
|
|
14
14
|
managerId: Nullable<UUID>;
|
|
15
15
|
managerName: Nullable<string>;
|
|
16
|
+
/**
|
|
17
|
+
* Whether the reader can write to this colleague on Baasi: both work here today and both have accounts.
|
|
18
|
+
* Always false for the reader themselves.
|
|
19
|
+
*/
|
|
20
|
+
canMessage: boolean;
|
|
16
21
|
}
|
|
17
22
|
export interface HrDirectoryPage {
|
|
18
23
|
items: HrDirectoryEntry[];
|
|
@@ -63,6 +68,11 @@ export interface HrTeamMember {
|
|
|
63
68
|
hireDate: string;
|
|
64
69
|
status: HrEmploymentStatus;
|
|
65
70
|
isAwayToday: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Whether the reader can write to this colleague on Baasi: both work here today and both have accounts.
|
|
73
|
+
* Always false for the reader themselves.
|
|
74
|
+
*/
|
|
75
|
+
canMessage: boolean;
|
|
66
76
|
}
|
|
67
77
|
export interface UpdateHrMyEmployeeRequest {
|
|
68
78
|
personalEmail?: Nullable<string>;
|
package/dist/api/hr/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './hr-attendance-state.enum.js';
|
|
|
8
8
|
export * from './hr-attendance.type.js';
|
|
9
9
|
export * from './hr-checklist-kind.enum.js';
|
|
10
10
|
export * from './hr-compensation.type.js';
|
|
11
|
+
export * from './hr-conversation.type.js';
|
|
11
12
|
export * from './hr-document-audience.enum.js';
|
|
12
13
|
export * from './hr-document.type.js';
|
|
13
14
|
export * from './hr-employee.type.js';
|
package/dist/api/hr/index.js
CHANGED
|
@@ -8,6 +8,7 @@ export * from './hr-attendance-state.enum.js';
|
|
|
8
8
|
export * from './hr-attendance.type.js';
|
|
9
9
|
export * from './hr-checklist-kind.enum.js';
|
|
10
10
|
export * from './hr-compensation.type.js';
|
|
11
|
+
export * from './hr-conversation.type.js';
|
|
11
12
|
export * from './hr-document-audience.enum.js';
|
|
12
13
|
export * from './hr-document.type.js';
|
|
13
14
|
export * from './hr-employee.type.js';
|
|
@@ -32,8 +32,6 @@ export declare enum RealtimeEventType {
|
|
|
32
32
|
RESTAURANT_BRANCH_UPDATED = "restaurant.branch.updated",
|
|
33
33
|
/** One diner's order moved. */
|
|
34
34
|
RESTAURANT_ORDER_UPDATED = "restaurant.order.updated",
|
|
35
|
-
/** A member's conversations changed, so their inbox is stale. */
|
|
36
|
-
SOCIAL_INBOX_UPDATED = "social.inbox.updated",
|
|
37
35
|
/** Something new happened to a member, so their activity list and its count are stale. */
|
|
38
36
|
SOCIAL_ACTIVITY_UPDATED = "social.activity.updated",
|
|
39
37
|
/** Somebody came through a branch's door or a class changed, so staff screens refetch. */
|
|
@@ -33,8 +33,6 @@ export var RealtimeEventType;
|
|
|
33
33
|
RealtimeEventType["RESTAURANT_BRANCH_UPDATED"] = "restaurant.branch.updated";
|
|
34
34
|
/** One diner's order moved. */
|
|
35
35
|
RealtimeEventType["RESTAURANT_ORDER_UPDATED"] = "restaurant.order.updated";
|
|
36
|
-
/** A member's conversations changed, so their inbox is stale. */
|
|
37
|
-
RealtimeEventType["SOCIAL_INBOX_UPDATED"] = "social.inbox.updated";
|
|
38
36
|
/** Something new happened to a member, so their activity list and its count are stale. */
|
|
39
37
|
RealtimeEventType["SOCIAL_ACTIVITY_UPDATED"] = "social.activity.updated";
|
|
40
38
|
/** Somebody came through a branch's door or a class changed, so staff screens refetch. */
|