@cleardu/types 1.0.318 → 1.0.320
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/constants/brokerMessages/index.d.ts +12 -2
- package/constants/brokerMessages/index.js +12 -2
- package/constants/brokerMessages/index.ts +12 -2
- package/constants/index.d.ts +31 -31
- package/constants/index.js +31 -31
- package/constants/index.ts +31 -31
- package/interfaces/index.d.ts +1 -0
- package/interfaces/index.js +1 -0
- package/interfaces/index.ts +1 -0
- package/interfaces/userActivity/index.d.ts +125 -0
- package/interfaces/userActivity/index.js +40 -0
- package/interfaces/userActivity/index.ts +134 -0
- package/interfaces/userStatus/index.d.ts +0 -43
- package/interfaces/userStatus/index.js +0 -23
- package/interfaces/userStatus/index.ts +4 -51
- package/interfaces/webhook/index.d.ts +1 -0
- package/interfaces/webhook/index.ts +1 -0
- package/package.json +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -1,48 +1,5 @@
|
|
|
1
|
-
import { DatabaseObject } from "../baseObject";
|
|
2
1
|
export interface IUserStatus {
|
|
3
2
|
id?: number;
|
|
4
3
|
userId: string;
|
|
5
4
|
status: string;
|
|
6
5
|
}
|
|
7
|
-
export interface IUserActivities extends DatabaseObject {
|
|
8
|
-
campaignId?: number;
|
|
9
|
-
status?: string;
|
|
10
|
-
state?: number;
|
|
11
|
-
timestamp?: number;
|
|
12
|
-
duration?: number;
|
|
13
|
-
}
|
|
14
|
-
export interface IUserActivitiesSearchData {
|
|
15
|
-
page?: number;
|
|
16
|
-
pageSize?: number;
|
|
17
|
-
searchStr?: string;
|
|
18
|
-
export?: boolean;
|
|
19
|
-
filter?: {
|
|
20
|
-
userId?: string;
|
|
21
|
-
fromDate?: string;
|
|
22
|
-
toDate?: string;
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
export interface IUserActivitiesRowsCount {
|
|
26
|
-
count: number;
|
|
27
|
-
rows: IUserActivities[];
|
|
28
|
-
}
|
|
29
|
-
export declare enum UserActivityStatuses {
|
|
30
|
-
LOGIN = "LOGIN",
|
|
31
|
-
DIALER_LOGIN = "DIALER-LOGIN",
|
|
32
|
-
BREAK = "BREAK",
|
|
33
|
-
READY = "READY",
|
|
34
|
-
LOGOUT = "LOGOUT",
|
|
35
|
-
PAUSED = "PAUSED",
|
|
36
|
-
SWITCH = "SWITCH"
|
|
37
|
-
}
|
|
38
|
-
export declare enum UserActivityStates {
|
|
39
|
-
AVAILABLE = "Available",
|
|
40
|
-
IDLE = "IDLE",
|
|
41
|
-
READY = "Ready",
|
|
42
|
-
ON_CALL = "On-Call",
|
|
43
|
-
BREAK = "Break",
|
|
44
|
-
RINGING = "RINGING",
|
|
45
|
-
WRAPUP = "wrap-up",
|
|
46
|
-
WAITING = "WAITING",
|
|
47
|
-
LOGOUT = "LOG OUT"
|
|
48
|
-
}
|
|
@@ -1,25 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserActivityStates = exports.UserActivityStatuses = void 0;
|
|
4
|
-
var UserActivityStatuses;
|
|
5
|
-
(function (UserActivityStatuses) {
|
|
6
|
-
UserActivityStatuses["LOGIN"] = "LOGIN";
|
|
7
|
-
UserActivityStatuses["DIALER_LOGIN"] = "DIALER-LOGIN";
|
|
8
|
-
UserActivityStatuses["BREAK"] = "BREAK";
|
|
9
|
-
UserActivityStatuses["READY"] = "READY";
|
|
10
|
-
UserActivityStatuses["LOGOUT"] = "LOGOUT";
|
|
11
|
-
UserActivityStatuses["PAUSED"] = "PAUSED";
|
|
12
|
-
UserActivityStatuses["SWITCH"] = "SWITCH";
|
|
13
|
-
})(UserActivityStatuses || (exports.UserActivityStatuses = UserActivityStatuses = {}));
|
|
14
|
-
var UserActivityStates;
|
|
15
|
-
(function (UserActivityStates) {
|
|
16
|
-
UserActivityStates["AVAILABLE"] = "Available";
|
|
17
|
-
UserActivityStates["IDLE"] = "IDLE";
|
|
18
|
-
UserActivityStates["READY"] = "Ready";
|
|
19
|
-
UserActivityStates["ON_CALL"] = "On-Call";
|
|
20
|
-
UserActivityStates["BREAK"] = "Break";
|
|
21
|
-
UserActivityStates["RINGING"] = "RINGING";
|
|
22
|
-
UserActivityStates["WRAPUP"] = "wrap-up";
|
|
23
|
-
UserActivityStates["WAITING"] = "WAITING";
|
|
24
|
-
UserActivityStates["LOGOUT"] = "LOG OUT";
|
|
25
|
-
})(UserActivityStates || (exports.UserActivityStates = UserActivityStates = {}));
|
|
@@ -1,52 +1,5 @@
|
|
|
1
|
-
import { DatabaseObject } from "../baseObject";
|
|
2
|
-
|
|
3
1
|
export interface IUserStatus {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export interface IUserActivities extends DatabaseObject {
|
|
9
|
-
campaignId?: number;
|
|
10
|
-
status?: string;
|
|
11
|
-
state?: number;
|
|
12
|
-
timestamp?: number;
|
|
13
|
-
duration?: number;
|
|
14
|
-
}
|
|
15
|
-
export interface IUserActivitiesSearchData {
|
|
16
|
-
page?: number;
|
|
17
|
-
pageSize?: number;
|
|
18
|
-
searchStr?: string;
|
|
19
|
-
export?: boolean;
|
|
20
|
-
filter?: {
|
|
21
|
-
userId?: string;
|
|
22
|
-
fromDate?: string;
|
|
23
|
-
toDate?: string;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface IUserActivitiesRowsCount {
|
|
28
|
-
count: number;
|
|
29
|
-
rows: IUserActivities[];
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export enum UserActivityStatuses {
|
|
33
|
-
LOGIN = 'LOGIN',
|
|
34
|
-
DIALER_LOGIN = 'DIALER-LOGIN',
|
|
35
|
-
BREAK = 'BREAK',
|
|
36
|
-
READY = 'READY',
|
|
37
|
-
LOGOUT = 'LOGOUT',
|
|
38
|
-
PAUSED = 'PAUSED',
|
|
39
|
-
SWITCH = 'SWITCH'
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export enum UserActivityStates {
|
|
43
|
-
AVAILABLE = 'Available',
|
|
44
|
-
IDLE = 'IDLE',
|
|
45
|
-
READY = 'Ready',
|
|
46
|
-
ON_CALL = 'On-Call',
|
|
47
|
-
BREAK = 'Break',
|
|
48
|
-
RINGING = 'RINGING',
|
|
49
|
-
WRAPUP = 'wrap-up',
|
|
50
|
-
WAITING = 'WAITING',
|
|
51
|
-
LOGOUT = 'LOG OUT',
|
|
52
|
-
}
|
|
2
|
+
id?: number;
|
|
3
|
+
userId: string;
|
|
4
|
+
status: string;
|
|
5
|
+
}
|
|
@@ -22,6 +22,7 @@ export interface IAgentWebhook extends IWebhookEvent {
|
|
|
22
22
|
agentId: string;
|
|
23
23
|
campaignId?: string; // * Not being used on cleardu / crm
|
|
24
24
|
extension?: string; // * Not being used on cleardu / crm
|
|
25
|
+
timestamp?: string;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
export interface ICallWebhook extends IWebhookEvent {
|