@onereach/types-hitl-api 0.0.48 → 0.0.49-rc.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.
|
@@ -55,6 +55,7 @@ export interface IAgentStatus {
|
|
|
55
55
|
readonly lastStatusUpdate?: string;
|
|
56
56
|
/** How long ago user has changed his status to a different one */
|
|
57
57
|
readonly lastStatusChange?: string;
|
|
58
|
+
readonly expireIn?: number;
|
|
58
59
|
}
|
|
59
60
|
export interface IAgentStatusSettings {
|
|
60
61
|
readonly defaultLoginStatus?: AGENT_STATUS;
|
|
@@ -98,7 +99,7 @@ export interface IStatusChangeContext {
|
|
|
98
99
|
export interface ISetAgentStatusOptions<T extends IStatusChangeContext = IStatusChangeContext> {
|
|
99
100
|
readonly accountId: string;
|
|
100
101
|
readonly agentId: string;
|
|
101
|
-
readonly statusData: Pick<IAgentStatus, 'status' | 'busyReason'>;
|
|
102
|
+
readonly statusData: Pick<IAgentStatus, 'status' | 'busyReason' | 'expireIn'>;
|
|
102
103
|
readonly notifyStatusChange: boolean;
|
|
103
104
|
readonly statusChangeContext?: T;
|
|
104
105
|
}
|
|
@@ -92,13 +92,17 @@ export interface IDateRangeOptions {
|
|
|
92
92
|
readonly from: string;
|
|
93
93
|
readonly to: string;
|
|
94
94
|
}
|
|
95
|
+
export interface ITagsQuery {
|
|
96
|
+
readonly OR?: (string | ITagsQuery)[];
|
|
97
|
+
readonly AND?: (string | ITagsQuery)[];
|
|
98
|
+
}
|
|
95
99
|
export interface ISearchSessionsOptions {
|
|
96
100
|
readonly accountId: string;
|
|
97
101
|
readonly agentId: string;
|
|
98
102
|
readonly dateRange?: IDateRangeOptions;
|
|
99
103
|
readonly claimedBy?: string;
|
|
100
104
|
readonly claimedByHistory?: string;
|
|
101
|
-
readonly tags?: string[];
|
|
105
|
+
readonly tags?: string[] | ITagsQuery;
|
|
102
106
|
readonly status?: string[];
|
|
103
107
|
readonly needsAction?: boolean;
|
|
104
108
|
readonly searchPhrase?: string;
|