@iveri/contracts 0.109.0 → 0.110.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.
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { IsoDateTime } from '../../type/iso-date-time.type.js';
|
|
2
|
+
import type { Nullable } from '../../type/nil.type.js';
|
|
3
|
+
/**
|
|
4
|
+
* Where a company's HR posts to Slack: one channel, through an incoming webhook the company's own Slack admin made.
|
|
5
|
+
*
|
|
6
|
+
* **The webhook address is never returned**, not masked and not truncated: it is the credential that posts into the
|
|
7
|
+
* channel. `webhookHost` answers the only question an HR person has about it, which service it points at.
|
|
8
|
+
*/
|
|
9
|
+
export interface HrSlackChannel {
|
|
10
|
+
isConnected: boolean;
|
|
11
|
+
webhookHost: Nullable<string>;
|
|
12
|
+
/** The language posts are written in: everybody in a channel reads the same message. */
|
|
13
|
+
localeCode: string;
|
|
14
|
+
/** A post when somebody's time off is agreed: who and when, never why. */
|
|
15
|
+
postsApprovedTimeOff: boolean;
|
|
16
|
+
/** A post every working morning naming who is away that day, or saying everybody is in. */
|
|
17
|
+
postsDailyAbsences: boolean;
|
|
18
|
+
/** `HH:mm` in the company's own time zone. */
|
|
19
|
+
dailyPostTime: string;
|
|
20
|
+
/** The last day a morning post went out, `YYYY-MM-DD` in the company's time zone. */
|
|
21
|
+
lastDailyPostOn: Nullable<string>;
|
|
22
|
+
/** When Slack last refused a post, so HR can tell a channel that stopped working from a quiet one. */
|
|
23
|
+
lastFailedAt: Nullable<IsoDateTime>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Every field is optional and an omitted one keeps its value. `webhookUrl: null` disconnects the channel, and a new
|
|
27
|
+
* address replaces the old one.
|
|
28
|
+
*/
|
|
29
|
+
export interface HrUpdateSlackChannelRequest {
|
|
30
|
+
webhookUrl?: Nullable<string>;
|
|
31
|
+
localeCode?: string;
|
|
32
|
+
postsApprovedTimeOff?: boolean;
|
|
33
|
+
postsDailyAbsences?: boolean;
|
|
34
|
+
dailyPostTime?: string;
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/api/hr/index.d.ts
CHANGED
|
@@ -58,6 +58,7 @@ export * from './hr-resource-status.enum.js';
|
|
|
58
58
|
export * from './hr-review-cycle-status.enum.js';
|
|
59
59
|
export * from './hr-review-question-kind.enum.js';
|
|
60
60
|
export * from './hr-review-status.enum.js';
|
|
61
|
+
export * from './hr-slack-channel.type.js';
|
|
61
62
|
export * from './hr-stand-in.type.js';
|
|
62
63
|
export * from './hr-survey-audience.enum.js';
|
|
63
64
|
export * from './hr-survey-group-kind.enum.js';
|
package/dist/api/hr/index.js
CHANGED
|
@@ -58,6 +58,7 @@ export * from './hr-resource-status.enum.js';
|
|
|
58
58
|
export * from './hr-review-cycle-status.enum.js';
|
|
59
59
|
export * from './hr-review-question-kind.enum.js';
|
|
60
60
|
export * from './hr-review-status.enum.js';
|
|
61
|
+
export * from './hr-slack-channel.type.js';
|
|
61
62
|
export * from './hr-stand-in.type.js';
|
|
62
63
|
export * from './hr-survey-audience.enum.js';
|
|
63
64
|
export * from './hr-survey-group-kind.enum.js';
|