@onereach/types-hitl-api 1.0.7 → 1.0.8-rc.1
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.
|
@@ -131,6 +131,39 @@ export interface ISearchSessionsOptions {
|
|
|
131
131
|
}
|
|
132
132
|
export type ISearchSessionsQuery = ITargetAccountId & ITargetUserId;
|
|
133
133
|
export type ISearchSessionsBody = Omit<ISearchSessionsOptions, 'accountId' | 'agentId' | 'ignoreRuleTags'>;
|
|
134
|
+
export interface ISessionSearchGroupedByContactsOptions {
|
|
135
|
+
readonly condition?: 'AND' | 'OR';
|
|
136
|
+
readonly projection?: string[];
|
|
137
|
+
readonly contactLimit: number;
|
|
138
|
+
readonly excludeContactIds?: string[];
|
|
139
|
+
readonly order?: string;
|
|
140
|
+
readonly orderBy?: string;
|
|
141
|
+
readonly page?: {
|
|
142
|
+
readonly cursor?: string;
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
export interface ISearchSessionsGroupedByContactsOptions {
|
|
146
|
+
readonly accountId: string;
|
|
147
|
+
readonly agentId: string;
|
|
148
|
+
readonly claimedBy?: string;
|
|
149
|
+
readonly claimedByHistory?: string;
|
|
150
|
+
readonly tags?: string[] | ITagsQuery;
|
|
151
|
+
readonly status?: string[];
|
|
152
|
+
readonly needsAction?: boolean;
|
|
153
|
+
readonly type?: string;
|
|
154
|
+
readonly meta?: Record<string, string | boolean | number | IMetaWithCondition>;
|
|
155
|
+
readonly sessionsSearchOptions?: ISessionSearchGroupedByContactsOptions;
|
|
156
|
+
readonly ignoreRuleTags: boolean;
|
|
157
|
+
}
|
|
158
|
+
export type ISearchSessionsGroupedByContactsQuery = ITargetAccountId & ITargetUserId;
|
|
159
|
+
export type ISearchSessionsGroupedByContactsBody = Omit<ISearchSessionsGroupedByContactsOptions, 'accountId' | 'agentId' | 'ignoreRuleTags'>;
|
|
160
|
+
export interface ISearchSessionsGroupedByContactsResponse {
|
|
161
|
+
readonly data: Record<string, ISession[]>;
|
|
162
|
+
readonly page: {
|
|
163
|
+
readonly cursor?: string | null;
|
|
164
|
+
readonly hasMore: boolean;
|
|
165
|
+
};
|
|
166
|
+
}
|
|
134
167
|
export interface ISearchSessionsWithContactsResponse {
|
|
135
168
|
readonly data: ISession[];
|
|
136
169
|
readonly page?: {
|