@trii/types 2.10.288 → 2.10.290
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/Calls/Call.d.ts +54 -0
- package/dist/Calls/Call.js +23 -0
- package/dist/Calls/index.d.ts +1 -0
- package/dist/Calls/index.js +1 -0
- package/dist/Conversations/DashBoard/dashboard.d.ts +8 -3
- package/dist/Conversations/DashBoard/dashboard.js +8 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Channels } from "../Common/index";
|
|
2
|
+
export interface ICallLog {
|
|
3
|
+
id: string;
|
|
4
|
+
shardKey?: string;
|
|
5
|
+
spaceId: string;
|
|
6
|
+
userId: string;
|
|
7
|
+
extensionNumber: string;
|
|
8
|
+
origin: string;
|
|
9
|
+
channelInfo: Channels.IChannel;
|
|
10
|
+
recId: string;
|
|
11
|
+
type: CallType;
|
|
12
|
+
direction: CallDirection;
|
|
13
|
+
status: CallStatus;
|
|
14
|
+
cost: number;
|
|
15
|
+
uuid: string;
|
|
16
|
+
parent_uuid: null;
|
|
17
|
+
callerIdNumber: string;
|
|
18
|
+
callerIdName: string;
|
|
19
|
+
destinationNumber: string;
|
|
20
|
+
startStamp: Date;
|
|
21
|
+
answerStamp: Date;
|
|
22
|
+
endStamp: Date;
|
|
23
|
+
billSec: number;
|
|
24
|
+
duration: number;
|
|
25
|
+
hangupCause: string;
|
|
26
|
+
accountcode: string;
|
|
27
|
+
readCodec: string;
|
|
28
|
+
writeCodec: string;
|
|
29
|
+
sipHangupDisposition: string;
|
|
30
|
+
ani: string;
|
|
31
|
+
sipCallId: string;
|
|
32
|
+
domainName: string;
|
|
33
|
+
source: string;
|
|
34
|
+
}
|
|
35
|
+
export declare enum CallType {
|
|
36
|
+
NONE = 0,
|
|
37
|
+
EXTERNAL = 1,
|
|
38
|
+
INTERNAL = 2
|
|
39
|
+
}
|
|
40
|
+
export declare enum CallDirection {
|
|
41
|
+
INBOUND = 1,
|
|
42
|
+
OUTBOUND = 2
|
|
43
|
+
}
|
|
44
|
+
export declare enum CallStatus {
|
|
45
|
+
NONE = 0,
|
|
46
|
+
LOST = 1,
|
|
47
|
+
ANSWERED = 2,
|
|
48
|
+
MISSED = 3,
|
|
49
|
+
BUSY = 4,
|
|
50
|
+
REJECTED = 5,
|
|
51
|
+
CANCELED = 6,
|
|
52
|
+
FAILED = 7,
|
|
53
|
+
NO_ANSWER = 8
|
|
54
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export var CallType;
|
|
2
|
+
(function (CallType) {
|
|
3
|
+
CallType[CallType["NONE"] = 0] = "NONE";
|
|
4
|
+
CallType[CallType["EXTERNAL"] = 1] = "EXTERNAL";
|
|
5
|
+
CallType[CallType["INTERNAL"] = 2] = "INTERNAL";
|
|
6
|
+
})(CallType || (CallType = {}));
|
|
7
|
+
export var CallDirection;
|
|
8
|
+
(function (CallDirection) {
|
|
9
|
+
CallDirection[CallDirection["INBOUND"] = 1] = "INBOUND";
|
|
10
|
+
CallDirection[CallDirection["OUTBOUND"] = 2] = "OUTBOUND";
|
|
11
|
+
})(CallDirection || (CallDirection = {}));
|
|
12
|
+
export var CallStatus;
|
|
13
|
+
(function (CallStatus) {
|
|
14
|
+
CallStatus[CallStatus["NONE"] = 0] = "NONE";
|
|
15
|
+
CallStatus[CallStatus["LOST"] = 1] = "LOST";
|
|
16
|
+
CallStatus[CallStatus["ANSWERED"] = 2] = "ANSWERED";
|
|
17
|
+
CallStatus[CallStatus["MISSED"] = 3] = "MISSED";
|
|
18
|
+
CallStatus[CallStatus["BUSY"] = 4] = "BUSY";
|
|
19
|
+
CallStatus[CallStatus["REJECTED"] = 5] = "REJECTED";
|
|
20
|
+
CallStatus[CallStatus["CANCELED"] = 6] = "CANCELED";
|
|
21
|
+
CallStatus[CallStatus["FAILED"] = 7] = "FAILED";
|
|
22
|
+
CallStatus[CallStatus["NO_ANSWER"] = 8] = "NO_ANSWER";
|
|
23
|
+
})(CallStatus || (CallStatus = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Call';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Call';
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { ChannelType } from "../../Common/Channels/ChannelType";
|
|
2
2
|
export declare enum TimeRange {
|
|
3
|
-
DAY =
|
|
4
|
-
WEEK =
|
|
5
|
-
MONTH =
|
|
3
|
+
DAY = 1,
|
|
4
|
+
WEEK = 7,
|
|
5
|
+
MONTH = 30,
|
|
6
|
+
YEAR = 365,
|
|
7
|
+
LAST_7_DAYS = 77,
|
|
8
|
+
LAST_30_DAYS = 3030,
|
|
9
|
+
LAST_60_DAYS = 60,
|
|
10
|
+
CUSTOM = 0
|
|
6
11
|
}
|
|
7
12
|
export declare class BodyDashboard {
|
|
8
13
|
userId: string;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
export var TimeRange;
|
|
2
2
|
(function (TimeRange) {
|
|
3
|
-
TimeRange[TimeRange["DAY"] =
|
|
4
|
-
TimeRange[TimeRange["WEEK"] =
|
|
5
|
-
TimeRange[TimeRange["MONTH"] =
|
|
3
|
+
TimeRange[TimeRange["DAY"] = 1] = "DAY";
|
|
4
|
+
TimeRange[TimeRange["WEEK"] = 7] = "WEEK";
|
|
5
|
+
TimeRange[TimeRange["MONTH"] = 30] = "MONTH";
|
|
6
|
+
TimeRange[TimeRange["YEAR"] = 365] = "YEAR";
|
|
7
|
+
TimeRange[TimeRange["LAST_7_DAYS"] = 77] = "LAST_7_DAYS";
|
|
8
|
+
TimeRange[TimeRange["LAST_30_DAYS"] = 3030] = "LAST_30_DAYS";
|
|
9
|
+
TimeRange[TimeRange["LAST_60_DAYS"] = 60] = "LAST_60_DAYS";
|
|
10
|
+
TimeRange[TimeRange["CUSTOM"] = 0] = "CUSTOM";
|
|
6
11
|
})(TimeRange || (TimeRange = {}));
|
|
7
12
|
export class BodyDashboard {
|
|
8
13
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * as Common from './Common/index';
|
|
|
4
4
|
export * as Contacts from './Contacts/index';
|
|
5
5
|
export * as Calendar from './Calendar/index';
|
|
6
6
|
export * as Conversations from './Conversations/index';
|
|
7
|
+
export * as Calls from './Calls/index';
|
|
7
8
|
export * as Security from './Security/index';
|
|
8
9
|
export * as Spaces from './Spaces/index';
|
|
9
10
|
export * as Tickets from './Tickets/index';
|
package/dist/index.js
CHANGED
|
@@ -10,6 +10,8 @@ import * as Calendar_1 from './Calendar/index';
|
|
|
10
10
|
export { Calendar_1 as Calendar };
|
|
11
11
|
import * as Conversations_1 from './Conversations/index';
|
|
12
12
|
export { Conversations_1 as Conversations };
|
|
13
|
+
import * as Calls_1 from './Calls/index';
|
|
14
|
+
export { Calls_1 as Calls };
|
|
13
15
|
import * as Security_1 from './Security/index';
|
|
14
16
|
export { Security_1 as Security };
|
|
15
17
|
import * as Spaces_1 from './Spaces/index';
|