@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crossworks/client-types",
3
- "version": "0.232.291",
3
+ "version": "0.232.292",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -75,9 +75,31 @@ export type MemberChatArchiveMessage = {
75
75
  createdAt: string;
76
76
  };
77
77
 
78
- /** GET /api/team-admin/member-chats?login=&before= : every member login, and
79
- * a window of the selected login's thread (null when there is no login). */
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: { loginId: string; thread: MemberChatArchiveMessage[]; windowSize: number } | null;
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
  };
package/src/index.ts CHANGED
@@ -65,6 +65,7 @@ export type {
65
65
  MemberAppLevel,
66
66
  MemberAppList,
67
67
  MemberChatArchiveMessage,
68
+ MemberChatPortalThread,
68
69
  MemberChatRow,
69
70
  MemberChatsResponse,
70
71
  MemberHomeApp,