@trii/types 2.10.261 → 2.10.263
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/Common/Messages/Template.d.ts +40 -0
- package/dist/Common/Messages/Template.js +12 -0
- package/dist/Common/Messages/index.d.ts +1 -0
- package/dist/Common/Messages/index.js +1 -0
- package/dist/Conversations/DashBoard/dashboard.d.ts +69 -1
- package/dist/Conversations/DashBoard/dashboard.js +12 -13
- package/package.json +1 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface Template {
|
|
2
|
+
id: string;
|
|
3
|
+
spaceId: string;
|
|
4
|
+
channelId?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
namespace?: string;
|
|
7
|
+
language?: string;
|
|
8
|
+
category?: string;
|
|
9
|
+
contentSid?: string;
|
|
10
|
+
body: string;
|
|
11
|
+
buttons?: TemplateButton[];
|
|
12
|
+
header: string;
|
|
13
|
+
footer: string;
|
|
14
|
+
varsBody?: TemplateVar[];
|
|
15
|
+
varsHeader?: TemplateVar[];
|
|
16
|
+
varsFooter?: TemplateVar[];
|
|
17
|
+
status: TemplateStatus;
|
|
18
|
+
rejectedReason: boolean;
|
|
19
|
+
timestamp?: Date;
|
|
20
|
+
}
|
|
21
|
+
export declare enum TemplateStatus {
|
|
22
|
+
PENDING = 0,
|
|
23
|
+
APPROVED = 1,
|
|
24
|
+
REJECTED = 2,
|
|
25
|
+
PROCESSING = 3
|
|
26
|
+
}
|
|
27
|
+
export interface TemplateButton {
|
|
28
|
+
text: string;
|
|
29
|
+
url: string;
|
|
30
|
+
payload: string;
|
|
31
|
+
type: TemplateButtonType;
|
|
32
|
+
}
|
|
33
|
+
export declare enum TemplateButtonType {
|
|
34
|
+
TEXT = 0,
|
|
35
|
+
URL = 1
|
|
36
|
+
}
|
|
37
|
+
export interface TemplateVar {
|
|
38
|
+
name: string;
|
|
39
|
+
value: string;
|
|
40
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export var TemplateStatus;
|
|
2
|
+
(function (TemplateStatus) {
|
|
3
|
+
TemplateStatus[TemplateStatus["PENDING"] = 0] = "PENDING";
|
|
4
|
+
TemplateStatus[TemplateStatus["APPROVED"] = 1] = "APPROVED";
|
|
5
|
+
TemplateStatus[TemplateStatus["REJECTED"] = 2] = "REJECTED";
|
|
6
|
+
TemplateStatus[TemplateStatus["PROCESSING"] = 3] = "PROCESSING";
|
|
7
|
+
})(TemplateStatus || (TemplateStatus = {}));
|
|
8
|
+
export var TemplateButtonType;
|
|
9
|
+
(function (TemplateButtonType) {
|
|
10
|
+
TemplateButtonType[TemplateButtonType["TEXT"] = 0] = "TEXT";
|
|
11
|
+
TemplateButtonType[TemplateButtonType["URL"] = 1] = "URL";
|
|
12
|
+
})(TemplateButtonType || (TemplateButtonType = {}));
|
|
@@ -1 +1,69 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChannelType } from "../../Common/Channels/ChannelType";
|
|
2
|
+
export declare enum TimeRange {
|
|
3
|
+
DAY = 0,
|
|
4
|
+
WEEK = 1,
|
|
5
|
+
MONTH = 2
|
|
6
|
+
}
|
|
7
|
+
export declare class BodyDashboard {
|
|
8
|
+
userId: string;
|
|
9
|
+
timeRange: TimeRange | TimeRange.DAY;
|
|
10
|
+
timeStart: Date | null;
|
|
11
|
+
timeEnd: Date | null;
|
|
12
|
+
memberId: string | null;
|
|
13
|
+
}
|
|
14
|
+
export declare enum GeneralDashboardType {
|
|
15
|
+
USER = 1,
|
|
16
|
+
GROUP = 2
|
|
17
|
+
}
|
|
18
|
+
export declare class GeneralDashboard {
|
|
19
|
+
type: GeneralDashboardType | GeneralDashboardType.USER;
|
|
20
|
+
userId: string | null;
|
|
21
|
+
groupId: string | null;
|
|
22
|
+
name: string;
|
|
23
|
+
imageUrl: string;
|
|
24
|
+
quantity: number;
|
|
25
|
+
}
|
|
26
|
+
export declare enum RecordsDashboardType {
|
|
27
|
+
ALL = 0,
|
|
28
|
+
NEW = 1,
|
|
29
|
+
IN_PROGRESS = 2,
|
|
30
|
+
EXPIRED = 3
|
|
31
|
+
}
|
|
32
|
+
export declare class RecordsDashboard {
|
|
33
|
+
type: RecordsDashboardType | RecordsDashboardType.ALL;
|
|
34
|
+
quantity: number;
|
|
35
|
+
}
|
|
36
|
+
export declare class EndingsDashboard {
|
|
37
|
+
endingId: string;
|
|
38
|
+
name: string;
|
|
39
|
+
quantity: number;
|
|
40
|
+
}
|
|
41
|
+
export declare class MembersDashboard {
|
|
42
|
+
activeConversations: number;
|
|
43
|
+
inProgressConversations: number;
|
|
44
|
+
expiredConversations: number;
|
|
45
|
+
endingConversations: number;
|
|
46
|
+
averageFirstResponseTime: string | null;
|
|
47
|
+
totalTime: string | null;
|
|
48
|
+
loginTime: string | null;
|
|
49
|
+
}
|
|
50
|
+
export declare class ChannelsDashboard {
|
|
51
|
+
channelType: ChannelType;
|
|
52
|
+
quantity: number;
|
|
53
|
+
channelName: string;
|
|
54
|
+
}
|
|
55
|
+
export declare class LabelsDashboard {
|
|
56
|
+
labelId: string;
|
|
57
|
+
name: string;
|
|
58
|
+
quantity: number;
|
|
59
|
+
}
|
|
60
|
+
export declare class TimesDashboard {
|
|
61
|
+
averageFirstResponseTime: string;
|
|
62
|
+
finalizedTime: string;
|
|
63
|
+
}
|
|
64
|
+
export declare class QuantityDashboard {
|
|
65
|
+
contactsQuantity: number;
|
|
66
|
+
finalizedQuantity: number;
|
|
67
|
+
onlineAgentsQuantity: number;
|
|
68
|
+
groupAgentsQuantity: number;
|
|
69
|
+
}
|
|
@@ -1,37 +1,36 @@
|
|
|
1
|
-
var TimeRange;
|
|
1
|
+
export var TimeRange;
|
|
2
2
|
(function (TimeRange) {
|
|
3
3
|
TimeRange[TimeRange["DAY"] = 0] = "DAY";
|
|
4
4
|
TimeRange[TimeRange["WEEK"] = 1] = "WEEK";
|
|
5
5
|
TimeRange[TimeRange["MONTH"] = 2] = "MONTH";
|
|
6
6
|
})(TimeRange || (TimeRange = {}));
|
|
7
|
-
class BodyDashboard {
|
|
7
|
+
export class BodyDashboard {
|
|
8
8
|
}
|
|
9
|
-
var GeneralDashboardType;
|
|
9
|
+
export var GeneralDashboardType;
|
|
10
10
|
(function (GeneralDashboardType) {
|
|
11
11
|
GeneralDashboardType[GeneralDashboardType["USER"] = 1] = "USER";
|
|
12
12
|
GeneralDashboardType[GeneralDashboardType["GROUP"] = 2] = "GROUP";
|
|
13
13
|
})(GeneralDashboardType || (GeneralDashboardType = {}));
|
|
14
|
-
class GeneralDashboard {
|
|
14
|
+
export class GeneralDashboard {
|
|
15
15
|
}
|
|
16
|
-
var RecordsDashboardType;
|
|
16
|
+
export var RecordsDashboardType;
|
|
17
17
|
(function (RecordsDashboardType) {
|
|
18
18
|
RecordsDashboardType[RecordsDashboardType["ALL"] = 0] = "ALL";
|
|
19
19
|
RecordsDashboardType[RecordsDashboardType["NEW"] = 1] = "NEW";
|
|
20
20
|
RecordsDashboardType[RecordsDashboardType["IN_PROGRESS"] = 2] = "IN_PROGRESS";
|
|
21
21
|
RecordsDashboardType[RecordsDashboardType["EXPIRED"] = 3] = "EXPIRED";
|
|
22
22
|
})(RecordsDashboardType || (RecordsDashboardType = {}));
|
|
23
|
-
class RecordsDashboard {
|
|
23
|
+
export class RecordsDashboard {
|
|
24
24
|
}
|
|
25
|
-
class EndingsDashboard {
|
|
25
|
+
export class EndingsDashboard {
|
|
26
26
|
}
|
|
27
|
-
class MembersDashboard {
|
|
27
|
+
export class MembersDashboard {
|
|
28
28
|
}
|
|
29
|
-
class ChannelsDashboard {
|
|
29
|
+
export class ChannelsDashboard {
|
|
30
30
|
}
|
|
31
|
-
class LabelsDashboard {
|
|
31
|
+
export class LabelsDashboard {
|
|
32
32
|
}
|
|
33
|
-
class TimesDashboard {
|
|
33
|
+
export class TimesDashboard {
|
|
34
34
|
}
|
|
35
|
-
class QuantityDashboard {
|
|
35
|
+
export class QuantityDashboard {
|
|
36
36
|
}
|
|
37
|
-
export {};
|