@trii/types 2.10.673 → 2.10.675
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/Conversations/Conversation.d.ts +2 -0
- package/dist/Conversations/InboxCounters.d.ts +18 -0
- package/dist/Conversations/InboxCounters.js +2 -0
- package/dist/Conversations/index.d.ts +1 -0
- package/dist/Conversations/index.js +1 -0
- package/dist/Presence/QueueParticipation.d.ts +8 -0
- package/dist/Presence/QueueRoutingState.d.ts +11 -0
- package/package.json +1 -1
|
@@ -29,12 +29,14 @@ export interface IConversation {
|
|
|
29
29
|
pinned: boolean;
|
|
30
30
|
transferBy?: string;
|
|
31
31
|
transferTo?: ConversationAssigned;
|
|
32
|
+
followedBy: string[];
|
|
32
33
|
expired: boolean;
|
|
33
34
|
expiredAssignedTo: ConversationAssigned;
|
|
34
35
|
status: ConversationSatus;
|
|
35
36
|
assignedTo?: ConversationAssigned;
|
|
36
37
|
participants: UserInfo[];
|
|
37
38
|
archived: boolean;
|
|
39
|
+
spam: boolean;
|
|
38
40
|
externalMessagingWindowEndAt?: Date;
|
|
39
41
|
workflowId?: string;
|
|
40
42
|
botStatus: ConversationBotStatus;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface InboxCounters {
|
|
2
|
+
spaceId: string;
|
|
3
|
+
userId: string;
|
|
4
|
+
pending: number;
|
|
5
|
+
following: number;
|
|
6
|
+
slaWarning: number;
|
|
7
|
+
slaBreached: number;
|
|
8
|
+
teamSlaBreached: number;
|
|
9
|
+
finalized: number;
|
|
10
|
+
spam: number;
|
|
11
|
+
tags: TagCount[];
|
|
12
|
+
updatedAt: Date;
|
|
13
|
+
}
|
|
14
|
+
export interface TagCount {
|
|
15
|
+
tagId: string;
|
|
16
|
+
name: string;
|
|
17
|
+
count: number;
|
|
18
|
+
}
|
|
@@ -40,6 +40,7 @@ exports.Groups = exports.Flows = void 0;
|
|
|
40
40
|
exports.Flows = __importStar(require("./Flows/index"));
|
|
41
41
|
exports.Groups = __importStar(require("./Groups/Group"));
|
|
42
42
|
__exportStar(require("./Conversation"), exports);
|
|
43
|
+
__exportStar(require("./InboxCounters"), exports);
|
|
43
44
|
__exportStar(require("./Ending"), exports);
|
|
44
45
|
__exportStar(require("./Label"), exports);
|
|
45
46
|
__exportStar(require("./WebHook"), exports);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { GroupInfo } from "../Conversations/Groups/Group";
|
|
1
2
|
export interface QueueParticipation {
|
|
2
3
|
spaceId: string;
|
|
3
4
|
userId: string;
|
|
@@ -7,3 +8,10 @@ export interface QueueParticipation {
|
|
|
7
8
|
updatedAt: Date;
|
|
8
9
|
updatedByUserId?: string;
|
|
9
10
|
}
|
|
11
|
+
export interface QueueParticipationDto {
|
|
12
|
+
queueId: string;
|
|
13
|
+
authorized: boolean;
|
|
14
|
+
active: boolean;
|
|
15
|
+
updatedAt: Date;
|
|
16
|
+
queue?: GroupInfo | null;
|
|
17
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { GroupInfo } from "../Conversations/Groups/Group";
|
|
1
2
|
export interface QueueRoutingState {
|
|
2
3
|
spaceId: string;
|
|
3
4
|
userId: string;
|
|
@@ -14,3 +15,13 @@ export declare enum RoutingPresenceStatus {
|
|
|
14
15
|
INTERACTING = 1,
|
|
15
16
|
BUSY = 2
|
|
16
17
|
}
|
|
18
|
+
export interface RoutingStateDto {
|
|
19
|
+
queueId: string;
|
|
20
|
+
queue?: GroupInfo | null;
|
|
21
|
+
isEligible: boolean;
|
|
22
|
+
presenceStatus?: RoutingPresenceStatus;
|
|
23
|
+
activeJobCount: number;
|
|
24
|
+
maxCapacity?: number | null;
|
|
25
|
+
notRespondingDetectedAt?: Date;
|
|
26
|
+
updatedAt?: Date;
|
|
27
|
+
}
|