@webitel/ui-chats 26.12.1 → 26.12.3

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,18 @@
1
+ import type { MessageModel, ThreadModel } from '../types';
2
+ /**
3
+ * A thread with no client in it: every member is an operator or a bot, as in
4
+ * a chat between colleagues. A thread whose members are not known is not
5
+ * taken for one.
6
+ */
7
+ export declare const isInternalThread: (thread: ThreadModel) => boolean;
8
+ /**
9
+ * Which side of the history a message sits on. With a client in the thread,
10
+ * everyone who speaks for the contact centre (operators, bots) shares the
11
+ * operator's side against the client. Between colleagues there is no such
12
+ * opposition, so only the operator using the UI sits on it.
13
+ */
14
+ export declare const isOutgoingMessage: ({ message, thread, selfMemberId, }: {
15
+ message: MessageModel;
16
+ thread: ThreadModel;
17
+ selfMemberId: string;
18
+ }) => boolean;