@lilaquadrat/interfaces 1.49.0 → 1.50.1

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/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.50.1](https://github.com/lilaquadrat/interfaces/compare/v1.50.0...v1.50.1) (2026-09-25)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **SupportAvailability:** added missing file ([4e5864e](https://github.com/lilaquadrat/interfaces/commit/4e5864ee38e0312a834a7d48cbae18af56670f35))
11
+
12
+ ## [1.50.0](https://github.com/lilaquadrat/interfaces/compare/v1.49.0...v1.50.0) (2026-09-25)
13
+
14
+
15
+ ### Features
16
+
17
+ * **conversations:** added supportAvailability ([340f1e3](https://github.com/lilaquadrat/interfaces/commit/340f1e3e0b6fbc9f3526845a8492e86fef103ce1))
18
+
5
19
  ## [1.49.0](https://github.com/lilaquadrat/interfaces/compare/v1.48.0...v1.49.0) (2026-09-14)
6
20
 
7
21
 
@@ -1,5 +1,6 @@
1
1
  import { ObjectId } from 'mongodb';
2
2
  import type { ConversationSla } from './ConversationSla';
3
+ import type { SupportAvailability } from './SupportAvailability';
3
4
  export type SupportStatus = 'awaiting_agent' | 'awaiting_customer' | 'resolved';
4
5
  export interface Conversation {
5
6
  _id?: ObjectId;
@@ -18,5 +19,11 @@ export interface Conversation {
18
19
  supportStatusVersion?: number;
19
20
  /** Current support SLA projection, joined at read time rather than stored on the conversation. */
20
21
  sla?: ConversationSla | null;
22
+ /**
23
+ * Customer-facing support-hours summary (derived from the Sla config + server time), attached
24
+ * at read time for support conversations. Absent for non-support conversations and when no
25
+ * Sla configuration exists. Never carries the raw Sla fields.
26
+ */
27
+ supportAvailability?: SupportAvailability | null;
21
28
  new?: boolean;
22
29
  }
@@ -0,0 +1,13 @@
1
+ import type { SupportDay } from './SupportDay';
2
+ /**
3
+ * Customer-facing support-hours schedule.
4
+ *
5
+ * Only the derived schedule is exposed (`supportDays`, `timeZone`, `responseTimeHours`), never the
6
+ * raw Sla config. Whether support is open right now is derived by the client from the schedule
7
+ * and its own clock.
8
+ */
9
+ export interface SupportAvailability {
10
+ responseTimeHours: number;
11
+ timeZone: string;
12
+ supportDays: SupportDay[];
13
+ }
@@ -227,6 +227,7 @@ export * from './Stored';
227
227
  export * from './StoryModule';
228
228
  export * from './Structure';
229
229
  export * from './StudioIframeMessage';
230
+ export * from './SupportAvailability';
230
231
  export * from './SupportDay';
231
232
  export * from './SystemDomain';
232
233
  export * from './TextModule';
@@ -1,5 +1,6 @@
1
1
  import { ObjectId } from 'mongodb';
2
2
  import type { ConversationSla } from './ConversationSla';
3
+ import type { SupportAvailability } from './SupportAvailability';
3
4
  export type SupportStatus = 'awaiting_agent' | 'awaiting_customer' | 'resolved';
4
5
  export interface Conversation {
5
6
  _id?: ObjectId;
@@ -18,5 +19,11 @@ export interface Conversation {
18
19
  supportStatusVersion?: number;
19
20
  /** Current support SLA projection, joined at read time rather than stored on the conversation. */
20
21
  sla?: ConversationSla | null;
22
+ /**
23
+ * Customer-facing support-hours summary (derived from the Sla config + server time), attached
24
+ * at read time for support conversations. Absent for non-support conversations and when no
25
+ * Sla configuration exists. Never carries the raw Sla fields.
26
+ */
27
+ supportAvailability?: SupportAvailability | null;
21
28
  new?: boolean;
22
29
  }
@@ -0,0 +1,13 @@
1
+ import type { SupportDay } from './SupportDay';
2
+ /**
3
+ * Customer-facing support-hours schedule.
4
+ *
5
+ * Only the derived schedule is exposed (`supportDays`, `timeZone`, `responseTimeHours`), never the
6
+ * raw Sla config. Whether support is open right now is derived by the client from the schedule
7
+ * and its own clock.
8
+ */
9
+ export interface SupportAvailability {
10
+ responseTimeHours: number;
11
+ timeZone: string;
12
+ supportDays: SupportDay[];
13
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=SupportAvailability.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SupportAvailability.js","sourceRoot":"","sources":["../../src/SupportAvailability.ts"],"names":[],"mappings":""}
@@ -227,6 +227,7 @@ export * from './Stored';
227
227
  export * from './StoryModule';
228
228
  export * from './Structure';
229
229
  export * from './StudioIframeMessage';
230
+ export * from './SupportAvailability';
230
231
  export * from './SupportDay';
231
232
  export * from './SystemDomain';
232
233
  export * from './TextModule';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lilaquadrat/interfaces",
3
- "version": "1.49.0",
3
+ "version": "1.50.1",
4
4
  "description": "interfaces in context of lilaquadrat STUDIO",
5
5
  "author": {
6
6
  "email": "m.schuebel@lila2.de",
@@ -1,5 +1,6 @@
1
1
  import { ObjectId } from 'mongodb';
2
2
  import type { ConversationSla } from './ConversationSla';
3
+ import type { SupportAvailability } from './SupportAvailability';
3
4
 
4
5
  export type SupportStatus = 'awaiting_agent' | 'awaiting_customer' | 'resolved';
5
6
 
@@ -20,5 +21,11 @@ export interface Conversation {
20
21
  supportStatusVersion?: number;
21
22
  /** Current support SLA projection, joined at read time rather than stored on the conversation. */
22
23
  sla?: ConversationSla | null;
24
+ /**
25
+ * Customer-facing support-hours summary (derived from the Sla config + server time), attached
26
+ * at read time for support conversations. Absent for non-support conversations and when no
27
+ * Sla configuration exists. Never carries the raw Sla fields.
28
+ */
29
+ supportAvailability?: SupportAvailability | null;
23
30
  new?: boolean;
24
31
  }
@@ -0,0 +1,14 @@
1
+ import type { SupportDay } from './SupportDay';
2
+
3
+ /**
4
+ * Customer-facing support-hours schedule.
5
+ *
6
+ * Only the derived schedule is exposed (`supportDays`, `timeZone`, `responseTimeHours`), never the
7
+ * raw Sla config. Whether support is open right now is derived by the client from the schedule
8
+ * and its own clock.
9
+ */
10
+ export interface SupportAvailability {
11
+ responseTimeHours: number;
12
+ timeZone: string;
13
+ supportDays: SupportDay[];
14
+ }