@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 +15 -2
- package/dist/index.d.cts +140 -3
- package/dist/index.d.ts +140 -3
- package/dist/index.js +15 -2
- package/docs/clients/PatientClient.md +1 -0
- package/docs/docs-manifest.json +6 -3
- package/docs/examples/index.md +1 -0
- package/docs/index.md +1 -0
- package/docs/models/ListNotificationsResponse.md +4 -1
- package/docs/models/MarkNotificationsReadRequest.md +18 -0
- package/docs/models/MarkNotificationsReadResponse.md +20 -0
- package/docs/models/index.md +2 -0
- package/docs/operations/patient.listNotifications.md +22 -11
- package/docs/operations/patient.markNotificationsRead.md +122 -0
- package/package.json +1 -1
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
|
-
|
|
3399
|
-
|
|
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) {
|