@onereach/types-hitl-api 0.0.12 → 0.0.15
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.
|
@@ -3,6 +3,10 @@ export interface IAgentStatus {
|
|
|
3
3
|
readonly agentId?: string;
|
|
4
4
|
readonly status: AGENT_STATUS;
|
|
5
5
|
readonly busyReason: string;
|
|
6
|
+
/** How long ago user has refreshed his active status */
|
|
7
|
+
readonly lastStatusUpdate?: string;
|
|
8
|
+
/** How long ago user has changed his status to a different one */
|
|
9
|
+
readonly lastStatusChange?: string;
|
|
6
10
|
}
|
|
7
11
|
export interface IAgentStatusSettings {
|
|
8
12
|
readonly defaultLoginStatus?: AGENT_STATUS;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface IEventTemplatesModel {
|
|
2
|
+
readonly templateId: string;
|
|
3
|
+
readonly eventType: string;
|
|
4
|
+
readonly rule: string;
|
|
5
|
+
readonly template: IEventTemplateContent;
|
|
6
|
+
readonly isActive: boolean;
|
|
7
|
+
readonly isVisible: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface IEventTemplateContent {
|
|
10
|
+
readonly html?: string;
|
|
11
|
+
readonly js?: string;
|
|
12
|
+
readonly css?: string;
|
|
13
|
+
readonly sass?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface IGetEventTemplatesQuery {
|
|
16
|
+
readonly templateId?: string;
|
|
17
|
+
readonly accountId?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface IGetEventTemplatesResponse {
|
|
20
|
+
readonly data: IEventTemplatesModel[];
|
|
21
|
+
}
|
|
22
|
+
export interface ICreateEventTemplateQuery {
|
|
23
|
+
readonly accountId?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface ICreateEventTemplateBody {
|
|
26
|
+
readonly eventType: string;
|
|
27
|
+
readonly rule: string;
|
|
28
|
+
readonly template: IEventTemplateContent;
|
|
29
|
+
readonly isActive?: boolean;
|
|
30
|
+
readonly isVisible?: boolean;
|
|
31
|
+
}
|
|
32
|
+
export declare type IUpdateEventTemplateQuery = ICreateEventTemplateQuery;
|
|
33
|
+
export interface IUpdateEventTemplateBody extends Partial<ICreateEventTemplateBody> {
|
|
34
|
+
readonly templateId: string;
|
|
35
|
+
}
|
|
36
|
+
export interface IDeleteEventTemplateQuery extends ICreateEventTemplateQuery {
|
|
37
|
+
readonly templateId: string;
|
|
38
|
+
}
|