@onereach/types-hitl-api 0.0.44-rc.1 → 0.0.44
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.
|
@@ -137,7 +137,7 @@ export interface ISearchSessionsWithContactsOptions {
|
|
|
137
137
|
readonly ignoreRuleTags: boolean;
|
|
138
138
|
}
|
|
139
139
|
export declare type ISearchSessionsWithContactsQuery = ITargetAccountId & ITargetUserId;
|
|
140
|
-
export declare type ISearchSessionsWithContactsBody = Omit<ISearchSessionsWithContactsOptions, 'accountId' | 'agentId' | 'token'>;
|
|
140
|
+
export declare type ISearchSessionsWithContactsBody = Omit<ISearchSessionsWithContactsOptions, 'accountId' | 'agentId' | 'token' | 'ignoreRuleTags'>;
|
|
141
141
|
export interface IGetQueueSessionOptions {
|
|
142
142
|
readonly accountId: string;
|
|
143
143
|
readonly agentId: string;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { ITargetAccountId } from './common';
|
|
2
2
|
export interface ISettings<Data = any> {
|
|
3
3
|
readonly category: string;
|
|
4
|
-
readonly categoryItemId: string;
|
|
5
4
|
readonly userId: string;
|
|
6
|
-
readonly ruleTags: string[];
|
|
7
5
|
readonly data: Data;
|
|
8
6
|
}
|
|
9
7
|
export interface IUpdateSettingsQuery extends ITargetAccountId {
|
|
@@ -14,14 +12,12 @@ export interface IGetSettingsQuery extends IUpdateSettingsQuery {
|
|
|
14
12
|
readonly categories?: string[];
|
|
15
13
|
}
|
|
16
14
|
export interface IGetOrUpdateSettingsResponse {
|
|
17
|
-
readonly data: Record<string, ISettings
|
|
15
|
+
readonly data: Record<string, ISettings>;
|
|
18
16
|
}
|
|
19
17
|
/**
|
|
20
18
|
* Multiple categories can be updated or created in a single request
|
|
21
|
-
* by providing { "avatar": { ... }, "notifications": { ... }, ... }
|
|
22
|
-
* or pass array of settings with additional fields categoryItemId and ruleTags using settings
|
|
19
|
+
* by providing { "avatar": { ... }, "notifications": { ... }, ... }
|
|
23
20
|
*/
|
|
24
21
|
export interface IUpdateSettingsBody<Data = any> {
|
|
25
|
-
readonly settings: Omit<ISettings, 'userId'>[];
|
|
26
22
|
readonly data: Record<string, Data>;
|
|
27
23
|
}
|