@lilaquadrat/interfaces 1.45.0 → 1.48.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/CHANGELOG.md +21 -0
- package/lib/cjs/Conversation.d.ts +7 -0
- package/lib/cjs/ConversationSla.d.ts +9 -0
- package/lib/cjs/List.d.ts +3 -3
- package/lib/cjs/Me.d.ts +11 -0
- package/lib/cjs/Sla.d.ts +8 -0
- package/lib/cjs/SupportDay.d.ts +5 -0
- package/lib/cjs/index.d.ts +3 -0
- package/lib/esm/Conversation.d.ts +7 -0
- package/lib/esm/ConversationSla.d.ts +9 -0
- package/lib/esm/ConversationSla.js +2 -0
- package/lib/esm/ConversationSla.js.map +1 -0
- package/lib/esm/List.d.ts +3 -3
- package/lib/esm/Me.d.ts +11 -0
- package/lib/esm/Sla.d.ts +8 -0
- package/lib/esm/Sla.js +2 -0
- package/lib/esm/Sla.js.map +1 -0
- package/lib/esm/SupportDay.d.ts +5 -0
- package/lib/esm/SupportDay.js +2 -0
- package/lib/esm/SupportDay.js.map +1 -0
- package/lib/esm/index.d.ts +3 -0
- package/package.json +1 -1
- package/src/Conversation.ts +8 -0
- package/src/ConversationSla.ts +10 -0
- package/src/List.ts +6 -6
- package/src/Me.ts +13 -0
- package/src/Sla.ts +9 -0
- package/src/SupportDay.ts +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,27 @@
|
|
|
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.48.0](https://github.com/lilaquadrat/interfaces/compare/v1.47.0...v1.48.0) (2026-08-28)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **me:** added lastSeen & connected status ([9256d37](https://github.com/lilaquadrat/interfaces/commit/9256d3765699044a43cf36d7f271966f626d6cea))
|
|
11
|
+
|
|
12
|
+
## [1.47.0](https://github.com/lilaquadrat/interfaces/compare/v1.46.0...v1.47.0) (2026-08-28)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **sla:** add configuration and conversation contracts ([2973218](https://github.com/lilaquadrat/interfaces/commit/2973218714e3fe36c404f6ac09f1679d608cafd4))
|
|
18
|
+
|
|
19
|
+
## [1.46.0](https://github.com/lilaquadrat/interfaces/compare/v1.45.0...v1.46.0) (2026-07-27)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* **list:** added location and change date type ([048a889](https://github.com/lilaquadrat/interfaces/commit/048a8890ab260ebb10f3da23420692d407a7ffc5))
|
|
25
|
+
|
|
5
26
|
## [1.45.0](https://github.com/lilaquadrat/interfaces/compare/v1.44.0...v1.45.0) (2026-07-13)
|
|
6
27
|
|
|
7
28
|
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { ObjectId } from 'mongodb';
|
|
2
|
+
import type { ConversationSla } from './ConversationSla';
|
|
3
|
+
export type SupportStatus = 'awaiting_agent' | 'awaiting_customer' | 'resolved';
|
|
2
4
|
export interface Conversation {
|
|
3
5
|
_id?: ObjectId;
|
|
4
6
|
name?: string;
|
|
@@ -11,5 +13,10 @@ export interface Conversation {
|
|
|
11
13
|
lastActivity?: string;
|
|
12
14
|
/** how the conversation was started. 'support' = backend attaches the support team. */
|
|
13
15
|
operationMode?: 'default' | 'support';
|
|
16
|
+
supportStatus?: SupportStatus;
|
|
17
|
+
supportStatusUpdatedAt?: string;
|
|
18
|
+
supportStatusVersion?: number;
|
|
19
|
+
/** Current support SLA projection, joined at read time rather than stored on the conversation. */
|
|
20
|
+
sla?: ConversationSla | null;
|
|
14
21
|
new?: boolean;
|
|
15
22
|
}
|
package/lib/cjs/List.d.ts
CHANGED
|
@@ -10,9 +10,9 @@ export interface List {
|
|
|
10
10
|
name: string;
|
|
11
11
|
description?: string;
|
|
12
12
|
mode: 'contact' | 'content' | 'reservation' | 'shopping';
|
|
13
|
-
start?:
|
|
14
|
-
end?:
|
|
15
|
-
|
|
13
|
+
start?: string;
|
|
14
|
+
end?: string;
|
|
15
|
+
location?: string;
|
|
16
16
|
participants?: {
|
|
17
17
|
max?: number;
|
|
18
18
|
confirmed?: number;
|
package/lib/cjs/Me.d.ts
CHANGED
|
@@ -8,4 +8,15 @@ export interface Me {
|
|
|
8
8
|
settings?: Settings['settings'];
|
|
9
9
|
termsAccepted?: boolean;
|
|
10
10
|
emailConfirmed?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* presence: last moment a websocket of this user was proven alive.
|
|
13
|
+
* written by the chat service only, never through the /me routes.
|
|
14
|
+
*/
|
|
15
|
+
lastSeen?: Date | string;
|
|
16
|
+
/**
|
|
17
|
+
* presence: raw "holds at least one live socket" flag. The `online` state exposed to
|
|
18
|
+
* clients is derived from this AND lastSeen freshness, so a crashed process that never
|
|
19
|
+
* cleared the flag still reads as offline.
|
|
20
|
+
*/
|
|
21
|
+
connected?: boolean;
|
|
11
22
|
}
|
package/lib/cjs/Sla.d.ts
ADDED
package/lib/cjs/index.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export * from './ContentOptions';
|
|
|
48
48
|
export * from './ContentWithPositions';
|
|
49
49
|
export * from './Contract';
|
|
50
50
|
export * from './Conversation';
|
|
51
|
+
export * from './ConversationSla';
|
|
51
52
|
export * from './CookiesModule';
|
|
52
53
|
export * from './CreateResult';
|
|
53
54
|
export * from './CustomerAccounts';
|
|
@@ -211,6 +212,7 @@ export * from './ShareClientOptions';
|
|
|
211
212
|
export * from './ShopifyProjectSettings';
|
|
212
213
|
export * from './ShoppingCartModule';
|
|
213
214
|
export * from './SkipLimitSort';
|
|
215
|
+
export * from './Sla';
|
|
214
216
|
export * from './Storage';
|
|
215
217
|
export * from './StorageCopyAction';
|
|
216
218
|
export * from './StorageFilePaths';
|
|
@@ -219,6 +221,7 @@ export * from './Stored';
|
|
|
219
221
|
export * from './StoryModule';
|
|
220
222
|
export * from './Structure';
|
|
221
223
|
export * from './StudioIframeMessage';
|
|
224
|
+
export * from './SupportDay';
|
|
222
225
|
export * from './SystemDomain';
|
|
223
226
|
export * from './TextModule';
|
|
224
227
|
export * from './Textblock';
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { ObjectId } from 'mongodb';
|
|
2
|
+
import type { ConversationSla } from './ConversationSla';
|
|
3
|
+
export type SupportStatus = 'awaiting_agent' | 'awaiting_customer' | 'resolved';
|
|
2
4
|
export interface Conversation {
|
|
3
5
|
_id?: ObjectId;
|
|
4
6
|
name?: string;
|
|
@@ -11,5 +13,10 @@ export interface Conversation {
|
|
|
11
13
|
lastActivity?: string;
|
|
12
14
|
/** how the conversation was started. 'support' = backend attaches the support team. */
|
|
13
15
|
operationMode?: 'default' | 'support';
|
|
16
|
+
supportStatus?: SupportStatus;
|
|
17
|
+
supportStatusUpdatedAt?: string;
|
|
18
|
+
supportStatusVersion?: number;
|
|
19
|
+
/** Current support SLA projection, joined at read time rather than stored on the conversation. */
|
|
20
|
+
sla?: ConversationSla | null;
|
|
14
21
|
new?: boolean;
|
|
15
22
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversationSla.js","sourceRoot":"","sources":["../../src/ConversationSla.ts"],"names":[],"mappings":""}
|
package/lib/esm/List.d.ts
CHANGED
|
@@ -10,9 +10,9 @@ export interface List {
|
|
|
10
10
|
name: string;
|
|
11
11
|
description?: string;
|
|
12
12
|
mode: 'contact' | 'content' | 'reservation' | 'shopping';
|
|
13
|
-
start?:
|
|
14
|
-
end?:
|
|
15
|
-
|
|
13
|
+
start?: string;
|
|
14
|
+
end?: string;
|
|
15
|
+
location?: string;
|
|
16
16
|
participants?: {
|
|
17
17
|
max?: number;
|
|
18
18
|
confirmed?: number;
|
package/lib/esm/Me.d.ts
CHANGED
|
@@ -8,4 +8,15 @@ export interface Me {
|
|
|
8
8
|
settings?: Settings['settings'];
|
|
9
9
|
termsAccepted?: boolean;
|
|
10
10
|
emailConfirmed?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* presence: last moment a websocket of this user was proven alive.
|
|
13
|
+
* written by the chat service only, never through the /me routes.
|
|
14
|
+
*/
|
|
15
|
+
lastSeen?: Date | string;
|
|
16
|
+
/**
|
|
17
|
+
* presence: raw "holds at least one live socket" flag. The `online` state exposed to
|
|
18
|
+
* clients is derived from this AND lastSeen freshness, so a crashed process that never
|
|
19
|
+
* cleared the flag still reads as offline.
|
|
20
|
+
*/
|
|
21
|
+
connected?: boolean;
|
|
11
22
|
}
|
package/lib/esm/Sla.d.ts
ADDED
package/lib/esm/Sla.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sla.js","sourceRoot":"","sources":["../../src/Sla.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SupportDay.js","sourceRoot":"","sources":["../../src/SupportDay.ts"],"names":[],"mappings":""}
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export * from './ContentOptions';
|
|
|
48
48
|
export * from './ContentWithPositions';
|
|
49
49
|
export * from './Contract';
|
|
50
50
|
export * from './Conversation';
|
|
51
|
+
export * from './ConversationSla';
|
|
51
52
|
export * from './CookiesModule';
|
|
52
53
|
export * from './CreateResult';
|
|
53
54
|
export * from './CustomerAccounts';
|
|
@@ -211,6 +212,7 @@ export * from './ShareClientOptions';
|
|
|
211
212
|
export * from './ShopifyProjectSettings';
|
|
212
213
|
export * from './ShoppingCartModule';
|
|
213
214
|
export * from './SkipLimitSort';
|
|
215
|
+
export * from './Sla';
|
|
214
216
|
export * from './Storage';
|
|
215
217
|
export * from './StorageCopyAction';
|
|
216
218
|
export * from './StorageFilePaths';
|
|
@@ -219,6 +221,7 @@ export * from './Stored';
|
|
|
219
221
|
export * from './StoryModule';
|
|
220
222
|
export * from './Structure';
|
|
221
223
|
export * from './StudioIframeMessage';
|
|
224
|
+
export * from './SupportDay';
|
|
222
225
|
export * from './SystemDomain';
|
|
223
226
|
export * from './TextModule';
|
|
224
227
|
export * from './Textblock';
|
package/package.json
CHANGED
package/src/Conversation.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { ObjectId } from 'mongodb';
|
|
2
|
+
import type { ConversationSla } from './ConversationSla';
|
|
3
|
+
|
|
4
|
+
export type SupportStatus = 'awaiting_agent' | 'awaiting_customer' | 'resolved';
|
|
2
5
|
|
|
3
6
|
export interface Conversation {
|
|
4
7
|
_id?: ObjectId;
|
|
@@ -12,5 +15,10 @@ export interface Conversation {
|
|
|
12
15
|
lastActivity?: string;
|
|
13
16
|
/** how the conversation was started. 'support' = backend attaches the support team. */
|
|
14
17
|
operationMode?: 'default' | 'support';
|
|
18
|
+
supportStatus?: SupportStatus;
|
|
19
|
+
supportStatusUpdatedAt?: string;
|
|
20
|
+
supportStatusVersion?: number;
|
|
21
|
+
/** Current support SLA projection, joined at read time rather than stored on the conversation. */
|
|
22
|
+
sla?: ConversationSla | null;
|
|
15
23
|
new?: boolean;
|
|
16
24
|
}
|
package/src/List.ts
CHANGED
|
@@ -14,12 +14,12 @@ export interface List {
|
|
|
14
14
|
description?: string
|
|
15
15
|
mode: 'contact' | 'content' | 'reservation' | 'shopping'
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
start?: string
|
|
18
|
+
end?: string
|
|
19
|
+
|
|
20
|
+
location?: string
|
|
21
|
+
|
|
22
|
+
participants?: {
|
|
23
23
|
max?: number
|
|
24
24
|
confirmed?: number
|
|
25
25
|
reserved?: number
|
package/src/Me.ts
CHANGED
|
@@ -11,4 +11,17 @@ export interface Me {
|
|
|
11
11
|
termsAccepted?: boolean
|
|
12
12
|
emailConfirmed?: boolean
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* presence: last moment a websocket of this user was proven alive.
|
|
16
|
+
* written by the chat service only, never through the /me routes.
|
|
17
|
+
*/
|
|
18
|
+
lastSeen?: Date | string
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* presence: raw "holds at least one live socket" flag. The `online` state exposed to
|
|
22
|
+
* clients is derived from this AND lastSeen freshness, so a crashed process that never
|
|
23
|
+
* cleared the flag still reads as offline.
|
|
24
|
+
*/
|
|
25
|
+
connected?: boolean
|
|
26
|
+
|
|
14
27
|
}
|
package/src/Sla.ts
ADDED