lemmy-js-client 1.0.0-post-notifications.3 → 1.0.0-post-notifications.5

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/http.js CHANGED
@@ -608,7 +608,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
608
608
  * @summary Get your inbox (replies, comment mentions, post mentions, and messages)
609
609
  */
610
610
  async listNotifications(form, options) {
611
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/inbox", form, options);
611
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/notifications", form, options);
612
612
  }
613
613
  /**
614
614
  * @summary Verify your email
@@ -1628,7 +1628,7 @@ __decorate([
1628
1628
  ], LemmyHttp.prototype, "getUnreadCount", null);
1629
1629
  __decorate([
1630
1630
  (0, runtime_1.Security)("bearerAuth"),
1631
- (0, runtime_1.Get)("/account/inbox"),
1631
+ (0, runtime_1.Get)("/account/notifications"),
1632
1632
  (0, runtime_1.Tags)("Account"),
1633
1633
  __param(0, (0, runtime_1.Queries)()),
1634
1634
  __param(1, (0, runtime_1.Inject)())
@@ -1,11 +1,6 @@
1
+ import type { Notification } from "./Notification";
1
2
  import type { NotificationData } from "./NotificationData";
2
- import type { NotificationId } from "./NotificationId";
3
- import type { NotificationTypes } from "./NotificationTypes";
4
- import type { PersonId } from "./PersonId";
5
3
  export type NotificationView = {
6
- id: NotificationId;
7
- kind: NotificationTypes;
8
- recipient_id: PersonId;
9
- published_at: string;
4
+ notification: Notification;
10
5
  data: NotificationData;
11
6
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
3
  "description": "A javascript / typescript client for Lemmy",
4
- "version": "1.0.0-post-notifications.3",
4
+ "version": "1.0.0-post-notifications.5",
5
5
  "author": "Dessalines",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",