@crossworks/client-types 0.232.291 → 0.232.292
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.
- package/package.json +1 -1
- package/src/dto/member-apps.ts +25 -3
- package/src/index.ts +1 -0
package/package.json
CHANGED
package/src/dto/member-apps.ts
CHANGED
|
@@ -75,9 +75,31 @@ export type MemberChatArchiveMessage = {
|
|
|
75
75
|
createdAt: string;
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
78
|
+
/** The selected login's OLD team portal chat (member logins Phase 6): the
|
|
79
|
+
* thread its contact had with the team code before the invite made it a
|
|
80
|
+
* login. History only, for the admin: never part of the member's live
|
|
81
|
+
* thread, never shown to the member, never in the agent's context. Show it
|
|
82
|
+
* apart from `thread`, labelled as the portal history. */
|
|
83
|
+
export type MemberChatPortalThread = {
|
|
84
|
+
/** The contact the login was invited from. */
|
|
85
|
+
contactId: string;
|
|
86
|
+
/** A window, ascending; `portalBefore` pages older. */
|
|
87
|
+
thread: MemberChatArchiveMessage[];
|
|
88
|
+
windowSize: number;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
/** GET /api/team-admin/member-chats?login=&before=&portalBefore= : every
|
|
92
|
+
* member login, and a window of the selected login's thread (null when
|
|
93
|
+
* there is no login). */
|
|
80
94
|
export type MemberChatsResponse = {
|
|
81
95
|
members: MemberChatRow[];
|
|
82
|
-
selected: {
|
|
96
|
+
selected: {
|
|
97
|
+
loginId: string;
|
|
98
|
+
thread: MemberChatArchiveMessage[];
|
|
99
|
+
windowSize: number;
|
|
100
|
+
/** The login's old portal chat, separate from `thread`. Null (or absent,
|
|
101
|
+
* from an older brain) when the login has no contact or the contact
|
|
102
|
+
* never chatted on the portal. */
|
|
103
|
+
portalThread?: MemberChatPortalThread | null;
|
|
104
|
+
} | null;
|
|
83
105
|
};
|