@healthcloudai/hc-sdk 3.29.0 → 3.30.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/index.cjs CHANGED
@@ -3395,8 +3395,21 @@ var PatientClient = class extends BaseServiceClient {
3395
3395
  pathParams: { dependent_id: dependentId }
3396
3396
  });
3397
3397
  }
3398
- listNotifications() {
3399
- return this.send("GET", "/patients/notifications", {});
3398
+ /**
3399
+ * The patient's notifications, newest first, with `total`, `unread_count` and `truncated` (GET /patients/notifications).
3400
+ * `limit` (1 to 200) returns only the newest that many; `unread_only` returns only the unread. Without arguments it returns
3401
+ * every notification (up to the API's safety bound; `truncated` says when that cut the list).
3402
+ */
3403
+ listNotifications(query) {
3404
+ return this.send("GET", "/patients/notifications", { query });
3405
+ }
3406
+ /**
3407
+ * Mark the patient's own notifications read (POST /patients/notifications/read): send either `notification_ids` (at most
3408
+ * 100) or `all_unread: true`, not both. Already-read ones are counted in `already_read`; ids that are not the patient's
3409
+ * come back in `not_found` and nothing is changed for them. Only the read flag changes.
3410
+ */
3411
+ markNotificationsRead(request) {
3412
+ return this.send("POST", "/patients/notifications/read", { body: request });
3400
3413
  }
3401
3414
  saveNotification(data, notificationId) {
3402
3415
  if (notificationId) {