@hipnation-truth/sdk 0.18.0 → 0.19.0

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/dist/react.d.ts CHANGED
@@ -82,6 +82,16 @@ interface ConversationListItem {
82
82
  patientId: string | null;
83
83
  /** ISO timestamp of the most recent message in the conversation. */
84
84
  lastMessageAt: string;
85
+ /**
86
+ * Denormalized preview of the most recent message, for the inbox list +
87
+ * right-panel snippet (so the UI shows the message instead of a literal
88
+ * "Conversation"). Populated by the write path + a one-off backfill.
89
+ */
90
+ lastMessageText: string | null;
91
+ /** `"sms" | "call" | "voicemail"` — drives the preview's icon/label. */
92
+ lastMessageKind: string | null;
93
+ /** `"inbound" | "outbound"` of the previewed message. */
94
+ lastDirection: string | null;
85
95
  /** Caller's unread count for this conversation. */
86
96
  unreadCount: number;
87
97
  /** ISO timestamp of when the caller last marked the conversation read. */
@@ -155,6 +165,11 @@ interface ConversationTaskRow {
155
165
  interface ConversationTaskForUserRow extends ConversationTaskRow {
156
166
  /** Normalized `(patient_phone | provider_phone)` for the task's conversation. */
157
167
  phonePair: string | null;
168
+ /**
169
+ * Resolved patient display name. `null` when the conversation has no
170
+ * linked patient — callers fall back to formatting `phonePair`.
171
+ */
172
+ patientName: string | null;
158
173
  /**
159
174
  * Set of user ids who have seen this task (opened the detail panel).
160
175
  * Replaces the Hasura `event_activities.seen` boolean — use