@onereach/types-hitl-api 0.0.10 → 0.0.13
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.
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AGENT_STATUS } from '../constants';
|
|
2
|
+
export interface IAgentStatus {
|
|
3
|
+
readonly agentId?: string;
|
|
4
|
+
readonly status: AGENT_STATUS;
|
|
5
|
+
readonly busyReason: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IAgentStatusSettings {
|
|
8
|
+
readonly defaultLoginStatus?: AGENT_STATUS;
|
|
9
|
+
readonly defaultLoginStatusReason?: string;
|
|
10
|
+
readonly busyStatusReasons?: string[];
|
|
11
|
+
readonly lastStatusUpdate?: string;
|
|
12
|
+
}
|
|
@@ -5,8 +5,13 @@ export interface IMigrationResult {
|
|
|
5
5
|
readonly migrations: IMigration[];
|
|
6
6
|
readonly method: 'up' | 'down';
|
|
7
7
|
}
|
|
8
|
-
export interface
|
|
8
|
+
export interface IGetMigrationsQuery {
|
|
9
|
+
readonly accountId?: string;
|
|
10
|
+
readonly appVersion?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface IRunMigrationsQuery extends IGetMigrationsQuery {
|
|
9
13
|
readonly name?: string;
|
|
14
|
+
readonly method?: 'up' | 'down';
|
|
10
15
|
}
|
|
11
16
|
export interface IGetMigrationsResponse {
|
|
12
17
|
readonly executed: IMigration[];
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface IRuleGroupsModel {
|
|
2
|
+
readonly groupId: string;
|
|
3
|
+
readonly name: string;
|
|
4
|
+
readonly rules: string[];
|
|
5
|
+
}
|
|
6
|
+
export interface ITargetAccountId {
|
|
7
|
+
readonly accountId?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ISearchRuleGroupsQuery extends ITargetAccountId {
|
|
10
|
+
readonly groupId?: string;
|
|
11
|
+
readonly search?: string;
|
|
12
|
+
readonly offset?: number;
|
|
13
|
+
readonly limit?: number;
|
|
14
|
+
readonly orderBy?: string;
|
|
15
|
+
readonly order?: string;
|
|
16
|
+
readonly projection?: string[];
|
|
17
|
+
}
|
|
18
|
+
export interface ISearchRuleGroupsBody {
|
|
19
|
+
/** Group IDs are passed in body, since client can request several hundred groups */
|
|
20
|
+
readonly groupIdList?: string[];
|
|
21
|
+
}
|
|
22
|
+
export interface ISearchRuleGroupsResponse {
|
|
23
|
+
readonly data: IRuleGroupsModel[];
|
|
24
|
+
}
|
|
25
|
+
export interface ICreateRuleGroupBody extends ITargetAccountId {
|
|
26
|
+
readonly name: string;
|
|
27
|
+
readonly rules: string[];
|
|
28
|
+
}
|
|
29
|
+
export interface IUpdateRuleGroupBody extends ICreateRuleGroupBody {
|
|
30
|
+
readonly groupId: string;
|
|
31
|
+
}
|
|
32
|
+
export interface IDeleteRuleGroupQuery extends ITargetAccountId {
|
|
33
|
+
readonly groupId: string;
|
|
34
|
+
}
|