@onereach/types-hitl-api 0.0.51-rc.0 → 0.0.51-rc.2
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.
|
@@ -8,7 +8,7 @@ export interface IAgent {
|
|
|
8
8
|
readonly email: string;
|
|
9
9
|
readonly ruleGroupIds: string[];
|
|
10
10
|
readonly contactRuleGroupIds: string[];
|
|
11
|
-
readonly statusData: Omit<IAgentStatus, 'agentId'
|
|
11
|
+
readonly statusData: Omit<IAgentStatus, 'agentId'> | AgentStatus;
|
|
12
12
|
readonly meta: object;
|
|
13
13
|
/** Data is available when merged with response from Users SDK */
|
|
14
14
|
readonly data?: object;
|
|
@@ -47,15 +47,23 @@ export interface ISearchAgentsBody {
|
|
|
47
47
|
export interface ISearchAgentsResponse {
|
|
48
48
|
readonly data: Partial<IAgent>[];
|
|
49
49
|
}
|
|
50
|
-
export interface IAgentStatus {
|
|
50
|
+
export interface IAgentStatus extends AgentStatusTimestamps {
|
|
51
51
|
readonly agentId?: string;
|
|
52
52
|
readonly status: AGENT_STATUS;
|
|
53
|
-
readonly busyReason
|
|
53
|
+
readonly busyReason?: string;
|
|
54
|
+
readonly expireIn?: number;
|
|
55
|
+
}
|
|
56
|
+
export interface AgentStatusTimestamps {
|
|
54
57
|
/** How long ago user has refreshed his active status */
|
|
55
58
|
readonly lastStatusUpdate?: string;
|
|
56
59
|
/** How long ago user has changed his status to a different one */
|
|
57
60
|
readonly lastStatusChange?: string;
|
|
61
|
+
}
|
|
62
|
+
export interface AgentStatus extends AgentStatusTimestamps {
|
|
63
|
+
readonly key: string;
|
|
64
|
+
readonly status?: AGENT_STATUS;
|
|
58
65
|
readonly expireIn?: number;
|
|
66
|
+
[key: string]: any;
|
|
59
67
|
}
|
|
60
68
|
export interface IAgentStatusSettings {
|
|
61
69
|
readonly defaultLoginStatus?: AGENT_STATUS;
|
|
@@ -99,7 +107,7 @@ export interface IStatusChangeContext {
|
|
|
99
107
|
export interface ISetAgentStatusOptions<T extends IStatusChangeContext = IStatusChangeContext> {
|
|
100
108
|
readonly accountId: string;
|
|
101
109
|
readonly agentId: string;
|
|
102
|
-
readonly statusData: Pick<IAgentStatus, 'status' | 'busyReason' | 'expireIn'
|
|
110
|
+
readonly statusData: Pick<IAgentStatus, 'status' | 'busyReason' | 'expireIn'> | AgentStatus;
|
|
103
111
|
readonly notifyStatusChange: boolean;
|
|
104
112
|
readonly statusChangeContext?: T;
|
|
105
113
|
}
|