beamsocial 0.16.3 → 0.17.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/lib/index.d.ts CHANGED
@@ -23,4 +23,4 @@ export { Session } from './models/auth.js';
23
23
  export { Post } from './models/posts.js';
24
24
  export { Comment } from './models/comments.js';
25
25
  export type { Badge } from './models/types/profiles.js';
26
- export type { Notification, NotificationSingle, NotificationPost, NotificationWarn, NotificationBan } from './models/types/inbox.js';
26
+ export type { Notification, NotificationSingle, NotificationPost, NotificationComment, NotificationWarn, NotificationBan } from './models/types/inbox.js';
@@ -23,9 +23,17 @@ export type NotificationSingle = NotificationBase & {
23
23
  export type PartialNotificationPost = PartialNotificationSingle & {
24
24
  target: string;
25
25
  };
26
+ export type PartialNotificationComment = PartialNotificationSingle & {
27
+ target: string;
28
+ post: string;
29
+ };
26
30
  export type NotificationPost = NotificationSingle & {
27
31
  target: string;
28
32
  };
33
+ export type NotificationComment = NotificationSingle & {
34
+ target: string;
35
+ post: string;
36
+ };
29
37
  export type NotificationWarn = NotificationBase & {
30
38
  reason: string;
31
39
  };
@@ -34,8 +42,8 @@ export type NotificationBan = NotificationBase & {
34
42
  until: Date;
35
43
  reason: string;
36
44
  };
37
- export type Notification = NotificationSingle | NotificationWarn | NotificationBan;
38
- export type PartialNotification = PartialNotificationSingle | PartialNotificationPost;
45
+ export type Notification = NotificationSingle | NotificationWarn | NotificationBan | NotificationPost | NotificationComment;
46
+ export type PartialNotification = PartialNotificationSingle | PartialNotificationPost | PartialNotificationComment;
39
47
  export type PartialInbox = {
40
48
  id: string;
41
49
  requests: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beamsocial",
3
- "version": "0.16.3",
3
+ "version": "0.17.0",
4
4
  "type": "module",
5
5
  "description": "API-wrapper pour Beam",
6
6
  "main": "index.js",