lemmy-js-client 1.0.0-post-notifications.0 → 1.0.0-post-notifications.1
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.d.ts +3 -0
- package/dist/types/CommunityActions.d.ts +2 -0
- package/dist/types/CommunityNotificationsMode.d.ts +4 -0
- package/dist/types/CommunityNotificationsMode.js +3 -0
- package/dist/types/NotificationData.d.ts +17 -0
- package/dist/types/NotificationData.js +2 -0
- package/dist/types/NotificationView.d.ts +3 -9
- package/dist/types/PostActions.d.ts +2 -2
- package/dist/types/PostNotificationsMode.d.ts +4 -0
- package/dist/types/PostNotificationsMode.js +3 -0
- package/dist/types/UpdateCommunityNotifications.d.ts +2 -2
- package/dist/types/UpdatePostNotifications.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -60,6 +60,7 @@ export { CommunityFollowerView } from "./types/CommunityFollowerView";
|
|
60
60
|
export { CommunityId } from "./types/CommunityId";
|
61
61
|
export { CommunityIdQuery } from "./types/CommunityIdQuery";
|
62
62
|
export { CommunityModeratorView } from "./types/CommunityModeratorView";
|
63
|
+
export { CommunityNotificationsMode } from "./types/CommunityNotificationsMode";
|
63
64
|
export { CommunityReport } from "./types/CommunityReport";
|
64
65
|
export { CommunityReportId } from "./types/CommunityReportId";
|
65
66
|
export { CommunityReportResponse } from "./types/CommunityReportResponse";
|
@@ -255,6 +256,7 @@ export { MultiCommunityView } from "./types/MultiCommunityView";
|
|
255
256
|
export { MyUserInfo } from "./types/MyUserInfo";
|
256
257
|
export { NotePerson } from "./types/NotePerson";
|
257
258
|
export { Notification } from "./types/Notification";
|
259
|
+
export { NotificationData } from "./types/NotificationData";
|
258
260
|
export { NotificationId } from "./types/NotificationId";
|
259
261
|
export { NotificationTypes } from "./types/NotificationTypes";
|
260
262
|
export { NotificationView } from "./types/NotificationView";
|
@@ -286,6 +288,7 @@ export { PostActions } from "./types/PostActions";
|
|
286
288
|
export { PostFeatureType } from "./types/PostFeatureType";
|
287
289
|
export { PostId } from "./types/PostId";
|
288
290
|
export { PostListingMode } from "./types/PostListingMode";
|
291
|
+
export { PostNotificationsMode } from "./types/PostNotificationsMode";
|
289
292
|
export { PostOrCommentOrPrivateMessage } from "./types/PostOrCommentOrPrivateMessage";
|
290
293
|
export { PostReport } from "./types/PostReport";
|
291
294
|
export { PostReportId } from "./types/PostReportId";
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import type { CommunityFollowerState } from "./CommunityFollowerState";
|
2
|
+
import type { CommunityNotificationsMode } from "./CommunityNotificationsMode";
|
2
3
|
export type CommunityActions = {
|
3
4
|
/**
|
4
5
|
* When the community was followed.
|
@@ -24,4 +25,5 @@ export type CommunityActions = {
|
|
24
25
|
* When their ban expires.
|
25
26
|
*/
|
26
27
|
ban_expires_at?: string;
|
28
|
+
notifications?: CommunityNotificationsMode;
|
27
29
|
};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import type { Comment } from "./Comment";
|
2
|
+
import type { Community } from "./Community";
|
3
|
+
import type { Post } from "./Post";
|
4
|
+
import type { PrivateMessage } from "./PrivateMessage";
|
5
|
+
export type NotificationData = {
|
6
|
+
type_: "Post";
|
7
|
+
post: Post;
|
8
|
+
community: Community;
|
9
|
+
} | {
|
10
|
+
type_: "Comment";
|
11
|
+
comment: Comment;
|
12
|
+
post: Post;
|
13
|
+
community: Community;
|
14
|
+
} | {
|
15
|
+
type_: "PrivateMessage";
|
16
|
+
pm: PrivateMessage;
|
17
|
+
};
|
@@ -1,24 +1,17 @@
|
|
1
|
-
import type { Comment } from "./Comment";
|
2
1
|
import type { CommentActions } from "./CommentActions";
|
3
|
-
import type { Community } from "./Community";
|
4
2
|
import type { CommunityActions } from "./CommunityActions";
|
5
3
|
import type { ImageDetails } from "./ImageDetails";
|
6
4
|
import type { InstanceActions } from "./InstanceActions";
|
7
5
|
import type { Notification } from "./Notification";
|
6
|
+
import type { NotificationData } from "./NotificationData";
|
8
7
|
import type { Person } from "./Person";
|
9
8
|
import type { PersonActions } from "./PersonActions";
|
10
9
|
import type { PersonNotification } from "./PersonNotification";
|
11
|
-
import type { Post } from "./Post";
|
12
10
|
import type { PostActions } from "./PostActions";
|
13
|
-
import type { PrivateMessage } from "./PrivateMessage";
|
14
11
|
import type { TagsView } from "./TagsView";
|
15
12
|
export type NotificationView = {
|
16
13
|
notification: Notification;
|
17
14
|
person_notification: PersonNotification;
|
18
|
-
private_message?: PrivateMessage;
|
19
|
-
comment?: Comment;
|
20
|
-
post?: Post;
|
21
|
-
community?: Community;
|
22
15
|
creator: Person;
|
23
16
|
recipient: Person;
|
24
17
|
image_details?: ImageDetails;
|
@@ -27,10 +20,11 @@ export type NotificationView = {
|
|
27
20
|
post_actions?: PostActions;
|
28
21
|
person_actions?: PersonActions;
|
29
22
|
comment_actions?: CommentActions;
|
30
|
-
|
23
|
+
creator_is_admin: boolean;
|
31
24
|
post_tags: TagsView;
|
32
25
|
can_mod: boolean;
|
33
26
|
creator_banned: boolean;
|
34
27
|
creator_is_moderator: boolean;
|
35
28
|
creator_banned_from_community: boolean;
|
29
|
+
data: NotificationData;
|
36
30
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
1
|
+
import type { PostNotificationsMode } from "./PostNotificationsMode";
|
2
2
|
export type PostActions = {
|
3
3
|
/**
|
4
4
|
* When the post was read.
|
@@ -29,5 +29,5 @@ export type PostActions = {
|
|
29
29
|
* When the post was hidden.
|
30
30
|
*/
|
31
31
|
hidden_at?: string;
|
32
|
-
notifications?:
|
32
|
+
notifications?: PostNotificationsMode;
|
33
33
|
};
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import type { CommunityId } from "./CommunityId";
|
2
|
-
import type {
|
2
|
+
import type { CommunityNotificationsMode } from "./CommunityNotificationsMode";
|
3
3
|
/**
|
4
4
|
* Disable reply notifications for a post and all comments inside it
|
5
5
|
*/
|
6
6
|
export type UpdateCommunityNotifications = {
|
7
7
|
community_id: CommunityId;
|
8
|
-
|
8
|
+
mode: CommunityNotificationsMode;
|
9
9
|
};
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import type { NotificationsMode } from "./NotificationsMode";
|
2
1
|
import type { PostId } from "./PostId";
|
2
|
+
import type { PostNotificationsMode } from "./PostNotificationsMode";
|
3
3
|
/**
|
4
4
|
* Disable reply notifications for a post and all comments inside it
|
5
5
|
*/
|
6
6
|
export type UpdatePostNotifications = {
|
7
7
|
post_id: PostId;
|
8
|
-
|
8
|
+
mode: PostNotificationsMode;
|
9
9
|
};
|
package/package.json
CHANGED